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
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../constants/positioning.js"),i={default:{},input:{opacity:0,position:"absolute",zIndex:t.Z_INDEX.NEGATIVE}};exports.inputfile=i;
1
+ import { Z_INDEX as t } from "../constants/positioning.js";
2
+ const i = {
3
+ default: {},
4
+ input: {
5
+ opacity: 0,
6
+ position: "absolute",
7
+ zIndex: t.NEGATIVE
8
+ }
9
+ };
10
+ export {
11
+ i as inputfile
12
+ };
package/tokens/label.js CHANGED
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cursors.js"),r={default:{cursor:e.cursors.pointer}};exports.label=r;
1
+ import { cursors as r } from "./cursors.js";
2
+ const t = {
3
+ default: {
4
+ cursor: r.pointer
5
+ }
6
+ };
7
+ export {
8
+ t as label
9
+ };
package/tokens/link.js CHANGED
@@ -1 +1,66 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../utils/helpers.js");require("react");const t=require("./spacing.js"),u=require("./font.js"),r=require("./colors.js"),i=require("./borders.js"),d=require("../types/cursors.js"),o=require("../types/link.js"),a=require("./values.js"),n=(l=e.get(r.colors,"text.default"),s="transparent",c=e.get(r.colors,"text.default"))=>({"&::after":{content:'""',position:"absolute",right:t.spacing.none,bottom:t.spacing.none,left:t.spacing.none,borderBottom:`1px solid ${l}`},"&:hover":{backgroundColor:s,"&::after":{borderBottomColor:c}}}),f={default:{fontFamily:u.font.family,fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",color:r.colors.text.default,position:"relative","&:visited":{color:r.colors.text.caption,"&::after":{borderBottom:i.borders.generic({width:a.values.borderThin,color:e.get(r.colors,"bg.fill.primary.default")})}},"&:focus, &:active, &:focus-visible":{outline:i.borders.generic({width:a.values.borderThin,color:e.get(r.colors,"border.info")})},"&.Link--disabled":{color:r.colors.text.disabled,cursor:d.Cursors.Default,textDecoration:"none",backgroundColor:"transparent","&::after":{borderBottomColor:"transparent"}}},[o.LinkVariant.Primary]:n(),[o.LinkVariant.Secondary]:n(e.get(r.colors,"text.default"),e.get(r.colors,"bg.fill.primary.default"),"transparent"),[o.LinkVariant.Inverted]:n("transparent","transparent",e.get(r.colors,"text.default")),[o.LinkVariant.Inherit]:{color:"inherit"}};exports.link=f;
1
+ import { spacing as e } from "./spacing.js";
2
+ import { font as m } from "./font.js";
3
+ import { colors as t } from "./colors.js";
4
+ import { borders as n } from "./borders.js";
5
+ import { values as a } from "./values.js";
6
+ import { Cursors as s } from "../types/cursors.js";
7
+ import { LinkVariant as r } from "../types/link.js";
8
+ import { get as o } from "../utils/helpers.js";
9
+ const i = (l = o(t, "text.default"), f = "transparent", d = o(t, "text.default")) => ({
10
+ "&::after": {
11
+ content: '""',
12
+ position: "absolute",
13
+ right: e.none,
14
+ bottom: e.none,
15
+ left: e.none,
16
+ borderBottom: `1px solid ${l}`
17
+ },
18
+ "&:hover": {
19
+ backgroundColor: f,
20
+ "&::after": {
21
+ borderBottomColor: d
22
+ }
23
+ }
24
+ }), y = {
25
+ default: {
26
+ fontFamily: m.family,
27
+ fontSize: "inherit",
28
+ fontWeight: "inherit",
29
+ lineHeight: "inherit",
30
+ color: t.text.default,
31
+ position: "relative",
32
+ "&:visited": {
33
+ color: t.text.caption,
34
+ "&::after": {
35
+ borderBottom: n.generic({
36
+ width: a.borderThin,
37
+ color: o(t, "bg.fill.primary.default")
38
+ })
39
+ }
40
+ },
41
+ "&:focus, &:active, &:focus-visible": {
42
+ outline: n.generic({
43
+ width: a.borderThin,
44
+ color: o(t, "border.info")
45
+ })
46
+ },
47
+ "&.Link--disabled": {
48
+ color: t.text.disabled,
49
+ cursor: s.Default,
50
+ textDecoration: "none",
51
+ backgroundColor: "transparent",
52
+ "&::after": {
53
+ borderBottomColor: "transparent"
54
+ }
55
+ }
56
+ },
57
+ [r.Primary]: i(),
58
+ [r.Secondary]: i(o(t, "text.default"), o(t, "bg.fill.primary.default"), "transparent"),
59
+ [r.Inverted]: i("transparent", "transparent", o(t, "text.default")),
60
+ [r.Inherit]: {
61
+ color: "inherit"
62
+ }
63
+ };
64
+ export {
65
+ y as link
66
+ };
package/tokens/list.js CHANGED
@@ -1 +1,87 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../types/common.js"),s=require("../types/typography.js"),t=require("../types/list.js"),c=require("./radius.js"),e=require("./spacing.js"),r=require("./colors.js"),n=require("./font.js"),a={content:"counter(list-counter)",counterIncrement:"list-counter",background:r.colors.primary.default,fontFamily:n.font.family,fontSize:n.font.size[s.TypographyVariant.Body2],fontWeight:n.font.weight.medium,width:e.spacing[i.SizeVariant.Lg],height:e.spacing[i.SizeVariant.Lg],color:r.colors.text.default,display:"flex",alignItems:"center",justifyContent:"center",marginRight:e.spacing[i.SizeVariant.Sm]},o={counterReset:"list-counter",paddingLeft:e.spacing.none,"& .List__bulletPoint":{marginRight:e.spacing[i.SizeVariant.Sm],color:r.colors.primary.default}},l={wrapper:{default:{listStyle:"none",padding:e.spacing.none,margin:e.spacing.none},[t.ListVariant.OrderedCircle]:{counterReset:"list-counter",paddingLeft:e.spacing.none},[t.ListVariant.OrderedSquare]:{counterReset:"list-counter",paddingLeft:e.spacing.none}},item:{default:{display:"flex",alignItems:"center",flexDirection:"row",margin:`${e.spacing[i.SizeVariant.Sm]} 0`,"&:first-child":{margin:`0 0 ${e.spacing[i.SizeVariant.Sm]}`}},[t.ListVariant.OrderedCircle]:{"&::before":{borderRadius:c.radius.round,...a}},[t.ListVariant.OrderedSquare]:{"&::before":{...a}},[t.ListVariant.UnorderedCheck]:{...o},[t.ListVariant.UnorderedDot]:{...o}},icons:{bulletDot:{name:"dot",width:6,height:6},bulletCheck:{name:"check"}}};exports.list=l;
1
+ import { radius as d } from "./radius.js";
2
+ import { spacing as e } from "./spacing.js";
3
+ import { colors as o } from "./colors.js";
4
+ import { font as n } from "./font.js";
5
+ import { ListVariant as t } from "../types/list.js";
6
+ import { SizeVariant as r } from "../types/common.js";
7
+ import { TypographyVariant as m } from "../types/typography.js";
8
+ const i = {
9
+ content: "counter(list-counter)",
10
+ counterIncrement: "list-counter",
11
+ background: o.primary.default,
12
+ fontFamily: n.family,
13
+ fontSize: n.size[m.Body2],
14
+ fontWeight: n.weight.medium,
15
+ width: e[r.Lg],
16
+ height: e[r.Lg],
17
+ color: o.text.default,
18
+ display: "flex",
19
+ alignItems: "center",
20
+ justifyContent: "center",
21
+ marginRight: e[r.Sm]
22
+ }, a = {
23
+ counterReset: "list-counter",
24
+ paddingLeft: e.none,
25
+ "& .List__bulletPoint": {
26
+ marginRight: e[r.Sm],
27
+ color: o.primary.default
28
+ }
29
+ }, h = {
30
+ wrapper: {
31
+ default: {
32
+ listStyle: "none",
33
+ padding: e.none,
34
+ margin: e.none
35
+ },
36
+ [t.OrderedCircle]: {
37
+ counterReset: "list-counter",
38
+ paddingLeft: e.none
39
+ },
40
+ [t.OrderedSquare]: {
41
+ counterReset: "list-counter",
42
+ paddingLeft: e.none
43
+ }
44
+ },
45
+ item: {
46
+ default: {
47
+ display: "flex",
48
+ alignItems: "center",
49
+ flexDirection: "row",
50
+ margin: `${e[r.Sm]} 0`,
51
+ "&:first-child": {
52
+ // reset first item top margin to align with other blocks by start
53
+ margin: `0 0 ${e[r.Sm]}`
54
+ }
55
+ },
56
+ [t.OrderedCircle]: {
57
+ "&::before": {
58
+ borderRadius: d.round,
59
+ ...i
60
+ }
61
+ },
62
+ [t.OrderedSquare]: {
63
+ "&::before": {
64
+ ...i
65
+ }
66
+ },
67
+ [t.UnorderedCheck]: {
68
+ ...a
69
+ },
70
+ [t.UnorderedDot]: {
71
+ ...a
72
+ }
73
+ },
74
+ icons: {
75
+ bulletDot: {
76
+ name: "dot",
77
+ width: 6,
78
+ height: 6
79
+ },
80
+ bulletCheck: {
81
+ name: "check"
82
+ }
83
+ }
84
+ };
85
+ export {
86
+ h as list
87
+ };
package/tokens/loader.js CHANGED
@@ -1 +1,141 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../types/common.js"),e=require("./utils.js"),a=require("./display.js"),n=require("./radius.js"),t=require("./colors.js"),o={default:{},inline:{},section:{},fullPage:{},circle:{default:{border:`3px solid ${t.colors.transparent}`,borderTop:`3px solid ${t.colors.bg.fill.primary.default}`,borderRadius:n.radius.round},[i.SizeVariant.Xs]:{borderWidth:"1px",width:"16px",height:"16px",minWidth:"16px",minHeight:"16px"},[i.SizeVariant.Sm]:{borderWidth:"2px",width:"24px",height:"24px",maxWidth:"24px",maxHeight:"24px"},[i.SizeVariant.Md]:{borderWidth:"3px",width:"32px",height:"32px",maxWidth:"32px",maxHeight:"32px"},[i.SizeVariant.Lg]:{borderWidth:"4px",width:"48px",height:"48px",maxWidth:"48px",maxHeight:"48px"},[i.SizeVariant.Xl]:{borderWidth:"5px",width:"54px",height:"54px",maxWidth:"54px",maxHeight:"54px"}},dots:{default:{display:a.display.flex,justifyContent:a.flexAlignItems.center,alignItems:a.flexAlignItems.center},[i.SizeVariant.Xs]:{gap:e.getSpacing(1),".dot":{background:t.colors.bg.fill.primary.default,width:"8px",height:"8px","&:nth-of-type(1)":{animationDelay:"-0.32s"},"&:nth-of-type(2)":{animationDelay:"-0.16s"}}},[i.SizeVariant.Sm]:{gap:e.getSpacing(2),".dot":{background:t.colors.bg.fill.primary.default,width:"12px",height:"12px","&:nth-of-type(1)":{animationDelay:"-0.32s"},"&:nth-of-type(2)":{animationDelay:"-0.16s"}}},[i.SizeVariant.Md]:{gap:e.getSpacing(2),".dot":{background:t.colors.bg.fill.primary.default,width:"16px",height:"16px","&:nth-of-type(1)":{animationDelay:"-0.32s"},"&:nth-of-type(2)":{animationDelay:"-0.16s"}}},[i.SizeVariant.Lg]:{gap:e.getSpacing(2),".dot":{background:t.colors.bg.fill.primary.default,width:"24px",height:"24px","&:nth-of-type(1)":{animationDelay:"-0.32s"},"&:nth-of-type(2)":{animationDelay:"-0.16s"}}},[i.SizeVariant.Xl]:{gap:e.getSpacing(2),".dot":{background:t.colors.bg.fill.primary.default,width:"32px",height:"32px","&:nth-of-type(1)":{animationDelay:"-0.32s"},"&:nth-of-type(2)":{animationDelay:"-0.16s"}}}},animation:{circle:{name:"spinKeyframes"},dots:{name:"bounceKeyframes"}}};exports.loader=o;
1
+ import { getSpacing as a } from "./utils.js";
2
+ import { flexAlignItems as e, display as p } from "./display.js";
3
+ import { radius as o } from "./radius.js";
4
+ import { colors as i } from "./colors.js";
5
+ import { SizeVariant as t } from "../types/common.js";
6
+ const x = {
7
+ default: {},
8
+ inline: {},
9
+ section: {},
10
+ fullPage: {},
11
+ circle: {
12
+ default: {
13
+ border: `3px solid ${i.transparent}`,
14
+ borderTop: `3px solid ${i.bg.fill.primary.default}`,
15
+ borderRadius: o.round
16
+ },
17
+ [t.Xs]: {
18
+ borderWidth: "1px",
19
+ width: "16px",
20
+ height: "16px",
21
+ minWidth: "16px",
22
+ minHeight: "16px"
23
+ },
24
+ [t.Sm]: {
25
+ borderWidth: "2px",
26
+ width: "24px",
27
+ height: "24px",
28
+ maxWidth: "24px",
29
+ maxHeight: "24px"
30
+ },
31
+ [t.Md]: {
32
+ borderWidth: "3px",
33
+ width: "32px",
34
+ height: "32px",
35
+ maxWidth: "32px",
36
+ maxHeight: "32px"
37
+ },
38
+ [t.Lg]: {
39
+ borderWidth: "4px",
40
+ width: "48px",
41
+ height: "48px",
42
+ maxWidth: "48px",
43
+ maxHeight: "48px"
44
+ },
45
+ [t.Xl]: {
46
+ borderWidth: "5px",
47
+ width: "54px",
48
+ height: "54px",
49
+ maxWidth: "54px",
50
+ maxHeight: "54px"
51
+ }
52
+ },
53
+ dots: {
54
+ default: {
55
+ display: p.flex,
56
+ justifyContent: e.center,
57
+ alignItems: e.center
58
+ },
59
+ [t.Xs]: {
60
+ gap: a(1),
61
+ ".dot": {
62
+ background: i.bg.fill.primary.default,
63
+ width: "8px",
64
+ height: "8px",
65
+ "&:nth-of-type(1)": {
66
+ animationDelay: "-0.32s"
67
+ },
68
+ "&:nth-of-type(2)": {
69
+ animationDelay: "-0.16s"
70
+ }
71
+ }
72
+ },
73
+ [t.Sm]: {
74
+ gap: a(2),
75
+ ".dot": {
76
+ background: i.bg.fill.primary.default,
77
+ width: "12px",
78
+ height: "12px",
79
+ "&:nth-of-type(1)": {
80
+ animationDelay: "-0.32s"
81
+ },
82
+ "&:nth-of-type(2)": {
83
+ animationDelay: "-0.16s"
84
+ }
85
+ }
86
+ },
87
+ [t.Md]: {
88
+ gap: a(2),
89
+ ".dot": {
90
+ background: i.bg.fill.primary.default,
91
+ width: "16px",
92
+ height: "16px",
93
+ "&:nth-of-type(1)": {
94
+ animationDelay: "-0.32s"
95
+ },
96
+ "&:nth-of-type(2)": {
97
+ animationDelay: "-0.16s"
98
+ }
99
+ }
100
+ },
101
+ [t.Lg]: {
102
+ gap: a(2),
103
+ ".dot": {
104
+ background: i.bg.fill.primary.default,
105
+ width: "24px",
106
+ height: "24px",
107
+ "&:nth-of-type(1)": {
108
+ animationDelay: "-0.32s"
109
+ },
110
+ "&:nth-of-type(2)": {
111
+ animationDelay: "-0.16s"
112
+ }
113
+ }
114
+ },
115
+ [t.Xl]: {
116
+ gap: a(2),
117
+ ".dot": {
118
+ background: i.bg.fill.primary.default,
119
+ width: "32px",
120
+ height: "32px",
121
+ "&:nth-of-type(1)": {
122
+ animationDelay: "-0.32s"
123
+ },
124
+ "&:nth-of-type(2)": {
125
+ animationDelay: "-0.16s"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ animation: {
131
+ circle: {
132
+ name: "spinKeyframes"
133
+ },
134
+ dots: {
135
+ name: "bounceKeyframes"
136
+ }
137
+ }
138
+ };
139
+ export {
140
+ x as loader
141
+ };
package/tokens/menu.js CHANGED
@@ -1 +1,19 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./colors.js"),o={wrapper:{default:{padding:"0",height:"24px"}},content:{default:{backgroundColor:e.colors.neutral.white,position:"absolute",boxShadow:"0 2px 3px -1px #00000033"}}};exports.menu=o;
1
+ import { colors as o } from "./colors.js";
2
+ const e = {
3
+ wrapper: {
4
+ default: {
5
+ padding: "0",
6
+ height: "24px"
7
+ }
8
+ },
9
+ content: {
10
+ default: {
11
+ backgroundColor: o.neutral.white,
12
+ position: "absolute",
13
+ boxShadow: "0 2px 3px -1px #00000033"
14
+ }
15
+ }
16
+ };
17
+ export {
18
+ e as menu
19
+ };
package/tokens/modal.js CHANGED
@@ -1 +1,108 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../constants/positioning.js"),i=require("../types/common.js"),s=require("../types/typography.js");require("react");const r=require("../utils/layout.js"),n=require("./utils.js"),t=require("./display.js"),e=require("./spacing.js"),d=require("./font.js"),o=require("./colors.js"),a=require("./borders.js"),h=require("./cursors.js"),b=require("./values.js"),x=require("./shadow.js");var l,c,u,p,g,f;const m={header:{default:{display:t.display.flex,alignItems:t.flexAlignItems.center,justifyContent:r.calculateJustify("end"),padding:`${n.getSpacing(4)} ${n.getSpacing(6)}`,fontSize:d.font.size[(l=s.TypographyVariant)==null?void 0:l.H6],fontWeight:"bold",borderBottom:a.borders.generic({width:"1px",color:o.colors.border.default})},withTitle:{justifyContent:r.calculateJustify("between")}},title:{default:{display:"flex",alignItems:"center",padding:e.spacing.none,margin:e.spacing.none}},body:{default:{padding:e.spacing[(c=i.SizeVariant)==null?void 0:c.Lg],fontSize:d.font.size[(u=s.TypographyVariant)==null?void 0:u.Body1],color:o.colors.text.default}},content:{default:{background:o.colors.bg.surface,padding:e.spacing.none,borderRadius:b.values.border.radius.none,boxShadow:x.shadows.modal.default,position:"relative",display:t.display.flex,flexDirection:"column",maxWidth:"654px",width:"654px","@media (max-width: 768px)":{maxWidth:"100%",width:"100vw",height:"100vh"}}},footer:{default:{display:t.display.flex,justifyContent:r.calculateJustify("end"),gap:`calc(${e.spacing[(p=i.SizeVariant)==null?void 0:p.Xs]} * 3)`,padding:`${e.spacing[(g=i.SizeVariant)==null?void 0:g.Md]} ${e.spacing[(f=i.SizeVariant)==null?void 0:f.Lg]}`,borderTop:a.borders.generic({width:"1px",color:o.colors.border.default})}},closeButton:{default:{background:o.colors.transparent,border:a.borders.none,cursor:h.cursors.pointer,padding:e.spacing.none}},overlay:{default:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",background:n.hexToRgba(o.colors.neutral.black,.5),display:t.display.flex,alignItems:t.flexAlignItems.center,justifyContent:r.calculateJustify("center"),zIndex:y.Z_INDEX.HIGH}},icons:{close:{name:"cross"}}};exports.modal=m;
1
+ import { hexToRgba as h, getSpacing as d } from "./utils.js";
2
+ import { flexAlignItems as a, display as t } from "./display.js";
3
+ import { spacing as o } from "./spacing.js";
4
+ import { font as l } from "./font.js";
5
+ import { colors as e } from "./colors.js";
6
+ import { borders as n } from "./borders.js";
7
+ import { cursors as x } from "./cursors.js";
8
+ import { values as b } from "./values.js";
9
+ import { shadows as y } from "./shadow.js";
10
+ import { Z_INDEX as w } from "../constants/positioning.js";
11
+ import { calculateJustify as r } from "../utils/layout.js";
12
+ import { SizeVariant as i } from "../types/common.js";
13
+ import { TypographyVariant as f } from "../types/typography.js";
14
+ var p, m, s, c, u, g;
15
+ const L = {
16
+ header: {
17
+ default: {
18
+ display: t.flex,
19
+ alignItems: a.center,
20
+ justifyContent: r("end"),
21
+ padding: `${d(4)} ${d(6)}`,
22
+ fontSize: l.size[(p = f) == null ? void 0 : p.H6],
23
+ fontWeight: "bold",
24
+ borderBottom: n.generic({
25
+ width: "1px",
26
+ color: e.border.default
27
+ })
28
+ },
29
+ withTitle: {
30
+ justifyContent: r("between")
31
+ }
32
+ },
33
+ title: {
34
+ default: {
35
+ display: "flex",
36
+ alignItems: "center",
37
+ padding: o.none,
38
+ margin: o.none
39
+ }
40
+ },
41
+ body: {
42
+ default: {
43
+ padding: o[(m = i) == null ? void 0 : m.Lg],
44
+ fontSize: l.size[(s = f) == null ? void 0 : s.Body1],
45
+ color: e.text.default
46
+ }
47
+ },
48
+ content: {
49
+ default: {
50
+ background: e.bg.surface,
51
+ padding: o.none,
52
+ borderRadius: b.border.radius.none,
53
+ boxShadow: y.modal.default,
54
+ position: "relative",
55
+ display: t.flex,
56
+ flexDirection: "column",
57
+ maxWidth: "654px",
58
+ width: "654px",
59
+ "@media (max-width: 768px)": {
60
+ maxWidth: "100%",
61
+ width: "100vw",
62
+ height: "100vh"
63
+ }
64
+ }
65
+ },
66
+ footer: {
67
+ default: {
68
+ display: t.flex,
69
+ justifyContent: r("end"),
70
+ gap: `calc(${o[(c = i) == null ? void 0 : c.Xs]} * 3)`,
71
+ padding: `${o[(u = i) == null ? void 0 : u.Md]} ${o[(g = i) == null ? void 0 : g.Lg]}`,
72
+ borderTop: n.generic({
73
+ width: "1px",
74
+ color: e.border.default
75
+ })
76
+ }
77
+ },
78
+ closeButton: {
79
+ default: {
80
+ background: e.transparent,
81
+ border: n.none,
82
+ cursor: x.pointer,
83
+ padding: o.none
84
+ }
85
+ },
86
+ overlay: {
87
+ default: {
88
+ position: "fixed",
89
+ top: 0,
90
+ left: 0,
91
+ width: "100vw",
92
+ height: "100vh",
93
+ background: h(e.neutral.black, 0.5),
94
+ display: t.flex,
95
+ alignItems: a.center,
96
+ justifyContent: r("center"),
97
+ zIndex: w.HIGH
98
+ }
99
+ },
100
+ icons: {
101
+ close: {
102
+ name: "cross"
103
+ }
104
+ }
105
+ };
106
+ export {
107
+ L as modal
108
+ };
package/tokens/price.js CHANGED
@@ -1 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../types/common.js"),t=require("../types/typography.js"),i=require("./display.js"),n=require("./spacing.js"),e=require("./font.js"),o=require("./colors.js"),a={default:{display:i.display.flex,alignItems:i.flexAlignItems.center,gap:n.spacing[r.SizeVariant.Sm]},currentPrice:{default:{fontSize:e.font.size[t.TypographyVariant.H3],fontWeight:e.font.weight.medium,lineHeight:e.font.line.height[t.TypographyVariant.H3],color:o.colors.text.default}},oldPrice:{default:{fontSize:e.font.size[t.TypographyVariant.H4],fontWeight:e.font.weight.medium,lineHeight:e.font.line.height[t.TypographyVariant.H4],color:o.colors.text.disabled}}};exports.price=a;
1
+ import { flexAlignItems as o, display as r } from "./display.js";
2
+ import { spacing as l } from "./spacing.js";
3
+ import { font as e } from "./font.js";
4
+ import { colors as t } from "./colors.js";
5
+ import { TypographyVariant as i } from "../types/typography.js";
6
+ import { SizeVariant as m } from "../types/common.js";
7
+ const h = {
8
+ default: {
9
+ display: r.flex,
10
+ alignItems: o.center,
11
+ gap: l[m.Sm]
12
+ },
13
+ currentPrice: {
14
+ default: {
15
+ fontSize: e.size[i.H3],
16
+ fontWeight: e.weight.medium,
17
+ lineHeight: e.line.height[i.H3],
18
+ color: t.text.default
19
+ }
20
+ },
21
+ oldPrice: {
22
+ default: {
23
+ fontSize: e.size[i.H4],
24
+ fontWeight: e.weight.medium,
25
+ lineHeight: e.line.height[i.H4],
26
+ color: t.text.disabled
27
+ }
28
+ }
29
+ };
30
+ export {
31
+ h as price
32
+ };
@@ -1 +1,60 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const r=require("../utils/layout.js"),t=require("./colors.js"),i=require("./spacing.js"),e=require("./display.js"),l=require("./font.js"),n=require("./values.js"),o={styledProgressBar:{default:{width:"100%",display:e.display.block}},styledTrack:{default:{position:"relative",width:"100%",height:i.spacing.md,overflow:"hidden",backgroundColor:t.colors.bg.default}},styledDeterminateFill:{default:{display:e.display.flex,alignItems:e.flexAlignItems.center,justifyContent:r.calculateJustify("end"),paddingRight:i.spacing.none,whiteSpace:"nowrap",height:"100%",backgroundColor:t.colors.bg.fill.primary.default,transition:n.values.transitions.progressbar.styledDeterminateFill}},styledIndeterminateFill:{default:{backgroundColor:t.colors.bg.fill.primary.default,width:"30%",height:"100%"}},styledIndeterminateFillAnimations:{animationName:"progressIndeterminate",animationProps:"1.2s infinite ease-in-out"},styledPercentLabel:{default:{display:e.display.flex,alignItems:e.flexAlignItems.center,color:t.colors.neutral.black,fontSize:l.font.size.caption,fontWeight:l.font.weight.normal,height:"100%",userSelect:"none"}}};exports.progressbar=o;
1
+ import { colors as e } from "./colors.js";
2
+ import { spacing as i } from "./spacing.js";
3
+ import { flexAlignItems as r, display as t } from "./display.js";
4
+ import { font as l } from "./font.js";
5
+ import { values as o } from "./values.js";
6
+ import { calculateJustify as a } from "../utils/layout.js";
7
+ const g = {
8
+ styledProgressBar: {
9
+ default: {
10
+ width: "100%",
11
+ display: t.block
12
+ }
13
+ },
14
+ styledTrack: {
15
+ default: {
16
+ position: "relative",
17
+ width: "100%",
18
+ height: i.md,
19
+ overflow: "hidden",
20
+ backgroundColor: e.bg.default
21
+ }
22
+ },
23
+ styledDeterminateFill: {
24
+ default: {
25
+ display: t.flex,
26
+ alignItems: r.center,
27
+ justifyContent: a("end"),
28
+ paddingRight: i.none,
29
+ whiteSpace: "nowrap",
30
+ height: "100%",
31
+ backgroundColor: e.bg.fill.primary.default,
32
+ transition: o.transitions.progressbar.styledDeterminateFill
33
+ }
34
+ },
35
+ styledIndeterminateFill: {
36
+ default: {
37
+ backgroundColor: e.bg.fill.primary.default,
38
+ width: "30%",
39
+ height: "100%"
40
+ }
41
+ },
42
+ styledIndeterminateFillAnimations: {
43
+ animationName: "progressIndeterminate",
44
+ animationProps: "1.2s infinite ease-in-out"
45
+ },
46
+ styledPercentLabel: {
47
+ default: {
48
+ display: t.flex,
49
+ alignItems: r.center,
50
+ color: e.neutral.black,
51
+ fontSize: l.size.caption,
52
+ fontWeight: l.weight.normal,
53
+ height: "100%",
54
+ userSelect: "none"
55
+ }
56
+ }
57
+ };
58
+ export {
59
+ g as progressbar
60
+ };
@@ -1,4 +1,68 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../types/typography.js"),n=require("../types/layout.js"),r=require("./borders.js"),e=require("./spacing.js"),l=require("./display.js"),s=require("./font.js"),t=require("./cursors.js"),o=require("./colors.js"),c={input:{position:"absolute",opacity:0,pointerEvents:"none"},default:{margin:e.spacing.none,padding:e.spacing.none,border:r.borders.none},label:{default:{display:l.display.block,padding:`${e.spacing.sm} ${e.spacing.md}`,fontSize:s.font.size.p,fontWeight:s.font.weight.medium,cursor:t.cursors.inherit,color:o.colors.text.caption,width:"100%",height:"100%",alignContent:i.TextAlign.Center,textAlign:i.TextAlign.Center},disabled:{},selected:{},hover:{"&:hover":{color:o.colors.neutral["grey.90"]}}},item:{default:{position:"relative",cursor:t.cursors.pointer,border:r.borders.generic({width:"1px",type:"solid",color:o.colors.border.default}),"&:focus-within":{outline:`2px solid ${o.colors.border.focus}`,outlineOffset:"-1px"}},disabled:{cursor:t.cursors.notAllowed,backgroundColor:o.colors.bg.default,"&::after":{content:'""',position:"absolute",top:e.spacing.none,left:e.spacing.none,width:"100%",height:"100%",background:`
1
+ import { borders as r } from "./borders.js";
2
+ import { spacing as e } from "./spacing.js";
3
+ import { display as d } from "./display.js";
4
+ import { font as i } from "./font.js";
5
+ import { cursors as t } from "./cursors.js";
6
+ import { colors as o } from "./colors.js";
7
+ import { FlexDirection as n } from "../types/layout.js";
8
+ import { TextAlign as l } from "../types/typography.js";
9
+ const b = {
10
+ input: {
11
+ position: "absolute",
12
+ opacity: 0,
13
+ pointerEvents: "none"
14
+ },
15
+ default: {
16
+ margin: e.none,
17
+ padding: e.none,
18
+ border: r.none
19
+ },
20
+ label: {
21
+ default: {
22
+ display: d.block,
23
+ padding: `${e.sm} ${e.md}`,
24
+ fontSize: i.size.p,
25
+ fontWeight: i.weight.medium,
26
+ cursor: t.inherit,
27
+ color: o.text.caption,
28
+ width: "100%",
29
+ height: "100%",
30
+ alignContent: l.Center,
31
+ textAlign: l.Center
32
+ },
33
+ disabled: {},
34
+ selected: {},
35
+ hover: {
36
+ "&:hover": {
37
+ color: o.neutral["grey.90"]
38
+ }
39
+ }
40
+ },
41
+ item: {
42
+ default: {
43
+ position: "relative",
44
+ cursor: t.pointer,
45
+ border: r.generic({
46
+ width: "1px",
47
+ type: "solid",
48
+ color: o.border.default
49
+ }),
50
+ "&:focus-within": {
51
+ outline: `2px solid ${o.border.focus}`,
52
+ outlineOffset: "-1px"
53
+ }
54
+ },
55
+ disabled: {
56
+ cursor: t.notAllowed,
57
+ backgroundColor: o.bg.default,
58
+ "&::after": {
59
+ content: '""',
60
+ position: "absolute",
61
+ top: e.none,
62
+ left: e.none,
63
+ width: "100%",
64
+ height: "100%",
65
+ background: `
2
66
  linear-gradient(
3
67
  to top right,
4
68
  transparent 49%,
@@ -6,4 +70,41 @@
6
70
  #E5E5E5 51%,
7
71
  transparent 51%
8
72
  )
9
- `}},selected:{boxShadow:`0 0 0 1px ${o.colors.neutral.black}`,border:r.borders.generic({width:"1px",type:"solid",color:o.colors.neutral.black})},hover:{"&:hover":{border:r.borders.generic({width:"1px",type:"solid",color:o.colors.neutral.black})}}},layouts:{column:{display:"flex",flexDirection:n.FlexDirection.Column},row:{display:"flex",flexDirection:n.FlexDirection.Row},grid:{display:"grid"}}};exports.radiogroup=c;
73
+ `
74
+ }
75
+ },
76
+ selected: {
77
+ boxShadow: `0 0 0 1px ${o.neutral.black}`,
78
+ border: r.generic({
79
+ width: "1px",
80
+ type: "solid",
81
+ color: o.neutral.black
82
+ })
83
+ },
84
+ hover: {
85
+ "&:hover": {
86
+ border: r.generic({
87
+ width: "1px",
88
+ type: "solid",
89
+ color: o.neutral.black
90
+ })
91
+ }
92
+ }
93
+ },
94
+ layouts: {
95
+ column: {
96
+ display: "flex",
97
+ flexDirection: n.Column
98
+ },
99
+ row: {
100
+ display: "flex",
101
+ flexDirection: n.Row
102
+ },
103
+ grid: {
104
+ display: "grid"
105
+ }
106
+ }
107
+ };
108
+ export {
109
+ b as radiogroup
110
+ };