@fewangsit/wangsvue-presets 1.0.80
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -0
- package/index.js +5 -0
- package/package.json +13 -0
- package/wangsvue/accordion/index.d.ts +37 -0
- package/wangsvue/accordion/index.js +70 -0
- package/wangsvue/autocomplete/index.d.ts +188 -0
- package/wangsvue/autocomplete/index.js +247 -0
- package/wangsvue/avatar/index.d.ts +85 -0
- package/wangsvue/avatar/index.js +44 -0
- package/wangsvue/avatargroup/index.d.ts +8 -0
- package/wangsvue/avatargroup/index.js +9 -0
- package/wangsvue/badge/index.d.ts +47 -0
- package/wangsvue/badge/index.js +60 -0
- package/wangsvue/badgedirective/index.d.ts +50 -0
- package/wangsvue/badgedirective/index.js +49 -0
- package/wangsvue/badgegroup/index.d.ts +45 -0
- package/wangsvue/badgegroup/index.js +29 -0
- package/wangsvue/breadcrumb/index.d.ts +25 -0
- package/wangsvue/breadcrumb/index.js +31 -0
- package/wangsvue/button/index.d.ts +46 -0
- package/wangsvue/button/index.js +423 -0
- package/wangsvue/buttonbulkaction/index.d.ts +32 -0
- package/wangsvue/buttonbulkaction/index.js +35 -0
- package/wangsvue/buttondownload/index.d.ts +12 -0
- package/wangsvue/buttondownload/index.js +13 -0
- package/wangsvue/buttonfilter/index.d.ts +12 -0
- package/wangsvue/buttonfilter/index.js +13 -0
- package/wangsvue/buttonradio/index.d.ts +58 -0
- package/wangsvue/buttonradio/index.js +109 -0
- package/wangsvue/buttonsearch/index.d.ts +65 -0
- package/wangsvue/buttonsearch/index.js +62 -0
- package/wangsvue/calendar/index.d.ts +267 -0
- package/wangsvue/calendar/index.js +610 -0
- package/wangsvue/card/index.d.ts +31 -0
- package/wangsvue/card/index.js +32 -0
- package/wangsvue/carousel/index.d.ts +57 -0
- package/wangsvue/carousel/index.js +129 -0
- package/wangsvue/cascadeselect/index.d.ts +82 -0
- package/wangsvue/cascadeselect/index.js +191 -0
- package/wangsvue/changelog/index.d.ts +32 -0
- package/wangsvue/changelog/index.js +31 -0
- package/wangsvue/checkbox/index.d.ts +81 -0
- package/wangsvue/checkbox/index.js +107 -0
- package/wangsvue/chip/index.d.ts +23 -0
- package/wangsvue/chip/index.js +40 -0
- package/wangsvue/chips/index.d.ts +38 -0
- package/wangsvue/chips/index.js +98 -0
- package/wangsvue/colorpicker/index.d.ts +51 -0
- package/wangsvue/colorpicker/index.js +118 -0
- package/wangsvue/colors.config.json +77 -0
- package/wangsvue/confirmpopup/index.d.ts +39 -0
- package/wangsvue/confirmpopup/index.js +104 -0
- package/wangsvue/contextmenu/index.d.ts +63 -0
- package/wangsvue/contextmenu/index.js +113 -0
- package/wangsvue/datatable/index.d.ts +286 -0
- package/wangsvue/datatable/index.js +253 -0
- package/wangsvue/dataview/index.d.ts +15 -0
- package/wangsvue/dataview/index.js +36 -0
- package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
- package/wangsvue/dataviewlayoutoptions/index.js +58 -0
- package/wangsvue/dialog/index.d.ts +87 -0
- package/wangsvue/dialog/index.js +220 -0
- package/wangsvue/dialogconfirm/index.d.ts +42 -0
- package/wangsvue/dialogconfirm/index.js +45 -0
- package/wangsvue/dialogform/index.d.ts +71 -0
- package/wangsvue/dialogform/index.js +68 -0
- package/wangsvue/divider/index.d.ts +192 -0
- package/wangsvue/divider/index.js +64 -0
- package/wangsvue/dock/index.d.ts +51 -0
- package/wangsvue/dock/index.js +92 -0
- package/wangsvue/dropdown/index.d.ts +136 -0
- package/wangsvue/dropdown/index.js +207 -0
- package/wangsvue/fieldset/index.d.ts +94 -0
- package/wangsvue/fieldset/index.js +87 -0
- package/wangsvue/fileupload/index.d.ts +29 -0
- package/wangsvue/fileupload/index.js +31 -0
- package/wangsvue/form/index.d.ts +40 -0
- package/wangsvue/form/index.js +44 -0
- package/wangsvue/global.d.ts +8 -0
- package/wangsvue/global.js +14 -0
- package/wangsvue/image/index.d.ts +88 -0
- package/wangsvue/image/index.js +136 -0
- package/wangsvue/index.d.ts +190 -0
- package/wangsvue/index.js +201 -0
- package/wangsvue/index.system.js +76 -0
- package/wangsvue/inlinemessage/index.d.ts +20 -0
- package/wangsvue/inlinemessage/index.js +30 -0
- package/wangsvue/inputbadge/index.d.ts +57 -0
- package/wangsvue/inputbadge/index.js +57 -0
- package/wangsvue/inputcurrency/index.d.ts +27 -0
- package/wangsvue/inputcurrency/index.js +22 -0
- package/wangsvue/inputgroup/index.d.ts +9 -0
- package/wangsvue/inputgroup/index.js +37 -0
- package/wangsvue/inputgroupaddon/index.d.ts +17 -0
- package/wangsvue/inputgroupaddon/index.js +34 -0
- package/wangsvue/inputmask/index.d.ts +11 -0
- package/wangsvue/inputmask/index.js +29 -0
- package/wangsvue/inputnumber/index.d.ts +46 -0
- package/wangsvue/inputnumber/index.js +58 -0
- package/wangsvue/inputotp/index.d.ts +137 -0
- package/wangsvue/inputotp/index.js +63 -0
- package/wangsvue/inputphonenumber/index.d.ts +37 -0
- package/wangsvue/inputphonenumber/index.js +34 -0
- package/wangsvue/inputswitch/index.d.ts +67 -0
- package/wangsvue/inputswitch/index.js +100 -0
- package/wangsvue/inputtext/index.d.ts +18 -0
- package/wangsvue/inputtext/index.js +28 -0
- package/wangsvue/knob/index.d.ts +22 -0
- package/wangsvue/knob/index.js +45 -0
- package/wangsvue/listbox/index.d.ts +79 -0
- package/wangsvue/listbox/index.js +138 -0
- package/wangsvue/megamenu/index.d.ts +105 -0
- package/wangsvue/megamenu/index.js +202 -0
- package/wangsvue/menu/index.d.ts +49 -0
- package/wangsvue/menu/index.js +110 -0
- package/wangsvue/menubar/index.d.ts +85 -0
- package/wangsvue/menubar/index.js +172 -0
- package/wangsvue/message/index.d.ts +41 -0
- package/wangsvue/message/index.js +85 -0
- package/wangsvue/multiselect/index.d.ts +243 -0
- package/wangsvue/multiselect/index.js +328 -0
- package/wangsvue/orderlist/index.d.ts +99 -0
- package/wangsvue/orderlist/index.js +245 -0
- package/wangsvue/organizationchart/index.d.ts +71 -0
- package/wangsvue/organizationchart/index.js +129 -0
- package/wangsvue/overlaypanel/index.d.ts +17 -0
- package/wangsvue/overlaypanel/index.js +34 -0
- package/wangsvue/paginator/index.d.ts +210 -0
- package/wangsvue/paginator/index.js +474 -0
- package/wangsvue/panel/index.d.ts +43 -0
- package/wangsvue/panel/index.js +85 -0
- package/wangsvue/panelmenu/index.d.ts +76 -0
- package/wangsvue/panelmenu/index.js +124 -0
- package/wangsvue/password/index.d.ts +45 -0
- package/wangsvue/password/index.js +96 -0
- package/wangsvue/picklist/index.d.ts +245 -0
- package/wangsvue/picklist/index.js +613 -0
- package/wangsvue/progressbar/index.d.ts +117 -0
- package/wangsvue/progressbar/index.js +102 -0
- package/wangsvue/rating/index.d.ts +47 -0
- package/wangsvue/rating/index.js +88 -0
- package/wangsvue/ripple/index.d.ts +8 -0
- package/wangsvue/ripple/index.js +8 -0
- package/wangsvue/scrollpanel/index.d.ts +19 -0
- package/wangsvue/scrollpanel/index.js +62 -0
- package/wangsvue/scrolltop/index.d.ts +50 -0
- package/wangsvue/scrolltop/index.js +42 -0
- package/wangsvue/selectbutton/index.d.ts +35 -0
- package/wangsvue/selectbutton/index.js +60 -0
- package/wangsvue/sidebar/index.d.ts +66 -0
- package/wangsvue/sidebar/index.js +145 -0
- package/wangsvue/skeleton/index.d.ts +16 -0
- package/wangsvue/skeleton/index.js +22 -0
- package/wangsvue/slider/index.d.ts +55 -0
- package/wangsvue/slider/index.js +126 -0
- package/wangsvue/splitbutton/index.d.ts +6690 -0
- package/wangsvue/splitbutton/index.js +786 -0
- package/wangsvue/steps/index.d.ts +108 -0
- package/wangsvue/steps/index.js +119 -0
- package/wangsvue/style.css +5823 -0
- package/wangsvue/tabmenu/index.d.ts +57 -0
- package/wangsvue/tabmenu/index.js +75 -0
- package/wangsvue/tabview/index.d.ts +67 -0
- package/wangsvue/tabview/index.js +148 -0
- package/wangsvue/tag/index.d.ts +32 -0
- package/wangsvue/tag/index.js +37 -0
- package/wangsvue/terminal/index.d.ts +27 -0
- package/wangsvue/terminal/index.js +55 -0
- package/wangsvue/textarea/index.d.ts +12 -0
- package/wangsvue/textarea/index.js +51 -0
- package/wangsvue/tieredmenu/index.d.ts +56 -0
- package/wangsvue/tieredmenu/index.js +108 -0
- package/wangsvue/timeline/index.d.ts +53 -0
- package/wangsvue/timeline/index.js +83 -0
- package/wangsvue/toast/index.d.ts +61 -0
- package/wangsvue/toast/index.js +95 -0
- package/wangsvue/togglebutton/index.d.ts +42 -0
- package/wangsvue/togglebutton/index.js +77 -0
- package/wangsvue/toolbar/index.d.ts +19 -0
- package/wangsvue/toolbar/index.js +29 -0
- package/wangsvue/tooltip/index.d.ts +22 -0
- package/wangsvue/tooltip/index.js +42 -0
- package/wangsvue/tree/index.d.ts +117 -0
- package/wangsvue/tree/index.js +256 -0
- package/wangsvue/treeselect/index.d.ts +158 -0
- package/wangsvue/treeselect/index.js +338 -0
- package/wangsvue/tristatecheckbox/index.d.ts +49 -0
- package/wangsvue/tristatecheckbox/index.js +106 -0
- package/wangsvue/validatormessage/index.d.ts +8 -0
- package/wangsvue/validatormessage/index.js +9 -0
- package/wangsvue/workcalendar/index.d.ts +27 -0
- package/wangsvue/workcalendar/index.js +36 -0
@@ -0,0 +1,253 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: {
|
5
|
+
'data-wv-name': 'datatable',
|
6
|
+
'data-wv-section': 'root',
|
7
|
+
},
|
8
|
+
tablewrapper: {
|
9
|
+
'class': [
|
10
|
+
'overflow-auto relative scrollbar-w-thin',
|
11
|
+
'rounded-lg rounded-br-none rounded-bl-none',
|
12
|
+
],
|
13
|
+
'data-wv-section': 'tablewrapper',
|
14
|
+
},
|
15
|
+
scrollheightwrapper: function (_a) {
|
16
|
+
var props = _a.props;
|
17
|
+
return ({
|
18
|
+
'class': [
|
19
|
+
'overflow-hidden w-full min-w-max',
|
20
|
+
{
|
21
|
+
'!overflow-y-auto': !!props.scrollHeight,
|
22
|
+
},
|
23
|
+
],
|
24
|
+
'style': "scrollbar-width: none; max-height: ".concat(props.scrollHeight),
|
25
|
+
'data-wv-section': 'scrollheightwrapper',
|
26
|
+
});
|
27
|
+
},
|
28
|
+
table: {
|
29
|
+
'class': [
|
30
|
+
'min-w-max w-full',
|
31
|
+
'!border-separate !border-spacing-0 border !border-solid !border-primary-100 !border-t-0 !border-l-0 !border-r-0 !rounded-lg',
|
32
|
+
],
|
33
|
+
'data-wv-section': 'table',
|
34
|
+
},
|
35
|
+
tbody: {
|
36
|
+
class: [
|
37
|
+
'[&_tr:last-of-type>td]:!border-b-0',
|
38
|
+
'[&_tr:last-of-type>td:last-child]:!rounded-br-lg',
|
39
|
+
'[&_tr:last-of-type>td:first-child]:!rounded-bl-lg',
|
40
|
+
],
|
41
|
+
},
|
42
|
+
thead: {
|
43
|
+
class: ['sticky top-0 z-50'],
|
44
|
+
},
|
45
|
+
headerrow: {
|
46
|
+
class: ['border-b border-primary-100'],
|
47
|
+
},
|
48
|
+
bodyrow: function (_a) {
|
49
|
+
var context = _a.context, props = _a.props;
|
50
|
+
return ({
|
51
|
+
class: [
|
52
|
+
'border-b border-general-100 group',
|
53
|
+
{
|
54
|
+
'!h-[35px]': props.rowHeight === 'fixed', // Style(DXJCiX2e): set table row height to fixed 35px
|
55
|
+
},
|
56
|
+
// Color
|
57
|
+
'text-general-800 text-xs font-normal',
|
58
|
+
{
|
59
|
+
'bg-transparent': !context.selected,
|
60
|
+
'bg-primary-100': context.selected,
|
61
|
+
},
|
62
|
+
// State
|
63
|
+
{
|
64
|
+
'focus:outline-none focus:outline-offset-0': props.selectionType,
|
65
|
+
// To sets the bg to single action td
|
66
|
+
'hover:!bg-primary-50': !context.highlighted,
|
67
|
+
'hover:!bg-warning-300 !bg-warning-200': context.highlighted,
|
68
|
+
},
|
69
|
+
// Transition
|
70
|
+
{
|
71
|
+
'transition duration-200': (props.selectionType && !context.selected) || props.rowHover,
|
72
|
+
},
|
73
|
+
'px-4 transition-transform',
|
74
|
+
{ 'select-none': context.dragging, 'select-auto': !context.dragging },
|
75
|
+
{ '!cursor-grab [&_label]:!cursor-grab': context.draggable },
|
76
|
+
// Misc
|
77
|
+
{ 'cursor-pointer': props.selectionType !== 'none' && !context.disabled },
|
78
|
+
],
|
79
|
+
});
|
80
|
+
},
|
81
|
+
headercell: function (_a) {
|
82
|
+
var context = _a.context;
|
83
|
+
return {
|
84
|
+
'class': [
|
85
|
+
'text-xs font-semibold text-white p-2 text-left cursor-pointer',
|
86
|
+
{ 'bg-primary-400': !context.sorted || !context.sortable },
|
87
|
+
{ 'bg-primary-500': context.sorted },
|
88
|
+
{
|
89
|
+
'sticky right-0 hover:bg-primary-500': context.customColumn,
|
90
|
+
'!cursor-default': !context.customColumn && !context.sortable,
|
91
|
+
},
|
92
|
+
'border-0 !border-b border-solid',
|
93
|
+
'border-primary-100',
|
94
|
+
],
|
95
|
+
'data-wv-section': 'headercell',
|
96
|
+
};
|
97
|
+
},
|
98
|
+
headercellcontent: {
|
99
|
+
'class': ['inline-flex gap-2 items-center leading-[18px]'],
|
100
|
+
'data-wv-section': 'headercellcontent',
|
101
|
+
},
|
102
|
+
headercellreorderable: {
|
103
|
+
'class': ['w-[35px] !py-1'],
|
104
|
+
'data-wv-section': 'headercellreorderable',
|
105
|
+
},
|
106
|
+
draggableicon: {
|
107
|
+
class: 'w-[18px] h-[18px] !p-0 !m-0 !cursor-grab [&_label]:!cursor-grab',
|
108
|
+
},
|
109
|
+
headercheckbox: function (_a) {
|
110
|
+
var context = _a.context;
|
111
|
+
return ({
|
112
|
+
'class': [
|
113
|
+
{
|
114
|
+
'[&_[data-pc-section=box]]:!border-white [&_[data-pc-section=box]]:!bg-transparent': !context.isSelectedAll,
|
115
|
+
},
|
116
|
+
],
|
117
|
+
'data-wv-section': 'headercheckbox',
|
118
|
+
});
|
119
|
+
},
|
120
|
+
headercellcheckbox: {
|
121
|
+
'class': 'w-[35px] text-center',
|
122
|
+
'data-wv-section': 'headercellcheckbox',
|
123
|
+
},
|
124
|
+
headertoggler: {
|
125
|
+
'class': ['w-[40px] text-center !py-1'],
|
126
|
+
'data-wv-section': 'headertoggler',
|
127
|
+
},
|
128
|
+
columnvisibilityicon: {
|
129
|
+
class: ['!w-4 !h-4 !mx-auto'],
|
130
|
+
info: 'Visibilitas Kolom',
|
131
|
+
},
|
132
|
+
headertogglerbutton: function (_a) {
|
133
|
+
var context = _a.context;
|
134
|
+
return ({
|
135
|
+
'class': [
|
136
|
+
'!p-0 !m-0 !w-auto !h-auto',
|
137
|
+
{ 'rotate-180': context.isExpandedAll },
|
138
|
+
{ 'rotate-0': !context.isExpandedAll },
|
139
|
+
],
|
140
|
+
'icon-class': 'w-6 h-6 text-white',
|
141
|
+
'data-wv-section': 'headertogglerbutton',
|
142
|
+
});
|
143
|
+
},
|
144
|
+
rowcheckbox: {
|
145
|
+
'class': '',
|
146
|
+
'data-wv-section': 'rowcheckbox',
|
147
|
+
},
|
148
|
+
bodycell: {
|
149
|
+
'class': [
|
150
|
+
'text-xs px-2 py-0.5',
|
151
|
+
'border-0 !border-b !border-solid border-primary-100',
|
152
|
+
'[&:has([data-wv-section=rowcheckbox])]:text-center',
|
153
|
+
'[&:has([data-wv-section=rowcheckbox])]:text-center',
|
154
|
+
],
|
155
|
+
'data-wv-section': 'bodycell',
|
156
|
+
},
|
157
|
+
multirowcontainer: function (_a) {
|
158
|
+
var props = _a.props;
|
159
|
+
return ({
|
160
|
+
class: ['grid grid-cols-1', "grid-rows-".concat(props.attributes.length)],
|
161
|
+
});
|
162
|
+
},
|
163
|
+
multirow: function (_a) {
|
164
|
+
var context = _a.context;
|
165
|
+
return ({
|
166
|
+
class: [
|
167
|
+
'!h-[35px] flex items-center px-2',
|
168
|
+
{ '!border-t border-primary-100 !border-solid': !context.firstIndex },
|
169
|
+
],
|
170
|
+
});
|
171
|
+
},
|
172
|
+
rowtogglerbutton: function (_a) {
|
173
|
+
var context = _a.context;
|
174
|
+
return ({
|
175
|
+
'class': [
|
176
|
+
'!p-0 !m-0 !w-auto !h-auto',
|
177
|
+
{ 'rotate-180': context.isRowExpanded },
|
178
|
+
{ 'rotate-0': !context.isRowExpanded },
|
179
|
+
],
|
180
|
+
'icon-class': 'w-6 h-6',
|
181
|
+
'data-wv-section': 'rowtogglerbutton',
|
182
|
+
});
|
183
|
+
},
|
184
|
+
childrowheader: {
|
185
|
+
'class': 'font-semibold text-xs',
|
186
|
+
'data-wv-section': 'childrowheader',
|
187
|
+
},
|
188
|
+
celleditableelement: {
|
189
|
+
'class': [
|
190
|
+
'focus:px-2',
|
191
|
+
'w-full inline-block py-2 focus:outline-grayscale-600 focus:outline-1',
|
192
|
+
],
|
193
|
+
'data-wv-section': 'celleditableelement',
|
194
|
+
},
|
195
|
+
rowsingleactioncell: function (_a) {
|
196
|
+
var props = _a.props, context = _a.context;
|
197
|
+
return ({
|
198
|
+
'class': [
|
199
|
+
'w-[35px]',
|
200
|
+
{
|
201
|
+
'sticky bg-white': props.useOption,
|
202
|
+
'!bg-primary-100': context.selected,
|
203
|
+
'group-hover:!bg-primary-50': !context.highlighted,
|
204
|
+
'group-hover:!bg-warning-300 !bg-warning-200': context.highlighted,
|
205
|
+
},
|
206
|
+
],
|
207
|
+
'data-wv-section': 'rowsingleactioncell',
|
208
|
+
});
|
209
|
+
},
|
210
|
+
singleactionwrapper: {
|
211
|
+
'class': ['relative w-full h-full flex items-center justify-center'],
|
212
|
+
'data-wv-section': 'singleactionwrapper',
|
213
|
+
},
|
214
|
+
singleactionbutton: function (_a) {
|
215
|
+
var props = _a.props;
|
216
|
+
return ({
|
217
|
+
'class': [
|
218
|
+
{
|
219
|
+
'pointer-events-none !border-general-100 [&>i]:text-general-200': props.disableAllRows,
|
220
|
+
},
|
221
|
+
{ 'pointer-events-auto': !props.disableAllRows },
|
222
|
+
],
|
223
|
+
'tooltip': 'Aksi',
|
224
|
+
'data-wv-section': 'singleactionbutton',
|
225
|
+
});
|
226
|
+
},
|
227
|
+
nodatalottiewrapper: {
|
228
|
+
'class': 'w-full p-4 flex items-center justify-center',
|
229
|
+
'data-wv-section': 'nodatalottiewrapper',
|
230
|
+
},
|
231
|
+
nodatalottie: {
|
232
|
+
'class': 'w-44 h-auto',
|
233
|
+
'data-wv-section': 'nodatalottie',
|
234
|
+
},
|
235
|
+
loadingtablewrapper: {
|
236
|
+
'class': 'sticky left-0 w-full p-4 flex items-center justify-center',
|
237
|
+
'data-wv-section': 'loadingtablewrapper',
|
238
|
+
},
|
239
|
+
loadingtablelottie: {
|
240
|
+
'class': 'w-20 h-auto',
|
241
|
+
'data-wv-section': 'loadingtablelottie',
|
242
|
+
},
|
243
|
+
paginator: function (_a) {
|
244
|
+
var context = _a.context;
|
245
|
+
return ({
|
246
|
+
'current-page-report-template': context.totalRecords
|
247
|
+
? 'Menampilkan {first} - {last} dari {totalRecords}'
|
248
|
+
: 'Tidak ditemukan data',
|
249
|
+
'class': '',
|
250
|
+
'template': 'FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown',
|
251
|
+
});
|
252
|
+
},
|
253
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
namespace content {
|
3
|
+
let _class: string[];
|
4
|
+
export { _class as class };
|
5
|
+
}
|
6
|
+
namespace grid {
|
7
|
+
let _class_1: string[];
|
8
|
+
export { _class_1 as class };
|
9
|
+
}
|
10
|
+
namespace header {
|
11
|
+
let _class_2: string[];
|
12
|
+
export { _class_2 as class };
|
13
|
+
}
|
14
|
+
}
|
15
|
+
export default _default;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
content: {
|
5
|
+
class: [
|
6
|
+
// Spacing
|
7
|
+
'p-0',
|
8
|
+
// Shape
|
9
|
+
'border-0',
|
10
|
+
// Color
|
11
|
+
'text-surface-700/80',
|
12
|
+
'bg-surface-0',
|
13
|
+
],
|
14
|
+
},
|
15
|
+
grid: {
|
16
|
+
class: [
|
17
|
+
// Flex
|
18
|
+
'flex flex-wrap',
|
19
|
+
// Spacing
|
20
|
+
'ml-0 mr-0 mt-0',
|
21
|
+
// Color
|
22
|
+
'bg-surface-0',
|
23
|
+
],
|
24
|
+
},
|
25
|
+
header: {
|
26
|
+
class: [
|
27
|
+
'font-semibold',
|
28
|
+
// Spacing
|
29
|
+
'p-6',
|
30
|
+
// Color
|
31
|
+
'text-surface-800/80',
|
32
|
+
'bg-surface-0',
|
33
|
+
'border-surface-200 border-b',
|
34
|
+
],
|
35
|
+
},
|
36
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
listbutton: function (_a) {
|
5
|
+
var props = _a.props;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
// Font
|
9
|
+
'leading-none',
|
10
|
+
// Flex Alignment
|
11
|
+
'inline-flex items-center align-bottom text-center',
|
12
|
+
// Shape
|
13
|
+
'rounded-md rounded-r-none',
|
14
|
+
// Spacing
|
15
|
+
'px-2.5 py-1.5',
|
16
|
+
// Color
|
17
|
+
'ring-1 ring-surface-200',
|
18
|
+
props.modelValue === 'list'
|
19
|
+
? 'bg-surface-100 text-surface-700'
|
20
|
+
: 'bg-surface-0 text-surface-700/80',
|
21
|
+
// States
|
22
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-primary-500',
|
23
|
+
'hover:bg-surface-200/80',
|
24
|
+
// Transition
|
25
|
+
'transition duration-200',
|
26
|
+
// Misc
|
27
|
+
'cursor-pointer select-none overflow-hidden',
|
28
|
+
],
|
29
|
+
});
|
30
|
+
},
|
31
|
+
gridbutton: function (_a) {
|
32
|
+
var props = _a.props;
|
33
|
+
return ({
|
34
|
+
class: [
|
35
|
+
// Font
|
36
|
+
'leading-none',
|
37
|
+
// Flex Alignment
|
38
|
+
'inline-flex items-center align-bottom text-center',
|
39
|
+
// Shape
|
40
|
+
'rounded-md rounded-l-none',
|
41
|
+
// Spacing
|
42
|
+
'px-2.5 py-1.5',
|
43
|
+
// Color
|
44
|
+
'ring-1 ring-surface-200',
|
45
|
+
props.modelValue === 'grid'
|
46
|
+
? 'bg-surface-100 text-surface-700'
|
47
|
+
: 'bg-surface-0 text-surface-700/80',
|
48
|
+
// States
|
49
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-primary-500',
|
50
|
+
'hover:bg-surface-200/80',
|
51
|
+
// Transition
|
52
|
+
'transition duration-200',
|
53
|
+
// Misc
|
54
|
+
'cursor-pointer select-none overflow-hidden',
|
55
|
+
],
|
56
|
+
});
|
57
|
+
},
|
58
|
+
};
|
@@ -0,0 +1,87 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
function root({ state }: {
|
3
|
+
state: any;
|
4
|
+
}): {
|
5
|
+
class: (string | {
|
6
|
+
'sm:max-w-[90vw]': boolean;
|
7
|
+
'transition-none'?: undefined;
|
8
|
+
'transform-none'?: undefined;
|
9
|
+
'!w-screen'?: undefined;
|
10
|
+
'!h-screen'?: undefined;
|
11
|
+
'!max-h-full'?: undefined;
|
12
|
+
'!top-0'?: undefined;
|
13
|
+
'!left-0'?: undefined;
|
14
|
+
} | {
|
15
|
+
'transition-none': any;
|
16
|
+
'transform-none': any;
|
17
|
+
'!w-screen': any;
|
18
|
+
'!h-screen': any;
|
19
|
+
'!max-h-full': any;
|
20
|
+
'!top-0': any;
|
21
|
+
'!left-0': any;
|
22
|
+
'sm:max-w-[90vw]'?: undefined;
|
23
|
+
})[];
|
24
|
+
};
|
25
|
+
namespace header {
|
26
|
+
let _class: string[];
|
27
|
+
export { _class as class };
|
28
|
+
}
|
29
|
+
namespace title {
|
30
|
+
let _class_1: string[];
|
31
|
+
export { _class_1 as class };
|
32
|
+
}
|
33
|
+
namespace icons {
|
34
|
+
let _class_2: string[];
|
35
|
+
export { _class_2 as class };
|
36
|
+
}
|
37
|
+
namespace closeButton {
|
38
|
+
let _class_3: string[];
|
39
|
+
export { _class_3 as class };
|
40
|
+
}
|
41
|
+
namespace maximizablebutton {
|
42
|
+
let _class_4: string[];
|
43
|
+
export { _class_4 as class };
|
44
|
+
}
|
45
|
+
namespace closeButtonIcon {
|
46
|
+
let _class_5: string[];
|
47
|
+
export { _class_5 as class };
|
48
|
+
}
|
49
|
+
namespace maximizableicon {
|
50
|
+
let _class_6: string[];
|
51
|
+
export { _class_6 as class };
|
52
|
+
}
|
53
|
+
function content({ state, instance }: {
|
54
|
+
state: any;
|
55
|
+
instance: any;
|
56
|
+
}): {
|
57
|
+
class: (string | {
|
58
|
+
grow: any;
|
59
|
+
})[];
|
60
|
+
};
|
61
|
+
namespace footer {
|
62
|
+
let _class_7: string[];
|
63
|
+
export { _class_7 as class };
|
64
|
+
}
|
65
|
+
function mask({ props }: {
|
66
|
+
props: any;
|
67
|
+
}): {
|
68
|
+
class: (string | {
|
69
|
+
'p-5': boolean;
|
70
|
+
'has-[.mask-active]:bg-transparent bg-dialog-mask'?: undefined;
|
71
|
+
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm'?: undefined;
|
72
|
+
} | {
|
73
|
+
'has-[.mask-active]:bg-transparent bg-dialog-mask': any;
|
74
|
+
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': any;
|
75
|
+
'p-5'?: undefined;
|
76
|
+
})[];
|
77
|
+
};
|
78
|
+
function transition({ props }: {
|
79
|
+
props: any;
|
80
|
+
}): {
|
81
|
+
enterFromClass: string;
|
82
|
+
enterActiveClass: string;
|
83
|
+
leaveActiveClass: string;
|
84
|
+
leaveToClass: string;
|
85
|
+
};
|
86
|
+
}
|
87
|
+
export default _default;
|
@@ -0,0 +1,220 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
root: function (_a) {
|
5
|
+
var state = _a.state;
|
6
|
+
return ({
|
7
|
+
class: [
|
8
|
+
// Shape
|
9
|
+
// 'rounded-lg',
|
10
|
+
// 'shadow-xl',
|
11
|
+
// 'border-0',
|
12
|
+
'rounded-[0.4375em]',
|
13
|
+
'shadow-panel',
|
14
|
+
// Layout
|
15
|
+
'flex flex-col',
|
16
|
+
// Spacing
|
17
|
+
'p-6',
|
18
|
+
'gap-3',
|
19
|
+
// Background
|
20
|
+
'bg-white',
|
21
|
+
// Size
|
22
|
+
'max-h-[90vh]',
|
23
|
+
{ 'sm:max-w-[90vw]': !state.maximized },
|
24
|
+
'm-0',
|
25
|
+
// Transitions
|
26
|
+
'transform',
|
27
|
+
'scale-100',
|
28
|
+
// Maximized State
|
29
|
+
{
|
30
|
+
'transition-none': state.maximized,
|
31
|
+
'transform-none': state.maximized,
|
32
|
+
'!w-screen': state.maximized,
|
33
|
+
'!h-screen': state.maximized,
|
34
|
+
'!max-h-full': state.maximized,
|
35
|
+
'!top-0': state.maximized,
|
36
|
+
'!left-0': state.maximized,
|
37
|
+
},
|
38
|
+
],
|
39
|
+
});
|
40
|
+
},
|
41
|
+
header: {
|
42
|
+
class: [
|
43
|
+
// Flexbox and Alignment
|
44
|
+
'flex items-center gap-2',
|
45
|
+
'shrink-0',
|
46
|
+
// Shape
|
47
|
+
'rounded-tl-lg',
|
48
|
+
'rounded-tr-lg',
|
49
|
+
// Colors
|
50
|
+
'text-general-800',
|
51
|
+
],
|
52
|
+
},
|
53
|
+
title: {
|
54
|
+
class: [
|
55
|
+
'text-general-800 text-sm font-bold leading-[19.12px] tracking-[0.24px]',
|
56
|
+
],
|
57
|
+
},
|
58
|
+
icons: {
|
59
|
+
class: ['flex items-center ml-auto'],
|
60
|
+
},
|
61
|
+
closeButton: {
|
62
|
+
class: [
|
63
|
+
'relative',
|
64
|
+
// Flexbox and Alignment
|
65
|
+
'flex items-center justify-center',
|
66
|
+
// Size and Spacing
|
67
|
+
'w-6 h-6 !p-0.5',
|
68
|
+
// Shape
|
69
|
+
'border-0',
|
70
|
+
'rounded-full',
|
71
|
+
// Colors
|
72
|
+
'text-general-200',
|
73
|
+
'bg-transparent',
|
74
|
+
// Transitions
|
75
|
+
'transition duration-200 ease-in-out',
|
76
|
+
// States
|
77
|
+
'hover:bg-general-50 hover:text-general-300',
|
78
|
+
// Misc
|
79
|
+
'overflow-hidden',
|
80
|
+
],
|
81
|
+
},
|
82
|
+
maximizablebutton: {
|
83
|
+
class: [
|
84
|
+
'relative',
|
85
|
+
// Flexbox and Alignment
|
86
|
+
'flex items-center justify-center',
|
87
|
+
// Size and Spacing
|
88
|
+
'mr-2',
|
89
|
+
'last:mr-0',
|
90
|
+
'w-6 h-6',
|
91
|
+
// Shape
|
92
|
+
'border-0',
|
93
|
+
'rounded-full',
|
94
|
+
// Colors
|
95
|
+
'text-surface-500',
|
96
|
+
'bg-transparent',
|
97
|
+
// Transitions
|
98
|
+
'transition duration-200 ease-in-out',
|
99
|
+
// States
|
100
|
+
'hover:text-surface-700',
|
101
|
+
'hover:bg-surface-100',
|
102
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset',
|
103
|
+
'focus:ring-primary-500',
|
104
|
+
// Misc
|
105
|
+
'overflow-hidden',
|
106
|
+
],
|
107
|
+
},
|
108
|
+
closeButtonIcon: {
|
109
|
+
class: [
|
110
|
+
// Display
|
111
|
+
'inline-block',
|
112
|
+
// Color
|
113
|
+
'text-general-200',
|
114
|
+
// Size
|
115
|
+
'w-3.5',
|
116
|
+
'h-3.5',
|
117
|
+
],
|
118
|
+
},
|
119
|
+
maximizableicon: {
|
120
|
+
class: [
|
121
|
+
// Display
|
122
|
+
'inline-block',
|
123
|
+
// Size
|
124
|
+
'w-3',
|
125
|
+
'h-3',
|
126
|
+
],
|
127
|
+
},
|
128
|
+
content: function (_a) {
|
129
|
+
var state = _a.state, instance = _a.instance;
|
130
|
+
return ({
|
131
|
+
class: [
|
132
|
+
// Font
|
133
|
+
'!text-general-800 text-xs font-normal',
|
134
|
+
'pr-1.5 -mr-1.5 pl-1.5 -ml-1.5 pt-1.5 -mt-1.5 !pb-1.5 -mb-1.5',
|
135
|
+
// Layout
|
136
|
+
'flex flex-col gap-3',
|
137
|
+
// Shape
|
138
|
+
// Colors
|
139
|
+
'text-surface-600',
|
140
|
+
// Misc
|
141
|
+
'overflow-y-auto scrollbar-w-none',
|
142
|
+
{
|
143
|
+
grow: state === null || state === void 0 ? void 0 : state.maximized,
|
144
|
+
},
|
145
|
+
],
|
146
|
+
});
|
147
|
+
},
|
148
|
+
footer: {
|
149
|
+
class: [
|
150
|
+
// Flexbox and Alignment
|
151
|
+
'flex items-center justify-end',
|
152
|
+
'shrink-0',
|
153
|
+
'text-right',
|
154
|
+
'gap-1 mt-2',
|
155
|
+
// Shape
|
156
|
+
'border-t-0',
|
157
|
+
'rounded-b-lg',
|
158
|
+
// Colors
|
159
|
+
'bg-inherit',
|
160
|
+
'text-surface-700/80',
|
161
|
+
],
|
162
|
+
},
|
163
|
+
mask: function (_a) {
|
164
|
+
var props = _a.props;
|
165
|
+
return ({
|
166
|
+
class: [
|
167
|
+
// Transitions
|
168
|
+
'transition',
|
169
|
+
'duration-300',
|
170
|
+
{ 'p-5': !props.position == 'full' },
|
171
|
+
// Background and Effects
|
172
|
+
{
|
173
|
+
'has-[.mask-active]:bg-transparent bg-dialog-mask': props.modal,
|
174
|
+
'has-[.mask-active]:backdrop-blur-none backdrop-blur-sm': props.modal,
|
175
|
+
},
|
176
|
+
],
|
177
|
+
});
|
178
|
+
},
|
179
|
+
transition: function (_a) {
|
180
|
+
var props = _a.props;
|
181
|
+
return props.position === 'top'
|
182
|
+
? {
|
183
|
+
enterFromClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0 mask-active',
|
184
|
+
enterActiveClass: 'transition-all duration-200 ease-out',
|
185
|
+
leaveActiveClass: 'transition-all duration-200 ease-out',
|
186
|
+
leaveToClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0 mask-active',
|
187
|
+
}
|
188
|
+
: props.position === 'bottom'
|
189
|
+
? {
|
190
|
+
enterFromClass: 'opacity-0 scale-75 translate-y-full mask-active',
|
191
|
+
enterActiveClass: 'transition-all duration-200 ease-out',
|
192
|
+
leaveActiveClass: 'transition-all duration-200 ease-out',
|
193
|
+
leaveToClass: 'opacity-0 scale-75 translate-x-0 translate-y-full translate-z-0 mask-active',
|
194
|
+
}
|
195
|
+
: props.position === 'left' ||
|
196
|
+
props.position === 'topleft' ||
|
197
|
+
props.position === 'bottomleft'
|
198
|
+
? {
|
199
|
+
enterFromClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0 mask-active',
|
200
|
+
enterActiveClass: 'transition-all duration-200 ease-out',
|
201
|
+
leaveActiveClass: 'transition-all duration-200 ease-out',
|
202
|
+
leaveToClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0 mask-active',
|
203
|
+
}
|
204
|
+
: props.position === 'right' ||
|
205
|
+
props.position === 'topright' ||
|
206
|
+
props.position === 'bottomright'
|
207
|
+
? {
|
208
|
+
enterFromClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0 mask-active',
|
209
|
+
enterActiveClass: 'transition-all duration-200 ease-out',
|
210
|
+
leaveActiveClass: 'transition-all duration-200 ease-out',
|
211
|
+
leaveToClass: 'opacity-0 scale-75 opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0 mask-active',
|
212
|
+
}
|
213
|
+
: {
|
214
|
+
enterFromClass: 'opacity-0 scale-75 mask-active',
|
215
|
+
enterActiveClass: 'transition-all duration-200 ease-out',
|
216
|
+
leaveActiveClass: 'transition-all duration-200 ease-out',
|
217
|
+
leaveToClass: 'opacity-0 scale-75 mask-active',
|
218
|
+
};
|
219
|
+
},
|
220
|
+
};
|