@stokelp/ui 2.103.0 → 2.104.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 (710) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  2. package/dist/_virtual/_rolldown/runtime.js +21 -0
  3. package/dist/components/accordion/Accordion.cjs +2 -2
  4. package/dist/components/accordion/Accordion.cjs.map +1 -1
  5. package/dist/components/accordion/Accordion.js +22 -27
  6. package/dist/components/accordion/Accordion.js.map +1 -1
  7. package/dist/components/action-card/ActionCard.cjs +2 -2
  8. package/dist/components/action-card/ActionCard.cjs.map +1 -1
  9. package/dist/components/action-card/ActionCard.js +23 -26
  10. package/dist/components/action-card/ActionCard.js.map +1 -1
  11. package/dist/components/alert/Alert.cjs +2 -2
  12. package/dist/components/alert/Alert.cjs.map +1 -1
  13. package/dist/components/alert/Alert.js +117 -84
  14. package/dist/components/alert/Alert.js.map +1 -1
  15. package/dist/components/app/mobile-card/MobileCardEntityRow.cjs +2 -2
  16. package/dist/components/app/mobile-card/MobileCardEntityRow.cjs.map +1 -1
  17. package/dist/components/app/mobile-card/MobileCardEntityRow.js +44 -25
  18. package/dist/components/app/mobile-card/MobileCardEntityRow.js.map +1 -1
  19. package/dist/components/app/mobile-card/MobileCardHeader.cjs +2 -2
  20. package/dist/components/app/mobile-card/MobileCardHeader.cjs.map +1 -1
  21. package/dist/components/app/mobile-card/MobileCardHeader.js +18 -20
  22. package/dist/components/app/mobile-card/MobileCardHeader.js.map +1 -1
  23. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs +2 -2
  24. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs.map +1 -1
  25. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js +31 -13
  26. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js.map +1 -1
  27. package/dist/components/app/mobile-card/MobileCardShell.cjs +2 -2
  28. package/dist/components/app/mobile-card/MobileCardShell.cjs.map +1 -1
  29. package/dist/components/app/mobile-card/MobileCardShell.js +17 -19
  30. package/dist/components/app/mobile-card/MobileCardShell.js.map +1 -1
  31. package/dist/components/app/mobile-card/MobileCardSkeleton.cjs +2 -2
  32. package/dist/components/app/mobile-card/MobileCardSkeleton.cjs.map +1 -1
  33. package/dist/components/app/mobile-card/MobileCardSkeleton.js +45 -22
  34. package/dist/components/app/mobile-card/MobileCardSkeleton.js.map +1 -1
  35. package/dist/components/app/mobile-navigation/MobileNavigation.cjs +2 -2
  36. package/dist/components/app/mobile-navigation/MobileNavigation.cjs.map +1 -1
  37. package/dist/components/app/mobile-navigation/MobileNavigation.js +16 -18
  38. package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
  39. package/dist/components/app/navigation/AppNavigation.cjs +2 -2
  40. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
  41. package/dist/components/app/navigation/AppNavigation.js +35 -47
  42. package/dist/components/app/navigation/AppNavigation.js.map +1 -1
  43. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +2 -2
  44. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
  45. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +188 -119
  46. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
  47. package/dist/components/app/price-tag/PriceTag.cjs +2 -2
  48. package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
  49. package/dist/components/app/price-tag/PriceTag.js +25 -19
  50. package/dist/components/app/price-tag/PriceTag.js.map +1 -1
  51. package/dist/components/app/product-card-catalog/styled.cjs +2 -2
  52. package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
  53. package/dist/components/app/product-card-catalog/styled.js +23 -21
  54. package/dist/components/app/product-card-catalog/styled.js.map +1 -1
  55. package/dist/components/avatar/styled.cjs +2 -2
  56. package/dist/components/avatar/styled.cjs.map +1 -1
  57. package/dist/components/avatar/styled.d.ts +2 -2
  58. package/dist/components/avatar/styled.js +28 -27
  59. package/dist/components/avatar/styled.js.map +1 -1
  60. package/dist/components/box/Box.cjs +2 -2
  61. package/dist/components/box/Box.cjs.map +1 -1
  62. package/dist/components/box/Box.js +11 -10
  63. package/dist/components/box/Box.js.map +1 -1
  64. package/dist/components/breadcrumb/Breadcrumb.cjs +2 -2
  65. package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
  66. package/dist/components/breadcrumb/Breadcrumb.d.ts +4 -6
  67. package/dist/components/breadcrumb/Breadcrumb.js +39 -35
  68. package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
  69. package/dist/components/button/Button.cjs +2 -2
  70. package/dist/components/button/Button.cjs.map +1 -1
  71. package/dist/components/button/Button.js +9 -8
  72. package/dist/components/button/Button.js.map +1 -1
  73. package/dist/components/button-filter/ButtonFilter.cjs +2 -2
  74. package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
  75. package/dist/components/button-filter/ButtonFilter.js +9 -8
  76. package/dist/components/button-filter/ButtonFilter.js.map +1 -1
  77. package/dist/components/chat/Chat.cjs +2 -2
  78. package/dist/components/chat/Chat.cjs.map +1 -1
  79. package/dist/components/chat/Chat.d.ts +6 -4
  80. package/dist/components/chat/Chat.js +27 -26
  81. package/dist/components/chat/Chat.js.map +1 -1
  82. package/dist/components/chat/ChatDocumentMessage.cjs +2 -2
  83. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
  84. package/dist/components/chat/ChatDocumentMessage.js +32 -31
  85. package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
  86. package/dist/components/chat/ChatMessage.cjs +2 -2
  87. package/dist/components/chat/ChatMessage.cjs.map +1 -1
  88. package/dist/components/chat/ChatMessage.js +8 -7
  89. package/dist/components/chat/ChatMessage.js.map +1 -1
  90. package/dist/components/chat/ChatProfileAvatar.cjs +2 -2
  91. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
  92. package/dist/components/chat/ChatProfileAvatar.js +24 -16
  93. package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
  94. package/dist/components/chat/ChatTextInput.cjs +2 -2
  95. package/dist/components/chat/ChatTextInput.cjs.map +1 -1
  96. package/dist/components/chat/ChatTextInput.d.ts +2 -2
  97. package/dist/components/chat/ChatTextInput.js +44 -52
  98. package/dist/components/chat/ChatTextInput.js.map +1 -1
  99. package/dist/components/checkbox/Checkbox.cjs +2 -2
  100. package/dist/components/checkbox/Checkbox.cjs.map +1 -1
  101. package/dist/components/checkbox/Checkbox.js +36 -34
  102. package/dist/components/checkbox/Checkbox.js.map +1 -1
  103. package/dist/components/checkbox-card/CheckboxCard.cjs +2 -2
  104. package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
  105. package/dist/components/checkbox-card/CheckboxCard.js +33 -38
  106. package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
  107. package/dist/components/checkbox-card/namespace.cjs +2 -2
  108. package/dist/components/checkbox-card/namespace.cjs.map +1 -1
  109. package/dist/components/checkbox-card/namespace.js +14 -9
  110. package/dist/components/checkbox-card/namespace.js.map +1 -1
  111. package/dist/components/chip/Chip.cjs +2 -2
  112. package/dist/components/chip/Chip.cjs.map +1 -1
  113. package/dist/components/chip/Chip.js +23 -23
  114. package/dist/components/chip/Chip.js.map +1 -1
  115. package/dist/components/collapsible/styled.cjs +2 -2
  116. package/dist/components/collapsible/styled.cjs.map +1 -1
  117. package/dist/components/collapsible/styled.js +15 -11
  118. package/dist/components/collapsible/styled.js.map +1 -1
  119. package/dist/components/combobox/Combobox.cjs +2 -2
  120. package/dist/components/combobox/Combobox.cjs.map +1 -1
  121. package/dist/components/combobox/Combobox.js +206 -173
  122. package/dist/components/combobox/Combobox.js.map +1 -1
  123. package/dist/components/date-picker/DatePicker.cjs +2 -2
  124. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  125. package/dist/components/date-picker/DatePicker.d.ts +2 -2
  126. package/dist/components/date-picker/DatePicker.js +151 -127
  127. package/dist/components/date-picker/DatePicker.js.map +1 -1
  128. package/dist/components/dialog/styled.cjs +2 -2
  129. package/dist/components/dialog/styled.cjs.map +1 -1
  130. package/dist/components/dialog/styled.js +75 -65
  131. package/dist/components/dialog/styled.js.map +1 -1
  132. package/dist/components/drawer/Drawer.cjs +2 -2
  133. package/dist/components/drawer/Drawer.cjs.map +1 -1
  134. package/dist/components/drawer/Drawer.js +62 -63
  135. package/dist/components/drawer/Drawer.js.map +1 -1
  136. package/dist/components/flag/styled.cjs +2 -2
  137. package/dist/components/flag/styled.cjs.map +1 -1
  138. package/dist/components/flag/styled.d.ts +2 -2
  139. package/dist/components/flag/styled.js +8437 -3751
  140. package/dist/components/flag/styled.js.map +1 -1
  141. package/dist/components/form/FormControl.cjs +2 -2
  142. package/dist/components/form/FormControl.cjs.map +1 -1
  143. package/dist/components/form/FormControl.d.ts +2 -2
  144. package/dist/components/form/FormControl.js +13 -18
  145. package/dist/components/form/FormControl.js.map +1 -1
  146. package/dist/components/form/FormHelperText.cjs +2 -2
  147. package/dist/components/form/FormHelperText.cjs.map +1 -1
  148. package/dist/components/form/FormHelperText.js +8 -9
  149. package/dist/components/form/FormHelperText.js.map +1 -1
  150. package/dist/components/form/FormLabel.cjs +2 -2
  151. package/dist/components/form/FormLabel.cjs.map +1 -1
  152. package/dist/components/form/FormLabel.d.ts +2 -2
  153. package/dist/components/form/FormLabel.js +38 -33
  154. package/dist/components/form/FormLabel.js.map +1 -1
  155. package/dist/components/heading/Heading.cjs +2 -2
  156. package/dist/components/heading/Heading.cjs.map +1 -1
  157. package/dist/components/heading/Heading.js +14 -10
  158. package/dist/components/heading/Heading.js.map +1 -1
  159. package/dist/components/icon/Icon.cjs +2 -2
  160. package/dist/components/icon/Icon.cjs.map +1 -1
  161. package/dist/components/icon/Icon.d.ts +2 -2
  162. package/dist/components/icon/Icon.js +15 -10
  163. package/dist/components/icon/Icon.js.map +1 -1
  164. package/dist/components/icon-button/IconButton.cjs +2 -2
  165. package/dist/components/icon-button/IconButton.cjs.map +1 -1
  166. package/dist/components/icon-button/IconButton.d.ts +2 -3
  167. package/dist/components/icon-button/IconButton.js +8 -7
  168. package/dist/components/icon-button/IconButton.js.map +1 -1
  169. package/dist/components/illustration/Illustration.cjs +2 -2
  170. package/dist/components/illustration/Illustration.cjs.map +1 -1
  171. package/dist/components/illustration/Illustration.js +35 -39
  172. package/dist/components/illustration/Illustration.js.map +1 -1
  173. package/dist/components/illustration/patterns.cjs +2 -2
  174. package/dist/components/illustration/patterns.cjs.map +1 -1
  175. package/dist/components/illustration/patterns.js +5563 -8897
  176. package/dist/components/illustration/patterns.js.map +1 -1
  177. package/dist/components/input/HighlightedInput.cjs +2 -2
  178. package/dist/components/input/HighlightedInput.cjs.map +1 -1
  179. package/dist/components/input/HighlightedInput.d.ts +9 -12
  180. package/dist/components/input/HighlightedInput.js +43 -58
  181. package/dist/components/input/HighlightedInput.js.map +1 -1
  182. package/dist/components/input/Input.cjs +2 -2
  183. package/dist/components/input/Input.cjs.map +1 -1
  184. package/dist/components/input/Input.d.ts +1 -2
  185. package/dist/components/input/Input.js +12 -13
  186. package/dist/components/input/Input.js.map +1 -1
  187. package/dist/components/input/InputAddon.cjs +2 -2
  188. package/dist/components/input/InputAddon.cjs.map +1 -1
  189. package/dist/components/input/InputAddon.js +8 -9
  190. package/dist/components/input/InputAddon.js.map +1 -1
  191. package/dist/components/input/InputGroup.cjs +2 -2
  192. package/dist/components/input/InputGroup.cjs.map +1 -1
  193. package/dist/components/input/InputGroup.js +8 -9
  194. package/dist/components/input/InputGroup.js.map +1 -1
  195. package/dist/components/input/PhoneNumberInput.cjs +2 -2
  196. package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
  197. package/dist/components/input/PhoneNumberInput.js +21 -23
  198. package/dist/components/input/PhoneNumberInput.js.map +1 -1
  199. package/dist/components/menu/Menu.cjs +2 -2
  200. package/dist/components/menu/Menu.cjs.map +1 -1
  201. package/dist/components/menu/Menu.js +32 -28
  202. package/dist/components/menu/Menu.js.map +1 -1
  203. package/dist/components/pagination/Pagination.cjs +2 -2
  204. package/dist/components/pagination/Pagination.cjs.map +1 -1
  205. package/dist/components/pagination/Pagination.js +76 -84
  206. package/dist/components/pagination/Pagination.js.map +1 -1
  207. package/dist/components/pagination/use-pagination.cjs +2 -2
  208. package/dist/components/pagination/use-pagination.cjs.map +1 -1
  209. package/dist/components/pagination/use-pagination.js +56 -54
  210. package/dist/components/pagination/use-pagination.js.map +1 -1
  211. package/dist/components/popover/Popover.cjs +2 -2
  212. package/dist/components/popover/Popover.cjs.map +1 -1
  213. package/dist/components/popover/Popover.js +21 -25
  214. package/dist/components/popover/Popover.js.map +1 -1
  215. package/dist/components/radio-button-group/RadioButtonGroup.cjs +2 -2
  216. package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
  217. package/dist/components/radio-button-group/RadioButtonGroup.js +20 -20
  218. package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
  219. package/dist/components/radio-card-group/RadioCardGroup.cjs +2 -2
  220. package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
  221. package/dist/components/radio-card-group/RadioCardGroup.js +21 -22
  222. package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
  223. package/dist/components/radio-card-group/namespace.cjs +2 -2
  224. package/dist/components/radio-card-group/namespace.cjs.map +1 -1
  225. package/dist/components/radio-card-group/namespace.js +15 -10
  226. package/dist/components/radio-card-group/namespace.js.map +1 -1
  227. package/dist/components/radio-group/RadioGroup.cjs +2 -2
  228. package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
  229. package/dist/components/radio-group/RadioGroup.js +21 -21
  230. package/dist/components/radio-group/RadioGroup.js.map +1 -1
  231. package/dist/components/select/Select.cjs +2 -2
  232. package/dist/components/select/Select.cjs.map +1 -1
  233. package/dist/components/select/Select.js +194 -141
  234. package/dist/components/select/Select.js.map +1 -1
  235. package/dist/components/select-language/SelectLanguage.cjs +2 -2
  236. package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
  237. package/dist/components/select-language/SelectLanguage.js +114 -88
  238. package/dist/components/select-language/SelectLanguage.js.map +1 -1
  239. package/dist/components/status-tag-select/StatusTagSelect.cjs +2 -2
  240. package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
  241. package/dist/components/status-tag-select/StatusTagSelect.js +93 -115
  242. package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
  243. package/dist/components/switch/Switch.cjs +2 -2
  244. package/dist/components/switch/Switch.cjs.map +1 -1
  245. package/dist/components/switch/Switch.js +30 -18
  246. package/dist/components/switch/Switch.js.map +1 -1
  247. package/dist/components/switch-card/SwitchCard.cjs +2 -2
  248. package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
  249. package/dist/components/switch-card/SwitchCard.js +28 -25
  250. package/dist/components/switch-card/SwitchCard.js.map +1 -1
  251. package/dist/components/switch-card/namespace.cjs +2 -2
  252. package/dist/components/switch-card/namespace.cjs.map +1 -1
  253. package/dist/components/switch-card/namespace.js +14 -9
  254. package/dist/components/switch-card/namespace.js.map +1 -1
  255. package/dist/components/table/Table.cjs +2 -2
  256. package/dist/components/table/Table.cjs.map +1 -1
  257. package/dist/components/table/Table.d.ts +3 -4
  258. package/dist/components/table/Table.js +133 -109
  259. package/dist/components/table/Table.js.map +1 -1
  260. package/dist/components/table/TableProvider.cjs +2 -2
  261. package/dist/components/table/TableProvider.cjs.map +1 -1
  262. package/dist/components/table/TableProvider.js +36 -39
  263. package/dist/components/table/TableProvider.js.map +1 -1
  264. package/dist/components/tabs/Tabs.cjs +2 -2
  265. package/dist/components/tabs/Tabs.cjs.map +1 -1
  266. package/dist/components/tabs/Tabs.js +18 -26
  267. package/dist/components/tabs/Tabs.js.map +1 -1
  268. package/dist/components/tag/Tag.cjs +2 -2
  269. package/dist/components/tag/Tag.cjs.map +1 -1
  270. package/dist/components/tag/Tag.js +22 -16
  271. package/dist/components/tag/Tag.js.map +1 -1
  272. package/dist/components/text/Text.cjs +2 -2
  273. package/dist/components/text/Text.cjs.map +1 -1
  274. package/dist/components/text/Text.js +12 -11
  275. package/dist/components/text/Text.js.map +1 -1
  276. package/dist/components/textarea/Textarea.cjs +2 -2
  277. package/dist/components/textarea/Textarea.cjs.map +1 -1
  278. package/dist/components/textarea/Textarea.d.ts +1 -2
  279. package/dist/components/textarea/Textarea.js +9 -8
  280. package/dist/components/textarea/Textarea.js.map +1 -1
  281. package/dist/components/tooltip/Tooltip.cjs +2 -2
  282. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  283. package/dist/components/tooltip/Tooltip.js +38 -42
  284. package/dist/components/tooltip/Tooltip.js.map +1 -1
  285. package/dist/icons/index.cjs +2 -2
  286. package/dist/icons/index.cjs.map +1 -1
  287. package/dist/icons/index.js +65 -58
  288. package/dist/icons/index.js.map +1 -1
  289. package/dist/index.cjs +1 -2
  290. package/dist/index.js +66 -191
  291. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +2 -2
  292. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -1
  293. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +22 -27
  294. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -1
  295. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +2 -2
  296. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -1
  297. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +22 -27
  298. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -1
  299. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +2 -2
  300. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -1
  301. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +22 -27
  302. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -1
  303. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +2 -2
  304. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -1
  305. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +22 -27
  306. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -1
  307. package/dist/node_modules/deepmerge/dist/cjs.cjs +2 -2
  308. package/dist/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
  309. package/dist/node_modules/deepmerge/dist/cjs.js +76 -80
  310. package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -1
  311. package/dist/preset.cjs +2 -2
  312. package/dist/preset.cjs.map +1 -1
  313. package/dist/preset.js +30 -31
  314. package/dist/preset.js.map +1 -1
  315. package/dist/shared/ConditionalWrapper.cjs +2 -2
  316. package/dist/shared/ConditionalWrapper.cjs.map +1 -1
  317. package/dist/shared/ConditionalWrapper.js +6 -5
  318. package/dist/shared/ConditionalWrapper.js.map +1 -1
  319. package/dist/shared/assets/icons.cjs +2 -2
  320. package/dist/shared/assets/icons.cjs.map +1 -1
  321. package/dist/shared/assets/icons.js +30 -22
  322. package/dist/shared/assets/icons.js.map +1 -1
  323. package/dist/shared/hooks/useUncontrolled.cjs +2 -2
  324. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
  325. package/dist/shared/hooks/useUncontrolled.js +19 -16
  326. package/dist/shared/hooks/useUncontrolled.js.map +1 -1
  327. package/dist/shared/utils/events.cjs +2 -2
  328. package/dist/shared/utils/events.cjs.map +1 -1
  329. package/dist/shared/utils/events.js +7 -6
  330. package/dist/shared/utils/events.js.map +1 -1
  331. package/dist/theme/breakpoints.cjs +2 -2
  332. package/dist/theme/breakpoints.cjs.map +1 -1
  333. package/dist/theme/breakpoints.js +10 -9
  334. package/dist/theme/breakpoints.js.map +1 -1
  335. package/dist/theme/conditions.cjs +2 -2
  336. package/dist/theme/conditions.cjs.map +1 -1
  337. package/dist/theme/conditions.js +23 -24
  338. package/dist/theme/conditions.js.map +1 -1
  339. package/dist/theme/containers.cjs +2 -2
  340. package/dist/theme/containers.cjs.map +1 -1
  341. package/dist/theme/containers.js +18 -17
  342. package/dist/theme/containers.js.map +1 -1
  343. package/dist/theme/globalCss.cjs +4 -4
  344. package/dist/theme/globalCss.cjs.map +1 -1
  345. package/dist/theme/globalCss.js +94 -99
  346. package/dist/theme/globalCss.js.map +1 -1
  347. package/dist/theme/keyframes.cjs +2 -2
  348. package/dist/theme/keyframes.cjs.map +1 -1
  349. package/dist/theme/keyframes.js +256 -171
  350. package/dist/theme/keyframes.js.map +1 -1
  351. package/dist/theme/recipes/accordion.cjs +2 -2
  352. package/dist/theme/recipes/accordion.cjs.map +1 -1
  353. package/dist/theme/recipes/accordion.js +93 -110
  354. package/dist/theme/recipes/accordion.js.map +1 -1
  355. package/dist/theme/recipes/action-card.cjs +2 -2
  356. package/dist/theme/recipes/action-card.cjs.map +1 -1
  357. package/dist/theme/recipes/action-card.js +88 -84
  358. package/dist/theme/recipes/action-card.js.map +1 -1
  359. package/dist/theme/recipes/alert.cjs +2 -2
  360. package/dist/theme/recipes/alert.cjs.map +1 -1
  361. package/dist/theme/recipes/alert.js +52 -65
  362. package/dist/theme/recipes/alert.js.map +1 -1
  363. package/dist/theme/recipes/app/mobile-navigation.cjs +2 -2
  364. package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
  365. package/dist/theme/recipes/app/mobile-navigation.js +94 -108
  366. package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
  367. package/dist/theme/recipes/app/navigation-language-select.cjs +2 -2
  368. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
  369. package/dist/theme/recipes/app/navigation-language-select.js +135 -148
  370. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
  371. package/dist/theme/recipes/app/navigation.cjs +2 -2
  372. package/dist/theme/recipes/app/navigation.cjs.map +1 -1
  373. package/dist/theme/recipes/app/navigation.js +214 -269
  374. package/dist/theme/recipes/app/navigation.js.map +1 -1
  375. package/dist/theme/recipes/app/price-tag.cjs +2 -2
  376. package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
  377. package/dist/theme/recipes/app/price-tag.js +59 -70
  378. package/dist/theme/recipes/app/price-tag.js.map +1 -1
  379. package/dist/theme/recipes/app/product-card-catalog.cjs +2 -2
  380. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
  381. package/dist/theme/recipes/app/product-card-catalog.js +189 -194
  382. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
  383. package/dist/theme/recipes/avatar-group.cjs +2 -2
  384. package/dist/theme/recipes/avatar-group.cjs.map +1 -1
  385. package/dist/theme/recipes/avatar-group.js +27 -38
  386. package/dist/theme/recipes/avatar-group.js.map +1 -1
  387. package/dist/theme/recipes/avatar.cjs +2 -2
  388. package/dist/theme/recipes/avatar.cjs.map +1 -1
  389. package/dist/theme/recipes/avatar.js +97 -95
  390. package/dist/theme/recipes/avatar.js.map +1 -1
  391. package/dist/theme/recipes/breadcrumb.cjs +2 -2
  392. package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
  393. package/dist/theme/recipes/breadcrumb.js +35 -31
  394. package/dist/theme/recipes/breadcrumb.js.map +1 -1
  395. package/dist/theme/recipes/button-filter.cjs +2 -2
  396. package/dist/theme/recipes/button-filter.cjs.map +1 -1
  397. package/dist/theme/recipes/button-filter.js +57 -60
  398. package/dist/theme/recipes/button-filter.js.map +1 -1
  399. package/dist/theme/recipes/button.cjs +2 -2
  400. package/dist/theme/recipes/button.cjs.map +1 -1
  401. package/dist/theme/recipes/button.js +287 -295
  402. package/dist/theme/recipes/button.js.map +1 -1
  403. package/dist/theme/recipes/chat/chat-document-message.cjs +2 -2
  404. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
  405. package/dist/theme/recipes/chat/chat-document-message.js +38 -43
  406. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
  407. package/dist/theme/recipes/chat/chat-input-text.cjs +2 -2
  408. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
  409. package/dist/theme/recipes/chat/chat-input-text.js +26 -27
  410. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
  411. package/dist/theme/recipes/chat/chat-message.cjs +2 -2
  412. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
  413. package/dist/theme/recipes/chat/chat-message.js +49 -45
  414. package/dist/theme/recipes/chat/chat-message.js.map +1 -1
  415. package/dist/theme/recipes/chat/chat-profile-avatar.cjs +2 -2
  416. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
  417. package/dist/theme/recipes/chat/chat-profile-avatar.js +20 -25
  418. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
  419. package/dist/theme/recipes/chat/chat.cjs +2 -2
  420. package/dist/theme/recipes/chat/chat.cjs.map +1 -1
  421. package/dist/theme/recipes/chat/chat.js +51 -56
  422. package/dist/theme/recipes/chat/chat.js.map +1 -1
  423. package/dist/theme/recipes/checkbox-card.cjs +2 -2
  424. package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
  425. package/dist/theme/recipes/checkbox-card.js +44 -40
  426. package/dist/theme/recipes/checkbox-card.js.map +1 -1
  427. package/dist/theme/recipes/checkbox-group.cjs +2 -2
  428. package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
  429. package/dist/theme/recipes/checkbox-group.js +13 -12
  430. package/dist/theme/recipes/checkbox-group.js.map +1 -1
  431. package/dist/theme/recipes/checkbox.cjs +2 -2
  432. package/dist/theme/recipes/checkbox.cjs.map +1 -1
  433. package/dist/theme/recipes/checkbox.js +110 -129
  434. package/dist/theme/recipes/checkbox.js.map +1 -1
  435. package/dist/theme/recipes/chip.cjs +2 -2
  436. package/dist/theme/recipes/chip.cjs.map +1 -1
  437. package/dist/theme/recipes/chip.js +144 -182
  438. package/dist/theme/recipes/chip.js.map +1 -1
  439. package/dist/theme/recipes/collapsible.cjs +2 -2
  440. package/dist/theme/recipes/collapsible.cjs.map +1 -1
  441. package/dist/theme/recipes/collapsible.js +30 -28
  442. package/dist/theme/recipes/collapsible.js.map +1 -1
  443. package/dist/theme/recipes/combobox.cjs +2 -2
  444. package/dist/theme/recipes/combobox.cjs.map +1 -1
  445. package/dist/theme/recipes/combobox.js +149 -176
  446. package/dist/theme/recipes/combobox.js.map +1 -1
  447. package/dist/theme/recipes/common/group-card.cjs +2 -2
  448. package/dist/theme/recipes/common/group-card.cjs.map +1 -1
  449. package/dist/theme/recipes/common/group-card.js +60 -80
  450. package/dist/theme/recipes/common/group-card.js.map +1 -1
  451. package/dist/theme/recipes/datepicker.cjs +2 -2
  452. package/dist/theme/recipes/datepicker.cjs.map +1 -1
  453. package/dist/theme/recipes/datepicker.js +149 -176
  454. package/dist/theme/recipes/datepicker.js.map +1 -1
  455. package/dist/theme/recipes/dialog.cjs +2 -2
  456. package/dist/theme/recipes/dialog.cjs.map +1 -1
  457. package/dist/theme/recipes/dialog.js +137 -151
  458. package/dist/theme/recipes/dialog.js.map +1 -1
  459. package/dist/theme/recipes/drawer.cjs +2 -2
  460. package/dist/theme/recipes/drawer.cjs.map +1 -1
  461. package/dist/theme/recipes/drawer.js +105 -125
  462. package/dist/theme/recipes/drawer.js.map +1 -1
  463. package/dist/theme/recipes/flag.cjs +2 -2
  464. package/dist/theme/recipes/flag.cjs.map +1 -1
  465. package/dist/theme/recipes/flag.js +21 -30
  466. package/dist/theme/recipes/flag.js.map +1 -1
  467. package/dist/theme/recipes/form/control.cjs +2 -2
  468. package/dist/theme/recipes/form/control.cjs.map +1 -1
  469. package/dist/theme/recipes/form/control.js +27 -34
  470. package/dist/theme/recipes/form/control.js.map +1 -1
  471. package/dist/theme/recipes/form/helper-text.cjs +2 -2
  472. package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
  473. package/dist/theme/recipes/form/helper-text.js +14 -13
  474. package/dist/theme/recipes/form/helper-text.js.map +1 -1
  475. package/dist/theme/recipes/form/label.cjs +2 -2
  476. package/dist/theme/recipes/form/label.cjs.map +1 -1
  477. package/dist/theme/recipes/form/label.js +47 -48
  478. package/dist/theme/recipes/form/label.js.map +1 -1
  479. package/dist/theme/recipes/heading.cjs +2 -2
  480. package/dist/theme/recipes/heading.cjs.map +1 -1
  481. package/dist/theme/recipes/heading.js +25 -34
  482. package/dist/theme/recipes/heading.js.map +1 -1
  483. package/dist/theme/recipes/highlightedInput.cjs +2 -2
  484. package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
  485. package/dist/theme/recipes/highlightedInput.js +54 -45
  486. package/dist/theme/recipes/highlightedInput.js.map +1 -1
  487. package/dist/theme/recipes/icon-button.cjs +2 -2
  488. package/dist/theme/recipes/icon-button.cjs.map +1 -1
  489. package/dist/theme/recipes/icon-button.js +81 -89
  490. package/dist/theme/recipes/icon-button.js.map +1 -1
  491. package/dist/theme/recipes/icon.cjs +2 -2
  492. package/dist/theme/recipes/icon.cjs.map +1 -1
  493. package/dist/theme/recipes/icon.js +39 -42
  494. package/dist/theme/recipes/icon.js.map +1 -1
  495. package/dist/theme/recipes/illustration.cjs +2 -2
  496. package/dist/theme/recipes/illustration.cjs.map +1 -1
  497. package/dist/theme/recipes/illustration.js +29 -48
  498. package/dist/theme/recipes/illustration.js.map +1 -1
  499. package/dist/theme/recipes/index.cjs +2 -2
  500. package/dist/theme/recipes/index.cjs.map +1 -1
  501. package/dist/theme/recipes/index.js +127 -127
  502. package/dist/theme/recipes/index.js.map +1 -1
  503. package/dist/theme/recipes/input-addon.cjs +2 -2
  504. package/dist/theme/recipes/input-addon.cjs.map +1 -1
  505. package/dist/theme/recipes/input-addon.js +24 -24
  506. package/dist/theme/recipes/input-addon.js.map +1 -1
  507. package/dist/theme/recipes/input-group.cjs +2 -2
  508. package/dist/theme/recipes/input-group.cjs.map +1 -1
  509. package/dist/theme/recipes/input-group.js +40 -49
  510. package/dist/theme/recipes/input-group.js.map +1 -1
  511. package/dist/theme/recipes/input.cjs +2 -2
  512. package/dist/theme/recipes/input.cjs.map +1 -1
  513. package/dist/theme/recipes/input.js +48 -61
  514. package/dist/theme/recipes/input.js.map +1 -1
  515. package/dist/theme/recipes/menu.cjs +2 -2
  516. package/dist/theme/recipes/menu.cjs.map +1 -1
  517. package/dist/theme/recipes/menu.js +96 -100
  518. package/dist/theme/recipes/menu.js.map +1 -1
  519. package/dist/theme/recipes/pagination.cjs +2 -2
  520. package/dist/theme/recipes/pagination.cjs.map +1 -1
  521. package/dist/theme/recipes/pagination.js +76 -71
  522. package/dist/theme/recipes/pagination.js.map +1 -1
  523. package/dist/theme/recipes/phone-number-input.cjs +2 -2
  524. package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
  525. package/dist/theme/recipes/phone-number-input.js +55 -66
  526. package/dist/theme/recipes/phone-number-input.js.map +1 -1
  527. package/dist/theme/recipes/popover.cjs +2 -2
  528. package/dist/theme/recipes/popover.cjs.map +1 -1
  529. package/dist/theme/recipes/popover.js +30 -28
  530. package/dist/theme/recipes/popover.js.map +1 -1
  531. package/dist/theme/recipes/radio-button-group.cjs +2 -2
  532. package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
  533. package/dist/theme/recipes/radio-button-group.js +83 -94
  534. package/dist/theme/recipes/radio-button-group.js.map +1 -1
  535. package/dist/theme/recipes/radio-card-group.cjs +2 -2
  536. package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
  537. package/dist/theme/recipes/radio-card-group.js +64 -67
  538. package/dist/theme/recipes/radio-card-group.js.map +1 -1
  539. package/dist/theme/recipes/radio-group.cjs +2 -2
  540. package/dist/theme/recipes/radio-group.cjs.map +1 -1
  541. package/dist/theme/recipes/radio-group.js +101 -118
  542. package/dist/theme/recipes/radio-group.js.map +1 -1
  543. package/dist/theme/recipes/select-language.cjs +2 -2
  544. package/dist/theme/recipes/select-language.cjs.map +1 -1
  545. package/dist/theme/recipes/select-language.js +93 -112
  546. package/dist/theme/recipes/select-language.js.map +1 -1
  547. package/dist/theme/recipes/select.cjs +2 -2
  548. package/dist/theme/recipes/select.cjs.map +1 -1
  549. package/dist/theme/recipes/select.js +194 -206
  550. package/dist/theme/recipes/select.js.map +1 -1
  551. package/dist/theme/recipes/status-tag-select.cjs +2 -2
  552. package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
  553. package/dist/theme/recipes/status-tag-select.js +162 -175
  554. package/dist/theme/recipes/status-tag-select.js.map +1 -1
  555. package/dist/theme/recipes/switch-card.cjs +2 -2
  556. package/dist/theme/recipes/switch-card.cjs.map +1 -1
  557. package/dist/theme/recipes/switch-card.js +43 -42
  558. package/dist/theme/recipes/switch-card.js.map +1 -1
  559. package/dist/theme/recipes/switch.cjs +2 -2
  560. package/dist/theme/recipes/switch.cjs.map +1 -1
  561. package/dist/theme/recipes/switch.js +71 -86
  562. package/dist/theme/recipes/switch.js.map +1 -1
  563. package/dist/theme/recipes/table-container.cjs +2 -2
  564. package/dist/theme/recipes/table-container.cjs.map +1 -1
  565. package/dist/theme/recipes/table-container.js +19 -18
  566. package/dist/theme/recipes/table-container.js.map +1 -1
  567. package/dist/theme/recipes/table-empty-row.cjs +2 -2
  568. package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
  569. package/dist/theme/recipes/table-empty-row.js +17 -16
  570. package/dist/theme/recipes/table-empty-row.js.map +1 -1
  571. package/dist/theme/recipes/table-group-title.cjs +2 -2
  572. package/dist/theme/recipes/table-group-title.cjs.map +1 -1
  573. package/dist/theme/recipes/table-group-title.js +26 -33
  574. package/dist/theme/recipes/table-group-title.js.map +1 -1
  575. package/dist/theme/recipes/table.cjs +2 -2
  576. package/dist/theme/recipes/table.cjs.map +1 -1
  577. package/dist/theme/recipes/table.js +111 -109
  578. package/dist/theme/recipes/table.js.map +1 -1
  579. package/dist/theme/recipes/tabs-chip.cjs +2 -2
  580. package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
  581. package/dist/theme/recipes/tabs-chip.js +43 -46
  582. package/dist/theme/recipes/tabs-chip.js.map +1 -1
  583. package/dist/theme/recipes/tabs.cjs +2 -2
  584. package/dist/theme/recipes/tabs.cjs.map +1 -1
  585. package/dist/theme/recipes/tabs.js +92 -125
  586. package/dist/theme/recipes/tabs.js.map +1 -1
  587. package/dist/theme/recipes/tag.cjs +2 -2
  588. package/dist/theme/recipes/tag.cjs.map +1 -1
  589. package/dist/theme/recipes/tag.js +110 -121
  590. package/dist/theme/recipes/tag.js.map +1 -1
  591. package/dist/theme/recipes/text.cjs +2 -2
  592. package/dist/theme/recipes/text.cjs.map +1 -1
  593. package/dist/theme/recipes/text.js +25 -38
  594. package/dist/theme/recipes/text.js.map +1 -1
  595. package/dist/theme/recipes/textarea.cjs +2 -2
  596. package/dist/theme/recipes/textarea.cjs.map +1 -1
  597. package/dist/theme/recipes/textarea.js +15 -14
  598. package/dist/theme/recipes/textarea.js.map +1 -1
  599. package/dist/theme/recipes/tooltip.cjs +2 -2
  600. package/dist/theme/recipes/tooltip.cjs.map +1 -1
  601. package/dist/theme/recipes/tooltip.js +47 -62
  602. package/dist/theme/recipes/tooltip.js.map +1 -1
  603. package/dist/theme/semantic-tokens/colors.cjs +2 -2
  604. package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
  605. package/dist/theme/semantic-tokens/colors.js +189 -140
  606. package/dist/theme/semantic-tokens/colors.js.map +1 -1
  607. package/dist/theme/semantic-tokens/index.cjs +2 -2
  608. package/dist/theme/semantic-tokens/index.cjs.map +1 -1
  609. package/dist/theme/semantic-tokens/index.js +7 -8
  610. package/dist/theme/semantic-tokens/index.js.map +1 -1
  611. package/dist/theme/text-styles.cjs +2 -2
  612. package/dist/theme/text-styles.cjs.map +1 -1
  613. package/dist/theme/text-styles.js +70 -87
  614. package/dist/theme/text-styles.js.map +1 -1
  615. package/dist/theme/tokens/animations.cjs +2 -2
  616. package/dist/theme/tokens/animations.cjs.map +1 -1
  617. package/dist/theme/tokens/animations.js +22 -45
  618. package/dist/theme/tokens/animations.js.map +1 -1
  619. package/dist/theme/tokens/aspect-ratios.cjs +2 -2
  620. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
  621. package/dist/theme/tokens/aspect-ratios.js +12 -11
  622. package/dist/theme/tokens/aspect-ratios.js.map +1 -1
  623. package/dist/theme/tokens/blurs.cjs +2 -2
  624. package/dist/theme/tokens/blurs.cjs.map +1 -1
  625. package/dist/theme/tokens/blurs.js +13 -12
  626. package/dist/theme/tokens/blurs.js.map +1 -1
  627. package/dist/theme/tokens/borders.cjs +2 -2
  628. package/dist/theme/tokens/borders.cjs.map +1 -1
  629. package/dist/theme/tokens/borders.js +6 -9
  630. package/dist/theme/tokens/borders.js.map +1 -1
  631. package/dist/theme/tokens/colors.cjs +2 -2
  632. package/dist/theme/tokens/colors.cjs.map +1 -1
  633. package/dist/theme/tokens/colors.js +78 -77
  634. package/dist/theme/tokens/colors.js.map +1 -1
  635. package/dist/theme/tokens/durations.cjs +2 -2
  636. package/dist/theme/tokens/durations.cjs.map +1 -1
  637. package/dist/theme/tokens/durations.js +14 -13
  638. package/dist/theme/tokens/durations.js.map +1 -1
  639. package/dist/theme/tokens/easings.cjs +3 -3
  640. package/dist/theme/tokens/easings.cjs.map +1 -1
  641. package/dist/theme/tokens/easings.js +24 -92
  642. package/dist/theme/tokens/easings.js.map +1 -1
  643. package/dist/theme/tokens/index.cjs +2 -2
  644. package/dist/theme/tokens/index.cjs.map +1 -1
  645. package/dist/theme/tokens/index.js +36 -35
  646. package/dist/theme/tokens/index.js.map +1 -1
  647. package/dist/theme/tokens/radii.cjs +2 -2
  648. package/dist/theme/tokens/radii.cjs.map +1 -1
  649. package/dist/theme/tokens/radii.js +28 -27
  650. package/dist/theme/tokens/radii.js.map +1 -1
  651. package/dist/theme/tokens/shadows.cjs +2 -2
  652. package/dist/theme/tokens/shadows.cjs.map +1 -1
  653. package/dist/theme/tokens/shadows.js +14 -13
  654. package/dist/theme/tokens/shadows.js.map +1 -1
  655. package/dist/theme/tokens/sizes.cjs +2 -2
  656. package/dist/theme/tokens/sizes.cjs.map +1 -1
  657. package/dist/theme/tokens/sizes.js +35 -84
  658. package/dist/theme/tokens/sizes.js.map +1 -1
  659. package/dist/theme/tokens/spacing.cjs +2 -2
  660. package/dist/theme/tokens/spacing.cjs.map +1 -1
  661. package/dist/theme/tokens/spacing.js +32 -83
  662. package/dist/theme/tokens/spacing.js.map +1 -1
  663. package/dist/theme/tokens/typography.cjs +2 -2
  664. package/dist/theme/tokens/typography.cjs.map +1 -1
  665. package/dist/theme/tokens/typography.js +82 -85
  666. package/dist/theme/tokens/typography.js.map +1 -1
  667. package/dist/theme/tokens/z-index.cjs +2 -2
  668. package/dist/theme/tokens/z-index.cjs.map +1 -1
  669. package/dist/theme/tokens/z-index.js +18 -41
  670. package/dist/theme/tokens/z-index.js.map +1 -1
  671. package/dist/theme/utilities.cjs +2 -2
  672. package/dist/theme/utilities.cjs.map +1 -1
  673. package/dist/theme/utilities.js +15 -16
  674. package/dist/theme/utilities.js.map +1 -1
  675. package/dist/ui.css +2 -1
  676. package/dist/utils/slots.cjs +2 -2
  677. package/dist/utils/slots.cjs.map +1 -1
  678. package/dist/utils/slots.js +42 -40
  679. package/dist/utils/slots.js.map +1 -1
  680. package/package.json +11 -7
  681. package/dist/_virtual/_commonjsHelpers.cjs +0 -2
  682. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  683. package/dist/_virtual/_commonjsHelpers.js +0 -10
  684. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  685. package/dist/_virtual/cjs.cjs +0 -2
  686. package/dist/_virtual/cjs.cjs.map +0 -1
  687. package/dist/_virtual/cjs.js +0 -9
  688. package/dist/_virtual/cjs.js.map +0 -1
  689. package/dist/_virtual/lodash.cjs +0 -2
  690. package/dist/_virtual/lodash.cjs.map +0 -1
  691. package/dist/_virtual/lodash.js +0 -7
  692. package/dist/_virtual/lodash.js.map +0 -1
  693. package/dist/_virtual/lodash2.cjs +0 -2
  694. package/dist/_virtual/lodash2.cjs.map +0 -1
  695. package/dist/_virtual/lodash2.js +0 -6
  696. package/dist/_virtual/lodash2.js.map +0 -1
  697. package/dist/index.cjs.map +0 -1
  698. package/dist/index.js.map +0 -1
  699. package/dist/node_modules/@pandacss/shared/dist/index.cjs +0 -2
  700. package/dist/node_modules/@pandacss/shared/dist/index.cjs.map +0 -1
  701. package/dist/node_modules/@pandacss/shared/dist/index.js +0 -469
  702. package/dist/node_modules/@pandacss/shared/dist/index.js.map +0 -1
  703. package/dist/node_modules/@zag-js/utils/dist/functions.cjs +0 -2
  704. package/dist/node_modules/@zag-js/utils/dist/functions.cjs.map +0 -1
  705. package/dist/node_modules/@zag-js/utils/dist/functions.js +0 -6
  706. package/dist/node_modules/@zag-js/utils/dist/functions.js.map +0 -1
  707. package/dist/node_modules/lodash/lodash.cjs +0 -21
  708. package/dist/node_modules/lodash/lodash.cjs.map +0 -1
  709. package/dist/node_modules/lodash/lodash.js +0 -3686
  710. package/dist/node_modules/lodash/lodash.js.map +0 -1
@@ -1,120 +1,189 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
3
- import { createListCollection as u, Portal as p, Select as t, useSelectContext as s } from "@ark-ui/react";
4
- import { styled as l, HStack as g } from "@stokelp/styled-system/jsx";
5
- import { appNavigationLanguageSelect as f } from "@stokelp/styled-system/recipes";
6
- import { createStyleContext as v } from "../../../../utils/slots.js";
7
- import { ConditionalWrapper as w } from "../../../../shared/ConditionalWrapper.js";
8
- const { withProvider: V, withContext: i } = v(f), H = V(l(t.Root), "root", {
9
- defaultProps: {
10
- loopFocus: !0
11
- }
12
- }), m = i(l(t.Content), "content"), x = i(l(t.Control), "control"), L = i(l(t.Indicator), "indicator"), C = i(l(t.Item), "item"), R = i(l(t.ItemText), "itemText"), M = i(l(t.Positioner), "positioner"), P = i(l(t.Trigger), "trigger"), T = i(l(t.ValueText), "valueText"), c = [
13
- {
14
- value: "fr",
15
- label: "Français",
16
- flag: /* @__PURE__ */ n("svg", { width: "21", height: "15", viewBox: "0 0 21 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
17
- /* @__PURE__ */ n("g", { clipPath: "url(#clip0_1401_7428)", children: [
18
- /* @__PURE__ */ e("rect", { width: "21", height: "15", rx: "3", fill: "white" }),
19
- /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14 0H21V15H14V0Z", fill: "#F93939" }),
20
- /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 0H7V15H0V0Z", fill: "#1A47B8" })
21
- ] }),
22
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_1401_7428", children: /* @__PURE__ */ e("rect", { width: "21", height: "15", rx: "3", fill: "white" }) }) })
23
- ] })
24
- },
25
- {
26
- value: "en",
27
- label: "English",
28
- flag: /* @__PURE__ */ n("svg", { width: "21", height: "15", viewBox: "0 0 21 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
29
- /* @__PURE__ */ n("g", { clipPath: "url(#clip0_1401_5918)", children: [
30
- /* @__PURE__ */ e("rect", { width: "21", height: "15", fill: "#1A47B8" }),
31
- /* @__PURE__ */ e(
32
- "path",
33
- {
34
- fillRule: "evenodd",
35
- clipRule: "evenodd",
36
- d: "M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z",
37
- fill: "white"
38
- }
39
- ),
40
- /* @__PURE__ */ e("path", { d: "M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z", fill: "#F93939" }),
41
- /* @__PURE__ */ e(
42
- "path",
43
- {
44
- fillRule: "evenodd",
45
- clipRule: "evenodd",
46
- d: "M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z",
47
- fill: "white"
48
- }
49
- ),
50
- /* @__PURE__ */ e("path", { d: "M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z", fill: "#F93939" }),
51
- /* @__PURE__ */ e(
52
- "path",
53
- {
54
- fillRule: "evenodd",
55
- clipRule: "evenodd",
56
- d: "M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z",
57
- fill: "white"
58
- }
59
- ),
60
- /* @__PURE__ */ e(
61
- "path",
62
- {
63
- fillRule: "evenodd",
64
- clipRule: "evenodd",
65
- d: "M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z",
66
- fill: "#F93939"
67
- }
68
- )
69
- ] }),
70
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_1401_5918", children: /* @__PURE__ */ e("rect", { width: "21", height: "15", fill: "white" }) }) })
71
- ] })
72
- }
73
- ], Z = () => {
74
- const o = s(), d = o.value && o.value.length > 0 ? o.collection.find(o.value[0]) : null;
75
- return /* @__PURE__ */ n(g, { gap: "space-8", width: "full", css: { "& > svg": { borderRadius: "3px" } }, children: [
76
- d?.flag,
77
- /* @__PURE__ */ e(T, { truncate: !0 })
78
- ] });
79
- }, b = ({
80
- usePortal: o = !0,
81
- positioning: d,
82
- ...h
83
- }) => {
84
- const a = u({
85
- items: c
86
- });
87
- return /* @__PURE__ */ n(
88
- H,
89
- {
90
- lazyMount: !0,
91
- unmountOnExit: !0,
92
- multiple: !1,
93
- collection: a,
94
- positioning: { sameWidth: !0, gutter: 0, ...d },
95
- "data-recipe": "app-navigation-language-select",
96
- defaultValue: ["en"],
97
- ...h,
98
- children: [
99
- /* @__PURE__ */ e(x, { children: /* @__PURE__ */ n(P, { children: [
100
- /* @__PURE__ */ e(Z, {}),
101
- /* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
102
- "path",
103
- {
104
- fillRule: "evenodd",
105
- clipRule: "evenodd",
106
- 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",
107
- fill: "currentColor"
108
- }
109
- ) }) })
110
- ] }) }),
111
- /* @__PURE__ */ e(w, { when: o, wrapper: (r) => /* @__PURE__ */ e(p, { children: r }), children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(m, { children: c.map((r) => /* @__PURE__ */ e(C, { item: r, children: /* @__PURE__ */ e(R, { truncate: !0, children: r.label }) }, r.value)) }) }) }),
112
- /* @__PURE__ */ e(t.HiddenSelect, {})
113
- ]
114
- }
115
- );
116
- };
117
- export {
118
- b as AppNavigationLanguageSelect
119
- };
120
- //# sourceMappingURL=AppNavigationLanguageSelect.js.map
2
+ import { createStyleContext as e } from "../../../../utils/slots.js";
3
+ import { ConditionalWrapper as t } from "../../../../shared/ConditionalWrapper.js";
4
+ import { Portal as n, Select as r, createListCollection as i, useSelectContext as a } from "@ark-ui/react";
5
+ import { HStack as o, styled as s } from "@stokelp/styled-system/jsx";
6
+ import { appNavigationLanguageSelect as c } from "@stokelp/styled-system/recipes";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ //#region src/components/app/navigation/language-select/AppNavigationLanguageSelect.tsx
9
+ var { withProvider: d, withContext: f } = e(c), p = d(s(r.Root), "root", { defaultProps: { loopFocus: !0 } }), m = f(s(r.Content), "content"), h = f(s(r.Control), "control"), g = f(s(r.Indicator), "indicator"), _ = f(s(r.Item), "item"), v = f(s(r.ItemText), "itemText"), y = f(s(r.Positioner), "positioner"), b = f(s(r.Trigger), "trigger"), x = f(s(r.ValueText), "valueText"), S = [
10
+ {
11
+ value: "fr",
12
+ label: "Français",
13
+ flag: /* @__PURE__ */ u("svg", {
14
+ width: "21",
15
+ height: "15",
16
+ viewBox: "0 0 21 15",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ children: [/* @__PURE__ */ u("g", {
20
+ clipPath: "url(#clip0_1401_7428)",
21
+ children: [
22
+ /* @__PURE__ */ l("rect", {
23
+ width: "21",
24
+ height: "15",
25
+ rx: "3",
26
+ fill: "white"
27
+ }),
28
+ /* @__PURE__ */ l("path", {
29
+ fillRule: "evenodd",
30
+ clipRule: "evenodd",
31
+ d: "M14 0H21V15H14V0Z",
32
+ fill: "#F93939"
33
+ }),
34
+ /* @__PURE__ */ l("path", {
35
+ fillRule: "evenodd",
36
+ clipRule: "evenodd",
37
+ d: "M0 0H7V15H0V0Z",
38
+ fill: "#1A47B8"
39
+ })
40
+ ]
41
+ }), /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", {
42
+ id: "clip0_1401_7428",
43
+ children: /* @__PURE__ */ l("rect", {
44
+ width: "21",
45
+ height: "15",
46
+ rx: "3",
47
+ fill: "white"
48
+ })
49
+ }) })]
50
+ })
51
+ },
52
+ {
53
+ value: "en",
54
+ label: "English",
55
+ flag: /* @__PURE__ */ u("svg", {
56
+ width: "21",
57
+ height: "15",
58
+ viewBox: "0 0 21 15",
59
+ fill: "none",
60
+ xmlns: "http://www.w3.org/2000/svg",
61
+ children: [/* @__PURE__ */ u("g", {
62
+ clipPath: "url(#clip0_1401_5918)",
63
+ children: [
64
+ /* @__PURE__ */ l("rect", {
65
+ width: "21",
66
+ height: "15",
67
+ fill: "#1A47B8"
68
+ }),
69
+ /* @__PURE__ */ l("path", {
70
+ fillRule: "evenodd",
71
+ clipRule: "evenodd",
72
+ d: "M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z",
73
+ fill: "white"
74
+ }),
75
+ /* @__PURE__ */ l("path", {
76
+ d: "M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z",
77
+ fill: "#F93939"
78
+ }),
79
+ /* @__PURE__ */ l("path", {
80
+ fillRule: "evenodd",
81
+ clipRule: "evenodd",
82
+ d: "M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z",
83
+ fill: "white"
84
+ }),
85
+ /* @__PURE__ */ l("path", {
86
+ d: "M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z",
87
+ fill: "#F93939"
88
+ }),
89
+ /* @__PURE__ */ l("path", {
90
+ fillRule: "evenodd",
91
+ clipRule: "evenodd",
92
+ d: "M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z",
93
+ fill: "white"
94
+ }),
95
+ /* @__PURE__ */ l("path", {
96
+ fillRule: "evenodd",
97
+ clipRule: "evenodd",
98
+ d: "M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z",
99
+ fill: "#F93939"
100
+ })
101
+ ]
102
+ }), /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", {
103
+ id: "clip0_1401_5918",
104
+ children: /* @__PURE__ */ l("rect", {
105
+ width: "21",
106
+ height: "15",
107
+ fill: "white"
108
+ })
109
+ }) })]
110
+ })
111
+ },
112
+ {
113
+ value: "es",
114
+ label: "Español",
115
+ flag: /* @__PURE__ */ u("svg", {
116
+ width: "21",
117
+ height: "15",
118
+ viewBox: "0 0 21 15",
119
+ fill: "none",
120
+ xmlns: "http://www.w3.org/2000/svg",
121
+ children: [/* @__PURE__ */ l("rect", {
122
+ width: "21",
123
+ height: "15",
124
+ rx: "3",
125
+ fill: "#AA151B"
126
+ }), /* @__PURE__ */ l("rect", {
127
+ y: "4",
128
+ width: "21",
129
+ height: "7",
130
+ fill: "#F1BF00"
131
+ })]
132
+ })
133
+ }
134
+ ], C = () => {
135
+ let e = a();
136
+ return /* @__PURE__ */ u(o, {
137
+ gap: "space-8",
138
+ width: "full",
139
+ css: { "& > svg": { borderRadius: "3px" } },
140
+ children: [(e.value && e.value.length > 0 ? e.collection.find(e.value[0]) : null)?.flag, /* @__PURE__ */ l(x, { truncate: !0 })]
141
+ });
142
+ }, w = ({ usePortal: e = !0, positioning: a, ...o }) => /* @__PURE__ */ u(p, {
143
+ lazyMount: !0,
144
+ unmountOnExit: !0,
145
+ multiple: !1,
146
+ collection: i({ items: S }),
147
+ positioning: {
148
+ sameWidth: !0,
149
+ gutter: 0,
150
+ ...a
151
+ },
152
+ "data-recipe": "app-navigation-language-select",
153
+ defaultValue: ["en"],
154
+ ...o,
155
+ children: [
156
+ /* @__PURE__ */ l(h, { children: /* @__PURE__ */ u(b, { children: [/* @__PURE__ */ l(C, {}), /* @__PURE__ */ l(g, {
157
+ asChild: !0,
158
+ children: /* @__PURE__ */ l("svg", {
159
+ width: "24",
160
+ height: "24",
161
+ viewBox: "0 0 24 24",
162
+ fill: "none",
163
+ xmlns: "http://www.w3.org/2000/svg",
164
+ children: /* @__PURE__ */ l("path", {
165
+ fillRule: "evenodd",
166
+ clipRule: "evenodd",
167
+ 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",
168
+ fill: "currentColor"
169
+ })
170
+ })
171
+ })] }) }),
172
+ /* @__PURE__ */ l(t, {
173
+ when: e,
174
+ wrapper: (e) => /* @__PURE__ */ l(n, { children: e }),
175
+ children: /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(m, { children: S.map((e) => /* @__PURE__ */ l(_, {
176
+ item: e,
177
+ children: /* @__PURE__ */ l(v, {
178
+ truncate: !0,
179
+ children: e.label
180
+ })
181
+ }, e.value)) }) })
182
+ }),
183
+ /* @__PURE__ */ l(r.HiddenSelect, {})
184
+ ]
185
+ });
186
+ //#endregion
187
+ export { w as AppNavigationLanguageSelect };
188
+
189
+ //# sourceMappingURL=AppNavigationLanguageSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppNavigationLanguageSelect.js","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, ReactNode } 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 { 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} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nconst AVAILABLE_LANGUAGES = [\n {\n value: 'fr',\n label: 'Français',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_7428)\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14 0H21V15H14V0Z\" fill=\"#F93939\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0 0H7V15H0V0Z\" fill=\"#1A47B8\" />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_7428\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'en',\n label: 'English',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_5918)\">\n <rect width=\"21\" height=\"15\" fill=\"#1A47B8\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z\"\n fill=\"white\"\n />\n <path d=\"M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z\"\n fill=\"white\"\n />\n <path d=\"M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z\"\n fill=\"#F93939\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_5918\">\n <rect width=\"21\" height=\"15\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n] satisfies SelectItem[]\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 ...props\n}) => {\n const collection = createListCollection<SelectItem>({\n items: AVAILABLE_LANGUAGES,\n })\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 {AVAILABLE_LANGUAGES.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"],"names":["withProvider","withContext","createStyleContext","appNavigationLanguageSelect","Root","styled","ArkSelect","Content","Control","Indicator","Item","ItemText","Positioner","Trigger","ValueText","AVAILABLE_LANGUAGES","jsxs","jsx","InnerTrigger","context","useSelectContext","selected","HStack","AppNavigationLanguageSelect","usePortal","positioning","props","collection","createListCollection","ConditionalWrapper","children","Portal","item"],"mappings":"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"}
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, ReactNode } 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 { 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} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof appNavigationLanguageSelect>\n\nconst AVAILABLE_LANGUAGES = [\n {\n value: 'fr',\n label: 'Français',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_7428)\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14 0H21V15H14V0Z\" fill=\"#F93939\" />\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0 0H7V15H0V0Z\" fill=\"#1A47B8\" />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_7428\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'en',\n label: 'English',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clipPath=\"url(#clip0_1401_5918)\">\n <rect width=\"21\" height=\"15\" fill=\"#1A47B8\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.23397 0H0V2.5L18.7539 15L21 15V12.5L2.23397 0Z\"\n fill=\"white\"\n />\n <path d=\"M0.745098 0L21 13.5354V15H20.2724L0 1.45056V0H0.745098Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19 0H21V2.5C21 2.5 8.0098 10.8281 2 15H0V12.5L19 0Z\"\n fill=\"white\"\n />\n <path d=\"M21 0H20.3218L0 13.5471V15H0.745098L21 1.46151V0Z\" fill=\"#F93939\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.63708 0H13.3804V4.62682H21V10.3701H13.3804V15H7.63708V10.3701H0V4.62682H7.63708V0Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.8421 0H12.1579V5.76923H21V9.23077H12.1579V15H8.8421V9.23077H0V5.76923H8.8421V0Z\"\n fill=\"#F93939\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1401_5918\">\n <rect width=\"21\" height=\"15\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n ),\n },\n {\n value: 'es',\n label: 'Español',\n flag: (\n <svg width=\"21\" height=\"15\" viewBox=\"0 0 21 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect width=\"21\" height=\"15\" rx=\"3\" fill=\"#AA151B\" />\n <rect y=\"4\" width=\"21\" height=\"7\" fill=\"#F1BF00\" />\n </svg>\n ),\n },\n] satisfies SelectItem[]\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 ...props\n}) => {\n const collection = createListCollection<SelectItem>({\n items: AVAILABLE_LANGUAGES,\n })\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 {AVAILABLE_LANGUAGES.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,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@stokelp/styled-system/css"),t=require("@stokelp/styled-system/recipes"),T=require("@stokelp/styled-system/jsx"),j=require("react"),i=j.forwardRef((a,n)=>{const[o,p]=t.priceTag.splitVariantProps(a),[l,u]=T.splitCssProps(p),{className:P,unit:r,price:g,...d}=u,s=t.priceTag(o),m=!!r;return e.jsxs("span",{ref:n,className:c.cx("price-tag",s.root,c.css(l),P),...d,children:[e.jsx("span",{className:s.price,children:g}),m?e.jsxs("span",{className:s.unit,children:["/ ",r]}):null]})});i.displayName="PriceTag";exports.PriceTag=i;
2
- //# sourceMappingURL=PriceTag.cjs.map
1
+ "use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes"),n=require("react"),r=require("react/jsx-runtime"),i=require("@stokelp/styled-system/css");var a=(0,n.forwardRef)((n,a)=>{let[o,s]=t.priceTag.splitVariantProps(n),[c,l]=(0,e.splitCssProps)(s),{className:u,unit:d,price:f,...p}=l,m=(0,t.priceTag)(o),h=!!d;return(0,r.jsxs)(`span`,{ref:a,className:(0,i.cx)(`price-tag`,m.root,(0,i.css)(c),u),...p,children:[(0,r.jsx)(`span`,{className:m.price,children:f}),h?(0,r.jsxs)(`span`,{className:m.unit,children:[`/ `,d]}):null]})});a.displayName=`PriceTag`,exports.PriceTag=a;
2
+ //# sourceMappingURL=PriceTag.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceTag.cjs","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"],"names":["PriceTag","forwardRef","props","ref","variantProps","priceTagProps","priceTag","cssProps","localProps","splitCssProps","className","unit","price","rootProps","styles","hasUnit","jsxs","cx","css","jsx"],"mappings":"iRAiBaA,EAAWC,EAAAA,WAA2C,CAACC,EAAOC,IAAQ,CACjF,KAAM,CAACC,EAAcC,CAAa,EAAIC,EAAAA,SAAS,kBAAkBJ,CAAK,EAChE,CAACK,EAAUC,CAAU,EAAIC,EAAAA,cAAcJ,CAAa,EACpD,CAAE,UAAAK,EAAW,KAAAC,EAAM,MAAAC,EAAO,GAAGC,GAAcL,EAC3CM,EAASR,EAAAA,SAASF,CAAY,EAE9BW,EAAU,CAAC,CAACJ,EAElB,OACEK,EAAAA,KAAC,OAAA,CAAK,IAAAb,EAAU,UAAWc,EAAAA,GAAG,YAAaH,EAAO,KAAMI,EAAAA,IAAIX,CAAQ,EAAGG,CAAS,EAAI,GAAGG,EACrF,SAAA,CAAAM,EAAAA,IAAC,OAAA,CAAK,UAAWL,EAAO,MAAQ,SAAAF,EAAM,EACrCG,EAAUC,EAAAA,KAAC,OAAA,CAAK,UAAWF,EAAO,KAAM,SAAA,CAAA,KAAGH,CAAA,CAAA,CAAK,EAAU,IAAA,EAC7D,CAEJ,CAAC,EAEDX,EAAS,YAAc"}
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,21 +1,27 @@
1
1
  "use client";
2
- import { jsxs as o, jsx as d } from "react/jsx-runtime";
3
- import { cx as g, css as u } from "@stokelp/styled-system/css";
4
- import { priceTag as a } from "@stokelp/styled-system/recipes";
5
- import { splitCssProps as N } from "@stokelp/styled-system/jsx";
6
- import { forwardRef as h } from "react";
7
- const x = h((c, t) => {
8
- const [i, p] = a.splitVariantProps(c), [e, n] = N(p), { className: l, unit: r, price: m, ...P } = n, s = a(i), f = !!r;
9
- return /* @__PURE__ */ o("span", { ref: t, className: g("price-tag", s.root, u(e), l), ...P, children: [
10
- /* @__PURE__ */ d("span", { className: s.price, children: m }),
11
- f ? /* @__PURE__ */ o("span", { className: s.unit, children: [
12
- "/ ",
13
- r
14
- ] }) : null
15
- ] });
2
+ import { splitCssProps as e } from "@stokelp/styled-system/jsx";
3
+ import { priceTag as t } from "@stokelp/styled-system/recipes";
4
+ import { forwardRef as n } from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ import { css as a, cx as o } from "@stokelp/styled-system/css";
7
+ //#region src/components/app/price-tag/PriceTag.tsx
8
+ var s = n((n, s) => {
9
+ let [c, l] = t.splitVariantProps(n), [u, d] = e(l), { className: f, unit: p, price: m, ...h } = d, g = t(c), _ = !!p;
10
+ return /* @__PURE__ */ i("span", {
11
+ ref: s,
12
+ className: o("price-tag", g.root, a(u), f),
13
+ ...h,
14
+ children: [/* @__PURE__ */ r("span", {
15
+ className: g.price,
16
+ children: m
17
+ }), _ ? /* @__PURE__ */ i("span", {
18
+ className: g.unit,
19
+ children: ["/ ", p]
20
+ }) : null]
21
+ });
16
22
  });
17
- x.displayName = "PriceTag";
18
- export {
19
- x as PriceTag
20
- };
21
- //# sourceMappingURL=PriceTag.js.map
23
+ s.displayName = "PriceTag";
24
+ //#endregion
25
+ export { s as PriceTag };
26
+
27
+ //# sourceMappingURL=PriceTag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceTag.js","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"],"names":["PriceTag","forwardRef","props","ref","variantProps","priceTagProps","priceTag","cssProps","localProps","splitCssProps","className","unit","price","rootProps","styles","hasUnit","jsxs","cx","css","jsx"],"mappings":";;;;;;AAiBO,MAAMA,IAAWC,EAA2C,CAACC,GAAOC,MAAQ;AACjF,QAAM,CAACC,GAAcC,CAAa,IAAIC,EAAS,kBAAkBJ,CAAK,GAChE,CAACK,GAAUC,CAAU,IAAIC,EAAcJ,CAAa,GACpD,EAAE,WAAAK,GAAW,MAAAC,GAAM,OAAAC,GAAO,GAAGC,MAAcL,GAC3CM,IAASR,EAASF,CAAY,GAE9BW,IAAU,CAAC,CAACJ;AAElB,SACE,gBAAAK,EAAC,QAAA,EAAK,KAAAb,GAAU,WAAWc,EAAG,aAAaH,EAAO,MAAMI,EAAIX,CAAQ,GAAGG,CAAS,GAAI,GAAGG,GACrF,UAAA;AAAA,IAAA,gBAAAM,EAAC,QAAA,EAAK,WAAWL,EAAO,OAAQ,UAAAF,GAAM;AAAA,IACrCG,IAAU,gBAAAC,EAAC,QAAA,EAAK,WAAWF,EAAO,MAAM,UAAA;AAAA,MAAA;AAAA,MAAGH;AAAA,IAAA,EAAA,CAAK,IAAU;AAAA,EAAA,GAC7D;AAEJ,CAAC;AAEDX,EAAS,cAAc;"}
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,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ark-ui/react"),e=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),o=require("../../../utils/slots.cjs"),{withProvider:i,withContext:a}=o.createStyleContext(s.productCardCatalog,{dataAttr:!0}),r=i(e.styled(t.ark.div),"root"),n=a(e.styled(t.ark.h3),"title"),d=a(e.styled(t.ark.img),"image"),g=a(e.styled(t.ark.div),"imageContainer"),c=a(e.styled(t.ark.div),"content"),l=a(e.styled(t.ark.p),"description"),y=a(e.styled(t.ark.span),"highlight"),h=a(e.styled(t.ark.span),"tag"),k=a(e.styled(t.ark.div),"badgeList"),p=a(e.styled(t.ark.span),"badge"),u=a(e.styled(t.ark.span),"shortLivedTag");exports.Badge=p;exports.BadgeList=k;exports.Content=c;exports.Description=l;exports.Highlight=y;exports.Image=d;exports.ImageContainer=g;exports.Root=r;exports.ShortLivedTag=u;exports.Tag=h;exports.Title=n;
2
- //# sourceMappingURL=styled.cjs.map
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}});
2
+ //# sourceMappingURL=styled.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","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"],"names":["withProvider","withContext","createStyleContext","productCardCatalog","Root","styled","ark","Title","Image","ImageContainer","Content","Description","Highlight","Tag","BadgeList","Badge","ShortLivedTag"],"mappings":"wPAMM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,mBAAoB,CAC3E,SAAU,EACZ,CAAC,EAEYC,EAAOJ,EAAaK,EAAAA,OAAOC,EAAAA,IAAI,GAAG,EAAG,MAAM,EAC3CC,EAAQN,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,EAAE,EAAG,OAAO,EAC3CE,EAAQP,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,GAAG,EAAG,OAAO,EAC5CG,EAAiBR,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,GAAG,EAAG,gBAAgB,EAC9DI,EAAUT,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,GAAG,EAAG,SAAS,EAChDK,EAAcV,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,CAAC,EAAG,aAAa,EACtDM,EAAYX,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,WAAW,EACrDO,EAAMZ,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,KAAK,EACzCQ,EAAYb,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,GAAG,EAAG,WAAW,EACpDS,EAAQd,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,OAAO,EAC7CU,EAAgBf,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,eAAe"}
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,22 +1,24 @@
1
1
  "use client";
2
- import { ark as t } from "@ark-ui/react";
3
- import { styled as o } from "@stokelp/styled-system/jsx";
4
- import { productCardCatalog as e } from "@stokelp/styled-system/recipes";
5
- import { createStyleContext as n } from "../../../utils/slots.js";
6
- const { withProvider: a, withContext: i } = n(e, {
7
- dataAttr: !0
8
- }), d = a(o(t.div), "root"), m = i(o(t.h3), "title"), p = i(o(t.img), "image"), h = i(o(t.div), "imageContainer"), l = i(o(t.div), "content"), v = i(o(t.p), "description"), C = i(o(t.span), "highlight"), f = i(o(t.span), "tag"), L = i(o(t.div), "badgeList"), T = i(o(t.span), "badge"), u = i(o(t.span), "shortLivedTag");
9
- export {
10
- T as Badge,
11
- L as BadgeList,
12
- l as Content,
13
- v as Description,
14
- C as Highlight,
15
- p as Image,
16
- h as ImageContainer,
17
- d as Root,
18
- u as ShortLivedTag,
19
- f as Tag,
20
- m as Title
21
- };
22
- //# sourceMappingURL=styled.js.map
2
+ import { __exportAll as e } from "../../../_virtual/_rolldown/runtime.js";
3
+ import { createStyleContext as t } from "../../../utils/slots.js";
4
+ import { ark as n } from "@ark-ui/react";
5
+ import { styled as r } from "@stokelp/styled-system/jsx";
6
+ import { productCardCatalog as i } from "@stokelp/styled-system/recipes";
7
+ //#region src/components/app/product-card-catalog/styled.ts
8
+ var a = /* @__PURE__ */ e({
9
+ Badge: () => _,
10
+ BadgeList: () => g,
11
+ Content: () => f,
12
+ Description: () => p,
13
+ Highlight: () => m,
14
+ Image: () => u,
15
+ ImageContainer: () => d,
16
+ Root: () => c,
17
+ ShortLivedTag: () => v,
18
+ Tag: () => h,
19
+ Title: () => l
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 };
23
+
24
+ //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","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"],"names":["withProvider","withContext","createStyleContext","productCardCatalog","Root","styled","ark","Title","Image","ImageContainer","Content","Description","Highlight","Tag","BadgeList","Badge","ShortLivedTag"],"mappings":";;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,GAAoB;AAAA,EAC3E,UAAU;AACZ,CAAC,GAEYC,IAAOJ,EAAaK,EAAOC,EAAI,GAAG,GAAG,MAAM,GAC3CC,IAAQN,EAAYI,EAAOC,EAAI,EAAE,GAAG,OAAO,GAC3CE,IAAQP,EAAYI,EAAOC,EAAI,GAAG,GAAG,OAAO,GAC5CG,IAAiBR,EAAYI,EAAOC,EAAI,GAAG,GAAG,gBAAgB,GAC9DI,IAAUT,EAAYI,EAAOC,EAAI,GAAG,GAAG,SAAS,GAChDK,IAAcV,EAAYI,EAAOC,EAAI,CAAC,GAAG,aAAa,GACtDM,IAAYX,EAAYI,EAAOC,EAAI,IAAI,GAAG,WAAW,GACrDO,IAAMZ,EAAYI,EAAOC,EAAI,IAAI,GAAG,KAAK,GACzCQ,IAAYb,EAAYI,EAAOC,EAAI,GAAG,GAAG,WAAW,GACpDS,IAAQd,EAAYI,EAAOC,EAAI,IAAI,GAAG,OAAO,GAC7CU,IAAgBf,EAAYI,EAAOC,EAAI,IAAI,GAAG,eAAe;"}
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,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),r=require("@ark-ui/react"),n=require("@stokelp/styled-system/jsx"),c=require("@stokelp/styled-system/recipes"),m=require("../../utils/slots.cjs"),e=require("react"),p=require("../../node_modules/@zag-js/utils/dist/functions.cjs"),{withProvider:y,withContext:i}=m.createStyleContext(c.avatar),q=n.styled(r.ark.div,c.avatarGroup),x=(o,t)=>{const s=o.slice(0,t),a=o.slice(t);return[s,a]},b=e.forwardRef(({children:o,size:t,max:s=4,overflowContent:a,...u},d)=>{const[v,l]=x(e.Children.toArray(o),s);return g.jsxs(q,{ref:d,size:t,...u,children:[e.Children.map(v,f=>e.cloneElement(f,c.avatar.raw({size:t}))),a&&l.length>0?e.cloneElement(p.runIfFn(a,l.length),{"data-overflow":""}):null]})}),h=y(n.styled(r.Avatar.Root),"root"),C=i(n.styled(r.Avatar.Image),"image"),R=i(n.styled(r.Avatar.Fallback),"fallback"),k=r.Avatar.Context;exports.Context=k;exports.Fallback=R;exports.Group=b;exports.Image=C;exports.Root=h;
2
- //# sourceMappingURL=styled.cjs.map
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}});
2
+ //# sourceMappingURL=styled.cjs.map