2024-02-12 15:26:08 +00:00
|
|
|
export default {
|
|
|
|
name: 'ButtonUnstyled',
|
|
|
|
selector: '.button-unstyled',
|
|
|
|
states: {
|
2024-03-06 15:42:09 +00:00
|
|
|
toggled: '.toggled',
|
2024-02-12 15:26:08 +00:00
|
|
|
disabled: ':disabled',
|
2024-02-18 16:40:14 +00:00
|
|
|
hover: ':hover:not(:disabled)',
|
2024-03-06 15:42:09 +00:00
|
|
|
focused: ':focus-within'
|
2024-02-12 15:26:08 +00:00
|
|
|
},
|
|
|
|
validInnerComponents: [
|
|
|
|
'Text',
|
2024-02-15 18:20:27 +00:00
|
|
|
'Icon',
|
|
|
|
'Badge'
|
2024-02-12 15:26:08 +00:00
|
|
|
],
|
|
|
|
defaultRules: [
|
|
|
|
{
|
|
|
|
directives: {
|
2024-02-18 22:00:43 +00:00
|
|
|
background: '#ffffff',
|
2024-09-20 09:50:05 +00:00
|
|
|
opacity: 0
|
2024-02-12 15:26:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
component: 'Icon',
|
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
|
|
|
state: ['hover']
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
textColor: '--parent--text'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
component: 'Icon',
|
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
|
|
|
state: ['toggled']
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
textColor: '--parent--text'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-03-06 15:42:09 +00:00
|
|
|
component: 'Icon',
|
2024-02-12 15:26:08 +00:00
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
2024-03-06 15:42:09 +00:00
|
|
|
state: ['toggled', 'hover']
|
2024-02-12 15:26:08 +00:00
|
|
|
},
|
|
|
|
directives: {
|
2024-03-06 15:42:09 +00:00
|
|
|
textColor: '--parent--text'
|
2024-02-12 15:26:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-03-06 15:42:09 +00:00
|
|
|
component: 'Icon',
|
2024-02-12 15:26:08 +00:00
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
2024-03-06 15:42:09 +00:00
|
|
|
state: ['toggled', 'focused']
|
2024-02-12 15:26:08 +00:00
|
|
|
},
|
|
|
|
directives: {
|
2024-03-06 15:42:09 +00:00
|
|
|
textColor: '--parent--text'
|
2024-02-12 15:26:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
component: 'Icon',
|
2024-03-06 15:42:09 +00:00
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
|
|
|
state: ['toggled', 'focused', 'hover']
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
textColor: '--parent--text'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
component: 'Text',
|
2024-02-12 15:26:08 +00:00
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
|
|
|
state: ['disabled']
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
textOpacity: 0.25,
|
|
|
|
textOpacityMode: 'blend'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
component: 'Icon',
|
|
|
|
parent: {
|
|
|
|
component: 'ButtonUnstyled',
|
2024-03-06 15:42:09 +00:00
|
|
|
state: ['disabled']
|
2024-02-12 15:26:08 +00:00
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
textOpacity: 0.25,
|
|
|
|
textOpacityMode: 'blend'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|