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,58 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),l=require("react"),c=require("../../../utils/helpers.js"),a=l.forwardRef((t,s)=>{const{theme:{breadcrumbs:e}={},$bordered:r=!1,styles:o={},...d}=t,m=[c.get(e,"default",{}),r?c.get(e,"bordered",{}):{},o];return n.jsx("div",{css:m,...d,ref:s})}),u=t=>{const{theme:{breadcrumbs:s}={},styles:e={},...r}=t,o=[c.get(s,"item",{}),e];return n.jsx("div",{css:o,...r})},y=t=>{const{theme:{breadcrumbs:s}={},styles:e={},...r}=t,o=[c.get(s,"separator",{}),e];return n.jsx("div",{css:o,...r})},S=t=>{const{theme:{breadcrumbs:s}={},styles:e={},...r}=t,o=[c.get(s,"item.itemStart",{}),e];return n.jsx("div",{css:o,...r})},b=t=>{const{theme:{breadcrumbs:s}={},styles:e={},...r}=t,o=[c.get(s,"item.itemEnd",{}),e];return n.jsx("div",{css:o,...r})};exports.BreadcrumbItemStyled=u;exports.BreadcrumbsStyled=a;exports.ItemEndStyled=b;exports.ItemStartStyled=S;exports.SeparatorStyled=y;
1
+ "use client";
2
+ import { jsx as n } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as l } from "react";
4
+ import { get as c } from "../../../utils/helpers.js";
5
+ const b = l((e, s) => {
6
+ const {
7
+ theme: {
8
+ breadcrumbs: t
9
+ } = {},
10
+ $bordered: r = !1,
11
+ styles: o = {},
12
+ ...m
13
+ } = e, d = [c(t, "default", {}), r ? c(t, "bordered", {}) : {}, o];
14
+ return /* @__PURE__ */ n("div", { css: d, ...m, ref: s });
15
+ }), i = (e) => {
16
+ const {
17
+ theme: {
18
+ breadcrumbs: s
19
+ } = {},
20
+ styles: t = {},
21
+ ...r
22
+ } = e, o = [c(s, "item", {}), t];
23
+ return /* @__PURE__ */ n("div", { css: o, ...r });
24
+ }, u = (e) => {
25
+ const {
26
+ theme: {
27
+ breadcrumbs: s
28
+ } = {},
29
+ styles: t = {},
30
+ ...r
31
+ } = e, o = [c(s, "separator", {}), t];
32
+ return /* @__PURE__ */ n("div", { css: o, ...r });
33
+ }, S = (e) => {
34
+ const {
35
+ theme: {
36
+ breadcrumbs: s
37
+ } = {},
38
+ styles: t = {},
39
+ ...r
40
+ } = e, o = [c(s, "item.itemStart", {}), t];
41
+ return /* @__PURE__ */ n("div", { css: o, ...r });
42
+ }, f = (e) => {
43
+ const {
44
+ theme: {
45
+ breadcrumbs: s
46
+ } = {},
47
+ styles: t = {},
48
+ ...r
49
+ } = e, o = [c(s, "item.itemEnd", {}), t];
50
+ return /* @__PURE__ */ n("div", { css: o, ...r });
51
+ };
52
+ export {
53
+ i as BreadcrumbItemStyled,
54
+ b as BreadcrumbsStyled,
55
+ f as ItemEndStyled,
56
+ S as ItemStartStyled,
57
+ u as SeparatorStyled
58
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Breadcrumbs";exports.COMPONENT_NAME=e;
1
+ const r = "Breadcrumbs";
2
+ export {
3
+ r as COMPONENT_NAME
4
+ };
@@ -1 +1,43 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),C=require("react"),q=require("../../../hooks/useTheme/useTheme.js"),x=require("../../../types/accesability.js"),o=require("../../../types/button.js"),P=require("../../../tokens/utils.js"),t=require("./constants.js"),r=require("./ButtonStyled.js"),d=C.forwardRef((N,y)=>{const{theme:e}=q.useTheme(),{color:E=o.ButtonColorVariant.Primary,variant:B=o.ButtonVariant.Contained,children:a,iconStart:i=null,iconEnd:l=null,type:M=o.ButtonTypes.Button,disabled:O=!1,isIcon:T=!1,ariaLabel:s,ariaPressed:u,role:f=o.ButtonRole.Button,fullWidth:S=!1,tabIndex:b=x.TabIndex.Default,onClick:h,...c}=N;return n.jsxs(r.ButtonStyled,{ref:y,$variant:B,$color:E,$isIcon:T,$fullWidth:S,disabled:O,onClick:h,type:M,role:f,theme:e,tabIndex:b,"data-testid":t.COMPONENT_NAME,...P.convertToInlineBoxStyles(c),...s?{"aria-label":s}:{},...u?{"aria-pressed":u}:{},...c,children:[i?n.jsx(r.StartIconStyled,{theme:e,"data-testid":`${t.COMPONENT_NAME}-icon-start`,children:i}):null,a?n.jsx(r.ContentStyled,{theme:e,"data-testid":`${t.COMPONENT_NAME}-content`,children:a}):null,l?n.jsx(r.EndIconStyled,{theme:e,"data-testid":`${t.COMPONENT_NAME}-icon-end`,children:l}):null]})});d.displayName=t.COMPONENT_NAME;exports.Button=d;
1
+ "use client";
2
+ import { jsxs as $, jsx as e } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as x } from "react";
4
+ import { convertToInlineBoxStyles as b } from "../../../tokens/utils.js";
5
+ import { COMPONENT_NAME as t } from "./constants.js";
6
+ import { ButtonStyled as C, StartIconStyled as T, ContentStyled as E, EndIconStyled as N } from "./ButtonStyled.js";
7
+ import { useTheme as v } from "../../../hooks/useTheme/useTheme.js";
8
+ import { ButtonColorVariant as P, ButtonVariant as j, ButtonTypes as M, ButtonRole as O } from "../../../types/button.js";
9
+ import { TabIndex as R } from "../../../types/accesability.js";
10
+ const V = x((s, c) => {
11
+ const {
12
+ theme: o
13
+ } = v(), {
14
+ color: m = P.Primary,
15
+ variant: u = j.Contained,
16
+ children: n,
17
+ iconStart: r = null,
18
+ iconEnd: a = null,
19
+ type: f = M.Button,
20
+ disabled: p = !1,
21
+ isIcon: y = !1,
22
+ ariaLabel: l,
23
+ ariaPressed: i,
24
+ role: B = O.Button,
25
+ fullWidth: h = !1,
26
+ tabIndex: I = R.Default,
27
+ onClick: S,
28
+ ...d
29
+ } = s;
30
+ return /* @__PURE__ */ $(C, { ref: c, $variant: u, $color: m, $isIcon: y, $fullWidth: h, disabled: p, onClick: S, type: f, role: B, theme: o, tabIndex: I, "data-testid": t, ...b(d), ...l ? {
31
+ "aria-label": l
32
+ } : {}, ...i ? {
33
+ "aria-pressed": i
34
+ } : {}, ...d, children: [
35
+ r ? /* @__PURE__ */ e(T, { theme: o, "data-testid": `${t}-icon-start`, children: r }) : null,
36
+ n ? /* @__PURE__ */ e(E, { theme: o, "data-testid": `${t}-content`, children: n }) : null,
37
+ a ? /* @__PURE__ */ e(N, { theme: o, "data-testid": `${t}-icon-end`, children: a }) : null
38
+ ] });
39
+ });
40
+ V.displayName = t;
41
+ export {
42
+ V as Button
43
+ };
@@ -1 +1,53 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@emotion/react/jsx-runtime"),g=require("react"),e=require("../../../utils/helpers.js"),m=require("../../../tokens/utils.js"),c=require("../../../types/button.js"),b=g.forwardRef((n,o)=>{const{theme:{button:t}={},$isIcon:s,$fullWidth:l,$variant:u=c.ButtonVariant.Contained,$color:a=c.ButtonColorVariant.Primary,styles:d={},...i}=n,{boxStyles:y,restProps:S}=m.getBoxStyles(i),p=[e.get(t,"default",{}),e.get(t,[u,a],{}),y,s?e.get(t,"icon",{}):{},l?e.get(t,"fullWidth",{}):{},d];return r.jsx("button",{css:p,...S,ref:o})}),f=n=>{const{theme:{button:o}={},...t}=n,s=e.get(o,"content",{});return r.jsx("span",{css:e.get(s,"default",{}),className:"gd-button__content",...t})},P=n=>{const{theme:{button:o}={},...t}=n,s=e.get(o,"startIcon",{});return r.jsx("span",{css:e.get(s,"default",{}),...t})},h=n=>{const{theme:{button:o}={},...t}=n,s=e.get(o,"endIcon",{});return r.jsx("span",{css:e.get(s,"default",{}),...t})};exports.ButtonStyled=b;exports.ContentStyled=f;exports.EndIconStyled=h;exports.StartIconStyled=P;
1
+ "use client";
2
+ import { jsx as r } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as f } from "react";
4
+ import { getBoxStyles as y } from "../../../tokens/utils.js";
5
+ import { ButtonVariant as S, ButtonColorVariant as b } from "../../../types/button.js";
6
+ import { get as o } from "../../../utils/helpers.js";
7
+ const $ = f((n, e) => {
8
+ const {
9
+ theme: {
10
+ button: t
11
+ } = {},
12
+ $isIcon: s,
13
+ $fullWidth: c,
14
+ $variant: l = S.Contained,
15
+ $color: a = b.Primary,
16
+ styles: m = {},
17
+ ...u
18
+ } = n, {
19
+ boxStyles: p,
20
+ restProps: d
21
+ } = y(u), i = [o(t, "default", {}), o(t, [l, a], {}), p, s ? o(t, "icon", {}) : {}, c ? o(t, "fullWidth", {}) : {}, m];
22
+ return /* @__PURE__ */ r("button", { css: i, ...d, ref: e });
23
+ }), g = (n) => {
24
+ const {
25
+ theme: {
26
+ button: e
27
+ } = {},
28
+ ...t
29
+ } = n, s = o(e, "content", {});
30
+ return /* @__PURE__ */ r("span", { css: o(s, "default", {}), className: "gd-button__content", ...t });
31
+ }, C = (n) => {
32
+ const {
33
+ theme: {
34
+ button: e
35
+ } = {},
36
+ ...t
37
+ } = n, s = o(e, "startIcon", {});
38
+ return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
39
+ }, N = (n) => {
40
+ const {
41
+ theme: {
42
+ button: e
43
+ } = {},
44
+ ...t
45
+ } = n, s = o(e, "endIcon", {});
46
+ return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
47
+ };
48
+ export {
49
+ $ as ButtonStyled,
50
+ g as ContentStyled,
51
+ N as EndIconStyled,
52
+ C as StartIconStyled
53
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="Button";exports.COMPONENT_NAME=t;
1
+ const t = "Button";
2
+ export {
3
+ t as COMPONENT_NAME
4
+ };
@@ -1 +1,38 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("@emotion/react/jsx-runtime"),O=require("react"),R=require("../../../hooks/useTheme/useTheme.js"),n=require("../../../constants/keyboard.js"),f=require("../../../utils/focus.js"),K=require("./DropdownStyled.js"),u=require("./constants.js"),d=O.forwardRef((l,a)=>{const{children:m,...E}=l,{theme:p}=R.useTheme(),y=t=>{var i;if(![n.KEYBOARD_KEYS.ARROW_DOWN,n.KEYBOARD_KEYS.ARROW_UP].includes(t.key))return;t.preventDefault();const e=t.currentTarget,c=t.key===n.KEYBOARD_KEYS.ARROW_UP,o=(i=e.ownerDocument)==null?void 0:i.activeElement;if(o&&e.contains(o)){const r=document.createElement("div");e.insertBefore(r,c?o:o.nextSibling);const s=f.getClosestFocusable({initial:r,previous:c,root:e,keyboard:!0});e.removeChild(r),s==null||s.focus()}};return D.jsx(K.DropdownStyled,{ref:a,theme:p,"data-testid":u.COMPONENT_NAME,onKeyDown:y,...E,children:m})});d.displayName=u.COMPONENT_NAME;exports.Dropdown=d;
1
+ "use client";
2
+ import { jsx as u } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as y } from "react";
4
+ import { KEYBOARD_KEYS as s } from "../../../constants/keyboard.js";
5
+ import { getClosestFocusable as D } from "../../../utils/focus.js";
6
+ import { DropdownStyled as E } from "./DropdownStyled.js";
7
+ import { COMPONENT_NAME as c } from "./constants.js";
8
+ import { useTheme as R } from "../../../hooks/useTheme/useTheme.js";
9
+ const w = y((l, p) => {
10
+ const {
11
+ children: d,
12
+ ...f
13
+ } = l, {
14
+ theme: a
15
+ } = R();
16
+ return /* @__PURE__ */ u(E, { ref: p, theme: a, "data-testid": c, onKeyDown: (o) => {
17
+ var m;
18
+ if (![s.ARROW_DOWN, s.ARROW_UP].includes(o.key))
19
+ return;
20
+ o.preventDefault();
21
+ const e = o.currentTarget, i = o.key === s.ARROW_UP, t = (m = e.ownerDocument) == null ? void 0 : m.activeElement;
22
+ if (t && e.contains(t)) {
23
+ const r = document.createElement("div");
24
+ e.insertBefore(r, i ? t : t.nextSibling);
25
+ const n = D({
26
+ initial: r,
27
+ previous: i,
28
+ root: e,
29
+ keyboard: !0
30
+ });
31
+ e.removeChild(r), n == null || n.focus();
32
+ }
33
+ }, ...f, children: d });
34
+ });
35
+ w.displayName = c;
36
+ export {
37
+ w as Dropdown
38
+ };
@@ -1 +1,20 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@emotion/react/jsx-runtime"),i=require("react"),l=require("../../../utils/helpers.js"),u=i.forwardRef((t,r)=>{const{theme:{select:s}={},$width:e,styles:o={},...n}=t,c=[l.get(s,"dropdown",{}),e?{width:e}:{},o];return d.jsx("div",{css:c,...n,ref:r})});exports.DropdownStyled=u;
1
+ "use client";
2
+ import { jsx as p } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as c } from "react";
4
+ import { get as i } from "../../../utils/helpers.js";
5
+ const w = c((o, e) => {
6
+ const {
7
+ theme: {
8
+ select: r
9
+ } = {},
10
+ $width: t,
11
+ styles: s = {},
12
+ ...d
13
+ } = o, m = [i(r, "dropdown", {}), t ? {
14
+ width: t
15
+ } : {}, s];
16
+ return /* @__PURE__ */ p("div", { css: m, ...d, ref: e });
17
+ });
18
+ export {
19
+ w as DropdownStyled
20
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Dropdown";exports.COMPONENT_NAME=e;
1
+ const o = "Dropdown";
2
+ export {
3
+ o as COMPONENT_NAME
4
+ };
@@ -1 +1,12 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext(void 0),n=()=>{const o=t.useContext(e);if(!o)throw new Error("useDropdownContext must be used within a Dropdown component or children");return o};exports.DropdownContext=e;exports.useDropdownContext=n;
1
+ "use client";
2
+ import { createContext as t, useContext as e } from "react";
3
+ const n = t(void 0), s = () => {
4
+ const o = e(n);
5
+ if (!o)
6
+ throw new Error("useDropdownContext must be used within a Dropdown component or children");
7
+ return o;
8
+ };
9
+ export {
10
+ n as DropdownContext,
11
+ s as useDropdownContext
12
+ };
@@ -1 +1,38 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@emotion/react/jsx-runtime"),i=require("react"),I=require("../../../constants/keyboard.js"),T=require("../../../hooks/useTheme/useTheme.js"),f=require("../../../types/accesability.js"),x=require("../Select/hooks/useSelectContext.js"),m=require("./constants.js"),h=require("./DropdownItemStyled.js"),b=i.forwardRef((D,y)=>{const{children:S,value:o,onSelect:r,customClass:t,disabled:n,...N}=D,{theme:p}=T.useTheme(),{onSelect:s,value:l,itemIdentifier:u}=x.useSelectContext(),a=l!==void 0&&u?u(l,o):t==null?void 0:t.includes("active"),q=i.useMemo(()=>`${t||""} ${a?"active":""}`,[t,a]),d=i.useCallback((e,c)=>{if(!n)return r?r({event:e,value:c}):s&&s(e,c),c},[r,s,n]),w=e=>{n||e.key===I.KEYBOARD_KEYS.ENTER&&(e.preventDefault(),d(e,o))};return E.jsx(h.DropdownItemStyled,{ref:y,theme:p,$disabled:n,tabIndex:n?f.TabIndex.Disabled:f.TabIndex.Default,"data-testid":m.COMPONENT_NAME,className:q,onClick:e=>d(e,o),onKeyDown:w,...N,children:S})});b.displayName=m.COMPONENT_NAME;exports.DropdownItem=b;
1
+ "use client";
2
+ import { jsx as S } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as h, useMemo as v, useCallback as x } from "react";
4
+ import { KEYBOARD_KEYS as y } from "../../../constants/keyboard.js";
5
+ import { COMPONENT_NAME as f } from "./constants.js";
6
+ import { DropdownItemStyled as I } from "./DropdownItemStyled.js";
7
+ import { useSelectContext as C } from "../Select/hooks/useSelectContext.js";
8
+ import { useTheme as K } from "../../../hooks/useTheme/useTheme.js";
9
+ import { TabIndex as a } from "../../../types/accesability.js";
10
+ const T = h((u, p) => {
11
+ const {
12
+ children: D,
13
+ value: r,
14
+ onSelect: n,
15
+ customClass: o,
16
+ disabled: t,
17
+ ...b
18
+ } = u, {
19
+ theme: w
20
+ } = K(), {
21
+ onSelect: i,
22
+ value: s,
23
+ itemIdentifier: m
24
+ } = C(), c = s !== void 0 && m ? m(s, r) : o == null ? void 0 : o.includes("active"), E = v(() => `${o || ""} ${c ? "active" : ""}`, [o, c]), d = x((e, l) => {
25
+ if (!t)
26
+ return n ? n({
27
+ event: e,
28
+ value: l
29
+ }) : i && i(e, l), l;
30
+ }, [n, i, t]), N = (e) => {
31
+ t || e.key === y.ENTER && (e.preventDefault(), d(e, r));
32
+ };
33
+ return /* @__PURE__ */ S(I, { ref: p, theme: w, $disabled: t, tabIndex: t ? a.Disabled : a.Default, "data-testid": f, className: E, onClick: (e) => d(e, r), onKeyDown: N, ...b, children: D });
34
+ });
35
+ T.displayName = f;
36
+ export {
37
+ T as DropdownItem
38
+ };
@@ -1 +1,17 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@emotion/react/jsx-runtime"),u=require("react"),t=require("../../../utils/helpers.js"),a=u.forwardRef((s,r)=>{const{theme:{select:e}={},$disabled:o,...c}=s,l=t.get(e,"item.default",{}),d=t.get(e,"item.disabled",{}),n=[l,o?d:{}];return i.jsx("div",{css:n,...c,ref:r})});exports.DropdownItemStyled=a;
1
+ "use client";
2
+ import { jsx as m } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as i } from "react";
4
+ import { get as t } from "../../../utils/helpers.js";
5
+ const u = i((s, o) => {
6
+ const {
7
+ theme: {
8
+ select: e
9
+ } = {},
10
+ $disabled: r,
11
+ ...l
12
+ } = s, c = t(e, "item.default", {}), d = t(e, "item.disabled", {});
13
+ return /* @__PURE__ */ m("div", { css: [c, r ? d : {}], ...l, ref: o });
14
+ });
15
+ export {
16
+ u as DropdownItemStyled
17
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="DropdownItem";exports.COMPONENT_NAME=e;
1
+ const o = "DropdownItem";
2
+ export {
3
+ o as COMPONENT_NAME
4
+ };
@@ -1 +1,48 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("@emotion/react/jsx-runtime"),a=require("react"),s=require("../../../utils/helpers.js"),j=require("../../../hooks/useTheme/useTheme.js"),m=require("./constants.js"),n=require("./utils.js"),q=require("./FormStyled.js"),b=a.forwardRef((d,h)=>{const{children:f,ariaLabelBy:c,describedBy:l,role:i,onSubmit:r,onChange:o,...g}=d,{theme:y}=j.useTheme(),O=a.useCallback(e=>{if(!o)return;const t=s.get(e,"target"),N=n.transformFormDataToObjectWithValues(s.get(t,"form")),u=n.transformFormElementDataToObjectWithValues(t);o({event:e,changedControlNames:Object.keys(u),controlValues:u,formData:N})},[o]),C=a.useCallback(e=>{if(!r)return;const t=n.transformFormDataToObjectWithValues(s.get(e,"target"));r({event:e,formData:t})},[r]);return T.jsx(q.FormStyled,{ref:h,onSubmit:C,onChange:O,theme:y,"data-testid":m.COMPONENT_NAME,...c?{"aria-labelledby":c}:{},...l?{"aria-describedby":l}:{},...i?{"aria-role":i}:{},...g,children:f})});b.displayName=m.COMPONENT_NAME;exports.Form=b;
1
+ "use client";
2
+ import { jsx as N } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as O, useCallback as l } from "react";
4
+ import { COMPONENT_NAME as f } from "./constants.js";
5
+ import { transformFormDataToObjectWithValues as c, transformFormElementDataToObjectWithValues as j } from "./utils.js";
6
+ import { FormStyled as D } from "./FormStyled.js";
7
+ import { useTheme as E } from "../../../hooks/useTheme/useTheme.js";
8
+ import { get as a } from "../../../utils/helpers.js";
9
+ const F = O((d, b) => {
10
+ const {
11
+ children: u,
12
+ ariaLabelBy: m,
13
+ describedBy: n,
14
+ role: s,
15
+ onSubmit: o,
16
+ onChange: e,
17
+ ...h
18
+ } = d, {
19
+ theme: p
20
+ } = E(), g = l((r) => {
21
+ if (!e) return;
22
+ const t = a(r, "target"), C = c(a(t, "form")), i = j(t);
23
+ e({
24
+ event: r,
25
+ changedControlNames: Object.keys(i),
26
+ controlValues: i,
27
+ formData: C
28
+ });
29
+ }, [e]), y = l((r) => {
30
+ if (!o) return;
31
+ const t = c(a(r, "target"));
32
+ o({
33
+ event: r,
34
+ formData: t
35
+ });
36
+ }, [o]);
37
+ return /* @__PURE__ */ N(D, { ref: b, onSubmit: y, onChange: g, theme: p, "data-testid": f, ...m ? {
38
+ "aria-labelledby": m
39
+ } : {}, ...n ? {
40
+ "aria-describedby": n
41
+ } : {}, ...s ? {
42
+ "aria-role": s
43
+ } : {}, ...h, children: u });
44
+ });
45
+ F.displayName = f;
46
+ export {
47
+ F as Form
48
+ };
@@ -1 +1,16 @@
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"),l=n.forwardRef((e,t)=>{const{theme:{form:r}={},styles:s={}}=e,o=[u.get(r,"default",{}),s];return c.jsx("form",{css:o,...e,ref:t})});exports.FormStyled=l;
1
+ "use client";
2
+ import { jsx as f } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as s } from "react";
4
+ import { get as c } from "../../../utils/helpers.js";
5
+ const i = s((t, e) => {
6
+ const {
7
+ theme: {
8
+ form: o
9
+ } = {},
10
+ styles: r = {}
11
+ } = t, m = [c(o, "default", {}), r];
12
+ return /* @__PURE__ */ f("form", { css: m, ...t, ref: e });
13
+ });
14
+ export {
15
+ i as FormStyled
16
+ };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Form";exports.COMPONENT_NAME=e;
1
+ const o = "Form";
2
+ export {
3
+ o as COMPONENT_NAME
4
+ };
@@ -1 +1,34 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../utils/helpers.js");require("react");const i=require("../../../types/input.js"),u=require("../../../types/button.js"),l=r=>Array.from(e.get(r,"elements",[])).reduce((a,t)=>m(t,a),{}),m=(r,s={})=>{const a=e.get(r,"tagName","").toLowerCase(),t=e.get(r,"name"),c=e.get(r,"type"),o=e.get(r,"checked"),n=e.get(r,"value");if(!(a===u.ButtonTypes.Button||c===u.ButtonTypes.Submit||!t))switch(c){case i.InputVariantType.Checkbox:e.set(s,t,{value:n,isChecked:o});break;case i.InputVariantType.Radio:o&&e.set(s,t,{value:n,isChecked:o}),e.get(s,[t,"isChecked"],!1)||e.set(s,t,{value:"",isChecked:o});break;default:e.set(s,t,{value:n});break}return s};exports.transformFormDataToObjectWithValues=l;exports.transformFormElementDataToObjectWithValues=m;
1
+ import { get as s, set as n } from "../../../utils/helpers.js";
2
+ import { InputVariantType as i } from "../../../types/input.js";
3
+ import { ButtonTypes as f } from "../../../types/button.js";
4
+ const u = (o) => Array.from(s(o, "elements", [])).reduce((t, e) => h(e, t), {}), h = (o, r = {}) => {
5
+ const t = s(o, "tagName", "").toLowerCase(), e = s(o, "name"), m = s(o, "type"), a = s(o, "checked"), c = s(o, "value");
6
+ if (!(t === f.Button || m === f.Submit || !e))
7
+ switch (m) {
8
+ case i.Checkbox:
9
+ n(r, e, {
10
+ value: c,
11
+ isChecked: a
12
+ });
13
+ break;
14
+ case i.Radio:
15
+ a && n(r, e, {
16
+ value: c,
17
+ isChecked: a
18
+ }), s(r, [e, "isChecked"], !1) || n(r, e, {
19
+ value: "",
20
+ isChecked: a
21
+ });
22
+ break;
23
+ default:
24
+ n(r, e, {
25
+ value: c
26
+ });
27
+ break;
28
+ }
29
+ return r;
30
+ };
31
+ export {
32
+ u as transformFormDataToObjectWithValues,
33
+ h as transformFormElementDataToObjectWithValues
34
+ };
@@ -1 +1,33 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@emotion/react/jsx-runtime"),h=require("react"),n=require("../../../utils/helpers.js"),N=require("../../../hooks/useTheme/useTheme.js"),r=require("./constants.js");let c={};const C=e=>{c={...c,...e}},u=h.forwardRef((e,a)=>{const{name:t,width:g,height:m,fill:s,fillSvg:o,...f}=e,{theme:I}=N.useTheme(),i=n.get(I,"colors",{}),l={...r.IconsList,...c}[t];return l?d.jsx(l,{ref:a,"data-testid":`${r.COMPONENT_NAME}-${t}`,width:g,height:m,fill:s&&n.get(i,s,s),fillSvg:o&&n.get(i,o,o),...f}):(console.warn(`Icon "${String(t)}" not found.`),null)});u.displayName=r.COMPONENT_NAME;exports.Icon=u;exports.registerCustomIcons=C;
1
+ "use client";
2
+ import { jsx as d } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as p } from "react";
4
+ import { IconsList as g, COMPONENT_NAME as l } from "./constants.js";
5
+ import { useTheme as h } from "../../../hooks/useTheme/useTheme.js";
6
+ import { get as n } from "../../../utils/helpers.js";
7
+ let r = {};
8
+ const x = (o) => {
9
+ r = {
10
+ ...r,
11
+ ...o
12
+ };
13
+ }, $ = p((o, m) => {
14
+ const {
15
+ name: t,
16
+ width: f,
17
+ height: u,
18
+ fill: s,
19
+ fillSvg: e,
20
+ ...I
21
+ } = o, {
22
+ theme: a
23
+ } = h(), i = n(a, "colors", {}), c = {
24
+ ...g,
25
+ ...r
26
+ }[t];
27
+ return c ? /* @__PURE__ */ d(c, { ref: m, "data-testid": `${l}-${t}`, width: f, height: u, fill: s && n(i, s, s), fillSvg: e && n(i, e, e), ...I }) : (console.warn(`Icon "${String(t)}" not found.`), null);
28
+ });
29
+ $.displayName = l;
30
+ export {
31
+ $ as Icon,
32
+ x as registerCustomIcons
33
+ };
@@ -1 +1,92 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../assets/icons/star.js"),o=require("../../../assets/icons/cross.js"),r=require("../../../assets/icons/toast_success.js"),n=require("../../../assets/icons/toast_warning.js"),t=require("../../../assets/icons/toast_error.js"),c=require("../../../assets/icons/toast_info.js"),i=require("../../../assets/icons/dot.js"),s=require("../../../assets/icons/check.js"),u=require("../../../assets/icons/attachment.js"),a=require("../../../assets/icons/arrow-down.js"),l=require("../../../assets/icons/chevron-right.js"),I=require("../../../assets/icons/chevron-left.js"),q=require("../../../assets/icons/mobile_menu_button.js"),p=require("../../../assets/icons/home.js"),h=require("../../../assets/icons/slash.js"),d=require("../../../assets/icons/arrow-forward.js"),m=require("../../../assets/icons/local_shipping.js"),g=require("../../../assets/icons/favorite.js"),f=require("../../../assets/icons/favorite_outlined.js"),w=require("../../../assets/icons/delete_outlined.js"),C=require("../../../assets/icons/account_circle.js"),O=require("../../../assets/icons/shopping_bag.js"),y=require("../../../assets/icons/error_outline.js"),_=require("../../../assets/icons/starOutlined.js"),b=require("../../../assets/icons/minus.js"),v=require("../../../assets/icons/plus.js"),T=require("../../../assets/icons/filter.js"),S=require("../../../assets/icons/ruler.js"),F=require("../../../assets/icons/processing.js"),M=require("../../../assets/icons/paymentCard.js");require("@emotion/react/jsx-runtime");const D=require("../../../assets/icons/eye.js"),E=require("../../../assets/icons/upload.js"),P=require("../../../assets/icons/search.js"),U=require("../../../assets/icons/wifiTethering.js"),A=require("../../../assets/icons/portrait.js"),L=require("../../../assets/icons/folder.js"),N=require("../../../assets/icons/folderOpen.js"),R=require("../../../assets/icons/edit.js"),k=require("../../../assets/icons/volume-up.js"),B=require("../../../assets/icons/content-copy.js"),W=require("../../../assets/icons/thumb-up.js"),j=require("../../../assets/icons/thumb-down.js"),H=require("../../../assets/icons/file-copy.js"),V={cross:o.CrossIcon,success:r.ToastSuccessIcon,error:t.ToastErrorIcon,warning:n.ToastWarningIcon,info:c.ToastInfoIcon,dot:i.DotIcon,check:s.CheckIcon,arrowDown:a.ArrowDownIcon,arrowRight:l.ChevronRightIcon,arrowLeft:I.ChevronLeftIcon,mobileMenu:q.MobileMenuIcon,home:p.HomeIcon,slash:h.SlashIcon,arrowForward:d.ArrowForwardIcon,localShipping:m.LocalShippingIcon,favorite:g.FavoriteIcon,favoriteOutlined:f.FavoriteOutlinedIcon,deleteOutlined:w.DeleteOutlinedIcon,accountCircle:C.AccountCircleIcon,shoppingBag:O.ShoppingBagIcon,errorOutline:y.ErrorOutlineIcon,star:e.StarIcon,starOutlined:_.StarOutlinedIcon,minus:b.MinusIcon,plus:v.PlusIcon,filter:T.FilterIcon,ruler:S.RulerIcon,processing:F.ProcessingIcon,paymentCard:M.PaymentCardIcon,eye:D.EyeIcon,attachment:u.AttachmentIcon,upload:E.UploadIcon,folder:L.FolderIcon,folderOpen:N.FolderOpenIcon,wifiTethering:U.WifiTetheringIcon,portrait:A.PortraitIcon,search:P.SearchIcon,edit:R.EditIcon,volumeUp:k.VolumeUpIcon,contentCopy:B.ContentCopyIcon,thumbUp:W.ThumbUpIcon,thumbDown:j.ThumbDownIcon,fileCopy:H.FileCopyIcon},x="Icon";exports.COMPONENT_NAME=x;exports.IconsList=V;
1
+ import { FileCopyIcon as o } from "../../../assets/icons/file-copy.js";
2
+ import { ThumbDownIcon as r } from "../../../assets/icons/thumb-down.js";
3
+ import { ThumbUpIcon as t } from "../../../assets/icons/thumb-up.js";
4
+ import { ContentCopyIcon as m } from "../../../assets/icons/content-copy.js";
5
+ import { VolumeUpIcon as n } from "../../../assets/icons/volume-up.js";
6
+ import { EditIcon as i } from "../../../assets/icons/edit.js";
7
+ import { SearchIcon as c } from "../../../assets/icons/search.js";
8
+ import { PortraitIcon as e } from "../../../assets/icons/portrait.js";
9
+ import { WifiTetheringIcon as p } from "../../../assets/icons/wifiTethering.js";
10
+ import { FolderOpenIcon as f } from "../../../assets/icons/folderOpen.js";
11
+ import { FolderIcon as I } from "../../../assets/icons/folder.js";
12
+ import { UploadIcon as a } from "../../../assets/icons/upload.js";
13
+ import { AttachmentIcon as l } from "../../../assets/icons/attachment.js";
14
+ import { EyeIcon as s } from "../../../assets/icons/eye.js";
15
+ import { PaymentCardIcon as u } from "../../../assets/icons/paymentCard.js";
16
+ import { ProcessingIcon as h } from "../../../assets/icons/processing.js";
17
+ import { RulerIcon as d } from "../../../assets/icons/ruler.js";
18
+ import { FilterIcon as g } from "../../../assets/icons/filter.js";
19
+ import { PlusIcon as w } from "../../../assets/icons/plus.js";
20
+ import { MinusIcon as C } from "../../../assets/icons/minus.js";
21
+ import { StarOutlinedIcon as O } from "../../../assets/icons/starOutlined.js";
22
+ import { StarIcon as T } from "../../../assets/icons/star.js";
23
+ import { ErrorOutlineIcon as y } from "../../../assets/icons/error_outline.js";
24
+ import { ShoppingBagIcon as F } from "../../../assets/icons/shopping_bag.js";
25
+ import { AccountCircleIcon as S } from "../../../assets/icons/account_circle.js";
26
+ import { DeleteOutlinedIcon as v } from "../../../assets/icons/delete_outlined.js";
27
+ import { FavoriteOutlinedIcon as b } from "../../../assets/icons/favorite_outlined.js";
28
+ import { FavoriteIcon as D } from "../../../assets/icons/favorite.js";
29
+ import { LocalShippingIcon as E } from "../../../assets/icons/local_shipping.js";
30
+ import { ArrowForwardIcon as M } from "../../../assets/icons/arrow-forward.js";
31
+ import { SlashIcon as A } from "../../../assets/icons/slash.js";
32
+ import { HomeIcon as P } from "../../../assets/icons/home.js";
33
+ import { MobileMenuIcon as U } from "../../../assets/icons/mobile_menu_button.js";
34
+ import { ChevronLeftIcon as L } from "../../../assets/icons/chevron-left.js";
35
+ import { ChevronRightIcon as N } from "../../../assets/icons/chevron-right.js";
36
+ import { ArrowDownIcon as R } from "../../../assets/icons/arrow-down.js";
37
+ import { CheckIcon as k } from "../../../assets/icons/check.js";
38
+ import { DotIcon as B } from "../../../assets/icons/dot.js";
39
+ import { ToastInfoIcon as W } from "../../../assets/icons/toast_info.js";
40
+ import { ToastWarningIcon as x } from "../../../assets/icons/toast_warning.js";
41
+ import { ToastErrorIcon as H } from "../../../assets/icons/toast_error.js";
42
+ import { ToastSuccessIcon as V } from "../../../assets/icons/toast_success.js";
43
+ import { CrossIcon as _ } from "../../../assets/icons/cross.js";
44
+ const Lo = {
45
+ cross: _,
46
+ success: V,
47
+ error: H,
48
+ warning: x,
49
+ info: W,
50
+ dot: B,
51
+ check: k,
52
+ arrowDown: R,
53
+ arrowRight: N,
54
+ arrowLeft: L,
55
+ mobileMenu: U,
56
+ home: P,
57
+ slash: A,
58
+ arrowForward: M,
59
+ localShipping: E,
60
+ favorite: D,
61
+ favoriteOutlined: b,
62
+ deleteOutlined: v,
63
+ accountCircle: S,
64
+ shoppingBag: F,
65
+ errorOutline: y,
66
+ star: T,
67
+ starOutlined: O,
68
+ minus: C,
69
+ plus: w,
70
+ filter: g,
71
+ ruler: d,
72
+ processing: h,
73
+ paymentCard: u,
74
+ eye: s,
75
+ attachment: l,
76
+ upload: a,
77
+ folder: I,
78
+ folderOpen: f,
79
+ wifiTethering: p,
80
+ portrait: e,
81
+ search: c,
82
+ edit: i,
83
+ volumeUp: n,
84
+ contentCopy: m,
85
+ thumbUp: t,
86
+ thumbDown: r,
87
+ fileCopy: o
88
+ }, No = "Icon";
89
+ export {
90
+ No as COMPONENT_NAME,
91
+ Lo as IconsList
92
+ };
@@ -1 +1,39 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),N=require("react"),P=require("../../../hooks/useTheme/useTheme.js"),f=require("../Skeleton/Skeleton.js"),t=require("./constants.js"),a=require("./ImageStyled.js"),h=N.forwardRef((g,m)=>{const{id:p,src:E,alt:M,width:i,height:n,placeholder:c,caption:l,onClick:O,onLoad:r,onError:o,objectFit:S,styles:y,...C}=g,[d,u]=N.useState(!0),{theme:s}=P.useTheme(),j=()=>{u(!1),r==null||r()},T=()=>{u(!1),o==null||o()};return e.jsxs(a.ImageWrapperStyled,{"data-testid":`${t.COMPONENT_NAME}-wrapper`,id:p,width:i,height:n,theme:s,...C,children:[d&&c&&e.jsx(a.PlaceholderStyled,{"data-testid":`${t.COMPONENT_NAME}-placeholder`,theme:s,children:e.jsx(f.Skeleton,{height:"100%",children:c})}),e.jsx(a.ImageStyled,{"data-testid":t.COMPONENT_NAME,theme:s,src:E,alt:M,width:i,height:n,objectFit:S,$isLoading:d,onLoad:j,onError:T,onClick:O,styles:y,ref:m}),l&&e.jsx(a.CaptionStyled,{"data-testid":`${t.COMPONENT_NAME}-caption`,theme:s,children:l})]})});h.displayName=t.COMPONENT_NAME;exports.Image=h;
1
+ "use client";
2
+ import { jsxs as L, jsx as o } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as N, useState as $ } from "react";
4
+ import { COMPONENT_NAME as e } from "./constants.js";
5
+ import { ImageWrapperStyled as b, PlaceholderStyled as j, ImageStyled as w, CaptionStyled as x } from "./ImageStyled.js";
6
+ import { Skeleton as E } from "../Skeleton/Skeleton.js";
7
+ import { useTheme as M } from "../../../hooks/useTheme/useTheme.js";
8
+ const O = N((m, p) => {
9
+ const {
10
+ id: h,
11
+ src: f,
12
+ alt: g,
13
+ width: i,
14
+ height: d,
15
+ placeholder: s,
16
+ caption: l,
17
+ onClick: y,
18
+ onLoad: r,
19
+ onError: a,
20
+ objectFit: S,
21
+ styles: u,
22
+ ...C
23
+ } = m, [n, c] = $(!0), {
24
+ theme: t
25
+ } = M(), k = () => {
26
+ c(!1), r == null || r();
27
+ }, I = () => {
28
+ c(!1), a == null || a();
29
+ };
30
+ return /* @__PURE__ */ L(b, { "data-testid": `${e}-wrapper`, id: h, width: i, height: d, theme: t, ...C, children: [
31
+ n && s && /* @__PURE__ */ o(j, { "data-testid": `${e}-placeholder`, theme: t, children: /* @__PURE__ */ o(E, { height: "100%", children: s }) }),
32
+ /* @__PURE__ */ o(w, { "data-testid": e, theme: t, src: f, alt: g, width: i, height: d, objectFit: S, $isLoading: n, onLoad: k, onError: I, onClick: y, styles: u, ref: p }),
33
+ l && /* @__PURE__ */ o(x, { "data-testid": `${e}-caption`, theme: t, children: l })
34
+ ] });
35
+ });
36
+ O.displayName = e;
37
+ export {
38
+ O as Image
39
+ };