@fewangsit/wangsvue-presets 1.0.81 → 1.0.82-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/fixedasset/accordion/index.d.ts +37 -0
  2. package/fixedasset/accordion/index.js +70 -0
  3. package/fixedasset/autocomplete/index.d.ts +188 -0
  4. package/fixedasset/autocomplete/index.js +247 -0
  5. package/fixedasset/avatar/index.d.ts +85 -0
  6. package/fixedasset/avatar/index.js +44 -0
  7. package/fixedasset/avatargroup/index.d.ts +8 -0
  8. package/fixedasset/avatargroup/index.js +9 -0
  9. package/fixedasset/badge/index.d.ts +47 -0
  10. package/fixedasset/badge/index.js +60 -0
  11. package/fixedasset/badgedirective/index.d.ts +50 -0
  12. package/fixedasset/badgedirective/index.js +49 -0
  13. package/fixedasset/badgegroup/index.d.ts +45 -0
  14. package/fixedasset/badgegroup/index.js +29 -0
  15. package/fixedasset/breadcrumb/index.d.ts +25 -0
  16. package/fixedasset/breadcrumb/index.js +31 -0
  17. package/fixedasset/button/index.d.ts +46 -0
  18. package/fixedasset/button/index.js +423 -0
  19. package/fixedasset/buttonbulkaction/index.d.ts +32 -0
  20. package/fixedasset/buttonbulkaction/index.js +35 -0
  21. package/fixedasset/buttondownload/index.d.ts +12 -0
  22. package/fixedasset/buttondownload/index.js +13 -0
  23. package/fixedasset/buttonfilter/index.d.ts +12 -0
  24. package/fixedasset/buttonfilter/index.js +13 -0
  25. package/fixedasset/buttonradio/index.d.ts +58 -0
  26. package/fixedasset/buttonradio/index.js +109 -0
  27. package/fixedasset/buttonsearch/index.d.ts +65 -0
  28. package/fixedasset/buttonsearch/index.js +62 -0
  29. package/fixedasset/calendar/index.d.ts +267 -0
  30. package/fixedasset/calendar/index.js +610 -0
  31. package/fixedasset/card/index.d.ts +31 -0
  32. package/fixedasset/card/index.js +32 -0
  33. package/fixedasset/carousel/index.d.ts +57 -0
  34. package/fixedasset/carousel/index.js +129 -0
  35. package/fixedasset/cascadeselect/index.d.ts +82 -0
  36. package/fixedasset/cascadeselect/index.js +191 -0
  37. package/fixedasset/changelog/index.d.ts +32 -0
  38. package/fixedasset/changelog/index.js +31 -0
  39. package/fixedasset/checkbox/index.d.ts +81 -0
  40. package/fixedasset/checkbox/index.js +107 -0
  41. package/fixedasset/chip/index.d.ts +23 -0
  42. package/fixedasset/chip/index.js +40 -0
  43. package/fixedasset/chips/index.d.ts +38 -0
  44. package/fixedasset/chips/index.js +98 -0
  45. package/fixedasset/colorpicker/index.d.ts +51 -0
  46. package/fixedasset/colorpicker/index.js +118 -0
  47. package/fixedasset/colors.config.json +77 -0
  48. package/fixedasset/confirmpopup/index.d.ts +39 -0
  49. package/fixedasset/confirmpopup/index.js +104 -0
  50. package/fixedasset/contextmenu/index.d.ts +63 -0
  51. package/fixedasset/contextmenu/index.js +113 -0
  52. package/fixedasset/datatable/index.d.ts +286 -0
  53. package/fixedasset/datatable/index.js +253 -0
  54. package/fixedasset/dataview/index.d.ts +15 -0
  55. package/fixedasset/dataview/index.js +36 -0
  56. package/fixedasset/dataviewlayoutoptions/index.d.ts +13 -0
  57. package/fixedasset/dataviewlayoutoptions/index.js +58 -0
  58. package/fixedasset/dialog/index.d.ts +87 -0
  59. package/fixedasset/dialog/index.js +220 -0
  60. package/fixedasset/dialogconfirm/index.d.ts +42 -0
  61. package/fixedasset/dialogconfirm/index.js +45 -0
  62. package/fixedasset/dialogform/index.d.ts +71 -0
  63. package/fixedasset/dialogform/index.js +68 -0
  64. package/fixedasset/divider/index.d.ts +192 -0
  65. package/fixedasset/divider/index.js +64 -0
  66. package/fixedasset/dock/index.d.ts +51 -0
  67. package/fixedasset/dock/index.js +92 -0
  68. package/fixedasset/dropdown/index.d.ts +136 -0
  69. package/fixedasset/dropdown/index.js +207 -0
  70. package/fixedasset/fieldset/index.d.ts +94 -0
  71. package/fixedasset/fieldset/index.js +87 -0
  72. package/fixedasset/fileupload/index.d.ts +29 -0
  73. package/fixedasset/fileupload/index.js +31 -0
  74. package/fixedasset/form/index.d.ts +40 -0
  75. package/fixedasset/form/index.js +44 -0
  76. package/fixedasset/global.d.ts +8 -0
  77. package/fixedasset/global.js +14 -0
  78. package/fixedasset/image/index.d.ts +88 -0
  79. package/fixedasset/image/index.js +136 -0
  80. package/fixedasset/index.d.ts +190 -0
  81. package/fixedasset/index.js +201 -0
  82. package/fixedasset/index.system.js +76 -0
  83. package/fixedasset/inlinemessage/index.d.ts +20 -0
  84. package/fixedasset/inlinemessage/index.js +30 -0
  85. package/fixedasset/inputbadge/index.d.ts +57 -0
  86. package/fixedasset/inputbadge/index.js +57 -0
  87. package/fixedasset/inputcurrency/index.d.ts +27 -0
  88. package/fixedasset/inputcurrency/index.js +22 -0
  89. package/fixedasset/inputgroup/index.d.ts +9 -0
  90. package/fixedasset/inputgroup/index.js +37 -0
  91. package/fixedasset/inputgroupaddon/index.d.ts +17 -0
  92. package/fixedasset/inputgroupaddon/index.js +34 -0
  93. package/fixedasset/inputmask/index.d.ts +11 -0
  94. package/fixedasset/inputmask/index.js +29 -0
  95. package/fixedasset/inputnumber/index.d.ts +46 -0
  96. package/fixedasset/inputnumber/index.js +58 -0
  97. package/fixedasset/inputotp/index.d.ts +137 -0
  98. package/fixedasset/inputotp/index.js +63 -0
  99. package/fixedasset/inputphonenumber/index.d.ts +37 -0
  100. package/fixedasset/inputphonenumber/index.js +34 -0
  101. package/fixedasset/inputswitch/index.d.ts +67 -0
  102. package/fixedasset/inputswitch/index.js +100 -0
  103. package/fixedasset/inputtext/index.d.ts +18 -0
  104. package/fixedasset/inputtext/index.js +28 -0
  105. package/fixedasset/knob/index.d.ts +22 -0
  106. package/fixedasset/knob/index.js +45 -0
  107. package/fixedasset/listbox/index.d.ts +79 -0
  108. package/fixedasset/listbox/index.js +138 -0
  109. package/fixedasset/megamenu/index.d.ts +105 -0
  110. package/fixedasset/megamenu/index.js +202 -0
  111. package/fixedasset/menu/index.d.ts +49 -0
  112. package/fixedasset/menu/index.js +110 -0
  113. package/fixedasset/menubar/index.d.ts +85 -0
  114. package/fixedasset/menubar/index.js +172 -0
  115. package/fixedasset/message/index.d.ts +41 -0
  116. package/fixedasset/message/index.js +85 -0
  117. package/fixedasset/multiselect/index.d.ts +243 -0
  118. package/fixedasset/multiselect/index.js +328 -0
  119. package/fixedasset/orderlist/index.d.ts +99 -0
  120. package/fixedasset/orderlist/index.js +245 -0
  121. package/fixedasset/organizationchart/index.d.ts +71 -0
  122. package/fixedasset/organizationchart/index.js +129 -0
  123. package/fixedasset/overlaypanel/index.d.ts +17 -0
  124. package/fixedasset/overlaypanel/index.js +34 -0
  125. package/fixedasset/paginator/index.d.ts +210 -0
  126. package/fixedasset/paginator/index.js +474 -0
  127. package/fixedasset/panel/index.d.ts +43 -0
  128. package/fixedasset/panel/index.js +85 -0
  129. package/fixedasset/panelmenu/index.d.ts +76 -0
  130. package/fixedasset/panelmenu/index.js +124 -0
  131. package/fixedasset/password/index.d.ts +45 -0
  132. package/fixedasset/password/index.js +96 -0
  133. package/fixedasset/picklist/index.d.ts +245 -0
  134. package/fixedasset/picklist/index.js +613 -0
  135. package/fixedasset/progressbar/index.d.ts +117 -0
  136. package/fixedasset/progressbar/index.js +102 -0
  137. package/fixedasset/rating/index.d.ts +47 -0
  138. package/fixedasset/rating/index.js +88 -0
  139. package/fixedasset/ripple/index.d.ts +8 -0
  140. package/fixedasset/ripple/index.js +8 -0
  141. package/fixedasset/scrollpanel/index.d.ts +19 -0
  142. package/fixedasset/scrollpanel/index.js +62 -0
  143. package/fixedasset/scrolltop/index.d.ts +50 -0
  144. package/fixedasset/scrolltop/index.js +42 -0
  145. package/fixedasset/selectbutton/index.d.ts +35 -0
  146. package/fixedasset/selectbutton/index.js +60 -0
  147. package/fixedasset/sidebar/index.d.ts +66 -0
  148. package/fixedasset/sidebar/index.js +145 -0
  149. package/fixedasset/skeleton/index.d.ts +16 -0
  150. package/fixedasset/skeleton/index.js +22 -0
  151. package/fixedasset/slider/index.d.ts +55 -0
  152. package/fixedasset/slider/index.js +126 -0
  153. package/fixedasset/splitbutton/index.d.ts +6690 -0
  154. package/fixedasset/splitbutton/index.js +786 -0
  155. package/fixedasset/steps/index.d.ts +108 -0
  156. package/fixedasset/steps/index.js +119 -0
  157. package/fixedasset/style.css +5888 -0
  158. package/fixedasset/tabmenu/index.d.ts +57 -0
  159. package/fixedasset/tabmenu/index.js +75 -0
  160. package/fixedasset/tabview/index.d.ts +67 -0
  161. package/fixedasset/tabview/index.js +148 -0
  162. package/fixedasset/tag/index.d.ts +32 -0
  163. package/fixedasset/tag/index.js +37 -0
  164. package/fixedasset/terminal/index.d.ts +27 -0
  165. package/fixedasset/terminal/index.js +55 -0
  166. package/fixedasset/textarea/index.d.ts +12 -0
  167. package/fixedasset/textarea/index.js +51 -0
  168. package/fixedasset/tieredmenu/index.d.ts +56 -0
  169. package/fixedasset/tieredmenu/index.js +108 -0
  170. package/fixedasset/timeline/index.d.ts +53 -0
  171. package/fixedasset/timeline/index.js +83 -0
  172. package/fixedasset/toast/index.d.ts +61 -0
  173. package/fixedasset/toast/index.js +95 -0
  174. package/fixedasset/togglebutton/index.d.ts +42 -0
  175. package/fixedasset/togglebutton/index.js +77 -0
  176. package/fixedasset/toolbar/index.d.ts +19 -0
  177. package/fixedasset/toolbar/index.js +29 -0
  178. package/fixedasset/tooltip/index.d.ts +22 -0
  179. package/fixedasset/tooltip/index.js +42 -0
  180. package/fixedasset/tree/index.d.ts +117 -0
  181. package/fixedasset/tree/index.js +256 -0
  182. package/fixedasset/treeselect/index.d.ts +158 -0
  183. package/fixedasset/treeselect/index.js +338 -0
  184. package/fixedasset/tristatecheckbox/index.d.ts +49 -0
  185. package/fixedasset/tristatecheckbox/index.js +106 -0
  186. package/fixedasset/validatormessage/index.d.ts +8 -0
  187. package/fixedasset/validatormessage/index.js +9 -0
  188. package/fixedasset/workcalendar/index.d.ts +27 -0
  189. package/fixedasset/workcalendar/index.js +36 -0
  190. package/index.d.ts +1 -0
  191. package/index.js +3 -1
  192. package/package.json +1 -1
@@ -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,13 @@
1
+ declare namespace _default {
2
+ function listbutton({ props }: {
3
+ props: any;
4
+ }): {
5
+ class: string[];
6
+ };
7
+ function gridbutton({ props }: {
8
+ props: any;
9
+ }): {
10
+ class: string[];
11
+ };
12
+ }
13
+ export default _default;
@@ -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
+ };