@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,156 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
navContainer: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Position
|
|
5
|
+
'relative',
|
|
6
|
+
|
|
7
|
+
// Misc
|
|
8
|
+
{ 'overflow-hidden': props.scrollable }
|
|
9
|
+
]
|
|
10
|
+
}),
|
|
11
|
+
navContent: {
|
|
12
|
+
class: [
|
|
13
|
+
// Overflow and Scrolling
|
|
14
|
+
'overflow-y-hidden overscroll-contain',
|
|
15
|
+
'overscroll-auto',
|
|
16
|
+
'scroll-smooth',
|
|
17
|
+
'[&::-webkit-scrollbar]:hidden'
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
previousButton: {
|
|
21
|
+
class: [
|
|
22
|
+
// Flexbox and Alignment
|
|
23
|
+
'flex items-center justify-center',
|
|
24
|
+
|
|
25
|
+
// Position
|
|
26
|
+
'!absolute',
|
|
27
|
+
'top-0 left-0',
|
|
28
|
+
'z-20',
|
|
29
|
+
|
|
30
|
+
// Size and Shape
|
|
31
|
+
'h-full w-12',
|
|
32
|
+
'rounded-none',
|
|
33
|
+
|
|
34
|
+
// Colors
|
|
35
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
36
|
+
'text-primary-500 dark:text-primary-400',
|
|
37
|
+
'shadow-md'
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
nextButton: {
|
|
41
|
+
class: [
|
|
42
|
+
// Flexbox and Alignment
|
|
43
|
+
'flex items-center justify-center',
|
|
44
|
+
|
|
45
|
+
// Position
|
|
46
|
+
'!absolute',
|
|
47
|
+
'top-0 right-0',
|
|
48
|
+
'z-20',
|
|
49
|
+
|
|
50
|
+
// Size and Shape
|
|
51
|
+
'h-full w-12',
|
|
52
|
+
'rounded-none',
|
|
53
|
+
|
|
54
|
+
// Colors
|
|
55
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
56
|
+
'text-primary-500 dark:text-primary-400',
|
|
57
|
+
'shadow-md'
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
nav: {
|
|
61
|
+
class: [
|
|
62
|
+
// Flexbox
|
|
63
|
+
'flex flex-1',
|
|
64
|
+
|
|
65
|
+
// Spacing
|
|
66
|
+
'list-none',
|
|
67
|
+
'p-0 m-0',
|
|
68
|
+
|
|
69
|
+
// Colors
|
|
70
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
71
|
+
'border-b-2 border-surface-200 dark:border-surface-700',
|
|
72
|
+
'text-surface-900 dark:text-surface-0/80'
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
tabpanel: {
|
|
76
|
+
header: ({ props }) => ({
|
|
77
|
+
class: [
|
|
78
|
+
// Spacing
|
|
79
|
+
'mr-0',
|
|
80
|
+
|
|
81
|
+
// Misc
|
|
82
|
+
{
|
|
83
|
+
'opacity-60 cursor-default user-select-none select-none pointer-events-none': props?.disabled
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}),
|
|
87
|
+
headerAction: ({ parent, context }) => ({
|
|
88
|
+
class: [
|
|
89
|
+
'relative',
|
|
90
|
+
|
|
91
|
+
// Font
|
|
92
|
+
'font-bold',
|
|
93
|
+
|
|
94
|
+
// Flexbox and Alignment
|
|
95
|
+
'flex items-center',
|
|
96
|
+
|
|
97
|
+
// Spacing
|
|
98
|
+
'p-5',
|
|
99
|
+
'-mb-[2px]',
|
|
100
|
+
|
|
101
|
+
// Shape
|
|
102
|
+
'border-b-2',
|
|
103
|
+
'rounded-t-md',
|
|
104
|
+
|
|
105
|
+
// Colors and Conditions
|
|
106
|
+
{
|
|
107
|
+
'border-surface-200 dark:border-surface-700': parent.state.d_activeIndex !== context.index,
|
|
108
|
+
'bg-surface-0 dark:bg-surface-800': parent.state.d_activeIndex !== context.index,
|
|
109
|
+
'text-surface-700 dark:text-surface-0/80': parent.state.d_activeIndex !== context.index,
|
|
110
|
+
|
|
111
|
+
'bg-surface-0 dark:bg-surface-800': parent.state.d_activeIndex === context.index,
|
|
112
|
+
'border-primary-500 dark:border-primary-400': parent.state.d_activeIndex === context.index,
|
|
113
|
+
'text-primary-500 dark:text-primary-400': parent.state.d_activeIndex === context.index
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
// States
|
|
117
|
+
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset',
|
|
118
|
+
'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
119
|
+
{
|
|
120
|
+
'hover:bg-surface-0 dark:hover:bg-surface-800/80': parent.state.d_activeIndex !== context.index,
|
|
121
|
+
'hover:border-surface-400 dark:hover:border-primary-400': parent.state.d_activeIndex !== context.index,
|
|
122
|
+
'hover:text-surface-900 dark:hover:text-surface-0': parent.state.d_activeIndex !== context.index
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
// Transitions
|
|
126
|
+
'transition-all duration-200',
|
|
127
|
+
|
|
128
|
+
// Misc
|
|
129
|
+
'cursor-pointer select-none text-decoration-none',
|
|
130
|
+
'overflow-hidden',
|
|
131
|
+
'user-select-none'
|
|
132
|
+
]
|
|
133
|
+
}),
|
|
134
|
+
headerTitle: {
|
|
135
|
+
class: [
|
|
136
|
+
// Text
|
|
137
|
+
'leading-none',
|
|
138
|
+
'whitespace-nowrap'
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
content: {
|
|
142
|
+
class: [
|
|
143
|
+
// Spacing
|
|
144
|
+
'p-5',
|
|
145
|
+
|
|
146
|
+
// Shape
|
|
147
|
+
'rounded-b-md',
|
|
148
|
+
|
|
149
|
+
// Colors
|
|
150
|
+
'bg-surface-0 dark:bg-surface-800',
|
|
151
|
+
'text-surface-700 dark:text-surface-0/80',
|
|
152
|
+
'border-0'
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'rounded-md': boolean;
|
|
7
|
+
'rounded-full': any;
|
|
8
|
+
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
9
|
+
'bg-green-500 dark:bg-green-400'?: undefined;
|
|
10
|
+
'bg-blue-500 dark:bg-blue-400'?: undefined;
|
|
11
|
+
'bg-orange-500 dark:bg-orange-400'?: undefined;
|
|
12
|
+
'bg-red-500 dark:bg-red-400'?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
'bg-primary-500 dark:bg-primary-400': boolean;
|
|
15
|
+
'bg-green-500 dark:bg-green-400': boolean;
|
|
16
|
+
'bg-blue-500 dark:bg-blue-400': boolean;
|
|
17
|
+
'bg-orange-500 dark:bg-orange-400': boolean;
|
|
18
|
+
'bg-red-500 dark:bg-red-400': boolean;
|
|
19
|
+
'rounded-md'?: undefined;
|
|
20
|
+
'rounded-full'?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
};
|
|
23
|
+
namespace value {
|
|
24
|
+
let _class: string;
|
|
25
|
+
export { _class as class };
|
|
26
|
+
}
|
|
27
|
+
namespace icon {
|
|
28
|
+
let _class_1: string;
|
|
29
|
+
export { _class_1 as class };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
//Font
|
|
5
|
+
'text-xs font-bold',
|
|
6
|
+
|
|
7
|
+
//Alignments
|
|
8
|
+
'inline-flex items-center justify-center',
|
|
9
|
+
|
|
10
|
+
//Spacing
|
|
11
|
+
'px-2 py-1',
|
|
12
|
+
|
|
13
|
+
//Shape
|
|
14
|
+
{
|
|
15
|
+
'rounded-md': !props.rounded,
|
|
16
|
+
'rounded-full': props.rounded
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
//Colors
|
|
20
|
+
'text-white dark:text-surface-900',
|
|
21
|
+
{
|
|
22
|
+
'bg-primary-500 dark:bg-primary-400': props.severity == null || props.severity == 'primary',
|
|
23
|
+
'bg-green-500 dark:bg-green-400': props.severity == 'success',
|
|
24
|
+
'bg-blue-500 dark:bg-blue-400': props.severity == 'info',
|
|
25
|
+
'bg-orange-500 dark:bg-orange-400': props.severity == 'warning',
|
|
26
|
+
'bg-red-500 dark:bg-red-400': props.severity == 'danger'
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}),
|
|
30
|
+
value: {
|
|
31
|
+
class: 'leading-normal'
|
|
32
|
+
},
|
|
33
|
+
icon: {
|
|
34
|
+
class: 'mr-1 text-sm'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace container {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace prompt {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
namespace response {
|
|
15
|
+
let _class_3: string[];
|
|
16
|
+
export { _class_3 as class };
|
|
17
|
+
}
|
|
18
|
+
namespace command {
|
|
19
|
+
let _class_4: string[];
|
|
20
|
+
export { _class_4 as class };
|
|
21
|
+
}
|
|
22
|
+
namespace commandtext {
|
|
23
|
+
let _class_5: string[];
|
|
24
|
+
export { _class_5 as class };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Spacing
|
|
5
|
+
'p-5',
|
|
6
|
+
|
|
7
|
+
// Shape
|
|
8
|
+
'rounded-md',
|
|
9
|
+
|
|
10
|
+
// Color
|
|
11
|
+
'bg-surface-900 text-white',
|
|
12
|
+
'border border-surface-700',
|
|
13
|
+
|
|
14
|
+
// Sizing & Overflow
|
|
15
|
+
'h-72 overflow-auto'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
container: {
|
|
19
|
+
class: [
|
|
20
|
+
// Flexbox
|
|
21
|
+
'flex items-center'
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
prompt: {
|
|
25
|
+
class: [
|
|
26
|
+
// Color
|
|
27
|
+
'text-surface-400'
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
response: {
|
|
31
|
+
class: [
|
|
32
|
+
// Color
|
|
33
|
+
'text-primary-400'
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
command: {
|
|
37
|
+
class: [
|
|
38
|
+
// Color
|
|
39
|
+
'text-primary-400'
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
commandtext: {
|
|
43
|
+
class: [
|
|
44
|
+
// Flexbox
|
|
45
|
+
'flex-1 shrink grow-0',
|
|
46
|
+
|
|
47
|
+
// Shape
|
|
48
|
+
'border-0',
|
|
49
|
+
|
|
50
|
+
// Spacing
|
|
51
|
+
'p-0',
|
|
52
|
+
|
|
53
|
+
// Color
|
|
54
|
+
'bg-transparent text-inherit',
|
|
55
|
+
|
|
56
|
+
// Outline
|
|
57
|
+
'outline-none'
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ context, props }: {
|
|
3
|
+
context: any;
|
|
4
|
+
props: any;
|
|
5
|
+
}): {
|
|
6
|
+
class: (string | {
|
|
7
|
+
'border-surface-300 dark:border-surface-600': boolean;
|
|
8
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
9
|
+
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
10
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50'?: undefined;
|
|
11
|
+
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
'border-red-500 dark:border-red-400': any;
|
|
14
|
+
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
15
|
+
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
16
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50'?: undefined;
|
|
17
|
+
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
'hover:border-primary-500 dark:hover:border-primary-400': boolean;
|
|
20
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50': boolean;
|
|
21
|
+
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
22
|
+
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
23
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ context, props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Font
|
|
5
|
+
'font-sans leading-none',
|
|
6
|
+
|
|
7
|
+
// Spacing
|
|
8
|
+
'm-0',
|
|
9
|
+
'p-3',
|
|
10
|
+
|
|
11
|
+
// Shape
|
|
12
|
+
'rounded-md',
|
|
13
|
+
|
|
14
|
+
// Colors
|
|
15
|
+
'text-surface-600 dark:text-surface-200',
|
|
16
|
+
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
17
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
18
|
+
'border',
|
|
19
|
+
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
|
|
20
|
+
|
|
21
|
+
// Invalid State
|
|
22
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
23
|
+
|
|
24
|
+
// States
|
|
25
|
+
{
|
|
26
|
+
'hover:border-primary-500 dark:hover:border-primary-400': !context.disabled && !props.invalid,
|
|
27
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50': !context.disabled,
|
|
28
|
+
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
// Misc
|
|
32
|
+
'appearance-none',
|
|
33
|
+
'transition-colors duration-200'
|
|
34
|
+
]
|
|
35
|
+
})
|
|
36
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
namespace menuitem {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
function content({ context }: {
|
|
15
|
+
context: any;
|
|
16
|
+
}): {
|
|
17
|
+
class: (string | {
|
|
18
|
+
'text-surface-500 dark:text-white/70': boolean;
|
|
19
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': any;
|
|
20
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': any;
|
|
21
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80'?: undefined;
|
|
22
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80'?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80': boolean;
|
|
25
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': any;
|
|
26
|
+
'text-surface-500 dark:text-white/70'?: undefined;
|
|
27
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90'?: undefined;
|
|
28
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30'?: undefined;
|
|
29
|
+
})[];
|
|
30
|
+
};
|
|
31
|
+
namespace action {
|
|
32
|
+
let _class_3: string[];
|
|
33
|
+
export { _class_3 as class };
|
|
34
|
+
}
|
|
35
|
+
namespace icon {
|
|
36
|
+
let _class_4: string[];
|
|
37
|
+
export { _class_4 as class };
|
|
38
|
+
}
|
|
39
|
+
namespace label {
|
|
40
|
+
let _class_5: string[];
|
|
41
|
+
export { _class_5 as class };
|
|
42
|
+
}
|
|
43
|
+
namespace submenuicon {
|
|
44
|
+
let _class_6: string[];
|
|
45
|
+
export { _class_6 as class };
|
|
46
|
+
}
|
|
47
|
+
namespace submenu {
|
|
48
|
+
let _class_7: string[];
|
|
49
|
+
export { _class_7 as class };
|
|
50
|
+
}
|
|
51
|
+
namespace separator {
|
|
52
|
+
let _class_8: string;
|
|
53
|
+
export { _class_8 as class };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Shape
|
|
5
|
+
'rounded-md',
|
|
6
|
+
|
|
7
|
+
// Size
|
|
8
|
+
'min-w-[12rem]',
|
|
9
|
+
'py-1',
|
|
10
|
+
|
|
11
|
+
// Colors
|
|
12
|
+
'bg-surface-0 dark:bg-surface-700',
|
|
13
|
+
'border border-surface-200 dark:border-surface-700'
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
menu: {
|
|
17
|
+
class: [
|
|
18
|
+
// Spacings and Shape
|
|
19
|
+
'list-none',
|
|
20
|
+
'm-0',
|
|
21
|
+
'p-0',
|
|
22
|
+
'outline-none'
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
menuitem: {
|
|
26
|
+
class: [
|
|
27
|
+
// Position
|
|
28
|
+
'relative'
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
content: ({ context }) => ({
|
|
32
|
+
class: [
|
|
33
|
+
//Shape
|
|
34
|
+
'rounded-none',
|
|
35
|
+
|
|
36
|
+
// Colors
|
|
37
|
+
{
|
|
38
|
+
'text-surface-500 dark:text-white/70': !context.focused && !context.active,
|
|
39
|
+
'text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90': context.focused && !context.active,
|
|
40
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': context.focused && context.active,
|
|
41
|
+
'text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30': !context.focused && context.active
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
// Hover States
|
|
45
|
+
{
|
|
46
|
+
'hover:bg-surface-100 dark:hover:bg-surface-600/80': !context.active,
|
|
47
|
+
'hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80': context.active
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// Transitions
|
|
51
|
+
'transition-shadow',
|
|
52
|
+
'duration-200'
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
action: {
|
|
56
|
+
class: [
|
|
57
|
+
'relative',
|
|
58
|
+
// Flexbox
|
|
59
|
+
|
|
60
|
+
'flex',
|
|
61
|
+
'items-center',
|
|
62
|
+
|
|
63
|
+
// Spacing
|
|
64
|
+
'py-3',
|
|
65
|
+
'px-5',
|
|
66
|
+
|
|
67
|
+
// Color
|
|
68
|
+
'text-surface-700 dark:text-white/80',
|
|
69
|
+
|
|
70
|
+
// Misc
|
|
71
|
+
'no-underline',
|
|
72
|
+
'overflow-hidden',
|
|
73
|
+
'cursor-pointer',
|
|
74
|
+
'select-none'
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
icon: {
|
|
78
|
+
class: [
|
|
79
|
+
// Spacing
|
|
80
|
+
'mr-2',
|
|
81
|
+
|
|
82
|
+
// Color
|
|
83
|
+
'text-surface-600 dark:text-white/70'
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
label: {
|
|
87
|
+
class: ['leading-none']
|
|
88
|
+
},
|
|
89
|
+
submenuicon: {
|
|
90
|
+
class: [
|
|
91
|
+
// Position
|
|
92
|
+
'ml-auto'
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
submenu: {
|
|
96
|
+
class: [
|
|
97
|
+
// Size
|
|
98
|
+
'w-full sm:w-48',
|
|
99
|
+
|
|
100
|
+
// Spacing
|
|
101
|
+
'py-1',
|
|
102
|
+
'm-0',
|
|
103
|
+
'list-none',
|
|
104
|
+
|
|
105
|
+
// Shape
|
|
106
|
+
'shadow-none sm:shadow-md',
|
|
107
|
+
'border-0',
|
|
108
|
+
|
|
109
|
+
// Position
|
|
110
|
+
'static sm:absolute',
|
|
111
|
+
'z-10',
|
|
112
|
+
|
|
113
|
+
// Color
|
|
114
|
+
'bg-surface-0 dark:bg-surface-700'
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
separator: {
|
|
118
|
+
class: 'border-t border-surface-200 dark:border-surface-600 my-1'
|
|
119
|
+
}
|
|
120
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'flex-col': boolean;
|
|
7
|
+
'flex-row flex-1': boolean;
|
|
8
|
+
})[];
|
|
9
|
+
};
|
|
10
|
+
function event({ props, context }: {
|
|
11
|
+
props: any;
|
|
12
|
+
context: any;
|
|
13
|
+
}): {
|
|
14
|
+
class: (string | {
|
|
15
|
+
'flex-row-reverse': boolean;
|
|
16
|
+
'flex-col flex-1': boolean;
|
|
17
|
+
'flex-col-reverse ': boolean;
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
function opposite({ props, context }: {
|
|
21
|
+
props: any;
|
|
22
|
+
context: any;
|
|
23
|
+
}): {
|
|
24
|
+
class: (string | {
|
|
25
|
+
'px-4': boolean;
|
|
26
|
+
'py-4': boolean;
|
|
27
|
+
'text-right'?: undefined;
|
|
28
|
+
'text-left'?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
'text-right': boolean;
|
|
31
|
+
'text-left': boolean;
|
|
32
|
+
'px-4'?: undefined;
|
|
33
|
+
'py-4'?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
};
|
|
36
|
+
function separator({ props }: {
|
|
37
|
+
props: any;
|
|
38
|
+
}): {
|
|
39
|
+
class: (string | {
|
|
40
|
+
'flex-col': boolean;
|
|
41
|
+
'flex-row': boolean;
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
44
|
+
namespace marker {
|
|
45
|
+
let _class: string[];
|
|
46
|
+
export { _class as class };
|
|
47
|
+
}
|
|
48
|
+
function connector({ props }: {
|
|
49
|
+
props: any;
|
|
50
|
+
}): {
|
|
51
|
+
class: (string | {
|
|
52
|
+
'w-[2px]': boolean;
|
|
53
|
+
'w-full h-[2px]': boolean;
|
|
54
|
+
})[];
|
|
55
|
+
};
|
|
56
|
+
function content({ props, context }: {
|
|
57
|
+
props: any;
|
|
58
|
+
context: any;
|
|
59
|
+
}): {
|
|
60
|
+
class: (string | {
|
|
61
|
+
'px-4': boolean;
|
|
62
|
+
'py-4': boolean;
|
|
63
|
+
'text-left'?: undefined;
|
|
64
|
+
'text-right'?: undefined;
|
|
65
|
+
'min-h-0'?: undefined;
|
|
66
|
+
'grow-0'?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
'text-left': boolean;
|
|
69
|
+
'text-right': boolean;
|
|
70
|
+
'px-4'?: undefined;
|
|
71
|
+
'py-4'?: undefined;
|
|
72
|
+
'min-h-0'?: undefined;
|
|
73
|
+
'grow-0'?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
'min-h-0': boolean;
|
|
76
|
+
'grow-0': boolean;
|
|
77
|
+
'px-4'?: undefined;
|
|
78
|
+
'py-4'?: undefined;
|
|
79
|
+
'text-left'?: undefined;
|
|
80
|
+
'text-right'?: undefined;
|
|
81
|
+
})[];
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export default _default;
|