gd-design-library 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/CHANGELOG.md +86 -17
  2. package/README.md +2 -0
  3. package/assets/icons/account_circle.js +17 -1
  4. package/assets/icons/arrow-down.js +15 -1
  5. package/assets/icons/arrow-forward.js +17 -1
  6. package/assets/icons/attachment.js +17 -1
  7. package/assets/icons/check.js +16 -1
  8. package/assets/icons/chevron-left.js +17 -1
  9. package/assets/icons/chevron-right.js +17 -1
  10. package/assets/icons/content-copy.js +17 -1
  11. package/assets/icons/cross.js +16 -1
  12. package/assets/icons/delete_outlined.js +17 -1
  13. package/assets/icons/dot.js +16 -1
  14. package/assets/icons/edit.js +17 -1
  15. package/assets/icons/error_outline.js +22 -1
  16. package/assets/icons/eye.js +17 -1
  17. package/assets/icons/favorite.js +17 -1
  18. package/assets/icons/favorite_outlined.js +17 -1
  19. package/assets/icons/file-copy.js +16 -1
  20. package/assets/icons/filter.js +17 -1
  21. package/assets/icons/folder.js +17 -1
  22. package/assets/icons/folderOpen.js +17 -1
  23. package/assets/icons/home.js +17 -1
  24. package/assets/icons/keyboard-arrow-down.js +12 -1
  25. package/assets/icons/local_shipping.js +17 -1
  26. package/assets/icons/minus.js +16 -1
  27. package/assets/icons/mobile_menu_button.js +17 -1
  28. package/assets/icons/paymentCard.js +17 -1
  29. package/assets/icons/plus.js +16 -1
  30. package/assets/icons/portrait.js +17 -1
  31. package/assets/icons/processing.js +17 -1
  32. package/assets/icons/ruler.js +17 -1
  33. package/assets/icons/search.js +17 -1
  34. package/assets/icons/shopping_bag.js +17 -1
  35. package/assets/icons/slash.js +17 -1
  36. package/assets/icons/star.js +16 -1
  37. package/assets/icons/starOutlined.js +16 -1
  38. package/assets/icons/thumb-down.js +17 -1
  39. package/assets/icons/thumb-up.js +17 -1
  40. package/assets/icons/toast_error.js +20 -1
  41. package/assets/icons/toast_info.js +16 -1
  42. package/assets/icons/toast_success.js +20 -1
  43. package/assets/icons/toast_warning.js +16 -1
  44. package/assets/icons/upload.js +17 -1
  45. package/assets/icons/volume-up.js +17 -1
  46. package/assets/icons/wifiTethering.js +17 -1
  47. package/assets/svg/checkbox_bg_checked.svg.js +5 -2
  48. package/assets/svg/checkbox_border.svg.js +5 -2
  49. package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
  50. package/assets/svg/radio_bg.svg.js +5 -2
  51. package/assets/svg/radio_bg_checked.svg.js +5 -2
  52. package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
  53. package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
  54. package/components/core/Breadcrumbs/constants.js +4 -1
  55. package/components/core/Button/Button.js +43 -1
  56. package/components/core/Button/ButtonStyled.js +53 -1
  57. package/components/core/Button/constants.js +4 -1
  58. package/components/core/Dropdown/Dropdown.js +38 -1
  59. package/components/core/Dropdown/DropdownStyled.js +20 -1
  60. package/components/core/Dropdown/constants.js +4 -1
  61. package/components/core/Dropdown/hooks/useDropdown.js +12 -1
  62. package/components/core/DropdownItem/DropdownItem.js +38 -1
  63. package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
  64. package/components/core/DropdownItem/constants.js +4 -1
  65. package/components/core/Form/Form.js +48 -1
  66. package/components/core/Form/FormStyled.js +16 -1
  67. package/components/core/Form/constants.js +4 -1
  68. package/components/core/Form/utils.js +34 -1
  69. package/components/core/Icon/Icon.js +33 -1
  70. package/components/core/Icon/constants.js +92 -1
  71. package/components/core/Image/Image.js +39 -1
  72. package/components/core/Image/ImageStyled.js +54 -1
  73. package/components/core/Image/constants.js +4 -1
  74. package/components/core/InlineNotification/InlineNotification.js +38 -1
  75. package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
  76. package/components/core/InlineNotification/constants.js +21 -1
  77. package/components/core/Input/Input.js +72 -1
  78. package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
  79. package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
  80. package/components/core/Input/InputAdornment/constants.js +4 -1
  81. package/components/core/Input/InputHelper/InputHelper.js +22 -1
  82. package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
  83. package/components/core/Input/InputHelper/constants.js +4 -1
  84. package/components/core/Input/InputStyled.js +18 -1
  85. package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
  86. package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
  87. package/components/core/Input/InputWrapper/constants.js +5 -1
  88. package/components/core/Input/constants.js +18 -1
  89. package/components/core/Input/useInputHandlers.js +31 -1
  90. package/components/core/InputFile/InputFile.js +40 -1
  91. package/components/core/InputFile/InputFileStyled.js +27 -1
  92. package/components/core/InputFile/constants.js +6 -1
  93. package/components/core/Label/Label.js +27 -1
  94. package/components/core/Label/LabelStyled.js +17 -1
  95. package/components/core/Label/constants.js +4 -1
  96. package/components/core/Link/Link.js +43 -1
  97. package/components/core/Link/LinkStyled.js +22 -1
  98. package/components/core/Link/constants.js +4 -1
  99. package/components/core/List/List.js +45 -1
  100. package/components/core/List/ListStyled.js +31 -1
  101. package/components/core/List/constants.js +4 -1
  102. package/components/core/Loader/Loader.js +28 -1
  103. package/components/core/Loader/LoaderStyled.js +41 -1
  104. package/components/core/Loader/constants.js +6 -1
  105. package/components/core/Loader/utils.js +37 -1
  106. package/components/core/Menu/Menu.js +100 -1
  107. package/components/core/Menu/MenuStyled.js +31 -1
  108. package/components/core/Menu/constants.js +24 -1
  109. package/components/core/Modal/Modal.js +47 -1
  110. package/components/core/Modal/ModalStyled.js +76 -1
  111. package/components/core/Modal/constants.js +4 -1
  112. package/components/core/Portal/Portal.d.ts +1 -2
  113. package/components/core/Portal/Portal.js +19 -1
  114. package/components/core/Portal/index.d.ts +1 -1
  115. package/components/core/Scroll/Scroll.js +40 -1
  116. package/components/core/Scroll/ScrollBar.js +68 -1
  117. package/components/core/Scroll/ScrollStyled.js +56 -1
  118. package/components/core/Scroll/constants.js +6 -1
  119. package/components/core/Scroll/utils.js +41 -1
  120. package/components/core/Select/Select.js +145 -1
  121. package/components/core/Select/SelectStyled.js +70 -1
  122. package/components/core/Select/constants.js +5 -1
  123. package/components/core/Select/hooks/useSelectContext.js +12 -1
  124. package/components/core/Separator/Separator.js +36 -1
  125. package/components/core/Separator/SeparatorStyled.js +61 -1
  126. package/components/core/Separator/constants.js +4 -1
  127. package/components/core/Skeleton/Skeleton.js +24 -1
  128. package/components/core/Skeleton/SkeletonStyled.js +28 -1
  129. package/components/core/Skeleton/constants.js +6 -1
  130. package/components/core/Slider/Slider.js +35 -1
  131. package/components/core/Slider/SliderStyled.js +20 -1
  132. package/components/core/Slider/constants.js +6 -1
  133. package/components/core/Snackbar/Snackbar.js +46 -1
  134. package/components/core/Snackbar/SnackbarManager.js +48 -1
  135. package/components/core/Snackbar/SnackbarStyled.js +109 -5
  136. package/components/core/Snackbar/constants.js +10 -1
  137. package/components/core/Switch/Switch.js +36 -1
  138. package/components/core/Switch/SwitchStyled.js +56 -1
  139. package/components/core/Switch/constants.js +4 -1
  140. package/components/core/Textarea/Textarea.js +41 -1
  141. package/components/core/Textarea/Textarea.types.d.ts +1 -3
  142. package/components/core/Textarea/Textarea.types.js +6 -1
  143. package/components/core/Textarea/TextareaStyled.js +29 -1
  144. package/components/core/Textarea/constants.js +4 -1
  145. package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
  146. package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
  147. package/components/core/Toggle/Toggle.js +37 -1
  148. package/components/core/Toggle/ToggleStyled.js +18 -1
  149. package/components/core/Toggle/constants.js +4 -1
  150. package/components/core/Tooltip/Tooltip.js +40 -1
  151. package/components/core/Tooltip/Tooltip.types.js +4 -1
  152. package/components/core/Tooltip/TooltipStyled.js +23 -1
  153. package/components/core/Tooltip/constants.js +6 -1
  154. package/components/core/Tooltip/utils.js +64 -1
  155. package/components/core/Typography/Typography.js +26 -1
  156. package/components/core/Typography/TypographyStyled.js +32 -1
  157. package/components/core/Typography/constants.js +4 -1
  158. package/components/core/Wrapper/Wrapper.js +20 -1
  159. package/components/core/Wrapper/WrapperStyled.js +23 -1
  160. package/components/core/Wrapper/constants.js +4 -1
  161. package/components/core/index.d.ts +1 -1
  162. package/components/core/types/roles.types.js +4 -1
  163. package/components/domainSpecific/Accordion/Accordion.js +35 -1
  164. package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
  165. package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
  166. package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
  167. package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
  168. package/components/domainSpecific/Accordion/constants.js +7 -1
  169. package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
  170. package/components/domainSpecific/Avatar/Avatar.js +44 -1
  171. package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
  172. package/components/domainSpecific/Avatar/constants.js +6 -1
  173. package/components/domainSpecific/Card/Card.js +47 -1
  174. package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
  175. package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
  176. package/components/domainSpecific/Card/CardButton/constants.js +4 -1
  177. package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
  178. package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
  179. package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
  180. package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
  181. package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
  182. package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
  183. package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
  184. package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
  185. package/components/domainSpecific/Card/CardImage/constants.js +4 -1
  186. package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
  187. package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
  188. package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
  189. package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
  190. package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
  191. package/components/domainSpecific/Card/CardRating/constants.js +6 -1
  192. package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
  193. package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
  194. package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
  195. package/components/domainSpecific/Card/CartStyled.js +26 -1
  196. package/components/domainSpecific/Card/constants.js +4 -1
  197. package/components/domainSpecific/Carousel/Carousel.js +137 -1
  198. package/components/domainSpecific/Carousel/Carousel.types.d.ts +1 -12
  199. package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
  200. package/components/domainSpecific/Carousel/constants.js +4 -1
  201. package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
  202. package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
  203. package/components/domainSpecific/ChatBubble/constants.js +4 -1
  204. package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
  205. package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
  206. package/components/domainSpecific/ContentCarousel/constants.js +4 -1
  207. package/components/domainSpecific/Counter/Counter.js +55 -1
  208. package/components/domainSpecific/Counter/CounterStyled.js +27 -1
  209. package/components/domainSpecific/Counter/constants.js +8 -1
  210. package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
  211. package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
  212. package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
  213. package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
  214. package/components/domainSpecific/Header/Header.js +88 -1
  215. package/components/domainSpecific/Header/HeaderStyled.js +136 -1
  216. package/components/domainSpecific/Header/constants.js +4 -1
  217. package/components/domainSpecific/Price/Price.js +23 -1
  218. package/components/domainSpecific/Price/PriceStyled.js +42 -1
  219. package/components/domainSpecific/Price/constants.js +4 -1
  220. package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
  221. package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
  222. package/components/domainSpecific/ProgressBar/constants.js +7 -1
  223. package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
  224. package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
  225. package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
  226. package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
  227. package/components/domainSpecific/RadioGroup/constants.js +5 -1
  228. package/components/domainSpecific/Rating/Rating.js +63 -1
  229. package/components/domainSpecific/Rating/RatingStyled.js +61 -1
  230. package/components/domainSpecific/Rating/constants.js +9 -1
  231. package/components/domainSpecific/Search/Search.js +58 -1
  232. package/components/domainSpecific/Search/SearchStyled.js +16 -1
  233. package/components/domainSpecific/Search/constants.js +7 -1
  234. package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
  235. package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
  236. package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
  237. package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
  238. package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
  239. package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
  240. package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
  241. package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
  242. package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
  243. package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
  244. package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
  245. package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
  246. package/components/domainSpecific/SearchModal/constants.js +8 -1
  247. package/components/domainSpecific/Stepper/Stepper.js +42 -1
  248. package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
  249. package/components/domainSpecific/Stepper/constants.js +4 -1
  250. package/components/domainSpecific/Stepper/utils.js +37 -1
  251. package/components/domainSpecific/Tabs/Tabs.js +40 -1
  252. package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
  253. package/components/domainSpecific/Tabs/constants.js +6 -1
  254. package/components/index.types.js +4 -1
  255. package/components/layout/ChatContainer/ChatContainer.js +51 -1
  256. package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
  257. package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
  258. package/components/layout/ChatContainer/constants.js +4 -1
  259. package/components/layout/Column/Column.js +26 -1
  260. package/components/layout/Column/ColumnStyled.js +36 -1
  261. package/components/layout/Column/constants.js +4 -1
  262. package/components/layout/FlexContainer/FlexContainer.js +25 -1
  263. package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
  264. package/components/layout/FlexContainer/constants.js +4 -1
  265. package/components/layout/FlexContainer/utils.js +18 -1
  266. package/components/layout/Row/Row.js +26 -1
  267. package/components/layout/Row/RowStyled.js +36 -1
  268. package/components/layout/Row/constants.js +4 -1
  269. package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
  270. package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
  271. package/components/templates/SkeletonSearch/constants.js +5 -1
  272. package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
  273. package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
  274. package/components/widget/DragAndDrop/constants.js +4 -1
  275. package/components/widget/DragAndDrop/utils/validators.js +17 -1
  276. package/constants/keyboard.js +10 -1
  277. package/constants/positioning.js +12 -1
  278. package/constants/timers.js +5 -1
  279. package/hooks/useAutoFocus/useAutoFocus.js +11 -1
  280. package/hooks/useCarousel/useCarousel.js +61 -1
  281. package/hooks/useClickOutside/useClickOutside.js +15 -1
  282. package/hooks/useKeyControls/useKeyControls.js +19 -1
  283. package/hooks/useMediaQuery/useMediaQuery.js +14 -1
  284. package/hooks/useTheme/useTheme.js +48 -1
  285. package/index.js +350 -1
  286. package/package.json +17 -2
  287. package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
  288. package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
  289. package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
  290. package/stories/components/TokenViewer/index.d.ts +1 -0
  291. package/tokens/accordion.js +72 -1
  292. package/tokens/animations.js +63 -1
  293. package/tokens/avatar.d.ts +22 -15
  294. package/tokens/avatar.js +153 -1
  295. package/tokens/borders.js +17 -1
  296. package/tokens/breadcrumbs.js +37 -1
  297. package/tokens/breakpoints.d.ts +8 -0
  298. package/tokens/breakpoints.js +12 -0
  299. package/tokens/button.js +146 -1
  300. package/tokens/card.d.ts +5 -1
  301. package/tokens/card.js +191 -1
  302. package/tokens/carousel.js +216 -1
  303. package/tokens/chat.d.ts +4 -0
  304. package/tokens/chat.js +122 -1
  305. package/tokens/chatbubble.d.ts +1 -3
  306. package/tokens/chatbubble.js +75 -1
  307. package/tokens/colors.js +157 -1
  308. package/tokens/column.js +9 -1
  309. package/tokens/constants.js +4 -1
  310. package/tokens/counter.js +37 -1
  311. package/tokens/cursors.js +20 -1
  312. package/tokens/defaultTheme.d.ts +154 -47
  313. package/tokens/defaultTheme.js +123 -1
  314. package/tokens/display.js +19 -1
  315. package/tokens/draganddrop.js +87 -1
  316. package/tokens/draganddropfiles.js +6 -1
  317. package/tokens/flexContainer.js +13 -1
  318. package/tokens/font.js +52 -1
  319. package/tokens/form.js +6 -1
  320. package/tokens/header.js +123 -1
  321. package/tokens/icon.js +32 -1
  322. package/tokens/image.js +40 -1
  323. package/tokens/index.d.ts +71 -47
  324. package/tokens/index.js +145 -1
  325. package/tokens/inlineNotification.js +75 -1
  326. package/tokens/input.js +192 -1
  327. package/tokens/inputfile.js +12 -1
  328. package/tokens/label.js +9 -1
  329. package/tokens/link.js +66 -1
  330. package/tokens/list.js +87 -1
  331. package/tokens/loader.js +141 -1
  332. package/tokens/menu.js +19 -1
  333. package/tokens/modal.js +108 -1
  334. package/tokens/price.js +32 -1
  335. package/tokens/progressbar.js +60 -1
  336. package/tokens/radiogroup.js +103 -2
  337. package/tokens/radius.js +14 -1
  338. package/tokens/rating.js +73 -1
  339. package/tokens/reset.js +4 -1
  340. package/tokens/row.js +8 -1
  341. package/tokens/scroll.js +99 -1
  342. package/tokens/search.js +45 -1
  343. package/tokens/searchModal.js +159 -1
  344. package/tokens/select.js +99 -1
  345. package/tokens/separator.js +63 -1
  346. package/tokens/shadow.js +25 -1
  347. package/tokens/skeleton.js +77 -1
  348. package/tokens/slider.js +45 -1
  349. package/tokens/snackbar.d.ts +30 -28
  350. package/tokens/snackbar.js +169 -1
  351. package/tokens/spacing.js +13 -1
  352. package/tokens/stepper.js +147 -1
  353. package/tokens/switch.js +76 -1
  354. package/tokens/tabs.js +108 -1
  355. package/tokens/textarea.js +45 -1
  356. package/tokens/toggle.js +19 -1
  357. package/tokens/tooltip.js +69 -1
  358. package/tokens/types/index.types.js +4 -1
  359. package/tokens/typography.js +134 -1
  360. package/tokens/utils.d.ts +6 -0
  361. package/tokens/utils.js +88 -1
  362. package/tokens/values.js +73 -1
  363. package/tokens/wrapper.js +34 -1
  364. package/types/accesability.js +4 -1
  365. package/types/button.js +7 -1
  366. package/types/card.js +5 -1
  367. package/types/carousel.d.ts +12 -1
  368. package/types/carousel.js +6 -0
  369. package/types/chat.js +4 -1
  370. package/types/common.js +5 -1
  371. package/types/cursors.js +4 -1
  372. package/types/index.d.ts +1 -0
  373. package/types/input.js +6 -1
  374. package/types/label.js +4 -1
  375. package/types/layout.js +4 -1
  376. package/types/link.js +5 -1
  377. package/types/list.js +4 -1
  378. package/types/separator.js +5 -1
  379. package/types/skeleton.js +4 -1
  380. package/types/snackbar.js +5 -1
  381. package/types/stepper.js +5 -1
  382. package/types/typography.js +6 -1
  383. package/types/wrapper.js +4 -1
  384. package/utils/animationFrame.js +17 -1
  385. package/utils/common.js +4 -1
  386. package/utils/date.js +11 -1
  387. package/utils/focus.js +54 -1
  388. package/utils/helpers.js +42 -1
  389. package/utils/layout.js +32 -1
  390. package/utils/math.js +11 -1
  391. package/utils/setInRange.js +11 -1
  392. package/utils/uniqueKeys.js +4 -1
  393. package/components/domainSpecific/Carousel/Carousel.types.js +0 -1
  394. package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
  395. /package/{gd-design-library.css → assets/styles.css} +0 -0
@@ -1 +1,54 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@emotion/react/jsx-runtime"),d=require("react"),c=require("../../../utils/helpers.js"),l=s=>{const{width:e,height:t,theme:{image:r}={},...i}=s,n=[c.get(r,"wrapper",{}),{width:`${e?`${e}px`:"100%"}`,height:`${t?`${t}px`:"100%"}`}];return o.jsx("div",{css:n,...i})},p=d.forwardRef((s,e)=>{const{objectFit:t="cover",$isLoading:r,theme:{image:i}={},...n}=s,a=[c.get(i,"default",{}),{objectFit:t,opacity:`${r?0:1}`}];return o.jsx("img",{css:a,...n,ref:e})}),g=s=>{const{theme:{image:e}={},...t}=s,r=[c.get(e,"placeholder",{})];return o.jsx("div",{css:r,...t})},m=s=>{const{theme:{image:e}={},...t}=s,r=[c.get(e,"caption",{})];return o.jsx("figcaption",{css:r,...t})};exports.CaptionStyled=m;exports.ImageStyled=p;exports.ImageWrapperStyled=l;exports.PlaceholderStyled=g;
1
+ "use client";
2
+ import { jsx as r } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as a } from "react";
4
+ import { get as c } from "../../../utils/helpers.js";
5
+ const h = (o) => {
6
+ const {
7
+ width: t,
8
+ height: e,
9
+ theme: {
10
+ image: s
11
+ } = {},
12
+ ...i
13
+ } = o, p = [c(s, "wrapper", {}), {
14
+ width: `${t ? `${t}px` : "100%"}`,
15
+ height: `${e ? `${e}px` : "100%"}`
16
+ }];
17
+ return /* @__PURE__ */ r("div", { css: p, ...i });
18
+ }, u = a((o, t) => {
19
+ const {
20
+ objectFit: e = "cover",
21
+ $isLoading: s,
22
+ theme: {
23
+ image: i
24
+ } = {},
25
+ styles: p,
26
+ ...m
27
+ } = o, n = [c(i, "default", {}), {
28
+ objectFit: e,
29
+ opacity: `${s ? 0 : 1}`
30
+ }, p];
31
+ return /* @__PURE__ */ r("img", { css: n, ...m, ref: t });
32
+ }), y = (o) => {
33
+ const {
34
+ theme: {
35
+ image: t
36
+ } = {},
37
+ ...e
38
+ } = o, s = [c(t, "placeholder", {})];
39
+ return /* @__PURE__ */ r("div", { css: s, ...e });
40
+ }, f = (o) => {
41
+ const {
42
+ theme: {
43
+ image: t
44
+ } = {},
45
+ ...e
46
+ } = o, s = [c(t, "caption", {})];
47
+ return /* @__PURE__ */ r("figcaption", { css: s, ...e });
48
+ };
49
+ export {
50
+ f as CaptionStyled,
51
+ u as ImageStyled,
52
+ h as ImageWrapperStyled,
53
+ y as PlaceholderStyled
54
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Image";exports.COMPONENT_NAME=e;
1
+ const N = "Image";
2
+ export {
3
+ N as COMPONENT_NAME
4
+ };
@@ -1 +1,38 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@emotion/react/jsx-runtime"),q=require("react"),l=require("../../../utils/helpers.js"),v=require("../../../utils/common.js"),I=require("../../../hooks/useTheme/useTheme.js"),O=require("../Icon/Icon.js"),e=require("./constants.js"),u=require("./InlineNotificationStyled.js"),N=q.forwardRef((d,m)=>{const{variant:i=e.DEFAULT_VARIANT,className:f,styles:T,children:n,...y}=d,{theme:s}=I.useTheme(),t=l.get(s,["inlineNotification",i,"icon"],{name:""}),a=v.isChildPrimitive(n),{ariaLive:o,role:c}=l.get(e.accessibilityValues,i,e.accessibilityValues.default);return r.jsxs(u.InlineNotificationStyled,{ref:m,"data-testid":e.COMPONENT_NAME,$variant:i,className:f,styles:T,theme:s,...o?{"aria-live":o}:{},...c?{role:c}:{},...y,children:[(t==null?void 0:t.name)&&r.jsx(O.Icon,{...t}),a&&r.jsx(u.InlineNotificationMessageStyled,{"data-testid":e.CONTENT_COMPONENT,$variant:i,theme:s,children:n}),!a&&n]})});N.displayName=e.COMPONENT_NAME;exports.InlineNotification=N;
1
+ "use client";
2
+ import { jsxs as T, jsx as s } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as h } from "react";
4
+ import { DEFAULT_VARIANT as u, accessibilityValues as m, COMPONENT_NAME as c, CONTENT_COMPONENT as y } from "./constants.js";
5
+ import { InlineNotificationStyled as E, InlineNotificationMessageStyled as I } from "./InlineNotificationStyled.js";
6
+ import { isChildPrimitive as O } from "../../../utils/common.js";
7
+ import { Icon as A } from "../Icon/Icon.js";
8
+ import { useTheme as C } from "../../../hooks/useTheme/useTheme.js";
9
+ import { get as l } from "../../../utils/helpers.js";
10
+ const M = h((f, N) => {
11
+ const {
12
+ variant: i = u,
13
+ className: d,
14
+ styles: p,
15
+ children: e,
16
+ ...v
17
+ } = f, {
18
+ theme: o
19
+ } = C(), t = l(o, ["inlineNotification", i, "icon"], {
20
+ name: ""
21
+ }), r = O(e), {
22
+ ariaLive: a,
23
+ role: n
24
+ } = l(m, i, m.default);
25
+ return /* @__PURE__ */ T(E, { ref: N, "data-testid": c, $variant: i, className: d, styles: p, theme: o, ...a ? {
26
+ "aria-live": a
27
+ } : {}, ...n ? {
28
+ role: n
29
+ } : {}, ...v, children: [
30
+ (t == null ? void 0 : t.name) && /* @__PURE__ */ s(A, { ...t }),
31
+ r && /* @__PURE__ */ s(I, { "data-testid": y, $variant: i, theme: o, children: e }),
32
+ !r && e
33
+ ] });
34
+ });
35
+ M.displayName = c;
36
+ export {
37
+ M as InlineNotification
38
+ };
@@ -1 +1,29 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),d=require("react"),n=require("../../../utils/helpers.js"),f=d.forwardRef((s,t)=>{const{theme:{inlineNotification:e}={},$variant:i,styles:o={},...c}=s,r=n.get(e,"default.wrapper",{}),a=n.get(e,[i,"wrapper"],{}),u=[r,a,o];return l.jsx("div",{css:u,...c,ref:t})}),y=s=>{const{theme:{inlineNotification:t}={},$variant:e,styles:i={},...o}=s,c=n.get(t,"default.content",{}),r=n.get(t,[e,"content"],{}),a=[c,r,i];return l.jsx("span",{css:a,...o})};exports.InlineNotificationMessageStyled=y;exports.InlineNotificationStyled=f;
1
+ "use client";
2
+ import { jsx as l } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as f } from "react";
4
+ import { get as n } from "../../../utils/helpers.js";
5
+ const u = f((s, t) => {
6
+ const {
7
+ theme: {
8
+ inlineNotification: e
9
+ } = {},
10
+ $variant: o,
11
+ styles: i = {},
12
+ ...r
13
+ } = s, c = n(e, "default.wrapper", {}), a = n(e, [o, "wrapper"], {});
14
+ return /* @__PURE__ */ l("div", { css: [c, a, i], ...r, ref: t });
15
+ }), S = (s) => {
16
+ const {
17
+ theme: {
18
+ inlineNotification: t
19
+ } = {},
20
+ $variant: e,
21
+ styles: o = {},
22
+ ...i
23
+ } = s, r = n(t, "default.content", {}), c = n(t, [e, "content"], {});
24
+ return /* @__PURE__ */ l("span", { css: [r, c, o], ...i });
25
+ };
26
+ export {
27
+ S as InlineNotificationMessageStyled,
28
+ u as InlineNotificationStyled
29
+ };
@@ -1 +1,21 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="InlineNotification",t="InlineNotificationComponent",e={ariaLive:"polite",role:"status"},i={ariaLive:"assertive",role:"alert"},s={default:e,success:e,info:e,error:i,warning:i},r="basic";exports.COMPONENT_NAME=a;exports.CONTENT_COMPONENT=t;exports.DEFAULT_VARIANT=r;exports.accessibilityValues=s;exports.defaultAriaValues=e;exports.errorAriaValues=i;
1
+ const t = "InlineNotification", a = "InlineNotificationComponent", i = {
2
+ ariaLive: "polite",
3
+ role: "status"
4
+ }, e = {
5
+ ariaLive: "assertive",
6
+ role: "alert"
7
+ }, o = {
8
+ default: i,
9
+ success: i,
10
+ info: i,
11
+ error: e,
12
+ warning: e
13
+ }, s = "basic";
14
+ export {
15
+ t as COMPONENT_NAME,
16
+ a as CONTENT_COMPONENT,
17
+ s as DEFAULT_VARIANT,
18
+ o as accessibilityValues,
19
+ i as defaultAriaValues,
20
+ e as errorAriaValues
21
+ };
@@ -1 +1,72 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@emotion/react/jsx-runtime"),U=require("react"),C=require("../../../hooks/useTheme/useTheme.js"),w=require("../../../types/common.js"),e=require("./constants.js"),H=require("./useInputHandlers.js"),d=require("./InputWrapper/InputWrapper.js"),c=require("./InputAdornment/InputAdornment.js"),p=require("./InputHelper/InputHelper.js"),v=require("./InputStyled.js"),P=U.forwardRef((I,O)=>{const{theme:m}=C.useTheme(),{width:E,className:S=e.DEFAULT_PROPS.className,styles:T=e.DEFAULT_PROPS.styles,variant:s=e.DEFAULT_PROPS.variant,color:a=e.DEFAULT_PROPS.color,disabled:_=e.DEFAULT_PROPS.disabled,readOnly:h=e.DEFAULT_PROPS.readOnly,ariaRequired:N=e.DEFAULT_PROPS.ariaRequired,role:A=e.DEFAULT_PROPS.role,tabIndex:b=e.DEFAULT_PROPS.tabIndex,ariaDescribedBy:o,debounceCallbackTime:x,onChange:D,onKeyDown:q,onMouseDown:y,onBlur:R,adornmentStart:i,adornmentEnd:u,label:n,helperText:t,...j}=I,l=!e.FOCUS_EXCLUDED_LIST.includes(s),F=!!(n||t),{handlers:M,isMouseInteraction:L}=H.useInputHandlers({onKeyDown:q,onBlur:R,onMouseDown:y,onChange:D,debounceCallbackTime:x});return r.jsxs(d.InputWrapper,{as:"label",withGap:F,className:S,width:E,styles:T,children:[n&&r.jsx(p.InputHelper,{children:n}),r.jsxs(d.InputWrapper,{children:[i&&r.jsx(c.InputAdornment,{children:i}),r.jsx(v.InputStyled,{$isMouseInteraction:L&&l,$color:a,ref:O,disabled:_,role:A,theme:m,type:s,readOnly:h,tabIndex:b,"aria-required":N,"data-testid":e.COMPONENT_NAME,...M,...o?{"aria-describedby":o}:{},...j}),l&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`${e.COMPONENT_NAME}__border`}),r.jsx("div",{className:`${e.COMPONENT_NAME}__outline`})]}),u&&r.jsx(c.InputAdornment,{children:u})]}),t&&r.jsx(p.InputHelper,{color:a,size:w.SizeVariant.Sm,children:t})]})});P.displayName=e.COMPONENT_NAME;exports.Input=P;
1
+ "use client";
2
+ import { jsxs as a, jsx as r, Fragment as A } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as H } from "react";
4
+ import { DEFAULT_PROPS as e, COMPONENT_NAME as o, FOCUS_EXCLUDED_LIST as L } from "./constants.js";
5
+ import { useInputHandlers as P } from "./useInputHandlers.js";
6
+ import { InputStyled as U } from "./InputStyled.js";
7
+ import { InputWrapper as p } from "./InputWrapper/InputWrapper.js";
8
+ import { InputHelper as u } from "./InputHelper/InputHelper.js";
9
+ import { InputAdornment as h } from "./InputAdornment/InputAdornment.js";
10
+ import { useTheme as g } from "../../../hooks/useTheme/useTheme.js";
11
+ import { SizeVariant as j } from "../../../types/common.js";
12
+ const z = H((f, b) => {
13
+ const {
14
+ theme: I
15
+ } = g(), {
16
+ // Layout props
17
+ width: y,
18
+ className: N = e.className,
19
+ styles: S = e.styles,
20
+ // Input behavior props
21
+ variant: i = e.variant,
22
+ color: s = e.color,
23
+ disabled: _ = e.disabled,
24
+ readOnly: w = e.readOnly,
25
+ // Accessibility props
26
+ ariaRequired: x = e.ariaRequired,
27
+ role: D = e.role,
28
+ tabIndex: E = e.tabIndex,
29
+ ariaDescribedBy: l,
30
+ // Event handling props
31
+ debounceCallbackTime: O,
32
+ onChange: T,
33
+ onKeyDown: C,
34
+ onMouseDown: M,
35
+ onBlur: v,
36
+ // Adornments
37
+ adornmentStart: d,
38
+ adornmentEnd: m,
39
+ // Helper text
40
+ label: t,
41
+ helperText: n,
42
+ ...F
43
+ } = f, c = !L.includes(i), R = !!(t || n), {
44
+ handlers: $,
45
+ isMouseInteraction: q
46
+ } = P({
47
+ onKeyDown: C,
48
+ onBlur: v,
49
+ onMouseDown: M,
50
+ onChange: T,
51
+ debounceCallbackTime: O
52
+ });
53
+ return /* @__PURE__ */ a(p, { as: "label", withGap: R, className: N, width: y, styles: S, children: [
54
+ t && /* @__PURE__ */ r(u, { children: t }),
55
+ /* @__PURE__ */ a(p, { children: [
56
+ d && /* @__PURE__ */ r(h, { children: d }),
57
+ /* @__PURE__ */ r(U, { $isMouseInteraction: q && c, $color: s, ref: b, disabled: _, role: D, theme: I, type: i, readOnly: w, tabIndex: E, "aria-required": x, "data-testid": o, ...$, ...l ? {
58
+ "aria-describedby": l
59
+ } : {}, ...F }),
60
+ c && /* @__PURE__ */ a(A, { children: [
61
+ /* @__PURE__ */ r("div", { className: `${o}__border` }),
62
+ /* @__PURE__ */ r("div", { className: `${o}__outline` })
63
+ ] }),
64
+ m && /* @__PURE__ */ r(h, { children: m })
65
+ ] }),
66
+ n && /* @__PURE__ */ r(u, { color: s, size: j.Sm, children: n })
67
+ ] });
68
+ });
69
+ z.displayName = o;
70
+ export {
71
+ z as Input
72
+ };
@@ -1 +1,18 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@emotion/react/jsx-runtime"),c=require("react"),d=require("../../../../hooks/useTheme/useTheme.js"),e=require("./constants.js"),i=require("./InputAdornmentStyled.js"),t=c.forwardRef((n,r)=>{const{theme:s}=d.useTheme(),{children:o}=n;return u.jsx(i.InputAdornmentStyled,{ref:r,theme:s,"data-testid":e.COMPONENT_NAME,children:o})});t.displayName=e.COMPONENT_NAME;exports.InputAdornment=t;
1
+ "use client";
2
+ import { jsx as n } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as i } from "react";
4
+ import { COMPONENT_NAME as t } from "./constants.js";
5
+ import { InputAdornmentStyled as p } from "./InputAdornmentStyled.js";
6
+ import { useTheme as d } from "../../../../hooks/useTheme/useTheme.js";
7
+ const f = i((r, e) => {
8
+ const {
9
+ theme: o
10
+ } = d(), {
11
+ children: m
12
+ } = r;
13
+ return /* @__PURE__ */ n(p, { ref: e, theme: o, "data-testid": t, children: m });
14
+ });
15
+ f.displayName = t;
16
+ export {
17
+ f as InputAdornment
18
+ };
@@ -1 +1,15 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@emotion/react/jsx-runtime"),o=require("../../../../utils/helpers.js");require("react");const u=e=>{const{theme:{input:t}={},...n}=e,r=[o.get(t,"adornment.default",{})];return s.jsx("div",{css:r,...n})};exports.InputAdornmentStyled=u;
1
+ "use client";
2
+ import { jsx as r } from "@emotion/react/jsx-runtime";
3
+ import { get as s } from "../../../../utils/helpers.js";
4
+ const c = (t) => {
5
+ const {
6
+ theme: {
7
+ input: e
8
+ } = {},
9
+ ...o
10
+ } = t, n = [s(e, "adornment.default", {})];
11
+ return /* @__PURE__ */ r("div", { css: n, ...o });
12
+ };
13
+ export {
14
+ c as InputAdornmentStyled
15
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="InputAdornment";exports.COMPONENT_NAME=t;
1
+ const n = "InputAdornment";
2
+ export {
3
+ n as COMPONENT_NAME
4
+ };
@@ -1 +1,22 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),l=require("react"),a=require("../../../../hooks/useTheme/useTheme.js"),p=require("../../../../types/common.js"),d=require("../../../../types/input.js"),e=require("./constants.js"),m=require("./InputHelperStyled.js"),r=l.forwardRef((t,n)=>{const{theme:o}=a.useTheme(),{children:s,size:i=p.SizeVariant.Md,color:u=d.InputColorVariant.Primary}=t;return c.jsx(m.InputHelperStyled,{$size:i,$color:u,ref:n,theme:o,"data-testid":e.COMPONENT_NAME,children:s})});r.displayName=e.COMPONENT_NAME;exports.InputHelper=r;
1
+ "use client";
2
+ import { jsx as n } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as a } from "react";
4
+ import { COMPONENT_NAME as r } from "./constants.js";
5
+ import { InputHelperStyled as f } from "./InputHelperStyled.js";
6
+ import { useTheme as s } from "../../../../hooks/useTheme/useTheme.js";
7
+ import { InputColorVariant as l } from "../../../../types/input.js";
8
+ import { SizeVariant as c } from "../../../../types/common.js";
9
+ const d = a((o, t) => {
10
+ const {
11
+ theme: e
12
+ } = s(), {
13
+ children: m,
14
+ size: i = c.Md,
15
+ color: p = l.Primary
16
+ } = o;
17
+ return /* @__PURE__ */ n(f, { $size: i, $color: p, ref: t, theme: e, "data-testid": r, children: m });
18
+ });
19
+ d.displayName = r;
20
+ export {
21
+ d as InputHelper
22
+ };
@@ -1 +1,17 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),e=require("../../../../utils/helpers.js");require("react");const i=s=>{const{theme:{input:n}={},$color:o,$size:t,...l}=s,r=e.get(n,"helper",{}),u=[e.get(r,["default",t],{}),e.get(r,[o,t],{})];return c.jsx("div",{css:u,...l})};exports.InputHelperStyled=i;
1
+ "use client";
2
+ import { jsx as l } from "@emotion/react/jsx-runtime";
3
+ import { get as t } from "../../../../utils/helpers.js";
4
+ const u = (s) => {
5
+ const {
6
+ theme: {
7
+ input: r
8
+ } = {},
9
+ $color: n,
10
+ $size: e,
11
+ ...p
12
+ } = s, o = t(r, "helper", {}), c = [t(o, ["default", e], {}), t(o, [n, e], {})];
13
+ return /* @__PURE__ */ l("div", { css: c, ...p });
14
+ };
15
+ export {
16
+ u as InputHelperStyled
17
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="InputHelper";exports.COMPONENT_NAME=e;
1
+ const e = "InputHelper";
2
+ export {
3
+ e as COMPONENT_NAME
4
+ };
@@ -1 +1,18 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),p=require("react"),e=require("../../../utils/helpers.js"),a=p.forwardRef((n,o)=>{const{theme:{input:r}={},$isMouseInteraction:s,$color:u,...c}=n,t=e.get(r,"input",{}),i=[e.get(t,"default",{}),e.get(t,[s?"mouseInteraction":"defaultInteraction"],{}),e.get(t,u,{})];return l.jsx("input",{css:i,...c,ref:o})});exports.InputStyled=a;
1
+ "use client";
2
+ import { jsx as u } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as m } from "react";
4
+ import { get as t } from "../../../utils/helpers.js";
5
+ const d = m((e, n) => {
6
+ const {
7
+ theme: {
8
+ input: r
9
+ } = {},
10
+ $isMouseInteraction: s,
11
+ $color: c,
12
+ ...i
13
+ } = e, o = t(r, "input", {}), p = [t(o, "default", {}), t(o, [s ? "mouseInteraction" : "defaultInteraction"], {}), t(o, c, {})];
14
+ return /* @__PURE__ */ u("input", { css: p, ...i, ref: n });
15
+ });
16
+ export {
17
+ d as InputStyled
18
+ };
@@ -1 +1,22 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@emotion/react/jsx-runtime"),d=require("react"),h=require("../../../../hooks/useTheme/useTheme.js"),e=require("./constants.js"),l=require("./InputWrapperStyled.js"),t=d.forwardRef((r,s)=>{const{theme:n}=h.useTheme(),{children:a,as:i=e.DEFAULT_AS_ELEMENT,width:u,withGap:p,...c}=r;return o.jsx(l.InputWrapperStyled,{$as:i,$width:u,$withGap:p,ref:s,theme:n,"data-testid":e.COMPONENT_NAME,...c,children:a})});t.displayName=e.COMPONENT_NAME;exports.InputWrapper=t;
1
+ "use client";
2
+ import { jsx as d } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as f } from "react";
4
+ import { DEFAULT_AS_ELEMENT as n, COMPONENT_NAME as t } from "./constants.js";
5
+ import { InputWrapperStyled as h } from "./InputWrapperStyled.js";
6
+ import { useTheme as E } from "../../../../hooks/useTheme/useTheme.js";
7
+ const c = f((r, e) => {
8
+ const {
9
+ theme: o
10
+ } = E(), {
11
+ children: p,
12
+ as: i = n,
13
+ width: m,
14
+ withGap: a,
15
+ ...s
16
+ } = r;
17
+ return /* @__PURE__ */ d(h, { $as: i, $width: m, $withGap: a, ref: e, theme: o, "data-testid": t, ...s, children: p });
18
+ });
19
+ c.displayName = t;
20
+ export {
21
+ c as InputWrapper
22
+ };
@@ -1 +1,21 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),e=require("../../../../utils/helpers.js");require("react");const a=s=>{const{theme:{input:n}={},$width:t,$as:p="div",$withGap:o,styles:i={},...u}=s,r=e.get(n,"wrapper",{}),c=[e.get(r,"default",{}),o?e.get(r,"withGap",{}):{},t?{width:t}:{},i];return l.jsx(p,{css:c,...u})};exports.InputWrapperStyled=a;
1
+ "use client";
2
+ import { jsx as a } from "@emotion/react/jsx-runtime";
3
+ import { get as t } from "../../../../utils/helpers.js";
4
+ const u = (p) => {
5
+ const {
6
+ theme: {
7
+ input: s
8
+ } = {},
9
+ $width: e,
10
+ $as: r = "div",
11
+ $withGap: n,
12
+ styles: i = {},
13
+ ...c
14
+ } = p, o = t(s, "wrapper", {}), m = [t(o, "default", {}), n ? t(o, "withGap", {}) : {}, e ? {
15
+ width: e
16
+ } : {}, i];
17
+ return /* @__PURE__ */ a(r, { css: m, ...c });
18
+ };
19
+ export {
20
+ u as InputWrapperStyled
21
+ };
@@ -1 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="InputWrapper",t="div";exports.COMPONENT_NAME=E;exports.DEFAULT_AS_ELEMENT=t;
1
+ const E = "InputWrapper", p = "div";
2
+ export {
3
+ E as COMPONENT_NAME,
4
+ p as DEFAULT_AS_ELEMENT
5
+ };
@@ -1 +1,18 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../types/accesability.js"),e=require("../../../types/input.js"),t="Input",n={variant:e.InputVariantType.Text,color:e.InputColorVariant.Primary,className:"",disabled:!1,readOnly:!1,ariaRequired:!1,role:e.InputRole.Textbox,tabIndex:a.TabIndex.Default,styles:{}},r=[e.InputVariantType.Checkbox,e.InputVariantType.Radio,e.InputVariantType.Range];exports.COMPONENT_NAME=t;exports.DEFAULT_PROPS=n;exports.FOCUS_EXCLUDED_LIST=r;
1
+ import { InputVariantType as a, InputColorVariant as e, InputRole as t } from "../../../types/input.js";
2
+ import { TabIndex as o } from "../../../types/accesability.js";
3
+ const l = "Input", s = {
4
+ variant: a.Text,
5
+ color: e.Primary,
6
+ className: "",
7
+ disabled: !1,
8
+ readOnly: !1,
9
+ ariaRequired: !1,
10
+ role: t.Textbox,
11
+ tabIndex: o.Default,
12
+ styles: {}
13
+ }, i = [a.Checkbox, a.Radio, a.Range];
14
+ export {
15
+ l as COMPONENT_NAME,
16
+ s as DEFAULT_PROPS,
17
+ i as FOCUS_EXCLUDED_LIST
18
+ };
@@ -1 +1,31 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),I=require("../../../constants/keyboard.js"),n=require("../../../utils/helpers.js"),S=({onMouseDown:s,onChange:u,onKeyDown:t,onBlur:r,debounceCallbackTime:c})=>{const[i,d]=a.useState(!1),f=a.useCallback(e=>{d(!0),s==null||s(e)},[s]),l=a.useCallback(e=>{e.key===I.KEYBOARD_KEYS.TAB&&d(!1),t==null||t(e)},[t]),b=a.useCallback(e=>{d(!1),r==null||r(e)},[r]),p=typeof c=="number"&&t?n.debounce(l,c):l,h=typeof c=="number"&&u?n.debounce(u,c):u;return{handlers:{onMouseDown:f,onKeyDown:p,onBlur:b,onChange:h},isMouseInteraction:i}};exports.useInputHandlers=S;
1
+ "use client";
2
+ import { useState as A, useCallback as d } from "react";
3
+ import { KEYBOARD_KEYS as E } from "../../../constants/keyboard.js";
4
+ import { debounce as i } from "../../../utils/helpers.js";
5
+ const n = ({
6
+ onMouseDown: e,
7
+ onChange: c,
8
+ onKeyDown: s,
9
+ onBlur: r,
10
+ debounceCallbackTime: f
11
+ }) => {
12
+ const [m, a] = A(!1), u = d((t) => {
13
+ a(!0), e == null || e(t);
14
+ }, [e]), p = d((t) => {
15
+ t.key === E.TAB && a(!1), s == null || s(t);
16
+ }, [s]), h = d((t) => {
17
+ a(!1), r == null || r(t);
18
+ }, [r]), I = typeof f == "number" && s ? i(p, f) : p, l = typeof f == "number" && c ? i(c, f) : c;
19
+ return {
20
+ handlers: {
21
+ onMouseDown: u,
22
+ onKeyDown: I,
23
+ onBlur: h,
24
+ onChange: l
25
+ },
26
+ isMouseInteraction: m
27
+ };
28
+ };
29
+ export {
30
+ n as useInputHandlers
31
+ };
@@ -1 +1,40 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@emotion/react/jsx-runtime"),i=require("react"),_=require("../../../types/button.js"),b=require("../../../hooks/useTheme/useTheme.js"),j=require("../Button/Button.js"),c=require("./constants.js"),d=require("./InputFileStyled.js"),p=i.forwardRef((I,l)=>{const{styles:h={},accept:m,capture:E,multiple:N,disabled:e,onChange:t,onClick:n,isIcon:q,children:y=c.INPUT_FILE_DEFAULT_LABEL_VALUE,buttonProps:F,...T}=I,{theme:o}=b.useTheme(),r=i.useRef(null);i.useImperativeHandle(l,()=>r.current);const f=s=>{var a;e||((a=r.current)==null||a.click(),n==null||n(s))},O=s=>{t==null||t(s)};return u.jsxs(d.InputFileWrapperStyled,{theme:o,styles:h,ref:l,"data-testid":c.COMPONENT_NAME,children:[u.jsx(d.InputFileStyled,{ref:r,theme:o,accept:m,capture:E,multiple:N,disabled:e,onChange:O,...T}),u.jsx(j.Button,{isIcon:q,variant:_.ButtonVariant.Outlined,disabled:e,onClick:f,...F,children:y})]})});p.displayName=c.COMPONENT_NAME;exports.InputFile=p;
1
+ "use client";
2
+ import { jsxs as N, jsx as p } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as _, useRef as y, useImperativeHandle as A } from "react";
4
+ import { INPUT_FILE_DEFAULT_LABEL_VALUE as C, COMPONENT_NAME as a } from "./constants.js";
5
+ import { InputFileWrapperStyled as T, InputFileStyled as x } from "./InputFileStyled.js";
6
+ import { Button as B } from "../Button/Button.js";
7
+ import { useTheme as O } from "../../../hooks/useTheme/useTheme.js";
8
+ import { ButtonVariant as P } from "../../../types/button.js";
9
+ const U = _((m, o) => {
10
+ const {
11
+ styles: c = {},
12
+ accept: u,
13
+ capture: d,
14
+ multiple: f,
15
+ disabled: t,
16
+ onChange: e,
17
+ onClick: r,
18
+ isIcon: h,
19
+ children: I = C,
20
+ buttonProps: E,
21
+ ...F
22
+ } = m, {
23
+ theme: l
24
+ } = O(), n = y(null);
25
+ A(o, () => n.current);
26
+ const L = (i) => {
27
+ var s;
28
+ t || ((s = n.current) == null || s.click(), r == null || r(i));
29
+ };
30
+ return /* @__PURE__ */ N(T, { theme: l, styles: c, ref: o, "data-testid": a, children: [
31
+ /* @__PURE__ */ p(x, { ref: n, theme: l, accept: u, capture: d, multiple: f, disabled: t, onChange: (i) => {
32
+ e == null || e(i);
33
+ }, ...F }),
34
+ /* @__PURE__ */ p(B, { isIcon: h, variant: P.Outlined, disabled: t, onClick: L, ...E, children: I })
35
+ ] });
36
+ });
37
+ U.displayName = a;
38
+ export {
39
+ U as InputFile
40
+ };
@@ -1 +1,27 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),u=require("react"),i=require("../../../utils/helpers.js"),p=require("./constants.js"),c=u.forwardRef((e,t)=>{const{theme:{inputfile:r}={},styles:s={},...o}=e,l=[i.get(r,"default",{}),s];return n.jsx("div",{css:l,...o,ref:t})}),d=u.forwardRef((e,t)=>{const{theme:{inputfile:r}={},...s}=e;return n.jsx("input",{type:p.INPUT_FILE_TYPE,css:i.get(r,"input",{}),...s,ref:t})});exports.InputFileStyled=d;exports.InputFileWrapperStyled=c;
1
+ "use client";
2
+ import { jsx as s } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as p } from "react";
4
+ import { INPUT_FILE_TYPE as m } from "./constants.js";
5
+ import { get as i } from "../../../utils/helpers.js";
6
+ const y = p((t, e) => {
7
+ const {
8
+ theme: {
9
+ inputfile: r
10
+ } = {},
11
+ styles: o = {},
12
+ ...n
13
+ } = t, f = [i(r, "default", {}), o];
14
+ return /* @__PURE__ */ s("div", { css: f, ...n, ref: e });
15
+ }), I = p((t, e) => {
16
+ const {
17
+ theme: {
18
+ inputfile: r
19
+ } = {},
20
+ ...o
21
+ } = t;
22
+ return /* @__PURE__ */ s("input", { type: m, css: i(r, "input", {}), ...o, ref: e });
23
+ });
24
+ export {
25
+ I as InputFileStyled,
26
+ y as InputFileWrapperStyled
27
+ };
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="InputFile",_="Browse Files",L="file";exports.COMPONENT_NAME=E;exports.INPUT_FILE_DEFAULT_LABEL_VALUE=_;exports.INPUT_FILE_TYPE=L;
1
+ const E = "InputFile", _ = "Browse Files", L = "file";
2
+ export {
3
+ E as COMPONENT_NAME,
4
+ _ as INPUT_FILE_DEFAULT_LABEL_VALUE,
5
+ L as INPUT_FILE_TYPE
6
+ };
@@ -1 +1,27 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@emotion/react/jsx-runtime"),b=require("react"),m=require("../../../hooks/useTheme/useTheme.js"),r=require("./constants.js"),N=require("./LabelStyled.js"),s=b.forwardRef((a,l)=>{const{className:n="",htmlFor:e,onClick:o,ariaLabel:t,children:c,...i}=a,{theme:u}=m.useTheme();return d.jsx(N.LabelStyled,{ref:l,theme:u,className:n,onClick:o,"data-testid":r.COMPONENT_NAME,...e?{htmlFor:e}:{},...t?{"aria-label":t}:{},...i,children:c})});s.displayName=r.COMPONENT_NAME;exports.Label=s;
1
+ "use client";
2
+ import { jsx as p } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as c } from "react";
4
+ import { COMPONENT_NAME as o } from "./constants.js";
5
+ import { LabelStyled as n } from "./LabelStyled.js";
6
+ import { useTheme as d } from "../../../hooks/useTheme/useTheme.js";
7
+ const N = c((t, a) => {
8
+ const {
9
+ className: m = "",
10
+ htmlFor: r,
11
+ onClick: i,
12
+ ariaLabel: e,
13
+ children: l,
14
+ ...s
15
+ } = t, {
16
+ theme: f
17
+ } = d();
18
+ return /* @__PURE__ */ p(n, { ref: a, theme: f, className: m, onClick: i, "data-testid": o, ...r ? {
19
+ htmlFor: r
20
+ } : {}, ...e ? {
21
+ "aria-label": e
22
+ } : {}, ...s, children: l });
23
+ });
24
+ N.displayName = o;
25
+ export {
26
+ N as Label
27
+ };
@@ -1 +1,17 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),n=require("react"),u=require("../../../utils/helpers.js"),a=n.forwardRef((e,t)=>{const{styles:r={},theme:{label:s}={},...l}=e,o=[u.get(s,"default",{}),r];return c.jsx("label",{css:o,...l,ref:t})});exports.LabelStyled=a;
1
+ "use client";
2
+ import { jsx as m } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as f } from "react";
4
+ import { get as c } from "../../../utils/helpers.js";
5
+ const d = f((e, t) => {
6
+ const {
7
+ styles: r = {},
8
+ theme: {
9
+ label: o
10
+ } = {},
11
+ ...s
12
+ } = e, l = [c(o, "default", {}), r];
13
+ return /* @__PURE__ */ m("label", { css: l, ...s, ref: t });
14
+ });
15
+ export {
16
+ d as LabelStyled
17
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Label";exports.COMPONENT_NAME=e;
1
+ const N = "Label";
2
+ export {
3
+ N as COMPONENT_NAME
4
+ };