@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,55 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Position and Overflow
|
|
5
|
+
'overflow-hidden',
|
|
6
|
+
'relative',
|
|
7
|
+
|
|
8
|
+
// Shape and Size
|
|
9
|
+
'border-0',
|
|
10
|
+
'h-6',
|
|
11
|
+
'rounded-md',
|
|
12
|
+
|
|
13
|
+
// Colors
|
|
14
|
+
'bg-surface-100 dark:bg-surface-700'
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
value: ({ props }) => ({
|
|
18
|
+
class: [
|
|
19
|
+
// Flexbox & Overflow & Position
|
|
20
|
+
{ 'absolute flex items-center justify-center overflow-hidden': props.mode !== 'indeterminate' },
|
|
21
|
+
|
|
22
|
+
// Colors
|
|
23
|
+
'bg-primary-500 dark:bg-primary-400',
|
|
24
|
+
|
|
25
|
+
// Spacing & Sizing
|
|
26
|
+
'm-0',
|
|
27
|
+
{ 'h-full w-0': props.mode !== 'indeterminate' },
|
|
28
|
+
|
|
29
|
+
// Shape
|
|
30
|
+
'border-0',
|
|
31
|
+
|
|
32
|
+
// Transitions
|
|
33
|
+
{
|
|
34
|
+
'transition-width duration-1000 ease-in-out': props.mode !== 'indeterminate',
|
|
35
|
+
'progressbar-value-animate': props.mode == 'indeterminate'
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
// Before & After (indeterminate)
|
|
39
|
+
{
|
|
40
|
+
'before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ': props.mode == 'indeterminate',
|
|
41
|
+
'after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000': props.mode == 'indeterminate'
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
label: {
|
|
46
|
+
class: [
|
|
47
|
+
// Flexbox
|
|
48
|
+
'inline-flex',
|
|
49
|
+
|
|
50
|
+
// Font and Text
|
|
51
|
+
'text-white dark:text-surface-900',
|
|
52
|
+
'leading-6'
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace spinner {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace circle {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Position
|
|
5
|
+
'relative',
|
|
6
|
+
'mx-auto',
|
|
7
|
+
|
|
8
|
+
// Sizing
|
|
9
|
+
'w-28',
|
|
10
|
+
'h-28',
|
|
11
|
+
|
|
12
|
+
// Flexbox
|
|
13
|
+
'inline-block',
|
|
14
|
+
|
|
15
|
+
// Pseudo-Elements
|
|
16
|
+
'before:block',
|
|
17
|
+
'before:pt-full'
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
spinner: {
|
|
21
|
+
class: [
|
|
22
|
+
// Position
|
|
23
|
+
'absolute',
|
|
24
|
+
'top-0',
|
|
25
|
+
'bottom-0',
|
|
26
|
+
'left-0',
|
|
27
|
+
'right-0',
|
|
28
|
+
'm-auto',
|
|
29
|
+
|
|
30
|
+
// Sizing
|
|
31
|
+
'w-full',
|
|
32
|
+
'h-full',
|
|
33
|
+
|
|
34
|
+
// Transformations
|
|
35
|
+
'transform',
|
|
36
|
+
'origin-center',
|
|
37
|
+
|
|
38
|
+
// Animations
|
|
39
|
+
'animate-spin'
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
circle: {
|
|
43
|
+
class: [
|
|
44
|
+
// Colors
|
|
45
|
+
'text-red-500',
|
|
46
|
+
|
|
47
|
+
// Misc
|
|
48
|
+
'progress-spinner-circle'
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
function box({ props }: {
|
|
7
|
+
props: any;
|
|
8
|
+
}): {
|
|
9
|
+
class: (string | {
|
|
10
|
+
'text-surface-700 dark:text-white/80': boolean;
|
|
11
|
+
'bg-surface-0 dark:bg-surface-900': boolean;
|
|
12
|
+
'border-surface-300 dark:border-surface-700': boolean;
|
|
13
|
+
'border-primary-500 dark:border-primary-400': boolean;
|
|
14
|
+
'bg-primary-500 dark:bg-primary-400': boolean;
|
|
15
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
16
|
+
'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
|
|
17
|
+
'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300'?: undefined;
|
|
18
|
+
'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20'?: undefined;
|
|
19
|
+
'opacity-60 cursor-default'?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
'border-red-500 dark:border-red-400': any;
|
|
22
|
+
'text-surface-700 dark:text-white/80'?: undefined;
|
|
23
|
+
'bg-surface-0 dark:bg-surface-900'?: undefined;
|
|
24
|
+
'border-surface-300 dark:border-surface-700'?: undefined;
|
|
25
|
+
'border-primary-500 dark:border-primary-400'?: undefined;
|
|
26
|
+
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
27
|
+
'peer-hover:border-primary-500 dark:peer-hover:border-primary-400'?: undefined;
|
|
28
|
+
'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300'?: undefined;
|
|
29
|
+
'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20'?: undefined;
|
|
30
|
+
'opacity-60 cursor-default'?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': boolean;
|
|
33
|
+
'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300': boolean;
|
|
34
|
+
'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20': boolean;
|
|
35
|
+
'opacity-60 cursor-default': any;
|
|
36
|
+
'text-surface-700 dark:text-white/80'?: undefined;
|
|
37
|
+
'bg-surface-0 dark:bg-surface-900'?: undefined;
|
|
38
|
+
'border-surface-300 dark:border-surface-700'?: undefined;
|
|
39
|
+
'border-primary-500 dark:border-primary-400'?: undefined;
|
|
40
|
+
'bg-primary-500 dark:bg-primary-400'?: undefined;
|
|
41
|
+
'border-red-500 dark:border-red-400'?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
44
|
+
namespace input {
|
|
45
|
+
let _class_1: string[];
|
|
46
|
+
export { _class_1 as class };
|
|
47
|
+
}
|
|
48
|
+
function icon({ props }: {
|
|
49
|
+
props: any;
|
|
50
|
+
}): {
|
|
51
|
+
class: (string | {
|
|
52
|
+
'backface-hidden scale-10 invisible': boolean;
|
|
53
|
+
'transform visible scale-[1.1]': boolean;
|
|
54
|
+
})[];
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Flexbox & Alignment
|
|
7
|
+
'inline-flex',
|
|
8
|
+
'align-bottom',
|
|
9
|
+
|
|
10
|
+
// Size
|
|
11
|
+
'w-[1.571rem] h-[1.571rem]',
|
|
12
|
+
|
|
13
|
+
// Misc
|
|
14
|
+
'cursor-pointer',
|
|
15
|
+
'select-none'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
box: ({ props }) => ({
|
|
19
|
+
class: [
|
|
20
|
+
// Flexbox
|
|
21
|
+
'flex justify-center items-center',
|
|
22
|
+
|
|
23
|
+
// Size
|
|
24
|
+
'w-[1.571rem] h-[1.571rem]',
|
|
25
|
+
|
|
26
|
+
// Shape
|
|
27
|
+
'border-2',
|
|
28
|
+
'rounded-full',
|
|
29
|
+
|
|
30
|
+
// Transition
|
|
31
|
+
'transition duration-200 ease-in-out',
|
|
32
|
+
|
|
33
|
+
// Colors
|
|
34
|
+
{
|
|
35
|
+
'text-surface-700 dark:text-white/80': props.value !== props.modelValue && props.value !== undefined,
|
|
36
|
+
'bg-surface-0 dark:bg-surface-900': props.value !== props.modelValue && props.value !== undefined,
|
|
37
|
+
'border-surface-300 dark:border-surface-700': props.value !== props.modelValue && props.value !== undefined && !props.invalid,
|
|
38
|
+
'border-primary-500 dark:border-primary-400': props.value == props.modelValue && props.value !== undefined,
|
|
39
|
+
'bg-primary-500 dark:bg-primary-400': props.value == props.modelValue && props.value !== undefined
|
|
40
|
+
},
|
|
41
|
+
// Invalid State
|
|
42
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
43
|
+
|
|
44
|
+
// States
|
|
45
|
+
{
|
|
46
|
+
'peer-hover:border-primary-500 dark:peer-hover:border-primary-400': !props.disabled && !props.invalid,
|
|
47
|
+
'peer-hover:border-primary-600 dark:peer-hover:border-primary-300 peer-hover:bg-primary-600 dark:peer-hover:bg-primary-300': !props.disabled && props.value == props.modelValue && props.value !== undefined,
|
|
48
|
+
'peer-focus-visible:border-primary-500 dark:peer-focus-visible:border-primary-400 peer-focus-visible:ring-2 peer-focus-visible:ring-primary-400/20 dark:peer-focus-visible:ring-primary-300/20': !props.disabled,
|
|
49
|
+
'opacity-60 cursor-default': props.disabled
|
|
50
|
+
}
|
|
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-md',
|
|
73
|
+
'outline-none',
|
|
74
|
+
'border-2 border-surface-200 dark:border-surface-700',
|
|
75
|
+
|
|
76
|
+
// Misc
|
|
77
|
+
'appearance-none',
|
|
78
|
+
'cursor-pointer'
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
icon: ({ props }) => ({
|
|
82
|
+
class: [
|
|
83
|
+
'block',
|
|
84
|
+
|
|
85
|
+
// Shape
|
|
86
|
+
'rounded-full',
|
|
87
|
+
|
|
88
|
+
// Size
|
|
89
|
+
'w-[0.857rem] h-[0.857rem]',
|
|
90
|
+
|
|
91
|
+
// Colors
|
|
92
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
93
|
+
|
|
94
|
+
// Conditions
|
|
95
|
+
{
|
|
96
|
+
'backface-hidden scale-10 invisible': props.value !== props.modelValue,
|
|
97
|
+
'transform visible scale-[1.1]': props.value == props.modelValue
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
// Transition
|
|
101
|
+
'transition duration-200'
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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 cancelitem({ context }: {
|
|
10
|
+
context: any;
|
|
11
|
+
}): {
|
|
12
|
+
class: (string | {
|
|
13
|
+
'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': any;
|
|
14
|
+
})[];
|
|
15
|
+
};
|
|
16
|
+
namespace cancelicon {
|
|
17
|
+
let _class: string[];
|
|
18
|
+
export { _class as class };
|
|
19
|
+
}
|
|
20
|
+
function item({ props, context }: {
|
|
21
|
+
props: any;
|
|
22
|
+
context: any;
|
|
23
|
+
}): {
|
|
24
|
+
class: (string | {
|
|
25
|
+
'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': any;
|
|
26
|
+
'cursor-pointer'?: undefined;
|
|
27
|
+
'cursor-default'?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
'cursor-pointer': boolean;
|
|
30
|
+
'cursor-default': any;
|
|
31
|
+
'outline-none ring ring-primary-500/50 dark:ring-primary-400/50'?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
};
|
|
34
|
+
function officon({ props }: {
|
|
35
|
+
props: any;
|
|
36
|
+
}): {
|
|
37
|
+
class: (string | {
|
|
38
|
+
'hover:text-primary-500 dark:hover:text-primary-400': boolean;
|
|
39
|
+
})[];
|
|
40
|
+
};
|
|
41
|
+
function onicon({ props }: {
|
|
42
|
+
props: any;
|
|
43
|
+
}): {
|
|
44
|
+
class: (string | {
|
|
45
|
+
'hover:text-primary-600 dark:hover:text-primary-300': boolean;
|
|
46
|
+
})[];
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Flex & Alignment
|
|
7
|
+
'flex items-center',
|
|
8
|
+
'gap-2',
|
|
9
|
+
|
|
10
|
+
// Misc
|
|
11
|
+
{
|
|
12
|
+
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}),
|
|
16
|
+
cancelitem: ({ context }) => ({
|
|
17
|
+
class: [
|
|
18
|
+
// Flex & Alignment
|
|
19
|
+
'inline-flex items-center',
|
|
20
|
+
|
|
21
|
+
//State
|
|
22
|
+
{
|
|
23
|
+
'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': context.focused
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// Misc
|
|
27
|
+
'cursor-pointer'
|
|
28
|
+
]
|
|
29
|
+
}),
|
|
30
|
+
cancelicon: {
|
|
31
|
+
class: [
|
|
32
|
+
// Size
|
|
33
|
+
'w-5 h-5',
|
|
34
|
+
|
|
35
|
+
// Color
|
|
36
|
+
'text-red-500 dark:text-red-400',
|
|
37
|
+
|
|
38
|
+
// State
|
|
39
|
+
'hover:text-red-600 dark:hover:text-red-300',
|
|
40
|
+
|
|
41
|
+
// Transition
|
|
42
|
+
'transition duration-200 ease-in'
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
item: ({ props, context }) => ({
|
|
46
|
+
class: [
|
|
47
|
+
// Flex & Alignment
|
|
48
|
+
'inline-flex items-center',
|
|
49
|
+
|
|
50
|
+
// State
|
|
51
|
+
{
|
|
52
|
+
'outline-none ring ring-primary-500/50 dark:ring-primary-400/50': context.focused
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
// Misc
|
|
56
|
+
{
|
|
57
|
+
'cursor-pointer': !props.readonly,
|
|
58
|
+
'cursor-default': props.readonly
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
officon: ({ props }) => ({
|
|
63
|
+
class: [
|
|
64
|
+
// Size
|
|
65
|
+
'w-5 h-5',
|
|
66
|
+
|
|
67
|
+
// Color
|
|
68
|
+
'text-surface-700 dark:text-surface-0/80',
|
|
69
|
+
|
|
70
|
+
// State
|
|
71
|
+
{ 'hover:text-primary-500 dark:hover:text-primary-400': !props.readonly },
|
|
72
|
+
|
|
73
|
+
// Transition
|
|
74
|
+
'transition duration-200 ease-in'
|
|
75
|
+
]
|
|
76
|
+
}),
|
|
77
|
+
onicon: ({ props }) => ({
|
|
78
|
+
class: [
|
|
79
|
+
// Size
|
|
80
|
+
'w-5 h-5',
|
|
81
|
+
|
|
82
|
+
// Color
|
|
83
|
+
'text-primary-500 dark:text-primary-400',
|
|
84
|
+
|
|
85
|
+
// State
|
|
86
|
+
{ 'hover:text-primary-600 dark:hover:text-primary-300': !props.readonly },
|
|
87
|
+
|
|
88
|
+
// Transition
|
|
89
|
+
'transition duration-200 ease-in'
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace wrapper {
|
|
3
|
+
let _class: string[];
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace content {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace barX {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
namespace barY {
|
|
15
|
+
let _class_3: string[];
|
|
16
|
+
export { _class_3 as class };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: {
|
|
3
|
+
class: [
|
|
4
|
+
// Size & Position
|
|
5
|
+
'h-full w-full',
|
|
6
|
+
|
|
7
|
+
// Layering
|
|
8
|
+
'z-[1]',
|
|
9
|
+
|
|
10
|
+
// Spacing
|
|
11
|
+
'overflow-hidden',
|
|
12
|
+
|
|
13
|
+
// Misc
|
|
14
|
+
'relative float-left'
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
content: {
|
|
18
|
+
class: [
|
|
19
|
+
// Size & Spacing
|
|
20
|
+
'h-[calc(100%+18px)] w-[calc(100%+18px)] pr-[18px] pb-[18px] pl-0 pt-0',
|
|
21
|
+
|
|
22
|
+
// Overflow & Scrollbar
|
|
23
|
+
'overflow-scroll scrollbar-none',
|
|
24
|
+
|
|
25
|
+
// Box Model
|
|
26
|
+
'box-border',
|
|
27
|
+
|
|
28
|
+
// Position
|
|
29
|
+
'relative',
|
|
30
|
+
|
|
31
|
+
// Webkit Specific
|
|
32
|
+
'[&::-webkit-scrollbar]:hidden'
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
barX: {
|
|
36
|
+
class: [
|
|
37
|
+
// Size & Position
|
|
38
|
+
'h-[9px] bottom-0',
|
|
39
|
+
|
|
40
|
+
// Appearance
|
|
41
|
+
'bg-surface-50 dark:bg-surface-700 rounded',
|
|
42
|
+
|
|
43
|
+
// Interactivity
|
|
44
|
+
'cursor-pointer',
|
|
45
|
+
|
|
46
|
+
// Visibility & Layering
|
|
47
|
+
'invisible z-20',
|
|
48
|
+
|
|
49
|
+
// Transition
|
|
50
|
+
'transition duration-[250ms] ease-linear',
|
|
51
|
+
|
|
52
|
+
// Misc
|
|
53
|
+
'relative'
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
barY: {
|
|
57
|
+
class: [
|
|
58
|
+
// Size & Position
|
|
59
|
+
'w-[9px] top-0',
|
|
60
|
+
|
|
61
|
+
// Appearance
|
|
62
|
+
'bg-surface-50 dark:bg-surface-700 rounded',
|
|
63
|
+
|
|
64
|
+
// Interactivity
|
|
65
|
+
'cursor-pointer',
|
|
66
|
+
|
|
67
|
+
// Visibility & Layering
|
|
68
|
+
'z-20',
|
|
69
|
+
|
|
70
|
+
// Transition
|
|
71
|
+
'transition duration-[250ms] ease-linear',
|
|
72
|
+
|
|
73
|
+
// Misc
|
|
74
|
+
'relative'
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
sticky: boolean;
|
|
7
|
+
fixed: boolean;
|
|
8
|
+
'rounded-md h-8 w-8'?: undefined;
|
|
9
|
+
'h-12 w-12 rounded-full shadow-md'?: undefined;
|
|
10
|
+
'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
11
|
+
'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
12
|
+
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
13
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
'rounded-md h-8 w-8': boolean;
|
|
16
|
+
'h-12 w-12 rounded-full shadow-md': boolean;
|
|
17
|
+
sticky?: undefined;
|
|
18
|
+
fixed?: undefined;
|
|
19
|
+
'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
20
|
+
'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
21
|
+
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
22
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300': boolean;
|
|
25
|
+
'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300': boolean;
|
|
26
|
+
sticky?: undefined;
|
|
27
|
+
fixed?: undefined;
|
|
28
|
+
'rounded-md h-8 w-8'?: undefined;
|
|
29
|
+
'h-12 w-12 rounded-full shadow-md'?: undefined;
|
|
30
|
+
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
31
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
'hover:bg-primary-600 dark:hover:bg-primary-300': boolean;
|
|
34
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300': boolean;
|
|
35
|
+
sticky?: undefined;
|
|
36
|
+
fixed?: undefined;
|
|
37
|
+
'rounded-md h-8 w-8'?: undefined;
|
|
38
|
+
'h-12 w-12 rounded-full shadow-md'?: undefined;
|
|
39
|
+
'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
40
|
+
'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300'?: undefined;
|
|
41
|
+
})[];
|
|
42
|
+
};
|
|
43
|
+
namespace transition {
|
|
44
|
+
let enterFromClass: string;
|
|
45
|
+
let enterActiveClass: string;
|
|
46
|
+
let leaveActiveClass: string;
|
|
47
|
+
let leaveToClass: string;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Flex & Alignment
|
|
5
|
+
'flex items-center justify-center',
|
|
6
|
+
|
|
7
|
+
// Positioning
|
|
8
|
+
{
|
|
9
|
+
sticky: props.target === 'parent',
|
|
10
|
+
fixed: props.target === 'window'
|
|
11
|
+
},
|
|
12
|
+
'bottom-[20px] right-[20px]',
|
|
13
|
+
'ml-auto',
|
|
14
|
+
|
|
15
|
+
// Shape & Size
|
|
16
|
+
{
|
|
17
|
+
'rounded-md h-8 w-8': props.target === 'parent',
|
|
18
|
+
'h-12 w-12 rounded-full shadow-md': props.target === 'window'
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// Color
|
|
22
|
+
'text-white dark:text-surface-900',
|
|
23
|
+
{
|
|
24
|
+
'bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300': props.target === 'parent',
|
|
25
|
+
'bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300': props.target === 'window'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// States
|
|
29
|
+
{
|
|
30
|
+
'hover:bg-primary-600 dark:hover:bg-primary-300': props.target === 'parent',
|
|
31
|
+
'hover:bg-surface-600 dark:hover:bg-surface-300': props.target === 'window'
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}),
|
|
35
|
+
transition: {
|
|
36
|
+
enterFromClass: 'opacity-0',
|
|
37
|
+
enterActiveClass: 'transition-opacity duration-150',
|
|
38
|
+
leaveActiveClass: 'transition-opacity duration-150',
|
|
39
|
+
leaveToClass: 'opacity-0'
|
|
40
|
+
}
|
|
41
|
+
};
|