@stokelp/ui 2.127.0 → 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 (698) 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.map +1 -1
  274. package/dist/components/tag/Tag.js +1 -2
  275. package/dist/components/tag/Tag.js.map +1 -1
  276. package/dist/components/text/Text.cjs +1 -1
  277. package/dist/components/text/Text.cjs.map +1 -1
  278. package/dist/components/text/Text.d.ts +1 -1
  279. package/dist/components/text/Text.js +3 -4
  280. package/dist/components/text/Text.js.map +1 -1
  281. package/dist/components/textarea/Textarea.cjs.map +1 -1
  282. package/dist/components/textarea/Textarea.d.ts +4 -5
  283. package/dist/components/textarea/Textarea.js +1 -2
  284. package/dist/components/textarea/Textarea.js.map +1 -1
  285. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  286. package/dist/components/tooltip/Tooltip.d.ts +2 -2
  287. package/dist/components/tooltip/Tooltip.js +1 -2
  288. package/dist/components/tooltip/Tooltip.js.map +1 -1
  289. package/dist/components/ui-labels/UiLabelsProvider.cjs.map +1 -1
  290. package/dist/components/ui-labels/UiLabelsProvider.js +1 -2
  291. package/dist/components/ui-labels/UiLabelsProvider.js.map +1 -1
  292. package/dist/icons/index.cjs.map +1 -1
  293. package/dist/icons/index.js +1 -2
  294. package/dist/icons/index.js.map +1 -1
  295. 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
  296. 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
  297. 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
  298. 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
  299. 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
  300. 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
  301. 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
  302. 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
  303. 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
  304. 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
  305. 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
  306. 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
  307. 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
  308. 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
  309. 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
  310. 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
  311. 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
  312. 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
  313. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs +1 -1
  314. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
  315. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +2 -3
  316. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js.map +1 -1
  317. package/dist/preset.cjs +1 -1
  318. package/dist/preset.cjs.map +1 -1
  319. package/dist/preset.js +7 -6
  320. package/dist/preset.js.map +1 -1
  321. package/dist/shared/ConditionalWrapper.cjs.map +1 -1
  322. package/dist/shared/ConditionalWrapper.js +1 -2
  323. package/dist/shared/ConditionalWrapper.js.map +1 -1
  324. package/dist/shared/assets/icons.cjs.map +1 -1
  325. package/dist/shared/assets/icons.d.ts +2 -2
  326. package/dist/shared/assets/icons.js +1 -2
  327. package/dist/shared/assets/icons.js.map +1 -1
  328. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
  329. package/dist/shared/hooks/useUncontrolled.js +1 -2
  330. package/dist/shared/hooks/useUncontrolled.js.map +1 -1
  331. package/dist/shared/utils/events.cjs.map +1 -1
  332. package/dist/shared/utils/events.js +1 -2
  333. package/dist/shared/utils/events.js.map +1 -1
  334. package/dist/theme/breakpoints.cjs.map +1 -1
  335. package/dist/theme/breakpoints.js +1 -2
  336. package/dist/theme/breakpoints.js.map +1 -1
  337. package/dist/theme/conditions.cjs.map +1 -1
  338. package/dist/theme/conditions.js +1 -2
  339. package/dist/theme/conditions.js.map +1 -1
  340. package/dist/theme/containers.cjs +1 -1
  341. package/dist/theme/containers.cjs.map +1 -1
  342. package/dist/theme/containers.d.ts +1 -1
  343. package/dist/theme/containers.js +2 -3
  344. package/dist/theme/containers.js.map +1 -1
  345. package/dist/theme/globalCss.cjs.map +1 -1
  346. package/dist/theme/globalCss.d.ts +1 -1
  347. package/dist/theme/globalCss.js +1 -2
  348. package/dist/theme/globalCss.js.map +1 -1
  349. package/dist/theme/keyframes.cjs.map +1 -1
  350. package/dist/theme/keyframes.d.ts +1 -1
  351. package/dist/theme/keyframes.js +1 -2
  352. package/dist/theme/keyframes.js.map +1 -1
  353. package/dist/theme/recipes/accordion.cjs.map +1 -1
  354. package/dist/theme/recipes/accordion.d.ts +32 -2
  355. package/dist/theme/recipes/accordion.js +1 -2
  356. package/dist/theme/recipes/accordion.js.map +1 -1
  357. package/dist/theme/recipes/action-card.cjs.map +1 -1
  358. package/dist/theme/recipes/action-card.d.ts +2 -2
  359. package/dist/theme/recipes/action-card.js +1 -2
  360. package/dist/theme/recipes/action-card.js.map +1 -1
  361. package/dist/theme/recipes/alert.cjs.map +1 -1
  362. package/dist/theme/recipes/alert.d.ts +30 -2
  363. package/dist/theme/recipes/alert.js +1 -2
  364. package/dist/theme/recipes/alert.js.map +1 -1
  365. package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
  366. package/dist/theme/recipes/app/mobile-navigation.d.ts +51 -2
  367. package/dist/theme/recipes/app/mobile-navigation.js +1 -2
  368. package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
  369. package/dist/theme/recipes/app/navigation-language-select.cjs +1 -1
  370. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
  371. package/dist/theme/recipes/app/navigation-language-select.d.ts +105 -2
  372. package/dist/theme/recipes/app/navigation-language-select.js +31 -39
  373. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
  374. package/dist/theme/recipes/app/navigation.cjs.map +1 -1
  375. package/dist/theme/recipes/app/navigation.d.ts +125 -2
  376. package/dist/theme/recipes/app/navigation.js +1 -2
  377. package/dist/theme/recipes/app/navigation.js.map +1 -1
  378. package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
  379. package/dist/theme/recipes/app/price-tag.d.ts +41 -2
  380. package/dist/theme/recipes/app/price-tag.js +1 -2
  381. package/dist/theme/recipes/app/price-tag.js.map +1 -1
  382. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
  383. package/dist/theme/recipes/app/product-card-catalog.d.ts +2 -2
  384. package/dist/theme/recipes/app/product-card-catalog.js +1 -2
  385. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
  386. package/dist/theme/recipes/avatar-group.cjs.map +1 -1
  387. package/dist/theme/recipes/avatar-group.d.ts +14 -2
  388. package/dist/theme/recipes/avatar-group.js +1 -2
  389. package/dist/theme/recipes/avatar-group.js.map +1 -1
  390. package/dist/theme/recipes/avatar.cjs.map +1 -1
  391. package/dist/theme/recipes/avatar.d.ts +53 -2
  392. package/dist/theme/recipes/avatar.js +1 -2
  393. package/dist/theme/recipes/avatar.js.map +1 -1
  394. package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
  395. package/dist/theme/recipes/breadcrumb.d.ts +2 -2
  396. package/dist/theme/recipes/breadcrumb.js +1 -2
  397. package/dist/theme/recipes/breadcrumb.js.map +1 -1
  398. package/dist/theme/recipes/button-filter.cjs.map +1 -1
  399. package/dist/theme/recipes/button-filter.d.ts +1 -1
  400. package/dist/theme/recipes/button-filter.js +1 -2
  401. package/dist/theme/recipes/button-filter.js.map +1 -1
  402. package/dist/theme/recipes/button.cjs.map +1 -1
  403. package/dist/theme/recipes/button.d.ts +93 -2
  404. package/dist/theme/recipes/button.js +1 -2
  405. package/dist/theme/recipes/button.js.map +1 -1
  406. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
  407. package/dist/theme/recipes/chat/chat-document-message.d.ts +1 -1
  408. package/dist/theme/recipes/chat/chat-document-message.js +1 -2
  409. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
  410. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
  411. package/dist/theme/recipes/chat/chat-input-text.d.ts +1 -1
  412. package/dist/theme/recipes/chat/chat-input-text.js +1 -2
  413. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
  414. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
  415. package/dist/theme/recipes/chat/chat-message.d.ts +28 -2
  416. package/dist/theme/recipes/chat/chat-message.js +1 -2
  417. package/dist/theme/recipes/chat/chat-message.js.map +1 -1
  418. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
  419. package/dist/theme/recipes/chat/chat-profile-avatar.d.ts +9 -2
  420. package/dist/theme/recipes/chat/chat-profile-avatar.js +1 -2
  421. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
  422. package/dist/theme/recipes/chat/chat.cjs.map +1 -1
  423. package/dist/theme/recipes/chat/chat.d.ts +2 -2
  424. package/dist/theme/recipes/chat/chat.js +1 -2
  425. package/dist/theme/recipes/chat/chat.js.map +1 -1
  426. package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
  427. package/dist/theme/recipes/checkbox-card.d.ts +1 -1
  428. package/dist/theme/recipes/checkbox-card.js +1 -2
  429. package/dist/theme/recipes/checkbox-card.js.map +1 -1
  430. package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
  431. package/dist/theme/recipes/checkbox-group.d.ts +1 -1
  432. package/dist/theme/recipes/checkbox-group.js +1 -2
  433. package/dist/theme/recipes/checkbox-group.js.map +1 -1
  434. package/dist/theme/recipes/checkbox.cjs +1 -1
  435. package/dist/theme/recipes/checkbox.cjs.map +1 -1
  436. package/dist/theme/recipes/checkbox.d.ts +26 -2
  437. package/dist/theme/recipes/checkbox.js +7 -8
  438. package/dist/theme/recipes/checkbox.js.map +1 -1
  439. package/dist/theme/recipes/chip.cjs.map +1 -1
  440. package/dist/theme/recipes/chip.d.ts +148 -2
  441. package/dist/theme/recipes/chip.js +1 -2
  442. package/dist/theme/recipes/chip.js.map +1 -1
  443. package/dist/theme/recipes/collapsible.cjs.map +1 -1
  444. package/dist/theme/recipes/collapsible.d.ts +2 -2
  445. package/dist/theme/recipes/collapsible.js +1 -2
  446. package/dist/theme/recipes/collapsible.js.map +1 -1
  447. package/dist/theme/recipes/combobox.cjs +1 -1
  448. package/dist/theme/recipes/combobox.cjs.map +1 -1
  449. package/dist/theme/recipes/combobox.d.ts +33 -2
  450. package/dist/theme/recipes/combobox.js +6 -6
  451. package/dist/theme/recipes/combobox.js.map +1 -1
  452. package/dist/theme/recipes/common/group-card.cjs.map +1 -1
  453. package/dist/theme/recipes/common/group-card.d.ts +1 -1
  454. package/dist/theme/recipes/common/group-card.js +1 -2
  455. package/dist/theme/recipes/common/group-card.js.map +1 -1
  456. package/dist/theme/recipes/datepicker.cjs +1 -1
  457. package/dist/theme/recipes/datepicker.cjs.map +1 -1
  458. package/dist/theme/recipes/datepicker.d.ts +2 -2
  459. package/dist/theme/recipes/datepicker.js +6 -7
  460. package/dist/theme/recipes/datepicker.js.map +1 -1
  461. package/dist/theme/recipes/dialog.cjs.map +1 -1
  462. package/dist/theme/recipes/dialog.d.ts +2 -2
  463. package/dist/theme/recipes/dialog.js +1 -2
  464. package/dist/theme/recipes/dialog.js.map +1 -1
  465. package/dist/theme/recipes/drawer.cjs.map +1 -1
  466. package/dist/theme/recipes/drawer.d.ts +31 -2
  467. package/dist/theme/recipes/drawer.js +4 -4
  468. package/dist/theme/recipes/drawer.js.map +1 -1
  469. package/dist/theme/recipes/flag.cjs.map +1 -1
  470. package/dist/theme/recipes/flag.d.ts +15 -2
  471. package/dist/theme/recipes/flag.js +1 -2
  472. package/dist/theme/recipes/flag.js.map +1 -1
  473. package/dist/theme/recipes/form/control.cjs.map +1 -1
  474. package/dist/theme/recipes/form/control.d.ts +1 -1
  475. package/dist/theme/recipes/form/control.js +1 -2
  476. package/dist/theme/recipes/form/control.js.map +1 -1
  477. package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
  478. package/dist/theme/recipes/form/helper-text.d.ts +1 -1
  479. package/dist/theme/recipes/form/helper-text.js +1 -2
  480. package/dist/theme/recipes/form/helper-text.js.map +1 -1
  481. package/dist/theme/recipes/form/label.cjs.map +1 -1
  482. package/dist/theme/recipes/form/label.d.ts +15 -2
  483. package/dist/theme/recipes/form/label.js +1 -2
  484. package/dist/theme/recipes/form/label.js.map +1 -1
  485. package/dist/theme/recipes/heading.cjs.map +1 -1
  486. package/dist/theme/recipes/heading.d.ts +33 -2
  487. package/dist/theme/recipes/heading.js +1 -2
  488. package/dist/theme/recipes/heading.js.map +1 -1
  489. package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
  490. package/dist/theme/recipes/highlightedInput.d.ts +2 -2
  491. package/dist/theme/recipes/highlightedInput.js +1 -2
  492. package/dist/theme/recipes/highlightedInput.js.map +1 -1
  493. package/dist/theme/recipes/icon-button.cjs.map +1 -1
  494. package/dist/theme/recipes/icon-button.d.ts +1 -1
  495. package/dist/theme/recipes/icon-button.js +0 -1
  496. package/dist/theme/recipes/icon-button.js.map +1 -1
  497. package/dist/theme/recipes/icon.cjs.map +1 -1
  498. package/dist/theme/recipes/icon.d.ts +25 -2
  499. package/dist/theme/recipes/icon.js +1 -2
  500. package/dist/theme/recipes/icon.js.map +1 -1
  501. package/dist/theme/recipes/illustration.cjs.map +1 -1
  502. package/dist/theme/recipes/illustration.d.ts +29 -2
  503. package/dist/theme/recipes/illustration.js +1 -2
  504. package/dist/theme/recipes/illustration.js.map +1 -1
  505. package/dist/theme/recipes/index.cjs +1 -1
  506. package/dist/theme/recipes/index.cjs.map +1 -1
  507. package/dist/theme/recipes/index.d.ts +1464 -49
  508. package/dist/theme/recipes/index.js +3 -4
  509. package/dist/theme/recipes/index.js.map +1 -1
  510. package/dist/theme/recipes/input-addon.cjs.map +1 -1
  511. package/dist/theme/recipes/input-addon.d.ts +1 -1
  512. package/dist/theme/recipes/input-addon.js +1 -2
  513. package/dist/theme/recipes/input-addon.js.map +1 -1
  514. package/dist/theme/recipes/input-group.cjs.map +1 -1
  515. package/dist/theme/recipes/input-group.d.ts +1 -1
  516. package/dist/theme/recipes/input-group.js +1 -2
  517. package/dist/theme/recipes/input-group.js.map +1 -1
  518. package/dist/theme/recipes/input.cjs +1 -1
  519. package/dist/theme/recipes/input.cjs.map +1 -1
  520. package/dist/theme/recipes/input.d.ts +9 -2
  521. package/dist/theme/recipes/input.js +5 -6
  522. package/dist/theme/recipes/input.js.map +1 -1
  523. package/dist/theme/recipes/menu.cjs.map +1 -1
  524. package/dist/theme/recipes/menu.d.ts +20 -2
  525. package/dist/theme/recipes/menu.js +1 -2
  526. package/dist/theme/recipes/menu.js.map +1 -1
  527. package/dist/theme/recipes/pagination.cjs +1 -1
  528. package/dist/theme/recipes/pagination.cjs.map +1 -1
  529. package/dist/theme/recipes/pagination.d.ts +2 -2
  530. package/dist/theme/recipes/pagination.js +3 -4
  531. package/dist/theme/recipes/pagination.js.map +1 -1
  532. package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
  533. package/dist/theme/recipes/phone-number-input.d.ts +9 -2
  534. package/dist/theme/recipes/phone-number-input.js +1 -2
  535. package/dist/theme/recipes/phone-number-input.js.map +1 -1
  536. package/dist/theme/recipes/popover.cjs.map +1 -1
  537. package/dist/theme/recipes/popover.d.ts +2 -2
  538. package/dist/theme/recipes/popover.js +1 -2
  539. package/dist/theme/recipes/popover.js.map +1 -1
  540. package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
  541. package/dist/theme/recipes/radio-button-group.d.ts +25 -2
  542. package/dist/theme/recipes/radio-button-group.js +1 -2
  543. package/dist/theme/recipes/radio-button-group.js.map +1 -1
  544. package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
  545. package/dist/theme/recipes/radio-card-group.d.ts +36 -2
  546. package/dist/theme/recipes/radio-card-group.js +1 -2
  547. package/dist/theme/recipes/radio-card-group.js.map +1 -1
  548. package/dist/theme/recipes/radio-group.cjs.map +1 -1
  549. package/dist/theme/recipes/radio-group.d.ts +27 -2
  550. package/dist/theme/recipes/radio-group.js +1 -2
  551. package/dist/theme/recipes/radio-group.js.map +1 -1
  552. package/dist/theme/recipes/select-language.cjs.map +1 -1
  553. package/dist/theme/recipes/select-language.d.ts +15 -2
  554. package/dist/theme/recipes/select-language.js +1 -2
  555. package/dist/theme/recipes/select-language.js.map +1 -1
  556. package/dist/theme/recipes/select.cjs +1 -1
  557. package/dist/theme/recipes/select.cjs.map +1 -1
  558. package/dist/theme/recipes/select.d.ts +30 -2
  559. package/dist/theme/recipes/select.js +3 -18
  560. package/dist/theme/recipes/select.js.map +1 -1
  561. package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
  562. package/dist/theme/recipes/status-tag-select.d.ts +125 -2
  563. package/dist/theme/recipes/status-tag-select.js +1 -2
  564. package/dist/theme/recipes/status-tag-select.js.map +1 -1
  565. package/dist/theme/recipes/steps.cjs.map +1 -1
  566. package/dist/theme/recipes/steps.d.ts +2 -2
  567. package/dist/theme/recipes/steps.js +1 -2
  568. package/dist/theme/recipes/steps.js.map +1 -1
  569. package/dist/theme/recipes/switch-card.cjs.map +1 -1
  570. package/dist/theme/recipes/switch-card.d.ts +1 -1
  571. package/dist/theme/recipes/switch-card.js +1 -2
  572. package/dist/theme/recipes/switch-card.js.map +1 -1
  573. package/dist/theme/recipes/switch.cjs.map +1 -1
  574. package/dist/theme/recipes/switch.d.ts +22 -2
  575. package/dist/theme/recipes/switch.js +1 -2
  576. package/dist/theme/recipes/switch.js.map +1 -1
  577. package/dist/theme/recipes/table-container.cjs.map +1 -1
  578. package/dist/theme/recipes/table-container.d.ts +1 -1
  579. package/dist/theme/recipes/table-container.js +1 -2
  580. package/dist/theme/recipes/table-container.js.map +1 -1
  581. package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
  582. package/dist/theme/recipes/table-empty-row.d.ts +1 -1
  583. package/dist/theme/recipes/table-empty-row.js +1 -2
  584. package/dist/theme/recipes/table-empty-row.js.map +1 -1
  585. package/dist/theme/recipes/table-group-title.cjs.map +1 -1
  586. package/dist/theme/recipes/table-group-title.d.ts +15 -2
  587. package/dist/theme/recipes/table-group-title.js +1 -2
  588. package/dist/theme/recipes/table-group-title.js.map +1 -1
  589. package/dist/theme/recipes/table.cjs.map +1 -1
  590. package/dist/theme/recipes/table.d.ts +2 -2
  591. package/dist/theme/recipes/table.js +1 -2
  592. package/dist/theme/recipes/table.js.map +1 -1
  593. package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
  594. package/dist/theme/recipes/tabs-chip.d.ts +29 -2
  595. package/dist/theme/recipes/tabs-chip.js +1 -2
  596. package/dist/theme/recipes/tabs-chip.js.map +1 -1
  597. package/dist/theme/recipes/tabs.cjs.map +1 -1
  598. package/dist/theme/recipes/tabs.d.ts +49 -2
  599. package/dist/theme/recipes/tabs.js +1 -2
  600. package/dist/theme/recipes/tabs.js.map +1 -1
  601. package/dist/theme/recipes/tag.cjs.map +1 -1
  602. package/dist/theme/recipes/tag.d.ts +109 -2
  603. package/dist/theme/recipes/tag.js +1 -2
  604. package/dist/theme/recipes/tag.js.map +1 -1
  605. package/dist/theme/recipes/text.cjs.map +1 -1
  606. package/dist/theme/recipes/text.d.ts +29 -2
  607. package/dist/theme/recipes/text.js +1 -2
  608. package/dist/theme/recipes/text.js.map +1 -1
  609. package/dist/theme/recipes/textarea.cjs.map +1 -1
  610. package/dist/theme/recipes/textarea.d.ts +1 -1
  611. package/dist/theme/recipes/textarea.js +1 -2
  612. package/dist/theme/recipes/textarea.js.map +1 -1
  613. package/dist/theme/recipes/tooltip.cjs.map +1 -1
  614. package/dist/theme/recipes/tooltip.d.ts +2 -2
  615. package/dist/theme/recipes/tooltip.js +1 -2
  616. package/dist/theme/recipes/tooltip.js.map +1 -1
  617. package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
  618. package/dist/theme/semantic-tokens/colors.js +1 -2
  619. package/dist/theme/semantic-tokens/colors.js.map +1 -1
  620. package/dist/theme/semantic-tokens/gradients.cjs.map +1 -1
  621. package/dist/theme/semantic-tokens/gradients.js +1 -2
  622. package/dist/theme/semantic-tokens/gradients.js.map +1 -1
  623. package/dist/theme/semantic-tokens/index.cjs.map +1 -1
  624. package/dist/theme/semantic-tokens/index.js +1 -2
  625. package/dist/theme/semantic-tokens/index.js.map +1 -1
  626. package/dist/theme/text-styles.cjs.map +1 -1
  627. package/dist/theme/text-styles.d.ts +1 -1
  628. package/dist/theme/text-styles.js +1 -2
  629. package/dist/theme/text-styles.js.map +1 -1
  630. package/dist/theme/tokens/animations.cjs.map +1 -1
  631. package/dist/theme/tokens/animations.js +1 -2
  632. package/dist/theme/tokens/animations.js.map +1 -1
  633. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
  634. package/dist/theme/tokens/aspect-ratios.js +1 -2
  635. package/dist/theme/tokens/aspect-ratios.js.map +1 -1
  636. package/dist/theme/tokens/blurs.cjs.map +1 -1
  637. package/dist/theme/tokens/blurs.js +1 -2
  638. package/dist/theme/tokens/blurs.js.map +1 -1
  639. package/dist/theme/tokens/borders.cjs.map +1 -1
  640. package/dist/theme/tokens/borders.js +1 -2
  641. package/dist/theme/tokens/borders.js.map +1 -1
  642. package/dist/theme/tokens/colors.cjs.map +1 -1
  643. package/dist/theme/tokens/colors.js +1 -2
  644. package/dist/theme/tokens/colors.js.map +1 -1
  645. package/dist/theme/tokens/durations.cjs.map +1 -1
  646. package/dist/theme/tokens/durations.js +1 -2
  647. package/dist/theme/tokens/durations.js.map +1 -1
  648. package/dist/theme/tokens/easings.cjs.map +1 -1
  649. package/dist/theme/tokens/easings.js +1 -2
  650. package/dist/theme/tokens/easings.js.map +1 -1
  651. package/dist/theme/tokens/index.cjs.map +1 -1
  652. package/dist/theme/tokens/index.js +1 -2
  653. package/dist/theme/tokens/index.js.map +1 -1
  654. package/dist/theme/tokens/radii.cjs.map +1 -1
  655. package/dist/theme/tokens/radii.js +1 -2
  656. package/dist/theme/tokens/radii.js.map +1 -1
  657. package/dist/theme/tokens/shadows.cjs.map +1 -1
  658. package/dist/theme/tokens/shadows.js +1 -2
  659. package/dist/theme/tokens/shadows.js.map +1 -1
  660. package/dist/theme/tokens/sizes.cjs.map +1 -1
  661. package/dist/theme/tokens/sizes.js +1 -2
  662. package/dist/theme/tokens/sizes.js.map +1 -1
  663. package/dist/theme/tokens/spacing.cjs.map +1 -1
  664. package/dist/theme/tokens/spacing.js +1 -2
  665. package/dist/theme/tokens/spacing.js.map +1 -1
  666. package/dist/theme/tokens/typography.cjs.map +1 -1
  667. package/dist/theme/tokens/typography.js +1 -2
  668. package/dist/theme/tokens/typography.js.map +1 -1
  669. package/dist/theme/tokens/z-index.cjs.map +1 -1
  670. package/dist/theme/tokens/z-index.js +1 -2
  671. package/dist/theme/tokens/z-index.js.map +1 -1
  672. package/dist/theme/utilities.cjs.map +1 -1
  673. package/dist/theme/utilities.js +0 -1
  674. package/dist/theme/utilities.js.map +1 -1
  675. package/dist/ui.css +1 -1
  676. package/dist/utils/slots.cjs +1 -1
  677. package/dist/utils/slots.cjs.map +1 -1
  678. package/dist/utils/slots.js +3 -4
  679. package/dist/utils/slots.js.map +1 -1
  680. package/package.json +9 -9
  681. 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
  682. 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
  683. 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
  684. 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
  685. 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
  686. 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
  687. 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
  688. 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
  689. 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
  690. 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
  691. 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
  692. 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
  693. /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
  694. /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
  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/ChatBubbleLeftRightIcon.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/CheckCircleIcon.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/DocumentTextIcon.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/XCircleIcon.cjs +0 -0
@@ -2,7 +2,7 @@
2
2
  import { Box as e, HStack as t, VStack as n } from "@stokelp/styled-system/jsx";
3
3
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { css as a } from "@stokelp/styled-system/css";
5
- //#region src/components/app/mobile-card/MobileCardSkeleton.tsx
5
+ // src/components/app/mobile-card/MobileCardSkeleton.tsx
6
6
  var o = a({
7
7
  background: "linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",
8
8
  backgroundSize: "200% 100%",
@@ -44,7 +44,6 @@ function l({ count: t = 3, children: i }) {
44
44
  children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ r(e, { children: i() }, n))
45
45
  });
46
46
  }
47
- //#endregion
48
47
  export { c as MobileCardSkeleton, l as MobileCardSkeletonList, s as SkeletonBlock };
49
48
 
50
49
  //# sourceMappingURL=MobileCardSkeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MobileCardSkeleton.js","names":[],"sources":["../../../../src/components/app/mobile-card/MobileCardSkeleton.tsx"],"sourcesContent":["import { ReactNode } from 'react'\nimport { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\nimport { css } from '@stokelp/styled-system/css'\n\nconst skeletonClass = css({\n background: 'linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)',\n backgroundSize: '200% 100%',\n animation: 'shimmer 1.5s infinite',\n})\n\nexport interface SkeletonBlockProps {\n width: string\n height: string\n borderRadius?: string\n}\n\nexport function SkeletonBlock({ width, height, borderRadius = 'radius-4' }: SkeletonBlockProps) {\n return <Box width={width} height={height} borderRadius={borderRadius} className={skeletonClass} />\n}\n\nexport interface MobileCardSkeletonProps {\n headerContent: ReactNode\n bodyContent: ReactNode\n}\n\nexport function MobileCardSkeleton({ headerContent, bodyContent }: MobileCardSkeletonProps) {\n return (\n <Box width=\"100%\" borderRadius=\"radius-16\" overflow=\"hidden\" border=\"1px solid\" borderColor=\"grey.100\">\n <HStack bgColor=\"primary.100\" px=\"space-16\" py=\"space-12\" gap=\"space-8\">\n {headerContent}\n </HStack>\n <VStack gap=\"space-12\" p=\"space-16\" alignItems=\"stretch\">\n {bodyContent}\n </VStack>\n </Box>\n )\n}\n\nexport interface MobileCardSkeletonListProps {\n count?: number\n children: () => ReactNode\n}\n\nexport function MobileCardSkeletonList({ count = 3, children }: MobileCardSkeletonListProps) {\n return (\n <VStack gap=\"space-16\" width=\"100%\">\n {Array.from({ length: count }, (_, i) => (\n <Box key={i}>{children()}</Box>\n ))}\n </VStack>\n )\n}\n"],"mappings":";;;;;AAIA,IAAM,IAAgB,EAAI;CACxB,YAAY;CACZ,gBAAgB;CAChB,WAAW;AACb,CAAC;AAQD,SAAgB,EAAc,EAAE,UAAO,WAAQ,kBAAe,cAAkC;CAC9F,OAAO,kBAAC,GAAD;EAAY;EAAe;EAAsB;EAAc,WAAW;CAAgB,CAAA;AACnG;AAOA,SAAgB,EAAmB,EAAE,kBAAe,kBAAwC;CAC1F,OACE,kBAAC,GAAD;EAAK,OAAM;EAAO,cAAa;EAAY,UAAS;EAAS,QAAO;EAAY,aAAY;YAA5F,CACE,kBAAC,GAAD;GAAQ,SAAQ;GAAc,IAAG;GAAW,IAAG;GAAW,KAAI;aAC3D;EACK,CAAA,GACR,kBAAC,GAAD;GAAQ,KAAI;GAAW,GAAE;GAAW,YAAW;aAC5C;EACK,CAAA,CACL;;AAET;AAOA,SAAgB,EAAuB,EAAE,WAAQ,GAAG,eAAyC;CAC3F,OACE,kBAAC,GAAD;EAAQ,KAAI;EAAW,OAAM;YAC1B,MAAM,KAAK,EAAE,QAAQ,EAAM,IAAI,GAAG,MACjC,kBAAC,GAAD,EAAA,UAAc,EAAS,EAAO,GAApB,CAAoB,CAC/B;CACK,CAAA;AAEZ"}
1
+ {"version":3,"file":"MobileCardSkeleton.js","names":["skeletonClass","css","SkeletonBlock","Box","MobileCardSkeleton","HStack","headerContent","VStack","bodyContent","MobileCardSkeletonList","count","children","i"],"sources":["../../../../src/components/app/mobile-card/MobileCardSkeleton.tsx"],"sourcesContent":["import { ReactNode } from 'react'\nimport { Box, HStack, VStack } from '@stokelp/styled-system/jsx'\nimport { css } from '@stokelp/styled-system/css'\n\nconst skeletonClass = css({\n background: 'linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)',\n backgroundSize: '200% 100%',\n animation: 'shimmer 1.5s infinite',\n})\n\nexport interface SkeletonBlockProps {\n width: string\n height: string\n borderRadius?: string\n}\n\nexport function SkeletonBlock({ width, height, borderRadius = 'radius-4' }: SkeletonBlockProps) {\n return <Box width={width} height={height} borderRadius={borderRadius} className={skeletonClass} />\n}\n\nexport interface MobileCardSkeletonProps {\n headerContent: ReactNode\n bodyContent: ReactNode\n}\n\nexport function MobileCardSkeleton({ headerContent, bodyContent }: MobileCardSkeletonProps) {\n return (\n <Box width=\"100%\" borderRadius=\"radius-16\" overflow=\"hidden\" border=\"1px solid\" borderColor=\"grey.100\">\n <HStack bgColor=\"primary.100\" px=\"space-16\" py=\"space-12\" gap=\"space-8\">\n {headerContent}\n </HStack>\n <VStack gap=\"space-12\" p=\"space-16\" alignItems=\"stretch\">\n {bodyContent}\n </VStack>\n </Box>\n )\n}\n\nexport interface MobileCardSkeletonListProps {\n count?: number\n children: () => ReactNode\n}\n\nexport function MobileCardSkeletonList({ count = 3, children }: MobileCardSkeletonListProps) {\n return (\n <VStack gap=\"space-16\" width=\"100%\">\n {Array.from({ length: count }, (_, i) => (\n <Box key={i}>{children()}</Box>\n ))}\n </VStack>\n )\n}\n"],"mappings":";;;;;AAIA,IAAMA,IAAgBC,EAAI;CACxB,YAAY;CACZ,gBAAgB;CAChB,WAAW;AACb,CAAC;AAQD,SAAgBC,EAAc,EAAE,UAAO,WAAQ,kBAAe,cAAkC;CAC9F,OAAO,kBAACC,GAAD;EAAY;EAAe;EAAsB;EAAc,WAAWH;CAAgB,CAAA;AACnG;AAOA,SAAgBI,EAAmB,EAAE,kBAAe,kBAAwC;CAC1F,OACE,kBAACD,GAAD;EAAK,OAAM;EAAO,cAAa;EAAY,UAAS;EAAS,QAAO;EAAY,aAAY;EAA5F,UAAA,CACE,kBAACE,GAAD;GAAQ,SAAQ;GAAc,IAAG;GAAW,IAAG;GAAW,KAAI;GAC3D,UAAAC;EACK,CAAA,GACR,kBAACC,GAAD;GAAQ,KAAI;GAAW,GAAE;GAAW,YAAW;GAC5C,UAAAC;EACK,CAAA,CACL;;AAET;AAOA,SAAgBC,EAAuB,EAAE,WAAQ,GAAG,eAAyC;CAC3F,OACE,kBAACF,GAAD;EAAQ,KAAI;EAAW,OAAM;EAC1B,UAAA,MAAM,KAAK,EAAE,QAAQG,EAAM,IAAI,GAAG,MACjC,kBAACP,GAAD,EAAA,UAAcQ,EAAS,EAAO,GAApBC,CAAoB,CAC/B;CACK,CAAA;AAEZ"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs"),n=require("../../icon/Icon.cjs");let r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Item:()=>u,ItemIcon:()=>d,ItemLabel:()=>f,Root:()=>l}),{withProvider:o,withContext:s}=t.createStyleContext(i.mobileNavigation,{dataAttr:!0}),c=e=>(0,r.styled)(e),l=o(c(`nav`),`root`),u=s(c(`a`),`item`),d=s(n.Icon,`itemIcon`,{defaultProps:{size:`sm`}}),f=s(c(`span`),`itemLabel`);Object.defineProperty(exports,"MobileNavigation_exports",{enumerable:!0,get:function(){return a}});
1
+ "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs"),n=require("../../icon/Icon.cjs");let r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Item:()=>u,ItemIcon:()=>d,ItemLabel:()=>f,Root:()=>l}),{withProvider:o,withContext:s}=t.createStyleContext(i.mobileNavigation,{dataAttr:!0}),c=e=>(0,r.styled)(e),l=o(c(`nav`),`root`),u=s(c(`a`),`item`),d=s(n.Icon,`itemIcon`,{defaultProps:{size:`sm`}}),f=s(c(`span`),`itemLabel`);exports.Item=u,exports.ItemIcon=d,exports.ItemLabel=f,Object.defineProperty(exports,"MobileNavigation_exports",{enumerable:!0,get:function(){return a}}),exports.Root=l;
2
2
  //# sourceMappingURL=MobileNavigation.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MobileNavigation.cjs","names":[],"sources":["../../../../src/components/app/mobile-navigation/MobileNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { mobileNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(mobileNavigation, {\n dataAttr: true,\n})\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root')\nexport const Item = withContext(styledTag('a'), 'item')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemLabel = withContext(styledTag('span'), 'itemLabel')\n\nexport interface MobileNavigationProps extends ComponentProps<typeof Root> {}\nexport interface MobileNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface MobileNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface MobileNavigationItemLabelProps extends ComponentProps<typeof ItemLabel> {}\n"],"mappings":"mTAOM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAGK,EAAoD,IAAA,EAAA,EAAA,QACjD,CAAG,EAEC,EAAO,EAAa,EAAU,KAAK,EAAG,MAAM,EAC5C,EAAO,EAAY,EAAU,GAAG,EAAG,MAAM,EACzC,EAAW,EAAY,EAAA,KAAM,WAAY,CACpD,aAAc,CACZ,KAAM,IACR,CACF,CAAC,EACY,EAAY,EAAY,EAAU,MAAM,EAAG,WAAW"}
1
+ {"version":3,"file":"MobileNavigation.cjs","names":["createStyleContext","mobileNavigation","styled","Icon","require_runtime","require_slots","require_Icon","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","MobileNavigation_exports","Item","ItemIcon","ItemLabel","Root","styledTag","tag","withProvider","withContext"],"sources":["../../../../src/components/app/mobile-navigation/MobileNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { mobileNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(mobileNavigation, {\n dataAttr: true,\n})\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root')\nexport const Item = withContext(styledTag('a'), 'item')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemLabel = withContext(styledTag('span'), 'itemLabel')\n\nexport interface MobileNavigationProps extends ComponentProps<typeof Root> {}\nexport interface MobileNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface MobileNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface MobileNavigationItemLabelProps extends ComponentProps<typeof ItemLabel> {}\n"],"mappings":"A,mTAOM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAGKa,EAAoD,IAAA,EACxDZ,EAAAA,OAAAA,CAAOa,CAAG,EAECF,EAAOG,EAAaF,EAAU,KAAK,EAAG,MAAM,EAC5CJ,EAAOO,EAAYH,EAAU,GAAG,EAAG,MAAM,EACzCH,EAAWM,EAAYd,EAAAA,KAAM,WAAY,CACpD,aAAc,CACZ,KAAM,IACR,CACF,CAAC,EACYS,EAAYK,EAAYH,EAAU,MAAM,EAAG,WAAW,E"}
@@ -4,14 +4,13 @@ import { createStyleContext as t } from "../../../utils/slots.js";
4
4
  import { Icon as n } from "../../icon/Icon.js";
5
5
  import { styled as r } from "@stokelp/styled-system/jsx";
6
6
  import { mobileNavigation as i } from "@stokelp/styled-system/recipes";
7
- //#region src/components/app/mobile-navigation/MobileNavigation.tsx
7
+ // src/components/app/mobile-navigation/MobileNavigation.tsx
8
8
  var a = /* @__PURE__ */ e({
9
9
  Item: () => u,
10
10
  ItemIcon: () => d,
11
11
  ItemLabel: () => f,
12
12
  Root: () => l
13
13
  }), { withProvider: o, withContext: s } = t(i, { dataAttr: !0 }), c = (e) => r(e), l = o(c("nav"), "root"), u = s(c("a"), "item"), d = s(n, "itemIcon", { defaultProps: { size: "sm" } }), f = s(c("span"), "itemLabel");
14
- //#endregion
15
- export { a as MobileNavigation_exports };
14
+ export { u as Item, d as ItemIcon, f as ItemLabel, a as MobileNavigation_exports, l as Root };
16
15
 
17
16
  //# sourceMappingURL=MobileNavigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MobileNavigation.js","names":[],"sources":["../../../../src/components/app/mobile-navigation/MobileNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { mobileNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(mobileNavigation, {\n dataAttr: true,\n})\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root')\nexport const Item = withContext(styledTag('a'), 'item')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemLabel = withContext(styledTag('span'), 'itemLabel')\n\nexport interface MobileNavigationProps extends ComponentProps<typeof Root> {}\nexport interface MobileNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface MobileNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface MobileNavigationItemLabelProps extends ComponentProps<typeof ItemLabel> {}\n"],"mappings":";;;;;;;;;;;;IAOM,EAAE,iBAAc,mBAAgB,EAAmB,GAAkB,EACzE,UAAU,GACZ,CAAC,GAGK,KAAoD,MACxD,EAAO,CAAG,GAEC,IAAO,EAAa,EAAU,KAAK,GAAG,MAAM,GAC5C,IAAO,EAAY,EAAU,GAAG,GAAG,MAAM,GACzC,IAAW,EAAY,GAAM,YAAY,EACpD,cAAc,EACZ,MAAM,KACR,EACF,CAAC,GACY,IAAY,EAAY,EAAU,MAAM,GAAG,WAAW"}
1
+ {"version":3,"file":"MobileNavigation.js","names":["MobileNavigation_exports","Item","ItemIcon","ItemLabel","Root","createStyleContext","mobileNavigation","styledTag","styled","tag","withProvider","withContext","Icon"],"sources":["../../../../src/components/app/mobile-navigation/MobileNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { mobileNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(mobileNavigation, {\n dataAttr: true,\n})\n\n// See Table.tsx for why we pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root')\nexport const Item = withContext(styledTag('a'), 'item')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemLabel = withContext(styledTag('span'), 'itemLabel')\n\nexport interface MobileNavigationProps extends ComponentProps<typeof Root> {}\nexport interface MobileNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface MobileNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface MobileNavigationItemLabelProps extends ComponentProps<typeof ItemLabel> {}\n"],"mappings":";;;;;;;;;;;;A,IAOM,EAAE,iBAAc,mBAAgBK,EAAmBC,GAAkB,EACzE,UAAU,GACZ,CAAC,GAGKC,KAAoD,MACxDC,EAAOC,CAAG,GAECL,IAAOM,EAAaH,EAAU,KAAK,GAAG,MAAM,GAC5CN,IAAOU,EAAYJ,EAAU,GAAG,GAAG,MAAM,GACzCL,IAAWS,EAAYC,GAAM,YAAY,EACpD,cAAc,EACZ,MAAM,KACR,EACF,CAAC,GACYT,IAAYQ,EAAYJ,EAAU,MAAM,GAAG,WAAW"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs"),n=require("../../tag/Tag.cjs"),r=require("../../icon/Icon.cjs"),i=require("../../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs");let a=require("@stokelp/styled-system/jsx"),o=require("@stokelp/styled-system/recipes"),s=require("react/jsx-runtime");var c=e.__exportAll({Body:()=>_,Footer:()=>w,Header:()=>g,Item:()=>v,ItemAlpha:()=>C,ItemContent:()=>b,ItemIcon:()=>S,ItemLabel:()=>x,ItemSubItems:()=>y,MiniaturizeTrigger:()=>T,Root:()=>h}),{withProvider:l,withContext:u}=t.createStyleContext(o.appNavigation,{dataAttr:!0}),d=`isMiniaturizeNav`,f=()=>{try{return localStorage.getItem(d)===`closed`?`closed`:`open`}catch{return`open`}},p=e=>{try{localStorage.setItem(d,e)}catch{}},m=e=>(0,a.styled)(e),h=l(m(`nav`),`root`,{defaultProps:{}}),g=u(m(`header`),`header`),_=u(m(`main`),`body`),v=u(m(`div`),`item`),y=u(m(`div`),`itemSubItems`),b=u(m(`div`),`itemContent`),x=u(m(`p`),`itemLabel`),S=u(r.Icon,`itemIcon`,{defaultProps:{size:`sm`}}),C=u(n.Tag,`itemAlpha`,{defaultProps:{severity:`success`}}),w=u(m(`footer`),`footer`),T=u(m(`div`),`miniaturizeTrigger`,{defaultProps:{onClick:e=>{e.preventDefault();let t=f()===`closed`?`open`:`closed`;p(t),e.currentTarget.setAttribute(`data-state`,t),window.dispatchEvent(new Event(`storage`))},className:`app-navigation__miniaturizeTrigger`,...{get"data-state"(){return f()}},children:(0,s.jsx)(r.Icon,{children:(0,s.jsx)(i.default,{})})}});Object.defineProperty(exports,"AppNavigation_exports",{enumerable:!0,get:function(){return c}});
1
+ "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs"),n=require("../../tag/Tag.cjs"),r=require("../../icon/Icon.cjs"),i=require("../../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs");let a=require("@stokelp/styled-system/jsx"),o=require("@stokelp/styled-system/recipes"),s=require("react/jsx-runtime");var c=e.__exportAll({Body:()=>_,Footer:()=>w,Header:()=>g,Item:()=>v,ItemAlpha:()=>C,ItemContent:()=>b,ItemIcon:()=>S,ItemLabel:()=>x,ItemSubItems:()=>y,MiniaturizeTrigger:()=>T,Root:()=>h}),{withProvider:l,withContext:u}=t.createStyleContext(o.appNavigation,{dataAttr:!0}),d=`isMiniaturizeNav`,f=()=>{try{return localStorage.getItem(d)===`closed`?`closed`:`open`}catch{return`open`}},p=e=>{try{localStorage.setItem(d,e)}catch{}},m=e=>(0,a.styled)(e),h=l(m(`nav`),`root`,{defaultProps:{}}),g=u(m(`header`),`header`),_=u(m(`main`),`body`),v=u(m(`div`),`item`),y=u(m(`div`),`itemSubItems`),b=u(m(`div`),`itemContent`),x=u(m(`p`),`itemLabel`),S=u(r.Icon,`itemIcon`,{defaultProps:{size:`sm`}}),C=u(n.Tag,`itemAlpha`,{defaultProps:{severity:`success`}}),w=u(m(`footer`),`footer`),T=u(m(`div`),`miniaturizeTrigger`,{defaultProps:{onClick:e=>{e.preventDefault();let t=f()===`closed`?`open`:`closed`;p(t),e.currentTarget.setAttribute(`data-state`,t),window.dispatchEvent(new Event(`storage`))},className:`app-navigation__miniaturizeTrigger`,...{get"data-state"(){return f()}},children:(0,s.jsx)(r.Icon,{children:(0,s.jsx)(i.default,{})})}});Object.defineProperty(exports,"AppNavigation_exports",{enumerable:!0,get:function(){return c}}),exports.Body=_,exports.Footer=w,exports.Header=g,exports.Item=v,exports.ItemAlpha=C,exports.ItemContent=b,exports.ItemIcon=S,exports.ItemLabel=x,exports.ItemSubItems=y,exports.MiniaturizeTrigger=T,exports.Root=h;
2
2
  //# sourceMappingURL=AppNavigation.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppNavigation.cjs","names":[],"sources":["../../../../src/components/app/navigation/AppNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { appNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX, type MouseEvent } from 'react'\nimport { ArrowLeftCircleIcon } from '@heroicons/react/24/outline'\nimport { Tag } from '~/components'\n\nconst { withProvider, withContext } = createStyleContext(appNavigation, {\n dataAttr: true,\n})\n\nconst MINIATURIZE_STORAGE_KEY = 'isMiniaturizeNav'\n\ntype MiniaturizeState = 'open' | 'closed'\n\n// Whether the nav is collapsed lives in localStorage: no backend field and no teammate\n// sync, and the recipe reads it off `data-state` on the trigger (see the `:has()` rule in\n// theme/recipes/app/navigation.ts).\n//\n// Both helpers swallow their own errors on purpose. A browser that blocks site data\n// (Android Chrome with cookies off, an embedded webview, Safari in lockdown) throws\n// SecurityError on the mere property access, and `typeof localStorage` does not guard\n// against that: it evaluates the same getter. It only guards against the server, where\n// the property is absent.\nconst readMiniaturizeState = (): MiniaturizeState => {\n try {\n return localStorage.getItem(MINIATURIZE_STORAGE_KEY) === 'closed' ? 'closed' : 'open'\n } catch {\n return 'open'\n }\n}\n\nconst writeMiniaturizeState = (state: MiniaturizeState): void => {\n try {\n localStorage.setItem(MINIATURIZE_STORAGE_KEY, state)\n } catch {\n // Storage blocked: the attribute set below still collapses the nav for this page\n // view, the choice just does not survive a reload.\n }\n}\n\n// See Table.tsx for why we wrap `styled(tag)` to pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root', {\n defaultProps: {},\n})\nexport const Header = withContext(styledTag('header'), 'header')\nexport const Body = withContext(styledTag('main'), 'body')\n\nexport const Item = withContext(styledTag('div'), 'item')\nexport const ItemSubItems = withContext(styledTag('div'), 'itemSubItems')\nexport const ItemContent = withContext(styledTag('div'), 'itemContent')\nexport const ItemLabel = withContext(styledTag('p'), 'itemLabel')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemAlpha = withContext(Tag, 'itemAlpha', {\n defaultProps: {\n severity: 'success',\n },\n})\n\nexport const Footer = withContext(styledTag('footer'), 'footer')\n\nexport const MiniaturizeTrigger = withContext(styledTag('div'), 'miniaturizeTrigger', {\n defaultProps: {\n onClick: (e: MouseEvent<HTMLDivElement>) => {\n e.preventDefault()\n const newState = readMiniaturizeState() === 'closed' ? 'open' : 'closed'\n writeMiniaturizeState(newState)\n e.currentTarget.setAttribute('data-state', newState)\n window.dispatchEvent(new Event('storage'))\n },\n className: 'app-navigation__miniaturizeTrigger',\n ...{\n // A getter, so the value is read when this object is SPREAD (on every render of the\n // trigger, in createStyleContext) and never when the module is evaluated. As a plain\n // value it read storage at import time, which threw SecurityError on the browsers\n // above and killed the whole chunk: the kit's barrel imports this module, so every\n // page that imports anything from @stokelp/ui went down with it, public marketing\n // pages that show no navigation included.\n get 'data-state'() {\n return readMiniaturizeState()\n },\n },\n children: (\n <Icon>\n <ArrowLeftCircleIcon />\n </Icon>\n ),\n },\n})\n\nexport interface AppNavigationProps extends ComponentProps<typeof Root> {}\nexport interface AppNavigationHeaderProps extends ComponentProps<typeof Header> {}\nexport interface AppNavigationBodyProps extends ComponentProps<typeof Body> {}\nexport interface AppNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface AppNavigationItemSubItemsProps extends ComponentProps<typeof ItemSubItems> {}\nexport interface AppNavigationItemContentProps extends ComponentProps<typeof ItemContent> {}\nexport type AppNavigationItemLabelProps = ComponentProps<typeof ItemLabel>\nexport interface AppNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface AppNavigationFooterProps extends ComponentProps<typeof Footer> {}\nexport interface AppNavigationMiniaturizeTriggerProps extends ComponentProps<typeof MiniaturizeTrigger> {}\n"],"mappings":"snBASM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,cAAe,CACtE,SAAU,EACZ,CAAC,EAEK,EAA0B,mBAa1B,MAA+C,CACnD,GAAI,CACF,OAAO,aAAa,QAAQ,CAAuB,IAAM,SAAW,SAAW,MACjF,MAAQ,CACN,MAAO,MACT,CACF,EAEM,EAAyB,GAAkC,CAC/D,GAAI,CACF,aAAa,QAAQ,EAAyB,CAAK,CACrD,MAAQ,CAGR,CACF,EAGM,EAAoD,IAAA,EAAA,EAAA,QACjD,CAAG,EAEC,EAAO,EAAa,EAAU,KAAK,EAAG,OAAQ,CACzD,aAAc,CAAC,CACjB,CAAC,EACY,EAAS,EAAY,EAAU,QAAQ,EAAG,QAAQ,EAClD,EAAO,EAAY,EAAU,MAAM,EAAG,MAAM,EAE5C,EAAO,EAAY,EAAU,KAAK,EAAG,MAAM,EAC3C,EAAe,EAAY,EAAU,KAAK,EAAG,cAAc,EAC3D,EAAc,EAAY,EAAU,KAAK,EAAG,aAAa,EACzD,EAAY,EAAY,EAAU,GAAG,EAAG,WAAW,EACnD,EAAW,EAAY,EAAA,KAAM,WAAY,CACpD,aAAc,CACZ,KAAM,IACR,CACF,CAAC,EACY,EAAY,EAAY,EAAA,IAAK,YAAa,CACrD,aAAc,CACZ,SAAU,SACZ,CACF,CAAC,EAEY,EAAS,EAAY,EAAU,QAAQ,EAAG,QAAQ,EAElD,EAAqB,EAAY,EAAU,KAAK,EAAG,qBAAsB,CACpF,aAAc,CACZ,QAAU,GAAkC,CAC1C,EAAE,eAAe,EACjB,IAAM,EAAW,EAAqB,IAAM,SAAW,OAAS,SAChE,EAAsB,CAAQ,EAC9B,EAAE,cAAc,aAAa,aAAc,CAAQ,EACnD,OAAO,cAAc,IAAI,MAAM,SAAS,CAAC,CAC3C,EACA,UAAW,qCACX,GAAG,CAOD,GAAI,cAAe,CACjB,OAAO,EAAqB,CAC9B,CACF,EACA,UACE,EAAA,EAAA,KAAC,EAAA,KAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAA,QAAD,CAAsB,CAAA,CAClB,CAAA,CAEV,CACF,CAAC"}
1
+ {"version":3,"file":"AppNavigation.cjs","names":["createStyleContext","appNavigation","styled","Icon","Tag","ArrowLeftCircleIcon","require_runtime","require_slots","require_Tag","require_Icon","require_ArrowLeftCircleIcon","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react_jsx_runtime","AppNavigation_exports","Body","Footer","Header","Item","ItemAlpha","ItemContent","ItemIcon","ItemLabel","ItemSubItems","MiniaturizeTrigger","Root","MINIATURIZE_STORAGE_KEY","readMiniaturizeState","writeMiniaturizeState","state","styledTag","tag","withProvider","withContext","newState"],"sources":["../../../../src/components/app/navigation/AppNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { appNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX, type MouseEvent } from 'react'\nimport { ArrowLeftCircleIcon } from '@heroicons/react/24/outline'\nimport { Tag } from '~/components'\n\nconst { withProvider, withContext } = createStyleContext(appNavigation, {\n dataAttr: true,\n})\n\nconst MINIATURIZE_STORAGE_KEY = 'isMiniaturizeNav'\n\ntype MiniaturizeState = 'open' | 'closed'\n\n// Whether the nav is collapsed lives in localStorage: no backend field and no teammate\n// sync, and the recipe reads it off `data-state` on the trigger (see the `:has()` rule in\n// theme/recipes/app/navigation.ts).\n//\n// Both helpers swallow their own errors on purpose. A browser that blocks site data\n// (Android Chrome with cookies off, an embedded webview, Safari in lockdown) throws\n// SecurityError on the mere property access, and `typeof localStorage` does not guard\n// against that: it evaluates the same getter. It only guards against the server, where\n// the property is absent.\nconst readMiniaturizeState = (): MiniaturizeState => {\n try {\n return localStorage.getItem(MINIATURIZE_STORAGE_KEY) === 'closed' ? 'closed' : 'open'\n } catch {\n return 'open'\n }\n}\n\nconst writeMiniaturizeState = (state: MiniaturizeState): void => {\n try {\n localStorage.setItem(MINIATURIZE_STORAGE_KEY, state)\n } catch {\n // Storage blocked: the attribute set below still collapses the nav for this page\n // view, the choice just does not survive a reload.\n }\n}\n\n// See Table.tsx for why we wrap `styled(tag)` to pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root', {\n defaultProps: {},\n})\nexport const Header = withContext(styledTag('header'), 'header')\nexport const Body = withContext(styledTag('main'), 'body')\n\nexport const Item = withContext(styledTag('div'), 'item')\nexport const ItemSubItems = withContext(styledTag('div'), 'itemSubItems')\nexport const ItemContent = withContext(styledTag('div'), 'itemContent')\nexport const ItemLabel = withContext(styledTag('p'), 'itemLabel')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemAlpha = withContext(Tag, 'itemAlpha', {\n defaultProps: {\n severity: 'success',\n },\n})\n\nexport const Footer = withContext(styledTag('footer'), 'footer')\n\nexport const MiniaturizeTrigger = withContext(styledTag('div'), 'miniaturizeTrigger', {\n defaultProps: {\n onClick: (e: MouseEvent<HTMLDivElement>) => {\n e.preventDefault()\n const newState = readMiniaturizeState() === 'closed' ? 'open' : 'closed'\n writeMiniaturizeState(newState)\n e.currentTarget.setAttribute('data-state', newState)\n window.dispatchEvent(new Event('storage'))\n },\n className: 'app-navigation__miniaturizeTrigger',\n ...{\n // A getter, so the value is read when this object is SPREAD (on every render of the\n // trigger, in createStyleContext) and never when the module is evaluated. As a plain\n // value it read storage at import time, which threw SecurityError on the browsers\n // above and killed the whole chunk: the kit's barrel imports this module, so every\n // page that imports anything from @stokelp/ui went down with it, public marketing\n // pages that show no navigation included.\n get 'data-state'() {\n return readMiniaturizeState()\n },\n },\n children: (\n <Icon>\n <ArrowLeftCircleIcon />\n </Icon>\n ),\n },\n})\n\nexport interface AppNavigationProps extends ComponentProps<typeof Root> {}\nexport interface AppNavigationHeaderProps extends ComponentProps<typeof Header> {}\nexport interface AppNavigationBodyProps extends ComponentProps<typeof Body> {}\nexport interface AppNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface AppNavigationItemSubItemsProps extends ComponentProps<typeof ItemSubItems> {}\nexport interface AppNavigationItemContentProps extends ComponentProps<typeof ItemContent> {}\nexport type AppNavigationItemLabelProps = ComponentProps<typeof ItemLabel>\nexport interface AppNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface AppNavigationFooterProps extends ComponentProps<typeof Footer> {}\nexport interface AppNavigationMiniaturizeTriggerProps extends ComponentProps<typeof MiniaturizeTrigger> {}\n"],"mappings":"A,snBASM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,cAAe,CACtE,SAAU,EACZ,CAAC,EAEKyB,EAA0B,mBAa1BC,MAA+C,CACnD,GAAI,CACF,OAAO,aAAa,QAAQD,CAAuB,IAAM,SAAW,SAAW,MACjF,MAAQ,CACN,MAAO,MACT,CACF,EAEME,EAAyB,GAAkC,CAC/D,GAAI,CACF,aAAa,QAAQF,EAAyBG,CAAK,CACrD,MAAQ,CAGR,CACF,EAGMC,EAAoD,IAAA,EACxD5B,EAAAA,OAAAA,CAAO6B,CAAG,EAECN,EAAOO,EAAaF,EAAU,KAAK,EAAG,OAAQ,CACzD,aAAc,CAAC,CACjB,CAAC,EACYb,EAASgB,EAAYH,EAAU,QAAQ,EAAG,QAAQ,EAClDf,EAAOkB,EAAYH,EAAU,MAAM,EAAG,MAAM,EAE5CZ,EAAOe,EAAYH,EAAU,KAAK,EAAG,MAAM,EAC3CP,EAAeU,EAAYH,EAAU,KAAK,EAAG,cAAc,EAC3DV,EAAca,EAAYH,EAAU,KAAK,EAAG,aAAa,EACzDR,EAAYW,EAAYH,EAAU,GAAG,EAAG,WAAW,EACnDT,EAAWY,EAAY9B,EAAAA,KAAM,WAAY,CACpD,aAAc,CACZ,KAAM,IACR,CACF,CAAC,EACYgB,EAAYc,EAAY7B,EAAAA,IAAK,YAAa,CACrD,aAAc,CACZ,SAAU,SACZ,CACF,CAAC,EAEYY,EAASiB,EAAYH,EAAU,QAAQ,EAAG,QAAQ,EAElDN,EAAqBS,EAAYH,EAAU,KAAK,EAAG,qBAAsB,CACpF,aAAc,CACZ,QAAU,GAAkC,CAC1C,EAAE,eAAe,EACjB,IAAMI,EAAWP,EAAqB,IAAM,SAAW,OAAS,SAChEC,EAAsBM,CAAQ,EAC9B,EAAE,cAAc,aAAa,aAAcA,CAAQ,EACnD,OAAO,cAAc,IAAI,MAAM,SAAS,CAAC,CAC3C,EACA,UAAW,qCACX,GAAG,CAOD,GAAI,cAAe,CACjB,OAAOP,EAAqB,CAC9B,CACF,EACA,UACE,EAAAd,EAAA,IAAA,CAACV,EAAAA,KAAD,CAAA,UACE,EAAAU,EAAA,IAAA,CAACR,EAAAA,QAAD,CAAsB,CAAA,CAClB,CAAA,CAEV,CACF,CAAC,E"}
@@ -3,11 +3,11 @@ import { __exportAll as e } from "../../../_virtual/_rolldown/runtime.js";
3
3
  import { createStyleContext as t } from "../../../utils/slots.js";
4
4
  import { Tag as n } from "../../tag/Tag.js";
5
5
  import { Icon as r } from "../../icon/Icon.js";
6
- import i from "../../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js";
6
+ import i from "../../../node_modules/.pnpm/@heroicons_react@2.2.0_react@19.3.1/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js";
7
7
  import { styled as a } from "@stokelp/styled-system/jsx";
8
8
  import { appNavigation as o } from "@stokelp/styled-system/recipes";
9
9
  import { jsx as s } from "react/jsx-runtime";
10
- //#region src/components/app/navigation/AppNavigation.tsx
10
+ // src/components/app/navigation/AppNavigation.tsx
11
11
  var c = /* @__PURE__ */ e({
12
12
  Body: () => _,
13
13
  Footer: () => w,
@@ -42,7 +42,6 @@ var c = /* @__PURE__ */ e({
42
42
  } },
43
43
  children: /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(i, {}) })
44
44
  } });
45
- //#endregion
46
- export { c as AppNavigation_exports };
45
+ export { c as AppNavigation_exports, _ as Body, w as Footer, g as Header, v as Item, C as ItemAlpha, b as ItemContent, S as ItemIcon, x as ItemLabel, y as ItemSubItems, T as MiniaturizeTrigger, h as Root };
47
46
 
48
47
  //# sourceMappingURL=AppNavigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppNavigation.js","names":[],"sources":["../../../../src/components/app/navigation/AppNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { appNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX, type MouseEvent } from 'react'\nimport { ArrowLeftCircleIcon } from '@heroicons/react/24/outline'\nimport { Tag } from '~/components'\n\nconst { withProvider, withContext } = createStyleContext(appNavigation, {\n dataAttr: true,\n})\n\nconst MINIATURIZE_STORAGE_KEY = 'isMiniaturizeNav'\n\ntype MiniaturizeState = 'open' | 'closed'\n\n// Whether the nav is collapsed lives in localStorage: no backend field and no teammate\n// sync, and the recipe reads it off `data-state` on the trigger (see the `:has()` rule in\n// theme/recipes/app/navigation.ts).\n//\n// Both helpers swallow their own errors on purpose. A browser that blocks site data\n// (Android Chrome with cookies off, an embedded webview, Safari in lockdown) throws\n// SecurityError on the mere property access, and `typeof localStorage` does not guard\n// against that: it evaluates the same getter. It only guards against the server, where\n// the property is absent.\nconst readMiniaturizeState = (): MiniaturizeState => {\n try {\n return localStorage.getItem(MINIATURIZE_STORAGE_KEY) === 'closed' ? 'closed' : 'open'\n } catch {\n return 'open'\n }\n}\n\nconst writeMiniaturizeState = (state: MiniaturizeState): void => {\n try {\n localStorage.setItem(MINIATURIZE_STORAGE_KEY, state)\n } catch {\n // Storage blocked: the attribute set below still collapses the nav for this page\n // view, the choice just does not survive a reload.\n }\n}\n\n// See Table.tsx for why we wrap `styled(tag)` to pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root', {\n defaultProps: {},\n})\nexport const Header = withContext(styledTag('header'), 'header')\nexport const Body = withContext(styledTag('main'), 'body')\n\nexport const Item = withContext(styledTag('div'), 'item')\nexport const ItemSubItems = withContext(styledTag('div'), 'itemSubItems')\nexport const ItemContent = withContext(styledTag('div'), 'itemContent')\nexport const ItemLabel = withContext(styledTag('p'), 'itemLabel')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemAlpha = withContext(Tag, 'itemAlpha', {\n defaultProps: {\n severity: 'success',\n },\n})\n\nexport const Footer = withContext(styledTag('footer'), 'footer')\n\nexport const MiniaturizeTrigger = withContext(styledTag('div'), 'miniaturizeTrigger', {\n defaultProps: {\n onClick: (e: MouseEvent<HTMLDivElement>) => {\n e.preventDefault()\n const newState = readMiniaturizeState() === 'closed' ? 'open' : 'closed'\n writeMiniaturizeState(newState)\n e.currentTarget.setAttribute('data-state', newState)\n window.dispatchEvent(new Event('storage'))\n },\n className: 'app-navigation__miniaturizeTrigger',\n ...{\n // A getter, so the value is read when this object is SPREAD (on every render of the\n // trigger, in createStyleContext) and never when the module is evaluated. As a plain\n // value it read storage at import time, which threw SecurityError on the browsers\n // above and killed the whole chunk: the kit's barrel imports this module, so every\n // page that imports anything from @stokelp/ui went down with it, public marketing\n // pages that show no navigation included.\n get 'data-state'() {\n return readMiniaturizeState()\n },\n },\n children: (\n <Icon>\n <ArrowLeftCircleIcon />\n </Icon>\n ),\n },\n})\n\nexport interface AppNavigationProps extends ComponentProps<typeof Root> {}\nexport interface AppNavigationHeaderProps extends ComponentProps<typeof Header> {}\nexport interface AppNavigationBodyProps extends ComponentProps<typeof Body> {}\nexport interface AppNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface AppNavigationItemSubItemsProps extends ComponentProps<typeof ItemSubItems> {}\nexport interface AppNavigationItemContentProps extends ComponentProps<typeof ItemContent> {}\nexport type AppNavigationItemLabelProps = ComponentProps<typeof ItemLabel>\nexport interface AppNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface AppNavigationFooterProps extends ComponentProps<typeof Footer> {}\nexport interface AppNavigationMiniaturizeTriggerProps extends ComponentProps<typeof MiniaturizeTrigger> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;IASM,EAAE,iBAAc,mBAAgB,EAAmB,GAAe,EACtE,UAAU,GACZ,CAAC,GAEK,IAA0B,oBAa1B,UAA+C;CACnD,IAAI;EACF,OAAO,aAAa,QAAQ,CAAuB,MAAM,WAAW,WAAW;CACjF,QAAQ;EACN,OAAO;CACT;AACF,GAEM,KAAyB,MAAkC;CAC/D,IAAI;EACF,aAAa,QAAQ,GAAyB,CAAK;CACrD,QAAQ,CAGR;AACF,GAGM,KAAoD,MACxD,EAAO,CAAG,GAEC,IAAO,EAAa,EAAU,KAAK,GAAG,QAAQ,EACzD,cAAc,CAAC,EACjB,CAAC,GACY,IAAS,EAAY,EAAU,QAAQ,GAAG,QAAQ,GAClD,IAAO,EAAY,EAAU,MAAM,GAAG,MAAM,GAE5C,IAAO,EAAY,EAAU,KAAK,GAAG,MAAM,GAC3C,IAAe,EAAY,EAAU,KAAK,GAAG,cAAc,GAC3D,IAAc,EAAY,EAAU,KAAK,GAAG,aAAa,GACzD,IAAY,EAAY,EAAU,GAAG,GAAG,WAAW,GACnD,IAAW,EAAY,GAAM,YAAY,EACpD,cAAc,EACZ,MAAM,KACR,EACF,CAAC,GACY,IAAY,EAAY,GAAK,aAAa,EACrD,cAAc,EACZ,UAAU,UACZ,EACF,CAAC,GAEY,IAAS,EAAY,EAAU,QAAQ,GAAG,QAAQ,GAElD,IAAqB,EAAY,EAAU,KAAK,GAAG,sBAAsB,EACpF,cAAc;CACZ,UAAU,MAAkC;EAC1C,EAAE,eAAe;EACjB,IAAM,IAAW,EAAqB,MAAM,WAAW,SAAS;EAGhE,AAFA,EAAsB,CAAQ,GAC9B,EAAE,cAAc,aAAa,cAAc,CAAQ,GACnD,OAAO,cAAc,IAAI,MAAM,SAAS,CAAC;CAC3C;CACA,WAAW;CACX,GAAG,EAOD,IAAI,eAAe;EACjB,OAAO,EAAqB;CAC9B,EACF;CACA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,CAAsB,CAAA,EAClB,CAAA;AAEV,EACF,CAAC"}
1
+ {"version":3,"file":"AppNavigation.js","names":["ArrowLeftCircleIcon","ForwardRef","AppNavigation_exports","Body","Footer","Header","Item","ItemAlpha","ItemContent","ItemIcon","ItemLabel","ItemSubItems","MiniaturizeTrigger","Root","createStyleContext","appNavigation","MINIATURIZE_STORAGE_KEY","readMiniaturizeState","writeMiniaturizeState","state","styledTag","styled","tag","withProvider","withContext","Icon","Tag","newState"],"sources":["../../../../src/components/app/navigation/AppNavigation.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { appNavigation } from '@stokelp/styled-system/recipes'\nimport type { StyledComponent } from '@stokelp/styled-system/types'\nimport { createStyleContext } from '~/utils/slots'\nimport { Icon } from '~/components/icon/Icon'\nimport { ComponentProps, type JSX, type MouseEvent } from 'react'\nimport { ArrowLeftCircleIcon } from '@heroicons/react/24/outline'\nimport { Tag } from '~/components'\n\nconst { withProvider, withContext } = createStyleContext(appNavigation, {\n dataAttr: true,\n})\n\nconst MINIATURIZE_STORAGE_KEY = 'isMiniaturizeNav'\n\ntype MiniaturizeState = 'open' | 'closed'\n\n// Whether the nav is collapsed lives in localStorage: no backend field and no teammate\n// sync, and the recipe reads it off `data-state` on the trigger (see the `:has()` rule in\n// theme/recipes/app/navigation.ts).\n//\n// Both helpers swallow their own errors on purpose. A browser that blocks site data\n// (Android Chrome with cookies off, an embedded webview, Safari in lockdown) throws\n// SecurityError on the mere property access, and `typeof localStorage` does not guard\n// against that: it evaluates the same getter. It only guards against the server, where\n// the property is absent.\nconst readMiniaturizeState = (): MiniaturizeState => {\n try {\n return localStorage.getItem(MINIATURIZE_STORAGE_KEY) === 'closed' ? 'closed' : 'open'\n } catch {\n return 'open'\n }\n}\n\nconst writeMiniaturizeState = (state: MiniaturizeState): void => {\n try {\n localStorage.setItem(MINIATURIZE_STORAGE_KEY, state)\n } catch {\n // Storage blocked: the attribute set below still collapses the nav for this page\n // view, the choice just does not survive a reload.\n }\n}\n\n// See Table.tsx for why we wrap `styled(tag)` to pin the literal tag.\nconst styledTag = <T extends keyof JSX.IntrinsicElements>(tag: T): StyledComponent<T, {}> =>\n styled(tag) as StyledComponent<T, {}>\n\nexport const Root = withProvider(styledTag('nav'), 'root', {\n defaultProps: {},\n})\nexport const Header = withContext(styledTag('header'), 'header')\nexport const Body = withContext(styledTag('main'), 'body')\n\nexport const Item = withContext(styledTag('div'), 'item')\nexport const ItemSubItems = withContext(styledTag('div'), 'itemSubItems')\nexport const ItemContent = withContext(styledTag('div'), 'itemContent')\nexport const ItemLabel = withContext(styledTag('p'), 'itemLabel')\nexport const ItemIcon = withContext(Icon, 'itemIcon', {\n defaultProps: {\n size: 'sm',\n },\n})\nexport const ItemAlpha = withContext(Tag, 'itemAlpha', {\n defaultProps: {\n severity: 'success',\n },\n})\n\nexport const Footer = withContext(styledTag('footer'), 'footer')\n\nexport const MiniaturizeTrigger = withContext(styledTag('div'), 'miniaturizeTrigger', {\n defaultProps: {\n onClick: (e: MouseEvent<HTMLDivElement>) => {\n e.preventDefault()\n const newState = readMiniaturizeState() === 'closed' ? 'open' : 'closed'\n writeMiniaturizeState(newState)\n e.currentTarget.setAttribute('data-state', newState)\n window.dispatchEvent(new Event('storage'))\n },\n className: 'app-navigation__miniaturizeTrigger',\n ...{\n // A getter, so the value is read when this object is SPREAD (on every render of the\n // trigger, in createStyleContext) and never when the module is evaluated. As a plain\n // value it read storage at import time, which threw SecurityError on the browsers\n // above and killed the whole chunk: the kit's barrel imports this module, so every\n // page that imports anything from @stokelp/ui went down with it, public marketing\n // pages that show no navigation included.\n get 'data-state'() {\n return readMiniaturizeState()\n },\n },\n children: (\n <Icon>\n <ArrowLeftCircleIcon />\n </Icon>\n ),\n },\n})\n\nexport interface AppNavigationProps extends ComponentProps<typeof Root> {}\nexport interface AppNavigationHeaderProps extends ComponentProps<typeof Header> {}\nexport interface AppNavigationBodyProps extends ComponentProps<typeof Body> {}\nexport interface AppNavigationItemProps extends ComponentProps<typeof Item> {}\nexport interface AppNavigationItemSubItemsProps extends ComponentProps<typeof ItemSubItems> {}\nexport interface AppNavigationItemContentProps extends ComponentProps<typeof ItemContent> {}\nexport type AppNavigationItemLabelProps = ComponentProps<typeof ItemLabel>\nexport interface AppNavigationItemIconProps extends ComponentProps<typeof ItemIcon> {}\nexport interface AppNavigationFooterProps extends ComponentProps<typeof Footer> {}\nexport interface AppNavigationMiniaturizeTriggerProps extends ComponentProps<typeof MiniaturizeTrigger> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;A,IASM,EAAE,iBAAc,mBAAgBc,EAAmBC,GAAe,EACtE,UAAU,GACZ,CAAC,GAEKC,IAA0B,oBAa1BC,UAA+C;CACnD,IAAI;EACF,OAAO,aAAa,QAAQD,CAAuB,MAAM,WAAW,WAAW;CACjF,QAAQ;EACN,OAAO;CACT;AACF,GAEME,KAAyB,MAAkC;CAC/D,IAAI;EACF,aAAa,QAAQF,GAAyBG,CAAK;CACrD,QAAQ,CAGR;AACF,GAGMC,KAAoD,MACxDC,EAAOC,CAAG,GAECT,IAAOU,EAAaH,EAAU,KAAK,GAAG,QAAQ,EACzD,cAAc,CAAC,EACjB,CAAC,GACYf,IAASmB,EAAYJ,EAAU,QAAQ,GAAG,QAAQ,GAClDjB,IAAOqB,EAAYJ,EAAU,MAAM,GAAG,MAAM,GAE5Cd,IAAOkB,EAAYJ,EAAU,KAAK,GAAG,MAAM,GAC3CT,IAAea,EAAYJ,EAAU,KAAK,GAAG,cAAc,GAC3DZ,IAAcgB,EAAYJ,EAAU,KAAK,GAAG,aAAa,GACzDV,IAAYc,EAAYJ,EAAU,GAAG,GAAG,WAAW,GACnDX,IAAWe,EAAYC,GAAM,YAAY,EACpD,cAAc,EACZ,MAAM,KACR,EACF,CAAC,GACYlB,IAAYiB,EAAYE,GAAK,aAAa,EACrD,cAAc,EACZ,UAAU,UACZ,EACF,CAAC,GAEYtB,IAASoB,EAAYJ,EAAU,QAAQ,GAAG,QAAQ,GAElDR,IAAqBY,EAAYJ,EAAU,KAAK,GAAG,sBAAsB,EACpF,cAAc;CACZ,UAAU,MAAkC;EAC1C,EAAE,eAAe;EACjB,IAAMO,IAAWV,EAAqB,MAAM,WAAW,SAAS;EAGhE,AAFAC,EAAsBS,CAAQ,GAC9B,EAAE,cAAc,aAAa,cAAcA,CAAQ,GACnD,OAAO,cAAc,IAAI,MAAM,SAAS,CAAC;CAC3C;CACA,WAAW;CACX,GAAG,EAOD,IAAI,eAAe;EACjB,OAAOV,EAAqB;CAC9B,EACF;CACA,UACE,kBAACQ,GAAD,EAAA,UACE,kBAACzB,GAAD,CAAsB,CAAA,EAClB,CAAA;AAEV,EACF,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../../../utils/slots.cjs"),t=require("../../../../shared/ConditionalWrapper.cjs"),n=require("../../../flag/styled.cjs");let r=require("@ark-ui/react"),i=require("@stokelp/styled-system/jsx"),a=require("@stokelp/styled-system/recipes"),o=require("react"),s=require("react/jsx-runtime");var{withProvider:c,withContext:l}=e.createStyleContext(a.appNavigationLanguageSelect),u=c((0,i.styled)(r.Select.Root),`root`,{defaultProps:{loopFocus:!0}}),d=l((0,i.styled)(r.Select.Content),`content`),f=l((0,i.styled)(r.Select.Control),`control`),p=l((0,i.styled)(r.Select.Indicator),`indicator`),m=l((0,i.styled)(r.Select.Item),`item`),h=l((0,i.styled)(r.Select.ItemText),`itemText`),g=l((0,i.styled)(r.Select.Positioner),`positioner`),_=l((0,i.styled)(r.Select.Trigger),`trigger`),v=l((0,i.styled)(r.Select.ValueText),`valueText`),y=[{value:`fr`,label:`Français`,countryCode:`fr`},{value:`en`,label:`English`,countryCode:`gb`},{value:`es`,label:`Español`,countryCode:`es`},{value:`it`,label:`Italiano`,countryCode:`it`},{value:`pl`,label:`Polski`,countryCode:`pl`},{value:`de`,label:`Deutsch`,countryCode:`de`},{value:`nl`,label:`Nederlands`,countryCode:`nl`}],b=()=>{let e=(0,r.useSelectContext)();return(0,s.jsxs)(i.HStack,{gap:`space-8`,width:`full`,css:{"& > svg":{borderRadius:`3px`}},children:[(e.value&&e.value.length>0?e.collection.find(e.value[0]):null)?.flag,(0,s.jsx)(v,{truncate:!0})]})},x=({usePortal:e=!0,positioning:i,languages:a=y,...c})=>{let l=(0,o.useMemo)(()=>a.map(e=>({value:e.value,label:e.label,flag:(0,s.jsx)(n.Flag,{countryCode:e.countryCode})})),[a]);return(0,s.jsxs)(u,{lazyMount:!0,unmountOnExit:!0,multiple:!1,collection:(0,r.createListCollection)({items:l}),positioning:{sameWidth:!0,gutter:0,...i},"data-recipe":`app-navigation-language-select`,defaultValue:[`en`],...c,children:[(0,s.jsx)(f,{children:(0,s.jsxs)(_,{children:[(0,s.jsx)(b,{}),(0,s.jsx)(p,{asChild:!0,children:(0,s.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,s.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z`,fill:`currentColor`})})})]})}),(0,s.jsx)(t.ConditionalWrapper,{when:e,wrapper:e=>(0,s.jsx)(r.Portal,{children:e}),children:(0,s.jsx)(g,{children:(0,s.jsx)(d,{children:l.map(e=>(0,s.jsx)(m,{item:e,children:(0,s.jsx)(h,{truncate:!0,children:e.label})},e.value))})})}),(0,s.jsx)(r.Select.HiddenSelect,{})]})};exports.AppNavigationLanguageSelect=x,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=y;
1
+ "use client";const e=require("../../../../utils/slots.cjs"),t=require("../../../../shared/ConditionalWrapper.cjs"),n=require("../../../flag/styled.cjs");let r=require("@ark-ui/react"),i=require("@stokelp/styled-system/jsx"),a=require("@stokelp/styled-system/recipes"),o=require("react"),s=require("react/jsx-runtime");var{withProvider:c,withContext:l}=e.createStyleContext(a.appNavigationLanguageSelect),u=c((0,i.styled)(r.Select.Root),`root`,{defaultProps:{loopFocus:!0}}),d=l((0,i.styled)(r.Select.Content),`content`),f=l((0,i.styled)(r.Select.Control),`control`),p=l((0,i.styled)(r.Select.Indicator),`indicator`),m=l((0,i.styled)(r.Select.Item),`item`),h=l((0,i.styled)(r.Select.ItemText),`itemText`),g=l((0,i.styled)(r.Select.Positioner),`positioner`),_=l((0,i.styled)(r.Select.Trigger),`trigger`),v=l((0,i.styled)(r.Select.ValueText),`valueText`),y=[{value:`fr`,label:`Français`,countryCode:`fr`},{value:`en`,label:`English`,countryCode:`gb`},{value:`es`,label:`Español`,countryCode:`es`},{value:`it`,label:`Italiano`,countryCode:`it`},{value:`pl`,label:`Polski`,countryCode:`pl`},{value:`de`,label:`Deutsch`,countryCode:`de`},{value:`nl`,label:`Nederlands`,countryCode:`nl`}],b=()=>{let e=(0,r.useSelectContext)(),t=e.value&&e.value.length>0?e.collection.find(e.value[0]):null;return(0,s.jsxs)(i.HStack,{gap:`space-8`,width:`full`,css:{"& > svg":{borderRadius:`3px`}},children:[t?.flag,(0,s.jsx)(v,{truncate:!0})]})},x=({usePortal:e=!0,positioning:i,languages:a=y,...c})=>{let l=(0,o.useMemo)(()=>a.map(e=>({value:e.value,label:e.label,flag:(0,s.jsx)(n.Flag,{countryCode:e.countryCode})})),[a]),v=(0,r.createListCollection)({items:l});return(0,s.jsxs)(u,{lazyMount:!0,unmountOnExit:!0,multiple:!1,collection:v,positioning:{sameWidth:!0,gutter:0,...i},"data-recipe":`app-navigation-language-select`,defaultValue:[`en`],...c,children:[(0,s.jsx)(f,{children:(0,s.jsxs)(_,{children:[(0,s.jsx)(b,{}),(0,s.jsx)(p,{asChild:!0,children:(0,s.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,s.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z`,fill:`currentColor`})})})]})}),(0,s.jsx)(t.ConditionalWrapper,{when:e,wrapper:e=>(0,s.jsx)(r.Portal,{children:e}),children:(0,s.jsx)(g,{children:(0,s.jsx)(d,{children:l.map(e=>(0,s.jsx)(m,{item:e,children:(0,s.jsx)(h,{truncate:!0,children:e.label})},e.value))})})}),(0,s.jsx)(r.Select.HiddenSelect,{})]})};exports.AppNavigationLanguageSelect=x,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=y;
2
2
  //# sourceMappingURL=AppNavigationLanguageSelect.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppNavigationLanguageSelect.cjs","names":[],"sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport { type FC, type ReactNode, useMemo } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Flag, type FlagCountryCode } from '~/components/flag'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n /** The languages offered, in order. Defaults to DEFAULT_APP_NAVIGATION_LANGUAGES. */\n languages?: AppNavigationLanguage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nexport type AppNavigationLanguage = {\n /** Locale code, the value the select reports. */\n value: string\n /** The language's own name. */\n label: string\n /** Flag drawn next to the label in the trigger. */\n countryCode: FlagCountryCode\n}\n\n/** Used when the app passes no `languages`; apps pass their own locale registry instead. */\nexport const DEFAULT_APP_NAVIGATION_LANGUAGES: AppNavigationLanguage[] = [\n { value: 'fr', label: 'Français', countryCode: 'fr' },\n { value: 'en', label: 'English', countryCode: 'gb' },\n { value: 'es', label: 'Español', countryCode: 'es' },\n { value: 'it', label: 'Italiano', countryCode: 'it' },\n { value: 'pl', label: 'Polski', countryCode: 'pl' },\n { value: 'de', label: 'Deutsch', countryCode: 'de' },\n { value: 'nl', label: 'Nederlands', countryCode: 'nl' },\n]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n languages = DEFAULT_APP_NAVIGATION_LANGUAGES,\n ...props\n}) => {\n const items = useMemo<SelectItem[]>(\n () =>\n languages.map((language: AppNavigationLanguage) => ({\n value: language.value,\n label: language.label,\n flag: <Flag countryCode={language.countryCode} />,\n })),\n [languages],\n )\n const collection = createListCollection<SelectItem>({ items })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"AppNavigationLanguageSelect.cjs","names":["createStyleContext","appNavigationLanguageSelect","styled","ArkSelect","useSelectContext","HStack","useMemo","Flag","createListCollection","ConditionalWrapper","Portal","require_slots","require_ConditionalWrapper","require_styled","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","Root","withProvider","Content","withContext","Control","Indicator","Item","ItemText","Positioner","Trigger","ValueText","DEFAULT_APP_NAVIGATION_LANGUAGES","InnerTrigger","context","selected","AppNavigationLanguageSelect","props","items","languages","language","collection","positioning","usePortal","item"],"sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport { type FC, type ReactNode, useMemo } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Flag, type FlagCountryCode } from '~/components/flag'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n /** The languages offered, in order. Defaults to DEFAULT_APP_NAVIGATION_LANGUAGES. */\n languages?: AppNavigationLanguage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nexport type AppNavigationLanguage = {\n /** Locale code, the value the select reports. */\n value: string\n /** The language's own name. */\n label: string\n /** Flag drawn next to the label in the trigger. */\n countryCode: FlagCountryCode\n}\n\n/** Used when the app passes no `languages`; apps pass their own locale registry instead. */\nexport const DEFAULT_APP_NAVIGATION_LANGUAGES: AppNavigationLanguage[] = [\n { value: 'fr', label: 'Français', countryCode: 'fr' },\n { value: 'en', label: 'English', countryCode: 'gb' },\n { value: 'es', label: 'Español', countryCode: 'es' },\n { value: 'it', label: 'Italiano', countryCode: 'it' },\n { value: 'pl', label: 'Polski', countryCode: 'pl' },\n { value: 'de', label: 'Deutsch', countryCode: 'de' },\n { value: 'nl', label: 'Nederlands', countryCode: 'nl' },\n]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n languages = DEFAULT_APP_NAVIGATION_LANGUAGES,\n ...props\n}) => {\n const items = useMemo<SelectItem[]>(\n () =>\n languages.map((language: AppNavigationLanguage) => ({\n value: language.value,\n label: language.label,\n flag: <Flag countryCode={language.countryCode} />,\n })),\n [languages],\n )\n const collection = createListCollection<SelectItem>({ items })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":"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"}
@@ -7,7 +7,7 @@ import { HStack as s, styled as c } from "@stokelp/styled-system/jsx";
7
7
  import { appNavigationLanguageSelect as l } from "@stokelp/styled-system/recipes";
8
8
  import { useMemo as u } from "react";
9
9
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
10
- //#region src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx
10
+ // src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx
11
11
  var { withProvider: p, withContext: m } = e(l), h = p(c(i.Root), "root", { defaultProps: { loopFocus: !0 } }), g = m(c(i.Content), "content"), _ = m(c(i.Control), "control"), v = m(c(i.Indicator), "indicator"), y = m(c(i.Item), "item"), b = m(c(i.ItemText), "itemText"), x = m(c(i.Positioner), "positioner"), S = m(c(i.Trigger), "trigger"), C = m(c(i.ValueText), "valueText"), w = [
12
12
  {
13
13
  value: "fr",
@@ -45,24 +45,24 @@ var { withProvider: p, withContext: m } = e(l), h = p(c(i.Root), "root", { defau
45
45
  countryCode: "nl"
46
46
  }
47
47
  ], T = () => {
48
- let e = o();
48
+ let e = o(), t = e.value && e.value.length > 0 ? e.collection.find(e.value[0]) : null;
49
49
  return /* @__PURE__ */ f(s, {
50
50
  gap: "space-8",
51
51
  width: "full",
52
52
  css: { "& > svg": { borderRadius: "3px" } },
53
- children: [(e.value && e.value.length > 0 ? e.collection.find(e.value[0]) : null)?.flag, /* @__PURE__ */ d(C, { truncate: !0 })]
53
+ children: [t?.flag, /* @__PURE__ */ d(C, { truncate: !0 })]
54
54
  });
55
55
  }, E = ({ usePortal: e = !0, positioning: o, languages: s = w, ...c }) => {
56
56
  let l = u(() => s.map((e) => ({
57
57
  value: e.value,
58
58
  label: e.label,
59
59
  flag: /* @__PURE__ */ d(n, { countryCode: e.countryCode })
60
- })), [s]);
60
+ })), [s]), p = a({ items: l });
61
61
  return /* @__PURE__ */ f(h, {
62
62
  lazyMount: !0,
63
63
  unmountOnExit: !0,
64
64
  multiple: !1,
65
- collection: a({ items: l }),
65
+ collection: p,
66
66
  positioning: {
67
67
  sameWidth: !0,
68
68
  gutter: 0,
@@ -103,7 +103,6 @@ var { withProvider: p, withContext: m } = e(l), h = p(c(i.Root), "root", { defau
103
103
  ]
104
104
  });
105
105
  };
106
- //#endregion
107
106
  export { E as AppNavigationLanguageSelect, w as DEFAULT_APP_NAVIGATION_LANGUAGES };
108
107
 
109
108
  //# sourceMappingURL=AppNavigationLanguageSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppNavigationLanguageSelect.js","names":[],"sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport { type FC, type ReactNode, useMemo } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Flag, type FlagCountryCode } from '~/components/flag'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n /** The languages offered, in order. Defaults to DEFAULT_APP_NAVIGATION_LANGUAGES. */\n languages?: AppNavigationLanguage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nexport type AppNavigationLanguage = {\n /** Locale code, the value the select reports. */\n value: string\n /** The language's own name. */\n label: string\n /** Flag drawn next to the label in the trigger. */\n countryCode: FlagCountryCode\n}\n\n/** Used when the app passes no `languages`; apps pass their own locale registry instead. */\nexport const DEFAULT_APP_NAVIGATION_LANGUAGES: AppNavigationLanguage[] = [\n { value: 'fr', label: 'Français', countryCode: 'fr' },\n { value: 'en', label: 'English', countryCode: 'gb' },\n { value: 'es', label: 'Español', countryCode: 'es' },\n { value: 'it', label: 'Italiano', countryCode: 'it' },\n { value: 'pl', label: 'Polski', countryCode: 'pl' },\n { value: 'de', label: 'Deutsch', countryCode: 'de' },\n { value: 'nl', label: 'Nederlands', countryCode: 'nl' },\n]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n languages = DEFAULT_APP_NAVIGATION_LANGUAGES,\n ...props\n}) => {\n const items = useMemo<SelectItem[]>(\n () =>\n languages.map((language: AppNavigationLanguage) => ({\n value: language.value,\n label: language.label,\n flag: <Flag countryCode={language.countryCode} />,\n })),\n [languages],\n )\n const collection = createListCollection<SelectItem>({ items })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":";;;;;;;;;;AAiBA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAA2B,GAE9E,IAAO,EAAa,EAAO,EAAU,IAAgB,GAAG,QAAQ,EACpE,cAAc,EACZ,WAAW,GACb,EACF,CAAC,GAEK,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAY,EAAY,EAAO,EAAU,SAAS,GAAG,WAAW,GAChE,IAAO,EAAY,EAAO,EAAU,IAAI,GAAG,MAAM,GACjD,IAAW,EAAY,EAAO,EAAU,QAAQ,GAAG,UAAU,GAC7D,IAAa,EAAY,EAAO,EAAU,UAAU,GAAG,YAAY,GACnE,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAY,EAAY,EAAO,EAAU,SAAS,GAAG,WAAW,GAqBzD,IAA4D;CACvE;EAAE,OAAO;EAAM,OAAO;EAAY,aAAa;CAAK;CACpD;EAAE,OAAO;EAAM,OAAO;EAAW,aAAa;CAAK;CACnD;EAAE,OAAO;EAAM,OAAO;EAAW,aAAa;CAAK;CACnD;EAAE,OAAO;EAAM,OAAO;EAAY,aAAa;CAAK;CACpD;EAAE,OAAO;EAAM,OAAO;EAAU,aAAa;CAAK;CAClD;EAAE,OAAO;EAAM,OAAO;EAAW,aAAa;CAAK;CACnD;EAAE,OAAO;EAAM,OAAO;EAAc,aAAa;CAAK;AACxD,GAEM,UAAyB;CAC7B,IAAM,IAAU,EAAiB;CAGjC,OACE,kBAAC,GAAD;EAAQ,KAAI;EAAU,OAAM;EAAO,KAAK,EAAE,WAAW,EAAE,cAAc,MAAM,EAAE;YAA7E,EAHe,EAAQ,SAAS,EAAQ,MAAM,SAAS,IAAI,EAAQ,WAAW,KAAK,EAAQ,MAAM,EAAE,IAAI,OAI1F,MACX,kBAAC,GAAD,EAAW,UAAA,GAAU,CAAA,CACf;;AAEZ,GAEa,KAAqE,EAChF,eAAY,IACZ,gBACA,eAAY,GACZ,GAAG,QACC;CACJ,IAAM,IAAQ,QAEV,EAAU,KAAK,OAAqC;EAClD,OAAO,EAAS;EAChB,OAAO,EAAS;EAChB,MAAM,kBAAC,GAAD,EAAM,aAAa,EAAS,YAAc,CAAA;CAClD,EAAE,GACJ,CAAC,CAAS,CACZ;CAGA,OACE,kBAAC,GAAD;EACE,WAAA;EACA,eAAA;EACA,UAAU;EACE,YAPG,EAAiC,EAAE,SAAM,CAO5C;EACZ,aAAa;GAAE,WAAW;GAAM,QAAQ;GAAG,GAAG;EAAY;EAC1D,eAAY;EACZ,cAAc,CAAC,IAAI;EACnB,GAAI;YARN;GAUE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,CAAe,CAAA,GACf,kBAAC,GAAD;IAAW,SAAA;cACT,kBAAC,OAAD;KAAK,OAAM;KAAK,QAAO;KAAK,SAAQ;KAAY,MAAK;KAAO,OAAM;eAChE,kBAAC,QAAD;MACE,UAAS;MACT,UAAS;MACT,GAAE;MACF,MAAK;KACN,CAAA;IACE,CAAA;GACI,CAAA,CACJ,EAAA,CAAA,EACF,CAAA;GACT,kBAAC,GAAD;IAAoB,MAAM;IAAW,UAAS,MAAY,kBAAC,GAAD,EAAS,YAAiB,CAAA;cAClF,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACG,EAAM,KAAI,MACT,kBAAC,GAAD;KAA6B;eAC3B,kBAAC,GAAD;MAAU,UAAA;gBAAU,EAAK;KAAgB,CAAA;IACrC,GAFK,EAAK,KAEV,CACP,EACM,CAAA,EACC,CAAA;GACM,CAAA;GACpB,kBAAC,EAAU,cAAX,CAAyB,CAAA;EACrB;;AAEV"}
1
+ {"version":3,"file":"AppNavigationLanguageSelect.js","names":["ArkSelect","createStyleContext","appNavigationLanguageSelect","Root","withProvider","styled","Select","Content","withContext","Control","Indicator","Item","ItemText","Positioner","Trigger","ValueText","DEFAULT_APP_NAVIGATION_LANGUAGES","InnerTrigger","context","useSelectContext","selected","HStack","AppNavigationLanguageSelect","props","items","useMemo","languages","language","Flag","collection","createListCollection","positioning","ConditionalWrapper","usePortal","Portal","item"],"sources":["../../../../../src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectContext,\n} from '@ark-ui/react'\nimport { type FC, type ReactNode, useMemo } from 'react'\nimport { HStack, styled } from '@stokelp/styled-system/jsx'\n\nimport { appNavigationLanguageSelect } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Flag, type FlagCountryCode } from '~/components/flag'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\n\nconst { withProvider, withContext } = createStyleContext(appNavigationLanguageSelect)\n\nconst Root = withProvider(styled(ArkSelect.Root<SelectItem>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\ntype SelectItem = { value: string | number; label: string; disabled?: boolean; flag: ReactNode }\n\nexport type AppNavigationLanguageSelectProps = Omit<SelectRootProps<SelectItem>, 'collection' | 'multiple'> & {\n usePortal?: boolean\n /** The languages offered, in order. Defaults to DEFAULT_APP_NAVIGATION_LANGUAGES. */\n languages?: AppNavigationLanguage[]\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nexport type AppNavigationLanguage = {\n /** Locale code, the value the select reports. */\n value: string\n /** The language's own name. */\n label: string\n /** Flag drawn next to the label in the trigger. */\n countryCode: FlagCountryCode\n}\n\n/** Used when the app passes no `languages`; apps pass their own locale registry instead. */\nexport const DEFAULT_APP_NAVIGATION_LANGUAGES: AppNavigationLanguage[] = [\n { value: 'fr', label: 'Français', countryCode: 'fr' },\n { value: 'en', label: 'English', countryCode: 'gb' },\n { value: 'es', label: 'Español', countryCode: 'es' },\n { value: 'it', label: 'Italiano', countryCode: 'it' },\n { value: 'pl', label: 'Polski', countryCode: 'pl' },\n { value: 'de', label: 'Deutsch', countryCode: 'de' },\n { value: 'nl', label: 'Nederlands', countryCode: 'nl' },\n]\n\nconst InnerTrigger: FC = () => {\n const context = useSelectContext()\n const selected = context.value && context.value.length > 0 ? context.collection.find(context.value[0]) : null\n\n return (\n <HStack gap=\"space-8\" width=\"full\" css={{ '& > svg': { borderRadius: '3px' } }}>\n {selected?.flag}\n <ValueText truncate />\n </HStack>\n )\n}\n\nexport const AppNavigationLanguageSelect: FC<AppNavigationLanguageSelectProps> = ({\n usePortal = true,\n positioning,\n languages = DEFAULT_APP_NAVIGATION_LANGUAGES,\n ...props\n}) => {\n const items = useMemo<SelectItem[]>(\n () =>\n languages.map((language: AppNavigationLanguage) => ({\n value: language.value,\n label: language.label,\n flag: <Flag countryCode={language.countryCode} />,\n })),\n [languages],\n )\n const collection = createListCollection<SelectItem>({ items })\n\n return (\n <Root\n lazyMount\n unmountOnExit\n multiple={false}\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"app-navigation-language-select\"\n defaultValue={['en']}\n {...props}\n >\n <Control>\n <Trigger>\n <InnerTrigger />\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.map(item => (\n <Item key={item.value} item={item}>\n <ItemText truncate>{item.label}</ItemText>\n </Item>\n ))}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"PriceTag.cjs","names":[],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":"+LAiBA,IAAa,GAAA,EAAA,EAAA,aAAuD,EAAO,IAAQ,CACjF,GAAM,CAAC,EAAc,GAAiB,EAAA,SAAS,kBAAkB,CAAK,EAChE,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAa,EACpD,CAAE,YAAW,OAAM,QAAO,GAAG,GAAc,EAC3C,GAAA,EAAA,EAAA,UAAkB,CAAY,EAE9B,EAAU,CAAC,CAAC,EAElB,OACE,EAAA,EAAA,MAAC,OAAD,CAAW,MAAK,WAAA,EAAA,EAAA,IAAc,YAAa,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAAvF,EACE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAW,EAAO,eAAQ,CAAY,CAAA,EAC3C,GAAU,EAAA,EAAA,MAAC,OAAD,CAAM,UAAW,EAAO,cAAxB,CAA8B,KAAG,CAAW,IAAI,IACvD,GAEV,CAAC,EAED,EAAS,YAAc"}
1
+ {"version":3,"file":"PriceTag.cjs","names":["forwardRef","priceTag","splitCssProps","cx","css","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","_stokelp_styled_system_css","PriceTag","variantProps","priceTagProps","props","cssProps","localProps","rootProps","styles","hasUnit","unit","className","price"],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":"A,+LAiBA,IAAaU,GAAA,EAAWV,EAAAA,WAAAA,EAA4C,EAAO,IAAQ,CACjF,GAAM,CAACW,EAAcC,GAAiBX,EAAAA,SAAS,kBAAkBY,CAAK,EAChE,CAACC,EAAUC,IAAA,EAAcb,EAAAA,cAAAA,CAAcU,CAAa,EACpD,CAAE,YAAW,OAAM,QAAO,GAAGI,GAAcD,EAC3CE,GAAA,EAAShB,EAAAA,SAAAA,CAASU,CAAY,EAE9BO,EAAU,CAAC,CAACC,EAElB,OACE,EAAAX,EAAA,KAAA,CAAC,OAAD,CAAW,MAAK,WAAA,EAAWL,EAAAA,GAAAA,CAAG,YAAac,EAAO,MAAA,EAAMb,EAAAA,IAAAA,CAAIU,CAAQ,EAAGM,CAAS,EAAG,GAAIJ,EAAvF,SAAA,EACE,EAAAR,EAAA,IAAA,CAAC,OAAD,CAAM,UAAWS,EAAO,MAAQ,SAAAI,CAAY,CAAA,EAC3CH,GAAU,EAAAV,EAAA,KAAA,CAAC,OAAD,CAAM,UAAWS,EAAO,KAAxB,SAAA,CAA8B,KAAGE,CAAW,CAAI,CAAA,EAAA,IACvD,C,EAEV,CAAC,EAED,EAAS,YAAc,W"}
@@ -1,5 +1,5 @@
1
- import { JsxStyleProps, RecipeVariantProps, ConditionalValue } from '@stokelp/styled-system/types';
2
- import { priceTag } from '@stokelp/styled-system/recipes';
1
+ import { JsxStyleProps, RecipeVariantProps } from '@stokelp/styled-system/types';
2
+ import { priceTag, PriceTagVariantProps } from '@stokelp/styled-system/recipes';
3
3
  import { Assign, HTMLProps } from '@ark-ui/react';
4
4
  import { ReactNode, ForwardRefExoticComponent, HTMLAttributes, DetailedHTMLProps, RefAttributes } from 'react';
5
5
  type PriceTagVariants = RecipeVariantProps<typeof priceTag>;
@@ -7,9 +7,7 @@ export type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> & PriceTagV
7
7
  price: ReactNode;
8
8
  unit?: ReactNode;
9
9
  };
10
- export declare const PriceTag: ForwardRefExoticComponent<Omit<JsxStyleProps, "key" | keyof HTMLAttributes<HTMLSpanElement>> & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
11
- size?: ConditionalValue<"sm" | "md" | "lg"> | undefined;
12
- } & {
10
+ export declare const PriceTag: ForwardRefExoticComponent<Omit<JsxStyleProps, "key" | keyof HTMLAttributes<HTMLSpanElement>> & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & PriceTagVariantProps & {
13
11
  price: ReactNode;
14
12
  unit?: ReactNode;
15
13
  } & RefAttributes<HTMLSpanElement>>;
@@ -4,7 +4,7 @@ import { priceTag as t } from "@stokelp/styled-system/recipes";
4
4
  import { forwardRef as n } from "react";
5
5
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
6
  import { css as a, cx as o } from "@stokelp/styled-system/css";
7
- //#region src/components/app/price-tag/PriceTag.tsx
7
+ // src/components/app/price-tag/PriceTag.tsx
8
8
  var s = n((n, s) => {
9
9
  let [c, l] = t.splitVariantProps(n), [u, d] = e(l), { className: f, unit: p, price: m, ...h } = d, g = t(c), _ = !!p;
10
10
  return /* @__PURE__ */ i("span", {
@@ -21,7 +21,6 @@ var s = n((n, s) => {
21
21
  });
22
22
  });
23
23
  s.displayName = "PriceTag";
24
- //#endregion
25
24
  export { s as PriceTag };
26
25
 
27
26
  //# sourceMappingURL=PriceTag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceTag.js","names":[],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":";;;;;;;AAiBA,IAAa,IAAW,GAA4C,GAAO,MAAQ;CACjF,IAAM,CAAC,GAAc,KAAiB,EAAS,kBAAkB,CAAK,GAChE,CAAC,GAAU,KAAc,EAAc,CAAa,GACpD,EAAE,cAAW,SAAM,UAAO,GAAG,MAAc,GAC3C,IAAS,EAAS,CAAY,GAE9B,IAAU,CAAC,CAAC;CAElB,OACE,kBAAC,QAAD;EAAW;EAAK,WAAW,EAAG,aAAa,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAAvF,CACE,kBAAC,QAAD;GAAM,WAAW,EAAO;aAAQ;EAAY,CAAA,GAC3C,IAAU,kBAAC,QAAD;GAAM,WAAW,EAAO;aAAxB,CAA8B,MAAG,CAAW;OAAI,IACvD;;AAEV,CAAC;AAED,EAAS,cAAc"}
1
+ {"version":3,"file":"PriceTag.js","names":["PriceTag","forwardRef","variantProps","priceTagProps","priceTag","props","cssProps","localProps","splitCssProps","rootProps","styles","hasUnit","unit","cx","css","className","price"],"sources":["../../../../src/components/app/price-tag/PriceTag.tsx"],"sourcesContent":["import { type JsxStyleProps, type RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { priceTag } from '@stokelp/styled-system/recipes'\nimport { splitCssProps } from '@stokelp/styled-system/jsx'\nimport { type Assign, type HTMLProps } from '@ark-ui/react'\n\nimport type { ReactNode } from 'react'\nimport { forwardRef } from 'react'\n\ntype PriceTagVariants = RecipeVariantProps<typeof priceTag>\n\nexport type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> &\n PriceTagVariants & {\n price: ReactNode\n unit?: ReactNode\n }\n\nexport const PriceTag = forwardRef<HTMLSpanElement, PriceTagProps>((props, ref) => {\n const [variantProps, priceTagProps] = priceTag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(priceTagProps)\n const { className, unit, price, ...rootProps } = localProps\n const styles = priceTag(variantProps)\n\n const hasUnit = !!unit\n\n return (\n <span ref={ref} className={cx('price-tag', styles.root, css(cssProps), className)} {...rootProps}>\n <span className={styles.price}>{price}</span>\n {hasUnit ? <span className={styles.unit}>/ {unit}</span> : null}\n </span>\n )\n})\n\nPriceTag.displayName = 'PriceTag'\n"],"mappings":";;;;;;;AAiBA,IAAaA,IAAWC,GAA4C,GAAO,MAAQ;CACjF,IAAM,CAACC,GAAcC,KAAiBC,EAAS,kBAAkBC,CAAK,GAChE,CAACC,GAAUC,KAAcC,EAAcL,CAAa,GACpD,EAAE,cAAW,SAAM,UAAO,GAAGM,MAAcF,GAC3CG,IAASN,EAASF,CAAY,GAE9BS,IAAU,CAAC,CAACC;CAElB,OACE,kBAAC,QAAD;EAAW;EAAK,WAAWC,EAAG,aAAaH,EAAO,MAAMI,EAAIR,CAAQ,GAAGS,CAAS;EAAG,GAAIN;EAAvF,UAAA,CACE,kBAAC,QAAD;GAAM,WAAWC,EAAO;GAAQ,UAAAM;EAAY,CAAA,GAC3CL,IAAU,kBAAC,QAAD;GAAM,WAAWD,EAAO;GAAxB,UAAA,CAA8B,MAAGE,CAAW;EAAI,CAAA,IAAA,IACvD;;AAEV,CAAC;AAED,EAAS,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Badge:()=>_,BadgeList:()=>g,Content:()=>f,Description:()=>p,Highlight:()=>m,Image:()=>u,ImageContainer:()=>d,Root:()=>c,ShortLivedTag:()=>v,Tag:()=>h,Title:()=>l}),{withProvider:o,withContext:s}=t.createStyleContext(i.productCardCatalog,{dataAttr:!0}),c=o((0,r.styled)(n.ark.div),`root`),l=s((0,r.styled)(n.ark.h3),`title`),u=s((0,r.styled)(n.ark.img),`image`),d=s((0,r.styled)(n.ark.div),`imageContainer`),f=s((0,r.styled)(n.ark.div),`content`),p=s((0,r.styled)(n.ark.p),`description`),m=s((0,r.styled)(n.ark.span),`highlight`),h=s((0,r.styled)(n.ark.span),`tag`),g=s((0,r.styled)(n.ark.div),`badgeList`),_=s((0,r.styled)(n.ark.span),`badge`),v=s((0,r.styled)(n.ark.span),`shortLivedTag`);Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return a}});
1
+ "use client";const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Badge:()=>_,BadgeList:()=>g,Content:()=>f,Description:()=>p,Highlight:()=>m,Image:()=>u,ImageContainer:()=>d,Root:()=>c,ShortLivedTag:()=>v,Tag:()=>h,Title:()=>l}),{withProvider:o,withContext:s}=t.createStyleContext(i.productCardCatalog,{dataAttr:!0}),c=o((0,r.styled)(n.ark.div),`root`),l=s((0,r.styled)(n.ark.h3),`title`),u=s((0,r.styled)(n.ark.img),`image`),d=s((0,r.styled)(n.ark.div),`imageContainer`),f=s((0,r.styled)(n.ark.div),`content`),p=s((0,r.styled)(n.ark.p),`description`),m=s((0,r.styled)(n.ark.span),`highlight`),h=s((0,r.styled)(n.ark.span),`tag`),g=s((0,r.styled)(n.ark.div),`badgeList`),_=s((0,r.styled)(n.ark.span),`badge`),v=s((0,r.styled)(n.ark.span),`shortLivedTag`);exports.Badge=_,exports.BadgeList=g,exports.Content=f,exports.Description=p,exports.Highlight=m,exports.Image=u,exports.ImageContainer=d,exports.Root=c,exports.ShortLivedTag=v,exports.Tag=h,exports.Title=l,Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return a}});
2
2
  //# sourceMappingURL=styled.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","names":[],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":"0ZAMM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,mBAAoB,CAC3E,SAAU,EACZ,CAAC,EAEY,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,GAAG,EAAG,MAAM,EAC3C,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,EAAE,EAAG,OAAO,EAC3C,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,OAAO,EAC5C,EAAiB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,gBAAgB,EAC9D,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,SAAS,EAChD,EAAc,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,CAAC,EAAG,aAAa,EACtD,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,WAAW,EACrD,EAAM,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,KAAK,EACzC,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,GAAG,EAAG,WAAW,EACpD,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,OAAO,EAC7C,EAAgB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,eAAe"}
1
+ {"version":3,"file":"styled.cjs","names":["createStyleContext","productCardCatalog","styled","ark","require_runtime","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","styled_exports","Badge","BadgeList","Content","Description","Highlight","Image","ImageContainer","Root","ShortLivedTag","Tag","Title","withProvider","withContext"],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":"A,0ZAMM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,mBAAoB,CAC3E,SAAU,EACZ,CAAC,EAEYgB,EAAOI,GAAA,EAAanB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,MAAM,EAC3CiB,EAAQE,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,EAAE,EAAG,OAAO,EAC3CY,EAAQO,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,OAAO,EAC5Ca,EAAiBM,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,gBAAgB,EAC9DS,EAAUU,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,SAAS,EAChDU,EAAcS,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,CAAC,EAAG,aAAa,EACtDW,EAAYQ,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAI,EAAG,WAAW,EACrDgB,EAAMG,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAI,EAAG,KAAK,EACzCQ,EAAYW,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,GAAG,EAAG,WAAW,EACpDO,EAAQY,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAI,EAAG,OAAO,EAC7Ce,EAAgBI,GAAA,EAAYpB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAI,EAAG,eAAe,E"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ForwardRefExoticComponent, ClassAttributes, HTMLAttributes, ImgHTMLAttributes } from 'react';
2
2
  import { ComponentVariants } from '../../../utils/slots';
3
- import { StyledComponent } from '@stokelp/styled-system/types';
3
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
4
4
  import { PolymorphicProps } from '@ark-ui/react';
5
5
  import { ProductCardCatalogRecipe } from '@stokelp/styled-system/recipes';
6
6
  export declare const Root: ComponentVariants<StyledComponent<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, {}>, ProductCardCatalogRecipe>;
@@ -4,7 +4,7 @@ import { createStyleContext as t } from "../../../utils/slots.js";
4
4
  import { ark as n } from "@ark-ui/react";
5
5
  import { styled as r } from "@stokelp/styled-system/jsx";
6
6
  import { productCardCatalog as i } from "@stokelp/styled-system/recipes";
7
- //#region src/components/app/product-card-catalog/styled.ts
7
+ // src/components/app/product-card-catalog/styled.ts
8
8
  var a = /* @__PURE__ */ e({
9
9
  Badge: () => _,
10
10
  BadgeList: () => g,
@@ -18,7 +18,6 @@ var a = /* @__PURE__ */ e({
18
18
  Tag: () => h,
19
19
  Title: () => l
20
20
  }), { withProvider: o, withContext: s } = t(i, { dataAttr: !0 }), c = o(r(n.div), "root"), l = s(r(n.h3), "title"), u = s(r(n.img), "image"), d = s(r(n.div), "imageContainer"), f = s(r(n.div), "content"), p = s(r(n.p), "description"), m = s(r(n.span), "highlight"), h = s(r(n.span), "tag"), g = s(r(n.div), "badgeList"), _ = s(r(n.span), "badge"), v = s(r(n.span), "shortLivedTag");
21
- //#endregion
22
- export { a as styled_exports };
21
+ export { _ as Badge, g as BadgeList, f as Content, p as Description, m as Highlight, u as Image, d as ImageContainer, c as Root, v as ShortLivedTag, h as Tag, l as Title, a as styled_exports };
23
22
 
24
23
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":[],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAMM,EAAE,iBAAc,mBAAgB,EAAmB,GAAoB,EAC3E,UAAU,GACZ,CAAC,GAEY,IAAO,EAAa,EAAO,EAAI,GAAG,GAAG,MAAM,GAC3C,IAAQ,EAAY,EAAO,EAAI,EAAE,GAAG,OAAO,GAC3C,IAAQ,EAAY,EAAO,EAAI,GAAG,GAAG,OAAO,GAC5C,IAAiB,EAAY,EAAO,EAAI,GAAG,GAAG,gBAAgB,GAC9D,IAAU,EAAY,EAAO,EAAI,GAAG,GAAG,SAAS,GAChD,IAAc,EAAY,EAAO,EAAI,CAAC,GAAG,aAAa,GACtD,IAAY,EAAY,EAAO,EAAI,IAAI,GAAG,WAAW,GACrD,IAAM,EAAY,EAAO,EAAI,IAAI,GAAG,KAAK,GACzC,IAAY,EAAY,EAAO,EAAI,GAAG,GAAG,WAAW,GACpD,IAAQ,EAAY,EAAO,EAAI,IAAI,GAAG,OAAO,GAC7C,IAAgB,EAAY,EAAO,EAAI,IAAI,GAAG,eAAe"}
1
+ {"version":3,"file":"styled.js","names":["styled_exports","Badge","BadgeList","Content","Description","Highlight","Image","ImageContainer","Root","ShortLivedTag","Tag","Title","createStyleContext","productCardCatalog","withProvider","styled","ark","withContext"],"sources":["../../../../src/components/app/product-card-catalog/styled.ts"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { productCardCatalog } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(productCardCatalog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled(ark.div), 'root')\nexport const Title = withContext(styled(ark.h3), 'title')\nexport const Image = withContext(styled(ark.img), 'image')\nexport const ImageContainer = withContext(styled(ark.div), 'imageContainer')\nexport const Content = withContext(styled(ark.div), 'content')\nexport const Description = withContext(styled(ark.p), 'description')\nexport const Highlight = withContext(styled(ark.span), 'highlight')\nexport const Tag = withContext(styled(ark.span), 'tag')\nexport const BadgeList = withContext(styled(ark.div), 'badgeList')\nexport const Badge = withContext(styled(ark.span), 'badge')\nexport const ShortLivedTag = withContext(styled(ark.span), 'shortLivedTag')\n\nexport interface ProductCardCatalogProps extends ComponentProps<typeof Root> {}\nexport interface ProductCardCatalogTitleProps extends ComponentProps<typeof Title> {}\nexport interface ProductCardCatalogImageProps extends ComponentProps<typeof Image> {}\nexport interface ProductCardCatalogImageContainerProps extends ComponentProps<typeof ImageContainer> {}\nexport interface ProductCardCatalogContentProps extends ComponentProps<typeof Content> {}\nexport interface ProductCardCatalogDescriptionProps extends ComponentProps<typeof Description> {}\nexport interface ProductCardCatalogHighlightProps extends ComponentProps<typeof Highlight> {}\nexport interface ProductCardCatalogTagProps extends ComponentProps<typeof Tag> {}\nexport interface ProductCardCatalogBadgeListProps extends ComponentProps<typeof BadgeList> {}\nexport interface ProductCardCatalogBadgeProps extends ComponentProps<typeof Badge> {}\nexport interface ProductCardCatalogShortLivedTagProps extends ComponentProps<typeof ShortLivedTag> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;A,IAMM,EAAE,iBAAc,mBAAgBY,EAAmBC,GAAoB,EAC3E,UAAU,GACZ,CAAC,GAEYL,IAAOM,EAAaC,EAAOC,EAAI,GAAG,GAAG,MAAM,GAC3CL,IAAQM,EAAYF,EAAOC,EAAI,EAAE,GAAG,OAAO,GAC3CV,IAAQW,EAAYF,EAAOC,EAAI,GAAG,GAAG,OAAO,GAC5CT,IAAiBU,EAAYF,EAAOC,EAAI,GAAG,GAAG,gBAAgB,GAC9Db,IAAUc,EAAYF,EAAOC,EAAI,GAAG,GAAG,SAAS,GAChDZ,IAAca,EAAYF,EAAOC,EAAI,CAAC,GAAG,aAAa,GACtDX,IAAYY,EAAYF,EAAOC,EAAI,IAAI,GAAG,WAAW,GACrDN,IAAMO,EAAYF,EAAOC,EAAI,IAAI,GAAG,KAAK,GACzCd,IAAYe,EAAYF,EAAOC,EAAI,GAAG,GAAG,WAAW,GACpDf,IAAQgB,EAAYF,EAAOC,EAAI,IAAI,GAAG,OAAO,GAC7CP,IAAgBQ,EAAYF,EAAOC,EAAI,IAAI,GAAG,eAAe"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes"),a=require("react"),o=require("react/jsx-runtime"),s=require("@zag-js/utils");var c=e.__exportAll({Context:()=>_,Fallback:()=>g,Group:()=>p,Image:()=>h,Root:()=>m}),{withProvider:l,withContext:u}=t.createStyleContext(i.avatar),d=(0,r.styled)(n.ark.div,i.avatarGroup),f=(e,t)=>[e.slice(0,t),e.slice(t)],p=(0,a.forwardRef)(({children:e,size:t,max:n=4,overflowContent:r,...c},l)=>{let[u,p]=f(a.Children.toArray(e),n);return(0,o.jsxs)(d,{ref:l,size:t,...c,children:[a.Children.map(u,e=>(0,a.cloneElement)(e,i.avatar.raw({size:t}))),r&&p.length>0?(0,a.cloneElement)((0,s.runIfFn)(r,p.length),{"data-overflow":``}):null]})}),m=l((0,r.styled)(n.Avatar.Root),`root`),h=u((0,r.styled)(n.Avatar.Image),`image`),g=u((0,r.styled)(n.Avatar.Fallback),`fallback`),_=n.Avatar.Context;exports.Fallback=g,exports.Image=h,exports.Root=m,Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return c}});
1
+ "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes"),a=require("react"),o=require("react/jsx-runtime"),s=require("@zag-js/utils");var c=e.__exportAll({Context:()=>_,Fallback:()=>g,Group:()=>p,Image:()=>h,Root:()=>m}),{withProvider:l,withContext:u}=t.createStyleContext(i.avatar),d=(0,r.styled)(n.ark.div,i.avatarGroup),f=(e,t)=>[e.slice(0,t),e.slice(t)],p=(0,a.forwardRef)(({children:e,size:t,max:n=4,overflowContent:r,...c},l)=>{let[u,p]=f(a.Children.toArray(e),n);return(0,o.jsxs)(d,{ref:l,size:t,...c,children:[a.Children.map(u,e=>(0,a.cloneElement)(e,i.avatar.raw({size:t}))),r&&p.length>0?(0,a.cloneElement)((0,s.runIfFn)(r,p.length),{"data-overflow":``}):null]})}),m=l((0,r.styled)(n.Avatar.Root),`root`),h=u((0,r.styled)(n.Avatar.Image),`image`),g=u((0,r.styled)(n.Avatar.Fallback),`fallback`),_=n.Avatar.Context;exports.Context=_,exports.Fallback=g,exports.Group=p,exports.Image=h,exports.Root=m,Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return c}});
2
2
  //# sourceMappingURL=styled.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","names":[],"sources":["../../../src/components/avatar/styled.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ark, Avatar } from '@ark-ui/react'\nimport { runIfFn } from '@zag-js/utils'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { avatar, avatarGroup } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Children, cloneElement, ComponentProps, forwardRef, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(avatar)\n\nconst InnerGroup = styled(ark.div, avatarGroup)\n\nconst partition = (children: ReactNode[], max: number) => {\n const first = children.slice(0, max)\n const rest = children.slice(max)\n\n return [first, rest]\n}\n\nexport const Group = forwardRef<HTMLDivElement, AvatarGroupProps>(\n ({ children, size, max = 4, overflowContent, ...props }, ref) => {\n const [avatars, overflow] = partition(Children.toArray(children), max)\n\n return (\n <InnerGroup ref={ref} size={size} {...props}>\n {Children.map(avatars, a => {\n return cloneElement(a as any, avatar.raw({ size }))\n })}\n {overflowContent && overflow.length > 0\n ? cloneElement(runIfFn(overflowContent, overflow.length) as any, { 'data-overflow': '' })\n : null}\n </InnerGroup>\n )\n },\n)\n\nexport const Root = withProvider(styled(Avatar.Root), 'root')\nexport const Image = withContext(styled(Avatar.Image), 'image')\nexport const Fallback = withContext(styled(Avatar.Fallback), 'fallback')\nexport const Context = Avatar.Context\n\nexport interface AvatarProps extends ComponentProps<typeof Root> {}\nexport type AvatarGroupProps = ComponentProps<typeof InnerGroup> & {\n overflowContent?: ((count: number) => ReactNode) | ReactNode\n max?: number\n}\nexport interface AvatarImageProps extends ComponentProps<typeof Image> {}\nexport interface AvatarFallbackProps extends ComponentProps<typeof Fallback> {}\nexport interface AvatarContextProps extends ComponentProps<typeof Context> {}\n"],"mappings":"+XAQM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,MAAM,EAEzD,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,IAAK,EAAA,WAAW,EAExC,GAAa,EAAuB,IAIjC,CAHO,EAAS,MAAM,EAAG,CAGxB,EAFK,EAAS,MAAM,CAEb,CAAI,EAGR,GAAA,EAAA,EAAA,aACV,CAAE,WAAU,OAAM,MAAM,EAAG,kBAAiB,GAAG,GAAS,IAAQ,CAC/D,GAAM,CAAC,EAAS,GAAY,EAAU,EAAA,SAAS,QAAQ,CAAQ,EAAG,CAAG,EAErE,OACE,EAAA,EAAA,MAAC,EAAD,CAAiB,MAAW,OAAM,GAAI,WAAtC,CACG,EAAA,SAAS,IAAI,EAAS,IACrB,EAAA,EAAA,cAAoB,EAAU,EAAA,OAAO,IAAI,CAAE,MAAK,CAAC,CAAC,CACnD,EACA,GAAmB,EAAS,OAAS,GAAA,EAAA,EAAA,eAAA,EAAA,EAAA,SACb,EAAiB,EAAS,MAAM,EAAU,CAAE,gBAAiB,EAAG,CAAC,EACtF,IACM,GAEhB,CACF,EAEa,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,OAAO,IAAI,EAAG,MAAM,EAC/C,EAAQ,GAAA,EAAA,EAAA,QAAmB,EAAA,OAAO,KAAK,EAAG,OAAO,EACjD,EAAW,GAAA,EAAA,EAAA,QAAmB,EAAA,OAAO,QAAQ,EAAG,UAAU,EAC1D,EAAU,EAAA,OAAO"}
1
+ {"version":3,"file":"styled.cjs","names":["createStyleContext","avatar","styled","ark","avatarGroup","forwardRef","Children","cloneElement","runIfFn","Avatar","require_runtime","require_slots","_ark_ui_react","_stokelp_styled_system_jsx","_stokelp_styled_system_recipes","react","react_jsx_runtime","_zag_js_utils","styled_exports","Context","Fallback","Group","Image","Root","InnerGroup","partition","children","max","props","avatars","overflow","a","overflowContent","withProvider","withContext"],"sources":["../../../src/components/avatar/styled.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ark, Avatar } from '@ark-ui/react'\nimport { runIfFn } from '@zag-js/utils'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { avatar, avatarGroup } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Children, cloneElement, ComponentProps, forwardRef, ReactNode } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(avatar)\n\nconst InnerGroup = styled(ark.div, avatarGroup)\n\nconst partition = (children: ReactNode[], max: number) => {\n const first = children.slice(0, max)\n const rest = children.slice(max)\n\n return [first, rest]\n}\n\nexport const Group = forwardRef<HTMLDivElement, AvatarGroupProps>(\n ({ children, size, max = 4, overflowContent, ...props }, ref) => {\n const [avatars, overflow] = partition(Children.toArray(children), max)\n\n return (\n <InnerGroup ref={ref} size={size} {...props}>\n {Children.map(avatars, a => {\n return cloneElement(a as any, avatar.raw({ size }))\n })}\n {overflowContent && overflow.length > 0\n ? cloneElement(runIfFn(overflowContent, overflow.length) as any, { 'data-overflow': '' })\n : null}\n </InnerGroup>\n )\n },\n)\n\nexport const Root = withProvider(styled(Avatar.Root), 'root')\nexport const Image = withContext(styled(Avatar.Image), 'image')\nexport const Fallback = withContext(styled(Avatar.Fallback), 'fallback')\nexport const Context = Avatar.Context\n\nexport interface AvatarProps extends ComponentProps<typeof Root> {}\nexport type AvatarGroupProps = ComponentProps<typeof InnerGroup> & {\n overflowContent?: ((count: number) => ReactNode) | ReactNode\n max?: number\n}\nexport interface AvatarImageProps extends ComponentProps<typeof Image> {}\nexport interface AvatarFallbackProps extends ComponentProps<typeof Fallback> {}\nexport interface AvatarContextProps extends ComponentProps<typeof Context> {}\n"],"mappings":"A,+XAQM,CAAE,eAAc,eAAgBA,EAAAA,mBAAmBC,EAAAA,MAAM,EAEzDuB,GAAA,EAAatB,EAAAA,OAAAA,CAAOC,EAAAA,IAAI,IAAKC,EAAAA,WAAW,EAExCqB,GAAa,EAAuB,IAIjC,CAHOC,EAAS,MAAM,EAAGC,CAGxB,EAFKD,EAAS,MAAMC,CAEb,CAAI,EAGRN,GAAA,EAAQhB,EAAAA,WAAAA,EAClB,CAAE,WAAU,OAAM,MAAM,EAAG,kBAAiB,GAAGuB,GAAS,IAAQ,CAC/D,GAAM,CAACC,EAASC,GAAYL,EAAUnB,EAAAA,SAAS,QAAQoB,CAAQ,EAAGC,CAAG,EAErE,OACE,EAAAX,EAAA,KAAA,CAACQ,EAAD,CAAiB,MAAW,OAAM,GAAII,EAAtC,SAAA,CACGtB,EAAAA,SAAS,IAAIuB,EAAS,IACrB,EAAOtB,EAAAA,aAAAA,CAAawB,EAAU9B,EAAAA,OAAO,IAAI,CAAE,MAAK,CAAC,CAAC,CACnD,EACA+B,GAAmBF,EAAS,OAAS,GAAA,EAClCvB,EAAAA,aAAAA,EAAAA,EAAaC,EAAAA,QAAAA,CAAQwB,EAAiBF,EAAS,MAAM,EAAU,CAAE,gBAAiB,EAAG,CAAC,EACtF,IACM,C,EAEhB,CACF,EAEaP,EAAOU,GAAA,EAAa/B,EAAAA,OAAAA,CAAOO,EAAAA,OAAO,IAAI,EAAG,MAAM,EAC/Ca,EAAQY,GAAA,EAAYhC,EAAAA,OAAAA,CAAOO,EAAAA,OAAO,KAAK,EAAG,OAAO,EACjDW,EAAWc,GAAA,EAAYhC,EAAAA,OAAAA,CAAOO,EAAAA,OAAO,QAAQ,EAAG,UAAU,EAC1DU,EAAUV,EAAAA,OAAO,Q"}
@@ -1,13 +1,10 @@
1
1
  import { Avatar } from '@ark-ui/react';
2
2
  import { ComponentProps, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
3
- import { StyledComponent } from '@stokelp/styled-system/types';
3
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
4
+ import { Assign, AnyProps } from '@stokelp/styled-system/types';
5
+ import { AvatarGroupVariantProps, AvatarRecipe } from '@stokelp/styled-system/recipes';
4
6
  import { ComponentVariants } from '../../utils/slots';
5
- import { AvatarRecipe } from '@stokelp/styled-system/recipes';
6
- declare const InnerGroup: StyledComponent<any, {
7
- [x: string]: unknown;
8
- [x: number]: unknown;
9
- size?: unknown;
10
- }>;
7
+ declare const InnerGroup: StyledComponent<any, Assign<AnyProps, AvatarGroupVariantProps>>;
11
8
  export declare const Group: ForwardRefExoticComponent<any>;
12
9
  export declare const Root: ComponentVariants<StyledComponent<ForwardRefExoticComponent<Avatar.RootProps & RefAttributes<HTMLDivElement>>, {}>, AvatarRecipe>;
13
10
  export declare const Image: StyledComponent<ForwardRefExoticComponent<Avatar.ImageProps & RefAttributes<HTMLImageElement>>, {}>;