gd-design-library 0.3.3 → 0.3.5

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 (386) hide show
  1. package/README.md +2 -0
  2. package/assets/icons/account_circle.js +17 -1
  3. package/assets/icons/arrow-down.js +15 -1
  4. package/assets/icons/arrow-forward.js +17 -1
  5. package/assets/icons/attachment.js +17 -1
  6. package/assets/icons/check.js +16 -1
  7. package/assets/icons/chevron-left.js +17 -1
  8. package/assets/icons/chevron-right.js +17 -1
  9. package/assets/icons/content-copy.js +17 -1
  10. package/assets/icons/cross.js +16 -1
  11. package/assets/icons/delete_outlined.js +17 -1
  12. package/assets/icons/dot.js +16 -1
  13. package/assets/icons/edit.js +17 -1
  14. package/assets/icons/error_outline.js +22 -1
  15. package/assets/icons/eye.js +17 -1
  16. package/assets/icons/favorite.js +17 -1
  17. package/assets/icons/favorite_outlined.js +17 -1
  18. package/assets/icons/file-copy.js +16 -1
  19. package/assets/icons/filter.js +17 -1
  20. package/assets/icons/folder.js +17 -1
  21. package/assets/icons/folderOpen.js +17 -1
  22. package/assets/icons/home.js +17 -1
  23. package/assets/icons/keyboard-arrow-down.js +12 -1
  24. package/assets/icons/local_shipping.js +17 -1
  25. package/assets/icons/minus.js +16 -1
  26. package/assets/icons/mobile_menu_button.js +17 -1
  27. package/assets/icons/paymentCard.js +17 -1
  28. package/assets/icons/plus.js +16 -1
  29. package/assets/icons/portrait.js +17 -1
  30. package/assets/icons/processing.js +17 -1
  31. package/assets/icons/ruler.js +17 -1
  32. package/assets/icons/search.js +17 -1
  33. package/assets/icons/shopping_bag.js +17 -1
  34. package/assets/icons/slash.js +17 -1
  35. package/assets/icons/star.js +16 -1
  36. package/assets/icons/starOutlined.js +16 -1
  37. package/assets/icons/thumb-down.js +17 -1
  38. package/assets/icons/thumb-up.js +17 -1
  39. package/assets/icons/toast_error.js +20 -1
  40. package/assets/icons/toast_info.js +16 -1
  41. package/assets/icons/toast_success.js +20 -1
  42. package/assets/icons/toast_warning.js +16 -1
  43. package/assets/icons/upload.js +17 -1
  44. package/assets/icons/volume-up.js +17 -1
  45. package/assets/icons/wifiTethering.js +17 -1
  46. package/assets/svg/checkbox_bg_checked.svg.js +5 -2
  47. package/assets/svg/checkbox_border.svg.js +5 -2
  48. package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
  49. package/assets/svg/radio_bg.svg.js +5 -2
  50. package/assets/svg/radio_bg_checked.svg.js +5 -2
  51. package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
  52. package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
  53. package/components/core/Breadcrumbs/constants.js +4 -1
  54. package/components/core/Button/Button.js +43 -1
  55. package/components/core/Button/ButtonStyled.js +53 -1
  56. package/components/core/Button/constants.js +4 -1
  57. package/components/core/Dropdown/Dropdown.js +38 -1
  58. package/components/core/Dropdown/DropdownStyled.js +20 -1
  59. package/components/core/Dropdown/constants.js +4 -1
  60. package/components/core/Dropdown/hooks/useDropdown.js +12 -1
  61. package/components/core/DropdownItem/DropdownItem.js +38 -1
  62. package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
  63. package/components/core/DropdownItem/constants.js +4 -1
  64. package/components/core/Form/Form.js +48 -1
  65. package/components/core/Form/FormStyled.js +16 -1
  66. package/components/core/Form/constants.js +4 -1
  67. package/components/core/Form/utils.js +34 -1
  68. package/components/core/Icon/Icon.d.ts +1 -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 +53 -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.js +6 -1
  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 +11 -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 +47 -1
  285. package/hooks/useTheme/useTheme.types.d.ts +1 -1
  286. package/index.js +351 -1
  287. package/package.json +17 -2
  288. package/stories/Introduction/ThemeJsonPreview.d.ts +2 -0
  289. package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
  290. package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
  291. package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
  292. package/stories/components/TokenViewer/index.d.ts +1 -0
  293. package/tokens/accordion.js +72 -1
  294. package/tokens/animations.js +63 -1
  295. package/tokens/avatar.d.ts +22 -15
  296. package/tokens/avatar.js +153 -1
  297. package/tokens/borders.js +17 -1
  298. package/tokens/breadcrumbs.js +37 -1
  299. package/tokens/button.js +146 -1
  300. package/tokens/card.js +187 -1
  301. package/tokens/carousel.js +216 -1
  302. package/tokens/chat.js +118 -1
  303. package/tokens/chatbubble.js +56 -1
  304. package/tokens/colors.js +157 -1
  305. package/tokens/column.js +9 -1
  306. package/tokens/constants.js +4 -1
  307. package/tokens/counter.js +37 -1
  308. package/tokens/cursors.js +20 -1
  309. package/tokens/defaultTheme.d.ts +22 -15
  310. package/tokens/defaultTheme.js +113 -1
  311. package/tokens/display.js +19 -1
  312. package/tokens/draganddrop.js +87 -1
  313. package/tokens/draganddropfiles.js +6 -1
  314. package/tokens/flexContainer.js +13 -1
  315. package/tokens/font.js +52 -1
  316. package/tokens/form.js +6 -1
  317. package/tokens/header.js +123 -1
  318. package/tokens/icon.js +32 -1
  319. package/tokens/image.js +40 -1
  320. package/tokens/index.d.ts +22 -15
  321. package/tokens/index.js +142 -1
  322. package/tokens/inlineNotification.js +75 -1
  323. package/tokens/input.js +192 -1
  324. package/tokens/inputfile.js +12 -1
  325. package/tokens/label.js +9 -1
  326. package/tokens/link.js +66 -1
  327. package/tokens/list.js +87 -1
  328. package/tokens/loader.js +141 -1
  329. package/tokens/menu.js +19 -1
  330. package/tokens/modal.js +108 -1
  331. package/tokens/price.js +32 -1
  332. package/tokens/progressbar.js +60 -1
  333. package/tokens/radiogroup.js +103 -2
  334. package/tokens/radius.js +14 -1
  335. package/tokens/rating.js +73 -1
  336. package/tokens/reset.js +4 -1
  337. package/tokens/row.js +8 -1
  338. package/tokens/scroll.js +99 -1
  339. package/tokens/search.js +45 -1
  340. package/tokens/searchModal.js +159 -1
  341. package/tokens/select.js +99 -1
  342. package/tokens/separator.js +63 -1
  343. package/tokens/shadow.js +24 -1
  344. package/tokens/skeleton.js +77 -1
  345. package/tokens/slider.js +45 -1
  346. package/tokens/snackbar.js +167 -1
  347. package/tokens/spacing.js +13 -1
  348. package/tokens/stepper.js +147 -1
  349. package/tokens/switch.js +76 -1
  350. package/tokens/tabs.js +108 -1
  351. package/tokens/textarea.js +45 -1
  352. package/tokens/toggle.js +19 -1
  353. package/tokens/tooltip.js +69 -1
  354. package/tokens/types/index.types.js +4 -1
  355. package/tokens/typography.js +134 -1
  356. package/tokens/utils.js +85 -1
  357. package/tokens/values.js +73 -1
  358. package/tokens/wrapper.js +34 -1
  359. package/types/accesability.js +4 -1
  360. package/types/button.js +7 -1
  361. package/types/card.js +5 -1
  362. package/types/chat.js +4 -1
  363. package/types/common.js +5 -1
  364. package/types/cursors.js +4 -1
  365. package/types/input.js +6 -1
  366. package/types/label.js +4 -1
  367. package/types/layout.js +4 -1
  368. package/types/link.js +5 -1
  369. package/types/list.js +4 -1
  370. package/types/separator.js +5 -1
  371. package/types/skeleton.js +4 -1
  372. package/types/snackbar.js +5 -1
  373. package/types/stepper.js +5 -1
  374. package/types/typography.js +6 -1
  375. package/types/wrapper.js +4 -1
  376. package/utils/animationFrame.js +17 -1
  377. package/utils/common.js +4 -1
  378. package/utils/date.js +11 -1
  379. package/utils/focus.js +54 -1
  380. package/utils/helpers.js +42 -1
  381. package/utils/layout.js +32 -1
  382. package/utils/math.js +11 -1
  383. package/utils/setInRange.js +11 -1
  384. package/utils/uniqueKeys.js +4 -1
  385. package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
  386. /package/{gd-design-library.css → assets/styles.css} +0 -0
package/tokens/rating.js CHANGED
@@ -1 +1,73 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../utils/helpers.js");require("react");const e=require("../types/common.js"),r=require("./cursors.js"),i=require("./display.js"),a=require("./values.js"),s={default:{display:i.display.inlineFlex,gap:0,position:"relative",overflow:"hidden"},progress:{default:{position:"absolute",display:i.display.flex,overflow:"hidden",left:0,svg:{flexShrink:0,flexGrow:0}}},radioInput:{default:{display:i.display.none}},label:{default:{cursor:r.cursors.pointer},active:{"&:hover":{transform:"scale(1.2)",transition:t.get(a.values,"transitions.rating.label")}},readOnly:{cursor:r.cursors.default}},size:{[e.SizeVariant.Sm]:{width:12,height:12},[e.SizeVariant.Md]:{width:24,height:24},[e.SizeVariant.Lg]:{width:48,height:48},[e.SizeVariant.Xl]:{width:60,height:60}},icons:{rateActive:{name:"star"},rateInactive:{name:"starOutlined"}}};exports.rating=s;
1
+ import { cursors as i } from "./cursors.js";
2
+ import { display as e } from "./display.js";
3
+ import { values as r } from "./values.js";
4
+ import { get as o } from "../utils/helpers.js";
5
+ import { SizeVariant as t } from "../types/common.js";
6
+ const f = {
7
+ default: {
8
+ display: e.inlineFlex,
9
+ gap: 0,
10
+ position: "relative",
11
+ overflow: "hidden"
12
+ },
13
+ progress: {
14
+ default: {
15
+ position: "absolute",
16
+ display: e.flex,
17
+ overflow: "hidden",
18
+ left: 0,
19
+ svg: {
20
+ flexShrink: 0,
21
+ flexGrow: 0
22
+ }
23
+ }
24
+ },
25
+ radioInput: {
26
+ default: {
27
+ display: e.none
28
+ }
29
+ },
30
+ label: {
31
+ default: {
32
+ cursor: i.pointer
33
+ },
34
+ active: {
35
+ "&:hover": {
36
+ transform: "scale(1.2)",
37
+ transition: o(r, "transitions.rating.label")
38
+ }
39
+ },
40
+ readOnly: {
41
+ cursor: i.default
42
+ }
43
+ },
44
+ size: {
45
+ [t.Sm]: {
46
+ width: 12,
47
+ height: 12
48
+ },
49
+ [t.Md]: {
50
+ width: 24,
51
+ height: 24
52
+ },
53
+ [t.Lg]: {
54
+ width: 48,
55
+ height: 48
56
+ },
57
+ [t.Xl]: {
58
+ width: 60,
59
+ height: 60
60
+ }
61
+ },
62
+ icons: {
63
+ rateActive: {
64
+ name: "star"
65
+ },
66
+ rateInactive: {
67
+ name: "starOutlined"
68
+ }
69
+ }
70
+ };
71
+ export {
72
+ f as rating
73
+ };
package/tokens/reset.js CHANGED
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const e={};exports.reset=e;
1
+ const e = {};
2
+ export {
3
+ e as reset
4
+ };
package/tokens/row.js CHANGED
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={default:{display:"flex"}};exports.row=e;
1
+ const e = {
2
+ default: {
3
+ display: "flex"
4
+ }
5
+ };
6
+ export {
7
+ e as row
8
+ };
package/tokens/scroll.js CHANGED
@@ -1 +1,99 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../constants/positioning.js"),n=require("./colors.js"),r=require("./display.js"),e=require("./spacing.js"),o=require("./values.js"),t=8,l={container:{default:{position:"relative",display:r.display.flex,overflow:"auto",isolation:"isolate",maxBlockSize:"100%","&::-webkit-scrollbar, &::-webkit-scrollbar-thumb":{background:"transparent",width:"0",height:"0"}}},content:{default:{position:"relative",zIndex:i.Z_INDEX.ZERO,flex:1,flexBasis:"auto",height:"max-content"}},scrollbars:{default:{position:"sticky",top:"0",left:"0",zIndex:i.Z_INDEX.FIRST,minWidth:"calc(100% - 1px)",minHeight:"calc(100% - 1px)",maxWidth:"calc(100% - 1px)",maxHeight:"calc(100% - 1px)",float:"left",marginRight:"calc(-100% + 1px)",marginInlineStart:"0",marginInlineEnd:"calc(-100% + 1px)",pointerEvents:"none"}},scrollbar:{default:{position:"absolute",pointerEvents:"auto",opacity:.2,transition:o.values.transitions.scroll.scrollbar,"&:hover":{opacity:1}},vertical:{right:0,bottom:`${t}px`,top:0,width:`${t}px`},horizontal:{left:0,bottom:0,right:`${t}px`,height:`${t}px`}},thumb:{default:{position:"absolute",cursor:"pointer",pointerEvents:"auto",background:n.colors.neutral["grey.80"],backgroundClip:"content-box",boxSizing:"border-box"},vertical:{right:0,bottom:0,top:0,width:`${t}px`,minHeight:e.spacing.md,transition:o.values.transitions.scroll.thumb},horizontal:{left:0,right:0,bottom:0,height:`${t}px`,minWidth:e.spacing.md,transition:o.values.transitions.scroll.thumb}}};exports.scroll=l;
1
+ import { colors as n } from "./colors.js";
2
+ import { display as a } from "./display.js";
3
+ import { spacing as i } from "./spacing.js";
4
+ import { values as o } from "./values.js";
5
+ import { Z_INDEX as r } from "../constants/positioning.js";
6
+ const t = 8, m = {
7
+ container: {
8
+ default: {
9
+ position: "relative",
10
+ display: a.flex,
11
+ overflow: "auto",
12
+ isolation: "isolate",
13
+ maxBlockSize: "100%",
14
+ "&::-webkit-scrollbar, &::-webkit-scrollbar-thumb": {
15
+ background: "transparent",
16
+ width: "0",
17
+ height: "0"
18
+ }
19
+ }
20
+ },
21
+ content: {
22
+ default: {
23
+ position: "relative",
24
+ zIndex: r.ZERO,
25
+ flex: 1,
26
+ flexBasis: "auto",
27
+ height: "max-content"
28
+ }
29
+ },
30
+ scrollbars: {
31
+ default: {
32
+ position: "sticky",
33
+ top: "0",
34
+ left: "0",
35
+ zIndex: r.FIRST,
36
+ minWidth: "calc(100% - 1px)",
37
+ minHeight: "calc(100% - 1px)",
38
+ maxWidth: "calc(100% - 1px)",
39
+ maxHeight: "calc(100% - 1px)",
40
+ float: "left",
41
+ marginRight: "calc(-100% + 1px)",
42
+ marginInlineStart: "0",
43
+ marginInlineEnd: "calc(-100% + 1px)",
44
+ pointerEvents: "none"
45
+ }
46
+ },
47
+ scrollbar: {
48
+ default: {
49
+ position: "absolute",
50
+ pointerEvents: "auto",
51
+ opacity: 0.2,
52
+ transition: o.transitions.scroll.scrollbar,
53
+ "&:hover": {
54
+ opacity: 1
55
+ }
56
+ },
57
+ vertical: {
58
+ right: 0,
59
+ bottom: `${t}px`,
60
+ top: 0,
61
+ width: `${t}px`
62
+ },
63
+ horizontal: {
64
+ left: 0,
65
+ bottom: 0,
66
+ right: `${t}px`,
67
+ height: `${t}px`
68
+ }
69
+ },
70
+ thumb: {
71
+ default: {
72
+ position: "absolute",
73
+ cursor: "pointer",
74
+ pointerEvents: "auto",
75
+ background: n.neutral["grey.80"],
76
+ backgroundClip: "content-box",
77
+ boxSizing: "border-box"
78
+ },
79
+ vertical: {
80
+ right: 0,
81
+ bottom: 0,
82
+ top: 0,
83
+ width: `${t}px`,
84
+ minHeight: i.md,
85
+ transition: o.transitions.scroll.thumb
86
+ },
87
+ horizontal: {
88
+ left: 0,
89
+ right: 0,
90
+ bottom: 0,
91
+ height: `${t}px`,
92
+ minWidth: i.md,
93
+ transition: o.transitions.scroll.thumb
94
+ }
95
+ }
96
+ };
97
+ export {
98
+ m as scroll
99
+ };
package/tokens/search.js CHANGED
@@ -1 +1,45 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./spacing.js"),r=require("./colors.js"),i=require("./display.js"),n={default:{},input:{default:{width:"100%",boxSizing:"border-box"}},dropdownHeader:{row:{},link:{default:{},typography:{}},icon:{}},renderer:{row:{width:"100%",padding:`${e.spacing.md} ${e.spacing.md} 0`},link:{display:i.display.flex,alignItems:i.flexAlignItems.center,"&:after":{borderBottom:"none"},"& svg":{marginLeft:e.spacing.md}},linkIcon:{fill:r.colors.icon.primary.active,name:"arrowRight",width:10,height:10}}};exports.search=n;
1
+ import { spacing as r } from "./spacing.js";
2
+ import { colors as i } from "./colors.js";
3
+ import { flexAlignItems as o, display as e } from "./display.js";
4
+ const a = {
5
+ default: {},
6
+ input: {
7
+ default: {
8
+ width: "100%",
9
+ boxSizing: "border-box"
10
+ }
11
+ },
12
+ dropdownHeader: {
13
+ row: {},
14
+ link: {
15
+ default: {},
16
+ typography: {}
17
+ },
18
+ icon: {}
19
+ },
20
+ renderer: {
21
+ row: {
22
+ width: "100%",
23
+ padding: `${r.md} ${r.md} 0`
24
+ },
25
+ link: {
26
+ display: e.flex,
27
+ alignItems: o.center,
28
+ "&:after": {
29
+ borderBottom: "none"
30
+ },
31
+ "& svg": {
32
+ marginLeft: r.md
33
+ }
34
+ },
35
+ linkIcon: {
36
+ fill: i.icon.primary.active,
37
+ name: "arrowRight",
38
+ width: 10,
39
+ height: 10
40
+ }
41
+ }
42
+ };
43
+ export {
44
+ a as search
45
+ };
@@ -1 +1,159 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../utils/helpers.js");require("react");const s=require("../utils/layout.js"),n=require("../types/common.js"),o=require("../types/typography.js"),r=require("../types/layout.js"),c=require("../types/button.js"),e=require("./utils.js"),a=require("./typography.js"),l=require("./icon.js"),t=require("./display.js"),g=require("./cursors.js"),d=require("./font.js"),i=require("./colors.js"),u={default:{},wrapper:{padding:`${e.getSpacing(4)} ${e.getSpacing(3)}`,overflowY:"auto"},input:{default:{'& input[type="search"]':{padding:`${e.getSpacing(3)} 0 ${e.getSpacing(3)} ${e.getSpacing(7)}`,height:"54px",fontSize:d.font.size[o.TypographyVariant.Body2],"&::placeholder":{color:p.get(i.colors,["neutral","grey.60"])},"&::-webkit-search-cancel-button":{appearance:t.display.none},"&::-ms-clear":{display:t.display.none}}},endIcon:{margin:`0 ${e.getSpacing(3)} 0 0`,padding:e.getSpacing(2),cursor:g.cursors.pointer},icons:{close:{name:"cross",width:12,height:12}}},loader:{default:{display:t.display.flex,flexDirection:r.FlexDirection.Column,gap:e.getSpacing(2)}},items:{default:{display:t.display.flex,flexDirection:r.FlexDirection.Column},newSearchBtn:{styles:{textAlign:"left",color:i.colors.text.default,padding:`${e.getSpacing(2)} ${e.getSpacing(4)}`,...a.typography[o.TypographyVariant.Body2],".gd-button__content":{justifyContent:t.flexAlignItems.start}},attrs:{variant:c.ButtonVariant.Text}},noResult:{display:t.display.flex,flexDirection:r.FlexDirection.Row,alignItems:t.flexAlignItems.center,gap:e.getSpacing(2),padding:`${e.getSpacing(2)} ${e.getSpacing(4)}`,color:i.colors.text.caption,...a.typography[o.TypographyVariant.Body2]},groupTitle:{textAlign:"left",padding:`${e.getSpacing(2)} ${e.getSpacing(4)}`,color:i.colors.text.caption,...a.typography[o.TypographyVariant.Body2]},item:{styles:{textAlign:"left",gap:e.getSpacing(2),padding:`${e.getSpacing()} ${e.getSpacing(4)}`,color:i.colors.text.default,".gd-button__content":{display:t.display.block},...a.typography[o.TypographyVariant.Body2]},attrs:{variant:c.ButtonVariant.Text}},itemRow:{alignItems:t.flexAlignItems.center,justifyContent:s.calculateJustify("between"),gap:e.getSpacing(2),flexWrap:"noWrap"},itemColumn:{gap:e.getSpacing(.5),minWidth:0,flexWrap:"noWrap"},itemContent:{default:{},title:{flex:1,minWidth:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},description:{flex:1,minWidth:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:i.colors.text.caption},date:{flex:"0 0",whiteSpace:"nowrap",color:i.colors.text.caption}},icons:{newChat:{name:"edit",fill:i.colors.icon.primary.default,...l.icon.size[n.SizeVariant.Sm]},noResults:{name:"search",...l.icon.size[n.SizeVariant.Sm]},item:{fill:i.colors.icon.primary.default,...l.icon.size[n.SizeVariant.Sm]}}}};exports.searchModal=u;
1
+ import { getSpacing as t } from "./utils.js";
2
+ import { typography as r } from "./typography.js";
3
+ import { icon as n } from "./icon.js";
4
+ import { flexAlignItems as a, display as o } from "./display.js";
5
+ import { cursors as m } from "./cursors.js";
6
+ import { font as c } from "./font.js";
7
+ import { colors as e } from "./colors.js";
8
+ import { calculateJustify as f } from "../utils/layout.js";
9
+ import { ButtonVariant as d } from "../types/button.js";
10
+ import { FlexDirection as l } from "../types/layout.js";
11
+ import { get as s } from "../utils/helpers.js";
12
+ import { SizeVariant as p } from "../types/common.js";
13
+ import { TypographyVariant as i } from "../types/typography.js";
14
+ const z = {
15
+ default: {},
16
+ wrapper: {
17
+ padding: `${t(4)} ${t(3)}`,
18
+ overflowY: "auto"
19
+ },
20
+ input: {
21
+ default: {
22
+ '& input[type="search"]': {
23
+ padding: `${t(3)} 0 ${t(3)} ${t(7)}`,
24
+ height: "54px",
25
+ fontSize: c.size[i.Body2],
26
+ "&::placeholder": {
27
+ color: s(e, ["neutral", "grey.60"])
28
+ },
29
+ "&::-webkit-search-cancel-button": {
30
+ appearance: o.none
31
+ },
32
+ "&::-ms-clear": {
33
+ display: o.none
34
+ }
35
+ }
36
+ },
37
+ endIcon: {
38
+ margin: `0 ${t(3)} 0 0`,
39
+ padding: t(2),
40
+ cursor: m.pointer
41
+ },
42
+ icons: {
43
+ close: {
44
+ name: "cross",
45
+ width: 12,
46
+ height: 12
47
+ }
48
+ }
49
+ },
50
+ loader: {
51
+ default: {
52
+ display: o.flex,
53
+ flexDirection: l.Column,
54
+ gap: t(2)
55
+ }
56
+ },
57
+ items: {
58
+ default: {
59
+ display: o.flex,
60
+ flexDirection: l.Column
61
+ },
62
+ newSearchBtn: {
63
+ styles: {
64
+ textAlign: "left",
65
+ color: e.text.default,
66
+ padding: `${t(2)} ${t(4)}`,
67
+ ...r[i.Body2],
68
+ ".gd-button__content": {
69
+ justifyContent: a.start
70
+ }
71
+ },
72
+ attrs: {
73
+ variant: d.Text
74
+ }
75
+ },
76
+ noResult: {
77
+ display: o.flex,
78
+ flexDirection: l.Row,
79
+ alignItems: a.center,
80
+ gap: t(2),
81
+ padding: `${t(2)} ${t(4)}`,
82
+ color: e.text.caption,
83
+ ...r[i.Body2]
84
+ },
85
+ groupTitle: {
86
+ textAlign: "left",
87
+ padding: `${t(2)} ${t(4)}`,
88
+ color: e.text.caption,
89
+ ...r[i.Body2]
90
+ },
91
+ item: {
92
+ styles: {
93
+ textAlign: "left",
94
+ gap: t(2),
95
+ padding: `${t()} ${t(4)}`,
96
+ color: e.text.default,
97
+ ".gd-button__content": {
98
+ display: o.block
99
+ },
100
+ ...r[i.Body2]
101
+ },
102
+ attrs: {
103
+ variant: d.Text
104
+ }
105
+ },
106
+ itemRow: {
107
+ alignItems: a.center,
108
+ justifyContent: f("between"),
109
+ gap: t(2),
110
+ flexWrap: "noWrap"
111
+ },
112
+ itemColumn: {
113
+ gap: t(0.5),
114
+ minWidth: 0,
115
+ flexWrap: "noWrap"
116
+ },
117
+ itemContent: {
118
+ default: {},
119
+ title: {
120
+ flex: 1,
121
+ minWidth: 0,
122
+ whiteSpace: "nowrap",
123
+ textOverflow: "ellipsis",
124
+ overflow: "hidden"
125
+ },
126
+ description: {
127
+ flex: 1,
128
+ minWidth: 0,
129
+ whiteSpace: "nowrap",
130
+ textOverflow: "ellipsis",
131
+ overflow: "hidden",
132
+ color: e.text.caption
133
+ },
134
+ date: {
135
+ flex: "0 0",
136
+ whiteSpace: "nowrap",
137
+ color: e.text.caption
138
+ }
139
+ },
140
+ icons: {
141
+ newChat: {
142
+ name: "edit",
143
+ fill: e.icon.primary.default,
144
+ ...n.size[p.Sm]
145
+ },
146
+ noResults: {
147
+ name: "search",
148
+ ...n.size[p.Sm]
149
+ },
150
+ item: {
151
+ fill: e.icon.primary.default,
152
+ ...n.size[p.Sm]
153
+ }
154
+ }
155
+ }
156
+ };
157
+ export {
158
+ z as searchModal
159
+ };
package/tokens/select.js CHANGED
@@ -1 +1,99 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../types/typography.js"),T=require("../types/layout.js"),i=require("../types/button.js"),a=require("../types/cursors.js"),s=require("../constants/positioning.js"),z=require("./values.js"),o=require("./spacing.js"),t=require("./colors.js"),r=require("./font.js"),_=require("./shadow.js"),e=require("./display.js");var l,c,d,u,p,f,g,y,m,b,w,h,x,I,q,v,A,C,W,D,S;const j={default:{position:"relative",display:"inline-block"},initiatorWrapper:{},dropdown:{position:"absolute",textAlign:"left",top:"100%",left:"auto",minWidth:"100%",background:(c=(l=t.colors)==null?void 0:l.bg)==null?void 0:c.surface,boxShadow:(u=(d=_.shadows)==null?void 0:d.select)==null?void 0:u.default,fontFamily:(p=r.font)==null?void 0:p.family,fontSize:(g=(f=r.font)==null?void 0:f.size)==null?void 0:g[n.TypographyVariant.Body1],fontWeight:(m=(y=r.font)==null?void 0:y.weight)==null?void 0:m.normal,listStyleType:"none",margin:(b=o.spacing)==null?void 0:b.none,padding:(w=o.spacing)==null?void 0:w.none,zIndex:s.Z_INDEX.LOW},button:{default:{borderColor:(x=(h=t.colors)==null?void 0:h.border)==null?void 0:x.default,padding:(I=o.spacing)==null?void 0:I.sm,width:"100%",display:(q=e.display)==null?void 0:q.flex,flexDirection:"row",justifyContent:"space-between",alignItems:(v=e.flexAlignItems)==null?void 0:v.center,minWidth:"300px",textAlign:n.TextAlign.Left,".gd-button__content":{justifyContent:e.flexAlignItems.start}},attrs:{variant:i.ButtonVariant.Outlined,color:i.ButtonColorVariant.Primary}},item:{default:{cursor:a.Cursors.Pointer,"&:hover, &.active":{backgroundColor:(D=(W=(C=(A=t.colors)==null?void 0:A.bg)==null?void 0:C.fill)==null?void 0:W.secondary)==null?void 0:D.hover}},disabled:{opacity:.5,cursor:a.Cursors.NotAllowed,pointerEvents:"none"}},arrowIconWrapper:{default:{transition:z.values.transitions.select.arrowIconWrapper},transform:{open:{transform:"rotate(180deg)"},close:{transform:"rotate(0deg)"}}},arrowIcon:{name:"arrowDown",fill:(S=t.colors)==null?void 0:S.neutral["grey.90"],width:18,height:18},adornment:{default:{display:e.display.flex,alignItems:e.flexAlignItems.center,flexDirection:T.FlexDirection.Row,position:"relative",zIndex:s.Z_INDEX.FIRST}}};exports.select=j;
1
+ import { Z_INDEX as i } from "../constants/positioning.js";
2
+ import { values as S } from "./values.js";
3
+ import { spacing as o } from "./spacing.js";
4
+ import { colors as t } from "./colors.js";
5
+ import { font as r } from "./font.js";
6
+ import { shadows as T } from "./shadow.js";
7
+ import { flexAlignItems as e, display as n } from "./display.js";
8
+ import { FlexDirection as k } from "../types/layout.js";
9
+ import { Cursors as a } from "../types/cursors.js";
10
+ import { ButtonColorVariant as B, ButtonVariant as F } from "../types/button.js";
11
+ import { TextAlign as V, TypographyVariant as _ } from "../types/typography.js";
12
+ var l, s, d, f, m, p, c, u, g, y, w, x, b, h, I, v, W, C, A, D, z;
13
+ const H = {
14
+ default: {
15
+ position: "relative",
16
+ display: "inline-block"
17
+ },
18
+ initiatorWrapper: {},
19
+ dropdown: {
20
+ position: "absolute",
21
+ textAlign: "left",
22
+ top: "100%",
23
+ left: "auto",
24
+ minWidth: "100%",
25
+ background: (s = (l = t) == null ? void 0 : l.bg) == null ? void 0 : s.surface,
26
+ boxShadow: (f = (d = T) == null ? void 0 : d.select) == null ? void 0 : f.default,
27
+ fontFamily: (m = r) == null ? void 0 : m.family,
28
+ fontSize: (c = (p = r) == null ? void 0 : p.size) == null ? void 0 : c[_.Body1],
29
+ fontWeight: (g = (u = r) == null ? void 0 : u.weight) == null ? void 0 : g.normal,
30
+ listStyleType: "none",
31
+ margin: (y = o) == null ? void 0 : y.none,
32
+ padding: (w = o) == null ? void 0 : w.none,
33
+ zIndex: i.LOW
34
+ },
35
+ button: {
36
+ default: {
37
+ borderColor: (b = (x = t) == null ? void 0 : x.border) == null ? void 0 : b.default,
38
+ padding: (h = o) == null ? void 0 : h.sm,
39
+ width: "100%",
40
+ display: (I = n) == null ? void 0 : I.flex,
41
+ flexDirection: "row",
42
+ justifyContent: "space-between",
43
+ alignItems: (v = e) == null ? void 0 : v.center,
44
+ minWidth: "300px",
45
+ textAlign: V.Left,
46
+ ".gd-button__content": {
47
+ justifyContent: e.start
48
+ }
49
+ },
50
+ attrs: {
51
+ variant: F.Outlined,
52
+ color: B.Primary
53
+ }
54
+ },
55
+ item: {
56
+ default: {
57
+ cursor: a.Pointer,
58
+ "&:hover, &.active": {
59
+ backgroundColor: (D = (A = (C = (W = t) == null ? void 0 : W.bg) == null ? void 0 : C.fill) == null ? void 0 : A.secondary) == null ? void 0 : D.hover
60
+ }
61
+ },
62
+ disabled: {
63
+ opacity: 0.5,
64
+ cursor: a.NotAllowed,
65
+ pointerEvents: "none"
66
+ }
67
+ },
68
+ arrowIconWrapper: {
69
+ default: {
70
+ transition: S.transitions.select.arrowIconWrapper
71
+ },
72
+ transform: {
73
+ open: {
74
+ transform: "rotate(180deg)"
75
+ },
76
+ close: {
77
+ transform: "rotate(0deg)"
78
+ }
79
+ }
80
+ },
81
+ arrowIcon: {
82
+ name: "arrowDown",
83
+ fill: (z = t) == null ? void 0 : z.neutral["grey.90"],
84
+ width: 18,
85
+ height: 18
86
+ },
87
+ adornment: {
88
+ default: {
89
+ display: n.flex,
90
+ alignItems: e.center,
91
+ flexDirection: k.Row,
92
+ position: "relative",
93
+ zIndex: i.FIRST
94
+ }
95
+ }
96
+ };
97
+ export {
98
+ H as select
99
+ };
@@ -1 +1,63 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../types/common.js"),a=require("../types/typography.js"),r=require("../types/layout.js"),t=require("./display.js"),e=require("./utils.js"),n={default:{alignItems:t.flexAlignItems.center,justifyItems:t.flexAlignItems.center,gap:e.getSpacing(4)},[i.Orientation.Horizontal]:{width:"100%",display:t.display.flex,flexDirection:r.FlexDirection.Row},[i.Orientation.Vertical]:{height:"100%",display:t.display.flex,flexDirection:r.FlexDirection.Column},line:{default:{},[i.Orientation.Horizontal]:{width:"100%"},[i.Orientation.Vertical]:{height:"100%"}},label:{default:{},attrs:{[i.SizeVariant.Xs]:{$variant:a.TypographyVariant.Caption,$as:a.TypographyVariant.Caption},[i.SizeVariant.Sm]:{$variant:a.TypographyVariant.Body2,$as:a.TypographyVariant.Body2},[i.SizeVariant.Md]:{$variant:a.TypographyVariant.Body1,$as:a.TypographyVariant.Body1},[i.SizeVariant.Lg]:{$variant:a.TypographyVariant.H6,$as:a.TypographyVariant.H6},[i.SizeVariant.Xl]:{$variant:a.TypographyVariant.H5,$as:a.TypographyVariant.H5},[i.SizeVariant.Xxl]:{$variant:a.TypographyVariant.H4,$as:a.TypographyVariant.H4}}}};exports.separator=n;
1
+ import { display as r, flexAlignItems as e } from "./display.js";
2
+ import { getSpacing as n } from "./utils.js";
3
+ import { TypographyVariant as a } from "../types/typography.js";
4
+ import { FlexDirection as o } from "../types/layout.js";
5
+ import { SizeVariant as t, Orientation as i } from "../types/common.js";
6
+ const d = {
7
+ default: {
8
+ alignItems: e.center,
9
+ justifyItems: e.center,
10
+ gap: n(4)
11
+ },
12
+ [i.Horizontal]: {
13
+ width: "100%",
14
+ display: r.flex,
15
+ flexDirection: o.Row
16
+ },
17
+ [i.Vertical]: {
18
+ height: "100%",
19
+ display: r.flex,
20
+ flexDirection: o.Column
21
+ },
22
+ line: {
23
+ default: {},
24
+ [i.Horizontal]: {
25
+ width: "100%"
26
+ },
27
+ [i.Vertical]: {
28
+ height: "100%"
29
+ }
30
+ },
31
+ label: {
32
+ default: {},
33
+ attrs: {
34
+ [t.Xs]: {
35
+ $variant: a.Caption,
36
+ $as: a.Caption
37
+ },
38
+ [t.Sm]: {
39
+ $variant: a.Body2,
40
+ $as: a.Body2
41
+ },
42
+ [t.Md]: {
43
+ $variant: a.Body1,
44
+ $as: a.Body1
45
+ },
46
+ [t.Lg]: {
47
+ $variant: a.H6,
48
+ $as: a.H6
49
+ },
50
+ [t.Xl]: {
51
+ $variant: a.H5,
52
+ $as: a.H5
53
+ },
54
+ [t.Xxl]: {
55
+ $variant: a.H4,
56
+ $as: a.H4
57
+ }
58
+ }
59
+ }
60
+ };
61
+ export {
62
+ d as separator
63
+ };
package/tokens/shadow.js CHANGED
@@ -1 +1,24 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./utils.js"),a=require("./colors.js"),e=`0 4px 12px ${t.hexToRgba(a.colors.neutral.black,.1)}`,o=`0px 8px 18px 3px ${t.hexToRgba(a.colors.neutral.black,.2)}`,l={modal:{default:e},snackbar:{default:e},select:{default:o},card:{default:o},inlineNotification:{default:e}};exports.DEFAULT_SHADOW=e;exports.SHADOW_3=o;exports.shadows=l;
1
+ import { hexToRgba as o } from "./utils.js";
2
+ import { colors as l } from "./colors.js";
3
+ const a = `0 4px 12px ${o(l.neutral.black, 0.1)}`, t = `0px 8px 18px 3px ${o(l.neutral.black, 0.2)}`, r = {
4
+ modal: {
5
+ default: a
6
+ },
7
+ snackbar: {
8
+ default: a
9
+ },
10
+ select: {
11
+ default: t
12
+ },
13
+ card: {
14
+ default: t
15
+ },
16
+ inlineNotification: {
17
+ default: a
18
+ }
19
+ };
20
+ export {
21
+ a as DEFAULT_SHADOW,
22
+ t as SHADOW_3,
23
+ r as shadows
24
+ };
@@ -1 +1,77 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../types/common.js"),t=require("../types/skeleton.js"),n=require("./utils.js"),r=require("./radius.js"),o=require("./colors.js"),e=require("./spacing.js"),a={default:{display:"flex",position:"relative",backgroundColor:n.hexToRgba(o.colors.neutral["grey.30"],.7),alignItems:"center",justifyContent:"center",width:"100%",height:"auto",overflow:"hidden","&:empty::before":{content:'" "'}},[t.SkeletonVariant.Rounded]:{borderRadius:r.radius[i.SizeVariant.Sm]},[t.SkeletonVariant.Rectangular]:{borderRadius:r.radius.none},[t.SkeletonVariant.Circular]:{borderRadius:r.radius.round},cards:{search:{default:{},container:{padding:e.spacing.md,boxSizing:"border-box",flexWrap:"nowrap",flexDirection:"column"},header:{width:"100%",marginBottom:e.spacing.sm},row:{width:"100%",marginBottom:e.spacing.md,gap:e.spacing.xs},columnImage:{default:{flex:1},image:{width:"85px",height:"85px"}},columnText:{default:{flex:3},description:{width:"100%",height:e.spacing[i.SizeVariant.Lg],marginBottom:e.spacing.sm},price:{width:"50%",height:e.spacing[i.SizeVariant.Lg],marginBottom:e.spacing.sm}}}}};exports.skeleton=a;
1
+ import { hexToRgba as i } from "./utils.js";
2
+ import { radius as e } from "./radius.js";
3
+ import { colors as a } from "./colors.js";
4
+ import { spacing as o } from "./spacing.js";
5
+ import { SkeletonVariant as r } from "../types/skeleton.js";
6
+ import { SizeVariant as t } from "../types/common.js";
7
+ const s = {
8
+ default: {
9
+ display: "flex",
10
+ position: "relative",
11
+ backgroundColor: i(a.neutral["grey.30"], 0.7),
12
+ alignItems: "center",
13
+ justifyContent: "center",
14
+ width: "100%",
15
+ height: "auto",
16
+ overflow: "hidden",
17
+ "&:empty::before": {
18
+ content: '" "'
19
+ }
20
+ },
21
+ [r.Rounded]: {
22
+ borderRadius: e[t.Sm]
23
+ },
24
+ [r.Rectangular]: {
25
+ borderRadius: e.none
26
+ },
27
+ [r.Circular]: {
28
+ borderRadius: e.round
29
+ },
30
+ cards: {
31
+ search: {
32
+ default: {},
33
+ container: {
34
+ padding: o.md,
35
+ boxSizing: "border-box",
36
+ flexWrap: "nowrap",
37
+ flexDirection: "column"
38
+ },
39
+ header: {
40
+ width: "100%",
41
+ marginBottom: o.sm
42
+ },
43
+ row: {
44
+ width: "100%",
45
+ marginBottom: o.md,
46
+ gap: o.xs
47
+ },
48
+ columnImage: {
49
+ default: {
50
+ flex: 1
51
+ },
52
+ image: {
53
+ width: "85px",
54
+ height: "85px"
55
+ }
56
+ },
57
+ columnText: {
58
+ default: {
59
+ flex: 3
60
+ },
61
+ description: {
62
+ width: "100%",
63
+ height: o[t.Lg],
64
+ marginBottom: o.sm
65
+ },
66
+ price: {
67
+ width: "50%",
68
+ height: o[t.Lg],
69
+ marginBottom: o.sm
70
+ }
71
+ }
72
+ }
73
+ }
74
+ };
75
+ export {
76
+ s as skeleton
77
+ };