@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,199 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Flexbox
|
|
7
|
+
'flex',
|
|
8
|
+
|
|
9
|
+
// Shape & Size
|
|
10
|
+
'rounded-md',
|
|
11
|
+
|
|
12
|
+
// Color
|
|
13
|
+
'bg-surface-50 dark:bg-surface-700',
|
|
14
|
+
'border border-surface-200 dark:border-surface-700',
|
|
15
|
+
{ 'p-2 items-center': props.orientation == 'horizontal', 'flex-col sm:w-48 p-0 py-1': props.orientation !== 'horizontal' }
|
|
16
|
+
]
|
|
17
|
+
}),
|
|
18
|
+
menu: ({ props }) => ({
|
|
19
|
+
class: [
|
|
20
|
+
// Flexbox
|
|
21
|
+
'sm:flex',
|
|
22
|
+
'items-center',
|
|
23
|
+
'flex-wrap',
|
|
24
|
+
'flex-col sm:flex-row',
|
|
25
|
+
{ hidden: !props?.mobileActive, flex: props?.mobileActive },
|
|
26
|
+
|
|
27
|
+
// Position
|
|
28
|
+
'absolute sm:relative',
|
|
29
|
+
'top-full left-0',
|
|
30
|
+
'sm:top-auto sm:left-auto',
|
|
31
|
+
|
|
32
|
+
// Size
|
|
33
|
+
'w-full sm:w-auto',
|
|
34
|
+
|
|
35
|
+
// Spacing
|
|
36
|
+
'm-0',
|
|
37
|
+
'py-1 sm:py-0 sm:p-0',
|
|
38
|
+
'list-none',
|
|
39
|
+
|
|
40
|
+
// Shape
|
|
41
|
+
'shadow-md sm:shadow-none',
|
|
42
|
+
'border-0',
|
|
43
|
+
|
|
44
|
+
// Color
|
|
45
|
+
'bg-surface-0 dark:bg-surface-700 sm:bg-transparent dark:sm:bg-transparent',
|
|
46
|
+
|
|
47
|
+
// Misc
|
|
48
|
+
'outline-none'
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
menuitem: ({ props }) => ({
|
|
52
|
+
class: [
|
|
53
|
+
'sm:relative static',
|
|
54
|
+
{
|
|
55
|
+
'sm:w-auto w-full': props.horizontal,
|
|
56
|
+
'w-full': !props.horizontal
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
content: ({ props, context }) => ({
|
|
61
|
+
class: [
|
|
62
|
+
// Shape
|
|
63
|
+
{ 'rounded-md': props.level < 1 && props.horizontal },
|
|
64
|
+
|
|
65
|
+
// Colors
|
|
66
|
+
{
|
|
67
|
+
'text-surface-500 dark:text-white/70': !context.focused && !context.active,
|
|
68
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
|
|
69
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
|
|
70
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
// Hover States
|
|
74
|
+
{
|
|
75
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
|
|
76
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
// Transitions
|
|
80
|
+
'transition-all',
|
|
81
|
+
'duration-200'
|
|
82
|
+
]
|
|
83
|
+
}),
|
|
84
|
+
action: {
|
|
85
|
+
class: [
|
|
86
|
+
'relative',
|
|
87
|
+
|
|
88
|
+
// Flexbox
|
|
89
|
+
'flex',
|
|
90
|
+
'items-center',
|
|
91
|
+
|
|
92
|
+
// Spacing
|
|
93
|
+
'py-3',
|
|
94
|
+
'px-5',
|
|
95
|
+
|
|
96
|
+
// Size
|
|
97
|
+
'py-3 pr-5 pl-9 sm:pl-5',
|
|
98
|
+
'leading-none',
|
|
99
|
+
|
|
100
|
+
// Misc
|
|
101
|
+
'select-none',
|
|
102
|
+
'cursor-pointer',
|
|
103
|
+
'no-underline ',
|
|
104
|
+
'overflow-hidden'
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
icon: {
|
|
108
|
+
class: 'mr-2'
|
|
109
|
+
},
|
|
110
|
+
submenuicon: ({ props }) => ({
|
|
111
|
+
class: [
|
|
112
|
+
{
|
|
113
|
+
'ml-auto sm:ml-2': props.horizontal,
|
|
114
|
+
'ml-auto': !props.horizontal
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}),
|
|
118
|
+
panel: ({ props }) => ({
|
|
119
|
+
class: [
|
|
120
|
+
// Size
|
|
121
|
+
'w-auto',
|
|
122
|
+
|
|
123
|
+
// Spacing
|
|
124
|
+
'py-1',
|
|
125
|
+
'm-0',
|
|
126
|
+
|
|
127
|
+
// Shape
|
|
128
|
+
'shadow-none sm:shadow-md',
|
|
129
|
+
'border-0',
|
|
130
|
+
|
|
131
|
+
// Color
|
|
132
|
+
'bg-surface-0 dark:bg-surface-700',
|
|
133
|
+
|
|
134
|
+
// Position
|
|
135
|
+
'static sm:absolute',
|
|
136
|
+
'z-10',
|
|
137
|
+
{
|
|
138
|
+
'sm:left-full top-0': !props.horizontal
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}),
|
|
142
|
+
grid: {
|
|
143
|
+
class: 'flex flex-wrap sm:flex-nowrap'
|
|
144
|
+
},
|
|
145
|
+
column: {
|
|
146
|
+
class: 'w-full sm:w-1/2'
|
|
147
|
+
},
|
|
148
|
+
submenu: {
|
|
149
|
+
class: ['m-0 list-none', 'py-1 px-2 w-full sm:min-w-[14rem]']
|
|
150
|
+
},
|
|
151
|
+
submenuheader: {
|
|
152
|
+
class: [
|
|
153
|
+
'font-semibold',
|
|
154
|
+
|
|
155
|
+
// Spacing
|
|
156
|
+
'py-3 px-5',
|
|
157
|
+
'm-0',
|
|
158
|
+
|
|
159
|
+
// Color
|
|
160
|
+
'text-surface-700 dark:text-white/80',
|
|
161
|
+
'bg-surface-0 dark:bg-surface-700'
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
separator: {
|
|
165
|
+
class: 'border-t border-surface-200 dark:border-surface-600 my-1'
|
|
166
|
+
},
|
|
167
|
+
menubutton: {
|
|
168
|
+
class: [
|
|
169
|
+
// Flexbox
|
|
170
|
+
'flex sm:hidden',
|
|
171
|
+
'items-center justify-center',
|
|
172
|
+
|
|
173
|
+
// Size
|
|
174
|
+
'w-8',
|
|
175
|
+
'h-8',
|
|
176
|
+
|
|
177
|
+
// Shape
|
|
178
|
+
'rounded-full',
|
|
179
|
+
// Color
|
|
180
|
+
'text-surface-500 dark:text-white/80',
|
|
181
|
+
|
|
182
|
+
// States
|
|
183
|
+
'hover:text-surface-600 dark:hover:text-white/60',
|
|
184
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80',
|
|
185
|
+
'focus:outline-none focus:outline-offset-0',
|
|
186
|
+
'focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
|
|
187
|
+
|
|
188
|
+
// Transitions
|
|
189
|
+
'transition duration-200 ease-in-out',
|
|
190
|
+
|
|
191
|
+
// Misc
|
|
192
|
+
'cursor-pointer',
|
|
193
|
+
'no-underline'
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
end: {
|
|
197
|
+
class: 'ml-auto self-center'
|
|
198
|
+
}
|
|
199
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace menu {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
function content({ context }: {
|
|
11
|
+
context: any;
|
|
12
|
+
}): {
|
|
13
|
+
class: (string | {
|
|
14
|
+
'bg-surface-200 text-surface-700 dark:bg-surface-300/10 dark:text-white': any;
|
|
15
|
+
})[];
|
|
16
|
+
};
|
|
17
|
+
namespace action {
|
|
18
|
+
let _class_2: string[];
|
|
19
|
+
export { _class_2 as class };
|
|
20
|
+
}
|
|
21
|
+
namespace icon {
|
|
22
|
+
let _class_3: string[];
|
|
23
|
+
export { _class_3 as class };
|
|
24
|
+
}
|
|
25
|
+
namespace label {
|
|
26
|
+
let _class_4: string[];
|
|
27
|
+
export { _class_4 as class };
|
|
28
|
+
}
|
|
29
|
+
namespace submenuheader {
|
|
30
|
+
let _class_5: string[];
|
|
31
|
+
export { _class_5 as class };
|
|
32
|
+
}
|
|
33
|
+
namespace transition {
|
|
34
|
+
let enterFromClass: string;
|
|
35
|
+
let enterActiveClass: string;
|
|
36
|
+
let leaveActiveClass: string;
|
|
37
|
+
let leaveToClass: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Sizing and Shape
|
|
5
|
+
'min-w-[12rem]',
|
|
6
|
+
'rounded-md',
|
|
7
|
+
// Spacing
|
|
8
|
+
'py-2',
|
|
9
|
+
// Colors
|
|
10
|
+
'bg-surface-0 dark:bg-surface-700',
|
|
11
|
+
'text-surface-700 dark:text-white/80',
|
|
12
|
+
'border border-surface-200 dark:border-surface-700'
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
menu: {
|
|
16
|
+
class: [
|
|
17
|
+
// Spacings and Shape
|
|
18
|
+
'list-none',
|
|
19
|
+
'm-0',
|
|
20
|
+
'p-0',
|
|
21
|
+
'outline-none'
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
content: ({ context }) => ({
|
|
25
|
+
class: [
|
|
26
|
+
//Shape
|
|
27
|
+
'rounded-none',
|
|
28
|
+
// Colors
|
|
29
|
+
'text-surface-700 dark:text-white/80',
|
|
30
|
+
{
|
|
31
|
+
'bg-surface-200 text-surface-700 dark:bg-surface-300/10 dark:text-white': context.focused
|
|
32
|
+
},
|
|
33
|
+
// Transitions
|
|
34
|
+
'transition-shadow',
|
|
35
|
+
'duration-200',
|
|
36
|
+
// States
|
|
37
|
+
'hover:text-surface-700 dark:hover:text-white/80',
|
|
38
|
+
'hover:bg-surface-100 dark:bg-surface-700 dark:hover:bg-surface-400/10'
|
|
39
|
+
]
|
|
40
|
+
}),
|
|
41
|
+
action: {
|
|
42
|
+
class: [
|
|
43
|
+
'relative',
|
|
44
|
+
// Flexbox
|
|
45
|
+
|
|
46
|
+
'flex',
|
|
47
|
+
'items-center',
|
|
48
|
+
|
|
49
|
+
// Spacing
|
|
50
|
+
'py-3',
|
|
51
|
+
'px-5',
|
|
52
|
+
|
|
53
|
+
// Color
|
|
54
|
+
'text-surface-700 dark:text-white/80',
|
|
55
|
+
|
|
56
|
+
// Misc
|
|
57
|
+
'no-underline',
|
|
58
|
+
'overflow-hidden',
|
|
59
|
+
'cursor-pointer',
|
|
60
|
+
'select-none'
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
icon: {
|
|
64
|
+
class: [
|
|
65
|
+
// Spacing
|
|
66
|
+
'mr-2',
|
|
67
|
+
|
|
68
|
+
// Color
|
|
69
|
+
'text-surface-600 dark:text-white/70'
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
label: {
|
|
73
|
+
class: ['leading-none']
|
|
74
|
+
},
|
|
75
|
+
submenuheader: {
|
|
76
|
+
class: [
|
|
77
|
+
// Font
|
|
78
|
+
'font-bold',
|
|
79
|
+
// Spacing
|
|
80
|
+
'm-0',
|
|
81
|
+
'py-3 px-5',
|
|
82
|
+
// Shape
|
|
83
|
+
'rounded-tl-none',
|
|
84
|
+
'rounded-tr-none',
|
|
85
|
+
// Colors
|
|
86
|
+
'bg-surface-0 dark:bg-surface-700',
|
|
87
|
+
'text-surface-700 dark:text-white'
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
transition: {
|
|
91
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
92
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
93
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
94
|
+
leaveToClass: 'opacity-0'
|
|
95
|
+
}
|
|
96
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
function menu({ props }: {
|
|
7
|
+
props: any;
|
|
8
|
+
}): {
|
|
9
|
+
class: (string | {
|
|
10
|
+
hidden: boolean;
|
|
11
|
+
flex: any;
|
|
12
|
+
})[];
|
|
13
|
+
};
|
|
14
|
+
namespace menuitem {
|
|
15
|
+
let _class_1: string;
|
|
16
|
+
export { _class_1 as class };
|
|
17
|
+
}
|
|
18
|
+
function content({ props, context }: {
|
|
19
|
+
props: any;
|
|
20
|
+
context: any;
|
|
21
|
+
}): {
|
|
22
|
+
class: (string | {
|
|
23
|
+
'rounded-md': any;
|
|
24
|
+
'text-surface-500 dark:text-white/70'?: undefined;
|
|
25
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
|
|
26
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
|
|
27
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
|
|
28
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
'text-surface-500 dark:text-white/70': boolean;
|
|
31
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': any;
|
|
32
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': any;
|
|
33
|
+
'rounded-md'?: undefined;
|
|
34
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
|
|
35
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
|
|
38
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': any;
|
|
39
|
+
'rounded-md'?: undefined;
|
|
40
|
+
'text-surface-500 dark:text-white/70'?: undefined;
|
|
41
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
|
|
42
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
function action({ context }: {
|
|
46
|
+
context: any;
|
|
47
|
+
}): {
|
|
48
|
+
class: (string | {
|
|
49
|
+
'pl-9 sm:pl-5': boolean;
|
|
50
|
+
'pl-14 sm:pl-5': boolean;
|
|
51
|
+
})[];
|
|
52
|
+
};
|
|
53
|
+
namespace icon {
|
|
54
|
+
let _class_2: string;
|
|
55
|
+
export { _class_2 as class };
|
|
56
|
+
}
|
|
57
|
+
function submenuicon({ props }: {
|
|
58
|
+
props: any;
|
|
59
|
+
}): {
|
|
60
|
+
class: {
|
|
61
|
+
'ml-auto sm:ml-2': any;
|
|
62
|
+
'ml-auto': boolean;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
function submenu({ props }: {
|
|
66
|
+
props: any;
|
|
67
|
+
}): {
|
|
68
|
+
class: (string | {
|
|
69
|
+
'sm:absolute sm:left-full sm:top-0': boolean;
|
|
70
|
+
})[];
|
|
71
|
+
};
|
|
72
|
+
namespace separator {
|
|
73
|
+
let _class_3: string;
|
|
74
|
+
export { _class_3 as class };
|
|
75
|
+
}
|
|
76
|
+
namespace button {
|
|
77
|
+
let _class_4: string[];
|
|
78
|
+
export { _class_4 as class };
|
|
79
|
+
}
|
|
80
|
+
namespace end {
|
|
81
|
+
let _class_5: string;
|
|
82
|
+
export { _class_5 as class };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export default _default;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Flexbox
|
|
7
|
+
'flex',
|
|
8
|
+
'items-center',
|
|
9
|
+
|
|
10
|
+
// Spacing
|
|
11
|
+
'p-2',
|
|
12
|
+
|
|
13
|
+
// Shape
|
|
14
|
+
'rounded-md',
|
|
15
|
+
|
|
16
|
+
// Color
|
|
17
|
+
'bg-surface-50 dark:bg-surface-700',
|
|
18
|
+
'border border-surface-200 dark:border-surface-700'
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
menu: ({ props }) => ({
|
|
22
|
+
class: [
|
|
23
|
+
// Flexbox
|
|
24
|
+
'sm:flex',
|
|
25
|
+
'items-center',
|
|
26
|
+
'flex-wrap',
|
|
27
|
+
'flex-col sm:flex-row',
|
|
28
|
+
{ hidden: !props?.mobileActive, flex: props?.mobileActive },
|
|
29
|
+
|
|
30
|
+
// Position
|
|
31
|
+
'absolute sm:relative',
|
|
32
|
+
'top-full left-0',
|
|
33
|
+
'sm:top-auto sm:left-auto',
|
|
34
|
+
|
|
35
|
+
// Size
|
|
36
|
+
'w-full sm:w-auto',
|
|
37
|
+
|
|
38
|
+
// Spacing
|
|
39
|
+
'm-0',
|
|
40
|
+
'py-1 sm:py-0 sm:p-0',
|
|
41
|
+
'list-none',
|
|
42
|
+
|
|
43
|
+
// Shape
|
|
44
|
+
'shadow-md sm:shadow-none',
|
|
45
|
+
'border-0',
|
|
46
|
+
|
|
47
|
+
// Color
|
|
48
|
+
'bg-surface-0 dark:bg-surface-700 sm:bg-transparent',
|
|
49
|
+
|
|
50
|
+
// Misc
|
|
51
|
+
'outline-none'
|
|
52
|
+
]
|
|
53
|
+
}),
|
|
54
|
+
menuitem: {
|
|
55
|
+
class: 'sm:relative sm:w-auto w-full static'
|
|
56
|
+
},
|
|
57
|
+
content: ({ props, context }) => ({
|
|
58
|
+
class: [
|
|
59
|
+
// Shape
|
|
60
|
+
{ 'rounded-md': props.root },
|
|
61
|
+
|
|
62
|
+
// Colors
|
|
63
|
+
{
|
|
64
|
+
'text-surface-500 dark:text-white/70': !context.focused && !context.active,
|
|
65
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
|
|
66
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
|
|
67
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
// Hover States
|
|
71
|
+
{
|
|
72
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
|
|
73
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
// Transitions
|
|
77
|
+
'transition-all',
|
|
78
|
+
'duration-200'
|
|
79
|
+
]
|
|
80
|
+
}),
|
|
81
|
+
action: ({ context }) => ({
|
|
82
|
+
class: [
|
|
83
|
+
'relative',
|
|
84
|
+
|
|
85
|
+
// Flexbox
|
|
86
|
+
'flex',
|
|
87
|
+
'items-center',
|
|
88
|
+
|
|
89
|
+
// Spacing
|
|
90
|
+
'py-3',
|
|
91
|
+
'px-5',
|
|
92
|
+
|
|
93
|
+
// Size
|
|
94
|
+
{
|
|
95
|
+
'pl-9 sm:pl-5': context.level === 1,
|
|
96
|
+
'pl-14 sm:pl-5': context.level === 2
|
|
97
|
+
},
|
|
98
|
+
'leading-none',
|
|
99
|
+
|
|
100
|
+
// Misc
|
|
101
|
+
'select-none',
|
|
102
|
+
'cursor-pointer',
|
|
103
|
+
'no-underline ',
|
|
104
|
+
'overflow-hidden'
|
|
105
|
+
]
|
|
106
|
+
}),
|
|
107
|
+
icon: {
|
|
108
|
+
class: 'mr-2'
|
|
109
|
+
},
|
|
110
|
+
submenuicon: ({ props }) => ({
|
|
111
|
+
class: [
|
|
112
|
+
{
|
|
113
|
+
'ml-auto sm:ml-2': props.root,
|
|
114
|
+
'ml-auto': !props.root
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}),
|
|
118
|
+
submenu: ({ props }) => ({
|
|
119
|
+
class: [
|
|
120
|
+
// Size
|
|
121
|
+
'w-full sm:w-48',
|
|
122
|
+
|
|
123
|
+
// Spacing
|
|
124
|
+
'py-1',
|
|
125
|
+
'm-0',
|
|
126
|
+
'list-none',
|
|
127
|
+
|
|
128
|
+
// Shape
|
|
129
|
+
'shadow-none sm:shadow-md',
|
|
130
|
+
'border-0',
|
|
131
|
+
|
|
132
|
+
// Position
|
|
133
|
+
'static sm:absolute',
|
|
134
|
+
'z-10',
|
|
135
|
+
{ 'sm:absolute sm:left-full sm:top-0': props.level > 1 },
|
|
136
|
+
|
|
137
|
+
// Color
|
|
138
|
+
'bg-surface-0 dark:bg-surface-700'
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
separator: {
|
|
142
|
+
class: 'border-t border-surface-200 dark:border-surface-600 my-1'
|
|
143
|
+
},
|
|
144
|
+
button: {
|
|
145
|
+
class: [
|
|
146
|
+
// Flexbox
|
|
147
|
+
'flex sm:hidden',
|
|
148
|
+
'items-center justify-center',
|
|
149
|
+
|
|
150
|
+
// Size
|
|
151
|
+
'w-8',
|
|
152
|
+
'h-8',
|
|
153
|
+
|
|
154
|
+
// Shape
|
|
155
|
+
'rounded-full',
|
|
156
|
+
// Color
|
|
157
|
+
'text-surface-500 dark:text-white/80',
|
|
158
|
+
|
|
159
|
+
// States
|
|
160
|
+
'hover:text-surface-600 dark:hover:text-white/60',
|
|
161
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80',
|
|
162
|
+
'focus:outline-none focus:outline-offset-0',
|
|
163
|
+
'focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
|
|
164
|
+
|
|
165
|
+
// Transitions
|
|
166
|
+
'transition duration-200 ease-in-out',
|
|
167
|
+
|
|
168
|
+
// Misc
|
|
169
|
+
'cursor-pointer',
|
|
170
|
+
'no-underline'
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
end: {
|
|
174
|
+
class: 'ml-auto self-center'
|
|
175
|
+
}
|
|
176
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'bg-blue-100/70 dark:bg-blue-500/20': boolean;
|
|
7
|
+
'bg-green-100/70 dark:bg-green-500/20': boolean;
|
|
8
|
+
'bg-orange-100/70 dark:bg-orange-500/20': boolean;
|
|
9
|
+
'bg-red-100/70 dark:bg-red-500/20': boolean;
|
|
10
|
+
'border-blue-500 dark:border-blue-400'?: undefined;
|
|
11
|
+
'border-green-500 dark:border-green-400'?: undefined;
|
|
12
|
+
'border-orange-500 dark:border-orange-400'?: undefined;
|
|
13
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
14
|
+
'text-blue-700 dark:text-blue-300'?: undefined;
|
|
15
|
+
'text-green-700 dark:text-green-300'?: undefined;
|
|
16
|
+
'text-orange-700 dark:text-orange-300'?: undefined;
|
|
17
|
+
'text-red-700 dark:text-red-300'?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
'border-blue-500 dark:border-blue-400': boolean;
|
|
20
|
+
'border-green-500 dark:border-green-400': boolean;
|
|
21
|
+
'border-orange-500 dark:border-orange-400': boolean;
|
|
22
|
+
'border-red-500 dark:border-red-400': boolean;
|
|
23
|
+
'bg-blue-100/70 dark:bg-blue-500/20'?: undefined;
|
|
24
|
+
'bg-green-100/70 dark:bg-green-500/20'?: undefined;
|
|
25
|
+
'bg-orange-100/70 dark:bg-orange-500/20'?: undefined;
|
|
26
|
+
'bg-red-100/70 dark:bg-red-500/20'?: undefined;
|
|
27
|
+
'text-blue-700 dark:text-blue-300'?: undefined;
|
|
28
|
+
'text-green-700 dark:text-green-300'?: undefined;
|
|
29
|
+
'text-orange-700 dark:text-orange-300'?: undefined;
|
|
30
|
+
'text-red-700 dark:text-red-300'?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
'text-blue-700 dark:text-blue-300': boolean;
|
|
33
|
+
'text-green-700 dark:text-green-300': boolean;
|
|
34
|
+
'text-orange-700 dark:text-orange-300': boolean;
|
|
35
|
+
'text-red-700 dark:text-red-300': boolean;
|
|
36
|
+
'bg-blue-100/70 dark:bg-blue-500/20'?: undefined;
|
|
37
|
+
'bg-green-100/70 dark:bg-green-500/20'?: undefined;
|
|
38
|
+
'bg-orange-100/70 dark:bg-orange-500/20'?: undefined;
|
|
39
|
+
'bg-red-100/70 dark:bg-red-500/20'?: undefined;
|
|
40
|
+
'border-blue-500 dark:border-blue-400'?: undefined;
|
|
41
|
+
'border-green-500 dark:border-green-400'?: undefined;
|
|
42
|
+
'border-orange-500 dark:border-orange-400'?: undefined;
|
|
43
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
};
|
|
46
|
+
namespace wrapper {
|
|
47
|
+
let _class: string[];
|
|
48
|
+
export { _class as class };
|
|
49
|
+
}
|
|
50
|
+
namespace icon {
|
|
51
|
+
let _class_1: string[];
|
|
52
|
+
export { _class_1 as class };
|
|
53
|
+
}
|
|
54
|
+
namespace text {
|
|
55
|
+
let _class_2: string[];
|
|
56
|
+
export { _class_2 as class };
|
|
57
|
+
}
|
|
58
|
+
namespace button {
|
|
59
|
+
let _class_3: string[];
|
|
60
|
+
export { _class_3 as class };
|
|
61
|
+
}
|
|
62
|
+
namespace transition {
|
|
63
|
+
let enterFromClass: string;
|
|
64
|
+
let enterActiveClass: string;
|
|
65
|
+
let leaveFromClass: string;
|
|
66
|
+
let leaveActiveClass: string;
|
|
67
|
+
let leaveToClass: string;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export default _default;
|