@fewangsit/wangsvue-presets 1.0.81 → 1.0.82-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/accordion/index.d.ts +37 -0
- package/fixedasset/accordion/index.js +70 -0
- package/fixedasset/autocomplete/index.d.ts +188 -0
- package/fixedasset/autocomplete/index.js +247 -0
- package/fixedasset/avatar/index.d.ts +85 -0
- package/fixedasset/avatar/index.js +44 -0
- package/fixedasset/avatargroup/index.d.ts +8 -0
- package/fixedasset/avatargroup/index.js +9 -0
- package/fixedasset/badge/index.d.ts +47 -0
- package/fixedasset/badge/index.js +60 -0
- package/fixedasset/badgedirective/index.d.ts +50 -0
- package/fixedasset/badgedirective/index.js +49 -0
- package/fixedasset/badgegroup/index.d.ts +45 -0
- package/fixedasset/badgegroup/index.js +29 -0
- package/fixedasset/breadcrumb/index.d.ts +25 -0
- package/fixedasset/breadcrumb/index.js +31 -0
- package/fixedasset/button/index.d.ts +46 -0
- package/fixedasset/button/index.js +423 -0
- package/fixedasset/buttonbulkaction/index.d.ts +32 -0
- package/fixedasset/buttonbulkaction/index.js +35 -0
- package/fixedasset/buttondownload/index.d.ts +12 -0
- package/fixedasset/buttondownload/index.js +13 -0
- package/fixedasset/buttonfilter/index.d.ts +12 -0
- package/fixedasset/buttonfilter/index.js +13 -0
- package/fixedasset/buttonradio/index.d.ts +58 -0
- package/fixedasset/buttonradio/index.js +109 -0
- package/fixedasset/buttonsearch/index.d.ts +65 -0
- package/fixedasset/buttonsearch/index.js +62 -0
- package/fixedasset/calendar/index.d.ts +267 -0
- package/fixedasset/calendar/index.js +610 -0
- package/fixedasset/card/index.d.ts +31 -0
- package/fixedasset/card/index.js +32 -0
- package/fixedasset/carousel/index.d.ts +57 -0
- package/fixedasset/carousel/index.js +129 -0
- package/fixedasset/cascadeselect/index.d.ts +82 -0
- package/fixedasset/cascadeselect/index.js +191 -0
- package/fixedasset/changelog/index.d.ts +32 -0
- package/fixedasset/changelog/index.js +31 -0
- package/fixedasset/checkbox/index.d.ts +81 -0
- package/fixedasset/checkbox/index.js +107 -0
- package/fixedasset/chip/index.d.ts +23 -0
- package/fixedasset/chip/index.js +40 -0
- package/fixedasset/chips/index.d.ts +38 -0
- package/fixedasset/chips/index.js +98 -0
- package/fixedasset/colorpicker/index.d.ts +51 -0
- package/fixedasset/colorpicker/index.js +118 -0
- package/fixedasset/colors.config.json +77 -0
- package/fixedasset/confirmpopup/index.d.ts +39 -0
- package/fixedasset/confirmpopup/index.js +104 -0
- package/fixedasset/contextmenu/index.d.ts +63 -0
- package/fixedasset/contextmenu/index.js +113 -0
- package/fixedasset/datatable/index.d.ts +286 -0
- package/fixedasset/datatable/index.js +253 -0
- package/fixedasset/dataview/index.d.ts +15 -0
- package/fixedasset/dataview/index.js +36 -0
- package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
- package/fixedasset/dataviewlayoutoptions/index.js +58 -0
- package/fixedasset/dialog/index.d.ts +87 -0
- package/fixedasset/dialog/index.js +220 -0
- package/fixedasset/dialogconfirm/index.d.ts +42 -0
- package/fixedasset/dialogconfirm/index.js +45 -0
- package/fixedasset/dialogform/index.d.ts +71 -0
- package/fixedasset/dialogform/index.js +68 -0
- package/fixedasset/divider/index.d.ts +192 -0
- package/fixedasset/divider/index.js +64 -0
- package/fixedasset/dock/index.d.ts +51 -0
- package/fixedasset/dock/index.js +92 -0
- package/fixedasset/dropdown/index.d.ts +136 -0
- package/fixedasset/dropdown/index.js +207 -0
- package/fixedasset/fieldset/index.d.ts +94 -0
- package/fixedasset/fieldset/index.js +87 -0
- package/fixedasset/fileupload/index.d.ts +29 -0
- package/fixedasset/fileupload/index.js +31 -0
- package/fixedasset/form/index.d.ts +40 -0
- package/fixedasset/form/index.js +44 -0
- package/fixedasset/global.d.ts +8 -0
- package/fixedasset/global.js +14 -0
- package/fixedasset/image/index.d.ts +88 -0
- package/fixedasset/image/index.js +136 -0
- package/fixedasset/index.d.ts +190 -0
- package/fixedasset/index.js +201 -0
- package/fixedasset/index.system.js +76 -0
- package/fixedasset/inlinemessage/index.d.ts +20 -0
- package/fixedasset/inlinemessage/index.js +30 -0
- package/fixedasset/inputbadge/index.d.ts +57 -0
- package/fixedasset/inputbadge/index.js +57 -0
- package/fixedasset/inputcurrency/index.d.ts +27 -0
- package/fixedasset/inputcurrency/index.js +22 -0
- package/fixedasset/inputgroup/index.d.ts +9 -0
- package/fixedasset/inputgroup/index.js +37 -0
- package/fixedasset/inputgroupaddon/index.d.ts +17 -0
- package/fixedasset/inputgroupaddon/index.js +34 -0
- package/fixedasset/inputmask/index.d.ts +11 -0
- package/fixedasset/inputmask/index.js +29 -0
- package/fixedasset/inputnumber/index.d.ts +46 -0
- package/fixedasset/inputnumber/index.js +58 -0
- package/fixedasset/inputotp/index.d.ts +137 -0
- package/fixedasset/inputotp/index.js +63 -0
- package/fixedasset/inputphonenumber/index.d.ts +37 -0
- package/fixedasset/inputphonenumber/index.js +34 -0
- package/fixedasset/inputswitch/index.d.ts +67 -0
- package/fixedasset/inputswitch/index.js +100 -0
- package/fixedasset/inputtext/index.d.ts +18 -0
- package/fixedasset/inputtext/index.js +28 -0
- package/fixedasset/knob/index.d.ts +22 -0
- package/fixedasset/knob/index.js +45 -0
- package/fixedasset/listbox/index.d.ts +79 -0
- package/fixedasset/listbox/index.js +138 -0
- package/fixedasset/megamenu/index.d.ts +105 -0
- package/fixedasset/megamenu/index.js +202 -0
- package/fixedasset/menu/index.d.ts +49 -0
- package/fixedasset/menu/index.js +110 -0
- package/fixedasset/menubar/index.d.ts +85 -0
- package/fixedasset/menubar/index.js +172 -0
- package/fixedasset/message/index.d.ts +41 -0
- package/fixedasset/message/index.js +85 -0
- package/fixedasset/multiselect/index.d.ts +243 -0
- package/fixedasset/multiselect/index.js +328 -0
- package/fixedasset/orderlist/index.d.ts +99 -0
- package/fixedasset/orderlist/index.js +245 -0
- package/fixedasset/organizationchart/index.d.ts +71 -0
- package/fixedasset/organizationchart/index.js +129 -0
- package/fixedasset/overlaypanel/index.d.ts +17 -0
- package/fixedasset/overlaypanel/index.js +34 -0
- package/fixedasset/paginator/index.d.ts +210 -0
- package/fixedasset/paginator/index.js +474 -0
- package/fixedasset/panel/index.d.ts +43 -0
- package/fixedasset/panel/index.js +85 -0
- package/fixedasset/panelmenu/index.d.ts +76 -0
- package/fixedasset/panelmenu/index.js +124 -0
- package/fixedasset/password/index.d.ts +45 -0
- package/fixedasset/password/index.js +96 -0
- package/fixedasset/picklist/index.d.ts +245 -0
- package/fixedasset/picklist/index.js +613 -0
- package/fixedasset/progressbar/index.d.ts +117 -0
- package/fixedasset/progressbar/index.js +102 -0
- package/fixedasset/rating/index.d.ts +47 -0
- package/fixedasset/rating/index.js +88 -0
- package/fixedasset/ripple/index.d.ts +8 -0
- package/fixedasset/ripple/index.js +8 -0
- package/fixedasset/scrollpanel/index.d.ts +19 -0
- package/fixedasset/scrollpanel/index.js +62 -0
- package/fixedasset/scrolltop/index.d.ts +50 -0
- package/fixedasset/scrolltop/index.js +42 -0
- package/fixedasset/selectbutton/index.d.ts +35 -0
- package/fixedasset/selectbutton/index.js +60 -0
- package/fixedasset/sidebar/index.d.ts +66 -0
- package/fixedasset/sidebar/index.js +145 -0
- package/fixedasset/skeleton/index.d.ts +16 -0
- package/fixedasset/skeleton/index.js +22 -0
- package/fixedasset/slider/index.d.ts +55 -0
- package/fixedasset/slider/index.js +126 -0
- package/fixedasset/splitbutton/index.d.ts +6690 -0
- package/fixedasset/splitbutton/index.js +786 -0
- package/fixedasset/steps/index.d.ts +108 -0
- package/fixedasset/steps/index.js +119 -0
- package/fixedasset/style.css +5888 -0
- package/fixedasset/tabmenu/index.d.ts +57 -0
- package/fixedasset/tabmenu/index.js +75 -0
- package/fixedasset/tabview/index.d.ts +67 -0
- package/fixedasset/tabview/index.js +148 -0
- package/fixedasset/tag/index.d.ts +32 -0
- package/fixedasset/tag/index.js +37 -0
- package/fixedasset/terminal/index.d.ts +27 -0
- package/fixedasset/terminal/index.js +55 -0
- package/fixedasset/textarea/index.d.ts +12 -0
- package/fixedasset/textarea/index.js +51 -0
- package/fixedasset/tieredmenu/index.d.ts +56 -0
- package/fixedasset/tieredmenu/index.js +108 -0
- package/fixedasset/timeline/index.d.ts +53 -0
- package/fixedasset/timeline/index.js +83 -0
- package/fixedasset/toast/index.d.ts +61 -0
- package/fixedasset/toast/index.js +95 -0
- package/fixedasset/togglebutton/index.d.ts +42 -0
- package/fixedasset/togglebutton/index.js +77 -0
- package/fixedasset/toolbar/index.d.ts +19 -0
- package/fixedasset/toolbar/index.js +29 -0
- package/fixedasset/tooltip/index.d.ts +22 -0
- package/fixedasset/tooltip/index.js +42 -0
- package/fixedasset/tree/index.d.ts +117 -0
- package/fixedasset/tree/index.js +256 -0
- package/fixedasset/treeselect/index.d.ts +158 -0
- package/fixedasset/treeselect/index.js +338 -0
- package/fixedasset/tristatecheckbox/index.d.ts +49 -0
- package/fixedasset/tristatecheckbox/index.js +106 -0
- package/fixedasset/validatormessage/index.d.ts +8 -0
- package/fixedasset/validatormessage/index.js +9 -0
- package/fixedasset/workcalendar/index.d.ts +27 -0
- package/fixedasset/workcalendar/index.js +36 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
@@ -0,0 +1,66 @@
|
|
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-full max-w-[28rem]'?: undefined;
|
8
|
+
'h-auto w-full'?: undefined;
|
9
|
+
} | {
|
10
|
+
'h-full w-full max-w-[28rem]': 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 closeicon {
|
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-surface-500/70/70'?: undefined;
|
45
|
+
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm'?: undefined;
|
46
|
+
} | {
|
47
|
+
'has-[.mask-active]:bg-transparent bg-surface-500/70/70': 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;
|
@@ -0,0 +1,145 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var props = _a.props;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
// Flexbox
|
9
|
+
'flex flex-col',
|
10
|
+
// Position
|
11
|
+
'relative',
|
12
|
+
{
|
13
|
+
'!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full',
|
14
|
+
},
|
15
|
+
// Size
|
16
|
+
{
|
17
|
+
'h-full w-full max-w-[28rem]': props.position == 'left' || props.position == 'right',
|
18
|
+
'h-auto w-full': props.position == 'top' || props.position == 'bottom',
|
19
|
+
},
|
20
|
+
// Shape
|
21
|
+
'border-0',
|
22
|
+
'shadow-xl',
|
23
|
+
// Colors
|
24
|
+
'bg-surface-0',
|
25
|
+
'text-surface-700/80',
|
26
|
+
'',
|
27
|
+
// Transitions
|
28
|
+
'transition-transform',
|
29
|
+
'duration-300',
|
30
|
+
// Misc
|
31
|
+
'pointer-events-auto',
|
32
|
+
],
|
33
|
+
});
|
34
|
+
},
|
35
|
+
header: {
|
36
|
+
class: [
|
37
|
+
// Flexbox and Alignment
|
38
|
+
'flex items-center justify-between',
|
39
|
+
'shrink-0',
|
40
|
+
// Spacing
|
41
|
+
'px-6 pt-6',
|
42
|
+
// Colors
|
43
|
+
'bg-surface-0',
|
44
|
+
'text-surface-700/80',
|
45
|
+
],
|
46
|
+
},
|
47
|
+
title: {
|
48
|
+
class: ['font-semibold leading-6 text-base m-0'],
|
49
|
+
},
|
50
|
+
icons: {
|
51
|
+
class: ['flex items-center'],
|
52
|
+
},
|
53
|
+
closeButton: {
|
54
|
+
class: [
|
55
|
+
'relative',
|
56
|
+
// Flexbox and Alignment
|
57
|
+
'flex items-center justify-center',
|
58
|
+
// Size and Spacing
|
59
|
+
'mr-2',
|
60
|
+
'last:mr-0',
|
61
|
+
'w-6 h-6',
|
62
|
+
// Shape
|
63
|
+
'border-0',
|
64
|
+
'rounded-full',
|
65
|
+
// Colors
|
66
|
+
'text-surface-500',
|
67
|
+
'bg-transparent',
|
68
|
+
// Transitions
|
69
|
+
'transition duration-200 ease-in-out',
|
70
|
+
// States
|
71
|
+
'hover:text-surface-700',
|
72
|
+
'hover:bg-surface-100',
|
73
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset',
|
74
|
+
'focus:ring-primary-500',
|
75
|
+
// Misc
|
76
|
+
'overflow-hidden',
|
77
|
+
],
|
78
|
+
},
|
79
|
+
closeicon: {
|
80
|
+
class: [
|
81
|
+
// Display
|
82
|
+
'inline-block',
|
83
|
+
// Size
|
84
|
+
'w-3',
|
85
|
+
'h-3',
|
86
|
+
],
|
87
|
+
},
|
88
|
+
content: {
|
89
|
+
class: [
|
90
|
+
// Spacing and Size
|
91
|
+
'px-6 pb-6',
|
92
|
+
'mt-6',
|
93
|
+
'h-full',
|
94
|
+
'w-full',
|
95
|
+
// Growth and Overflow
|
96
|
+
'grow',
|
97
|
+
'overflow-y-auto',
|
98
|
+
],
|
99
|
+
},
|
100
|
+
mask: function (_a) {
|
101
|
+
var props = _a.props;
|
102
|
+
return ({
|
103
|
+
class: [
|
104
|
+
// Transitions
|
105
|
+
'transition',
|
106
|
+
'duration-300',
|
107
|
+
{ 'p-5': !props.position == 'full' },
|
108
|
+
// Background and Effects
|
109
|
+
{
|
110
|
+
'has-[.mask-active]:bg-transparent bg-surface-500/70/70': props.modal,
|
111
|
+
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': props.modal,
|
112
|
+
},
|
113
|
+
],
|
114
|
+
});
|
115
|
+
},
|
116
|
+
transition: function (_a) {
|
117
|
+
var props = _a.props;
|
118
|
+
return props.position === 'top'
|
119
|
+
? {
|
120
|
+
enterFromClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active',
|
121
|
+
leaveToClass: 'translate-x-0 -translate-y-full translate-z-0 mask-active',
|
122
|
+
}
|
123
|
+
: props.position === 'bottom'
|
124
|
+
? {
|
125
|
+
enterFromClass: 'translate-x-0 translate-y-full translate-z-0 mask-active',
|
126
|
+
leaveToClass: 'translate-x-0 translate-y-full translate-z-0 mask-active',
|
127
|
+
}
|
128
|
+
: props.position === 'left'
|
129
|
+
? {
|
130
|
+
enterFromClass: '-translate-x-full translate-y-0 translate-z-0 mask-active',
|
131
|
+
leaveToClass: '-translate-x-full translate-y-0 translate-z-0 mask-active',
|
132
|
+
}
|
133
|
+
: props.position === 'right'
|
134
|
+
? {
|
135
|
+
enterFromClass: 'translate-x-full translate-y-0 translate-z-0 mask-active',
|
136
|
+
leaveToClass: 'translate-x-full translate-y-0 translate-z-0 mask-active',
|
137
|
+
}
|
138
|
+
: {
|
139
|
+
enterFromClass: 'opacity-0 mask-active',
|
140
|
+
enterActiveClass: 'transition-opacity duration-400 ease-in',
|
141
|
+
leaveActiveClass: 'transition-opacity duration-400 ease-in',
|
142
|
+
leaveToClass: 'opacity-0 mask-active',
|
143
|
+
};
|
144
|
+
},
|
145
|
+
};
|
@@ -0,0 +1,16 @@
|
|
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;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var props = _a.props;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
'overflow-hidden',
|
9
|
+
{
|
10
|
+
'animate-pulse': props.animation !== 'none',
|
11
|
+
},
|
12
|
+
// Round
|
13
|
+
{
|
14
|
+
'rounded-full': props.shape === 'circle',
|
15
|
+
'rounded-md': props.shape !== 'circle',
|
16
|
+
},
|
17
|
+
// Colors
|
18
|
+
'bg-general-50',
|
19
|
+
],
|
20
|
+
});
|
21
|
+
},
|
22
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
function root({ props }: {
|
3
|
+
props: any;
|
4
|
+
}): {
|
5
|
+
class: (string | {
|
6
|
+
'h-2 w-full min-w-[15rem]': boolean;
|
7
|
+
'w-2 h-full min-h-[15rem]': 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-2 w-full min-w-[15rem]'?: undefined;
|
12
|
+
'w-2 h-full min-h-[15rem]'?: 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.5rem] ml-[-0.5rem]': boolean;
|
35
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': boolean;
|
36
|
+
})[];
|
37
|
+
};
|
38
|
+
function starthandler({ props }: {
|
39
|
+
props: any;
|
40
|
+
}): {
|
41
|
+
class: (string | {
|
42
|
+
'top-[50%] mt-[-0.5rem] ml-[-0.5rem]': boolean;
|
43
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': boolean;
|
44
|
+
})[];
|
45
|
+
};
|
46
|
+
function endhandler({ props }: {
|
47
|
+
props: any;
|
48
|
+
}): {
|
49
|
+
class: (string | {
|
50
|
+
'top-[50%] mt-[-0.5rem] ml-[-0.5rem]': boolean;
|
51
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': boolean;
|
52
|
+
})[];
|
53
|
+
};
|
54
|
+
}
|
55
|
+
export default _default;
|
@@ -0,0 +1,126 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var props = _a.props;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
'relative',
|
9
|
+
'flex items-center',
|
10
|
+
// Size
|
11
|
+
{
|
12
|
+
'h-2 w-full min-w-[15rem]': props.orientation == 'horizontal',
|
13
|
+
'w-2 h-full min-h-[15rem]': props.orientation == 'vertical',
|
14
|
+
},
|
15
|
+
// Shape
|
16
|
+
'border-0 rounded-lg',
|
17
|
+
// Colors
|
18
|
+
'bg-surface-100',
|
19
|
+
// States
|
20
|
+
{
|
21
|
+
'opacity-60 select-none pointer-events-none cursor-default': props.disabled,
|
22
|
+
},
|
23
|
+
],
|
24
|
+
});
|
25
|
+
},
|
26
|
+
range: function (_a) {
|
27
|
+
var props = _a.props;
|
28
|
+
return ({
|
29
|
+
class: [
|
30
|
+
// Position
|
31
|
+
'block absolute',
|
32
|
+
{
|
33
|
+
'top-0 left-0': props.orientation == 'horizontal',
|
34
|
+
'bottom-0 left-0': props.orientation == 'vertical',
|
35
|
+
},
|
36
|
+
//Size
|
37
|
+
{
|
38
|
+
'h-full': props.orientation == 'horizontal',
|
39
|
+
'w-full': props.orientation == 'vertical',
|
40
|
+
},
|
41
|
+
//Shape
|
42
|
+
'rounded-lg',
|
43
|
+
// Colors
|
44
|
+
'bg-primary-500',
|
45
|
+
],
|
46
|
+
});
|
47
|
+
},
|
48
|
+
handle: function (_a) {
|
49
|
+
var props = _a.props;
|
50
|
+
return ({
|
51
|
+
class: [
|
52
|
+
'block',
|
53
|
+
// Size
|
54
|
+
'h-4',
|
55
|
+
'w-4',
|
56
|
+
{
|
57
|
+
'top-[50%] mt-[-0.5rem] ml-[-0.5rem]': props.orientation == 'horizontal',
|
58
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': props.orientation == 'vertical',
|
59
|
+
},
|
60
|
+
// Shape
|
61
|
+
'rounded-full',
|
62
|
+
'ring-2',
|
63
|
+
// Colors
|
64
|
+
'bg-surface-0',
|
65
|
+
'ring-primary-500',
|
66
|
+
// Transitions
|
67
|
+
'transition duration-200',
|
68
|
+
// Misc
|
69
|
+
'cursor-grab',
|
70
|
+
'touch-action-none',
|
71
|
+
],
|
72
|
+
});
|
73
|
+
},
|
74
|
+
starthandler: function (_a) {
|
75
|
+
var props = _a.props;
|
76
|
+
return ({
|
77
|
+
class: [
|
78
|
+
'block',
|
79
|
+
// Size
|
80
|
+
'h-4',
|
81
|
+
'w-4',
|
82
|
+
{
|
83
|
+
'top-[50%] mt-[-0.5rem] ml-[-0.5rem]': props.orientation == 'horizontal',
|
84
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': props.orientation == 'vertical',
|
85
|
+
},
|
86
|
+
// Shape
|
87
|
+
'rounded-full',
|
88
|
+
'ring-2',
|
89
|
+
// Colors
|
90
|
+
'bg-surface-0',
|
91
|
+
'ring-primary-500',
|
92
|
+
// Transitions
|
93
|
+
'transition duration-200',
|
94
|
+
// Misc
|
95
|
+
'cursor-grab',
|
96
|
+
'touch-action-none',
|
97
|
+
],
|
98
|
+
});
|
99
|
+
},
|
100
|
+
endhandler: function (_a) {
|
101
|
+
var props = _a.props;
|
102
|
+
return ({
|
103
|
+
class: [
|
104
|
+
'block',
|
105
|
+
// Size
|
106
|
+
'h-4',
|
107
|
+
'w-4',
|
108
|
+
{
|
109
|
+
'top-[50%] mt-[-0.5rem] ml-[-0.5rem]': props.orientation == 'horizontal',
|
110
|
+
'left-[50%] mb-[-0.5rem] ml-[-0.5rem]': props.orientation == 'vertical',
|
111
|
+
},
|
112
|
+
// Shape
|
113
|
+
'rounded-full',
|
114
|
+
'ring-2',
|
115
|
+
// Colors
|
116
|
+
'bg-surface-0',
|
117
|
+
'ring-primary-500',
|
118
|
+
// Transitions
|
119
|
+
'transition duration-200',
|
120
|
+
// Misc
|
121
|
+
'cursor-grab',
|
122
|
+
'touch-action-none',
|
123
|
+
],
|
124
|
+
});
|
125
|
+
},
|
126
|
+
};
|