@datum-cloud/datum-ui 0.1.1 → 0.2.0-alpha.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 (489) hide show
  1. package/dist/_shadcn/hooks/use-mobile.d.ts +2 -0
  2. package/dist/_shadcn/hooks/use-mobile.d.ts.map +1 -0
  3. package/dist/_shadcn/hooks/use-theme.d.ts +9 -0
  4. package/dist/_shadcn/hooks/use-theme.d.ts.map +1 -0
  5. package/dist/_shadcn/lib/utils.d.ts +13 -0
  6. package/dist/_shadcn/lib/utils.d.ts.map +1 -0
  7. package/dist/_shadcn/ui/alert.d.ts +9 -0
  8. package/dist/_shadcn/ui/alert.d.ts.map +1 -0
  9. package/dist/_shadcn/ui/avatar.d.ts +7 -0
  10. package/dist/_shadcn/ui/avatar.d.ts.map +1 -0
  11. package/dist/_shadcn/ui/badge.d.ts +15 -0
  12. package/dist/_shadcn/ui/badge.d.ts.map +1 -0
  13. package/dist/_shadcn/ui/breadcrumb.d.ts +12 -0
  14. package/dist/_shadcn/ui/breadcrumb.d.ts.map +1 -0
  15. package/dist/_shadcn/ui/button-group.d.ts +12 -0
  16. package/dist/_shadcn/ui/button-group.d.ts.map +1 -0
  17. package/dist/_shadcn/ui/button.d.ts +17 -0
  18. package/dist/_shadcn/ui/button.d.ts.map +1 -0
  19. package/dist/_shadcn/ui/card.d.ts +9 -0
  20. package/dist/_shadcn/ui/card.d.ts.map +1 -0
  21. package/dist/_shadcn/ui/chart.d.ts +53 -0
  22. package/dist/_shadcn/ui/chart.d.ts.map +1 -0
  23. package/dist/_shadcn/ui/checkbox.d.ts +5 -0
  24. package/dist/_shadcn/ui/checkbox.d.ts.map +1 -0
  25. package/dist/_shadcn/ui/collapsible.d.ts +6 -0
  26. package/dist/_shadcn/ui/collapsible.d.ts.map +1 -0
  27. package/dist/_shadcn/ui/command.d.ts +20 -0
  28. package/dist/_shadcn/ui/command.d.ts.map +1 -0
  29. package/dist/_shadcn/ui/dialog.d.ts +14 -0
  30. package/dist/_shadcn/ui/dialog.d.ts.map +1 -0
  31. package/dist/_shadcn/ui/dropdown-menu.d.ts +33 -0
  32. package/dist/_shadcn/ui/dropdown-menu.d.ts.map +1 -0
  33. package/dist/_shadcn/ui/hover-card.d.ts +7 -0
  34. package/dist/_shadcn/ui/hover-card.d.ts.map +1 -0
  35. package/dist/_shadcn/ui/input-group.d.ts +17 -0
  36. package/dist/_shadcn/ui/input-group.d.ts.map +1 -0
  37. package/dist/_shadcn/ui/input.d.ts +7 -0
  38. package/dist/_shadcn/ui/input.d.ts.map +1 -0
  39. package/dist/_shadcn/ui/label.d.ts +5 -0
  40. package/dist/_shadcn/ui/label.d.ts.map +1 -0
  41. package/dist/_shadcn/ui/map.d.ts +120 -0
  42. package/dist/_shadcn/ui/map.d.ts.map +1 -0
  43. package/dist/_shadcn/ui/place-autocomplete.d.ts +64 -0
  44. package/dist/_shadcn/ui/place-autocomplete.d.ts.map +1 -0
  45. package/dist/_shadcn/ui/popover.d.ts +8 -0
  46. package/dist/_shadcn/ui/popover.d.ts.map +1 -0
  47. package/dist/_shadcn/ui/radio-group.d.ts +6 -0
  48. package/dist/_shadcn/ui/radio-group.d.ts.map +1 -0
  49. package/dist/_shadcn/ui/select.d.ts +14 -0
  50. package/dist/_shadcn/ui/select.d.ts.map +1 -0
  51. package/dist/_shadcn/ui/separator.d.ts +5 -0
  52. package/dist/_shadcn/ui/separator.d.ts.map +1 -0
  53. package/dist/_shadcn/ui/sheet.d.ts +14 -0
  54. package/dist/_shadcn/ui/sheet.d.ts.map +1 -0
  55. package/dist/_shadcn/ui/skeleton.d.ts +3 -0
  56. package/dist/_shadcn/ui/skeleton.d.ts.map +1 -0
  57. package/dist/_shadcn/ui/sonner.d.ts +5 -0
  58. package/dist/_shadcn/ui/sonner.d.ts.map +1 -0
  59. package/dist/_shadcn/ui/spinner.d.ts +3 -0
  60. package/dist/_shadcn/ui/spinner.d.ts.map +1 -0
  61. package/dist/_shadcn/ui/switch.d.ts +5 -0
  62. package/dist/_shadcn/ui/switch.d.ts.map +1 -0
  63. package/dist/_shadcn/ui/table.d.ts +11 -0
  64. package/dist/_shadcn/ui/table.d.ts.map +1 -0
  65. package/dist/_shadcn/ui/tabs.d.ts +13 -0
  66. package/dist/_shadcn/ui/tabs.d.ts.map +1 -0
  67. package/dist/_shadcn/ui/textarea.d.ts +4 -0
  68. package/dist/_shadcn/ui/textarea.d.ts.map +1 -0
  69. package/dist/_shadcn/ui/tooltip.d.ts +8 -0
  70. package/dist/_shadcn/ui/tooltip.d.ts.map +1 -0
  71. package/dist/_shadcn/ui/visuallyhidden.d.ts +4 -0
  72. package/dist/_shadcn/ui/visuallyhidden.d.ts.map +1 -0
  73. package/dist/close.icon-chkXPAUC.mjs +22 -0
  74. package/dist/cn-DWCc1QRE.mjs +10 -0
  75. package/dist/components/base/alert/alert.d.ts +21 -0
  76. package/dist/components/base/alert/alert.d.ts.map +1 -0
  77. package/dist/components/base/alert/index.d.ts +2 -0
  78. package/dist/components/base/alert/index.d.ts.map +1 -0
  79. package/dist/components/base/badge/badge.d.ts +17 -0
  80. package/dist/components/base/badge/badge.d.ts.map +1 -0
  81. package/dist/components/base/badge/index.d.ts +2 -0
  82. package/dist/components/base/badge/index.d.ts.map +1 -0
  83. package/dist/components/base/breadcrumb/index.d.ts +2 -0
  84. package/dist/components/base/breadcrumb/index.d.ts.map +1 -0
  85. package/dist/components/base/button/button.d.ts +24 -0
  86. package/dist/components/base/button/button.d.ts.map +1 -0
  87. package/dist/components/base/button/index.d.ts +5 -0
  88. package/dist/components/base/button/index.d.ts.map +1 -0
  89. package/dist/components/base/button/link-button.d.ts +19 -0
  90. package/dist/components/base/button/link-button.d.ts.map +1 -0
  91. package/dist/components/base/button-group/index.d.ts +2 -0
  92. package/dist/components/base/button-group/index.d.ts.map +1 -0
  93. package/dist/components/base/calendar/calendar.d.ts +10 -0
  94. package/dist/components/base/calendar/calendar.d.ts.map +1 -0
  95. package/dist/components/base/calendar/index.d.ts +2 -0
  96. package/dist/components/base/calendar/index.d.ts.map +1 -0
  97. package/dist/components/base/card/card.d.ts +8 -0
  98. package/dist/components/base/card/card.d.ts.map +1 -0
  99. package/dist/components/base/card/index.d.ts +2 -0
  100. package/dist/components/base/card/index.d.ts.map +1 -0
  101. package/dist/components/base/chart/index.d.ts +2 -0
  102. package/dist/components/base/chart/index.d.ts.map +1 -0
  103. package/dist/components/base/checkbox/checkbox.d.ts +10 -0
  104. package/dist/components/base/checkbox/checkbox.d.ts.map +1 -0
  105. package/dist/components/base/checkbox/index.d.ts +2 -0
  106. package/dist/components/base/checkbox/index.d.ts.map +1 -0
  107. package/dist/components/base/collapsible/index.d.ts +2 -0
  108. package/dist/components/base/collapsible/index.d.ts.map +1 -0
  109. package/dist/components/base/command/index.d.ts +2 -0
  110. package/dist/components/base/command/index.d.ts.map +1 -0
  111. package/dist/components/base/dialog/dialog.d.ts +46 -0
  112. package/dist/components/base/dialog/dialog.d.ts.map +1 -0
  113. package/dist/components/base/dialog/index.d.ts +3 -0
  114. package/dist/components/base/dialog/index.d.ts.map +1 -0
  115. package/dist/components/base/hover-card/index.d.ts +2 -0
  116. package/dist/components/base/hover-card/index.d.ts.map +1 -0
  117. package/dist/components/base/index.d.ts +35 -0
  118. package/dist/components/base/index.d.ts.map +1 -0
  119. package/dist/components/base/input/index.d.ts +2 -0
  120. package/dist/components/base/input/index.d.ts.map +1 -0
  121. package/dist/components/base/input/input.d.ts +9 -0
  122. package/dist/components/base/input/input.d.ts.map +1 -0
  123. package/dist/components/base/input-group/index.d.ts +2 -0
  124. package/dist/components/base/input-group/index.d.ts.map +1 -0
  125. package/dist/components/base/label/index.d.ts +17 -0
  126. package/dist/components/base/label/index.d.ts.map +1 -0
  127. package/dist/components/base/label/label.d.ts +26 -0
  128. package/dist/components/base/label/label.d.ts.map +1 -0
  129. package/dist/components/base/map/index.d.ts +2 -0
  130. package/dist/components/base/map/index.d.ts.map +1 -0
  131. package/dist/components/base/place-autocomplete/index.d.ts +2 -0
  132. package/dist/components/base/place-autocomplete/index.d.ts.map +1 -0
  133. package/dist/components/base/popover/index.d.ts +2 -0
  134. package/dist/components/base/popover/index.d.ts.map +1 -0
  135. package/dist/components/base/radio-group/index.d.ts +2 -0
  136. package/dist/components/base/radio-group/index.d.ts.map +1 -0
  137. package/dist/components/base/radio-group/radio-group.d.ts +16 -0
  138. package/dist/components/base/radio-group/radio-group.d.ts.map +1 -0
  139. package/dist/components/base/select/index.d.ts +2 -0
  140. package/dist/components/base/select/index.d.ts.map +1 -0
  141. package/dist/components/base/select/select.d.ts +54 -0
  142. package/dist/components/base/select/select.d.ts.map +1 -0
  143. package/dist/components/base/separator/index.d.ts +2 -0
  144. package/dist/components/base/separator/index.d.ts.map +1 -0
  145. package/dist/components/base/sheet/index.d.ts +2 -0
  146. package/dist/components/base/sheet/index.d.ts.map +1 -0
  147. package/dist/components/base/sheet/sheet.d.ts +23 -0
  148. package/dist/components/base/sheet/sheet.d.ts.map +1 -0
  149. package/dist/components/base/skeleton/index.d.ts +2 -0
  150. package/dist/components/base/skeleton/index.d.ts.map +1 -0
  151. package/dist/components/base/spinner/index.d.ts +2 -0
  152. package/dist/components/base/spinner/index.d.ts.map +1 -0
  153. package/dist/components/base/switch/index.d.ts +2 -0
  154. package/dist/components/base/switch/index.d.ts.map +1 -0
  155. package/dist/components/base/switch/switch.d.ts +10 -0
  156. package/dist/components/base/switch/switch.d.ts.map +1 -0
  157. package/dist/components/base/table/index.d.ts +2 -0
  158. package/dist/components/base/table/index.d.ts.map +1 -0
  159. package/dist/components/base/tabs/index.d.ts +2 -0
  160. package/dist/components/base/tabs/index.d.ts.map +1 -0
  161. package/dist/components/base/tabs/tabs.d.ts +22 -0
  162. package/dist/components/base/tabs/tabs.d.ts.map +1 -0
  163. package/dist/components/base/textarea/index.d.ts +2 -0
  164. package/dist/components/base/textarea/index.d.ts.map +1 -0
  165. package/dist/components/base/textarea/textarea.d.ts +9 -0
  166. package/dist/components/base/textarea/textarea.d.ts.map +1 -0
  167. package/dist/components/base/tooltip/index.d.ts +2 -0
  168. package/dist/components/base/tooltip/index.d.ts.map +1 -0
  169. package/dist/components/base/tooltip/tooltip.d.ts +17 -0
  170. package/dist/components/base/tooltip/tooltip.d.ts.map +1 -0
  171. package/dist/components/base/visuallyhidden/index.d.ts +2 -0
  172. package/dist/components/base/visuallyhidden/index.d.ts.map +1 -0
  173. package/dist/components/features/autocomplete/autocomplete.d.ts +34 -0
  174. package/dist/components/features/autocomplete/autocomplete.d.ts.map +1 -0
  175. package/dist/components/features/autocomplete/autocomplete.types.d.ts +71 -0
  176. package/dist/components/features/autocomplete/autocomplete.types.d.ts.map +1 -0
  177. package/dist/components/features/autocomplete/index.d.ts +3 -0
  178. package/dist/components/features/autocomplete/index.d.ts.map +1 -0
  179. package/dist/components/features/avatar-stack/avatar-stack.d.ts +17 -0
  180. package/dist/components/features/avatar-stack/avatar-stack.d.ts.map +1 -0
  181. package/dist/components/features/avatar-stack/index.d.ts +2 -0
  182. package/dist/components/features/avatar-stack/index.d.ts.map +1 -0
  183. package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +41 -0
  184. package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -0
  185. package/dist/components/features/calendar-date-picker/index.d.ts +2 -0
  186. package/dist/components/features/calendar-date-picker/index.d.ts.map +1 -0
  187. package/dist/components/features/dropdown/dropdown.d.ts +31 -0
  188. package/dist/components/features/dropdown/dropdown.d.ts.map +1 -0
  189. package/dist/components/features/dropdown/index.d.ts +2 -0
  190. package/dist/components/features/dropdown/index.d.ts.map +1 -0
  191. package/dist/components/features/dropzone/dropzone.d.ts +28 -0
  192. package/dist/components/features/dropzone/dropzone.d.ts.map +1 -0
  193. package/dist/components/features/dropzone/index.d.ts +3 -0
  194. package/dist/components/features/dropzone/index.d.ts.map +1 -0
  195. package/dist/components/features/empty-content/empty-content.d.ts +29 -0
  196. package/dist/components/features/empty-content/empty-content.d.ts.map +1 -0
  197. package/dist/components/features/empty-content/index.d.ts +3 -0
  198. package/dist/components/features/empty-content/index.d.ts.map +1 -0
  199. package/dist/components/features/file-input-button/file-input-button.d.ts +33 -0
  200. package/dist/components/features/file-input-button/file-input-button.d.ts.map +1 -0
  201. package/dist/components/features/file-input-button/index.d.ts +2 -0
  202. package/dist/components/features/file-input-button/index.d.ts.map +1 -0
  203. package/dist/components/features/form/components/form-autocomplete.d.ts +44 -0
  204. package/dist/components/features/form/components/form-autocomplete.d.ts.map +1 -0
  205. package/dist/components/features/form/components/form-button.d.ts +23 -0
  206. package/dist/components/features/form/components/form-button.d.ts.map +1 -0
  207. package/dist/components/features/form/components/form-checkbox.d.ts +18 -0
  208. package/dist/components/features/form/components/form-checkbox.d.ts.map +1 -0
  209. package/dist/components/features/form/components/form-copy-box.d.ts +41 -0
  210. package/dist/components/features/form/components/form-copy-box.d.ts.map +1 -0
  211. package/dist/components/features/form/components/form-custom.d.ts +27 -0
  212. package/dist/components/features/form/components/form-custom.d.ts.map +1 -0
  213. package/dist/components/features/form/components/form-description.d.ts +19 -0
  214. package/dist/components/features/form/components/form-description.d.ts.map +1 -0
  215. package/dist/components/features/form/components/form-dialog.d.ts +58 -0
  216. package/dist/components/features/form/components/form-dialog.d.ts.map +1 -0
  217. package/dist/components/features/form/components/form-error.d.ts +29 -0
  218. package/dist/components/features/form/components/form-error.d.ts.map +1 -0
  219. package/dist/components/features/form/components/form-field-array.d.ts +40 -0
  220. package/dist/components/features/form/components/form-field-array.d.ts.map +1 -0
  221. package/dist/components/features/form/components/form-field.d.ts +40 -0
  222. package/dist/components/features/form/components/form-field.d.ts.map +1 -0
  223. package/dist/components/features/form/components/form-input-group.d.ts +21 -0
  224. package/dist/components/features/form/components/form-input-group.d.ts.map +1 -0
  225. package/dist/components/features/form/components/form-input.d.ts +21 -0
  226. package/dist/components/features/form/components/form-input.d.ts.map +1 -0
  227. package/dist/components/features/form/components/form-radio-group.d.ts +34 -0
  228. package/dist/components/features/form/components/form-radio-group.d.ts.map +1 -0
  229. package/dist/components/features/form/components/form-root.d.ts +49 -0
  230. package/dist/components/features/form/components/form-root.d.ts.map +1 -0
  231. package/dist/components/features/form/components/form-select.d.ts +34 -0
  232. package/dist/components/features/form/components/form-select.d.ts.map +1 -0
  233. package/dist/components/features/form/components/form-submit.d.ts +16 -0
  234. package/dist/components/features/form/components/form-submit.d.ts.map +1 -0
  235. package/dist/components/features/form/components/form-switch.d.ts +18 -0
  236. package/dist/components/features/form/components/form-switch.d.ts.map +1 -0
  237. package/dist/components/features/form/components/form-textarea.d.ts +21 -0
  238. package/dist/components/features/form/components/form-textarea.d.ts.map +1 -0
  239. package/dist/components/features/form/components/form-when.d.ts +34 -0
  240. package/dist/components/features/form/components/form-when.d.ts.map +1 -0
  241. package/dist/components/features/form/components/index.d.ts +20 -0
  242. package/dist/components/features/form/components/index.d.ts.map +1 -0
  243. package/dist/components/features/form/components/stepper/form-step.d.ts +22 -0
  244. package/dist/components/features/form/components/stepper/form-step.d.ts.map +1 -0
  245. package/dist/components/features/form/components/stepper/form-stepper.d.ts +71 -0
  246. package/dist/components/features/form/components/stepper/form-stepper.d.ts.map +1 -0
  247. package/dist/components/features/form/components/stepper/index.d.ts +5 -0
  248. package/dist/components/features/form/components/stepper/index.d.ts.map +1 -0
  249. package/dist/components/features/form/components/stepper/stepper-controls.d.ts +32 -0
  250. package/dist/components/features/form/components/stepper/stepper-controls.d.ts.map +1 -0
  251. package/dist/components/features/form/components/stepper/stepper-navigation.d.ts +17 -0
  252. package/dist/components/features/form/components/stepper/stepper-navigation.d.ts.map +1 -0
  253. package/dist/components/features/form/context/field-context.d.ts +16 -0
  254. package/dist/components/features/form/context/field-context.d.ts.map +1 -0
  255. package/dist/components/features/form/context/form-context.d.ts +20 -0
  256. package/dist/components/features/form/context/form-context.d.ts.map +1 -0
  257. package/dist/components/features/form/context/index.d.ts +3 -0
  258. package/dist/components/features/form/context/index.d.ts.map +1 -0
  259. package/dist/components/features/form/hooks/index.d.ts +6 -0
  260. package/dist/components/features/form/hooks/index.d.ts.map +1 -0
  261. package/dist/components/features/form/hooks/use-field-context.d.ts +24 -0
  262. package/dist/components/features/form/hooks/use-field-context.d.ts.map +1 -0
  263. package/dist/components/features/form/hooks/use-field.d.ts +30 -0
  264. package/dist/components/features/form/hooks/use-field.d.ts.map +1 -0
  265. package/dist/components/features/form/hooks/use-form-context.d.ts +19 -0
  266. package/dist/components/features/form/hooks/use-form-context.d.ts.map +1 -0
  267. package/dist/components/features/form/hooks/use-stepper.d.ts +56 -0
  268. package/dist/components/features/form/hooks/use-stepper.d.ts.map +1 -0
  269. package/dist/components/features/form/hooks/use-watch.d.ts +41 -0
  270. package/dist/components/features/form/hooks/use-watch.d.ts.map +1 -0
  271. package/dist/components/features/form/index.d.ts +133 -0
  272. package/dist/components/features/form/index.d.ts.map +1 -0
  273. package/dist/components/features/form/types/index.d.ts +601 -0
  274. package/dist/components/features/form/types/index.d.ts.map +1 -0
  275. package/dist/components/features/grid/components/col.d.ts +5 -0
  276. package/dist/components/features/grid/components/col.d.ts.map +1 -0
  277. package/dist/components/features/grid/components/index.d.ts +7 -0
  278. package/dist/components/features/grid/components/index.d.ts.map +1 -0
  279. package/dist/components/features/grid/components/row.d.ts +6 -0
  280. package/dist/components/features/grid/components/row.d.ts.map +1 -0
  281. package/dist/components/features/grid/constants/grid.constants.d.ts +22 -0
  282. package/dist/components/features/grid/constants/grid.constants.d.ts.map +1 -0
  283. package/dist/components/features/grid/index.d.ts +7 -0
  284. package/dist/components/features/grid/index.d.ts.map +1 -0
  285. package/dist/components/features/grid/types/grid.types.d.ts +43 -0
  286. package/dist/components/features/grid/types/grid.types.d.ts.map +1 -0
  287. package/dist/components/features/grid/utils/responsive.d.ts +10 -0
  288. package/dist/components/features/grid/utils/responsive.d.ts.map +1 -0
  289. package/dist/components/features/index.d.ts +27 -0
  290. package/dist/components/features/index.d.ts.map +1 -0
  291. package/dist/components/features/input-number/index.d.ts +2 -0
  292. package/dist/components/features/input-number/index.d.ts.map +1 -0
  293. package/dist/components/features/input-number/input-number.d.ts +22 -0
  294. package/dist/components/features/input-number/input-number.d.ts.map +1 -0
  295. package/dist/components/features/input-with-addons/index.d.ts +2 -0
  296. package/dist/components/features/input-with-addons/index.d.ts.map +1 -0
  297. package/dist/components/features/input-with-addons/input-with-addons.d.ts +14 -0
  298. package/dist/components/features/input-with-addons/input-with-addons.d.ts.map +1 -0
  299. package/dist/components/features/loader-overlay/index.d.ts +2 -0
  300. package/dist/components/features/loader-overlay/index.d.ts.map +1 -0
  301. package/dist/components/features/loader-overlay/loader-overlay.d.ts +5 -0
  302. package/dist/components/features/loader-overlay/loader-overlay.d.ts.map +1 -0
  303. package/dist/components/features/more-actions/index.d.ts +3 -0
  304. package/dist/components/features/more-actions/index.d.ts.map +1 -0
  305. package/dist/components/features/more-actions/more-actions.d.ts +19 -0
  306. package/dist/components/features/more-actions/more-actions.d.ts.map +1 -0
  307. package/dist/components/features/nprogress/index.d.ts +4 -0
  308. package/dist/components/features/nprogress/index.d.ts.map +1 -0
  309. package/dist/components/features/page-title/index.d.ts +3 -0
  310. package/dist/components/features/page-title/index.d.ts.map +1 -0
  311. package/dist/components/features/page-title/page-title.d.ts +12 -0
  312. package/dist/components/features/page-title/page-title.d.ts.map +1 -0
  313. package/dist/components/features/sidebar/app-sidebar.d.ts +14 -0
  314. package/dist/components/features/sidebar/app-sidebar.d.ts.map +1 -0
  315. package/dist/components/features/sidebar/index.d.ts +4 -0
  316. package/dist/components/features/sidebar/index.d.ts.map +1 -0
  317. package/dist/components/features/sidebar/nav-main.d.ts +36 -0
  318. package/dist/components/features/sidebar/nav-main.d.ts.map +1 -0
  319. package/dist/components/features/sidebar/sidebar.d.ts +85 -0
  320. package/dist/components/features/sidebar/sidebar.d.ts.map +1 -0
  321. package/dist/components/features/stepper/index.d.ts +2 -0
  322. package/dist/components/features/stepper/index.d.ts.map +1 -0
  323. package/dist/components/features/stepper/stepper.d.ts +42 -0
  324. package/dist/components/features/stepper/stepper.d.ts.map +1 -0
  325. package/dist/components/features/tag-input/index.d.ts +2 -0
  326. package/dist/components/features/tag-input/index.d.ts.map +1 -0
  327. package/dist/components/features/tag-input/tag-input.d.ts +38 -0
  328. package/dist/components/features/tag-input/tag-input.d.ts.map +1 -0
  329. package/dist/components/features/task-queue/constants.d.ts +8 -0
  330. package/dist/components/features/task-queue/constants.d.ts.map +1 -0
  331. package/dist/components/features/task-queue/core/index.d.ts +10 -0
  332. package/dist/components/features/task-queue/core/index.d.ts.map +1 -0
  333. package/dist/components/features/task-queue/core/task-panel-actions.d.ts +7 -0
  334. package/dist/components/features/task-queue/core/task-panel-actions.d.ts.map +1 -0
  335. package/dist/components/features/task-queue/core/task-panel-counter.d.ts +10 -0
  336. package/dist/components/features/task-queue/core/task-panel-counter.d.ts.map +1 -0
  337. package/dist/components/features/task-queue/core/task-panel-header.d.ts +2 -0
  338. package/dist/components/features/task-queue/core/task-panel-header.d.ts.map +1 -0
  339. package/dist/components/features/task-queue/core/task-panel-item.d.ts +9 -0
  340. package/dist/components/features/task-queue/core/task-panel-item.d.ts.map +1 -0
  341. package/dist/components/features/task-queue/core/task-panel.d.ts +6 -0
  342. package/dist/components/features/task-queue/core/task-panel.d.ts.map +1 -0
  343. package/dist/components/features/task-queue/core/task-queue-dropdown.d.ts +2 -0
  344. package/dist/components/features/task-queue/core/task-queue-dropdown.d.ts.map +1 -0
  345. package/dist/components/features/task-queue/core/task-queue-trigger.d.ts +9 -0
  346. package/dist/components/features/task-queue/core/task-queue-trigger.d.ts.map +1 -0
  347. package/dist/components/features/task-queue/core/task-summary-dialog.d.ts +24 -0
  348. package/dist/components/features/task-queue/core/task-summary-dialog.d.ts.map +1 -0
  349. package/dist/components/features/task-queue/engine/executor.d.ts +14 -0
  350. package/dist/components/features/task-queue/engine/executor.d.ts.map +1 -0
  351. package/dist/components/features/task-queue/engine/index.d.ts +5 -0
  352. package/dist/components/features/task-queue/engine/index.d.ts.map +1 -0
  353. package/dist/components/features/task-queue/engine/queue.d.ts +42 -0
  354. package/dist/components/features/task-queue/engine/queue.d.ts.map +1 -0
  355. package/dist/components/features/task-queue/engine/storage/detect-storage.d.ts +19 -0
  356. package/dist/components/features/task-queue/engine/storage/detect-storage.d.ts.map +1 -0
  357. package/dist/components/features/task-queue/engine/storage/index.d.ts +6 -0
  358. package/dist/components/features/task-queue/engine/storage/index.d.ts.map +1 -0
  359. package/dist/components/features/task-queue/engine/storage/local-storage.d.ts +12 -0
  360. package/dist/components/features/task-queue/engine/storage/local-storage.d.ts.map +1 -0
  361. package/dist/components/features/task-queue/engine/storage/memory-storage.d.ts +18 -0
  362. package/dist/components/features/task-queue/engine/storage/memory-storage.d.ts.map +1 -0
  363. package/dist/components/features/task-queue/engine/storage/redis-storage.d.ts +23 -0
  364. package/dist/components/features/task-queue/engine/storage/redis-storage.d.ts.map +1 -0
  365. package/dist/components/features/task-queue/engine/storage/storage.d.ts +2 -0
  366. package/dist/components/features/task-queue/engine/storage/storage.d.ts.map +1 -0
  367. package/dist/components/features/task-queue/hooks/index.d.ts +3 -0
  368. package/dist/components/features/task-queue/hooks/index.d.ts.map +1 -0
  369. package/dist/components/features/task-queue/hooks/use-task-queue.d.ts +3 -0
  370. package/dist/components/features/task-queue/hooks/use-task-queue.d.ts.map +1 -0
  371. package/dist/components/features/task-queue/hooks/use-task-scope.d.ts +52 -0
  372. package/dist/components/features/task-queue/hooks/use-task-scope.d.ts.map +1 -0
  373. package/dist/components/features/task-queue/index.d.ts +9 -0
  374. package/dist/components/features/task-queue/index.d.ts.map +1 -0
  375. package/dist/components/features/task-queue/provider/index.d.ts +2 -0
  376. package/dist/components/features/task-queue/provider/index.d.ts.map +1 -0
  377. package/dist/components/features/task-queue/provider/task-queue-provider.d.ts +14 -0
  378. package/dist/components/features/task-queue/provider/task-queue-provider.d.ts.map +1 -0
  379. package/dist/components/features/task-queue/types.d.ts +213 -0
  380. package/dist/components/features/task-queue/types.d.ts.map +1 -0
  381. package/dist/components/features/task-queue/utils/index.d.ts +37 -0
  382. package/dist/components/features/task-queue/utils/index.d.ts.map +1 -0
  383. package/dist/components/features/time-range-picker/components/absolute-range-panel.d.ts +18 -0
  384. package/dist/components/features/time-range-picker/components/absolute-range-panel.d.ts.map +1 -0
  385. package/dist/components/features/time-range-picker/components/index.d.ts +4 -0
  386. package/dist/components/features/time-range-picker/components/index.d.ts.map +1 -0
  387. package/dist/components/features/time-range-picker/components/quick-ranges-panel.d.ts +10 -0
  388. package/dist/components/features/time-range-picker/components/quick-ranges-panel.d.ts.map +1 -0
  389. package/dist/components/features/time-range-picker/components/timezone-selector.d.ts +10 -0
  390. package/dist/components/features/time-range-picker/components/timezone-selector.d.ts.map +1 -0
  391. package/dist/components/features/time-range-picker/index.d.ts +8 -0
  392. package/dist/components/features/time-range-picker/index.d.ts.map +1 -0
  393. package/dist/components/features/time-range-picker/presets.d.ts +29 -0
  394. package/dist/components/features/time-range-picker/presets.d.ts.map +1 -0
  395. package/dist/components/features/time-range-picker/time-range-picker.d.ts +31 -0
  396. package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -0
  397. package/dist/components/features/time-range-picker/types.d.ts +59 -0
  398. package/dist/components/features/time-range-picker/types.d.ts.map +1 -0
  399. package/dist/components/features/time-range-picker/utils/format-display.d.ts +20 -0
  400. package/dist/components/features/time-range-picker/utils/format-display.d.ts.map +1 -0
  401. package/dist/components/features/time-range-picker/utils/index.d.ts +4 -0
  402. package/dist/components/features/time-range-picker/utils/index.d.ts.map +1 -0
  403. package/dist/components/features/time-range-picker/utils/timezone.d.ts +51 -0
  404. package/dist/components/features/time-range-picker/utils/timezone.d.ts.map +1 -0
  405. package/dist/components/features/time-range-picker/utils/to-api-format.d.ts +13 -0
  406. package/dist/components/features/time-range-picker/utils/to-api-format.d.ts.map +1 -0
  407. package/dist/components/features/toast/headless-toast.d.ts +10 -0
  408. package/dist/components/features/toast/headless-toast.d.ts.map +1 -0
  409. package/dist/components/features/toast/index.d.ts +4 -0
  410. package/dist/components/features/toast/index.d.ts.map +1 -0
  411. package/dist/components/features/toast/toast.d.ts +9 -0
  412. package/dist/components/features/toast/toast.d.ts.map +1 -0
  413. package/dist/components/features/toast/toaster.d.ts +10 -0
  414. package/dist/components/features/toast/toaster.d.ts.map +1 -0
  415. package/dist/components/features/toast/types.d.ts +7 -0
  416. package/dist/components/features/toast/types.d.ts.map +1 -0
  417. package/dist/components/features/toast/use-toast.d.ts +3 -0
  418. package/dist/components/features/toast/use-toast.d.ts.map +1 -0
  419. package/dist/components/icons/close.icon.d.ts +5 -0
  420. package/dist/components/icons/close.icon.d.ts.map +1 -0
  421. package/dist/components/icons/icon-wrapper.d.ts +7 -0
  422. package/dist/components/icons/icon-wrapper.d.ts.map +1 -0
  423. package/dist/components/icons/index.d.ts +4 -0
  424. package/dist/components/icons/index.d.ts.map +1 -0
  425. package/dist/components/icons/spinner.icon.d.ts +13 -0
  426. package/dist/components/icons/spinner.icon.d.ts.map +1 -0
  427. package/dist/components/index.d.ts +10 -0
  428. package/dist/components/index.d.ts.map +1 -0
  429. package/dist/components/index.mjs +8 -0
  430. package/dist/components/themes/client-only.d.ts +8 -0
  431. package/dist/components/themes/client-only.d.ts.map +1 -0
  432. package/dist/components/themes/index.d.ts +5 -0
  433. package/dist/components/themes/index.d.ts.map +1 -0
  434. package/dist/components/themes/script.d.ts +2 -0
  435. package/dist/components/themes/script.d.ts.map +1 -0
  436. package/dist/components/themes/theme-script.d.ts +18 -0
  437. package/dist/components/themes/theme-script.d.ts.map +1 -0
  438. package/dist/components/themes/theme.provider.d.ts +4 -0
  439. package/dist/components/themes/theme.provider.d.ts.map +1 -0
  440. package/dist/components/themes/types.d.ts +30 -0
  441. package/dist/components/themes/types.d.ts.map +1 -0
  442. package/dist/datum.provider-D6VMjSV0.mjs +37 -0
  443. package/dist/fonts/AllianceNo1-Medium.ttf +0 -0
  444. package/dist/fonts/AllianceNo1-Regular.ttf +0 -0
  445. package/dist/fonts/AllianceNo1-SemiBold.ttf +0 -0
  446. package/dist/fonts/FTRegolaNeue-Medium.woff2 +0 -0
  447. package/dist/fonts/FTRegolaNeue-Regular.woff2 +0 -0
  448. package/dist/fonts/FTRegolaNeue-Semibold.woff2 +0 -0
  449. package/dist/hooks/index.d.ts +3 -0
  450. package/dist/hooks/index.d.ts.map +1 -0
  451. package/dist/hooks/index.mjs +5 -0
  452. package/dist/hooks/use-copy-to-clipboard.d.ts +8 -0
  453. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
  454. package/dist/hooks/use-debounce.d.ts +8 -0
  455. package/dist/hooks/use-debounce.d.ts.map +1 -0
  456. package/dist/hooks/use-theme.d.ts +2 -0
  457. package/dist/hooks/use-theme.d.ts.map +1 -0
  458. package/dist/icon-wrapper-BgPkifId.mjs +61 -0
  459. package/dist/icons/index.mjs +5 -0
  460. package/dist/index.d.ts +5 -90
  461. package/dist/index.d.ts.map +1 -0
  462. package/dist/index.mjs +11 -3719
  463. package/dist/providers/datum.provider.d.ts +20 -0
  464. package/dist/providers/datum.provider.d.ts.map +1 -0
  465. package/dist/providers/index.d.ts +3 -0
  466. package/dist/providers/index.d.ts.map +1 -0
  467. package/dist/providers/index.mjs +4 -0
  468. package/dist/style.css +7094 -0
  469. package/dist/theme-script-CS7JSmQs.mjs +9854 -0
  470. package/dist/theme.provider-DpFLwtHe.mjs +134 -0
  471. package/dist/use-copy-to-clipboard-BfrpD6G8.mjs +116 -0
  472. package/dist/use-debounce-BYB-jPeX.mjs +24 -0
  473. package/dist/utils/cn.d.ts +3 -0
  474. package/dist/utils/cn.d.ts.map +1 -0
  475. package/dist/utils/index.d.ts +2 -0
  476. package/dist/utils/index.d.ts.map +1 -0
  477. package/dist/utils/index.mjs +4 -0
  478. package/package.json +204 -51
  479. package/LICENSE +0 -201
  480. package/README.md +0 -34
  481. package/dist/index.d.mts +0 -90
  482. package/dist/index.js +0 -3765
  483. package/src/styles/custom.css +0 -27
  484. package/src/styles/fonts.css +0 -51
  485. package/src/styles/root.css +0 -28
  486. package/src/styles/theme.css +0 -3
  487. package/src/styles/themes/alpha.css +0 -433
  488. package/src/styles/tokens/brand-tokens.css +0 -57
  489. package/src/styles/tokens/figma-tokens.css +0 -624
package/dist/index.js DELETED
@@ -1,3765 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __objRest = (source, exclude) => {
26
- var target = {};
27
- for (var prop in source)
28
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
- target[prop] = source[prop];
30
- if (source != null && __getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(source)) {
32
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
- target[prop] = source[prop];
34
- }
35
- return target;
36
- };
37
- var __export = (target, all) => {
38
- for (var name in all)
39
- __defProp(target, name, { get: all[name], enumerable: true });
40
- };
41
- var __copyProps = (to, from, except, desc) => {
42
- if (from && typeof from === "object" || typeof from === "function") {
43
- for (let key of __getOwnPropNames(from))
44
- if (!__hasOwnProp.call(to, key) && key !== except)
45
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
- }
47
- return to;
48
- };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
-
59
- // src/index.ts
60
- var index_exports = {};
61
- __export(index_exports, {
62
- Alert: () => Alert,
63
- AlertDescription: () => AlertDescription,
64
- AlertTitle: () => AlertTitle,
65
- Button: () => Button,
66
- CloseIcon: () => CloseIcon,
67
- Icon: () => Icon,
68
- LinkButton: () => LinkButton,
69
- SpinnerIcon: () => SpinnerIcon,
70
- Tooltip: () => Tooltip2,
71
- TooltipContent: () => TooltipContent,
72
- alertVariants: () => alertVariants,
73
- buttonVariants: () => buttonVariants,
74
- cn: () => cn
75
- });
76
- module.exports = __toCommonJS(index_exports);
77
-
78
- // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
79
- function r(e) {
80
- var t, f, n = "";
81
- if ("string" == typeof e || "number" == typeof e) n += e;
82
- else if ("object" == typeof e) if (Array.isArray(e)) {
83
- var o = e.length;
84
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
85
- } else for (f in e) e[f] && (n && (n += " "), n += f);
86
- return n;
87
- }
88
- function clsx() {
89
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
90
- return n;
91
- }
92
-
93
- // ../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
94
- var concatArrays = (array1, array2) => {
95
- const combinedArray = new Array(array1.length + array2.length);
96
- for (let i = 0; i < array1.length; i++) {
97
- combinedArray[i] = array1[i];
98
- }
99
- for (let i = 0; i < array2.length; i++) {
100
- combinedArray[array1.length + i] = array2[i];
101
- }
102
- return combinedArray;
103
- };
104
- var createClassValidatorObject = (classGroupId, validator) => ({
105
- classGroupId,
106
- validator
107
- });
108
- var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
109
- nextPart,
110
- validators,
111
- classGroupId
112
- });
113
- var CLASS_PART_SEPARATOR = "-";
114
- var EMPTY_CONFLICTS = [];
115
- var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
116
- var createClassGroupUtils = (config) => {
117
- const classMap = createClassMap(config);
118
- const {
119
- conflictingClassGroups,
120
- conflictingClassGroupModifiers
121
- } = config;
122
- const getClassGroupId = (className) => {
123
- if (className.startsWith("[") && className.endsWith("]")) {
124
- return getGroupIdForArbitraryProperty(className);
125
- }
126
- const classParts = className.split(CLASS_PART_SEPARATOR);
127
- const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
128
- return getGroupRecursive(classParts, startIndex, classMap);
129
- };
130
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
131
- if (hasPostfixModifier) {
132
- const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
133
- const baseConflicts = conflictingClassGroups[classGroupId];
134
- if (modifierConflicts) {
135
- if (baseConflicts) {
136
- return concatArrays(baseConflicts, modifierConflicts);
137
- }
138
- return modifierConflicts;
139
- }
140
- return baseConflicts || EMPTY_CONFLICTS;
141
- }
142
- return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
143
- };
144
- return {
145
- getClassGroupId,
146
- getConflictingClassGroupIds
147
- };
148
- };
149
- var getGroupRecursive = (classParts, startIndex, classPartObject) => {
150
- const classPathsLength = classParts.length - startIndex;
151
- if (classPathsLength === 0) {
152
- return classPartObject.classGroupId;
153
- }
154
- const currentClassPart = classParts[startIndex];
155
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
156
- if (nextClassPartObject) {
157
- const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
158
- if (result) return result;
159
- }
160
- const validators = classPartObject.validators;
161
- if (validators === null) {
162
- return void 0;
163
- }
164
- const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
165
- const validatorsLength = validators.length;
166
- for (let i = 0; i < validatorsLength; i++) {
167
- const validatorObj = validators[i];
168
- if (validatorObj.validator(classRest)) {
169
- return validatorObj.classGroupId;
170
- }
171
- }
172
- return void 0;
173
- };
174
- var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
175
- const content = className.slice(1, -1);
176
- const colonIndex = content.indexOf(":");
177
- const property = content.slice(0, colonIndex);
178
- return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
179
- })();
180
- var createClassMap = (config) => {
181
- const {
182
- theme,
183
- classGroups
184
- } = config;
185
- return processClassGroups(classGroups, theme);
186
- };
187
- var processClassGroups = (classGroups, theme) => {
188
- const classMap = createClassPartObject();
189
- for (const classGroupId in classGroups) {
190
- const group = classGroups[classGroupId];
191
- processClassesRecursively(group, classMap, classGroupId, theme);
192
- }
193
- return classMap;
194
- };
195
- var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
196
- const len = classGroup.length;
197
- for (let i = 0; i < len; i++) {
198
- const classDefinition = classGroup[i];
199
- processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
200
- }
201
- };
202
- var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
203
- if (typeof classDefinition === "string") {
204
- processStringDefinition(classDefinition, classPartObject, classGroupId);
205
- return;
206
- }
207
- if (typeof classDefinition === "function") {
208
- processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
209
- return;
210
- }
211
- processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
212
- };
213
- var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
214
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
215
- classPartObjectToEdit.classGroupId = classGroupId;
216
- };
217
- var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
218
- if (isThemeGetter(classDefinition)) {
219
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
220
- return;
221
- }
222
- if (classPartObject.validators === null) {
223
- classPartObject.validators = [];
224
- }
225
- classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
226
- };
227
- var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
228
- const entries = Object.entries(classDefinition);
229
- const len = entries.length;
230
- for (let i = 0; i < len; i++) {
231
- const [key, value] = entries[i];
232
- processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
233
- }
234
- };
235
- var getPart = (classPartObject, path) => {
236
- let current = classPartObject;
237
- const parts = path.split(CLASS_PART_SEPARATOR);
238
- const len = parts.length;
239
- for (let i = 0; i < len; i++) {
240
- const part = parts[i];
241
- let next = current.nextPart.get(part);
242
- if (!next) {
243
- next = createClassPartObject();
244
- current.nextPart.set(part, next);
245
- }
246
- current = next;
247
- }
248
- return current;
249
- };
250
- var isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
251
- var createLruCache = (maxCacheSize) => {
252
- if (maxCacheSize < 1) {
253
- return {
254
- get: () => void 0,
255
- set: () => {
256
- }
257
- };
258
- }
259
- let cacheSize = 0;
260
- let cache = /* @__PURE__ */ Object.create(null);
261
- let previousCache = /* @__PURE__ */ Object.create(null);
262
- const update = (key, value) => {
263
- cache[key] = value;
264
- cacheSize++;
265
- if (cacheSize > maxCacheSize) {
266
- cacheSize = 0;
267
- previousCache = cache;
268
- cache = /* @__PURE__ */ Object.create(null);
269
- }
270
- };
271
- return {
272
- get(key) {
273
- let value = cache[key];
274
- if (value !== void 0) {
275
- return value;
276
- }
277
- if ((value = previousCache[key]) !== void 0) {
278
- update(key, value);
279
- return value;
280
- }
281
- },
282
- set(key, value) {
283
- if (key in cache) {
284
- cache[key] = value;
285
- } else {
286
- update(key, value);
287
- }
288
- }
289
- };
290
- };
291
- var IMPORTANT_MODIFIER = "!";
292
- var MODIFIER_SEPARATOR = ":";
293
- var EMPTY_MODIFIERS = [];
294
- var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
295
- modifiers,
296
- hasImportantModifier,
297
- baseClassName,
298
- maybePostfixModifierPosition,
299
- isExternal
300
- });
301
- var createParseClassName = (config) => {
302
- const {
303
- prefix,
304
- experimentalParseClassName
305
- } = config;
306
- let parseClassName = (className) => {
307
- const modifiers = [];
308
- let bracketDepth = 0;
309
- let parenDepth = 0;
310
- let modifierStart = 0;
311
- let postfixModifierPosition;
312
- const len = className.length;
313
- for (let index = 0; index < len; index++) {
314
- const currentCharacter = className[index];
315
- if (bracketDepth === 0 && parenDepth === 0) {
316
- if (currentCharacter === MODIFIER_SEPARATOR) {
317
- modifiers.push(className.slice(modifierStart, index));
318
- modifierStart = index + 1;
319
- continue;
320
- }
321
- if (currentCharacter === "/") {
322
- postfixModifierPosition = index;
323
- continue;
324
- }
325
- }
326
- if (currentCharacter === "[") bracketDepth++;
327
- else if (currentCharacter === "]") bracketDepth--;
328
- else if (currentCharacter === "(") parenDepth++;
329
- else if (currentCharacter === ")") parenDepth--;
330
- }
331
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
332
- let baseClassName = baseClassNameWithImportantModifier;
333
- let hasImportantModifier = false;
334
- if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
335
- baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
336
- hasImportantModifier = true;
337
- } else if (
338
- /**
339
- * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
340
- * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
341
- */
342
- baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)
343
- ) {
344
- baseClassName = baseClassNameWithImportantModifier.slice(1);
345
- hasImportantModifier = true;
346
- }
347
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
348
- return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
349
- };
350
- if (prefix) {
351
- const fullPrefix = prefix + MODIFIER_SEPARATOR;
352
- const parseClassNameOriginal = parseClassName;
353
- parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
354
- }
355
- if (experimentalParseClassName) {
356
- const parseClassNameOriginal = parseClassName;
357
- parseClassName = (className) => experimentalParseClassName({
358
- className,
359
- parseClassName: parseClassNameOriginal
360
- });
361
- }
362
- return parseClassName;
363
- };
364
- var createSortModifiers = (config) => {
365
- const modifierWeights = /* @__PURE__ */ new Map();
366
- config.orderSensitiveModifiers.forEach((mod, index) => {
367
- modifierWeights.set(mod, 1e6 + index);
368
- });
369
- return (modifiers) => {
370
- const result = [];
371
- let currentSegment = [];
372
- for (let i = 0; i < modifiers.length; i++) {
373
- const modifier = modifiers[i];
374
- const isArbitrary = modifier[0] === "[";
375
- const isOrderSensitive = modifierWeights.has(modifier);
376
- if (isArbitrary || isOrderSensitive) {
377
- if (currentSegment.length > 0) {
378
- currentSegment.sort();
379
- result.push(...currentSegment);
380
- currentSegment = [];
381
- }
382
- result.push(modifier);
383
- } else {
384
- currentSegment.push(modifier);
385
- }
386
- }
387
- if (currentSegment.length > 0) {
388
- currentSegment.sort();
389
- result.push(...currentSegment);
390
- }
391
- return result;
392
- };
393
- };
394
- var createConfigUtils = (config) => __spreadValues({
395
- cache: createLruCache(config.cacheSize),
396
- parseClassName: createParseClassName(config),
397
- sortModifiers: createSortModifiers(config)
398
- }, createClassGroupUtils(config));
399
- var SPLIT_CLASSES_REGEX = /\s+/;
400
- var mergeClassList = (classList, configUtils) => {
401
- const {
402
- parseClassName,
403
- getClassGroupId,
404
- getConflictingClassGroupIds,
405
- sortModifiers
406
- } = configUtils;
407
- const classGroupsInConflict = [];
408
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
409
- let result = "";
410
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
411
- const originalClassName = classNames[index];
412
- const {
413
- isExternal,
414
- modifiers,
415
- hasImportantModifier,
416
- baseClassName,
417
- maybePostfixModifierPosition
418
- } = parseClassName(originalClassName);
419
- if (isExternal) {
420
- result = originalClassName + (result.length > 0 ? " " + result : result);
421
- continue;
422
- }
423
- let hasPostfixModifier = !!maybePostfixModifierPosition;
424
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
425
- if (!classGroupId) {
426
- if (!hasPostfixModifier) {
427
- result = originalClassName + (result.length > 0 ? " " + result : result);
428
- continue;
429
- }
430
- classGroupId = getClassGroupId(baseClassName);
431
- if (!classGroupId) {
432
- result = originalClassName + (result.length > 0 ? " " + result : result);
433
- continue;
434
- }
435
- hasPostfixModifier = false;
436
- }
437
- const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
438
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
439
- const classId = modifierId + classGroupId;
440
- if (classGroupsInConflict.indexOf(classId) > -1) {
441
- continue;
442
- }
443
- classGroupsInConflict.push(classId);
444
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
445
- for (let i = 0; i < conflictGroups.length; ++i) {
446
- const group = conflictGroups[i];
447
- classGroupsInConflict.push(modifierId + group);
448
- }
449
- result = originalClassName + (result.length > 0 ? " " + result : result);
450
- }
451
- return result;
452
- };
453
- var twJoin = (...classLists) => {
454
- let index = 0;
455
- let argument;
456
- let resolvedValue;
457
- let string = "";
458
- while (index < classLists.length) {
459
- if (argument = classLists[index++]) {
460
- if (resolvedValue = toValue(argument)) {
461
- string && (string += " ");
462
- string += resolvedValue;
463
- }
464
- }
465
- }
466
- return string;
467
- };
468
- var toValue = (mix) => {
469
- if (typeof mix === "string") {
470
- return mix;
471
- }
472
- let resolvedValue;
473
- let string = "";
474
- for (let k = 0; k < mix.length; k++) {
475
- if (mix[k]) {
476
- if (resolvedValue = toValue(mix[k])) {
477
- string && (string += " ");
478
- string += resolvedValue;
479
- }
480
- }
481
- }
482
- return string;
483
- };
484
- var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
485
- let configUtils;
486
- let cacheGet;
487
- let cacheSet;
488
- let functionToCall;
489
- const initTailwindMerge = (classList) => {
490
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
491
- configUtils = createConfigUtils(config);
492
- cacheGet = configUtils.cache.get;
493
- cacheSet = configUtils.cache.set;
494
- functionToCall = tailwindMerge;
495
- return tailwindMerge(classList);
496
- };
497
- const tailwindMerge = (classList) => {
498
- const cachedResult = cacheGet(classList);
499
- if (cachedResult) {
500
- return cachedResult;
501
- }
502
- const result = mergeClassList(classList, configUtils);
503
- cacheSet(classList, result);
504
- return result;
505
- };
506
- functionToCall = initTailwindMerge;
507
- return (...args) => functionToCall(twJoin(...args));
508
- };
509
- var fallbackThemeArr = [];
510
- var fromTheme = (key) => {
511
- const themeGetter = (theme) => theme[key] || fallbackThemeArr;
512
- themeGetter.isThemeGetter = true;
513
- return themeGetter;
514
- };
515
- var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
516
- var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
517
- var fractionRegex = /^\d+\/\d+$/;
518
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
519
- var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
520
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
521
- var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
522
- var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
523
- var isFraction = (value) => fractionRegex.test(value);
524
- var isNumber = (value) => !!value && !Number.isNaN(Number(value));
525
- var isInteger = (value) => !!value && Number.isInteger(Number(value));
526
- var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
527
- var isTshirtSize = (value) => tshirtUnitRegex.test(value);
528
- var isAny = () => true;
529
- var isLengthOnly = (value) => (
530
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
531
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
532
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
533
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
534
- );
535
- var isNever = () => false;
536
- var isShadow = (value) => shadowRegex.test(value);
537
- var isImage = (value) => imageRegex.test(value);
538
- var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
539
- var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
540
- var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
541
- var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
542
- var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
543
- var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
544
- var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
545
- var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
546
- var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
547
- var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
548
- var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
549
- var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
550
- var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
551
- var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
552
- var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
553
- var getIsArbitraryValue = (value, testLabel, testValue) => {
554
- const result = arbitraryValueRegex.exec(value);
555
- if (result) {
556
- if (result[1]) {
557
- return testLabel(result[1]);
558
- }
559
- return testValue(result[2]);
560
- }
561
- return false;
562
- };
563
- var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
564
- const result = arbitraryVariableRegex.exec(value);
565
- if (result) {
566
- if (result[1]) {
567
- return testLabel(result[1]);
568
- }
569
- return shouldMatchNoLabel;
570
- }
571
- return false;
572
- };
573
- var isLabelPosition = (label) => label === "position" || label === "percentage";
574
- var isLabelImage = (label) => label === "image" || label === "url";
575
- var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
576
- var isLabelLength = (label) => label === "length";
577
- var isLabelNumber = (label) => label === "number";
578
- var isLabelFamilyName = (label) => label === "family-name";
579
- var isLabelShadow = (label) => label === "shadow";
580
- var getDefaultConfig = () => {
581
- const themeColor = fromTheme("color");
582
- const themeFont = fromTheme("font");
583
- const themeText = fromTheme("text");
584
- const themeFontWeight = fromTheme("font-weight");
585
- const themeTracking = fromTheme("tracking");
586
- const themeLeading = fromTheme("leading");
587
- const themeBreakpoint = fromTheme("breakpoint");
588
- const themeContainer = fromTheme("container");
589
- const themeSpacing = fromTheme("spacing");
590
- const themeRadius = fromTheme("radius");
591
- const themeShadow = fromTheme("shadow");
592
- const themeInsetShadow = fromTheme("inset-shadow");
593
- const themeTextShadow = fromTheme("text-shadow");
594
- const themeDropShadow = fromTheme("drop-shadow");
595
- const themeBlur = fromTheme("blur");
596
- const themePerspective = fromTheme("perspective");
597
- const themeAspect = fromTheme("aspect");
598
- const themeEase = fromTheme("ease");
599
- const themeAnimate = fromTheme("animate");
600
- const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
601
- const scalePosition = () => [
602
- "center",
603
- "top",
604
- "bottom",
605
- "left",
606
- "right",
607
- "top-left",
608
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
609
- "left-top",
610
- "top-right",
611
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
612
- "right-top",
613
- "bottom-right",
614
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
615
- "right-bottom",
616
- "bottom-left",
617
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
618
- "left-bottom"
619
- ];
620
- const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
621
- const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
622
- const scaleOverscroll = () => ["auto", "contain", "none"];
623
- const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
624
- const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
625
- const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
626
- const scaleGridColRowStartAndEnd = () => ["auto", {
627
- span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
628
- }, isInteger, isArbitraryVariable, isArbitraryValue];
629
- const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
630
- const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
631
- const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
632
- const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
633
- const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
634
- const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
635
- const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
636
- const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
637
- position: [isArbitraryVariable, isArbitraryValue]
638
- }];
639
- const scaleBgRepeat = () => ["no-repeat", {
640
- repeat: ["", "x", "y", "space", "round"]
641
- }];
642
- const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
643
- size: [isArbitraryVariable, isArbitraryValue]
644
- }];
645
- const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
646
- const scaleRadius = () => [
647
- // Deprecated since Tailwind CSS v4.0.0
648
- "",
649
- "none",
650
- "full",
651
- themeRadius,
652
- isArbitraryVariable,
653
- isArbitraryValue
654
- ];
655
- const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
656
- const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
657
- const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
658
- const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
659
- const scaleBlur = () => [
660
- // Deprecated since Tailwind CSS v4.0.0
661
- "",
662
- "none",
663
- themeBlur,
664
- isArbitraryVariable,
665
- isArbitraryValue
666
- ];
667
- const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
668
- const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
669
- const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
670
- const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
671
- return {
672
- cacheSize: 500,
673
- theme: {
674
- animate: ["spin", "ping", "pulse", "bounce"],
675
- aspect: ["video"],
676
- blur: [isTshirtSize],
677
- breakpoint: [isTshirtSize],
678
- color: [isAny],
679
- container: [isTshirtSize],
680
- "drop-shadow": [isTshirtSize],
681
- ease: ["in", "out", "in-out"],
682
- font: [isAnyNonArbitrary],
683
- "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
684
- "inset-shadow": [isTshirtSize],
685
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
686
- perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
687
- radius: [isTshirtSize],
688
- shadow: [isTshirtSize],
689
- spacing: ["px", isNumber],
690
- text: [isTshirtSize],
691
- "text-shadow": [isTshirtSize],
692
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
693
- },
694
- classGroups: {
695
- // --------------
696
- // --- Layout ---
697
- // --------------
698
- /**
699
- * Aspect Ratio
700
- * @see https://tailwindcss.com/docs/aspect-ratio
701
- */
702
- aspect: [{
703
- aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
704
- }],
705
- /**
706
- * Container
707
- * @see https://tailwindcss.com/docs/container
708
- * @deprecated since Tailwind CSS v4.0.0
709
- */
710
- container: ["container"],
711
- /**
712
- * Columns
713
- * @see https://tailwindcss.com/docs/columns
714
- */
715
- columns: [{
716
- columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
717
- }],
718
- /**
719
- * Break After
720
- * @see https://tailwindcss.com/docs/break-after
721
- */
722
- "break-after": [{
723
- "break-after": scaleBreak()
724
- }],
725
- /**
726
- * Break Before
727
- * @see https://tailwindcss.com/docs/break-before
728
- */
729
- "break-before": [{
730
- "break-before": scaleBreak()
731
- }],
732
- /**
733
- * Break Inside
734
- * @see https://tailwindcss.com/docs/break-inside
735
- */
736
- "break-inside": [{
737
- "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
738
- }],
739
- /**
740
- * Box Decoration Break
741
- * @see https://tailwindcss.com/docs/box-decoration-break
742
- */
743
- "box-decoration": [{
744
- "box-decoration": ["slice", "clone"]
745
- }],
746
- /**
747
- * Box Sizing
748
- * @see https://tailwindcss.com/docs/box-sizing
749
- */
750
- box: [{
751
- box: ["border", "content"]
752
- }],
753
- /**
754
- * Display
755
- * @see https://tailwindcss.com/docs/display
756
- */
757
- display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
758
- /**
759
- * Screen Reader Only
760
- * @see https://tailwindcss.com/docs/display#screen-reader-only
761
- */
762
- sr: ["sr-only", "not-sr-only"],
763
- /**
764
- * Floats
765
- * @see https://tailwindcss.com/docs/float
766
- */
767
- float: [{
768
- float: ["right", "left", "none", "start", "end"]
769
- }],
770
- /**
771
- * Clear
772
- * @see https://tailwindcss.com/docs/clear
773
- */
774
- clear: [{
775
- clear: ["left", "right", "both", "none", "start", "end"]
776
- }],
777
- /**
778
- * Isolation
779
- * @see https://tailwindcss.com/docs/isolation
780
- */
781
- isolation: ["isolate", "isolation-auto"],
782
- /**
783
- * Object Fit
784
- * @see https://tailwindcss.com/docs/object-fit
785
- */
786
- "object-fit": [{
787
- object: ["contain", "cover", "fill", "none", "scale-down"]
788
- }],
789
- /**
790
- * Object Position
791
- * @see https://tailwindcss.com/docs/object-position
792
- */
793
- "object-position": [{
794
- object: scalePositionWithArbitrary()
795
- }],
796
- /**
797
- * Overflow
798
- * @see https://tailwindcss.com/docs/overflow
799
- */
800
- overflow: [{
801
- overflow: scaleOverflow()
802
- }],
803
- /**
804
- * Overflow X
805
- * @see https://tailwindcss.com/docs/overflow
806
- */
807
- "overflow-x": [{
808
- "overflow-x": scaleOverflow()
809
- }],
810
- /**
811
- * Overflow Y
812
- * @see https://tailwindcss.com/docs/overflow
813
- */
814
- "overflow-y": [{
815
- "overflow-y": scaleOverflow()
816
- }],
817
- /**
818
- * Overscroll Behavior
819
- * @see https://tailwindcss.com/docs/overscroll-behavior
820
- */
821
- overscroll: [{
822
- overscroll: scaleOverscroll()
823
- }],
824
- /**
825
- * Overscroll Behavior X
826
- * @see https://tailwindcss.com/docs/overscroll-behavior
827
- */
828
- "overscroll-x": [{
829
- "overscroll-x": scaleOverscroll()
830
- }],
831
- /**
832
- * Overscroll Behavior Y
833
- * @see https://tailwindcss.com/docs/overscroll-behavior
834
- */
835
- "overscroll-y": [{
836
- "overscroll-y": scaleOverscroll()
837
- }],
838
- /**
839
- * Position
840
- * @see https://tailwindcss.com/docs/position
841
- */
842
- position: ["static", "fixed", "absolute", "relative", "sticky"],
843
- /**
844
- * Top / Right / Bottom / Left
845
- * @see https://tailwindcss.com/docs/top-right-bottom-left
846
- */
847
- inset: [{
848
- inset: scaleInset()
849
- }],
850
- /**
851
- * Right / Left
852
- * @see https://tailwindcss.com/docs/top-right-bottom-left
853
- */
854
- "inset-x": [{
855
- "inset-x": scaleInset()
856
- }],
857
- /**
858
- * Top / Bottom
859
- * @see https://tailwindcss.com/docs/top-right-bottom-left
860
- */
861
- "inset-y": [{
862
- "inset-y": scaleInset()
863
- }],
864
- /**
865
- * Start
866
- * @see https://tailwindcss.com/docs/top-right-bottom-left
867
- */
868
- start: [{
869
- start: scaleInset()
870
- }],
871
- /**
872
- * End
873
- * @see https://tailwindcss.com/docs/top-right-bottom-left
874
- */
875
- end: [{
876
- end: scaleInset()
877
- }],
878
- /**
879
- * Top
880
- * @see https://tailwindcss.com/docs/top-right-bottom-left
881
- */
882
- top: [{
883
- top: scaleInset()
884
- }],
885
- /**
886
- * Right
887
- * @see https://tailwindcss.com/docs/top-right-bottom-left
888
- */
889
- right: [{
890
- right: scaleInset()
891
- }],
892
- /**
893
- * Bottom
894
- * @see https://tailwindcss.com/docs/top-right-bottom-left
895
- */
896
- bottom: [{
897
- bottom: scaleInset()
898
- }],
899
- /**
900
- * Left
901
- * @see https://tailwindcss.com/docs/top-right-bottom-left
902
- */
903
- left: [{
904
- left: scaleInset()
905
- }],
906
- /**
907
- * Visibility
908
- * @see https://tailwindcss.com/docs/visibility
909
- */
910
- visibility: ["visible", "invisible", "collapse"],
911
- /**
912
- * Z-Index
913
- * @see https://tailwindcss.com/docs/z-index
914
- */
915
- z: [{
916
- z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
917
- }],
918
- // ------------------------
919
- // --- Flexbox and Grid ---
920
- // ------------------------
921
- /**
922
- * Flex Basis
923
- * @see https://tailwindcss.com/docs/flex-basis
924
- */
925
- basis: [{
926
- basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
927
- }],
928
- /**
929
- * Flex Direction
930
- * @see https://tailwindcss.com/docs/flex-direction
931
- */
932
- "flex-direction": [{
933
- flex: ["row", "row-reverse", "col", "col-reverse"]
934
- }],
935
- /**
936
- * Flex Wrap
937
- * @see https://tailwindcss.com/docs/flex-wrap
938
- */
939
- "flex-wrap": [{
940
- flex: ["nowrap", "wrap", "wrap-reverse"]
941
- }],
942
- /**
943
- * Flex
944
- * @see https://tailwindcss.com/docs/flex
945
- */
946
- flex: [{
947
- flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
948
- }],
949
- /**
950
- * Flex Grow
951
- * @see https://tailwindcss.com/docs/flex-grow
952
- */
953
- grow: [{
954
- grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
955
- }],
956
- /**
957
- * Flex Shrink
958
- * @see https://tailwindcss.com/docs/flex-shrink
959
- */
960
- shrink: [{
961
- shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
962
- }],
963
- /**
964
- * Order
965
- * @see https://tailwindcss.com/docs/order
966
- */
967
- order: [{
968
- order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
969
- }],
970
- /**
971
- * Grid Template Columns
972
- * @see https://tailwindcss.com/docs/grid-template-columns
973
- */
974
- "grid-cols": [{
975
- "grid-cols": scaleGridTemplateColsRows()
976
- }],
977
- /**
978
- * Grid Column Start / End
979
- * @see https://tailwindcss.com/docs/grid-column
980
- */
981
- "col-start-end": [{
982
- col: scaleGridColRowStartAndEnd()
983
- }],
984
- /**
985
- * Grid Column Start
986
- * @see https://tailwindcss.com/docs/grid-column
987
- */
988
- "col-start": [{
989
- "col-start": scaleGridColRowStartOrEnd()
990
- }],
991
- /**
992
- * Grid Column End
993
- * @see https://tailwindcss.com/docs/grid-column
994
- */
995
- "col-end": [{
996
- "col-end": scaleGridColRowStartOrEnd()
997
- }],
998
- /**
999
- * Grid Template Rows
1000
- * @see https://tailwindcss.com/docs/grid-template-rows
1001
- */
1002
- "grid-rows": [{
1003
- "grid-rows": scaleGridTemplateColsRows()
1004
- }],
1005
- /**
1006
- * Grid Row Start / End
1007
- * @see https://tailwindcss.com/docs/grid-row
1008
- */
1009
- "row-start-end": [{
1010
- row: scaleGridColRowStartAndEnd()
1011
- }],
1012
- /**
1013
- * Grid Row Start
1014
- * @see https://tailwindcss.com/docs/grid-row
1015
- */
1016
- "row-start": [{
1017
- "row-start": scaleGridColRowStartOrEnd()
1018
- }],
1019
- /**
1020
- * Grid Row End
1021
- * @see https://tailwindcss.com/docs/grid-row
1022
- */
1023
- "row-end": [{
1024
- "row-end": scaleGridColRowStartOrEnd()
1025
- }],
1026
- /**
1027
- * Grid Auto Flow
1028
- * @see https://tailwindcss.com/docs/grid-auto-flow
1029
- */
1030
- "grid-flow": [{
1031
- "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
1032
- }],
1033
- /**
1034
- * Grid Auto Columns
1035
- * @see https://tailwindcss.com/docs/grid-auto-columns
1036
- */
1037
- "auto-cols": [{
1038
- "auto-cols": scaleGridAutoColsRows()
1039
- }],
1040
- /**
1041
- * Grid Auto Rows
1042
- * @see https://tailwindcss.com/docs/grid-auto-rows
1043
- */
1044
- "auto-rows": [{
1045
- "auto-rows": scaleGridAutoColsRows()
1046
- }],
1047
- /**
1048
- * Gap
1049
- * @see https://tailwindcss.com/docs/gap
1050
- */
1051
- gap: [{
1052
- gap: scaleUnambiguousSpacing()
1053
- }],
1054
- /**
1055
- * Gap X
1056
- * @see https://tailwindcss.com/docs/gap
1057
- */
1058
- "gap-x": [{
1059
- "gap-x": scaleUnambiguousSpacing()
1060
- }],
1061
- /**
1062
- * Gap Y
1063
- * @see https://tailwindcss.com/docs/gap
1064
- */
1065
- "gap-y": [{
1066
- "gap-y": scaleUnambiguousSpacing()
1067
- }],
1068
- /**
1069
- * Justify Content
1070
- * @see https://tailwindcss.com/docs/justify-content
1071
- */
1072
- "justify-content": [{
1073
- justify: [...scaleAlignPrimaryAxis(), "normal"]
1074
- }],
1075
- /**
1076
- * Justify Items
1077
- * @see https://tailwindcss.com/docs/justify-items
1078
- */
1079
- "justify-items": [{
1080
- "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
1081
- }],
1082
- /**
1083
- * Justify Self
1084
- * @see https://tailwindcss.com/docs/justify-self
1085
- */
1086
- "justify-self": [{
1087
- "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
1088
- }],
1089
- /**
1090
- * Align Content
1091
- * @see https://tailwindcss.com/docs/align-content
1092
- */
1093
- "align-content": [{
1094
- content: ["normal", ...scaleAlignPrimaryAxis()]
1095
- }],
1096
- /**
1097
- * Align Items
1098
- * @see https://tailwindcss.com/docs/align-items
1099
- */
1100
- "align-items": [{
1101
- items: [...scaleAlignSecondaryAxis(), {
1102
- baseline: ["", "last"]
1103
- }]
1104
- }],
1105
- /**
1106
- * Align Self
1107
- * @see https://tailwindcss.com/docs/align-self
1108
- */
1109
- "align-self": [{
1110
- self: ["auto", ...scaleAlignSecondaryAxis(), {
1111
- baseline: ["", "last"]
1112
- }]
1113
- }],
1114
- /**
1115
- * Place Content
1116
- * @see https://tailwindcss.com/docs/place-content
1117
- */
1118
- "place-content": [{
1119
- "place-content": scaleAlignPrimaryAxis()
1120
- }],
1121
- /**
1122
- * Place Items
1123
- * @see https://tailwindcss.com/docs/place-items
1124
- */
1125
- "place-items": [{
1126
- "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
1127
- }],
1128
- /**
1129
- * Place Self
1130
- * @see https://tailwindcss.com/docs/place-self
1131
- */
1132
- "place-self": [{
1133
- "place-self": ["auto", ...scaleAlignSecondaryAxis()]
1134
- }],
1135
- // Spacing
1136
- /**
1137
- * Padding
1138
- * @see https://tailwindcss.com/docs/padding
1139
- */
1140
- p: [{
1141
- p: scaleUnambiguousSpacing()
1142
- }],
1143
- /**
1144
- * Padding X
1145
- * @see https://tailwindcss.com/docs/padding
1146
- */
1147
- px: [{
1148
- px: scaleUnambiguousSpacing()
1149
- }],
1150
- /**
1151
- * Padding Y
1152
- * @see https://tailwindcss.com/docs/padding
1153
- */
1154
- py: [{
1155
- py: scaleUnambiguousSpacing()
1156
- }],
1157
- /**
1158
- * Padding Start
1159
- * @see https://tailwindcss.com/docs/padding
1160
- */
1161
- ps: [{
1162
- ps: scaleUnambiguousSpacing()
1163
- }],
1164
- /**
1165
- * Padding End
1166
- * @see https://tailwindcss.com/docs/padding
1167
- */
1168
- pe: [{
1169
- pe: scaleUnambiguousSpacing()
1170
- }],
1171
- /**
1172
- * Padding Top
1173
- * @see https://tailwindcss.com/docs/padding
1174
- */
1175
- pt: [{
1176
- pt: scaleUnambiguousSpacing()
1177
- }],
1178
- /**
1179
- * Padding Right
1180
- * @see https://tailwindcss.com/docs/padding
1181
- */
1182
- pr: [{
1183
- pr: scaleUnambiguousSpacing()
1184
- }],
1185
- /**
1186
- * Padding Bottom
1187
- * @see https://tailwindcss.com/docs/padding
1188
- */
1189
- pb: [{
1190
- pb: scaleUnambiguousSpacing()
1191
- }],
1192
- /**
1193
- * Padding Left
1194
- * @see https://tailwindcss.com/docs/padding
1195
- */
1196
- pl: [{
1197
- pl: scaleUnambiguousSpacing()
1198
- }],
1199
- /**
1200
- * Margin
1201
- * @see https://tailwindcss.com/docs/margin
1202
- */
1203
- m: [{
1204
- m: scaleMargin()
1205
- }],
1206
- /**
1207
- * Margin X
1208
- * @see https://tailwindcss.com/docs/margin
1209
- */
1210
- mx: [{
1211
- mx: scaleMargin()
1212
- }],
1213
- /**
1214
- * Margin Y
1215
- * @see https://tailwindcss.com/docs/margin
1216
- */
1217
- my: [{
1218
- my: scaleMargin()
1219
- }],
1220
- /**
1221
- * Margin Start
1222
- * @see https://tailwindcss.com/docs/margin
1223
- */
1224
- ms: [{
1225
- ms: scaleMargin()
1226
- }],
1227
- /**
1228
- * Margin End
1229
- * @see https://tailwindcss.com/docs/margin
1230
- */
1231
- me: [{
1232
- me: scaleMargin()
1233
- }],
1234
- /**
1235
- * Margin Top
1236
- * @see https://tailwindcss.com/docs/margin
1237
- */
1238
- mt: [{
1239
- mt: scaleMargin()
1240
- }],
1241
- /**
1242
- * Margin Right
1243
- * @see https://tailwindcss.com/docs/margin
1244
- */
1245
- mr: [{
1246
- mr: scaleMargin()
1247
- }],
1248
- /**
1249
- * Margin Bottom
1250
- * @see https://tailwindcss.com/docs/margin
1251
- */
1252
- mb: [{
1253
- mb: scaleMargin()
1254
- }],
1255
- /**
1256
- * Margin Left
1257
- * @see https://tailwindcss.com/docs/margin
1258
- */
1259
- ml: [{
1260
- ml: scaleMargin()
1261
- }],
1262
- /**
1263
- * Space Between X
1264
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1265
- */
1266
- "space-x": [{
1267
- "space-x": scaleUnambiguousSpacing()
1268
- }],
1269
- /**
1270
- * Space Between X Reverse
1271
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1272
- */
1273
- "space-x-reverse": ["space-x-reverse"],
1274
- /**
1275
- * Space Between Y
1276
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1277
- */
1278
- "space-y": [{
1279
- "space-y": scaleUnambiguousSpacing()
1280
- }],
1281
- /**
1282
- * Space Between Y Reverse
1283
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1284
- */
1285
- "space-y-reverse": ["space-y-reverse"],
1286
- // --------------
1287
- // --- Sizing ---
1288
- // --------------
1289
- /**
1290
- * Size
1291
- * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1292
- */
1293
- size: [{
1294
- size: scaleSizing()
1295
- }],
1296
- /**
1297
- * Width
1298
- * @see https://tailwindcss.com/docs/width
1299
- */
1300
- w: [{
1301
- w: [themeContainer, "screen", ...scaleSizing()]
1302
- }],
1303
- /**
1304
- * Min-Width
1305
- * @see https://tailwindcss.com/docs/min-width
1306
- */
1307
- "min-w": [{
1308
- "min-w": [
1309
- themeContainer,
1310
- "screen",
1311
- /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1312
- "none",
1313
- ...scaleSizing()
1314
- ]
1315
- }],
1316
- /**
1317
- * Max-Width
1318
- * @see https://tailwindcss.com/docs/max-width
1319
- */
1320
- "max-w": [{
1321
- "max-w": [
1322
- themeContainer,
1323
- "screen",
1324
- "none",
1325
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1326
- "prose",
1327
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1328
- {
1329
- screen: [themeBreakpoint]
1330
- },
1331
- ...scaleSizing()
1332
- ]
1333
- }],
1334
- /**
1335
- * Height
1336
- * @see https://tailwindcss.com/docs/height
1337
- */
1338
- h: [{
1339
- h: ["screen", "lh", ...scaleSizing()]
1340
- }],
1341
- /**
1342
- * Min-Height
1343
- * @see https://tailwindcss.com/docs/min-height
1344
- */
1345
- "min-h": [{
1346
- "min-h": ["screen", "lh", "none", ...scaleSizing()]
1347
- }],
1348
- /**
1349
- * Max-Height
1350
- * @see https://tailwindcss.com/docs/max-height
1351
- */
1352
- "max-h": [{
1353
- "max-h": ["screen", "lh", ...scaleSizing()]
1354
- }],
1355
- // ------------------
1356
- // --- Typography ---
1357
- // ------------------
1358
- /**
1359
- * Font Size
1360
- * @see https://tailwindcss.com/docs/font-size
1361
- */
1362
- "font-size": [{
1363
- text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
1364
- }],
1365
- /**
1366
- * Font Smoothing
1367
- * @see https://tailwindcss.com/docs/font-smoothing
1368
- */
1369
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1370
- /**
1371
- * Font Style
1372
- * @see https://tailwindcss.com/docs/font-style
1373
- */
1374
- "font-style": ["italic", "not-italic"],
1375
- /**
1376
- * Font Weight
1377
- * @see https://tailwindcss.com/docs/font-weight
1378
- */
1379
- "font-weight": [{
1380
- font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
1381
- }],
1382
- /**
1383
- * Font Stretch
1384
- * @see https://tailwindcss.com/docs/font-stretch
1385
- */
1386
- "font-stretch": [{
1387
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
1388
- }],
1389
- /**
1390
- * Font Family
1391
- * @see https://tailwindcss.com/docs/font-family
1392
- */
1393
- "font-family": [{
1394
- font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
1395
- }],
1396
- /**
1397
- * Font Variant Numeric
1398
- * @see https://tailwindcss.com/docs/font-variant-numeric
1399
- */
1400
- "fvn-normal": ["normal-nums"],
1401
- /**
1402
- * Font Variant Numeric
1403
- * @see https://tailwindcss.com/docs/font-variant-numeric
1404
- */
1405
- "fvn-ordinal": ["ordinal"],
1406
- /**
1407
- * Font Variant Numeric
1408
- * @see https://tailwindcss.com/docs/font-variant-numeric
1409
- */
1410
- "fvn-slashed-zero": ["slashed-zero"],
1411
- /**
1412
- * Font Variant Numeric
1413
- * @see https://tailwindcss.com/docs/font-variant-numeric
1414
- */
1415
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1416
- /**
1417
- * Font Variant Numeric
1418
- * @see https://tailwindcss.com/docs/font-variant-numeric
1419
- */
1420
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1421
- /**
1422
- * Font Variant Numeric
1423
- * @see https://tailwindcss.com/docs/font-variant-numeric
1424
- */
1425
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1426
- /**
1427
- * Letter Spacing
1428
- * @see https://tailwindcss.com/docs/letter-spacing
1429
- */
1430
- tracking: [{
1431
- tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
1432
- }],
1433
- /**
1434
- * Line Clamp
1435
- * @see https://tailwindcss.com/docs/line-clamp
1436
- */
1437
- "line-clamp": [{
1438
- "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
1439
- }],
1440
- /**
1441
- * Line Height
1442
- * @see https://tailwindcss.com/docs/line-height
1443
- */
1444
- leading: [{
1445
- leading: [
1446
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1447
- themeLeading,
1448
- ...scaleUnambiguousSpacing()
1449
- ]
1450
- }],
1451
- /**
1452
- * List Style Image
1453
- * @see https://tailwindcss.com/docs/list-style-image
1454
- */
1455
- "list-image": [{
1456
- "list-image": ["none", isArbitraryVariable, isArbitraryValue]
1457
- }],
1458
- /**
1459
- * List Style Position
1460
- * @see https://tailwindcss.com/docs/list-style-position
1461
- */
1462
- "list-style-position": [{
1463
- list: ["inside", "outside"]
1464
- }],
1465
- /**
1466
- * List Style Type
1467
- * @see https://tailwindcss.com/docs/list-style-type
1468
- */
1469
- "list-style-type": [{
1470
- list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
1471
- }],
1472
- /**
1473
- * Text Alignment
1474
- * @see https://tailwindcss.com/docs/text-align
1475
- */
1476
- "text-alignment": [{
1477
- text: ["left", "center", "right", "justify", "start", "end"]
1478
- }],
1479
- /**
1480
- * Placeholder Color
1481
- * @deprecated since Tailwind CSS v3.0.0
1482
- * @see https://v3.tailwindcss.com/docs/placeholder-color
1483
- */
1484
- "placeholder-color": [{
1485
- placeholder: scaleColor()
1486
- }],
1487
- /**
1488
- * Text Color
1489
- * @see https://tailwindcss.com/docs/text-color
1490
- */
1491
- "text-color": [{
1492
- text: scaleColor()
1493
- }],
1494
- /**
1495
- * Text Decoration
1496
- * @see https://tailwindcss.com/docs/text-decoration
1497
- */
1498
- "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1499
- /**
1500
- * Text Decoration Style
1501
- * @see https://tailwindcss.com/docs/text-decoration-style
1502
- */
1503
- "text-decoration-style": [{
1504
- decoration: [...scaleLineStyle(), "wavy"]
1505
- }],
1506
- /**
1507
- * Text Decoration Thickness
1508
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1509
- */
1510
- "text-decoration-thickness": [{
1511
- decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
1512
- }],
1513
- /**
1514
- * Text Decoration Color
1515
- * @see https://tailwindcss.com/docs/text-decoration-color
1516
- */
1517
- "text-decoration-color": [{
1518
- decoration: scaleColor()
1519
- }],
1520
- /**
1521
- * Text Underline Offset
1522
- * @see https://tailwindcss.com/docs/text-underline-offset
1523
- */
1524
- "underline-offset": [{
1525
- "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
1526
- }],
1527
- /**
1528
- * Text Transform
1529
- * @see https://tailwindcss.com/docs/text-transform
1530
- */
1531
- "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1532
- /**
1533
- * Text Overflow
1534
- * @see https://tailwindcss.com/docs/text-overflow
1535
- */
1536
- "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1537
- /**
1538
- * Text Wrap
1539
- * @see https://tailwindcss.com/docs/text-wrap
1540
- */
1541
- "text-wrap": [{
1542
- text: ["wrap", "nowrap", "balance", "pretty"]
1543
- }],
1544
- /**
1545
- * Text Indent
1546
- * @see https://tailwindcss.com/docs/text-indent
1547
- */
1548
- indent: [{
1549
- indent: scaleUnambiguousSpacing()
1550
- }],
1551
- /**
1552
- * Vertical Alignment
1553
- * @see https://tailwindcss.com/docs/vertical-align
1554
- */
1555
- "vertical-align": [{
1556
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
1557
- }],
1558
- /**
1559
- * Whitespace
1560
- * @see https://tailwindcss.com/docs/whitespace
1561
- */
1562
- whitespace: [{
1563
- whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1564
- }],
1565
- /**
1566
- * Word Break
1567
- * @see https://tailwindcss.com/docs/word-break
1568
- */
1569
- break: [{
1570
- break: ["normal", "words", "all", "keep"]
1571
- }],
1572
- /**
1573
- * Overflow Wrap
1574
- * @see https://tailwindcss.com/docs/overflow-wrap
1575
- */
1576
- wrap: [{
1577
- wrap: ["break-word", "anywhere", "normal"]
1578
- }],
1579
- /**
1580
- * Hyphens
1581
- * @see https://tailwindcss.com/docs/hyphens
1582
- */
1583
- hyphens: [{
1584
- hyphens: ["none", "manual", "auto"]
1585
- }],
1586
- /**
1587
- * Content
1588
- * @see https://tailwindcss.com/docs/content
1589
- */
1590
- content: [{
1591
- content: ["none", isArbitraryVariable, isArbitraryValue]
1592
- }],
1593
- // -------------------
1594
- // --- Backgrounds ---
1595
- // -------------------
1596
- /**
1597
- * Background Attachment
1598
- * @see https://tailwindcss.com/docs/background-attachment
1599
- */
1600
- "bg-attachment": [{
1601
- bg: ["fixed", "local", "scroll"]
1602
- }],
1603
- /**
1604
- * Background Clip
1605
- * @see https://tailwindcss.com/docs/background-clip
1606
- */
1607
- "bg-clip": [{
1608
- "bg-clip": ["border", "padding", "content", "text"]
1609
- }],
1610
- /**
1611
- * Background Origin
1612
- * @see https://tailwindcss.com/docs/background-origin
1613
- */
1614
- "bg-origin": [{
1615
- "bg-origin": ["border", "padding", "content"]
1616
- }],
1617
- /**
1618
- * Background Position
1619
- * @see https://tailwindcss.com/docs/background-position
1620
- */
1621
- "bg-position": [{
1622
- bg: scaleBgPosition()
1623
- }],
1624
- /**
1625
- * Background Repeat
1626
- * @see https://tailwindcss.com/docs/background-repeat
1627
- */
1628
- "bg-repeat": [{
1629
- bg: scaleBgRepeat()
1630
- }],
1631
- /**
1632
- * Background Size
1633
- * @see https://tailwindcss.com/docs/background-size
1634
- */
1635
- "bg-size": [{
1636
- bg: scaleBgSize()
1637
- }],
1638
- /**
1639
- * Background Image
1640
- * @see https://tailwindcss.com/docs/background-image
1641
- */
1642
- "bg-image": [{
1643
- bg: ["none", {
1644
- linear: [{
1645
- to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1646
- }, isInteger, isArbitraryVariable, isArbitraryValue],
1647
- radial: ["", isArbitraryVariable, isArbitraryValue],
1648
- conic: [isInteger, isArbitraryVariable, isArbitraryValue]
1649
- }, isArbitraryVariableImage, isArbitraryImage]
1650
- }],
1651
- /**
1652
- * Background Color
1653
- * @see https://tailwindcss.com/docs/background-color
1654
- */
1655
- "bg-color": [{
1656
- bg: scaleColor()
1657
- }],
1658
- /**
1659
- * Gradient Color Stops From Position
1660
- * @see https://tailwindcss.com/docs/gradient-color-stops
1661
- */
1662
- "gradient-from-pos": [{
1663
- from: scaleGradientStopPosition()
1664
- }],
1665
- /**
1666
- * Gradient Color Stops Via Position
1667
- * @see https://tailwindcss.com/docs/gradient-color-stops
1668
- */
1669
- "gradient-via-pos": [{
1670
- via: scaleGradientStopPosition()
1671
- }],
1672
- /**
1673
- * Gradient Color Stops To Position
1674
- * @see https://tailwindcss.com/docs/gradient-color-stops
1675
- */
1676
- "gradient-to-pos": [{
1677
- to: scaleGradientStopPosition()
1678
- }],
1679
- /**
1680
- * Gradient Color Stops From
1681
- * @see https://tailwindcss.com/docs/gradient-color-stops
1682
- */
1683
- "gradient-from": [{
1684
- from: scaleColor()
1685
- }],
1686
- /**
1687
- * Gradient Color Stops Via
1688
- * @see https://tailwindcss.com/docs/gradient-color-stops
1689
- */
1690
- "gradient-via": [{
1691
- via: scaleColor()
1692
- }],
1693
- /**
1694
- * Gradient Color Stops To
1695
- * @see https://tailwindcss.com/docs/gradient-color-stops
1696
- */
1697
- "gradient-to": [{
1698
- to: scaleColor()
1699
- }],
1700
- // ---------------
1701
- // --- Borders ---
1702
- // ---------------
1703
- /**
1704
- * Border Radius
1705
- * @see https://tailwindcss.com/docs/border-radius
1706
- */
1707
- rounded: [{
1708
- rounded: scaleRadius()
1709
- }],
1710
- /**
1711
- * Border Radius Start
1712
- * @see https://tailwindcss.com/docs/border-radius
1713
- */
1714
- "rounded-s": [{
1715
- "rounded-s": scaleRadius()
1716
- }],
1717
- /**
1718
- * Border Radius End
1719
- * @see https://tailwindcss.com/docs/border-radius
1720
- */
1721
- "rounded-e": [{
1722
- "rounded-e": scaleRadius()
1723
- }],
1724
- /**
1725
- * Border Radius Top
1726
- * @see https://tailwindcss.com/docs/border-radius
1727
- */
1728
- "rounded-t": [{
1729
- "rounded-t": scaleRadius()
1730
- }],
1731
- /**
1732
- * Border Radius Right
1733
- * @see https://tailwindcss.com/docs/border-radius
1734
- */
1735
- "rounded-r": [{
1736
- "rounded-r": scaleRadius()
1737
- }],
1738
- /**
1739
- * Border Radius Bottom
1740
- * @see https://tailwindcss.com/docs/border-radius
1741
- */
1742
- "rounded-b": [{
1743
- "rounded-b": scaleRadius()
1744
- }],
1745
- /**
1746
- * Border Radius Left
1747
- * @see https://tailwindcss.com/docs/border-radius
1748
- */
1749
- "rounded-l": [{
1750
- "rounded-l": scaleRadius()
1751
- }],
1752
- /**
1753
- * Border Radius Start Start
1754
- * @see https://tailwindcss.com/docs/border-radius
1755
- */
1756
- "rounded-ss": [{
1757
- "rounded-ss": scaleRadius()
1758
- }],
1759
- /**
1760
- * Border Radius Start End
1761
- * @see https://tailwindcss.com/docs/border-radius
1762
- */
1763
- "rounded-se": [{
1764
- "rounded-se": scaleRadius()
1765
- }],
1766
- /**
1767
- * Border Radius End End
1768
- * @see https://tailwindcss.com/docs/border-radius
1769
- */
1770
- "rounded-ee": [{
1771
- "rounded-ee": scaleRadius()
1772
- }],
1773
- /**
1774
- * Border Radius End Start
1775
- * @see https://tailwindcss.com/docs/border-radius
1776
- */
1777
- "rounded-es": [{
1778
- "rounded-es": scaleRadius()
1779
- }],
1780
- /**
1781
- * Border Radius Top Left
1782
- * @see https://tailwindcss.com/docs/border-radius
1783
- */
1784
- "rounded-tl": [{
1785
- "rounded-tl": scaleRadius()
1786
- }],
1787
- /**
1788
- * Border Radius Top Right
1789
- * @see https://tailwindcss.com/docs/border-radius
1790
- */
1791
- "rounded-tr": [{
1792
- "rounded-tr": scaleRadius()
1793
- }],
1794
- /**
1795
- * Border Radius Bottom Right
1796
- * @see https://tailwindcss.com/docs/border-radius
1797
- */
1798
- "rounded-br": [{
1799
- "rounded-br": scaleRadius()
1800
- }],
1801
- /**
1802
- * Border Radius Bottom Left
1803
- * @see https://tailwindcss.com/docs/border-radius
1804
- */
1805
- "rounded-bl": [{
1806
- "rounded-bl": scaleRadius()
1807
- }],
1808
- /**
1809
- * Border Width
1810
- * @see https://tailwindcss.com/docs/border-width
1811
- */
1812
- "border-w": [{
1813
- border: scaleBorderWidth()
1814
- }],
1815
- /**
1816
- * Border Width X
1817
- * @see https://tailwindcss.com/docs/border-width
1818
- */
1819
- "border-w-x": [{
1820
- "border-x": scaleBorderWidth()
1821
- }],
1822
- /**
1823
- * Border Width Y
1824
- * @see https://tailwindcss.com/docs/border-width
1825
- */
1826
- "border-w-y": [{
1827
- "border-y": scaleBorderWidth()
1828
- }],
1829
- /**
1830
- * Border Width Start
1831
- * @see https://tailwindcss.com/docs/border-width
1832
- */
1833
- "border-w-s": [{
1834
- "border-s": scaleBorderWidth()
1835
- }],
1836
- /**
1837
- * Border Width End
1838
- * @see https://tailwindcss.com/docs/border-width
1839
- */
1840
- "border-w-e": [{
1841
- "border-e": scaleBorderWidth()
1842
- }],
1843
- /**
1844
- * Border Width Top
1845
- * @see https://tailwindcss.com/docs/border-width
1846
- */
1847
- "border-w-t": [{
1848
- "border-t": scaleBorderWidth()
1849
- }],
1850
- /**
1851
- * Border Width Right
1852
- * @see https://tailwindcss.com/docs/border-width
1853
- */
1854
- "border-w-r": [{
1855
- "border-r": scaleBorderWidth()
1856
- }],
1857
- /**
1858
- * Border Width Bottom
1859
- * @see https://tailwindcss.com/docs/border-width
1860
- */
1861
- "border-w-b": [{
1862
- "border-b": scaleBorderWidth()
1863
- }],
1864
- /**
1865
- * Border Width Left
1866
- * @see https://tailwindcss.com/docs/border-width
1867
- */
1868
- "border-w-l": [{
1869
- "border-l": scaleBorderWidth()
1870
- }],
1871
- /**
1872
- * Divide Width X
1873
- * @see https://tailwindcss.com/docs/border-width#between-children
1874
- */
1875
- "divide-x": [{
1876
- "divide-x": scaleBorderWidth()
1877
- }],
1878
- /**
1879
- * Divide Width X Reverse
1880
- * @see https://tailwindcss.com/docs/border-width#between-children
1881
- */
1882
- "divide-x-reverse": ["divide-x-reverse"],
1883
- /**
1884
- * Divide Width Y
1885
- * @see https://tailwindcss.com/docs/border-width#between-children
1886
- */
1887
- "divide-y": [{
1888
- "divide-y": scaleBorderWidth()
1889
- }],
1890
- /**
1891
- * Divide Width Y Reverse
1892
- * @see https://tailwindcss.com/docs/border-width#between-children
1893
- */
1894
- "divide-y-reverse": ["divide-y-reverse"],
1895
- /**
1896
- * Border Style
1897
- * @see https://tailwindcss.com/docs/border-style
1898
- */
1899
- "border-style": [{
1900
- border: [...scaleLineStyle(), "hidden", "none"]
1901
- }],
1902
- /**
1903
- * Divide Style
1904
- * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1905
- */
1906
- "divide-style": [{
1907
- divide: [...scaleLineStyle(), "hidden", "none"]
1908
- }],
1909
- /**
1910
- * Border Color
1911
- * @see https://tailwindcss.com/docs/border-color
1912
- */
1913
- "border-color": [{
1914
- border: scaleColor()
1915
- }],
1916
- /**
1917
- * Border Color X
1918
- * @see https://tailwindcss.com/docs/border-color
1919
- */
1920
- "border-color-x": [{
1921
- "border-x": scaleColor()
1922
- }],
1923
- /**
1924
- * Border Color Y
1925
- * @see https://tailwindcss.com/docs/border-color
1926
- */
1927
- "border-color-y": [{
1928
- "border-y": scaleColor()
1929
- }],
1930
- /**
1931
- * Border Color S
1932
- * @see https://tailwindcss.com/docs/border-color
1933
- */
1934
- "border-color-s": [{
1935
- "border-s": scaleColor()
1936
- }],
1937
- /**
1938
- * Border Color E
1939
- * @see https://tailwindcss.com/docs/border-color
1940
- */
1941
- "border-color-e": [{
1942
- "border-e": scaleColor()
1943
- }],
1944
- /**
1945
- * Border Color Top
1946
- * @see https://tailwindcss.com/docs/border-color
1947
- */
1948
- "border-color-t": [{
1949
- "border-t": scaleColor()
1950
- }],
1951
- /**
1952
- * Border Color Right
1953
- * @see https://tailwindcss.com/docs/border-color
1954
- */
1955
- "border-color-r": [{
1956
- "border-r": scaleColor()
1957
- }],
1958
- /**
1959
- * Border Color Bottom
1960
- * @see https://tailwindcss.com/docs/border-color
1961
- */
1962
- "border-color-b": [{
1963
- "border-b": scaleColor()
1964
- }],
1965
- /**
1966
- * Border Color Left
1967
- * @see https://tailwindcss.com/docs/border-color
1968
- */
1969
- "border-color-l": [{
1970
- "border-l": scaleColor()
1971
- }],
1972
- /**
1973
- * Divide Color
1974
- * @see https://tailwindcss.com/docs/divide-color
1975
- */
1976
- "divide-color": [{
1977
- divide: scaleColor()
1978
- }],
1979
- /**
1980
- * Outline Style
1981
- * @see https://tailwindcss.com/docs/outline-style
1982
- */
1983
- "outline-style": [{
1984
- outline: [...scaleLineStyle(), "none", "hidden"]
1985
- }],
1986
- /**
1987
- * Outline Offset
1988
- * @see https://tailwindcss.com/docs/outline-offset
1989
- */
1990
- "outline-offset": [{
1991
- "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
1992
- }],
1993
- /**
1994
- * Outline Width
1995
- * @see https://tailwindcss.com/docs/outline-width
1996
- */
1997
- "outline-w": [{
1998
- outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
1999
- }],
2000
- /**
2001
- * Outline Color
2002
- * @see https://tailwindcss.com/docs/outline-color
2003
- */
2004
- "outline-color": [{
2005
- outline: scaleColor()
2006
- }],
2007
- // ---------------
2008
- // --- Effects ---
2009
- // ---------------
2010
- /**
2011
- * Box Shadow
2012
- * @see https://tailwindcss.com/docs/box-shadow
2013
- */
2014
- shadow: [{
2015
- shadow: [
2016
- // Deprecated since Tailwind CSS v4.0.0
2017
- "",
2018
- "none",
2019
- themeShadow,
2020
- isArbitraryVariableShadow,
2021
- isArbitraryShadow
2022
- ]
2023
- }],
2024
- /**
2025
- * Box Shadow Color
2026
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2027
- */
2028
- "shadow-color": [{
2029
- shadow: scaleColor()
2030
- }],
2031
- /**
2032
- * Inset Box Shadow
2033
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2034
- */
2035
- "inset-shadow": [{
2036
- "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2037
- }],
2038
- /**
2039
- * Inset Box Shadow Color
2040
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2041
- */
2042
- "inset-shadow-color": [{
2043
- "inset-shadow": scaleColor()
2044
- }],
2045
- /**
2046
- * Ring Width
2047
- * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2048
- */
2049
- "ring-w": [{
2050
- ring: scaleBorderWidth()
2051
- }],
2052
- /**
2053
- * Ring Width Inset
2054
- * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2055
- * @deprecated since Tailwind CSS v4.0.0
2056
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2057
- */
2058
- "ring-w-inset": ["ring-inset"],
2059
- /**
2060
- * Ring Color
2061
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2062
- */
2063
- "ring-color": [{
2064
- ring: scaleColor()
2065
- }],
2066
- /**
2067
- * Ring Offset Width
2068
- * @see https://v3.tailwindcss.com/docs/ring-offset-width
2069
- * @deprecated since Tailwind CSS v4.0.0
2070
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2071
- */
2072
- "ring-offset-w": [{
2073
- "ring-offset": [isNumber, isArbitraryLength]
2074
- }],
2075
- /**
2076
- * Ring Offset Color
2077
- * @see https://v3.tailwindcss.com/docs/ring-offset-color
2078
- * @deprecated since Tailwind CSS v4.0.0
2079
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2080
- */
2081
- "ring-offset-color": [{
2082
- "ring-offset": scaleColor()
2083
- }],
2084
- /**
2085
- * Inset Ring Width
2086
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2087
- */
2088
- "inset-ring-w": [{
2089
- "inset-ring": scaleBorderWidth()
2090
- }],
2091
- /**
2092
- * Inset Ring Color
2093
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2094
- */
2095
- "inset-ring-color": [{
2096
- "inset-ring": scaleColor()
2097
- }],
2098
- /**
2099
- * Text Shadow
2100
- * @see https://tailwindcss.com/docs/text-shadow
2101
- */
2102
- "text-shadow": [{
2103
- "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2104
- }],
2105
- /**
2106
- * Text Shadow Color
2107
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2108
- */
2109
- "text-shadow-color": [{
2110
- "text-shadow": scaleColor()
2111
- }],
2112
- /**
2113
- * Opacity
2114
- * @see https://tailwindcss.com/docs/opacity
2115
- */
2116
- opacity: [{
2117
- opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
2118
- }],
2119
- /**
2120
- * Mix Blend Mode
2121
- * @see https://tailwindcss.com/docs/mix-blend-mode
2122
- */
2123
- "mix-blend": [{
2124
- "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
2125
- }],
2126
- /**
2127
- * Background Blend Mode
2128
- * @see https://tailwindcss.com/docs/background-blend-mode
2129
- */
2130
- "bg-blend": [{
2131
- "bg-blend": scaleBlendMode()
2132
- }],
2133
- /**
2134
- * Mask Clip
2135
- * @see https://tailwindcss.com/docs/mask-clip
2136
- */
2137
- "mask-clip": [{
2138
- "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
2139
- }, "mask-no-clip"],
2140
- /**
2141
- * Mask Composite
2142
- * @see https://tailwindcss.com/docs/mask-composite
2143
- */
2144
- "mask-composite": [{
2145
- mask: ["add", "subtract", "intersect", "exclude"]
2146
- }],
2147
- /**
2148
- * Mask Image
2149
- * @see https://tailwindcss.com/docs/mask-image
2150
- */
2151
- "mask-image-linear-pos": [{
2152
- "mask-linear": [isNumber]
2153
- }],
2154
- "mask-image-linear-from-pos": [{
2155
- "mask-linear-from": scaleMaskImagePosition()
2156
- }],
2157
- "mask-image-linear-to-pos": [{
2158
- "mask-linear-to": scaleMaskImagePosition()
2159
- }],
2160
- "mask-image-linear-from-color": [{
2161
- "mask-linear-from": scaleColor()
2162
- }],
2163
- "mask-image-linear-to-color": [{
2164
- "mask-linear-to": scaleColor()
2165
- }],
2166
- "mask-image-t-from-pos": [{
2167
- "mask-t-from": scaleMaskImagePosition()
2168
- }],
2169
- "mask-image-t-to-pos": [{
2170
- "mask-t-to": scaleMaskImagePosition()
2171
- }],
2172
- "mask-image-t-from-color": [{
2173
- "mask-t-from": scaleColor()
2174
- }],
2175
- "mask-image-t-to-color": [{
2176
- "mask-t-to": scaleColor()
2177
- }],
2178
- "mask-image-r-from-pos": [{
2179
- "mask-r-from": scaleMaskImagePosition()
2180
- }],
2181
- "mask-image-r-to-pos": [{
2182
- "mask-r-to": scaleMaskImagePosition()
2183
- }],
2184
- "mask-image-r-from-color": [{
2185
- "mask-r-from": scaleColor()
2186
- }],
2187
- "mask-image-r-to-color": [{
2188
- "mask-r-to": scaleColor()
2189
- }],
2190
- "mask-image-b-from-pos": [{
2191
- "mask-b-from": scaleMaskImagePosition()
2192
- }],
2193
- "mask-image-b-to-pos": [{
2194
- "mask-b-to": scaleMaskImagePosition()
2195
- }],
2196
- "mask-image-b-from-color": [{
2197
- "mask-b-from": scaleColor()
2198
- }],
2199
- "mask-image-b-to-color": [{
2200
- "mask-b-to": scaleColor()
2201
- }],
2202
- "mask-image-l-from-pos": [{
2203
- "mask-l-from": scaleMaskImagePosition()
2204
- }],
2205
- "mask-image-l-to-pos": [{
2206
- "mask-l-to": scaleMaskImagePosition()
2207
- }],
2208
- "mask-image-l-from-color": [{
2209
- "mask-l-from": scaleColor()
2210
- }],
2211
- "mask-image-l-to-color": [{
2212
- "mask-l-to": scaleColor()
2213
- }],
2214
- "mask-image-x-from-pos": [{
2215
- "mask-x-from": scaleMaskImagePosition()
2216
- }],
2217
- "mask-image-x-to-pos": [{
2218
- "mask-x-to": scaleMaskImagePosition()
2219
- }],
2220
- "mask-image-x-from-color": [{
2221
- "mask-x-from": scaleColor()
2222
- }],
2223
- "mask-image-x-to-color": [{
2224
- "mask-x-to": scaleColor()
2225
- }],
2226
- "mask-image-y-from-pos": [{
2227
- "mask-y-from": scaleMaskImagePosition()
2228
- }],
2229
- "mask-image-y-to-pos": [{
2230
- "mask-y-to": scaleMaskImagePosition()
2231
- }],
2232
- "mask-image-y-from-color": [{
2233
- "mask-y-from": scaleColor()
2234
- }],
2235
- "mask-image-y-to-color": [{
2236
- "mask-y-to": scaleColor()
2237
- }],
2238
- "mask-image-radial": [{
2239
- "mask-radial": [isArbitraryVariable, isArbitraryValue]
2240
- }],
2241
- "mask-image-radial-from-pos": [{
2242
- "mask-radial-from": scaleMaskImagePosition()
2243
- }],
2244
- "mask-image-radial-to-pos": [{
2245
- "mask-radial-to": scaleMaskImagePosition()
2246
- }],
2247
- "mask-image-radial-from-color": [{
2248
- "mask-radial-from": scaleColor()
2249
- }],
2250
- "mask-image-radial-to-color": [{
2251
- "mask-radial-to": scaleColor()
2252
- }],
2253
- "mask-image-radial-shape": [{
2254
- "mask-radial": ["circle", "ellipse"]
2255
- }],
2256
- "mask-image-radial-size": [{
2257
- "mask-radial": [{
2258
- closest: ["side", "corner"],
2259
- farthest: ["side", "corner"]
2260
- }]
2261
- }],
2262
- "mask-image-radial-pos": [{
2263
- "mask-radial-at": scalePosition()
2264
- }],
2265
- "mask-image-conic-pos": [{
2266
- "mask-conic": [isNumber]
2267
- }],
2268
- "mask-image-conic-from-pos": [{
2269
- "mask-conic-from": scaleMaskImagePosition()
2270
- }],
2271
- "mask-image-conic-to-pos": [{
2272
- "mask-conic-to": scaleMaskImagePosition()
2273
- }],
2274
- "mask-image-conic-from-color": [{
2275
- "mask-conic-from": scaleColor()
2276
- }],
2277
- "mask-image-conic-to-color": [{
2278
- "mask-conic-to": scaleColor()
2279
- }],
2280
- /**
2281
- * Mask Mode
2282
- * @see https://tailwindcss.com/docs/mask-mode
2283
- */
2284
- "mask-mode": [{
2285
- mask: ["alpha", "luminance", "match"]
2286
- }],
2287
- /**
2288
- * Mask Origin
2289
- * @see https://tailwindcss.com/docs/mask-origin
2290
- */
2291
- "mask-origin": [{
2292
- "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
2293
- }],
2294
- /**
2295
- * Mask Position
2296
- * @see https://tailwindcss.com/docs/mask-position
2297
- */
2298
- "mask-position": [{
2299
- mask: scaleBgPosition()
2300
- }],
2301
- /**
2302
- * Mask Repeat
2303
- * @see https://tailwindcss.com/docs/mask-repeat
2304
- */
2305
- "mask-repeat": [{
2306
- mask: scaleBgRepeat()
2307
- }],
2308
- /**
2309
- * Mask Size
2310
- * @see https://tailwindcss.com/docs/mask-size
2311
- */
2312
- "mask-size": [{
2313
- mask: scaleBgSize()
2314
- }],
2315
- /**
2316
- * Mask Type
2317
- * @see https://tailwindcss.com/docs/mask-type
2318
- */
2319
- "mask-type": [{
2320
- "mask-type": ["alpha", "luminance"]
2321
- }],
2322
- /**
2323
- * Mask Image
2324
- * @see https://tailwindcss.com/docs/mask-image
2325
- */
2326
- "mask-image": [{
2327
- mask: ["none", isArbitraryVariable, isArbitraryValue]
2328
- }],
2329
- // ---------------
2330
- // --- Filters ---
2331
- // ---------------
2332
- /**
2333
- * Filter
2334
- * @see https://tailwindcss.com/docs/filter
2335
- */
2336
- filter: [{
2337
- filter: [
2338
- // Deprecated since Tailwind CSS v3.0.0
2339
- "",
2340
- "none",
2341
- isArbitraryVariable,
2342
- isArbitraryValue
2343
- ]
2344
- }],
2345
- /**
2346
- * Blur
2347
- * @see https://tailwindcss.com/docs/blur
2348
- */
2349
- blur: [{
2350
- blur: scaleBlur()
2351
- }],
2352
- /**
2353
- * Brightness
2354
- * @see https://tailwindcss.com/docs/brightness
2355
- */
2356
- brightness: [{
2357
- brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
2358
- }],
2359
- /**
2360
- * Contrast
2361
- * @see https://tailwindcss.com/docs/contrast
2362
- */
2363
- contrast: [{
2364
- contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
2365
- }],
2366
- /**
2367
- * Drop Shadow
2368
- * @see https://tailwindcss.com/docs/drop-shadow
2369
- */
2370
- "drop-shadow": [{
2371
- "drop-shadow": [
2372
- // Deprecated since Tailwind CSS v4.0.0
2373
- "",
2374
- "none",
2375
- themeDropShadow,
2376
- isArbitraryVariableShadow,
2377
- isArbitraryShadow
2378
- ]
2379
- }],
2380
- /**
2381
- * Drop Shadow Color
2382
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2383
- */
2384
- "drop-shadow-color": [{
2385
- "drop-shadow": scaleColor()
2386
- }],
2387
- /**
2388
- * Grayscale
2389
- * @see https://tailwindcss.com/docs/grayscale
2390
- */
2391
- grayscale: [{
2392
- grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2393
- }],
2394
- /**
2395
- * Hue Rotate
2396
- * @see https://tailwindcss.com/docs/hue-rotate
2397
- */
2398
- "hue-rotate": [{
2399
- "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2400
- }],
2401
- /**
2402
- * Invert
2403
- * @see https://tailwindcss.com/docs/invert
2404
- */
2405
- invert: [{
2406
- invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2407
- }],
2408
- /**
2409
- * Saturate
2410
- * @see https://tailwindcss.com/docs/saturate
2411
- */
2412
- saturate: [{
2413
- saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
2414
- }],
2415
- /**
2416
- * Sepia
2417
- * @see https://tailwindcss.com/docs/sepia
2418
- */
2419
- sepia: [{
2420
- sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2421
- }],
2422
- /**
2423
- * Backdrop Filter
2424
- * @see https://tailwindcss.com/docs/backdrop-filter
2425
- */
2426
- "backdrop-filter": [{
2427
- "backdrop-filter": [
2428
- // Deprecated since Tailwind CSS v3.0.0
2429
- "",
2430
- "none",
2431
- isArbitraryVariable,
2432
- isArbitraryValue
2433
- ]
2434
- }],
2435
- /**
2436
- * Backdrop Blur
2437
- * @see https://tailwindcss.com/docs/backdrop-blur
2438
- */
2439
- "backdrop-blur": [{
2440
- "backdrop-blur": scaleBlur()
2441
- }],
2442
- /**
2443
- * Backdrop Brightness
2444
- * @see https://tailwindcss.com/docs/backdrop-brightness
2445
- */
2446
- "backdrop-brightness": [{
2447
- "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
2448
- }],
2449
- /**
2450
- * Backdrop Contrast
2451
- * @see https://tailwindcss.com/docs/backdrop-contrast
2452
- */
2453
- "backdrop-contrast": [{
2454
- "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
2455
- }],
2456
- /**
2457
- * Backdrop Grayscale
2458
- * @see https://tailwindcss.com/docs/backdrop-grayscale
2459
- */
2460
- "backdrop-grayscale": [{
2461
- "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2462
- }],
2463
- /**
2464
- * Backdrop Hue Rotate
2465
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2466
- */
2467
- "backdrop-hue-rotate": [{
2468
- "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2469
- }],
2470
- /**
2471
- * Backdrop Invert
2472
- * @see https://tailwindcss.com/docs/backdrop-invert
2473
- */
2474
- "backdrop-invert": [{
2475
- "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2476
- }],
2477
- /**
2478
- * Backdrop Opacity
2479
- * @see https://tailwindcss.com/docs/backdrop-opacity
2480
- */
2481
- "backdrop-opacity": [{
2482
- "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
2483
- }],
2484
- /**
2485
- * Backdrop Saturate
2486
- * @see https://tailwindcss.com/docs/backdrop-saturate
2487
- */
2488
- "backdrop-saturate": [{
2489
- "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
2490
- }],
2491
- /**
2492
- * Backdrop Sepia
2493
- * @see https://tailwindcss.com/docs/backdrop-sepia
2494
- */
2495
- "backdrop-sepia": [{
2496
- "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2497
- }],
2498
- // --------------
2499
- // --- Tables ---
2500
- // --------------
2501
- /**
2502
- * Border Collapse
2503
- * @see https://tailwindcss.com/docs/border-collapse
2504
- */
2505
- "border-collapse": [{
2506
- border: ["collapse", "separate"]
2507
- }],
2508
- /**
2509
- * Border Spacing
2510
- * @see https://tailwindcss.com/docs/border-spacing
2511
- */
2512
- "border-spacing": [{
2513
- "border-spacing": scaleUnambiguousSpacing()
2514
- }],
2515
- /**
2516
- * Border Spacing X
2517
- * @see https://tailwindcss.com/docs/border-spacing
2518
- */
2519
- "border-spacing-x": [{
2520
- "border-spacing-x": scaleUnambiguousSpacing()
2521
- }],
2522
- /**
2523
- * Border Spacing Y
2524
- * @see https://tailwindcss.com/docs/border-spacing
2525
- */
2526
- "border-spacing-y": [{
2527
- "border-spacing-y": scaleUnambiguousSpacing()
2528
- }],
2529
- /**
2530
- * Table Layout
2531
- * @see https://tailwindcss.com/docs/table-layout
2532
- */
2533
- "table-layout": [{
2534
- table: ["auto", "fixed"]
2535
- }],
2536
- /**
2537
- * Caption Side
2538
- * @see https://tailwindcss.com/docs/caption-side
2539
- */
2540
- caption: [{
2541
- caption: ["top", "bottom"]
2542
- }],
2543
- // ---------------------------------
2544
- // --- Transitions and Animation ---
2545
- // ---------------------------------
2546
- /**
2547
- * Transition Property
2548
- * @see https://tailwindcss.com/docs/transition-property
2549
- */
2550
- transition: [{
2551
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
2552
- }],
2553
- /**
2554
- * Transition Behavior
2555
- * @see https://tailwindcss.com/docs/transition-behavior
2556
- */
2557
- "transition-behavior": [{
2558
- transition: ["normal", "discrete"]
2559
- }],
2560
- /**
2561
- * Transition Duration
2562
- * @see https://tailwindcss.com/docs/transition-duration
2563
- */
2564
- duration: [{
2565
- duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
2566
- }],
2567
- /**
2568
- * Transition Timing Function
2569
- * @see https://tailwindcss.com/docs/transition-timing-function
2570
- */
2571
- ease: [{
2572
- ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
2573
- }],
2574
- /**
2575
- * Transition Delay
2576
- * @see https://tailwindcss.com/docs/transition-delay
2577
- */
2578
- delay: [{
2579
- delay: [isNumber, isArbitraryVariable, isArbitraryValue]
2580
- }],
2581
- /**
2582
- * Animation
2583
- * @see https://tailwindcss.com/docs/animation
2584
- */
2585
- animate: [{
2586
- animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
2587
- }],
2588
- // ------------------
2589
- // --- Transforms ---
2590
- // ------------------
2591
- /**
2592
- * Backface Visibility
2593
- * @see https://tailwindcss.com/docs/backface-visibility
2594
- */
2595
- backface: [{
2596
- backface: ["hidden", "visible"]
2597
- }],
2598
- /**
2599
- * Perspective
2600
- * @see https://tailwindcss.com/docs/perspective
2601
- */
2602
- perspective: [{
2603
- perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
2604
- }],
2605
- /**
2606
- * Perspective Origin
2607
- * @see https://tailwindcss.com/docs/perspective-origin
2608
- */
2609
- "perspective-origin": [{
2610
- "perspective-origin": scalePositionWithArbitrary()
2611
- }],
2612
- /**
2613
- * Rotate
2614
- * @see https://tailwindcss.com/docs/rotate
2615
- */
2616
- rotate: [{
2617
- rotate: scaleRotate()
2618
- }],
2619
- /**
2620
- * Rotate X
2621
- * @see https://tailwindcss.com/docs/rotate
2622
- */
2623
- "rotate-x": [{
2624
- "rotate-x": scaleRotate()
2625
- }],
2626
- /**
2627
- * Rotate Y
2628
- * @see https://tailwindcss.com/docs/rotate
2629
- */
2630
- "rotate-y": [{
2631
- "rotate-y": scaleRotate()
2632
- }],
2633
- /**
2634
- * Rotate Z
2635
- * @see https://tailwindcss.com/docs/rotate
2636
- */
2637
- "rotate-z": [{
2638
- "rotate-z": scaleRotate()
2639
- }],
2640
- /**
2641
- * Scale
2642
- * @see https://tailwindcss.com/docs/scale
2643
- */
2644
- scale: [{
2645
- scale: scaleScale()
2646
- }],
2647
- /**
2648
- * Scale X
2649
- * @see https://tailwindcss.com/docs/scale
2650
- */
2651
- "scale-x": [{
2652
- "scale-x": scaleScale()
2653
- }],
2654
- /**
2655
- * Scale Y
2656
- * @see https://tailwindcss.com/docs/scale
2657
- */
2658
- "scale-y": [{
2659
- "scale-y": scaleScale()
2660
- }],
2661
- /**
2662
- * Scale Z
2663
- * @see https://tailwindcss.com/docs/scale
2664
- */
2665
- "scale-z": [{
2666
- "scale-z": scaleScale()
2667
- }],
2668
- /**
2669
- * Scale 3D
2670
- * @see https://tailwindcss.com/docs/scale
2671
- */
2672
- "scale-3d": ["scale-3d"],
2673
- /**
2674
- * Skew
2675
- * @see https://tailwindcss.com/docs/skew
2676
- */
2677
- skew: [{
2678
- skew: scaleSkew()
2679
- }],
2680
- /**
2681
- * Skew X
2682
- * @see https://tailwindcss.com/docs/skew
2683
- */
2684
- "skew-x": [{
2685
- "skew-x": scaleSkew()
2686
- }],
2687
- /**
2688
- * Skew Y
2689
- * @see https://tailwindcss.com/docs/skew
2690
- */
2691
- "skew-y": [{
2692
- "skew-y": scaleSkew()
2693
- }],
2694
- /**
2695
- * Transform
2696
- * @see https://tailwindcss.com/docs/transform
2697
- */
2698
- transform: [{
2699
- transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
2700
- }],
2701
- /**
2702
- * Transform Origin
2703
- * @see https://tailwindcss.com/docs/transform-origin
2704
- */
2705
- "transform-origin": [{
2706
- origin: scalePositionWithArbitrary()
2707
- }],
2708
- /**
2709
- * Transform Style
2710
- * @see https://tailwindcss.com/docs/transform-style
2711
- */
2712
- "transform-style": [{
2713
- transform: ["3d", "flat"]
2714
- }],
2715
- /**
2716
- * Translate
2717
- * @see https://tailwindcss.com/docs/translate
2718
- */
2719
- translate: [{
2720
- translate: scaleTranslate()
2721
- }],
2722
- /**
2723
- * Translate X
2724
- * @see https://tailwindcss.com/docs/translate
2725
- */
2726
- "translate-x": [{
2727
- "translate-x": scaleTranslate()
2728
- }],
2729
- /**
2730
- * Translate Y
2731
- * @see https://tailwindcss.com/docs/translate
2732
- */
2733
- "translate-y": [{
2734
- "translate-y": scaleTranslate()
2735
- }],
2736
- /**
2737
- * Translate Z
2738
- * @see https://tailwindcss.com/docs/translate
2739
- */
2740
- "translate-z": [{
2741
- "translate-z": scaleTranslate()
2742
- }],
2743
- /**
2744
- * Translate None
2745
- * @see https://tailwindcss.com/docs/translate
2746
- */
2747
- "translate-none": ["translate-none"],
2748
- // ---------------------
2749
- // --- Interactivity ---
2750
- // ---------------------
2751
- /**
2752
- * Accent Color
2753
- * @see https://tailwindcss.com/docs/accent-color
2754
- */
2755
- accent: [{
2756
- accent: scaleColor()
2757
- }],
2758
- /**
2759
- * Appearance
2760
- * @see https://tailwindcss.com/docs/appearance
2761
- */
2762
- appearance: [{
2763
- appearance: ["none", "auto"]
2764
- }],
2765
- /**
2766
- * Caret Color
2767
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2768
- */
2769
- "caret-color": [{
2770
- caret: scaleColor()
2771
- }],
2772
- /**
2773
- * Color Scheme
2774
- * @see https://tailwindcss.com/docs/color-scheme
2775
- */
2776
- "color-scheme": [{
2777
- scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
2778
- }],
2779
- /**
2780
- * Cursor
2781
- * @see https://tailwindcss.com/docs/cursor
2782
- */
2783
- cursor: [{
2784
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue]
2785
- }],
2786
- /**
2787
- * Field Sizing
2788
- * @see https://tailwindcss.com/docs/field-sizing
2789
- */
2790
- "field-sizing": [{
2791
- "field-sizing": ["fixed", "content"]
2792
- }],
2793
- /**
2794
- * Pointer Events
2795
- * @see https://tailwindcss.com/docs/pointer-events
2796
- */
2797
- "pointer-events": [{
2798
- "pointer-events": ["auto", "none"]
2799
- }],
2800
- /**
2801
- * Resize
2802
- * @see https://tailwindcss.com/docs/resize
2803
- */
2804
- resize: [{
2805
- resize: ["none", "", "y", "x"]
2806
- }],
2807
- /**
2808
- * Scroll Behavior
2809
- * @see https://tailwindcss.com/docs/scroll-behavior
2810
- */
2811
- "scroll-behavior": [{
2812
- scroll: ["auto", "smooth"]
2813
- }],
2814
- /**
2815
- * Scroll Margin
2816
- * @see https://tailwindcss.com/docs/scroll-margin
2817
- */
2818
- "scroll-m": [{
2819
- "scroll-m": scaleUnambiguousSpacing()
2820
- }],
2821
- /**
2822
- * Scroll Margin X
2823
- * @see https://tailwindcss.com/docs/scroll-margin
2824
- */
2825
- "scroll-mx": [{
2826
- "scroll-mx": scaleUnambiguousSpacing()
2827
- }],
2828
- /**
2829
- * Scroll Margin Y
2830
- * @see https://tailwindcss.com/docs/scroll-margin
2831
- */
2832
- "scroll-my": [{
2833
- "scroll-my": scaleUnambiguousSpacing()
2834
- }],
2835
- /**
2836
- * Scroll Margin Start
2837
- * @see https://tailwindcss.com/docs/scroll-margin
2838
- */
2839
- "scroll-ms": [{
2840
- "scroll-ms": scaleUnambiguousSpacing()
2841
- }],
2842
- /**
2843
- * Scroll Margin End
2844
- * @see https://tailwindcss.com/docs/scroll-margin
2845
- */
2846
- "scroll-me": [{
2847
- "scroll-me": scaleUnambiguousSpacing()
2848
- }],
2849
- /**
2850
- * Scroll Margin Top
2851
- * @see https://tailwindcss.com/docs/scroll-margin
2852
- */
2853
- "scroll-mt": [{
2854
- "scroll-mt": scaleUnambiguousSpacing()
2855
- }],
2856
- /**
2857
- * Scroll Margin Right
2858
- * @see https://tailwindcss.com/docs/scroll-margin
2859
- */
2860
- "scroll-mr": [{
2861
- "scroll-mr": scaleUnambiguousSpacing()
2862
- }],
2863
- /**
2864
- * Scroll Margin Bottom
2865
- * @see https://tailwindcss.com/docs/scroll-margin
2866
- */
2867
- "scroll-mb": [{
2868
- "scroll-mb": scaleUnambiguousSpacing()
2869
- }],
2870
- /**
2871
- * Scroll Margin Left
2872
- * @see https://tailwindcss.com/docs/scroll-margin
2873
- */
2874
- "scroll-ml": [{
2875
- "scroll-ml": scaleUnambiguousSpacing()
2876
- }],
2877
- /**
2878
- * Scroll Padding
2879
- * @see https://tailwindcss.com/docs/scroll-padding
2880
- */
2881
- "scroll-p": [{
2882
- "scroll-p": scaleUnambiguousSpacing()
2883
- }],
2884
- /**
2885
- * Scroll Padding X
2886
- * @see https://tailwindcss.com/docs/scroll-padding
2887
- */
2888
- "scroll-px": [{
2889
- "scroll-px": scaleUnambiguousSpacing()
2890
- }],
2891
- /**
2892
- * Scroll Padding Y
2893
- * @see https://tailwindcss.com/docs/scroll-padding
2894
- */
2895
- "scroll-py": [{
2896
- "scroll-py": scaleUnambiguousSpacing()
2897
- }],
2898
- /**
2899
- * Scroll Padding Start
2900
- * @see https://tailwindcss.com/docs/scroll-padding
2901
- */
2902
- "scroll-ps": [{
2903
- "scroll-ps": scaleUnambiguousSpacing()
2904
- }],
2905
- /**
2906
- * Scroll Padding End
2907
- * @see https://tailwindcss.com/docs/scroll-padding
2908
- */
2909
- "scroll-pe": [{
2910
- "scroll-pe": scaleUnambiguousSpacing()
2911
- }],
2912
- /**
2913
- * Scroll Padding Top
2914
- * @see https://tailwindcss.com/docs/scroll-padding
2915
- */
2916
- "scroll-pt": [{
2917
- "scroll-pt": scaleUnambiguousSpacing()
2918
- }],
2919
- /**
2920
- * Scroll Padding Right
2921
- * @see https://tailwindcss.com/docs/scroll-padding
2922
- */
2923
- "scroll-pr": [{
2924
- "scroll-pr": scaleUnambiguousSpacing()
2925
- }],
2926
- /**
2927
- * Scroll Padding Bottom
2928
- * @see https://tailwindcss.com/docs/scroll-padding
2929
- */
2930
- "scroll-pb": [{
2931
- "scroll-pb": scaleUnambiguousSpacing()
2932
- }],
2933
- /**
2934
- * Scroll Padding Left
2935
- * @see https://tailwindcss.com/docs/scroll-padding
2936
- */
2937
- "scroll-pl": [{
2938
- "scroll-pl": scaleUnambiguousSpacing()
2939
- }],
2940
- /**
2941
- * Scroll Snap Align
2942
- * @see https://tailwindcss.com/docs/scroll-snap-align
2943
- */
2944
- "snap-align": [{
2945
- snap: ["start", "end", "center", "align-none"]
2946
- }],
2947
- /**
2948
- * Scroll Snap Stop
2949
- * @see https://tailwindcss.com/docs/scroll-snap-stop
2950
- */
2951
- "snap-stop": [{
2952
- snap: ["normal", "always"]
2953
- }],
2954
- /**
2955
- * Scroll Snap Type
2956
- * @see https://tailwindcss.com/docs/scroll-snap-type
2957
- */
2958
- "snap-type": [{
2959
- snap: ["none", "x", "y", "both"]
2960
- }],
2961
- /**
2962
- * Scroll Snap Type Strictness
2963
- * @see https://tailwindcss.com/docs/scroll-snap-type
2964
- */
2965
- "snap-strictness": [{
2966
- snap: ["mandatory", "proximity"]
2967
- }],
2968
- /**
2969
- * Touch Action
2970
- * @see https://tailwindcss.com/docs/touch-action
2971
- */
2972
- touch: [{
2973
- touch: ["auto", "none", "manipulation"]
2974
- }],
2975
- /**
2976
- * Touch Action X
2977
- * @see https://tailwindcss.com/docs/touch-action
2978
- */
2979
- "touch-x": [{
2980
- "touch-pan": ["x", "left", "right"]
2981
- }],
2982
- /**
2983
- * Touch Action Y
2984
- * @see https://tailwindcss.com/docs/touch-action
2985
- */
2986
- "touch-y": [{
2987
- "touch-pan": ["y", "up", "down"]
2988
- }],
2989
- /**
2990
- * Touch Action Pinch Zoom
2991
- * @see https://tailwindcss.com/docs/touch-action
2992
- */
2993
- "touch-pz": ["touch-pinch-zoom"],
2994
- /**
2995
- * User Select
2996
- * @see https://tailwindcss.com/docs/user-select
2997
- */
2998
- select: [{
2999
- select: ["none", "text", "all", "auto"]
3000
- }],
3001
- /**
3002
- * Will Change
3003
- * @see https://tailwindcss.com/docs/will-change
3004
- */
3005
- "will-change": [{
3006
- "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
3007
- }],
3008
- // -----------
3009
- // --- SVG ---
3010
- // -----------
3011
- /**
3012
- * Fill
3013
- * @see https://tailwindcss.com/docs/fill
3014
- */
3015
- fill: [{
3016
- fill: ["none", ...scaleColor()]
3017
- }],
3018
- /**
3019
- * Stroke Width
3020
- * @see https://tailwindcss.com/docs/stroke-width
3021
- */
3022
- "stroke-w": [{
3023
- stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3024
- }],
3025
- /**
3026
- * Stroke
3027
- * @see https://tailwindcss.com/docs/stroke
3028
- */
3029
- stroke: [{
3030
- stroke: ["none", ...scaleColor()]
3031
- }],
3032
- // ---------------------
3033
- // --- Accessibility ---
3034
- // ---------------------
3035
- /**
3036
- * Forced Color Adjust
3037
- * @see https://tailwindcss.com/docs/forced-color-adjust
3038
- */
3039
- "forced-color-adjust": [{
3040
- "forced-color-adjust": ["auto", "none"]
3041
- }]
3042
- },
3043
- conflictingClassGroups: {
3044
- overflow: ["overflow-x", "overflow-y"],
3045
- overscroll: ["overscroll-x", "overscroll-y"],
3046
- inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
3047
- "inset-x": ["right", "left"],
3048
- "inset-y": ["top", "bottom"],
3049
- flex: ["basis", "grow", "shrink"],
3050
- gap: ["gap-x", "gap-y"],
3051
- p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
3052
- px: ["pr", "pl"],
3053
- py: ["pt", "pb"],
3054
- m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
3055
- mx: ["mr", "ml"],
3056
- my: ["mt", "mb"],
3057
- size: ["w", "h"],
3058
- "font-size": ["leading"],
3059
- "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
3060
- "fvn-ordinal": ["fvn-normal"],
3061
- "fvn-slashed-zero": ["fvn-normal"],
3062
- "fvn-figure": ["fvn-normal"],
3063
- "fvn-spacing": ["fvn-normal"],
3064
- "fvn-fraction": ["fvn-normal"],
3065
- "line-clamp": ["display", "overflow"],
3066
- rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
3067
- "rounded-s": ["rounded-ss", "rounded-es"],
3068
- "rounded-e": ["rounded-se", "rounded-ee"],
3069
- "rounded-t": ["rounded-tl", "rounded-tr"],
3070
- "rounded-r": ["rounded-tr", "rounded-br"],
3071
- "rounded-b": ["rounded-br", "rounded-bl"],
3072
- "rounded-l": ["rounded-tl", "rounded-bl"],
3073
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
3074
- "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
3075
- "border-w-x": ["border-w-r", "border-w-l"],
3076
- "border-w-y": ["border-w-t", "border-w-b"],
3077
- "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
3078
- "border-color-x": ["border-color-r", "border-color-l"],
3079
- "border-color-y": ["border-color-t", "border-color-b"],
3080
- translate: ["translate-x", "translate-y", "translate-none"],
3081
- "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
3082
- "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
3083
- "scroll-mx": ["scroll-mr", "scroll-ml"],
3084
- "scroll-my": ["scroll-mt", "scroll-mb"],
3085
- "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
3086
- "scroll-px": ["scroll-pr", "scroll-pl"],
3087
- "scroll-py": ["scroll-pt", "scroll-pb"],
3088
- touch: ["touch-x", "touch-y", "touch-pz"],
3089
- "touch-x": ["touch"],
3090
- "touch-y": ["touch"],
3091
- "touch-pz": ["touch"]
3092
- },
3093
- conflictingClassGroupModifiers: {
3094
- "font-size": ["leading"]
3095
- },
3096
- orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3097
- };
3098
- };
3099
- var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
3100
-
3101
- // ../shadcn/lib/utils.ts
3102
- function cn(...inputs) {
3103
- return twMerge(clsx(inputs));
3104
- }
3105
-
3106
- // src/alert/alert.tsx
3107
- var import_class_variance_authority = require("class-variance-authority");
3108
- var import_lucide_react = require("lucide-react");
3109
- var React = __toESM(require("react"));
3110
- var import_jsx_runtime = require("react/jsx-runtime");
3111
- var variantDefinitions = {
3112
- default: {
3113
- classes: "bg-background text-foreground",
3114
- closeButtonColor: "text-foreground"
3115
- },
3116
- secondary: {
3117
- classes: "bg-muted text-primary [&>svg]:text-primary",
3118
- closeButtonColor: "text-primary"
3119
- },
3120
- outline: {
3121
- classes: "border-muted text-muted-foreground",
3122
- closeButtonColor: "text-muted-foreground"
3123
- },
3124
- destructive: {
3125
- classes: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
3126
- closeButtonColor: "text-destructive"
3127
- },
3128
- success: {
3129
- classes: "border-success-300 bg-success-100 text-success-500",
3130
- closeButtonColor: "text-success-500"
3131
- },
3132
- info: {
3133
- classes: "border-info-300 bg-info-100 text-info-500! [&>svg]:text-info-500",
3134
- closeButtonColor: "text-info-500"
3135
- },
3136
- warning: {
3137
- classes: "border-yellow-500 bg-yellow-50 text-yellow-700! [&>svg]:text-yellow-700",
3138
- closeButtonColor: "text-yellow-700"
3139
- }
3140
- };
3141
- var alertVariants = (0, import_class_variance_authority.cva)(
3142
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
3143
- {
3144
- variants: {
3145
- variant: {
3146
- default: variantDefinitions.default.classes,
3147
- secondary: variantDefinitions.secondary.classes,
3148
- outline: variantDefinitions.outline.classes,
3149
- destructive: variantDefinitions.destructive.classes,
3150
- success: variantDefinitions.success.classes,
3151
- info: variantDefinitions.info.classes,
3152
- warning: variantDefinitions.warning.classes
3153
- }
3154
- },
3155
- defaultVariants: {
3156
- variant: "default"
3157
- }
3158
- }
3159
- );
3160
- var Alert = (_a) => {
3161
- var _b = _a, { className, variant, closable = false, onClose } = _b, props = __objRest(_b, ["className", "variant", "closable", "onClose"]);
3162
- var _a2;
3163
- const [isVisible, setIsVisible] = React.useState(true);
3164
- const handleClose = () => {
3165
- if (onClose) {
3166
- onClose();
3167
- } else {
3168
- setIsVisible(false);
3169
- }
3170
- };
3171
- if (!isVisible) {
3172
- return null;
3173
- }
3174
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
3175
- "div",
3176
- __spreadProps(__spreadValues({
3177
- role: "alert",
3178
- className: cn(alertVariants({ variant }), closable && "pr-10", className)
3179
- }, props), {
3180
- children: [
3181
- props.children,
3182
- closable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3183
- "span",
3184
- {
3185
- onClick: handleClose,
3186
- role: "button",
3187
- tabIndex: 0,
3188
- onKeyDown: (e) => {
3189
- if (e.key === "Enter" || e.key === " ") {
3190
- e.preventDefault();
3191
- handleClose();
3192
- }
3193
- },
3194
- className: "absolute top-4 right-4 z-10 cursor-pointer opacity-70 transition-opacity hover:opacity-100",
3195
- "aria-label": "Close alert",
3196
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3197
- import_lucide_react.CircleXIcon,
3198
- {
3199
- className: cn("size-4", variant && ((_a2 = variantDefinitions[variant]) == null ? void 0 : _a2.closeButtonColor))
3200
- }
3201
- )
3202
- }
3203
- )
3204
- ]
3205
- })
3206
- );
3207
- };
3208
- var AlertTitle = (_a) => {
3209
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3210
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3211
- "div",
3212
- __spreadValues({
3213
- className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)
3214
- }, props)
3215
- );
3216
- };
3217
- var AlertDescription = (_a) => {
3218
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3219
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3220
- "div",
3221
- __spreadValues({
3222
- className: cn(
3223
- "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
3224
- className
3225
- )
3226
- }, props)
3227
- );
3228
- };
3229
-
3230
- // src/button/button.tsx
3231
- var React2 = __toESM(require("react"));
3232
- var import_class_variance_authority3 = require("class-variance-authority");
3233
-
3234
- // src/icons/icon-wrapper.tsx
3235
- var import_jsx_runtime2 = require("react/jsx-runtime");
3236
- function Icon(_a) {
3237
- var _b = _a, {
3238
- icon: IconComponent,
3239
- strokeWidth = 1,
3240
- absoluteStrokeWidth = true,
3241
- size = 16
3242
- } = _b, props = __objRest(_b, [
3243
- "icon",
3244
- "strokeWidth",
3245
- "absoluteStrokeWidth",
3246
- "size"
3247
- ]);
3248
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3249
- IconComponent,
3250
- __spreadProps(__spreadValues({}, props), {
3251
- strokeWidth,
3252
- absoluteStrokeWidth,
3253
- size
3254
- })
3255
- );
3256
- }
3257
-
3258
- // src/icons/spinner-icon.tsx
3259
- var import_class_variance_authority2 = require("class-variance-authority");
3260
- var import_jsx_runtime3 = require("react/jsx-runtime");
3261
- var spinnerVariants = (0, import_class_variance_authority2.cva)("animate-spin", {
3262
- variants: {
3263
- size: {
3264
- xs: "size-3",
3265
- sm: "size-4",
3266
- md: "size-6",
3267
- lg: "size-8",
3268
- xl: "size-10",
3269
- "2xl": "size-12",
3270
- "3xl": "size-14",
3271
- "4xl": "size-16",
3272
- "5xl": "size-18",
3273
- "6xl": "size-20",
3274
- "7xl": "size-22",
3275
- "8xl": "size-24",
3276
- "9xl": "size-26"
3277
- }
3278
- },
3279
- defaultVariants: {
3280
- size: "md"
3281
- }
3282
- });
3283
- var SpinnerIcon = (_a) => {
3284
- var _b = _a, {
3285
- size,
3286
- className,
3287
- trackClassName = "text-border",
3288
- indicatorClassName = "text-primary"
3289
- } = _b, props = __objRest(_b, [
3290
- "size",
3291
- "className",
3292
- "trackClassName",
3293
- "indicatorClassName"
3294
- ]);
3295
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
3296
- "svg",
3297
- __spreadProps(__spreadValues({
3298
- viewBox: "0 0 64 64",
3299
- fill: "none",
3300
- xmlns: "http://www.w3.org/2000/svg",
3301
- className: cn(spinnerVariants({ size }), className)
3302
- }, props), {
3303
- children: [
3304
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3305
- "path",
3306
- {
3307
- d: "M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",
3308
- stroke: "currentColor",
3309
- strokeWidth: "5",
3310
- strokeLinecap: "round",
3311
- strokeLinejoin: "round",
3312
- className: trackClassName
3313
- }
3314
- ),
3315
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3316
- "path",
3317
- {
3318
- d: "M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",
3319
- stroke: "currentColor",
3320
- strokeWidth: "5",
3321
- strokeLinecap: "round",
3322
- strokeLinejoin: "round",
3323
- className: indicatorClassName
3324
- }
3325
- )
3326
- ]
3327
- })
3328
- );
3329
- };
3330
-
3331
- // src/icons/close-icon.tsx
3332
- var import_jsx_runtime4 = require("react/jsx-runtime");
3333
- var CloseIcon = ({
3334
- className,
3335
- fill = "fill-foreground"
3336
- }) => {
3337
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3338
- "svg",
3339
- {
3340
- width: "17",
3341
- height: "17",
3342
- viewBox: "0 0 17 17",
3343
- fill: "none",
3344
- xmlns: "http://www.w3.org/2000/svg",
3345
- className: cn("transition-opacity hover:opacity-90", className),
3346
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3347
- "path",
3348
- {
3349
- opacity: "0.2",
3350
- d: "M2.38191 2.38176C5.55755 -0.793655 10.7065 -0.793755 13.8821 2.38176C17.0576 5.55733 17.0575 10.7063 13.8821 13.8819C10.7064 17.0576 5.55755 17.0575 2.38191 13.8819C-0.793671 10.7063 -0.793707 5.55738 2.38191 2.38176ZM6.76887 8.15117L4.4107 10.5093L5.76346 11.8621L8.12163 9.50393L10.486 11.8683L11.8388 10.5156L9.47439 8.15117L11.8519 5.77366L10.4991 4.42091L8.12163 6.79841L5.75034 4.42712L4.39758 5.77988L6.76887 8.15117Z",
3351
- className: fill
3352
- }
3353
- )
3354
- }
3355
- );
3356
- };
3357
-
3358
- // src/button/button.tsx
3359
- var import_jsx_runtime5 = require("react/jsx-runtime");
3360
- var buttonVariants = (0, import_class_variance_authority3.cva)(
3361
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50",
3362
- {
3363
- variants: {
3364
- type: {
3365
- primary: "",
3366
- secondary: "",
3367
- tertiary: "",
3368
- quaternary: "",
3369
- warning: "",
3370
- danger: "",
3371
- success: ""
3372
- },
3373
- theme: {
3374
- solid: "",
3375
- light: "",
3376
- outline: "border",
3377
- borderless: "border-0 bg-transparent",
3378
- link: "text-primary underline-offset-2 underline hover:opacity-80"
3379
- },
3380
- size: {
3381
- xs: "h-7 px-2.5 text-xs",
3382
- small: "h-9 px-3 text-xs",
3383
- default: "h-9 px-4 py-2",
3384
- large: "h-11 px-8 text-base",
3385
- icon: "h-9 w-9",
3386
- link: "px-0 py-0"
3387
- },
3388
- block: {
3389
- true: "w-full",
3390
- false: ""
3391
- }
3392
- },
3393
- compoundVariants: [
3394
- // Primary button variants
3395
- {
3396
- type: "primary",
3397
- theme: "solid",
3398
- className: "bg-btn-primary border border-primary text-primary-foreground hover:bg-primary active:bg-primary disabled:bg-primary/60"
3399
- },
3400
- {
3401
- type: "primary",
3402
- theme: "light",
3403
- className: "bg-gray-200 text-primary hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3404
- },
3405
- {
3406
- type: "primary",
3407
- theme: "outline",
3408
- className: "border-primary text-primary hover:bg-primary hover:text-primary-foreground active:bg-primary/90 active:text-primary-foreground"
3409
- },
3410
- {
3411
- type: "primary",
3412
- theme: "borderless",
3413
- className: "text-primary hover:bg-gray-200 active:bg-gray-300 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3414
- },
3415
- // Secondary button variants
3416
- {
3417
- type: "secondary",
3418
- theme: "solid",
3419
- className: "bg-btn-secondary border border-secondary text-secondary-foreground hover:bg-secondary active:bg-secondary disabled:bg-secondary/60"
3420
- },
3421
- {
3422
- type: "secondary",
3423
- theme: "light",
3424
- className: "bg-gray-200 text-secondary hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3425
- },
3426
- {
3427
- type: "secondary",
3428
- theme: "outline",
3429
- className: "border-secondary/90 hover:border-secondary text-secondary active:bg-secondary/90 active:text-secondary-foreground"
3430
- },
3431
- {
3432
- type: "secondary",
3433
- theme: "borderless",
3434
- className: "text-secondary hover:bg-gray-200 active:bg-gray-300 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3435
- },
3436
- // Tertiary button variants
3437
- {
3438
- type: "tertiary",
3439
- theme: "solid",
3440
- className: "bg-btn-tertiary border border-tertiary text-tertiary-foreground hover:bg-tertiary active:bg-tertiary disabled:bg-tertiary/60"
3441
- },
3442
- {
3443
- type: "tertiary",
3444
- theme: "light",
3445
- className: "bg-gray-200 text-tertiary hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3446
- },
3447
- {
3448
- type: "tertiary",
3449
- theme: "outline",
3450
- className: "border-tertiary text-tertiary hover:bg-tertiary hover:text-tertiary-foreground active:bg-tertiary/90 active:text-tertiary-foreground"
3451
- },
3452
- {
3453
- type: "tertiary",
3454
- theme: "borderless",
3455
- className: "text-tertiary hover:bg-gray-200 active:bg-gray-300 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3456
- },
3457
- // Quaternary button variants
3458
- {
3459
- type: "quaternary",
3460
- theme: "solid",
3461
- className: "bg-btn-quaternary border border-quaternary text-quaternary-foreground hover:bg-quaternary active:bg-quaternary disabled:bg-quaternary/60"
3462
- },
3463
- {
3464
- type: "quaternary",
3465
- theme: "light",
3466
- className: "bg-gray-200 text-quaternary-foreground hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500 dark:text-quaternary-foreground"
3467
- },
3468
- {
3469
- type: "quaternary",
3470
- theme: "outline",
3471
- className: "border-quaternary text-quaternary-foreground hover:border-btn-quaternary-hover hover:text-quaternary-foreground active:bg-quaternary/90 active:text-quaternary-foreground"
3472
- },
3473
- {
3474
- type: "quaternary",
3475
- theme: "borderless",
3476
- className: "text-quaternary-foreground hover:bg-gray-200 active:bg-gray-300 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3477
- },
3478
- // Warning button variants
3479
- {
3480
- type: "warning",
3481
- theme: "solid",
3482
- className: "bg-yellow-600 text-white hover:bg-yellow-700 active:bg-yellow-800 dark:bg-yellow-500 dark:hover:bg-yellow-600 dark:active:bg-yellow-700"
3483
- },
3484
- {
3485
- type: "warning",
3486
- theme: "light",
3487
- className: "bg-gray-200 text-yellow-600 hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:text-yellow-400 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3488
- },
3489
- {
3490
- type: "warning",
3491
- theme: "outline",
3492
- className: "border-yellow-600 text-yellow-600 hover:bg-yellow-600 hover:text-white active:bg-yellow-700 active:text-white dark:border-yellow-500 dark:text-yellow-500 dark:hover:bg-yellow-500 dark:hover:text-white dark:active:bg-yellow-600 dark:active:text-white"
3493
- },
3494
- {
3495
- type: "warning",
3496
- theme: "borderless",
3497
- className: "text-yellow-600 hover:bg-gray-200 active:bg-gray-300 dark:text-yellow-400 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3498
- },
3499
- // Danger button variants
3500
- {
3501
- type: "danger",
3502
- theme: "solid",
3503
- className: "bg-destructive text-destructive-foreground hover:bg-destructive/90 active:bg-destructive/80"
3504
- },
3505
- {
3506
- type: "danger",
3507
- theme: "light",
3508
- className: "bg-gray-200 text-destructive hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3509
- },
3510
- {
3511
- type: "danger",
3512
- theme: "outline",
3513
- className: "border-destructive text-destructive hover:bg-destructive hover:text-destructive-foreground active:bg-destructive/90 active:text-destructive-foreground"
3514
- },
3515
- {
3516
- type: "danger",
3517
- theme: "borderless",
3518
- className: "text-destructive hover:bg-gray-200 active:bg-gray-300 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3519
- },
3520
- // Success button variants
3521
- {
3522
- type: "success",
3523
- theme: "solid",
3524
- className: "bg-green-600 text-white hover:bg-green-700 active:bg-green-800 dark:bg-green-500 dark:hover:bg-green-600 dark:active:bg-green-700"
3525
- },
3526
- {
3527
- type: "success",
3528
- theme: "light",
3529
- className: "bg-gray-200 text-green-600 hover:bg-gray-300 active:bg-gray-400 dark:bg-gray-700 dark:text-green-400 dark:hover:bg-gray-600 dark:active:bg-gray-500"
3530
- },
3531
- {
3532
- type: "success",
3533
- theme: "outline",
3534
- className: "border-green-600 text-green-600 hover:bg-green-600 hover:text-white active:bg-green-700 active:text-white dark:border-green-500 dark:text-green-500 dark:hover:bg-green-500 dark:hover:text-white dark:active:bg-green-600 dark:active:text-white"
3535
- },
3536
- {
3537
- type: "success",
3538
- theme: "borderless",
3539
- className: "text-green-600 hover:bg-gray-200 active:bg-gray-300 dark:text-green-400 dark:hover:bg-gray-700 dark:active:bg-gray-600"
3540
- }
3541
- ],
3542
- defaultVariants: {
3543
- type: "primary",
3544
- theme: "solid",
3545
- size: "default",
3546
- block: false
3547
- }
3548
- }
3549
- );
3550
- var Button = React2.forwardRef(
3551
- (_a, ref) => {
3552
- var _b = _a, {
3553
- className,
3554
- type,
3555
- theme,
3556
- size,
3557
- block,
3558
- loading = false,
3559
- disabled,
3560
- icon,
3561
- iconPosition = "left",
3562
- loadingIcon,
3563
- htmlType = "button",
3564
- children
3565
- } = _b, props = __objRest(_b, [
3566
- "className",
3567
- "type",
3568
- "theme",
3569
- "size",
3570
- "block",
3571
- "loading",
3572
- "disabled",
3573
- "icon",
3574
- "iconPosition",
3575
- "loadingIcon",
3576
- "htmlType",
3577
- "children"
3578
- ]);
3579
- const isDisabled = disabled || loading;
3580
- const isIconOnly = (icon || loading) && !children;
3581
- const showIcon = !loading && icon;
3582
- const getLoadingIcon = () => {
3583
- return loadingIcon || /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3584
- SpinnerIcon,
3585
- {
3586
- "aria-hidden": "true",
3587
- size: size === "small" ? "xs" : size === "large" ? "sm" : "md"
3588
- }
3589
- );
3590
- };
3591
- const showLoadingIcon = loading && (isIconOnly ? getLoadingIcon() : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SpinnerIcon, { size: "sm", "aria-hidden": "true" }));
3592
- const getIconOnlyClass = () => {
3593
- if (!isIconOnly || size === "icon") return "";
3594
- if (size === "small") return "w-8 px-0";
3595
- if (size === "large") return "w-11 px-0";
3596
- return "w-9 px-0";
3597
- };
3598
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3599
- "button",
3600
- __spreadProps(__spreadValues({
3601
- className: cn(buttonVariants({ type, theme, size, block }), getIconOnlyClass(), className),
3602
- disabled: isDisabled,
3603
- ref,
3604
- type: htmlType
3605
- }, props), {
3606
- children: isIconOnly ? loading ? showLoadingIcon : showIcon && icon : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
3607
- showLoadingIcon && showLoadingIcon,
3608
- showIcon && iconPosition === "left" && icon,
3609
- children,
3610
- showIcon && iconPosition === "right" && icon
3611
- ] })
3612
- })
3613
- );
3614
- }
3615
- );
3616
- Button.displayName = "Button";
3617
-
3618
- // src/button/link-button.tsx
3619
- var React3 = __toESM(require("react"));
3620
- var import_react_router = require("react-router");
3621
- var import_jsx_runtime6 = require("react/jsx-runtime");
3622
- var LinkButton = React3.forwardRef(
3623
- (_a, ref) => {
3624
- var _b = _a, { className, type, theme, size, block, icon, iconPosition = "left", children } = _b, props = __objRest(_b, ["className", "type", "theme", "size", "block", "icon", "iconPosition", "children"]);
3625
- const isIconOnly = icon && !children;
3626
- const getIconOnlyClass = () => {
3627
- if (!isIconOnly || size === "icon") return "";
3628
- if (size === "small") return "w-8 px-0";
3629
- if (size === "large") return "w-11 px-0";
3630
- return "w-9 px-0";
3631
- };
3632
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3633
- import_react_router.Link,
3634
- __spreadProps(__spreadValues({
3635
- className: cn(buttonVariants({ type, theme, size, block }), getIconOnlyClass(), className),
3636
- ref
3637
- }, props), {
3638
- children: isIconOnly ? icon : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
3639
- icon && iconPosition === "left" && icon,
3640
- children,
3641
- icon && iconPosition === "right" && icon
3642
- ] })
3643
- })
3644
- );
3645
- }
3646
- );
3647
- LinkButton.displayName = "LinkButton";
3648
-
3649
- // src/tooltip/tooltip.tsx
3650
- var TooltipPrimitiveRadix = __toESM(require("@radix-ui/react-tooltip"));
3651
-
3652
- // ../shadcn/ui/tooltip.tsx
3653
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
3654
- var import_jsx_runtime7 = require("react/jsx-runtime");
3655
- var TooltipProvider = (_a) => {
3656
- var _b = _a, {
3657
- delayDuration = 0
3658
- } = _b, props = __objRest(_b, [
3659
- "delayDuration"
3660
- ]);
3661
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3662
- TooltipPrimitive.Provider,
3663
- __spreadValues({
3664
- "data-slot": "tooltip-provider",
3665
- delayDuration
3666
- }, props)
3667
- );
3668
- };
3669
- var Tooltip = (_a) => {
3670
- var props = __objRest(_a, []);
3671
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
3672
- };
3673
- var TooltipTrigger = (_a) => {
3674
- var props = __objRest(_a, []);
3675
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
3676
- };
3677
-
3678
- // src/tooltip/tooltip.tsx
3679
- var import_jsx_runtime8 = require("react/jsx-runtime");
3680
- var TooltipContent = (_a) => {
3681
- var _b = _a, {
3682
- className,
3683
- arrowClassName,
3684
- sideOffset = 0,
3685
- children
3686
- } = _b, props = __objRest(_b, [
3687
- "className",
3688
- "arrowClassName",
3689
- "sideOffset",
3690
- "children"
3691
- ]);
3692
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipPrimitiveRadix.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3693
- TooltipPrimitiveRadix.Content,
3694
- __spreadProps(__spreadValues({
3695
- "data-slot": "tooltip-content",
3696
- sideOffset,
3697
- className: cn(
3698
- "tooltip-content",
3699
- "bg-secondary text-secondary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",
3700
- className
3701
- )
3702
- }, props), {
3703
- children: [
3704
- children,
3705
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3706
- TooltipPrimitiveRadix.Arrow,
3707
- {
3708
- className: cn(
3709
- "fill-secondary -my-px border-none drop-shadow-[0_1px_0_secondary]",
3710
- arrowClassName
3711
- ),
3712
- width: 12,
3713
- height: 7,
3714
- "aria-hidden": "true"
3715
- }
3716
- )
3717
- ]
3718
- })
3719
- ) });
3720
- };
3721
- var Tooltip2 = ({
3722
- message,
3723
- children,
3724
- delayDuration = 200,
3725
- side,
3726
- align,
3727
- sideOffset,
3728
- hidden,
3729
- open,
3730
- onOpenChange,
3731
- contentClassName,
3732
- arrowClassName
3733
- }) => {
3734
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Tooltip, { delayDuration, open, onOpenChange, children: [
3735
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipTrigger, { asChild: true, children }),
3736
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3737
- TooltipContent,
3738
- {
3739
- side,
3740
- align,
3741
- sideOffset,
3742
- hidden,
3743
- className: contentClassName,
3744
- arrowClassName,
3745
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: message })
3746
- }
3747
- )
3748
- ] });
3749
- };
3750
- // Annotate the CommonJS export names for ESM import in node:
3751
- 0 && (module.exports = {
3752
- Alert,
3753
- AlertDescription,
3754
- AlertTitle,
3755
- Button,
3756
- CloseIcon,
3757
- Icon,
3758
- LinkButton,
3759
- SpinnerIcon,
3760
- Tooltip,
3761
- TooltipContent,
3762
- alertVariants,
3763
- buttonVariants,
3764
- cn
3765
- });