gd-design-library 0.3.4 → 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 (383) 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.js +33 -1
  69. package/components/core/Icon/constants.js +92 -1
  70. package/components/core/Image/Image.js +39 -1
  71. package/components/core/Image/ImageStyled.js +53 -1
  72. package/components/core/Image/constants.js +4 -1
  73. package/components/core/InlineNotification/InlineNotification.js +38 -1
  74. package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
  75. package/components/core/InlineNotification/constants.js +21 -1
  76. package/components/core/Input/Input.js +72 -1
  77. package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
  78. package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
  79. package/components/core/Input/InputAdornment/constants.js +4 -1
  80. package/components/core/Input/InputHelper/InputHelper.js +22 -1
  81. package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
  82. package/components/core/Input/InputHelper/constants.js +4 -1
  83. package/components/core/Input/InputStyled.js +18 -1
  84. package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
  85. package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
  86. package/components/core/Input/InputWrapper/constants.js +5 -1
  87. package/components/core/Input/constants.js +18 -1
  88. package/components/core/Input/useInputHandlers.js +31 -1
  89. package/components/core/InputFile/InputFile.js +40 -1
  90. package/components/core/InputFile/InputFileStyled.js +27 -1
  91. package/components/core/InputFile/constants.js +6 -1
  92. package/components/core/Label/Label.js +27 -1
  93. package/components/core/Label/LabelStyled.js +17 -1
  94. package/components/core/Label/constants.js +4 -1
  95. package/components/core/Link/Link.js +43 -1
  96. package/components/core/Link/LinkStyled.js +22 -1
  97. package/components/core/Link/constants.js +4 -1
  98. package/components/core/List/List.js +45 -1
  99. package/components/core/List/ListStyled.js +31 -1
  100. package/components/core/List/constants.js +4 -1
  101. package/components/core/Loader/Loader.js +28 -1
  102. package/components/core/Loader/LoaderStyled.js +41 -1
  103. package/components/core/Loader/constants.js +6 -1
  104. package/components/core/Loader/utils.js +37 -1
  105. package/components/core/Menu/Menu.js +100 -1
  106. package/components/core/Menu/MenuStyled.js +31 -1
  107. package/components/core/Menu/constants.js +24 -1
  108. package/components/core/Modal/Modal.js +47 -1
  109. package/components/core/Modal/ModalStyled.js +76 -1
  110. package/components/core/Modal/constants.js +4 -1
  111. package/components/core/Portal/Portal.d.ts +1 -2
  112. package/components/core/Portal/Portal.js +19 -1
  113. package/components/core/Portal/index.d.ts +1 -1
  114. package/components/core/Scroll/Scroll.js +40 -1
  115. package/components/core/Scroll/ScrollBar.js +68 -1
  116. package/components/core/Scroll/ScrollStyled.js +56 -1
  117. package/components/core/Scroll/constants.js +6 -1
  118. package/components/core/Scroll/utils.js +41 -1
  119. package/components/core/Select/Select.js +145 -1
  120. package/components/core/Select/SelectStyled.js +70 -1
  121. package/components/core/Select/constants.js +5 -1
  122. package/components/core/Select/hooks/useSelectContext.js +12 -1
  123. package/components/core/Separator/Separator.js +36 -1
  124. package/components/core/Separator/SeparatorStyled.js +61 -1
  125. package/components/core/Separator/constants.js +4 -1
  126. package/components/core/Skeleton/Skeleton.js +24 -1
  127. package/components/core/Skeleton/SkeletonStyled.js +28 -1
  128. package/components/core/Skeleton/constants.js +6 -1
  129. package/components/core/Slider/Slider.js +35 -1
  130. package/components/core/Slider/SliderStyled.js +20 -1
  131. package/components/core/Slider/constants.js +6 -1
  132. package/components/core/Snackbar/Snackbar.js +46 -1
  133. package/components/core/Snackbar/SnackbarManager.js +48 -1
  134. package/components/core/Snackbar/SnackbarStyled.js +109 -5
  135. package/components/core/Snackbar/constants.js +10 -1
  136. package/components/core/Switch/Switch.js +36 -1
  137. package/components/core/Switch/SwitchStyled.js +56 -1
  138. package/components/core/Switch/constants.js +4 -1
  139. package/components/core/Textarea/Textarea.js +41 -1
  140. package/components/core/Textarea/Textarea.types.d.ts +1 -3
  141. package/components/core/Textarea/Textarea.types.js +6 -1
  142. package/components/core/Textarea/TextareaStyled.js +29 -1
  143. package/components/core/Textarea/constants.js +4 -1
  144. package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
  145. package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
  146. package/components/core/Toggle/Toggle.js +37 -1
  147. package/components/core/Toggle/ToggleStyled.js +18 -1
  148. package/components/core/Toggle/constants.js +4 -1
  149. package/components/core/Tooltip/Tooltip.js +40 -1
  150. package/components/core/Tooltip/Tooltip.types.js +4 -1
  151. package/components/core/Tooltip/TooltipStyled.js +23 -1
  152. package/components/core/Tooltip/constants.js +6 -1
  153. package/components/core/Tooltip/utils.js +64 -1
  154. package/components/core/Typography/Typography.js +26 -1
  155. package/components/core/Typography/TypographyStyled.js +32 -1
  156. package/components/core/Typography/constants.js +4 -1
  157. package/components/core/Wrapper/Wrapper.js +20 -1
  158. package/components/core/Wrapper/WrapperStyled.js +23 -1
  159. package/components/core/Wrapper/constants.js +4 -1
  160. package/components/core/index.d.ts +1 -1
  161. package/components/core/types/roles.types.js +4 -1
  162. package/components/domainSpecific/Accordion/Accordion.js +35 -1
  163. package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
  164. package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
  165. package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
  166. package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
  167. package/components/domainSpecific/Accordion/constants.js +7 -1
  168. package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
  169. package/components/domainSpecific/Avatar/Avatar.js +44 -1
  170. package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
  171. package/components/domainSpecific/Avatar/constants.js +6 -1
  172. package/components/domainSpecific/Card/Card.js +47 -1
  173. package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
  174. package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
  175. package/components/domainSpecific/Card/CardButton/constants.js +4 -1
  176. package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
  177. package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
  178. package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
  179. package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
  180. package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
  181. package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
  182. package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
  183. package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
  184. package/components/domainSpecific/Card/CardImage/constants.js +4 -1
  185. package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
  186. package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
  187. package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
  188. package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
  189. package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
  190. package/components/domainSpecific/Card/CardRating/constants.js +6 -1
  191. package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
  192. package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
  193. package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
  194. package/components/domainSpecific/Card/CartStyled.js +26 -1
  195. package/components/domainSpecific/Card/constants.js +4 -1
  196. package/components/domainSpecific/Carousel/Carousel.js +137 -1
  197. package/components/domainSpecific/Carousel/Carousel.types.js +6 -1
  198. package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
  199. package/components/domainSpecific/Carousel/constants.js +4 -1
  200. package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
  201. package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
  202. package/components/domainSpecific/ChatBubble/constants.js +4 -1
  203. package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
  204. package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
  205. package/components/domainSpecific/ContentCarousel/constants.js +4 -1
  206. package/components/domainSpecific/Counter/Counter.js +55 -1
  207. package/components/domainSpecific/Counter/CounterStyled.js +27 -1
  208. package/components/domainSpecific/Counter/constants.js +8 -1
  209. package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
  210. package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
  211. package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
  212. package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
  213. package/components/domainSpecific/Header/Header.js +88 -1
  214. package/components/domainSpecific/Header/HeaderStyled.js +136 -1
  215. package/components/domainSpecific/Header/constants.js +4 -1
  216. package/components/domainSpecific/Price/Price.js +23 -1
  217. package/components/domainSpecific/Price/PriceStyled.js +42 -1
  218. package/components/domainSpecific/Price/constants.js +4 -1
  219. package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
  220. package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
  221. package/components/domainSpecific/ProgressBar/constants.js +7 -1
  222. package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
  223. package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
  224. package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
  225. package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
  226. package/components/domainSpecific/RadioGroup/constants.js +5 -1
  227. package/components/domainSpecific/Rating/Rating.js +63 -1
  228. package/components/domainSpecific/Rating/RatingStyled.js +61 -1
  229. package/components/domainSpecific/Rating/constants.js +9 -1
  230. package/components/domainSpecific/Search/Search.js +58 -1
  231. package/components/domainSpecific/Search/SearchStyled.js +16 -1
  232. package/components/domainSpecific/Search/constants.js +7 -1
  233. package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
  234. package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
  235. package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
  236. package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
  237. package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
  238. package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
  239. package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
  240. package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
  241. package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
  242. package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
  243. package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
  244. package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
  245. package/components/domainSpecific/SearchModal/constants.js +8 -1
  246. package/components/domainSpecific/Stepper/Stepper.js +42 -1
  247. package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
  248. package/components/domainSpecific/Stepper/constants.js +4 -1
  249. package/components/domainSpecific/Stepper/utils.js +37 -1
  250. package/components/domainSpecific/Tabs/Tabs.js +40 -1
  251. package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
  252. package/components/domainSpecific/Tabs/constants.js +6 -1
  253. package/components/index.types.js +4 -1
  254. package/components/layout/ChatContainer/ChatContainer.js +51 -1
  255. package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
  256. package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
  257. package/components/layout/ChatContainer/constants.js +4 -1
  258. package/components/layout/Column/Column.js +26 -1
  259. package/components/layout/Column/ColumnStyled.js +36 -1
  260. package/components/layout/Column/constants.js +4 -1
  261. package/components/layout/FlexContainer/FlexContainer.js +25 -1
  262. package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
  263. package/components/layout/FlexContainer/constants.js +4 -1
  264. package/components/layout/FlexContainer/utils.js +18 -1
  265. package/components/layout/Row/Row.js +26 -1
  266. package/components/layout/Row/RowStyled.js +36 -1
  267. package/components/layout/Row/constants.js +4 -1
  268. package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
  269. package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
  270. package/components/templates/SkeletonSearch/constants.js +5 -1
  271. package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
  272. package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
  273. package/components/widget/DragAndDrop/constants.js +4 -1
  274. package/components/widget/DragAndDrop/utils/validators.js +17 -1
  275. package/constants/keyboard.js +10 -1
  276. package/constants/positioning.js +11 -1
  277. package/constants/timers.js +5 -1
  278. package/hooks/useAutoFocus/useAutoFocus.js +11 -1
  279. package/hooks/useCarousel/useCarousel.js +61 -1
  280. package/hooks/useClickOutside/useClickOutside.js +15 -1
  281. package/hooks/useKeyControls/useKeyControls.js +19 -1
  282. package/hooks/useMediaQuery/useMediaQuery.js +14 -1
  283. package/hooks/useTheme/useTheme.js +47 -1
  284. package/index.js +351 -1
  285. package/package.json +17 -2
  286. package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
  287. package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
  288. package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
  289. package/stories/components/TokenViewer/index.d.ts +1 -0
  290. package/tokens/accordion.js +72 -1
  291. package/tokens/animations.js +63 -1
  292. package/tokens/avatar.d.ts +22 -15
  293. package/tokens/avatar.js +153 -1
  294. package/tokens/borders.js +17 -1
  295. package/tokens/breadcrumbs.js +37 -1
  296. package/tokens/button.js +146 -1
  297. package/tokens/card.js +187 -1
  298. package/tokens/carousel.js +216 -1
  299. package/tokens/chat.js +118 -1
  300. package/tokens/chatbubble.js +56 -1
  301. package/tokens/colors.js +157 -1
  302. package/tokens/column.js +9 -1
  303. package/tokens/constants.js +4 -1
  304. package/tokens/counter.js +37 -1
  305. package/tokens/cursors.js +20 -1
  306. package/tokens/defaultTheme.d.ts +22 -15
  307. package/tokens/defaultTheme.js +113 -1
  308. package/tokens/display.js +19 -1
  309. package/tokens/draganddrop.js +87 -1
  310. package/tokens/draganddropfiles.js +6 -1
  311. package/tokens/flexContainer.js +13 -1
  312. package/tokens/font.js +52 -1
  313. package/tokens/form.js +6 -1
  314. package/tokens/header.js +123 -1
  315. package/tokens/icon.js +32 -1
  316. package/tokens/image.js +40 -1
  317. package/tokens/index.d.ts +22 -15
  318. package/tokens/index.js +142 -1
  319. package/tokens/inlineNotification.js +75 -1
  320. package/tokens/input.js +192 -1
  321. package/tokens/inputfile.js +12 -1
  322. package/tokens/label.js +9 -1
  323. package/tokens/link.js +66 -1
  324. package/tokens/list.js +87 -1
  325. package/tokens/loader.js +141 -1
  326. package/tokens/menu.js +19 -1
  327. package/tokens/modal.js +108 -1
  328. package/tokens/price.js +32 -1
  329. package/tokens/progressbar.js +60 -1
  330. package/tokens/radiogroup.js +103 -2
  331. package/tokens/radius.js +14 -1
  332. package/tokens/rating.js +73 -1
  333. package/tokens/reset.js +4 -1
  334. package/tokens/row.js +8 -1
  335. package/tokens/scroll.js +99 -1
  336. package/tokens/search.js +45 -1
  337. package/tokens/searchModal.js +159 -1
  338. package/tokens/select.js +99 -1
  339. package/tokens/separator.js +63 -1
  340. package/tokens/shadow.js +24 -1
  341. package/tokens/skeleton.js +77 -1
  342. package/tokens/slider.js +45 -1
  343. package/tokens/snackbar.js +167 -1
  344. package/tokens/spacing.js +13 -1
  345. package/tokens/stepper.js +147 -1
  346. package/tokens/switch.js +76 -1
  347. package/tokens/tabs.js +108 -1
  348. package/tokens/textarea.js +45 -1
  349. package/tokens/toggle.js +19 -1
  350. package/tokens/tooltip.js +69 -1
  351. package/tokens/types/index.types.js +4 -1
  352. package/tokens/typography.js +134 -1
  353. package/tokens/utils.js +85 -1
  354. package/tokens/values.js +73 -1
  355. package/tokens/wrapper.js +34 -1
  356. package/types/accesability.js +4 -1
  357. package/types/button.js +7 -1
  358. package/types/card.js +5 -1
  359. package/types/chat.js +4 -1
  360. package/types/common.js +5 -1
  361. package/types/cursors.js +4 -1
  362. package/types/input.js +6 -1
  363. package/types/label.js +4 -1
  364. package/types/layout.js +4 -1
  365. package/types/link.js +5 -1
  366. package/types/list.js +4 -1
  367. package/types/separator.js +5 -1
  368. package/types/skeleton.js +4 -1
  369. package/types/snackbar.js +5 -1
  370. package/types/stepper.js +5 -1
  371. package/types/typography.js +6 -1
  372. package/types/wrapper.js +4 -1
  373. package/utils/animationFrame.js +17 -1
  374. package/utils/common.js +4 -1
  375. package/utils/date.js +11 -1
  376. package/utils/focus.js +54 -1
  377. package/utils/helpers.js +42 -1
  378. package/utils/layout.js +32 -1
  379. package/utils/math.js +11 -1
  380. package/utils/setInRange.js +11 -1
  381. package/utils/uniqueKeys.js +4 -1
  382. package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
  383. /package/{gd-design-library.css → assets/styles.css} +0 -0
package/tokens/card.js CHANGED
@@ -1 +1,187 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../types/common.js"),a=require("../types/card.js"),i=require("../types/typography.js"),n=require("../types/layout.js"),c=require("./font.js"),t=require("./typography.js"),d=require("./values.js"),l=require("./borders.js"),e=require("./display.js"),r=require("./colors.js"),S=require("./shadow.js"),o=require("./spacing.js"),s={border:l.borders.generic({width:d.values.borderThin,color:r.colors.border.default})},u={"&:not(:focus-visible):hover":{boxShadow:"none",outline:l.borders.generic({width:d.values.borderThin,color:r.colors.primary.default})}},V={boxShadow:S.shadows.card.default},C={default:{display:e.display.flex,"&:focus-visible":{outline:l.borders.generic({width:d.values.borderMedium,color:r.colors.border.focus}),"&:hover":{boxShadow:"none"}}},[a.CardVariant.Vertical]:{default:{flexDirection:n.FlexDirection.Column,"&:hover":{...V}},bordered:{...s},highlighted:{...u}},[a.CardVariant.Horizontal]:{default:{flexDirection:n.FlexDirection.Row,"&:hover":{...V}},bordered:{...s},highlighted:{...u}},title:{default:{margin:o.spacing.none,padding:o.spacing.none},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}}},description:{default:{margin:o.spacing.none,padding:o.spacing.none},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}}},rating:{default:{display:e.display.flex,alignItems:e.flexAlignItems.start,gap:o.spacing[p.SizeVariant.Sm]},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{color:r.colors.text.caption,...t.typography[i.TypographyVariant.Caption]},[a.CardSizeVariant.Sm]:{color:r.colors.text.caption,flexDirection:n.FlexDirection.Column,...t.typography[i.TypographyVariant.Caption]}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{color:r.colors.text.caption,...t.typography[i.TypographyVariant.Caption]},[a.CardSizeVariant.Sm]:{color:r.colors.text.caption,flexDirection:n.FlexDirection.Column,...t.typography[i.TypographyVariant.Caption]}}},button:{default:{display:e.display.flex},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}}},image:{default:{},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}}},counter:{default:{},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{}}},price:{default:{display:e.display.flex},[a.CardVariant.Vertical]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{"& > div > *":{...t.typography[i.TypographyVariant.H6],fontWeight:c.font.weight.medium}}},[a.CardVariant.Horizontal]:{[a.CardSizeVariant.Default]:{},[a.CardSizeVariant.Sm]:{"& > div > *":{...t.typography[i.TypographyVariant.H6],fontWeight:c.font.weight.medium}}}}};exports.card=C;
1
+ import { font as m } from "./font.js";
2
+ import { typography as r } from "./typography.js";
3
+ import { values as d } from "./values.js";
4
+ import { borders as f } from "./borders.js";
5
+ import { display as l, flexAlignItems as h } from "./display.js";
6
+ import { colors as e } from "./colors.js";
7
+ import { shadows as s } from "./shadow.js";
8
+ import { spacing as a } from "./spacing.js";
9
+ import { CardVariant as t, CardSizeVariant as o } from "../types/card.js";
10
+ import { FlexDirection as n } from "../types/layout.js";
11
+ import { TypographyVariant as i } from "../types/typography.js";
12
+ import { SizeVariant as g } from "../types/common.js";
13
+ const c = {
14
+ border: f.generic({
15
+ width: d.borderThin,
16
+ color: e.border.default
17
+ })
18
+ }, u = {
19
+ "&:not(:focus-visible):hover": {
20
+ boxShadow: "none",
21
+ outline: f.generic({
22
+ width: d.borderThin,
23
+ color: e.primary.default
24
+ })
25
+ }
26
+ }, p = {
27
+ boxShadow: s.card.default
28
+ }, I = {
29
+ default: {
30
+ display: l.flex,
31
+ "&:focus-visible": {
32
+ outline: f.generic({
33
+ width: d.borderMedium,
34
+ color: e.border.focus
35
+ }),
36
+ "&:hover": {
37
+ boxShadow: "none"
38
+ }
39
+ }
40
+ },
41
+ [t.Vertical]: {
42
+ default: {
43
+ flexDirection: n.Column,
44
+ "&:hover": {
45
+ ...p
46
+ }
47
+ },
48
+ bordered: {
49
+ ...c
50
+ },
51
+ highlighted: {
52
+ ...u
53
+ }
54
+ },
55
+ [t.Horizontal]: {
56
+ default: {
57
+ flexDirection: n.Row,
58
+ "&:hover": {
59
+ ...p
60
+ }
61
+ },
62
+ bordered: {
63
+ ...c
64
+ },
65
+ highlighted: {
66
+ ...u
67
+ }
68
+ },
69
+ title: {
70
+ default: {
71
+ margin: a.none,
72
+ padding: a.none
73
+ },
74
+ [t.Vertical]: {
75
+ [o.Default]: {},
76
+ [o.Sm]: {}
77
+ },
78
+ [t.Horizontal]: {
79
+ [o.Default]: {},
80
+ [o.Sm]: {}
81
+ }
82
+ },
83
+ description: {
84
+ default: {
85
+ margin: a.none,
86
+ padding: a.none
87
+ },
88
+ [t.Vertical]: {
89
+ [o.Default]: {},
90
+ [o.Sm]: {}
91
+ },
92
+ [t.Horizontal]: {
93
+ [o.Default]: {},
94
+ [o.Sm]: {}
95
+ }
96
+ },
97
+ rating: {
98
+ default: {
99
+ display: l.flex,
100
+ alignItems: h.start,
101
+ gap: a[g.Sm]
102
+ },
103
+ [t.Vertical]: {
104
+ [o.Default]: {
105
+ color: e.text.caption,
106
+ ...r[i.Caption]
107
+ },
108
+ [o.Sm]: {
109
+ color: e.text.caption,
110
+ flexDirection: n.Column,
111
+ ...r[i.Caption]
112
+ }
113
+ },
114
+ [t.Horizontal]: {
115
+ [o.Default]: {
116
+ color: e.text.caption,
117
+ ...r[i.Caption]
118
+ },
119
+ [o.Sm]: {
120
+ color: e.text.caption,
121
+ flexDirection: n.Column,
122
+ ...r[i.Caption]
123
+ }
124
+ }
125
+ },
126
+ button: {
127
+ default: {
128
+ display: l.flex
129
+ },
130
+ [t.Vertical]: {
131
+ [o.Default]: {},
132
+ [o.Sm]: {}
133
+ },
134
+ [t.Horizontal]: {
135
+ [o.Default]: {},
136
+ [o.Sm]: {}
137
+ }
138
+ },
139
+ image: {
140
+ default: {},
141
+ [t.Vertical]: {
142
+ [o.Default]: {},
143
+ [o.Sm]: {}
144
+ },
145
+ [t.Horizontal]: {
146
+ [o.Default]: {},
147
+ [o.Sm]: {}
148
+ }
149
+ },
150
+ counter: {
151
+ default: {},
152
+ [t.Vertical]: {
153
+ [o.Default]: {},
154
+ [o.Sm]: {}
155
+ },
156
+ [t.Horizontal]: {
157
+ [o.Default]: {},
158
+ [o.Sm]: {}
159
+ }
160
+ },
161
+ price: {
162
+ default: {
163
+ display: l.flex
164
+ },
165
+ [t.Vertical]: {
166
+ [o.Default]: {},
167
+ [o.Sm]: {
168
+ "& > div > *": {
169
+ ...r[i.H6],
170
+ fontWeight: m.weight.medium
171
+ }
172
+ }
173
+ },
174
+ [t.Horizontal]: {
175
+ [o.Default]: {},
176
+ [o.Sm]: {
177
+ "& > div > *": {
178
+ ...r[i.H6],
179
+ fontWeight: m.weight.medium
180
+ }
181
+ }
182
+ }
183
+ }
184
+ };
185
+ export {
186
+ I as card
187
+ };
@@ -1 +1,216 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../constants/positioning.js"),n=require("../types/common.js"),l=require("../types/layout.js");require("react");const i=require("../utils/layout.js"),e=require("./display.js"),r=require("./cursors.js"),a=require("./colors.js"),t=require("./spacing.js"),s={default:{},container:{default:{position:"relative",overflow:"hidden",width:"100%",display:e.display.flex,zIndex:o.Z_INDEX.FIRST,gap:"1rem"},variant:{cards:{gap:"1rem"},single:{".embla__slide":{padding:0}}},layout:{horizontal:{flexDirection:"column"},vertical:{flexDirection:"row",height:"100%"}}},contentContainer:{flexDirection:"column",height:"100%",width:"100%",position:"absolute",justifyContent:i.calculateJustify("center"),alignItems:e.flexAlignItems.center,zIndex:"100"},carouselViewport:{overflow:"hidden"},carouselViewportSlideWrapper:{display:e.display.flex},carouselSlide:{flex:`${t.spacing.none} ${t.spacing.none} auto`,width:"100%",padding:t.spacing.none,"& img":{width:"100%",height:"auto",objectFit:"cover",borderRadius:t.spacing.none}},footer:{display:e.display.flex,justifyContent:i.calculateJustify("between"),alignItems:e.flexAlignItems.center},footerControls:{display:e.display.flex},contentSlide:{display:e.display.block,paddingLeft:t.spacing.sm,"&:first-child":{paddingLeft:t.spacing.none}},carouselControlsWrapper:{position:"relative"},carouselControls:{display:e.display.flex,justifyContent:i.calculateJustify("between"),alignItems:e.flexAlignItems.center,position:"absolute",top:"50%",left:t.spacing.none,transform:"translateY(-50%)",width:"100%",padding:"0.5rem 1rem",zIndex:o.Z_INDEX.HIGH},carouselArrowButton:{background:"none",border:"none",fontSize:"1.5rem",cursor:"pointer",padding:"0.25rem 0.5rem",display:e.display.flex,alignItems:e.flexAlignItems.center,justifyContent:i.calculateJustify("center"),transition:"opacity 0.3s ease","&:disabled":{opacity:"0.3",cursor:"not-allowed"}},carouselDots:{display:e.display.flex,justifyContent:i.calculateJustify("center"),gap:"0.5rem",marginTop:"1rem"},carouselDot:{default:{width:"8px",height:"8px",border:"none",cursor:r.cursors.pointer,transition:"width 0.3s ease"},active:{backgroundColor:a.colors.bg.fill.primary.default,width:"32px","&:hover":{}},nonActive:{backgroundColor:a.colors.bg.fill.disabled,"&:hover":{}}},carouselThumbs:{default:{display:e.display.flex,justifyContent:i.calculateJustify("center"),gap:"0.5rem"},vertical:{flexDirection:l.FlexDirection.Column,flex:"0 0 50px",overflowX:"hidden",alignItems:e.flexAlignItems.center},horizontal:{overflowX:"auto"}},carouselThumbsViewport:{default:{overflow:"hidden"},vertical:{maxHeight:"300px"},horizontal:{width:"200px"}},carouselThumbsWrapper:{default:{},vertical:{display:e.display.block,height:"100%"},horizontal:{display:e.display.flex}},carouselThumb:{default:{minWidth:"40px",minHeight:"40px",border:"none",padding:t.spacing.none,background:"none",cursor:r.cursors.pointer,opacity:.4,transition:"opacity 0.3s ease-in-out","&:hover":{opacity:1}},active:{opacity:1},vertical:{height:"40px"},horizontal:{marginLeft:"5px"}},controlsButton:{width:t.spacing[n.SizeVariant.Xl],height:t.spacing[n.SizeVariant.Xl],"& svg":{}},icons:{base:{width:9,height:9},controlLeft:{name:"arrowLeft"},controlRight:{name:"arrowRight"}}};exports.carousel=s;
1
+ import { display as e, flexAlignItems as i } from "./display.js";
2
+ import { cursors as r } from "./cursors.js";
3
+ import { colors as n } from "./colors.js";
4
+ import { spacing as o } from "./spacing.js";
5
+ import { FlexDirection as s } from "../types/layout.js";
6
+ import { calculateJustify as t } from "../utils/layout.js";
7
+ import { Z_INDEX as a } from "../constants/positioning.js";
8
+ import { SizeVariant as l } from "../types/common.js";
9
+ const x = {
10
+ default: {},
11
+ container: {
12
+ default: {
13
+ position: "relative",
14
+ overflow: "hidden",
15
+ width: "100%",
16
+ display: e.flex,
17
+ zIndex: a.FIRST,
18
+ gap: "1rem"
19
+ },
20
+ variant: {
21
+ cards: {
22
+ gap: "1rem"
23
+ },
24
+ single: {
25
+ ".embla__slide": {
26
+ padding: 0
27
+ }
28
+ }
29
+ },
30
+ layout: {
31
+ horizontal: {
32
+ flexDirection: "column"
33
+ },
34
+ vertical: {
35
+ flexDirection: "row",
36
+ height: "100%"
37
+ }
38
+ }
39
+ },
40
+ contentContainer: {
41
+ flexDirection: "column",
42
+ height: "100%",
43
+ width: "100%",
44
+ position: "absolute",
45
+ justifyContent: t("center"),
46
+ alignItems: i.center,
47
+ zIndex: "100"
48
+ },
49
+ carouselViewport: {
50
+ overflow: "hidden"
51
+ },
52
+ carouselViewportSlideWrapper: {
53
+ display: e.flex
54
+ },
55
+ carouselSlide: {
56
+ flex: `${o.none} ${o.none} auto`,
57
+ width: "100%",
58
+ padding: o.none,
59
+ "& img": {
60
+ width: "100%",
61
+ height: "auto",
62
+ objectFit: "cover",
63
+ borderRadius: o.none
64
+ }
65
+ },
66
+ footer: {
67
+ display: e.flex,
68
+ justifyContent: t("between"),
69
+ alignItems: i.center
70
+ },
71
+ footerControls: {
72
+ display: e.flex
73
+ },
74
+ contentSlide: {
75
+ display: e.block,
76
+ paddingLeft: o.sm,
77
+ "&:first-child": {
78
+ paddingLeft: o.none
79
+ }
80
+ },
81
+ carouselControlsWrapper: {
82
+ position: "relative"
83
+ },
84
+ carouselControls: {
85
+ display: e.flex,
86
+ justifyContent: t("between"),
87
+ alignItems: i.center,
88
+ position: "absolute",
89
+ top: "50%",
90
+ left: o.none,
91
+ transform: "translateY(-50%)",
92
+ width: "100%",
93
+ padding: "0.5rem 1rem",
94
+ zIndex: a.HIGH
95
+ },
96
+ carouselArrowButton: {
97
+ background: "none",
98
+ border: "none",
99
+ fontSize: "1.5rem",
100
+ cursor: "pointer",
101
+ padding: "0.25rem 0.5rem",
102
+ display: e.flex,
103
+ alignItems: i.center,
104
+ justifyContent: t("center"),
105
+ transition: "opacity 0.3s ease",
106
+ "&:disabled": {
107
+ opacity: "0.3",
108
+ cursor: "not-allowed"
109
+ }
110
+ },
111
+ carouselDots: {
112
+ display: e.flex,
113
+ justifyContent: t("center"),
114
+ gap: "0.5rem",
115
+ marginTop: "1rem"
116
+ },
117
+ carouselDot: {
118
+ default: {
119
+ width: "8px",
120
+ height: "8px",
121
+ border: "none",
122
+ cursor: r.pointer,
123
+ transition: "width 0.3s ease"
124
+ },
125
+ active: {
126
+ backgroundColor: n.bg.fill.primary.default,
127
+ width: "32px",
128
+ "&:hover": {}
129
+ },
130
+ nonActive: {
131
+ backgroundColor: n.bg.fill.disabled,
132
+ "&:hover": {}
133
+ }
134
+ },
135
+ carouselThumbs: {
136
+ default: {
137
+ display: e.flex,
138
+ justifyContent: t("center"),
139
+ gap: "0.5rem"
140
+ },
141
+ vertical: {
142
+ flexDirection: s.Column,
143
+ flex: "0 0 50px",
144
+ overflowX: "hidden",
145
+ alignItems: i.center
146
+ },
147
+ horizontal: {
148
+ overflowX: "auto"
149
+ }
150
+ },
151
+ carouselThumbsViewport: {
152
+ default: {
153
+ overflow: "hidden"
154
+ },
155
+ vertical: {
156
+ maxHeight: "300px"
157
+ },
158
+ horizontal: {
159
+ width: "200px"
160
+ }
161
+ },
162
+ carouselThumbsWrapper: {
163
+ default: {},
164
+ vertical: {
165
+ display: e.block,
166
+ height: "100%"
167
+ },
168
+ horizontal: {
169
+ display: e.flex
170
+ }
171
+ },
172
+ carouselThumb: {
173
+ default: {
174
+ minWidth: "40px",
175
+ minHeight: "40px",
176
+ border: "none",
177
+ padding: o.none,
178
+ background: "none",
179
+ cursor: r.pointer,
180
+ opacity: 0.4,
181
+ transition: "opacity 0.3s ease-in-out",
182
+ "&:hover": {
183
+ opacity: 1
184
+ }
185
+ },
186
+ active: {
187
+ opacity: 1
188
+ },
189
+ vertical: {
190
+ height: "40px"
191
+ },
192
+ horizontal: {
193
+ marginLeft: "5px"
194
+ }
195
+ },
196
+ controlsButton: {
197
+ width: o[l.Xl],
198
+ height: o[l.Xl],
199
+ "& svg": {}
200
+ },
201
+ icons: {
202
+ base: {
203
+ width: 9,
204
+ height: 9
205
+ },
206
+ controlLeft: {
207
+ name: "arrowLeft"
208
+ },
209
+ controlRight: {
210
+ name: "arrowRight"
211
+ }
212
+ }
213
+ };
214
+ export {
215
+ x as carousel
216
+ };
package/tokens/chat.js CHANGED
@@ -1 +1,118 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../types/chat.js"),i=require("./utils.js"),e=require("./colors.js"),o=require("./display.js"),d=require("./spacing.js"),a={minHeight:"56px",height:"56px",display:o.display.flex,overflow:"hidden",alignItems:o.flexAlignItems.center,padding:"0 24px",borderBottom:"1px solid",borderColor:e.colors.neutral["grey.30"]},r={position:"absolute",display:o.display.block,flexDirection:"column",left:0,top:0,right:0,bottom:0,backgroundColor:i.hexToRgba(e.colors.neutral.black,.1)},n={wrapper:{default:{display:o.display.flex,position:"relative",minHeight:"500px",height:"100%",width:"100%",overflow:"hidden"}},content:{default:{boxSizing:"border-box",position:"relative",width:"100%",height:"100%",display:o.display.flex,flexDirection:"column",justifyContent:"flex-end",paddingBottom:i.getSpacing(8),gap:i.getSpacing(4),"@media (max-width: 768px)":{paddingLeft:"24px",paddingRight:"24px"},"@media (min-width: 768px) and (max-width: 1280px)":{paddingLeft:"80px",paddingRight:"80px"},"@media (min-width: 1280px)":{paddingLeft:"260px",paddingRight:"260px"}}},mainHeader:{...a},body:{display:o.display.flex,flex:1,flexDirection:"column"},sidebar:{minWidth:"250px",maxWidth:"250px",overflow:"hidden",borderRight:"1px solid",backgroundColor:e.colors.neutral.white,borderColor:e.colors.neutral["grey.30"],flex:"0 0 250px",display:o.display.flex,flexDirection:"column",minHeight:"100%"},sidebarWrapper:{default:{},[t.ChatLayoutVariant.Auto]:{"@media (max-width: 768px)":{...r}},[t.ChatLayoutVariant.Desktop]:{},[t.ChatLayoutVariant.Drawer]:{...r}},sidebarHeader:{...a},toggleButton:{default:{height:"24px",backgroundColor:e.colors.transparent,padding:d.spacing.none,transform:"rotate(270deg)","&:hover":{backgroundColor:e.colors.transparent}},open:{transform:"rotate(90deg)"}},toggleIcon:{name:"arrowDown",fill:e.colors.neutral["grey.90"],width:24,height:24}};exports.chat=n;
1
+ import { hexToRgba as d, getSpacing as i } from "./utils.js";
2
+ import { colors as e } from "./colors.js";
3
+ import { flexAlignItems as n, display as o } from "./display.js";
4
+ import { spacing as l } from "./spacing.js";
5
+ import { ChatLayoutVariant as t } from "../types/chat.js";
6
+ const r = {
7
+ minHeight: "56px",
8
+ height: "56px",
9
+ display: o.flex,
10
+ overflow: "hidden",
11
+ alignItems: n.center,
12
+ padding: "0 24px",
13
+ borderBottom: "1px solid",
14
+ borderColor: e.neutral["grey.30"]
15
+ }, a = {
16
+ position: "absolute",
17
+ display: o.block,
18
+ flexDirection: "column",
19
+ left: 0,
20
+ top: 0,
21
+ right: 0,
22
+ bottom: 0,
23
+ backgroundColor: d(e.neutral.black, 0.1)
24
+ }, f = {
25
+ wrapper: {
26
+ default: {
27
+ display: o.flex,
28
+ position: "relative",
29
+ minHeight: "500px",
30
+ height: "100%",
31
+ width: "100%",
32
+ overflow: "hidden"
33
+ }
34
+ },
35
+ content: {
36
+ default: {
37
+ boxSizing: "border-box",
38
+ position: "relative",
39
+ width: "100%",
40
+ height: "100%",
41
+ display: o.flex,
42
+ flexDirection: "column",
43
+ justifyContent: "flex-end",
44
+ paddingBottom: i(8),
45
+ gap: i(4),
46
+ "@media (max-width: 768px)": {
47
+ paddingLeft: "24px",
48
+ paddingRight: "24px"
49
+ },
50
+ "@media (min-width: 768px) and (max-width: 1280px)": {
51
+ paddingLeft: "80px",
52
+ paddingRight: "80px"
53
+ },
54
+ "@media (min-width: 1280px)": {
55
+ paddingLeft: "260px",
56
+ paddingRight: "260px"
57
+ }
58
+ }
59
+ },
60
+ mainHeader: {
61
+ ...r
62
+ },
63
+ body: {
64
+ display: o.flex,
65
+ flex: 1,
66
+ flexDirection: "column"
67
+ },
68
+ sidebar: {
69
+ minWidth: "250px",
70
+ maxWidth: "250px",
71
+ overflow: "hidden",
72
+ borderRight: "1px solid",
73
+ backgroundColor: e.neutral.white,
74
+ borderColor: e.neutral["grey.30"],
75
+ flex: "0 0 250px",
76
+ display: o.flex,
77
+ flexDirection: "column",
78
+ minHeight: "100%"
79
+ },
80
+ sidebarWrapper: {
81
+ default: {},
82
+ [t.Auto]: {
83
+ "@media (max-width: 768px)": {
84
+ ...a
85
+ }
86
+ },
87
+ [t.Desktop]: {},
88
+ [t.Drawer]: {
89
+ ...a
90
+ }
91
+ },
92
+ sidebarHeader: {
93
+ ...r
94
+ },
95
+ toggleButton: {
96
+ default: {
97
+ height: "24px",
98
+ backgroundColor: e.transparent,
99
+ padding: l.none,
100
+ transform: "rotate(270deg)",
101
+ "&:hover": {
102
+ backgroundColor: e.transparent
103
+ }
104
+ },
105
+ open: {
106
+ transform: "rotate(90deg)"
107
+ }
108
+ },
109
+ toggleIcon: {
110
+ name: "arrowDown",
111
+ fill: e.neutral["grey.90"],
112
+ width: 24,
113
+ height: 24
114
+ }
115
+ };
116
+ export {
117
+ f as chat
118
+ };
@@ -1 +1,56 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../types/typography.js"),i=require("../types/layout.js"),e=require("./utils.js"),t=require("./display.js"),a=require("./colors.js"),r=require("./typography.js"),n={default:{display:t.display.flex,flexDirection:i.FlexDirection.Column,gap:e.getSpacing(2),clear:"both",margin:`${e.getSpacing(2)} 0`,...r.typography[l.TypographyVariant.Body2]},question:{padding:`${e.getSpacing(2)} ${e.getSpacing(4)}`,textAlign:"right",float:"right",backgroundColor:a.colors.bg.default,minWidth:"320px",maxWidth:"566px"},answer:{padding:e.getSpacing(4)},pending:{},fulfilled:{},rejected:{},content:{default:{gap:e.getSpacing(2),display:t.display.flex,flexDirection:i.FlexDirection.Column},pending:{alignItems:t.flexAlignItems.start},fulfilled:{},rejected:{}},actions:{display:t.display.flex,flexDirection:i.FlexDirection.Row},loader:{props:{name:"dots",size:"xs",withWrapper:!1}}};exports.chatbubble=n;
1
+ import { getSpacing as e } from "./utils.js";
2
+ import { display as i, flexAlignItems as o } from "./display.js";
3
+ import { colors as r } from "./colors.js";
4
+ import { typography as l } from "./typography.js";
5
+ import { FlexDirection as t } from "../types/layout.js";
6
+ import { TypographyVariant as a } from "../types/typography.js";
7
+ const s = {
8
+ default: {
9
+ display: i.flex,
10
+ flexDirection: t.Column,
11
+ gap: e(2),
12
+ clear: "both",
13
+ margin: `${e(2)} 0`,
14
+ ...l[a.Body2]
15
+ },
16
+ question: {
17
+ padding: `${e(2)} ${e(4)}`,
18
+ textAlign: "right",
19
+ float: "right",
20
+ backgroundColor: r.bg.default,
21
+ minWidth: "320px",
22
+ maxWidth: "566px"
23
+ },
24
+ answer: {
25
+ padding: e(4)
26
+ },
27
+ pending: {},
28
+ fulfilled: {},
29
+ rejected: {},
30
+ content: {
31
+ default: {
32
+ gap: e(2),
33
+ display: i.flex,
34
+ flexDirection: t.Column
35
+ },
36
+ pending: {
37
+ alignItems: o.start
38
+ },
39
+ fulfilled: {},
40
+ rejected: {}
41
+ },
42
+ actions: {
43
+ display: i.flex,
44
+ flexDirection: t.Row
45
+ },
46
+ loader: {
47
+ props: {
48
+ name: "dots",
49
+ size: "xs",
50
+ withWrapper: !1
51
+ }
52
+ }
53
+ };
54
+ export {
55
+ s as chatbubble
56
+ };