@stokelp/ui 2.103.0 → 2.104.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (807) 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.d.ts +4 -5
  38. package/dist/components/app/mobile-navigation/MobileNavigation.js +16 -18
  39. package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
  40. package/dist/components/app/navigation/AppNavigation.cjs +2 -2
  41. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
  42. package/dist/components/app/navigation/AppNavigation.d.ts +11 -11
  43. package/dist/components/app/navigation/AppNavigation.js +35 -47
  44. package/dist/components/app/navigation/AppNavigation.js.map +1 -1
  45. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +2 -2
  46. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
  47. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +188 -119
  48. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
  49. package/dist/components/app/price-tag/PriceTag.cjs +2 -2
  50. package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
  51. package/dist/components/app/price-tag/PriceTag.js +25 -19
  52. package/dist/components/app/price-tag/PriceTag.js.map +1 -1
  53. package/dist/components/app/product-card-catalog/styled.cjs +2 -2
  54. package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
  55. package/dist/components/app/product-card-catalog/styled.js +23 -21
  56. package/dist/components/app/product-card-catalog/styled.js.map +1 -1
  57. package/dist/components/avatar/styled.cjs +2 -2
  58. package/dist/components/avatar/styled.cjs.map +1 -1
  59. package/dist/components/avatar/styled.d.ts +11 -7
  60. package/dist/components/avatar/styled.js +28 -27
  61. package/dist/components/avatar/styled.js.map +1 -1
  62. package/dist/components/box/Box.cjs +2 -2
  63. package/dist/components/box/Box.cjs.map +1 -1
  64. package/dist/components/box/Box.js +11 -10
  65. package/dist/components/box/Box.js.map +1 -1
  66. package/dist/components/breadcrumb/Breadcrumb.cjs +2 -2
  67. package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
  68. package/dist/components/breadcrumb/Breadcrumb.d.ts +6 -8
  69. package/dist/components/breadcrumb/Breadcrumb.js +39 -35
  70. package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
  71. package/dist/components/button/Button.cjs +2 -2
  72. package/dist/components/button/Button.cjs.map +1 -1
  73. package/dist/components/button/Button.d.ts +8 -4
  74. package/dist/components/button/Button.js +9 -8
  75. package/dist/components/button/Button.js.map +1 -1
  76. package/dist/components/button-filter/ButtonFilter.cjs +2 -2
  77. package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
  78. package/dist/components/button-filter/ButtonFilter.d.ts +5 -4
  79. package/dist/components/button-filter/ButtonFilter.js +9 -8
  80. package/dist/components/button-filter/ButtonFilter.js.map +1 -1
  81. package/dist/components/chat/Chat.cjs +2 -2
  82. package/dist/components/chat/Chat.cjs.map +1 -1
  83. package/dist/components/chat/Chat.d.ts +15 -8
  84. package/dist/components/chat/Chat.js +27 -26
  85. package/dist/components/chat/Chat.js.map +1 -1
  86. package/dist/components/chat/ChatDocumentMessage.cjs +2 -2
  87. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
  88. package/dist/components/chat/ChatDocumentMessage.js +32 -31
  89. package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
  90. package/dist/components/chat/ChatMessage.cjs +2 -2
  91. package/dist/components/chat/ChatMessage.cjs.map +1 -1
  92. package/dist/components/chat/ChatMessage.d.ts +7 -4
  93. package/dist/components/chat/ChatMessage.js +8 -7
  94. package/dist/components/chat/ChatMessage.js.map +1 -1
  95. package/dist/components/chat/ChatProfileAvatar.cjs +2 -2
  96. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
  97. package/dist/components/chat/ChatProfileAvatar.js +24 -16
  98. package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
  99. package/dist/components/chat/ChatTextInput.cjs +2 -2
  100. package/dist/components/chat/ChatTextInput.cjs.map +1 -1
  101. package/dist/components/chat/ChatTextInput.d.ts +2 -2
  102. package/dist/components/chat/ChatTextInput.js +44 -52
  103. package/dist/components/chat/ChatTextInput.js.map +1 -1
  104. package/dist/components/checkbox/Checkbox.cjs +2 -2
  105. package/dist/components/checkbox/Checkbox.cjs.map +1 -1
  106. package/dist/components/checkbox/Checkbox.js +36 -34
  107. package/dist/components/checkbox/Checkbox.js.map +1 -1
  108. package/dist/components/checkbox-card/CheckboxCard.cjs +2 -2
  109. package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
  110. package/dist/components/checkbox-card/CheckboxCard.d.ts +2 -2
  111. package/dist/components/checkbox-card/CheckboxCard.js +33 -38
  112. package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
  113. package/dist/components/checkbox-card/namespace.cjs +2 -2
  114. package/dist/components/checkbox-card/namespace.cjs.map +1 -1
  115. package/dist/components/checkbox-card/namespace.js +14 -9
  116. package/dist/components/checkbox-card/namespace.js.map +1 -1
  117. package/dist/components/chip/Chip.cjs +2 -2
  118. package/dist/components/chip/Chip.cjs.map +1 -1
  119. package/dist/components/chip/Chip.d.ts +1 -1
  120. package/dist/components/chip/Chip.js +23 -23
  121. package/dist/components/chip/Chip.js.map +1 -1
  122. package/dist/components/collapsible/styled.cjs +2 -2
  123. package/dist/components/collapsible/styled.cjs.map +1 -1
  124. package/dist/components/collapsible/styled.js +15 -11
  125. package/dist/components/collapsible/styled.js.map +1 -1
  126. package/dist/components/combobox/Combobox.cjs +2 -2
  127. package/dist/components/combobox/Combobox.cjs.map +1 -1
  128. package/dist/components/combobox/Combobox.js +206 -173
  129. package/dist/components/combobox/Combobox.js.map +1 -1
  130. package/dist/components/date-picker/DatePicker.cjs +2 -2
  131. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  132. package/dist/components/date-picker/DatePicker.d.ts +2 -2
  133. package/dist/components/date-picker/DatePicker.js +151 -127
  134. package/dist/components/date-picker/DatePicker.js.map +1 -1
  135. package/dist/components/dialog/styled.cjs +2 -2
  136. package/dist/components/dialog/styled.cjs.map +1 -1
  137. package/dist/components/dialog/styled.js +75 -65
  138. package/dist/components/dialog/styled.js.map +1 -1
  139. package/dist/components/drawer/Drawer.cjs +2 -2
  140. package/dist/components/drawer/Drawer.cjs.map +1 -1
  141. package/dist/components/drawer/Drawer.js +69 -63
  142. package/dist/components/drawer/Drawer.js.map +1 -1
  143. package/dist/components/flag/styled.cjs +2 -2
  144. package/dist/components/flag/styled.cjs.map +1 -1
  145. package/dist/components/flag/styled.d.ts +9 -7
  146. package/dist/components/flag/styled.js +8437 -3751
  147. package/dist/components/flag/styled.js.map +1 -1
  148. package/dist/components/form/FormControl.cjs +2 -2
  149. package/dist/components/form/FormControl.cjs.map +1 -1
  150. package/dist/components/form/FormControl.d.ts +3 -3
  151. package/dist/components/form/FormControl.js +13 -18
  152. package/dist/components/form/FormControl.js.map +1 -1
  153. package/dist/components/form/FormHelperText.cjs +2 -2
  154. package/dist/components/form/FormHelperText.cjs.map +1 -1
  155. package/dist/components/form/FormHelperText.d.ts +1 -1
  156. package/dist/components/form/FormHelperText.js +8 -9
  157. package/dist/components/form/FormHelperText.js.map +1 -1
  158. package/dist/components/form/FormLabel.cjs +2 -2
  159. package/dist/components/form/FormLabel.cjs.map +1 -1
  160. package/dist/components/form/FormLabel.d.ts +3 -3
  161. package/dist/components/form/FormLabel.js +38 -33
  162. package/dist/components/form/FormLabel.js.map +1 -1
  163. package/dist/components/heading/Heading.cjs +2 -2
  164. package/dist/components/heading/Heading.cjs.map +1 -1
  165. package/dist/components/heading/Heading.js +14 -10
  166. package/dist/components/heading/Heading.js.map +1 -1
  167. package/dist/components/icon/Icon.cjs +2 -2
  168. package/dist/components/icon/Icon.cjs.map +1 -1
  169. package/dist/components/icon/Icon.d.ts +2 -2
  170. package/dist/components/icon/Icon.js +15 -10
  171. package/dist/components/icon/Icon.js.map +1 -1
  172. package/dist/components/icon-button/IconButton.cjs +2 -2
  173. package/dist/components/icon-button/IconButton.cjs.map +1 -1
  174. package/dist/components/icon-button/IconButton.d.ts +2 -3
  175. package/dist/components/icon-button/IconButton.js +8 -7
  176. package/dist/components/icon-button/IconButton.js.map +1 -1
  177. package/dist/components/illustration/Illustration.cjs +2 -2
  178. package/dist/components/illustration/Illustration.cjs.map +1 -1
  179. package/dist/components/illustration/Illustration.js +35 -39
  180. package/dist/components/illustration/Illustration.js.map +1 -1
  181. package/dist/components/illustration/patterns.cjs +2 -2
  182. package/dist/components/illustration/patterns.cjs.map +1 -1
  183. package/dist/components/illustration/patterns.js +5563 -8897
  184. package/dist/components/illustration/patterns.js.map +1 -1
  185. package/dist/components/input/HighlightedInput.cjs +2 -2
  186. package/dist/components/input/HighlightedInput.cjs.map +1 -1
  187. package/dist/components/input/HighlightedInput.d.ts +13 -16
  188. package/dist/components/input/HighlightedInput.js +43 -58
  189. package/dist/components/input/HighlightedInput.js.map +1 -1
  190. package/dist/components/input/Input.cjs +2 -2
  191. package/dist/components/input/Input.cjs.map +1 -1
  192. package/dist/components/input/Input.d.ts +2 -3
  193. package/dist/components/input/Input.js +12 -13
  194. package/dist/components/input/Input.js.map +1 -1
  195. package/dist/components/input/InputAddon.cjs +2 -2
  196. package/dist/components/input/InputAddon.cjs.map +1 -1
  197. package/dist/components/input/InputAddon.d.ts +5 -4
  198. package/dist/components/input/InputAddon.js +8 -9
  199. package/dist/components/input/InputAddon.js.map +1 -1
  200. package/dist/components/input/InputGroup.cjs +2 -2
  201. package/dist/components/input/InputGroup.cjs.map +1 -1
  202. package/dist/components/input/InputGroup.d.ts +1 -1
  203. package/dist/components/input/InputGroup.js +8 -9
  204. package/dist/components/input/InputGroup.js.map +1 -1
  205. package/dist/components/input/PhoneNumberInput.cjs +2 -2
  206. package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
  207. package/dist/components/input/PhoneNumberInput.js +21 -23
  208. package/dist/components/input/PhoneNumberInput.js.map +1 -1
  209. package/dist/components/menu/Menu.cjs +2 -2
  210. package/dist/components/menu/Menu.cjs.map +1 -1
  211. package/dist/components/menu/Menu.js +32 -28
  212. package/dist/components/menu/Menu.js.map +1 -1
  213. package/dist/components/pagination/Pagination.cjs +2 -2
  214. package/dist/components/pagination/Pagination.cjs.map +1 -1
  215. package/dist/components/pagination/Pagination.d.ts +1 -1
  216. package/dist/components/pagination/Pagination.js +76 -84
  217. package/dist/components/pagination/Pagination.js.map +1 -1
  218. package/dist/components/pagination/use-pagination.cjs +2 -2
  219. package/dist/components/pagination/use-pagination.cjs.map +1 -1
  220. package/dist/components/pagination/use-pagination.js +56 -54
  221. package/dist/components/pagination/use-pagination.js.map +1 -1
  222. package/dist/components/popover/Popover.cjs +2 -2
  223. package/dist/components/popover/Popover.cjs.map +1 -1
  224. package/dist/components/popover/Popover.js +21 -25
  225. package/dist/components/popover/Popover.js.map +1 -1
  226. package/dist/components/radio-button-group/RadioButtonGroup.cjs +2 -2
  227. package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
  228. package/dist/components/radio-button-group/RadioButtonGroup.js +20 -20
  229. package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
  230. package/dist/components/radio-card-group/RadioCardGroup.cjs +2 -2
  231. package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
  232. package/dist/components/radio-card-group/RadioCardGroup.d.ts +2 -2
  233. package/dist/components/radio-card-group/RadioCardGroup.js +21 -22
  234. package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
  235. package/dist/components/radio-card-group/namespace.cjs +2 -2
  236. package/dist/components/radio-card-group/namespace.cjs.map +1 -1
  237. package/dist/components/radio-card-group/namespace.js +15 -10
  238. package/dist/components/radio-card-group/namespace.js.map +1 -1
  239. package/dist/components/radio-group/RadioGroup.cjs +2 -2
  240. package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
  241. package/dist/components/radio-group/RadioGroup.js +21 -21
  242. package/dist/components/radio-group/RadioGroup.js.map +1 -1
  243. package/dist/components/select/Select.cjs +2 -2
  244. package/dist/components/select/Select.cjs.map +1 -1
  245. package/dist/components/select/Select.js +194 -141
  246. package/dist/components/select/Select.js.map +1 -1
  247. package/dist/components/select-language/SelectLanguage.cjs +2 -2
  248. package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
  249. package/dist/components/select-language/SelectLanguage.js +114 -88
  250. package/dist/components/select-language/SelectLanguage.js.map +1 -1
  251. package/dist/components/status-tag-select/StatusTagSelect.cjs +2 -2
  252. package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
  253. package/dist/components/status-tag-select/StatusTagSelect.js +93 -115
  254. package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
  255. package/dist/components/switch/Switch.cjs +2 -2
  256. package/dist/components/switch/Switch.cjs.map +1 -1
  257. package/dist/components/switch/Switch.js +30 -18
  258. package/dist/components/switch/Switch.js.map +1 -1
  259. package/dist/components/switch-card/SwitchCard.cjs +2 -2
  260. package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
  261. package/dist/components/switch-card/SwitchCard.d.ts +2 -2
  262. package/dist/components/switch-card/SwitchCard.js +28 -25
  263. package/dist/components/switch-card/SwitchCard.js.map +1 -1
  264. package/dist/components/switch-card/namespace.cjs +2 -2
  265. package/dist/components/switch-card/namespace.cjs.map +1 -1
  266. package/dist/components/switch-card/namespace.js +14 -9
  267. package/dist/components/switch-card/namespace.js.map +1 -1
  268. package/dist/components/table/Table.cjs +2 -2
  269. package/dist/components/table/Table.cjs.map +1 -1
  270. package/dist/components/table/Table.d.ts +12 -13
  271. package/dist/components/table/Table.js +133 -109
  272. package/dist/components/table/Table.js.map +1 -1
  273. package/dist/components/table/TableProvider.cjs +2 -2
  274. package/dist/components/table/TableProvider.cjs.map +1 -1
  275. package/dist/components/table/TableProvider.js +36 -39
  276. package/dist/components/table/TableProvider.js.map +1 -1
  277. package/dist/components/tabs/Tabs.cjs +2 -2
  278. package/dist/components/tabs/Tabs.cjs.map +1 -1
  279. package/dist/components/tabs/Tabs.d.ts +8 -4
  280. package/dist/components/tabs/Tabs.js +18 -26
  281. package/dist/components/tabs/Tabs.js.map +1 -1
  282. package/dist/components/tag/Tag.cjs +2 -2
  283. package/dist/components/tag/Tag.cjs.map +1 -1
  284. package/dist/components/tag/Tag.js +22 -16
  285. package/dist/components/tag/Tag.js.map +1 -1
  286. package/dist/components/text/Text.cjs +2 -2
  287. package/dist/components/text/Text.cjs.map +1 -1
  288. package/dist/components/text/Text.js +12 -11
  289. package/dist/components/text/Text.js.map +1 -1
  290. package/dist/components/textarea/Textarea.cjs +2 -2
  291. package/dist/components/textarea/Textarea.cjs.map +1 -1
  292. package/dist/components/textarea/Textarea.d.ts +6 -6
  293. package/dist/components/textarea/Textarea.js +9 -8
  294. package/dist/components/textarea/Textarea.js.map +1 -1
  295. package/dist/components/tooltip/Tooltip.cjs +2 -2
  296. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  297. package/dist/components/tooltip/Tooltip.js +38 -42
  298. package/dist/components/tooltip/Tooltip.js.map +1 -1
  299. package/dist/icons/index.cjs +2 -2
  300. package/dist/icons/index.cjs.map +1 -1
  301. package/dist/icons/index.js +65 -58
  302. package/dist/icons/index.js.map +1 -1
  303. package/dist/index.cjs +1 -2
  304. package/dist/index.js +66 -191
  305. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +2 -0
  306. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -0
  307. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +25 -0
  308. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -0
  309. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +2 -0
  310. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -0
  311. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +25 -0
  312. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -0
  313. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +2 -0
  314. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -0
  315. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +25 -0
  316. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -0
  317. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +2 -0
  318. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -0
  319. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +25 -0
  320. package/dist/node_modules/.pnpm/@heroicons_react@2.2.0_react@19.2.6/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -0
  321. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs +2 -0
  322. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.cjs.map +1 -0
  323. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +77 -0
  324. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js.map +1 -0
  325. package/dist/preset.cjs +2 -2
  326. package/dist/preset.cjs.map +1 -1
  327. package/dist/preset.d.ts +1 -1
  328. package/dist/preset.js +30 -31
  329. package/dist/preset.js.map +1 -1
  330. package/dist/shared/ConditionalWrapper.cjs +2 -2
  331. package/dist/shared/ConditionalWrapper.cjs.map +1 -1
  332. package/dist/shared/ConditionalWrapper.js +6 -5
  333. package/dist/shared/ConditionalWrapper.js.map +1 -1
  334. package/dist/shared/assets/icons.cjs +2 -2
  335. package/dist/shared/assets/icons.cjs.map +1 -1
  336. package/dist/shared/assets/icons.js +30 -22
  337. package/dist/shared/assets/icons.js.map +1 -1
  338. package/dist/shared/hooks/useUncontrolled.cjs +2 -2
  339. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
  340. package/dist/shared/hooks/useUncontrolled.js +19 -16
  341. package/dist/shared/hooks/useUncontrolled.js.map +1 -1
  342. package/dist/shared/utils/events.cjs +2 -2
  343. package/dist/shared/utils/events.cjs.map +1 -1
  344. package/dist/shared/utils/events.js +7 -6
  345. package/dist/shared/utils/events.js.map +1 -1
  346. package/dist/theme/breakpoints.cjs +2 -2
  347. package/dist/theme/breakpoints.cjs.map +1 -1
  348. package/dist/theme/breakpoints.js +10 -9
  349. package/dist/theme/breakpoints.js.map +1 -1
  350. package/dist/theme/conditions.cjs +2 -2
  351. package/dist/theme/conditions.cjs.map +1 -1
  352. package/dist/theme/conditions.js +23 -24
  353. package/dist/theme/conditions.js.map +1 -1
  354. package/dist/theme/containers.cjs +2 -2
  355. package/dist/theme/containers.cjs.map +1 -1
  356. package/dist/theme/containers.js +18 -17
  357. package/dist/theme/containers.js.map +1 -1
  358. package/dist/theme/globalCss.cjs +4 -4
  359. package/dist/theme/globalCss.cjs.map +1 -1
  360. package/dist/theme/globalCss.d.ts +1 -1
  361. package/dist/theme/globalCss.js +94 -99
  362. package/dist/theme/globalCss.js.map +1 -1
  363. package/dist/theme/keyframes.cjs +2 -2
  364. package/dist/theme/keyframes.cjs.map +1 -1
  365. package/dist/theme/keyframes.d.ts +1 -1
  366. package/dist/theme/keyframes.js +256 -171
  367. package/dist/theme/keyframes.js.map +1 -1
  368. package/dist/theme/recipes/accordion.cjs +2 -2
  369. package/dist/theme/recipes/accordion.cjs.map +1 -1
  370. package/dist/theme/recipes/accordion.d.ts +1 -1
  371. package/dist/theme/recipes/accordion.js +93 -110
  372. package/dist/theme/recipes/accordion.js.map +1 -1
  373. package/dist/theme/recipes/action-card.cjs +2 -2
  374. package/dist/theme/recipes/action-card.cjs.map +1 -1
  375. package/dist/theme/recipes/action-card.d.ts +1 -1
  376. package/dist/theme/recipes/action-card.js +88 -84
  377. package/dist/theme/recipes/action-card.js.map +1 -1
  378. package/dist/theme/recipes/alert.cjs +2 -2
  379. package/dist/theme/recipes/alert.cjs.map +1 -1
  380. package/dist/theme/recipes/alert.d.ts +1 -1
  381. package/dist/theme/recipes/alert.js +52 -65
  382. package/dist/theme/recipes/alert.js.map +1 -1
  383. package/dist/theme/recipes/app/mobile-navigation.cjs +2 -2
  384. package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
  385. package/dist/theme/recipes/app/mobile-navigation.d.ts +1 -1
  386. package/dist/theme/recipes/app/mobile-navigation.js +94 -108
  387. package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
  388. package/dist/theme/recipes/app/navigation-language-select.cjs +2 -2
  389. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
  390. package/dist/theme/recipes/app/navigation-language-select.d.ts +1 -1
  391. package/dist/theme/recipes/app/navigation-language-select.js +135 -148
  392. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
  393. package/dist/theme/recipes/app/navigation.cjs +2 -2
  394. package/dist/theme/recipes/app/navigation.cjs.map +1 -1
  395. package/dist/theme/recipes/app/navigation.d.ts +1 -1
  396. package/dist/theme/recipes/app/navigation.js +214 -269
  397. package/dist/theme/recipes/app/navigation.js.map +1 -1
  398. package/dist/theme/recipes/app/price-tag.cjs +2 -2
  399. package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
  400. package/dist/theme/recipes/app/price-tag.d.ts +1 -1
  401. package/dist/theme/recipes/app/price-tag.js +59 -70
  402. package/dist/theme/recipes/app/price-tag.js.map +1 -1
  403. package/dist/theme/recipes/app/product-card-catalog.cjs +2 -2
  404. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
  405. package/dist/theme/recipes/app/product-card-catalog.d.ts +1 -1
  406. package/dist/theme/recipes/app/product-card-catalog.js +189 -194
  407. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
  408. package/dist/theme/recipes/avatar-group.cjs +2 -2
  409. package/dist/theme/recipes/avatar-group.cjs.map +1 -1
  410. package/dist/theme/recipes/avatar-group.d.ts +1 -1
  411. package/dist/theme/recipes/avatar-group.js +27 -38
  412. package/dist/theme/recipes/avatar-group.js.map +1 -1
  413. package/dist/theme/recipes/avatar.cjs +2 -2
  414. package/dist/theme/recipes/avatar.cjs.map +1 -1
  415. package/dist/theme/recipes/avatar.d.ts +1 -1
  416. package/dist/theme/recipes/avatar.js +97 -95
  417. package/dist/theme/recipes/avatar.js.map +1 -1
  418. package/dist/theme/recipes/breadcrumb.cjs +2 -2
  419. package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
  420. package/dist/theme/recipes/breadcrumb.d.ts +1 -1
  421. package/dist/theme/recipes/breadcrumb.js +35 -31
  422. package/dist/theme/recipes/breadcrumb.js.map +1 -1
  423. package/dist/theme/recipes/button-filter.cjs +2 -2
  424. package/dist/theme/recipes/button-filter.cjs.map +1 -1
  425. package/dist/theme/recipes/button-filter.d.ts +1 -1
  426. package/dist/theme/recipes/button-filter.js +57 -60
  427. package/dist/theme/recipes/button-filter.js.map +1 -1
  428. package/dist/theme/recipes/button.cjs +2 -2
  429. package/dist/theme/recipes/button.cjs.map +1 -1
  430. package/dist/theme/recipes/button.d.ts +1 -1
  431. package/dist/theme/recipes/button.js +287 -295
  432. package/dist/theme/recipes/button.js.map +1 -1
  433. package/dist/theme/recipes/chat/chat-document-message.cjs +2 -2
  434. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
  435. package/dist/theme/recipes/chat/chat-document-message.d.ts +1 -1
  436. package/dist/theme/recipes/chat/chat-document-message.js +38 -43
  437. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
  438. package/dist/theme/recipes/chat/chat-input-text.cjs +2 -2
  439. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
  440. package/dist/theme/recipes/chat/chat-input-text.d.ts +1 -1
  441. package/dist/theme/recipes/chat/chat-input-text.js +26 -27
  442. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
  443. package/dist/theme/recipes/chat/chat-message.cjs +2 -2
  444. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
  445. package/dist/theme/recipes/chat/chat-message.d.ts +1 -1
  446. package/dist/theme/recipes/chat/chat-message.js +49 -45
  447. package/dist/theme/recipes/chat/chat-message.js.map +1 -1
  448. package/dist/theme/recipes/chat/chat-profile-avatar.cjs +2 -2
  449. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
  450. package/dist/theme/recipes/chat/chat-profile-avatar.d.ts +1 -1
  451. package/dist/theme/recipes/chat/chat-profile-avatar.js +20 -25
  452. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
  453. package/dist/theme/recipes/chat/chat.cjs +2 -2
  454. package/dist/theme/recipes/chat/chat.cjs.map +1 -1
  455. package/dist/theme/recipes/chat/chat.d.ts +1 -1
  456. package/dist/theme/recipes/chat/chat.js +51 -56
  457. package/dist/theme/recipes/chat/chat.js.map +1 -1
  458. package/dist/theme/recipes/checkbox-card.cjs +2 -2
  459. package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
  460. package/dist/theme/recipes/checkbox-card.js +44 -40
  461. package/dist/theme/recipes/checkbox-card.js.map +1 -1
  462. package/dist/theme/recipes/checkbox-group.cjs +2 -2
  463. package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
  464. package/dist/theme/recipes/checkbox-group.d.ts +1 -1
  465. package/dist/theme/recipes/checkbox-group.js +13 -12
  466. package/dist/theme/recipes/checkbox-group.js.map +1 -1
  467. package/dist/theme/recipes/checkbox.cjs +2 -2
  468. package/dist/theme/recipes/checkbox.cjs.map +1 -1
  469. package/dist/theme/recipes/checkbox.d.ts +1 -1
  470. package/dist/theme/recipes/checkbox.js +110 -129
  471. package/dist/theme/recipes/checkbox.js.map +1 -1
  472. package/dist/theme/recipes/chip.cjs +2 -2
  473. package/dist/theme/recipes/chip.cjs.map +1 -1
  474. package/dist/theme/recipes/chip.d.ts +1 -1
  475. package/dist/theme/recipes/chip.js +144 -182
  476. package/dist/theme/recipes/chip.js.map +1 -1
  477. package/dist/theme/recipes/collapsible.cjs +2 -2
  478. package/dist/theme/recipes/collapsible.cjs.map +1 -1
  479. package/dist/theme/recipes/collapsible.d.ts +1 -1
  480. package/dist/theme/recipes/collapsible.js +30 -28
  481. package/dist/theme/recipes/collapsible.js.map +1 -1
  482. package/dist/theme/recipes/combobox.cjs +2 -2
  483. package/dist/theme/recipes/combobox.cjs.map +1 -1
  484. package/dist/theme/recipes/combobox.d.ts +1 -1
  485. package/dist/theme/recipes/combobox.js +149 -176
  486. package/dist/theme/recipes/combobox.js.map +1 -1
  487. package/dist/theme/recipes/common/group-card.cjs +2 -2
  488. package/dist/theme/recipes/common/group-card.cjs.map +1 -1
  489. package/dist/theme/recipes/common/group-card.js +60 -80
  490. package/dist/theme/recipes/common/group-card.js.map +1 -1
  491. package/dist/theme/recipes/datepicker.cjs +2 -2
  492. package/dist/theme/recipes/datepicker.cjs.map +1 -1
  493. package/dist/theme/recipes/datepicker.d.ts +1 -1
  494. package/dist/theme/recipes/datepicker.js +149 -176
  495. package/dist/theme/recipes/datepicker.js.map +1 -1
  496. package/dist/theme/recipes/dialog.cjs +2 -2
  497. package/dist/theme/recipes/dialog.cjs.map +1 -1
  498. package/dist/theme/recipes/dialog.d.ts +1 -1
  499. package/dist/theme/recipes/dialog.js +137 -151
  500. package/dist/theme/recipes/dialog.js.map +1 -1
  501. package/dist/theme/recipes/drawer.cjs +2 -2
  502. package/dist/theme/recipes/drawer.cjs.map +1 -1
  503. package/dist/theme/recipes/drawer.d.ts +1 -1
  504. package/dist/theme/recipes/drawer.js +105 -125
  505. package/dist/theme/recipes/drawer.js.map +1 -1
  506. package/dist/theme/recipes/flag.cjs +2 -2
  507. package/dist/theme/recipes/flag.cjs.map +1 -1
  508. package/dist/theme/recipes/flag.d.ts +1 -1
  509. package/dist/theme/recipes/flag.js +21 -30
  510. package/dist/theme/recipes/flag.js.map +1 -1
  511. package/dist/theme/recipes/form/control.cjs +2 -2
  512. package/dist/theme/recipes/form/control.cjs.map +1 -1
  513. package/dist/theme/recipes/form/control.d.ts +1 -1
  514. package/dist/theme/recipes/form/control.js +27 -34
  515. package/dist/theme/recipes/form/control.js.map +1 -1
  516. package/dist/theme/recipes/form/helper-text.cjs +2 -2
  517. package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
  518. package/dist/theme/recipes/form/helper-text.d.ts +1 -1
  519. package/dist/theme/recipes/form/helper-text.js +14 -13
  520. package/dist/theme/recipes/form/helper-text.js.map +1 -1
  521. package/dist/theme/recipes/form/label.cjs +2 -2
  522. package/dist/theme/recipes/form/label.cjs.map +1 -1
  523. package/dist/theme/recipes/form/label.d.ts +1 -1
  524. package/dist/theme/recipes/form/label.js +47 -48
  525. package/dist/theme/recipes/form/label.js.map +1 -1
  526. package/dist/theme/recipes/heading.cjs +2 -2
  527. package/dist/theme/recipes/heading.cjs.map +1 -1
  528. package/dist/theme/recipes/heading.d.ts +1 -1
  529. package/dist/theme/recipes/heading.js +25 -34
  530. package/dist/theme/recipes/heading.js.map +1 -1
  531. package/dist/theme/recipes/highlightedInput.cjs +2 -2
  532. package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
  533. package/dist/theme/recipes/highlightedInput.d.ts +1 -1
  534. package/dist/theme/recipes/highlightedInput.js +54 -45
  535. package/dist/theme/recipes/highlightedInput.js.map +1 -1
  536. package/dist/theme/recipes/icon-button.cjs +2 -2
  537. package/dist/theme/recipes/icon-button.cjs.map +1 -1
  538. package/dist/theme/recipes/icon-button.js +81 -89
  539. package/dist/theme/recipes/icon-button.js.map +1 -1
  540. package/dist/theme/recipes/icon.cjs +2 -2
  541. package/dist/theme/recipes/icon.cjs.map +1 -1
  542. package/dist/theme/recipes/icon.d.ts +1 -1
  543. package/dist/theme/recipes/icon.js +39 -42
  544. package/dist/theme/recipes/icon.js.map +1 -1
  545. package/dist/theme/recipes/illustration.cjs +2 -2
  546. package/dist/theme/recipes/illustration.cjs.map +1 -1
  547. package/dist/theme/recipes/illustration.d.ts +1 -1
  548. package/dist/theme/recipes/illustration.js +29 -48
  549. package/dist/theme/recipes/illustration.js.map +1 -1
  550. package/dist/theme/recipes/index.cjs +2 -2
  551. package/dist/theme/recipes/index.cjs.map +1 -1
  552. package/dist/theme/recipes/index.d.ts +1 -1
  553. package/dist/theme/recipes/index.js +127 -127
  554. package/dist/theme/recipes/index.js.map +1 -1
  555. package/dist/theme/recipes/input-addon.cjs +2 -2
  556. package/dist/theme/recipes/input-addon.cjs.map +1 -1
  557. package/dist/theme/recipes/input-addon.d.ts +1 -1
  558. package/dist/theme/recipes/input-addon.js +24 -24
  559. package/dist/theme/recipes/input-addon.js.map +1 -1
  560. package/dist/theme/recipes/input-group.cjs +2 -2
  561. package/dist/theme/recipes/input-group.cjs.map +1 -1
  562. package/dist/theme/recipes/input-group.d.ts +1 -1
  563. package/dist/theme/recipes/input-group.js +40 -49
  564. package/dist/theme/recipes/input-group.js.map +1 -1
  565. package/dist/theme/recipes/input.cjs +2 -2
  566. package/dist/theme/recipes/input.cjs.map +1 -1
  567. package/dist/theme/recipes/input.d.ts +1 -1
  568. package/dist/theme/recipes/input.js +48 -61
  569. package/dist/theme/recipes/input.js.map +1 -1
  570. package/dist/theme/recipes/menu.cjs +2 -2
  571. package/dist/theme/recipes/menu.cjs.map +1 -1
  572. package/dist/theme/recipes/menu.d.ts +1 -1
  573. package/dist/theme/recipes/menu.js +96 -100
  574. package/dist/theme/recipes/menu.js.map +1 -1
  575. package/dist/theme/recipes/pagination.cjs +2 -2
  576. package/dist/theme/recipes/pagination.cjs.map +1 -1
  577. package/dist/theme/recipes/pagination.d.ts +1 -1
  578. package/dist/theme/recipes/pagination.js +76 -71
  579. package/dist/theme/recipes/pagination.js.map +1 -1
  580. package/dist/theme/recipes/phone-number-input.cjs +2 -2
  581. package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
  582. package/dist/theme/recipes/phone-number-input.d.ts +1 -1
  583. package/dist/theme/recipes/phone-number-input.js +55 -66
  584. package/dist/theme/recipes/phone-number-input.js.map +1 -1
  585. package/dist/theme/recipes/popover.cjs +2 -2
  586. package/dist/theme/recipes/popover.cjs.map +1 -1
  587. package/dist/theme/recipes/popover.d.ts +1 -1
  588. package/dist/theme/recipes/popover.js +30 -28
  589. package/dist/theme/recipes/popover.js.map +1 -1
  590. package/dist/theme/recipes/radio-button-group.cjs +2 -2
  591. package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
  592. package/dist/theme/recipes/radio-button-group.d.ts +1 -1
  593. package/dist/theme/recipes/radio-button-group.js +83 -94
  594. package/dist/theme/recipes/radio-button-group.js.map +1 -1
  595. package/dist/theme/recipes/radio-card-group.cjs +2 -2
  596. package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
  597. package/dist/theme/recipes/radio-card-group.d.ts +1 -1
  598. package/dist/theme/recipes/radio-card-group.js +64 -67
  599. package/dist/theme/recipes/radio-card-group.js.map +1 -1
  600. package/dist/theme/recipes/radio-group.cjs +2 -2
  601. package/dist/theme/recipes/radio-group.cjs.map +1 -1
  602. package/dist/theme/recipes/radio-group.d.ts +1 -1
  603. package/dist/theme/recipes/radio-group.js +101 -118
  604. package/dist/theme/recipes/radio-group.js.map +1 -1
  605. package/dist/theme/recipes/select-language.cjs +2 -2
  606. package/dist/theme/recipes/select-language.cjs.map +1 -1
  607. package/dist/theme/recipes/select-language.d.ts +1 -1
  608. package/dist/theme/recipes/select-language.js +93 -112
  609. package/dist/theme/recipes/select-language.js.map +1 -1
  610. package/dist/theme/recipes/select.cjs +2 -2
  611. package/dist/theme/recipes/select.cjs.map +1 -1
  612. package/dist/theme/recipes/select.d.ts +1 -1
  613. package/dist/theme/recipes/select.js +194 -206
  614. package/dist/theme/recipes/select.js.map +1 -1
  615. package/dist/theme/recipes/status-tag-select.cjs +2 -2
  616. package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
  617. package/dist/theme/recipes/status-tag-select.d.ts +1 -1
  618. package/dist/theme/recipes/status-tag-select.js +162 -175
  619. package/dist/theme/recipes/status-tag-select.js.map +1 -1
  620. package/dist/theme/recipes/switch-card.cjs +2 -2
  621. package/dist/theme/recipes/switch-card.cjs.map +1 -1
  622. package/dist/theme/recipes/switch-card.js +43 -42
  623. package/dist/theme/recipes/switch-card.js.map +1 -1
  624. package/dist/theme/recipes/switch.cjs +2 -2
  625. package/dist/theme/recipes/switch.cjs.map +1 -1
  626. package/dist/theme/recipes/switch.d.ts +1 -1
  627. package/dist/theme/recipes/switch.js +71 -86
  628. package/dist/theme/recipes/switch.js.map +1 -1
  629. package/dist/theme/recipes/table-container.cjs +2 -2
  630. package/dist/theme/recipes/table-container.cjs.map +1 -1
  631. package/dist/theme/recipes/table-container.d.ts +1 -1
  632. package/dist/theme/recipes/table-container.js +19 -18
  633. package/dist/theme/recipes/table-container.js.map +1 -1
  634. package/dist/theme/recipes/table-empty-row.cjs +2 -2
  635. package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
  636. package/dist/theme/recipes/table-empty-row.d.ts +1 -1
  637. package/dist/theme/recipes/table-empty-row.js +17 -16
  638. package/dist/theme/recipes/table-empty-row.js.map +1 -1
  639. package/dist/theme/recipes/table-group-title.cjs +2 -2
  640. package/dist/theme/recipes/table-group-title.cjs.map +1 -1
  641. package/dist/theme/recipes/table-group-title.d.ts +1 -1
  642. package/dist/theme/recipes/table-group-title.js +26 -33
  643. package/dist/theme/recipes/table-group-title.js.map +1 -1
  644. package/dist/theme/recipes/table.cjs +2 -2
  645. package/dist/theme/recipes/table.cjs.map +1 -1
  646. package/dist/theme/recipes/table.d.ts +1 -1
  647. package/dist/theme/recipes/table.js +111 -109
  648. package/dist/theme/recipes/table.js.map +1 -1
  649. package/dist/theme/recipes/tabs-chip.cjs +2 -2
  650. package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
  651. package/dist/theme/recipes/tabs-chip.d.ts +1 -1
  652. package/dist/theme/recipes/tabs-chip.js +43 -46
  653. package/dist/theme/recipes/tabs-chip.js.map +1 -1
  654. package/dist/theme/recipes/tabs.cjs +2 -2
  655. package/dist/theme/recipes/tabs.cjs.map +1 -1
  656. package/dist/theme/recipes/tabs.d.ts +1 -1
  657. package/dist/theme/recipes/tabs.js +92 -125
  658. package/dist/theme/recipes/tabs.js.map +1 -1
  659. package/dist/theme/recipes/tag.cjs +2 -2
  660. package/dist/theme/recipes/tag.cjs.map +1 -1
  661. package/dist/theme/recipes/tag.d.ts +1 -1
  662. package/dist/theme/recipes/tag.js +110 -121
  663. package/dist/theme/recipes/tag.js.map +1 -1
  664. package/dist/theme/recipes/text.cjs +2 -2
  665. package/dist/theme/recipes/text.cjs.map +1 -1
  666. package/dist/theme/recipes/text.d.ts +1 -1
  667. package/dist/theme/recipes/text.js +25 -38
  668. package/dist/theme/recipes/text.js.map +1 -1
  669. package/dist/theme/recipes/textarea.cjs +2 -2
  670. package/dist/theme/recipes/textarea.cjs.map +1 -1
  671. package/dist/theme/recipes/textarea.d.ts +1 -1
  672. package/dist/theme/recipes/textarea.js +15 -14
  673. package/dist/theme/recipes/textarea.js.map +1 -1
  674. package/dist/theme/recipes/tooltip.cjs +2 -2
  675. package/dist/theme/recipes/tooltip.cjs.map +1 -1
  676. package/dist/theme/recipes/tooltip.d.ts +1 -1
  677. package/dist/theme/recipes/tooltip.js +47 -62
  678. package/dist/theme/recipes/tooltip.js.map +1 -1
  679. package/dist/theme/semantic-tokens/colors.cjs +2 -2
  680. package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
  681. package/dist/theme/semantic-tokens/colors.js +189 -140
  682. package/dist/theme/semantic-tokens/colors.js.map +1 -1
  683. package/dist/theme/semantic-tokens/index.cjs +2 -2
  684. package/dist/theme/semantic-tokens/index.cjs.map +1 -1
  685. package/dist/theme/semantic-tokens/index.js +7 -8
  686. package/dist/theme/semantic-tokens/index.js.map +1 -1
  687. package/dist/theme/text-styles.cjs +2 -2
  688. package/dist/theme/text-styles.cjs.map +1 -1
  689. package/dist/theme/text-styles.d.ts +1 -1
  690. package/dist/theme/text-styles.js +70 -87
  691. package/dist/theme/text-styles.js.map +1 -1
  692. package/dist/theme/tokens/animations.cjs +2 -2
  693. package/dist/theme/tokens/animations.cjs.map +1 -1
  694. package/dist/theme/tokens/animations.js +22 -45
  695. package/dist/theme/tokens/animations.js.map +1 -1
  696. package/dist/theme/tokens/aspect-ratios.cjs +2 -2
  697. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
  698. package/dist/theme/tokens/aspect-ratios.js +12 -11
  699. package/dist/theme/tokens/aspect-ratios.js.map +1 -1
  700. package/dist/theme/tokens/blurs.cjs +2 -2
  701. package/dist/theme/tokens/blurs.cjs.map +1 -1
  702. package/dist/theme/tokens/blurs.js +13 -12
  703. package/dist/theme/tokens/blurs.js.map +1 -1
  704. package/dist/theme/tokens/borders.cjs +2 -2
  705. package/dist/theme/tokens/borders.cjs.map +1 -1
  706. package/dist/theme/tokens/borders.js +6 -9
  707. package/dist/theme/tokens/borders.js.map +1 -1
  708. package/dist/theme/tokens/colors.cjs +2 -2
  709. package/dist/theme/tokens/colors.cjs.map +1 -1
  710. package/dist/theme/tokens/colors.js +78 -77
  711. package/dist/theme/tokens/colors.js.map +1 -1
  712. package/dist/theme/tokens/durations.cjs +2 -2
  713. package/dist/theme/tokens/durations.cjs.map +1 -1
  714. package/dist/theme/tokens/durations.js +14 -13
  715. package/dist/theme/tokens/durations.js.map +1 -1
  716. package/dist/theme/tokens/easings.cjs +3 -3
  717. package/dist/theme/tokens/easings.cjs.map +1 -1
  718. package/dist/theme/tokens/easings.js +24 -92
  719. package/dist/theme/tokens/easings.js.map +1 -1
  720. package/dist/theme/tokens/index.cjs +2 -2
  721. package/dist/theme/tokens/index.cjs.map +1 -1
  722. package/dist/theme/tokens/index.js +36 -35
  723. package/dist/theme/tokens/index.js.map +1 -1
  724. package/dist/theme/tokens/radii.cjs +2 -2
  725. package/dist/theme/tokens/radii.cjs.map +1 -1
  726. package/dist/theme/tokens/radii.js +28 -27
  727. package/dist/theme/tokens/radii.js.map +1 -1
  728. package/dist/theme/tokens/shadows.cjs +2 -2
  729. package/dist/theme/tokens/shadows.cjs.map +1 -1
  730. package/dist/theme/tokens/shadows.js +14 -13
  731. package/dist/theme/tokens/shadows.js.map +1 -1
  732. package/dist/theme/tokens/sizes.cjs +2 -2
  733. package/dist/theme/tokens/sizes.cjs.map +1 -1
  734. package/dist/theme/tokens/sizes.js +35 -84
  735. package/dist/theme/tokens/sizes.js.map +1 -1
  736. package/dist/theme/tokens/spacing.cjs +2 -2
  737. package/dist/theme/tokens/spacing.cjs.map +1 -1
  738. package/dist/theme/tokens/spacing.js +32 -83
  739. package/dist/theme/tokens/spacing.js.map +1 -1
  740. package/dist/theme/tokens/typography.cjs +2 -2
  741. package/dist/theme/tokens/typography.cjs.map +1 -1
  742. package/dist/theme/tokens/typography.js +82 -85
  743. package/dist/theme/tokens/typography.js.map +1 -1
  744. package/dist/theme/tokens/z-index.cjs +2 -2
  745. package/dist/theme/tokens/z-index.cjs.map +1 -1
  746. package/dist/theme/tokens/z-index.js +18 -41
  747. package/dist/theme/tokens/z-index.js.map +1 -1
  748. package/dist/theme/utilities.cjs +2 -2
  749. package/dist/theme/utilities.cjs.map +1 -1
  750. package/dist/theme/utilities.js +15 -16
  751. package/dist/theme/utilities.js.map +1 -1
  752. package/dist/ui.css +2 -1
  753. package/dist/utils/slots.cjs +2 -2
  754. package/dist/utils/slots.cjs.map +1 -1
  755. package/dist/utils/slots.js +42 -40
  756. package/dist/utils/slots.js.map +1 -1
  757. package/package.json +11 -7
  758. package/dist/_virtual/_commonjsHelpers.cjs +0 -2
  759. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  760. package/dist/_virtual/_commonjsHelpers.js +0 -10
  761. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  762. package/dist/_virtual/cjs.cjs +0 -2
  763. package/dist/_virtual/cjs.cjs.map +0 -1
  764. package/dist/_virtual/cjs.js +0 -9
  765. package/dist/_virtual/cjs.js.map +0 -1
  766. package/dist/_virtual/lodash.cjs +0 -2
  767. package/dist/_virtual/lodash.cjs.map +0 -1
  768. package/dist/_virtual/lodash.js +0 -7
  769. package/dist/_virtual/lodash.js.map +0 -1
  770. package/dist/_virtual/lodash2.cjs +0 -2
  771. package/dist/_virtual/lodash2.cjs.map +0 -1
  772. package/dist/_virtual/lodash2.js +0 -6
  773. package/dist/_virtual/lodash2.js.map +0 -1
  774. package/dist/index.cjs.map +0 -1
  775. package/dist/index.js.map +0 -1
  776. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +0 -2
  777. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +0 -1
  778. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +0 -30
  779. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +0 -1
  780. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +0 -2
  781. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +0 -1
  782. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +0 -30
  783. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +0 -1
  784. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +0 -2
  785. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +0 -1
  786. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +0 -30
  787. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +0 -1
  788. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +0 -2
  789. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +0 -1
  790. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +0 -30
  791. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +0 -1
  792. package/dist/node_modules/@pandacss/shared/dist/index.cjs +0 -2
  793. package/dist/node_modules/@pandacss/shared/dist/index.cjs.map +0 -1
  794. package/dist/node_modules/@pandacss/shared/dist/index.js +0 -469
  795. package/dist/node_modules/@pandacss/shared/dist/index.js.map +0 -1
  796. package/dist/node_modules/@zag-js/utils/dist/functions.cjs +0 -2
  797. package/dist/node_modules/@zag-js/utils/dist/functions.cjs.map +0 -1
  798. package/dist/node_modules/@zag-js/utils/dist/functions.js +0 -6
  799. package/dist/node_modules/@zag-js/utils/dist/functions.js.map +0 -1
  800. package/dist/node_modules/deepmerge/dist/cjs.cjs +0 -2
  801. package/dist/node_modules/deepmerge/dist/cjs.cjs.map +0 -1
  802. package/dist/node_modules/deepmerge/dist/cjs.js +0 -81
  803. package/dist/node_modules/deepmerge/dist/cjs.js.map +0 -1
  804. package/dist/node_modules/lodash/lodash.cjs +0 -21
  805. package/dist/node_modules/lodash/lodash.cjs.map +0 -1
  806. package/dist/node_modules/lodash/lodash.js +0 -3686
  807. package/dist/node_modules/lodash/lodash.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("@stokelp/styled-system/jsx"),E=require("@stokelp/styled-system/recipes"),P=require("../../utils/slots.cjs"),l=require("react"),T=require("./Input.cjs"),{withProvider:A,withContext:d}=P.createStyleContext(E.highlightedInput,{dataAttr:!0}),f=A(h.styled("div"),"root"),S=d(T.Input,"input"),j=d(h.styled("p"),"renderer"),R=d(h.styled("span"),"highlight"),L=({patterns:c,value:a,defaultValue:I,onChange:v,onScroll:y,...m})=>{const g=a!==void 0,[q,H]=l.useState(I?.toString()??""),r=g?String(a):q,i=l.useRef(null),[x,C]=l.useState(0),V=e=>{C(e.currentTarget.scrollLeft),y?.(e)};l.useEffect(()=>{i.current&&(i.current.scrollLeft=x)},[x]);const $=new RegExp(c.map(e=>e.regex.source).join("|"),"gi"),b=()=>{const e=[];let t=0;for(const o of r.matchAll($)){const s=o.index??0,w=s+o[0].length;s>t&&e.push(n.jsx("span",{children:r.slice(t,s)},`text-${t}`));const p=c.find(u=>u.regex.test(o[0]));c.forEach(u=>u.regex.lastIndex=0),e.push(p?n.jsx(R,{style:{color:p.color??"secondary.500"},children:o[0]},`highlight-${s}`):n.jsx("span",{children:o[0]},`text-${s}`)),t=w}return t<r.length&&e.push(n.jsx("span",{children:r.slice(t)},`text-${t}`)),e};return n.jsxs(f,{children:[n.jsx(S,{...m,value:r,defaultValue:void 0,onScroll:V,onChange:e=>{g||H(e.target.value),v?.(e)}}),n.jsx(j,{ref:i,children:b()})]})};exports.Highlight=R;exports.HighlightedInput=L;exports.InputSlot=S;exports.Renderer=j;exports.Root=f;
2
- //# sourceMappingURL=HighlightedInput.cjs.map
1
+ "use client";const e=require("../../utils/slots.cjs"),t=require("./Input.cjs");let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var{withProvider:o,withContext:s}=e.createStyleContext(r.highlightedInput,{dataAttr:!0}),c=o((0,n.styled)(`div`),`root`),l=s(t.Input,`input`),u=s((0,n.styled)(`p`),`renderer`),d=s((0,n.styled)(`span`),`highlight`),f=({patterns:e,value:t,defaultValue:n,onChange:r,onScroll:o,...s})=>{let f=t!==void 0,[p,m]=(0,i.useState)(n?.toString()??``),h=f?String(t):p,g=(0,i.useRef)(null),[_,v]=(0,i.useState)(0),y=e=>{v(e.currentTarget.scrollLeft),o?.(e)};(0,i.useEffect)(()=>{g.current&&(g.current.scrollLeft=_)},[_]);let b=new RegExp(e.map(e=>e.regex.source).join(`|`),`gi`),x=()=>{let t=[],n=0;for(let r of h.matchAll(b)){let i=r.index??0,o=i+r[0].length;i>n&&t.push((0,a.jsx)(`span`,{children:h.slice(n,i)},`text-${n}`));let s=e.find(e=>e.regex.test(r[0]));e.forEach(e=>e.regex.lastIndex=0),t.push(s?(0,a.jsx)(d,{style:{color:s.color??`secondary.500`},children:r[0]},`highlight-${i}`):(0,a.jsx)(`span`,{children:r[0]},`text-${i}`)),n=o}return n<h.length&&t.push((0,a.jsx)(`span`,{children:h.slice(n)},`text-${n}`)),t};return(0,a.jsxs)(c,{children:[(0,a.jsx)(l,{...s,value:h,defaultValue:void 0,onScroll:y,onChange:e=>{f||m(e.target.value),r?.(e)}}),(0,a.jsx)(u,{ref:g,children:x()})]})};exports.Highlight=d,exports.HighlightedInput=f,exports.InputSlot=l,exports.Renderer=u,exports.Root=c;
2
+ //# sourceMappingURL=HighlightedInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightedInput.cjs","sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport interface HighlightedInputRootProps extends ComponentProps<typeof Root> {}\nexport interface HighlightedInputInputProps extends ComponentProps<typeof InputSlot> {}\nexport interface HighlightedInputRendererProps extends ComponentProps<typeof Renderer> {}\nexport interface HighlightedInputHighlightProps extends ComponentProps<typeof Highlight> {}\n\ntype HighlightedInputProps = {\n patterns: { regex: RegExp; color: string }[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map(p => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find(p => p.regex.test(match[0]))\n patterns.forEach(p => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={e => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","highlightedInput","Root","styled","InputSlot","Input","Renderer","Highlight","HighlightedInput","patterns","controlledValue","defaultValue","onChange","onScroll","inputProps","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","textBlockRef","useRef","scrollValue","setScrollValue","handleScroll","useEffect","combinedRegex","p","renderHighlightedText","nodes","lastIndex","match","start","end","jsx","matchedPattern"],"mappings":"qSAMM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAEYC,EAAOJ,EAAaK,SAAO,KAAK,EAAG,MAAM,EACzCC,EAAYL,EAAYM,EAAAA,MAAO,OAAO,EACtCC,EAAWP,EAAYI,SAAO,GAAG,EAAG,UAAU,EAC9CI,EAAYR,EAAYI,SAAO,MAAM,EAAG,WAAW,EAYnDK,EAA8C,CAAC,CAC1D,SAAAC,EACA,MAAOC,EACP,aAAAC,EACA,SAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAM,CACJ,MAAMC,EAAeL,IAAoB,OAEnC,CAACM,EAAmBC,CAAoB,EAAIC,EAAAA,SAASP,GAAc,SAAA,GAAc,EAAE,EAEnFQ,EAAQJ,EAAe,OAAOL,CAAe,EAAIM,EAEjDI,EAAeC,EAAAA,OAAoC,IAAI,EACvD,CAACC,EAAaC,CAAc,EAAIL,EAAAA,SAAS,CAAC,EAE1CM,EAAgB,GAAiD,CACrED,EAAe,EAAE,cAAc,UAAU,EACzCV,IAAW,CAAoC,CACjD,EAEAY,EAAAA,UAAU,IAAM,CACVL,EAAa,UACfA,EAAa,QAAQ,WAAaE,EAEtC,EAAG,CAACA,CAAW,CAAC,EAEhB,MAAMI,EAAgB,IAAI,OAAOjB,EAAS,IAAIkB,GAAKA,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,EAAG,IAAI,EAE5EC,EAAwB,IAAM,CAClC,MAAMC,EAAqB,CAAA,EAC3B,IAAIC,EAAY,EAEhB,UAAWC,KAASZ,EAAM,SAASO,CAAa,EAAG,CACjD,MAAMM,EAAQD,EAAM,OAAS,EACvBE,EAAMD,EAAQD,EAAM,CAAC,EAAE,OAEzBC,EAAQF,GACVD,EAAM,KAAKK,EAAAA,IAAC,OAAA,CAAgC,SAAAf,EAAM,MAAMW,EAAWE,CAAK,CAAA,EAAlD,QAAQF,CAAS,EAAmC,CAAO,EAGnF,MAAMK,EAAiB1B,EAAS,KAAKkB,GAAKA,EAAE,MAAM,KAAKI,EAAM,CAAC,CAAC,CAAC,EAChEtB,EAAS,QAAQkB,GAAMA,EAAE,MAAM,UAAY,CAAE,EAE7CE,EAAM,KACJM,EACED,EAAAA,IAAC3B,EAAA,CAAqC,MAAO,CAAE,MAAO4B,EAAe,OAAS,eAAA,EAC3E,SAAAJ,EAAM,CAAC,GADM,aAAaC,CAAK,EAElC,EAEAE,EAAAA,IAAC,OAAA,CAA4B,WAAM,CAAC,CAAA,EAAzB,QAAQF,CAAK,EAAc,CAAA,EAI1CF,EAAYG,CACd,CAEA,OAAIH,EAAYX,EAAM,QACpBU,EAAM,KAAKK,EAAAA,IAAC,OAAA,CAAgC,SAAAf,EAAM,MAAMW,CAAS,CAAA,EAA3C,QAAQA,CAAS,EAA4B,CAAO,EAGrED,CACT,EAEA,cACG3B,EAAA,CACC,SAAA,CAAAgC,EAAAA,IAAC9B,EAAA,CACE,GAAGU,EACJ,MAAAK,EACA,aAAc,OACd,SAAUK,EACV,SAAU,GAAK,CACRT,GACHE,EAAqB,EAAE,OAAO,KAAK,EAErCL,IAAW,CAAC,CACd,CAAA,CAAA,EAGFsB,EAAAA,IAAC5B,EAAA,CAAS,IAAKc,EAAe,YAAsB,CAAE,CAAA,EACxD,CAEJ"}
1
+ {"version":3,"file":"HighlightedInput.cjs","names":[],"sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport type HighlightedInputRootProps = ComponentProps<typeof Root>\nexport type HighlightedInputInputProps = ComponentProps<typeof InputSlot>\nexport type HighlightedInputRendererProps = ComponentProps<typeof Renderer>\nexport type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>\n\ntype HighlightPattern = { regex: RegExp; color: string }\n\ntype HighlightedInputProps = {\n patterns: HighlightPattern[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map((p: HighlightPattern) => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find((p: HighlightPattern) => p.regex.test(match[0]))\n patterns.forEach((p: HighlightPattern) => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"mappings":"yNAMA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,iBAAkB,CACzE,SAAU,EACZ,CAAC,EAEY,EAAO,GAAA,EAAA,EAAA,QAAoB,KAAK,EAAG,MAAM,EACzC,EAAY,EAAY,EAAA,MAAO,OAAO,EACtC,EAAW,GAAA,EAAA,EAAA,QAAmB,GAAG,EAAG,UAAU,EAC9C,EAAY,GAAA,EAAA,EAAA,QAAmB,MAAM,EAAG,WAAW,EAcnD,GAA+C,CAC1D,WACA,MAAO,EACP,eACA,WACA,WACA,GAAG,KACC,CACJ,IAAM,EAAe,IAAoB,IAAA,GAEnC,CAAC,EAAmB,IAAA,EAAA,EAAA,UAAiC,GAAc,SAAS,GAAK,EAAE,EAEnF,EAAQ,EAAe,OAAO,CAAe,EAAI,EAEjD,GAAA,EAAA,EAAA,QAAmD,IAAI,EACvD,CAAC,EAAa,IAAA,EAAA,EAAA,UAA2B,CAAC,EAE1C,EAAgB,GAAiD,CACrE,EAAe,EAAE,cAAc,UAAU,EACzC,IAAW,CAAoC,CACjD,GAEA,EAAA,EAAA,eAAgB,CACV,EAAa,UACf,EAAa,QAAQ,WAAa,EAEtC,EAAG,CAAC,CAAW,CAAC,EAEhB,IAAM,EAAgB,IAAI,OAAO,EAAS,IAAK,GAAwB,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,EAAG,IAAI,EAEhG,MAA8B,CAClC,IAAM,EAAqB,CAAC,EACxB,EAAY,EAEhB,IAAK,IAAM,KAAS,EAAM,SAAS,CAAa,EAAG,CACjD,IAAM,EAAQ,EAAM,OAAS,EACvB,EAAM,EAAQ,EAAM,GAAG,OAEzB,EAAQ,GACV,EAAM,MAAK,EAAA,EAAA,KAAC,OAAD,CAAA,SAAiC,EAAM,MAAM,EAAW,CAAK,CAAQ,EAA1D,QAAQ,GAAkD,CAAC,EAGnF,IAAM,EAAiB,EAAS,KAAM,GAAwB,EAAE,MAAM,KAAK,EAAM,EAAE,CAAC,EACpF,EAAS,QAAS,GAAyB,EAAE,MAAM,UAAY,CAAE,EAEjE,EAAM,KACJ,GACE,EAAA,EAAA,KAAC,EAAD,CAAsC,MAAO,CAAE,MAAO,EAAe,OAAS,eAAgB,WAC3F,EAAM,EACE,EAFK,aAAa,GAElB,GAEX,EAAA,EAAA,KAAC,OAAD,CAAA,SAA6B,EAAM,EAAS,EAAjC,QAAQ,GAAyB,CAEhD,EAEA,EAAY,CACd,CAMA,OAJI,EAAY,EAAM,QACpB,EAAM,MAAK,EAAA,EAAA,KAAC,OAAD,CAAA,SAAiC,EAAM,MAAM,CAAS,CAAQ,EAAnD,QAAQ,GAA2C,CAAC,EAGrE,CACT,EAEA,OACE,EAAA,EAAA,MAAC,EAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAD,CACE,GAAI,EACG,QACP,aAAc,IAAA,GACd,SAAU,EACV,SAAW,GAA2C,CAC/C,GACH,EAAqB,EAAE,OAAO,KAAK,EAErC,IAAW,CAAC,CACd,CACD,CAAA,GAED,EAAA,EAAA,KAAC,EAAD,CAAU,IAAK,WAAe,EAAsB,CAAY,CAAA,CAC5D,CAAA,CAAA,CAEV"}
@@ -2,23 +2,20 @@ import { ComponentProps, FC } from 'react';
2
2
  import { ComponentVariants } from '../../utils/slots';
3
3
  import { StyledComponent } from '@stokelp/styled-system/types';
4
4
  import { HighlightedInputRecipe, InputVariantProps } from '@stokelp/styled-system/recipes';
5
- export declare const Root: ComponentVariants<StyledComponent<"div", {}>, HighlightedInputRecipe>;
6
- export declare const InputSlot: StyledComponent<"input", InputVariantProps>;
7
- export declare const Renderer: StyledComponent<"p", {}>;
8
- export declare const Highlight: StyledComponent<"span", {}>;
9
- export interface HighlightedInputRootProps extends ComponentProps<typeof Root> {
10
- }
11
- export interface HighlightedInputInputProps extends ComponentProps<typeof InputSlot> {
12
- }
13
- export interface HighlightedInputRendererProps extends ComponentProps<typeof Renderer> {
14
- }
15
- export interface HighlightedInputHighlightProps extends ComponentProps<typeof Highlight> {
16
- }
5
+ export declare const Root: ComponentVariants<StyledComponent<string, {}>, HighlightedInputRecipe>;
6
+ export declare const InputSlot: StyledComponent<string, InputVariantProps>;
7
+ export declare const Renderer: StyledComponent<string, {}>;
8
+ export declare const Highlight: StyledComponent<string, {}>;
9
+ export type HighlightedInputRootProps = ComponentProps<typeof Root>;
10
+ export type HighlightedInputInputProps = ComponentProps<typeof InputSlot>;
11
+ export type HighlightedInputRendererProps = ComponentProps<typeof Renderer>;
12
+ export type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>;
13
+ type HighlightPattern = {
14
+ regex: RegExp;
15
+ color: string;
16
+ };
17
17
  type HighlightedInputProps = {
18
- patterns: {
19
- regex: RegExp;
20
- color: string;
21
- }[];
18
+ patterns: HighlightPattern[];
22
19
  placeholder?: string;
23
20
  } & HighlightedInputInputProps;
24
21
  export declare const HighlightedInput: FC<HighlightedInputProps>;
@@ -1,60 +1,45 @@
1
1
  "use client";
2
- import { jsxs as w, jsx as o } from "react/jsx-runtime";
3
- import { styled as h } from "@stokelp/styled-system/jsx";
4
- import { highlightedInput as E } from "@stokelp/styled-system/recipes";
5
- import { createStyleContext as H } from "../../utils/slots.js";
6
- import { useState as p, useRef as A, useEffect as L } from "react";
7
- import { Input as P } from "./Input.js";
8
- const { withProvider: T, withContext: d } = H(E, {
9
- dataAttr: !0
10
- }), b = T(h("div"), "root"), k = d(P, "input"), B = d(h("p"), "renderer"), U = d(h("span"), "highlight"), K = ({
11
- patterns: c,
12
- value: u,
13
- defaultValue: x,
14
- onChange: m,
15
- onScroll: S,
16
- ...v
17
- }) => {
18
- const a = u !== void 0, [I, R] = p(x?.toString() ?? ""), n = a ? String(u) : I, s = A(null), [g, y] = p(0), C = (t) => {
19
- y(t.currentTarget.scrollLeft), S?.(t);
20
- };
21
- L(() => {
22
- s.current && (s.current.scrollLeft = g);
23
- }, [g]);
24
- const V = new RegExp(c.map((t) => t.regex.source).join("|"), "gi"), $ = () => {
25
- const t = [];
26
- let e = 0;
27
- for (const r of n.matchAll(V)) {
28
- const l = r.index ?? 0, j = l + r[0].length;
29
- l > e && t.push(/* @__PURE__ */ o("span", { children: n.slice(e, l) }, `text-${e}`));
30
- const f = c.find((i) => i.regex.test(r[0]));
31
- c.forEach((i) => i.regex.lastIndex = 0), t.push(
32
- f ? /* @__PURE__ */ o(U, { style: { color: f.color ?? "secondary.500" }, children: r[0] }, `highlight-${l}`) : /* @__PURE__ */ o("span", { children: r[0] }, `text-${l}`)
33
- ), e = j;
34
- }
35
- return e < n.length && t.push(/* @__PURE__ */ o("span", { children: n.slice(e) }, `text-${e}`)), t;
36
- };
37
- return /* @__PURE__ */ w(b, { children: [
38
- /* @__PURE__ */ o(
39
- k,
40
- {
41
- ...v,
42
- value: n,
43
- defaultValue: void 0,
44
- onScroll: C,
45
- onChange: (t) => {
46
- a || R(t.target.value), m?.(t);
47
- }
48
- }
49
- ),
50
- /* @__PURE__ */ o(B, { ref: s, children: $() })
51
- ] });
2
+ import { createStyleContext as e } from "../../utils/slots.js";
3
+ import { Input as t } from "./Input.js";
4
+ import { styled as n } from "@stokelp/styled-system/jsx";
5
+ import { highlightedInput as r } from "@stokelp/styled-system/recipes";
6
+ import { useEffect as i, useRef as a, useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ //#region src/components/input/HighlightedInput.tsx
9
+ var { withProvider: l, withContext: u } = e(r, { dataAttr: !0 }), d = l(n("div"), "root"), f = u(t, "input"), p = u(n("p"), "renderer"), m = u(n("span"), "highlight"), h = ({ patterns: e, value: t, defaultValue: n, onChange: r, onScroll: l, ...u }) => {
10
+ let h = t !== void 0, [g, _] = o(n?.toString() ?? ""), v = h ? String(t) : g, y = a(null), [b, x] = o(0), S = (e) => {
11
+ x(e.currentTarget.scrollLeft), l?.(e);
12
+ };
13
+ i(() => {
14
+ y.current && (y.current.scrollLeft = b);
15
+ }, [b]);
16
+ let C = new RegExp(e.map((e) => e.regex.source).join("|"), "gi"), w = () => {
17
+ let t = [], n = 0;
18
+ for (let r of v.matchAll(C)) {
19
+ let i = r.index ?? 0, a = i + r[0].length;
20
+ i > n && t.push(/* @__PURE__ */ s("span", { children: v.slice(n, i) }, `text-${n}`));
21
+ let o = e.find((e) => e.regex.test(r[0]));
22
+ e.forEach((e) => e.regex.lastIndex = 0), t.push(o ? /* @__PURE__ */ s(m, {
23
+ style: { color: o.color ?? "secondary.500" },
24
+ children: r[0]
25
+ }, `highlight-${i}`) : /* @__PURE__ */ s("span", { children: r[0] }, `text-${i}`)), n = a;
26
+ }
27
+ return n < v.length && t.push(/* @__PURE__ */ s("span", { children: v.slice(n) }, `text-${n}`)), t;
28
+ };
29
+ return /* @__PURE__ */ c(d, { children: [/* @__PURE__ */ s(f, {
30
+ ...u,
31
+ value: v,
32
+ defaultValue: void 0,
33
+ onScroll: S,
34
+ onChange: (e) => {
35
+ h || _(e.target.value), r?.(e);
36
+ }
37
+ }), /* @__PURE__ */ s(p, {
38
+ ref: y,
39
+ children: w()
40
+ })] });
52
41
  };
53
- export {
54
- U as Highlight,
55
- K as HighlightedInput,
56
- k as InputSlot,
57
- B as Renderer,
58
- b as Root
59
- };
60
- //# sourceMappingURL=HighlightedInput.js.map
42
+ //#endregion
43
+ export { m as Highlight, h as HighlightedInput, f as InputSlot, p as Renderer, d as Root };
44
+
45
+ //# sourceMappingURL=HighlightedInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightedInput.js","sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport interface HighlightedInputRootProps extends ComponentProps<typeof Root> {}\nexport interface HighlightedInputInputProps extends ComponentProps<typeof InputSlot> {}\nexport interface HighlightedInputRendererProps extends ComponentProps<typeof Renderer> {}\nexport interface HighlightedInputHighlightProps extends ComponentProps<typeof Highlight> {}\n\ntype HighlightedInputProps = {\n patterns: { regex: RegExp; color: string }[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map(p => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find(p => p.regex.test(match[0]))\n patterns.forEach(p => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={e => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","highlightedInput","Root","styled","InputSlot","Input","Renderer","Highlight","HighlightedInput","patterns","controlledValue","defaultValue","onChange","onScroll","inputProps","isControlled","uncontrolledValue","setUncontrolledValue","useState","value","textBlockRef","useRef","scrollValue","setScrollValue","handleScroll","e","useEffect","combinedRegex","p","renderHighlightedText","nodes","lastIndex","match","start","end","jsx","matchedPattern"],"mappings":";;;;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,GAAkB;AAAA,EACzE,UAAU;AACZ,CAAC,GAEYC,IAAOJ,EAAaK,EAAO,KAAK,GAAG,MAAM,GACzCC,IAAYL,EAAYM,GAAO,OAAO,GACtCC,IAAWP,EAAYI,EAAO,GAAG,GAAG,UAAU,GAC9CI,IAAYR,EAAYI,EAAO,MAAM,GAAG,WAAW,GAYnDK,IAA8C,CAAC;AAAA,EAC1D,UAAAC;AAAA,EACA,OAAOC;AAAA,EACP,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAeL,MAAoB,QAEnC,CAACM,GAAmBC,CAAoB,IAAIC,EAASP,GAAc,SAAA,KAAc,EAAE,GAEnFQ,IAAQJ,IAAe,OAAOL,CAAe,IAAIM,GAEjDI,IAAeC,EAAoC,IAAI,GACvD,CAACC,GAAaC,CAAc,IAAIL,EAAS,CAAC,GAE1CM,IAAe,CAACC,MAAiD;AACrE,IAAAF,EAAeE,EAAE,cAAc,UAAU,GACzCZ,IAAWY,CAAoC;AAAA,EACjD;AAEA,EAAAC,EAAU,MAAM;AACd,IAAIN,EAAa,YACfA,EAAa,QAAQ,aAAaE;AAAA,EAEtC,GAAG,CAACA,CAAW,CAAC;AAEhB,QAAMK,IAAgB,IAAI,OAAOlB,EAAS,IAAI,CAAAmB,MAAKA,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,GAAG,IAAI,GAE5EC,IAAwB,MAAM;AAClC,UAAMC,IAAqB,CAAA;AAC3B,QAAIC,IAAY;AAEhB,eAAWC,KAASb,EAAM,SAASQ,CAAa,GAAG;AACjD,YAAMM,IAAQD,EAAM,SAAS,GACvBE,IAAMD,IAAQD,EAAM,CAAC,EAAE;AAE7B,MAAIC,IAAQF,KACVD,EAAM,KAAK,gBAAAK,EAAC,QAAA,EAAgC,UAAAhB,EAAM,MAAMY,GAAWE,CAAK,EAAA,GAAlD,QAAQF,CAAS,EAAmC,CAAO;AAGnF,YAAMK,IAAiB3B,EAAS,KAAK,CAAAmB,MAAKA,EAAE,MAAM,KAAKI,EAAM,CAAC,CAAC,CAAC;AAChE,MAAAvB,EAAS,QAAQ,CAAAmB,MAAMA,EAAE,MAAM,YAAY,CAAE,GAE7CE,EAAM;AAAA,QACJM,IACE,gBAAAD,EAAC5B,GAAA,EAAqC,OAAO,EAAE,OAAO6B,EAAe,SAAS,gBAAA,GAC3E,UAAAJ,EAAM,CAAC,KADM,aAAaC,CAAK,EAElC,IAEA,gBAAAE,EAAC,QAAA,EAA4B,YAAM,CAAC,EAAA,GAAzB,QAAQF,CAAK,EAAc;AAAA,MAAA,GAI1CF,IAAYG;AAAA,IACd;AAEA,WAAIH,IAAYZ,EAAM,UACpBW,EAAM,KAAK,gBAAAK,EAAC,QAAA,EAAgC,UAAAhB,EAAM,MAAMY,CAAS,EAAA,GAA3C,QAAQA,CAAS,EAA4B,CAAO,GAGrED;AAAA,EACT;AAEA,2BACG5B,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAiC;AAAA,MAAC/B;AAAA,MAAA;AAAA,QACE,GAAGU;AAAA,QACJ,OAAAK;AAAA,QACA,cAAc;AAAA,QACd,UAAUK;AAAA,QACV,UAAU,CAAAC,MAAK;AACb,UAAKV,KACHE,EAAqBQ,EAAE,OAAO,KAAK,GAErCb,IAAWa,CAAC;AAAA,QACd;AAAA,MAAA;AAAA,IAAA;AAAA,IAGF,gBAAAU,EAAC7B,GAAA,EAAS,KAAKc,GAAe,cAAsB,CAAE;AAAA,EAAA,GACxD;AAEJ;"}
1
+ {"version":3,"file":"HighlightedInput.js","names":[],"sources":["../../../src/components/input/HighlightedInput.tsx"],"sourcesContent":["import { styled } from '@stokelp/styled-system/jsx'\nimport { highlightedInput } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input } from '~/components'\nimport { ComponentProps, type ElementRef, FC, ReactNode, useEffect, useRef, useState } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(highlightedInput, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(styled('div'), 'root')\nexport const InputSlot = withContext(Input, 'input')\nexport const Renderer = withContext(styled('p'), 'renderer')\nexport const Highlight = withContext(styled('span'), 'highlight')\n\nexport type HighlightedInputRootProps = ComponentProps<typeof Root>\nexport type HighlightedInputInputProps = ComponentProps<typeof InputSlot>\nexport type HighlightedInputRendererProps = ComponentProps<typeof Renderer>\nexport type HighlightedInputHighlightProps = ComponentProps<typeof Highlight>\n\ntype HighlightPattern = { regex: RegExp; color: string }\n\ntype HighlightedInputProps = {\n patterns: HighlightPattern[]\n placeholder?: string\n} & HighlightedInputInputProps\n\nexport const HighlightedInput: FC<HighlightedInputProps> = ({\n patterns,\n value: controlledValue,\n defaultValue,\n onChange,\n onScroll,\n ...inputProps\n}) => {\n const isControlled = controlledValue !== undefined\n\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue?.toString() ?? '')\n\n const value = isControlled ? String(controlledValue) : uncontrolledValue\n\n const textBlockRef = useRef<ElementRef<typeof Renderer>>(null)\n const [scrollValue, setScrollValue] = useState(0)\n\n const handleScroll = (e: { currentTarget: { scrollLeft: number } }) => {\n setScrollValue(e.currentTarget.scrollLeft)\n onScroll?.(e as React.UIEvent<HTMLInputElement>)\n }\n\n useEffect(() => {\n if (textBlockRef.current) {\n textBlockRef.current.scrollLeft = scrollValue\n }\n }, [scrollValue])\n\n const combinedRegex = new RegExp(patterns.map((p: HighlightPattern) => p.regex.source).join('|'), 'gi')\n\n const renderHighlightedText = () => {\n const nodes: ReactNode[] = []\n let lastIndex = 0\n\n for (const match of value.matchAll(combinedRegex)) {\n const start = match.index ?? 0\n const end = start + match[0].length\n\n if (start > lastIndex) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex, start)}</span>)\n }\n\n const matchedPattern = patterns.find((p: HighlightPattern) => p.regex.test(match[0]))\n patterns.forEach((p: HighlightPattern) => (p.regex.lastIndex = 0))\n\n nodes.push(\n matchedPattern ? (\n <Highlight key={`highlight-${start}`} style={{ color: matchedPattern.color ?? 'secondary.500' }}>\n {match[0]}\n </Highlight>\n ) : (\n <span key={`text-${start}`}>{match[0]}</span>\n ),\n )\n\n lastIndex = end\n }\n\n if (lastIndex < value.length) {\n nodes.push(<span key={`text-${lastIndex}`}>{value.slice(lastIndex)}</span>)\n }\n\n return nodes\n }\n\n return (\n <Root>\n <InputSlot\n {...inputProps}\n value={value}\n defaultValue={undefined} // prevent React warning\n onScroll={handleScroll}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n if (!isControlled) {\n setUncontrolledValue(e.target.value)\n }\n onChange?.(e)\n }}\n />\n\n <Renderer ref={textBlockRef}>{renderHighlightedText()}</Renderer>\n </Root>\n )\n}\n"],"mappings":";;;;;;;;AAMA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,GAAkB,EACzE,UAAU,GACZ,CAAC,GAEY,IAAO,EAAa,EAAO,KAAK,GAAG,MAAM,GACzC,IAAY,EAAY,GAAO,OAAO,GACtC,IAAW,EAAY,EAAO,GAAG,GAAG,UAAU,GAC9C,IAAY,EAAY,EAAO,MAAM,GAAG,WAAW,GAcnD,KAA+C,EAC1D,aACA,OAAO,GACP,iBACA,aACA,aACA,GAAG,QACC;CACJ,IAAM,IAAe,MAAoB,KAAA,GAEnC,CAAC,GAAmB,KAAwB,EAAS,GAAc,SAAS,KAAK,EAAE,GAEnF,IAAQ,IAAe,OAAO,CAAe,IAAI,GAEjD,IAAe,EAAoC,IAAI,GACvD,CAAC,GAAa,KAAkB,EAAS,CAAC,GAE1C,KAAgB,MAAiD;EAErE,AADA,EAAe,EAAE,cAAc,UAAU,GACzC,IAAW,CAAoC;CACjD;CAEA,QAAgB;EACd,AAAI,EAAa,YACf,EAAa,QAAQ,aAAa;CAEtC,GAAG,CAAC,CAAW,CAAC;CAEhB,IAAM,IAAgB,IAAI,OAAO,EAAS,KAAK,MAAwB,EAAE,MAAM,MAAM,EAAE,KAAK,GAAG,GAAG,IAAI,GAEhG,UAA8B;EAClC,IAAM,IAAqB,CAAC,GACxB,IAAY;EAEhB,KAAK,IAAM,KAAS,EAAM,SAAS,CAAa,GAAG;GACjD,IAAM,IAAQ,EAAM,SAAS,GACvB,IAAM,IAAQ,EAAM,GAAG;GAE7B,AAAI,IAAQ,KACV,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiC,EAAM,MAAM,GAAW,CAAK,EAAQ,GAA1D,QAAQ,GAAkD,CAAC;GAGnF,IAAM,IAAiB,EAAS,MAAM,MAAwB,EAAE,MAAM,KAAK,EAAM,EAAE,CAAC;GAapF,AAZA,EAAS,SAAS,MAAyB,EAAE,MAAM,YAAY,CAAE,GAEjE,EAAM,KACJ,IACE,kBAAC,GAAD;IAAsC,OAAO,EAAE,OAAO,EAAe,SAAS,gBAAgB;cAC3F,EAAM;GACE,GAFK,aAAa,GAElB,IAEX,kBAAC,QAAD,EAAA,UAA6B,EAAM,GAAS,GAAjC,QAAQ,GAAyB,CAEhD,GAEA,IAAY;EACd;EAMA,OAJI,IAAY,EAAM,UACpB,EAAM,KAAK,kBAAC,QAAD,EAAA,UAAiC,EAAM,MAAM,CAAS,EAAQ,GAAnD,QAAQ,GAA2C,CAAC,GAGrE;CACT;CAEA,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,GAAI;EACG;EACP,cAAc,KAAA;EACd,UAAU;EACV,WAAW,MAA2C;GAIpD,AAHK,KACH,EAAqB,EAAE,OAAO,KAAK,GAErC,IAAW,CAAC;EACd;CACD,CAAA,GAED,kBAAC,GAAD;EAAU,KAAK;YAAe,EAAsB;CAAY,CAAA,CAC5D,EAAA,CAAA;AAEV"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),u=t.styled("input",r.input,{defaultProps:{onWheel:e=>{e.currentTarget.type==="number"&&e.currentTarget.blur()}},dataAttr:!0});exports.Input=u;
2
- //# sourceMappingURL=Input.cjs.map
1
+ "use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes");var n=(0,e.styled)(`input`,t.input,{defaultProps:{onWheel:e=>{e.currentTarget.type===`number`&&e.currentTarget.blur()}},dataAttr:!0});exports.Input=n;
2
+ //# sourceMappingURL=Input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.cjs","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: event => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport interface InputProps extends ComponentProps<typeof Input> {}\n"],"names":["Input","styled","input","event"],"mappings":"uLAKaA,EAAQC,EAAAA,OAAO,QAASC,QAAO,CAC1C,aAAc,CACZ,QAASC,GAAS,CACZA,EAAM,cAAc,OAAS,UAC/BA,EAAM,cAAc,KAAA,CAExB,CAAA,EAEF,SAAU,EACZ,CAAC"}
1
+ {"version":3,"file":"Input.cjs","names":[],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: (event: WheelEvent<HTMLInputElement>) => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":"qGAKA,IAAa,GAAA,EAAA,EAAA,QAAe,QAAS,EAAA,MAAO,CAC1C,aAAc,CACZ,QAAU,GAAwC,CAC5C,EAAM,cAAc,OAAS,UAC/B,EAAM,cAAc,KAAK,CAE7B,CACF,EACA,SAAU,EACZ,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { StyledComponent } from '@stokelp/styled-system/types';
3
3
  import { InputVariantProps } from '@stokelp/styled-system/recipes';
4
- export declare const Input: StyledComponent<"input", InputVariantProps>;
5
- export interface InputProps extends ComponentProps<typeof Input> {
6
- }
4
+ export declare const Input: StyledComponent<string, InputVariantProps>;
5
+ export type InputProps = ComponentProps<typeof Input>;
@@ -1,15 +1,14 @@
1
1
  "use client";
2
- import { styled as r } from "@stokelp/styled-system/jsx";
3
- import { input as e } from "@stokelp/styled-system/recipes";
4
- const o = r("input", e, {
5
- defaultProps: {
6
- onWheel: (t) => {
7
- t.currentTarget.type === "number" && t.currentTarget.blur();
8
- }
9
- },
10
- dataAttr: !0
2
+ import { styled as e } from "@stokelp/styled-system/jsx";
3
+ import { input as t } from "@stokelp/styled-system/recipes";
4
+ //#region src/components/input/Input.tsx
5
+ var n = e("input", t, {
6
+ defaultProps: { onWheel: (e) => {
7
+ e.currentTarget.type === "number" && e.currentTarget.blur();
8
+ } },
9
+ dataAttr: !0
11
10
  });
12
- export {
13
- o as Input
14
- };
15
- //# sourceMappingURL=Input.js.map
11
+ //#endregion
12
+ export { n as Input };
13
+
14
+ //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: event => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport interface InputProps extends ComponentProps<typeof Input> {}\n"],"names":["Input","styled","input","event"],"mappings":";;;AAKO,MAAMA,IAAQC,EAAO,SAASC,GAAO;AAAA,EAC1C,cAAc;AAAA,IACZ,SAAS,CAAAC,MAAS;AAChB,MAAIA,EAAM,cAAc,SAAS,YAC/BA,EAAM,cAAc,KAAA;AAAA,IAExB;AAAA,EAAA;AAAA,EAEF,UAAU;AACZ,CAAC;"}
1
+ {"version":3,"file":"Input.js","names":[],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import type { ComponentProps, WheelEvent } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { input } from '@stokelp/styled-system/recipes'\n\nexport const Input = styled('input', input, {\n defaultProps: {\n onWheel: (event: WheelEvent<HTMLInputElement>) => {\n if (event.currentTarget.type === 'number') {\n event.currentTarget.blur()\n }\n },\n },\n dataAttr: true,\n})\n\nexport type InputProps = ComponentProps<typeof Input>\n"],"mappings":";;;;AAKA,IAAa,IAAQ,EAAO,SAAS,GAAO;CAC1C,cAAc,EACZ,UAAU,MAAwC;EAChD,AAAI,EAAM,cAAc,SAAS,YAC/B,EAAM,cAAc,KAAK;CAE7B,EACF;CACA,UAAU;AACZ,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes"),r=require("@ark-ui/react"),n=e.styled(r.ark.div,t.inputAddon,{dataAttr:!0});exports.InputAddon=n;
2
- //# sourceMappingURL=InputAddon.cjs.map
1
+ "use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes");var r=(0,t.styled)(e.ark.div,n.inputAddon,{dataAttr:!0});exports.InputAddon=r;
2
+ //# sourceMappingURL=InputAddon.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputAddon.cjs","sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"names":["InputAddon","styled","ark","inputAddon"],"mappings":"kNAMaA,EAAaC,EAAAA,OAAOC,MAAI,IAAKC,EAAAA,WAAY,CACpD,SAAU,EACZ,CAAC"}
1
+ {"version":3,"file":"InputAddon.cjs","names":[],"sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"mappings":"gIAMA,IAAa,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,IAAK,EAAA,WAAY,CACpD,SAAU,EACZ,CAAC"}
@@ -1,7 +1,8 @@
1
- import { ComponentProps, ForwardRefExoticComponent, ClassAttributes, HTMLAttributes } from 'react';
1
+ import { ComponentProps } from 'react';
2
2
  import { StyledComponent } from '@stokelp/styled-system/types';
3
- import { PolymorphicProps } from '@ark-ui/react';
4
- import { InputAddonVariantProps } from '@stokelp/styled-system/recipes';
5
- export declare const InputAddon: StyledComponent<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, InputAddonVariantProps>;
3
+ export declare const InputAddon: StyledComponent<any, {
4
+ [x: string]: unknown;
5
+ [x: number]: unknown;
6
+ }>;
6
7
  export interface InputAddonProps extends ComponentProps<typeof InputAddon> {
7
8
  }
@@ -1,11 +1,10 @@
1
1
  "use client";
2
+ import { ark as e } from "@ark-ui/react";
2
3
  import { styled as t } from "@stokelp/styled-system/jsx";
3
- import { inputAddon as o } from "@stokelp/styled-system/recipes";
4
- import { ark as r } from "@ark-ui/react";
5
- const n = t(r.div, o, {
6
- dataAttr: !0
7
- });
8
- export {
9
- n as InputAddon
10
- };
11
- //# sourceMappingURL=InputAddon.js.map
4
+ import { inputAddon as n } from "@stokelp/styled-system/recipes";
5
+ //#region src/components/input/InputAddon.tsx
6
+ var r = t(e.div, n, { dataAttr: !0 });
7
+ //#endregion
8
+ export { r as InputAddon };
9
+
10
+ //# sourceMappingURL=InputAddon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputAddon.js","sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"names":["InputAddon","styled","ark","inputAddon"],"mappings":";;;;AAMO,MAAMA,IAAaC,EAAOC,EAAI,KAAKC,GAAY;AAAA,EACpD,UAAU;AACZ,CAAC;"}
1
+ {"version":3,"file":"InputAddon.js","names":[],"sources":["../../../src/components/input/InputAddon.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputAddon } from '@stokelp/styled-system/recipes'\nimport { ark } from '@ark-ui/react'\n\nexport const InputAddon = styled(ark.div, inputAddon, {\n dataAttr: true,\n})\n\nexport interface InputAddonProps extends ComponentProps<typeof InputAddon> {}\n"],"mappings":";;;;;AAMA,IAAa,IAAa,EAAO,EAAI,KAAK,GAAY,EACpD,UAAU,GACZ,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@stokelp/styled-system/jsx"),e=require("@stokelp/styled-system/recipes"),r=t.styled("div",e.inputGroup,{dataAttr:!0});exports.InputGroup=r;
2
- //# sourceMappingURL=InputGroup.cjs.map
1
+ "use client";let e=require("@stokelp/styled-system/jsx"),t=require("@stokelp/styled-system/recipes");var n=(0,e.styled)(`div`,t.inputGroup,{dataAttr:!0});exports.InputGroup=n;
2
+ //# sourceMappingURL=InputGroup.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputGroup.cjs","sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"names":["InputGroup","styled","inputGroup"],"mappings":"uLAKaA,EAAaC,EAAAA,OAAO,MAAOC,aAAY,CAClD,SAAU,EACZ,CAAC"}
1
+ {"version":3,"file":"InputGroup.cjs","names":[],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":"qGAKA,IAAa,GAAA,EAAA,EAAA,QAAoB,MAAO,EAAA,WAAY,CAClD,SAAU,EACZ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { StyledComponent } from '@stokelp/styled-system/types';
3
3
  import { InputGroupVariantProps } from '@stokelp/styled-system/recipes';
4
- export declare const InputGroup: StyledComponent<"div", InputGroupVariantProps>;
4
+ export declare const InputGroup: StyledComponent<string, InputGroupVariantProps>;
5
5
  export interface InputGroupProps extends ComponentProps<typeof InputGroup> {
6
6
  }
@@ -1,10 +1,9 @@
1
1
  "use client";
2
- import { styled as t } from "@stokelp/styled-system/jsx";
3
- import { inputGroup as r } from "@stokelp/styled-system/recipes";
4
- const u = t("div", r, {
5
- dataAttr: !0
6
- });
7
- export {
8
- u as InputGroup
9
- };
10
- //# sourceMappingURL=InputGroup.js.map
2
+ import { styled as e } from "@stokelp/styled-system/jsx";
3
+ import { inputGroup as t } from "@stokelp/styled-system/recipes";
4
+ //#region src/components/input/InputGroup.tsx
5
+ var n = e("div", t, { dataAttr: !0 });
6
+ //#endregion
7
+ export { n as InputGroup };
8
+
9
+ //# sourceMappingURL=InputGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputGroup.js","sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"names":["InputGroup","styled","inputGroup"],"mappings":";;;AAKO,MAAMA,IAAaC,EAAO,OAAOC,GAAY;AAAA,EAClD,UAAU;AACZ,CAAC;"}
1
+ {"version":3,"file":"InputGroup.js","names":[],"sources":["../../../src/components/input/InputGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react'\n\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { inputGroup } from '@stokelp/styled-system/recipes'\n\nexport const InputGroup = styled('div', inputGroup, {\n dataAttr: true,\n})\n\nexport interface InputGroupProps extends ComponentProps<typeof InputGroup> {}\n"],"mappings":";;;;AAKA,IAAa,IAAa,EAAO,OAAO,GAAY,EAClD,UAAU,GACZ,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react-phone-number-input"),e=require("react"),i=require("@stokelp/styled-system/jsx"),l=require("@stokelp/styled-system/recipes"),p=i.styled(c,l.phoneNumberInput,{dataAttr:!0}),y=e.forwardRef((t,n)=>{const[r,u]=e.useState(),[o,s]=e.useState();return a.jsx(p,{international:!0,defaultCountry:"FR",value:o,onChange:s,country:r,onCountryChange:u,...t,ref:n})});exports.PhoneNumberInput=y;
2
- //# sourceMappingURL=PhoneNumberInput.cjs.map
1
+ "use client";const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react-phone-number-input");t=e.__toESM(t,1);let n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react"),a=require("react/jsx-runtime");var o=(0,n.styled)(t.default,r.phoneNumberInput,{dataAttr:!0}),s=(0,i.forwardRef)((e,t)=>{let[n,r]=(0,i.useState)(),[s,c]=(0,i.useState)();return(0,a.jsx)(o,{international:!0,defaultCountry:`FR`,value:s,onChange:c,country:n,onCountryChange:r,...e,ref:t})});exports.PhoneNumberInput=s;
2
+ //# sourceMappingURL=PhoneNumberInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberInput.cjs","sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"names":["StyledNumberInput","styled","NumberInput","phoneNumberInput","PhoneNumberInput","forwardRef","props","ref","country","setCountry","useState","value","setValue","jsx"],"mappings":"+QAKMA,EAAoBC,EAAAA,OAAOC,EAAaC,EAAAA,iBAAkB,CAAE,SAAU,GAAM,EAWrEC,EAAmBC,EAAAA,WAA8C,CAACC,EAAOC,IAAQ,CAC5F,KAAM,CAACC,EAASC,CAAU,EAAIC,WAAA,EACxB,CAACC,EAAOC,CAAQ,EAAIF,WAAA,EAE1B,OACEG,EAAAA,IAACb,EAAA,CACC,cAAa,GACb,eAAe,KACf,MAAAW,EACA,SAAUC,EACV,QAAAJ,EACA,gBAAiBC,EAChB,GAAGH,EACJ,IAAAC,CAAA,CAAA,CAGN,CAAC"}
1
+ {"version":3,"file":"PhoneNumberInput.cjs","names":[],"sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"mappings":"0QAKA,IAAM,GAAA,EAAA,EAAA,QAA2B,EAAA,QAAa,EAAA,iBAAkB,CAAE,SAAU,EAAK,CAAC,EAWrE,GAAA,EAAA,EAAA,aAAkE,EAAO,IAAQ,CAC5F,GAAM,CAAC,EAAS,IAAA,EAAA,EAAA,UAAuB,EACjC,CAAC,EAAO,IAAA,EAAA,EAAA,UAAqB,EAEnC,OACE,EAAA,EAAA,KAAC,EAAD,CACE,cAAA,GACA,eAAe,KACR,QACP,SAAU,EACD,UACT,gBAAiB,EACjB,GAAI,EACC,KACN,CAAA,CAEL,CAAC"}
@@ -1,26 +1,24 @@
1
1
  "use client";
2
+ import e from "react-phone-number-input";
3
+ import { styled as t } from "@stokelp/styled-system/jsx";
4
+ import { phoneNumberInput as n } from "@stokelp/styled-system/recipes";
5
+ import { forwardRef as r, useState as i } from "react";
2
6
  import { jsx as a } from "react/jsx-runtime";
3
- import p from "react-phone-number-input";
4
- import { forwardRef as s, useState as t } from "react";
5
- import { styled as f } from "@stokelp/styled-system/jsx";
6
- import { phoneNumberInput as i } from "@stokelp/styled-system/recipes";
7
- const l = f(p, i, { dataAttr: !0 }), h = s((r, e) => {
8
- const [o, n] = t(), [u, m] = t();
9
- return /* @__PURE__ */ a(
10
- l,
11
- {
12
- international: !0,
13
- defaultCountry: "FR",
14
- value: u,
15
- onChange: m,
16
- country: o,
17
- onCountryChange: n,
18
- ...r,
19
- ref: e
20
- }
21
- );
7
+ //#region src/components/input/PhoneNumberInput.tsx
8
+ var o = t(e, n, { dataAttr: !0 }), s = r((e, t) => {
9
+ let [n, r] = i(), [s, c] = i();
10
+ return /* @__PURE__ */ a(o, {
11
+ international: !0,
12
+ defaultCountry: "FR",
13
+ value: s,
14
+ onChange: c,
15
+ country: n,
16
+ onCountryChange: r,
17
+ ...e,
18
+ ref: t
19
+ });
22
20
  });
23
- export {
24
- h as PhoneNumberInput
25
- };
26
- //# sourceMappingURL=PhoneNumberInput.js.map
21
+ //#endregion
22
+ export { s as PhoneNumberInput };
23
+
24
+ //# sourceMappingURL=PhoneNumberInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberInput.js","sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"names":["StyledNumberInput","styled","NumberInput","phoneNumberInput","PhoneNumberInput","forwardRef","props","ref","country","setCountry","useState","value","setValue","jsx"],"mappings":";;;;;;AAKA,MAAMA,IAAoBC,EAAOC,GAAaC,GAAkB,EAAE,UAAU,IAAM,GAWrEC,IAAmBC,EAA8C,CAACC,GAAOC,MAAQ;AAC5F,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAA,GACxB,CAACC,GAAOC,CAAQ,IAAIF,EAAA;AAE1B,SACE,gBAAAG;AAAA,IAACb;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,gBAAe;AAAA,MACf,OAAAW;AAAA,MACA,UAAUC;AAAA,MACV,SAAAJ;AAAA,MACA,iBAAiBC;AAAA,MAChB,GAAGH;AAAA,MACJ,KAAAC;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"PhoneNumberInput.js","names":[],"sources":["../../../src/components/input/PhoneNumberInput.tsx"],"sourcesContent":["import NumberInput, { type Props as FeatureProps } from 'react-phone-number-input'\nimport { ComponentProps, ElementRef, FC, forwardRef, useState } from 'react'\nimport { HTMLStyledProps, styled } from '@stokelp/styled-system/jsx'\nimport { phoneNumberInput } from '@stokelp/styled-system/recipes'\n\nconst StyledNumberInput = styled(NumberInput, phoneNumberInput, { dataAttr: true })\n\ntype Ref = ElementRef<typeof NumberInput>\ntype ForwardPhoneNumberInputProps = FeatureProps<ComponentProps<typeof StyledNumberInput>>\n\ntype StyledFeatureProps = FeatureProps<HTMLStyledProps<'input'>>\n\nexport type PhoneNumberInputProps = Omit<StyledFeatureProps, 'onChange'> & {\n onChange?: StyledFeatureProps['onChange']\n}\n\nexport const PhoneNumberInput = forwardRef<Ref, ForwardPhoneNumberInputProps>((props, ref) => {\n const [country, setCountry] = useState()\n const [value, setValue] = useState()\n\n return (\n <StyledNumberInput\n international\n defaultCountry=\"FR\"\n value={value}\n onChange={setValue}\n country={country}\n onCountryChange={setCountry}\n {...props}\n ref={ref}\n />\n )\n}) as FC<PhoneNumberInputProps>\n"],"mappings":";;;;;;;AAKA,IAAM,IAAoB,EAAO,GAAa,GAAkB,EAAE,UAAU,GAAK,CAAC,GAWrE,IAAmB,GAA+C,GAAO,MAAQ;CAC5F,IAAM,CAAC,GAAS,KAAc,EAAS,GACjC,CAAC,GAAO,KAAY,EAAS;CAEnC,OACE,kBAAC,GAAD;EACE,eAAA;EACA,gBAAe;EACR;EACP,UAAU;EACD;EACT,iBAAiB;EACjB,GAAI;EACC;CACN,CAAA;AAEL,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),e=require("@ark-ui/react"),c=require("react"),t=require("@stokelp/styled-system/jsx"),l=require("../../utils/slots.cjs"),a=require("@stokelp/styled-system/recipes"),{withProvider:m,withContext:r}=l.createStyleContext(a.menu),p=m(e.Menu.Root,void 0,{defaultProps:{lazyMount:!0,loopFocus:!0,unmountOnExit:!0}}),d=r(t.styled(e.Menu.Positioner),"positioner"),n=c.forwardRef(({children:s,...u},i)=>o.jsx(e.Portal,{children:o.jsx(d,{children:o.jsx(e.Menu.Content,{ref:i,...u,children:s})})}));n.displayName=e.Menu.Content.displayName;const g=r(t.styled(n),"content"),y=r(t.styled(e.Menu.Item),"item"),I=r(t.styled(e.Menu.ItemGroup),"itemGroup"),M=r(t.styled(e.Menu.ItemGroupLabel),"itemGroupLabel"),x=r(t.styled(e.Menu.Separator),"separator"),G=r(t.styled(e.Menu.Trigger),"trigger"),C=r(t.styled(e.Menu.TriggerItem),"triggerItem");exports.Content=g;exports.Item=y;exports.ItemGroup=I;exports.ItemGroupLabel=M;exports.Root=p;exports.Separator=x;exports.Trigger=G;exports.TriggerItem=C;
2
- //# sourceMappingURL=Menu.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");var s=e.__exportAll({Content:()=>p,Item:()=>m,ItemGroup:()=>h,ItemGroupLabel:()=>g,Root:()=>u,Separator:()=>_,Trigger:()=>v,TriggerItem:()=>y}),{withProvider:c,withContext:l}=t.createStyleContext(i.menu),u=c(n.Menu.Root,void 0,{defaultProps:{lazyMount:!0,loopFocus:!0,unmountOnExit:!0}}),d=l((0,r.styled)(n.Menu.Positioner),`positioner`),f=(0,a.forwardRef)(({children:e,...t},r)=>(0,o.jsx)(n.Portal,{children:(0,o.jsx)(d,{children:(0,o.jsx)(n.Menu.Content,{ref:r,...t,children:e})})}));f.displayName=n.Menu.Content.displayName;var p=l((0,r.styled)(f),`content`),m=l((0,r.styled)(n.Menu.Item),`item`),h=l((0,r.styled)(n.Menu.ItemGroup),`itemGroup`),g=l((0,r.styled)(n.Menu.ItemGroupLabel),`itemGroupLabel`),_=l((0,r.styled)(n.Menu.Separator),`separator`),v=l((0,r.styled)(n.Menu.Trigger),`trigger`),y=l((0,r.styled)(n.Menu.TriggerItem),`triggerItem`);Object.defineProperty(exports,"Menu_exports",{enumerable:!0,get:function(){return s}});
2
+ //# sourceMappingURL=Menu.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.cjs","sources":["../../../src/components/menu/Menu.tsx"],"sourcesContent":["import { Menu as ArkMenu } from '@ark-ui/react'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { menu } from '@stokelp/styled-system/recipes'\nimport { Portal } from '@ark-ui/react'\n\nconst { withProvider, withContext } = createStyleContext(menu)\n\nexport const Root = withProvider(ArkMenu.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n loopFocus: true,\n unmountOnExit: true,\n },\n})\nconst Positioner = withContext(styled(ArkMenu.Positioner), 'positioner')\n\nconst InnerContent = forwardRef<ElementRef<typeof ArkMenu.Content>, ComponentPropsWithoutRef<typeof ArkMenu.Content>>(\n ({ children, ...props }, ref) => {\n return (\n <Portal>\n <Positioner>\n <ArkMenu.Content ref={ref} {...props}>\n {children}\n </ArkMenu.Content>\n </Positioner>\n </Portal>\n )\n },\n)\nInnerContent.displayName = ArkMenu.Content.displayName\n\nexport const Content = withContext(styled(InnerContent), 'content')\nexport const Item = withContext(styled(ArkMenu.Item), 'item')\nexport const ItemGroup = withContext(styled(ArkMenu.ItemGroup), 'itemGroup')\nexport const ItemGroupLabel = withContext(styled(ArkMenu.ItemGroupLabel), 'itemGroupLabel')\nexport const Separator = withContext(styled(ArkMenu.Separator), 'separator')\nexport const Trigger = withContext(styled(ArkMenu.Trigger), 'trigger')\nexport const TriggerItem = withContext(styled(ArkMenu.TriggerItem), 'triggerItem')\n\nexport interface MenuProps extends ComponentProps<typeof Root> {}\nexport interface MenuContentProps extends ComponentProps<typeof Content> {}\nexport interface MenuItemProps extends ComponentProps<typeof Item> {}\nexport interface MenuItemGroupProps extends ComponentProps<typeof ItemGroup> {}\nexport interface MenuItemGroupLabelProps extends ComponentProps<typeof ItemGroupLabel> {}\nexport interface MenuSeparatorProps extends ComponentProps<typeof Separator> {}\nexport interface MenuTriggerProps extends ComponentProps<typeof Trigger> {}\nexport interface MenuTriggerItemProps extends ComponentProps<typeof TriggerItem> {}\n"],"names":["withProvider","withContext","createStyleContext","menu","Root","ArkMenu","Positioner","styled","InnerContent","forwardRef","children","props","ref","jsx","Portal","Content","Item","ItemGroup","ItemGroupLabel","Separator","Trigger","TriggerItem"],"mappings":"uSAOM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,IAAI,EAEhDC,EAAOJ,EAAaK,OAAQ,KAAM,OAAW,CACxD,aAAc,CACZ,UAAW,GACX,UAAW,GACX,cAAe,EAAA,CAEnB,CAAC,EACKC,EAAaL,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,UAAU,EAAG,YAAY,EAEjEG,EAAeC,EAAAA,WACnB,CAAC,CAAE,SAAAC,EAAU,GAAGC,CAAA,EAASC,IAErBC,EAAAA,IAACC,EAAAA,OAAA,CACC,SAAAD,EAAAA,IAACP,EAAA,CACC,SAAAO,EAAAA,IAACR,EAAAA,KAAQ,QAAR,CAAgB,IAAAO,EAAW,GAAGD,EAC5B,SAAAD,CAAA,CACH,EACF,EACF,CAGN,EACAF,EAAa,YAAcH,OAAQ,QAAQ,YAEpC,MAAMU,EAAUd,EAAYM,SAAOC,CAAY,EAAG,SAAS,EACrDQ,EAAOf,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,IAAI,EAAG,MAAM,EAC/CY,EAAYhB,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,SAAS,EAAG,WAAW,EAC9Da,EAAiBjB,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,cAAc,EAAG,gBAAgB,EAC7Ec,EAAYlB,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,SAAS,EAAG,WAAW,EAC9De,EAAUnB,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,OAAO,EAAG,SAAS,EACxDgB,EAAcpB,EAAYM,EAAAA,OAAOF,EAAAA,KAAQ,WAAW,EAAG,aAAa"}
1
+ {"version":3,"file":"Menu.cjs","names":[],"sources":["../../../src/components/menu/Menu.tsx"],"sourcesContent":["import { Menu as ArkMenu } from '@ark-ui/react'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { menu } from '@stokelp/styled-system/recipes'\nimport { Portal } from '@ark-ui/react'\n\nconst { withProvider, withContext } = createStyleContext(menu)\n\nexport const Root = withProvider(ArkMenu.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n loopFocus: true,\n unmountOnExit: true,\n },\n})\nconst Positioner = withContext(styled(ArkMenu.Positioner), 'positioner')\n\nconst InnerContent = forwardRef<ElementRef<typeof ArkMenu.Content>, ComponentPropsWithoutRef<typeof ArkMenu.Content>>(\n ({ children, ...props }, ref) => {\n return (\n <Portal>\n <Positioner>\n <ArkMenu.Content ref={ref} {...props}>\n {children}\n </ArkMenu.Content>\n </Positioner>\n </Portal>\n )\n },\n)\nInnerContent.displayName = ArkMenu.Content.displayName\n\nexport const Content = withContext(styled(InnerContent), 'content')\nexport const Item = withContext(styled(ArkMenu.Item), 'item')\nexport const ItemGroup = withContext(styled(ArkMenu.ItemGroup), 'itemGroup')\nexport const ItemGroupLabel = withContext(styled(ArkMenu.ItemGroupLabel), 'itemGroupLabel')\nexport const Separator = withContext(styled(ArkMenu.Separator), 'separator')\nexport const Trigger = withContext(styled(ArkMenu.Trigger), 'trigger')\nexport const TriggerItem = withContext(styled(ArkMenu.TriggerItem), 'triggerItem')\n\nexport interface MenuProps extends ComponentProps<typeof Root> {}\nexport interface MenuContentProps extends ComponentProps<typeof Content> {}\nexport interface MenuItemProps extends ComponentProps<typeof Item> {}\nexport interface MenuItemGroupProps extends ComponentProps<typeof ItemGroup> {}\nexport interface MenuItemGroupLabelProps extends ComponentProps<typeof ItemGroupLabel> {}\nexport interface MenuSeparatorProps extends ComponentProps<typeof Separator> {}\nexport interface MenuTriggerProps extends ComponentProps<typeof Trigger> {}\nexport interface MenuTriggerItemProps extends ComponentProps<typeof TriggerItem> {}\n"],"mappings":"6ZAOM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,IAAI,EAEhD,EAAO,EAAa,EAAA,KAAQ,KAAM,IAAA,GAAW,CACxD,aAAc,CACZ,UAAW,GACX,UAAW,GACX,cAAe,EACjB,CACF,CAAC,EACK,EAAa,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,UAAU,EAAG,YAAY,EAEjE,GAAA,EAAA,EAAA,aACH,CAAE,WAAU,GAAG,GAAS,KAErB,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAA,KAAQ,QAAT,CAAsB,MAAK,GAAI,EAC5B,UACc,CAAA,CACP,CAAA,CACN,CAAA,CAGd,EACA,EAAa,YAAc,EAAA,KAAQ,QAAQ,YAE3C,IAAa,EAAU,GAAA,EAAA,EAAA,QAAmB,CAAY,EAAG,SAAS,EACrD,EAAO,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,IAAI,EAAG,MAAM,EAC/C,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,SAAS,EAAG,WAAW,EAC9D,EAAiB,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,cAAc,EAAG,gBAAgB,EAC7E,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,SAAS,EAAG,WAAW,EAC9D,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,OAAO,EAAG,SAAS,EACxD,EAAc,GAAA,EAAA,EAAA,QAAmB,EAAA,KAAQ,WAAW,EAAG,aAAa"}