@betterinternship/components 1.6.1 → 2.0.0

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 (394) hide show
  1. package/README.md +14 -0
  2. package/dist/components/ui/accordion.js.map +1 -1
  3. package/dist/components/ui/avatar.js.map +1 -1
  4. package/dist/components/ui/badge.js.map +1 -1
  5. package/dist/components/ui/button.js.map +1 -1
  6. package/dist/components/ui/card.js.map +1 -1
  7. package/dist/components/ui/checkbox.js.map +1 -1
  8. package/dist/components/ui/dialog.js.map +1 -1
  9. package/dist/components/ui/icons.js.map +1 -1
  10. package/dist/components/ui/input.js.map +1 -1
  11. package/dist/components/ui/label.js.map +1 -1
  12. package/dist/components/ui/popover.js.map +1 -1
  13. package/dist/components/ui/separator.js.map +1 -1
  14. package/dist/components/ui/skeleton.js.map +1 -1
  15. package/dist/components/ui/switch.js.map +1 -1
  16. package/dist/components/ui/table.js.map +1 -1
  17. package/dist/components/ui/textarea.js.map +1 -1
  18. package/dist/components/ui/tooltip.js.map +1 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/hooks/useClientProcess.js.map +1 -1
  21. package/dist/index.js +0 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/{components → src/components}/ui/badge.d.ts +1 -1
  24. package/dist/src/components/ui/button.test.d.ts +1 -0
  25. package/dist/src/index.d.ts +20 -0
  26. package/dist/utils.js.map +1 -1
  27. package/dist/vitest.config.d.ts +2 -0
  28. package/dist/vitest.setup.d.ts +1 -0
  29. package/package.json +14 -5
  30. package/theme.css +223 -0
  31. package/dist/components/Accordion.d.ts +0 -7
  32. package/dist/components/Avatar.d.ts +0 -6
  33. package/dist/components/Badge.d.ts +0 -21
  34. package/dist/components/Button.d.ts +0 -12
  35. package/dist/components/Button.js +0 -77
  36. package/dist/components/Button.js.map +0 -1
  37. package/dist/components/Calendar.d.ts +0 -7
  38. package/dist/components/Input.d.ts +0 -3
  39. package/dist/components/ui/calendar.js +0 -51
  40. package/dist/components/ui/calendar.js.map +0 -1
  41. package/dist/index.css.js +0 -7
  42. package/dist/index.css.js.map +0 -1
  43. package/dist/index.d.ts +0 -22
  44. package/dist/index.esm.js +0 -3761
  45. package/dist/index.esm.js.map +0 -1
  46. package/dist/node_modules/@date-fns/tz/date/index.js +0 -84
  47. package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
  48. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -451
  49. package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
  50. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -40
  51. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  52. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -57
  53. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
  54. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  55. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  56. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  57. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  58. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  59. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  60. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  61. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  62. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  63. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  64. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  65. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  66. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  67. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  68. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
  69. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
  70. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  71. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  72. package/dist/node_modules/date-fns/addDays.js +0 -61
  73. package/dist/node_modules/date-fns/addDays.js.map +0 -1
  74. package/dist/node_modules/date-fns/addMonths.js +0 -76
  75. package/dist/node_modules/date-fns/addMonths.js.map +0 -1
  76. package/dist/node_modules/date-fns/addWeeks.js +0 -34
  77. package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
  78. package/dist/node_modules/date-fns/addYears.js +0 -34
  79. package/dist/node_modules/date-fns/addYears.js.map +0 -1
  80. package/dist/node_modules/date-fns/constants.js +0 -47
  81. package/dist/node_modules/date-fns/constants.js.map +0 -1
  82. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  83. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  84. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  85. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  86. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -43
  87. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  88. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -66
  89. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
  90. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -66
  91. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
  92. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -36
  93. package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
  94. package/dist/node_modules/date-fns/endOfMonth.js +0 -38
  95. package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
  96. package/dist/node_modules/date-fns/endOfWeek.js +0 -54
  97. package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
  98. package/dist/node_modules/date-fns/endOfYear.js +0 -38
  99. package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
  100. package/dist/node_modules/date-fns/format.js +0 -424
  101. package/dist/node_modules/date-fns/format.js.map +0 -1
  102. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  103. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  104. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -37
  105. package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  106. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  107. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  108. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  109. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  110. package/dist/node_modules/date-fns/getMonth.js +0 -30
  111. package/dist/node_modules/date-fns/getMonth.js.map +0 -1
  112. package/dist/node_modules/date-fns/getWeek.js +0 -55
  113. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  114. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  115. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  116. package/dist/node_modules/date-fns/getYear.js +0 -30
  117. package/dist/node_modules/date-fns/getYear.js.map +0 -1
  118. package/dist/node_modules/date-fns/isAfter.js +0 -26
  119. package/dist/node_modules/date-fns/isAfter.js.map +0 -1
  120. package/dist/node_modules/date-fns/isBefore.js +0 -26
  121. package/dist/node_modules/date-fns/isBefore.js.map +0 -1
  122. package/dist/node_modules/date-fns/isDate.js +0 -42
  123. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  124. package/dist/node_modules/date-fns/isSameDay.js +0 -47
  125. package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
  126. package/dist/node_modules/date-fns/isSameMonth.js +0 -44
  127. package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
  128. package/dist/node_modules/date-fns/isSameYear.js +0 -36
  129. package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
  130. package/dist/node_modules/date-fns/isValid.js +0 -40
  131. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  132. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -11
  133. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  134. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -65
  135. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  136. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -60
  137. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  138. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -23
  139. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  140. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  141. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  142. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  143. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  144. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  145. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  146. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  147. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  148. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  149. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  150. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  151. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  152. package/dist/node_modules/date-fns/max.js +0 -50
  153. package/dist/node_modules/date-fns/max.js.map +0 -1
  154. package/dist/node_modules/date-fns/min.js +0 -50
  155. package/dist/node_modules/date-fns/min.js.map +0 -1
  156. package/dist/node_modules/date-fns/setMonth.js +0 -47
  157. package/dist/node_modules/date-fns/setMonth.js.map +0 -1
  158. package/dist/node_modules/date-fns/setYear.js +0 -41
  159. package/dist/node_modules/date-fns/setYear.js.map +0 -1
  160. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  161. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  162. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  163. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  164. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  165. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  166. package/dist/node_modules/date-fns/startOfMonth.js +0 -38
  167. package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
  168. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  169. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  170. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  171. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  172. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  173. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  174. package/dist/node_modules/date-fns/toDate.js +0 -47
  175. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  176. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -347
  177. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
  178. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -123
  179. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
  180. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -34
  181. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
  182. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -15
  183. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -14
  185. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -600
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
  188. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -14
  189. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -19
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -20
  195. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -24
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
  198. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -14
  199. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
  200. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -14
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -16
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -15
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
  206. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -14
  207. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -14
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
  210. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -16
  211. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -32
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
  214. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -14
  215. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -14
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
  218. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -14
  219. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -14
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -15
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
  226. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -15
  227. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
  228. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -14
  229. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -14
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
  232. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -15
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -14
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
  236. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -16
  237. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
  238. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  239. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -21
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -20
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -19
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -22
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -14
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -20
  251. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
  252. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -18
  253. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
  254. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -8
  255. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -74
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -96
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -23
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -29
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -34
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -21
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -28
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -60
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -20
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -34
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -25
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -47
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -18
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -54
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -34
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -70
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -32
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -41
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -37
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -38
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -28
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -27
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -15
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -37
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -28
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -32
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
  310. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -12
  311. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
  312. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -28
  313. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
  314. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -21
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -23
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -15
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -14
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -17
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -16
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -16
  327. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
  328. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -15
  329. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
  330. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -19
  331. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
  332. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -15
  333. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
  334. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -68
  335. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
  336. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -164
  337. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
  338. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -58
  339. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
  340. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -64
  341. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
  342. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -45
  343. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
  344. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  345. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  346. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -114
  347. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
  348. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -26
  349. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
  350. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -57
  351. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
  352. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -32
  353. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
  354. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -96
  355. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
  356. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -62
  357. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
  358. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -63
  359. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
  360. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -31
  361. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
  362. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -75
  363. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
  364. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -36
  365. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
  366. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -22
  367. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
  368. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -17
  369. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
  370. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -67
  371. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
  372. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -29
  373. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  374. package/dist/utilities/Icons.d.ts +0 -33
  375. /package/dist/{components → src/components}/ui/accordion.d.ts +0 -0
  376. /package/dist/{components → src/components}/ui/avatar.d.ts +0 -0
  377. /package/dist/{components → src/components}/ui/button.d.ts +0 -0
  378. /package/dist/{components → src/components}/ui/calendar.d.ts +0 -0
  379. /package/dist/{components → src/components}/ui/card.d.ts +0 -0
  380. /package/dist/{components → src/components}/ui/checkbox.d.ts +0 -0
  381. /package/dist/{components → src/components}/ui/dialog.d.ts +0 -0
  382. /package/dist/{components → src/components}/ui/icons.d.ts +0 -0
  383. /package/dist/{components → src/components}/ui/input.d.ts +0 -0
  384. /package/dist/{components → src/components}/ui/label.d.ts +0 -0
  385. /package/dist/{components → src/components}/ui/popover.d.ts +0 -0
  386. /package/dist/{components → src/components}/ui/separator.d.ts +0 -0
  387. /package/dist/{components → src/components}/ui/skeleton.d.ts +0 -0
  388. /package/dist/{components → src/components}/ui/switch.d.ts +0 -0
  389. /package/dist/{components → src/components}/ui/table.d.ts +0 -0
  390. /package/dist/{components → src/components}/ui/textarea.d.ts +0 -0
  391. /package/dist/{components → src/components}/ui/tooltip.d.ts +0 -0
  392. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  393. /package/dist/{hooks → src/hooks}/useClientProcess.d.ts +0 -0
  394. /package/dist/{utils.d.ts → src/utils.d.ts} +0 -0
package/dist/index.esm.js DELETED
@@ -1,3761 +0,0 @@
1
- import require$$0, { createContext, useState, useRef, useContext } from 'react';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { useQueries } from '@tanstack/react-query';
4
- import { toast } from 'sonner';
5
-
6
- function styleInject(css, ref) {
7
- if ( ref === void 0 ) ref = {};
8
- var insertAt = ref.insertAt;
9
-
10
- if (typeof document === 'undefined') { return; }
11
-
12
- var head = document.head || document.getElementsByTagName('head')[0];
13
- var style = document.createElement('style');
14
- style.type = 'text/css';
15
-
16
- if (insertAt === 'top') {
17
- if (head.firstChild) {
18
- head.insertBefore(style, head.firstChild);
19
- } else {
20
- head.appendChild(style);
21
- }
22
- } else {
23
- head.appendChild(style);
24
- }
25
-
26
- if (style.styleSheet) {
27
- style.styleSheet.cssText = css;
28
- } else {
29
- style.appendChild(document.createTextNode(css));
30
- }
31
- }
32
-
33
- var css_248z = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:var(--font-geist-sans);--font-mono:var(--font-geist-mono);--color-red-50:oklch(97.1% 0.013 17.38);--color-green-50:oklch(98.2% 0.018 155.826);--color-blue-50:oklch(97% 0.014 254.604);--color-slate-800:oklch(27.9% 0.041 260.031);--color-gray-50:oklch(98.5% 0.002 247.839);--color-gray-300:oklch(87.2% 0.01 258.338);--color-gray-700:oklch(37.3% 0.034 259.733);--color-white:#fff;--spacing:0.25rem;--text-xs:0.75rem;--text-xs--line-height:1.33333;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--font-weight-medium:500;--radius-sm:calc(var(--radius) - 4px);--radius-lg:var(--radius);--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-ring:var(--ring);--color-border:var(--border);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-supportive:var(--supportive);--color-supportive-foreground:var(--supportive-foreground);--color-accent-foreground:var(--accent-foreground);--color-accent:var(--accent);--color-secondary-foreground:var(--secondary-foreground);--color-secondary:var(--secondary);--color-primary-foreground:var(--primary-foreground);--color-primary:var(--primary)}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip-path:none;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.-inset-1{inset:calc(var(--spacing)*-1)}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.container{width:100%;@media (width >= 40rem){max-width:40rem}@media (width >= 48rem){max-width:48rem}@media (width >= 64rem){max-width:64rem}@media (width >= 80rem){max-width:80rem}@media (width >= 96rem){max-width:96rem}}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.w-10{width:calc(var(--spacing)*10)}.shrink{flex-shrink:1}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.space-y-reverse{:where(&>:not(:last-child)){--tw-space-y-reverse:1}}.space-x-reverse{:where(&>:not(:last-child)){--tw-space-x-reverse:1}}.divide-x{:where(&>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-end-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-style:var(--tw-border-style)}}.divide-y{:where(&>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-bottom-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse))}}.divide-y-reverse{:where(&>:not(:last-child)){--tw-divide-y-reverse:1}}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\\[0\\.33em\\]{border-radius:.33em}.rounded-s{border-end-start-radius:.25rem}.rounded-s,.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-end-end-radius:.25rem}.rounded-e,.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-right-radius:.25rem}.rounded-l,.rounded-t{border-top-left-radius:.25rem}.rounded-l{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-bottom-right-radius:.25rem}.rounded-r,.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-left-radius:.25rem}.rounded-b,.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-destructive{border-color:var(--color-destructive)}.border-gray-300{border-color:var(--color-gray-300)}.border-primary{border-color:var(--color-primary)}.border-supportive{border-color:var(--color-supportive)}.bg-background{background-color:var(--color-background)}.bg-destructive{background-color:var(--color-destructive)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.bg-supportive{background-color:var(--color-supportive)}.bg-repeat{background-repeat:repeat}.mask-no-clip{mask-clip:no-clip}.mask-repeat{mask-repeat:repeat}.p-10{padding:calc(var(--spacing)*10)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-\\[1em\\]{padding-inline:1em}.py-\\[0\\.33em\\]{padding-block:.33em}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-destructive{color:var(--color-destructive)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-gray-700{color:var(--color-gray-700)}.text-primary{color:var(--color-primary)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-supportive{color:var(--color-supportive)}.text-supportive-foreground{color:var(--color-supportive-foreground)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions}.diagonal-fractions,.lining-nums{font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums}.oldstyle-nums,.ordinal{font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.slashed-zero{font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero}.stacked-fractions{--tw-numeric-fraction:stacked-fractions}.stacked-fractions,.tabular-nums{font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,rgba(0,0,0,.1)),0 1px 2px -1px var(--tw-shadow-color,rgba(0,0,0,.1))}.ring,.shadow{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,rgba(0,0,0,.1))) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,rgba(0,0,0,.06)));--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.grayscale{--tw-grayscale:grayscale(100%)}.grayscale,.invert{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%)}.sepia{--tw-sepia:sepia(100%)}.filter,.sepia{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-grayscale{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%)}.backdrop-invert{--tw-backdrop-invert:invert(100%)}.backdrop-invert,.backdrop-sepia{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.divide-x-reverse{:where(&>:not(:last-child)){--tw-divide-x-reverse:1}}.ring-inset{--tw-ring-inset:inset}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.hover\\:bg-accent{&:hover{@media (hover:hover){background-color:var(--color-accent)}}}.hover\\:bg-blue-50{&:hover{@media (hover:hover){background-color:var(--color-blue-50)}}}.hover\\:bg-destructive\\/90{&:hover{@media (hover:hover){background-color:var(--color-destructive);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--color-destructive) 90%,transparent)}}}}.hover\\:bg-green-50{&:hover{@media (hover:hover){background-color:var(--color-green-50)}}}.hover\\:bg-primary\\/90{&:hover{@media (hover:hover){background-color:var(--color-primary);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}}}.hover\\:bg-red-50{&:hover{@media (hover:hover){background-color:var(--color-red-50)}}}.hover\\:bg-secondary\\/80{&:hover{@media (hover:hover){background-color:var(--color-secondary);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}}}.hover\\:bg-supportive\\/90{&:hover{@media (hover:hover){background-color:var(--color-supportive);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--color-supportive) 90%,transparent)}}}}.hover\\:text-accent-foreground{&:hover{@media (hover:hover){color:var(--color-accent-foreground)}}}.hover\\:underline{&:hover{@media (hover:hover){text-decoration-line:underline}}}.focus\\:ring-transparent{&:focus{--tw-ring-color:transparent}}.focus\\:outline-none{&:focus{--tw-outline-style:none;outline-style:none}}.disabled\\:pointer-events-none{&:disabled{pointer-events:none}}.disabled\\:opacity-50{&:disabled{opacity:50%}}.\\[\\&_svg\\]\\:pointer-events-none{& svg{pointer-events:none}}.\\[\\&_svg\\]\\:size-4{& svg{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}}.\\[\\&_svg\\]\\:shrink-0{& svg{flex-shrink:0}}}@property --tw-animation-delay{syntax:\"*\";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:\"*\";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:\"*\";inherits:false}@property --tw-animation-fill-mode{syntax:\"*\";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:\"*\";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:\"*\";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:\"*\";inherits:false;initial-value:0}:root{--radius:0.625rem;--background:oklch(1 0 0);--foreground:oklch(0.145 0 0);--card:oklch(1 0 0);--card-foreground:oklch(0.145 0 0);--popover:oklch(1 0 0);--popover-foreground:oklch(0.145 0 0);--primary:oklch(0.441 0.122 251);--primary-foreground:oklch(0.984 0.003 210);--supportive:oklch(0.663 0.137 137);--supportive-foreground:oklch(0.984 0.003 210);--secondary:oklch(0.208 0.04 266);--secondary-foreground:oklch(0.968 0.007 210);--muted:oklch(0.968 0.007 210);--muted-foreground:oklch(0.554 0.041 257);--warning:oklch(0.731 0.144 64);--warning-foreground:oklch(0.968 0.007 210);--accent:oklch(0.97 0 0);--accent-foreground:oklch(0.205 0 0);--destructive:oklch(0.64 0.218 29);--destructive-foreground:oklch(0.984 0.003 210);--border:oklch(0.922 0 0);--input:oklch(0.922 0 0);--ring:oklch(0.708 0 0);--chart-1:oklch(0.646 0.222 41.116);--chart-2:oklch(0.6 0.118 184.704);--chart-3:oklch(0.398 0.07 227.392);--chart-4:oklch(0.828 0.189 84.429);--chart-5:oklch(0.769 0.188 70.08);--sidebar:oklch(0.985 0 0);--sidebar-foreground:oklch(0.145 0 0);--sidebar-primary:oklch(0.205 0 0);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.97 0 0);--sidebar-accent-foreground:oklch(0.205 0 0);--sidebar-border:oklch(0.922 0 0);--sidebar-ring:oklch(0.708 0 0)}/*! add in missing dark mode styles from above OR no dark mode at all (who tf over 30 needs it)*/.dark{--background:oklch(0.145 0 0);--foreground:oklch(0.985 0 0);--card:oklch(0.205 0 0);--card-foreground:oklch(0.985 0 0);--popover:oklch(0.205 0 0);--popover-foreground:oklch(0.985 0 0);--primary:oklch(0.922 0 0);--primary-foreground:oklch(0.205 0 0);--secondary:oklch(0.269 0 0);--secondary-foreground:oklch(0.985 0 0);--muted:oklch(0.269 0 0);--muted-foreground:oklch(0.708 0 0);--accent:oklch(0.269 0 0);--accent-foreground:oklch(0.985 0 0);--destructive:oklch(0.704 0.191 22.216);--border:oklch(1 0 0/10%);--input:oklch(1 0 0/15%);--ring:oklch(0.556 0 0);--chart-1:oklch(0.488 0.243 264.376);--chart-2:oklch(0.696 0.17 162.48);--chart-3:oklch(0.769 0.188 70.08);--chart-4:oklch(0.627 0.265 303.9);--chart-5:oklch(0.645 0.246 16.439);--sidebar:oklch(0.205 0 0);--sidebar-foreground:oklch(0.985 0 0);--sidebar-primary:oklch(0.488 0.243 264.376);--sidebar-primary-foreground:oklch(0.985 0 0);--sidebar-accent:oklch(0.269 0 0);--sidebar-accent-foreground:oklch(0.985 0 0);--sidebar-border:oklch(1 0 0/10%);--sidebar-ring:oklch(0.556 0 0)}@layer base{*{border-color:var(--color-border);outline-color:var(--color-ring);@supports (color:color-mix(in lab,red,red)){outline-color:color-mix(in oklab,var(--color-ring) 50%,transparent)}}body{background-color:var(--color-background);color:var(--color-foreground)}a{--tw-duration:200ms;border-radius:var(--radius-sm);color:var(--color-primary);transition-duration:var(--tw-duration,var(--default-transition-duration));transition-duration:.2s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));&:hover{@media (hover:hover){color:var(--color-primary);@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,var(--color-primary) 80%,transparent)}}}&:focus{--tw-outline-style:none;outline-style:none}}}@layer components{.bi-card{background-color:var(--color-white);border-radius:var(--radius-lg);border-style:var(--tw-border-style);border-width:1px;padding:calc(var(--spacing)*6);&:is(.dark *){border-color:var(--color-slate-800)}&:is(.dark *){background-color:var(--color-red-50)}}.bi-card-interactive{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));&:hover{@media (hover:hover){background-color:var(--color-gray-50)}}&:is(.dark *){&:hover{@media (hover:hover){background-color:color-mix(in srgb,oklch(27.9% .041 260.031) 60%,transparent);@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--color-slate-800) 60%,transparent)}}}}}}body{height:100vh;margin:0;padding:0;width:100vw}html{overflow:hidden}*{box-sizing:border-box}@layer utilities{.pb-safe{padding-bottom:env(safe-area-inset-bottom)}.pt-safe{padding-top:env(safe-area-inset-top)}.pl-safe{padding-left:env(safe-area-inset-left)}.pr-safe{padding-right:env(safe-area-inset-right)}.webkit-overflow-scrolling-touch{-webkit-overflow-scrolling:touch}}.input-wrap{align-items:center;display:flex;height:40px}.input-wrap input{font-size:14px}.input-wrap input:focus{font-size:16px}@layer base{@media (max-width:639.98px){input:focus,select:focus,textarea:focus{font-size:1rem}}}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-pan-x{syntax:\"*\";inherits:false}@property --tw-pan-y{syntax:\"*\";inherits:false}@property --tw-pinch-zoom{syntax:\"*\";inherits:false}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--tw-duration:initial}}}";
34
- styleInject(css_248z,{"insertAt":"top"});
35
-
36
- let config = {
37
- orchestratorApi: '',
38
- };
39
- const configure = (newConfig) => {
40
- config = { ...config, ...newConfig };
41
- };
42
-
43
- var jsxRuntime = {exports: {}};
44
-
45
- var reactJsxRuntime_production = {};
46
-
47
- /**
48
- * @license React
49
- * react-jsx-runtime.production.js
50
- *
51
- * Copyright (c) Meta Platforms, Inc. and affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */
56
-
57
- var hasRequiredReactJsxRuntime_production;
58
-
59
- function requireReactJsxRuntime_production () {
60
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
61
- hasRequiredReactJsxRuntime_production = 1;
62
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
63
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
64
- function jsxProd(type, config, maybeKey) {
65
- var key = null;
66
- void 0 !== maybeKey && (key = "" + maybeKey);
67
- void 0 !== config.key && (key = "" + config.key);
68
- if ("key" in config) {
69
- maybeKey = {};
70
- for (var propName in config)
71
- "key" !== propName && (maybeKey[propName] = config[propName]);
72
- } else maybeKey = config;
73
- config = maybeKey.ref;
74
- return {
75
- $$typeof: REACT_ELEMENT_TYPE,
76
- type: type,
77
- key: key,
78
- ref: void 0 !== config ? config : null,
79
- props: maybeKey
80
- };
81
- }
82
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
83
- reactJsxRuntime_production.jsx = jsxProd;
84
- reactJsxRuntime_production.jsxs = jsxProd;
85
- return reactJsxRuntime_production;
86
- }
87
-
88
- var reactJsxRuntime_development = {};
89
-
90
- /**
91
- * @license React
92
- * react-jsx-runtime.development.js
93
- *
94
- * Copyright (c) Meta Platforms, Inc. and affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */
99
-
100
- var hasRequiredReactJsxRuntime_development;
101
-
102
- function requireReactJsxRuntime_development () {
103
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
104
- hasRequiredReactJsxRuntime_development = 1;
105
- "production" !== process.env.NODE_ENV &&
106
- (function () {
107
- function getComponentNameFromType(type) {
108
- if (null == type) return null;
109
- if ("function" === typeof type)
110
- return type.$$typeof === REACT_CLIENT_REFERENCE
111
- ? null
112
- : type.displayName || type.name || null;
113
- if ("string" === typeof type) return type;
114
- switch (type) {
115
- case REACT_FRAGMENT_TYPE:
116
- return "Fragment";
117
- case REACT_PROFILER_TYPE:
118
- return "Profiler";
119
- case REACT_STRICT_MODE_TYPE:
120
- return "StrictMode";
121
- case REACT_SUSPENSE_TYPE:
122
- return "Suspense";
123
- case REACT_SUSPENSE_LIST_TYPE:
124
- return "SuspenseList";
125
- case REACT_ACTIVITY_TYPE:
126
- return "Activity";
127
- }
128
- if ("object" === typeof type)
129
- switch (
130
- ("number" === typeof type.tag &&
131
- console.error(
132
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
133
- ),
134
- type.$$typeof)
135
- ) {
136
- case REACT_PORTAL_TYPE:
137
- return "Portal";
138
- case REACT_CONTEXT_TYPE:
139
- return type.displayName || "Context";
140
- case REACT_CONSUMER_TYPE:
141
- return (type._context.displayName || "Context") + ".Consumer";
142
- case REACT_FORWARD_REF_TYPE:
143
- var innerType = type.render;
144
- type = type.displayName;
145
- type ||
146
- ((type = innerType.displayName || innerType.name || ""),
147
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
148
- return type;
149
- case REACT_MEMO_TYPE:
150
- return (
151
- (innerType = type.displayName || null),
152
- null !== innerType
153
- ? innerType
154
- : getComponentNameFromType(type.type) || "Memo"
155
- );
156
- case REACT_LAZY_TYPE:
157
- innerType = type._payload;
158
- type = type._init;
159
- try {
160
- return getComponentNameFromType(type(innerType));
161
- } catch (x) {}
162
- }
163
- return null;
164
- }
165
- function testStringCoercion(value) {
166
- return "" + value;
167
- }
168
- function checkKeyStringCoercion(value) {
169
- try {
170
- testStringCoercion(value);
171
- var JSCompiler_inline_result = !1;
172
- } catch (e) {
173
- JSCompiler_inline_result = true;
174
- }
175
- if (JSCompiler_inline_result) {
176
- JSCompiler_inline_result = console;
177
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
178
- var JSCompiler_inline_result$jscomp$0 =
179
- ("function" === typeof Symbol &&
180
- Symbol.toStringTag &&
181
- value[Symbol.toStringTag]) ||
182
- value.constructor.name ||
183
- "Object";
184
- JSCompiler_temp_const.call(
185
- JSCompiler_inline_result,
186
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
187
- JSCompiler_inline_result$jscomp$0
188
- );
189
- return testStringCoercion(value);
190
- }
191
- }
192
- function getTaskName(type) {
193
- if (type === REACT_FRAGMENT_TYPE) return "<>";
194
- if (
195
- "object" === typeof type &&
196
- null !== type &&
197
- type.$$typeof === REACT_LAZY_TYPE
198
- )
199
- return "<...>";
200
- try {
201
- var name = getComponentNameFromType(type);
202
- return name ? "<" + name + ">" : "<...>";
203
- } catch (x) {
204
- return "<...>";
205
- }
206
- }
207
- function getOwner() {
208
- var dispatcher = ReactSharedInternals.A;
209
- return null === dispatcher ? null : dispatcher.getOwner();
210
- }
211
- function UnknownOwner() {
212
- return Error("react-stack-top-frame");
213
- }
214
- function hasValidKey(config) {
215
- if (hasOwnProperty.call(config, "key")) {
216
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
217
- if (getter && getter.isReactWarning) return false;
218
- }
219
- return void 0 !== config.key;
220
- }
221
- function defineKeyPropWarningGetter(props, displayName) {
222
- function warnAboutAccessingKey() {
223
- specialPropKeyWarningShown ||
224
- ((specialPropKeyWarningShown = true),
225
- console.error(
226
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
227
- displayName
228
- ));
229
- }
230
- warnAboutAccessingKey.isReactWarning = true;
231
- Object.defineProperty(props, "key", {
232
- get: warnAboutAccessingKey,
233
- configurable: true
234
- });
235
- }
236
- function elementRefGetterWithDeprecationWarning() {
237
- var componentName = getComponentNameFromType(this.type);
238
- didWarnAboutElementRef[componentName] ||
239
- ((didWarnAboutElementRef[componentName] = true),
240
- console.error(
241
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
242
- ));
243
- componentName = this.props.ref;
244
- return void 0 !== componentName ? componentName : null;
245
- }
246
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
247
- var refProp = props.ref;
248
- type = {
249
- $$typeof: REACT_ELEMENT_TYPE,
250
- type: type,
251
- key: key,
252
- props: props,
253
- _owner: owner
254
- };
255
- null !== (void 0 !== refProp ? refProp : null)
256
- ? Object.defineProperty(type, "ref", {
257
- enumerable: false,
258
- get: elementRefGetterWithDeprecationWarning
259
- })
260
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
261
- type._store = {};
262
- Object.defineProperty(type._store, "validated", {
263
- configurable: false,
264
- enumerable: false,
265
- writable: true,
266
- value: 0
267
- });
268
- Object.defineProperty(type, "_debugInfo", {
269
- configurable: false,
270
- enumerable: false,
271
- writable: true,
272
- value: null
273
- });
274
- Object.defineProperty(type, "_debugStack", {
275
- configurable: false,
276
- enumerable: false,
277
- writable: true,
278
- value: debugStack
279
- });
280
- Object.defineProperty(type, "_debugTask", {
281
- configurable: false,
282
- enumerable: false,
283
- writable: true,
284
- value: debugTask
285
- });
286
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
287
- return type;
288
- }
289
- function jsxDEVImpl(
290
- type,
291
- config,
292
- maybeKey,
293
- isStaticChildren,
294
- debugStack,
295
- debugTask
296
- ) {
297
- var children = config.children;
298
- if (void 0 !== children)
299
- if (isStaticChildren)
300
- if (isArrayImpl(children)) {
301
- for (
302
- isStaticChildren = 0;
303
- isStaticChildren < children.length;
304
- isStaticChildren++
305
- )
306
- validateChildKeys(children[isStaticChildren]);
307
- Object.freeze && Object.freeze(children);
308
- } else
309
- console.error(
310
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
311
- );
312
- else validateChildKeys(children);
313
- if (hasOwnProperty.call(config, "key")) {
314
- children = getComponentNameFromType(type);
315
- var keys = Object.keys(config).filter(function (k) {
316
- return "key" !== k;
317
- });
318
- isStaticChildren =
319
- 0 < keys.length
320
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
321
- : "{key: someKey}";
322
- didWarnAboutKeySpread[children + isStaticChildren] ||
323
- ((keys =
324
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
325
- console.error(
326
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
327
- isStaticChildren,
328
- children,
329
- keys,
330
- children
331
- ),
332
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
333
- }
334
- children = null;
335
- void 0 !== maybeKey &&
336
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
337
- hasValidKey(config) &&
338
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
339
- if ("key" in config) {
340
- maybeKey = {};
341
- for (var propName in config)
342
- "key" !== propName && (maybeKey[propName] = config[propName]);
343
- } else maybeKey = config;
344
- children &&
345
- defineKeyPropWarningGetter(
346
- maybeKey,
347
- "function" === typeof type
348
- ? type.displayName || type.name || "Unknown"
349
- : type
350
- );
351
- return ReactElement(
352
- type,
353
- children,
354
- maybeKey,
355
- getOwner(),
356
- debugStack,
357
- debugTask
358
- );
359
- }
360
- function validateChildKeys(node) {
361
- isValidElement(node)
362
- ? node._store && (node._store.validated = 1)
363
- : "object" === typeof node &&
364
- null !== node &&
365
- node.$$typeof === REACT_LAZY_TYPE &&
366
- ("fulfilled" === node._payload.status
367
- ? isValidElement(node._payload.value) &&
368
- node._payload.value._store &&
369
- (node._payload.value._store.validated = 1)
370
- : node._store && (node._store.validated = 1));
371
- }
372
- function isValidElement(object) {
373
- return (
374
- "object" === typeof object &&
375
- null !== object &&
376
- object.$$typeof === REACT_ELEMENT_TYPE
377
- );
378
- }
379
- var React = require$$0,
380
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
381
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
382
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
383
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
384
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
385
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
386
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
387
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
388
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
389
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
390
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
391
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
392
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
393
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
394
- ReactSharedInternals =
395
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
396
- hasOwnProperty = Object.prototype.hasOwnProperty,
397
- isArrayImpl = Array.isArray,
398
- createTask = console.createTask
399
- ? console.createTask
400
- : function () {
401
- return null;
402
- };
403
- React = {
404
- react_stack_bottom_frame: function (callStackForError) {
405
- return callStackForError();
406
- }
407
- };
408
- var specialPropKeyWarningShown;
409
- var didWarnAboutElementRef = {};
410
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
411
- React,
412
- UnknownOwner
413
- )();
414
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
415
- var didWarnAboutKeySpread = {};
416
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
417
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
418
- var trackActualOwner =
419
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
420
- return jsxDEVImpl(
421
- type,
422
- config,
423
- maybeKey,
424
- false,
425
- trackActualOwner
426
- ? Error("react-stack-top-frame")
427
- : unknownOwnerDebugStack,
428
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
429
- );
430
- };
431
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
432
- var trackActualOwner =
433
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
434
- return jsxDEVImpl(
435
- type,
436
- config,
437
- maybeKey,
438
- true,
439
- trackActualOwner
440
- ? Error("react-stack-top-frame")
441
- : unknownOwnerDebugStack,
442
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
443
- );
444
- };
445
- })();
446
- return reactJsxRuntime_development;
447
- }
448
-
449
- var hasRequiredJsxRuntime;
450
-
451
- function requireJsxRuntime () {
452
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
453
- hasRequiredJsxRuntime = 1;
454
-
455
- if (process.env.NODE_ENV === 'production') {
456
- jsxRuntime.exports = requireReactJsxRuntime_production();
457
- } else {
458
- jsxRuntime.exports = requireReactJsxRuntime_development();
459
- }
460
- return jsxRuntime.exports;
461
- }
462
-
463
- var jsxRuntimeExports = requireJsxRuntime();
464
-
465
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
466
-
467
- const falsyToString = (value)=>typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
468
- const cx = clsx;
469
- const cva = (base, config)=>(props)=>{
470
- var _config_compoundVariants;
471
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
472
- const { variants, defaultVariants } = config;
473
- const getVariantClassNames = Object.keys(variants).map((variant)=>{
474
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
475
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
476
- if (variantProp === null) return null;
477
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
478
- return variants[variant][variantKey];
479
- });
480
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
481
- let [key, value] = param;
482
- if (value === undefined) {
483
- return acc;
484
- }
485
- acc[key] = value;
486
- return acc;
487
- }, {});
488
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{
489
- let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
490
- return Object.entries(compoundVariantOptions).every((param)=>{
491
- let [key, value] = param;
492
- return Array.isArray(value) ? value.includes({
493
- ...defaultVariants,
494
- ...propsWithoutUndefined
495
- }[key]) : ({
496
- ...defaultVariants,
497
- ...propsWithoutUndefined
498
- })[key] === value;
499
- }) ? [
500
- ...acc,
501
- cvClass,
502
- cvClassName
503
- ] : acc;
504
- }, []);
505
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
506
- };
507
-
508
- /**
509
- * Concatenates two arrays faster than the array spread operator.
510
- */
511
- const concatArrays = (array1, array2) => {
512
- // Pre-allocate for better V8 optimization
513
- const combinedArray = new Array(array1.length + array2.length);
514
- for (let i = 0; i < array1.length; i++) {
515
- combinedArray[i] = array1[i];
516
- }
517
- for (let i = 0; i < array2.length; i++) {
518
- combinedArray[array1.length + i] = array2[i];
519
- }
520
- return combinedArray;
521
- };
522
-
523
- // Factory function ensures consistent object shapes
524
- const createClassValidatorObject = (classGroupId, validator) => ({
525
- classGroupId,
526
- validator
527
- });
528
- // Factory ensures consistent ClassPartObject shape
529
- const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId) => ({
530
- nextPart,
531
- validators,
532
- classGroupId
533
- });
534
- const CLASS_PART_SEPARATOR = '-';
535
- const EMPTY_CONFLICTS = [];
536
- // I use two dots here because one dot is used as prefix for class groups in plugins
537
- const ARBITRARY_PROPERTY_PREFIX = 'arbitrary..';
538
- const createClassGroupUtils = config => {
539
- const classMap = createClassMap(config);
540
- const {
541
- conflictingClassGroups,
542
- conflictingClassGroupModifiers
543
- } = config;
544
- const getClassGroupId = className => {
545
- if (className.startsWith('[') && className.endsWith(']')) {
546
- return getGroupIdForArbitraryProperty(className);
547
- }
548
- const classParts = className.split(CLASS_PART_SEPARATOR);
549
- // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and skip it.
550
- const startIndex = classParts[0] === '' && classParts.length > 1 ? 1 : 0;
551
- return getGroupRecursive(classParts, startIndex, classMap);
552
- };
553
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
554
- if (hasPostfixModifier) {
555
- const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
556
- const baseConflicts = conflictingClassGroups[classGroupId];
557
- if (modifierConflicts) {
558
- if (baseConflicts) {
559
- // Merge base conflicts with modifier conflicts
560
- return concatArrays(baseConflicts, modifierConflicts);
561
- }
562
- // Only modifier conflicts
563
- return modifierConflicts;
564
- }
565
- // Fall back to without postfix if no modifier conflicts
566
- return baseConflicts || EMPTY_CONFLICTS;
567
- }
568
- return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
569
- };
570
- return {
571
- getClassGroupId,
572
- getConflictingClassGroupIds
573
- };
574
- };
575
- const getGroupRecursive = (classParts, startIndex, classPartObject) => {
576
- const classPathsLength = classParts.length - startIndex;
577
- if (classPathsLength === 0) {
578
- return classPartObject.classGroupId;
579
- }
580
- const currentClassPart = classParts[startIndex];
581
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
582
- if (nextClassPartObject) {
583
- const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
584
- if (result) return result;
585
- }
586
- const validators = classPartObject.validators;
587
- if (validators === null) {
588
- return undefined;
589
- }
590
- // Build classRest string efficiently by joining from startIndex onwards
591
- const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
592
- const validatorsLength = validators.length;
593
- for (let i = 0; i < validatorsLength; i++) {
594
- const validatorObj = validators[i];
595
- if (validatorObj.validator(classRest)) {
596
- return validatorObj.classGroupId;
597
- }
598
- }
599
- return undefined;
600
- };
601
- /**
602
- * Get the class group ID for an arbitrary property.
603
- *
604
- * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
605
- */
606
- const getGroupIdForArbitraryProperty = className => className.slice(1, -1).indexOf(':') === -1 ? undefined : (() => {
607
- const content = className.slice(1, -1);
608
- const colonIndex = content.indexOf(':');
609
- const property = content.slice(0, colonIndex);
610
- return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
611
- })();
612
- /**
613
- * Exported for testing only
614
- */
615
- const createClassMap = config => {
616
- const {
617
- theme,
618
- classGroups
619
- } = config;
620
- return processClassGroups(classGroups, theme);
621
- };
622
- // Split into separate functions to maintain monomorphic call sites
623
- const processClassGroups = (classGroups, theme) => {
624
- const classMap = createClassPartObject();
625
- for (const classGroupId in classGroups) {
626
- const group = classGroups[classGroupId];
627
- processClassesRecursively(group, classMap, classGroupId, theme);
628
- }
629
- return classMap;
630
- };
631
- const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
632
- const len = classGroup.length;
633
- for (let i = 0; i < len; i++) {
634
- const classDefinition = classGroup[i];
635
- processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
636
- }
637
- };
638
- // Split into separate functions for each type to maintain monomorphic call sites
639
- const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
640
- if (typeof classDefinition === 'string') {
641
- processStringDefinition(classDefinition, classPartObject, classGroupId);
642
- return;
643
- }
644
- if (typeof classDefinition === 'function') {
645
- processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
646
- return;
647
- }
648
- processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
649
- };
650
- const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
651
- const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
652
- classPartObjectToEdit.classGroupId = classGroupId;
653
- };
654
- const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
655
- if (isThemeGetter(classDefinition)) {
656
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
657
- return;
658
- }
659
- if (classPartObject.validators === null) {
660
- classPartObject.validators = [];
661
- }
662
- classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
663
- };
664
- const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
665
- const entries = Object.entries(classDefinition);
666
- const len = entries.length;
667
- for (let i = 0; i < len; i++) {
668
- const [key, value] = entries[i];
669
- processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
670
- }
671
- };
672
- const getPart = (classPartObject, path) => {
673
- let current = classPartObject;
674
- const parts = path.split(CLASS_PART_SEPARATOR);
675
- const len = parts.length;
676
- for (let i = 0; i < len; i++) {
677
- const part = parts[i];
678
- let next = current.nextPart.get(part);
679
- if (!next) {
680
- next = createClassPartObject();
681
- current.nextPart.set(part, next);
682
- }
683
- current = next;
684
- }
685
- return current;
686
- };
687
- // Type guard maintains monomorphic check
688
- const isThemeGetter = func => 'isThemeGetter' in func && func.isThemeGetter === true;
689
-
690
- // LRU cache implementation using plain objects for simplicity
691
- const createLruCache = maxCacheSize => {
692
- if (maxCacheSize < 1) {
693
- return {
694
- get: () => undefined,
695
- set: () => {}
696
- };
697
- }
698
- let cacheSize = 0;
699
- let cache = Object.create(null);
700
- let previousCache = Object.create(null);
701
- const update = (key, value) => {
702
- cache[key] = value;
703
- cacheSize++;
704
- if (cacheSize > maxCacheSize) {
705
- cacheSize = 0;
706
- previousCache = cache;
707
- cache = Object.create(null);
708
- }
709
- };
710
- return {
711
- get(key) {
712
- let value = cache[key];
713
- if (value !== undefined) {
714
- return value;
715
- }
716
- if ((value = previousCache[key]) !== undefined) {
717
- update(key, value);
718
- return value;
719
- }
720
- },
721
- set(key, value) {
722
- if (key in cache) {
723
- cache[key] = value;
724
- } else {
725
- update(key, value);
726
- }
727
- }
728
- };
729
- };
730
- const IMPORTANT_MODIFIER = '!';
731
- const MODIFIER_SEPARATOR = ':';
732
- const EMPTY_MODIFIERS = [];
733
- // Pre-allocated result object shape for consistency
734
- const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
735
- modifiers,
736
- hasImportantModifier,
737
- baseClassName,
738
- maybePostfixModifierPosition,
739
- isExternal
740
- });
741
- const createParseClassName = config => {
742
- const {
743
- prefix,
744
- experimentalParseClassName
745
- } = config;
746
- /**
747
- * Parse class name into parts.
748
- *
749
- * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
750
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
751
- */
752
- let parseClassName = className => {
753
- // Use simple array with push for better performance
754
- const modifiers = [];
755
- let bracketDepth = 0;
756
- let parenDepth = 0;
757
- let modifierStart = 0;
758
- let postfixModifierPosition;
759
- const len = className.length;
760
- for (let index = 0; index < len; index++) {
761
- const currentCharacter = className[index];
762
- if (bracketDepth === 0 && parenDepth === 0) {
763
- if (currentCharacter === MODIFIER_SEPARATOR) {
764
- modifiers.push(className.slice(modifierStart, index));
765
- modifierStart = index + 1;
766
- continue;
767
- }
768
- if (currentCharacter === '/') {
769
- postfixModifierPosition = index;
770
- continue;
771
- }
772
- }
773
- if (currentCharacter === '[') bracketDepth++;else if (currentCharacter === ']') bracketDepth--;else if (currentCharacter === '(') parenDepth++;else if (currentCharacter === ')') parenDepth--;
774
- }
775
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
776
- // Inline important modifier check
777
- let baseClassName = baseClassNameWithImportantModifier;
778
- let hasImportantModifier = false;
779
- if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
780
- baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
781
- hasImportantModifier = true;
782
- } else if (
783
- /**
784
- * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
785
- * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
786
- */
787
- baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
788
- baseClassName = baseClassNameWithImportantModifier.slice(1);
789
- hasImportantModifier = true;
790
- }
791
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
792
- return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
793
- };
794
- if (prefix) {
795
- const fullPrefix = prefix + MODIFIER_SEPARATOR;
796
- const parseClassNameOriginal = parseClassName;
797
- parseClassName = className => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
798
- }
799
- if (experimentalParseClassName) {
800
- const parseClassNameOriginal = parseClassName;
801
- parseClassName = className => experimentalParseClassName({
802
- className,
803
- parseClassName: parseClassNameOriginal
804
- });
805
- }
806
- return parseClassName;
807
- };
808
-
809
- /**
810
- * Sorts modifiers according to following schema:
811
- * - Predefined modifiers are sorted alphabetically
812
- * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
813
- */
814
- const createSortModifiers = config => {
815
- // Pre-compute weights for all known modifiers for O(1) comparison
816
- const modifierWeights = new Map();
817
- // Assign weights to sensitive modifiers (highest priority, but preserve order)
818
- config.orderSensitiveModifiers.forEach((mod, index) => {
819
- modifierWeights.set(mod, 1000000 + index); // High weights for sensitive mods
820
- });
821
- return modifiers => {
822
- const result = [];
823
- let currentSegment = [];
824
- // Process modifiers in one pass
825
- for (let i = 0; i < modifiers.length; i++) {
826
- const modifier = modifiers[i];
827
- // Check if modifier is sensitive (starts with '[' or in orderSensitiveModifiers)
828
- const isArbitrary = modifier[0] === '[';
829
- const isOrderSensitive = modifierWeights.has(modifier);
830
- if (isArbitrary || isOrderSensitive) {
831
- // Sort and flush current segment alphabetically
832
- if (currentSegment.length > 0) {
833
- currentSegment.sort();
834
- result.push(...currentSegment);
835
- currentSegment = [];
836
- }
837
- result.push(modifier);
838
- } else {
839
- // Regular modifier - add to current segment for batch sorting
840
- currentSegment.push(modifier);
841
- }
842
- }
843
- // Sort and add any remaining segment items
844
- if (currentSegment.length > 0) {
845
- currentSegment.sort();
846
- result.push(...currentSegment);
847
- }
848
- return result;
849
- };
850
- };
851
- const createConfigUtils = config => ({
852
- cache: createLruCache(config.cacheSize),
853
- parseClassName: createParseClassName(config),
854
- sortModifiers: createSortModifiers(config),
855
- ...createClassGroupUtils(config)
856
- });
857
- const SPLIT_CLASSES_REGEX = /\s+/;
858
- const mergeClassList = (classList, configUtils) => {
859
- const {
860
- parseClassName,
861
- getClassGroupId,
862
- getConflictingClassGroupIds,
863
- sortModifiers
864
- } = configUtils;
865
- /**
866
- * Set of classGroupIds in following format:
867
- * `{importantModifier}{variantModifiers}{classGroupId}`
868
- * @example 'float'
869
- * @example 'hover:focus:bg-color'
870
- * @example 'md:!pr'
871
- */
872
- const classGroupsInConflict = [];
873
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
874
- let result = '';
875
- for (let index = classNames.length - 1; index >= 0; index -= 1) {
876
- const originalClassName = classNames[index];
877
- const {
878
- isExternal,
879
- modifiers,
880
- hasImportantModifier,
881
- baseClassName,
882
- maybePostfixModifierPosition
883
- } = parseClassName(originalClassName);
884
- if (isExternal) {
885
- result = originalClassName + (result.length > 0 ? ' ' + result : result);
886
- continue;
887
- }
888
- let hasPostfixModifier = !!maybePostfixModifierPosition;
889
- let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
890
- if (!classGroupId) {
891
- if (!hasPostfixModifier) {
892
- // Not a Tailwind class
893
- result = originalClassName + (result.length > 0 ? ' ' + result : result);
894
- continue;
895
- }
896
- classGroupId = getClassGroupId(baseClassName);
897
- if (!classGroupId) {
898
- // Not a Tailwind class
899
- result = originalClassName + (result.length > 0 ? ' ' + result : result);
900
- continue;
901
- }
902
- hasPostfixModifier = false;
903
- }
904
- // Fast path: skip sorting for empty or single modifier
905
- const variantModifier = modifiers.length === 0 ? '' : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(':');
906
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
907
- const classId = modifierId + classGroupId;
908
- if (classGroupsInConflict.indexOf(classId) > -1) {
909
- // Tailwind class omitted due to conflict
910
- continue;
911
- }
912
- classGroupsInConflict.push(classId);
913
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
914
- for (let i = 0; i < conflictGroups.length; ++i) {
915
- const group = conflictGroups[i];
916
- classGroupsInConflict.push(modifierId + group);
917
- }
918
- // Tailwind class not in conflict
919
- result = originalClassName + (result.length > 0 ? ' ' + result : result);
920
- }
921
- return result;
922
- };
923
-
924
- /**
925
- * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
926
- *
927
- * Specifically:
928
- * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
929
- * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
930
- *
931
- * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
932
- */
933
- const twJoin = (...classLists) => {
934
- let index = 0;
935
- let argument;
936
- let resolvedValue;
937
- let string = '';
938
- while (index < classLists.length) {
939
- if (argument = classLists[index++]) {
940
- if (resolvedValue = toValue(argument)) {
941
- string && (string += ' ');
942
- string += resolvedValue;
943
- }
944
- }
945
- }
946
- return string;
947
- };
948
- const toValue = mix => {
949
- // Fast path for strings
950
- if (typeof mix === 'string') {
951
- return mix;
952
- }
953
- let resolvedValue;
954
- let string = '';
955
- for (let k = 0; k < mix.length; k++) {
956
- if (mix[k]) {
957
- if (resolvedValue = toValue(mix[k])) {
958
- string && (string += ' ');
959
- string += resolvedValue;
960
- }
961
- }
962
- }
963
- return string;
964
- };
965
- const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
966
- let configUtils;
967
- let cacheGet;
968
- let cacheSet;
969
- let functionToCall;
970
- const initTailwindMerge = classList => {
971
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
972
- configUtils = createConfigUtils(config);
973
- cacheGet = configUtils.cache.get;
974
- cacheSet = configUtils.cache.set;
975
- functionToCall = tailwindMerge;
976
- return tailwindMerge(classList);
977
- };
978
- const tailwindMerge = classList => {
979
- const cachedResult = cacheGet(classList);
980
- if (cachedResult) {
981
- return cachedResult;
982
- }
983
- const result = mergeClassList(classList, configUtils);
984
- cacheSet(classList, result);
985
- return result;
986
- };
987
- functionToCall = initTailwindMerge;
988
- return (...args) => functionToCall(twJoin(...args));
989
- };
990
- const fallbackThemeArr = [];
991
- const fromTheme = key => {
992
- const themeGetter = theme => theme[key] || fallbackThemeArr;
993
- themeGetter.isThemeGetter = true;
994
- return themeGetter;
995
- };
996
- const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
997
- const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
998
- const fractionRegex = /^\d+\/\d+$/;
999
- const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
1000
- const 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$/;
1001
- const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
1002
- // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
1003
- const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
1004
- const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
1005
- const isFraction = value => fractionRegex.test(value);
1006
- const isNumber = value => !!value && !Number.isNaN(Number(value));
1007
- const isInteger = value => !!value && Number.isInteger(Number(value));
1008
- const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
1009
- const isTshirtSize = value => tshirtUnitRegex.test(value);
1010
- const isAny = () => true;
1011
- const isLengthOnly = value =>
1012
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1013
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1014
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1015
- lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
1016
- const isNever = () => false;
1017
- const isShadow = value => shadowRegex.test(value);
1018
- const isImage = value => imageRegex.test(value);
1019
- const isAnyNonArbitrary = value => !isArbitraryValue(value) && !isArbitraryVariable(value);
1020
- const isArbitrarySize = value => getIsArbitraryValue(value, isLabelSize, isNever);
1021
- const isArbitraryValue = value => arbitraryValueRegex.test(value);
1022
- const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
1023
- const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
1024
- const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
1025
- const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
1026
- const isArbitraryShadow = value => getIsArbitraryValue(value, isLabelShadow, isShadow);
1027
- const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
1028
- const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
1029
- const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
1030
- const isArbitraryVariablePosition = value => getIsArbitraryVariable(value, isLabelPosition);
1031
- const isArbitraryVariableSize = value => getIsArbitraryVariable(value, isLabelSize);
1032
- const isArbitraryVariableImage = value => getIsArbitraryVariable(value, isLabelImage);
1033
- const isArbitraryVariableShadow = value => getIsArbitraryVariable(value, isLabelShadow, true);
1034
- // Helpers
1035
- const getIsArbitraryValue = (value, testLabel, testValue) => {
1036
- const result = arbitraryValueRegex.exec(value);
1037
- if (result) {
1038
- if (result[1]) {
1039
- return testLabel(result[1]);
1040
- }
1041
- return testValue(result[2]);
1042
- }
1043
- return false;
1044
- };
1045
- const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
1046
- const result = arbitraryVariableRegex.exec(value);
1047
- if (result) {
1048
- if (result[1]) {
1049
- return testLabel(result[1]);
1050
- }
1051
- return shouldMatchNoLabel;
1052
- }
1053
- return false;
1054
- };
1055
- // Labels
1056
- const isLabelPosition = label => label === 'position' || label === 'percentage';
1057
- const isLabelImage = label => label === 'image' || label === 'url';
1058
- const isLabelSize = label => label === 'length' || label === 'size' || label === 'bg-size';
1059
- const isLabelLength = label => label === 'length';
1060
- const isLabelNumber = label => label === 'number';
1061
- const isLabelFamilyName = label => label === 'family-name';
1062
- const isLabelShadow = label => label === 'shadow';
1063
- const getDefaultConfig = () => {
1064
- /**
1065
- * Theme getters for theme variable namespaces
1066
- * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
1067
- */
1068
- /***/
1069
- const themeColor = fromTheme('color');
1070
- const themeFont = fromTheme('font');
1071
- const themeText = fromTheme('text');
1072
- const themeFontWeight = fromTheme('font-weight');
1073
- const themeTracking = fromTheme('tracking');
1074
- const themeLeading = fromTheme('leading');
1075
- const themeBreakpoint = fromTheme('breakpoint');
1076
- const themeContainer = fromTheme('container');
1077
- const themeSpacing = fromTheme('spacing');
1078
- const themeRadius = fromTheme('radius');
1079
- const themeShadow = fromTheme('shadow');
1080
- const themeInsetShadow = fromTheme('inset-shadow');
1081
- const themeTextShadow = fromTheme('text-shadow');
1082
- const themeDropShadow = fromTheme('drop-shadow');
1083
- const themeBlur = fromTheme('blur');
1084
- const themePerspective = fromTheme('perspective');
1085
- const themeAspect = fromTheme('aspect');
1086
- const themeEase = fromTheme('ease');
1087
- const themeAnimate = fromTheme('animate');
1088
- /**
1089
- * Helpers to avoid repeating the same scales
1090
- *
1091
- * We use functions that create a new array every time they're called instead of static arrays.
1092
- * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
1093
- */
1094
- /***/
1095
- const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
1096
- const scalePosition = () => ['center', 'top', 'bottom', 'left', 'right', 'top-left',
1097
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1098
- 'left-top', 'top-right',
1099
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1100
- 'right-top', 'bottom-right',
1101
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1102
- 'right-bottom', 'bottom-left',
1103
- // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1104
- 'left-bottom'];
1105
- const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
1106
- const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
1107
- const scaleOverscroll = () => ['auto', 'contain', 'none'];
1108
- const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
1109
- const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()];
1110
- const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
1111
- const scaleGridColRowStartAndEnd = () => ['auto', {
1112
- span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
1113
- }, isInteger, isArbitraryVariable, isArbitraryValue];
1114
- const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
1115
- const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
1116
- const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline', 'center-safe', 'end-safe'];
1117
- const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
1118
- const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
1119
- const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
1120
- const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
1121
- const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
1122
- position: [isArbitraryVariable, isArbitraryValue]
1123
- }];
1124
- const scaleBgRepeat = () => ['no-repeat', {
1125
- repeat: ['', 'x', 'y', 'space', 'round']
1126
- }];
1127
- const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
1128
- size: [isArbitraryVariable, isArbitraryValue]
1129
- }];
1130
- const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
1131
- const scaleRadius = () => [
1132
- // Deprecated since Tailwind CSS v4.0.0
1133
- '', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
1134
- const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
1135
- const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
1136
- const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
1137
- const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
1138
- const scaleBlur = () => [
1139
- // Deprecated since Tailwind CSS v4.0.0
1140
- '', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
1141
- const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
1142
- const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
1143
- const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
1144
- const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()];
1145
- return {
1146
- cacheSize: 500,
1147
- theme: {
1148
- animate: ['spin', 'ping', 'pulse', 'bounce'],
1149
- aspect: ['video'],
1150
- blur: [isTshirtSize],
1151
- breakpoint: [isTshirtSize],
1152
- color: [isAny],
1153
- container: [isTshirtSize],
1154
- 'drop-shadow': [isTshirtSize],
1155
- ease: ['in', 'out', 'in-out'],
1156
- font: [isAnyNonArbitrary],
1157
- 'font-weight': ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black'],
1158
- 'inset-shadow': [isTshirtSize],
1159
- leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],
1160
- perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],
1161
- radius: [isTshirtSize],
1162
- shadow: [isTshirtSize],
1163
- spacing: ['px', isNumber],
1164
- text: [isTshirtSize],
1165
- 'text-shadow': [isTshirtSize],
1166
- tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
1167
- },
1168
- classGroups: {
1169
- // --------------
1170
- // --- Layout ---
1171
- // --------------
1172
- /**
1173
- * Aspect Ratio
1174
- * @see https://tailwindcss.com/docs/aspect-ratio
1175
- */
1176
- aspect: [{
1177
- aspect: ['auto', 'square', isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
1178
- }],
1179
- /**
1180
- * Container
1181
- * @see https://tailwindcss.com/docs/container
1182
- * @deprecated since Tailwind CSS v4.0.0
1183
- */
1184
- container: ['container'],
1185
- /**
1186
- * Columns
1187
- * @see https://tailwindcss.com/docs/columns
1188
- */
1189
- columns: [{
1190
- columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
1191
- }],
1192
- /**
1193
- * Break After
1194
- * @see https://tailwindcss.com/docs/break-after
1195
- */
1196
- 'break-after': [{
1197
- 'break-after': scaleBreak()
1198
- }],
1199
- /**
1200
- * Break Before
1201
- * @see https://tailwindcss.com/docs/break-before
1202
- */
1203
- 'break-before': [{
1204
- 'break-before': scaleBreak()
1205
- }],
1206
- /**
1207
- * Break Inside
1208
- * @see https://tailwindcss.com/docs/break-inside
1209
- */
1210
- 'break-inside': [{
1211
- 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
1212
- }],
1213
- /**
1214
- * Box Decoration Break
1215
- * @see https://tailwindcss.com/docs/box-decoration-break
1216
- */
1217
- 'box-decoration': [{
1218
- 'box-decoration': ['slice', 'clone']
1219
- }],
1220
- /**
1221
- * Box Sizing
1222
- * @see https://tailwindcss.com/docs/box-sizing
1223
- */
1224
- box: [{
1225
- box: ['border', 'content']
1226
- }],
1227
- /**
1228
- * Display
1229
- * @see https://tailwindcss.com/docs/display
1230
- */
1231
- 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'],
1232
- /**
1233
- * Screen Reader Only
1234
- * @see https://tailwindcss.com/docs/display#screen-reader-only
1235
- */
1236
- sr: ['sr-only', 'not-sr-only'],
1237
- /**
1238
- * Floats
1239
- * @see https://tailwindcss.com/docs/float
1240
- */
1241
- float: [{
1242
- float: ['right', 'left', 'none', 'start', 'end']
1243
- }],
1244
- /**
1245
- * Clear
1246
- * @see https://tailwindcss.com/docs/clear
1247
- */
1248
- clear: [{
1249
- clear: ['left', 'right', 'both', 'none', 'start', 'end']
1250
- }],
1251
- /**
1252
- * Isolation
1253
- * @see https://tailwindcss.com/docs/isolation
1254
- */
1255
- isolation: ['isolate', 'isolation-auto'],
1256
- /**
1257
- * Object Fit
1258
- * @see https://tailwindcss.com/docs/object-fit
1259
- */
1260
- 'object-fit': [{
1261
- object: ['contain', 'cover', 'fill', 'none', 'scale-down']
1262
- }],
1263
- /**
1264
- * Object Position
1265
- * @see https://tailwindcss.com/docs/object-position
1266
- */
1267
- 'object-position': [{
1268
- object: scalePositionWithArbitrary()
1269
- }],
1270
- /**
1271
- * Overflow
1272
- * @see https://tailwindcss.com/docs/overflow
1273
- */
1274
- overflow: [{
1275
- overflow: scaleOverflow()
1276
- }],
1277
- /**
1278
- * Overflow X
1279
- * @see https://tailwindcss.com/docs/overflow
1280
- */
1281
- 'overflow-x': [{
1282
- 'overflow-x': scaleOverflow()
1283
- }],
1284
- /**
1285
- * Overflow Y
1286
- * @see https://tailwindcss.com/docs/overflow
1287
- */
1288
- 'overflow-y': [{
1289
- 'overflow-y': scaleOverflow()
1290
- }],
1291
- /**
1292
- * Overscroll Behavior
1293
- * @see https://tailwindcss.com/docs/overscroll-behavior
1294
- */
1295
- overscroll: [{
1296
- overscroll: scaleOverscroll()
1297
- }],
1298
- /**
1299
- * Overscroll Behavior X
1300
- * @see https://tailwindcss.com/docs/overscroll-behavior
1301
- */
1302
- 'overscroll-x': [{
1303
- 'overscroll-x': scaleOverscroll()
1304
- }],
1305
- /**
1306
- * Overscroll Behavior Y
1307
- * @see https://tailwindcss.com/docs/overscroll-behavior
1308
- */
1309
- 'overscroll-y': [{
1310
- 'overscroll-y': scaleOverscroll()
1311
- }],
1312
- /**
1313
- * Position
1314
- * @see https://tailwindcss.com/docs/position
1315
- */
1316
- position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
1317
- /**
1318
- * Top / Right / Bottom / Left
1319
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1320
- */
1321
- inset: [{
1322
- inset: scaleInset()
1323
- }],
1324
- /**
1325
- * Right / Left
1326
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1327
- */
1328
- 'inset-x': [{
1329
- 'inset-x': scaleInset()
1330
- }],
1331
- /**
1332
- * Top / Bottom
1333
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1334
- */
1335
- 'inset-y': [{
1336
- 'inset-y': scaleInset()
1337
- }],
1338
- /**
1339
- * Start
1340
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1341
- */
1342
- start: [{
1343
- start: scaleInset()
1344
- }],
1345
- /**
1346
- * End
1347
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1348
- */
1349
- end: [{
1350
- end: scaleInset()
1351
- }],
1352
- /**
1353
- * Top
1354
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1355
- */
1356
- top: [{
1357
- top: scaleInset()
1358
- }],
1359
- /**
1360
- * Right
1361
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1362
- */
1363
- right: [{
1364
- right: scaleInset()
1365
- }],
1366
- /**
1367
- * Bottom
1368
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1369
- */
1370
- bottom: [{
1371
- bottom: scaleInset()
1372
- }],
1373
- /**
1374
- * Left
1375
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1376
- */
1377
- left: [{
1378
- left: scaleInset()
1379
- }],
1380
- /**
1381
- * Visibility
1382
- * @see https://tailwindcss.com/docs/visibility
1383
- */
1384
- visibility: ['visible', 'invisible', 'collapse'],
1385
- /**
1386
- * Z-Index
1387
- * @see https://tailwindcss.com/docs/z-index
1388
- */
1389
- z: [{
1390
- z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue]
1391
- }],
1392
- // ------------------------
1393
- // --- Flexbox and Grid ---
1394
- // ------------------------
1395
- /**
1396
- * Flex Basis
1397
- * @see https://tailwindcss.com/docs/flex-basis
1398
- */
1399
- basis: [{
1400
- basis: [isFraction, 'full', 'auto', themeContainer, ...scaleUnambiguousSpacing()]
1401
- }],
1402
- /**
1403
- * Flex Direction
1404
- * @see https://tailwindcss.com/docs/flex-direction
1405
- */
1406
- 'flex-direction': [{
1407
- flex: ['row', 'row-reverse', 'col', 'col-reverse']
1408
- }],
1409
- /**
1410
- * Flex Wrap
1411
- * @see https://tailwindcss.com/docs/flex-wrap
1412
- */
1413
- 'flex-wrap': [{
1414
- flex: ['nowrap', 'wrap', 'wrap-reverse']
1415
- }],
1416
- /**
1417
- * Flex
1418
- * @see https://tailwindcss.com/docs/flex
1419
- */
1420
- flex: [{
1421
- flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue]
1422
- }],
1423
- /**
1424
- * Flex Grow
1425
- * @see https://tailwindcss.com/docs/flex-grow
1426
- */
1427
- grow: [{
1428
- grow: ['', isNumber, isArbitraryVariable, isArbitraryValue]
1429
- }],
1430
- /**
1431
- * Flex Shrink
1432
- * @see https://tailwindcss.com/docs/flex-shrink
1433
- */
1434
- shrink: [{
1435
- shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue]
1436
- }],
1437
- /**
1438
- * Order
1439
- * @see https://tailwindcss.com/docs/order
1440
- */
1441
- order: [{
1442
- order: [isInteger, 'first', 'last', 'none', isArbitraryVariable, isArbitraryValue]
1443
- }],
1444
- /**
1445
- * Grid Template Columns
1446
- * @see https://tailwindcss.com/docs/grid-template-columns
1447
- */
1448
- 'grid-cols': [{
1449
- 'grid-cols': scaleGridTemplateColsRows()
1450
- }],
1451
- /**
1452
- * Grid Column Start / End
1453
- * @see https://tailwindcss.com/docs/grid-column
1454
- */
1455
- 'col-start-end': [{
1456
- col: scaleGridColRowStartAndEnd()
1457
- }],
1458
- /**
1459
- * Grid Column Start
1460
- * @see https://tailwindcss.com/docs/grid-column
1461
- */
1462
- 'col-start': [{
1463
- 'col-start': scaleGridColRowStartOrEnd()
1464
- }],
1465
- /**
1466
- * Grid Column End
1467
- * @see https://tailwindcss.com/docs/grid-column
1468
- */
1469
- 'col-end': [{
1470
- 'col-end': scaleGridColRowStartOrEnd()
1471
- }],
1472
- /**
1473
- * Grid Template Rows
1474
- * @see https://tailwindcss.com/docs/grid-template-rows
1475
- */
1476
- 'grid-rows': [{
1477
- 'grid-rows': scaleGridTemplateColsRows()
1478
- }],
1479
- /**
1480
- * Grid Row Start / End
1481
- * @see https://tailwindcss.com/docs/grid-row
1482
- */
1483
- 'row-start-end': [{
1484
- row: scaleGridColRowStartAndEnd()
1485
- }],
1486
- /**
1487
- * Grid Row Start
1488
- * @see https://tailwindcss.com/docs/grid-row
1489
- */
1490
- 'row-start': [{
1491
- 'row-start': scaleGridColRowStartOrEnd()
1492
- }],
1493
- /**
1494
- * Grid Row End
1495
- * @see https://tailwindcss.com/docs/grid-row
1496
- */
1497
- 'row-end': [{
1498
- 'row-end': scaleGridColRowStartOrEnd()
1499
- }],
1500
- /**
1501
- * Grid Auto Flow
1502
- * @see https://tailwindcss.com/docs/grid-auto-flow
1503
- */
1504
- 'grid-flow': [{
1505
- 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
1506
- }],
1507
- /**
1508
- * Grid Auto Columns
1509
- * @see https://tailwindcss.com/docs/grid-auto-columns
1510
- */
1511
- 'auto-cols': [{
1512
- 'auto-cols': scaleGridAutoColsRows()
1513
- }],
1514
- /**
1515
- * Grid Auto Rows
1516
- * @see https://tailwindcss.com/docs/grid-auto-rows
1517
- */
1518
- 'auto-rows': [{
1519
- 'auto-rows': scaleGridAutoColsRows()
1520
- }],
1521
- /**
1522
- * Gap
1523
- * @see https://tailwindcss.com/docs/gap
1524
- */
1525
- gap: [{
1526
- gap: scaleUnambiguousSpacing()
1527
- }],
1528
- /**
1529
- * Gap X
1530
- * @see https://tailwindcss.com/docs/gap
1531
- */
1532
- 'gap-x': [{
1533
- 'gap-x': scaleUnambiguousSpacing()
1534
- }],
1535
- /**
1536
- * Gap Y
1537
- * @see https://tailwindcss.com/docs/gap
1538
- */
1539
- 'gap-y': [{
1540
- 'gap-y': scaleUnambiguousSpacing()
1541
- }],
1542
- /**
1543
- * Justify Content
1544
- * @see https://tailwindcss.com/docs/justify-content
1545
- */
1546
- 'justify-content': [{
1547
- justify: [...scaleAlignPrimaryAxis(), 'normal']
1548
- }],
1549
- /**
1550
- * Justify Items
1551
- * @see https://tailwindcss.com/docs/justify-items
1552
- */
1553
- 'justify-items': [{
1554
- 'justify-items': [...scaleAlignSecondaryAxis(), 'normal']
1555
- }],
1556
- /**
1557
- * Justify Self
1558
- * @see https://tailwindcss.com/docs/justify-self
1559
- */
1560
- 'justify-self': [{
1561
- 'justify-self': ['auto', ...scaleAlignSecondaryAxis()]
1562
- }],
1563
- /**
1564
- * Align Content
1565
- * @see https://tailwindcss.com/docs/align-content
1566
- */
1567
- 'align-content': [{
1568
- content: ['normal', ...scaleAlignPrimaryAxis()]
1569
- }],
1570
- /**
1571
- * Align Items
1572
- * @see https://tailwindcss.com/docs/align-items
1573
- */
1574
- 'align-items': [{
1575
- items: [...scaleAlignSecondaryAxis(), {
1576
- baseline: ['', 'last']
1577
- }]
1578
- }],
1579
- /**
1580
- * Align Self
1581
- * @see https://tailwindcss.com/docs/align-self
1582
- */
1583
- 'align-self': [{
1584
- self: ['auto', ...scaleAlignSecondaryAxis(), {
1585
- baseline: ['', 'last']
1586
- }]
1587
- }],
1588
- /**
1589
- * Place Content
1590
- * @see https://tailwindcss.com/docs/place-content
1591
- */
1592
- 'place-content': [{
1593
- 'place-content': scaleAlignPrimaryAxis()
1594
- }],
1595
- /**
1596
- * Place Items
1597
- * @see https://tailwindcss.com/docs/place-items
1598
- */
1599
- 'place-items': [{
1600
- 'place-items': [...scaleAlignSecondaryAxis(), 'baseline']
1601
- }],
1602
- /**
1603
- * Place Self
1604
- * @see https://tailwindcss.com/docs/place-self
1605
- */
1606
- 'place-self': [{
1607
- 'place-self': ['auto', ...scaleAlignSecondaryAxis()]
1608
- }],
1609
- // Spacing
1610
- /**
1611
- * Padding
1612
- * @see https://tailwindcss.com/docs/padding
1613
- */
1614
- p: [{
1615
- p: scaleUnambiguousSpacing()
1616
- }],
1617
- /**
1618
- * Padding X
1619
- * @see https://tailwindcss.com/docs/padding
1620
- */
1621
- px: [{
1622
- px: scaleUnambiguousSpacing()
1623
- }],
1624
- /**
1625
- * Padding Y
1626
- * @see https://tailwindcss.com/docs/padding
1627
- */
1628
- py: [{
1629
- py: scaleUnambiguousSpacing()
1630
- }],
1631
- /**
1632
- * Padding Start
1633
- * @see https://tailwindcss.com/docs/padding
1634
- */
1635
- ps: [{
1636
- ps: scaleUnambiguousSpacing()
1637
- }],
1638
- /**
1639
- * Padding End
1640
- * @see https://tailwindcss.com/docs/padding
1641
- */
1642
- pe: [{
1643
- pe: scaleUnambiguousSpacing()
1644
- }],
1645
- /**
1646
- * Padding Top
1647
- * @see https://tailwindcss.com/docs/padding
1648
- */
1649
- pt: [{
1650
- pt: scaleUnambiguousSpacing()
1651
- }],
1652
- /**
1653
- * Padding Right
1654
- * @see https://tailwindcss.com/docs/padding
1655
- */
1656
- pr: [{
1657
- pr: scaleUnambiguousSpacing()
1658
- }],
1659
- /**
1660
- * Padding Bottom
1661
- * @see https://tailwindcss.com/docs/padding
1662
- */
1663
- pb: [{
1664
- pb: scaleUnambiguousSpacing()
1665
- }],
1666
- /**
1667
- * Padding Left
1668
- * @see https://tailwindcss.com/docs/padding
1669
- */
1670
- pl: [{
1671
- pl: scaleUnambiguousSpacing()
1672
- }],
1673
- /**
1674
- * Margin
1675
- * @see https://tailwindcss.com/docs/margin
1676
- */
1677
- m: [{
1678
- m: scaleMargin()
1679
- }],
1680
- /**
1681
- * Margin X
1682
- * @see https://tailwindcss.com/docs/margin
1683
- */
1684
- mx: [{
1685
- mx: scaleMargin()
1686
- }],
1687
- /**
1688
- * Margin Y
1689
- * @see https://tailwindcss.com/docs/margin
1690
- */
1691
- my: [{
1692
- my: scaleMargin()
1693
- }],
1694
- /**
1695
- * Margin Start
1696
- * @see https://tailwindcss.com/docs/margin
1697
- */
1698
- ms: [{
1699
- ms: scaleMargin()
1700
- }],
1701
- /**
1702
- * Margin End
1703
- * @see https://tailwindcss.com/docs/margin
1704
- */
1705
- me: [{
1706
- me: scaleMargin()
1707
- }],
1708
- /**
1709
- * Margin Top
1710
- * @see https://tailwindcss.com/docs/margin
1711
- */
1712
- mt: [{
1713
- mt: scaleMargin()
1714
- }],
1715
- /**
1716
- * Margin Right
1717
- * @see https://tailwindcss.com/docs/margin
1718
- */
1719
- mr: [{
1720
- mr: scaleMargin()
1721
- }],
1722
- /**
1723
- * Margin Bottom
1724
- * @see https://tailwindcss.com/docs/margin
1725
- */
1726
- mb: [{
1727
- mb: scaleMargin()
1728
- }],
1729
- /**
1730
- * Margin Left
1731
- * @see https://tailwindcss.com/docs/margin
1732
- */
1733
- ml: [{
1734
- ml: scaleMargin()
1735
- }],
1736
- /**
1737
- * Space Between X
1738
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1739
- */
1740
- 'space-x': [{
1741
- 'space-x': scaleUnambiguousSpacing()
1742
- }],
1743
- /**
1744
- * Space Between X Reverse
1745
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1746
- */
1747
- 'space-x-reverse': ['space-x-reverse'],
1748
- /**
1749
- * Space Between Y
1750
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1751
- */
1752
- 'space-y': [{
1753
- 'space-y': scaleUnambiguousSpacing()
1754
- }],
1755
- /**
1756
- * Space Between Y Reverse
1757
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1758
- */
1759
- 'space-y-reverse': ['space-y-reverse'],
1760
- // --------------
1761
- // --- Sizing ---
1762
- // --------------
1763
- /**
1764
- * Size
1765
- * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1766
- */
1767
- size: [{
1768
- size: scaleSizing()
1769
- }],
1770
- /**
1771
- * Width
1772
- * @see https://tailwindcss.com/docs/width
1773
- */
1774
- w: [{
1775
- w: [themeContainer, 'screen', ...scaleSizing()]
1776
- }],
1777
- /**
1778
- * Min-Width
1779
- * @see https://tailwindcss.com/docs/min-width
1780
- */
1781
- 'min-w': [{
1782
- 'min-w': [themeContainer, 'screen', /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1783
- 'none', ...scaleSizing()]
1784
- }],
1785
- /**
1786
- * Max-Width
1787
- * @see https://tailwindcss.com/docs/max-width
1788
- */
1789
- 'max-w': [{
1790
- 'max-w': [themeContainer, 'screen', 'none', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1791
- 'prose', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1792
- {
1793
- screen: [themeBreakpoint]
1794
- }, ...scaleSizing()]
1795
- }],
1796
- /**
1797
- * Height
1798
- * @see https://tailwindcss.com/docs/height
1799
- */
1800
- h: [{
1801
- h: ['screen', 'lh', ...scaleSizing()]
1802
- }],
1803
- /**
1804
- * Min-Height
1805
- * @see https://tailwindcss.com/docs/min-height
1806
- */
1807
- 'min-h': [{
1808
- 'min-h': ['screen', 'lh', 'none', ...scaleSizing()]
1809
- }],
1810
- /**
1811
- * Max-Height
1812
- * @see https://tailwindcss.com/docs/max-height
1813
- */
1814
- 'max-h': [{
1815
- 'max-h': ['screen', 'lh', ...scaleSizing()]
1816
- }],
1817
- // ------------------
1818
- // --- Typography ---
1819
- // ------------------
1820
- /**
1821
- * Font Size
1822
- * @see https://tailwindcss.com/docs/font-size
1823
- */
1824
- 'font-size': [{
1825
- text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength]
1826
- }],
1827
- /**
1828
- * Font Smoothing
1829
- * @see https://tailwindcss.com/docs/font-smoothing
1830
- */
1831
- 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
1832
- /**
1833
- * Font Style
1834
- * @see https://tailwindcss.com/docs/font-style
1835
- */
1836
- 'font-style': ['italic', 'not-italic'],
1837
- /**
1838
- * Font Weight
1839
- * @see https://tailwindcss.com/docs/font-weight
1840
- */
1841
- 'font-weight': [{
1842
- font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]
1843
- }],
1844
- /**
1845
- * Font Stretch
1846
- * @see https://tailwindcss.com/docs/font-stretch
1847
- */
1848
- 'font-stretch': [{
1849
- 'font-stretch': ['ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded', isPercent, isArbitraryValue]
1850
- }],
1851
- /**
1852
- * Font Family
1853
- * @see https://tailwindcss.com/docs/font-family
1854
- */
1855
- 'font-family': [{
1856
- font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]
1857
- }],
1858
- /**
1859
- * Font Variant Numeric
1860
- * @see https://tailwindcss.com/docs/font-variant-numeric
1861
- */
1862
- 'fvn-normal': ['normal-nums'],
1863
- /**
1864
- * Font Variant Numeric
1865
- * @see https://tailwindcss.com/docs/font-variant-numeric
1866
- */
1867
- 'fvn-ordinal': ['ordinal'],
1868
- /**
1869
- * Font Variant Numeric
1870
- * @see https://tailwindcss.com/docs/font-variant-numeric
1871
- */
1872
- 'fvn-slashed-zero': ['slashed-zero'],
1873
- /**
1874
- * Font Variant Numeric
1875
- * @see https://tailwindcss.com/docs/font-variant-numeric
1876
- */
1877
- 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
1878
- /**
1879
- * Font Variant Numeric
1880
- * @see https://tailwindcss.com/docs/font-variant-numeric
1881
- */
1882
- 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
1883
- /**
1884
- * Font Variant Numeric
1885
- * @see https://tailwindcss.com/docs/font-variant-numeric
1886
- */
1887
- 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],
1888
- /**
1889
- * Letter Spacing
1890
- * @see https://tailwindcss.com/docs/letter-spacing
1891
- */
1892
- tracking: [{
1893
- tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
1894
- }],
1895
- /**
1896
- * Line Clamp
1897
- * @see https://tailwindcss.com/docs/line-clamp
1898
- */
1899
- 'line-clamp': [{
1900
- 'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber]
1901
- }],
1902
- /**
1903
- * Line Height
1904
- * @see https://tailwindcss.com/docs/line-height
1905
- */
1906
- leading: [{
1907
- leading: [/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1908
- themeLeading, ...scaleUnambiguousSpacing()]
1909
- }],
1910
- /**
1911
- * List Style Image
1912
- * @see https://tailwindcss.com/docs/list-style-image
1913
- */
1914
- 'list-image': [{
1915
- 'list-image': ['none', isArbitraryVariable, isArbitraryValue]
1916
- }],
1917
- /**
1918
- * List Style Position
1919
- * @see https://tailwindcss.com/docs/list-style-position
1920
- */
1921
- 'list-style-position': [{
1922
- list: ['inside', 'outside']
1923
- }],
1924
- /**
1925
- * List Style Type
1926
- * @see https://tailwindcss.com/docs/list-style-type
1927
- */
1928
- 'list-style-type': [{
1929
- list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue]
1930
- }],
1931
- /**
1932
- * Text Alignment
1933
- * @see https://tailwindcss.com/docs/text-align
1934
- */
1935
- 'text-alignment': [{
1936
- text: ['left', 'center', 'right', 'justify', 'start', 'end']
1937
- }],
1938
- /**
1939
- * Placeholder Color
1940
- * @deprecated since Tailwind CSS v3.0.0
1941
- * @see https://v3.tailwindcss.com/docs/placeholder-color
1942
- */
1943
- 'placeholder-color': [{
1944
- placeholder: scaleColor()
1945
- }],
1946
- /**
1947
- * Text Color
1948
- * @see https://tailwindcss.com/docs/text-color
1949
- */
1950
- 'text-color': [{
1951
- text: scaleColor()
1952
- }],
1953
- /**
1954
- * Text Decoration
1955
- * @see https://tailwindcss.com/docs/text-decoration
1956
- */
1957
- 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
1958
- /**
1959
- * Text Decoration Style
1960
- * @see https://tailwindcss.com/docs/text-decoration-style
1961
- */
1962
- 'text-decoration-style': [{
1963
- decoration: [...scaleLineStyle(), 'wavy']
1964
- }],
1965
- /**
1966
- * Text Decoration Thickness
1967
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1968
- */
1969
- 'text-decoration-thickness': [{
1970
- decoration: [isNumber, 'from-font', 'auto', isArbitraryVariable, isArbitraryLength]
1971
- }],
1972
- /**
1973
- * Text Decoration Color
1974
- * @see https://tailwindcss.com/docs/text-decoration-color
1975
- */
1976
- 'text-decoration-color': [{
1977
- decoration: scaleColor()
1978
- }],
1979
- /**
1980
- * Text Underline Offset
1981
- * @see https://tailwindcss.com/docs/text-underline-offset
1982
- */
1983
- 'underline-offset': [{
1984
- 'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue]
1985
- }],
1986
- /**
1987
- * Text Transform
1988
- * @see https://tailwindcss.com/docs/text-transform
1989
- */
1990
- 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
1991
- /**
1992
- * Text Overflow
1993
- * @see https://tailwindcss.com/docs/text-overflow
1994
- */
1995
- 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
1996
- /**
1997
- * Text Wrap
1998
- * @see https://tailwindcss.com/docs/text-wrap
1999
- */
2000
- 'text-wrap': [{
2001
- text: ['wrap', 'nowrap', 'balance', 'pretty']
2002
- }],
2003
- /**
2004
- * Text Indent
2005
- * @see https://tailwindcss.com/docs/text-indent
2006
- */
2007
- indent: [{
2008
- indent: scaleUnambiguousSpacing()
2009
- }],
2010
- /**
2011
- * Vertical Alignment
2012
- * @see https://tailwindcss.com/docs/vertical-align
2013
- */
2014
- 'vertical-align': [{
2015
- align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryVariable, isArbitraryValue]
2016
- }],
2017
- /**
2018
- * Whitespace
2019
- * @see https://tailwindcss.com/docs/whitespace
2020
- */
2021
- whitespace: [{
2022
- whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
2023
- }],
2024
- /**
2025
- * Word Break
2026
- * @see https://tailwindcss.com/docs/word-break
2027
- */
2028
- break: [{
2029
- break: ['normal', 'words', 'all', 'keep']
2030
- }],
2031
- /**
2032
- * Overflow Wrap
2033
- * @see https://tailwindcss.com/docs/overflow-wrap
2034
- */
2035
- wrap: [{
2036
- wrap: ['break-word', 'anywhere', 'normal']
2037
- }],
2038
- /**
2039
- * Hyphens
2040
- * @see https://tailwindcss.com/docs/hyphens
2041
- */
2042
- hyphens: [{
2043
- hyphens: ['none', 'manual', 'auto']
2044
- }],
2045
- /**
2046
- * Content
2047
- * @see https://tailwindcss.com/docs/content
2048
- */
2049
- content: [{
2050
- content: ['none', isArbitraryVariable, isArbitraryValue]
2051
- }],
2052
- // -------------------
2053
- // --- Backgrounds ---
2054
- // -------------------
2055
- /**
2056
- * Background Attachment
2057
- * @see https://tailwindcss.com/docs/background-attachment
2058
- */
2059
- 'bg-attachment': [{
2060
- bg: ['fixed', 'local', 'scroll']
2061
- }],
2062
- /**
2063
- * Background Clip
2064
- * @see https://tailwindcss.com/docs/background-clip
2065
- */
2066
- 'bg-clip': [{
2067
- 'bg-clip': ['border', 'padding', 'content', 'text']
2068
- }],
2069
- /**
2070
- * Background Origin
2071
- * @see https://tailwindcss.com/docs/background-origin
2072
- */
2073
- 'bg-origin': [{
2074
- 'bg-origin': ['border', 'padding', 'content']
2075
- }],
2076
- /**
2077
- * Background Position
2078
- * @see https://tailwindcss.com/docs/background-position
2079
- */
2080
- 'bg-position': [{
2081
- bg: scaleBgPosition()
2082
- }],
2083
- /**
2084
- * Background Repeat
2085
- * @see https://tailwindcss.com/docs/background-repeat
2086
- */
2087
- 'bg-repeat': [{
2088
- bg: scaleBgRepeat()
2089
- }],
2090
- /**
2091
- * Background Size
2092
- * @see https://tailwindcss.com/docs/background-size
2093
- */
2094
- 'bg-size': [{
2095
- bg: scaleBgSize()
2096
- }],
2097
- /**
2098
- * Background Image
2099
- * @see https://tailwindcss.com/docs/background-image
2100
- */
2101
- 'bg-image': [{
2102
- bg: ['none', {
2103
- linear: [{
2104
- to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
2105
- }, isInteger, isArbitraryVariable, isArbitraryValue],
2106
- radial: ['', isArbitraryVariable, isArbitraryValue],
2107
- conic: [isInteger, isArbitraryVariable, isArbitraryValue]
2108
- }, isArbitraryVariableImage, isArbitraryImage]
2109
- }],
2110
- /**
2111
- * Background Color
2112
- * @see https://tailwindcss.com/docs/background-color
2113
- */
2114
- 'bg-color': [{
2115
- bg: scaleColor()
2116
- }],
2117
- /**
2118
- * Gradient Color Stops From Position
2119
- * @see https://tailwindcss.com/docs/gradient-color-stops
2120
- */
2121
- 'gradient-from-pos': [{
2122
- from: scaleGradientStopPosition()
2123
- }],
2124
- /**
2125
- * Gradient Color Stops Via Position
2126
- * @see https://tailwindcss.com/docs/gradient-color-stops
2127
- */
2128
- 'gradient-via-pos': [{
2129
- via: scaleGradientStopPosition()
2130
- }],
2131
- /**
2132
- * Gradient Color Stops To Position
2133
- * @see https://tailwindcss.com/docs/gradient-color-stops
2134
- */
2135
- 'gradient-to-pos': [{
2136
- to: scaleGradientStopPosition()
2137
- }],
2138
- /**
2139
- * Gradient Color Stops From
2140
- * @see https://tailwindcss.com/docs/gradient-color-stops
2141
- */
2142
- 'gradient-from': [{
2143
- from: scaleColor()
2144
- }],
2145
- /**
2146
- * Gradient Color Stops Via
2147
- * @see https://tailwindcss.com/docs/gradient-color-stops
2148
- */
2149
- 'gradient-via': [{
2150
- via: scaleColor()
2151
- }],
2152
- /**
2153
- * Gradient Color Stops To
2154
- * @see https://tailwindcss.com/docs/gradient-color-stops
2155
- */
2156
- 'gradient-to': [{
2157
- to: scaleColor()
2158
- }],
2159
- // ---------------
2160
- // --- Borders ---
2161
- // ---------------
2162
- /**
2163
- * Border Radius
2164
- * @see https://tailwindcss.com/docs/border-radius
2165
- */
2166
- rounded: [{
2167
- rounded: scaleRadius()
2168
- }],
2169
- /**
2170
- * Border Radius Start
2171
- * @see https://tailwindcss.com/docs/border-radius
2172
- */
2173
- 'rounded-s': [{
2174
- 'rounded-s': scaleRadius()
2175
- }],
2176
- /**
2177
- * Border Radius End
2178
- * @see https://tailwindcss.com/docs/border-radius
2179
- */
2180
- 'rounded-e': [{
2181
- 'rounded-e': scaleRadius()
2182
- }],
2183
- /**
2184
- * Border Radius Top
2185
- * @see https://tailwindcss.com/docs/border-radius
2186
- */
2187
- 'rounded-t': [{
2188
- 'rounded-t': scaleRadius()
2189
- }],
2190
- /**
2191
- * Border Radius Right
2192
- * @see https://tailwindcss.com/docs/border-radius
2193
- */
2194
- 'rounded-r': [{
2195
- 'rounded-r': scaleRadius()
2196
- }],
2197
- /**
2198
- * Border Radius Bottom
2199
- * @see https://tailwindcss.com/docs/border-radius
2200
- */
2201
- 'rounded-b': [{
2202
- 'rounded-b': scaleRadius()
2203
- }],
2204
- /**
2205
- * Border Radius Left
2206
- * @see https://tailwindcss.com/docs/border-radius
2207
- */
2208
- 'rounded-l': [{
2209
- 'rounded-l': scaleRadius()
2210
- }],
2211
- /**
2212
- * Border Radius Start Start
2213
- * @see https://tailwindcss.com/docs/border-radius
2214
- */
2215
- 'rounded-ss': [{
2216
- 'rounded-ss': scaleRadius()
2217
- }],
2218
- /**
2219
- * Border Radius Start End
2220
- * @see https://tailwindcss.com/docs/border-radius
2221
- */
2222
- 'rounded-se': [{
2223
- 'rounded-se': scaleRadius()
2224
- }],
2225
- /**
2226
- * Border Radius End End
2227
- * @see https://tailwindcss.com/docs/border-radius
2228
- */
2229
- 'rounded-ee': [{
2230
- 'rounded-ee': scaleRadius()
2231
- }],
2232
- /**
2233
- * Border Radius End Start
2234
- * @see https://tailwindcss.com/docs/border-radius
2235
- */
2236
- 'rounded-es': [{
2237
- 'rounded-es': scaleRadius()
2238
- }],
2239
- /**
2240
- * Border Radius Top Left
2241
- * @see https://tailwindcss.com/docs/border-radius
2242
- */
2243
- 'rounded-tl': [{
2244
- 'rounded-tl': scaleRadius()
2245
- }],
2246
- /**
2247
- * Border Radius Top Right
2248
- * @see https://tailwindcss.com/docs/border-radius
2249
- */
2250
- 'rounded-tr': [{
2251
- 'rounded-tr': scaleRadius()
2252
- }],
2253
- /**
2254
- * Border Radius Bottom Right
2255
- * @see https://tailwindcss.com/docs/border-radius
2256
- */
2257
- 'rounded-br': [{
2258
- 'rounded-br': scaleRadius()
2259
- }],
2260
- /**
2261
- * Border Radius Bottom Left
2262
- * @see https://tailwindcss.com/docs/border-radius
2263
- */
2264
- 'rounded-bl': [{
2265
- 'rounded-bl': scaleRadius()
2266
- }],
2267
- /**
2268
- * Border Width
2269
- * @see https://tailwindcss.com/docs/border-width
2270
- */
2271
- 'border-w': [{
2272
- border: scaleBorderWidth()
2273
- }],
2274
- /**
2275
- * Border Width X
2276
- * @see https://tailwindcss.com/docs/border-width
2277
- */
2278
- 'border-w-x': [{
2279
- 'border-x': scaleBorderWidth()
2280
- }],
2281
- /**
2282
- * Border Width Y
2283
- * @see https://tailwindcss.com/docs/border-width
2284
- */
2285
- 'border-w-y': [{
2286
- 'border-y': scaleBorderWidth()
2287
- }],
2288
- /**
2289
- * Border Width Start
2290
- * @see https://tailwindcss.com/docs/border-width
2291
- */
2292
- 'border-w-s': [{
2293
- 'border-s': scaleBorderWidth()
2294
- }],
2295
- /**
2296
- * Border Width End
2297
- * @see https://tailwindcss.com/docs/border-width
2298
- */
2299
- 'border-w-e': [{
2300
- 'border-e': scaleBorderWidth()
2301
- }],
2302
- /**
2303
- * Border Width Top
2304
- * @see https://tailwindcss.com/docs/border-width
2305
- */
2306
- 'border-w-t': [{
2307
- 'border-t': scaleBorderWidth()
2308
- }],
2309
- /**
2310
- * Border Width Right
2311
- * @see https://tailwindcss.com/docs/border-width
2312
- */
2313
- 'border-w-r': [{
2314
- 'border-r': scaleBorderWidth()
2315
- }],
2316
- /**
2317
- * Border Width Bottom
2318
- * @see https://tailwindcss.com/docs/border-width
2319
- */
2320
- 'border-w-b': [{
2321
- 'border-b': scaleBorderWidth()
2322
- }],
2323
- /**
2324
- * Border Width Left
2325
- * @see https://tailwindcss.com/docs/border-width
2326
- */
2327
- 'border-w-l': [{
2328
- 'border-l': scaleBorderWidth()
2329
- }],
2330
- /**
2331
- * Divide Width X
2332
- * @see https://tailwindcss.com/docs/border-width#between-children
2333
- */
2334
- 'divide-x': [{
2335
- 'divide-x': scaleBorderWidth()
2336
- }],
2337
- /**
2338
- * Divide Width X Reverse
2339
- * @see https://tailwindcss.com/docs/border-width#between-children
2340
- */
2341
- 'divide-x-reverse': ['divide-x-reverse'],
2342
- /**
2343
- * Divide Width Y
2344
- * @see https://tailwindcss.com/docs/border-width#between-children
2345
- */
2346
- 'divide-y': [{
2347
- 'divide-y': scaleBorderWidth()
2348
- }],
2349
- /**
2350
- * Divide Width Y Reverse
2351
- * @see https://tailwindcss.com/docs/border-width#between-children
2352
- */
2353
- 'divide-y-reverse': ['divide-y-reverse'],
2354
- /**
2355
- * Border Style
2356
- * @see https://tailwindcss.com/docs/border-style
2357
- */
2358
- 'border-style': [{
2359
- border: [...scaleLineStyle(), 'hidden', 'none']
2360
- }],
2361
- /**
2362
- * Divide Style
2363
- * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2364
- */
2365
- 'divide-style': [{
2366
- divide: [...scaleLineStyle(), 'hidden', 'none']
2367
- }],
2368
- /**
2369
- * Border Color
2370
- * @see https://tailwindcss.com/docs/border-color
2371
- */
2372
- 'border-color': [{
2373
- border: scaleColor()
2374
- }],
2375
- /**
2376
- * Border Color X
2377
- * @see https://tailwindcss.com/docs/border-color
2378
- */
2379
- 'border-color-x': [{
2380
- 'border-x': scaleColor()
2381
- }],
2382
- /**
2383
- * Border Color Y
2384
- * @see https://tailwindcss.com/docs/border-color
2385
- */
2386
- 'border-color-y': [{
2387
- 'border-y': scaleColor()
2388
- }],
2389
- /**
2390
- * Border Color S
2391
- * @see https://tailwindcss.com/docs/border-color
2392
- */
2393
- 'border-color-s': [{
2394
- 'border-s': scaleColor()
2395
- }],
2396
- /**
2397
- * Border Color E
2398
- * @see https://tailwindcss.com/docs/border-color
2399
- */
2400
- 'border-color-e': [{
2401
- 'border-e': scaleColor()
2402
- }],
2403
- /**
2404
- * Border Color Top
2405
- * @see https://tailwindcss.com/docs/border-color
2406
- */
2407
- 'border-color-t': [{
2408
- 'border-t': scaleColor()
2409
- }],
2410
- /**
2411
- * Border Color Right
2412
- * @see https://tailwindcss.com/docs/border-color
2413
- */
2414
- 'border-color-r': [{
2415
- 'border-r': scaleColor()
2416
- }],
2417
- /**
2418
- * Border Color Bottom
2419
- * @see https://tailwindcss.com/docs/border-color
2420
- */
2421
- 'border-color-b': [{
2422
- 'border-b': scaleColor()
2423
- }],
2424
- /**
2425
- * Border Color Left
2426
- * @see https://tailwindcss.com/docs/border-color
2427
- */
2428
- 'border-color-l': [{
2429
- 'border-l': scaleColor()
2430
- }],
2431
- /**
2432
- * Divide Color
2433
- * @see https://tailwindcss.com/docs/divide-color
2434
- */
2435
- 'divide-color': [{
2436
- divide: scaleColor()
2437
- }],
2438
- /**
2439
- * Outline Style
2440
- * @see https://tailwindcss.com/docs/outline-style
2441
- */
2442
- 'outline-style': [{
2443
- outline: [...scaleLineStyle(), 'none', 'hidden']
2444
- }],
2445
- /**
2446
- * Outline Offset
2447
- * @see https://tailwindcss.com/docs/outline-offset
2448
- */
2449
- 'outline-offset': [{
2450
- 'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue]
2451
- }],
2452
- /**
2453
- * Outline Width
2454
- * @see https://tailwindcss.com/docs/outline-width
2455
- */
2456
- 'outline-w': [{
2457
- outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength]
2458
- }],
2459
- /**
2460
- * Outline Color
2461
- * @see https://tailwindcss.com/docs/outline-color
2462
- */
2463
- 'outline-color': [{
2464
- outline: scaleColor()
2465
- }],
2466
- // ---------------
2467
- // --- Effects ---
2468
- // ---------------
2469
- /**
2470
- * Box Shadow
2471
- * @see https://tailwindcss.com/docs/box-shadow
2472
- */
2473
- shadow: [{
2474
- shadow: [
2475
- // Deprecated since Tailwind CSS v4.0.0
2476
- '', 'none', themeShadow, isArbitraryVariableShadow, isArbitraryShadow]
2477
- }],
2478
- /**
2479
- * Box Shadow Color
2480
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2481
- */
2482
- 'shadow-color': [{
2483
- shadow: scaleColor()
2484
- }],
2485
- /**
2486
- * Inset Box Shadow
2487
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2488
- */
2489
- 'inset-shadow': [{
2490
- 'inset-shadow': ['none', themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2491
- }],
2492
- /**
2493
- * Inset Box Shadow Color
2494
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2495
- */
2496
- 'inset-shadow-color': [{
2497
- 'inset-shadow': scaleColor()
2498
- }],
2499
- /**
2500
- * Ring Width
2501
- * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2502
- */
2503
- 'ring-w': [{
2504
- ring: scaleBorderWidth()
2505
- }],
2506
- /**
2507
- * Ring Width Inset
2508
- * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2509
- * @deprecated since Tailwind CSS v4.0.0
2510
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2511
- */
2512
- 'ring-w-inset': ['ring-inset'],
2513
- /**
2514
- * Ring Color
2515
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2516
- */
2517
- 'ring-color': [{
2518
- ring: scaleColor()
2519
- }],
2520
- /**
2521
- * Ring Offset Width
2522
- * @see https://v3.tailwindcss.com/docs/ring-offset-width
2523
- * @deprecated since Tailwind CSS v4.0.0
2524
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2525
- */
2526
- 'ring-offset-w': [{
2527
- 'ring-offset': [isNumber, isArbitraryLength]
2528
- }],
2529
- /**
2530
- * Ring Offset Color
2531
- * @see https://v3.tailwindcss.com/docs/ring-offset-color
2532
- * @deprecated since Tailwind CSS v4.0.0
2533
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2534
- */
2535
- 'ring-offset-color': [{
2536
- 'ring-offset': scaleColor()
2537
- }],
2538
- /**
2539
- * Inset Ring Width
2540
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2541
- */
2542
- 'inset-ring-w': [{
2543
- 'inset-ring': scaleBorderWidth()
2544
- }],
2545
- /**
2546
- * Inset Ring Color
2547
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2548
- */
2549
- 'inset-ring-color': [{
2550
- 'inset-ring': scaleColor()
2551
- }],
2552
- /**
2553
- * Text Shadow
2554
- * @see https://tailwindcss.com/docs/text-shadow
2555
- */
2556
- 'text-shadow': [{
2557
- 'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2558
- }],
2559
- /**
2560
- * Text Shadow Color
2561
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2562
- */
2563
- 'text-shadow-color': [{
2564
- 'text-shadow': scaleColor()
2565
- }],
2566
- /**
2567
- * Opacity
2568
- * @see https://tailwindcss.com/docs/opacity
2569
- */
2570
- opacity: [{
2571
- opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
2572
- }],
2573
- /**
2574
- * Mix Blend Mode
2575
- * @see https://tailwindcss.com/docs/mix-blend-mode
2576
- */
2577
- 'mix-blend': [{
2578
- 'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter']
2579
- }],
2580
- /**
2581
- * Background Blend Mode
2582
- * @see https://tailwindcss.com/docs/background-blend-mode
2583
- */
2584
- 'bg-blend': [{
2585
- 'bg-blend': scaleBlendMode()
2586
- }],
2587
- /**
2588
- * Mask Clip
2589
- * @see https://tailwindcss.com/docs/mask-clip
2590
- */
2591
- 'mask-clip': [{
2592
- 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
2593
- }, 'mask-no-clip'],
2594
- /**
2595
- * Mask Composite
2596
- * @see https://tailwindcss.com/docs/mask-composite
2597
- */
2598
- 'mask-composite': [{
2599
- mask: ['add', 'subtract', 'intersect', 'exclude']
2600
- }],
2601
- /**
2602
- * Mask Image
2603
- * @see https://tailwindcss.com/docs/mask-image
2604
- */
2605
- 'mask-image-linear-pos': [{
2606
- 'mask-linear': [isNumber]
2607
- }],
2608
- 'mask-image-linear-from-pos': [{
2609
- 'mask-linear-from': scaleMaskImagePosition()
2610
- }],
2611
- 'mask-image-linear-to-pos': [{
2612
- 'mask-linear-to': scaleMaskImagePosition()
2613
- }],
2614
- 'mask-image-linear-from-color': [{
2615
- 'mask-linear-from': scaleColor()
2616
- }],
2617
- 'mask-image-linear-to-color': [{
2618
- 'mask-linear-to': scaleColor()
2619
- }],
2620
- 'mask-image-t-from-pos': [{
2621
- 'mask-t-from': scaleMaskImagePosition()
2622
- }],
2623
- 'mask-image-t-to-pos': [{
2624
- 'mask-t-to': scaleMaskImagePosition()
2625
- }],
2626
- 'mask-image-t-from-color': [{
2627
- 'mask-t-from': scaleColor()
2628
- }],
2629
- 'mask-image-t-to-color': [{
2630
- 'mask-t-to': scaleColor()
2631
- }],
2632
- 'mask-image-r-from-pos': [{
2633
- 'mask-r-from': scaleMaskImagePosition()
2634
- }],
2635
- 'mask-image-r-to-pos': [{
2636
- 'mask-r-to': scaleMaskImagePosition()
2637
- }],
2638
- 'mask-image-r-from-color': [{
2639
- 'mask-r-from': scaleColor()
2640
- }],
2641
- 'mask-image-r-to-color': [{
2642
- 'mask-r-to': scaleColor()
2643
- }],
2644
- 'mask-image-b-from-pos': [{
2645
- 'mask-b-from': scaleMaskImagePosition()
2646
- }],
2647
- 'mask-image-b-to-pos': [{
2648
- 'mask-b-to': scaleMaskImagePosition()
2649
- }],
2650
- 'mask-image-b-from-color': [{
2651
- 'mask-b-from': scaleColor()
2652
- }],
2653
- 'mask-image-b-to-color': [{
2654
- 'mask-b-to': scaleColor()
2655
- }],
2656
- 'mask-image-l-from-pos': [{
2657
- 'mask-l-from': scaleMaskImagePosition()
2658
- }],
2659
- 'mask-image-l-to-pos': [{
2660
- 'mask-l-to': scaleMaskImagePosition()
2661
- }],
2662
- 'mask-image-l-from-color': [{
2663
- 'mask-l-from': scaleColor()
2664
- }],
2665
- 'mask-image-l-to-color': [{
2666
- 'mask-l-to': scaleColor()
2667
- }],
2668
- 'mask-image-x-from-pos': [{
2669
- 'mask-x-from': scaleMaskImagePosition()
2670
- }],
2671
- 'mask-image-x-to-pos': [{
2672
- 'mask-x-to': scaleMaskImagePosition()
2673
- }],
2674
- 'mask-image-x-from-color': [{
2675
- 'mask-x-from': scaleColor()
2676
- }],
2677
- 'mask-image-x-to-color': [{
2678
- 'mask-x-to': scaleColor()
2679
- }],
2680
- 'mask-image-y-from-pos': [{
2681
- 'mask-y-from': scaleMaskImagePosition()
2682
- }],
2683
- 'mask-image-y-to-pos': [{
2684
- 'mask-y-to': scaleMaskImagePosition()
2685
- }],
2686
- 'mask-image-y-from-color': [{
2687
- 'mask-y-from': scaleColor()
2688
- }],
2689
- 'mask-image-y-to-color': [{
2690
- 'mask-y-to': scaleColor()
2691
- }],
2692
- 'mask-image-radial': [{
2693
- 'mask-radial': [isArbitraryVariable, isArbitraryValue]
2694
- }],
2695
- 'mask-image-radial-from-pos': [{
2696
- 'mask-radial-from': scaleMaskImagePosition()
2697
- }],
2698
- 'mask-image-radial-to-pos': [{
2699
- 'mask-radial-to': scaleMaskImagePosition()
2700
- }],
2701
- 'mask-image-radial-from-color': [{
2702
- 'mask-radial-from': scaleColor()
2703
- }],
2704
- 'mask-image-radial-to-color': [{
2705
- 'mask-radial-to': scaleColor()
2706
- }],
2707
- 'mask-image-radial-shape': [{
2708
- 'mask-radial': ['circle', 'ellipse']
2709
- }],
2710
- 'mask-image-radial-size': [{
2711
- 'mask-radial': [{
2712
- closest: ['side', 'corner'],
2713
- farthest: ['side', 'corner']
2714
- }]
2715
- }],
2716
- 'mask-image-radial-pos': [{
2717
- 'mask-radial-at': scalePosition()
2718
- }],
2719
- 'mask-image-conic-pos': [{
2720
- 'mask-conic': [isNumber]
2721
- }],
2722
- 'mask-image-conic-from-pos': [{
2723
- 'mask-conic-from': scaleMaskImagePosition()
2724
- }],
2725
- 'mask-image-conic-to-pos': [{
2726
- 'mask-conic-to': scaleMaskImagePosition()
2727
- }],
2728
- 'mask-image-conic-from-color': [{
2729
- 'mask-conic-from': scaleColor()
2730
- }],
2731
- 'mask-image-conic-to-color': [{
2732
- 'mask-conic-to': scaleColor()
2733
- }],
2734
- /**
2735
- * Mask Mode
2736
- * @see https://tailwindcss.com/docs/mask-mode
2737
- */
2738
- 'mask-mode': [{
2739
- mask: ['alpha', 'luminance', 'match']
2740
- }],
2741
- /**
2742
- * Mask Origin
2743
- * @see https://tailwindcss.com/docs/mask-origin
2744
- */
2745
- 'mask-origin': [{
2746
- 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
2747
- }],
2748
- /**
2749
- * Mask Position
2750
- * @see https://tailwindcss.com/docs/mask-position
2751
- */
2752
- 'mask-position': [{
2753
- mask: scaleBgPosition()
2754
- }],
2755
- /**
2756
- * Mask Repeat
2757
- * @see https://tailwindcss.com/docs/mask-repeat
2758
- */
2759
- 'mask-repeat': [{
2760
- mask: scaleBgRepeat()
2761
- }],
2762
- /**
2763
- * Mask Size
2764
- * @see https://tailwindcss.com/docs/mask-size
2765
- */
2766
- 'mask-size': [{
2767
- mask: scaleBgSize()
2768
- }],
2769
- /**
2770
- * Mask Type
2771
- * @see https://tailwindcss.com/docs/mask-type
2772
- */
2773
- 'mask-type': [{
2774
- 'mask-type': ['alpha', 'luminance']
2775
- }],
2776
- /**
2777
- * Mask Image
2778
- * @see https://tailwindcss.com/docs/mask-image
2779
- */
2780
- 'mask-image': [{
2781
- mask: ['none', isArbitraryVariable, isArbitraryValue]
2782
- }],
2783
- // ---------------
2784
- // --- Filters ---
2785
- // ---------------
2786
- /**
2787
- * Filter
2788
- * @see https://tailwindcss.com/docs/filter
2789
- */
2790
- filter: [{
2791
- filter: [
2792
- // Deprecated since Tailwind CSS v3.0.0
2793
- '', 'none', isArbitraryVariable, isArbitraryValue]
2794
- }],
2795
- /**
2796
- * Blur
2797
- * @see https://tailwindcss.com/docs/blur
2798
- */
2799
- blur: [{
2800
- blur: scaleBlur()
2801
- }],
2802
- /**
2803
- * Brightness
2804
- * @see https://tailwindcss.com/docs/brightness
2805
- */
2806
- brightness: [{
2807
- brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
2808
- }],
2809
- /**
2810
- * Contrast
2811
- * @see https://tailwindcss.com/docs/contrast
2812
- */
2813
- contrast: [{
2814
- contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
2815
- }],
2816
- /**
2817
- * Drop Shadow
2818
- * @see https://tailwindcss.com/docs/drop-shadow
2819
- */
2820
- 'drop-shadow': [{
2821
- 'drop-shadow': [
2822
- // Deprecated since Tailwind CSS v4.0.0
2823
- '', 'none', themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]
2824
- }],
2825
- /**
2826
- * Drop Shadow Color
2827
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2828
- */
2829
- 'drop-shadow-color': [{
2830
- 'drop-shadow': scaleColor()
2831
- }],
2832
- /**
2833
- * Grayscale
2834
- * @see https://tailwindcss.com/docs/grayscale
2835
- */
2836
- grayscale: [{
2837
- grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue]
2838
- }],
2839
- /**
2840
- * Hue Rotate
2841
- * @see https://tailwindcss.com/docs/hue-rotate
2842
- */
2843
- 'hue-rotate': [{
2844
- 'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
2845
- }],
2846
- /**
2847
- * Invert
2848
- * @see https://tailwindcss.com/docs/invert
2849
- */
2850
- invert: [{
2851
- invert: ['', isNumber, isArbitraryVariable, isArbitraryValue]
2852
- }],
2853
- /**
2854
- * Saturate
2855
- * @see https://tailwindcss.com/docs/saturate
2856
- */
2857
- saturate: [{
2858
- saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
2859
- }],
2860
- /**
2861
- * Sepia
2862
- * @see https://tailwindcss.com/docs/sepia
2863
- */
2864
- sepia: [{
2865
- sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue]
2866
- }],
2867
- /**
2868
- * Backdrop Filter
2869
- * @see https://tailwindcss.com/docs/backdrop-filter
2870
- */
2871
- 'backdrop-filter': [{
2872
- 'backdrop-filter': [
2873
- // Deprecated since Tailwind CSS v3.0.0
2874
- '', 'none', isArbitraryVariable, isArbitraryValue]
2875
- }],
2876
- /**
2877
- * Backdrop Blur
2878
- * @see https://tailwindcss.com/docs/backdrop-blur
2879
- */
2880
- 'backdrop-blur': [{
2881
- 'backdrop-blur': scaleBlur()
2882
- }],
2883
- /**
2884
- * Backdrop Brightness
2885
- * @see https://tailwindcss.com/docs/backdrop-brightness
2886
- */
2887
- 'backdrop-brightness': [{
2888
- 'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue]
2889
- }],
2890
- /**
2891
- * Backdrop Contrast
2892
- * @see https://tailwindcss.com/docs/backdrop-contrast
2893
- */
2894
- 'backdrop-contrast': [{
2895
- 'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue]
2896
- }],
2897
- /**
2898
- * Backdrop Grayscale
2899
- * @see https://tailwindcss.com/docs/backdrop-grayscale
2900
- */
2901
- 'backdrop-grayscale': [{
2902
- 'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue]
2903
- }],
2904
- /**
2905
- * Backdrop Hue Rotate
2906
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2907
- */
2908
- 'backdrop-hue-rotate': [{
2909
- 'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
2910
- }],
2911
- /**
2912
- * Backdrop Invert
2913
- * @see https://tailwindcss.com/docs/backdrop-invert
2914
- */
2915
- 'backdrop-invert': [{
2916
- 'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue]
2917
- }],
2918
- /**
2919
- * Backdrop Opacity
2920
- * @see https://tailwindcss.com/docs/backdrop-opacity
2921
- */
2922
- 'backdrop-opacity': [{
2923
- 'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue]
2924
- }],
2925
- /**
2926
- * Backdrop Saturate
2927
- * @see https://tailwindcss.com/docs/backdrop-saturate
2928
- */
2929
- 'backdrop-saturate': [{
2930
- 'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue]
2931
- }],
2932
- /**
2933
- * Backdrop Sepia
2934
- * @see https://tailwindcss.com/docs/backdrop-sepia
2935
- */
2936
- 'backdrop-sepia': [{
2937
- 'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue]
2938
- }],
2939
- // --------------
2940
- // --- Tables ---
2941
- // --------------
2942
- /**
2943
- * Border Collapse
2944
- * @see https://tailwindcss.com/docs/border-collapse
2945
- */
2946
- 'border-collapse': [{
2947
- border: ['collapse', 'separate']
2948
- }],
2949
- /**
2950
- * Border Spacing
2951
- * @see https://tailwindcss.com/docs/border-spacing
2952
- */
2953
- 'border-spacing': [{
2954
- 'border-spacing': scaleUnambiguousSpacing()
2955
- }],
2956
- /**
2957
- * Border Spacing X
2958
- * @see https://tailwindcss.com/docs/border-spacing
2959
- */
2960
- 'border-spacing-x': [{
2961
- 'border-spacing-x': scaleUnambiguousSpacing()
2962
- }],
2963
- /**
2964
- * Border Spacing Y
2965
- * @see https://tailwindcss.com/docs/border-spacing
2966
- */
2967
- 'border-spacing-y': [{
2968
- 'border-spacing-y': scaleUnambiguousSpacing()
2969
- }],
2970
- /**
2971
- * Table Layout
2972
- * @see https://tailwindcss.com/docs/table-layout
2973
- */
2974
- 'table-layout': [{
2975
- table: ['auto', 'fixed']
2976
- }],
2977
- /**
2978
- * Caption Side
2979
- * @see https://tailwindcss.com/docs/caption-side
2980
- */
2981
- caption: [{
2982
- caption: ['top', 'bottom']
2983
- }],
2984
- // ---------------------------------
2985
- // --- Transitions and Animation ---
2986
- // ---------------------------------
2987
- /**
2988
- * Transition Property
2989
- * @see https://tailwindcss.com/docs/transition-property
2990
- */
2991
- transition: [{
2992
- transition: ['', 'all', 'colors', 'opacity', 'shadow', 'transform', 'none', isArbitraryVariable, isArbitraryValue]
2993
- }],
2994
- /**
2995
- * Transition Behavior
2996
- * @see https://tailwindcss.com/docs/transition-behavior
2997
- */
2998
- 'transition-behavior': [{
2999
- transition: ['normal', 'discrete']
3000
- }],
3001
- /**
3002
- * Transition Duration
3003
- * @see https://tailwindcss.com/docs/transition-duration
3004
- */
3005
- duration: [{
3006
- duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue]
3007
- }],
3008
- /**
3009
- * Transition Timing Function
3010
- * @see https://tailwindcss.com/docs/transition-timing-function
3011
- */
3012
- ease: [{
3013
- ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue]
3014
- }],
3015
- /**
3016
- * Transition Delay
3017
- * @see https://tailwindcss.com/docs/transition-delay
3018
- */
3019
- delay: [{
3020
- delay: [isNumber, isArbitraryVariable, isArbitraryValue]
3021
- }],
3022
- /**
3023
- * Animation
3024
- * @see https://tailwindcss.com/docs/animation
3025
- */
3026
- animate: [{
3027
- animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue]
3028
- }],
3029
- // ------------------
3030
- // --- Transforms ---
3031
- // ------------------
3032
- /**
3033
- * Backface Visibility
3034
- * @see https://tailwindcss.com/docs/backface-visibility
3035
- */
3036
- backface: [{
3037
- backface: ['hidden', 'visible']
3038
- }],
3039
- /**
3040
- * Perspective
3041
- * @see https://tailwindcss.com/docs/perspective
3042
- */
3043
- perspective: [{
3044
- perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
3045
- }],
3046
- /**
3047
- * Perspective Origin
3048
- * @see https://tailwindcss.com/docs/perspective-origin
3049
- */
3050
- 'perspective-origin': [{
3051
- 'perspective-origin': scalePositionWithArbitrary()
3052
- }],
3053
- /**
3054
- * Rotate
3055
- * @see https://tailwindcss.com/docs/rotate
3056
- */
3057
- rotate: [{
3058
- rotate: scaleRotate()
3059
- }],
3060
- /**
3061
- * Rotate X
3062
- * @see https://tailwindcss.com/docs/rotate
3063
- */
3064
- 'rotate-x': [{
3065
- 'rotate-x': scaleRotate()
3066
- }],
3067
- /**
3068
- * Rotate Y
3069
- * @see https://tailwindcss.com/docs/rotate
3070
- */
3071
- 'rotate-y': [{
3072
- 'rotate-y': scaleRotate()
3073
- }],
3074
- /**
3075
- * Rotate Z
3076
- * @see https://tailwindcss.com/docs/rotate
3077
- */
3078
- 'rotate-z': [{
3079
- 'rotate-z': scaleRotate()
3080
- }],
3081
- /**
3082
- * Scale
3083
- * @see https://tailwindcss.com/docs/scale
3084
- */
3085
- scale: [{
3086
- scale: scaleScale()
3087
- }],
3088
- /**
3089
- * Scale X
3090
- * @see https://tailwindcss.com/docs/scale
3091
- */
3092
- 'scale-x': [{
3093
- 'scale-x': scaleScale()
3094
- }],
3095
- /**
3096
- * Scale Y
3097
- * @see https://tailwindcss.com/docs/scale
3098
- */
3099
- 'scale-y': [{
3100
- 'scale-y': scaleScale()
3101
- }],
3102
- /**
3103
- * Scale Z
3104
- * @see https://tailwindcss.com/docs/scale
3105
- */
3106
- 'scale-z': [{
3107
- 'scale-z': scaleScale()
3108
- }],
3109
- /**
3110
- * Scale 3D
3111
- * @see https://tailwindcss.com/docs/scale
3112
- */
3113
- 'scale-3d': ['scale-3d'],
3114
- /**
3115
- * Skew
3116
- * @see https://tailwindcss.com/docs/skew
3117
- */
3118
- skew: [{
3119
- skew: scaleSkew()
3120
- }],
3121
- /**
3122
- * Skew X
3123
- * @see https://tailwindcss.com/docs/skew
3124
- */
3125
- 'skew-x': [{
3126
- 'skew-x': scaleSkew()
3127
- }],
3128
- /**
3129
- * Skew Y
3130
- * @see https://tailwindcss.com/docs/skew
3131
- */
3132
- 'skew-y': [{
3133
- 'skew-y': scaleSkew()
3134
- }],
3135
- /**
3136
- * Transform
3137
- * @see https://tailwindcss.com/docs/transform
3138
- */
3139
- transform: [{
3140
- transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu']
3141
- }],
3142
- /**
3143
- * Transform Origin
3144
- * @see https://tailwindcss.com/docs/transform-origin
3145
- */
3146
- 'transform-origin': [{
3147
- origin: scalePositionWithArbitrary()
3148
- }],
3149
- /**
3150
- * Transform Style
3151
- * @see https://tailwindcss.com/docs/transform-style
3152
- */
3153
- 'transform-style': [{
3154
- transform: ['3d', 'flat']
3155
- }],
3156
- /**
3157
- * Translate
3158
- * @see https://tailwindcss.com/docs/translate
3159
- */
3160
- translate: [{
3161
- translate: scaleTranslate()
3162
- }],
3163
- /**
3164
- * Translate X
3165
- * @see https://tailwindcss.com/docs/translate
3166
- */
3167
- 'translate-x': [{
3168
- 'translate-x': scaleTranslate()
3169
- }],
3170
- /**
3171
- * Translate Y
3172
- * @see https://tailwindcss.com/docs/translate
3173
- */
3174
- 'translate-y': [{
3175
- 'translate-y': scaleTranslate()
3176
- }],
3177
- /**
3178
- * Translate Z
3179
- * @see https://tailwindcss.com/docs/translate
3180
- */
3181
- 'translate-z': [{
3182
- 'translate-z': scaleTranslate()
3183
- }],
3184
- /**
3185
- * Translate None
3186
- * @see https://tailwindcss.com/docs/translate
3187
- */
3188
- 'translate-none': ['translate-none'],
3189
- // ---------------------
3190
- // --- Interactivity ---
3191
- // ---------------------
3192
- /**
3193
- * Accent Color
3194
- * @see https://tailwindcss.com/docs/accent-color
3195
- */
3196
- accent: [{
3197
- accent: scaleColor()
3198
- }],
3199
- /**
3200
- * Appearance
3201
- * @see https://tailwindcss.com/docs/appearance
3202
- */
3203
- appearance: [{
3204
- appearance: ['none', 'auto']
3205
- }],
3206
- /**
3207
- * Caret Color
3208
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3209
- */
3210
- 'caret-color': [{
3211
- caret: scaleColor()
3212
- }],
3213
- /**
3214
- * Color Scheme
3215
- * @see https://tailwindcss.com/docs/color-scheme
3216
- */
3217
- 'color-scheme': [{
3218
- scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light']
3219
- }],
3220
- /**
3221
- * Cursor
3222
- * @see https://tailwindcss.com/docs/cursor
3223
- */
3224
- cursor: [{
3225
- 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]
3226
- }],
3227
- /**
3228
- * Field Sizing
3229
- * @see https://tailwindcss.com/docs/field-sizing
3230
- */
3231
- 'field-sizing': [{
3232
- 'field-sizing': ['fixed', 'content']
3233
- }],
3234
- /**
3235
- * Pointer Events
3236
- * @see https://tailwindcss.com/docs/pointer-events
3237
- */
3238
- 'pointer-events': [{
3239
- 'pointer-events': ['auto', 'none']
3240
- }],
3241
- /**
3242
- * Resize
3243
- * @see https://tailwindcss.com/docs/resize
3244
- */
3245
- resize: [{
3246
- resize: ['none', '', 'y', 'x']
3247
- }],
3248
- /**
3249
- * Scroll Behavior
3250
- * @see https://tailwindcss.com/docs/scroll-behavior
3251
- */
3252
- 'scroll-behavior': [{
3253
- scroll: ['auto', 'smooth']
3254
- }],
3255
- /**
3256
- * Scroll Margin
3257
- * @see https://tailwindcss.com/docs/scroll-margin
3258
- */
3259
- 'scroll-m': [{
3260
- 'scroll-m': scaleUnambiguousSpacing()
3261
- }],
3262
- /**
3263
- * Scroll Margin X
3264
- * @see https://tailwindcss.com/docs/scroll-margin
3265
- */
3266
- 'scroll-mx': [{
3267
- 'scroll-mx': scaleUnambiguousSpacing()
3268
- }],
3269
- /**
3270
- * Scroll Margin Y
3271
- * @see https://tailwindcss.com/docs/scroll-margin
3272
- */
3273
- 'scroll-my': [{
3274
- 'scroll-my': scaleUnambiguousSpacing()
3275
- }],
3276
- /**
3277
- * Scroll Margin Start
3278
- * @see https://tailwindcss.com/docs/scroll-margin
3279
- */
3280
- 'scroll-ms': [{
3281
- 'scroll-ms': scaleUnambiguousSpacing()
3282
- }],
3283
- /**
3284
- * Scroll Margin End
3285
- * @see https://tailwindcss.com/docs/scroll-margin
3286
- */
3287
- 'scroll-me': [{
3288
- 'scroll-me': scaleUnambiguousSpacing()
3289
- }],
3290
- /**
3291
- * Scroll Margin Top
3292
- * @see https://tailwindcss.com/docs/scroll-margin
3293
- */
3294
- 'scroll-mt': [{
3295
- 'scroll-mt': scaleUnambiguousSpacing()
3296
- }],
3297
- /**
3298
- * Scroll Margin Right
3299
- * @see https://tailwindcss.com/docs/scroll-margin
3300
- */
3301
- 'scroll-mr': [{
3302
- 'scroll-mr': scaleUnambiguousSpacing()
3303
- }],
3304
- /**
3305
- * Scroll Margin Bottom
3306
- * @see https://tailwindcss.com/docs/scroll-margin
3307
- */
3308
- 'scroll-mb': [{
3309
- 'scroll-mb': scaleUnambiguousSpacing()
3310
- }],
3311
- /**
3312
- * Scroll Margin Left
3313
- * @see https://tailwindcss.com/docs/scroll-margin
3314
- */
3315
- 'scroll-ml': [{
3316
- 'scroll-ml': scaleUnambiguousSpacing()
3317
- }],
3318
- /**
3319
- * Scroll Padding
3320
- * @see https://tailwindcss.com/docs/scroll-padding
3321
- */
3322
- 'scroll-p': [{
3323
- 'scroll-p': scaleUnambiguousSpacing()
3324
- }],
3325
- /**
3326
- * Scroll Padding X
3327
- * @see https://tailwindcss.com/docs/scroll-padding
3328
- */
3329
- 'scroll-px': [{
3330
- 'scroll-px': scaleUnambiguousSpacing()
3331
- }],
3332
- /**
3333
- * Scroll Padding Y
3334
- * @see https://tailwindcss.com/docs/scroll-padding
3335
- */
3336
- 'scroll-py': [{
3337
- 'scroll-py': scaleUnambiguousSpacing()
3338
- }],
3339
- /**
3340
- * Scroll Padding Start
3341
- * @see https://tailwindcss.com/docs/scroll-padding
3342
- */
3343
- 'scroll-ps': [{
3344
- 'scroll-ps': scaleUnambiguousSpacing()
3345
- }],
3346
- /**
3347
- * Scroll Padding End
3348
- * @see https://tailwindcss.com/docs/scroll-padding
3349
- */
3350
- 'scroll-pe': [{
3351
- 'scroll-pe': scaleUnambiguousSpacing()
3352
- }],
3353
- /**
3354
- * Scroll Padding Top
3355
- * @see https://tailwindcss.com/docs/scroll-padding
3356
- */
3357
- 'scroll-pt': [{
3358
- 'scroll-pt': scaleUnambiguousSpacing()
3359
- }],
3360
- /**
3361
- * Scroll Padding Right
3362
- * @see https://tailwindcss.com/docs/scroll-padding
3363
- */
3364
- 'scroll-pr': [{
3365
- 'scroll-pr': scaleUnambiguousSpacing()
3366
- }],
3367
- /**
3368
- * Scroll Padding Bottom
3369
- * @see https://tailwindcss.com/docs/scroll-padding
3370
- */
3371
- 'scroll-pb': [{
3372
- 'scroll-pb': scaleUnambiguousSpacing()
3373
- }],
3374
- /**
3375
- * Scroll Padding Left
3376
- * @see https://tailwindcss.com/docs/scroll-padding
3377
- */
3378
- 'scroll-pl': [{
3379
- 'scroll-pl': scaleUnambiguousSpacing()
3380
- }],
3381
- /**
3382
- * Scroll Snap Align
3383
- * @see https://tailwindcss.com/docs/scroll-snap-align
3384
- */
3385
- 'snap-align': [{
3386
- snap: ['start', 'end', 'center', 'align-none']
3387
- }],
3388
- /**
3389
- * Scroll Snap Stop
3390
- * @see https://tailwindcss.com/docs/scroll-snap-stop
3391
- */
3392
- 'snap-stop': [{
3393
- snap: ['normal', 'always']
3394
- }],
3395
- /**
3396
- * Scroll Snap Type
3397
- * @see https://tailwindcss.com/docs/scroll-snap-type
3398
- */
3399
- 'snap-type': [{
3400
- snap: ['none', 'x', 'y', 'both']
3401
- }],
3402
- /**
3403
- * Scroll Snap Type Strictness
3404
- * @see https://tailwindcss.com/docs/scroll-snap-type
3405
- */
3406
- 'snap-strictness': [{
3407
- snap: ['mandatory', 'proximity']
3408
- }],
3409
- /**
3410
- * Touch Action
3411
- * @see https://tailwindcss.com/docs/touch-action
3412
- */
3413
- touch: [{
3414
- touch: ['auto', 'none', 'manipulation']
3415
- }],
3416
- /**
3417
- * Touch Action X
3418
- * @see https://tailwindcss.com/docs/touch-action
3419
- */
3420
- 'touch-x': [{
3421
- 'touch-pan': ['x', 'left', 'right']
3422
- }],
3423
- /**
3424
- * Touch Action Y
3425
- * @see https://tailwindcss.com/docs/touch-action
3426
- */
3427
- 'touch-y': [{
3428
- 'touch-pan': ['y', 'up', 'down']
3429
- }],
3430
- /**
3431
- * Touch Action Pinch Zoom
3432
- * @see https://tailwindcss.com/docs/touch-action
3433
- */
3434
- 'touch-pz': ['touch-pinch-zoom'],
3435
- /**
3436
- * User Select
3437
- * @see https://tailwindcss.com/docs/user-select
3438
- */
3439
- select: [{
3440
- select: ['none', 'text', 'all', 'auto']
3441
- }],
3442
- /**
3443
- * Will Change
3444
- * @see https://tailwindcss.com/docs/will-change
3445
- */
3446
- 'will-change': [{
3447
- 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryVariable, isArbitraryValue]
3448
- }],
3449
- // -----------
3450
- // --- SVG ---
3451
- // -----------
3452
- /**
3453
- * Fill
3454
- * @see https://tailwindcss.com/docs/fill
3455
- */
3456
- fill: [{
3457
- fill: ['none', ...scaleColor()]
3458
- }],
3459
- /**
3460
- * Stroke Width
3461
- * @see https://tailwindcss.com/docs/stroke-width
3462
- */
3463
- 'stroke-w': [{
3464
- stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3465
- }],
3466
- /**
3467
- * Stroke
3468
- * @see https://tailwindcss.com/docs/stroke
3469
- */
3470
- stroke: [{
3471
- stroke: ['none', ...scaleColor()]
3472
- }],
3473
- // ---------------------
3474
- // --- Accessibility ---
3475
- // ---------------------
3476
- /**
3477
- * Forced Color Adjust
3478
- * @see https://tailwindcss.com/docs/forced-color-adjust
3479
- */
3480
- 'forced-color-adjust': [{
3481
- 'forced-color-adjust': ['auto', 'none']
3482
- }]
3483
- },
3484
- conflictingClassGroups: {
3485
- overflow: ['overflow-x', 'overflow-y'],
3486
- overscroll: ['overscroll-x', 'overscroll-y'],
3487
- inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
3488
- 'inset-x': ['right', 'left'],
3489
- 'inset-y': ['top', 'bottom'],
3490
- flex: ['basis', 'grow', 'shrink'],
3491
- gap: ['gap-x', 'gap-y'],
3492
- p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
3493
- px: ['pr', 'pl'],
3494
- py: ['pt', 'pb'],
3495
- m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
3496
- mx: ['mr', 'ml'],
3497
- my: ['mt', 'mb'],
3498
- size: ['w', 'h'],
3499
- 'font-size': ['leading'],
3500
- 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
3501
- 'fvn-ordinal': ['fvn-normal'],
3502
- 'fvn-slashed-zero': ['fvn-normal'],
3503
- 'fvn-figure': ['fvn-normal'],
3504
- 'fvn-spacing': ['fvn-normal'],
3505
- 'fvn-fraction': ['fvn-normal'],
3506
- 'line-clamp': ['display', 'overflow'],
3507
- 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'],
3508
- 'rounded-s': ['rounded-ss', 'rounded-es'],
3509
- 'rounded-e': ['rounded-se', 'rounded-ee'],
3510
- 'rounded-t': ['rounded-tl', 'rounded-tr'],
3511
- 'rounded-r': ['rounded-tr', 'rounded-br'],
3512
- 'rounded-b': ['rounded-br', 'rounded-bl'],
3513
- 'rounded-l': ['rounded-tl', 'rounded-bl'],
3514
- 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
3515
- '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'],
3516
- 'border-w-x': ['border-w-r', 'border-w-l'],
3517
- 'border-w-y': ['border-w-t', 'border-w-b'],
3518
- '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'],
3519
- 'border-color-x': ['border-color-r', 'border-color-l'],
3520
- 'border-color-y': ['border-color-t', 'border-color-b'],
3521
- translate: ['translate-x', 'translate-y', 'translate-none'],
3522
- 'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],
3523
- 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
3524
- 'scroll-mx': ['scroll-mr', 'scroll-ml'],
3525
- 'scroll-my': ['scroll-mt', 'scroll-mb'],
3526
- 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
3527
- 'scroll-px': ['scroll-pr', 'scroll-pl'],
3528
- 'scroll-py': ['scroll-pt', 'scroll-pb'],
3529
- touch: ['touch-x', 'touch-y', 'touch-pz'],
3530
- 'touch-x': ['touch'],
3531
- 'touch-y': ['touch'],
3532
- 'touch-pz': ['touch']
3533
- },
3534
- conflictingClassGroupModifiers: {
3535
- 'font-size': ['leading']
3536
- },
3537
- orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
3538
- };
3539
- };
3540
- const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
3541
-
3542
- function cn(...inputs) {
3543
- return twMerge(clsx(inputs));
3544
- }
3545
-
3546
- const buttonVariants = cva([
3547
- "inline-flex",
3548
- "items-center",
3549
- "justify-center",
3550
- "gap-2",
3551
- "whitespace-nowrap",
3552
- "rounded-[0.33em]",
3553
- "text-sm",
3554
- "font-medium",
3555
- "transition-colors",
3556
- "focus:outline-none",
3557
- "focus:ring-transparent",
3558
- "disabled:pointer-events-none",
3559
- "disabled:opacity-50",
3560
- "[&_svg]:pointer-events-none",
3561
- "[&_svg]:size-4",
3562
- "[&_svg]:shrink-0",
3563
- ], {
3564
- variants: {
3565
- variant: {
3566
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
3567
- outline: "border border-gray-300 text-gray-700 bg-background hover:bg-accent",
3568
- ghost: "hover:bg-accent text-gray-700 hover:text-accent-foreground",
3569
- link: "text-primary underline-offset-4 hover:underline",
3570
- },
3571
- scheme: {
3572
- default: "",
3573
- primary: "bg-primary text-primary-foreground hover:bg-primary/90",
3574
- supportive: "bg-supportive text-supportive-foreground hover:bg-supportive/90",
3575
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
3576
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
3577
- },
3578
- size: {
3579
- default: "h-8 px-[1em] py-[0.33em]",
3580
- sm: "h-8 px-3",
3581
- lg: "h-11 px-8",
3582
- md: "h-10 px-6",
3583
- icon: "h-10 w-10",
3584
- xs: "h-6 px-3 text-xs",
3585
- },
3586
- },
3587
- compoundVariants: [
3588
- {
3589
- variant: "outline",
3590
- scheme: "primary",
3591
- class: "bg-background border border-primary text-primary hover:bg-blue-50",
3592
- },
3593
- {
3594
- variant: "outline",
3595
- scheme: "supportive",
3596
- class: "bg-background border border-supportive text-supportive hover:bg-green-50",
3597
- },
3598
- {
3599
- variant: "outline",
3600
- scheme: "destructive",
3601
- class: "bg-background border border-destructive text-destructive hover:bg-red-50",
3602
- },
3603
- ],
3604
- defaultVariants: {
3605
- variant: "default",
3606
- size: "default",
3607
- },
3608
- });
3609
- const Button = require$$0.forwardRef(({ className, variant, scheme, size, asChild = false, ...props }, ref) => {
3610
- const Comp = asChild ? Slot : "button";
3611
- return (jsxRuntimeExports.jsx(Comp, { className: cn(buttonVariants({ variant, scheme, size, className })), ref: ref, ...props }));
3612
- });
3613
- Button.displayName = "Button";
3614
-
3615
- /**
3616
- * The orchestrator service to get the process from.
3617
- *
3618
- * @param processId
3619
- * @returns
3620
- */
3621
- const processStatusChecker = (processId) => fetch(`${config.orchestratorApi}/${encodeURIComponent(processId)}`, {
3622
- method: "GET",
3623
- headers: {
3624
- "Content-Type": "application/json",
3625
- },
3626
- }).then((response) => response.json());
3627
- /**
3628
- * This fetches from the callback endpoint.
3629
- *
3630
- * @param processId
3631
- * @returns
3632
- */
3633
- const processCallbackResultFetcher = (processId, processName, processCallbackUrl) => fetch(`${processCallbackUrl}`, {
3634
- method: "POST",
3635
- headers: {
3636
- "Content-Type": "application/json",
3637
- },
3638
- body: JSON.stringify({
3639
- processId,
3640
- processName,
3641
- })
3642
- }).then((response) => response.json());
3643
- /**
3644
- * We need a context to keep track of all client processes.
3645
- * This helps us manage the state of the toasts as well.
3646
- */
3647
- const clientProcessesContext = createContext({});
3648
- /**
3649
- * This should be at the root layout.
3650
- *
3651
- * @context
3652
- */
3653
- const ClientProcessesProvider = ({ children }) => {
3654
- const [clientProcessDtos, setClientProcessDtos] = useState({});
3655
- const clientProcessAttempts = useRef({});
3656
- const clientProcesses = useQueries({ queries: Object.entries(clientProcessDtos).map(([processId, { dto, options }]) => ({
3657
- queryKey: ['__process', processId],
3658
- queryFn: async () => {
3659
- if (!processId)
3660
- throw new Error("No processId");
3661
- const { process } = await processStatusChecker(processId);
3662
- // Handled! Return the proper response too
3663
- if (process.status === "handled") {
3664
- const result = await processCallbackResultFetcher(process.id, process.name, dto.processCallbackUrl);
3665
- console.warn(process.name, options?.successMessage ?? "Success!");
3666
- toast.success(options?.successMessage ?? "Success!", {
3667
- id: process.id
3668
- });
3669
- setTimeout(() => toast.dismiss(process.id), 1500);
3670
- return { id: process.id, name: process.name, success: true, result };
3671
- }
3672
- // Pending or failed
3673
- if (process.status === "pending") {
3674
- console.log(process.name, options?.loadingMessage ?? "Loading...");
3675
- toast.loading(options?.loadingMessage ?? "Loading...", {
3676
- id: process.id,
3677
- duration: Infinity,
3678
- });
3679
- return null;
3680
- }
3681
- else if (process.status === "failed") {
3682
- console.error(process.name, options?.failureMessage ?? "Something went wrong.");
3683
- toast.error(options?.failureMessage ?? "Something went wrong.", {
3684
- id: process.id
3685
- });
3686
- setTimeout(() => toast.dismiss(process.id), 1500);
3687
- return { id: process.id, name: process.name, success: false };
3688
- }
3689
- // Return null since no response
3690
- return null;
3691
- },
3692
- // Returns the next interval length to use to wait for fetch
3693
- refetchInterval: (query) => {
3694
- const data = query.state.data;
3695
- if (data !== null)
3696
- return false;
3697
- // If not defined, init to 0
3698
- if (!clientProcessAttempts.current[processId])
3699
- clientProcessAttempts.current[processId] = 0;
3700
- const interval = Math.min(500 * 2 ** clientProcessAttempts.current[processId], 10000);
3701
- clientProcessAttempts.current[processId] += 1;
3702
- return interval;
3703
- },
3704
- }))
3705
- });
3706
- /**
3707
- * Registers a new process to handle
3708
- *
3709
- * @param processId
3710
- * @param processCallbackDto
3711
- * @param options
3712
- */
3713
- const registerProcess = (processId, processCallbackDto, options) => {
3714
- setClientProcessDtos({ ...clientProcessDtos, [processId]: { dto: processCallbackDto, options } });
3715
- };
3716
- /**
3717
- * Retrieves a process
3718
- *
3719
- * @param processId
3720
- * @returns
3721
- */
3722
- const getProcess = (processId) => {
3723
- return clientProcesses.find(clientProcess => clientProcess.data?.id === processId)?.data ?? null;
3724
- };
3725
- return (jsxRuntimeExports.jsx(clientProcessesContext.Provider, { value: {
3726
- registerProcess,
3727
- getProcess
3728
- }, children: children }));
3729
- };
3730
- /**
3731
- * A simpler version, where u just pass the async function that returns process data.
3732
- *
3733
- * @param caller
3734
- * @returns
3735
- */
3736
- function useClientProcess({ caller, loadingMessage, successMessage, failureMessage, }) {
3737
- const clientProcessesApi = useContext(clientProcessesContext);
3738
- // Note that the exposed function doesn't return process ids
3739
- // Client should be oblivious to those
3740
- // Abstraction BABY!
3741
- const wrappedCaller = async (inputs) => {
3742
- const response = await caller(inputs);
3743
- clientProcessesApi.registerProcess(response.processId, response, {
3744
- loadingMessage,
3745
- successMessage,
3746
- failureMessage
3747
- });
3748
- return {
3749
- id: response.processId,
3750
- success: response.success,
3751
- message: response.message,
3752
- };
3753
- };
3754
- return {
3755
- run: wrappedCaller,
3756
- get: (id) => clientProcessesApi.getProcess(id)
3757
- };
3758
- }
3759
-
3760
- export { Button, ClientProcessesProvider, buttonVariants, config, configure, useClientProcess };
3761
- //# sourceMappingURL=index.esm.js.map