@stokelp/ui 2.126.1 → 3.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 (700) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_rolldown/runtime.cjs +1 -1
  3. package/dist/_virtual/_rolldown/runtime.js +4 -5
  4. package/dist/components/accordion/Accordion.cjs +1 -1
  5. package/dist/components/accordion/Accordion.cjs.map +1 -1
  6. package/dist/components/accordion/Accordion.d.ts +1 -1
  7. package/dist/components/accordion/Accordion.js +1 -2
  8. package/dist/components/accordion/Accordion.js.map +1 -1
  9. package/dist/components/action-card/ActionCard.cjs.map +1 -1
  10. package/dist/components/action-card/ActionCard.d.ts +1 -1
  11. package/dist/components/action-card/ActionCard.js +1 -2
  12. package/dist/components/action-card/ActionCard.js.map +1 -1
  13. package/dist/components/alert/Alert.cjs.map +1 -1
  14. package/dist/components/alert/Alert.d.ts +1 -1
  15. package/dist/components/alert/Alert.js +1 -2
  16. package/dist/components/alert/Alert.js.map +1 -1
  17. package/dist/components/app/mobile-card/MobileCardEntityRow.cjs.map +1 -1
  18. package/dist/components/app/mobile-card/MobileCardEntityRow.d.ts +1 -1
  19. package/dist/components/app/mobile-card/MobileCardEntityRow.js +1 -2
  20. package/dist/components/app/mobile-card/MobileCardEntityRow.js.map +1 -1
  21. package/dist/components/app/mobile-card/MobileCardHeader.cjs.map +1 -1
  22. package/dist/components/app/mobile-card/MobileCardHeader.d.ts +1 -1
  23. package/dist/components/app/mobile-card/MobileCardHeader.js +1 -2
  24. package/dist/components/app/mobile-card/MobileCardHeader.js.map +1 -1
  25. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs +1 -1
  26. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs.map +1 -1
  27. package/dist/components/app/mobile-card/MobileCardNotificationBadge.d.ts +1 -1
  28. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js +2 -3
  29. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js.map +1 -1
  30. package/dist/components/app/mobile-card/MobileCardShell.cjs.map +1 -1
  31. package/dist/components/app/mobile-card/MobileCardShell.d.ts +1 -1
  32. package/dist/components/app/mobile-card/MobileCardShell.js +1 -2
  33. package/dist/components/app/mobile-card/MobileCardShell.js.map +1 -1
  34. package/dist/components/app/mobile-card/MobileCardSkeleton.cjs.map +1 -1
  35. package/dist/components/app/mobile-card/MobileCardSkeleton.d.ts +3 -3
  36. package/dist/components/app/mobile-card/MobileCardSkeleton.js +1 -2
  37. package/dist/components/app/mobile-card/MobileCardSkeleton.js.map +1 -1
  38. package/dist/components/app/mobile-navigation/MobileNavigation.cjs +1 -1
  39. package/dist/components/app/mobile-navigation/MobileNavigation.cjs.map +1 -1
  40. package/dist/components/app/mobile-navigation/MobileNavigation.js +2 -3
  41. package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
  42. package/dist/components/app/navigation/AppNavigation.cjs +1 -1
  43. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
  44. package/dist/components/app/navigation/AppNavigation.js +3 -4
  45. package/dist/components/app/navigation/AppNavigation.js.map +1 -1
  46. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +1 -1
  47. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
  48. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +5 -6
  49. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
  50. package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
  51. package/dist/components/app/price-tag/PriceTag.d.ts +3 -5
  52. package/dist/components/app/price-tag/PriceTag.js +1 -2
  53. package/dist/components/app/price-tag/PriceTag.js.map +1 -1
  54. package/dist/components/app/product-card-catalog/styled.cjs +1 -1
  55. package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
  56. package/dist/components/app/product-card-catalog/styled.d.ts +1 -1
  57. package/dist/components/app/product-card-catalog/styled.js +2 -3
  58. package/dist/components/app/product-card-catalog/styled.js.map +1 -1
  59. package/dist/components/avatar/styled.cjs +1 -1
  60. package/dist/components/avatar/styled.cjs.map +1 -1
  61. package/dist/components/avatar/styled.d.ts +4 -7
  62. package/dist/components/avatar/styled.js +2 -3
  63. package/dist/components/avatar/styled.js.map +1 -1
  64. package/dist/components/box/Box.cjs +1 -1
  65. package/dist/components/box/Box.cjs.map +1 -1
  66. package/dist/components/box/Box.d.ts +1 -1
  67. package/dist/components/box/Box.js +3 -4
  68. package/dist/components/box/Box.js.map +1 -1
  69. package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
  70. package/dist/components/breadcrumb/Breadcrumb.js +1 -2
  71. package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
  72. package/dist/components/button/Button.cjs.map +1 -1
  73. package/dist/components/button/Button.js +1 -2
  74. package/dist/components/button/Button.js.map +1 -1
  75. package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
  76. package/dist/components/button-filter/ButtonFilter.d.ts +4 -5
  77. package/dist/components/button-filter/ButtonFilter.js +1 -2
  78. package/dist/components/button-filter/ButtonFilter.js.map +1 -1
  79. package/dist/components/chat/Chat.cjs +1 -1
  80. package/dist/components/chat/Chat.cjs.map +1 -1
  81. package/dist/components/chat/Chat.d.ts +4 -8
  82. package/dist/components/chat/Chat.js +2 -3
  83. package/dist/components/chat/Chat.js.map +1 -1
  84. package/dist/components/chat/ChatDocumentMessage.cjs +1 -1
  85. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
  86. package/dist/components/chat/ChatDocumentMessage.js +3 -4
  87. package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
  88. package/dist/components/chat/ChatMessage.cjs.map +1 -1
  89. package/dist/components/chat/ChatMessage.d.ts +4 -7
  90. package/dist/components/chat/ChatMessage.js +1 -2
  91. package/dist/components/chat/ChatMessage.js.map +1 -1
  92. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
  93. package/dist/components/chat/ChatProfileAvatar.js +1 -2
  94. package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
  95. package/dist/components/chat/ChatScoreBreakdown.cjs.map +1 -1
  96. package/dist/components/chat/ChatScoreBreakdown.d.ts +1 -1
  97. package/dist/components/chat/ChatScoreBreakdown.js +1 -2
  98. package/dist/components/chat/ChatScoreBreakdown.js.map +1 -1
  99. package/dist/components/chat/ChatTextInput.cjs.map +1 -1
  100. package/dist/components/chat/ChatTextInput.js +1 -2
  101. package/dist/components/chat/ChatTextInput.js.map +1 -1
  102. package/dist/components/checkbox/Checkbox.cjs.map +1 -1
  103. package/dist/components/checkbox/Checkbox.js +1 -2
  104. package/dist/components/checkbox/Checkbox.js.map +1 -1
  105. package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
  106. package/dist/components/checkbox-card/CheckboxCard.js +1 -2
  107. package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
  108. package/dist/components/checkbox-card/namespace.cjs +1 -1
  109. package/dist/components/checkbox-card/namespace.cjs.map +1 -1
  110. package/dist/components/checkbox-card/namespace.js +2 -3
  111. package/dist/components/checkbox-card/namespace.js.map +1 -1
  112. package/dist/components/chip/Chip.cjs.map +1 -1
  113. package/dist/components/chip/Chip.d.ts +1 -1
  114. package/dist/components/chip/Chip.js +1 -2
  115. package/dist/components/chip/Chip.js.map +1 -1
  116. package/dist/components/collapsible/styled.cjs +1 -1
  117. package/dist/components/collapsible/styled.cjs.map +1 -1
  118. package/dist/components/collapsible/styled.d.ts +1 -1
  119. package/dist/components/collapsible/styled.js +2 -3
  120. package/dist/components/collapsible/styled.js.map +1 -1
  121. package/dist/components/combobox/Combobox.cjs +1 -1
  122. package/dist/components/combobox/Combobox.cjs.map +1 -1
  123. package/dist/components/combobox/Combobox.d.ts +1 -1
  124. package/dist/components/combobox/Combobox.js +6 -5
  125. package/dist/components/combobox/Combobox.js.map +1 -1
  126. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  127. package/dist/components/date-picker/DatePicker.js +1 -2
  128. package/dist/components/date-picker/DatePicker.js.map +1 -1
  129. package/dist/components/dialog/styled.cjs +1 -1
  130. package/dist/components/dialog/styled.cjs.map +1 -1
  131. package/dist/components/dialog/styled.d.ts +2 -2
  132. package/dist/components/dialog/styled.js +2 -3
  133. package/dist/components/dialog/styled.js.map +1 -1
  134. package/dist/components/drawer/Drawer.cjs.map +1 -1
  135. package/dist/components/drawer/Drawer.d.ts +2 -2
  136. package/dist/components/drawer/Drawer.js +1 -2
  137. package/dist/components/drawer/Drawer.js.map +1 -1
  138. package/dist/components/flag/styled.cjs.map +1 -1
  139. package/dist/components/flag/styled.d.ts +209 -211
  140. package/dist/components/flag/styled.js +1 -2
  141. package/dist/components/flag/styled.js.map +1 -1
  142. package/dist/components/form/FormControl.cjs +1 -1
  143. package/dist/components/form/FormControl.cjs.map +1 -1
  144. package/dist/components/form/FormControl.js +11 -7
  145. package/dist/components/form/FormControl.js.map +1 -1
  146. package/dist/components/form/FormHelperText.cjs.map +1 -1
  147. package/dist/components/form/FormHelperText.js +1 -2
  148. package/dist/components/form/FormHelperText.js.map +1 -1
  149. package/dist/components/form/FormLabel.cjs.map +1 -1
  150. package/dist/components/form/FormLabel.js +1 -2
  151. package/dist/components/form/FormLabel.js.map +1 -1
  152. package/dist/components/heading/Heading.cjs +1 -1
  153. package/dist/components/heading/Heading.cjs.map +1 -1
  154. package/dist/components/heading/Heading.d.ts +1 -1
  155. package/dist/components/heading/Heading.js +3 -4
  156. package/dist/components/heading/Heading.js.map +1 -1
  157. package/dist/components/icon/Icon.cjs.map +1 -1
  158. package/dist/components/icon/Icon.js +1 -2
  159. package/dist/components/icon/Icon.js.map +1 -1
  160. package/dist/components/icon-button/IconButton.cjs.map +1 -1
  161. package/dist/components/icon-button/IconButton.js +1 -2
  162. package/dist/components/icon-button/IconButton.js.map +1 -1
  163. package/dist/components/illustration/Illustration.cjs.map +1 -1
  164. package/dist/components/illustration/Illustration.js +1 -2
  165. package/dist/components/illustration/Illustration.js.map +1 -1
  166. package/dist/components/illustration/patterns.cjs.map +1 -1
  167. package/dist/components/illustration/patterns.js +1 -2
  168. package/dist/components/illustration/patterns.js.map +1 -1
  169. package/dist/components/input/HighlightedInput.cjs.map +1 -1
  170. package/dist/components/input/HighlightedInput.d.ts +1 -1
  171. package/dist/components/input/HighlightedInput.js +1 -2
  172. package/dist/components/input/HighlightedInput.js.map +1 -1
  173. package/dist/components/input/Input.cjs.map +1 -1
  174. package/dist/components/input/Input.js +1 -2
  175. package/dist/components/input/Input.js.map +1 -1
  176. package/dist/components/input/InputAddon.cjs.map +1 -1
  177. package/dist/components/input/InputAddon.d.ts +4 -5
  178. package/dist/components/input/InputAddon.js +1 -2
  179. package/dist/components/input/InputAddon.js.map +1 -1
  180. package/dist/components/input/InputGroup.cjs.map +1 -1
  181. package/dist/components/input/InputGroup.js +1 -2
  182. package/dist/components/input/InputGroup.js.map +1 -1
  183. package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
  184. package/dist/components/input/PhoneNumberInput.js +1 -2
  185. package/dist/components/input/PhoneNumberInput.js.map +1 -1
  186. package/dist/components/menu/Menu.cjs +1 -1
  187. package/dist/components/menu/Menu.cjs.map +1 -1
  188. package/dist/components/menu/Menu.d.ts +2 -2
  189. package/dist/components/menu/Menu.js +2 -3
  190. package/dist/components/menu/Menu.js.map +1 -1
  191. package/dist/components/origin-select/OriginSelect.cjs.map +1 -1
  192. package/dist/components/origin-select/OriginSelect.d.ts +1 -1
  193. package/dist/components/origin-select/OriginSelect.js +1 -2
  194. package/dist/components/origin-select/OriginSelect.js.map +1 -1
  195. package/dist/components/pagination/Pagination.cjs.map +1 -1
  196. package/dist/components/pagination/Pagination.d.ts +1 -1
  197. package/dist/components/pagination/Pagination.js +1 -2
  198. package/dist/components/pagination/Pagination.js.map +1 -1
  199. package/dist/components/pagination/use-pagination.cjs.map +1 -1
  200. package/dist/components/pagination/use-pagination.js +1 -2
  201. package/dist/components/pagination/use-pagination.js.map +1 -1
  202. package/dist/components/popover/Popover.cjs.map +1 -1
  203. package/dist/components/popover/Popover.d.ts +2 -2
  204. package/dist/components/popover/Popover.js +1 -2
  205. package/dist/components/popover/Popover.js.map +1 -1
  206. package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
  207. package/dist/components/radio-button-group/RadioButtonGroup.d.ts +1 -1
  208. package/dist/components/radio-button-group/RadioButtonGroup.js +1 -2
  209. package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
  210. package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
  211. package/dist/components/radio-card-group/RadioCardGroup.d.ts +1 -1
  212. package/dist/components/radio-card-group/RadioCardGroup.js +1 -2
  213. package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
  214. package/dist/components/radio-card-group/namespace.cjs +1 -1
  215. package/dist/components/radio-card-group/namespace.cjs.map +1 -1
  216. package/dist/components/radio-card-group/namespace.js +2 -3
  217. package/dist/components/radio-card-group/namespace.js.map +1 -1
  218. package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
  219. package/dist/components/radio-group/RadioGroup.d.ts +1 -1
  220. package/dist/components/radio-group/RadioGroup.js +1 -2
  221. package/dist/components/radio-group/RadioGroup.js.map +1 -1
  222. package/dist/components/select/Select.cjs +1 -1
  223. package/dist/components/select/Select.cjs.map +1 -1
  224. package/dist/components/select/Select.d.ts +1 -1
  225. package/dist/components/select/Select.js +2 -7
  226. package/dist/components/select/Select.js.map +1 -1
  227. package/dist/components/select-language/SelectLanguage.cjs +1 -1
  228. package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
  229. package/dist/components/select-language/SelectLanguage.js +45 -43
  230. package/dist/components/select-language/SelectLanguage.js.map +1 -1
  231. package/dist/components/status-tag-select/StatusTagSelect.cjs +1 -1
  232. package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
  233. package/dist/components/status-tag-select/StatusTagSelect.js +30 -31
  234. package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
  235. package/dist/components/steps/Steps.cjs.map +1 -1
  236. package/dist/components/steps/Steps.d.ts +1 -1
  237. package/dist/components/steps/Steps.js +1 -2
  238. package/dist/components/steps/Steps.js.map +1 -1
  239. package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs.map +1 -1
  240. package/dist/components/supplier-rating-badge/SupplierRatingBadge.d.ts +1 -1
  241. package/dist/components/supplier-rating-badge/SupplierRatingBadge.js +1 -2
  242. package/dist/components/supplier-rating-badge/SupplierRatingBadge.js.map +1 -1
  243. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs +1 -1
  244. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs.map +1 -1
  245. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.d.ts +1 -1
  246. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js +53 -54
  247. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js.map +1 -1
  248. package/dist/components/supplier-rating-badge/labels.cjs.map +1 -1
  249. package/dist/components/supplier-rating-badge/labels.js +1 -2
  250. package/dist/components/supplier-rating-badge/labels.js.map +1 -1
  251. package/dist/components/switch/Switch.cjs.map +1 -1
  252. package/dist/components/switch/Switch.js +1 -2
  253. package/dist/components/switch/Switch.js.map +1 -1
  254. package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
  255. package/dist/components/switch-card/SwitchCard.d.ts +2 -1
  256. package/dist/components/switch-card/SwitchCard.js +1 -2
  257. package/dist/components/switch-card/SwitchCard.js.map +1 -1
  258. package/dist/components/switch-card/namespace.cjs +1 -1
  259. package/dist/components/switch-card/namespace.cjs.map +1 -1
  260. package/dist/components/switch-card/namespace.js +2 -3
  261. package/dist/components/switch-card/namespace.js.map +1 -1
  262. package/dist/components/table/Table.cjs +1 -1
  263. package/dist/components/table/Table.cjs.map +1 -1
  264. package/dist/components/table/Table.js +3 -4
  265. package/dist/components/table/Table.js.map +1 -1
  266. package/dist/components/table/TableProvider.cjs.map +1 -1
  267. package/dist/components/table/TableProvider.js +1 -2
  268. package/dist/components/table/TableProvider.js.map +1 -1
  269. package/dist/components/tabs/Tabs.cjs.map +1 -1
  270. package/dist/components/tabs/Tabs.d.ts +4 -7
  271. package/dist/components/tabs/Tabs.js +1 -2
  272. package/dist/components/tabs/Tabs.js.map +1 -1
  273. package/dist/components/tag/Tag.cjs +1 -1
  274. package/dist/components/tag/Tag.cjs.map +1 -1
  275. package/dist/components/tag/Tag.js +19 -14
  276. package/dist/components/tag/Tag.js.map +1 -1
  277. package/dist/components/text/Text.cjs +1 -1
  278. package/dist/components/text/Text.cjs.map +1 -1
  279. package/dist/components/text/Text.d.ts +1 -1
  280. package/dist/components/text/Text.js +3 -4
  281. package/dist/components/text/Text.js.map +1 -1
  282. package/dist/components/textarea/Textarea.cjs.map +1 -1
  283. package/dist/components/textarea/Textarea.d.ts +4 -5
  284. package/dist/components/textarea/Textarea.js +1 -2
  285. package/dist/components/textarea/Textarea.js.map +1 -1
  286. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  287. package/dist/components/tooltip/Tooltip.d.ts +2 -2
  288. package/dist/components/tooltip/Tooltip.js +1 -2
  289. package/dist/components/tooltip/Tooltip.js.map +1 -1
  290. package/dist/components/ui-labels/UiLabelsProvider.cjs.map +1 -1
  291. package/dist/components/ui-labels/UiLabelsProvider.js +1 -2
  292. package/dist/components/ui-labels/UiLabelsProvider.js.map +1 -1
  293. package/dist/icons/index.cjs.map +1 -1
  294. package/dist/icons/index.js +1 -2
  295. package/dist/icons/index.js.map +1 -1
  296. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -0
  297. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +4 -5
  298. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -0
  299. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -0
  300. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +4 -5
  301. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -0
  302. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -0
  303. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +4 -5
  304. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -0
  305. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs.map +1 -0
  306. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js +4 -5
  307. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js.map +1 -0
  308. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -0
  309. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +4 -5
  310. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -0
  311. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs.map +1 -0
  312. package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js +4 -5
  313. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js.map +1 -0
  314. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs +1 -1
  315. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
  316. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +2 -3
  317. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js.map +1 -1
  318. package/dist/preset.cjs +1 -1
  319. package/dist/preset.cjs.map +1 -1
  320. package/dist/preset.js +7 -6
  321. package/dist/preset.js.map +1 -1
  322. package/dist/shared/ConditionalWrapper.cjs.map +1 -1
  323. package/dist/shared/ConditionalWrapper.js +1 -2
  324. package/dist/shared/ConditionalWrapper.js.map +1 -1
  325. package/dist/shared/assets/icons.cjs.map +1 -1
  326. package/dist/shared/assets/icons.d.ts +2 -2
  327. package/dist/shared/assets/icons.js +1 -2
  328. package/dist/shared/assets/icons.js.map +1 -1
  329. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
  330. package/dist/shared/hooks/useUncontrolled.js +1 -2
  331. package/dist/shared/hooks/useUncontrolled.js.map +1 -1
  332. package/dist/shared/utils/events.cjs.map +1 -1
  333. package/dist/shared/utils/events.js +1 -2
  334. package/dist/shared/utils/events.js.map +1 -1
  335. package/dist/theme/breakpoints.cjs.map +1 -1
  336. package/dist/theme/breakpoints.js +1 -2
  337. package/dist/theme/breakpoints.js.map +1 -1
  338. package/dist/theme/conditions.cjs.map +1 -1
  339. package/dist/theme/conditions.js +1 -2
  340. package/dist/theme/conditions.js.map +1 -1
  341. package/dist/theme/containers.cjs +1 -1
  342. package/dist/theme/containers.cjs.map +1 -1
  343. package/dist/theme/containers.d.ts +1 -1
  344. package/dist/theme/containers.js +2 -3
  345. package/dist/theme/containers.js.map +1 -1
  346. package/dist/theme/globalCss.cjs.map +1 -1
  347. package/dist/theme/globalCss.d.ts +1 -1
  348. package/dist/theme/globalCss.js +1 -2
  349. package/dist/theme/globalCss.js.map +1 -1
  350. package/dist/theme/keyframes.cjs.map +1 -1
  351. package/dist/theme/keyframes.d.ts +1 -1
  352. package/dist/theme/keyframes.js +1 -2
  353. package/dist/theme/keyframes.js.map +1 -1
  354. package/dist/theme/recipes/accordion.cjs.map +1 -1
  355. package/dist/theme/recipes/accordion.d.ts +32 -2
  356. package/dist/theme/recipes/accordion.js +1 -2
  357. package/dist/theme/recipes/accordion.js.map +1 -1
  358. package/dist/theme/recipes/action-card.cjs.map +1 -1
  359. package/dist/theme/recipes/action-card.d.ts +2 -2
  360. package/dist/theme/recipes/action-card.js +1 -2
  361. package/dist/theme/recipes/action-card.js.map +1 -1
  362. package/dist/theme/recipes/alert.cjs.map +1 -1
  363. package/dist/theme/recipes/alert.d.ts +30 -2
  364. package/dist/theme/recipes/alert.js +1 -2
  365. package/dist/theme/recipes/alert.js.map +1 -1
  366. package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
  367. package/dist/theme/recipes/app/mobile-navigation.d.ts +51 -2
  368. package/dist/theme/recipes/app/mobile-navigation.js +1 -2
  369. package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
  370. package/dist/theme/recipes/app/navigation-language-select.cjs +1 -1
  371. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
  372. package/dist/theme/recipes/app/navigation-language-select.d.ts +105 -2
  373. package/dist/theme/recipes/app/navigation-language-select.js +31 -39
  374. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
  375. package/dist/theme/recipes/app/navigation.cjs.map +1 -1
  376. package/dist/theme/recipes/app/navigation.d.ts +125 -2
  377. package/dist/theme/recipes/app/navigation.js +1 -2
  378. package/dist/theme/recipes/app/navigation.js.map +1 -1
  379. package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
  380. package/dist/theme/recipes/app/price-tag.d.ts +41 -2
  381. package/dist/theme/recipes/app/price-tag.js +1 -2
  382. package/dist/theme/recipes/app/price-tag.js.map +1 -1
  383. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
  384. package/dist/theme/recipes/app/product-card-catalog.d.ts +2 -2
  385. package/dist/theme/recipes/app/product-card-catalog.js +1 -2
  386. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
  387. package/dist/theme/recipes/avatar-group.cjs.map +1 -1
  388. package/dist/theme/recipes/avatar-group.d.ts +14 -2
  389. package/dist/theme/recipes/avatar-group.js +1 -2
  390. package/dist/theme/recipes/avatar-group.js.map +1 -1
  391. package/dist/theme/recipes/avatar.cjs.map +1 -1
  392. package/dist/theme/recipes/avatar.d.ts +53 -2
  393. package/dist/theme/recipes/avatar.js +1 -2
  394. package/dist/theme/recipes/avatar.js.map +1 -1
  395. package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
  396. package/dist/theme/recipes/breadcrumb.d.ts +2 -2
  397. package/dist/theme/recipes/breadcrumb.js +1 -2
  398. package/dist/theme/recipes/breadcrumb.js.map +1 -1
  399. package/dist/theme/recipes/button-filter.cjs.map +1 -1
  400. package/dist/theme/recipes/button-filter.d.ts +1 -1
  401. package/dist/theme/recipes/button-filter.js +1 -2
  402. package/dist/theme/recipes/button-filter.js.map +1 -1
  403. package/dist/theme/recipes/button.cjs.map +1 -1
  404. package/dist/theme/recipes/button.d.ts +93 -2
  405. package/dist/theme/recipes/button.js +1 -2
  406. package/dist/theme/recipes/button.js.map +1 -1
  407. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
  408. package/dist/theme/recipes/chat/chat-document-message.d.ts +1 -1
  409. package/dist/theme/recipes/chat/chat-document-message.js +1 -2
  410. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
  411. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
  412. package/dist/theme/recipes/chat/chat-input-text.d.ts +1 -1
  413. package/dist/theme/recipes/chat/chat-input-text.js +1 -2
  414. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
  415. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
  416. package/dist/theme/recipes/chat/chat-message.d.ts +28 -2
  417. package/dist/theme/recipes/chat/chat-message.js +1 -2
  418. package/dist/theme/recipes/chat/chat-message.js.map +1 -1
  419. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
  420. package/dist/theme/recipes/chat/chat-profile-avatar.d.ts +9 -2
  421. package/dist/theme/recipes/chat/chat-profile-avatar.js +1 -2
  422. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
  423. package/dist/theme/recipes/chat/chat.cjs.map +1 -1
  424. package/dist/theme/recipes/chat/chat.d.ts +2 -2
  425. package/dist/theme/recipes/chat/chat.js +1 -2
  426. package/dist/theme/recipes/chat/chat.js.map +1 -1
  427. package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
  428. package/dist/theme/recipes/checkbox-card.d.ts +1 -1
  429. package/dist/theme/recipes/checkbox-card.js +1 -2
  430. package/dist/theme/recipes/checkbox-card.js.map +1 -1
  431. package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
  432. package/dist/theme/recipes/checkbox-group.d.ts +1 -1
  433. package/dist/theme/recipes/checkbox-group.js +1 -2
  434. package/dist/theme/recipes/checkbox-group.js.map +1 -1
  435. package/dist/theme/recipes/checkbox.cjs +1 -1
  436. package/dist/theme/recipes/checkbox.cjs.map +1 -1
  437. package/dist/theme/recipes/checkbox.d.ts +26 -2
  438. package/dist/theme/recipes/checkbox.js +7 -8
  439. package/dist/theme/recipes/checkbox.js.map +1 -1
  440. package/dist/theme/recipes/chip.cjs.map +1 -1
  441. package/dist/theme/recipes/chip.d.ts +148 -2
  442. package/dist/theme/recipes/chip.js +1 -2
  443. package/dist/theme/recipes/chip.js.map +1 -1
  444. package/dist/theme/recipes/collapsible.cjs.map +1 -1
  445. package/dist/theme/recipes/collapsible.d.ts +2 -2
  446. package/dist/theme/recipes/collapsible.js +1 -2
  447. package/dist/theme/recipes/collapsible.js.map +1 -1
  448. package/dist/theme/recipes/combobox.cjs +1 -1
  449. package/dist/theme/recipes/combobox.cjs.map +1 -1
  450. package/dist/theme/recipes/combobox.d.ts +33 -2
  451. package/dist/theme/recipes/combobox.js +6 -6
  452. package/dist/theme/recipes/combobox.js.map +1 -1
  453. package/dist/theme/recipes/common/group-card.cjs.map +1 -1
  454. package/dist/theme/recipes/common/group-card.d.ts +1 -1
  455. package/dist/theme/recipes/common/group-card.js +1 -2
  456. package/dist/theme/recipes/common/group-card.js.map +1 -1
  457. package/dist/theme/recipes/datepicker.cjs +1 -1
  458. package/dist/theme/recipes/datepicker.cjs.map +1 -1
  459. package/dist/theme/recipes/datepicker.d.ts +2 -2
  460. package/dist/theme/recipes/datepicker.js +6 -7
  461. package/dist/theme/recipes/datepicker.js.map +1 -1
  462. package/dist/theme/recipes/dialog.cjs.map +1 -1
  463. package/dist/theme/recipes/dialog.d.ts +2 -2
  464. package/dist/theme/recipes/dialog.js +1 -2
  465. package/dist/theme/recipes/dialog.js.map +1 -1
  466. package/dist/theme/recipes/drawer.cjs.map +1 -1
  467. package/dist/theme/recipes/drawer.d.ts +31 -2
  468. package/dist/theme/recipes/drawer.js +4 -4
  469. package/dist/theme/recipes/drawer.js.map +1 -1
  470. package/dist/theme/recipes/flag.cjs.map +1 -1
  471. package/dist/theme/recipes/flag.d.ts +15 -2
  472. package/dist/theme/recipes/flag.js +1 -2
  473. package/dist/theme/recipes/flag.js.map +1 -1
  474. package/dist/theme/recipes/form/control.cjs.map +1 -1
  475. package/dist/theme/recipes/form/control.d.ts +1 -1
  476. package/dist/theme/recipes/form/control.js +1 -2
  477. package/dist/theme/recipes/form/control.js.map +1 -1
  478. package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
  479. package/dist/theme/recipes/form/helper-text.d.ts +1 -1
  480. package/dist/theme/recipes/form/helper-text.js +1 -2
  481. package/dist/theme/recipes/form/helper-text.js.map +1 -1
  482. package/dist/theme/recipes/form/label.cjs.map +1 -1
  483. package/dist/theme/recipes/form/label.d.ts +15 -2
  484. package/dist/theme/recipes/form/label.js +1 -2
  485. package/dist/theme/recipes/form/label.js.map +1 -1
  486. package/dist/theme/recipes/heading.cjs.map +1 -1
  487. package/dist/theme/recipes/heading.d.ts +33 -2
  488. package/dist/theme/recipes/heading.js +1 -2
  489. package/dist/theme/recipes/heading.js.map +1 -1
  490. package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
  491. package/dist/theme/recipes/highlightedInput.d.ts +2 -2
  492. package/dist/theme/recipes/highlightedInput.js +1 -2
  493. package/dist/theme/recipes/highlightedInput.js.map +1 -1
  494. package/dist/theme/recipes/icon-button.cjs.map +1 -1
  495. package/dist/theme/recipes/icon-button.d.ts +1 -1
  496. package/dist/theme/recipes/icon-button.js +0 -1
  497. package/dist/theme/recipes/icon-button.js.map +1 -1
  498. package/dist/theme/recipes/icon.cjs.map +1 -1
  499. package/dist/theme/recipes/icon.d.ts +25 -2
  500. package/dist/theme/recipes/icon.js +1 -2
  501. package/dist/theme/recipes/icon.js.map +1 -1
  502. package/dist/theme/recipes/illustration.cjs.map +1 -1
  503. package/dist/theme/recipes/illustration.d.ts +29 -2
  504. package/dist/theme/recipes/illustration.js +1 -2
  505. package/dist/theme/recipes/illustration.js.map +1 -1
  506. package/dist/theme/recipes/index.cjs +1 -1
  507. package/dist/theme/recipes/index.cjs.map +1 -1
  508. package/dist/theme/recipes/index.d.ts +1464 -49
  509. package/dist/theme/recipes/index.js +3 -4
  510. package/dist/theme/recipes/index.js.map +1 -1
  511. package/dist/theme/recipes/input-addon.cjs.map +1 -1
  512. package/dist/theme/recipes/input-addon.d.ts +1 -1
  513. package/dist/theme/recipes/input-addon.js +1 -2
  514. package/dist/theme/recipes/input-addon.js.map +1 -1
  515. package/dist/theme/recipes/input-group.cjs.map +1 -1
  516. package/dist/theme/recipes/input-group.d.ts +1 -1
  517. package/dist/theme/recipes/input-group.js +1 -2
  518. package/dist/theme/recipes/input-group.js.map +1 -1
  519. package/dist/theme/recipes/input.cjs +1 -1
  520. package/dist/theme/recipes/input.cjs.map +1 -1
  521. package/dist/theme/recipes/input.d.ts +9 -2
  522. package/dist/theme/recipes/input.js +5 -6
  523. package/dist/theme/recipes/input.js.map +1 -1
  524. package/dist/theme/recipes/menu.cjs.map +1 -1
  525. package/dist/theme/recipes/menu.d.ts +20 -2
  526. package/dist/theme/recipes/menu.js +1 -2
  527. package/dist/theme/recipes/menu.js.map +1 -1
  528. package/dist/theme/recipes/pagination.cjs +1 -1
  529. package/dist/theme/recipes/pagination.cjs.map +1 -1
  530. package/dist/theme/recipes/pagination.d.ts +2 -2
  531. package/dist/theme/recipes/pagination.js +3 -4
  532. package/dist/theme/recipes/pagination.js.map +1 -1
  533. package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
  534. package/dist/theme/recipes/phone-number-input.d.ts +9 -2
  535. package/dist/theme/recipes/phone-number-input.js +1 -2
  536. package/dist/theme/recipes/phone-number-input.js.map +1 -1
  537. package/dist/theme/recipes/popover.cjs.map +1 -1
  538. package/dist/theme/recipes/popover.d.ts +2 -2
  539. package/dist/theme/recipes/popover.js +1 -2
  540. package/dist/theme/recipes/popover.js.map +1 -1
  541. package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
  542. package/dist/theme/recipes/radio-button-group.d.ts +25 -2
  543. package/dist/theme/recipes/radio-button-group.js +1 -2
  544. package/dist/theme/recipes/radio-button-group.js.map +1 -1
  545. package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
  546. package/dist/theme/recipes/radio-card-group.d.ts +36 -2
  547. package/dist/theme/recipes/radio-card-group.js +1 -2
  548. package/dist/theme/recipes/radio-card-group.js.map +1 -1
  549. package/dist/theme/recipes/radio-group.cjs.map +1 -1
  550. package/dist/theme/recipes/radio-group.d.ts +27 -2
  551. package/dist/theme/recipes/radio-group.js +1 -2
  552. package/dist/theme/recipes/radio-group.js.map +1 -1
  553. package/dist/theme/recipes/select-language.cjs.map +1 -1
  554. package/dist/theme/recipes/select-language.d.ts +15 -2
  555. package/dist/theme/recipes/select-language.js +1 -2
  556. package/dist/theme/recipes/select-language.js.map +1 -1
  557. package/dist/theme/recipes/select.cjs +1 -1
  558. package/dist/theme/recipes/select.cjs.map +1 -1
  559. package/dist/theme/recipes/select.d.ts +30 -2
  560. package/dist/theme/recipes/select.js +3 -18
  561. package/dist/theme/recipes/select.js.map +1 -1
  562. package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
  563. package/dist/theme/recipes/status-tag-select.d.ts +125 -2
  564. package/dist/theme/recipes/status-tag-select.js +1 -2
  565. package/dist/theme/recipes/status-tag-select.js.map +1 -1
  566. package/dist/theme/recipes/steps.cjs.map +1 -1
  567. package/dist/theme/recipes/steps.d.ts +2 -2
  568. package/dist/theme/recipes/steps.js +1 -2
  569. package/dist/theme/recipes/steps.js.map +1 -1
  570. package/dist/theme/recipes/switch-card.cjs.map +1 -1
  571. package/dist/theme/recipes/switch-card.d.ts +1 -1
  572. package/dist/theme/recipes/switch-card.js +1 -2
  573. package/dist/theme/recipes/switch-card.js.map +1 -1
  574. package/dist/theme/recipes/switch.cjs.map +1 -1
  575. package/dist/theme/recipes/switch.d.ts +22 -2
  576. package/dist/theme/recipes/switch.js +1 -2
  577. package/dist/theme/recipes/switch.js.map +1 -1
  578. package/dist/theme/recipes/table-container.cjs.map +1 -1
  579. package/dist/theme/recipes/table-container.d.ts +1 -1
  580. package/dist/theme/recipes/table-container.js +1 -2
  581. package/dist/theme/recipes/table-container.js.map +1 -1
  582. package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
  583. package/dist/theme/recipes/table-empty-row.d.ts +1 -1
  584. package/dist/theme/recipes/table-empty-row.js +1 -2
  585. package/dist/theme/recipes/table-empty-row.js.map +1 -1
  586. package/dist/theme/recipes/table-group-title.cjs.map +1 -1
  587. package/dist/theme/recipes/table-group-title.d.ts +15 -2
  588. package/dist/theme/recipes/table-group-title.js +1 -2
  589. package/dist/theme/recipes/table-group-title.js.map +1 -1
  590. package/dist/theme/recipes/table.cjs.map +1 -1
  591. package/dist/theme/recipes/table.d.ts +2 -2
  592. package/dist/theme/recipes/table.js +1 -2
  593. package/dist/theme/recipes/table.js.map +1 -1
  594. package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
  595. package/dist/theme/recipes/tabs-chip.d.ts +29 -2
  596. package/dist/theme/recipes/tabs-chip.js +1 -2
  597. package/dist/theme/recipes/tabs-chip.js.map +1 -1
  598. package/dist/theme/recipes/tabs.cjs.map +1 -1
  599. package/dist/theme/recipes/tabs.d.ts +49 -2
  600. package/dist/theme/recipes/tabs.js +1 -2
  601. package/dist/theme/recipes/tabs.js.map +1 -1
  602. package/dist/theme/recipes/tag.cjs +1 -1
  603. package/dist/theme/recipes/tag.cjs.map +1 -1
  604. package/dist/theme/recipes/tag.d.ts +109 -2
  605. package/dist/theme/recipes/tag.js +24 -11
  606. package/dist/theme/recipes/tag.js.map +1 -1
  607. package/dist/theme/recipes/text.cjs.map +1 -1
  608. package/dist/theme/recipes/text.d.ts +29 -2
  609. package/dist/theme/recipes/text.js +1 -2
  610. package/dist/theme/recipes/text.js.map +1 -1
  611. package/dist/theme/recipes/textarea.cjs.map +1 -1
  612. package/dist/theme/recipes/textarea.d.ts +1 -1
  613. package/dist/theme/recipes/textarea.js +1 -2
  614. package/dist/theme/recipes/textarea.js.map +1 -1
  615. package/dist/theme/recipes/tooltip.cjs.map +1 -1
  616. package/dist/theme/recipes/tooltip.d.ts +2 -2
  617. package/dist/theme/recipes/tooltip.js +1 -2
  618. package/dist/theme/recipes/tooltip.js.map +1 -1
  619. package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
  620. package/dist/theme/semantic-tokens/colors.js +1 -2
  621. package/dist/theme/semantic-tokens/colors.js.map +1 -1
  622. package/dist/theme/semantic-tokens/gradients.cjs.map +1 -1
  623. package/dist/theme/semantic-tokens/gradients.js +1 -2
  624. package/dist/theme/semantic-tokens/gradients.js.map +1 -1
  625. package/dist/theme/semantic-tokens/index.cjs.map +1 -1
  626. package/dist/theme/semantic-tokens/index.js +1 -2
  627. package/dist/theme/semantic-tokens/index.js.map +1 -1
  628. package/dist/theme/text-styles.cjs.map +1 -1
  629. package/dist/theme/text-styles.d.ts +1 -1
  630. package/dist/theme/text-styles.js +1 -2
  631. package/dist/theme/text-styles.js.map +1 -1
  632. package/dist/theme/tokens/animations.cjs.map +1 -1
  633. package/dist/theme/tokens/animations.js +1 -2
  634. package/dist/theme/tokens/animations.js.map +1 -1
  635. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
  636. package/dist/theme/tokens/aspect-ratios.js +1 -2
  637. package/dist/theme/tokens/aspect-ratios.js.map +1 -1
  638. package/dist/theme/tokens/blurs.cjs.map +1 -1
  639. package/dist/theme/tokens/blurs.js +1 -2
  640. package/dist/theme/tokens/blurs.js.map +1 -1
  641. package/dist/theme/tokens/borders.cjs.map +1 -1
  642. package/dist/theme/tokens/borders.js +1 -2
  643. package/dist/theme/tokens/borders.js.map +1 -1
  644. package/dist/theme/tokens/colors.cjs.map +1 -1
  645. package/dist/theme/tokens/colors.js +1 -2
  646. package/dist/theme/tokens/colors.js.map +1 -1
  647. package/dist/theme/tokens/durations.cjs.map +1 -1
  648. package/dist/theme/tokens/durations.js +1 -2
  649. package/dist/theme/tokens/durations.js.map +1 -1
  650. package/dist/theme/tokens/easings.cjs.map +1 -1
  651. package/dist/theme/tokens/easings.js +1 -2
  652. package/dist/theme/tokens/easings.js.map +1 -1
  653. package/dist/theme/tokens/index.cjs.map +1 -1
  654. package/dist/theme/tokens/index.js +1 -2
  655. package/dist/theme/tokens/index.js.map +1 -1
  656. package/dist/theme/tokens/radii.cjs.map +1 -1
  657. package/dist/theme/tokens/radii.js +1 -2
  658. package/dist/theme/tokens/radii.js.map +1 -1
  659. package/dist/theme/tokens/shadows.cjs.map +1 -1
  660. package/dist/theme/tokens/shadows.js +1 -2
  661. package/dist/theme/tokens/shadows.js.map +1 -1
  662. package/dist/theme/tokens/sizes.cjs.map +1 -1
  663. package/dist/theme/tokens/sizes.js +1 -2
  664. package/dist/theme/tokens/sizes.js.map +1 -1
  665. package/dist/theme/tokens/spacing.cjs.map +1 -1
  666. package/dist/theme/tokens/spacing.js +1 -2
  667. package/dist/theme/tokens/spacing.js.map +1 -1
  668. package/dist/theme/tokens/typography.cjs.map +1 -1
  669. package/dist/theme/tokens/typography.js +1 -2
  670. package/dist/theme/tokens/typography.js.map +1 -1
  671. package/dist/theme/tokens/z-index.cjs.map +1 -1
  672. package/dist/theme/tokens/z-index.js +1 -2
  673. package/dist/theme/tokens/z-index.js.map +1 -1
  674. package/dist/theme/utilities.cjs.map +1 -1
  675. package/dist/theme/utilities.js +0 -1
  676. package/dist/theme/utilities.js.map +1 -1
  677. package/dist/ui.css +1 -1
  678. package/dist/utils/slots.cjs +1 -1
  679. package/dist/utils/slots.cjs.map +1 -1
  680. package/dist/utils/slots.js +3 -4
  681. package/dist/utils/slots.js.map +1 -1
  682. package/package.json +9 -9
  683. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +0 -1
  684. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +0 -1
  685. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +0 -1
  686. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +0 -1
  687. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +0 -1
  688. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +0 -1
  689. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs.map +0 -1
  690. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js.map +0 -1
  691. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +0 -1
  692. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +0 -1
  693. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs.map +0 -1
  694. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js.map +0 -1
  695. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +0 -0
  696. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +0 -0
  697. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +0 -0
  698. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.cjs +0 -0
  699. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +0 -0
  700. /package/dist/node_modules/.pnpm/{@heroicons_react@2.2.0_react@19.2.6 → @heroicons_react@2.2.0_react@19.3.1}/node_modules/@heroicons/react/24/outline/esm/XCircleIcon.cjs +0 -0
@@ -5,7 +5,7 @@ import { switchRecipe as n } from "@stokelp/styled-system/recipes";
5
5
  import { forwardRef as r } from "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { css as o, cx as s } from "@stokelp/styled-system/css";
8
- //#region src/components/switch/Switch.tsx
8
+ // src/components/switch/Switch.tsx
9
9
  var c = r((r, c) => {
10
10
  let [l, u] = n.splitVariantProps(r), [d, f] = t(u), { children: p, className: m, ...h } = f, g = n(l);
11
11
  return /* @__PURE__ */ a(e.Root, {
@@ -26,7 +26,6 @@ var c = r((r, c) => {
26
26
  });
27
27
  });
28
28
  c.displayName = "Switch";
29
- //#endregion
30
29
  export { c as Switch };
31
30
 
32
31
  //# sourceMappingURL=Switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","names":[],"sources":["../../../src/components/switch/Switch.tsx"],"sourcesContent":["import { Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { switchRecipe, type SwitchRecipeVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface SwitchProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchRecipeVariantProps {\n children?: ReactNode\n}\n\nexport const Switch = forwardRef<HTMLLabelElement, SwitchProps>((props, ref) => {\n const [variantProps, switchProps] = switchRecipe.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchRecipe(variantProps)\n\n return (\n <ArkSwitch.Root ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n {children ? <ArkSwitch.Label className={styles.label}>{children}</ArkSwitch.Label> : null}\n <ArkSwitch.HiddenInput />\n </ArkSwitch.Root>\n )\n})\n\nSwitch.displayName = 'Switch'\n"],"mappings":";;;;;;;;AAWA,IAAa,IAAS,GAA2C,GAAO,MAAQ;CAC9E,IAAM,CAAC,GAAc,KAAe,EAAa,kBAAkB,CAAK,GAClE,CAAC,GAAU,KAAc,EAAc,CAAW,GAClD,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAa,CAAY;CAExC,OACE,kBAAC,EAAU,MAAX;EAAqB;EAAK,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAApF;GACE,kBAAC,EAAU,SAAX;IAAmB,WAAW,EAAO;cACnC,kBAAC,EAAU,OAAX,EAAiB,WAAW,EAAO,MAAQ,CAAA;GAC1B,CAAA;GAClB,IAAW,kBAAC,EAAU,OAAX;IAAiB,WAAW,EAAO;IAAQ;GAA0B,CAAA,IAAI;GACrF,kBAAC,EAAU,aAAX,CAAwB,CAAA;EACV;;AAEpB,CAAC;AAED,EAAO,cAAc"}
1
+ {"version":3,"file":"Switch.js","names":["Switch","ArkSwitch","Switch$1","forwardRef","variantProps","switchProps","switchRecipe","props","cssProps","localProps","splitCssProps","rootProps","styles","Switch","cx","css","className","children"],"sources":["../../../src/components/switch/Switch.tsx"],"sourcesContent":["import { Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { switchRecipe, type SwitchRecipeVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface SwitchProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchRecipeVariantProps {\n children?: ReactNode\n}\n\nexport const Switch = forwardRef<HTMLLabelElement, SwitchProps>((props, ref) => {\n const [variantProps, switchProps] = switchRecipe.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchRecipe(variantProps)\n\n return (\n <ArkSwitch.Root ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n {children ? <ArkSwitch.Label className={styles.label}>{children}</ArkSwitch.Label> : null}\n <ArkSwitch.HiddenInput />\n </ArkSwitch.Root>\n )\n})\n\nSwitch.displayName = 'Switch'\n"],"mappings":";;;;;;;;AAWA,IAAaA,IAASG,GAA2C,GAAO,MAAQ;CAC9E,IAAM,CAACC,GAAcC,KAAeC,EAAa,kBAAkBC,CAAK,GAClE,CAACC,GAAUC,KAAcC,EAAcL,CAAW,GAClD,EAAE,aAAU,cAAW,GAAGM,MAAcF,GACxCG,IAASN,EAAaF,CAAY;CAExC,OACE,kBAACH,EAAU,MAAX;EAAqB;EAAK,WAAWa,EAAGF,EAAO,MAAMG,EAAIP,CAAQ,GAAGQ,CAAS;EAAG,GAAIL;EAApF,UAAA;GACE,kBAACV,EAAU,SAAX;IAAmB,WAAWW,EAAO;IACnC,UAAA,kBAACX,EAAU,OAAX,EAAiB,WAAWW,EAAO,MAAQ,CAAA;GAC1B,CAAA;GAClBK,IAAW,kBAAChB,EAAU,OAAX;IAAiB,WAAWW,EAAO;IAAQ;GAA0B,CAAA,IAAI;GACrF,kBAACX,EAAU,aAAX,CAAwB,CAAA;EACV;;AAEpB,CAAC;AAED,EAAO,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchCard.cjs","names":[],"sources":["../../../src/components/switch-card/SwitchCard.tsx"],"sourcesContent":["import { ark, Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { switchCard, type SwitchCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\n\nexport interface SwitchCardProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchCardVariantProps {}\n\nconst { withProvider, withContext } = createStyleContext(switchCard, {\n dataAttr: true,\n})\n\nconst SwitchCardRoot = withProvider(styled(ArkSwitch.Root))\n\nexport const SwitchCardTitle = withContext(styled(ArkSwitch.Label), 'title')\nexport const SwitchCardContent = withContext(styled('div'), 'content')\nexport const SwitchCardDescription = withContext(styled('p'), 'description')\nexport const SwitchCardImage = withContext(styled(ark.img), 'image')\n\nexport type SwitchCardTitleProps = ComponentProps<typeof SwitchCardTitle>\nexport type SwitchCardContentProps = ComponentProps<typeof SwitchCardContent>\nexport type SwitchCardDescriptionProps = ComponentProps<typeof SwitchCardDescription>\nexport type SwitchCardImageProps = ComponentProps<typeof SwitchCardImage>\n\nexport const SwitchCard = forwardRef<HTMLLabelElement, SwitchCardProps>((props, ref) => {\n const [variantProps, switchProps] = switchCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchCard(variantProps)\n\n return (\n <SwitchCardRoot ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n <ArkSwitch.HiddenInput />\n </SwitchCardRoot>\n )\n})\n\nSwitchCard.displayName = 'SwitchCard'\n"],"mappings":"mQAUA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,WAAY,CACnE,SAAU,EACZ,CAAC,EAEK,EAAiB,GAAA,EAAA,EAAA,QAAoB,EAAA,OAAU,IAAI,CAAC,EAE7C,EAAkB,GAAA,EAAA,EAAA,QAAmB,EAAA,OAAU,KAAK,EAAG,OAAO,EAC9D,EAAoB,GAAA,EAAA,EAAA,QAAmB,KAAK,EAAG,SAAS,EACxD,EAAwB,GAAA,EAAA,EAAA,QAAmB,GAAG,EAAG,aAAa,EAC9D,EAAkB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,OAAO,EAOtD,GAAA,EAAA,EAAA,aAA4D,EAAO,IAAQ,CACtF,GAAM,CAAC,EAAc,GAAe,EAAA,WAAW,kBAAkB,CAAK,EAChE,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAW,EAClD,CAAE,WAAU,YAAW,GAAG,GAAc,EACxC,GAAA,EAAA,EAAA,YAAoB,CAAY,EAEtC,OACE,EAAA,EAAA,MAAC,EAAD,CAAqB,MAAK,WAAA,EAAA,EAAA,IAAc,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAApF,CACG,GACD,EAAA,EAAA,KAAC,EAAA,OAAU,QAAX,CAAmB,UAAW,EAAO,kBACnC,EAAA,EAAA,KAAC,EAAA,OAAU,MAAX,CAAiB,UAAW,EAAO,KAAQ,CAAA,CAC1B,CAAA,GACnB,EAAA,EAAA,KAAC,EAAA,OAAU,YAAX,CAAwB,CAAA,CACV,GAEpB,CAAC,EAED,EAAW,YAAc"}
1
+ {"version":3,"file":"SwitchCard.cjs","names":["createStyleContext","switchCard","styled","ArkSwitch","ark","forwardRef","splitCssProps","cx","css","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","_stokelp_styled_system_css","SwitchCardRoot","withProvider","SwitchCardTitle","withContext","SwitchCardContent","SwitchCardDescription","SwitchCardImage","SwitchCard","variantProps","switchProps","props","cssProps","localProps","rootProps","styles","className","children"],"sources":["../../../src/components/switch-card/SwitchCard.tsx"],"sourcesContent":["import { ark, Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { switchCard, type SwitchCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\n\nexport interface SwitchCardProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchCardVariantProps {}\n\nconst { withProvider, withContext } = createStyleContext(switchCard, {\n dataAttr: true,\n})\n\nconst SwitchCardRoot = withProvider(styled(ArkSwitch.Root))\n\nexport const SwitchCardTitle = withContext(styled(ArkSwitch.Label), 'title')\nexport const SwitchCardContent = withContext(styled('div'), 'content')\nexport const SwitchCardDescription = withContext(styled('p'), 'description')\nexport const SwitchCardImage = withContext(styled(ark.img), 'image')\n\nexport type SwitchCardTitleProps = ComponentProps<typeof SwitchCardTitle>\nexport type SwitchCardContentProps = ComponentProps<typeof SwitchCardContent>\nexport type SwitchCardDescriptionProps = ComponentProps<typeof SwitchCardDescription>\nexport type SwitchCardImageProps = ComponentProps<typeof SwitchCardImage>\n\nexport const SwitchCard = forwardRef<HTMLLabelElement, SwitchCardProps>((props, ref) => {\n const [variantProps, switchProps] = switchCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchCard(variantProps)\n\n return (\n <SwitchCardRoot ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n <ArkSwitch.HiddenInput />\n </SwitchCardRoot>\n )\n})\n\nSwitchCard.displayName = 'SwitchCard'\n"],"mappings":"A,mQAUA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,WAAY,CACnE,SAAU,EACZ,CAAC,EAEKe,EAAiBC,GAAA,EAAaf,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,IAAI,CAAC,EAE7Ce,EAAkBC,GAAA,EAAYjB,EAAAA,OAAAA,CAAOC,EAAAA,OAAU,KAAK,EAAG,OAAO,EAC9DiB,EAAoBD,GAAA,EAAYjB,EAAAA,OAAAA,CAAO,KAAK,EAAG,SAAS,EACxDmB,EAAwBF,GAAA,EAAYjB,EAAAA,OAAAA,CAAO,GAAG,EAAG,aAAa,EAC9DoB,EAAkBH,GAAA,EAAYjB,EAAAA,OAAAA,CAAOE,EAAAA,IAAI,GAAG,EAAG,OAAO,EAOtDmB,GAAA,EAAalB,EAAAA,WAAAA,EAA+C,EAAO,IAAQ,CACtF,GAAM,CAACmB,EAAcC,GAAexB,EAAAA,WAAW,kBAAkByB,CAAK,EAChE,CAACC,EAAUC,IAAA,EAActB,EAAAA,cAAAA,CAAcmB,CAAW,EAClD,CAAE,WAAU,YAAW,GAAGI,GAAcD,EACxCE,GAAA,EAAS7B,EAAAA,WAAAA,CAAWuB,CAAY,EAEtC,OACE,EAAAV,EAAA,KAAA,CAACE,EAAD,CAAqB,MAAK,WAAA,EAAWT,EAAAA,GAAAA,CAAGuB,EAAO,MAAA,EAAMtB,EAAAA,IAAAA,CAAImB,CAAQ,EAAGI,CAAS,EAAG,GAAIF,EAApF,SAAA,CACGG,GACD,EAAAlB,EAAA,IAAA,CAACX,EAAAA,OAAU,QAAX,CAAmB,UAAW2B,EAAO,QACnC,UAAA,EAAAhB,EAAA,IAAA,CAACX,EAAAA,OAAU,MAAX,CAAiB,UAAW2B,EAAO,KAAQ,CAAA,CAC1B,CAAA,GACnB,EAAAhB,EAAA,IAAA,CAACX,EAAAA,OAAU,YAAX,CAAwB,CAAA,CACV,C,EAEpB,CAAC,EAED,EAAW,YAAc,a"}
@@ -1,7 +1,8 @@
1
1
  import { Switch as ArkSwitch, SwitchRootProps, PolymorphicProps } from '@ark-ui/react';
2
2
  import { SwitchCardVariantProps } from '@stokelp/styled-system/recipes';
3
- import { Assign, JsxStyleProps, StyledComponent } from '@stokelp/styled-system/types';
3
+ import { Assign, JsxStyleProps } from '@stokelp/styled-system/types';
4
4
  import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ClassAttributes, ImgHTMLAttributes } from 'react';
5
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
5
6
  export interface SwitchCardProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchCardVariantProps {
6
7
  }
7
8
  export declare const SwitchCardTitle: StyledComponent<ForwardRefExoticComponent<ArkSwitch.LabelProps & RefAttributes<HTMLSpanElement>>, {}>;
@@ -6,7 +6,7 @@ import { switchCard as a } from "@stokelp/styled-system/recipes";
6
6
  import { forwardRef as o } from "react";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  import { css as l, cx as u } from "@stokelp/styled-system/css";
9
- //#region src/components/switch-card/SwitchCard.tsx
9
+ // src/components/switch-card/SwitchCard.tsx
10
10
  var { withProvider: d, withContext: f } = e(a, { dataAttr: !0 }), p = d(i(t.Root)), m = f(i(t.Label), "title"), h = f(i("div"), "content"), g = f(i("p"), "description"), _ = f(i(n.img), "image"), v = o((e, n) => {
11
11
  let [i, o] = a.splitVariantProps(e), [d, f] = r(o), { children: m, className: h, ...g } = f, _ = a(i);
12
12
  return /* @__PURE__ */ c(p, {
@@ -24,7 +24,6 @@ var { withProvider: d, withContext: f } = e(a, { dataAttr: !0 }), p = d(i(t.Root
24
24
  });
25
25
  });
26
26
  v.displayName = "SwitchCard";
27
- //#endregion
28
27
  export { v as SwitchCard, h as SwitchCardContent, g as SwitchCardDescription, _ as SwitchCardImage, m as SwitchCardTitle };
29
28
 
30
29
  //# sourceMappingURL=SwitchCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchCard.js","names":[],"sources":["../../../src/components/switch-card/SwitchCard.tsx"],"sourcesContent":["import { ark, Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { switchCard, type SwitchCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\n\nexport interface SwitchCardProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchCardVariantProps {}\n\nconst { withProvider, withContext } = createStyleContext(switchCard, {\n dataAttr: true,\n})\n\nconst SwitchCardRoot = withProvider(styled(ArkSwitch.Root))\n\nexport const SwitchCardTitle = withContext(styled(ArkSwitch.Label), 'title')\nexport const SwitchCardContent = withContext(styled('div'), 'content')\nexport const SwitchCardDescription = withContext(styled('p'), 'description')\nexport const SwitchCardImage = withContext(styled(ark.img), 'image')\n\nexport type SwitchCardTitleProps = ComponentProps<typeof SwitchCardTitle>\nexport type SwitchCardContentProps = ComponentProps<typeof SwitchCardContent>\nexport type SwitchCardDescriptionProps = ComponentProps<typeof SwitchCardDescription>\nexport type SwitchCardImageProps = ComponentProps<typeof SwitchCardImage>\n\nexport const SwitchCard = forwardRef<HTMLLabelElement, SwitchCardProps>((props, ref) => {\n const [variantProps, switchProps] = switchCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchCard(variantProps)\n\n return (\n <SwitchCardRoot ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n <ArkSwitch.HiddenInput />\n </SwitchCardRoot>\n )\n})\n\nSwitchCard.displayName = 'SwitchCard'\n"],"mappings":";;;;;;;;;AAUA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,GAAY,EACnE,UAAU,GACZ,CAAC,GAEK,IAAiB,EAAa,EAAO,EAAU,IAAI,CAAC,GAE7C,IAAkB,EAAY,EAAO,EAAU,KAAK,GAAG,OAAO,GAC9D,IAAoB,EAAY,EAAO,KAAK,GAAG,SAAS,GACxD,IAAwB,EAAY,EAAO,GAAG,GAAG,aAAa,GAC9D,IAAkB,EAAY,EAAO,EAAI,GAAG,GAAG,OAAO,GAOtD,IAAa,GAA+C,GAAO,MAAQ;CACtF,IAAM,CAAC,GAAc,KAAe,EAAW,kBAAkB,CAAK,GAChE,CAAC,GAAU,KAAc,EAAc,CAAW,GAClD,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAW,CAAY;CAEtC,OACE,kBAAC,GAAD;EAAqB;EAAK,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAApF;GACG;GACD,kBAAC,EAAU,SAAX;IAAmB,WAAW,EAAO;cACnC,kBAAC,EAAU,OAAX,EAAiB,WAAW,EAAO,MAAQ,CAAA;GAC1B,CAAA;GACnB,kBAAC,EAAU,aAAX,CAAwB,CAAA;EACV;;AAEpB,CAAC;AAED,EAAW,cAAc"}
1
+ {"version":3,"file":"SwitchCard.js","names":["ArkSwitch","createStyleContext","switchCard","SwitchCardRoot","withProvider","styled","Switch","SwitchCardTitle","withContext","SwitchCardContent","SwitchCardDescription","SwitchCardImage","ark","SwitchCard","forwardRef","variantProps","switchProps","props","cssProps","localProps","splitCssProps","rootProps","styles","cx","css","className","children"],"sources":["../../../src/components/switch-card/SwitchCard.tsx"],"sourcesContent":["import { ark, Switch as ArkSwitch, type SwitchRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { switchCard, type SwitchCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\n\nexport interface SwitchCardProps extends Assign<JsxStyleProps, SwitchRootProps>, SwitchCardVariantProps {}\n\nconst { withProvider, withContext } = createStyleContext(switchCard, {\n dataAttr: true,\n})\n\nconst SwitchCardRoot = withProvider(styled(ArkSwitch.Root))\n\nexport const SwitchCardTitle = withContext(styled(ArkSwitch.Label), 'title')\nexport const SwitchCardContent = withContext(styled('div'), 'content')\nexport const SwitchCardDescription = withContext(styled('p'), 'description')\nexport const SwitchCardImage = withContext(styled(ark.img), 'image')\n\nexport type SwitchCardTitleProps = ComponentProps<typeof SwitchCardTitle>\nexport type SwitchCardContentProps = ComponentProps<typeof SwitchCardContent>\nexport type SwitchCardDescriptionProps = ComponentProps<typeof SwitchCardDescription>\nexport type SwitchCardImageProps = ComponentProps<typeof SwitchCardImage>\n\nexport const SwitchCard = forwardRef<HTMLLabelElement, SwitchCardProps>((props, ref) => {\n const [variantProps, switchProps] = switchCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(switchProps)\n const { children, className, ...rootProps } = localProps\n const styles = switchCard(variantProps)\n\n return (\n <SwitchCardRoot ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <ArkSwitch.Control className={styles.control}>\n <ArkSwitch.Thumb className={styles.thumb} />\n </ArkSwitch.Control>\n <ArkSwitch.HiddenInput />\n </SwitchCardRoot>\n )\n})\n\nSwitchCard.displayName = 'SwitchCard'\n"],"mappings":";;;;;;;;;AAUA,IAAM,EAAE,iBAAc,mBAAgBC,EAAmBC,GAAY,EACnE,UAAU,GACZ,CAAC,GAEKC,IAAiBC,EAAaC,EAAOL,EAAU,IAAI,CAAC,GAE7CO,IAAkBC,EAAYH,EAAOL,EAAU,KAAK,GAAG,OAAO,GAC9DS,IAAoBD,EAAYH,EAAO,KAAK,GAAG,SAAS,GACxDK,IAAwBF,EAAYH,EAAO,GAAG,GAAG,aAAa,GAC9DM,IAAkBH,EAAYH,EAAOO,EAAI,GAAG,GAAG,OAAO,GAOtDC,IAAaC,GAA+C,GAAO,MAAQ;CACtF,IAAM,CAACC,GAAcC,KAAed,EAAW,kBAAkBe,CAAK,GAChE,CAACC,GAAUC,KAAcC,EAAcJ,CAAW,GAClD,EAAE,aAAU,cAAW,GAAGK,MAAcF,GACxCG,IAASpB,EAAWa,CAAY;CAEtC,OACE,kBAACZ,GAAD;EAAqB;EAAK,WAAWoB,EAAGD,EAAO,MAAME,EAAIN,CAAQ,GAAGO,CAAS;EAAG,GAAIJ;EAApF,UAAA;GACGK;GACD,kBAAC1B,EAAU,SAAX;IAAmB,WAAWsB,EAAO;IACnC,UAAA,kBAACtB,EAAU,OAAX,EAAiB,WAAWsB,EAAO,MAAQ,CAAA;GAC1B,CAAA;GACnB,kBAACtB,EAAU,aAAX,CAAwB,CAAA;EACV;;AAEpB,CAAC;AAED,EAAW,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./SwitchCard.cjs");var n=e.__exportAll({Content:()=>t.SwitchCardContent,Description:()=>t.SwitchCardDescription,Image:()=>t.SwitchCardImage,Root:()=>t.SwitchCard,Title:()=>t.SwitchCardTitle});Object.defineProperty(exports,"namespace_exports",{enumerable:!0,get:function(){return n}});
1
+ "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./SwitchCard.cjs");var n=e.__exportAll({Content:()=>t.SwitchCardContent,Description:()=>t.SwitchCardDescription,Image:()=>t.SwitchCardImage,Root:()=>t.SwitchCard,Title:()=>t.SwitchCardTitle});exports.Content=t.SwitchCardContent,exports.Description=t.SwitchCardDescription,exports.Image=t.SwitchCardImage,exports.Root=t.SwitchCard,exports.Title=t.SwitchCardTitle,Object.defineProperty(exports,"namespace_exports",{enumerable:!0,get:function(){return n}});
2
2
  //# sourceMappingURL=namespace.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.cjs","names":[],"sources":["../../../src/components/switch-card/namespace.ts"],"sourcesContent":["export {\n SwitchCard as Root,\n SwitchCardContent as Content,\n SwitchCardTitle as Title,\n SwitchCardDescription as Description,\n SwitchCardImage as Image,\n} from './SwitchCard'\n\nexport type {\n SwitchCardProps as RootProps,\n SwitchCardContentProps as ContentProps,\n SwitchCardTitleProps as TitleProps,\n SwitchCardDescriptionProps as DescriptionProps,\n SwitchCardImageProps as ImageProps,\n} from './SwitchCard'\n"],"mappings":""}
1
+ {"version":3,"file":"namespace.cjs","names":["require_runtime","require_SwitchCard","namespace_exports"],"sources":["../../../src/components/switch-card/namespace.ts"],"sourcesContent":["export {\n SwitchCard as Root,\n SwitchCardContent as Content,\n SwitchCardTitle as Title,\n SwitchCardDescription as Description,\n SwitchCardImage as Image,\n} from './SwitchCard'\n\nexport type {\n SwitchCardProps as RootProps,\n SwitchCardContentProps as ContentProps,\n SwitchCardTitleProps as TitleProps,\n SwitchCardDescriptionProps as DescriptionProps,\n SwitchCardImageProps as ImageProps,\n} from './SwitchCard'\n"],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { SwitchCard as t, SwitchCardContent as n, SwitchCardDescription as r, SwitchCardImage as i, SwitchCardTitle as a } from "./SwitchCard.js";
4
- //#region src/components/switch-card/namespace.ts
4
+ // src/components/switch-card/namespace.ts
5
5
  var o = /* @__PURE__ */ e({
6
6
  Content: () => n,
7
7
  Description: () => r,
@@ -9,7 +9,6 @@ var o = /* @__PURE__ */ e({
9
9
  Root: () => t,
10
10
  Title: () => a
11
11
  });
12
- //#endregion
13
- export { o as namespace_exports };
12
+ export { n as Content, r as Description, i as Image, t as Root, a as Title, o as namespace_exports };
14
13
 
15
14
  //# sourceMappingURL=namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.js","names":[],"sources":["../../../src/components/switch-card/namespace.ts"],"sourcesContent":["export {\n SwitchCard as Root,\n SwitchCardContent as Content,\n SwitchCardTitle as Title,\n SwitchCardDescription as Description,\n SwitchCardImage as Image,\n} from './SwitchCard'\n\nexport type {\n SwitchCardProps as RootProps,\n SwitchCardContentProps as ContentProps,\n SwitchCardTitleProps as TitleProps,\n SwitchCardDescriptionProps as DescriptionProps,\n SwitchCardImageProps as ImageProps,\n} from './SwitchCard'\n"],"mappings":""}
1
+ {"version":3,"file":"namespace.js","names":["namespace_exports","SwitchCardContent","SwitchCardDescription","SwitchCardImage","SwitchCard","SwitchCardTitle"],"sources":["../../../src/components/switch-card/namespace.ts"],"sourcesContent":["export {\n SwitchCard as Root,\n SwitchCardContent as Content,\n SwitchCardTitle as Title,\n SwitchCardDescription as Description,\n SwitchCardImage as Image,\n} from './SwitchCard'\n\nexport type {\n SwitchCardProps as RootProps,\n SwitchCardContentProps as ContentProps,\n SwitchCardTitleProps as TitleProps,\n SwitchCardDescriptionProps as DescriptionProps,\n SwitchCardImageProps as ImageProps,\n} from './SwitchCard'\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../utils/slots.cjs"),t=require("./TableProvider.cjs");let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var{withProvider:o,withContext:s}=e.createStyleContext(r.table),c=e=>(0,n.styled)(e),l=(0,n.styled)(`div`,r.tableContainer),u=o(c(`table`),`root`),d=(0,i.forwardRef)(({children:e,onSortChange:n,descriptor:r,...i},o)=>(0,a.jsx)(t.TableProvider,{descriptor:r,onSortChange:n,children:(0,a.jsx)(u,{ref:o,...i,children:e})}));d.displayName=`Table`;var f=s(c(`thead`),`thead`),p=s(c(`div`),`sortIndicatorRoot`),m=s(c(`svg`),`sortIndicator`),h=s(c(`tbody`),`tbody`),g=s(c(`tr`),`tr`),_=s(c(`th`),`th`),v=(0,i.forwardRef)(({children:e,addon:n,sortKey:r,onClick:i,...o},s)=>{let{dispatch:c,sortDescriptor:l}=t.useTable(),u=e=>{r&&(l===null?c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`asc`}}):l.key===r?l.direction===`asc`?c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`desc`}}):c({type:`CLEAR_SORT_DESCRIPTOR`}):c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`asc`}})),i?.(e)};return(0,a.jsxs)(_,{ref:s,...o,...r?{"data-sortable":!0}:{},role:`group`,onClick:u,children:[e,n?(0,a.jsxs)(`span`,{className:`th__addon`,children:[`\xA0`,n]}):null,l&&l.key===r?(0,a.jsxs)(p,{"data-state":`active`,children:[(0,a.jsx)(m,{"data-active":l.direction===`asc`?!0:void 0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z`,fill:`currentColor`})}),(0,a.jsx)(m,{"data-active":l.direction===`desc`?!0:void 0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z`,fill:`currentColor`})})]}):r?(0,a.jsxs)(p,{"data-state":`idle`,children:[(0,a.jsx)(m,{"data-active":!0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z`,fill:`currentColor`})}),(0,a.jsx)(m,{"data-active":!0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z`,fill:`currentColor`})})]}):null]})});v.displayName=`Th`;var y=s(c(`td`),`td`),b=(0,n.styled)(`td`,r.tableGroupTitle),x=(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{if(n.current){let e=n.current?.closest(`table`)?.querySelector(`thead > tr`);e&&n.current.setAttribute(`colspan`,e.children.length.toString())}},[]),(0,a.jsx)(`tr`,{ref:t,className:`table_tr__group__title`,children:(0,a.jsx)(b,{ref:n,...e})})});x.displayName=`TableGroupTitle`;var S=(0,n.styled)(`td`,r.tableEmptyRow),C=(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{if(n.current){let e=n.current?.closest(`table`)?.querySelector(`thead > tr`);e&&n.current.setAttribute(`colspan`,e.children.length.toString())}},[]),(0,a.jsx)(`tr`,{ref:t,className:`table_tr__empty`,children:(0,a.jsx)(S,{ref:n,...e})})});C.displayName=`TableEmptyRow`,exports.Table=d,exports.TableContainer=l,exports.TableEmptyRow=C,exports.TableGroupTitle=x,exports.Tbody=h,exports.Td=y,exports.Th=v,exports.Thead=f,exports.Tr=g;
1
+ "use client";const e=require("../../utils/slots.cjs"),t=require("./TableProvider.cjs");let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var{withProvider:o,withContext:s}=e.createStyleContext(r.table),c=e=>(0,n.styled)(e),l=(0,n.styled)(`div`,r.tableContainer),u=o(c(`table`),`root`),d=(0,i.forwardRef)(({children:e,onSortChange:n,descriptor:r,...i},o)=>(0,a.jsx)(t.TableProvider,{descriptor:r,onSortChange:n,children:(0,a.jsx)(u,{ref:o,...i,children:e})}));d.displayName=`Table`;var f=s(c(`thead`),`thead`),p=s(c(`div`),`sortIndicatorRoot`),m=s(c(`svg`),`sortIndicator`),h=s(c(`tbody`),`tbody`),g=s(c(`tr`),`tr`),_=s(c(`th`),`th`),v=(0,i.forwardRef)(({children:e,addon:n,sortKey:r,onClick:i,...o},s)=>{let{dispatch:c,sortDescriptor:l}=t.useTable(),u=e=>{r&&(l===null?c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`asc`}}):l.key===r?l.direction===`asc`?c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`desc`}}):c({type:`CLEAR_SORT_DESCRIPTOR`}):c({type:`UPDATE_SORT_DESCRIPTOR`,payload:{key:r,direction:`asc`}})),i?.(e)};return(0,a.jsxs)(_,{ref:s,...o,...r?{"data-sortable":!0}:{},role:`group`,onClick:u,children:[e,n?(0,a.jsxs)(`span`,{className:`th__addon`,children:[`\xA0`,n]}):null,l&&l.key===r?(0,a.jsxs)(p,{"data-state":`active`,children:[(0,a.jsx)(m,{"data-active":l.direction===`asc`||void 0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z`,fill:`currentColor`})}),(0,a.jsx)(m,{"data-active":l.direction===`desc`||void 0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z`,fill:`currentColor`})})]}):r?(0,a.jsxs)(p,{"data-state":`idle`,children:[(0,a.jsx)(m,{"data-active":!0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z`,fill:`currentColor`})}),(0,a.jsx)(m,{"data-active":!0,viewBox:`0 0 8 8`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,a.jsx)(`path`,{d:`M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z`,fill:`currentColor`})})]}):null]})});v.displayName=`Th`;var y=s(c(`td`),`td`),b=(0,n.styled)(`td`,r.tableGroupTitle),x=(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{if(n.current){let e=n.current?.closest(`table`)?.querySelector(`thead > tr`);e&&n.current.setAttribute(`colspan`,e.children.length.toString())}},[]),(0,a.jsx)(`tr`,{ref:t,className:`table_tr__group__title`,children:(0,a.jsx)(b,{ref:n,...e})})});x.displayName=`TableGroupTitle`;var S=(0,n.styled)(`td`,r.tableEmptyRow),C=(0,i.forwardRef)((e,t)=>{let n=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{if(n.current){let e=n.current?.closest(`table`)?.querySelector(`thead > tr`);e&&n.current.setAttribute(`colspan`,e.children.length.toString())}},[]),(0,a.jsx)(`tr`,{ref:t,className:`table_tr__empty`,children:(0,a.jsx)(S,{ref:n,...e})})});C.displayName=`TableEmptyRow`,exports.Table=d,exports.TableContainer=l,exports.TableEmptyRow=C,exports.TableGroupTitle=x,exports.Tbody=h,exports.Td=y,exports.Th=v,exports.Thead=f,exports.Tr=g;
2
2
  //# sourceMappingURL=Table.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.cjs","names":[],"sources":["../../../src/components/table/Table.tsx"],"sourcesContent":["import type { ComponentProps, ElementRef, FC, JSX, MouseEvent, ReactNode } from 'react'\nimport { forwardRef, useLayoutEffect, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport {\n table,\n tableContainer,\n tableEmptyRow,\n tableGroupTitle,\n type TableContainerVariantProps,\n type TableEmptyRowVariantProps,\n type TableGroupTitleVariantProps,\n} from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { TableProvider, type TableProviderProps, useTable } from './TableProvider'\n\nconst { withProvider, withContext } = createStyleContext(table)\n\n// Helper: `styled('tag')` returns `StyledComponent<T, {}>` but TS widens the\n// literal to `string` at d.ts emit, stripping every native HTML attribute\n// from consumer typings. This wrapper pins the literal tag via the generic.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const TableContainer = styled('div', tableContainer) as StyledComponent<'div', TableContainerVariantProps>\n\nconst StyledTable = withProvider(styledTag('table'), 'root')\ntype StyledTableProps = ComponentProps<typeof StyledTable>\n\nexport type TableProps = StyledTableProps & Pick<TableProviderProps, 'onSortChange' | 'descriptor'>\n\nexport const Table = forwardRef<ElementRef<typeof StyledTable>, TableProps>(\n ({ children, onSortChange, descriptor, ...props }, ref) => {\n return (\n <TableProvider descriptor={descriptor} onSortChange={onSortChange}>\n <StyledTable ref={ref} {...props}>\n {children}\n </StyledTable>\n </TableProvider>\n )\n },\n) as FC<TableProps>\n\nTable.displayName = 'Table'\n\nexport const Thead = withContext(styledTag('thead'), 'thead')\nconst SortIndicatorRoot = withContext(styledTag('div'), 'sortIndicatorRoot')\nconst SortIndicator = withContext(styledTag('svg'), 'sortIndicator')\nexport const Tbody = withContext(styledTag('tbody'), 'tbody')\nexport const Tr = withContext(styledTag('tr'), 'tr')\nconst StyledTh = withContext(styledTag('th'), 'th')\n\ntype StyledThProps = ComponentProps<typeof StyledTh>\n\nexport type ThProps = StyledThProps & {\n addon?: ReactNode\n sortKey?: string\n}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ThProps>(\n ({ children, addon, sortKey, onClick, ...props }, ref) => {\n const { dispatch, sortDescriptor } = useTable()\n\n const handleOnClick = (e: MouseEvent<HTMLTableCellElement>) => {\n if (sortKey) {\n if (sortDescriptor === null) {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n } else if (sortDescriptor.key === sortKey) {\n if (sortDescriptor.direction === 'asc') {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'desc',\n },\n })\n } else {\n dispatch({\n type: 'CLEAR_SORT_DESCRIPTOR',\n })\n }\n } else {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n }\n }\n onClick?.(e)\n }\n\n return (\n <StyledTh\n ref={ref}\n {...props}\n {...(sortKey ? { 'data-sortable': true } : {})}\n role=\"group\"\n onClick={handleOnClick}\n >\n {children}\n {addon ? <span className=\"th__addon\">&nbsp;{addon}</span> : null}\n {sortDescriptor && sortDescriptor.key === sortKey ? (\n <SortIndicatorRoot data-state=\"active\">\n <SortIndicator\n data-active={sortDescriptor.direction === 'asc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator\n data-active={sortDescriptor.direction === 'desc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : sortKey ? (\n <SortIndicatorRoot data-state=\"idle\">\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : null}\n </StyledTh>\n )\n },\n) as FC<ThProps>\n\nTh.displayName = 'Th'\n\nexport const Td = withContext(styledTag('td'), 'td')\n\nconst StyledTableGroupTitle = styled('td', tableGroupTitle) as StyledComponent<'td', TableGroupTitleVariantProps>\nexport type TableGroupTitleProps = ComponentProps<typeof StyledTableGroupTitle>\nexport const TableGroupTitle = forwardRef<HTMLTableRowElement, TableGroupTitleProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableGroupTitle>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__group__title\">\n <StyledTableGroupTitle ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableGroupTitleProps>\nTableGroupTitle.displayName = 'TableGroupTitle'\n\nconst StyledTableEmptyRow = styled('td', tableEmptyRow) as StyledComponent<'td', TableEmptyRowVariantProps>\nexport type TableEmptyRowProps = ComponentProps<typeof StyledTableEmptyRow>\nexport const TableEmptyRow = forwardRef<HTMLTableRowElement, TableEmptyRowProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableEmptyRow>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__empty\">\n <StyledTableEmptyRow ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableEmptyRowProps>\nTableEmptyRow.displayName = 'TableEmptyRow'\n\nexport interface TheadProps extends ComponentProps<typeof Thead> {}\n\nexport interface TbodyProps extends ComponentProps<typeof Tbody> {}\n\nexport interface TrProps extends ComponentProps<typeof Tr> {}\n\nexport interface TdProps extends ComponentProps<typeof Td> {}\n\nexport interface TableContainerProps extends ComponentProps<typeof TableContainer> {}\n"],"mappings":"iOAgBA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,KAAK,EAKxD,EAAoD,IAAA,EAAA,EAAA,QACjD,CAAG,EAEC,GAAA,EAAA,EAAA,QAAwB,MAAO,EAA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AW,EAAa,SAAS,OAAO,SAAS,CAAC,CAE/E,CACF,EAAG,CAAC,CAAC,GAGH,EAAA,EAAA,KAAC,KAAD,CAAS,MAAK,UAAU,mCACtB,EAAA,EAAA,KAAC,EAAD,CAAuB,IAAK,EAAK,GAAI,CAAQ,CAAA,CAC3C,CAAA,CAER,CAAC,EACD,EAAgB,YAAc,kBAE9B,IAAM,GAAA,EAAA,EAAA,QAA6B,KAAM,EAAA,aAAa,EAEzC,GAAA,EAAA,EAAA,aAAqE,EAAO,IAAQ,CAC/F,IAAM,GAAA,EAAA,EAAA,QAAqD,IAAI,EAU/D,OATA,EAAA,EAAA,qBAAsB,CACpB,GAAI,EAAI,QAAS,CACf,IAAM,EAAe,EAAI,SAAS,QAAQ,OAAO,GAAG,cAAc,YAAY,EAC1E,GACF,EAAI,QAAQ,aAAa,UAAW,EAAa,SAAS,OAAO,SAAS,CAAC,CAE/E,CACF,EAAG,CAAC,CAAC,GAGH,EAAA,EAAA,KAAC,KAAD,CAAS,MAAK,UAAU,4BACtB,EAAA,EAAA,KAAC,EAAD,CAAqB,IAAK,EAAK,GAAI,CAAQ,CAAA,CACzC,CAAA,CAER,CAAC,EACD,EAAc,YAAc"}
1
+ {"version":3,"file":"Table.cjs","names":["createStyleContext","table","styled","tableContainer","forwardRef","TableProvider","useTable","tableGroupTitle","useRef","tableEmptyRow","require_slots","require_TableProvider","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","styledTag","tag","TableContainer","StyledTable","withProvider","Table","props","Thead","withContext","SortIndicatorRoot","SortIndicator","Tbody","Tr","StyledTh","Th","handleOnClick","sortKey","sortDescriptor","dispatch","onClick","children","addon","Td","StyledTableGroupTitle","TableGroupTitle","$td","tableColumns","StyledTableEmptyRow","TableEmptyRow"],"sources":["../../../src/components/table/Table.tsx"],"sourcesContent":["import type { ComponentProps, ElementRef, FC, JSX, MouseEvent, ReactNode } from 'react'\nimport { forwardRef, useLayoutEffect, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport {\n table,\n tableContainer,\n tableEmptyRow,\n tableGroupTitle,\n type TableContainerVariantProps,\n type TableEmptyRowVariantProps,\n type TableGroupTitleVariantProps,\n} from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { TableProvider, type TableProviderProps, useTable } from './TableProvider'\n\nconst { withProvider, withContext } = createStyleContext(table)\n\n// Helper: `styled('tag')` returns `StyledComponent<T, {}>` but TS widens the\n// literal to `string` at d.ts emit, stripping every native HTML attribute\n// from consumer typings. This wrapper pins the literal tag via the generic.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const TableContainer = styled('div', tableContainer) as StyledComponent<'div', TableContainerVariantProps>\n\nconst StyledTable = withProvider(styledTag('table'), 'root')\ntype StyledTableProps = ComponentProps<typeof StyledTable>\n\nexport type TableProps = StyledTableProps & Pick<TableProviderProps, 'onSortChange' | 'descriptor'>\n\nexport const Table = forwardRef<ElementRef<typeof StyledTable>, TableProps>(\n ({ children, onSortChange, descriptor, ...props }, ref) => {\n return (\n <TableProvider descriptor={descriptor} onSortChange={onSortChange}>\n <StyledTable ref={ref} {...props}>\n {children}\n </StyledTable>\n </TableProvider>\n )\n },\n) as FC<TableProps>\n\nTable.displayName = 'Table'\n\nexport const Thead = withContext(styledTag('thead'), 'thead')\nconst SortIndicatorRoot = withContext(styledTag('div'), 'sortIndicatorRoot')\nconst SortIndicator = withContext(styledTag('svg'), 'sortIndicator')\nexport const Tbody = withContext(styledTag('tbody'), 'tbody')\nexport const Tr = withContext(styledTag('tr'), 'tr')\nconst StyledTh = withContext(styledTag('th'), 'th')\n\ntype StyledThProps = ComponentProps<typeof StyledTh>\n\nexport type ThProps = StyledThProps & {\n addon?: ReactNode\n sortKey?: string\n}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ThProps>(\n ({ children, addon, sortKey, onClick, ...props }, ref) => {\n const { dispatch, sortDescriptor } = useTable()\n\n const handleOnClick = (e: MouseEvent<HTMLTableCellElement>) => {\n if (sortKey) {\n if (sortDescriptor === null) {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n } else if (sortDescriptor.key === sortKey) {\n if (sortDescriptor.direction === 'asc') {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'desc',\n },\n })\n } else {\n dispatch({\n type: 'CLEAR_SORT_DESCRIPTOR',\n })\n }\n } else {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n }\n }\n onClick?.(e)\n }\n\n return (\n <StyledTh\n ref={ref}\n {...props}\n {...(sortKey ? { 'data-sortable': true } : {})}\n role=\"group\"\n onClick={handleOnClick}\n >\n {children}\n {addon ? <span className=\"th__addon\">&nbsp;{addon}</span> : null}\n {sortDescriptor && sortDescriptor.key === sortKey ? (\n <SortIndicatorRoot data-state=\"active\">\n <SortIndicator\n data-active={sortDescriptor.direction === 'asc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator\n data-active={sortDescriptor.direction === 'desc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : sortKey ? (\n <SortIndicatorRoot data-state=\"idle\">\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : null}\n </StyledTh>\n )\n },\n) as FC<ThProps>\n\nTh.displayName = 'Th'\n\nexport const Td = withContext(styledTag('td'), 'td')\n\nconst StyledTableGroupTitle = styled('td', tableGroupTitle) as StyledComponent<'td', TableGroupTitleVariantProps>\nexport type TableGroupTitleProps = ComponentProps<typeof StyledTableGroupTitle>\nexport const TableGroupTitle = forwardRef<HTMLTableRowElement, TableGroupTitleProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableGroupTitle>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__group__title\">\n <StyledTableGroupTitle ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableGroupTitleProps>\nTableGroupTitle.displayName = 'TableGroupTitle'\n\nconst StyledTableEmptyRow = styled('td', tableEmptyRow) as StyledComponent<'td', TableEmptyRowVariantProps>\nexport type TableEmptyRowProps = ComponentProps<typeof StyledTableEmptyRow>\nexport const TableEmptyRow = forwardRef<HTMLTableRowElement, TableEmptyRowProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableEmptyRow>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__empty\">\n <StyledTableEmptyRow ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableEmptyRowProps>\nTableEmptyRow.displayName = 'TableEmptyRow'\n\nexport interface TheadProps extends ComponentProps<typeof Thead> {}\n\nexport interface TbodyProps extends ComponentProps<typeof Tbody> {}\n\nexport interface TrProps extends ComponentProps<typeof Tr> {}\n\nexport interface TdProps extends ComponentProps<typeof Td> {}\n\nexport interface TableContainerProps extends ComponentProps<typeof TableContainer> {}\n"],"mappings":"A,iOAgBA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,KAAK,EAKxDe,EAAoD,IAAA,EACxDd,EAAAA,OAAAA,CAAOe,CAAG,EAECC,GAAA,EAAiBhB,EAAAA,OAAAA,CAAO,MAAOC,EAAAA,cAAc,EAEpDgB,EAAcC,EAAaJ,EAAU,OAAO,EAAG,MAAM,EAK9CK,GAAA,EAAQjB,EAAAA,WAAAA,EAClB,CAAE,WAAU,eAAc,aAAY,GAAGkB,GAAS,KAE/C,EAAAP,EAAA,IAAA,CAACV,EAAAA,cAAD,CAA2B,aAA0B,eACnD,UAAA,EAAAU,EAAA,IAAA,CAACI,EAAD,CAAkB,MAAK,GAAIG,EACxB,UACU,CAAA,CACA,CAAA,CAGrB,EAEA,EAAM,YAAc,QAEpB,IAAaC,EAAQC,EAAYR,EAAU,OAAO,EAAG,OAAO,EACtDS,EAAoBD,EAAYR,EAAU,KAAK,EAAG,mBAAmB,EACrEU,EAAgBF,EAAYR,EAAU,KAAK,EAAG,eAAe,EACtDW,EAAQH,EAAYR,EAAU,OAAO,EAAG,OAAO,EAC/CY,EAAKJ,EAAYR,EAAU,IAAI,EAAG,IAAI,EAC7Ca,EAAWL,EAAYR,EAAU,IAAI,EAAG,IAAI,EASrCc,GAAA,EAAK1B,EAAAA,WAAAA,EACf,CAAE,WAAU,QAAO,UAAS,UAAS,GAAGkB,GAAS,IAAQ,CACxD,GAAM,CAAE,WAAU,kBAAmBhB,EAAAA,SAAS,EAExCyB,EAAiB,GAAwC,CACzD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AA+C,IAAI,EAU/D,OATA,EAAAM,EAAA,gBAAA,KAAsB,CACpB,GAAI2B,EAAI,QAAS,CACf,IAAMC,EAAeD,EAAI,SAAS,QAAQ,OAAO,CAAC,EAAE,cAAc,YAAY,EAC1EC,GACFD,EAAI,QAAQ,aAAa,UAAWC,EAAa,SAAS,OAAO,SAAS,CAAC,CAE/E,CACF,EAAG,CAAC,CAAC,GAGH,EAAA3B,EAAA,IAAA,CAAC,KAAD,CAAS,MAAK,UAAU,kBACtB,UAAA,EAAAA,EAAA,IAAA,CAAC4B,EAAD,CAAqB,IAAKF,EAAK,GAAInB,CAAQ,CAAA,CACzC,CAAA,CAER,CAAC,EACD,EAAc,YAAc,gB"}
@@ -5,7 +5,7 @@ import { styled as r } from "@stokelp/styled-system/jsx";
5
5
  import { table as i, tableContainer as a, tableEmptyRow as o, tableGroupTitle as s } from "@stokelp/styled-system/recipes";
6
6
  import { forwardRef as c, useLayoutEffect as l, useRef as u } from "react";
7
7
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
- //#region src/components/table/Table.tsx
8
+ // src/components/table/Table.tsx
9
9
  var { withProvider: p, withContext: m } = e(i), h = (e) => r(e), g = r("div", a), _ = p(h("table"), "root"), v = c(({ children: e, onSortChange: n, descriptor: r, ...i }, a) => /* @__PURE__ */ d(t, {
10
10
  descriptor: r,
11
11
  onSortChange: n,
@@ -53,7 +53,7 @@ var y = m(h("thead"), "thead"), b = m(h("div"), "sortIndicatorRoot"), x = m(h("s
53
53
  c && c.key === r ? /* @__PURE__ */ f(b, {
54
54
  "data-state": "active",
55
55
  children: [/* @__PURE__ */ d(x, {
56
- "data-active": c.direction === "asc" ? !0 : void 0,
56
+ "data-active": c.direction === "asc" || void 0,
57
57
  viewBox: "0 0 8 8",
58
58
  fill: "none",
59
59
  xmlns: "http://www.w3.org/2000/svg",
@@ -62,7 +62,7 @@ var y = m(h("thead"), "thead"), b = m(h("div"), "sortIndicatorRoot"), x = m(h("s
62
62
  fill: "currentColor"
63
63
  })
64
64
  }), /* @__PURE__ */ d(x, {
65
- "data-active": c.direction === "desc" ? !0 : void 0,
65
+ "data-active": c.direction === "desc" || void 0,
66
66
  viewBox: "0 0 8 8",
67
67
  fill: "none",
68
68
  xmlns: "http://www.w3.org/2000/svg",
@@ -131,7 +131,6 @@ var k = r("td", o), A = c((e, t) => {
131
131
  });
132
132
  });
133
133
  A.displayName = "TableEmptyRow";
134
- //#endregion
135
134
  export { v as Table, g as TableContainer, A as TableEmptyRow, O as TableGroupTitle, S as Tbody, E as Td, T as Th, y as Thead, C as Tr };
136
135
 
137
136
  //# sourceMappingURL=Table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","names":[],"sources":["../../../src/components/table/Table.tsx"],"sourcesContent":["import type { ComponentProps, ElementRef, FC, JSX, MouseEvent, ReactNode } from 'react'\nimport { forwardRef, useLayoutEffect, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport {\n table,\n tableContainer,\n tableEmptyRow,\n tableGroupTitle,\n type TableContainerVariantProps,\n type TableEmptyRowVariantProps,\n type TableGroupTitleVariantProps,\n} from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { TableProvider, type TableProviderProps, useTable } from './TableProvider'\n\nconst { withProvider, withContext } = createStyleContext(table)\n\n// Helper: `styled('tag')` returns `StyledComponent<T, {}>` but TS widens the\n// literal to `string` at d.ts emit, stripping every native HTML attribute\n// from consumer typings. This wrapper pins the literal tag via the generic.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const TableContainer = styled('div', tableContainer) as StyledComponent<'div', TableContainerVariantProps>\n\nconst StyledTable = withProvider(styledTag('table'), 'root')\ntype StyledTableProps = ComponentProps<typeof StyledTable>\n\nexport type TableProps = StyledTableProps & Pick<TableProviderProps, 'onSortChange' | 'descriptor'>\n\nexport const Table = forwardRef<ElementRef<typeof StyledTable>, TableProps>(\n ({ children, onSortChange, descriptor, ...props }, ref) => {\n return (\n <TableProvider descriptor={descriptor} onSortChange={onSortChange}>\n <StyledTable ref={ref} {...props}>\n {children}\n </StyledTable>\n </TableProvider>\n )\n },\n) as FC<TableProps>\n\nTable.displayName = 'Table'\n\nexport const Thead = withContext(styledTag('thead'), 'thead')\nconst SortIndicatorRoot = withContext(styledTag('div'), 'sortIndicatorRoot')\nconst SortIndicator = withContext(styledTag('svg'), 'sortIndicator')\nexport const Tbody = withContext(styledTag('tbody'), 'tbody')\nexport const Tr = withContext(styledTag('tr'), 'tr')\nconst StyledTh = withContext(styledTag('th'), 'th')\n\ntype StyledThProps = ComponentProps<typeof StyledTh>\n\nexport type ThProps = StyledThProps & {\n addon?: ReactNode\n sortKey?: string\n}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ThProps>(\n ({ children, addon, sortKey, onClick, ...props }, ref) => {\n const { dispatch, sortDescriptor } = useTable()\n\n const handleOnClick = (e: MouseEvent<HTMLTableCellElement>) => {\n if (sortKey) {\n if (sortDescriptor === null) {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n } else if (sortDescriptor.key === sortKey) {\n if (sortDescriptor.direction === 'asc') {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'desc',\n },\n })\n } else {\n dispatch({\n type: 'CLEAR_SORT_DESCRIPTOR',\n })\n }\n } else {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n }\n }\n onClick?.(e)\n }\n\n return (\n <StyledTh\n ref={ref}\n {...props}\n {...(sortKey ? { 'data-sortable': true } : {})}\n role=\"group\"\n onClick={handleOnClick}\n >\n {children}\n {addon ? <span className=\"th__addon\">&nbsp;{addon}</span> : null}\n {sortDescriptor && sortDescriptor.key === sortKey ? (\n <SortIndicatorRoot data-state=\"active\">\n <SortIndicator\n data-active={sortDescriptor.direction === 'asc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator\n data-active={sortDescriptor.direction === 'desc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : sortKey ? (\n <SortIndicatorRoot data-state=\"idle\">\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : null}\n </StyledTh>\n )\n },\n) as FC<ThProps>\n\nTh.displayName = 'Th'\n\nexport const Td = withContext(styledTag('td'), 'td')\n\nconst StyledTableGroupTitle = styled('td', tableGroupTitle) as StyledComponent<'td', TableGroupTitleVariantProps>\nexport type TableGroupTitleProps = ComponentProps<typeof StyledTableGroupTitle>\nexport const TableGroupTitle = forwardRef<HTMLTableRowElement, TableGroupTitleProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableGroupTitle>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__group__title\">\n <StyledTableGroupTitle ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableGroupTitleProps>\nTableGroupTitle.displayName = 'TableGroupTitle'\n\nconst StyledTableEmptyRow = styled('td', tableEmptyRow) as StyledComponent<'td', TableEmptyRowVariantProps>\nexport type TableEmptyRowProps = ComponentProps<typeof StyledTableEmptyRow>\nexport const TableEmptyRow = forwardRef<HTMLTableRowElement, TableEmptyRowProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableEmptyRow>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__empty\">\n <StyledTableEmptyRow ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableEmptyRowProps>\nTableEmptyRow.displayName = 'TableEmptyRow'\n\nexport interface TheadProps extends ComponentProps<typeof Thead> {}\n\nexport interface TbodyProps extends ComponentProps<typeof Tbody> {}\n\nexport interface TrProps extends ComponentProps<typeof Tr> {}\n\nexport interface TdProps extends ComponentProps<typeof Td> {}\n\nexport interface TableContainerProps extends ComponentProps<typeof TableContainer> {}\n"],"mappings":";;;;;;;;AAgBA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAAK,GAKxD,KAAoD,MACxD,EAAO,CAAG,GAEC,IAAiB,EAAO,OAAO,CAAc,GAEpD,IAAc,EAAa,EAAU,OAAO,GAAG,MAAM,GAK9C,IAAQ,GAClB,EAAE,aAAU,iBAAc,eAAY,GAAG,KAAS,MAE/C,kBAAC,GAAD;CAA2B;CAA0B;WACnD,kBAAC,GAAD;EAAkB;EAAK,GAAI;EACxB;CACU,CAAA;AACA,CAAA,CAGrB;AAEA,EAAM,cAAc;AAEpB,IAAa,IAAQ,EAAY,EAAU,OAAO,GAAG,OA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AAC,MAAD;EAAS;EAAK,WAAU;YACtB,kBAAC,GAAD;GAAqB,KAAK;GAAK,GAAI;EAAQ,CAAA;CACzC,CAAA;AAER,CAAC;AACD,EAAc,cAAc"}
1
+ {"version":3,"file":"Table.js","names":["createStyleContext","table","styledTag","styled","tag","TableContainer","tableContainer","StyledTable","withProvider","Table","forwardRef","props","TableProvider","Thead","withContext","SortIndicatorRoot","SortIndicator","Tbody","Tr","StyledTh","Th","useTable","handleOnClick","sortKey","sortDescriptor","dispatch","onClick","children","addon","Td","StyledTableGroupTitle","tableGroupTitle","TableGroupTitle","$td","useRef","useLayoutEffect","tableColumns","StyledTableEmptyRow","tableEmptyRow","TableEmptyRow"],"sources":["../../../src/components/table/Table.tsx"],"sourcesContent":["import type { ComponentProps, ElementRef, FC, JSX, MouseEvent, ReactNode } from 'react'\nimport { forwardRef, useLayoutEffect, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport {\n table,\n tableContainer,\n tableEmptyRow,\n tableGroupTitle,\n type TableContainerVariantProps,\n type TableEmptyRowVariantProps,\n type TableGroupTitleVariantProps,\n} from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { TableProvider, type TableProviderProps, useTable } from './TableProvider'\n\nconst { withProvider, withContext } = createStyleContext(table)\n\n// Helper: `styled('tag')` returns `StyledComponent<T, {}>` but TS widens the\n// literal to `string` at d.ts emit, stripping every native HTML attribute\n// from consumer typings. This wrapper pins the literal tag via the generic.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const TableContainer = styled('div', tableContainer) as StyledComponent<'div', TableContainerVariantProps>\n\nconst StyledTable = withProvider(styledTag('table'), 'root')\ntype StyledTableProps = ComponentProps<typeof StyledTable>\n\nexport type TableProps = StyledTableProps & Pick<TableProviderProps, 'onSortChange' | 'descriptor'>\n\nexport const Table = forwardRef<ElementRef<typeof StyledTable>, TableProps>(\n ({ children, onSortChange, descriptor, ...props }, ref) => {\n return (\n <TableProvider descriptor={descriptor} onSortChange={onSortChange}>\n <StyledTable ref={ref} {...props}>\n {children}\n </StyledTable>\n </TableProvider>\n )\n },\n) as FC<TableProps>\n\nTable.displayName = 'Table'\n\nexport const Thead = withContext(styledTag('thead'), 'thead')\nconst SortIndicatorRoot = withContext(styledTag('div'), 'sortIndicatorRoot')\nconst SortIndicator = withContext(styledTag('svg'), 'sortIndicator')\nexport const Tbody = withContext(styledTag('tbody'), 'tbody')\nexport const Tr = withContext(styledTag('tr'), 'tr')\nconst StyledTh = withContext(styledTag('th'), 'th')\n\ntype StyledThProps = ComponentProps<typeof StyledTh>\n\nexport type ThProps = StyledThProps & {\n addon?: ReactNode\n sortKey?: string\n}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ThProps>(\n ({ children, addon, sortKey, onClick, ...props }, ref) => {\n const { dispatch, sortDescriptor } = useTable()\n\n const handleOnClick = (e: MouseEvent<HTMLTableCellElement>) => {\n if (sortKey) {\n if (sortDescriptor === null) {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n } else if (sortDescriptor.key === sortKey) {\n if (sortDescriptor.direction === 'asc') {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'desc',\n },\n })\n } else {\n dispatch({\n type: 'CLEAR_SORT_DESCRIPTOR',\n })\n }\n } else {\n dispatch({\n type: 'UPDATE_SORT_DESCRIPTOR',\n payload: {\n key: sortKey,\n direction: 'asc',\n },\n })\n }\n }\n onClick?.(e)\n }\n\n return (\n <StyledTh\n ref={ref}\n {...props}\n {...(sortKey ? { 'data-sortable': true } : {})}\n role=\"group\"\n onClick={handleOnClick}\n >\n {children}\n {addon ? <span className=\"th__addon\">&nbsp;{addon}</span> : null}\n {sortDescriptor && sortDescriptor.key === sortKey ? (\n <SortIndicatorRoot data-state=\"active\">\n <SortIndicator\n data-active={sortDescriptor.direction === 'asc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator\n data-active={sortDescriptor.direction === 'desc' ? true : undefined}\n viewBox=\"0 0 8 8\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : sortKey ? (\n <SortIndicatorRoot data-state=\"idle\">\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33334 4.83332L4.00001 3.16666L5.66668 4.83332H2.33334Z\" fill=\"currentColor\" />\n </SortIndicator>\n <SortIndicator data-active={true} viewBox=\"0 0 8 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.33333 3.16666L3.99999 4.83332L5.66666 3.16666H2.33333Z\" fill=\"currentColor\" />\n </SortIndicator>\n </SortIndicatorRoot>\n ) : null}\n </StyledTh>\n )\n },\n) as FC<ThProps>\n\nTh.displayName = 'Th'\n\nexport const Td = withContext(styledTag('td'), 'td')\n\nconst StyledTableGroupTitle = styled('td', tableGroupTitle) as StyledComponent<'td', TableGroupTitleVariantProps>\nexport type TableGroupTitleProps = ComponentProps<typeof StyledTableGroupTitle>\nexport const TableGroupTitle = forwardRef<HTMLTableRowElement, TableGroupTitleProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableGroupTitle>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__group__title\">\n <StyledTableGroupTitle ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableGroupTitleProps>\nTableGroupTitle.displayName = 'TableGroupTitle'\n\nconst StyledTableEmptyRow = styled('td', tableEmptyRow) as StyledComponent<'td', TableEmptyRowVariantProps>\nexport type TableEmptyRowProps = ComponentProps<typeof StyledTableEmptyRow>\nexport const TableEmptyRow = forwardRef<HTMLTableRowElement, TableEmptyRowProps>((props, ref) => {\n const $td = useRef<ElementRef<typeof StyledTableEmptyRow>>(null)\n useLayoutEffect(() => {\n if ($td.current) {\n const tableColumns = $td.current?.closest('table')?.querySelector('thead > tr')\n if (tableColumns) {\n $td.current.setAttribute('colspan', tableColumns.children.length.toString())\n }\n }\n }, [])\n\n return (\n <tr ref={ref} className=\"table_tr__empty\">\n <StyledTableEmptyRow ref={$td} {...props} />\n </tr>\n )\n}) as FC<TableEmptyRowProps>\nTableEmptyRow.displayName = 'TableEmptyRow'\n\nexport interface TheadProps extends ComponentProps<typeof Thead> {}\n\nexport interface TbodyProps extends ComponentProps<typeof Tbody> {}\n\nexport interface TrProps extends ComponentProps<typeof Tr> {}\n\nexport interface TdProps extends ComponentProps<typeof Td> {}\n\nexport interface TableContainerProps extends ComponentProps<typeof TableContainer> {}\n"],"mappings":";;;;;;;;AAgBA,IAAM,EAAE,iBAAc,mBAAgBA,EAAmBC,CAAK,GAKxDC,KAAoD,MACxDC,EAAOC,CAAG,GAECC,IAAiBF,EAAO,OAAOG,CAAc,GAEpDC,IAAcC,EAAaN,EAAU,OAAO,GAAG,MAAM,GAK9CO,IAAQC,GAClB,EAAE,aAAU,iBAAc,eAAY,GAAGC,KAAS,MAE/C,kBAACC,GAAD;CAA2B;CAA0B;CACnD,UAAA,kBAACL,GAAD;EAAkB;EAAK,GAAII;EACxB;CACU,CAAA;AACA,CAAA,CAGrB;AAEA,EAAM,cAAc;AAEpB,IAAaE,IAAQC,EAAYZ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AU/D,OATAC,QAAsB;EACpB,IAAIF,EAAI,SAAS;GACf,IAAMG,IAAeH,EAAI,SAAS,QAAQ,OAAO,CAAC,EAAE,cAAc,YAAY;GAC9E,AAAIG,KACFH,EAAI,QAAQ,aAAa,WAAWG,EAAa,SAAS,OAAO,SAAS,CAAC;EAE/E;CACF,GAAG,CAAC,CAAC,GAGH,kBAAC,MAAD;EAAS;EAAK,WAAU;EACtB,UAAA,kBAACC,GAAD;GAAqB,KAAKJ;GAAK,GAAItB;EAAQ,CAAA;CACzC,CAAA;AAER,CAAC;AACD,EAAc,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableProvider.cjs","names":[],"sources":["../../../src/components/table/TableProvider.tsx"],"sourcesContent":["import { createContext, Dispatch, FC, ReactNode, Reducer, useContext, useEffect, useReducer } from 'react'\nimport type { TableSortDescriptor } from './common'\n\ntype State = {\n sortDescriptor: TableSortDescriptor\n}\n\ntype Action =\n | {\n type: 'UPDATE_SORT_DESCRIPTOR'\n payload: TableSortDescriptor\n }\n | {\n type: 'CLEAR_SORT_DESCRIPTOR'\n }\n\ntype Context = State & {\n dispatch: Dispatch<Action>\n}\n\nexport interface TableProviderProps {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onSortChange?: (descriptor: TableSortDescriptor<any>) => void\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor?: TableSortDescriptor<any>\n children: ReactNode\n}\n\nconst tableReducer: Reducer<State, Action> = (state, action) => {\n switch (action.type) {\n case 'CLEAR_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: null,\n }\n }\n case 'UPDATE_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: action.payload,\n }\n }\n default:\n return state\n }\n}\n\nconst TableContext = createContext<Context | undefined>(undefined)\n\nexport const useTable = (): Context => {\n const context = useContext(TableContext)\n\n if (!context) {\n throw new Error('useTable must be used within a <TableProvider/>')\n }\n\n return context\n}\n\nexport const TableProvider: FC<TableProviderProps> = ({ children, onSortChange, descriptor }) => {\n const [state, dispatch] = useReducer(tableReducer, {\n sortDescriptor: descriptor ?? null,\n })\n\n useEffect(() => {\n onSortChange?.(state.sortDescriptor)\n }, [JSON.stringify(state.sortDescriptor)])\n\n const context = {\n ...state,\n dispatch,\n } satisfies Context\n\n return <TableContext.Provider value={context}>{children}</TableContext.Provider>\n}\n"],"mappings":"mEA4BA,IAAM,GAAwC,EAAO,IAAW,CAC9D,OAAQ,EAAO,KAAf,CACE,IAAK,wBACH,MAAO,CACL,GAAG,EACH,eAAgB,IAClB,EAEF,IAAK,yBACH,MAAO,CACL,GAAG,EACH,eAAgB,EAAO,OACzB,EAEF,QACE,OAAO,CACX,CACF,EAEM,GAAA,EAAA,EAAA,eAAkD,IAAA,EAAS,EAEpD,MAA0B,CACrC,IAAM,GAAA,EAAA,EAAA,YAAqB,CAAY,EAEvC,GAAI,CAAC,EACH,MAAU,MAAM,iDAAiD,EAGnE,OAAO,CACT,EAEa,GAAyC,CAAE,WAAU,eAAc,gBAAiB,CAC/F,GAAM,CAAC,EAAO,IAAA,EAAA,EAAA,YAAuB,EAAc,CACjD,eAAgB,GAAc,IAChC,CAAC,GAED,EAAA,EAAA,eAAgB,CACd,IAAe,EAAM,cAAc,CACrC,EAAG,CAAC,KAAK,UAAU,EAAM,cAAc,CAAC,CAAC,EAEzC,IAAM,EAAU,CACd,GAAG,EACH,UACF,EAEA,OAAO,EAAA,EAAA,KAAC,EAAa,SAAd,CAAuB,MAAO,EAAU,UAAgC,CAAA,CACjF"}
1
+ {"version":3,"file":"TableProvider.cjs","names":["createContext","useContext","useReducer","react","react_jsx_runtime","tableReducer","action","state","TableContext","useTable","context","TableProvider","dispatch","descriptor","onSortChange"],"sources":["../../../src/components/table/TableProvider.tsx"],"sourcesContent":["import { createContext, Dispatch, FC, ReactNode, Reducer, useContext, useEffect, useReducer } from 'react'\nimport type { TableSortDescriptor } from './common'\n\ntype State = {\n sortDescriptor: TableSortDescriptor\n}\n\ntype Action =\n | {\n type: 'UPDATE_SORT_DESCRIPTOR'\n payload: TableSortDescriptor\n }\n | {\n type: 'CLEAR_SORT_DESCRIPTOR'\n }\n\ntype Context = State & {\n dispatch: Dispatch<Action>\n}\n\nexport interface TableProviderProps {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onSortChange?: (descriptor: TableSortDescriptor<any>) => void\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor?: TableSortDescriptor<any>\n children: ReactNode\n}\n\nconst tableReducer: Reducer<State, Action> = (state, action) => {\n switch (action.type) {\n case 'CLEAR_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: null,\n }\n }\n case 'UPDATE_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: action.payload,\n }\n }\n default:\n return state\n }\n}\n\nconst TableContext = createContext<Context | undefined>(undefined)\n\nexport const useTable = (): Context => {\n const context = useContext(TableContext)\n\n if (!context) {\n throw new Error('useTable must be used within a <TableProvider/>')\n }\n\n return context\n}\n\nexport const TableProvider: FC<TableProviderProps> = ({ children, onSortChange, descriptor }) => {\n const [state, dispatch] = useReducer(tableReducer, {\n sortDescriptor: descriptor ?? null,\n })\n\n useEffect(() => {\n onSortChange?.(state.sortDescriptor)\n }, [JSON.stringify(state.sortDescriptor)])\n\n const context = {\n ...state,\n dispatch,\n } satisfies Context\n\n return <TableContext.Provider value={context}>{children}</TableContext.Provider>\n}\n"],"mappings":"A,mEA4BA,IAAMK,GAAwC,EAAO,IAAW,CAC9D,OAAQC,EAAO,KAAf,CACE,IAAK,wBACH,MAAO,CACL,GAAGC,EACH,eAAgB,IAClB,EAEF,IAAK,yBACH,MAAO,CACL,GAAGA,EACH,eAAgBD,EAAO,OACzB,EAEF,QACE,OAAOC,CACX,CACF,EAEMC,GAAA,EAAeR,EAAAA,cAAAA,CAAmC,IAAA,EAAS,EAEpDS,MAA0B,CACrC,IAAMC,GAAA,EAAUT,EAAAA,WAAAA,CAAWO,CAAY,EAEvC,GAAI,CAACE,EACH,MAAU,MAAM,iDAAiD,EAGnE,OAAOA,CACT,EAEaC,GAAyC,CAAE,WAAU,eAAc,gBAAiB,CAC/F,GAAM,CAACJ,EAAOK,IAAA,EAAYV,EAAAA,WAAAA,CAAWG,EAAc,CACjD,eAAgBQ,GAAc,IAChC,CAAC,GAED,EAAAV,EAAA,UAAA,KAAgB,CACdW,IAAeP,EAAM,cAAc,CACrC,EAAG,CAAC,KAAK,UAAUA,EAAM,cAAc,CAAC,CAAC,EAEzC,IAAMG,EAAU,CACd,GAAGH,EACH,UACF,EAEA,OAAO,EAAAH,EAAA,IAAA,CAACI,EAAa,SAAd,CAAuB,MAAOE,EAAU,UAAgC,CAAA,CACjF,E"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { createContext as e, useContext as t, useEffect as n, useReducer as r } from "react";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
- //#region src/components/table/TableProvider.tsx
4
+ // src/components/table/TableProvider.tsx
5
5
  var a = (e, t) => {
6
6
  switch (t.type) {
7
7
  case "CLEAR_SORT_DESCRIPTOR": return {
@@ -32,7 +32,6 @@ var a = (e, t) => {
32
32
  children: e
33
33
  });
34
34
  };
35
- //#endregion
36
35
  export { c as TableProvider, s as useTable };
37
36
 
38
37
  //# sourceMappingURL=TableProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableProvider.js","names":[],"sources":["../../../src/components/table/TableProvider.tsx"],"sourcesContent":["import { createContext, Dispatch, FC, ReactNode, Reducer, useContext, useEffect, useReducer } from 'react'\nimport type { TableSortDescriptor } from './common'\n\ntype State = {\n sortDescriptor: TableSortDescriptor\n}\n\ntype Action =\n | {\n type: 'UPDATE_SORT_DESCRIPTOR'\n payload: TableSortDescriptor\n }\n | {\n type: 'CLEAR_SORT_DESCRIPTOR'\n }\n\ntype Context = State & {\n dispatch: Dispatch<Action>\n}\n\nexport interface TableProviderProps {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onSortChange?: (descriptor: TableSortDescriptor<any>) => void\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor?: TableSortDescriptor<any>\n children: ReactNode\n}\n\nconst tableReducer: Reducer<State, Action> = (state, action) => {\n switch (action.type) {\n case 'CLEAR_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: null,\n }\n }\n case 'UPDATE_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: action.payload,\n }\n }\n default:\n return state\n }\n}\n\nconst TableContext = createContext<Context | undefined>(undefined)\n\nexport const useTable = (): Context => {\n const context = useContext(TableContext)\n\n if (!context) {\n throw new Error('useTable must be used within a <TableProvider/>')\n }\n\n return context\n}\n\nexport const TableProvider: FC<TableProviderProps> = ({ children, onSortChange, descriptor }) => {\n const [state, dispatch] = useReducer(tableReducer, {\n sortDescriptor: descriptor ?? null,\n })\n\n useEffect(() => {\n onSortChange?.(state.sortDescriptor)\n }, [JSON.stringify(state.sortDescriptor)])\n\n const context = {\n ...state,\n dispatch,\n } satisfies Context\n\n return <TableContext.Provider value={context}>{children}</TableContext.Provider>\n}\n"],"mappings":";;;;AA4BA,IAAM,KAAwC,GAAO,MAAW;CAC9D,QAAQ,EAAO,MAAf;EACE,KAAK,yBACH,OAAO;GACL,GAAG;GACH,gBAAgB;EAClB;EAEF,KAAK,0BACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;EACzB;EAEF,SACE,OAAO;CACX;AACF,GAEM,IAAe,EAAmC,KAAA,CAAS,GAEpD,UAA0B;CACrC,IAAM,IAAU,EAAW,CAAY;CAEvC,IAAI,CAAC,GACH,MAAU,MAAM,iDAAiD;CAGnE,OAAO;AACT,GAEa,KAAyC,EAAE,aAAU,iBAAc,oBAAiB;CAC/F,IAAM,CAAC,GAAO,KAAY,EAAW,GAAc,EACjD,gBAAgB,KAAc,KAChC,CAAC;CAED,QAAgB;EACd,IAAe,EAAM,cAAc;CACrC,GAAG,CAAC,KAAK,UAAU,EAAM,cAAc,CAAC,CAAC;CAEzC,IAAM,IAAU;EACd,GAAG;EACH;CACF;CAEA,OAAO,kBAAC,EAAa,UAAd;EAAuB,OAAO;EAAU;CAAgC,CAAA;AACjF"}
1
+ {"version":3,"file":"TableProvider.js","names":["tableReducer","action","state","TableContext","createContext","useTable","context","useContext","TableProvider","dispatch","useReducer","descriptor"],"sources":["../../../src/components/table/TableProvider.tsx"],"sourcesContent":["import { createContext, Dispatch, FC, ReactNode, Reducer, useContext, useEffect, useReducer } from 'react'\nimport type { TableSortDescriptor } from './common'\n\ntype State = {\n sortDescriptor: TableSortDescriptor\n}\n\ntype Action =\n | {\n type: 'UPDATE_SORT_DESCRIPTOR'\n payload: TableSortDescriptor\n }\n | {\n type: 'CLEAR_SORT_DESCRIPTOR'\n }\n\ntype Context = State & {\n dispatch: Dispatch<Action>\n}\n\nexport interface TableProviderProps {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onSortChange?: (descriptor: TableSortDescriptor<any>) => void\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor?: TableSortDescriptor<any>\n children: ReactNode\n}\n\nconst tableReducer: Reducer<State, Action> = (state, action) => {\n switch (action.type) {\n case 'CLEAR_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: null,\n }\n }\n case 'UPDATE_SORT_DESCRIPTOR': {\n return {\n ...state,\n sortDescriptor: action.payload,\n }\n }\n default:\n return state\n }\n}\n\nconst TableContext = createContext<Context | undefined>(undefined)\n\nexport const useTable = (): Context => {\n const context = useContext(TableContext)\n\n if (!context) {\n throw new Error('useTable must be used within a <TableProvider/>')\n }\n\n return context\n}\n\nexport const TableProvider: FC<TableProviderProps> = ({ children, onSortChange, descriptor }) => {\n const [state, dispatch] = useReducer(tableReducer, {\n sortDescriptor: descriptor ?? null,\n })\n\n useEffect(() => {\n onSortChange?.(state.sortDescriptor)\n }, [JSON.stringify(state.sortDescriptor)])\n\n const context = {\n ...state,\n dispatch,\n } satisfies Context\n\n return <TableContext.Provider value={context}>{children}</TableContext.Provider>\n}\n"],"mappings":";;;;AA4BA,IAAMA,KAAwC,GAAO,MAAW;CAC9D,QAAQC,EAAO,MAAf;EACE,KAAK,yBACH,OAAO;GACL,GAAGC;GACH,gBAAgB;EAClB;EAEF,KAAK,0BACH,OAAO;GACL,GAAGA;GACH,gBAAgBD,EAAO;EACzB;EAEF,SACE,OAAOC;CACX;AACF,GAEMC,IAAeC,EAAmC,KAAA,CAAS,GAEpDC,UAA0B;CACrC,IAAMC,IAAUC,EAAWJ,CAAY;CAEvC,IAAI,CAACG,GACH,MAAU,MAAM,iDAAiD;CAGnE,OAAOA;AACT,GAEaE,KAAyC,EAAE,aAAU,iBAAc,oBAAiB;CAC/F,IAAM,CAACN,GAAOO,KAAYC,EAAWV,GAAc,EACjD,gBAAgBW,KAAc,KAChC,CAAC;CAED,QAAgB;EACd,IAAeT,EAAM,cAAc;CACrC,GAAG,CAAC,KAAK,UAAUA,EAAM,cAAc,CAAC,CAAC;CAEzC,IAAMI,IAAU;EACd,GAAGJ;EACH;CACF;CAEA,OAAO,kBAACC,EAAa,UAAd;EAAuB,OAAOG;EAAU;CAAgC,CAAA;AACjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.cjs","names":[],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["import { ark, Tabs as ArkTab } from '@ark-ui/react'\nimport { Children, ComponentProps, type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { tabs, tabsChip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\n\nconst { withProvider, withContext } = createStyleContext(tabs)\n\nexport const Tabs = withProvider(styled(ArkTab.Root), 'root', {\n defaultProps: {\n lazyMount: true,\n },\n})\nexport const TabsContent = withContext(styled(ArkTab.Content), 'content')\n\n// Hover and selection render a trigger bold, which widens its label. The recipe\n// reserves the bold width on every [data-label] element, so string labels are\n// wrapped here and a weight change never moves a tab. Wrap a JSX label yourself\n// with `<span data-label={label}>{label}</span>` to get the same guarantee.\nconst Trigger = forwardRef<ElementRef<typeof ArkTab.Trigger>, ComponentPropsWithoutRef<typeof ArkTab.Trigger>>(\n ({ children, ...props }, ref) => (\n <ArkTab.Trigger ref={ref} {...props}>\n {Children.map(children, child =>\n (typeof child === 'string' && child.trim() !== '') || typeof child === 'number' ? (\n <span data-label={child}>{child}</span>\n ) : (\n child\n ),\n )}\n </ArkTab.Trigger>\n ),\n)\nTrigger.displayName = ArkTab.Trigger.displayName\n\nexport const TabsTrigger = withContext(styled(Trigger), 'trigger')\nexport const TabsChip = styled(ark.span, tabsChip)\n\nconst TabsIndicator = withContext(styled(ArkTab.Indicator), 'indicator')\n\nconst List = forwardRef<ElementRef<typeof ArkTab.List>, ComponentPropsWithoutRef<typeof ArkTab.List>>(\n ({ children, ...props }, ref) => (\n <ArkTab.List ref={ref} {...props}>\n {children}\n <TabsIndicator />\n </ArkTab.List>\n ),\n)\nList.displayName = ArkTab.List.displayName\n\nexport const TabsList = withContext(styled(List), 'list')\n\nexport interface TabsProps extends ComponentProps<typeof Tabs> {}\n\nexport interface TabsContentProps extends ComponentProps<typeof TabsContent> {}\n\nexport interface TabsIndicatorProps extends ComponentProps<typeof TabsIndicator> {}\n\nexport interface TabsListProps extends ComponentProps<typeof TabsList> {}\n\nexport interface TabsTriggerProps extends ComponentProps<typeof TabsTrigger> {}\n\nexport interface TabsChipProps extends ComponentProps<typeof TabsChip> {}\n"],"mappings":"2NAMA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,IAAI,EAEhD,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,KAAO,IAAI,EAAG,OAAQ,CAC5D,aAAc,CACZ,UAAW,EACb,CACF,CAAC,EACY,EAAc,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAO,OAAO,EAAG,SAAS,EAMlE,GAAA,EAAA,EAAA,aACH,CAAE,WAAU,GAAG,GAAS,KACvB,EAAA,EAAA,KAAC,EAAA,KAAO,QAAR,CAAqB,MAAK,GAAI,WAC3B,EAAA,SAAS,IAAI,EAAU,GACrB,OAAO,GAAU,UAAY,EAAM,KAAK,IAAM,IAAO,OAAO,GAAU,UACrE,EAAA,EAAA,KAAC,OAAD,CAAM,aAAY,WAAQ,CAAY,CAAA,EAEtC,CAEJ,CACc,CAAA,CAEpB,EACA,EAAQ,YAAc,EAAA,KAAO,QAAQ,YAErC,IAAa,EAAc,GAAA,EAAA,EAAA,QAAmB,CAAO,EAAG,SAAS,EACpD,GAAA,EAAA,EAAA,QAAkB,EAAA,IAAI,KAAM,EAAA,QAAQ,EAE3C,EAAgB,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAO,SAAS,EAAG,WAAW,EAEjE,GAAA,EAAA,EAAA,aACH,CAAE,WAAU,GAAG,GAAS,KACvB,EAAA,EAAA,MAAC,EAAA,KAAO,KAAR,CAAkB,MAAK,GAAI,WAA3B,CACG,GACD,EAAA,EAAA,KAAC,EAAD,CAAgB,CAAA,CACL,GAEjB,EACA,EAAK,YAAc,EAAA,KAAO,KAAK,YAE/B,IAAa,EAAW,GAAA,EAAA,EAAA,QAAmB,CAAI,EAAG,MAAM"}
1
+ {"version":3,"file":"Tabs.cjs","names":["createStyleContext","tabs","styled","ArkTab","forwardRef","Children","ark","tabsChip","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Tabs","withProvider","TabsContent","withContext","Trigger","props","children","child","TabsTrigger","TabsChip","TabsIndicator","List","TabsList"],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["import { ark, Tabs as ArkTab } from '@ark-ui/react'\nimport { Children, ComponentProps, type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { tabs, tabsChip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\n\nconst { withProvider, withContext } = createStyleContext(tabs)\n\nexport const Tabs = withProvider(styled(ArkTab.Root), 'root', {\n defaultProps: {\n lazyMount: true,\n },\n})\nexport const TabsContent = withContext(styled(ArkTab.Content), 'content')\n\n// Hover and selection render a trigger bold, which widens its label. The recipe\n// reserves the bold width on every [data-label] element, so string labels are\n// wrapped here and a weight change never moves a tab. Wrap a JSX label yourself\n// with `<span data-label={label}>{label}</span>` to get the same guarantee.\nconst Trigger = forwardRef<ElementRef<typeof ArkTab.Trigger>, ComponentPropsWithoutRef<typeof ArkTab.Trigger>>(\n ({ children, ...props }, ref) => (\n <ArkTab.Trigger ref={ref} {...props}>\n {Children.map(children, child =>\n (typeof child === 'string' && child.trim() !== '') || typeof child === 'number' ? (\n <span data-label={child}>{child}</span>\n ) : (\n child\n ),\n )}\n </ArkTab.Trigger>\n ),\n)\nTrigger.displayName = ArkTab.Trigger.displayName\n\nexport const TabsTrigger = withContext(styled(Trigger), 'trigger')\nexport const TabsChip = styled(ark.span, tabsChip)\n\nconst TabsIndicator = withContext(styled(ArkTab.Indicator), 'indicator')\n\nconst List = forwardRef<ElementRef<typeof ArkTab.List>, ComponentPropsWithoutRef<typeof ArkTab.List>>(\n ({ children, ...props }, ref) => (\n <ArkTab.List ref={ref} {...props}>\n {children}\n <TabsIndicator />\n </ArkTab.List>\n ),\n)\nList.displayName = ArkTab.List.displayName\n\nexport const TabsList = withContext(styled(List), 'list')\n\nexport interface TabsProps extends ComponentProps<typeof Tabs> {}\n\nexport interface TabsContentProps extends ComponentProps<typeof TabsContent> {}\n\nexport interface TabsIndicatorProps extends ComponentProps<typeof TabsIndicator> {}\n\nexport interface TabsListProps extends ComponentProps<typeof TabsList> {}\n\nexport interface TabsTriggerProps extends ComponentProps<typeof TabsTrigger> {}\n\nexport interface TabsChipProps extends ComponentProps<typeof TabsChip> {}\n"],"mappings":"A,2NAMA,GAAM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,IAAI,EAEhDa,EAAOC,GAAA,EAAab,EAAAA,OAAAA,CAAOC,EAAAA,KAAO,I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import { ComponentVariants } from '../../utils/slots.tsx';
4
- import { StyledComponent } from '@stokelp/styled-system/types';
5
- import { TabsRecipe } from '@stokelp/styled-system/recipes';
4
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
5
+ import { TabsRecipe, TabsChipVariantProps } from '@stokelp/styled-system/recipes';
6
+ import { Assign, AnyProps } from '@stokelp/styled-system/types';
6
7
  export declare const Tabs: ComponentVariants<StyledComponent<ForwardRefExoticComponent<ArkTab.RootProps & RefAttributes<HTMLDivElement>>, {}>, TabsRecipe>;
7
8
  export declare const TabsContent: StyledComponent<ForwardRefExoticComponent<ArkTab.ContentProps & RefAttributes<HTMLDivElement>>, {}>;
8
9
  export declare const TabsTrigger: StyledComponent<ForwardRefExoticComponent<Omit<ArkTab.TriggerProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>, {}>;
9
- export declare const TabsChip: StyledComponent<any, {
10
- [x: string]: unknown;
11
- [x: number]: unknown;
12
- colorScheme?: unknown;
13
- }>;
10
+ export declare const TabsChip: StyledComponent<any, Assign<AnyProps, TabsChipVariantProps>>;
14
11
  declare const TabsIndicator: StyledComponent<ForwardRefExoticComponent<ArkTab.IndicatorProps & RefAttributes<HTMLDivElement>>, {}>;
15
12
  export declare const TabsList: StyledComponent<ForwardRefExoticComponent<Omit<ArkTab.ListProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>, {}>;
16
13
  export interface TabsProps extends ComponentProps<typeof Tabs> {
@@ -5,7 +5,7 @@ import { styled as r } from "@stokelp/styled-system/jsx";
5
5
  import { tabs as i, tabsChip as a } from "@stokelp/styled-system/recipes";
6
6
  import { Children as o, forwardRef as s } from "react";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
- //#region src/components/tabs/Tabs.tsx
8
+ // src/components/tabs/Tabs.tsx
9
9
  var { withProvider: u, withContext: d } = e(i), f = u(r(t.Root), "root", { defaultProps: { lazyMount: !0 } }), p = d(r(t.Content), "content"), m = s(({ children: e, ...n }, r) => /* @__PURE__ */ c(t.Trigger, {
10
10
  ref: r,
11
11
  ...n,
@@ -22,7 +22,6 @@ var h = d(r(m), "trigger"), g = r(n.span, a), _ = d(r(t.Indicator), "indicator")
22
22
  }));
23
23
  v.displayName = t.List.displayName;
24
24
  var y = d(r(v), "list");
25
- //#endregion
26
25
  export { f as Tabs, g as TabsChip, p as TabsContent, y as TabsList, h as TabsTrigger };
27
26
 
28
27
  //# sourceMappingURL=Tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","names":[],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["import { ark, Tabs as ArkTab } from '@ark-ui/react'\nimport { Children, ComponentProps, type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { tabs, tabsChip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\n\nconst { withProvider, withContext } = createStyleContext(tabs)\n\nexport const Tabs = withProvider(styled(ArkTab.Root), 'root', {\n defaultProps: {\n lazyMount: true,\n },\n})\nexport const TabsContent = withContext(styled(ArkTab.Content), 'content')\n\n// Hover and selection render a trigger bold, which widens its label. The recipe\n// reserves the bold width on every [data-label] element, so string labels are\n// wrapped here and a weight change never moves a tab. Wrap a JSX label yourself\n// with `<span data-label={label}>{label}</span>` to get the same guarantee.\nconst Trigger = forwardRef<ElementRef<typeof ArkTab.Trigger>, ComponentPropsWithoutRef<typeof ArkTab.Trigger>>(\n ({ children, ...props }, ref) => (\n <ArkTab.Trigger ref={ref} {...props}>\n {Children.map(children, child =>\n (typeof child === 'string' && child.trim() !== '') || typeof child === 'number' ? (\n <span data-label={child}>{child}</span>\n ) : (\n child\n ),\n )}\n </ArkTab.Trigger>\n ),\n)\nTrigger.displayName = ArkTab.Trigger.displayName\n\nexport const TabsTrigger = withContext(styled(Trigger), 'trigger')\nexport const TabsChip = styled(ark.span, tabsChip)\n\nconst TabsIndicator = withContext(styled(ArkTab.Indicator), 'indicator')\n\nconst List = forwardRef<ElementRef<typeof ArkTab.List>, ComponentPropsWithoutRef<typeof ArkTab.List>>(\n ({ children, ...props }, ref) => (\n <ArkTab.List ref={ref} {...props}>\n {children}\n <TabsIndicator />\n </ArkTab.List>\n ),\n)\nList.displayName = ArkTab.List.displayName\n\nexport const TabsList = withContext(styled(List), 'list')\n\nexport interface TabsProps extends ComponentProps<typeof Tabs> {}\n\nexport interface TabsContentProps extends ComponentProps<typeof TabsContent> {}\n\nexport interface TabsIndicatorProps extends ComponentProps<typeof TabsIndicator> {}\n\nexport interface TabsListProps extends ComponentProps<typeof TabsList> {}\n\nexport interface TabsTriggerProps extends ComponentProps<typeof TabsTrigger> {}\n\nexport interface TabsChipProps extends ComponentProps<typeof TabsChip> {}\n"],"mappings":";;;;;;;;AAMA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAAI,GAEhD,IAAO,EAAa,EAAO,EAAO,IAAI,GAAG,QAAQ,EAC5D,cAAc,EACZ,WAAW,GACb,EACF,CAAC,GACY,IAAc,EAAY,EAAO,EAAO,OAAO,GAAG,SAAS,GAMlE,IAAU,GACb,EAAE,aAAU,GAAG,KAAS,MACvB,kBAAC,EAAO,SAAR;CAAqB;CAAK,GAAI;WAC3B,EAAS,IAAI,IAAU,MACrB,OAAO,KAAU,YAAY,EAAM,KAAK,MAAM,MAAO,OAAO,KAAU,WACrE,kBAAC,QAAD;EAAM,cAAY;YAAQ;CAAY,CAAA,IAEtC,CAEJ;AACc,CAAA,CAEpB;AACA,EAAQ,cAAc,EAAO,QAAQ;AAErC,IAAa,IAAc,EAAY,EAAO,CAAO,GAAG,SAAS,GACpD,IAAW,EAAO,EAAI,MAAM,CAAQ,GAE3C,IAAgB,EAAY,EAAO,EAAO,SAAS,GAAG,WAAW,GAEjE,IAAO,GACV,EAAE,aAAU,GAAG,KAAS,MACvB,kBAAC,EAAO,MAAR;CAAkB;CAAK,GAAI;WAA3B,CACG,GACD,kBAAC,GAAD,CAAgB,CAAA,CACL;EAEjB;AACA,EAAK,cAAc,EAAO,KAAK;AAE/B,IAAa,IAAW,EAAY,EAAO,CAAI,GAAG,MAAM"}
1
+ {"version":3,"file":"Tabs.js","names":["Tabs","ArkTab","createStyleContext","tabs","Tabs$1","withProvider","styled","Tabs","TabsContent","withContext","Trigger","forwardRef","props","Children","children","child","TabsTrigger","TabsChip","ark","tabsChip","TabsIndicator","List","TabsList"],"sources":["../../../src/components/tabs/Tabs.tsx"],"sourcesContent":["import { ark, Tabs as ArkTab } from '@ark-ui/react'\nimport { Children, ComponentProps, type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { tabs, tabsChip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots.tsx'\n\nconst { withProvider, withContext } = createStyleContext(tabs)\n\nexport const Tabs = withProvider(styled(ArkTab.Root), 'root', {\n defaultProps: {\n lazyMount: true,\n },\n})\nexport const TabsContent = withContext(styled(ArkTab.Content), 'content')\n\n// Hover and selection render a trigger bold, which widens its label. The recipe\n// reserves the bold width on every [data-label] element, so string labels are\n// wrapped here and a weight change never moves a tab. Wrap a JSX label yourself\n// with `<span data-label={label}>{label}</span>` to get the same guarantee.\nconst Trigger = forwardRef<ElementRef<typeof ArkTab.Trigger>, ComponentPropsWithoutRef<typeof ArkTab.Trigger>>(\n ({ children, ...props }, ref) => (\n <ArkTab.Trigger ref={ref} {...props}>\n {Children.map(children, child =>\n (typeof child === 'string' && child.trim() !== '') || typeof child === 'number' ? (\n <span data-label={child}>{child}</span>\n ) : (\n child\n ),\n )}\n </ArkTab.Trigger>\n ),\n)\nTrigger.displayName = ArkTab.Trigger.displayName\n\nexport const TabsTrigger = withContext(styled(Trigger), 'trigger')\nexport const TabsChip = styled(ark.span, tabsChip)\n\nconst TabsIndicator = withContext(styled(ArkTab.Indicator), 'indicator')\n\nconst List = forwardRef<ElementRef<typeof ArkTab.List>, ComponentPropsWithoutRef<typeof ArkTab.List>>(\n ({ children, ...props }, ref) => (\n <ArkTab.List ref={ref} {...props}>\n {children}\n <TabsIndicator />\n </ArkTab.List>\n ),\n)\nList.displayName = ArkTab.List.displayName\n\nexport const TabsList = withContext(styled(List), 'list')\n\nexport interface TabsProps extends ComponentProps<typeof Tabs> {}\n\nexport interface TabsContentProps extends ComponentProps<typeof TabsContent> {}\n\nexport interface TabsIndicatorProps extends ComponentProps<typeof TabsIndicator> {}\n\nexport interface TabsListProps extends ComponentProps<typeof TabsList> {}\n\nexport interface TabsTriggerProps extends ComponentProps<typeof TabsTrigger> {}\n\nexport interface TabsChipProps extends ComponentProps<typeof TabsChip> {}\n"],"mappings":";;;;;;;;AAMA,IAAM,EAAE,iBAAc,mBAAgBE,EAAmBC,CAAI,GAEhDH,IAAOK,EAAaC,EAAOL,EAAO,IAAI,GAAG,QAAQ,EAC5D,cAAc,EACZ,WAAW,GACb,EACF,CAAC,GACYO,IAAcC,EAAYH,EAAOL,EAAO,OAAO,GAAG,SAAS,GAMlES,IAAUC,GACb,EAAE,aAAU,GAAGC,KAAS,MACvB,kBAACX,EAAO,SAAR;CAAqB;CAAK,GAAIW;CAC3B,UAAAC,EAAS,IAAIC,IAAU,MACrB,OAAOC,KAAU,YAAYA,EAAM,KAAK,MAAM,MAAO,OAAOA,KAAU,WACrE,kBAAC,QAAD;EAAM,cAAYA;EAAQ,UAAAA;CAAY,CAAA,IAEtCA,CAEJ;AACc,CAAA,CAEpB;AACA,EAAQ,cAAcd,EAAO,QAAQ;AAErC,IAAae,IAAcP,EAAYH,EAAOI,CAAO,GAAG,SAAS,GACpDO,IAAWX,EAAOY,EAAI,MAAMC,CAAQ,GAE3CC,IAAgBX,EAAYH,EAAOL,EAAO,SAAS,GAAG,WAAW,GAEjEoB,IAAOV,GACV,EAAE,aAAU,GAAGC,KAAS,MACvB,kBAACX,EAAO,MAAR;CAAkB;CAAK,GAAIW;CAA3B,UAAA,CACGE,GACD,kBAACM,GAAD,CAAgB,CAAA,CACL;AAEjB,CAAA,CAAA;AACA,EAAK,cAAcnB,EAAO,KAAK;AAE/B,IAAaqB,IAAWb,EAAYH,EAAOe,CAAI,GAAG,MAAM"}
@@ -1,2 +1,2 @@
1
- "use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes"),r=require("react"),i=require("react/jsx-runtime"),a=require("@stokelp/styled-system/css");var o=(0,r.forwardRef)((r,o)=>{let[s,c]=n.tag.splitVariantProps(r),[l,u]=(0,t.splitCssProps)(c),{children:d,className:f,...p}=u,m=(0,n.tag)(s);return(0,i.jsxs)(e.ark.div,{ref:o,className:(0,a.cx)(m.root,(0,a.css)(l),f),...p,children:[d,(0,i.jsx)(t.Circle,{className:(0,a.cx)(m.badge),borderRadius:`full`})]})});exports.Tag=o;
1
+ "use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes"),r=require("react"),i=require("react/jsx-runtime"),a=require("@stokelp/styled-system/css");var o=e=>{let t=r.Children.toArray(e);return t.length>0&&t.every(e=>typeof e==`string`||typeof e==`number`)},s=(0,r.forwardRef)((r,s)=>{let[c,l]=n.tag.splitVariantProps(r),[u,d]=(0,t.splitCssProps)(l),{children:f,className:p,...m}=d,h=(0,n.tag)(c);return(0,i.jsxs)(e.ark.div,{ref:s,className:(0,a.cx)(h.root,(0,a.css)(u),p),...m,children:[o(f)?(0,i.jsx)(`span`,{className:h.label,children:f}):f,(0,i.jsx)(t.Circle,{className:(0,a.cx)(h.badge),borderRadius:`full`})]})});exports.Tag=s;
2
2
  //# sourceMappingURL=Tag.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.cjs","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":"0NAWA,IAAa,GAAA,EAAA,EAAA,aAA4C,EAAO,IAAQ,CACtE,GAAM,CAAC,EAAc,GAAY,EAAA,IAAI,kBAAkB,CAAK,EACtD,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAQ,EAC/C,CAAE,WAAU,YAAW,GAAG,GAAc,EACxC,GAAA,EAAA,EAAA,KAAa,CAAY,EAE/B,OACE,EAAA,EAAA,MAAC,EAAA,IAAI,IAAL,CAAc,MAAK,WAAA,EAAA,EAAA,IAAc,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAA7E,CACG,GACD,EAAA,EAAA,KAAC,EAAA,OAAD,CAAQ,WAAA,EAAA,EAAA,IAAc,EAAO,KAAK,EAAG,aAAa,MAAQ,CAAA,CACnD,GAEb,CAAC"}
1
+ {"version":3,"file":"Tag.cjs","names":["Children","forwardRef","tag","splitCssProps","ark","cx","css","Circle","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","_stokelp_styled_system_css","isTextLabel","nodes","children","node","Tag","variantProps","tagProps","props","cssProps","localProps","rootProps","styles","className"],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { Children, forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\n// A text label goes in a span that ends with an ellipsis when the tag is narrower than its\n// label (a table cell, a translated label), instead of running past the border. A JSX label\n// is rendered as it is.\nconst isTextLabel = (children: ReactNode) => {\n const nodes = Children.toArray(children)\n return nodes.length > 0 && nodes.every(node => typeof node === 'string' || typeof node === 'number')\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {isTextLabel(children) ? <span className={styles.label}>{children}</span> : children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":"A,0NAcA,IAAMc,EAAe,GAAwB,CAC3C,IAAMC,EAAQf,EAAAA,SAAS,QAAQgB,CAAQ,EACvC,OAAOD,EAAM,OAAS,GAAKA,EAAM,MAAM,GAAQ,OAAOE,GAAS,UAAY,OAAOA,GAAS,QAAQ,CACrG,EAEaC,GAAA,EAAMjB,EAAAA,WAAAA,EAAsC,EAAO,IAAQ,CACtE,GAAM,CAACkB,EAAcC,GAAYlB,EAAAA,IAAI,kBAAkBmB,CAAK,EACtD,CAACC,EAAUC,IAAA,EAAcpB,EAAAA,cAAAA,CAAciB,CAAQ,EAC/C,CAAE,WAAU,YAAW,GAAGI,GAAcD,EACxCE,GAAA,EAASvB,EAAAA,IAAAA,CAAIiB,CAAY,EAE/B,OACE,EAAAP,EAAA,KAAA,CAACR,EAAAA,IAAI,IAAL,CAAc,MAAK,WAAA,EAAWC,EAAAA,GAAAA,CAAGoB,EAAO,MAAA,EAAMnB,EAAAA,IAAAA,CAAIgB,CAAQ,EAAGI,CAAS,EAAG,GAAIF,EAA7E,SAAA,CACGV,EAAYE,CAAQ,GAAI,EAAAJ,EAAA,IAAA,CAAC,OAAD,CAAM,UAAWa,EAAO,MAAQ,UAAe,CAAA,EAAIT,GAC5E,EAAAJ,EAAA,IAAA,CAACL,EAAAA,OAAD,CAAQ,WAAA,EAAWF,EAAAA,GAAAA,CAAGoB,EAAO,KAAK,EAAG,aAAa,MAAQ,CAAA,CACnD,C,EAEb,CAAC,E"}
@@ -2,23 +2,28 @@
2
2
  import { ark as e } from "@ark-ui/react";
3
3
  import { Circle as t, splitCssProps as n } from "@stokelp/styled-system/jsx";
4
4
  import { tag as r } from "@stokelp/styled-system/recipes";
5
- import { forwardRef as i } from "react";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import { css as s, cx as c } from "@stokelp/styled-system/css";
8
- //#region src/components/tag/Tag.tsx
9
- var l = i((i, l) => {
10
- let [u, d] = r.splitVariantProps(i), [f, p] = n(d), { children: m, className: h, ...g } = p, _ = r(u);
11
- return /* @__PURE__ */ o(e.div, {
12
- ref: l,
13
- className: c(_.root, s(f), h),
14
- ...g,
15
- children: [m, /* @__PURE__ */ a(t, {
16
- className: c(_.badge),
5
+ import { Children as i, forwardRef as a } from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { css as c, cx as l } from "@stokelp/styled-system/css";
8
+ // src/components/tag/Tag.tsx
9
+ var u = (e) => {
10
+ let t = i.toArray(e);
11
+ return t.length > 0 && t.every((e) => typeof e == "string" || typeof e == "number");
12
+ }, d = a((i, a) => {
13
+ let [d, f] = r.splitVariantProps(i), [p, m] = n(f), { children: h, className: g, ..._ } = m, v = r(d);
14
+ return /* @__PURE__ */ s(e.div, {
15
+ ref: a,
16
+ className: l(v.root, c(p), g),
17
+ ..._,
18
+ children: [u(h) ? /* @__PURE__ */ o("span", {
19
+ className: v.label,
20
+ children: h
21
+ }) : h, /* @__PURE__ */ o(t, {
22
+ className: l(v.badge),
17
23
  borderRadius: "full"
18
24
  })]
19
25
  });
20
26
  });
21
- //#endregion
22
- export { l as Tag };
27
+ export { d as Tag };
23
28
 
24
29
  //# sourceMappingURL=Tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":";;;;;;;;AAWA,IAAa,IAAM,GAAsC,GAAO,MAAQ;CACtE,IAAM,CAAC,GAAc,KAAY,EAAI,kBAAkB,CAAK,GACtD,CAAC,GAAU,KAAc,EAAc,CAAQ,GAC/C,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAI,CAAY;CAE/B,OACE,kBAAC,EAAI,KAAL;EAAc;EAAK,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAA7E,CACG,GACD,kBAAC,GAAD;GAAQ,WAAW,EAAG,EAAO,KAAK;GAAG,cAAa;EAAQ,CAAA,CACnD;;AAEb,CAAC"}
1
+ {"version":3,"file":"Tag.js","names":["isTextLabel","nodes","Children","children","node","Tag","forwardRef","variantProps","tagProps","tag","props","cssProps","localProps","splitCssProps","rootProps","styles","ark","cx","css","className","Circle"],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { Children, forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\n// A text label goes in a span that ends with an ellipsis when the tag is narrower than its\n// label (a table cell, a translated label), instead of running past the border. A JSX label\n// is rendered as it is.\nconst isTextLabel = (children: ReactNode) => {\n const nodes = Children.toArray(children)\n return nodes.length > 0 && nodes.every(node => typeof node === 'string' || typeof node === 'number')\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {isTextLabel(children) ? <span className={styles.label}>{children}</span> : children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":";;;;;;;;AAcA,IAAMA,KAAe,MAAwB;CAC3C,IAAMC,IAAQC,EAAS,QAAQC,CAAQ;CACvC,OAAOF,EAAM,SAAS,KAAKA,EAAM,OAAM,MAAQ,OAAOG,KAAS,YAAY,OAAOA,KAAS,QAAQ;AACrG,GAEaC,IAAMC,GAAsC,GAAO,MAAQ;CACtE,IAAM,CAACC,GAAcC,KAAYC,EAAI,kBAAkBC,CAAK,GACtD,CAACC,GAAUC,KAAcC,EAAcL,CAAQ,GAC/C,EAAE,aAAU,cAAW,GAAGM,MAAcF,GACxCG,IAASN,EAAIF,CAAY;CAE/B,OACE,kBAACS,EAAI,KAAL;EAAc;EAAK,WAAWC,EAAGF,EAAO,MAAMG,EAAIP,CAAQ,GAAGQ,CAAS;EAAG,GAAIL;EAA7E,UAAA,CACGd,EAAYG,CAAQ,IAAI,kBAAC,QAAD;GAAM,WAAWY,EAAO;GAAQ;EAAe,CAAA,IAAIZ,GAC5E,kBAACiB,GAAD;GAAQ,WAAWH,EAAGF,EAAO,KAAK;GAAG,cAAa;EAAQ,CAAA,CACnD;;AAEb,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes"),n=require("react"),r=require("react/jsx-runtime");var i=i=>{let{as:a=`p`,...o}=i;return(0,r.jsx)((0,n.useMemo)(()=>(0,e.styled)(a,t.text),[a]),{...o})};exports.Text=i;
1
+ "use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes"),n=require("react"),r=require("react/jsx-runtime");var i=i=>{let{as:a=`p`,...o}=i,s=(0,n.useMemo)(()=>(0,e.styled)(a,t.text),[a]);return(0,r.jsx)(s,{...o})};exports.Text=i;
2
2
  //# sourceMappingURL=Text.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.cjs","names":[],"sources":["../../../src/components/text/Text.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { text, type TextVariantProps } from '@stokelp/styled-system/recipes'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\nimport { useMemo } from 'react'\n\ntype As = 'p' | 'span' | 'div' | 'label' | 'pre'\n\nexport type TextProps = {\n as?: As\n} & TextVariantProps &\n HTMLStyledProps<As>\n\nexport const Text = (props: TextProps) => {\n const { as = 'p', ...localProps } = props\n const Dynamic = useMemo(() => styled(as, text) as StyledComponent<As>, [as])\n\n return <Dynamic {...localProps} />\n}\n"],"mappings":"uJAYA,IAAa,EAAQ,GAAqB,CACxC,GAAM,CAAE,KAAK,IAAK,GAAG,GAAe,EAGpC,OAAO,EAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,QAF8B,EAAI,EAAA,IAAI,EAA0B,CAAC,CAAE,CAElE,EAAD,CAAS,GAAI,CAAa,CAAA,CACnC"}
1
+ {"version":3,"file":"Text.cjs","names":["useMemo","styled","text","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Text","localProps","props","Dynamic","as"],"sources":["../../../src/components/text/Text.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { text, type TextVariantProps } from '@stokelp/styled-system/recipes'\nimport { type HTMLStyledProps, type StyledComponent } from '@stokelp/styled-system/types'\nimport { useMemo } from 'react'\n\ntype As = 'p' | 'span' | 'div' | 'label' | 'pre'\n\nexport type TextProps = {\n as?: As\n} & TextVariantProps &\n HTMLStyledProps<As>\n\nexport const Text = (props: TextProps) => {\n const { as = 'p', ...localProps } = props\n const Dynamic = useMemo(() => styled(as, text) as StyledComponent<As>, [as])\n\n return <Dynamic {...localProps} />\n}\n"],"mappings":"A,uJAYA,IAAaO,EAAQ,GAAqB,CACxC,GAAM,CAAE,KAAK,IAAK,GAAGC,GAAeC,EAC9BC,GAAA,EAAUV,EAAAA,QAAAA,MAAAA,EAAcC,EAAAA,OAAAA,CAAOU,EAAIT,EAAAA,IAAI,EAA0B,CAACS,CAAE,CAAC,EAE3E,OAAO,EAAAL,EAAA,IAAA,CAACI,EAAD,CAAS,GAAIF,CAAa,CAAA,CACnC,E"}
@@ -4,5 +4,5 @@ type As = 'p' | 'span' | 'div' | 'label' | 'pre';
4
4
  export type TextProps = {
5
5
  as?: As;
6
6
  } & TextVariantProps & HTMLStyledProps<As>;
7
- export declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Text: (props: TextProps) => import('react').JSX.Element;
8
8
  export {};