@gluhar/theme 2.0.3 → 3.0.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 +24 -0
- package/README.md +2 -47
- package/dist/module.d.mts +0 -4
- package/dist/module.d.ts +0 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -9
- package/dist/runtime/tailwind/gluharTheme.js +3 -27
- package/dist/runtime/tailwind/handleTailwind.js +1 -5
- package/package.json +3 -6
- package/dist/runtime/presets/lara/accordion/index.d.ts +0 -49
- package/dist/runtime/presets/lara/accordion/index.js +0 -78
- package/dist/runtime/presets/lara/autocomplete/index.d.ts +0 -200
- package/dist/runtime/presets/lara/autocomplete/index.js +0 -259
- package/dist/runtime/presets/lara/avatar/index.d.ts +0 -83
- package/dist/runtime/presets/lara/avatar/index.js +0 -43
- package/dist/runtime/presets/lara/avatargroup/index.d.ts +0 -7
- package/dist/runtime/presets/lara/avatargroup/index.js +0 -5
- package/dist/runtime/presets/lara/badge/index.d.ts +0 -72
- package/dist/runtime/presets/lara/badge/index.js +0 -43
- package/dist/runtime/presets/lara/badgedirective/index.d.ts +0 -50
- package/dist/runtime/presets/lara/badgedirective/index.js +0 -43
- package/dist/runtime/presets/lara/blockui/index.d.ts +0 -11
- package/dist/runtime/presets/lara/blockui/index.js +0 -8
- package/dist/runtime/presets/lara/breadcrumb/index.d.ts +0 -23
- package/dist/runtime/presets/lara/breadcrumb/index.js +0 -64
- package/dist/runtime/presets/lara/button/index.d.ts +0 -3790
- package/dist/runtime/presets/lara/button/index.js +0 -220
- package/dist/runtime/presets/lara/calendar/index.d.ts +0 -334
- package/dist/runtime/presets/lara/calendar/index.js +0 -643
- package/dist/runtime/presets/lara/card/index.d.ts +0 -27
- package/dist/runtime/presets/lara/card/index.js +0 -37
- package/dist/runtime/presets/lara/carousel/index.d.ts +0 -71
- package/dist/runtime/presets/lara/carousel/index.js +0 -149
- package/dist/runtime/presets/lara/cascadeselect/index.d.ts +0 -112
- package/dist/runtime/presets/lara/cascadeselect/index.js +0 -209
- package/dist/runtime/presets/lara/checkbox/index.d.ts +0 -45
- package/dist/runtime/presets/lara/checkbox/index.js +0 -101
- package/dist/runtime/presets/lara/chip/index.d.ts +0 -23
- package/dist/runtime/presets/lara/chip/index.js +0 -45
- package/dist/runtime/presets/lara/chips/index.d.ts +0 -56
- package/dist/runtime/presets/lara/chips/index.js +0 -114
- package/dist/runtime/presets/lara/colorpicker/index.d.ts +0 -51
- package/dist/runtime/presets/lara/colorpicker/index.js +0 -123
- package/dist/runtime/presets/lara/confirmpopup/index.d.ts +0 -39
- package/dist/runtime/presets/lara/confirmpopup/index.js +0 -106
- package/dist/runtime/presets/lara/contextmenu/index.d.ts +0 -72
- package/dist/runtime/presets/lara/contextmenu/index.js +0 -125
- package/dist/runtime/presets/lara/datatable/index.d.ts +0 -695
- package/dist/runtime/presets/lara/datatable/index.js +0 -1170
- package/dist/runtime/presets/lara/dataview/index.d.ts +0 -15
- package/dist/runtime/presets/lara/dataview/index.js +0 -40
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +0 -13
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +0 -62
- package/dist/runtime/presets/lara/deferred/index.d.ts +0 -4
- package/dist/runtime/presets/lara/deferred/index.js +0 -3
- package/dist/runtime/presets/lara/dialog/index.d.ts +0 -79
- package/dist/runtime/presets/lara/dialog/index.js +0 -235
- package/dist/runtime/presets/lara/divider/index.d.ts +0 -192
- package/dist/runtime/presets/lara/divider/index.js +0 -67
- package/dist/runtime/presets/lara/dock/index.d.ts +0 -51
- package/dist/runtime/presets/lara/dock/index.js +0 -93
- package/dist/runtime/presets/lara/dropdown/index.d.ts +0 -207
- package/dist/runtime/presets/lara/dropdown/index.js +0 -265
- package/dist/runtime/presets/lara/fieldset/index.d.ts +0 -87
- package/dist/runtime/presets/lara/fieldset/index.js +0 -84
- package/dist/runtime/presets/lara/fileupload/index.d.ts +0 -70
- package/dist/runtime/presets/lara/fileupload/index.js +0 -173
- package/dist/runtime/presets/lara/floatlabel/index.d.ts +0 -7
- package/dist/runtime/presets/lara/floatlabel/index.js +0 -26
- package/dist/runtime/presets/lara/galleria/index.d.ts +0 -194
- package/dist/runtime/presets/lara/galleria/index.js +0 -306
- package/dist/runtime/presets/lara/global.d.ts +0 -4
- package/dist/runtime/presets/lara/global.js +0 -90
- package/dist/runtime/presets/lara/iconfield/index.d.ts +0 -18
- package/dist/runtime/presets/lara/iconfield/index.js +0 -22
- package/dist/runtime/presets/lara/image/index.d.ts +0 -65
- package/dist/runtime/presets/lara/image/index.js +0 -206
- package/dist/runtime/presets/lara/index.d.ts +0 -187
- package/dist/runtime/presets/lara/index.js +0 -207
- package/dist/runtime/presets/lara/inlinemessage/index.d.ts +0 -55
- package/dist/runtime/presets/lara/inlinemessage/index.js +0 -36
- package/dist/runtime/presets/lara/inplace/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inplace/index.js +0 -27
- package/dist/runtime/presets/lara/inputgroup/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inputgroup/index.js +0 -5
- package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +0 -7
- package/dist/runtime/presets/lara/inputgroupaddon/index.js +0 -28
- package/dist/runtime/presets/lara/inputmask/index.d.ts +0 -27
- package/dist/runtime/presets/lara/inputmask/index.js +0 -34
- package/dist/runtime/presets/lara/inputnumber/index.d.ts +0 -390
- package/dist/runtime/presets/lara/inputnumber/index.js +0 -164
- package/dist/runtime/presets/lara/inputotp/index.d.ts +0 -147
- package/dist/runtime/presets/lara/inputotp/index.js +0 -60
- package/dist/runtime/presets/lara/inputswitch/index.d.ts +0 -67
- package/dist/runtime/presets/lara/inputswitch/index.js +0 -80
- package/dist/runtime/presets/lara/inputtext/index.d.ts +0 -160
- package/dist/runtime/presets/lara/inputtext/index.js +0 -49
- package/dist/runtime/presets/lara/knob/index.d.ts +0 -22
- package/dist/runtime/presets/lara/knob/index.js +0 -44
- package/dist/runtime/presets/lara/listbox/index.d.ts +0 -93
- package/dist/runtime/presets/lara/listbox/index.js +0 -152
- package/dist/runtime/presets/lara/megamenu/index.d.ts +0 -105
- package/dist/runtime/presets/lara/megamenu/index.js +0 -199
- package/dist/runtime/presets/lara/menu/index.d.ts +0 -40
- package/dist/runtime/presets/lara/menu/index.js +0 -96
- package/dist/runtime/presets/lara/menubar/index.d.ts +0 -85
- package/dist/runtime/presets/lara/menubar/index.js +0 -176
- package/dist/runtime/presets/lara/message/index.d.ts +0 -70
- package/dist/runtime/presets/lara/message/index.js +0 -87
- package/dist/runtime/presets/lara/metergroup/index.d.ts +0 -92
- package/dist/runtime/presets/lara/metergroup/index.js +0 -97
- package/dist/runtime/presets/lara/multiselect/index.d.ts +0 -260
- package/dist/runtime/presets/lara/multiselect/index.js +0 -546
- package/dist/runtime/presets/lara/orderlist/index.d.ts +0 -99
- package/dist/runtime/presets/lara/orderlist/index.js +0 -257
- package/dist/runtime/presets/lara/organizationchart/index.d.ts +0 -81
- package/dist/runtime/presets/lara/organizationchart/index.js +0 -138
- package/dist/runtime/presets/lara/overlaypanel/index.d.ts +0 -17
- package/dist/runtime/presets/lara/overlaypanel/index.js +0 -40
- package/dist/runtime/presets/lara/paginator/index.d.ts +0 -280
- package/dist/runtime/presets/lara/paginator/index.js +0 -533
- package/dist/runtime/presets/lara/panel/index.d.ts +0 -39
- package/dist/runtime/presets/lara/panel/index.js +0 -91
- package/dist/runtime/presets/lara/panelmenu/index.d.ts +0 -76
- package/dist/runtime/presets/lara/panelmenu/index.js +0 -127
- package/dist/runtime/presets/lara/password/index.d.ts +0 -181
- package/dist/runtime/presets/lara/password/index.js +0 -118
- package/dist/runtime/presets/lara/picklist/index.d.ts +0 -245
- package/dist/runtime/presets/lara/picklist/index.js +0 -650
- package/dist/runtime/presets/lara/progressbar/index.d.ts +0 -44
- package/dist/runtime/presets/lara/progressbar/index.js +0 -55
- package/dist/runtime/presets/lara/progressspinner/index.d.ts +0 -15
- package/dist/runtime/presets/lara/progressspinner/index.js +0 -51
- package/dist/runtime/presets/lara/radiobutton/index.d.ts +0 -57
- package/dist/runtime/presets/lara/radiobutton/index.js +0 -104
- package/dist/runtime/presets/lara/rating/index.d.ts +0 -49
- package/dist/runtime/presets/lara/rating/index.js +0 -92
- package/dist/runtime/presets/lara/ripple/index.d.ts +0 -8
- package/dist/runtime/presets/lara/ripple/index.js +0 -6
- package/dist/runtime/presets/lara/scrollpanel/index.d.ts +0 -19
- package/dist/runtime/presets/lara/scrollpanel/index.js +0 -77
- package/dist/runtime/presets/lara/scrolltop/index.d.ts +0 -50
- package/dist/runtime/presets/lara/scrolltop/index.js +0 -41
- package/dist/runtime/presets/lara/selectbutton/index.d.ts +0 -56
- package/dist/runtime/presets/lara/selectbutton/index.js +0 -49
- package/dist/runtime/presets/lara/sidebar/index.d.ts +0 -66
- package/dist/runtime/presets/lara/sidebar/index.js +0 -149
- package/dist/runtime/presets/lara/skeleton/index.d.ts +0 -16
- package/dist/runtime/presets/lara/skeleton/index.js +0 -16
- package/dist/runtime/presets/lara/slider/index.d.ts +0 -55
- package/dist/runtime/presets/lara/slider/index.js +0 -137
- package/dist/runtime/presets/lara/speeddial/index.d.ts +0 -3091
- package/dist/runtime/presets/lara/speeddial/index.js +0 -283
- package/dist/runtime/presets/lara/splitbutton/index.d.ts +0 -6749
- package/dist/runtime/presets/lara/splitbutton/index.js +0 -502
- package/dist/runtime/presets/lara/splitter/index.d.ts +0 -30
- package/dist/runtime/presets/lara/splitter/index.js +0 -61
- package/dist/runtime/presets/lara/splitterpanel/index.d.ts +0 -10
- package/dist/runtime/presets/lara/splitterpanel/index.js +0 -5
- package/dist/runtime/presets/lara/stepper/index.d.ts +0 -66
- package/dist/runtime/presets/lara/stepper/index.js +0 -161
- package/dist/runtime/presets/lara/steps/index.d.ts +0 -57
- package/dist/runtime/presets/lara/steps/index.js +0 -111
- package/dist/runtime/presets/lara/tabmenu/index.d.ts +0 -43
- package/dist/runtime/presets/lara/tabmenu/index.js +0 -73
- package/dist/runtime/presets/lara/tabview/index.d.ts +0 -67
- package/dist/runtime/presets/lara/tabview/index.js +0 -156
- package/dist/runtime/presets/lara/tag/index.d.ts +0 -32
- package/dist/runtime/presets/lara/tag/index.js +0 -36
- package/dist/runtime/presets/lara/terminal/index.d.ts +0 -27
- package/dist/runtime/presets/lara/terminal/index.js +0 -60
- package/dist/runtime/presets/lara/textarea/index.d.ts +0 -27
- package/dist/runtime/presets/lara/textarea/index.js +0 -36
- package/dist/runtime/presets/lara/tieredmenu/index.d.ts +0 -56
- package/dist/runtime/presets/lara/tieredmenu/index.js +0 -120
- package/dist/runtime/presets/lara/timeline/index.d.ts +0 -84
- package/dist/runtime/presets/lara/timeline/index.js +0 -81
- package/dist/runtime/presets/lara/toast/index.d.ts +0 -92
- package/dist/runtime/presets/lara/toast/index.js +0 -102
- package/dist/runtime/presets/lara/togglebutton/index.d.ts +0 -72
- package/dist/runtime/presets/lara/togglebutton/index.js +0 -91
- package/dist/runtime/presets/lara/toolbar/index.d.ts +0 -19
- package/dist/runtime/presets/lara/toolbar/index.js +0 -28
- package/dist/runtime/presets/lara/tooltip/index.d.ts +0 -38
- package/dist/runtime/presets/lara/tooltip/index.js +0 -46
- package/dist/runtime/presets/lara/tree/index.d.ts +0 -105
- package/dist/runtime/presets/lara/tree/index.js +0 -258
- package/dist/runtime/presets/lara/treeselect/index.d.ts +0 -181
- package/dist/runtime/presets/lara/treeselect/index.js +0 -352
- package/dist/runtime/presets/lara/treetable/index.d.ts +0 -316
- package/dist/runtime/presets/lara/treetable/index.js +0 -434
- package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +0 -49
- package/dist/runtime/presets/lara/tristatecheckbox/index.js +0 -104
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace panel {
|
|
3
|
-
let _class: string;
|
|
4
|
-
export { _class as class };
|
|
5
|
-
}
|
|
6
|
-
namespace header {
|
|
7
|
-
let _class_1: string[];
|
|
8
|
-
export { _class_1 as class };
|
|
9
|
-
}
|
|
10
|
-
function headercontent({ context, instance }: {
|
|
11
|
-
context: any;
|
|
12
|
-
instance: any;
|
|
13
|
-
}): {
|
|
14
|
-
class: (string | {
|
|
15
|
-
'rounded-br-md rounded-bl-md': boolean;
|
|
16
|
-
'rounded-br-0 rounded-bl-0': any;
|
|
17
|
-
'text-surface-900'?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
'text-surface-900': any;
|
|
20
|
-
'rounded-br-md rounded-bl-md'?: undefined;
|
|
21
|
-
'rounded-br-0 rounded-bl-0'?: undefined;
|
|
22
|
-
})[];
|
|
23
|
-
};
|
|
24
|
-
namespace headeraction {
|
|
25
|
-
let _class_2: string[];
|
|
26
|
-
export { _class_2 as class };
|
|
27
|
-
}
|
|
28
|
-
namespace headerlabel {
|
|
29
|
-
let _class_3: string;
|
|
30
|
-
export { _class_3 as class };
|
|
31
|
-
}
|
|
32
|
-
namespace headerIcon {
|
|
33
|
-
let _class_4: string;
|
|
34
|
-
export { _class_4 as class };
|
|
35
|
-
}
|
|
36
|
-
namespace submenuicon {
|
|
37
|
-
let _class_5: string;
|
|
38
|
-
export { _class_5 as class };
|
|
39
|
-
}
|
|
40
|
-
namespace menucontent {
|
|
41
|
-
let _class_6: string[];
|
|
42
|
-
export { _class_6 as class };
|
|
43
|
-
}
|
|
44
|
-
namespace menu {
|
|
45
|
-
let _class_7: string[];
|
|
46
|
-
export { _class_7 as class };
|
|
47
|
-
}
|
|
48
|
-
namespace content {
|
|
49
|
-
let _class_8: string[];
|
|
50
|
-
export { _class_8 as class };
|
|
51
|
-
}
|
|
52
|
-
function action({ context }: {
|
|
53
|
-
context: any;
|
|
54
|
-
}): {
|
|
55
|
-
class: (string | {
|
|
56
|
-
'bg-surface-200 text-surface-700 dark:text-white/80 dark:bg-surface-600/90': any;
|
|
57
|
-
})[];
|
|
58
|
-
};
|
|
59
|
-
namespace icon {
|
|
60
|
-
let _class_9: string;
|
|
61
|
-
export { _class_9 as class };
|
|
62
|
-
}
|
|
63
|
-
namespace submenu {
|
|
64
|
-
let _class_10: string;
|
|
65
|
-
export { _class_10 as class };
|
|
66
|
-
}
|
|
67
|
-
namespace transition {
|
|
68
|
-
let enterFromClass: string;
|
|
69
|
-
let enterActiveClass: string;
|
|
70
|
-
let enterToClass: string;
|
|
71
|
-
let leaveFromClass: string;
|
|
72
|
-
let leaveActiveClass: string;
|
|
73
|
-
let leaveToClass: string;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export default _default;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
panel: {
|
|
3
|
-
class: 'mb-1'
|
|
4
|
-
},
|
|
5
|
-
header: {
|
|
6
|
-
class: ['rounded-md', 'outline-none', 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50']
|
|
7
|
-
},
|
|
8
|
-
headercontent: ({ context, instance }) => ({
|
|
9
|
-
class: [
|
|
10
|
-
// Shape
|
|
11
|
-
'rounded-t-md',
|
|
12
|
-
{ 'rounded-br-md rounded-bl-md': !context.active || instance.activeItem?.items === undefined, 'rounded-br-0 rounded-bl-0': context.active && instance.activeItem?.items !== undefined },
|
|
13
|
-
|
|
14
|
-
// Color
|
|
15
|
-
'border border-surface-200 dark:border-surface-700',
|
|
16
|
-
'bg-surface-50 dark:bg-surface-800',
|
|
17
|
-
'text-surface-600 dark:text-surface-0/80',
|
|
18
|
-
{ 'text-surface-900': context.active },
|
|
19
|
-
|
|
20
|
-
// States
|
|
21
|
-
'hover:bg-surface-100 dark:hover:bg-surface-700/80',
|
|
22
|
-
'hover:text-surface-900',
|
|
23
|
-
|
|
24
|
-
// Transition
|
|
25
|
-
'transition duration-200 ease-in-out',
|
|
26
|
-
'transition-shadow duration-200'
|
|
27
|
-
]
|
|
28
|
-
}),
|
|
29
|
-
headeraction: {
|
|
30
|
-
class: [
|
|
31
|
-
'relative',
|
|
32
|
-
|
|
33
|
-
// Font
|
|
34
|
-
'font-bold',
|
|
35
|
-
'leading-none',
|
|
36
|
-
|
|
37
|
-
// Flex & Alignments
|
|
38
|
-
'flex items-center',
|
|
39
|
-
|
|
40
|
-
// Spacing
|
|
41
|
-
'p-5',
|
|
42
|
-
|
|
43
|
-
// Misc
|
|
44
|
-
'select-none cursor-pointer no-underline'
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
headerlabel: {
|
|
48
|
-
class: 'leading-none'
|
|
49
|
-
},
|
|
50
|
-
headerIcon: {
|
|
51
|
-
class: 'mr-2'
|
|
52
|
-
},
|
|
53
|
-
submenuicon: {
|
|
54
|
-
class: 'mr-2'
|
|
55
|
-
},
|
|
56
|
-
menucontent: {
|
|
57
|
-
class: [
|
|
58
|
-
// Spacing
|
|
59
|
-
'py-2',
|
|
60
|
-
|
|
61
|
-
// Shape
|
|
62
|
-
'border border-t-0',
|
|
63
|
-
'rounded-t-none rounded-br-md rounded-bl-md',
|
|
64
|
-
|
|
65
|
-
// Color
|
|
66
|
-
'text-surface-700 dark:text-white/80',
|
|
67
|
-
'bg-surface-0 dark:bg-surface-800',
|
|
68
|
-
'border-surface-200 dark:border-surface-700'
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
menu: {
|
|
72
|
-
class: ['outline-none', 'm-0 p-0 list-none']
|
|
73
|
-
},
|
|
74
|
-
content: {
|
|
75
|
-
class: [
|
|
76
|
-
// Shape
|
|
77
|
-
'border-none rounded-none',
|
|
78
|
-
|
|
79
|
-
// Color
|
|
80
|
-
'text-surface-700 dark:text-white/80',
|
|
81
|
-
|
|
82
|
-
// Transition
|
|
83
|
-
'transition-shadow duration-200'
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
action: ({ context }) => ({
|
|
87
|
-
class: [
|
|
88
|
-
'relative',
|
|
89
|
-
|
|
90
|
-
// Font
|
|
91
|
-
'leading-none',
|
|
92
|
-
|
|
93
|
-
// Flex & Alignments
|
|
94
|
-
'flex items-center',
|
|
95
|
-
|
|
96
|
-
// Spacing
|
|
97
|
-
'py-3 px-5',
|
|
98
|
-
|
|
99
|
-
// Color
|
|
100
|
-
'text-surface-700 dark:text-white/80',
|
|
101
|
-
|
|
102
|
-
// States
|
|
103
|
-
'hover:bg-surface-100 dark:hover:bg-surface-700/80 hover:text-surface-700 dark:hover:text-white/80',
|
|
104
|
-
{
|
|
105
|
-
'bg-surface-200 text-surface-700 dark:text-white/80 dark:bg-surface-600/90': context.focused
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
// Misc
|
|
109
|
-
'cursor-pointer no-underline',
|
|
110
|
-
'select-none overflow-hidden'
|
|
111
|
-
]
|
|
112
|
-
}),
|
|
113
|
-
icon: {
|
|
114
|
-
class: 'mr-2'
|
|
115
|
-
},
|
|
116
|
-
submenu: {
|
|
117
|
-
class: 'p-0 pl-4 m-0 list-none'
|
|
118
|
-
},
|
|
119
|
-
transition: {
|
|
120
|
-
enterFromClass: 'max-h-0',
|
|
121
|
-
enterActiveClass: 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
|
|
122
|
-
enterToClass: 'max-h-[1000px]',
|
|
123
|
-
leaveFromClass: 'max-h-[1000px]',
|
|
124
|
-
leaveActiveClass: 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
|
|
125
|
-
leaveToClass: 'max-h-0'
|
|
126
|
-
}
|
|
127
|
-
};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: (string | {
|
|
6
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
7
|
-
'[&>input]:pr-10'?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
'[&>input]:pr-10': any;
|
|
10
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
11
|
-
})[];
|
|
12
|
-
};
|
|
13
|
-
namespace panel {
|
|
14
|
-
let _class: string[];
|
|
15
|
-
export { _class as class };
|
|
16
|
-
}
|
|
17
|
-
namespace meter {
|
|
18
|
-
let _class_1: string[];
|
|
19
|
-
export { _class_1 as class };
|
|
20
|
-
}
|
|
21
|
-
function meterlabel({ instance }: {
|
|
22
|
-
instance: any;
|
|
23
|
-
}): {
|
|
24
|
-
class: (string | {
|
|
25
|
-
'bg-red-500 dark:bg-red-400/50': boolean;
|
|
26
|
-
'bg-orange-500 dark:bg-orange-400/50': boolean;
|
|
27
|
-
'bg-green-500 dark:bg-green-400/50': boolean;
|
|
28
|
-
})[];
|
|
29
|
-
};
|
|
30
|
-
namespace showicon {
|
|
31
|
-
let _class_2: string[];
|
|
32
|
-
export { _class_2 as class };
|
|
33
|
-
}
|
|
34
|
-
namespace hideicon {
|
|
35
|
-
let _class_3: string[];
|
|
36
|
-
export { _class_3 as class };
|
|
37
|
-
}
|
|
38
|
-
namespace input {
|
|
39
|
-
export function root_1({ props, context, parent }: {
|
|
40
|
-
props: any;
|
|
41
|
-
context: any;
|
|
42
|
-
parent: any;
|
|
43
|
-
}): {
|
|
44
|
-
class: (string | {
|
|
45
|
-
'flex-1 w-[1%]': boolean;
|
|
46
|
-
'px-4 py-4'?: undefined;
|
|
47
|
-
'px-2 py-2'?: undefined;
|
|
48
|
-
'p-3'?: undefined;
|
|
49
|
-
'rounded-md'?: undefined;
|
|
50
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
51
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
52
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
53
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
54
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
55
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
56
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
57
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
58
|
-
} | {
|
|
59
|
-
'px-4 py-4': boolean;
|
|
60
|
-
'px-2 py-2': boolean;
|
|
61
|
-
'p-3': boolean;
|
|
62
|
-
'flex-1 w-[1%]'?: undefined;
|
|
63
|
-
'rounded-md'?: undefined;
|
|
64
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
65
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
66
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
67
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
68
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
69
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
70
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
71
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
72
|
-
} | {
|
|
73
|
-
'rounded-md': boolean;
|
|
74
|
-
'flex-1 w-[1%]'?: undefined;
|
|
75
|
-
'px-4 py-4'?: undefined;
|
|
76
|
-
'px-2 py-2'?: undefined;
|
|
77
|
-
'p-3'?: undefined;
|
|
78
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
79
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
80
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
81
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
82
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
83
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
84
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
85
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
86
|
-
} | {
|
|
87
|
-
'first:rounded-l-md rounded-none last:rounded-r-md': boolean;
|
|
88
|
-
'flex-1 w-[1%]'?: undefined;
|
|
89
|
-
'px-4 py-4'?: undefined;
|
|
90
|
-
'px-2 py-2'?: undefined;
|
|
91
|
-
'p-3'?: undefined;
|
|
92
|
-
'rounded-md'?: undefined;
|
|
93
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
94
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
95
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
96
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
97
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
98
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
99
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
100
|
-
} | {
|
|
101
|
-
'border-0 border-y border-l last:border-r': boolean;
|
|
102
|
-
'flex-1 w-[1%]'?: undefined;
|
|
103
|
-
'px-4 py-4'?: undefined;
|
|
104
|
-
'px-2 py-2'?: undefined;
|
|
105
|
-
'p-3'?: undefined;
|
|
106
|
-
'rounded-md'?: undefined;
|
|
107
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
108
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
109
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
110
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
111
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
112
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
113
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
114
|
-
} | {
|
|
115
|
-
'first:ml-0 -ml-px': boolean;
|
|
116
|
-
'flex-1 w-[1%]'?: undefined;
|
|
117
|
-
'px-4 py-4'?: undefined;
|
|
118
|
-
'px-2 py-2'?: undefined;
|
|
119
|
-
'p-3'?: undefined;
|
|
120
|
-
'rounded-md'?: undefined;
|
|
121
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
122
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
123
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
124
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
125
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
126
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
127
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
128
|
-
} | {
|
|
129
|
-
'border-surface-300 dark:border-surface-600': boolean;
|
|
130
|
-
'flex-1 w-[1%]'?: undefined;
|
|
131
|
-
'px-4 py-4'?: undefined;
|
|
132
|
-
'px-2 py-2'?: undefined;
|
|
133
|
-
'p-3'?: undefined;
|
|
134
|
-
'rounded-md'?: undefined;
|
|
135
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
136
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
137
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
138
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
139
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
140
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
141
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
142
|
-
} | {
|
|
143
|
-
'border-red-500 dark:border-red-400': any;
|
|
144
|
-
'flex-1 w-[1%]'?: undefined;
|
|
145
|
-
'px-4 py-4'?: undefined;
|
|
146
|
-
'px-2 py-2'?: undefined;
|
|
147
|
-
'p-3'?: undefined;
|
|
148
|
-
'rounded-md'?: undefined;
|
|
149
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
150
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
151
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
152
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
153
|
-
'hover:border-primary-500 dark:hover:border-primary-400'?: undefined;
|
|
154
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10'?: undefined;
|
|
155
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
156
|
-
} | {
|
|
157
|
-
'hover:border-primary-500 dark:hover:border-primary-400': boolean;
|
|
158
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10': boolean;
|
|
159
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
160
|
-
'flex-1 w-[1%]'?: undefined;
|
|
161
|
-
'px-4 py-4'?: undefined;
|
|
162
|
-
'px-2 py-2'?: undefined;
|
|
163
|
-
'p-3'?: undefined;
|
|
164
|
-
'rounded-md'?: undefined;
|
|
165
|
-
'first:rounded-l-md rounded-none last:rounded-r-md'?: undefined;
|
|
166
|
-
'border-0 border-y border-l last:border-r'?: undefined;
|
|
167
|
-
'first:ml-0 -ml-px'?: undefined;
|
|
168
|
-
'border-surface-300 dark:border-surface-600'?: undefined;
|
|
169
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
170
|
-
})[];
|
|
171
|
-
};
|
|
172
|
-
export { root_1 as root };
|
|
173
|
-
}
|
|
174
|
-
namespace transition {
|
|
175
|
-
let enterFromClass: string;
|
|
176
|
-
let enterActiveClass: string;
|
|
177
|
-
let leaveActiveClass: string;
|
|
178
|
-
let leaveToClass: string;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export default _default;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
'inline-flex relative',
|
|
5
|
-
{
|
|
6
|
-
'opacity-60 select-none pointer-events-none cursor-default': props.disabled
|
|
7
|
-
},
|
|
8
|
-
{ '[&>input]:pr-10': props.toggleMask }
|
|
9
|
-
]
|
|
10
|
-
}),
|
|
11
|
-
panel: {
|
|
12
|
-
class: [
|
|
13
|
-
// Spacing
|
|
14
|
-
'p-5',
|
|
15
|
-
|
|
16
|
-
// Shape
|
|
17
|
-
'border-0 dark:border',
|
|
18
|
-
'shadow-md rounded-md',
|
|
19
|
-
|
|
20
|
-
// Colors
|
|
21
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
22
|
-
'text-surface-700 dark:text-white/80',
|
|
23
|
-
'dark:border-surface-700'
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
meter: {
|
|
27
|
-
class: [
|
|
28
|
-
// Position and Overflow
|
|
29
|
-
'overflow-hidden',
|
|
30
|
-
'relative',
|
|
31
|
-
|
|
32
|
-
// Shape and Size
|
|
33
|
-
'border-0',
|
|
34
|
-
'h-3',
|
|
35
|
-
|
|
36
|
-
// Spacing
|
|
37
|
-
'mb-2',
|
|
38
|
-
|
|
39
|
-
// Colors
|
|
40
|
-
'bg-surface-100 dark:bg-surface-700'
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
meterlabel: ({ instance }) => ({
|
|
44
|
-
class: [
|
|
45
|
-
// Size
|
|
46
|
-
'h-full',
|
|
47
|
-
|
|
48
|
-
// Colors
|
|
49
|
-
{
|
|
50
|
-
'bg-red-500 dark:bg-red-400/50': instance?.meter?.strength == 'weak',
|
|
51
|
-
'bg-orange-500 dark:bg-orange-400/50': instance?.meter?.strength == 'medium',
|
|
52
|
-
'bg-green-500 dark:bg-green-400/50': instance?.meter?.strength == 'strong'
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
// Transitions
|
|
56
|
-
'transition-all duration-1000 ease-in-out'
|
|
57
|
-
]
|
|
58
|
-
}),
|
|
59
|
-
showicon: {
|
|
60
|
-
class: ['absolute top-1/2 right-3 -mt-2 z-10', 'text-surface-600 dark:text-white/70']
|
|
61
|
-
},
|
|
62
|
-
hideicon: {
|
|
63
|
-
class: ['absolute top-1/2 right-3 -mt-2 z-10', 'text-surface-600 dark:text-white/70']
|
|
64
|
-
},
|
|
65
|
-
input: {
|
|
66
|
-
root: ({ props, context, parent }) => ({
|
|
67
|
-
class: [
|
|
68
|
-
// Font
|
|
69
|
-
'font-sans leading-none',
|
|
70
|
-
|
|
71
|
-
// Flex
|
|
72
|
-
{ 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
|
|
73
|
-
|
|
74
|
-
// Spacing
|
|
75
|
-
'm-0',
|
|
76
|
-
{
|
|
77
|
-
'px-4 py-4': props.size == 'large',
|
|
78
|
-
'px-2 py-2': props.size == 'small',
|
|
79
|
-
'p-3': props.size == null
|
|
80
|
-
},
|
|
81
|
-
'w-full',
|
|
82
|
-
|
|
83
|
-
// Shape
|
|
84
|
-
{ 'rounded-md': parent.instance.$name !== 'InputGroup' },
|
|
85
|
-
{ 'first:rounded-l-md rounded-none last:rounded-r-md': parent.instance.$name == 'InputGroup' },
|
|
86
|
-
{ 'border-0 border-y border-l last:border-r': parent.instance.$name == 'InputGroup' },
|
|
87
|
-
{ 'first:ml-0 -ml-px': parent.instance.$name == 'InputGroup' && !props.showButtons },
|
|
88
|
-
|
|
89
|
-
// Colors
|
|
90
|
-
'text-surface-600 dark:text-surface-200',
|
|
91
|
-
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
92
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
93
|
-
'border',
|
|
94
|
-
{ 'border-surface-300 dark:border-surface-600': !parent.props.invalid },
|
|
95
|
-
|
|
96
|
-
// Invalid State
|
|
97
|
-
{ 'border-red-500 dark:border-red-400': parent.props.invalid },
|
|
98
|
-
|
|
99
|
-
// States
|
|
100
|
-
{
|
|
101
|
-
'hover:border-primary-500 dark:hover:border-primary-400': !context.disabled && !parent.props.invalid,
|
|
102
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10': !context.disabled,
|
|
103
|
-
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
// Misc
|
|
107
|
-
'appearance-none',
|
|
108
|
-
'transition-colors duration-200'
|
|
109
|
-
]
|
|
110
|
-
})
|
|
111
|
-
},
|
|
112
|
-
transition: {
|
|
113
|
-
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
114
|
-
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
115
|
-
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
116
|
-
leaveToClass: 'opacity-0'
|
|
117
|
-
}
|
|
118
|
-
};
|