@gluhar/theme 2.0.3 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +2 -47
- package/dist/module.d.mts +0 -4
- package/dist/module.d.ts +0 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -9
- package/dist/runtime/tailwind/gluharTheme.js +3 -27
- package/dist/runtime/tailwind/handleTailwind.js +1 -5
- package/package.json +3 -6
- package/dist/runtime/presets/lara/accordion/index.d.ts +0 -49
- package/dist/runtime/presets/lara/accordion/index.js +0 -78
- package/dist/runtime/presets/lara/autocomplete/index.d.ts +0 -200
- package/dist/runtime/presets/lara/autocomplete/index.js +0 -259
- package/dist/runtime/presets/lara/avatar/index.d.ts +0 -83
- package/dist/runtime/presets/lara/avatar/index.js +0 -43
- package/dist/runtime/presets/lara/avatargroup/index.d.ts +0 -7
- package/dist/runtime/presets/lara/avatargroup/index.js +0 -5
- package/dist/runtime/presets/lara/badge/index.d.ts +0 -72
- package/dist/runtime/presets/lara/badge/index.js +0 -43
- package/dist/runtime/presets/lara/badgedirective/index.d.ts +0 -50
- package/dist/runtime/presets/lara/badgedirective/index.js +0 -43
- package/dist/runtime/presets/lara/blockui/index.d.ts +0 -11
- package/dist/runtime/presets/lara/blockui/index.js +0 -8
- package/dist/runtime/presets/lara/breadcrumb/index.d.ts +0 -23
- package/dist/runtime/presets/lara/breadcrumb/index.js +0 -64
- package/dist/runtime/presets/lara/button/index.d.ts +0 -3790
- package/dist/runtime/presets/lara/button/index.js +0 -220
- package/dist/runtime/presets/lara/calendar/index.d.ts +0 -334
- package/dist/runtime/presets/lara/calendar/index.js +0 -643
- package/dist/runtime/presets/lara/card/index.d.ts +0 -27
- package/dist/runtime/presets/lara/card/index.js +0 -37
- package/dist/runtime/presets/lara/carousel/index.d.ts +0 -71
- package/dist/runtime/presets/lara/carousel/index.js +0 -149
- package/dist/runtime/presets/lara/cascadeselect/index.d.ts +0 -112
- package/dist/runtime/presets/lara/cascadeselect/index.js +0 -209
- package/dist/runtime/presets/lara/checkbox/index.d.ts +0 -45
- package/dist/runtime/presets/lara/checkbox/index.js +0 -101
- package/dist/runtime/presets/lara/chip/index.d.ts +0 -23
- package/dist/runtime/presets/lara/chip/index.js +0 -45
- package/dist/runtime/presets/lara/chips/index.d.ts +0 -56
- package/dist/runtime/presets/lara/chips/index.js +0 -114
- package/dist/runtime/presets/lara/colorpicker/index.d.ts +0 -51
- package/dist/runtime/presets/lara/colorpicker/index.js +0 -123
- package/dist/runtime/presets/lara/confirmpopup/index.d.ts +0 -39
- package/dist/runtime/presets/lara/confirmpopup/index.js +0 -106
- package/dist/runtime/presets/lara/contextmenu/index.d.ts +0 -72
- package/dist/runtime/presets/lara/contextmenu/index.js +0 -125
- package/dist/runtime/presets/lara/datatable/index.d.ts +0 -695
- package/dist/runtime/presets/lara/datatable/index.js +0 -1170
- package/dist/runtime/presets/lara/dataview/index.d.ts +0 -15
- package/dist/runtime/presets/lara/dataview/index.js +0 -40
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +0 -13
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +0 -62
- package/dist/runtime/presets/lara/deferred/index.d.ts +0 -4
- package/dist/runtime/presets/lara/deferred/index.js +0 -3
- package/dist/runtime/presets/lara/dialog/index.d.ts +0 -79
- package/dist/runtime/presets/lara/dialog/index.js +0 -235
- package/dist/runtime/presets/lara/divider/index.d.ts +0 -192
- package/dist/runtime/presets/lara/divider/index.js +0 -67
- package/dist/runtime/presets/lara/dock/index.d.ts +0 -51
- package/dist/runtime/presets/lara/dock/index.js +0 -93
- package/dist/runtime/presets/lara/dropdown/index.d.ts +0 -207
- package/dist/runtime/presets/lara/dropdown/index.js +0 -265
- package/dist/runtime/presets/lara/fieldset/index.d.ts +0 -87
- package/dist/runtime/presets/lara/fieldset/index.js +0 -84
- package/dist/runtime/presets/lara/fileupload/index.d.ts +0 -70
- package/dist/runtime/presets/lara/fileupload/index.js +0 -173
- package/dist/runtime/presets/lara/floatlabel/index.d.ts +0 -7
- package/dist/runtime/presets/lara/floatlabel/index.js +0 -26
- package/dist/runtime/presets/lara/galleria/index.d.ts +0 -194
- package/dist/runtime/presets/lara/galleria/index.js +0 -306
- package/dist/runtime/presets/lara/global.d.ts +0 -4
- package/dist/runtime/presets/lara/global.js +0 -90
- package/dist/runtime/presets/lara/iconfield/index.d.ts +0 -18
- package/dist/runtime/presets/lara/iconfield/index.js +0 -22
- package/dist/runtime/presets/lara/image/index.d.ts +0 -65
- package/dist/runtime/presets/lara/image/index.js +0 -206
- package/dist/runtime/presets/lara/index.d.ts +0 -187
- package/dist/runtime/presets/lara/index.js +0 -207
- package/dist/runtime/presets/lara/inlinemessage/index.d.ts +0 -55
- package/dist/runtime/presets/lara/inlinemessage/index.js +0 -36
- package/dist/runtime/presets/lara/inplace/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inplace/index.js +0 -27
- package/dist/runtime/presets/lara/inputgroup/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inputgroup/index.js +0 -5
- package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inputgroupaddon/index.js +0 -28
- package/dist/runtime/presets/lara/inputmask/index.d.ts +0 -27
- package/dist/runtime/presets/lara/inputmask/index.js +0 -34
- package/dist/runtime/presets/lara/inputnumber/index.d.ts +0 -390
- package/dist/runtime/presets/lara/inputnumber/index.js +0 -164
- package/dist/runtime/presets/lara/inputotp/index.d.ts +0 -147
- package/dist/runtime/presets/lara/inputotp/index.js +0 -60
- package/dist/runtime/presets/lara/inputswitch/index.d.ts +0 -67
- package/dist/runtime/presets/lara/inputswitch/index.js +0 -80
- package/dist/runtime/presets/lara/inputtext/index.d.ts +0 -160
- package/dist/runtime/presets/lara/inputtext/index.js +0 -49
- package/dist/runtime/presets/lara/knob/index.d.ts +0 -22
- package/dist/runtime/presets/lara/knob/index.js +0 -44
- package/dist/runtime/presets/lara/listbox/index.d.ts +0 -93
- package/dist/runtime/presets/lara/listbox/index.js +0 -152
- package/dist/runtime/presets/lara/megamenu/index.d.ts +0 -105
- package/dist/runtime/presets/lara/megamenu/index.js +0 -199
- package/dist/runtime/presets/lara/menu/index.d.ts +0 -40
- package/dist/runtime/presets/lara/menu/index.js +0 -96
- package/dist/runtime/presets/lara/menubar/index.d.ts +0 -85
- package/dist/runtime/presets/lara/menubar/index.js +0 -176
- package/dist/runtime/presets/lara/message/index.d.ts +0 -70
- package/dist/runtime/presets/lara/message/index.js +0 -87
- package/dist/runtime/presets/lara/metergroup/index.d.ts +0 -92
- package/dist/runtime/presets/lara/metergroup/index.js +0 -97
- package/dist/runtime/presets/lara/multiselect/index.d.ts +0 -260
- package/dist/runtime/presets/lara/multiselect/index.js +0 -546
- package/dist/runtime/presets/lara/orderlist/index.d.ts +0 -99
- package/dist/runtime/presets/lara/orderlist/index.js +0 -257
- package/dist/runtime/presets/lara/organizationchart/index.d.ts +0 -81
- package/dist/runtime/presets/lara/organizationchart/index.js +0 -138
- package/dist/runtime/presets/lara/overlaypanel/index.d.ts +0 -17
- package/dist/runtime/presets/lara/overlaypanel/index.js +0 -40
- package/dist/runtime/presets/lara/paginator/index.d.ts +0 -280
- package/dist/runtime/presets/lara/paginator/index.js +0 -533
- package/dist/runtime/presets/lara/panel/index.d.ts +0 -39
- package/dist/runtime/presets/lara/panel/index.js +0 -91
- package/dist/runtime/presets/lara/panelmenu/index.d.ts +0 -76
- package/dist/runtime/presets/lara/panelmenu/index.js +0 -127
- package/dist/runtime/presets/lara/password/index.d.ts +0 -181
- package/dist/runtime/presets/lara/password/index.js +0 -118
- package/dist/runtime/presets/lara/picklist/index.d.ts +0 -245
- package/dist/runtime/presets/lara/picklist/index.js +0 -650
- package/dist/runtime/presets/lara/progressbar/index.d.ts +0 -44
- package/dist/runtime/presets/lara/progressbar/index.js +0 -55
- package/dist/runtime/presets/lara/progressspinner/index.d.ts +0 -15
- package/dist/runtime/presets/lara/progressspinner/index.js +0 -51
- package/dist/runtime/presets/lara/radiobutton/index.d.ts +0 -57
- package/dist/runtime/presets/lara/radiobutton/index.js +0 -104
- package/dist/runtime/presets/lara/rating/index.d.ts +0 -49
- package/dist/runtime/presets/lara/rating/index.js +0 -92
- package/dist/runtime/presets/lara/ripple/index.d.ts +0 -8
- package/dist/runtime/presets/lara/ripple/index.js +0 -6
- package/dist/runtime/presets/lara/scrollpanel/index.d.ts +0 -19
- package/dist/runtime/presets/lara/scrollpanel/index.js +0 -77
- package/dist/runtime/presets/lara/scrolltop/index.d.ts +0 -50
- package/dist/runtime/presets/lara/scrolltop/index.js +0 -41
- package/dist/runtime/presets/lara/selectbutton/index.d.ts +0 -56
- package/dist/runtime/presets/lara/selectbutton/index.js +0 -49
- package/dist/runtime/presets/lara/sidebar/index.d.ts +0 -66
- package/dist/runtime/presets/lara/sidebar/index.js +0 -149
- package/dist/runtime/presets/lara/skeleton/index.d.ts +0 -16
- package/dist/runtime/presets/lara/skeleton/index.js +0 -16
- package/dist/runtime/presets/lara/slider/index.d.ts +0 -55
- package/dist/runtime/presets/lara/slider/index.js +0 -137
- package/dist/runtime/presets/lara/speeddial/index.d.ts +0 -3091
- package/dist/runtime/presets/lara/speeddial/index.js +0 -283
- package/dist/runtime/presets/lara/splitbutton/index.d.ts +0 -6749
- package/dist/runtime/presets/lara/splitbutton/index.js +0 -502
- package/dist/runtime/presets/lara/splitter/index.d.ts +0 -30
- package/dist/runtime/presets/lara/splitter/index.js +0 -61
- package/dist/runtime/presets/lara/splitterpanel/index.d.ts +0 -10
- package/dist/runtime/presets/lara/splitterpanel/index.js +0 -5
- package/dist/runtime/presets/lara/stepper/index.d.ts +0 -66
- package/dist/runtime/presets/lara/stepper/index.js +0 -161
- package/dist/runtime/presets/lara/steps/index.d.ts +0 -57
- package/dist/runtime/presets/lara/steps/index.js +0 -111
- package/dist/runtime/presets/lara/tabmenu/index.d.ts +0 -43
- package/dist/runtime/presets/lara/tabmenu/index.js +0 -73
- package/dist/runtime/presets/lara/tabview/index.d.ts +0 -67
- package/dist/runtime/presets/lara/tabview/index.js +0 -156
- package/dist/runtime/presets/lara/tag/index.d.ts +0 -32
- package/dist/runtime/presets/lara/tag/index.js +0 -36
- package/dist/runtime/presets/lara/terminal/index.d.ts +0 -27
- package/dist/runtime/presets/lara/terminal/index.js +0 -60
- package/dist/runtime/presets/lara/textarea/index.d.ts +0 -27
- package/dist/runtime/presets/lara/textarea/index.js +0 -36
- package/dist/runtime/presets/lara/tieredmenu/index.d.ts +0 -56
- package/dist/runtime/presets/lara/tieredmenu/index.js +0 -120
- package/dist/runtime/presets/lara/timeline/index.d.ts +0 -84
- package/dist/runtime/presets/lara/timeline/index.js +0 -81
- package/dist/runtime/presets/lara/toast/index.d.ts +0 -92
- package/dist/runtime/presets/lara/toast/index.js +0 -102
- package/dist/runtime/presets/lara/togglebutton/index.d.ts +0 -72
- package/dist/runtime/presets/lara/togglebutton/index.js +0 -91
- package/dist/runtime/presets/lara/toolbar/index.d.ts +0 -19
- package/dist/runtime/presets/lara/toolbar/index.js +0 -28
- package/dist/runtime/presets/lara/tooltip/index.d.ts +0 -38
- package/dist/runtime/presets/lara/tooltip/index.js +0 -46
- package/dist/runtime/presets/lara/tree/index.d.ts +0 -105
- package/dist/runtime/presets/lara/tree/index.js +0 -258
- package/dist/runtime/presets/lara/treeselect/index.d.ts +0 -181
- package/dist/runtime/presets/lara/treeselect/index.js +0 -352
- package/dist/runtime/presets/lara/treetable/index.d.ts +0 -316
- package/dist/runtime/presets/lara/treetable/index.js +0 -434
- package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +0 -49
- package/dist/runtime/presets/lara/tristatecheckbox/index.js +0 -104
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props, parent }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Flex
|
|
5
|
-
'inline-flex',
|
|
6
|
-
{ 'flex-col': props.showButtons && props.buttonLayout == 'vertical' },
|
|
7
|
-
{ 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
|
|
8
|
-
|
|
9
|
-
// Shape
|
|
10
|
-
{ 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
11
|
-
{ 'border-0 border-y border-l last:border-r border-surface-300 dark:border-surface-600': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
12
|
-
{ 'first:ml-0 -ml-px': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
13
|
-
|
|
14
|
-
//Sizing
|
|
15
|
-
{ '!w-16': props.showButtons && props.buttonLayout == 'vertical' }
|
|
16
|
-
]
|
|
17
|
-
}),
|
|
18
|
-
input: {
|
|
19
|
-
root: ({ parent, context }) => ({
|
|
20
|
-
class: [
|
|
21
|
-
// Display
|
|
22
|
-
'flex flex-auto',
|
|
23
|
-
|
|
24
|
-
// Font
|
|
25
|
-
'font-sans leading-none',
|
|
26
|
-
|
|
27
|
-
//Text
|
|
28
|
-
{ 'text-center': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
29
|
-
|
|
30
|
-
// Spacing
|
|
31
|
-
'p-3',
|
|
32
|
-
'm-0',
|
|
33
|
-
|
|
34
|
-
// Shape
|
|
35
|
-
'rounded-lg',
|
|
36
|
-
{ 'rounded-tr-none rounded-br-none': parent.props.showButtons },
|
|
37
|
-
{ 'rounded-tl-none rounded-bl-none': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
|
|
38
|
-
{ 'rounded-none': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
39
|
-
|
|
40
|
-
{ '!rounded-none': parent.instance.$parentInstance?.$name == 'InputGroup' && !parent.props.showButtons },
|
|
41
|
-
{ 'border-0': parent.instance.$parentInstance?.$name == 'InputGroup' && !parent.props.showButtons },
|
|
42
|
-
|
|
43
|
-
// Colors
|
|
44
|
-
'text-surface-600 dark:text-surface-200',
|
|
45
|
-
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
46
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
47
|
-
'border',
|
|
48
|
-
{ 'border-surface-300 dark:border-surface-600': !parent.props.invalid },
|
|
49
|
-
|
|
50
|
-
// Invalid State
|
|
51
|
-
{ 'border-red-500 dark:border-red-400': parent.props.invalid },
|
|
52
|
-
|
|
53
|
-
// States
|
|
54
|
-
{ 'hover:border-primary-500 dark:hover:border-primary-400': !parent.props.invalid },
|
|
55
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10',
|
|
56
|
-
{ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled },
|
|
57
|
-
|
|
58
|
-
// Filled State *for FloatLabel
|
|
59
|
-
{ filled: parent.instance?.$name == 'FloatLabel' && context.filled },
|
|
60
|
-
|
|
61
|
-
//Position
|
|
62
|
-
{ 'order-2': parent.props.buttonLayout == 'horizontal' || parent.props.buttonLayout == 'vertical' }
|
|
63
|
-
]
|
|
64
|
-
})
|
|
65
|
-
},
|
|
66
|
-
buttongroup: ({ props }) => ({
|
|
67
|
-
class: [
|
|
68
|
-
// Flex
|
|
69
|
-
'flex',
|
|
70
|
-
'flex-col'
|
|
71
|
-
]
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
incrementbutton: {
|
|
75
|
-
root: ({ parent }) => ({
|
|
76
|
-
class: [
|
|
77
|
-
// Display
|
|
78
|
-
'flex flex-auto',
|
|
79
|
-
|
|
80
|
-
// Alignment
|
|
81
|
-
'items-center',
|
|
82
|
-
'justify-center',
|
|
83
|
-
'text-center align-bottom',
|
|
84
|
-
|
|
85
|
-
//Position
|
|
86
|
-
'relative',
|
|
87
|
-
{ 'order-3': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
|
|
88
|
-
{ 'order-1': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
89
|
-
|
|
90
|
-
//Color
|
|
91
|
-
'text-white dark:text-surface-900',
|
|
92
|
-
'bg-primary-500 dark:bg-primary-400',
|
|
93
|
-
'border border-primary-500 dark:border-primary-400',
|
|
94
|
-
|
|
95
|
-
// Sizing
|
|
96
|
-
'w-[3rem]',
|
|
97
|
-
{ 'px-4 py-3': parent.props.showButtons && parent.props.buttonLayout !== 'stacked' },
|
|
98
|
-
{ 'p-0': parent.props.showButtons && parent.props.buttonLayout == 'stacked' },
|
|
99
|
-
{ 'w-full': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
100
|
-
|
|
101
|
-
// Shape
|
|
102
|
-
'rounded-md',
|
|
103
|
-
{ 'rounded-tl-none rounded-br-none rounded-bl-none': parent.props.showButtons && parent.props.buttonLayout == 'stacked' },
|
|
104
|
-
{ 'rounded-bl-none rounded-tl-none': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
|
|
105
|
-
{ 'rounded-bl-none rounded-br-none': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
106
|
-
|
|
107
|
-
//States
|
|
108
|
-
'focus:outline-none focus:outline-offset-0 focus:ring',
|
|
109
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300',
|
|
110
|
-
|
|
111
|
-
//Misc
|
|
112
|
-
'cursor-pointer overflow-hidden select-none'
|
|
113
|
-
]
|
|
114
|
-
}),
|
|
115
|
-
label: {
|
|
116
|
-
class: 'h-0 w-0'
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
decrementbutton: {
|
|
120
|
-
root: ({ parent }) => ({
|
|
121
|
-
class: [
|
|
122
|
-
// Display
|
|
123
|
-
'flex flex-auto',
|
|
124
|
-
|
|
125
|
-
// Alignment
|
|
126
|
-
'items-center',
|
|
127
|
-
'justify-center',
|
|
128
|
-
'text-center align-bottom',
|
|
129
|
-
|
|
130
|
-
//Position
|
|
131
|
-
'relative',
|
|
132
|
-
{ 'order-1': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
|
|
133
|
-
{ 'order-3': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
134
|
-
|
|
135
|
-
//Color
|
|
136
|
-
'text-white dark:text-surface-900',
|
|
137
|
-
'bg-primary-500 dark:bg-primary-400',
|
|
138
|
-
'border border-primary-500 dark:border-primary-400',
|
|
139
|
-
|
|
140
|
-
// Sizing
|
|
141
|
-
'w-[3rem]',
|
|
142
|
-
{ 'px-4 py-3': parent.props.showButtons && parent.props.buttonLayout !== 'stacked' },
|
|
143
|
-
{ 'p-0': parent.props.showButtons && parent.props.buttonLayout == 'stacked' },
|
|
144
|
-
{ 'w-full': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
145
|
-
|
|
146
|
-
// Shape
|
|
147
|
-
'rounded-md',
|
|
148
|
-
{ 'rounded-tr-none rounded-tl-none rounded-bl-none': parent.props.showButtons && parent.props.buttonLayout == 'stacked' },
|
|
149
|
-
{ 'rounded-tr-none rounded-br-none ': parent.props.showButtons && parent.props.buttonLayout == 'horizontal' },
|
|
150
|
-
{ 'rounded-tr-none rounded-tl-none ': parent.props.showButtons && parent.props.buttonLayout == 'vertical' },
|
|
151
|
-
|
|
152
|
-
//States
|
|
153
|
-
'focus:outline-none focus:outline-offset-0 focus:ring',
|
|
154
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300',
|
|
155
|
-
|
|
156
|
-
//Misc
|
|
157
|
-
'cursor-pointer overflow-hidden select-none'
|
|
158
|
-
]
|
|
159
|
-
}),
|
|
160
|
-
label: {
|
|
161
|
-
class: 'h-0 w-0'
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace root {
|
|
3
|
-
let _class: string[];
|
|
4
|
-
export { _class as class };
|
|
5
|
-
}
|
|
6
|
-
namespace input {
|
|
7
|
-
export function root_1({ props, context, parent }: {
|
|
8
|
-
props: any;
|
|
9
|
-
context: any;
|
|
10
|
-
parent: any;
|
|
11
|
-
}): {
|
|
12
|
-
class: (string | {
|
|
13
|
-
'flex-1 w-[1%]': boolean;
|
|
14
|
-
'p-3'?: undefined;
|
|
15
|
-
'rounded-md'?: undefined;
|
|
16
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
17
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
18
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
19
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
20
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
21
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
22
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
23
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
24
|
-
filled?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
'p-3': boolean;
|
|
27
|
-
'flex-1 w-[1%]'?: undefined;
|
|
28
|
-
'rounded-md'?: undefined;
|
|
29
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
30
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
31
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
32
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
33
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
34
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
35
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
36
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
37
|
-
filled?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
'rounded-md': boolean;
|
|
40
|
-
'flex-1 w-[1%]'?: undefined;
|
|
41
|
-
'p-3'?: undefined;
|
|
42
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
43
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
44
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
45
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
46
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
47
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
48
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
49
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
50
|
-
filled?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
'first:rounded-l-md rounded-none last:rounded-r-md': boolean;
|
|
53
|
-
'flex-1 w-[1%]'?: undefined;
|
|
54
|
-
'p-3'?: undefined;
|
|
55
|
-
'rounded-md'?: undefined;
|
|
56
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
57
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
58
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
59
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
60
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
61
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
62
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
63
|
-
filled?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
'border-0 border-y border-l last:border-r': boolean;
|
|
66
|
-
'flex-1 w-[1%]'?: undefined;
|
|
67
|
-
'p-3'?: undefined;
|
|
68
|
-
'rounded-md'?: undefined;
|
|
69
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
70
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
71
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
72
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
73
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
74
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
75
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
76
|
-
filled?: undefined;
|
|
77
|
-
} | {
|
|
78
|
-
'first:ml-0 ml-[-1px]': boolean;
|
|
79
|
-
'flex-1 w-[1%]'?: undefined;
|
|
80
|
-
'p-3'?: undefined;
|
|
81
|
-
'rounded-md'?: undefined;
|
|
82
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
83
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
84
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
85
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
86
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
87
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
88
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
89
|
-
filled?: undefined;
|
|
90
|
-
} | {
|
|
91
|
-
'border-surface-300 dark:border-surface-600': boolean;
|
|
92
|
-
'flex-1 w-[1%]'?: undefined;
|
|
93
|
-
'p-3'?: undefined;
|
|
94
|
-
'rounded-md'?: undefined;
|
|
95
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
96
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
97
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
98
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
99
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
100
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
101
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
102
|
-
filled?: undefined;
|
|
103
|
-
} | {
|
|
104
|
-
'border-red-500 dark:border-red-400': any;
|
|
105
|
-
'flex-1 w-[1%]'?: undefined;
|
|
106
|
-
'p-3'?: undefined;
|
|
107
|
-
'rounded-md'?: undefined;
|
|
108
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
109
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
110
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
111
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
112
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
113
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
114
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
115
|
-
filled?: undefined;
|
|
116
|
-
} | {
|
|
117
|
-
'hover:border-primary-500 dark:hover:border-primary-400': boolean;
|
|
118
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10': boolean;
|
|
119
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
120
|
-
'flex-1 w-[1%]'?: undefined;
|
|
121
|
-
'p-3'?: undefined;
|
|
122
|
-
'rounded-md'?: undefined;
|
|
123
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
124
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
125
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
126
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
127
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
128
|
-
filled?: undefined;
|
|
129
|
-
} | {
|
|
130
|
-
filled: any;
|
|
131
|
-
'flex-1 w-[1%]'?: undefined;
|
|
132
|
-
'p-3'?: undefined;
|
|
133
|
-
'rounded-md'?: undefined;
|
|
134
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
135
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
136
|
-
'first:ml-0 ml-[-1px]'?: undefined;
|
|
137
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
138
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
139
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
140
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
141
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
142
|
-
})[];
|
|
143
|
-
};
|
|
144
|
-
export { root_1 as root };
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
export default _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: {
|
|
3
|
-
class: [
|
|
4
|
-
// Alignment
|
|
5
|
-
'flex items-center',
|
|
6
|
-
'gap-2'
|
|
7
|
-
]
|
|
8
|
-
},
|
|
9
|
-
input: {
|
|
10
|
-
root: ({ props, context, parent }) => ({
|
|
11
|
-
class: [
|
|
12
|
-
// Font
|
|
13
|
-
'font-sans leading-none',
|
|
14
|
-
|
|
15
|
-
// Flex & Alignment
|
|
16
|
-
{ 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
|
|
17
|
-
'text-center',
|
|
18
|
-
|
|
19
|
-
// Spacing
|
|
20
|
-
'm-0',
|
|
21
|
-
{
|
|
22
|
-
'p-3': props.size == null
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
// Size
|
|
26
|
-
'w-10',
|
|
27
|
-
|
|
28
|
-
// Shape
|
|
29
|
-
{ 'rounded-md': parent.instance.$name !== 'InputGroup' },
|
|
30
|
-
{ 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' },
|
|
31
|
-
{ 'border-0 border-y border-l last:border-r': parent.instance.$name == 'InputGroup' },
|
|
32
|
-
{ 'first:ml-0 ml-[-1px]': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
33
|
-
|
|
34
|
-
// Colors
|
|
35
|
-
'text-surface-600 dark:text-surface-200',
|
|
36
|
-
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
37
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
38
|
-
'border',
|
|
39
|
-
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
|
|
40
|
-
|
|
41
|
-
// Invalid State
|
|
42
|
-
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
43
|
-
|
|
44
|
-
// States
|
|
45
|
-
{
|
|
46
|
-
'hover:border-primary-500 dark:hover:border-primary-400': !context.disabled && !props.invalid,
|
|
47
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10': !context.disabled,
|
|
48
|
-
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
// Filled State *for FloatLabel
|
|
52
|
-
{ filled: parent.instance?.$name == 'FloatLabel' && context.filled },
|
|
53
|
-
|
|
54
|
-
// Misc
|
|
55
|
-
'appearance-none',
|
|
56
|
-
'transition-colors duration-200'
|
|
57
|
-
]
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: (string | {
|
|
6
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
7
|
-
})[];
|
|
8
|
-
};
|
|
9
|
-
function slider({ props }: {
|
|
10
|
-
props: any;
|
|
11
|
-
}): {
|
|
12
|
-
class: (string | {
|
|
13
|
-
'before:transform before:translate-x-5': boolean;
|
|
14
|
-
'bg-surface-200 dark:bg-surface-700'?: undefined;
|
|
15
|
-
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
16
|
-
'border-transparent'?: undefined;
|
|
17
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
18
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 '?: undefined;
|
|
19
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 '?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
'bg-surface-200 dark:bg-surface-700': boolean;
|
|
22
|
-
'bg-primary-500 dark:bg-primary-400': boolean;
|
|
23
|
-
'before:transform before:translate-x-5'?: undefined;
|
|
24
|
-
'border-transparent'?: undefined;
|
|
25
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
26
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 '?: undefined;
|
|
27
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 '?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
'border-transparent': boolean;
|
|
30
|
-
'before:transform before:translate-x-5'?: undefined;
|
|
31
|
-
'bg-surface-200 dark:bg-surface-700'?: undefined;
|
|
32
|
-
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
33
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
34
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 '?: undefined;
|
|
35
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 '?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
'border-red-500 dark:border-red-400': any;
|
|
38
|
-
'before:transform before:translate-x-5'?: undefined;
|
|
39
|
-
'bg-surface-200 dark:bg-surface-700'?: undefined;
|
|
40
|
-
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
41
|
-
'border-transparent'?: undefined;
|
|
42
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 '?: undefined;
|
|
43
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 '?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 ': boolean;
|
|
46
|
-
'before:transform before:translate-x-5'?: undefined;
|
|
47
|
-
'bg-surface-200 dark:bg-surface-700'?: undefined;
|
|
48
|
-
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
49
|
-
'border-transparent'?: undefined;
|
|
50
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
51
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 '?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 ': boolean;
|
|
54
|
-
'before:transform before:translate-x-5'?: undefined;
|
|
55
|
-
'bg-surface-200 dark:bg-surface-700'?: undefined;
|
|
56
|
-
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
57
|
-
'border-transparent'?: undefined;
|
|
58
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
59
|
-
'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 '?: undefined;
|
|
60
|
-
})[];
|
|
61
|
-
};
|
|
62
|
-
namespace input {
|
|
63
|
-
let _class: string[];
|
|
64
|
-
export { _class as class };
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
'inline-block relative',
|
|
5
|
-
'w-12 h-7',
|
|
6
|
-
'rounded-2xl',
|
|
7
|
-
{
|
|
8
|
-
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}),
|
|
12
|
-
slider: ({ props }) => ({
|
|
13
|
-
class: [
|
|
14
|
-
// Position
|
|
15
|
-
'absolute top-0 left-0 right-0 bottom-0',
|
|
16
|
-
{ 'before:transform before:translate-x-5': props.modelValue == props.trueValue },
|
|
17
|
-
|
|
18
|
-
// Shape
|
|
19
|
-
'rounded-2xl',
|
|
20
|
-
|
|
21
|
-
// Before:
|
|
22
|
-
'before:absolute before:top-1/2 before:left-1',
|
|
23
|
-
'before:-mt-2.5',
|
|
24
|
-
'before:h-5 before:w-5',
|
|
25
|
-
'before:rounded-full',
|
|
26
|
-
'before:duration-200',
|
|
27
|
-
'before:bg-surface-0 before:dark:bg-surface-900',
|
|
28
|
-
|
|
29
|
-
// Colors
|
|
30
|
-
'border',
|
|
31
|
-
{
|
|
32
|
-
'bg-surface-200 dark:bg-surface-700': !(props.modelValue == props.trueValue),
|
|
33
|
-
'bg-primary-500 dark:bg-primary-400': props.modelValue == props.trueValue
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
{ 'border-transparent': !props.invalid },
|
|
37
|
-
|
|
38
|
-
// Invalid State
|
|
39
|
-
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
40
|
-
|
|
41
|
-
// States
|
|
42
|
-
{ 'peer-hover:bg-surface-300 dark:peer-hover:bg-surface-600 ': !(props.modelValue == props.trueValue) && !props.disabled },
|
|
43
|
-
{ 'peer-hover:bg-primary-600 dark:peer-hover:bg-surface-300 ': props.modelValue == props.trueValue && !props.disabled },
|
|
44
|
-
'peer-focus-visible:ring peer-focus-visible:ring-primary-400/50 dark:peer-focus-visible:ring-primary-300/50',
|
|
45
|
-
|
|
46
|
-
// Transition
|
|
47
|
-
'transition-colors duration-200',
|
|
48
|
-
|
|
49
|
-
// Misc
|
|
50
|
-
'cursor-pointer'
|
|
51
|
-
]
|
|
52
|
-
}),
|
|
53
|
-
input: {
|
|
54
|
-
class: [
|
|
55
|
-
'peer',
|
|
56
|
-
|
|
57
|
-
// Size
|
|
58
|
-
'w-full ',
|
|
59
|
-
'h-full',
|
|
60
|
-
|
|
61
|
-
// Position
|
|
62
|
-
'absolute',
|
|
63
|
-
'top-0 left-0',
|
|
64
|
-
'z-10',
|
|
65
|
-
|
|
66
|
-
// Spacing
|
|
67
|
-
'p-0',
|
|
68
|
-
'm-0',
|
|
69
|
-
|
|
70
|
-
// Shape
|
|
71
|
-
'opacity-0',
|
|
72
|
-
'rounded-[2.5rem]',
|
|
73
|
-
'outline-none',
|
|
74
|
-
|
|
75
|
-
// Misc
|
|
76
|
-
'appearance-none',
|
|
77
|
-
'cursor-pointer'
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
};
|