@gluhar/theme 2.0.2 → 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 +32 -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
- package/dist/runtime/styles/core.css +0 -27
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: {
|
|
6
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
7
|
-
}[];
|
|
8
|
-
};
|
|
9
|
-
function button({ context, props }: {
|
|
10
|
-
context: any;
|
|
11
|
-
props: any;
|
|
12
|
-
}): {
|
|
13
|
-
class: (string | {
|
|
14
|
-
'bg-surface-0 dark:bg-surface-900': boolean;
|
|
15
|
-
'text-surface-700 dark:text-white/80': boolean;
|
|
16
|
-
'border-surface-200 dark:border-surface-700': boolean;
|
|
17
|
-
'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900': any;
|
|
18
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
19
|
-
'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
|
|
20
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
21
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
'border-red-500 dark:border-red-400': any;
|
|
24
|
-
'bg-surface-0 dark:bg-surface-900'?: undefined;
|
|
25
|
-
'text-surface-700 dark:text-white/80'?: undefined;
|
|
26
|
-
'border-surface-200 dark:border-surface-700'?: undefined;
|
|
27
|
-
'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
|
|
28
|
-
'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
|
|
29
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
30
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
'hover:bg-surface-50 dark:hover:bg-surface-800/80': boolean;
|
|
33
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300': any;
|
|
34
|
-
'bg-surface-0 dark:bg-surface-900'?: undefined;
|
|
35
|
-
'text-surface-700 dark:text-white/80'?: undefined;
|
|
36
|
-
'border-surface-200 dark:border-surface-700'?: undefined;
|
|
37
|
-
'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
|
|
38
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
39
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
40
|
-
} | {
|
|
41
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
42
|
-
'bg-surface-0 dark:bg-surface-900'?: undefined;
|
|
43
|
-
'text-surface-700 dark:text-white/80'?: undefined;
|
|
44
|
-
'border-surface-200 dark:border-surface-700'?: undefined;
|
|
45
|
-
'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900'?: undefined;
|
|
46
|
-
'border-red-500 dark:border-red-400'?: undefined;
|
|
47
|
-
'hover:bg-surface-50 dark:hover:bg-surface-800/80'?: undefined;
|
|
48
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300'?: undefined;
|
|
49
|
-
})[];
|
|
50
|
-
};
|
|
51
|
-
namespace label {
|
|
52
|
-
let _class: string;
|
|
53
|
-
export { _class as class };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }]
|
|
4
|
-
}),
|
|
5
|
-
button: ({ context, props }) => ({
|
|
6
|
-
class: [
|
|
7
|
-
'relative',
|
|
8
|
-
// Font
|
|
9
|
-
'leading-none',
|
|
10
|
-
|
|
11
|
-
// Flex Alignment
|
|
12
|
-
'inline-flex items-center align-bottom text-center',
|
|
13
|
-
|
|
14
|
-
// Spacing
|
|
15
|
-
'px-4 py-3',
|
|
16
|
-
|
|
17
|
-
// Shape
|
|
18
|
-
'border border-r-0',
|
|
19
|
-
'first:rounded-l-md first:rounded-tr-none first:rounded-br-none',
|
|
20
|
-
'last:border-r last:rounded-tl-none last:rounded-bl-none last:rounded-r-md',
|
|
21
|
-
|
|
22
|
-
// Color
|
|
23
|
-
{
|
|
24
|
-
'bg-surface-0 dark:bg-surface-900': !context.active,
|
|
25
|
-
'text-surface-700 dark:text-white/80': !context.active,
|
|
26
|
-
'border-surface-200 dark:border-surface-700': !context.active && !props.invalid,
|
|
27
|
-
'bg-primary-500 dark:bg-primary-400 border-primary-500 dark:border-primary-400 text-white dark:text-surface-900': context.active
|
|
28
|
-
},
|
|
29
|
-
// Invalid State
|
|
30
|
-
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
31
|
-
|
|
32
|
-
// States
|
|
33
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50 focus:z-10',
|
|
34
|
-
{
|
|
35
|
-
'hover:bg-surface-50 dark:hover:bg-surface-800/80': !context.active && !props.invalid,
|
|
36
|
-
'hover:bg-primary-600 dark:hover:bg-primary-300': context.active
|
|
37
|
-
},
|
|
38
|
-
{ 'opacity-60 select-none pointer-events-none cursor-default': context.disabled },
|
|
39
|
-
// Transition
|
|
40
|
-
'transition duration-200',
|
|
41
|
-
|
|
42
|
-
// Misc
|
|
43
|
-
'cursor-pointer select-none overflow-hidden'
|
|
44
|
-
]
|
|
45
|
-
}),
|
|
46
|
-
label: {
|
|
47
|
-
class: 'font-bold'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: (string | {
|
|
6
|
-
'!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': boolean;
|
|
7
|
-
'h-full w-80'?: undefined;
|
|
8
|
-
'h-auto w-full'?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
'h-full w-80': boolean;
|
|
11
|
-
'h-auto w-full': boolean;
|
|
12
|
-
'!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0'?: undefined;
|
|
13
|
-
})[];
|
|
14
|
-
};
|
|
15
|
-
namespace header {
|
|
16
|
-
let _class: string[];
|
|
17
|
-
export { _class as class };
|
|
18
|
-
}
|
|
19
|
-
namespace title {
|
|
20
|
-
let _class_1: string[];
|
|
21
|
-
export { _class_1 as class };
|
|
22
|
-
}
|
|
23
|
-
namespace icons {
|
|
24
|
-
let _class_2: string[];
|
|
25
|
-
export { _class_2 as class };
|
|
26
|
-
}
|
|
27
|
-
namespace closeButton {
|
|
28
|
-
let _class_3: string[];
|
|
29
|
-
export { _class_3 as class };
|
|
30
|
-
}
|
|
31
|
-
namespace closeButtonIcon {
|
|
32
|
-
let _class_4: string[];
|
|
33
|
-
export { _class_4 as class };
|
|
34
|
-
}
|
|
35
|
-
namespace content {
|
|
36
|
-
let _class_5: string[];
|
|
37
|
-
export { _class_5 as class };
|
|
38
|
-
}
|
|
39
|
-
function mask({ props }: {
|
|
40
|
-
props: any;
|
|
41
|
-
}): {
|
|
42
|
-
class: (string | {
|
|
43
|
-
'p-5': boolean;
|
|
44
|
-
'has-[.mask-active]:bg-transparent bg-black/40'?: undefined;
|
|
45
|
-
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm'?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
'has-[.mask-active]:bg-transparent bg-black/40': any;
|
|
48
|
-
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': any;
|
|
49
|
-
'p-5'?: undefined;
|
|
50
|
-
})[];
|
|
51
|
-
};
|
|
52
|
-
function transition({ props }: {
|
|
53
|
-
props: any;
|
|
54
|
-
}): {
|
|
55
|
-
enterFromClass: string;
|
|
56
|
-
leaveToClass: string;
|
|
57
|
-
enterActiveClass?: undefined;
|
|
58
|
-
leaveActiveClass?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
enterFromClass: string;
|
|
61
|
-
enterActiveClass: string;
|
|
62
|
-
leaveActiveClass: string;
|
|
63
|
-
leaveToClass: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export default _default;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
// Flexbox
|
|
5
|
-
'flex flex-col',
|
|
6
|
-
|
|
7
|
-
// Position
|
|
8
|
-
'relative',
|
|
9
|
-
{ '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full' },
|
|
10
|
-
|
|
11
|
-
// Size
|
|
12
|
-
{
|
|
13
|
-
'h-full w-80': props.position == 'left' || props.position == 'right',
|
|
14
|
-
'h-auto w-full': props.position == 'top' || props.position == 'bottom'
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
// Shape
|
|
18
|
-
'border-0 dark:border',
|
|
19
|
-
'shadow-lg',
|
|
20
|
-
|
|
21
|
-
// Colors
|
|
22
|
-
'bg-surface-0 dark:bg-surface-800',
|
|
23
|
-
'text-surface-700 dark:text-white/80',
|
|
24
|
-
'dark:border-surface-700',
|
|
25
|
-
|
|
26
|
-
// Transitions
|
|
27
|
-
'transition-transform',
|
|
28
|
-
'duration-300',
|
|
29
|
-
|
|
30
|
-
// Misc
|
|
31
|
-
'pointer-events-auto'
|
|
32
|
-
]
|
|
33
|
-
}),
|
|
34
|
-
header: {
|
|
35
|
-
class: [
|
|
36
|
-
// Flexbox and Alignment
|
|
37
|
-
'flex items-center justify-between',
|
|
38
|
-
'shrink-0',
|
|
39
|
-
|
|
40
|
-
// Spacing
|
|
41
|
-
'p-5',
|
|
42
|
-
|
|
43
|
-
// Colors
|
|
44
|
-
'bg-surface-0 dark:bg-surface-800',
|
|
45
|
-
'text-surface-700 dark:text-surface-0/80'
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
title: {
|
|
49
|
-
class: ['font-bold text-lg']
|
|
50
|
-
},
|
|
51
|
-
icons: {
|
|
52
|
-
class: ['flex items-center']
|
|
53
|
-
},
|
|
54
|
-
closeButton: {
|
|
55
|
-
class: [
|
|
56
|
-
'relative',
|
|
57
|
-
|
|
58
|
-
// Flexbox and Alignment
|
|
59
|
-
'flex items-center justify-center',
|
|
60
|
-
|
|
61
|
-
// Size and Spacing
|
|
62
|
-
'mr-2',
|
|
63
|
-
'last:mr-0',
|
|
64
|
-
'w-8 h-8',
|
|
65
|
-
|
|
66
|
-
// Shape
|
|
67
|
-
'border-0',
|
|
68
|
-
'rounded-full',
|
|
69
|
-
|
|
70
|
-
// Colors
|
|
71
|
-
'text-surface-500',
|
|
72
|
-
'bg-transparent',
|
|
73
|
-
|
|
74
|
-
// Transitions
|
|
75
|
-
'transition duration-200 ease-in-out',
|
|
76
|
-
|
|
77
|
-
// States
|
|
78
|
-
'hover:text-surface-700 dark:hover:text-white/80',
|
|
79
|
-
'hover:bg-surface-100 dark:hover:bg-surface-800/80',
|
|
80
|
-
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-inset',
|
|
81
|
-
'focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
|
|
82
|
-
|
|
83
|
-
// Misc
|
|
84
|
-
'overflow-hidden'
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
closeButtonIcon: {
|
|
88
|
-
class: [
|
|
89
|
-
// Display
|
|
90
|
-
'inline-block',
|
|
91
|
-
|
|
92
|
-
// Size
|
|
93
|
-
'w-4',
|
|
94
|
-
'h-4'
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
content: {
|
|
98
|
-
class: [
|
|
99
|
-
// Spacing and Size
|
|
100
|
-
'p-5',
|
|
101
|
-
'pt-0',
|
|
102
|
-
'h-full',
|
|
103
|
-
'w-full',
|
|
104
|
-
|
|
105
|
-
// Growth and Overflow
|
|
106
|
-
'grow',
|
|
107
|
-
'overflow-y-auto'
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
mask: ({ props }) => ({
|
|
111
|
-
class: [
|
|
112
|
-
// Transitions
|
|
113
|
-
'transition-all',
|
|
114
|
-
'duration-300',
|
|
115
|
-
{ 'p-5': !props.position == 'full' },
|
|
116
|
-
|
|
117
|
-
// Background and Effects
|
|
118
|
-
{ 'has-[.mask-active]:bg-transparent bg-black/40': props.modal, 'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': props.modal }
|
|
119
|
-
]
|
|
120
|
-
}),
|
|
121
|
-
transition: ({ props }) => {
|
|
122
|
-
return props.position === 'top'
|
|
123
|
-
? {
|
|
124
|
-
enterFromClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active',
|
|
125
|
-
leaveToClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active'
|
|
126
|
-
}
|
|
127
|
-
: props.position === 'bottom'
|
|
128
|
-
? {
|
|
129
|
-
enterFromClass: 'translate-x-0 translate-y-full translate-z-0 mask-active',
|
|
130
|
-
leaveToClass: 'translate-x-0 translate-y-full translate-z-0 mask-active'
|
|
131
|
-
}
|
|
132
|
-
: props.position === 'left'
|
|
133
|
-
? {
|
|
134
|
-
enterFromClass: '-translate-x-full translate-y-0 translate-z-0 mask-active',
|
|
135
|
-
leaveToClass: '-translate-x-full translate-y-0 translate-z-0 mask-active'
|
|
136
|
-
}
|
|
137
|
-
: props.position === 'right'
|
|
138
|
-
? {
|
|
139
|
-
enterFromClass: 'translate-x-full translate-y-0 translate-z-0 mask-active',
|
|
140
|
-
leaveToClass: 'translate-x-full translate-y-0 translate-z-0 mask-active'
|
|
141
|
-
}
|
|
142
|
-
: {
|
|
143
|
-
enterFromClass: 'opacity-0 mask-active',
|
|
144
|
-
enterActiveClass: 'transition-opacity duration-400 ease-in',
|
|
145
|
-
leaveActiveClass: 'transition-opacity duration-400 ease-in',
|
|
146
|
-
leaveToClass: 'opacity-0 mask-active'
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: (string | {
|
|
6
|
-
'animate-pulse': boolean;
|
|
7
|
-
'rounded-full'?: undefined;
|
|
8
|
-
'rounded-md'?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
'rounded-full': boolean;
|
|
11
|
-
'rounded-md': boolean;
|
|
12
|
-
'animate-pulse'?: undefined;
|
|
13
|
-
})[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
'overflow-hidden',
|
|
5
|
-
{
|
|
6
|
-
'animate-pulse': props.animation !== 'none'
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
// Round
|
|
10
|
-
{ 'rounded-full': props.shape === 'circle', 'rounded-md': props.shape !== 'circle' },
|
|
11
|
-
|
|
12
|
-
// Colors
|
|
13
|
-
'bg-surface-200 dark:bg-surface-700'
|
|
14
|
-
]
|
|
15
|
-
})
|
|
16
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
function root({ props }: {
|
|
3
|
-
props: any;
|
|
4
|
-
}): {
|
|
5
|
-
class: (string | {
|
|
6
|
-
'h-1 w-60': boolean;
|
|
7
|
-
'w-1 h-56': boolean;
|
|
8
|
-
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
11
|
-
'h-1 w-60'?: undefined;
|
|
12
|
-
'w-1 h-56'?: undefined;
|
|
13
|
-
})[];
|
|
14
|
-
};
|
|
15
|
-
function range({ props }: {
|
|
16
|
-
props: any;
|
|
17
|
-
}): {
|
|
18
|
-
class: (string | {
|
|
19
|
-
'top-0 left-0': boolean;
|
|
20
|
-
'bottom-0 left-0': boolean;
|
|
21
|
-
'h-full'?: undefined;
|
|
22
|
-
'w-full'?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
'h-full': boolean;
|
|
25
|
-
'w-full': boolean;
|
|
26
|
-
'top-0 left-0'?: undefined;
|
|
27
|
-
'bottom-0 left-0'?: undefined;
|
|
28
|
-
})[];
|
|
29
|
-
};
|
|
30
|
-
function handle({ props }: {
|
|
31
|
-
props: any;
|
|
32
|
-
}): {
|
|
33
|
-
class: (string | {
|
|
34
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
|
|
35
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.5715rem]': boolean;
|
|
36
|
-
})[];
|
|
37
|
-
};
|
|
38
|
-
function starthandler({ props }: {
|
|
39
|
-
props: any;
|
|
40
|
-
}): {
|
|
41
|
-
class: (string | {
|
|
42
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
|
|
43
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': boolean;
|
|
44
|
-
})[];
|
|
45
|
-
};
|
|
46
|
-
function endhandler({ props }: {
|
|
47
|
-
props: any;
|
|
48
|
-
}): {
|
|
49
|
-
class: (string | {
|
|
50
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': boolean;
|
|
51
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': boolean;
|
|
52
|
-
})[];
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export default _default;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
'relative',
|
|
5
|
-
|
|
6
|
-
// Size
|
|
7
|
-
{ 'h-1 w-60': props.orientation == 'horizontal', 'w-1 h-56': props.orientation == 'vertical' },
|
|
8
|
-
|
|
9
|
-
// Shape
|
|
10
|
-
'border-0',
|
|
11
|
-
|
|
12
|
-
// Colors
|
|
13
|
-
'bg-surface-100 dark:bg-surface-700',
|
|
14
|
-
|
|
15
|
-
// States
|
|
16
|
-
{ 'opacity-60 select-none pointer-events-none cursor-default': props.disabled }
|
|
17
|
-
]
|
|
18
|
-
}),
|
|
19
|
-
range: ({ props }) => ({
|
|
20
|
-
class: [
|
|
21
|
-
// Position
|
|
22
|
-
'block absolute',
|
|
23
|
-
{
|
|
24
|
-
'top-0 left-0': props.orientation == 'horizontal',
|
|
25
|
-
'bottom-0 left-0': props.orientation == 'vertical'
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
//Size
|
|
29
|
-
{
|
|
30
|
-
'h-full': props.orientation == 'horizontal',
|
|
31
|
-
'w-full': props.orientation == 'vertical'
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Colors
|
|
35
|
-
'bg-primary-500 dark:bg-primary-400'
|
|
36
|
-
]
|
|
37
|
-
}),
|
|
38
|
-
handle: ({ props }) => ({
|
|
39
|
-
class: [
|
|
40
|
-
'block',
|
|
41
|
-
|
|
42
|
-
// Size
|
|
43
|
-
'h-[1.143rem]',
|
|
44
|
-
'w-[1.143rem]',
|
|
45
|
-
{
|
|
46
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
47
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'vertical'
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
// Shape
|
|
51
|
-
'rounded-full',
|
|
52
|
-
'border-2',
|
|
53
|
-
|
|
54
|
-
// Colors
|
|
55
|
-
'bg-surface-0 dark:bg-surface-600',
|
|
56
|
-
'border-primary-500 dark:border-primary-400',
|
|
57
|
-
|
|
58
|
-
// States
|
|
59
|
-
'hover:bg-primary-500 hover:border-primary-500',
|
|
60
|
-
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
61
|
-
'ring-primary-400/50 dark:ring-primary-300/50',
|
|
62
|
-
|
|
63
|
-
// Transitions
|
|
64
|
-
'transition duration-200',
|
|
65
|
-
|
|
66
|
-
// Misc
|
|
67
|
-
'cursor-grab',
|
|
68
|
-
'touch-action-none'
|
|
69
|
-
]
|
|
70
|
-
}),
|
|
71
|
-
starthandler: ({ props }) => ({
|
|
72
|
-
class: [
|
|
73
|
-
'block',
|
|
74
|
-
|
|
75
|
-
// Size
|
|
76
|
-
'h-[1.143rem]',
|
|
77
|
-
'w-[1.143rem]',
|
|
78
|
-
{
|
|
79
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
80
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
// Shape
|
|
84
|
-
'rounded-full',
|
|
85
|
-
'border-2',
|
|
86
|
-
|
|
87
|
-
// Colors
|
|
88
|
-
'bg-surface-0 dark:bg-surface-600',
|
|
89
|
-
'border-primary-500 dark:border-primary-400',
|
|
90
|
-
|
|
91
|
-
// States
|
|
92
|
-
'hover:bg-primary-500 hover:border-primary-500',
|
|
93
|
-
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
94
|
-
'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
95
|
-
|
|
96
|
-
// Transitions
|
|
97
|
-
'transition duration-200',
|
|
98
|
-
|
|
99
|
-
// Misc
|
|
100
|
-
'cursor-grab',
|
|
101
|
-
'touch-action-none'
|
|
102
|
-
]
|
|
103
|
-
}),
|
|
104
|
-
endhandler: ({ props }) => ({
|
|
105
|
-
class: [
|
|
106
|
-
'block',
|
|
107
|
-
|
|
108
|
-
// Size
|
|
109
|
-
'h-[1.143rem]',
|
|
110
|
-
'w-[1.143rem]',
|
|
111
|
-
{
|
|
112
|
-
'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
|
|
113
|
-
'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
// Shape
|
|
117
|
-
'rounded-full',
|
|
118
|
-
'border-2',
|
|
119
|
-
|
|
120
|
-
// Colors
|
|
121
|
-
'bg-surface-0 dark:bg-surface-600',
|
|
122
|
-
'border-primary-500 dark:border-primary-400',
|
|
123
|
-
|
|
124
|
-
// States
|
|
125
|
-
'hover:bg-primary-500 hover:border-primary-500',
|
|
126
|
-
'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring',
|
|
127
|
-
'focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50',
|
|
128
|
-
|
|
129
|
-
// Transitions
|
|
130
|
-
'transition duration-200',
|
|
131
|
-
|
|
132
|
-
// Misc
|
|
133
|
-
'cursor-grab',
|
|
134
|
-
'touch-action-none'
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
};
|