primereact 10.0.0 → 10.0.1

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.
Files changed (319) hide show
  1. package/README.md +1 -1
  2. package/componentbase/componentbase.cjs.js +12 -7
  3. package/componentbase/componentbase.cjs.min.js +1 -1
  4. package/componentbase/componentbase.esm.min.mjs +1 -1
  5. package/componentbase/componentbase.esm.mjs +12 -7
  6. package/componentbase/componentbase.js +12 -7
  7. package/componentbase/componentbase.min.js +1 -1
  8. package/core/core.js +12 -7
  9. package/core/core.min.js +1 -1
  10. package/package.json +1 -1
  11. package/primereact.all.cjs.js +12 -7
  12. package/primereact.all.cjs.min.js +1 -1
  13. package/primereact.all.esm.min.mjs +1 -1
  14. package/primereact.all.esm.mjs +12 -7
  15. package/primereact.all.js +12 -7
  16. package/primereact.all.min.js +1 -1
  17. package/web-types.json +1 -1
  18. package/accordion/accordion.esm.js +0 -421
  19. package/accordion/accordion.esm.min.js +0 -1
  20. package/api/api.esm.js +0 -944
  21. package/api/api.esm.min.js +0 -1
  22. package/autocomplete/autocomplete.esm.js +0 -1127
  23. package/autocomplete/autocomplete.esm.min.js +0 -1
  24. package/avatar/avatar.esm.js +0 -245
  25. package/avatar/avatar.esm.min.js +0 -1
  26. package/avatargroup/avatargroup.esm.js +0 -55
  27. package/avatargroup/avatargroup.esm.min.js +0 -1
  28. package/badge/badge.esm.js +0 -110
  29. package/badge/badge.esm.min.js +0 -1
  30. package/blockui/blockui.esm.js +0 -265
  31. package/blockui/blockui.esm.min.js +0 -1
  32. package/breadcrumb/breadcrumb.esm.js +0 -351
  33. package/breadcrumb/breadcrumb.esm.min.js +0 -1
  34. package/button/button.esm.js +0 -295
  35. package/button/button.esm.min.js +0 -1
  36. package/calendar/calendar.esm.js +0 -3473
  37. package/calendar/calendar.esm.min.js +0 -1
  38. package/card/card.esm.js +0 -98
  39. package/card/card.esm.min.js +0 -1
  40. package/carousel/carousel.esm.js +0 -801
  41. package/carousel/carousel.esm.min.js +0 -1
  42. package/cascadeselect/cascadeselect.esm.js +0 -819
  43. package/cascadeselect/cascadeselect.esm.min.js +0 -1
  44. package/chart/chart.esm.js +0 -155
  45. package/chart/chart.esm.min.js +0 -1
  46. package/checkbox/checkbox.esm.js +0 -357
  47. package/checkbox/checkbox.esm.min.js +0 -1
  48. package/chip/chip.esm.js +0 -248
  49. package/chip/chip.esm.min.js +0 -1
  50. package/chips/chips.esm.js +0 -501
  51. package/chips/chips.esm.min.js +0 -1
  52. package/colorpicker/colorpicker.esm.js +0 -788
  53. package/colorpicker/colorpicker.esm.min.js +0 -1
  54. package/column/column.esm.js +0 -8
  55. package/column/column.esm.min.js +0 -1
  56. package/columngroup/columngroup.esm.js +0 -6
  57. package/columngroup/columngroup.esm.min.js +0 -1
  58. package/componentbase/componentbase.esm.js +0 -323
  59. package/componentbase/componentbase.esm.min.js +0 -1
  60. package/confirmdialog/confirmdialog.esm.js +0 -376
  61. package/confirmdialog/confirmdialog.esm.min.js +0 -1
  62. package/confirmpopup/confirmpopup.esm.js +0 -610
  63. package/confirmpopup/confirmpopup.esm.min.js +0 -1
  64. package/contextmenu/contextmenu.esm.js +0 -664
  65. package/contextmenu/contextmenu.esm.min.js +0 -1
  66. package/csstransition/csstransition.esm.js +0 -138
  67. package/csstransition/csstransition.esm.min.js +0 -1
  68. package/datascroller/datascroller.esm.js +0 -320
  69. package/datascroller/datascroller.esm.min.js +0 -1
  70. package/datatable/datatable.esm.js +0 -6636
  71. package/datatable/datatable.esm.min.js +0 -1
  72. package/dataview/dataview.esm.js +0 -506
  73. package/dataview/dataview.esm.min.js +0 -1
  74. package/deferredcontent/deferredcontent.esm.js +0 -133
  75. package/deferredcontent/deferredcontent.esm.min.js +0 -1
  76. package/dialog/dialog.esm.js +0 -983
  77. package/dialog/dialog.esm.min.js +0 -1
  78. package/divider/divider.esm.js +0 -79
  79. package/divider/divider.esm.min.js +0 -1
  80. package/dock/dock.esm.js +0 -348
  81. package/dock/dock.esm.min.js +0 -1
  82. package/dropdown/dropdown.esm.js +0 -1380
  83. package/dropdown/dropdown.esm.min.js +0 -1
  84. package/editor/editor.esm.js +0 -338
  85. package/editor/editor.esm.min.js +0 -1
  86. package/fieldset/fieldset.esm.js +0 -270
  87. package/fieldset/fieldset.esm.min.js +0 -1
  88. package/fileupload/fileupload.esm.js +0 -1005
  89. package/fileupload/fileupload.esm.min.js +0 -1
  90. package/galleria/galleria.esm.js +0 -1090
  91. package/galleria/galleria.esm.min.js +0 -1
  92. package/hooks/hooks.esm.js +0 -1042
  93. package/hooks/hooks.esm.min.js +0 -1
  94. package/iconbase/iconbase.esm.js +0 -33
  95. package/iconbase/iconbase.esm.min.js +0 -1
  96. package/icons/angledoubledown/index.esm.js +0 -39
  97. package/icons/angledoubledown/index.esm.min.js +0 -1
  98. package/icons/angledoubleleft/index.esm.js +0 -39
  99. package/icons/angledoubleleft/index.esm.min.js +0 -1
  100. package/icons/angledoubleright/index.esm.js +0 -39
  101. package/icons/angledoubleright/index.esm.min.js +0 -1
  102. package/icons/angledoubleup/index.esm.js +0 -39
  103. package/icons/angledoubleup/index.esm.min.js +0 -1
  104. package/icons/angledown/index.esm.js +0 -37
  105. package/icons/angledown/index.esm.min.js +0 -1
  106. package/icons/angleleft/index.esm.js +0 -37
  107. package/icons/angleleft/index.esm.min.js +0 -1
  108. package/icons/angleright/index.esm.js +0 -37
  109. package/icons/angleright/index.esm.min.js +0 -1
  110. package/icons/angleup/index.esm.js +0 -37
  111. package/icons/angleup/index.esm.min.js +0 -1
  112. package/icons/arrowdown/index.esm.js +0 -661
  113. package/icons/arrowdown/index.esm.min.js +0 -1
  114. package/icons/arrowup/index.esm.js +0 -661
  115. package/icons/arrowup/index.esm.min.js +0 -1
  116. package/icons/ban/index.esm.js +0 -659
  117. package/icons/ban/index.esm.min.js +0 -1
  118. package/icons/bars/index.esm.js +0 -39
  119. package/icons/bars/index.esm.min.js +0 -1
  120. package/icons/calendar/index.esm.js +0 -37
  121. package/icons/calendar/index.esm.min.js +0 -1
  122. package/icons/check/index.esm.js +0 -37
  123. package/icons/check/index.esm.min.js +0 -1
  124. package/icons/chevrondown/index.esm.js +0 -37
  125. package/icons/chevrondown/index.esm.min.js +0 -1
  126. package/icons/chevronleft/index.esm.js +0 -37
  127. package/icons/chevronleft/index.esm.min.js +0 -1
  128. package/icons/chevronright/index.esm.js +0 -37
  129. package/icons/chevronright/index.esm.min.js +0 -1
  130. package/icons/chevronup/index.esm.js +0 -37
  131. package/icons/chevronup/index.esm.min.js +0 -1
  132. package/icons/download/index.esm.js +0 -661
  133. package/icons/download/index.esm.min.js +0 -1
  134. package/icons/exclamationtriangle/index.esm.js +0 -665
  135. package/icons/exclamationtriangle/index.esm.min.js +0 -1
  136. package/icons/eye/index.esm.js +0 -39
  137. package/icons/eye/index.esm.min.js +0 -1
  138. package/icons/eyeslash/index.esm.js +0 -661
  139. package/icons/eyeslash/index.esm.min.js +0 -1
  140. package/icons/filter/index.esm.js +0 -659
  141. package/icons/filter/index.esm.min.js +0 -1
  142. package/icons/filterslash/index.esm.js +0 -661
  143. package/icons/filterslash/index.esm.min.js +0 -1
  144. package/icons/infocircle/index.esm.js +0 -661
  145. package/icons/infocircle/index.esm.min.js +0 -1
  146. package/icons/minus/index.esm.js +0 -37
  147. package/icons/minus/index.esm.min.js +0 -1
  148. package/icons/pencil/index.esm.js +0 -659
  149. package/icons/pencil/index.esm.min.js +0 -1
  150. package/icons/plus/index.esm.js +0 -659
  151. package/icons/plus/index.esm.min.js +0 -1
  152. package/icons/refresh/index.esm.js +0 -661
  153. package/icons/refresh/index.esm.min.js +0 -1
  154. package/icons/search/index.esm.js +0 -661
  155. package/icons/search/index.esm.min.js +0 -1
  156. package/icons/searchminus/index.esm.js +0 -661
  157. package/icons/searchminus/index.esm.min.js +0 -1
  158. package/icons/searchplus/index.esm.js +0 -661
  159. package/icons/searchplus/index.esm.min.js +0 -1
  160. package/icons/sortalt/index.esm.js +0 -668
  161. package/icons/sortalt/index.esm.min.js +0 -1
  162. package/icons/sortamountdown/index.esm.js +0 -674
  163. package/icons/sortamountdown/index.esm.min.js +0 -1
  164. package/icons/sortamountupalt/index.esm.js +0 -674
  165. package/icons/sortamountupalt/index.esm.min.js +0 -1
  166. package/icons/spinner/index.esm.js +0 -659
  167. package/icons/spinner/index.esm.min.js +0 -1
  168. package/icons/star/index.esm.js +0 -659
  169. package/icons/star/index.esm.min.js +0 -1
  170. package/icons/starfill/index.esm.js +0 -659
  171. package/icons/starfill/index.esm.min.js +0 -1
  172. package/icons/thlarge/index.esm.js +0 -661
  173. package/icons/thlarge/index.esm.min.js +0 -1
  174. package/icons/times/index.esm.js +0 -37
  175. package/icons/times/index.esm.min.js +0 -1
  176. package/icons/timescircle/index.esm.js +0 -661
  177. package/icons/timescircle/index.esm.min.js +0 -1
  178. package/icons/trash/index.esm.js +0 -661
  179. package/icons/trash/index.esm.min.js +0 -1
  180. package/icons/undo/index.esm.js +0 -661
  181. package/icons/undo/index.esm.min.js +0 -1
  182. package/icons/upload/index.esm.js +0 -661
  183. package/icons/upload/index.esm.min.js +0 -1
  184. package/icons/windowmaximize/index.esm.js +0 -661
  185. package/icons/windowmaximize/index.esm.min.js +0 -1
  186. package/icons/windowminimize/index.esm.js +0 -661
  187. package/icons/windowminimize/index.esm.min.js +0 -1
  188. package/image/image.esm.js +0 -1162
  189. package/image/image.esm.min.js +0 -1
  190. package/inplace/inplace.esm.js +0 -243
  191. package/inplace/inplace.esm.min.js +0 -1
  192. package/inputmask/inputmask.esm.js +0 -560
  193. package/inputmask/inputmask.esm.min.js +0 -1
  194. package/inputnumber/inputnumber.esm.js +0 -1209
  195. package/inputnumber/inputnumber.esm.min.js +0 -1
  196. package/inputswitch/inputswitch.esm.js +0 -291
  197. package/inputswitch/inputswitch.esm.min.js +0 -1
  198. package/inputtext/inputtext.esm.js +0 -171
  199. package/inputtext/inputtext.esm.min.js +0 -1
  200. package/inputtextarea/inputtextarea.esm.js +0 -220
  201. package/inputtextarea/inputtextarea.esm.min.js +0 -1
  202. package/keyfilter/keyfilter.esm.js +0 -108
  203. package/keyfilter/keyfilter.esm.min.js +0 -1
  204. package/knob/knob.esm.js +0 -318
  205. package/knob/knob.esm.min.js +0 -1
  206. package/listbox/listbox.esm.js +0 -810
  207. package/listbox/listbox.esm.min.js +0 -1
  208. package/megamenu/megamenu.esm.js +0 -716
  209. package/megamenu/megamenu.esm.min.js +0 -1
  210. package/mention/mention.esm.js +0 -771
  211. package/mention/mention.esm.min.js +0 -1
  212. package/menu/menu.esm.js +0 -485
  213. package/menu/menu.esm.min.js +0 -1
  214. package/menubar/menubar.esm.js +0 -584
  215. package/menubar/menubar.esm.min.js +0 -1
  216. package/message/message.esm.js +0 -169
  217. package/message/message.esm.min.js +0 -1
  218. package/messages/messages.esm.js +0 -439
  219. package/messages/messages.esm.min.js +0 -1
  220. package/multiselect/multiselect.esm.js +0 -1724
  221. package/multiselect/multiselect.esm.min.js +0 -1
  222. package/multistatecheckbox/multistatecheckbox.esm.js +0 -352
  223. package/multistatecheckbox/multistatecheckbox.esm.min.js +0 -1
  224. package/orderlist/orderlist.esm.js +0 -816
  225. package/orderlist/orderlist.esm.min.js +0 -1
  226. package/organizationchart/organizationchart.esm.js +0 -480
  227. package/organizationchart/organizationchart.esm.min.js +0 -1
  228. package/overlaypanel/overlaypanel.esm.js +0 -516
  229. package/overlaypanel/overlaypanel.esm.min.js +0 -1
  230. package/overlayservice/overlayservice.esm.js +0 -7
  231. package/overlayservice/overlayservice.esm.min.js +0 -1
  232. package/paginator/paginator.esm.js +0 -933
  233. package/paginator/paginator.esm.min.js +0 -1
  234. package/panel/panel.esm.js +0 -316
  235. package/panel/panel.esm.min.js +0 -1
  236. package/panelmenu/panelmenu.esm.js +0 -645
  237. package/panelmenu/panelmenu.esm.min.js +0 -1
  238. package/passthrough/index.esm.js +0 -71
  239. package/passthrough/index.esm.min.js +0 -1
  240. package/passthrough/tailwind/index.esm.js +0 -3509
  241. package/passthrough/tailwind/index.esm.min.js +0 -1
  242. package/password/password.esm.js +0 -567
  243. package/password/password.esm.min.js +0 -1
  244. package/picklist/picklist.esm.js +0 -1119
  245. package/picklist/picklist.esm.min.js +0 -1
  246. package/portal/portal.esm.js +0 -110
  247. package/portal/portal.esm.min.js +0 -1
  248. package/primereact.all.esm.js +0 -51646
  249. package/primereact.all.esm.min.js +0 -1
  250. package/progressbar/progressbar.esm.js +0 -190
  251. package/progressbar/progressbar.esm.min.js +0 -1
  252. package/progressspinner/progressspinner.esm.js +0 -88
  253. package/progressspinner/progressspinner.esm.min.js +0 -1
  254. package/radiobutton/radiobutton.esm.js +0 -329
  255. package/radiobutton/radiobutton.esm.min.js +0 -1
  256. package/rating/rating.esm.js +0 -273
  257. package/rating/rating.esm.min.js +0 -1
  258. package/ripple/ripple.esm.js +0 -100
  259. package/ripple/ripple.esm.min.js +0 -1
  260. package/row/row.esm.js +0 -36
  261. package/row/row.esm.min.js +0 -1
  262. package/scrollpanel/scrollpanel.esm.js +0 -210
  263. package/scrollpanel/scrollpanel.esm.min.js +0 -1
  264. package/scrolltop/scrolltop.esm.js +0 -269
  265. package/scrolltop/scrolltop.esm.min.js +0 -1
  266. package/selectbutton/selectbutton.esm.js +0 -327
  267. package/selectbutton/selectbutton.esm.min.js +0 -1
  268. package/sidebar/sidebar.esm.js +0 -543
  269. package/sidebar/sidebar.esm.min.js +0 -1
  270. package/skeleton/skeleton.esm.js +0 -125
  271. package/skeleton/skeleton.esm.min.js +0 -1
  272. package/slidemenu/slidemenu.esm.js +0 -689
  273. package/slidemenu/slidemenu.esm.min.js +0 -1
  274. package/slider/slider.esm.js +0 -478
  275. package/slider/slider.esm.min.js +0 -1
  276. package/speeddial/speeddial.esm.js +0 -521
  277. package/speeddial/speeddial.esm.min.js +0 -1
  278. package/splitbutton/splitbutton.esm.js +0 -545
  279. package/splitbutton/splitbutton.esm.min.js +0 -1
  280. package/splitter/splitter.esm.js +0 -466
  281. package/splitter/splitter.esm.min.js +0 -1
  282. package/steps/steps.esm.js +0 -294
  283. package/steps/steps.esm.min.js +0 -1
  284. package/styleclass/styleclass.esm.js +0 -269
  285. package/styleclass/styleclass.esm.min.js +0 -1
  286. package/tabmenu/tabmenu.esm.js +0 -332
  287. package/tabmenu/tabmenu.esm.min.js +0 -1
  288. package/tabview/tabview.esm.js +0 -678
  289. package/tabview/tabview.esm.min.js +0 -1
  290. package/tag/tag.esm.js +0 -117
  291. package/tag/tag.esm.min.js +0 -1
  292. package/terminal/terminal.esm.js +0 -280
  293. package/terminal/terminal.esm.min.js +0 -1
  294. package/terminalservice/terminalservice.esm.js +0 -7
  295. package/terminalservice/terminalservice.esm.min.js +0 -1
  296. package/tieredmenu/tieredmenu.esm.js +0 -699
  297. package/tieredmenu/tieredmenu.esm.min.js +0 -1
  298. package/timeline/timeline.esm.js +0 -164
  299. package/timeline/timeline.esm.min.js +0 -1
  300. package/toast/toast.esm.js +0 -739
  301. package/toast/toast.esm.min.js +0 -1
  302. package/togglebutton/togglebutton.esm.js +0 -217
  303. package/togglebutton/togglebutton.esm.min.js +0 -1
  304. package/toolbar/toolbar.esm.js +0 -79
  305. package/toolbar/toolbar.esm.min.js +0 -1
  306. package/tooltip/tooltip.esm.js +0 -696
  307. package/tooltip/tooltip.esm.min.js +0 -1
  308. package/tree/tree.esm.js +0 -1403
  309. package/tree/tree.esm.min.js +0 -1
  310. package/treeselect/treeselect.esm.js +0 -930
  311. package/treeselect/treeselect.esm.min.js +0 -1
  312. package/treetable/treetable.esm.js +0 -3094
  313. package/treetable/treetable.esm.min.js +0 -1
  314. package/tristatecheckbox/tristatecheckbox.esm.js +0 -292
  315. package/tristatecheckbox/tristatecheckbox.esm.min.js +0 -1
  316. package/utils/utils.esm.js +0 -2383
  317. package/utils/utils.esm.min.js +0 -1
  318. package/virtualscroller/virtualscroller.esm.js +0 -972
  319. package/virtualscroller/virtualscroller.esm.min.js +0 -1
@@ -1,3509 +0,0 @@
1
- 'use client';
2
-
3
- function _typeof(o) {
4
- "@babel/helpers - typeof";
5
-
6
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
- return typeof o;
8
- } : function (o) {
9
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
- }, _typeof(o);
11
- }
12
-
13
- function _toPrimitive(input, hint) {
14
- if (_typeof(input) !== "object" || input === null) return input;
15
- var prim = input[Symbol.toPrimitive];
16
- if (prim !== undefined) {
17
- var res = prim.call(input, hint || "default");
18
- if (_typeof(res) !== "object") return res;
19
- throw new TypeError("@@toPrimitive must return a primitive value.");
20
- }
21
- return (hint === "string" ? String : Number)(input);
22
- }
23
-
24
- function _toPropertyKey(arg) {
25
- var key = _toPrimitive(arg, "string");
26
- return _typeof(key) === "symbol" ? key : String(key);
27
- }
28
-
29
- function _defineProperty(obj, key, value) {
30
- key = _toPropertyKey(key);
31
- if (key in obj) {
32
- Object.defineProperty(obj, key, {
33
- value: value,
34
- enumerable: true,
35
- configurable: true,
36
- writable: true
37
- });
38
- } else {
39
- obj[key] = value;
40
- }
41
- return obj;
42
- }
43
-
44
- function _arrayWithHoles(arr) {
45
- if (Array.isArray(arr)) return arr;
46
- }
47
-
48
- function _iterableToArrayLimit(r, l) {
49
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
50
- if (null != t) {
51
- var e,
52
- n,
53
- i,
54
- u,
55
- a = [],
56
- f = !0,
57
- o = !1;
58
- try {
59
- if (i = (t = t.call(r)).next, 0 === l) {
60
- if (Object(t) !== t) return;
61
- f = !1;
62
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
63
- } catch (r) {
64
- o = !0, n = r;
65
- } finally {
66
- try {
67
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
68
- } finally {
69
- if (o) throw n;
70
- }
71
- }
72
- return a;
73
- }
74
- }
75
-
76
- function _arrayLikeToArray(arr, len) {
77
- if (len == null || len > arr.length) len = arr.length;
78
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
79
- return arr2;
80
- }
81
-
82
- function _unsupportedIterableToArray(o, minLen) {
83
- if (!o) return;
84
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
85
- var n = Object.prototype.toString.call(o).slice(8, -1);
86
- if (n === "Object" && o.constructor) n = o.constructor.name;
87
- if (n === "Map" || n === "Set") return Array.from(o);
88
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
89
- }
90
-
91
- function _nonIterableRest() {
92
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
93
- }
94
-
95
- function _slicedToArray(arr, i) {
96
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
97
- }
98
-
99
- function classNames() {
100
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
101
- args[_key] = arguments[_key];
102
- }
103
- if (args) {
104
- var classes = [];
105
- for (var i = 0; i < args.length; i++) {
106
- var className = args[i];
107
- if (!className) continue;
108
- var type = _typeof(className);
109
- if (type === 'string' || type === 'number') {
110
- classes.push(className);
111
- } else if (type === 'object') {
112
- var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
113
- var _ref2 = _slicedToArray(_ref, 2),
114
- key = _ref2[0],
115
- value = _ref2[1];
116
- return !!value ? key : null;
117
- });
118
- classes = _classes.length ? classes.concat(_classes.filter(function (c) {
119
- return !!c;
120
- })) : classes;
121
- }
122
- }
123
- return classes.join(' ').trim();
124
- }
125
- return undefined;
126
- }
127
-
128
- var TRANSITIONS = {
129
- toggleable: {
130
- classNames: {
131
- enter: 'max-h-0',
132
- enterActive: 'overflow-hidden transition-all duration-500 ease-in-out',
133
- enterDone: 'max-h-40',
134
- exit: 'max-h-40',
135
- exitActive: 'overflow-hidden transition-all duration-500 ease-in',
136
- exitDone: 'max-h-0'
137
- }
138
- },
139
- overlay: {
140
- classNames: {
141
- enter: 'opacity-0 scale-75',
142
- enterActive: 'transition-transform transition-opacity duration-150 ease-in',
143
- exitActive: 'transition-opacity duration-150 ease-linear',
144
- exitDone: 'opacity-0'
145
- }
146
- }
147
- };
148
- var Tailwind = {
149
- global: {
150
- css: "\n *[data-pd-ripple=\"true\"]{\n overflow: hidden;\n position: relative;\n }\n span[data-p-ink-active=\"true\"]{\n animation: ripple 0.4s linear;\n }\n @keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n }\n\n .progress-spinner-circle {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: 0;\n animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;\n stroke-linecap: round;\n }\n\n @keyframes p-progress-spinner-dash{\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n \n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n @keyframes p-progress-spinner-color {\n 100%, 0% {\n stroke: #ff5757;\n }\n 40% {\n stroke: #696cff;\n }\n 66% {\n stroke: #1ea97c;\n }\n 80%, 90% {\n stroke: #cc8925;\n }\n }\n\n .progressbar-value-animate::after {\n will-change: left, right;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n }\n .progressbar-value-animate::before {\n will-change: left, right;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n }\n @keyframes p-progressbar-indeterminate-anim {\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n }\n"
151
- },
152
- //PANELS
153
- panel: {
154
- header: function header(_ref) {
155
- var props = _ref.props;
156
- return {
157
- className: classNames('flex items-center justify-between',
158
- // flex and alignments
159
- 'border border-gray-300 bg-gray-100 text-gray-700 rounded-tl-lg rounded-tr-lg',
160
- // borders and colors
161
- 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80',
162
- // Dark mode
163
- {
164
- 'p-5': !props.toggleable,
165
- 'py-3 px-5': props.toggleable
166
- } // condition
167
- )
168
- };
169
- },
170
-
171
- title: 'leading-none font-bold',
172
- toggler: {
173
- className: classNames('inline-flex items-center justify-center overflow-hidden relative no-underline',
174
- // alignments
175
- 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out',
176
- // widths, borders, and transitions
177
- 'hover:text-gray-900 hover:border-transparent hover:bg-gray-200 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]',
178
- // hover
179
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]' // focus
180
- )
181
- },
182
-
183
- togglerIcon: 'inline-block',
184
- content: {
185
- className: classNames('p-5 border border-gray-300 bg-white text-gray-700 border-t-0 last:rounded-br-lg last:rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode
186
- )
187
- },
188
-
189
- transition: TRANSITIONS.toggleable
190
- },
191
- accordion: {
192
- root: 'mb-1',
193
- accordiontab: {
194
- root: 'mb-1',
195
- header: function header(_ref2) {
196
- var context = _ref2.context;
197
- return {
198
- className: classNames({
199
- 'select-none pointer-events-none cursor-default opacity-60': context.disabled
200
- } // Condition
201
- )
202
- };
203
- },
204
-
205
- headerAction: function headerAction(_ref3) {
206
- var context = _ref3.context;
207
- return {
208
- className: classNames('flex items-center cursor-pointer relative no-underline select-none',
209
- // Alignments
210
- 'p-5 transition duration-200 ease-in-out rounded-t-md font-bold transition-shadow duration-200',
211
- // Padding and transition
212
- 'border border-gray-300 bg-gray-100 text-gray-600',
213
- // Borders and colors
214
- 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]',
215
- // Dark mode
216
- 'hover:border-gray-300 hover:bg-gray-200 hover:text-gray-800',
217
- // Hover
218
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)]',
219
- // Focus
220
- {
221
- 'rounded-br-md rounded-bl-md': !context.selected,
222
- 'rounded-br-0 rounded-bl-0 text-gray-800': context.selected
223
- } // Condition
224
- )
225
- };
226
- },
227
-
228
- headerIcon: 'inline-block mr-2',
229
- headerTitle: 'leading-none',
230
- content: {
231
- className: classNames('p-5 border border-gray-300 bg-white text-gray-700 border-t-0 rounded-tl-none rounded-tr-none rounded-br-lg rounded-bl-lg', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // Dark mode
232
- )
233
- },
234
-
235
- transition: TRANSITIONS.toggleable
236
- }
237
- },
238
- card: {
239
- root: {
240
- className: classNames('bg-white text-gray-700 shadow-md rounded-md',
241
- // Background, text color, box shadow, and border radius.
242
- 'dark:bg-gray-900 dark:text-white ' //dark
243
- )
244
- },
245
-
246
- body: 'p-5',
247
- // Padding.
248
- title: 'text-2xl font-bold mb-2',
249
- // Font size, font weight, and margin bottom.
250
- subtitle: {
251
- className: classNames('font-normal mb-2 text-gray-600',
252
- // Font weight, margin bottom, and text color.
253
- 'dark:text-white/60 ' //dark
254
- )
255
- },
256
-
257
- content: 'py-5',
258
- // Vertical padding.
259
- footer: 'pt-5' // Top padding.
260
- },
261
-
262
- divider: {
263
- root: function root(_ref4) {
264
- var props = _ref4.props;
265
- return {
266
- className: classNames('flex relative',
267
- // alignments.
268
- {
269
- 'w-full my-5 mx-0 py-0 px-5 before:block before:left-0 before:absolute before:top-1/2 before:w-full before:border-t before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'horizontal',
270
- // Padding and borders for horizontal layout.
271
- 'min-h-full mx-4 md:mx-5 py-5 before:block before:min-h-full before:absolute before:left-1/2 before:top-0 before:transform before:-translate-x-1/2 before:border-l before:border-gray-300 before:dark:border-blue-900/40': props.layout == 'vertical' // Padding and borders for vertical layout.
272
- }, {
273
- 'before:border-solid': props.type == 'solid',
274
- 'before:border-dotted': props.type == 'dotted',
275
- 'before:border-dashed': props.type == 'dashed'
276
- } // Border type condition.
277
- )
278
- };
279
- },
280
-
281
- content: 'px-1 bg-white z-10 dark:bg-gray-900' // Padding and background color.
282
- },
283
-
284
- fieldset: {
285
- root: {
286
- className: classNames('border border-gray-300 bg-white text-gray-700 rounded-md block mx-2 my-0.5 pl-4 pr-5 inline-size-min',
287
- // Borders, background, text color, spacing, and inline size.
288
- 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //dark
289
- )
290
- },
291
-
292
- legend: function legend(_ref5) {
293
- var props = _ref5.props;
294
- return {
295
- className: classNames('border border-gray-300 text-gray-700 bg-gray-50 font-bold rounded-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ',
296
- //dark
297
- {
298
- 'p-0 transition-none hover:bg-gray-100 hover:border-gray-300 hover:text-gray-900 dark:hover:text-white/80 dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable,
299
- 'p-5': !props.toggleable
300
- })
301
- };
302
- },
303
- toggler: function toggler(_ref6) {
304
- var props = _ref6.props;
305
- return {
306
- className: classNames('flex items-center justify-center', {
307
- 'p-5 text-gray-700 rounded-md transition-none cursor-pointer overflow-hidden relative select-none hover:text-gray-900 focus:focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:text-white/80 dark:hover:text-white/80 dark:hover:bg-gray-800/60 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': props.toggleable
308
- })
309
- };
310
- },
311
- togglerIcon: 'mr-2 inline-block',
312
- // Margin and display style.
313
- legendTitle: 'flex items-center justify-center leading-none',
314
- // alignments, and leading style.
315
- content: 'p-5',
316
- // Padding.
317
- transition: TRANSITIONS.toggleable
318
- },
319
- scrollpanel: {
320
- wrapper: 'overflow-hidden relative float-left h-full w-full z-[1]',
321
- content: 'box-border h-[calc(100%+18px)] overflow-scroll pr-[18px] pb-[18px] pl-0 pt-0 relative scrollbar-none w-[calc(100%+18px)] [&::-webkit-scrollbar]:hidden',
322
- barX: {
323
- className: classNames('relative bg-gray-100 invisible rounded cursor-pointer h-[9px] bottom-0 z-[2]', 'transition duration-[250ms] ease-linear')
324
- },
325
- barY: {
326
- className: classNames('relative bg-gray-100 rounded cursor-pointer w-[9px] top-0 z-[2]', 'transition duration-[250ms] ease-linear')
327
- }
328
- },
329
- tabview: {
330
- navContainer: function navContainer(_ref7) {
331
- var props = _ref7.props;
332
- return {
333
- className: classNames('relative',
334
- // Relative positioning.
335
- {
336
- 'overflow-hidden': props.scrollable
337
- } // Overflow condition.
338
- )
339
- };
340
- },
341
-
342
- navContent: 'overflow-y-hidden overscroll-contain overscroll-auto scroll-smooth [&::-webkit-scrollbar]:hidden',
343
- // Overflow and scrollbar styles.
344
- previousButton: {
345
- className: classNames('h-full flex items-center justify-center absolute top-0 z-20', 'left-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 )') // Flex and absolute positioning styles.
346
- },
347
-
348
- nextButton: {
349
- className: classNames('h-full flex items-center justify-center absolute top-0 z-20', 'right-0', 'bg-white text-blue-500 w-12 shadow-md rounded-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ') // Flex and absolute positioning styles.
350
- },
351
-
352
- nav: {
353
- className: classNames('flex flex-1 list-none m-0 p-0', 'bg-white border border-gray-300 border-0 border-b-2', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 ') // Flex, list, margin, padding, and border styles.
354
- },
355
-
356
- tabpanel: {
357
- header: function header(_ref8) {
358
- var props = _ref8.props;
359
- return {
360
- className: classNames('mr-0', {
361
- 'cursor-default pointer-events-none select-none user-select-none opacity-60': props === null || props === void 0 ? void 0 : props.disabled
362
- }) // Margin and condition-based styles.
363
- };
364
- },
365
-
366
- headerAction: function headerAction(_ref9) {
367
- var parent = _ref9.parent,
368
- context = _ref9.context;
369
- return {
370
- className: classNames('items-center cursor-pointer flex overflow-hidden relative select-none text-decoration-none user-select-none',
371
- // Flex and overflow styles.
372
- 'border-b-2 p-5 font-bold rounded-t-lg transition-shadow duration-200 m-0',
373
- // Border, padding, font, and transition styles.
374
- 'transition-colors duration-200',
375
- // Transition duration style.
376
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]',
377
- // Focus styles.
378
- {
379
- 'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80': parent.state.d_activeIndex !== context.index,
380
- // Condition-based hover styles.
381
- 'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': parent.state.d_activeIndex === context.index // Condition-based active styles.
382
- }),
383
-
384
- style: {
385
- marginBottom: '-2px'
386
- } // Negative margin style.
387
- };
388
- },
389
-
390
- headerTitle: {
391
- className: classNames('leading-none whitespace-nowrap') // Leading and whitespace styles.
392
- },
393
-
394
- content: {
395
- className: classNames('bg-white p-5 border-0 text-gray-700 rounded-bl-2xl rounded-br-2xl', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80') // Background, padding, border, and text styles.
396
- }
397
- }
398
- },
399
-
400
- splitter: {
401
- root: function root(_ref10) {
402
- var props = _ref10.props,
403
- state = _ref10.state;
404
- return {
405
- className: classNames('flex flex-nowrap bg-white dark:bg-gray-900 rounded-lg text-gray-700 dark:text-white/80', {
406
- 'border border-solid border-gray-300 dark:border-blue-900/40': !state.nested,
407
- 'flex-col': props.layout === 'vertical'
408
- })
409
- };
410
- },
411
- gutter: function gutter(_ref11) {
412
- var props = _ref11.props;
413
- return {
414
- className: classNames('flex items-center justify-center shrink-0', 'transition-all duration-200 bg-gray-100 dark:bg-gray-800', {
415
- 'cursor-col-resize': props.layout == 'horizontal',
416
- 'cursor-row-resize': props.layout !== 'horizontal'
417
- })
418
- };
419
- },
420
- gutterhandler: function gutterhandler(_ref12) {
421
- var props = _ref12.props;
422
- return {
423
- className: classNames('bg-gray-300 dark:bg-gray-600 transition-all duration-200', {
424
- 'h-7 w-[0.3rem]': props.layout == 'horizontal',
425
- 'w-7 h-[0.3rem]': props.layout == 'vertical'
426
- })
427
- };
428
- }
429
- },
430
- dialog: {
431
- root: function root(_ref13) {
432
- var state = _ref13.state;
433
- return {
434
- className: classNames('rounded-lg shadow-lg border-0', 'max-h-90 transform scale-100', 'm-0 w-[50vw]', 'dark:border dark:border-blue-900/40', {
435
- 'transition-none transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': state.maximized
436
- })
437
- };
438
- },
439
- header: {
440
- className: classNames('flex items-center justify-between shrink-0', 'bg-white text-gray-800 border-t-0 rounded-tl-lg rounded-tr-lg p-6', 'dark:bg-gray-900 dark:text-white/80')
441
- },
442
- headerTitle: 'font-bold text-lg',
443
- headerIcons: 'flex items-center',
444
- closeButton: {
445
- className: classNames('flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
446
- // focus
447
- 'dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]')
448
- },
449
- closeButtonIcon: 'w-4 h-4 inline-block',
450
- content: function content(_ref14) {
451
- var state = _ref14.state;
452
- return {
453
- className: classNames('overflow-y-auto', 'bg-white text-gray-700 px-6 pb-8 pt-0', 'rounded-bl-lg rounded-br-lg', 'dark:bg-gray-900 dark:text-white/80 ', {
454
- grow: state.maximized
455
- })
456
- };
457
- },
458
- footer: {
459
- className: classNames('shrink-0 ', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80')
460
- },
461
- mask: function mask(_ref15) {
462
- var props = _ref15.props;
463
- return {
464
- className: classNames('transition duration-200', {
465
- 'bg-black/40': props.modal
466
- })
467
- };
468
- },
469
- transition: function transition(_ref16) {
470
- var props = _ref16.props;
471
- return props.position === 'top' ? {
472
- enterFromClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0',
473
- enterActiveClass: 'transition-all duration-200 ease-out',
474
- leaveActiveClass: 'transition-all duration-200 ease-out',
475
- leaveToClass: 'opacity-0 scale-75 translate-x-0 -translate-y-full translate-z-0'
476
- } : props.position === 'bottom' ? {
477
- enterFromClass: 'opacity-0 scale-75 translate-y-full',
478
- enterActiveClass: 'transition-all duration-200 ease-out',
479
- leaveActiveClass: 'transition-all duration-200 ease-out',
480
- leaveToClass: 'opacity-0 scale-75 translate-x-0 translate-y-full translate-z-0'
481
- } : props.position === 'left' || props.position === 'topleft' || props.position === 'bottomleft' ? {
482
- enterFromClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0',
483
- enterActiveClass: 'transition-all duration-200 ease-out',
484
- leaveActiveClass: 'transition-all duration-200 ease-out',
485
- leaveToClass: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0'
486
- } : props.position === 'right' || props.position === 'topright' || props.position === 'bottomright' ? {
487
- enterFromClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0',
488
- enterActiveClass: 'transition-all duration-200 ease-out',
489
- leaveActiveClass: 'transition-all duration-200 ease-out',
490
- leaveToClass: 'opacity-0 scale-75 opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0'
491
- } : {
492
- enterFromClass: 'opacity-0 scale-75',
493
- enterActiveClass: 'transition-all duration-200 ease-out',
494
- leaveActiveClass: 'transition-all duration-200 ease-out',
495
- leaveToClass: 'opacity-0 scale-75'
496
- };
497
- }
498
- },
499
- confirmpopup: {
500
- root: {
501
- className: classNames('bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'mt-3 absolute left-0 top-0', 'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80')
502
- },
503
- content: 'p-5 items-center flex',
504
- icon: 'text-2xl',
505
- message: 'ml-4',
506
- footer: 'text-right px-5 py-5 pt-0 ',
507
- transition: TRANSITIONS.overlay
508
- },
509
- overlaypanel: {
510
- root: {
511
- className: classNames('bg-white text-gray-700 border-0 rounded-md shadow-lg', 'z-40 transform origin-center', 'absolute left-0 top-0', 'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900', 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80')
512
- },
513
- content: 'p-5 items-center flex',
514
- transition: TRANSITIONS.overlay
515
- },
516
- sidebar: {
517
- root: function root(_ref17) {
518
- var props = _ref17.props;
519
- return {
520
- className: classNames('flex flex-col pointer-events-auto relative transform translate-x-0 translate-y-0 translate-z-0 relative transition-transform duration-300', 'bg-white text-gray-700 border-0 shadow-lg', {
521
- '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0': props.position == 'full',
522
- 'h-full w-80': props.position == 'left' || props.position == 'right',
523
- 'h-40 w-full': props.position == 'top' || props.position == 'bottom'
524
- }, 'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80')
525
- };
526
- },
527
- header: {
528
- className: classNames('flex items-center justify-end', 'p-5')
529
- },
530
- closeButton: {
531
- className: classNames('flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 hover:border-transparent hover:bg-gray-200', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
532
- // focus
533
- 'dark:hover:text-white/80 dark:hover:text-white/80 dark:hover:border-transparent dark:hover:bg-gray-800/80 dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]')
534
- },
535
- closeButtonIcon: 'w-4 h-4 inline-block',
536
- content: {
537
- className: classNames('p-5 pt-0 h-full w-full', 'grow overflow-y-auto')
538
- },
539
- mask: {
540
- className: classNames('flex pointer-events-auto', 'bg-black bg-opacity-40 transition duration-200 z-20 transition-colors')
541
- },
542
- transition: function transition(_ref18) {
543
- var props = _ref18.props;
544
- return props.position === 'top' ? {
545
- enterFromClass: 'translate-x-0 -translate-y-full translate-z-0',
546
- leaveToClass: 'translate-x-0 -translate-y-full translate-z-0'
547
- } : props.position === 'bottom' ? {
548
- enterFromClass: 'translate-x-0 translate-y-full translate-z-0',
549
- leaveToClass: 'translate-x-0 translate-y-full translate-z-0'
550
- } : props.position === 'left' ? {
551
- enterFromClass: '-translate-x-full translate-y-0 translate-z-0',
552
- leaveToClass: '-translate-x-full translate-y-0 translate-z-0'
553
- } : props.position === 'right' ? {
554
- enterFromClass: 'translate-x-full translate-y-0 translate-z-0',
555
- leaveToClass: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0'
556
- } : {
557
- enterFromClass: 'opacity-0',
558
- enterActiveClass: 'transition-opacity duration-400 ease-in',
559
- leaveActiveClass: 'transition-opacity duration-400 ease-in',
560
- leaveToClass: 'opacity-0'
561
- };
562
- }
563
- },
564
- toolbar: {
565
- root: {
566
- className: classNames('flex items-center justify-between flex-wrap', 'bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-blue-900/40 p-5 rounded-md gap-2')
567
- },
568
- start: 'flex items-center',
569
- center: 'flex items-center',
570
- end: 'flex items-center'
571
- },
572
- tooltip: {
573
- root: function root(_ref19) {
574
- var context = _ref19.context;
575
- return {
576
- className: classNames('absolute shadow-md', {
577
- 'py-0 px-1': context.right || context.left || !context.right && !context.left && !context.top && !context.bottom,
578
- 'py-1 px-0': context.top || context.bottom
579
- })
580
- };
581
- },
582
- arrow: function arrow(_ref20) {
583
- var context = _ref20.context;
584
- return {
585
- className: classNames('absolute w-0 h-0 border-transparent border-solid', {
586
- '-m-t-1 border-y-[0.25rem] border-r-[0.25rem] border-l-0 border-r-gray-600': context.right,
587
- '-m-t-1 border-y-[0.25rem] border-l-[0.25rem] border-r-0 border-l-gray-600': context.left,
588
- '-m-l-1 border-x-[0.25rem] border-t-[0.25rem] border-b-0 border-t-gray-600': context.top,
589
- '-m-l-1 border-x-[0.25rem] border-b-[0.25rem] border-t-0 border-b-gray-600': context.bottom
590
- })
591
- };
592
- },
593
- text: {
594
- className: 'p-3 bg-gray-600 text-white rounded-md whitespace-pre-line break-words'
595
- }
596
- },
597
- //UPLOAD
598
- fileupload: {
599
- input: 'hidden',
600
- buttonbar: {
601
- className: classNames('flex flex-wrap', 'bg-gray-50 dark:bg-gray-800 p-5 border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-tr-lg rounded-tl-lg gap-2 border-b-0')
602
- },
603
- basicButton: {
604
- className: classNames('text-white bg-blue-500 border border-blue-500 p-3 px-5 rounded-md text-base', 'overflow-hidden relative')
605
- },
606
- chooseButton: {
607
- className: classNames('text-white bg-blue-500 border border-blue-500 p-3 px-5 rounded-md text-base', 'overflow-hidden relative')
608
- },
609
- chooseIcon: 'mr-2 inline-block',
610
- chooseButtonLabel: 'flex-1 font-bold',
611
- uploadbutton: {
612
- icon: 'mr-2'
613
- },
614
- cancelbutton: {
615
- icon: 'mr-2'
616
- },
617
- content: {
618
- className: classNames('relative', 'bg-white dark:bg-gray-900 p-8 border border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 rounded-b-lg')
619
- },
620
- file: {
621
- className: classNames('flex items-center flex-wrap', 'p-4 border border-gray-300 dark:border-blue-900/40 rounded gap-2 mb-2', 'last:mb-0')
622
- },
623
- thumbnail: 'shrink-0',
624
- fileName: 'mb-2',
625
- fileSize: 'mr-2',
626
- uploadicon: 'mr-2'
627
- },
628
- //Messages
629
- messages: {
630
- root: function root(_ref21) {
631
- var state = _ref21.state,
632
- index = _ref21.index;
633
- return {
634
- className: classNames('my-4 rounded-md', {
635
- 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': state.messages[index] && state.messages[index].message.severity == 'info',
636
- 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': state.messages[index] && state.messages[index].message.severity == 'success',
637
- 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': state.messages[index] && state.messages[index].message.severity == 'warn',
638
- 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': state.messages[index] && state.messages[index].message.severity == 'error'
639
- })
640
- };
641
- },
642
- wrapper: 'flex items-center py-5 px-7',
643
- icon: {
644
- className: classNames('w-6 h-6', 'text-lg mr-2')
645
- },
646
- text: 'text-base font-normal',
647
- button: {
648
- className: classNames('w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30')
649
- },
650
- transition: {
651
- enterFromClass: 'opacity-0',
652
- enterActiveClass: 'transition-opacity duration-300',
653
- leaveFromClass: 'max-h-40',
654
- leaveActiveClass: 'overflow-hidden transition-all duration-300 ease-in',
655
- leaveToClass: 'max-h-0 opacity-0 !m-0'
656
- }
657
- },
658
- message: {
659
- root: function root(_ref22) {
660
- var props = _ref22.props;
661
- return {
662
- className: classNames('inline-flex items-center justify-center align-top', 'p-3 m-0 rounded-md', {
663
- 'bg-blue-100 border-0 text-blue-700': props.severity == 'info',
664
- 'bg-green-100 border-0 text-green-700': props.severity == 'success',
665
- 'bg-orange-100 border-0 text-orange-700': props.severity == 'warn',
666
- 'bg-red-100 border-0 text-red-700': props.severity == 'error'
667
- })
668
- };
669
- },
670
- icon: 'text-base mr-2'
671
- },
672
- toast: {
673
- root: {
674
- className: classNames('w-96', 'opacity-90')
675
- },
676
- message: function message(_ref23) {
677
- var state = _ref23.state,
678
- index = _ref23.index;
679
- return {
680
- className: classNames('my-4 rounded-md w-full', {
681
- 'bg-blue-100 border-solid border-0 border-l-4 border-blue-500 text-blue-700': state.messages[index] && state.messages[index].message.severity == 'info',
682
- 'bg-green-100 border-solid border-0 border-l-4 border-green-500 text-green-700': state.messages[index] && state.messages[index].message.severity == 'success',
683
- 'bg-orange-100 border-solid border-0 border-l-4 border-orange-500 text-orange-700': state.messages[index] && state.messages[index].message.severity == 'warn',
684
- 'bg-red-100 border-solid border-0 border-l-4 border-red-500 text-red-700': state.messages[index] && state.messages[index].message.severity == 'error'
685
- })
686
- };
687
- },
688
- content: 'flex items-center py-5 px-7',
689
- icon: {
690
- className: classNames('w-6 h-6', 'text-lg mr-2')
691
- },
692
- text: 'text-base font-normal flex flex-col flex-1 grow shrink ml-4',
693
- summary: 'font-bold block',
694
- detail: 'mt-1 block',
695
- closebutton: {
696
- className: classNames('w-8 h-8 rounded-full bg-transparent transition duration-200 ease-in-out', 'ml-auto overflow-hidden relative', 'flex items-center justify-center', 'hover:bg-white/30')
697
- },
698
- transition: {
699
- enterFromClass: 'opacity-0 translate-x-0 translate-y-2/4 translate-z-0',
700
- enterActiveClass: 'transition-transform transition-opacity duration-300',
701
- leaveFromClass: 'max-h-40',
702
- leaveActiveClass: 'transition-all duration-500 ease-in',
703
- leaveToClass: 'max-h-0 opacity-0 mb-0 overflow-hidden'
704
- }
705
- },
706
- //BUTTONS
707
- button: {
708
- root: function root(_ref24) {
709
- var props = _ref24.props,
710
- context = _ref24.context;
711
- return {
712
- className: classNames('items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom h-full', 'transition duration-200 ease-in-out', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_2px_rgba(255,255,255,1),0_0_0_4px_rgba(157,193,251,1),0_1px_2px_0_rgba(0,0,0,1)] dark:focus:shadow-[0_0_0_2px_rgba(28,33,39,1),0_0_0_4px_rgba(147,197,253,0.7),0_1px_2px_0_rgba(0,0,0,0)]',
713
- // Primary button focus
714
- {
715
- 'text-white bg-blue-500 border border-blue-500 hover:bg-blue-600 hover:border-blue-600': !props.link && props.severity === null && !props.text && !props.outlined && !props.plain,
716
- 'text-blue-600 bg-transparent border-transparent': props.link
717
- }, {
718
- 'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.severity === 'secondary' && !props.text && !props.outlined && !props.plain,
719
- 'text-white bg-green-500 border border-green-500 hover:bg-green-600 hover:border-green-600': props.severity === 'success' && !props.text && !props.outlined && !props.plain,
720
- 'text-white bg-blue-500 border border-blue-500 hover:bg-blue-600 hover:border-blue-600': props.severity === 'info' && !props.text && !props.outlined && !props.plain,
721
- 'text-white bg-orange-500 border border-orange-500 hover:bg-orange-600 hover:border-orange-600': props.severity === 'warning' && !props.text && !props.outlined && !props.plain,
722
- 'text-white bg-purple-500 border border-purple-500 hover:bg-purple-600 hover:border-purple-600': props.severity === 'help' && !props.text && !props.outlined && !props.plain,
723
- 'text-white bg-red-500 border border-red-500 hover:bg-red-600 hover:border-red-600': props.severity === 'danger' && !props.text && !props.outlined && !props.plain
724
- }, {
725
- 'shadow-lg': props.raised
726
- }, {
727
- 'rounded-md': !props.rounded,
728
- 'rounded-full': props.rounded
729
- }, {
730
- 'bg-transparent border-transparent': props.text && !props.plain,
731
- 'text-blue-500 hover:bg-blue-300/20': props.text && (props.severity === null || props.severity === 'info') && !props.plain,
732
- 'text-gray-500 hover:bg-gray-300/20': props.text && props.severity === 'secondary' && !props.plain,
733
- 'text-green-500 hover:bg-green-300/20': props.text && props.severity === 'success' && !props.plain,
734
- 'text-orange-500 hover:bg-orange-300/20': props.text && props.severity === 'warning' && !props.plain,
735
- 'text-purple-500 hover:bg-purple-300/20': props.text && props.severity === 'help' && !props.plain,
736
- 'text-red-500 hover:bg-red-300/20': props.text && props.severity === 'danger' && !props.plain
737
- }, {
738
- 'shadow-lg': props.raised && props.text
739
- }, {
740
- 'text-gray-500 hover:bg-gray-300/20': props.plain & props.text,
741
- 'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.plain & props.outlined,
742
- 'text-white bg-gray-500 border border-gray-500 hover:bg-gray-600 hover:border-gray-600': props.plain & !props.outlined & !props.text
743
- }, {
744
- 'bg-transparent border': props.outlined && !props.plain,
745
- 'text-blue-500 border border-blue-500 hover:bg-blue-300/20': props.outlined && (props.severity === null || props.severity === 'info') && !props.plain,
746
- 'text-gray-500 border border-gray-500 hover:bg-gray-300/20': props.outlined && props.severity === 'secondary' && !props.plain,
747
- 'text-green-500 border border-green-500 hover:bg-green-300/20': props.outlined && props.severity === 'success' && !props.plain,
748
- 'text-orange-500 border border-orange-500 hover:bg-orange-300/20': props.outlined && props.severity === 'warning' && !props.plain,
749
- 'text-purple-500 border border-purple-500 hover:bg-purple-300/20': props.outlined && props.severity === 'help' && !props.plain,
750
- 'text-red-500 border border-red-500 hover:bg-red-300/20': props.outlined && props.severity === 'danger' && !props.plain
751
- }, {
752
- 'px-4 py-3 text-base': props.size === null,
753
- 'text-xs py-2 px-3': props.size === 'small',
754
- 'text-xl py-3 px-4': props.size === 'large'
755
- }, {
756
- 'opacity-60 pointer-events-none cursor-default': context === null || context === void 0 ? void 0 : context.disabled
757
- })
758
- };
759
- },
760
- label: function label(_ref25) {
761
- var props = _ref25.props;
762
- return {
763
- className: classNames('flex-1', 'duration-200', 'font-bold', {
764
- 'hover:underline': props.link
765
- })
766
- };
767
- },
768
- icon: function icon(_ref26) {
769
- var props = _ref26.props;
770
- return {
771
- className: classNames('mx-0', {
772
- 'mr-2': props.iconPos == 'left' && props.label != null,
773
- 'ml-2': props.iconPos == 'right' && props.label != null,
774
- 'mb-2': props.iconPos == 'top' && props.label != null,
775
- 'mt-2': props.iconPos == 'bottom' && props.label != null
776
- })
777
- };
778
- },
779
- badge: function badge(_ref27) {
780
- var props = _ref27.props;
781
- return {
782
- className: classNames({
783
- 'ml-2 w-4 h-4 leading-none flex items-center justify-center': props.badge
784
- })
785
- };
786
- }
787
- },
788
- speeddial: {
789
- root: 'absolute flex',
790
- button: {
791
- root: function root(_ref28) {
792
- var parent = _ref28.parent;
793
- return {
794
- className: classNames('w-16 !h-16 !rounded-full justify-center z-10', {
795
- 'rotate-45': parent.state.visible
796
- })
797
- };
798
- },
799
- label: {
800
- className: 'hidden'
801
- }
802
- },
803
- menu: 'm-0 p-0 list-none flex items-center justify-center transition delay-200 z-20',
804
- menuitem: function menuitem(_ref29) {
805
- var props = _ref29.props,
806
- state = _ref29.state;
807
- return {
808
- className: classNames('transform transition-transform duration-200 ease-out transition-opacity duration-800', !state.visible ? 'opacity-0 scale-0' : 'opacity-1 scale-100', {
809
- 'my-1 first:mb-2': props.direction == 'up' && props.type == 'linear',
810
- 'my-1 first:mt-2': props.direction == 'down' && props.type == 'linear',
811
- 'mx-1 first:mr-2': props.direction == 'left' && props.type == 'linear',
812
- 'mx-1 first:ml-2': props.direction == 'right' && props.type == 'linear'
813
- }, {
814
- absolute: props.type !== 'linear'
815
- })
816
- };
817
- },
818
- action: {
819
- className: classNames('flex items-center justify-center rounded-full relative overflow-hidden', 'w-12 h-12 bg-gray-700 hover:bg-gray-800 text-white')
820
- },
821
- mask: function mask(_ref30) {
822
- var state = _ref30.state;
823
- return {
824
- className: classNames('absolute left-0 top-0 w-full h-full transition-opacity duration-250 ease-in-out bg-black/40 z-0', {
825
- 'opacity-0': !state.visible,
826
- 'pointer-events-none opacity-100 transition-opacity duration-400 ease-in-out': state.visible
827
- })
828
- };
829
- }
830
- },
831
- splitbutton: {
832
- root: function root(_ref31) {
833
- var props = _ref31.props;
834
- return {
835
- className: classNames('inline-flex relative', 'rounded-md', {
836
- 'shadow-lg': props.raised
837
- })
838
- };
839
- },
840
- button: {
841
- root: function root(_ref32) {
842
- var parent = _ref32.parent;
843
- return {
844
- className: classNames('rounded-r-none border-r-0', {
845
- 'rounded-l-full': parent.props.rounded
846
- })
847
- };
848
- },
849
- icon: 'mr-2'
850
- },
851
- menu: {
852
- className: classNames('outline-none', 'm-0 p-0 list-none')
853
- },
854
- menulist: 'relative',
855
- menubutton: {
856
- root: function root(_ref33) {
857
- var parent = _ref33.parent;
858
- return {
859
- className: classNames('rounded-l-none', {
860
- 'rounded-r-full': parent.props.rounded
861
- })
862
- };
863
- },
864
- label: 'hidden'
865
- }
866
- },
867
- //FORMS
868
- inputtext: {
869
- root: function root(_ref34) {
870
- var props = _ref34.props,
871
- context = _ref34.context;
872
- return {
873
- className: classNames('m-0', 'font-sans text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', {
874
- 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
875
- 'opacity-60 select-none pointer-events-none cursor-default': context.disabled
876
- }, {
877
- 'text-lg px-4 py-4': props.size == 'large',
878
- 'text-xs px-2 py-2': props.size == 'small',
879
- 'p-3 text-base': props.size == null
880
- })
881
- };
882
- }
883
- },
884
- inputnumber: {
885
- root: 'w-full inline-flex',
886
- input: function input(_ref35) {
887
- var props = _ref35.props;
888
- return {
889
- className: classNames({
890
- 'rounded-tr-none rounded-br-none': props.showButtons && props.buttonLayout == 'stacked'
891
- })
892
- };
893
- },
894
- buttongroup: function buttongroup(_ref36) {
895
- var props = _ref36.props;
896
- return {
897
- className: classNames({
898
- 'flex flex-col': props.showButtons && props.buttonLayout == 'stacked'
899
- })
900
- };
901
- },
902
- incrementbutton: function incrementbutton(_ref37) {
903
- var props = _ref37.props;
904
- return {
905
- className: classNames('flex !items-center !justify-center', {
906
- 'rounded-br-none rounded-bl-none rounded-bl-none !p-0 flex-1 w-[3rem]': props.showButtons && props.buttonLayout == 'stacked'
907
- })
908
- };
909
- },
910
- label: 'hidden',
911
- decrementbutton: function decrementbutton(_ref38) {
912
- var props = _ref38.props;
913
- return {
914
- className: classNames('flex !items-center !justify-center', {
915
- 'rounded-tr-none rounded-tl-none rounded-tl-none !p-0 flex-1 w-[3rem]': props.showButtons && props.buttonLayout == 'stacked'
916
- })
917
- };
918
- }
919
- },
920
- knob: {
921
- root: function root(_ref39) {
922
- var props = _ref39.props;
923
- return {
924
- className: classNames('focus:outline-none focus:outline-offset-0 focus:shadow-0', {
925
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
926
- })
927
- };
928
- },
929
- range: 'stroke-current transition duration-100 ease-in stroke-gray-200 dark:stroke-gray-700 fill-none',
930
- value: 'animate-dash-frame stroke-blue-500 fill-none',
931
- label: 'text-center text-xl'
932
- },
933
- inputswitch: {
934
- root: function root(_ref40) {
935
- var props = _ref40.props;
936
- return {
937
- className: classNames('inline-block relative', 'w-12 h-7', {
938
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
939
- })
940
- };
941
- },
942
- slider: function slider(_ref41) {
943
- var props = _ref41.props;
944
- return {
945
- className: classNames('absolute cursor-pointer top-0 left-0 right-0 bottom-0 border border-transparent', 'transition-colors duration-200 rounded-2xl', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', "before:absolute before:content-'' before:top-1/2 before:bg-white before:dark:bg-gray-900 before:w-5 before:h-5 before:left-1 before:-mt-2.5 before:rounded-full before:transition-duration-200", {
946
- 'bg-gray-200 dark:bg-gray-800 hover:bg-gray-300 hover:dark:bg-gray-700 ': !props.checked,
947
- 'bg-blue-500 before:transform before:translate-x-5': props.checked
948
- })
949
- };
950
- }
951
- },
952
- cascadeselect: {
953
- root: function root(_ref42) {
954
- var props = _ref42.props;
955
- return {
956
- className: classNames('inline-flex cursor-pointer select-none relative', 'bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition duration-200 ease-in-out rounded-lg', {
957
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
958
- })
959
- };
960
- },
961
- label: {
962
- className: classNames('block whitespace-nowrap overflow-hidden flex flex-1 w-1 text-overflow-ellipsis cursor-pointer', 'bg-transparent border-0 p-3 text-gray-700 dark:text-white/80', 'appearance-none rounded-md')
963
- },
964
- dropdownbutton: {
965
- className: classNames('flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/80 w-[3rem] rounded-tr-6 rounded-br-6')
966
- },
967
- panel: 'absolute py-3 bg-white dark:bg-gray-900 border-0 shadow-md',
968
- list: 'm-0 sm:p-0 list-none',
969
- sublist: {
970
- className: classNames('block absolute left-full top-0', 'min-w-full z-10', 'py-3 bg-white dark:bg-gray-900 border-0 shadow-md')
971
- },
972
- item: {
973
- className: classNames('cursor-pointer font-normal whitespace-nowrap', 'm-0 border-0 bg-transparent transition-shadow rounded-none', 'text-gray-700 dark:text-white/80 hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80')
974
- },
975
- content: {
976
- className: classNames('flex items-center overflow-hidden relative', 'py-3 px-5')
977
- },
978
- optiongroupicon: 'ml-auto',
979
- transition: TRANSITIONS.overlay
980
- },
981
- inputmask: {
982
- root: 'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 py-3 px-3 border border-gray-300 dark:border-blue-900/40 hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)] transition duration-200 ease-in-out appearance-none rounded-md'
983
- },
984
- rating: {
985
- root: function root(_ref43) {
986
- var props = _ref43.props;
987
- return {
988
- className: classNames('relative flex items-center', 'gap-2', {
989
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
990
- })
991
- };
992
- },
993
- cancelitem: function cancelitem(_ref44) {
994
- _ref44.context;
995
- return {
996
- className: classNames('inline-flex items-center cursor-pointer'
997
-
998
- // {
999
- // 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
1000
- // }
1001
- )
1002
- };
1003
- },
1004
-
1005
- cancelicon: {
1006
- className: classNames('text-red-500', 'w-5 h-5', 'transition duration-200 ease-in')
1007
- },
1008
- item: function item(_ref45) {
1009
- var props = _ref45.props,
1010
- context = _ref45.context;
1011
- return {
1012
- className: classNames('inline-flex items-center', {
1013
- 'cursor-pointer': !props.readonly,
1014
- 'cursor-default': props.readonly
1015
- }, {
1016
- 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
1017
- })
1018
- };
1019
- },
1020
- officon: {
1021
- className: classNames('text-gray-700 hover:text-blue-400', 'w-5 h-5', 'transition duration-200 ease-in')
1022
- },
1023
- onicon: {
1024
- className: classNames('text-blue-500', 'w-5 h-5', 'transition duration-200 ease-in')
1025
- }
1026
- },
1027
- selectbutton: {
1028
- root: function root(_ref46) {
1029
- var props = _ref46.props;
1030
- return {
1031
- className: classNames({
1032
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1033
- })
1034
- };
1035
- },
1036
- button: function button(_ref47) {
1037
- var context = _ref47.context;
1038
- return {
1039
- className: classNames('inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative', 'px-4 py-3', 'transition duration-200 border border-r-0', 'first:rounded-l-md first:rounded-tr-none first:rounded-br-none last:border-r last:rounded-tl-none last:rounded-bl-none last:rounded-r-md', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1040
- 'bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-gray-300 dark:border-blue-900/40 hover:bg-gray-50 dark:hover:bg-gray-800/80 ': !context.selected,
1041
- 'bg-blue-500 border-blue-500 text-white hover:bg-blue-600': context.selected,
1042
- 'opacity-60 select-none pointer-events-none cursor-default': context.disabled
1043
- })
1044
- };
1045
- },
1046
- label: 'font-bold'
1047
- },
1048
- slider: {
1049
- root: function root(_ref48) {
1050
- var props = _ref48.props;
1051
- return {
1052
- className: classNames('relative', 'bg-gray-100 dark:bg-gray-800 border-0 rounded-6', {
1053
- 'h-1 w-56': props.orientation == 'horizontal',
1054
- 'w-1 h-56': props.orientation == 'vertical'
1055
- }, {
1056
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1057
- })
1058
- };
1059
- },
1060
- range: function range(_ref49) {
1061
- var props = _ref49.props;
1062
- return {
1063
- className: classNames('bg-blue-500', 'block absolute', {
1064
- 'top-0 left-0 h-full': props.orientation == 'horizontal',
1065
- 'bottom-0 left-0 w-full': props.orientation == 'vertical'
1066
- })
1067
- };
1068
- },
1069
- handle: function handle(_ref50) {
1070
- var props = _ref50.props;
1071
- return {
1072
- className: classNames('h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', {
1073
- 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
1074
- 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
1075
- })
1076
- };
1077
- },
1078
- starthandler: function starthandler(_ref51) {
1079
- var props = _ref51.props;
1080
- return {
1081
- className: classNames('h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', {
1082
- 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
1083
- 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
1084
- })
1085
- };
1086
- },
1087
- endhandler: function endhandler(_ref52) {
1088
- var props = _ref52.props;
1089
- return {
1090
- className: classNames('h-4 w-4 bg-white dark:bg-gray-600 border-2 border-blue-500 rounded-full transition duration-200', 'cursor-grab touch-action-none block', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'hover:bg-blue-500 hover:border hover:border-blue-500', {
1091
- 'top-[50%] mt-[-0.5715rem] ml-[-0.5715rem]': props.orientation == 'horizontal',
1092
- 'left-[50%] mb-[-0.5715rem] ml-[-0.4715rem]': props.orientation == 'vertical'
1093
- })
1094
- };
1095
- }
1096
- },
1097
- password: {
1098
- root: function root(_ref53) {
1099
- var props = _ref53.props;
1100
- return {
1101
- className: classNames('inline-flex relative', {
1102
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1103
- })
1104
- };
1105
- },
1106
- panel: 'p-5 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 shadow-md rounded-md',
1107
- meter: 'mb-2 bg-gray-300 dark:bg-gray-700 h-3',
1108
- meterlabel: function meterlabel(_ref54) {
1109
- var _state$meter, _state$meter2, _state$meter3;
1110
- var state = _ref54.state,
1111
- props = _ref54.props;
1112
- return {
1113
- className: classNames('transition-width duration-1000 ease-in-out h-full', {
1114
- 'bg-red-500': ((_state$meter = state.meter) === null || _state$meter === void 0 ? void 0 : _state$meter.strength) == 'weak',
1115
- 'bg-orange-500': ((_state$meter2 = state.meter) === null || _state$meter2 === void 0 ? void 0 : _state$meter2.strength) == 'medium',
1116
- 'bg-green-500': ((_state$meter3 = state.meter) === null || _state$meter3 === void 0 ? void 0 : _state$meter3.strength) == 'strong'
1117
- }, {
1118
- 'pr-[2.5rem] ': props.toggleMask
1119
- })
1120
- };
1121
- },
1122
- showicon: {
1123
- className: classNames('absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70')
1124
- },
1125
- hideicon: {
1126
- className: classNames('absolute top-1/2 -mt-2', 'right-3 text-gray-600 dark:text-white/70')
1127
- },
1128
- transition: TRANSITIONS.overlay
1129
- },
1130
- togglebutton: {
1131
- root: function root(_ref55) {
1132
- var props = _ref55.props;
1133
- _ref55.context;
1134
- return {
1135
- className: classNames('inline-flex cursor-pointer select-none items-center align-bottom text-center overflow-hidden relative', 'px-4 py-3 rounded-md text-base w-36', 'border transition duration-200 ease-in-out',
1136
- // {
1137
- // 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
1138
- // },
1139
- {
1140
- 'bg-white dark:bg-gray-900 border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 hover:bg-gray-100 dark:hover:bg-gray-800/80 hover:border-gray-300 dark:hover:bg-gray-800/70 hover:text-gray-700 dark:hover:text-white/80': !props.checked,
1141
- 'bg-blue-500 border-blue-500 text-white hover:bg-blue-600 hover:border-blue-600': props.checked
1142
- }, {
1143
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1144
- })
1145
- };
1146
- },
1147
- label: 'font-bold text-center w-full',
1148
- icon: function icon(_ref56) {
1149
- var props = _ref56.props;
1150
- return {
1151
- className: classNames(' mr-2', {
1152
- 'text-gray-600 dark:text-white/70': !props.modelValue,
1153
- 'text-white': props.checked
1154
- })
1155
- };
1156
- }
1157
- },
1158
- tristatecheckbox: {
1159
- root: {
1160
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6')
1161
- },
1162
- checkbox: function checkbox(_ref57) {
1163
- var props = _ref57.props;
1164
- return {
1165
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 rounded-lg transition-colors duration-200', {
1166
- 'border-blue-500 bg-blue-500 text-white dark:border-blue-400 dark:bg-blue-400': props.value || !props.value,
1167
- 'border-gray-300 text-gray-600 bg-white dark:border-blue-900/40 dark:bg-gray-900': props.value == null
1168
- }, {
1169
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
1170
- 'cursor-default opacity-60': props.disabled
1171
- })
1172
- };
1173
- }
1174
- },
1175
- checkbox: {
1176
- root: {
1177
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6')
1178
- },
1179
- input: function input(_ref58) {
1180
- var props = _ref58.props,
1181
- context = _ref58.context;
1182
- return {
1183
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200', {
1184
- 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked,
1185
- 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked
1186
- }, {
1187
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
1188
- 'cursor-default opacity-60': props.disabled
1189
- })
1190
- };
1191
- },
1192
- icon: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900'
1193
- },
1194
- radiobutton: {
1195
- root: {
1196
- className: classNames('relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6')
1197
- },
1198
- input: function input(_ref59) {
1199
- var props = _ref59.props;
1200
- return {
1201
- className: classNames('flex justify-center items-center', 'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out', {
1202
- 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80': !props.checked,
1203
- 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': props.checked
1204
- }, {
1205
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
1206
- 'cursor-default opacity-60': props.disabled
1207
- })
1208
- };
1209
- },
1210
- icon: function icon(_ref60) {
1211
- var props = _ref60.props;
1212
- return {
1213
- className: classNames('transform rounded-full', 'block w-3 h-3 transition duration-200 bg-white dark:bg-gray-900', {
1214
- 'backface-hidden scale-10 invisible': !props.checked,
1215
- 'transform scale-100 visible': props.checked
1216
- })
1217
- };
1218
- }
1219
- },
1220
- dropdown: {
1221
- root: function root(_ref61) {
1222
- var props = _ref61.props;
1223
- return {
1224
- className: classNames('cursor-pointer inline-flex relative select-none', 'bg-white border border-gray-400 transition-colors duration-200 ease-in-out rounded-md', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300', 'w-full md:w-56', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1225
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1226
- })
1227
- };
1228
- },
1229
- input: function input(_ref62) {
1230
- var props = _ref62.props;
1231
- return {
1232
- className: classNames('cursor-pointer block flex flex-auto overflow-hidden overflow-ellipsis whitespace-nowrap relative', 'bg-transparent border-0 text-gray-800', 'dark:text-white/80', 'p-3 transition duration-200 bg-transparent rounded appearance-none font-sans text-base', 'focus:outline-none focus:shadow-none', {
1233
- 'pr-7': props.showClear
1234
- })
1235
- };
1236
- },
1237
- trigger: {
1238
- className: classNames('flex items-center justify-center shrink-0', 'bg-transparent text-gray-500 w-12 rounded-tr-lg rounded-br-lg')
1239
- },
1240
- wrapper: {
1241
- className: 'max-h-[200px] overflow-auto bg-white text-gray-700 border-0 rounded-md shadow-lg dark:bg-gray-900 dark:text-white/80'
1242
- },
1243
- list: 'py-3 list-none m-0',
1244
- item: function item(_ref63) {
1245
- var context = _ref63.context;
1246
- return {
1247
- className: classNames('cursor-pointer font-normal overflow-hidden relative whitespace-nowrap', 'm-0 p-3 border-0 transition-shadow duration-200 rounded-none', 'dark:text-white/80 dark:hover:bg-gray-800', 'hover:text-gray-700 hover:bg-gray-200', {
1248
- 'text-gray-700': !context.focused && !context.selected,
1249
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.selected,
1250
- 'bg-blue-400 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
1251
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
1252
- })
1253
- };
1254
- },
1255
- itemgroup: {
1256
- className: classNames('m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto')
1257
- },
1258
- header: {
1259
- className: classNames('p-3 border-b border-gray-300 text-gray-700 bg-gray-100 mt-0 rounded-tl-lg rounded-tr-lg', 'dark:bg-gray-800 dark:text-white/80 dark:border-blue-900/40')
1260
- },
1261
- filtercontainer: 'relative',
1262
- filterinput: {
1263
- className: classNames('pr-7 -mr-7', 'w-full', 'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1264
- },
1265
- filtericon: '-mt-2 absolute top-1/2',
1266
- clearicon: 'text-gray-500 right-12 -mt-2 absolute top-1/2',
1267
- transition: TRANSITIONS.overlay
1268
- },
1269
- calendar: {
1270
- root: function root(_ref64) {
1271
- var props = _ref64.props;
1272
- return {
1273
- className: classNames('inline-flex max-w-full relative', {
1274
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1275
- })
1276
- };
1277
- },
1278
- input: {
1279
- root: {
1280
- className: classNames('font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', 'hover:border-blue-500' //Hover
1281
- )
1282
- }
1283
- },
1284
-
1285
- panel: function panel(_ref65) {
1286
- var props = _ref65.props;
1287
- return {
1288
- className: classNames('bg-white dark:bg-gray-900', 'min-w-[350px]', {
1289
- 'shadow-md border-0 absolute': !props.inline,
1290
- 'inline-block overflow-x-auto border border-gray-300 dark:border-blue-900/40 p-2 rounded-lg': props.inline
1291
- })
1292
- };
1293
- },
1294
- header: {
1295
- className: classNames('flex items-center justify-between', 'p-2 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-semibold m-0 border-b border-gray-300 dark:border-blue-900/40 rounded-t-lg')
1296
- },
1297
- previousbutton: {
1298
- className: classNames('flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ')
1299
- },
1300
- title: 'leading-8 mx-auto',
1301
- monthTitle: {
1302
- className: classNames('text-gray-700 dark:text-white/80 transition duration-200 font-semibold p-2', 'mr-2', 'hover:text-blue-500')
1303
- },
1304
- yearTitle: {
1305
- className: classNames('text-gray-700 dark:text-white/80 transition duration-200 font-semibold p-2', 'hover:text-blue-500')
1306
- },
1307
- nextbutton: {
1308
- className: classNames('flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ')
1309
- },
1310
- table: {
1311
- className: classNames('border-collapse w-full', 'my-2')
1312
- },
1313
- tableheadercell: 'p-2',
1314
- weekday: 'text-gray-600 dark:text-white/70',
1315
- day: 'p-2',
1316
- daylabel: function daylabel(_ref66) {
1317
- var context = _ref66.context;
1318
- return {
1319
- className: classNames('w-10 h-10 rounded-full transition-shadow duration-200 border-transparent border', 'flex items-center justify-center mx-auto overflow-hidden relative', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1320
- 'opacity-60 cursor-default': context.disabled,
1321
- 'cursor-pointer': !context.disabled
1322
- }, {
1323
- 'text-gray-600 dark:text-white/70 bg-transprent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled,
1324
- 'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled
1325
- })
1326
- };
1327
- },
1328
- monthpicker: 'my-2',
1329
- month: function month(_ref67) {
1330
- var context = _ref67.context;
1331
- return {
1332
- className: classNames('w-1/3 inline-flex items-center justify-center cursor-pointer overflow-hidden relative', 'p-2 transition-shadow duration-200 rounded-lg', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1333
- 'text-gray-600 dark:text-white/70 bg-transprent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled,
1334
- 'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled
1335
- })
1336
- };
1337
- },
1338
- yearpicker: {
1339
- className: classNames('my-2')
1340
- },
1341
- year: function year(_ref68) {
1342
- var context = _ref68.context;
1343
- return {
1344
- className: classNames('w-1/2 inline-flex items-center justify-center cursor-pointer overflow-hidden relative', 'p-2 transition-shadow duration-200 rounded-lg', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1345
- 'text-gray-600 dark:text-white/70 bg-transprent hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.selected && !context.disabled,
1346
- 'text-blue-700 bg-blue-100 hover:bg-blue-200': context.selected && !context.disabled
1347
- })
1348
- };
1349
- },
1350
- timepicker: {
1351
- className: classNames('flex justify-center items-center', 'border-t-1 border-solid border-gray-300 p-2')
1352
- },
1353
- separatorcontainer: 'flex items-center flex-col px-2',
1354
- separator: 'text-xl',
1355
- hourpicker: 'flex items-center flex-col px-2',
1356
- minutepicker: 'flex items-center flex-col px-2',
1357
- ampmpicker: 'flex items-center flex-col px-2',
1358
- incrementbutton: {
1359
- className: classNames('flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ')
1360
- },
1361
- decrementbutton: {
1362
- className: classNames('flex items-center justify-center cursor-pointer overflow-hidden relative', 'w-8 h-8 text-gray-600 dark:text-white/70 border-0 bg-transparent rounded-full transition-colors duration-200 ease-in-out', 'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ')
1363
- },
1364
- groupcontainer: 'flex',
1365
- group: {
1366
- className: classNames('flex-1', 'border-l border-gray-300 pr-0.5 pl-0.5 pt-0 pb-0', 'first:pl-0 first:border-l-0')
1367
- },
1368
- transition: TRANSITIONS.overlay
1369
- },
1370
- listbox: {
1371
- root: {
1372
- className: classNames('bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md', 'w-full md:w-56')
1373
- },
1374
- wrapper: 'overflow-auto',
1375
- list: 'py-3 list-none m-0',
1376
- item: function item(_ref69) {
1377
- var context = _ref69.context;
1378
- return {
1379
- className: classNames('cursor-pointer font-normal overflow-hidden relative whitespace-nowrap', 'm-0 p-3 border-0 transition-shadow duration-200 rounded-none', 'dark:text-white/80 dark:hover:bg-gray-800', 'hover:text-gray-700 hover:bg-gray-200', {
1380
- 'text-gray-700': !context.focused && !context.selected,
1381
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.selected,
1382
- 'bg-blue-400 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
1383
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
1384
- })
1385
- };
1386
- },
1387
- itemgroup: {
1388
- className: classNames('m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto')
1389
- },
1390
- header: {
1391
- className: classNames('p-3 border-b border-gray-300 text-gray-700 bg-gray-100 mt-0 rounded-tl-lg rounded-tr-lg', 'dark:bg-gray-800 dark:text-white/80 dark:border-blue-900/40')
1392
- },
1393
- filtercontainer: 'relative',
1394
- filterinput: {
1395
- root: {
1396
- className: classNames('pr-7 -mr-7', 'w-full', 'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1397
- }
1398
- },
1399
- filtericon: '-mt-2 absolute top-1/2'
1400
- },
1401
- mention: {
1402
- root: 'relative',
1403
- panel: 'max-h-[200px] overflow-auto bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg',
1404
- items: 'py-3 list-none m-0',
1405
- item: 'cursor-pointer font-normal overflow-hidden relative whitespace-nowrap m-0 p-3 border-0 transition-shadow duration-200 rounded-none dark:text-white/80 dark:hover:bg-gray-800 hover:text-gray-700 hover:bg-gray-200',
1406
- transition: TRANSITIONS.overlay
1407
- },
1408
- multiselect: {
1409
- root: function root(_ref70) {
1410
- var props = _ref70.props;
1411
- return {
1412
- className: classNames('inline-flex cursor-pointer select-none', 'bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md', 'w-full md:w-80', {
1413
- 'opacity-60 select-none pointer-events-none cursor-default': props === null || props === void 0 ? void 0 : props.disabled
1414
- })
1415
- };
1416
- },
1417
- labelContainer: 'overflow-hidden flex flex-auto cursor-pointer',
1418
- label: function label(_ref71) {
1419
- var props = _ref71.props;
1420
- return {
1421
- className: classNames('block overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis', 'text-gray-800 dark:text-white/80', 'p-3 transition duration-200', _defineProperty({
1422
- '!p-3': props.display !== 'chip' && ((props === null || props === void 0 ? void 0 : props.modelValue) == null || (props === null || props === void 0 ? void 0 : props.modelValue) == undefined),
1423
- '!py-1.5 px-3': props.display == 'chip' && (props === null || props === void 0 ? void 0 : props.modelValue) !== null
1424
- }, "!p-3", props.display == 'chip' && (props === null || props === void 0 ? void 0 : props.modelValue) == null))
1425
- };
1426
- },
1427
- token: {
1428
- className: classNames('py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center')
1429
- },
1430
- removeTokenIcon: 'ml-2',
1431
- trigger: {
1432
- className: classNames('flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/70 w-12 rounded-tr-lg rounded-br-lg')
1433
- },
1434
- panel: {
1435
- className: classNames('bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg')
1436
- },
1437
- header: {
1438
- className: classNames('p-3 border-b border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 bg-gray-100 dark:bg-gray-800 rounded-t-lg', 'flex items-center justify-between')
1439
- },
1440
- headerCheckboxContainer: {
1441
- className: classNames('inline-flex cursor-pointer select-none align-bottom relative', 'mr-2', 'w-6 h-6')
1442
- },
1443
- headerCheckbox: function headerCheckbox(_ref72) {
1444
- var context = _ref72.context;
1445
- return {
1446
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 dark:text-white/70 rounded-lg transition-colors duration-200', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1447
- 'border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900': !(context !== null && context !== void 0 && context.selected),
1448
- 'border-blue-500 bg-blue-500': context === null || context === void 0 ? void 0 : context.selected
1449
- })
1450
- };
1451
- },
1452
- headercheckboxicon: 'w-4 h-4 transition-all duration-200 text-white text-base',
1453
- closeButton: {
1454
- className: classNames('flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 dark:text-white/70 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mr-2 last:mr-0', 'hover:text-gray-700 dark:hover:text-white/80 hover:border-transparent hover:bg-gray-200 dark:hover:bg-gray-800/80 ', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1455
- },
1456
- closeButtonIcon: 'w-4 h-4 inline-block',
1457
- wrapper: {
1458
- className: classNames('max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80')
1459
- },
1460
- list: 'py-3 list-none m-0',
1461
- item: function item(_ref73) {
1462
- var context = _ref73.context;
1463
- return {
1464
- className: classNames('cursor-pointer font-normal overflow-hidden relative whitespace-nowrap', 'm-0 p-3 border-0 transition-shadow duration-200 rounded-none', 'dark:text-white/80 dark:hover:bg-gray-800', 'hover:text-gray-700 hover:bg-gray-200', {
1465
- 'text-gray-700': !context.focused && !context.selected,
1466
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.selected,
1467
- 'bg-blue-400 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
1468
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
1469
- })
1470
- };
1471
- },
1472
- checkboxContainer: {
1473
- className: classNames('inline-flex cursor-pointer select-none align-bottom relative', 'mr-2', 'w-6 h-6')
1474
- },
1475
- checkbox: function checkbox(_ref74) {
1476
- var context = _ref74.context;
1477
- return {
1478
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 dark:text-white/80 rounded-lg transition-colors duration-200', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1479
- 'border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900': !(context !== null && context !== void 0 && context.selected),
1480
- 'border-blue-500 bg-blue-500': context === null || context === void 0 ? void 0 : context.selected
1481
- })
1482
- };
1483
- },
1484
- checkboxicon: 'w-4 h-4 transition-all duration-200 text-white text-base',
1485
- itemgroup: {
1486
- className: classNames('m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto')
1487
- },
1488
- filtercontainer: 'relative',
1489
- filterinput: {
1490
- className: classNames('pr-7 -mr-7', 'w-full', 'font-sans text-base text-gray-700 bg-white py-3 px-3 border border-gray-300 transition duration-200 rounded-lg appearance-none', 'dark:bg-gray-900 dark:border-blue-900/40 dark:hover:border-blue-300 dark:text-white/80', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1491
- },
1492
- filtericon: '-mt-2 absolute top-1/2',
1493
- clearicon: 'text-gray-500 right-12 -mt-2 absolute top-1/2',
1494
- transition: TRANSITIONS.overlay
1495
- },
1496
- multistatecheckbox: {
1497
- root: {
1498
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6')
1499
- },
1500
- checkbox: function checkbox(_ref75) {
1501
- var props = _ref75.props;
1502
- return {
1503
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 rounded-lg transition-colors duration-200', {
1504
- 'border-blue-500 bg-blue-500 text-white dark:border-blue-400 dark:bg-blue-400': props.value || !props.value,
1505
- 'border-gray-300 text-gray-600 bg-white dark:border-blue-900/40 dark:bg-gray-900': props.value == null
1506
- }, {
1507
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
1508
- 'cursor-default opacity-60': props.disabled
1509
- })
1510
- };
1511
- }
1512
- },
1513
- inputtextarea: {
1514
- root: function root(_ref76) {
1515
- var context = _ref76.context;
1516
- return {
1517
- className: classNames('m-0', 'font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
1518
- 'opacity-60 select-none pointer-events-none cursor-default': context.disabled
1519
- })
1520
- };
1521
- }
1522
- },
1523
- treeselect: {
1524
- root: function root(_ref77) {
1525
- var props = _ref77.props;
1526
- return {
1527
- className: classNames('inline-flex cursor-pointer select-none', 'bg-white dark:bg-gray-900 border border-gray-400 dark:border-blue-900/40 transition-colors duration-200 ease-in-out rounded-md', 'w-full md:w-80', {
1528
- 'opacity-60 select-none pointer-events-none cursor-default': props === null || props === void 0 ? void 0 : props.disabled
1529
- })
1530
- };
1531
- },
1532
- labelContainer: {
1533
- className: classNames('overflow-hidden flex flex-auto cursor-pointer')
1534
- },
1535
- label: {
1536
- className: classNames('block overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis', 'text-gray-800 dark:text-white/80', 'p-3 transition duration-200')
1537
- },
1538
- trigger: {
1539
- className: classNames('flex items-center justify-center shrink-0', 'bg-transparent text-gray-600 dark:text-white/70 w-12 rounded-tr-lg rounded-br-lg')
1540
- },
1541
- panel: {
1542
- className: classNames('bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg')
1543
- },
1544
- wrapper: {
1545
- className: classNames('max-h-[200px] overflow-auto', 'bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-0 rounded-md shadow-lg')
1546
- },
1547
- transition: TRANSITIONS.overlay
1548
- },
1549
- autocomplete: {
1550
- root: function root(_ref78) {
1551
- var props = _ref78.props;
1552
- return {
1553
- className: classNames('relative inline-flex', {
1554
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1555
- }, {
1556
- 'w-full': props.multiple
1557
- })
1558
- };
1559
- },
1560
- container: {
1561
- className: classNames('m-0 list-none cursor-text overflow-hidden flex items-center flex-wrap w-full', 'px-3 py-2 gap-2', 'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition duration-200 ease-in-out appearance-none rounded-md', 'focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] hover:border-blue-500 focus:outline-none dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1562
- },
1563
- inputtoken: {
1564
- className: classNames('py-0.375rem px-0', 'flex-1 inline-flex')
1565
- },
1566
- input: function input(_ref79) {
1567
- var props = _ref79.props;
1568
- return {
1569
- root: {
1570
- className: classNames('m-0', 'transition-colors duration-200 appearance-none rounded-lg', {
1571
- 'rounded-tr-none rounded-br-none': props.dropdown
1572
- }, {
1573
- 'font-sans text-base text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)] hover:border-blue-500 focus:outline-none': !props.multiple,
1574
- 'font-sans text-base text-gray-700 dark:text-white/80 border-0 outline-none bg-transparent m-0 p-0 shadow-none rounded-none w-full': props.multiple
1575
- })
1576
- }
1577
- };
1578
- },
1579
- token: {
1580
- className: classNames('py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center')
1581
- },
1582
- dropdownbutton: {
1583
- root: 'rounded-tl-none rounded-bl-none'
1584
- },
1585
- panel: {
1586
- className: classNames('bg-white text-gray-700 border-0 rounded-md shadow-lg', 'max-h-[200px] overflow-auto', 'bg-white text-gray-700 border-0 rounded-md shadow-lg', 'dark:bg-gray-900 dark:text-white/80')
1587
- },
1588
- list: 'py-3 list-none m-0',
1589
- item: function item(_ref80) {
1590
- var context = _ref80.context;
1591
- return {
1592
- className: classNames('cursor-pointer font-normal overflow-hidden relative whitespace-nowrap', 'm-0 p-3 border-0 transition-shadow duration-200 rounded-none', 'dark:text-white/80 dark:hover:bg-gray-800', 'hover:text-gray-700 hover:bg-gray-200', {
1593
- 'text-gray-700': !context.focused && !context.selected,
1594
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.selected,
1595
- 'bg-blue-500 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
1596
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
1597
- })
1598
- };
1599
- },
1600
- itemgroup: {
1601
- className: classNames('m-0 p-3 text-gray-800 bg-white font-bold', 'dark:bg-gray-900 dark:text-white/80', 'cursor-auto')
1602
- },
1603
- transition: TRANSITIONS.overlay
1604
- },
1605
- chips: {
1606
- root: function root(_ref81) {
1607
- var props = _ref81.props;
1608
- return {
1609
- className: classNames('flex', {
1610
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1611
- })
1612
- };
1613
- },
1614
- container: {
1615
- className: classNames('m-0 py-1.5 px-3 list-none cursor-text overflow-hidden flex items-center flex-wrap', 'w-full', 'font-sans text-base text-gray-600 dark:text-white/70 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1616
- },
1617
- inputtoken: {
1618
- className: classNames('py-1.5 px-0', 'flex flex-1 inline-flex')
1619
- },
1620
- input: {
1621
- className: classNames('font-sans text-base text-gray-700 dark:text-white/80 p-0 m-0', 'border-0 outline-none bg-transparent shadow-none rounded-none w-full')
1622
- },
1623
- token: {
1624
- className: classNames('py-1 px-2 mr-2 bg-gray-300 dark:bg-gray-700 text-gray-700 dark:text-white/80 rounded-full', 'cursor-default inline-flex items-center')
1625
- },
1626
- removeTokenIcon: 'ml-2'
1627
- },
1628
- colorpicker: {
1629
- root: function root(_ref82) {
1630
- var props = _ref82.props;
1631
- return {
1632
- className: classNames('inline-block', {
1633
- 'opacity-60 select-none pointer-events-none cursor-default': props.disabled
1634
- })
1635
- };
1636
- },
1637
- input: {
1638
- className: classNames('m-0', 'font-sans text-base text-gray-600 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 rounded-lg cursor-pointer', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', 'w-8 h-8')
1639
- },
1640
- panel: function panel(_ref83) {
1641
- var props = _ref83.props;
1642
- return {
1643
- className: classNames('shadow-md', 'bg-gray-800 border-gray-900', {
1644
- 'relative h-48 w-52': props.inline,
1645
- 'absolute h-48 w-52': !props.inline
1646
- })
1647
- };
1648
- },
1649
- selector: 'absolute h-44 w-40 top-2 left-2',
1650
- color: {
1651
- className: 'h-44 w-40',
1652
- style: {
1653
- background: 'linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)'
1654
- }
1655
- },
1656
- colorhandle: {
1657
- className: classNames('rounded-full border border-solid cursor-pointer h-3 w-3 absolute opacity-85', 'border-white')
1658
- },
1659
- hue: {
1660
- className: 'h-44 w-6 absolute top-2 left-44 opacity-85',
1661
- style: {
1662
- background: 'linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)'
1663
- }
1664
- },
1665
- huehandle: 'border-solid border-2 cursor-pointer h-2 w-8 left-0 -ml-1 -mt-1 opacity-85 absolute',
1666
- transition: TRANSITIONS.overlay
1667
- },
1668
- editor: {
1669
- toolbar: {
1670
- className: classNames('bg-gray-100 rounded-tr-md rounded-tl-md', 'border border-gray-300 box-border font-sans px-2 py-1')
1671
- },
1672
- formats: {
1673
- className: classNames('inline-block align-middle', 'mr-4')
1674
- },
1675
- header: {
1676
- className: classNames('text-gray-700 inline-block float-left text-base font-medium h-6 relative align-middle', 'w-28', 'border-0 text-gray-600')
1677
- }
1678
- },
1679
- //MISC
1680
- badge: {
1681
- root: function root(_ref84) {
1682
- var props = _ref84.props;
1683
- return {
1684
- className: classNames('rounded-full p-0 text-center inline-block', 'bg-blue-500 text-white font-bold', {
1685
- 'bg-gray-500 ': props.severity == 'secondary',
1686
- 'bg-green-500 ': props.severity == 'success',
1687
- 'bg-blue-500 ': props.severity == 'info',
1688
- 'bg-orange-500 ': props.severity == 'warning',
1689
- 'bg-purple-500 ': props.severity == 'help',
1690
- 'bg-red-500 ': props.severity == 'danger'
1691
- }, {
1692
- 'text-xs min-w-[1.5rem] h-[1.5rem] leading-[1.5rem]': props.size == null,
1693
- 'text-lg min-w-[2.25rem] h-[2.25rem] leading-[2.25rem]': props.size == 'large',
1694
- 'text-2xl min-w-[3rem] h-[3rem] leading-[3rem]': props.size == 'xlarge'
1695
- })
1696
- };
1697
- }
1698
- },
1699
- avatar: {
1700
- root: function root(_ref85) {
1701
- var props = _ref85.props,
1702
- state = _ref85.state;
1703
- return {
1704
- className: classNames('flex items-center justify-center', 'bg-gray-300 dark:bg-gray-800', {
1705
- 'rounded-lg': props.shape == 'square',
1706
- 'rounded-full': props.shape == 'circle'
1707
- }, {
1708
- 'text-base h-8 w-8': props.size == null || props.size == 'normal',
1709
- 'w-12 h-12 text-xl': props.size == 'large',
1710
- 'w-16 h-16 text-2xl': props.size == 'xlarge'
1711
- }, {
1712
- '-ml-4 border-2 border-white dark:border-gray-900': state.nested
1713
- })
1714
- };
1715
- },
1716
- image: 'h-full w-full'
1717
- },
1718
- avatargroup: {
1719
- root: 'flex items-center'
1720
- },
1721
- chip: {
1722
- root: {
1723
- className: classNames('inline-flex items-center', 'bg-gray-200 text-gray-800 rounded-[16px] px-3 dark:text-white/80 dark:bg-gray-900')
1724
- },
1725
- label: 'leading-6 mt-1.5 mb-1.5',
1726
- icon: 'leading-6 mr-2',
1727
- image: {
1728
- className: classNames('w-9 h-9 ml-[-0.75rem] mr-2', 'rounded-full')
1729
- },
1730
- removeIcon: {
1731
- className: classNames('ml-2 rounded-md transition duration-200 ease-in-out', 'cursor-pointer leading-6')
1732
- }
1733
- },
1734
- progressbar: {
1735
- root: {
1736
- className: classNames('overflow-hidden relative', 'border-0 h-6 bg-gray-200 rounded-md dark:bg-gray-800')
1737
- },
1738
- value: function value(_ref86) {
1739
- var props = _ref86.props;
1740
- return {
1741
- className: classNames('border-0 m-0 bg-blue-500', {
1742
- 'transition-width duration-1000 ease-in-out absolute items-center border-0 flex h-full justify-center overflow-hidden w-0': props.mode !== 'indeterminate',
1743
- 'progressbar-value-animate before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000': props.mode == 'indeterminate'
1744
- })
1745
- };
1746
- },
1747
- label: {
1748
- className: classNames('inline-flex', 'text-white leading-6')
1749
- }
1750
- },
1751
- progressspinner: {
1752
- root: {
1753
- className: classNames('relative mx-auto w-28 h-28 inline-block', 'before:block before:pt-full')
1754
- },
1755
- spinner: 'absolute top-0 bottom-0 left-0 right-0 m-auto w-full h-full transform origin-center animate-spin',
1756
- circle: 'text-red-500 progress-spinner-circle'
1757
- },
1758
- skeleton: {
1759
- root: function root(_ref87) {
1760
- var props = _ref87.props;
1761
- return {
1762
- className: classNames('overflow-hidden', '!mb-2', 'bg-gray-300 dark:bg-gray-800', 'after:absolute after:top-0 after:left-0 after:right-0 after:bottom-0 after:content after:w-full after:h-full after:bg-blue-400 after:left-full after:transform after:translate-x-full after:z-10 after:bg-gradient-to-r after:from-transparent after:via-white after:to-transparent animate-pulse', {
1763
- 'rounded-md': props.shape !== 'circle',
1764
- 'rounded-full': props.shape == 'circle'
1765
- })
1766
- };
1767
- }
1768
- },
1769
- tag: {
1770
- root: function root(_ref88) {
1771
- var props = _ref88.props;
1772
- return {
1773
- className: classNames('inline-flex items-center justify-center', 'bg-blue-500 text-white text-xs font-semibold px-2 py-1 ', {
1774
- 'bg-gray-500 ': props.severity == 'secondary',
1775
- 'bg-green-500 ': props.severity == 'success',
1776
- 'bg-blue-500 ': props.severity == 'info',
1777
- 'bg-orange-500 ': props.severity == 'warning',
1778
- 'bg-purple-500 ': props.severity == 'help',
1779
- 'bg-red-500 ': props.severity == 'danger'
1780
- }, {
1781
- 'rounded-md': !props.rounded,
1782
- 'rounded-full': props.rounded
1783
- })
1784
- };
1785
- },
1786
- value: 'leading-6',
1787
- icon: 'mr-1 text-sm'
1788
- },
1789
- inplace: {
1790
- display: {
1791
- className: classNames('p-3 rounded-md transition duration-200 text-gray-700 dark:text-white/80', 'inline cursor-pointer', 'hover:bg-gray-200 hover:text-gray-700 dark:hover:bg-gray-800/80 dark:hover:text-white/80')
1792
- }
1793
- },
1794
- scrolltop: {
1795
- root: function root(_ref89) {
1796
- var props = _ref89.props;
1797
- return {
1798
- className: classNames('fixed bottom-20 right-20 flex items-center justify-center', 'ml-auto', {
1799
- '!bg-blue-500 hover:bg-blue-600 text-white rounded-md h-8 w-8': props.target == 'parent',
1800
- '!bg-gray-700 hover:bg-gray-800 h-12 w-12 rounded-full text-white': props.target !== 'parent'
1801
- })
1802
- };
1803
- },
1804
- transition: {
1805
- enterFromClass: 'opacity-0',
1806
- enterActiveClass: 'transition-opacity duration-150',
1807
- leaveActiveClass: 'transition-opacity duration-150',
1808
- leaveToClass: 'opacity-0'
1809
- }
1810
- },
1811
- terminal: {
1812
- root: {
1813
- className: classNames('border border-gray-300 p-5', 'bg-gray-900 text-white dark:border-blue-900/40 ', 'h-72 overflow-auto')
1814
- },
1815
- container: 'flex items-center',
1816
- prompt: 'text-yellow-400',
1817
- commandtext: 'flex-1 shrink grow-0 border-0 bg-transparent text-inherit p-0 outline-none'
1818
- },
1819
- blockui: {
1820
- root: 'relative',
1821
- mask: 'bg-black/40'
1822
- },
1823
- //MENU
1824
- breadcrumb: {
1825
- root: {
1826
- className: classNames('overflow-x-auto', 'bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md p-4')
1827
- },
1828
- menu: 'm-0 p-0 list-none flex items-center flex-nowrap',
1829
- action: {
1830
- className: classNames('text-decoration-none flex items-center', 'transition-shadow duration-200 rounded-md text-gray-600 dark:text-white/70', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1831
- },
1832
- icon: 'text-gray-600 dark:text-white/70',
1833
- separator: {
1834
- className: classNames('mx-2 text-gray-600 dark:text-white/70', 'flex items-center')
1835
- }
1836
- },
1837
- contextmenu: {
1838
- root: 'py-1 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border-none shadow-md rounded-lg w-52',
1839
- menu: {
1840
- className: classNames('m-0 p-0 list-none', 'outline-none')
1841
- },
1842
- menuitem: 'relative',
1843
- content: function content(_ref90) {
1844
- var context = _ref90.context;
1845
- return {
1846
- className: classNames('transition-shadow duration-200 rounded-none', 'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80',
1847
- // Hover
1848
- {
1849
- 'text-gray-700': !context.focused && !context.active,
1850
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
1851
- 'bg-blue-500 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
1852
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
1853
- })
1854
- };
1855
- },
1856
- action: {
1857
- className: classNames('cursor-pointer flex items-center no-underline overflow-hidden relative', 'text-gray-700 dark:text-white/80 py-3 px-5 select-none')
1858
- },
1859
- icon: 'text-gray-600 dark:text-white/70 mr-2',
1860
- label: 'text-gray-600 dark:text-white/70',
1861
- transition: {
1862
- enterFromClass: 'opacity-0',
1863
- enterActiveClass: 'transition-opacity duration-250'
1864
- }
1865
- },
1866
- dock: {
1867
- root: function root(_ref91) {
1868
- var props = _ref91.props;
1869
- return {
1870
- className: classNames('absolute z-1 flex justify-center items-center pointer-events-none', {
1871
- 'left-0 bottom-0 w-full': props.position == 'bottom',
1872
- 'left-0 top-0 w-full': props.position == 'top',
1873
- 'left-0 top-0 h-full': props.position == 'left',
1874
- 'right-0 top-0 h-full': props.position == 'right'
1875
- })
1876
- };
1877
- },
1878
- container: {
1879
- className: classNames('flex pointer-events-auto', 'bg-white/10 border-white/20 p-2 border rounded-md')
1880
- },
1881
- menu: function menu(_ref92) {
1882
- var props = _ref92.props;
1883
- return {
1884
- className: classNames('m-0 p-0 list-none flex items-center justify-center', 'outline-none', {
1885
- 'flex-col': props.position == 'left' || props.position == 'right'
1886
- })
1887
- };
1888
- },
1889
- menuitem: function menuitem(_ref93) {
1890
- var props = _ref93.props,
1891
- context = _ref93.context,
1892
- state = _ref93.state;
1893
- return {
1894
- className: classNames('p-2 rounded-md', 'transition-all duration-200 ease-cubic-bezier-will-change-transform transform ', {
1895
- 'origin-bottom hover:mx-6': props.position == 'bottom',
1896
- 'origin-top hover:mx-6': props.position == 'top',
1897
- 'origin-left hover:my-6': props.position == 'left',
1898
- 'origin-right hover:my-6': props.position == 'right'
1899
- }, {
1900
- 'hover:scale-150': state.currentIndex === context.index,
1901
- 'scale-125': state.currentIndex - 1 === context.index || state.currentIndex + 1 === context.index,
1902
- 'scale-110': state.currentIndex - 2 === context.index || state.currentIndex + 2 === context.index
1903
- })
1904
- };
1905
- },
1906
- action: {
1907
- className: classNames('flex flex-col items-center justify-center relative overflow-hidden cursor-default', 'w-16 h-16')
1908
- }
1909
- },
1910
- menu: {
1911
- root: 'py-1 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 border border-gray-300 dark:border-blue-900/40 rounded-md w-48',
1912
- menu: {
1913
- className: classNames('m-0 p-0 list-none', 'outline-none')
1914
- },
1915
- content: function content(_ref94) {
1916
- var context = _ref94.context;
1917
- return {
1918
- className: classNames('text-gray-700 dark:text-white/80 transition-shadow duration-200 rounded-none', 'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80',
1919
- // Hover
1920
- {
1921
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
1922
- })
1923
- };
1924
- },
1925
- action: {
1926
- className: classNames('text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative')
1927
- },
1928
- icon: 'text-gray-600 dark:text-white/70 mr-2',
1929
- submenuheader: {
1930
- className: classNames('m-0 p-3 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-bold rounded-tl-none rounded-tr-none')
1931
- },
1932
- transition: TRANSITIONS.overlay
1933
- },
1934
- menubar: {
1935
- root: {
1936
- className: classNames('p-2 bg-gray-100 dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md', 'flex items-center relative')
1937
- },
1938
- menu: function menu(_ref95) {
1939
- var state = _ref95.state;
1940
- return {
1941
- className: classNames('m-0 sm:p-0 list-none', 'outline-none', 'sm:flex items-center flex-wrap sm:flex-row sm:top-auto sm:left-auto sm:relative sm:bg-transparent sm:shadow-none sm:w-auto', 'flex-col top-full left-0', 'absolute py-1 bg-white dark:bg-gray-900 border-0 shadow-md w-full', {
1942
- 'hidden ': !(state !== null && state !== void 0 && state.mobileActive),
1943
- 'flex ': state === null || state === void 0 ? void 0 : state.mobileActive
1944
- })
1945
- };
1946
- },
1947
- menuitem: function menuitem(_ref96) {
1948
- var props = _ref96.props,
1949
- context = _ref96.context;
1950
- return {
1951
- className: classNames('sm:relative sm:w-auto w-full static', 'transition-shadow duration-200', {
1952
- 'rounded-md': props.root
1953
- }, {
1954
- 'text-gray-700 dark:text-white/80': !context.active,
1955
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': context.active
1956
- }, {
1957
- 'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
1958
- 'hover:bg-blue-200 dark:hover:bg-blue-500': context.active
1959
- })
1960
- };
1961
- },
1962
- action: function action(_ref97) {
1963
- var context = _ref97.context;
1964
- return {
1965
- className: classNames('select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative', 'py-3 px-5 select-none', {
1966
- 'max-[960px]:pl-9': context.level === 1,
1967
- 'max-[960px]:pl-14': context.level === 2
1968
- })
1969
- };
1970
- },
1971
- icon: 'mr-2',
1972
- submenuicon: function submenuicon(_ref98) {
1973
- var props = _ref98.props;
1974
- return {
1975
- className: classNames('max-[960px]:ml-auto', {
1976
- 'ml-2': props.root,
1977
- 'ml-auto': !props.root
1978
- })
1979
- };
1980
- },
1981
- submenu: function submenu(_ref99) {
1982
- var props = _ref99.props;
1983
- return {
1984
- className: classNames('py-1 bg-white dark:bg-gray-900 border-0 sm:shadow-md sm:w-48', 'w-full static shadow-none', 'sm:absolute z-10', 'm-0 list-none', {
1985
- 'sm:absolute sm:left-full sm:top-0': !props.root
1986
- })
1987
- };
1988
- },
1989
- separator: 'border-t border-gray-300 dark:border-blue-900/40 my-1',
1990
- button: {
1991
- className: classNames('flex sm:hidden w-8 h-8 rounded-full text-gray-600 dark:text-white/80 transition duration-200 ease-in-out', 'cursor-pointer flex items-center justify-center no-underline', 'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80 ', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
1992
- }
1993
- },
1994
- megamenu: {
1995
- root: function root(_ref100) {
1996
- var props = _ref100.props;
1997
- return {
1998
- className: classNames('bg-gray-100 dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 rounded-md', 'flex relative', {
1999
- 'p-2 items-center': props.orientation == 'horizontal',
2000
- 'flex-col w-48 p-0 py-1': props.orientation !== 'horizontal'
2001
- })
2002
- };
2003
- },
2004
- menu: {
2005
- className: classNames('m-0 sm:p-0 list-none relative', 'outline-none', 'flex items-center flex-wrap flex-row top-auto left-auto relative bg-transparent shadow-none w-auto')
2006
- },
2007
- menuitem: function menuitem(_ref101) {
2008
- var props = _ref101.props,
2009
- context = _ref101.context;
2010
- return {
2011
- className: classNames('transition-shadow duration-200', {
2012
- 'rounded-md': props.orientation == 'horizontal'
2013
- }, {
2014
- 'text-gray-700 dark:text-white/80': !context.active,
2015
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': context.active
2016
- }, {
2017
- 'w-auto': props.orientation === 'horizontal',
2018
- 'w-full': props.orientation !== 'horizontal'
2019
- }, {
2020
- 'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
2021
- 'hover:bg-blue-200 dark:hover:bg-blue-500': context.active
2022
- })
2023
- };
2024
- },
2025
- headeraction: {
2026
- className: classNames('select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative', 'py-3 px-5 select-none')
2027
- },
2028
- action: {
2029
- className: classNames('select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative', 'py-3 px-5 select-none')
2030
- },
2031
- icon: {
2032
- className: 'mr-2'
2033
- },
2034
- submenuicon: function submenuicon(_ref102) {
2035
- var props = _ref102.props;
2036
- return {
2037
- className: classNames({
2038
- 'ml-2': props.orientation === 'horizontal',
2039
- 'ml-auto': props.orientation !== 'horizontal'
2040
- })
2041
- };
2042
- },
2043
- panel: function panel(_ref103) {
2044
- var props = _ref103.props;
2045
- return {
2046
- className: classNames('py-1 bg-white dark:bg-gray-900 border-0 shadow-md w-auto', 'absolute z-10', {
2047
- 'left-full top-0': props.orientation !== 'horizontal'
2048
- })
2049
- };
2050
- },
2051
- grid: 'flex',
2052
- column: 'w-1/2',
2053
- submenu: {
2054
- className: classNames('m-0 list-none', 'py-1 w-48')
2055
- },
2056
- submenuheader: {
2057
- className: classNames('m-0 py-3 px-5 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-semibold rounded-tr-md rounded-tl-md')
2058
- }
2059
- },
2060
- panelmenu: {
2061
- root: 'w-full md:w-[25rem]',
2062
- panel: 'mb-1',
2063
- header: {
2064
- className: classNames('outline-none', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]' // Focus
2065
- )
2066
- },
2067
-
2068
- headercontent: {
2069
- className: classNames('border border-solid border-gray-300 dark:border-blue-900/40 text-gray-700 dark:text-white/80 bg-gray-100 dark:bg-gray-900 rounded-md transition-shadow duration-200', 'hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-700 dark:hover:text-white/80')
2070
- },
2071
- headeraction: {
2072
- className: classNames('flex items-center select-none cursor-pointer relative no-underline', 'text-gray-700 dark:text-white/80 p-5 font-bold')
2073
- },
2074
- submenuicon: 'mr-2',
2075
- headericon: 'mr-2',
2076
- menucontent: 'py-1 border border-t-0 border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 rounded-t-none rounded-br-md rounded-bl-md',
2077
- menu: {
2078
- className: classNames('outline-none', 'm-0 p-0 list-none')
2079
- },
2080
- menuitem: function menuitem(_ref104) {
2081
- var context = _ref104.context;
2082
- return {
2083
- className: classNames('text-gray-700 dark:text-white/80 transition-shadow duration-200 border-none rounded-none', 'hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-700 dark:hover:text-white/80',
2084
- // Hover
2085
- {
2086
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
2087
- })
2088
- };
2089
- },
2090
- action: {
2091
- className: classNames('text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'flex items-center cursor-pointer no-underline relative overflow-hidden')
2092
- },
2093
- icon: 'mr-2',
2094
- submenu: 'p-0 pl-4 m-0 list-none',
2095
- transition: TRANSITIONS.toggleable
2096
- },
2097
- steps: {
2098
- root: 'relative',
2099
- menu: 'p-0 m-0 list-none flex',
2100
- menuitem: {
2101
- className: classNames('relative flex justify-center flex-1 overflow-hidden', 'before:border-t before:border-gray-300 before:dark:border-blue-900/40 before:w-full before:absolute before:top-1/4 before:left-0 before:transform before:-translate-y-1/2')
2102
- },
2103
- action: {
2104
- className: classNames('inline-flex flex-col items-center overflow-hidden', 'transition-shadow rounded-md bg-white dark:bg-transparent', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
2105
- },
2106
- step: {
2107
- className: classNames('flex items-center justify-center', 'text-gray-700 dark:text-white/80 border border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 w-[2rem] h-[2rem] leading-2rem text-sm z-10 rounded-full')
2108
- },
2109
- label: {
2110
- className: classNames('block', 'whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full', 'mt-2 text-gray-500 dark:text-white/60')
2111
- }
2112
- },
2113
- tabmenu: {
2114
- root: 'overflow-x-auto',
2115
- menu: {
2116
- className: classNames('flex m-0 p-0 list-none flex-nowrap', 'bg-white border-solid border-gray-300 border-b-2', 'outline-none no-underline text-base list-none')
2117
- },
2118
- menuitem: 'mr-0',
2119
- action: function action(_ref105) {
2120
- var context = _ref105.context,
2121
- state = _ref105.state;
2122
- return {
2123
- className: classNames('cursor-pointer select-none flex items-center relative no-underline overflow-hidden', 'border-b-2 p-5 font-bold rounded-t-lg ', 'focus:outline-none focus:outline-offset-0 focus:shadow-[inset_0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
2124
- 'border-gray-300 bg-white text-gray-700 hover:bg-white hover:border-gray-400 hover:text-gray-600 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80 dark:hover:bg-gray-800/80': state.activeIndex !== context.index,
2125
- // Condition-based hover styles.
2126
- 'bg-white border-blue-500 text-blue-500 dark:bg-gray-900 dark:border-blue-300 dark:text-blue-300': state.activeIndex === context.index // Condition-based active styles.
2127
- }),
2128
-
2129
- style: {
2130
- top: '2px'
2131
- }
2132
- };
2133
- },
2134
- icon: 'mr-2'
2135
- },
2136
- slidemenu: {
2137
- root: {
2138
- className: classNames('py-1 bg-white border border-gray-300 rounded-lg w-[12.5rem]', 'dark:border-blue-900/40 dark:bg-gray-900')
2139
- },
2140
- content: 'relative overflow-x-hidden overflow-y-auto h-full',
2141
- menu: 'outline-none m-0 p-0 list-none absolute top-0 block',
2142
- menuitem: function menuitem(_ref106) {
2143
- var context = _ref106.context;
2144
- return {
2145
- className: classNames({
2146
- relative: !context.active,
2147
- "static": context.active
2148
- })
2149
- };
2150
- },
2151
- action: function action(_ref107) {
2152
- var context = _ref107.context;
2153
- return {
2154
- className: classNames('py-3 px-5 select-none', 'flex items-center cursor-pointer no-underline relative overflow-hidden', {
2155
- 'text-gray-700 dark:text-white/80 hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
2156
- 'text-blue-600 bg-blue-100': context.active
2157
- })
2158
- };
2159
- },
2160
- previous: function previous(_ref108) {
2161
- var state = _ref108.state;
2162
- return {
2163
- className: classNames('py-3 px-5 cursor-pointer bottom-0 w-full text-gray-700 dark:text-white/80', {
2164
- hidden: state.level === 0
2165
- })
2166
- };
2167
- },
2168
- icon: 'mr-2',
2169
- submenuicon: 'ml-auto',
2170
- separator: 'border-t border-gray-300 my-1 dark:border-blue-900/40',
2171
- submenu: {
2172
- className: classNames('py-1 bg-white dark:bg-gray-900 border-0 shadow-md min-w-full', 'absolute z-10', 'left-full top-0')
2173
- },
2174
- transition: TRANSITIONS.overlay
2175
- },
2176
- tieredmenu: {
2177
- root: {
2178
- className: classNames('py-1 bg-white border border-gray-300 rounded-lg w-[12.5rem]', 'dark:border-blue-900/40 dark:bg-gray-900')
2179
- },
2180
- menu: {
2181
- className: classNames('outline-none', 'm-0 p-0 list-none')
2182
- },
2183
- menuitem: 'relative',
2184
- content: function content(_ref109) {
2185
- var context = _ref109.context;
2186
- return {
2187
- className: classNames('transition-shadow duration-200 border-none rounded-none', 'hover:bg-gray-200 hover:text-gray-700 dark:hover:text-white/80 dark:hover:bg-gray-800/80',
2188
- //Hover
2189
- {
2190
- 'text-gray-700': !context.focused && !context.active,
2191
- 'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.active,
2192
- 'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.active,
2193
- 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.active
2194
- })
2195
- };
2196
- },
2197
- action: function action(_ref110) {
2198
- var context = _ref110.context;
2199
- return {
2200
- className: classNames('py-3 px-5 select-none', 'flex items-center cursor-pointer no-underline relative overflow-hidden', {
2201
- 'text-gray-700 dark:text-white/80 hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80': !context.active,
2202
- 'text-blue-600 bg-blue-100': context.active
2203
- })
2204
- };
2205
- },
2206
- icon: 'mr-2',
2207
- submenuicon: 'ml-auto',
2208
- separator: 'border-t border-gray-300 my-1 dark:border-blue-900/40',
2209
- submenu: {
2210
- className: classNames('py-1 bg-white dark:bg-gray-900 border-0 shadow-md min-w-full', 'absolute z-10', 'left-full top-0')
2211
- },
2212
- transition: TRANSITIONS.overlay
2213
- },
2214
- //MEDIA
2215
- image: {
2216
- root: 'relative inline-block',
2217
- button: {
2218
- className: classNames('absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-300', 'bg-transparent text-gray-100', 'hover:opacity-100 hover:cursor-pointer hover:bg-black hover:bg-opacity-50' //Hover
2219
- )
2220
- },
2221
-
2222
- mask: {
2223
- className: classNames('fixed top-0 left-0 w-full h-full', 'flex items-center justify-center', 'bg-black bg-opacity-90')
2224
- },
2225
- toolbar: {
2226
- className: classNames('absolute top-0 right-0 flex', 'p-4')
2227
- },
2228
- rotaterightbutton: {
2229
- className: classNames('flex justify-center items-center', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2230
- },
2231
- rotaterighticon: 'w-6 h-6',
2232
- rotateleftbutton: {
2233
- className: classNames('flex justify-center items-center', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2234
- },
2235
- rotatelefticon: 'w-6 h-6',
2236
- zoomoutbutton: {
2237
- className: classNames('flex justify-center items-center', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2238
- },
2239
- zoomouticon: 'w-6 h-6',
2240
- zoominbutton: {
2241
- className: classNames('flex justify-center items-center', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2242
- },
2243
- zoominicon: 'w-6 h-6',
2244
- closebutton: {
2245
- className: classNames('flex justify-center items-center', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out mr-2', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2246
- },
2247
- closeicon: 'w-6 h-6',
2248
- transition: {
2249
- enterFromClass: 'opacity-0 scale-75',
2250
- enterActiveClass: 'transition-all duration-150 ease-in-out',
2251
- leaveActiveClass: 'transition-all duration-150 ease-in',
2252
- leaveToClass: 'opacity-0 scale-75'
2253
- }
2254
- },
2255
- galleria: {
2256
- root: 'flex flex-col',
2257
- content: 'flex flex-col',
2258
- itemwrapper: 'flex flex-col relative',
2259
- itemcontainer: 'relative flex h-full',
2260
- item: 'flex justify-center items-center h-full w-full',
2261
- thumbnailwrapper: 'flex flex-col overflow-auto shrink-0',
2262
- thumbnailcontainer: {
2263
- className: classNames('flex flex-row', 'bg-black/90 p-4')
2264
- },
2265
- previousthumbnailbutton: {
2266
- className: classNames('self-center flex shrink-0 justify-center items-center overflow-hidden relative', 'm-2 bg-transparent text-white w-8 h-8 transition duration-200 ease-in-out rounded-full', 'hover:bg-white/10 hover:text-white', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2267
- },
2268
- thumbnailitemscontainer: 'overflow-hidden w-full',
2269
- thumbnailitems: 'flex',
2270
- thumbnailitem: {
2271
- className: classNames('overflow-auto flex items-center justify-center cursor-pointer opacity-50', 'flex-1 grow-0 shrink-0 w-20', 'hover:opacity-100 hover:transition-opacity hover:duration-300')
2272
- },
2273
- nextthumbnailbutton: {
2274
- className: classNames('self-center flex shrink-0 justify-center items-center overflow-hidden relative', 'm-2 bg-transparent text-white w-8 h-8 transition duration-200 ease-in-out rounded-full', 'hover:bg-white/10 hover:text-white', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2275
- },
2276
- indicators: {
2277
- className: classNames('flex items-center justify-center', 'p-4')
2278
- },
2279
- indicator: 'mr-2',
2280
- indicatorbutton: function indicatorbutton(_ref111) {
2281
- var context = _ref111.context;
2282
- return {
2283
- className: classNames('w-4 h-4 transition duration-200 rounded-full', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
2284
- 'bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600': !context.highlighted,
2285
- 'bg-blue-500 hover:bg-blue-600': context.highlighted
2286
- })
2287
- };
2288
- },
2289
- mask: {
2290
- className: classNames('fixed top-0 left-0 w-full h-full', 'flex items-center justify-center', 'bg-black bg-opacity-90')
2291
- },
2292
- closebutton: {
2293
- className: classNames('absolute top-0 right-0 flex justify-center items-center overflow-hidden m-2', 'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out', 'hover:text-white hover:bg-white/10', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2294
- },
2295
- closeicon: 'w-6 h-6',
2296
- previousitembutton: {
2297
- className: classNames('inline-flex justify-center items-center overflow-hidden', 'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md mx-2', 'fixed top-1/2 mt-[-0.5rem]', 'left-0', 'hover:bg-white/10 hover:text-white', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2298
- },
2299
- nextitembutton: {
2300
- className: classNames('inline-flex justify-center items-center overflow-hidden', 'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md mx-2', 'fixed top-1/2 mt-[-0.5rem]', 'right-0', 'hover:bg-white/10 hover:text-white', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]')
2301
- },
2302
- caption: {
2303
- className: classNames('absolute bottom-0 left-0 w-full', 'bg-black/50 text-white p-4')
2304
- },
2305
- transition: {
2306
- enterFromClass: 'opacity-0 scale-75',
2307
- enterActiveClass: 'transition-all duration-150 ease-in-out',
2308
- leaveActiveClass: 'transition-all duration-150 ease-in',
2309
- leaveToClass: 'opacity-0 scale-75'
2310
- }
2311
- },
2312
- carousel: {
2313
- root: 'flex flex-col',
2314
- content: 'flex flex-col overflow-auto',
2315
- container: function container(_ref112) {
2316
- var props = _ref112.props;
2317
- return {
2318
- className: classNames('flex', {
2319
- 'flex-row': props.orientation !== 'vertical',
2320
- 'flex-col': props.orientation == 'vertical'
2321
- })
2322
- };
2323
- },
2324
- previousbutton: {
2325
- className: classNames('flex justify-center items-center self-center overflow-hidden relative shrink-0 grow-0', 'w-8 h-8 text-gray-600 border-0 bg-transparent rounded-full transition duration-200 ease-in-out mx-2')
2326
- },
2327
- itemscontent: 'overflow-hidden w-full',
2328
- itemscontainer: function itemscontainer(_ref113) {
2329
- var props = _ref113.props;
2330
- return {
2331
- className: classNames('flex ', {
2332
- 'flex-row': props.orientation !== 'vertical',
2333
- 'flex-col h-full': props.orientation == 'vertical'
2334
- })
2335
- };
2336
- },
2337
- item: function item(_ref114) {
2338
- var props = _ref114.props;
2339
- return {
2340
- className: classNames('flex shrink-0 grow', {
2341
- 'w-1/3': props.orientation !== 'vertical',
2342
- 'w-full': props.orientation == 'vertical'
2343
- })
2344
- };
2345
- },
2346
- indicators: {
2347
- className: classNames('flex flex-row justify-center flex-wrap')
2348
- },
2349
- indicator: 'mr-2 mb-2',
2350
- indicatorbutton: function indicatorbutton(_ref115) {
2351
- var context = _ref115.context;
2352
- return {
2353
- className: classNames('w-8 h-2 transition duration-200 rounded-0', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
2354
- 'bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600': !context.active,
2355
- 'bg-blue-500 hover:bg-blue-600': context.active
2356
- })
2357
- };
2358
- }
2359
- },
2360
- tree: {
2361
- root: {
2362
- className: classNames('max-w-[30rem] md:w-full', 'border border-solid border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 p-5 rounded-md')
2363
- },
2364
- wrapper: 'overflow-auto',
2365
- container: 'm-0 p-0 list-none overflow-auto',
2366
- node: 'p-1 outline-none',
2367
- content: function content(_ref116) {
2368
- var context = _ref116.context,
2369
- props = _ref116.props;
2370
- return {
2371
- className: classNames('flex items-center', 'rounded-lg transition-shadow duration-200 p-2', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
2372
- 'bg-blue-50 text-blue-600': context.selected
2373
- }, {
2374
- 'cursor-pointer select-none': props.selectionMode == 'single' || props.selectionMode == 'multiple'
2375
- })
2376
- };
2377
- },
2378
- toggler: function toggler(_ref117) {
2379
- var context = _ref117.context;
2380
- return {
2381
- className: classNames('cursor-pointer select-none inline-flex items-center justify-center overflow-hidden relative shrink-0', 'mr-2 w-8 h-8 border-0 bg-transparent rounded-full transition duration-200', 'hover:border-transparent focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]', {
2382
- 'text-gray-500 dark:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-800 dark:hover:text-white/80': !context.selected,
2383
- 'text-blue-600 hover:bg-white/30': context.selected
2384
- }, {
2385
- invisible: context.isLeaf
2386
- })
2387
- };
2388
- },
2389
- checkboxcontainer: 'mr-2',
2390
- checkbox: function checkbox(_ref118) {
2391
- var context = _ref118.context,
2392
- props = _ref118.props;
2393
- return {
2394
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6', 'flex items-center justify-center', 'border-2 w-6 h-6 rounded-lg transition-colors duration-200 text-white text-base dark:text-gray-900', {
2395
- 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked,
2396
- 'border-blue-500 text-white bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked
2397
- }, {
2398
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !props.disabled,
2399
- 'cursor-default opacity-60': props.disabled
2400
- })
2401
- };
2402
- },
2403
- nodeicon: 'mr-2 text-gray-600 dark:text-white/70',
2404
- subgroup: {
2405
- className: classNames('m-0 list-none', 'p-0 pl-4')
2406
- },
2407
- filtercontainer: {
2408
- className: classNames('mb-2', 'relative block w-full')
2409
- },
2410
- input: {
2411
- className: classNames('m-0 p-3 text-base w-full pr-7', 'font-sans text-gray-600 dark:text-white/70 bg-white dark:bg-gray-900 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none rounded-lg', 'hover:border-blue-500 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]')
2412
- },
2413
- searchicon: 'absolute top-1/2 -mt-2 right-3 text-gray-600 dark:hover:text-white/70'
2414
- },
2415
- // DATA
2416
- timeline: {
2417
- root: function root(_ref119) {
2418
- var props = _ref119.props;
2419
- return {
2420
- className: classNames('flex grow', {
2421
- 'flex-col': props.layout === 'vertical',
2422
- 'flex-row flex-1': props.layout === 'horizontal'
2423
- })
2424
- };
2425
- },
2426
- event: function event(_ref120) {
2427
- var props = _ref120.props,
2428
- context = _ref120.context;
2429
- return {
2430
- className: classNames('flex relative min-h-[70px]', {
2431
- 'flex-row-reverse': props.align === 'right' || props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1,
2432
- 'flex-col flex-1': props.layout === 'horizontal',
2433
- 'flex-col-reverse ': props.align === 'bottom' || props.layout === 'horizontal' && props.align === 'alternate' && context.index % 2 === 1
2434
- })
2435
- };
2436
- },
2437
- opposite: function opposite(_ref121) {
2438
- var props = _ref121.props,
2439
- context = _ref121.context;
2440
- return {
2441
- className: classNames('flex-1', {
2442
- 'px-4': props.layout === 'vertical',
2443
- 'py-4': props.layout === 'horizontal'
2444
- }, {
2445
- 'text-right': props.align === 'left' || props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 0,
2446
- 'text-left': props.align === 'right' || props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1
2447
- })
2448
- };
2449
- },
2450
- separator: function separator(_ref122) {
2451
- var props = _ref122.props;
2452
- return {
2453
- className: classNames('flex items-center flex-initial', {
2454
- 'flex-col': props.layout === 'vertical',
2455
- 'flex-row': props.layout === 'horizontal'
2456
- })
2457
- };
2458
- },
2459
- marker: 'flex self-baseline w-4 h-4 rounded-full border-2 border-blue-500 bg-white dark:border-blue-300 dark:bg-blue-900/40',
2460
- connector: function connector(_ref123) {
2461
- var props = _ref123.props;
2462
- return {
2463
- className: classNames('grow bg-gray-300 dark:bg-blue-900/40', {
2464
- 'w-[2px]': props.layout === 'vertical',
2465
- 'w-full h-[2px]': props.layout === 'horizontal'
2466
- })
2467
- };
2468
- },
2469
- content: function content(_ref124) {
2470
- var props = _ref124.props,
2471
- context = _ref124.context;
2472
- return {
2473
- className: classNames('flex-1', {
2474
- 'px-4': props.layout === 'vertical',
2475
- 'py-4': props.layout === 'horizontal'
2476
- }, {
2477
- 'text-left': props.align === 'left' || props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 0,
2478
- 'text-right': props.align === 'right' || props.layout === 'vertical' && props.align === 'alternate' && context.index % 2 === 1
2479
- }, {
2480
- 'min-h-0': props.layout === 'vertical' && context.index === context.count,
2481
- 'grow-0': props.layout === 'horizontal' && context.index === context.count
2482
- })
2483
- };
2484
- }
2485
- },
2486
- dataview: {
2487
- content: {
2488
- className: classNames('bg-white blue-gray-700 border-0 p-0', 'dark:bg-gray-900 dark:text-white/80' // Dark Mode
2489
- )
2490
- },
2491
-
2492
- grid: 'flex flex-wrap ml-0 mr-0 mt-0 bg-white dark:bg-gray-900',
2493
- header: 'bg-gray-100 dark:bg-gray-800 text-gray-800 dark:text-white/80 border-gray-200 dark:border-blue-900/40 border-t border-b p-4 font-bold'
2494
- },
2495
- dataviewlayoutoptions: {
2496
- listbutton: function listbutton(_ref125) {
2497
- var props = _ref125.props;
2498
- return {
2499
- className: classNames('items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom justify-center border', 'transition duration-200', 'w-12 pt-3 pb-3 rounded-lg rounded-r-none', props.modelValue === 'list' ? 'bg-blue-500 border-blue-500 text-white dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' : 'bg-white border-gray-300 text-blue-gray-700 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // highlighted state
2500
- )
2501
- };
2502
- },
2503
-
2504
- gridbutton: function gridbutton(_ref126) {
2505
- var props = _ref126.props;
2506
- return {
2507
- className: classNames('items-center cursor-pointer inline-flex overflow-hidden relative select-none text-center align-bottom justify-center border', 'transition duration-200', 'w-12 pt-3 pb-3 rounded-lg rounded-l-none', props.modelValue === 'grid' ? 'bg-blue-500 border-blue-500 text-white dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' : 'bg-white border-gray-300 text-blue-gray-700 dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' // highlighted state
2508
- )
2509
- };
2510
- }
2511
- },
2512
-
2513
- daatascroller: {
2514
- content: {
2515
- className: classNames('bg-white blue-gray-700 border-0 p-0', 'dark:bg-gray-900 dark:text-white/80' // Dark Mode
2516
- )
2517
- },
2518
-
2519
- grid: 'flex flex-wrap ml-0 mr-0 mt-0 bg-white dark:bg-gray-900',
2520
- header: 'bg-gray-100 dark:bg-gray-800 text-gray-800 dark:text-white/80 border-gray-200 dark:border-blue-900/40 border-t border-b p-4 font-bold'
2521
- },
2522
- organizationchart: {
2523
- table: 'mx-auto my-0 border-spacing-0 border-separate',
2524
- cell: 'text-center align-top py-0 px-3',
2525
- node: {
2526
- className: classNames('relative inline-block bg-white border border-gray-300 text-gray-600 p-5', 'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' // Dark Mode
2527
- )
2528
- },
2529
-
2530
- linecell: 'text-center align-top py-0 px-3',
2531
- linedown: {
2532
- className: classNames('mx-auto my-0 w-px h-[20px] bg-gray-300', 'dark:bg-blue-900/40' //Dark Mode
2533
- )
2534
- },
2535
-
2536
- lineleft: function lineleft(_ref127) {
2537
- var context = _ref127.context;
2538
- return {
2539
- className: classNames('text-center align-top py-0 px-3 rounded-none border-r border-gray-300', 'dark:border-blue-900/40',
2540
- //Dark Mode
2541
- {
2542
- 'border-t': context.lineTop
2543
- })
2544
- };
2545
- },
2546
- lineright: function lineright(_ref128) {
2547
- var context = _ref128.context;
2548
- return {
2549
- className: classNames('text-center align-top py-0 px-3 rounded-none', 'dark:border-blue-900/40',
2550
- //Dark Mode
2551
- {
2552
- 'border-t border-gray-300': context.lineTop
2553
- })
2554
- };
2555
- },
2556
- nodecell: 'text-center align-top py-0 px-3',
2557
- nodetoggler: {
2558
- className: classNames('absolute bottom-[-0.75rem] left-2/4 -ml-3 w-6 h-6 bg-inherit text-inherit rounded-full z-2 cursor-pointer no-underline select-none', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]' // Focus styles
2559
- )
2560
- },
2561
-
2562
- nodetogglericon: 'relative inline-block w-4 h-4'
2563
- },
2564
- orderlist: {
2565
- root: 'flex',
2566
- controls: 'flex flex-col justify-center p-5',
2567
- moveupbutton: {
2568
- root: function root(_ref129) {
2569
- var context = _ref129.context;
2570
- return {
2571
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2572
- // button component
2573
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2574
- // icon only
2575
- 'mb-2',
2576
- // orderlist button
2577
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900',
2578
- //Dark Mode
2579
- {
2580
- 'cursor-default pointer-events-none opacity-60': context.disabled
2581
- })
2582
- };
2583
- },
2584
- label: 'flex-initial w-0'
2585
- },
2586
- movetopbutton: {
2587
- root: function root(_ref130) {
2588
- var context = _ref130.context;
2589
- return {
2590
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2591
- // button component
2592
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2593
- // icon only
2594
- 'mb-2',
2595
- // orderlist button
2596
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900',
2597
- //Dark Mode
2598
- {
2599
- 'cursor-default pointer-events-none opacity-60': context.disabled
2600
- })
2601
- };
2602
- },
2603
- label: 'flex-initial w-0'
2604
- },
2605
- movedownbutton: {
2606
- root: function root(_ref131) {
2607
- var context = _ref131.context;
2608
- return {
2609
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2610
- // button component
2611
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2612
- // icon only
2613
- 'mb-2',
2614
- // orderlist button
2615
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900',
2616
- //Dark Mode
2617
- {
2618
- 'cursor-default pointer-events-none opacity-60': context.disabled
2619
- })
2620
- };
2621
- },
2622
- label: 'flex-initial w-0'
2623
- },
2624
- movebottombutton: {
2625
- root: function root(_ref132) {
2626
- var context = _ref132.context;
2627
- return {
2628
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2629
- // button component
2630
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2631
- // icon only
2632
- 'mb-2',
2633
- // orderlist button
2634
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900',
2635
- //Dark Mode
2636
- {
2637
- 'cursor-default pointer-events-none opacity-60': context.disabled
2638
- })
2639
- };
2640
- },
2641
- label: 'flex-initial w-0'
2642
- },
2643
- container: 'flex-auto',
2644
- header: {
2645
- className: classNames('bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md', 'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
2646
- )
2647
- },
2648
-
2649
- list: {
2650
- className: classNames('list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]', 'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none', 'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
2651
- )
2652
- },
2653
-
2654
- item: function item(_ref133) {
2655
- var context = _ref133.context;
2656
- return {
2657
- className: classNames('relative cursor-pointer overflow-hidden', 'py-3 px-5 m-0 border-none text-gray-600 dark:text-white/80', 'transition duration-200', {
2658
- 'text-blue-700 bg-blue-500/20 dark:bg-blue-300/20': context.selected
2659
- })
2660
- };
2661
- }
2662
- },
2663
- picklist: {
2664
- root: 'flex',
2665
- sourcecontrols: 'flex flex-col justify-center p-5',
2666
- sourcemoveupbutton: {
2667
- root: {
2668
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2669
- // button component
2670
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2671
- // icon only
2672
- 'mb-2',
2673
- // orderlist button
2674
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2675
- )
2676
- },
2677
-
2678
- label: 'flex-initial w-0'
2679
- },
2680
- sourcemovetopbutton: {
2681
- root: {
2682
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2683
- // button component
2684
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2685
- // icon only
2686
- 'mb-2',
2687
- // orderlist button
2688
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2689
- )
2690
- },
2691
-
2692
- label: 'flex-initial w-0'
2693
- },
2694
- sourcemovedownbutton: {
2695
- root: {
2696
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2697
- // button component
2698
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2699
- // icon only
2700
- 'mb-2',
2701
- // orderlist button
2702
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2703
- )
2704
- },
2705
-
2706
- label: 'flex-initial w-0'
2707
- },
2708
- sourcemovebottombutton: {
2709
- root: {
2710
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2711
- // button component
2712
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2713
- // icon only
2714
- 'mb-2',
2715
- // orderlist button
2716
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2717
- )
2718
- },
2719
-
2720
- label: 'flex-initial w-0'
2721
- },
2722
- sourcewrapper: 'grow shrink basis-2/4',
2723
- sourceheader: {
2724
- className: classNames('bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md', 'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
2725
- )
2726
- },
2727
-
2728
- sourcelist: {
2729
- className: classNames('list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]', 'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none', 'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
2730
- )
2731
- },
2732
-
2733
- item: function item(_ref134) {
2734
- var context = _ref134.context;
2735
- return {
2736
- className: classNames('relative cursor-pointer overflow-hidden', 'py-3 px-5 m-0 border-none text-gray-600 dark:text-white/80', 'transition duration-200', {
2737
- 'text-blue-700 bg-blue-500/20 dark:bg-blue-300/20': context.selected,
2738
- 'text-gray-600 bg-gray-300 dark:bg-blue-900/40': !context.selected
2739
- })
2740
- };
2741
- },
2742
- buttons: 'flex flex-col justify-center p-5',
2743
- movetotargetbutton: {
2744
- root: {
2745
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2746
- // button component
2747
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2748
- // icon only
2749
- 'mb-2',
2750
- // orderlist button
2751
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2752
- )
2753
- },
2754
-
2755
- label: 'flex-initial w-0'
2756
- },
2757
- movealltotargetbutton: {
2758
- root: {
2759
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2760
- // button component
2761
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2762
- // icon only
2763
- 'mb-2',
2764
- // orderlist button
2765
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2766
- )
2767
- },
2768
-
2769
- label: 'flex-initial w-0'
2770
- },
2771
- movetosourcebutton: {
2772
- root: {
2773
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2774
- // button component
2775
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2776
- // icon only
2777
- 'mb-2',
2778
- // orderlist button
2779
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2780
- )
2781
- },
2782
-
2783
- label: 'flex-initial w-0'
2784
- },
2785
- movealltosourcebutton: {
2786
- root: {
2787
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2788
- // button component
2789
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2790
- // icon only
2791
- 'mb-2',
2792
- // orderlist button
2793
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2794
- )
2795
- },
2796
-
2797
- label: 'flex-initial w-0'
2798
- },
2799
- targetcontrols: 'flex flex-col justify-center p-5',
2800
- targetmoveupbutton: {
2801
- root: {
2802
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2803
- // button component
2804
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2805
- // icon only
2806
- 'mb-2',
2807
- // orderlist button
2808
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2809
- )
2810
- },
2811
-
2812
- label: 'flex-initial w-0'
2813
- },
2814
- targetmovetopbutton: {
2815
- root: {
2816
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2817
- // button component
2818
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2819
- // icon only
2820
- 'mb-2',
2821
- // orderlist button
2822
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2823
- )
2824
- },
2825
-
2826
- label: 'flex-initial w-0'
2827
- },
2828
- targetmovedownbutton: {
2829
- root: {
2830
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2831
- // button component
2832
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2833
- // icon only
2834
- 'mb-2',
2835
- // orderlist button
2836
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2837
- )
2838
- },
2839
-
2840
- label: 'flex-initial w-0'
2841
- },
2842
- targetmovebottombutton: {
2843
- root: {
2844
- className: classNames('relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0',
2845
- // button component
2846
- 'text-white bg-blue-500 border border-blue-500 rounded-md', 'transition duration-200 ease-in-out', 'justify-center px-0 py-3',
2847
- // icon only
2848
- 'mb-2',
2849
- // orderlist button
2850
- 'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
2851
- )
2852
- },
2853
-
2854
- label: 'flex-initial w-0'
2855
- },
2856
- targetwrapper: 'grow shrink basis-2/4',
2857
- targetheader: {
2858
- className: classNames('bg-slate-50 text-slate-700 border border-gray-300 p-5 font-bold border-b-0 rounded-t-md', 'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
2859
- )
2860
- },
2861
-
2862
- targetlist: {
2863
- className: classNames('list-none m-0 p-0 overflow-auto min-h-[12rem] max-h-[24rem]', 'border border-gray-300 bg-white text-gray-600 py-3 px-0 rounded-b-md outline-none', 'dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80' //Dark Mode
2864
- )
2865
- },
2866
-
2867
- transition: {
2868
- enterFromClass: '!transition-none',
2869
- enterActiveClass: '!transition-none',
2870
- leaveActiveClass: '!transition-none',
2871
- leaveToClass: '!transition-none'
2872
- }
2873
- },
2874
- paginator: {
2875
- root: {
2876
- className: classNames('flex items-center justify-center flex-wrap', 'bg-white text-gray-500 border-0 px-4 py-2 rounded-md', 'dark:bg-gray-900 dark:text-white/60 dark:border-blue-900/40' // Dark Mode
2877
- )
2878
- },
2879
-
2880
- firstpagebutton: function firstpagebutton(_ref135) {
2881
- var context = _ref135.context;
2882
- return {
2883
- className: classNames('relative inline-flex items-center justify-center user-none overflow-hidden leading-none', 'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md', 'transition duration-200', 'dark:text-white',
2884
- //Dark Mode
2885
- {
2886
- 'cursor-default pointer-events-none opacity-60': context.disabled,
2887
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
2888
- })
2889
- };
2890
- },
2891
-
2892
- previouspagebutton: function previouspagebutton(_ref136) {
2893
- var context = _ref136.context;
2894
- return {
2895
- className: classNames('relative inline-flex items-center justify-center user-none overflow-hidden leading-none', 'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md', 'transition duration-200', 'dark:text-white',
2896
- //Dark Mode
2897
- {
2898
- 'cursor-default pointer-events-none opacity-60': context.disabled,
2899
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
2900
- })
2901
- };
2902
- },
2903
-
2904
- nextpagebutton: function nextpagebutton(_ref137) {
2905
- var context = _ref137.context;
2906
- return {
2907
- className: classNames('relative inline-flex items-center justify-center user-none overflow-hidden leading-none', 'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md', 'transition duration-200', 'dark:text-white',
2908
- //Dark Mode
2909
- {
2910
- 'cursor-default pointer-events-none opacity-60': context.disabled,
2911
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
2912
- })
2913
- };
2914
- },
2915
-
2916
- lastpagebutton: function lastpagebutton(_ref138) {
2917
- var context = _ref138.context;
2918
- return {
2919
- className: classNames('relative inline-flex items-center justify-center user-none overflow-hidden leading-none', 'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md', 'transition duration-200', 'dark:text-white',
2920
- //Dark Mode
2921
- {
2922
- 'cursor-default pointer-events-none opacity-60': context.disabled,
2923
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]': !context.disabled // Focus
2924
- })
2925
- };
2926
- },
2927
-
2928
- pagebutton: function pagebutton(_ref139) {
2929
- var context = _ref139.context;
2930
- return {
2931
- className: classNames('relative inline-flex items-center justify-center user-none overflow-hidden leading-none', 'border-0 text-gray-500 min-w-[3rem] h-12 m-[0.143rem] rounded-md', 'transition duration-200', 'dark:border-blue-300 dark:text-white',
2932
- // Dark Mode
2933
- 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
2934
- // Focus
2935
- {
2936
- 'bg-blue-50 border-blue-50 text-blue-700 dark:bg-blue-300': context.active
2937
- })
2938
- };
2939
- },
2940
- rowperpagedropdown: {
2941
- root: function root(_ref140) {
2942
- var props = _ref140.props,
2943
- state = _ref140.state;
2944
- return {
2945
- className: classNames('inline-flex relative cursor-pointer user-none', 'bg-white border rounded-md', 'transition duration-200', 'h-12 mx-2', 'dark:bg-gray-950 dark:border-blue-900/40',
2946
- //DarkMode
2947
- {
2948
- 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] border-blue-500': state.focused && !props.disabled,
2949
- //Focus
2950
- 'border-gray-300': !state.focused,
2951
- 'hover:border-blue-500': !props.disabled //Hover
2952
- })
2953
- };
2954
- },
2955
-
2956
- input: {
2957
- className: classNames('font-sans text-base text-gray-600 p-3 m-0 rounded-md apperance-none', 'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border-0 pr-0', 'focus:outline-none focus:outline-offset-0', 'dark:text-white' //Dark Mode
2958
- )
2959
- },
2960
-
2961
- trigger: {
2962
- className: classNames('flex items-center justify-center shrink-0', 'text-gray-500 dark:text-white w-12 rounded-r-md')
2963
- },
2964
- panel: {
2965
- className: classNames('bg-white text-gray-600 border-0 rounded-md shadow-[0_2px_12px_rgba(0,0,0,0.1)]', 'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
2966
- )
2967
- },
2968
-
2969
- wrapper: 'overflow-auto',
2970
- list: 'm-0 p-0 py-3 list-none',
2971
- item: function item(_ref141) {
2972
- var context = _ref141.context;
2973
- return {
2974
- className: classNames('relative font-normal cursor-pointer space-nowrap overflow-hidden', 'm-0 py-3 px-5 border-none text-gray-600 rounded-none', 'transition duration-200', 'dark:text-white/80',
2975
- // Dark Mode
2976
- {
2977
- 'text-blue-700 bg-blue-50 dark:text-white/80 dark:bg-blue-300': !context.focused && context.selected,
2978
- 'bg-blue-300/40': context.focused && context.selected,
2979
- 'text-gray-600 bg-gray-300 dark:text-white/80 dark:bg-blue-900/40': context.focused && !context.selected
2980
- })
2981
- };
2982
- }
2983
- },
2984
- jumptopageinput: {
2985
- root: 'inline-flex mx-2',
2986
- input: {
2987
- className: classNames('font-sans text-base text-gray-600 p-3 m-0 rounded-md apperance-none', 'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border border-gray-300 pr-0', 'focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] focus:border-blue-300', 'dark:text-white dark:bg-gray-950 dark:border-blue-900/40',
2988
- //Dark Mode
2989
- 'm-0 flex-auto max-w-[3rem]')
2990
- }
2991
- },
2992
- jumptopagedropdown: {
2993
- root: function root(_ref142) {
2994
- var props = _ref142.props,
2995
- state = _ref142.state;
2996
- return {
2997
- className: classNames('inline-flex relative cursor-pointer user-none', 'bg-white border rounded-md', 'transition duration-200', 'h-12 mx-2', 'dark:bg-gray-950 dark:border-blue-900/40',
2998
- //DarkMode
2999
- {
3000
- 'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] border-blue-500': state.focused && !props.disabled,
3001
- //Focus
3002
- 'border-gray-300': !state.focused,
3003
- 'hover:border-blue-500': !props.disabled //Hover
3004
- })
3005
- };
3006
- },
3007
-
3008
- input: {
3009
- className: classNames('font-sans text-base text-gray-600 p-3 m-0 rounded-md apperance-none', 'block whitespace-nowrap overflow-hidden flex-auto w-[1%] cursor-pointer text-ellipsis border-0 pr-0', 'focus:outline-none focus:outline-offset-0', 'dark:text-white' //Dark Mode
3010
- )
3011
- },
3012
-
3013
- trigger: {
3014
- className: classNames('flex items-center justify-center shrink-0', 'text-gray-500 dark:text-white w-12 rounded-r-md')
3015
- },
3016
- panel: {
3017
- className: classNames('bg-white text-gray-600 border-0 rounded-md shadow-[0_2px_12px_rgba(0,0,0,0.1)]', 'dark:bg-gray-900 dark:text-white/80 dark:border-blue-900/40' //Dark Mode
3018
- )
3019
- },
3020
-
3021
- wrapper: 'overflow-auto',
3022
- list: 'm-0 p-0 py-3 list-none',
3023
- item: function item(_ref143) {
3024
- var context = _ref143.context;
3025
- return {
3026
- className: classNames('relative font-normal cursor-pointer space-nowrap overflow-hidden', 'm-0 py-3 px-5 border-none text-gray-600 rounded-none', 'transition duration-200', 'dark:text-white/80',
3027
- // Dark Mode
3028
- {
3029
- 'text-blue-700 bg-blue-50 dark:text-white/80 dark:bg-blue-300': !context.focused && context.selected,
3030
- 'bg-blue-300/40': context.focused && context.selected,
3031
- 'text-gray-600 bg-gray-300 dark:text-white/80 dark:bg-blue-900/40': context.focused && !context.selected
3032
- })
3033
- };
3034
- }
3035
- }
3036
- },
3037
- treetable: {
3038
- root: function root(_ref144) {
3039
- var props = _ref144.props;
3040
- return {
3041
- className: classNames('relative', {
3042
- 'flex flex-col h-full': props.scrollHeight
3043
- })
3044
- };
3045
- },
3046
- loadingoverlay: {
3047
- className: classNames('fixed w-full h-full t-0 l-0 bg-gray-100/40', 'transition duration-200', 'absolute flex items-center justify-center z-2', 'dark:bg-gray-950/40' // Dark Mode
3048
- )
3049
- },
3050
-
3051
- loadingicon: 'w-8 h-8',
3052
- header: {
3053
- className: classNames('bg-slate-50 text-slate-700 border border-x-0 border-t-0 border-gray-300 p-4 font-bold', 'dark:bg-gray-900 dark:text-white/70 dark:border-blue-900/40' // Dark Mode
3054
- )
3055
- },
3056
-
3057
- scrollablewrapper: function scrollablewrapper(_ref145) {
3058
- var props = _ref145.props;
3059
- return {
3060
- className: classNames({
3061
- 'relative overflow-auto': props.scrollable,
3062
- 'overflow-x-auto': props.resizableColumns
3063
- })
3064
- };
3065
- },
3066
- wrapper: function wrapper(_ref146) {
3067
- var props = _ref146.props;
3068
- return {
3069
- className: classNames({
3070
- 'relative overflow-auto': props.scrollable,
3071
- 'overflow-x-auto': props.resizableColumns
3072
- })
3073
- };
3074
- },
3075
- footer: {
3076
- className: classNames('bg-slate-50 text-slate-700 border border-x-0 border-t-0 border-gray-300 p-4 font-bold', 'dark:bg-gray-900 dark:text-white/70 dark:border-blue-900/40' // Dark Mode
3077
- )
3078
- },
3079
-
3080
- table: 'border-collapse table-fixed w-full',
3081
- thead: function thead(_ref147) {
3082
- var props = _ref147.props;
3083
- return {
3084
- className: classNames({
3085
- 'block sticky top-0 z-[1]': props.scrollable
3086
- })
3087
- };
3088
- },
3089
- tbody: function tbody(_ref148) {
3090
- var props = _ref148.props;
3091
- return {
3092
- className: classNames({
3093
- block: props.scrollable
3094
- })
3095
- };
3096
- },
3097
- tfoot: function tfoot(_ref149) {
3098
- var props = _ref149.props;
3099
- return {
3100
- className: classNames({
3101
- block: props.scrollable
3102
- })
3103
- };
3104
- },
3105
- headerrow: function headerrow(_ref150) {
3106
- var props = _ref150.props;
3107
- return {
3108
- className: classNames({
3109
- 'flex flex-nowrap w-full': props.scrollable
3110
- })
3111
- };
3112
- },
3113
- row: function row(_ref151) {
3114
- var context = _ref151.context;
3115
- return {
3116
- className: classNames('transition duration-200', 'focus:outline focus:outline-[0.15rem] focus:outline-blue-200 focus:outline-offset-[-0.15rem]',
3117
- // Focus
3118
- context.selected ? 'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80' : 'bg-white text-gray-600 dark:bg-gray-900 dark:text-white/80', {
3119
- 'hover:bg-gray-300/20 hover:text-gray-600 dark:hover:bg-gray-950': context.selectable && !context.selected,
3120
- // Hover
3121
- 'flex flex-nowrap w-full': context.scrollable
3122
- })
3123
- };
3124
- },
3125
- column: {
3126
- headercell: function headercell(_ref152) {
3127
- var context = _ref152.context;
3128
- return {
3129
- className: classNames('text-left border-gray-300 border font-bold', 'transition duration-200 p-4', 'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900',
3130
- //Dark Mode
3131
- {
3132
- 'bg-blue-50 text-blue-700': context.sorted,
3133
- 'bg-slate-50': !context.sorted,
3134
- 'flex flex-1 items-center': context.scrollable,
3135
- 'flex-initial shrink-0': context.scrollable && !context.frozen,
3136
- 'sticky z-[1]': context.scrollable && context.frozen,
3137
- 'border-x-0 border-l-0 border-t-0': !context.showGridlines,
3138
- 'overflow-hidden relative bg-clip-padding': !context.frozen
3139
- })
3140
- };
3141
- },
3142
- bodycell: function bodycell(_ref153) {
3143
- var context = _ref153.context;
3144
- return {
3145
- className: classNames('text-left border-gray-300 border', 'transition duration-200 p-4', 'dark:border-blue-900/40',
3146
- //Dark Mode
3147
- {
3148
- 'cursor-pointer': context.selectable,
3149
- 'flex flex-1 items-center': context.scrollable,
3150
- 'flex-initial shrink-0': context.scrollable && !context.frozen,
3151
- sticky: context.scrollable && context.frozen,
3152
- 'border-x-0 border-l-0': !context.showGridlines
3153
- })
3154
- };
3155
- },
3156
- rowtoggler: function rowtoggler(_ref154) {
3157
- var context = _ref154.context;
3158
- return {
3159
- className: classNames('relative inline-flex items-center justify-center align-center cursor-pointer select-none overflow-hidden bg-transparent', 'w-8 h-8 border-0 rounded mr-0.5', {
3160
- 'text-blue-700': context.selected,
3161
- 'text-gray-500': !context.selected
3162
- }, 'dark:text-white/70' //Dark Mode
3163
- )
3164
- };
3165
- },
3166
-
3167
- sorticon: function sorticon(_ref155) {
3168
- var context = _ref155.context;
3169
- return {
3170
- className: classNames('ml-2', {
3171
- 'text-blue-700 dark:text-white/80': context.sorted,
3172
- 'text-slate-700 dark:text-white/70': !context.sorted
3173
- })
3174
- };
3175
- },
3176
- sortbadge: {
3177
- className: classNames('h-[1.143rem] min-w-[1.143rem] leading-[1.143rem] text-blue-700 bg-blue-50 ml-2 rounded-[50%]', 'dark:text-white/80 dark:bg-blue-500/40' // Dark Mode
3178
- )
3179
- },
3180
-
3181
- columnresizer: 'block absolute top-0 right-0 m-0 w-2 h-full p-0 cursor-col-resize border border-transparent',
3182
- checkboxwrapper: {
3183
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6 mr-2')
3184
- },
3185
- checkbox: function checkbox(_ref156) {
3186
- var context = _ref156.context;
3187
- return {
3188
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200', {
3189
- 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400': context.checked,
3190
- 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900': !context.checked
3191
- }, {
3192
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled
3193
- })
3194
- };
3195
- },
3196
- checkboxicon: function checkboxicon(_ref157) {
3197
- var context = _ref157.context;
3198
- return {
3199
- className: classNames('w-4 h-4 transition-all duration-200 text-base dark:text-gray-900', {
3200
- 'text-white': context.checked
3201
- })
3202
- };
3203
- }
3204
- },
3205
- resizehelper: 'absolute hidden w-px z-10 bg-blue-500 dark:bg-blue-300'
3206
- },
3207
- datatable: {
3208
- root: function root(_ref158) {
3209
- var props = _ref158.props;
3210
- return {
3211
- className: classNames('relative', {
3212
- 'flex flex-col h-full': props.scrollable && props.scrollHeight === 'flex'
3213
- })
3214
- };
3215
- },
3216
- loadingoverlay: {
3217
- className: classNames('fixed w-full h-full t-0 l-0 bg-gray-100/40', 'transition duration-200', 'absolute flex items-center justify-center z-2', 'dark:bg-gray-950/40' // Dark Mode
3218
- )
3219
- },
3220
-
3221
- loadingicon: 'w-8 h-8',
3222
- wrapper: function wrapper(_ref159) {
3223
- var props = _ref159.props;
3224
- return {
3225
- className: classNames({
3226
- relative: props.scrollable,
3227
- 'flex flex-col grow h-full': props.scrollable && props.scrollHeight === 'flex'
3228
- })
3229
- };
3230
- },
3231
- header: function header(_ref160) {
3232
- var props = _ref160.props;
3233
- return {
3234
- className: classNames('bg-slate-50 text-slate-700 border-gray-300 font-bold p-4', 'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900',
3235
- // Dark Mode
3236
- props.showGridlines ? 'border-x border-t border-b-0' : 'border-y border-x-0')
3237
- };
3238
- },
3239
- table: 'w-full border-spacing-0',
3240
- thead: function thead(_ref161) {
3241
- var context = _ref161.context;
3242
- return {
3243
- className: classNames({
3244
- 'bg-slate-50 top-0 z-[1]': context.scrollable
3245
- })
3246
- };
3247
- },
3248
- tbody: function tbody(_ref162) {
3249
- var props = _ref162.props,
3250
- context = _ref162.context;
3251
- return {
3252
- className: classNames({
3253
- 'sticky z-[1]': props.frozenRow && context.scrollable
3254
- })
3255
- };
3256
- },
3257
- tfoot: function tfoot(_ref163) {
3258
- var context = _ref163.context;
3259
- return {
3260
- className: classNames({
3261
- 'bg-slate-50 bottom-0 z-[1]': context.scrollable
3262
- })
3263
- };
3264
- },
3265
- footer: {
3266
- className: classNames('bg-slate-50 text-slate-700 border-t-0 border-b border-x-0 border-gray-300 font-bold p-4', 'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900' // Dark Mode
3267
- )
3268
- },
3269
-
3270
- column: {
3271
- headercell: function headercell(_ref164) {
3272
- var context = _ref164.context,
3273
- props = _ref164.props;
3274
- return {
3275
- className: classNames('text-left border-0 border-b border-solid border-gray-300 dark:border-blue-900/40 font-bold', 'transition duration-200', (context === null || context === void 0 ? void 0 : context.size) === 'small' ? 'p-2' : (context === null || context === void 0 ? void 0 : context.size) === 'large' ? 'p-5' : 'p-4',
3276
- // Size
3277
- context.sorted ? 'bg-blue-50 text-blue-700' : 'bg-slate-50 text-slate-700',
3278
- // Sort
3279
- context.sorted ? 'dark:text-white/80 dark:bg-blue-300' : 'dark:text-white/80 dark:bg-gray-900',
3280
- // Dark Mode
3281
- {
3282
- 'sticky z-[1]': props.frozen || props.frozen === '',
3283
- // Frozen Columns
3284
- 'border-x border-y': context === null || context === void 0 ? void 0 : context.showGridlines,
3285
- 'overflow-hidden space-nowrap border-y relative bg-clip-padding': context.resizable // Resizable
3286
- })
3287
- };
3288
- },
3289
-
3290
- headercontent: 'flex items-center',
3291
- bodycell: function bodycell(_ref165) {
3292
- var props = _ref165.props,
3293
- context = _ref165.context;
3294
- return {
3295
- className: classNames('text-left border-0 border-b border-solid border-gray-300', (context === null || context === void 0 ? void 0 : context.size) === 'small' ? 'p-2' : (context === null || context === void 0 ? void 0 : context.size) === 'large' ? 'p-5' : 'p-4',
3296
- // Size
3297
- 'dark:text-white/80 dark:border-blue-900/40',
3298
- // Dark Mode
3299
- {
3300
- 'sticky bg-inherit': (props === null || props === void 0 ? void 0 : props.frozen) || (props === null || props === void 0 ? void 0 : props.frozen) === '',
3301
- // Frozen Columns
3302
- 'border-x border-y': context.showGridlines
3303
- })
3304
- };
3305
- },
3306
- footercell: function footercell(_ref166) {
3307
- var context = _ref166.context;
3308
- return {
3309
- className: classNames('text-left border-0 border-b border-solid border-gray-300 font-bold', 'bg-slate-50 text-slate-700', 'transition duration-200', (context === null || context === void 0 ? void 0 : context.size) === 'small' ? 'p-2' : (context === null || context === void 0 ? void 0 : context.size) === 'large' ? 'p-5' : 'p-4',
3310
- // Size
3311
- 'dark:text-white/80 dark:bg-gray-900 dark:border-blue-900/40',
3312
- // Dark Mode
3313
- {
3314
- 'border-x border-y': context.showGridlines
3315
- })
3316
- };
3317
- },
3318
- sorticon: function sorticon(_ref167) {
3319
- var context = _ref167.context;
3320
- return {
3321
- className: classNames('ml-2', context.sorted ? 'text-blue-700 dark:text-white/80' : 'text-slate-700 dark:text-white/70')
3322
- };
3323
- },
3324
- sortbadge: {
3325
- className: classNames('flex items-center justify-center align-middle', 'rounded-[50%] w-[1.143rem] leading-[1.143rem] ml-2', 'text-blue-700 bg-blue-50', 'dark:text-white/80 dark:bg-blue-400' // Dark Mode
3326
- )
3327
- },
3328
-
3329
- columnfilter: 'inline-flex items-center ml-auto',
3330
- filteroverlay: {
3331
- className: classNames('bg-white text-gray-600 border-0 rounded-md min-w-[12.5rem]', 'dark:bg-gray-900 dark:border-blue-900/40 dark:text-white/80' //Dark Mode
3332
- )
3333
- },
3334
-
3335
- filtermatchmodedropdown: {
3336
- root: 'min-[0px]:flex mb-2'
3337
- },
3338
- filterrowitems: 'm-0 p-0 py-3 list-none ',
3339
- filterrowitem: function filterrowitem(_ref168) {
3340
- var context = _ref168.context;
3341
- return {
3342
- className: classNames('m-0 py-3 px-5 bg-transparent', 'transition duration-200', context !== null && context !== void 0 && context.highlighted ? 'text-blue-700 bg-blue-100 dark:text-white/80 dark:bg-blue-300' : 'text-gray-600 bg-transparent dark:text-white/80 dark:bg-transparent')
3343
- };
3344
- },
3345
- filteroperator: {
3346
- className: classNames('px-5 py-3 border-b border-solid border-gray-300 text-slate-700 bg-slate-50 rounded-t-md', 'dark:border-blue-900/40 dark:text-white/80 dark:bg-gray-900' // Dark Mode
3347
- )
3348
- },
3349
-
3350
- filteroperatordropdown: {
3351
- root: 'min-[0px]:flex'
3352
- },
3353
- filterconstraint: 'p-5 border-b border-solid border-gray-300 dark:border-blue-900/40',
3354
- filteraddrule: 'py-3 px-5',
3355
- filteraddrulebutton: {
3356
- root: 'justify-center w-full min-[0px]:text-sm',
3357
- label: 'flex-auto grow-0',
3358
- icon: 'mr-2'
3359
- },
3360
- filterremovebutton: {
3361
- root: 'ml-2',
3362
- label: 'grow-0'
3363
- },
3364
- filterbuttonbar: 'flex items-center justify-between p-5',
3365
- filterclearbutton: {
3366
- root: 'w-auto min-[0px]:text-sm border-blue-500 text-blue-500 px-4 py-3'
3367
- },
3368
- filterapplybutton: {
3369
- root: 'w-auto min-[0px]:text-sm px-4 py-3'
3370
- },
3371
- filtermenubutton: function filtermenubutton(_ref169) {
3372
- var context = _ref169.context;
3373
- return {
3374
- className: classNames('inline-flex justify-center items-center cursor-pointer no-underline overflow-hidden relative ml-2', 'w-8 h-8 rounded-[50%]', 'transition duration-200', 'hover:text-slate-700 hover:bg-gray-300/20',
3375
- // Hover
3376
- 'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
3377
- // Focus
3378
- 'dark:text-white/70 dark:hover:text-white/80 dark:bg-gray-900',
3379
- // Dark Mode
3380
- {
3381
- 'bg-blue-50 text-blue-700': context.active
3382
- })
3383
- };
3384
- },
3385
- headerfilterclearbutton: function headerfilterclearbutton(_ref170) {
3386
- var context = _ref170.context;
3387
- return {
3388
- className: classNames('inline-flex justify-center items-center cursor-pointer no-underline overflow-hidden relative', 'text-left bg-transparent m-0 p-0 border-none select-none ml-2', {
3389
- invisible: !context.hidden
3390
- })
3391
- };
3392
- },
3393
- columnresizer: 'block absolute top-0 right-0 m-0 w-2 h-full p-0 cursor-col-resize border border-transparent',
3394
- rowreordericon: 'cursor-move',
3395
- roweditorinitbutton: {
3396
- className: classNames('inline-flex items-center justify-center overflow-hidden relative', 'text-left cursor-pointer select-none', 'w-8 h-8 border-0 rounded-[50%]', 'transition duration-200', 'text-slate-700 border-transparent', 'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
3397
- //Focus
3398
- 'hover:text-slate-700 hover:bg-gray-300/20',
3399
- //Hover
3400
- 'dark:text-white/70' // Dark Mode
3401
- )
3402
- },
3403
-
3404
- roweditorsavebutton: {
3405
- className: classNames('inline-flex items-center justify-center overflow-hidden relative', 'text-left cursor-pointer select-none', 'w-8 h-8 border-0 rounded-[50%]', 'transition duration-200', 'text-slate-700 border-transparent', 'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
3406
- //Focus
3407
- 'hover:text-slate-700 hover:bg-gray-300/20',
3408
- //Hover
3409
- 'dark:text-white/70' // Dark Mode
3410
- )
3411
- },
3412
-
3413
- roweditorcancelbutton: {
3414
- className: classNames('inline-flex items-center justify-center overflow-hidden relative', 'text-left cursor-pointer select-none', 'w-8 h-8 border-0 rounded-[50%]', 'transition duration-200', 'text-slate-700 border-transparent', 'focus:outline-0 focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)]',
3415
- //Focus
3416
- 'hover:text-slate-700 hover:bg-gray-300/20',
3417
- //Hover
3418
- 'dark:text-white/70' // Dark Mode
3419
- )
3420
- },
3421
-
3422
- radiobuttonwrapper: {
3423
- className: classNames('relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6')
3424
- },
3425
- radiobutton: function radiobutton(_ref171) {
3426
- var context = _ref171.context;
3427
- return {
3428
- className: classNames('flex justify-center items-center', 'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out', context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900', {
3429
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
3430
- 'cursor-default opacity-60': context.disabled
3431
- })
3432
- };
3433
- },
3434
- radiobuttonicon: function radiobuttonicon(_ref172) {
3435
- var context = _ref172.context;
3436
- return {
3437
- className: classNames('transform rounded-full', 'block w-3 h-3 transition duration-200 bg-white dark:bg-gray-900', {
3438
- 'backface-hidden scale-10 invisible': context.checked === false,
3439
- 'transform scale-100 visible': context.checked === true
3440
- })
3441
- };
3442
- },
3443
- headercheckboxwrapper: {
3444
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6')
3445
- },
3446
- headercheckbox: function headercheckbox(_ref173) {
3447
- var context = _ref173.context;
3448
- return {
3449
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200', context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900', {
3450
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
3451
- 'cursor-default opacity-60': context.disabled
3452
- })
3453
- };
3454
- },
3455
- headercheckboxicon: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900',
3456
- checkboxwrapper: {
3457
- className: classNames('cursor-pointer inline-flex relative select-none align-bottom', 'w-6 h-6')
3458
- },
3459
- checkbox: function checkbox(_ref174) {
3460
- var context = _ref174.context;
3461
- return {
3462
- className: classNames('flex items-center justify-center', 'border-2 w-6 h-6 text-gray-600 rounded-lg transition-colors duration-200', context.checked ? 'border-blue-500 bg-blue-500 dark:border-blue-400 dark:bg-blue-400' : 'border-gray-300 bg-white dark:border-blue-900/40 dark:bg-gray-900', {
3463
- 'hover:border-blue-500 dark:hover:border-blue-400 focus:outline-none focus:outline-offset-0 focus:shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:focus:shadow-[inset_0_0_0_0.2rem_rgba(147,197,253,0.5)]': !context.disabled,
3464
- 'cursor-default opacity-60': context.disabled
3465
- })
3466
- };
3467
- },
3468
- checkboxicon: 'w-4 h-4 transition-all duration-200 text-white text-base dark:text-gray-900',
3469
- transition: TRANSITIONS.overlay
3470
- },
3471
- bodyrow: function bodyrow(_ref175) {
3472
- var context = _ref175.context;
3473
- return {
3474
- className: classNames(context.selected ? 'bg-blue-50 text-blue-700 dark:bg-blue-300' : 'bg-white text-gray-600 dark:bg-gray-900', context.stripedRows ? context.index % 2 === 0 ? 'bg-white text-gray-600 dark:bg-gray-900' : 'bg-blue-50/50 text-gray-600 dark:bg-gray-950' : '', 'transition duration-200', 'focus:outline focus:outline-[0.15rem] focus:outline-blue-200 focus:outline-offset-[-0.15rem]',
3475
- // Focus
3476
- 'dark:text-white/80 dark:focus:outline dark:focus:outline-[0.15rem] dark:focus:outline-blue-300 dark:focus:outline-offset-[-0.15rem]',
3477
- // Dark Mode
3478
- {
3479
- 'cursor-pointer': context.selectable,
3480
- 'hover:bg-gray-300/20 hover:text-gray-600': context.selectable && !context.selected // Hover
3481
- })
3482
- };
3483
- },
3484
-
3485
- rowexpansion: 'bg-white text-gray-600 dark:bg-gray-900 dark:text-white/80',
3486
- rowgroupheader: {
3487
- className: classNames('sticky z-[1]', 'bg-white text-gray-600', 'transition duration-200')
3488
- },
3489
- rowgroupfooter: {
3490
- className: classNames('sticky z-[1]', 'bg-white text-gray-600', 'transition duration-200')
3491
- },
3492
- rowgrouptoggler: {
3493
- className: classNames('text-left m-0 p-0 cursor-pointer select-none', 'inline-flex items-center justify-center overflow-hidden relative', 'w-8 h-8 text-gray-500 border-0 bg-transparent rounded-[50%]', 'transition duration-200', 'dark:text-white/70' // Dark Mode
3494
- )
3495
- },
3496
-
3497
- rowgrouptogglericon: 'inline-block w-4 h-4',
3498
- resizehelper: 'absolute hidden w-px z-10 bg-blue-500 dark:bg-blue-300'
3499
- },
3500
- // CHART
3501
- chart: {
3502
- root: 'relative'
3503
- }
3504
- };
3505
- module.exports = {
3506
- Tailwind: Tailwind
3507
- };
3508
-
3509
- export { TRANSITIONS };