@gluhar/theme 2.0.0-dev.0
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 +147 -0
- package/README.md +162 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.d.ts +13 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +34 -0
- package/dist/runtime/composables/useTheme.d.ts +10 -0
- package/dist/runtime/composables/useTheme.js +29 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Heavy.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-HeavySlanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Regular.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Slanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/stylesheet.css +1 -0
- package/dist/runtime/presets/lara/accordion/index.d.ts +49 -0
- package/dist/runtime/presets/lara/accordion/index.js +78 -0
- package/dist/runtime/presets/lara/autocomplete/index.d.ts +200 -0
- package/dist/runtime/presets/lara/autocomplete/index.js +259 -0
- package/dist/runtime/presets/lara/avatar/index.d.ts +83 -0
- package/dist/runtime/presets/lara/avatar/index.js +43 -0
- package/dist/runtime/presets/lara/avatargroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/avatargroup/index.js +5 -0
- package/dist/runtime/presets/lara/badge/index.d.ts +72 -0
- package/dist/runtime/presets/lara/badge/index.js +43 -0
- package/dist/runtime/presets/lara/badgedirective/index.d.ts +50 -0
- package/dist/runtime/presets/lara/badgedirective/index.js +43 -0
- package/dist/runtime/presets/lara/blockui/index.d.ts +11 -0
- package/dist/runtime/presets/lara/blockui/index.js +8 -0
- package/dist/runtime/presets/lara/breadcrumb/index.d.ts +23 -0
- package/dist/runtime/presets/lara/breadcrumb/index.js +64 -0
- package/dist/runtime/presets/lara/button/index.d.ts +3790 -0
- package/dist/runtime/presets/lara/button/index.js +220 -0
- package/dist/runtime/presets/lara/calendar/index.d.ts +334 -0
- package/dist/runtime/presets/lara/calendar/index.js +643 -0
- package/dist/runtime/presets/lara/card/index.d.ts +27 -0
- package/dist/runtime/presets/lara/card/index.js +37 -0
- package/dist/runtime/presets/lara/carousel/index.d.ts +71 -0
- package/dist/runtime/presets/lara/carousel/index.js +149 -0
- package/dist/runtime/presets/lara/cascadeselect/index.d.ts +112 -0
- package/dist/runtime/presets/lara/cascadeselect/index.js +209 -0
- package/dist/runtime/presets/lara/checkbox/index.d.ts +45 -0
- package/dist/runtime/presets/lara/checkbox/index.js +101 -0
- package/dist/runtime/presets/lara/chip/index.d.ts +23 -0
- package/dist/runtime/presets/lara/chip/index.js +45 -0
- package/dist/runtime/presets/lara/chips/index.d.ts +56 -0
- package/dist/runtime/presets/lara/chips/index.js +114 -0
- package/dist/runtime/presets/lara/colorpicker/index.d.ts +51 -0
- package/dist/runtime/presets/lara/colorpicker/index.js +123 -0
- package/dist/runtime/presets/lara/confirmpopup/index.d.ts +39 -0
- package/dist/runtime/presets/lara/confirmpopup/index.js +106 -0
- package/dist/runtime/presets/lara/contextmenu/index.d.ts +72 -0
- package/dist/runtime/presets/lara/contextmenu/index.js +125 -0
- package/dist/runtime/presets/lara/datatable/index.d.ts +695 -0
- package/dist/runtime/presets/lara/datatable/index.js +1170 -0
- package/dist/runtime/presets/lara/dataview/index.d.ts +15 -0
- package/dist/runtime/presets/lara/dataview/index.js +40 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +13 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +62 -0
- package/dist/runtime/presets/lara/deferred/index.d.ts +4 -0
- package/dist/runtime/presets/lara/deferred/index.js +3 -0
- package/dist/runtime/presets/lara/dialog/index.d.ts +79 -0
- package/dist/runtime/presets/lara/dialog/index.js +235 -0
- package/dist/runtime/presets/lara/divider/index.d.ts +192 -0
- package/dist/runtime/presets/lara/divider/index.js +67 -0
- package/dist/runtime/presets/lara/dock/index.d.ts +51 -0
- package/dist/runtime/presets/lara/dock/index.js +93 -0
- package/dist/runtime/presets/lara/dropdown/index.d.ts +207 -0
- package/dist/runtime/presets/lara/dropdown/index.js +265 -0
- package/dist/runtime/presets/lara/fieldset/index.d.ts +87 -0
- package/dist/runtime/presets/lara/fieldset/index.js +84 -0
- package/dist/runtime/presets/lara/fileupload/index.d.ts +70 -0
- package/dist/runtime/presets/lara/fileupload/index.js +173 -0
- package/dist/runtime/presets/lara/floatlabel/index.d.ts +7 -0
- package/dist/runtime/presets/lara/floatlabel/index.js +26 -0
- package/dist/runtime/presets/lara/galleria/index.d.ts +194 -0
- package/dist/runtime/presets/lara/galleria/index.js +306 -0
- package/dist/runtime/presets/lara/global.d.ts +4 -0
- package/dist/runtime/presets/lara/global.js +90 -0
- package/dist/runtime/presets/lara/iconfield/index.d.ts +18 -0
- package/dist/runtime/presets/lara/iconfield/index.js +22 -0
- package/dist/runtime/presets/lara/image/index.d.ts +65 -0
- package/dist/runtime/presets/lara/image/index.js +206 -0
- package/dist/runtime/presets/lara/index.d.ts +187 -0
- package/dist/runtime/presets/lara/index.js +207 -0
- package/dist/runtime/presets/lara/inlinemessage/index.d.ts +55 -0
- package/dist/runtime/presets/lara/inlinemessage/index.js +36 -0
- package/dist/runtime/presets/lara/inplace/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inplace/index.js +27 -0
- package/dist/runtime/presets/lara/inputgroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroup/index.js +5 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.js +28 -0
- package/dist/runtime/presets/lara/inputmask/index.d.ts +27 -0
- package/dist/runtime/presets/lara/inputmask/index.js +34 -0
- package/dist/runtime/presets/lara/inputnumber/index.d.ts +390 -0
- package/dist/runtime/presets/lara/inputnumber/index.js +164 -0
- package/dist/runtime/presets/lara/inputotp/index.d.ts +147 -0
- package/dist/runtime/presets/lara/inputotp/index.js +60 -0
- package/dist/runtime/presets/lara/inputswitch/index.d.ts +67 -0
- package/dist/runtime/presets/lara/inputswitch/index.js +80 -0
- package/dist/runtime/presets/lara/inputtext/index.d.ts +160 -0
- package/dist/runtime/presets/lara/inputtext/index.js +49 -0
- package/dist/runtime/presets/lara/knob/index.d.ts +22 -0
- package/dist/runtime/presets/lara/knob/index.js +44 -0
- package/dist/runtime/presets/lara/listbox/index.d.ts +93 -0
- package/dist/runtime/presets/lara/listbox/index.js +152 -0
- package/dist/runtime/presets/lara/megamenu/index.d.ts +105 -0
- package/dist/runtime/presets/lara/megamenu/index.js +199 -0
- package/dist/runtime/presets/lara/menu/index.d.ts +40 -0
- package/dist/runtime/presets/lara/menu/index.js +96 -0
- package/dist/runtime/presets/lara/menubar/index.d.ts +85 -0
- package/dist/runtime/presets/lara/menubar/index.js +176 -0
- package/dist/runtime/presets/lara/message/index.d.ts +70 -0
- package/dist/runtime/presets/lara/message/index.js +87 -0
- package/dist/runtime/presets/lara/metergroup/index.d.ts +92 -0
- package/dist/runtime/presets/lara/metergroup/index.js +97 -0
- package/dist/runtime/presets/lara/multiselect/index.d.ts +260 -0
- package/dist/runtime/presets/lara/multiselect/index.js +546 -0
- package/dist/runtime/presets/lara/orderlist/index.d.ts +99 -0
- package/dist/runtime/presets/lara/orderlist/index.js +257 -0
- package/dist/runtime/presets/lara/organizationchart/index.d.ts +81 -0
- package/dist/runtime/presets/lara/organizationchart/index.js +138 -0
- package/dist/runtime/presets/lara/overlaypanel/index.d.ts +17 -0
- package/dist/runtime/presets/lara/overlaypanel/index.js +40 -0
- package/dist/runtime/presets/lara/paginator/index.d.ts +280 -0
- package/dist/runtime/presets/lara/paginator/index.js +533 -0
- package/dist/runtime/presets/lara/panel/index.d.ts +39 -0
- package/dist/runtime/presets/lara/panel/index.js +91 -0
- package/dist/runtime/presets/lara/panelmenu/index.d.ts +76 -0
- package/dist/runtime/presets/lara/panelmenu/index.js +127 -0
- package/dist/runtime/presets/lara/password/index.d.ts +181 -0
- package/dist/runtime/presets/lara/password/index.js +118 -0
- package/dist/runtime/presets/lara/picklist/index.d.ts +245 -0
- package/dist/runtime/presets/lara/picklist/index.js +650 -0
- package/dist/runtime/presets/lara/progressbar/index.d.ts +44 -0
- package/dist/runtime/presets/lara/progressbar/index.js +55 -0
- package/dist/runtime/presets/lara/progressspinner/index.d.ts +15 -0
- package/dist/runtime/presets/lara/progressspinner/index.js +51 -0
- package/dist/runtime/presets/lara/radiobutton/index.d.ts +57 -0
- package/dist/runtime/presets/lara/radiobutton/index.js +104 -0
- package/dist/runtime/presets/lara/rating/index.d.ts +49 -0
- package/dist/runtime/presets/lara/rating/index.js +92 -0
- package/dist/runtime/presets/lara/ripple/index.d.ts +8 -0
- package/dist/runtime/presets/lara/ripple/index.js +6 -0
- package/dist/runtime/presets/lara/scrollpanel/index.d.ts +19 -0
- package/dist/runtime/presets/lara/scrollpanel/index.js +77 -0
- package/dist/runtime/presets/lara/scrolltop/index.d.ts +50 -0
- package/dist/runtime/presets/lara/scrolltop/index.js +41 -0
- package/dist/runtime/presets/lara/selectbutton/index.d.ts +56 -0
- package/dist/runtime/presets/lara/selectbutton/index.js +49 -0
- package/dist/runtime/presets/lara/sidebar/index.d.ts +66 -0
- package/dist/runtime/presets/lara/sidebar/index.js +149 -0
- package/dist/runtime/presets/lara/skeleton/index.d.ts +16 -0
- package/dist/runtime/presets/lara/skeleton/index.js +16 -0
- package/dist/runtime/presets/lara/slider/index.d.ts +55 -0
- package/dist/runtime/presets/lara/slider/index.js +137 -0
- package/dist/runtime/presets/lara/speeddial/index.d.ts +3091 -0
- package/dist/runtime/presets/lara/speeddial/index.js +283 -0
- package/dist/runtime/presets/lara/splitbutton/index.d.ts +6749 -0
- package/dist/runtime/presets/lara/splitbutton/index.js +502 -0
- package/dist/runtime/presets/lara/splitter/index.d.ts +30 -0
- package/dist/runtime/presets/lara/splitter/index.js +61 -0
- package/dist/runtime/presets/lara/splitterpanel/index.d.ts +10 -0
- package/dist/runtime/presets/lara/splitterpanel/index.js +5 -0
- package/dist/runtime/presets/lara/stepper/index.d.ts +66 -0
- package/dist/runtime/presets/lara/stepper/index.js +161 -0
- package/dist/runtime/presets/lara/steps/index.d.ts +57 -0
- package/dist/runtime/presets/lara/steps/index.js +111 -0
- package/dist/runtime/presets/lara/tabmenu/index.d.ts +43 -0
- package/dist/runtime/presets/lara/tabmenu/index.js +73 -0
- package/dist/runtime/presets/lara/tabview/index.d.ts +67 -0
- package/dist/runtime/presets/lara/tabview/index.js +156 -0
- package/dist/runtime/presets/lara/tag/index.d.ts +32 -0
- package/dist/runtime/presets/lara/tag/index.js +36 -0
- package/dist/runtime/presets/lara/terminal/index.d.ts +27 -0
- package/dist/runtime/presets/lara/terminal/index.js +60 -0
- package/dist/runtime/presets/lara/textarea/index.d.ts +27 -0
- package/dist/runtime/presets/lara/textarea/index.js +36 -0
- package/dist/runtime/presets/lara/tieredmenu/index.d.ts +56 -0
- package/dist/runtime/presets/lara/tieredmenu/index.js +120 -0
- package/dist/runtime/presets/lara/timeline/index.d.ts +84 -0
- package/dist/runtime/presets/lara/timeline/index.js +81 -0
- package/dist/runtime/presets/lara/toast/index.d.ts +92 -0
- package/dist/runtime/presets/lara/toast/index.js +102 -0
- package/dist/runtime/presets/lara/togglebutton/index.d.ts +72 -0
- package/dist/runtime/presets/lara/togglebutton/index.js +91 -0
- package/dist/runtime/presets/lara/toolbar/index.d.ts +19 -0
- package/dist/runtime/presets/lara/toolbar/index.js +28 -0
- package/dist/runtime/presets/lara/tooltip/index.d.ts +38 -0
- package/dist/runtime/presets/lara/tooltip/index.js +46 -0
- package/dist/runtime/presets/lara/tree/index.d.ts +105 -0
- package/dist/runtime/presets/lara/tree/index.js +258 -0
- package/dist/runtime/presets/lara/treeselect/index.d.ts +181 -0
- package/dist/runtime/presets/lara/treeselect/index.js +352 -0
- package/dist/runtime/presets/lara/treetable/index.d.ts +316 -0
- package/dist/runtime/presets/lara/treetable/index.js +434 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +49 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.js +104 -0
- package/dist/runtime/styles/core.css +27 -0
- package/dist/runtime/tailwind/gluharTheme.d.ts +3 -0
- package/dist/runtime/tailwind/gluharTheme.js +52 -0
- package/dist/runtime/tailwind/handleTailwind.d.ts +3 -0
- package/dist/runtime/tailwind/handleTailwind.js +22 -0
- package/dist/types.d.mts +7 -0
- package/dist/types.d.ts +7 -0
- package/package.json +56 -0
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
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;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
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;
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
};
|