@quoreadmin/ui 1.7.20 → 1.8.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 (355) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +42 -40
  3. package/dist/index10.js +2 -2
  4. package/dist/{index100.js → index101.js} +1 -1
  5. package/dist/index103.js +138 -6
  6. package/dist/index104.js +4 -0
  7. package/dist/index107.js +2 -2
  8. package/dist/index109.js +1 -1
  9. package/dist/index11.js +2 -2
  10. package/dist/index111.js +3 -3
  11. package/dist/index113.js +6 -6
  12. package/dist/index115.js +1 -1
  13. package/dist/index117.js +5 -5
  14. package/dist/index12.js +2 -2
  15. package/dist/index127.js +69 -10
  16. package/dist/index129.js +9 -75
  17. package/dist/index13.js +2 -2
  18. package/dist/index131.js +68 -243
  19. package/dist/index133.js +257 -0
  20. package/dist/index136.js +35 -16
  21. package/dist/index138.js +22 -50
  22. package/dist/index14.js +2 -2
  23. package/dist/index140.js +38 -1110
  24. package/dist/index142.js +1059 -216
  25. package/dist/index144.js +238 -294
  26. package/dist/index146.js +335 -16
  27. package/dist/index148.js +15 -87
  28. package/dist/index15.js +2 -2
  29. package/dist/index150.js +71 -61
  30. package/dist/index152.js +66 -93
  31. package/dist/index154.js +120 -0
  32. package/dist/index157.js +373 -28
  33. package/dist/index159.js +28 -194
  34. package/dist/index16.js +2 -2
  35. package/dist/index161.js +210 -0
  36. package/dist/index164.js +110 -5518
  37. package/dist/index165.js +484 -80
  38. package/dist/index166.js +5505 -844
  39. package/dist/index167.js +90 -37
  40. package/dist/index168.js +816 -235
  41. package/dist/index169.js +28 -140
  42. package/dist/index17.js +2 -2
  43. package/dist/index170.js +271 -1190
  44. package/dist/index171.js +134 -756
  45. package/dist/index172.js +1133 -1242
  46. package/dist/index173.js +753 -257
  47. package/dist/index174.js +1290 -88
  48. package/dist/index175.js +276 -2
  49. package/dist/index176.js +86 -1356
  50. package/dist/index177.js +4 -0
  51. package/dist/index178.js +1372 -14
  52. package/dist/index18.js +2 -2
  53. package/dist/index180.js +11 -11
  54. package/dist/index181.js +11 -11
  55. package/dist/index182.js +12 -19
  56. package/dist/index183.js +18 -759
  57. package/dist/index184.js +25 -1122
  58. package/dist/index185.js +625 -1100
  59. package/dist/index186.js +1122 -11277
  60. package/dist/index187.js +1234 -36
  61. package/dist/index188.js +11276 -43
  62. package/dist/index19.js +2 -2
  63. package/dist/index191.js +36 -5938
  64. package/dist/index192.js +42 -205
  65. package/dist/index193.js +5922 -19
  66. package/dist/index194.js +199 -10
  67. package/dist/index195.js +33 -76
  68. package/dist/index196.js +14 -249
  69. package/dist/index197.js +72 -13678
  70. package/dist/index198.js +253 -27
  71. package/dist/index199.js +13669 -48
  72. package/dist/index2.js +2 -2
  73. package/dist/index20.js +2 -2
  74. package/dist/index200.js +25 -236
  75. package/dist/index201.js +45 -290
  76. package/dist/index202.js +179 -229
  77. package/dist/index203.js +304 -29
  78. package/dist/index204.js +286 -114
  79. package/dist/index205.js +29 -32
  80. package/dist/index206.js +116 -26
  81. package/dist/index207.js +31 -31
  82. package/dist/index208.js +26 -9
  83. package/dist/index209.js +35 -18
  84. package/dist/index21.js +2 -2
  85. package/dist/index210.js +8 -9
  86. package/dist/index211.js +19 -10
  87. package/dist/index212.js +10 -51
  88. package/dist/index213.js +9 -42
  89. package/dist/index214.js +50 -3
  90. package/dist/index215.js +40 -36
  91. package/dist/index216.js +4 -21
  92. package/dist/index217.js +35 -84
  93. package/dist/index218.js +21 -407
  94. package/dist/index219.js +159 -20
  95. package/dist/index22.js +3 -3
  96. package/dist/index220.js +19 -160
  97. package/dist/index221.js +10 -10
  98. package/dist/index222.js +15 -13
  99. package/dist/index223.js +198 -21
  100. package/dist/index224.js +51 -180
  101. package/dist/index225.js +82 -64
  102. package/dist/index226.js +406 -33
  103. package/dist/index227.js +33 -39
  104. package/dist/index228.js +36 -123
  105. package/dist/index229.js +158 -35
  106. package/dist/index23.js +2 -2
  107. package/dist/index230.js +227 -79
  108. package/dist/index231.js +36 -19
  109. package/dist/index232.js +10 -20
  110. package/dist/index233.js +22 -20
  111. package/dist/index234.js +126 -19
  112. package/dist/index235.js +35 -158
  113. package/dist/index236.js +79 -227
  114. package/dist/index237.js +19 -36
  115. package/dist/index238.js +20 -10
  116. package/dist/index239.js +20 -3632
  117. package/dist/index24.js +2 -2
  118. package/dist/index240.js +20 -55
  119. package/dist/index241.js +22 -77
  120. package/dist/index242.js +22 -52
  121. package/dist/index243.js +20 -215
  122. package/dist/index244.js +836 -10
  123. package/dist/index245.js +695 -50
  124. package/dist/index246.js +174 -59
  125. package/dist/index247.js +22 -54
  126. package/dist/index248.js +20 -75
  127. package/dist/index249.js +19 -722
  128. package/dist/index25.js +60 -11
  129. package/dist/index250.js +3 -39
  130. package/dist/index251.js +181 -58
  131. package/dist/index252.js +133 -11
  132. package/dist/index253.js +1189 -671
  133. package/dist/index254.js +20 -820
  134. package/dist/index255.js +11 -11
  135. package/dist/index256.js +9 -9
  136. package/dist/index257.js +22 -13
  137. package/dist/index258.js +20 -836
  138. package/dist/index259.js +19 -701
  139. package/dist/index26.js +1 -1
  140. package/dist/index260.js +2 -176
  141. package/dist/index261.js +2 -22
  142. package/dist/index262.js +3632 -20
  143. package/dist/index263.js +55 -20
  144. package/dist/index264.js +77 -3
  145. package/dist/index265.js +46 -181
  146. package/dist/index266.js +209 -127
  147. package/dist/index267.js +10 -1223
  148. package/dist/index268.js +57 -20
  149. package/dist/index269.js +61 -22
  150. package/dist/index27.js +1 -1
  151. package/dist/index270.js +54 -22
  152. package/dist/index271.js +75 -29
  153. package/dist/index272.js +722 -19
  154. package/dist/index273.js +39 -20
  155. package/dist/index274.js +64 -2
  156. package/dist/index275.js +11 -2
  157. package/dist/index276.js +689 -237
  158. package/dist/index277.js +820 -8
  159. package/dist/index278.js +42 -126
  160. package/dist/index279.js +59 -63
  161. package/dist/index28.js +1 -1
  162. package/dist/index280.js +26 -3
  163. package/dist/index281.js +21 -26
  164. package/dist/index282.js +21 -53
  165. package/dist/index283.js +15 -78
  166. package/dist/index284.js +17 -26
  167. package/dist/index285.js +253 -22
  168. package/dist/index286.js +8 -22
  169. package/dist/index287.js +137 -15
  170. package/dist/index288.js +83 -17
  171. package/dist/index289.js +2 -2
  172. package/dist/index29.js +1 -1
  173. package/dist/index290.js +3 -2
  174. package/dist/index291.js +24 -1515
  175. package/dist/index292.js +2 -386
  176. package/dist/index293.js +245 -2714
  177. package/dist/index294.js +4 -84
  178. package/dist/index295.js +135 -3765
  179. package/dist/index296.js +70 -57
  180. package/dist/index297.js +86 -14
  181. package/dist/index298.js +27 -82
  182. package/dist/index299.js +13 -199
  183. package/dist/index3.js +2 -2
  184. package/dist/index30.js +1 -1
  185. package/dist/index300.js +66 -237
  186. package/dist/index301.js +3 -78
  187. package/dist/index302.js +2 -22
  188. package/dist/index303.js +74 -926
  189. package/dist/index304.js +52 -21
  190. package/dist/index305.js +5 -19
  191. package/dist/index306.js +4 -19
  192. package/dist/index307.js +171 -61
  193. package/dist/index308.js +62 -18
  194. package/dist/index309.js +74 -18
  195. package/dist/index31.js +1 -1
  196. package/dist/index310.js +78 -21
  197. package/dist/index311.js +11 -11
  198. package/dist/index312.js +930 -58
  199. package/dist/index313.js +21 -261
  200. package/dist/index314.js +19 -5
  201. package/dist/index315.js +19 -139
  202. package/dist/index316.js +67 -71
  203. package/dist/index317.js +17 -85
  204. package/dist/index318.js +19 -29
  205. package/dist/index319.js +21 -15
  206. package/dist/index32.js +1 -1
  207. package/dist/index320.js +21 -74
  208. package/dist/index321.js +63 -4
  209. package/dist/index322.js +1518 -2
  210. package/dist/index323.js +376 -73
  211. package/dist/index324.js +2726 -48
  212. package/dist/index325.js +84 -4
  213. package/dist/index326.js +3769 -4
  214. package/dist/index327.js +51 -170
  215. package/dist/index328.js +14 -62
  216. package/dist/index329.js +84 -75
  217. package/dist/index33.js +1 -1
  218. package/dist/index330.js +201 -8
  219. package/dist/index331.js +245 -12
  220. package/dist/index332.js +32 -50
  221. package/dist/index333.js +8 -11
  222. package/dist/index334.js +12 -13
  223. package/dist/index335.js +49 -52
  224. package/dist/index336.js +9 -49
  225. package/dist/index337.js +10 -27
  226. package/dist/index338.js +58 -2
  227. package/dist/index339.js +52 -5
  228. package/dist/index34.js +1 -1
  229. package/dist/index340.js +31 -2
  230. package/dist/index341.js +2 -23
  231. package/dist/index342.js +4 -40
  232. package/dist/index343.js +2 -2
  233. package/dist/index344.js +22 -10
  234. package/dist/index345.js +38 -17
  235. package/dist/index346.js +2 -17
  236. package/dist/index347.js +10 -9
  237. package/dist/index348.js +20 -10
  238. package/dist/index349.js +17 -2
  239. package/dist/index35.js +1 -1
  240. package/dist/index350.js +9 -8
  241. package/dist/index351.js +10 -10
  242. package/dist/index352.js +2 -14
  243. package/dist/index353.js +9 -37
  244. package/dist/index354.js +9 -19
  245. package/dist/index355.js +14 -20
  246. package/dist/index356.js +17 -62
  247. package/dist/index357.js +56 -36
  248. package/dist/index358.js +26 -16
  249. package/dist/index359.js +6 -56
  250. package/dist/index36.js +1 -1
  251. package/dist/index360.js +51 -28
  252. package/dist/index361.js +7 -7
  253. package/dist/index362.js +11 -51
  254. package/dist/index363.js +6 -6
  255. package/dist/index364.js +28 -12
  256. package/dist/index365.js +2 -7
  257. package/dist/index366.js +69 -27
  258. package/dist/index367.js +167 -2
  259. package/dist/index368.js +20 -70
  260. package/dist/index369.js +20 -167
  261. package/dist/index37.js +4 -16
  262. package/dist/index370.js +61 -98
  263. package/dist/index371.js +37 -91
  264. package/dist/index372.js +30 -97
  265. package/dist/index373.js +11 -17
  266. package/dist/index374.js +3 -30
  267. package/dist/index375.js +3 -10
  268. package/dist/index376.js +13 -4
  269. package/dist/index377.js +7 -4
  270. package/dist/index378.js +12 -13
  271. package/dist/index379.js +5 -7
  272. package/dist/index38.js +15 -43
  273. package/dist/index380.js +33 -12
  274. package/dist/index381.js +31 -5
  275. package/dist/index382.js +27 -32
  276. package/dist/index383.js +58 -28
  277. package/dist/index384.js +16 -27
  278. package/dist/index385.js +99 -59
  279. package/dist/index386.js +91 -3
  280. package/dist/index387.js +98 -2
  281. package/dist/index388.js +3 -2
  282. package/dist/index389.js +2 -17
  283. package/dist/index39.js +42 -67
  284. package/dist/index390.js +2 -13
  285. package/dist/index391.js +17 -6
  286. package/dist/index392.js +13 -32
  287. package/dist/index393.js +8 -0
  288. package/dist/index394.js +34 -0
  289. package/dist/index4.js +2 -2
  290. package/dist/index40.js +66 -26
  291. package/dist/index41.js +25 -32
  292. package/dist/index42.js +32 -37
  293. package/dist/index43.js +37 -1300
  294. package/dist/index44.js +1273 -337
  295. package/dist/index45.js +357 -145
  296. package/dist/index46.js +155 -18
  297. package/dist/index47.js +16 -42
  298. package/dist/index48.js +44 -68
  299. package/dist/index49.js +67 -61
  300. package/dist/index5.js +2 -2
  301. package/dist/index50.js +57 -175
  302. package/dist/index51.js +173 -77
  303. package/dist/index52.js +78 -199
  304. package/dist/index53.js +206 -68
  305. package/dist/index54.js +69 -20
  306. package/dist/index55.js +20 -11
  307. package/dist/index56.js +10 -6
  308. package/dist/index57.js +5 -209
  309. package/dist/index58.js +210 -12
  310. package/dist/index59.js +12 -184
  311. package/dist/index6.js +2 -2
  312. package/dist/index60.js +176 -68
  313. package/dist/index61.js +79 -0
  314. package/dist/index63.js +7 -63
  315. package/dist/index64.js +65 -0
  316. package/dist/index7.js +2 -2
  317. package/dist/{index71.js → index72.js} +2 -2
  318. package/dist/index76.js +40 -308
  319. package/dist/index77.js +330 -0
  320. package/dist/index8.js +3 -3
  321. package/dist/{index80.js → index81.js} +5 -5
  322. package/dist/{index82.js → index83.js} +1 -1
  323. package/dist/index85.js +23 -131
  324. package/dist/index86.js +144 -0
  325. package/dist/{index87.js → index88.js} +5 -5
  326. package/dist/index9.js +2 -2
  327. package/dist/{index89.js → index90.js} +5 -5
  328. package/dist/{index95.js → index96.js} +3 -3
  329. package/dist/index98.js +20 -25
  330. package/dist/index99.js +34 -0
  331. package/dist/src/components/footer-actions/footer-actions.stories.d.ts +33 -1
  332. package/dist/src/components/footer-actions/footer-actions.vue.d.ts +29 -2
  333. package/dist/src/components/page-header/page-header.stories.d.ts +394 -0
  334. package/dist/src/components/page-header/page-header.vue.d.ts +43 -0
  335. package/dist/src/index.d.ts +1 -0
  336. package/package.json +1 -1
  337. package/src/assets/illustrations/app-icon-news.svg +1 -0
  338. package/dist/index102.js +0 -142
  339. package/dist/index134.js +0 -56
  340. package/dist/index155.js +0 -389
  341. package/dist/index162.js +0 -116
  342. package/dist/index163.js +0 -497
  343. package/dist/index179.js +0 -20
  344. package/dist/index62.js +0 -9
  345. package/dist/index75.js +0 -62
  346. package/dist/index84.js +0 -36
  347. package/dist/index97.js +0 -29
  348. package/dist/src/components/footer-actions/footer-actions.d.ts +0 -3
  349. /package/dist/{index65.js → index66.js} +0 -0
  350. /package/dist/{index67.js → index68.js} +0 -0
  351. /package/dist/{index69.js → index70.js} +0 -0
  352. /package/dist/{index73.js → index74.js} +0 -0
  353. /package/dist/{index78.js → index79.js} +0 -0
  354. /package/dist/{index91.js → index92.js} +0 -0
  355. /package/dist/{index93.js → index94.js} +0 -0
package/dist/index168.js CHANGED
@@ -1,282 +1,863 @@
1
- const i = {
2
- content: ({ parent: o, props: t }) => ({
1
+ const o = {
2
+ root: ({ props: e }) => ({
3
3
  class: [
4
- "flex",
5
- {
6
- "flex-col": t.fullScreen
7
- },
8
- {
9
- "flex-col": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
10
- "flex-row": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
11
- }
12
- ]
13
- }),
14
- // Contains main photo & previous/next button container "itemcontainer" below
15
- itemwrapper: ({ parent: o, props: t }) => ({
16
- class: [
17
- "group",
18
- "flex relative",
19
- "mt-14 md:mt-20 min-h-[74vh]",
20
- {
21
- "grow shrink w-0 justify-center": t.fullScreen
22
- },
23
- {
24
- "flex-col": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "top",
25
- "flex-row items-center": o.props.indicatorsPosition === "left" || o.props.indicatorsPosition === "right"
26
- },
27
- {
28
- "order-2": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left",
29
- "flex-row": o.props.thumbnailsPosition === "right"
30
- }
31
- ]
32
- }),
33
- // Contains main photo & previous/next buttons
34
- itemcontainer: ({ parent: o }) => ({
35
- class: [
36
- "flex w-full md:w-screen h-full relative grow items-center",
37
- {
38
- "order-1": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "right",
39
- "order-2": o.props.indicatorsPosition === "top" || o.props.indicatorsPosition === "left"
40
- }
4
+ "relative",
5
+ // Flex & Alignment
6
+ { "flex flex-col": e.scrollable && e.scrollHeight === "flex" },
7
+ // Size
8
+ { "h-full": e.scrollable && e.scrollHeight === "flex" }
41
9
  ]
42
10
  }),
43
- // Div that contains main img element
44
- item: {
11
+ loadingoverlay: {
45
12
  class: [
46
- // Flex
47
- "flex justify-center items-center",
48
- // Sizing
49
- "h-full w-full",
50
- "rounded-lg overflow-auto",
51
- // Misc
52
- "md:max-w-[592px] mx-auto"
13
+ // Position
14
+ "absolute",
15
+ "top-0 left-0",
16
+ "z-20",
17
+ // Flex & Alignment
18
+ "flex items-center justify-center",
19
+ // Size
20
+ "w-full h-full",
21
+ // Color
22
+ "bg-surface-100/0 dark:bg-surface-800/0",
23
+ // Transition
24
+ "transition duration-200"
53
25
  ]
54
26
  },
55
- // Contains div that contains thumbnail container "thumbnailcontainer"
56
- thumbnailwrapper: ({ parent: o }) => ({
27
+ loadingicon: {
28
+ class: "w-8 h-8 animate-spin hidden"
29
+ },
30
+ wrapper: ({ props: e }) => ({
57
31
  class: [
58
- // Flex
59
- "flex flex-col shrink-0",
60
- {
61
- "order-1": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left"
62
- },
63
- // Misc
64
- "overflow-auto"
32
+ { relative: e.scrollable, "flex flex-col grow": e.scrollable && e.scrollHeight === "flex" },
33
+ // Size
34
+ { "h-full": e.scrollable && e.scrollHeight === "flex" }
65
35
  ]
66
36
  }),
67
- thumbnailcontainer: ({ parent: o }) => ({
37
+ header: ({ props: e }) => ({
68
38
  class: [
69
- // Flex
70
- "flex",
39
+ "font-bold",
40
+ // Shape
41
+ e.showGridlines ? "border-x border-t border-b-0" : "border-y-0 border-x-0",
71
42
  // Spacing
72
43
  "p-4",
73
- // Colors
74
- "bg-transparent",
75
- "md:max-w-[592px] mx-auto",
76
- {
77
- "flex-row": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
78
- "flex-col grow": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
79
- }
44
+ // Color
45
+ "bg-surface-50 dark:bg-surface-800",
46
+ "border-surface-200 dark:border-surface-700",
47
+ "text-surface-700 dark:text-white/80"
80
48
  ]
81
49
  }),
82
- // Container for the previous thumbnail button
83
- previousthumbnailbutton: {
84
- class: [
85
- // Positioning
86
- "self-center relative",
87
- // Display & Flexbox
88
- "flex shrink-0 justify-center items-center overflow-hidden",
89
- // Spacing
90
- "m-2 ml-0",
91
- // Appearance
92
- "bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
93
- // Hover Effects
94
- "hover:bg-surface-0/10 hover:text-white",
95
- // Focus Effects
96
- "focus:outline-none focus:outline-offset-0"
97
- ]
98
- },
99
- // The container for just the thumbnails (not including the previous/next buttons) - contains another div "thumbnailitems"
100
- thumbnailitemscontainer: {
101
- class: "overflow-hidden w-full md:w-[30rem]"
50
+ table: {
51
+ class: "w-full border-spacing-0 border-separate"
102
52
  },
103
- // The div that contains just the thumbnails
104
- thumbnailitems: ({ parent: o }) => ({
53
+ thead: ({ context: e }) => ({
105
54
  class: [
106
- "flex",
107
55
  {
108
- "flex-col h-full": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
56
+ "bg-surface-50 z-40 sticky": e.scrollable
109
57
  }
110
58
  ]
111
59
  }),
112
- thumbnailitem: ({ parent: o }) => ({
60
+ tbody: ({ instance: e, context: r }) => ({
113
61
  class: [
114
- // Flexbox
115
- "flex items-center justify-center",
116
- "grow shrink-0",
117
62
  {
118
- "w-full md:w-[25%]": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom"
119
- },
120
- // Misc
121
- "overflow-auto",
122
- "cursor-pointer",
123
- // 'opacity-50',
124
- // States
125
- "hover:opacity-100",
126
- "hover:transition-opacity",
127
- "hover:duration-300"
128
- ]
129
- }),
130
- nextthumbnailbutton: {
131
- class: [
132
- // Positioning
133
- "self-center relative",
134
- // Display & Flexbox
135
- "flex shrink-0 justify-center items-center overflow-hidden",
136
- // Spacing
137
- "m-2 mr-0",
138
- // Appearance
139
- "bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
140
- // Hover Effects
141
- "hover:bg-surface-0/10 hover:text-white",
142
- // Focus Effects
143
- "focus:outline-none focus:outline-offset-0"
144
- ]
145
- },
146
- indicators: ({ parent: o }) => ({
147
- class: [
148
- // flex
149
- "flex items-center justify-center",
150
- // Spacing
151
- "p-4",
152
- // Indicators Position
153
- {
154
- "order-2": o.props.indicatorsPosition == "bottom",
155
- "order-1": o.props.indicatorsPosition == "top",
156
- "order-1 flex-col": o.props.indicatorsPosition == "left",
157
- "flex-col order-2": o.props.indicatorsPosition == "right"
158
- },
159
- {
160
- "absolute z-10 bg-black/50": o.props.showIndicatorsOnItem
161
- },
162
- {
163
- "bottom-0 left-0 w-full items-start": o.props.indicatorsPosition == "bottom" && o.props.showIndicatorsOnItem,
164
- "top-0 left-0 w-full items-start": o.props.indicatorsPosition == "top" && o.props.showIndicatorsOnItem,
165
- "left-0 top-0 h-full items-start": o.props.indicatorsPosition == "left" && o.props.showIndicatorsOnItem,
166
- "right-0 top-0 h-full items-start": o.props.indicatorsPosition == "right" && o.props.showIndicatorsOnItem
63
+ "sticky z-20": e.frozenRow && r.scrollable
167
64
  }
168
65
  ]
169
66
  }),
170
- indicator: ({ parent: o }) => ({
67
+ tfoot: ({ context: e }) => ({
171
68
  class: [
172
69
  {
173
- "mr-2": o.props.indicatorsPosition == "bottom" || o.props.indicatorsPosition == "top",
174
- "mb-2": o.props.indicatorsPosition == "left" || o.props.indicatorsPosition == "right"
70
+ "bg-surface-50 bottom-0 z-0": e.scrollable
175
71
  }
176
72
  ]
177
73
  }),
178
- indicatorbutton: ({ context: o }) => ({
179
- class: [
180
- // Size
181
- "w-2 h-2",
182
- // Appearance
183
- "rounded-full transition duration-200",
184
- // Focus Effects
185
- "focus:outline-none focus:outline-offset-0",
186
- // Conditional Appearance: Not Highlighted
187
- {
188
- "bg-inkwell-30 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600": !o.highlighted
189
- },
190
- // Conditional Appearance: Highlighted
191
- { "bg-white hover:bg-primary-600": o.highlighted }
192
- ]
193
- }),
194
- mask: {
74
+ footer: {
195
75
  class: [
196
- "fixed top-0 left-0 w-full h-full",
197
- "flex items-center justify-center",
198
- "bg-inkwell-40/95",
199
- "image-overlay"
200
- ]
201
- },
202
- closebutton: {
203
- class: [
204
- // Positioning
205
- "!absolute top-0 right-0 z-[1001]",
206
- // Display & Flexbox
207
- "flex justify-center items-center overflow-hidden",
76
+ "font-bold",
77
+ // Shape
78
+ "border-t-0 border-b border-x-0",
208
79
  // Spacing
209
- "m-2",
210
- // Appearance
211
- "text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out",
212
- // Focus Effects
213
- "focus:outline-none"
80
+ "p-4",
81
+ // Color
82
+ "bg-surface-50 dark:bg-surface-800",
83
+ "border-surface-200 dark:border-surface-700",
84
+ "text-surface-700 dark:text-white/80"
214
85
  ]
215
86
  },
216
- closeicon: {
217
- class: "w-6 h-6"
218
- },
219
- previousitembutton: ({ parent: o }) => ({
220
- class: [
221
- // Display & Flexbox
222
- "inline-flex justify-center items-center overflow-hidden",
223
- // Appearance
224
- "bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
225
- {
226
- "opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
87
+ column: {
88
+ headercell: ({ context: e, props: r }) => ({
89
+ class: [
90
+ "font-bold",
91
+ // Position
92
+ { "sticky z-20 border-b": r.frozen || r.frozen === "" },
93
+ { relative: e.resizable },
94
+ // Alignment
95
+ "text-left",
96
+ // Shape
97
+ { "first:border-l border-y border-r": e?.showGridlines },
98
+ "border-0 border-b border-solid",
99
+ // Spacing
100
+ e?.size === "small" ? "p-2" : e?.size === "large" ? "p-5" : "p-4",
101
+ // Color
102
+ (r.sortable === "" || r.sortable) && e.sorted ? "bg-primary-50 text-primary-700" : "bg-surface-50 text-surface-700",
103
+ (r.sortable === "" || r.sortable) && e.sorted ? "dark:text-white dark:bg-primary-400/30" : "dark:text-white/80 dark:bg-surface-800",
104
+ "border-surface-200 dark:border-surface-700 ",
105
+ // States
106
+ { "hover:bg-surface-100 dark:hover:bg-surface-400/30": (r.sortable === "" || r.sortable) && !e?.sorted },
107
+ "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
108
+ // Transition
109
+ { "transition duration-200": r.sortable === "" || r.sortable },
110
+ // Misc
111
+ { "cursor-pointer": r.sortable === "" || r.sortable },
112
+ {
113
+ "overflow-hidden space-nowrap border-y bg-clip-padding": e.resizable
114
+ // Resizable
115
+ }
116
+ ]
117
+ }),
118
+ headercontent: {
119
+ class: "flex items-center"
120
+ },
121
+ sort: ({ context: e }) => ({
122
+ class: [e.sorted ? "text-primary-500" : "text-surface-700", e.sorted ? "dark:text-primary-400" : "dark:text-white/80"]
123
+ }),
124
+ bodycell: ({ props: e, context: r, state: t, parent: a }) => ({
125
+ class: [
126
+ //Position
127
+ { "sticky box-border border-b": a.instance.frozenRow },
128
+ { "sticky box-border border-b": e.frozen || e.frozen === "" },
129
+ // Alignment
130
+ "text-left",
131
+ // Shape
132
+ "border-0 border-b border-solid",
133
+ { "first:border-l border-r border-b": r?.showGridlines },
134
+ { "bg-surface-0 dark:bg-surface-800": a.instance.frozenRow || e.frozen || e.frozen === "" },
135
+ // Spacing
136
+ { "p-2": r?.size === "small" && !t.d_editing },
137
+ { "p-5": r?.size === "large" && !t.d_editing },
138
+ { "p-4": r?.size !== "large" && r?.size !== "small" && !t.d_editing },
139
+ { "py-[0.6rem] px-2": t.d_editing },
140
+ // Color
141
+ "border-surface-200 dark:border-surface-700"
142
+ ]
143
+ }),
144
+ footercell: ({ context: e }) => ({
145
+ class: [
146
+ // Font
147
+ "font-bold",
148
+ // Alignment
149
+ "text-left",
150
+ // Shape
151
+ "border-0 border-b border-solid",
152
+ { "border-x border-y": e?.showGridlines },
153
+ // Spacing
154
+ e?.size === "small" ? "p-2" : e?.size === "large" ? "p-5" : "p-4",
155
+ // Color
156
+ "border-surface-200 dark:border-surface-700",
157
+ "text-surface-700 dark:text-white/80",
158
+ "bg-surface-50 dark:bg-surface-800"
159
+ ]
160
+ }),
161
+ sorticon: ({ context: e }) => ({
162
+ class: ["ml-2", e.sorted ? "text-primary-700 dark:text-white/80" : "text-surface-700 dark:text-white/70"]
163
+ }),
164
+ sortbadge: {
165
+ class: [
166
+ // Flex & Alignment
167
+ "flex items-center justify-center align-middle",
168
+ // Shape
169
+ "rounded-full",
170
+ // Size
171
+ "w-[1.143rem] leading-[1.143rem]",
172
+ // Spacing
173
+ "ml-2",
174
+ // Color
175
+ "text-primary-700 dark:text-white",
176
+ "bg-primary-50 dark:bg-primary-400/30"
177
+ ]
178
+ },
179
+ columnfilter: {
180
+ class: "inline-flex items-center ml-auto"
181
+ },
182
+ filteroverlay: {
183
+ class: [
184
+ // Position
185
+ "absolute top-0 left-0",
186
+ // Shape
187
+ "border-0 dark:border",
188
+ "rounded-md",
189
+ "shadow-md",
190
+ // Size
191
+ "min-w-[12.5rem]",
192
+ // Color
193
+ "bg-surface-0 dark:bg-surface-800",
194
+ "text-surface-800 dark:text-white/80",
195
+ "dark:border-surface-700"
196
+ ]
197
+ },
198
+ filtermatchmodedropdown: {
199
+ root: ({ state: e }) => ({
200
+ class: [
201
+ // Display and Position
202
+ "flex",
203
+ "relative",
204
+ // Spacing
205
+ "my-2",
206
+ // Shape
207
+ "w-full",
208
+ "rounded-md",
209
+ // Color and Background
210
+ "bg-surface-0 dark:bg-surface-900",
211
+ "border border-surface-300 dark:border-surface-700",
212
+ "text-surface-800 dark:text-white/80",
213
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
214
+ // Transitions
215
+ "transition-all",
216
+ "duration-200",
217
+ // States
218
+ "hover:border-primary-500 dark:hover:border-primary-300",
219
+ { "outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50": e.focused },
220
+ // Misc
221
+ "cursor-pointer",
222
+ "select-none"
223
+ ]
224
+ })
225
+ },
226
+ filterrowitems: {
227
+ class: "m-0 p-0 py-3 list-none"
228
+ },
229
+ filterrowitem: ({ context: e }) => ({
230
+ class: [
231
+ // Font
232
+ "font-normal",
233
+ "leading-none",
234
+ // Position
235
+ "relative",
236
+ // Shape
237
+ "border-0",
238
+ "rounded-none",
239
+ // Spacing
240
+ "m-0",
241
+ "py-3 px-5",
242
+ // Color
243
+ { "text-surface-700 dark:text-white/80": !e?.highlighted },
244
+ { "bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80": !e?.highlighted },
245
+ { "bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e?.highlighted },
246
+ { "bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e?.highlighted },
247
+ //States
248
+ { "hover:bg-surface-100 dark:hover:bg-surface-600/80": !e?.highlighted },
249
+ { "hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80": !e?.highlighted },
250
+ "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-inset focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
251
+ // Transitions
252
+ "transition-shadow",
253
+ "duration-200",
254
+ // Misc
255
+ "cursor-pointer",
256
+ "overflow-hidden",
257
+ "whitespace-nowrap"
258
+ ]
259
+ }),
260
+ filteroperator: {
261
+ class: [
262
+ // Spacing
263
+ "px-5 py-3",
264
+ // Shape
265
+ "border-b border-solid",
266
+ "rounded-t-md",
267
+ // Color
268
+ "text-surface-700 dark:text-white/80",
269
+ "border-surface-200 dark:border-surface-800",
270
+ "bg-surface-0 dark:bg-surface-700"
271
+ ]
272
+ },
273
+ filteroperatordropdown: {
274
+ root: ({ state: e }) => ({
275
+ class: [
276
+ // Display and Position
277
+ "inline-flex",
278
+ "relative",
279
+ // Shape
280
+ "w-full",
281
+ "rounded-md",
282
+ // Color and Background
283
+ "bg-surface-0 dark:bg-surface-900",
284
+ "border border-surface-300 dark:border-surface-700",
285
+ // Transitions
286
+ "transition-all",
287
+ "duration-200",
288
+ // States
289
+ "hover:border-primary-500 dark:hover:border-primary-300",
290
+ { "outline-none outline-offset-0 ring ring-primary-400/50 dark:ring-primary-300/50": e.focused },
291
+ // Misc
292
+ "cursor-pointer",
293
+ "select-none"
294
+ ]
295
+ }),
296
+ input: ({ props: e }) => ({
297
+ class: [
298
+ //Font
299
+ "font-sans",
300
+ "leading-none",
301
+ // Display
302
+ "block",
303
+ "flex-auto",
304
+ // Color and Background
305
+ "bg-transparent",
306
+ "border-0",
307
+ { "text-surface-800 dark:text-white/80": e.modelValue, "text-surface-400 dark:text-surface-500": !e.modelValue },
308
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
309
+ // Sizing and Spacing
310
+ "w-[1%]",
311
+ "p-3",
312
+ //Shape
313
+ "rounded-none",
314
+ // Transitions
315
+ "transition",
316
+ "duration-200",
317
+ // States
318
+ "focus:outline-none focus:shadow-none",
319
+ // Misc
320
+ "relative",
321
+ "cursor-pointer",
322
+ "overflow-hidden overflow-ellipsis",
323
+ "whitespace-nowrap",
324
+ "appearance-none"
325
+ ]
326
+ }),
327
+ trigger: {
328
+ class: [
329
+ // Flexbox
330
+ "flex items-center justify-center",
331
+ "shrink-0",
332
+ // Color and Background
333
+ "bg-transparent",
334
+ "text-surface-500",
335
+ // Size
336
+ "w-12",
337
+ // Shape
338
+ "rounded-tr-md",
339
+ "rounded-br-md"
340
+ ]
227
341
  },
228
- // Spacing
229
- "mx-2",
230
- // Positioning
231
- "top-1/2 mt-[-0.5rem] left-0",
232
- {
233
- "!absolute": o.props.showItemNavigators,
234
- "!fixed": !o.props.showItemNavigators
342
+ panel: {
343
+ class: [
344
+ // Position
345
+ "absolute top-0 left-0",
346
+ // Shape
347
+ "border-0 dark:border",
348
+ "rounded-md",
349
+ "shadow-md",
350
+ // Color
351
+ "bg-surface-0 dark:bg-surface-800",
352
+ "text-surface-800 dark:text-white/80",
353
+ "dark:border-surface-700"
354
+ ]
235
355
  },
236
- // Hover Effect
237
- "hover:bg-surface-0/10 hover:text-white",
238
- // Focus Effects
239
- "focus:outline-none focus:outline-offset-0"
240
- ]
241
- }),
242
- nextitembutton: ({ parent: o }) => ({
243
- class: [
244
- // Display & Flexbox
245
- "inline-flex justify-center items-center overflow-hidden",
246
- // Appearance
247
- "bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
248
- {
249
- "opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
356
+ item: ({ context: e }) => ({
357
+ class: [
358
+ // Font
359
+ "font-normal",
360
+ "leading-none",
361
+ // Position
362
+ "relative",
363
+ // Shape
364
+ "border-0",
365
+ "rounded-none",
366
+ // Spacing
367
+ "m-0",
368
+ "py-3 px-5",
369
+ // Color
370
+ { "text-surface-700 dark:text-white/80": !e.focused && !e.selected },
371
+ { "bg-surface-50 dark:bg-surface-600/60 text-surface-700 dark:text-white/80": e.focused && !e.selected },
372
+ { "bg-primary-100 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": e.focused && e.selected },
373
+ { "bg-primary-50 dark:bg-primary-400/40 text-primary-700 dark:text-white/80": !e.focused && e.selected },
374
+ //States
375
+ { "hover:bg-surface-100 dark:hover:bg-surface-600/80": !e.focused && !e.selected },
376
+ { "hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-surface-600/80": e.focused && !e.selected },
377
+ // Transitions
378
+ "transition-shadow",
379
+ "duration-200",
380
+ // Misc
381
+ "cursor-pointer",
382
+ "overflow-hidden",
383
+ "whitespace-nowrap"
384
+ ]
385
+ })
386
+ },
387
+ filterconstraint: {
388
+ class: [
389
+ // Spacing
390
+ "py-3 px-5",
391
+ // Shape
392
+ "border-b border-solid",
393
+ // Color
394
+ "border-surface-200 dark:border-surface-700"
395
+ ]
396
+ },
397
+ filteraddrule: {
398
+ class: "py-3 px-5"
399
+ },
400
+ filteraddrulebutton: {
401
+ root: {
402
+ class: [
403
+ "relative",
404
+ // Alignments
405
+ "items-center inline-flex text-center align-bottom justify-center",
406
+ // Sizes & Spacing
407
+ "text-sm py-2 px-3 w-full",
408
+ // Shape
409
+ "rounded-md",
410
+ "bg-transparent border-transparent",
411
+ "text-primary-500 dark:text-primary-400",
412
+ "hover:bg-primary-300/20",
413
+ // Transitions
414
+ "transition duration-200 ease-in-out",
415
+ // Misc
416
+ "cursor-pointer overflow-hidden select-none"
417
+ ]
250
418
  },
251
- // Spacing
252
- "mx-2",
253
- // Positioning
254
- "top-1/2 mt-[-0.5rem] right-0",
255
- {
256
- "!absolute": o.props.showItemNavigators,
257
- "!fixed": !o.props.showItemNavigators
419
+ label: {
420
+ class: "flex-auto grow-0"
258
421
  },
259
- // Hover Effect
260
- "hover:bg-surface-0/10 hover:text-white",
261
- // Focus Effects
262
- "focus:outline-none focus:outline-offset-0"
422
+ icon: {
423
+ class: "mr-2"
424
+ }
425
+ },
426
+ filterremovebutton: {
427
+ root: {
428
+ class: [
429
+ "relative",
430
+ // Alignments
431
+ "items-center inline-flex text-center align-bottom justify-center",
432
+ // Sizes & Spacing
433
+ "text-sm py-2 px-3 w-full mt-2",
434
+ // Shape
435
+ "rounded-md",
436
+ "bg-transparent border-transparent",
437
+ "text-red-500 dark:text-red-400",
438
+ "hover:bg-red-300/20",
439
+ // Transitions
440
+ "transition duration-200 ease-in-out",
441
+ // Misc
442
+ "cursor-pointer overflow-hidden select-none"
443
+ ]
444
+ },
445
+ label: {
446
+ class: "flex-auto grow-0"
447
+ },
448
+ icon: {
449
+ class: "mr-2"
450
+ }
451
+ },
452
+ filterbuttonbar: {
453
+ class: [
454
+ // Flex & Alignment
455
+ "flex items-center justify-between",
456
+ // Space
457
+ "py-3 px-5"
458
+ ]
459
+ },
460
+ filterclearbutton: {
461
+ root: {
462
+ class: [
463
+ "relative",
464
+ // Alignments
465
+ "items-center inline-flex text-center align-bottom justify-center",
466
+ // Sizes & Spacing
467
+ "text-sm py-2 px-3",
468
+ // Shape
469
+ "rounded-md",
470
+ "text-primary-500 border border-primary-500",
471
+ "hover:bg-primary-300/20",
472
+ // Transitions
473
+ "transition duration-200 ease-in-out",
474
+ // Misc
475
+ "cursor-pointer overflow-hidden select-none"
476
+ ]
477
+ }
478
+ },
479
+ filterapplybutton: {
480
+ root: {
481
+ class: [
482
+ "relative",
483
+ // Alignments
484
+ "items-center inline-flex text-center align-bottom justify-center",
485
+ // Sizes & Spacing
486
+ "text-sm py-2 px-3",
487
+ // Shape
488
+ "rounded-md",
489
+ "text-white dark:text-surface-900",
490
+ "bg-primary-500 dark:bg-primary-400",
491
+ "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
492
+ // Transitions
493
+ "transition duration-200 ease-in-out",
494
+ // Misc
495
+ "cursor-pointer overflow-hidden select-none"
496
+ ]
497
+ }
498
+ },
499
+ filtermenubutton: ({ context: e }) => ({
500
+ class: [
501
+ "relative",
502
+ // Flex & Alignment
503
+ "inline-flex items-center justify-center",
504
+ // Size
505
+ "w-8 h-8",
506
+ // Spacing
507
+ "ml-2",
508
+ // Shape
509
+ "rounded-full",
510
+ // Color
511
+ { "bg-primary-50 text-primary-700": e.active },
512
+ "dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800",
513
+ // States
514
+ "hover:text-surface-700 hover:bg-surface-300/20",
515
+ "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
516
+ // Transition
517
+ "transition duration-200",
518
+ // Misc
519
+ "cursor-pointer no-underline overflow-hidden"
520
+ ]
521
+ }),
522
+ headerfilterclearbutton: ({ context: e }) => ({
523
+ class: [
524
+ "relative",
525
+ // Flex & Alignment
526
+ "inline-flex items-center justify-center",
527
+ "text-left",
528
+ // Shape
529
+ "border-none",
530
+ // Spacing
531
+ "m-0 p-0 ml-2",
532
+ // Color
533
+ "bg-transparent",
534
+ // Misc
535
+ "cursor-pointer no-underline overflow-hidden select-none",
536
+ {
537
+ invisible: !e.hidden
538
+ }
539
+ ]
540
+ }),
541
+ rowtoggler: {
542
+ class: [
543
+ "relative",
544
+ // Flex & Alignment
545
+ "inline-flex items-center justify-center",
546
+ "text-left",
547
+ // Spacing
548
+ "m-0 p-0",
549
+ // Size
550
+ "w-8 h-8",
551
+ // Shape
552
+ "border-0 rounded-full",
553
+ // Color
554
+ "text-surface-500 dark:text-white/70",
555
+ "bg-transparent",
556
+ "focus-visible:outline-none focus-visible:outline-offset-0",
557
+ "focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
558
+ // Transition
559
+ "transition duration-200",
560
+ // Misc
561
+ "overflow-hidden",
562
+ "cursor-pointer select-none"
563
+ ]
564
+ },
565
+ columnresizer: {
566
+ class: [
567
+ "block",
568
+ // Position
569
+ "absolute top-0 right-0",
570
+ // Sizing
571
+ "w-2 h-full",
572
+ // Spacing
573
+ "m-0 p-0",
574
+ // Color
575
+ "border border-transparent",
576
+ // Misc
577
+ "cursor-col-resize"
578
+ ]
579
+ },
580
+ rowreordericon: {
581
+ class: "cursor-move"
582
+ },
583
+ roweditorinitbutton: {
584
+ class: [
585
+ "relative",
586
+ // Flex & Alignment
587
+ "inline-flex items-center justify-center",
588
+ "text-left",
589
+ // Size
590
+ "w-8 h-8",
591
+ // Shape
592
+ "border-0 rounded-full",
593
+ // Color
594
+ "text-surface-700 dark:text-white/70",
595
+ "border-transparent",
596
+ // States
597
+ "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
598
+ "hover:text-surface-700 hover:bg-surface-300/20",
599
+ // Transition
600
+ "transition duration-200",
601
+ // Misc
602
+ "overflow-hidden",
603
+ "cursor-pointer select-none"
604
+ ]
605
+ },
606
+ roweditorsavebutton: {
607
+ class: [
608
+ "relative",
609
+ // Flex & Alignment
610
+ "inline-flex items-center justify-center",
611
+ "text-left",
612
+ // Size
613
+ "w-8 h-8",
614
+ // Shape
615
+ "border-0 rounded-full",
616
+ // Color
617
+ "text-surface-700 dark:text-white/70",
618
+ "border-transparent",
619
+ // States
620
+ "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
621
+ "hover:text-surface-700 hover:bg-surface-300/20",
622
+ // Transition
623
+ "transition duration-200",
624
+ // Misc
625
+ "overflow-hidden",
626
+ "cursor-pointer select-none"
627
+ ]
628
+ },
629
+ roweditorcancelbutton: {
630
+ class: [
631
+ "relative",
632
+ // Flex & Alignment
633
+ "inline-flex items-center justify-center",
634
+ "text-left",
635
+ // Size
636
+ "w-8 h-8",
637
+ // Shape
638
+ "border-0 rounded-full",
639
+ // Color
640
+ "text-surface-700 dark:text-white/70",
641
+ "border-transparent",
642
+ // States
643
+ "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
644
+ "hover:text-surface-700 hover:bg-surface-300/20",
645
+ // Transition
646
+ "transition duration-200",
647
+ // Misc
648
+ "overflow-hidden",
649
+ "cursor-pointer select-none"
650
+ ]
651
+ },
652
+ radiobuttonwrapper: {
653
+ class: [
654
+ "relative",
655
+ // Flex & Alignment
656
+ "inline-flex align-bottom",
657
+ // Size
658
+ "w-6 h-6",
659
+ // Misc
660
+ "cursor-pointer select-none"
661
+ ]
662
+ },
663
+ radiobutton: ({ context: e }) => ({
664
+ class: [
665
+ // Flexbox
666
+ "flex justify-center items-center",
667
+ // Size
668
+ "w-[1.571rem] h-[1.571rem]",
669
+ // Shape
670
+ "border-2 rounded-full",
671
+ // Color
672
+ { "text-surface-700 dark:text-white/80": !e.checked },
673
+ { "bg-surface-0 dark:bg-surface-900": !e.checked },
674
+ { "border-surface-300 dark:border-surface-700": !e.checked },
675
+ { "border-primary-500 dark:border-primary-400": e.checked },
676
+ { "bg-primary-500 dark:bg-primary-400": e.checked },
677
+ // States
678
+ { "hover:border-primary-500 dark:hover:border-primary-400": !e.disabled },
679
+ { "outline-none outline-offset-0 ring ring-primary-400/50 ring-inset dark:ring-primary-300/50": e.focused },
680
+ // Transition
681
+ "transition duration-200 ease-in-out",
682
+ // Misc
683
+ { "cursor-default opacity-60": e.disabled }
684
+ ]
685
+ }),
686
+ radiobuttonicon: ({ context: e }) => ({
687
+ class: [
688
+ "block",
689
+ // Shape
690
+ "rounded-full",
691
+ // Size
692
+ "w-3 h-3",
693
+ // Color
694
+ "bg-surface-0 dark:bg-surface-900",
695
+ // Transition
696
+ "transition duration-200 transform",
697
+ {
698
+ "backface-hidden scale-10 invisible": e.checked === !1,
699
+ "transform scale-100 visible": e.checked === !0
700
+ }
701
+ ]
702
+ }),
703
+ headercheckboxwrapper: {
704
+ class: [
705
+ "relative",
706
+ // Flex & Alignment
707
+ "inline-flex align-bottom",
708
+ // Size
709
+ "w-6 h-6",
710
+ // Misc
711
+ "cursor-pointer select-none"
712
+ ]
713
+ },
714
+ headercheckbox: ({ context: e }) => ({
715
+ class: [
716
+ // Flex & Alignment
717
+ "flex items-center justify-center",
718
+ // Shape
719
+ "border-2 rounded-lg",
720
+ // Size
721
+ "w-6 h-6",
722
+ // Color
723
+ "text-surface-600",
724
+ {
725
+ "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900": !e.checked,
726
+ "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400": e.checked
727
+ },
728
+ // States
729
+ "focus:outline-none focus:outline-offset-0",
730
+ {
731
+ "ring ring-primary-400/50 dark:ring-primary-300/50": e.focused
732
+ },
733
+ // Transition
734
+ "transition-colors duration-200",
735
+ // Misc
736
+ { "cursor-default opacity-60": e.disabled }
737
+ ]
738
+ }),
739
+ headercheckboxicon: {
740
+ class: [
741
+ // Size
742
+ "w-4 h-4",
743
+ "text-base leading-none",
744
+ // Color
745
+ "text-white dark:text-surface-900",
746
+ // Transition
747
+ "transition-all duration-200"
748
+ ]
749
+ },
750
+ checkboxwrapper: {
751
+ class: [
752
+ "relative",
753
+ // Flex & Alignment
754
+ "inline-flex align-bottom",
755
+ // Size
756
+ "w-6 h-6",
757
+ // Misc
758
+ "cursor-pointer select-none"
759
+ ]
760
+ },
761
+ checkbox: ({ context: e }) => ({
762
+ class: [
763
+ // Flex & Alignment
764
+ "flex items-center justify-center",
765
+ // Shape
766
+ "border-2 rounded-lg",
767
+ // Size
768
+ "w-6 h-6",
769
+ // Color
770
+ "text-surface-600",
771
+ {
772
+ "border-surface-200 bg-surface-0 dark:border-surface-700 dark:bg-surface-900": !e.checked,
773
+ "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400": e.checked
774
+ },
775
+ // States
776
+ "focus:outline-none focus:outline-offset-0",
777
+ {
778
+ "ring ring-primary-400/50 dark:ring-primary-300/50": e.focused
779
+ },
780
+ // Transition
781
+ "transition-colors duration-200",
782
+ // Misc
783
+ { "cursor-default opacity-60": e.disabled }
784
+ ]
785
+ }),
786
+ checkboxicon: {
787
+ class: [
788
+ // Size
789
+ "w-4 h-4",
790
+ "text-base leading-none",
791
+ // Color
792
+ "text-white dark:text-surface-900",
793
+ // Transition
794
+ "transition-all duration-200"
795
+ ]
796
+ },
797
+ transition: {
798
+ enterFromClass: "opacity-0 scale-y-[0.8]",
799
+ enterActiveClass: "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
800
+ leaveActiveClass: "transition-opacity duration-100 ease-linear",
801
+ leaveToClass: "opacity-0"
802
+ }
803
+ },
804
+ bodyrow: ({ context: e, props: r }) => ({
805
+ class: [
806
+ // Color
807
+ "dark:text-white/80",
808
+ { "bg-primary-50 text-primary-600 dark:bg-primary-400/30": e.selected },
809
+ { "bg-surface-0 text-surface-600 dark:bg-surface-800": !e.selected },
810
+ { "font-bold bg-surface-0 dark:bg-surface-800": r.frozenRow },
811
+ { "odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/50": e.stripedRows },
812
+ // State
813
+ // { 'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 ring-inset dark:focus:ring-primary-300/50': context.selectable },
814
+ { "hover:bg-surface-300/20 hover:text-surface-600": r.selectionMode && !e.selected },
815
+ // Transition
816
+ { "transition duration-200": r.selectionMode && !e.selected || r.rowHover },
817
+ // Misc
818
+ { "cursor-pointer": r.selectionMode }
263
819
  ]
264
820
  }),
265
- caption: {
821
+ rowexpansion: {
822
+ class: "bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80"
823
+ },
824
+ rowgroupheader: {
825
+ class: ["sticky z-20", "bg-surface-0 text-surface-600 dark:text-white/70", "dark:bg-surface-800"]
826
+ },
827
+ rowgroupfooter: {
828
+ class: ["sticky z-20", "bg-surface-0 text-surface-600 dark:text-white/70", "dark:bg-surface-800"]
829
+ },
830
+ rowgrouptoggler: {
266
831
  class: [
267
- // Positioning
268
- "absolute bottom-0 left-0 w-full",
269
- // Appearance
270
- "bg-black/50 text-white p-4"
832
+ "relative",
833
+ // Flex & Alignment
834
+ "inline-flex items-center justify-center",
835
+ "text-left",
836
+ // Spacing
837
+ "m-0 p-0",
838
+ // Size
839
+ "w-8 h-8",
840
+ // Shape
841
+ "border-0 rounded-full",
842
+ // Color
843
+ "text-surface-500 dark:text-white/70",
844
+ "bg-transparent",
845
+ "focus-visible:outline-none focus-visible:outline-offset-0",
846
+ "focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
847
+ // Transition
848
+ "transition duration-200",
849
+ // Misc
850
+ "overflow-hidden",
851
+ "cursor-pointer select-none"
271
852
  ]
272
853
  },
273
- transition: {
274
- enterFromClass: "opacity-0 scale-75",
275
- enterActiveClass: "transition-all duration-150 ease-in-out",
276
- leaveActiveClass: "transition-all duration-150 ease-in",
277
- leaveToClass: "opacity-0 scale-75"
854
+ rowgrouptogglericon: {
855
+ class: "inline-block w-4 h-4"
856
+ },
857
+ resizehelper: {
858
+ class: "absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400"
278
859
  }
279
860
  };
280
861
  export {
281
- i as default
862
+ o as default
282
863
  };