@itcase/ui 1.3.12 → 1.3.14
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.
- package/dist/{Badge-DMRagi5O.js → Badge-Bcj5H3vs.js} +2 -2
- package/dist/{Badge-B9tt2YPa.js → Badge-DxHwStfq.js} +2 -2
- package/dist/{Button-DHQeSUSA.js → Button-BIVXOiP4.js} +6 -6
- package/dist/{Button-BVQet4JC.js → Button-C4oPIe_E.js} +6 -6
- package/dist/{DropdownItem-DxGxdjUr.js → DropdownItem-BGsCHiqr.js} +4 -4
- package/dist/{DropdownItem-DXz1l415.js → DropdownItem-CRvS3KEp.js} +4 -4
- package/dist/{Group-B9L2NTgM.js → Group-CIIZoSm5.js} +1 -1
- package/dist/{Group-D6CXN4hS.js → Group-pMTTxQH4.js} +1 -1
- package/dist/{Icon-3VtRLW-J.js → Icon-DJSIqu5Z.js} +2 -2
- package/dist/{Icon-C9FlOMr9.js → Icon-Dz1q9WC2.js} +2 -2
- package/dist/{Input-BrV5_NoV.js → Input-Ck5IbuH6.js} +1 -1
- package/dist/{Input-ffioh1sj.js → Input-zkYoZhQk.js} +1 -1
- package/dist/{Label-DQyB2ThM.js → Label-9O3dQlUa.js} +6 -6
- package/dist/{Label-HKRKV3mn.js → Label-GEBQXoVJ.js} +6 -6
- package/dist/{Link-C2dn5VUy.js → Link-CH-W1dww.js} +1 -1
- package/dist/{Link-CPzqprR1.js → Link-U60OVrcS.js} +1 -1
- package/dist/{Loader-K_DJmah6.js → Loader-Cm98w6lJ.js} +2 -2
- package/dist/{Loader-Dn036JwE.js → Loader-D_53c71f.js} +2 -2
- package/dist/{MenuItem-Cw2Lry6S.js → MenuItem-C422Veuw.js} +3 -3
- package/dist/{MenuItem-DEzP_HLq.js → MenuItem-GoaeJJ04.js} +3 -3
- package/dist/{Scrollbar-CKbA0jQU.js → Scrollbar-CL9V8d1X.js} +1 -1
- package/dist/{Scrollbar-Bo7z7ELm.js → Scrollbar-DkJr3S-w.js} +1 -1
- package/dist/{Text-Beslj4Ns.js → Text-COHpLTYr.js} +1 -1
- package/dist/{Text-JayJa3hj.js → Text-D9sEeRE4.js} +1 -1
- package/dist/{Title-DBaHcpvB.js → Title-BduD-TXE.js} +1 -1
- package/dist/{Title-CHgrIarR.js → Title-Cl95USIn.js} +1 -1
- package/dist/{Tooltip-1Jbub0K6.js → Tooltip-BsbXMzGd.js} +4 -4
- package/dist/{Tooltip-CNua1g76.js → Tooltip-CyZCVyba.js} +4 -4
- package/dist/cjs/components/Accordion.js +7 -7
- package/dist/cjs/components/Avatar.js +9 -9
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +6 -6
- package/dist/cjs/components/Button.js +7 -7
- package/dist/cjs/components/Card.js +2 -2
- package/dist/cjs/components/Cell.js +7 -7
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +10 -10
- package/dist/cjs/components/Code.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +10 -10
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +16 -16
- package/dist/cjs/components/Drawer.js +5 -12
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Flex.js +2 -2
- package/dist/cjs/components/Grid.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +5 -5
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword.js +5 -5
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/Menu.js +4 -4
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +5 -5
- package/dist/cjs/components/Notification.js +4 -4
- package/dist/cjs/components/Pagination.js +28 -28
- package/dist/cjs/components/Panel.js +2 -2
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +17 -17
- package/dist/cjs/components/ScrollToView.js +1 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -9
- package/dist/cjs/components/Segmented.js +13 -13
- package/dist/cjs/components/Select.js +11 -11
- package/dist/cjs/components/SiteMenu.js +6 -6
- package/dist/cjs/components/Swiper.js +8 -8
- package/dist/cjs/components/Tab.js +9 -9
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +4 -4
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Wrapper.js +1 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/cjs/context/UIContext.js +1 -1
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +4 -4
- package/dist/components/Accordion.js +7 -7
- package/dist/components/Avatar.js +9 -9
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +6 -6
- package/dist/components/Button.js +7 -7
- package/dist/components/Card.js +2 -2
- package/dist/components/Cell.js +7 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +10 -10
- package/dist/components/Code.js +1 -1
- package/dist/components/CookiesWarning.js +10 -10
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +16 -16
- package/dist/components/Drawer.js +5 -12
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Flex.js +2 -2
- package/dist/components/Grid.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +5 -5
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword.js +5 -5
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/Menu.js +4 -4
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +5 -5
- package/dist/components/Notification.js +4 -4
- package/dist/components/Pagination.js +28 -28
- package/dist/components/Panel.js +2 -2
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +17 -17
- package/dist/components/ScrollToView.js +1 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +9 -9
- package/dist/components/Segmented.js +13 -13
- package/dist/components/Select.js +11 -11
- package/dist/components/SiteMenu.js +6 -6
- package/dist/components/Swiper.js +8 -8
- package/dist/components/Tab.js +9 -9
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Wrapper.js +1 -1
- package/dist/context/Notifications.js +6 -6
- package/dist/context/UIContext.js +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +3 -12
- package/dist/css/components/Pagination/Pagination.css +3 -2
- package/dist/css/components/Pagination/css/__item/pagination__item.css +3 -2
- package/dist/css/components/Swiper/Swiper.css +3 -3
- package/dist/css/components/Text/Text.css +2 -1
- package/dist/hooks/useDeviceTargetClassGenerator.js +4 -4
- package/dist/stories/Accordion.mdx +1 -1
- package/dist/stories/AccordionItem.mdx +1 -1
- package/dist/stories/AlignContent.mdx +1 -1
- package/dist/stories/AlignItems.mdx +1 -1
- package/dist/stories/AlignSelf.mdx +1 -1
- package/dist/stories/Appearance.mdx +1 -1
- package/dist/stories/Avatar.mdx +1 -1
- package/dist/stories/Badge.mdx +2 -2
- package/dist/stories/Button.mdx +1 -2
- package/dist/stories/Cell.mdx +1 -1
- package/dist/stories/Checkbox.mdx +1 -2
- package/dist/stories/Chips.mdx +1 -1
- package/dist/stories/Choice.mdx +1 -1
- package/dist/stories/Code.mdx +1 -1
- package/dist/stories/Columns.mdx +1 -1
- package/dist/stories/DatePicker.mdx +1 -1
- package/dist/stories/Dev.mdx +1 -1
- package/dist/stories/DevMode.mdx +3 -2
- package/dist/stories/Direction.mdx +1 -1
- package/dist/stories/Divider.mdx +1 -1
- package/dist/stories/Dot.mdx +1 -1
- package/dist/stories/Drawer.mdx +1 -1
- package/dist/stories/Dropdown.mdx +2 -2
- package/dist/stories/DropdownItem.mdx +1 -1
- package/dist/stories/Group.mdx +1 -1
- package/dist/stories/Grow.mdx +1 -1
- package/dist/stories/Icon.mdx +1 -1
- package/dist/stories/Image.mdx +1 -1
- package/dist/stories/Input.mdx +1 -1
- package/dist/stories/InputPassword.mdx +1 -1
- package/dist/stories/JustifyContent.mdx +1 -1
- package/dist/stories/Label.mdx +1 -1
- package/dist/stories/Loader.mdx +1 -1
- package/dist/stories/Logo.mdx +1 -1
- package/dist/stories/MenuItem.mdx +1 -1
- package/dist/stories/Message.mdx +4 -1
- package/dist/stories/Notification.mdx +1 -1
- package/dist/stories/Order.mdx +1 -1
- package/dist/stories/Overview.mdx +1 -1
- package/dist/stories/Pagination.mdx +1 -1
- package/dist/stories/Playground.mdx +1 -1
- package/dist/stories/Radio.mdx +1 -2
- package/dist/stories/Response.mdx +6 -1
- package/dist/stories/SearchInput.mdx +1 -1
- package/dist/stories/Segmented.mdx +1 -1
- package/dist/stories/Size.mdx +1 -1
- package/dist/stories/Skeleton.mdx +1 -1
- package/dist/stories/State.mdx +1 -1
- package/dist/stories/Switch.mdx +1 -1
- package/dist/stories/Text.mdx +1 -1
- package/dist/stories/Textarea.mdx +1 -1
- package/dist/stories/Tile.mdx +1 -1
- package/dist/stories/Title.mdx +1 -1
- package/dist/stories/Tooltip.mdx +1 -1
- package/dist/stories/WithTooltip.mdx +1 -1
- package/dist/stories/Wrap.mdx +1 -1
- package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.interface.d.ts +5 -5
- package/dist/types/components/Badge/Badge.interface.d.ts +4 -4
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +11 -11
- package/dist/types/components/Button/Button.interface.d.ts +10 -10
- package/dist/types/components/Button/stories/args.d.ts +200 -0
- package/dist/types/components/Caption/Caption.interface.d.ts +5 -5
- package/dist/types/components/Card/Card.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.interface.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +2 -2
- package/dist/types/components/Chips/Chips.interface.d.ts +6 -6
- package/dist/types/components/Chips/stories/args.d.ts +45 -0
- package/dist/types/components/Choice/Choice.interface.d.ts +6 -6
- package/dist/types/components/Code/Code.interface.d.ts +3 -3
- package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +1 -1
- package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +0 -1
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +13 -13
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -2
- package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +5 -5
- package/dist/types/components/Flex/Flex.interface.d.ts +70 -71
- package/dist/types/components/Flex/stories/args.d.ts +80 -0
- package/dist/types/components/Grid/Grid.interface.d.ts +28 -28
- package/dist/types/components/Grid/stories/args.d.ts +90 -0
- package/dist/types/components/Group/Group.interface.d.ts +7 -7
- package/dist/types/components/Group/stories/args.d.ts +78 -0
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +5 -5
- package/dist/types/components/Icon/Icon.interface.d.ts +15 -15
- package/dist/types/components/Image/Image.interface.d.ts +3 -3
- package/dist/types/components/Input/Input.interface.d.ts +3 -3
- package/dist/types/components/InputMask/Input.interface.d.ts +3 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -4
- package/dist/types/components/Label/Label.interface.d.ts +6 -6
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/List/List.interface.d.ts +2 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/Logo/Logo.interface.d.ts +4 -4
- package/dist/types/components/Menu/Menu.interface.d.ts +2 -2
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +3 -3
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +4 -4
- package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +5 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +21 -21
- package/dist/types/components/Radio/Radio.interface.d.ts +4 -4
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +5 -5
- package/dist/types/components/Response/stories/args.d.ts +174 -0
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +3 -3
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +3 -3
- package/dist/types/components/Search/Search.interface.d.ts +7 -7
- package/dist/types/components/Segmented/Segmented.interface.d.ts +3 -3
- package/dist/types/components/Select/Select.interface.d.ts +5 -5
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +3 -3
- package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
- package/dist/types/components/Tab/Tab.interface.d.ts +4 -4
- package/dist/types/components/Tab/stories/args.d.ts +171 -0
- package/dist/types/components/Text/Text.interface.d.ts +3 -3
- package/dist/types/components/Textarea/Textarea.interface.d.ts +4 -4
- package/dist/types/components/Tile/Tile.interface.d.ts +5 -5
- package/dist/types/components/Title/Title.interface.d.ts +8 -8
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +6 -6
- package/dist/types/components/Wrapper/Wrapper.interface.d.ts +5 -5
- package/dist/types/hooks/styleAttributes.interface.d.ts +2 -2
- package/dist/types/types/componentProps/align.d.ts +3 -1
- package/dist/types/types/componentProps/alignDirection.d.ts +3 -1
- package/dist/types/types/componentProps/alignment.d.ts +3 -1
- package/dist/types/types/componentProps/borderColor.d.ts +3 -1
- package/dist/types/types/componentProps/borderColorHover.d.ts +3 -1
- package/dist/types/types/componentProps/borderType.d.ts +3 -1
- package/dist/types/types/componentProps/borderWidth.d.ts +3 -1
- package/dist/types/types/componentProps/captionPosition.d.ts +3 -1
- package/dist/types/types/componentProps/direction.d.ts +3 -1
- package/dist/types/types/componentProps/elevation.d.ts +3 -1
- package/dist/types/types/componentProps/emojiSize.d.ts +3 -1
- package/dist/types/types/componentProps/fill.d.ts +3 -1
- package/dist/types/types/componentProps/fillGradient.d.ts +3 -1
- package/dist/types/types/componentProps/fillHover.d.ts +3 -1
- package/dist/types/types/componentProps/fillType.d.ts +3 -1
- package/dist/types/types/componentProps/flexAlign.d.ts +3 -1
- package/dist/types/types/componentProps/flexGrow.d.ts +3 -1
- package/dist/types/types/componentProps/flexJustifyContent.d.ts +3 -1
- package/dist/types/types/componentProps/flexWrap.d.ts +3 -1
- package/dist/types/types/componentProps/gridAlign.d.ts +3 -1
- package/dist/types/types/componentProps/gridAlignSelf.d.ts +3 -1
- package/dist/types/types/componentProps/gridJustifyItems.d.ts +3 -1
- package/dist/types/types/componentProps/gridJustifySelf.d.ts +3 -1
- package/dist/types/types/componentProps/height.d.ts +3 -1
- package/dist/types/types/componentProps/horizontalContentAlign.d.ts +3 -1
- package/dist/types/types/componentProps/horizontalResizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/iconFillSize.d.ts +3 -1
- package/dist/types/types/componentProps/iconSize.d.ts +3 -1
- package/dist/types/types/componentProps/itemColor.d.ts +3 -1
- package/dist/types/types/componentProps/justifyContent.d.ts +3 -1
- package/dist/types/types/componentProps/overflow.d.ts +3 -1
- package/dist/types/types/componentProps/position.d.ts +3 -1
- package/dist/types/types/componentProps/resizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/shape.d.ts +3 -1
- package/dist/types/types/componentProps/size.d.ts +3 -1
- package/dist/types/types/componentProps/sizeOption.d.ts +3 -0
- package/dist/types/types/componentProps/sizePX.d.ts +3 -1
- package/dist/types/types/componentProps/stacking.d.ts +3 -1
- package/dist/types/types/componentProps/state.d.ts +3 -1
- package/dist/types/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/types/types/componentProps/svgFill.d.ts +3 -1
- package/dist/types/types/componentProps/textAlign.d.ts +3 -1
- package/dist/types/types/componentProps/textColor.d.ts +3 -1
- package/dist/types/types/componentProps/textColorActive.d.ts +3 -2
- package/dist/types/types/componentProps/textColorHover.d.ts +3 -1
- package/dist/types/types/componentProps/textGradient.d.ts +3 -1
- package/dist/types/types/componentProps/textSize.d.ts +3 -1
- package/dist/types/types/componentProps/textStyle.d.ts +3 -1
- package/dist/types/types/componentProps/textTag.d.ts +3 -1
- package/dist/types/types/componentProps/textWeight.d.ts +3 -1
- package/dist/types/types/componentProps/textWrap.d.ts +3 -1
- package/dist/types/types/componentProps/titleSize.d.ts +3 -1
- package/dist/types/types/componentProps/type.d.ts +3 -1
- package/dist/types/types/componentProps/underline.d.ts +3 -1
- package/dist/types/types/componentProps/verticalContentAlign.d.ts +3 -1
- package/dist/types/types/componentProps/verticalResizeMode.d.ts +3 -1
- package/dist/types/types/componentProps/width.d.ts +3 -1
- package/dist/types/types/componentProps/wrap.d.ts +3 -1
- package/dist/types/types/index.d.ts +57 -57
- package/package.json +47 -59
- package/dist/cjs/constants/componentProps/align.js +0 -7
- package/dist/cjs/constants/componentProps/alignDirection.js +0 -7
- package/dist/cjs/constants/componentProps/alignment.js +0 -7
- package/dist/cjs/constants/componentProps/borderColor.js +0 -7
- package/dist/cjs/constants/componentProps/borderColorHover.js +0 -7
- package/dist/cjs/constants/componentProps/borderType.js +0 -7
- package/dist/cjs/constants/componentProps/borderWidth.js +0 -9
- package/dist/cjs/constants/componentProps/captionPosition.js +0 -7
- package/dist/cjs/constants/componentProps/direction.js +0 -7
- package/dist/cjs/constants/componentProps/emojiSize.js +0 -9
- package/dist/cjs/constants/componentProps/fill.js +0 -7
- package/dist/cjs/constants/componentProps/fillGradient.js +0 -7
- package/dist/cjs/constants/componentProps/fillHover.js +0 -7
- package/dist/cjs/constants/componentProps/fillType.js +0 -7
- package/dist/cjs/constants/componentProps/flexAlign.js +0 -7
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +0 -7
- package/dist/cjs/constants/componentProps/flexWrap.js +0 -7
- package/dist/cjs/constants/componentProps/gridAlign.js +0 -7
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +0 -7
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +0 -7
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +0 -7
- package/dist/cjs/constants/componentProps/height.js +0 -7
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +0 -7
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/iconFillSize.js +0 -9
- package/dist/cjs/constants/componentProps/iconSize.js +0 -9
- package/dist/cjs/constants/componentProps/itemColor.js +0 -7
- package/dist/cjs/constants/componentProps/position.js +0 -7
- package/dist/cjs/constants/componentProps/resizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/shape.js +0 -7
- package/dist/cjs/constants/componentProps/size.js +0 -7
- package/dist/cjs/constants/componentProps/sizeInterface.js +0 -7
- package/dist/cjs/constants/componentProps/sizePX.js +0 -9
- package/dist/cjs/constants/componentProps/stacking.js +0 -7
- package/dist/cjs/constants/componentProps/state.js +0 -7
- package/dist/cjs/constants/componentProps/textAlign.js +0 -7
- package/dist/cjs/constants/componentProps/textColor.js +0 -7
- package/dist/cjs/constants/componentProps/textColorActive.js +0 -7
- package/dist/cjs/constants/componentProps/textColorHover.js +0 -7
- package/dist/cjs/constants/componentProps/textGradient.js +0 -7
- package/dist/cjs/constants/componentProps/textSize.js +0 -7
- package/dist/cjs/constants/componentProps/textStyle.js +0 -7
- package/dist/cjs/constants/componentProps/textTag.js +0 -7
- package/dist/cjs/constants/componentProps/textWeight.js +0 -9
- package/dist/cjs/constants/componentProps/textWrap.js +0 -7
- package/dist/cjs/constants/componentProps/titleSize.js +0 -7
- package/dist/cjs/constants/componentProps/type.js +0 -7
- package/dist/cjs/constants/componentProps/underline.js +0 -7
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +0 -7
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +0 -7
- package/dist/cjs/constants/componentProps/width.js +0 -7
- package/dist/cjs/constants/componentProps/wrap.js +0 -7
- package/dist/cjs/constants.js +0 -109
- package/dist/constants/componentProps/align.js +0 -3
- package/dist/constants/componentProps/alignDirection.js +0 -3
- package/dist/constants/componentProps/alignment.js +0 -3
- package/dist/constants/componentProps/borderColor.js +0 -3
- package/dist/constants/componentProps/borderColorHover.js +0 -3
- package/dist/constants/componentProps/borderType.js +0 -3
- package/dist/constants/componentProps/borderWidth.js +0 -5
- package/dist/constants/componentProps/captionPosition.js +0 -3
- package/dist/constants/componentProps/direction.js +0 -3
- package/dist/constants/componentProps/emojiSize.js +0 -5
- package/dist/constants/componentProps/fill.js +0 -3
- package/dist/constants/componentProps/fillGradient.js +0 -3
- package/dist/constants/componentProps/fillHover.js +0 -3
- package/dist/constants/componentProps/fillType.js +0 -3
- package/dist/constants/componentProps/flexAlign.js +0 -3
- package/dist/constants/componentProps/flexJustifyContent.js +0 -3
- package/dist/constants/componentProps/flexWrap.js +0 -3
- package/dist/constants/componentProps/gridAlign.js +0 -3
- package/dist/constants/componentProps/gridAlignSelf.js +0 -3
- package/dist/constants/componentProps/gridJustifyItems.js +0 -3
- package/dist/constants/componentProps/gridJustifySelf.js +0 -3
- package/dist/constants/componentProps/height.js +0 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +0 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +0 -3
- package/dist/constants/componentProps/iconFillSize.js +0 -5
- package/dist/constants/componentProps/iconSize.js +0 -5
- package/dist/constants/componentProps/itemColor.js +0 -3
- package/dist/constants/componentProps/position.js +0 -3
- package/dist/constants/componentProps/resizeMode.js +0 -3
- package/dist/constants/componentProps/shape.js +0 -3
- package/dist/constants/componentProps/size.js +0 -3
- package/dist/constants/componentProps/sizeInterface.js +0 -3
- package/dist/constants/componentProps/sizePX.js +0 -5
- package/dist/constants/componentProps/stacking.js +0 -3
- package/dist/constants/componentProps/state.js +0 -3
- package/dist/constants/componentProps/textAlign.js +0 -3
- package/dist/constants/componentProps/textColor.js +0 -3
- package/dist/constants/componentProps/textColorActive.js +0 -3
- package/dist/constants/componentProps/textColorHover.js +0 -3
- package/dist/constants/componentProps/textGradient.js +0 -3
- package/dist/constants/componentProps/textSize.js +0 -3
- package/dist/constants/componentProps/textStyle.js +0 -3
- package/dist/constants/componentProps/textTag.js +0 -3
- package/dist/constants/componentProps/textWeight.js +0 -5
- package/dist/constants/componentProps/textWrap.js +0 -3
- package/dist/constants/componentProps/titleSize.js +0 -3
- package/dist/constants/componentProps/type.js +0 -3
- package/dist/constants/componentProps/underline.js +0 -3
- package/dist/constants/componentProps/verticalContentAlign.js +0 -3
- package/dist/constants/componentProps/verticalResizeMode.js +0 -3
- package/dist/constants/componentProps/width.js +0 -3
- package/dist/constants/componentProps/wrap.js +0 -3
- package/dist/constants.js +0 -52
- package/dist/stories/Accordion.stories.js +0 -105
- package/dist/stories/AccordionItem.stories.js +0 -150
- package/dist/stories/AlignItems.stories.js +0 -88
- package/dist/stories/AlignSelf.stories.js +0 -101
- package/dist/stories/Appearance.stories.js +0 -100
- package/dist/stories/Avatar.stories.js +0 -184
- package/dist/stories/Badge.stories.js +0 -115
- package/dist/stories/Button.stories.js +0 -110
- package/dist/stories/Cell.stories.js +0 -306
- package/dist/stories/Checkbox.stories.js +0 -124
- package/dist/stories/Chips.stories.js +0 -106
- package/dist/stories/Choice.stories.js +0 -115
- package/dist/stories/Code.stories.js +0 -96
- package/dist/stories/Columns.stories.js +0 -80
- package/dist/stories/DatePicker.stories.js +0 -171
- package/dist/stories/Direction.stories.js +0 -93
- package/dist/stories/Divider.stories.js +0 -131
- package/dist/stories/Dot.stories.js +0 -85
- package/dist/stories/Drawer.stories.js +0 -75
- package/dist/stories/Dropdown.stories.js +0 -75
- package/dist/stories/DropdownItem.stories.js +0 -150
- package/dist/stories/Flex.stories.js +0 -47
- package/dist/stories/FlexAlignContent.stories.js +0 -102
- package/dist/stories/FlexAlignItems.stories.js +0 -91
- package/dist/stories/FlexAlignSelf.stories.js +0 -97
- package/dist/stories/FlexDirection.stories.js +0 -112
- package/dist/stories/FlexGrow.stories.js +0 -69
- package/dist/stories/FlexJustifyContent.stories.js +0 -98
- package/dist/stories/FlexOrder.stories.js +0 -76
- package/dist/stories/FlexWrap.stories.js +0 -89
- package/dist/stories/Grid.stories.js +0 -202
- package/dist/stories/Group.stories.js +0 -151
- package/dist/stories/Icon.stories.js +0 -193
- package/dist/stories/Image.stories.js +0 -134
- package/dist/stories/Input.stories.js +0 -124
- package/dist/stories/InputPassword.stories.js +0 -112
- package/dist/stories/JustifyContent.stories.js +0 -96
- package/dist/stories/Label.stories.js +0 -173
- package/dist/stories/Loader.stories.js +0 -119
- package/dist/stories/Logo.stories.js +0 -99
- package/dist/stories/MenuItem.stories.js +0 -258
- package/dist/stories/Message.stories.js +0 -34
- package/dist/stories/ModalConfirm.stories.js +0 -60
- package/dist/stories/ModalDefault.stories.js +0 -33
- package/dist/stories/ModalSheetBottom.stories.js +0 -47
- package/dist/stories/Notification.stories.js +0 -105
- package/dist/stories/Pagination.stories.js +0 -63
- package/dist/stories/Radio.stories.js +0 -100
- package/dist/stories/Response.stories.js +0 -92
- package/dist/stories/SearchInput.stories.js +0 -189
- package/dist/stories/Segmented.stories.js +0 -109
- package/dist/stories/Select.stories.js +0 -333
- package/dist/stories/Size.stories.js +0 -99
- package/dist/stories/State.stories.js +0 -67
- package/dist/stories/Switch.stories.js +0 -84
- package/dist/stories/Text.stories.js +0 -172
- package/dist/stories/Textarea.stories.js +0 -90
- package/dist/stories/Tile.stories.js +0 -248
- package/dist/stories/Title.stories.js +0 -168
- package/dist/stories/Tooltip.stories.js +0 -164
- package/dist/stories/Wrap.stories.js +0 -74
- package/dist/types/types/componentProps/sizeInterface.d.ts +0 -1
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { fillProps, textColorProps, textSizeProps } from '../../../constants'
|
|
2
|
-
import { Checkbox, checkboxConfig } from '../Checkbox'
|
|
3
|
-
import { checkboxState } from '../Checkbox.appearance'
|
|
4
|
-
|
|
5
|
-
checkboxConfig.setState(checkboxState)
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
argTypes: {
|
|
9
|
-
advancedProps: { control: 'boolean' },
|
|
10
|
-
checked: {
|
|
11
|
-
control: 'boolean',
|
|
12
|
-
},
|
|
13
|
-
className: {
|
|
14
|
-
if: { arg: 'advancedProps' },
|
|
15
|
-
},
|
|
16
|
-
descTextColor: {
|
|
17
|
-
control: 'select',
|
|
18
|
-
options: textColorProps,
|
|
19
|
-
},
|
|
20
|
-
descTextSize: {
|
|
21
|
-
control: 'inline-radio',
|
|
22
|
-
options: textSizeProps,
|
|
23
|
-
},
|
|
24
|
-
disabled: {
|
|
25
|
-
control: 'boolean',
|
|
26
|
-
},
|
|
27
|
-
fill: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: fillProps,
|
|
30
|
-
},
|
|
31
|
-
labelTextColor: {
|
|
32
|
-
control: 'select',
|
|
33
|
-
options: textColorProps,
|
|
34
|
-
},
|
|
35
|
-
labelTextSize: {
|
|
36
|
-
control: 'inline-radio',
|
|
37
|
-
options: textSizeProps,
|
|
38
|
-
},
|
|
39
|
-
shape: {
|
|
40
|
-
control: 'inline-radio',
|
|
41
|
-
options: [null, 'rounded'],
|
|
42
|
-
},
|
|
43
|
-
stateBorderWidth: {
|
|
44
|
-
control: 'inline-radio',
|
|
45
|
-
options: [1, 2, 3, 4, 5],
|
|
46
|
-
},
|
|
47
|
-
stateShape: {
|
|
48
|
-
control: 'inline-radio',
|
|
49
|
-
options: [null, 'rounded'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
component: Checkbox,
|
|
53
|
-
title: 'Atoms / Checkbox',
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const Default = {
|
|
57
|
-
args: {
|
|
58
|
-
checked: false,
|
|
59
|
-
desc: 'Description',
|
|
60
|
-
descTextColor: 'surfaceTextTertiary',
|
|
61
|
-
descTextSize: 'xxs',
|
|
62
|
-
disabled: false,
|
|
63
|
-
label: 'Checkbox',
|
|
64
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
65
|
-
labelTextSize: 'm',
|
|
66
|
-
|
|
67
|
-
stateBorderColor: 'accentBorderSecondary',
|
|
68
|
-
|
|
69
|
-
stateBorderColorChecked: 'accentBorderSecondary',
|
|
70
|
-
stateBorderColorDisabled: 'accentBorderSecondary',
|
|
71
|
-
stateBorderColorDisabledChecked: 'accentBorderSecondary',
|
|
72
|
-
stateBorderWidth: 1,
|
|
73
|
-
|
|
74
|
-
stateCheckmarkFill: 'accentItemPrimary',
|
|
75
|
-
|
|
76
|
-
stateCheckmarkFillDisabled: 'accentItemDisabled',
|
|
77
|
-
stateFillChecked: 'accentPrimary',
|
|
78
|
-
stateFillDisabled: 'accentDisabled',
|
|
79
|
-
stateFillDisabledChecked: 'accentDisabled',
|
|
80
|
-
stateShape: 'rounded',
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export const CheckedActive = {
|
|
85
|
-
args: {
|
|
86
|
-
...Default.args,
|
|
87
|
-
checked: true,
|
|
88
|
-
desc: 'Checked / Active',
|
|
89
|
-
disabled: false,
|
|
90
|
-
},
|
|
91
|
-
}
|
|
92
|
-
export const CheckedDisabled = {
|
|
93
|
-
args: {
|
|
94
|
-
...Default.args,
|
|
95
|
-
checked: true,
|
|
96
|
-
desc: 'Checked / Disabled',
|
|
97
|
-
disabled: true,
|
|
98
|
-
},
|
|
99
|
-
}
|
|
100
|
-
export const NotCheckedActive = {
|
|
101
|
-
args: {
|
|
102
|
-
...Default.args,
|
|
103
|
-
checked: false,
|
|
104
|
-
desc: 'Not Checked / Active',
|
|
105
|
-
disabled: false,
|
|
106
|
-
},
|
|
107
|
-
}
|
|
108
|
-
export const NotCheckedDisabled = {
|
|
109
|
-
args: {
|
|
110
|
-
...Default.args,
|
|
111
|
-
checked: false,
|
|
112
|
-
desc: 'Not Checked / Disabled',
|
|
113
|
-
disabled: true,
|
|
114
|
-
},
|
|
115
|
-
}
|
|
116
|
-
export const Dev = {
|
|
117
|
-
args: {
|
|
118
|
-
...Default.args,
|
|
119
|
-
appearance: 'dev',
|
|
120
|
-
checked: true,
|
|
121
|
-
desc: 'Checked / Active',
|
|
122
|
-
disabled: false,
|
|
123
|
-
},
|
|
124
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Icon } from '../../Icon'
|
|
2
|
-
import { Chips, chipsConfig } from '../Chips'
|
|
3
|
-
import { chipsAppearance } from '../Chips.appearance'
|
|
4
|
-
import { argTypes } from './args'
|
|
5
|
-
|
|
6
|
-
chipsConfig.setAppearance(chipsAppearance)
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
argTypes: {
|
|
10
|
-
...argTypes,
|
|
11
|
-
},
|
|
12
|
-
component: Chips,
|
|
13
|
-
parameters: {
|
|
14
|
-
controls: {
|
|
15
|
-
exclude: [
|
|
16
|
-
'borderDesktop',
|
|
17
|
-
'borderMobile',
|
|
18
|
-
'borderTablet',
|
|
19
|
-
'borderTypeDesktop',
|
|
20
|
-
'borderTypeMobile',
|
|
21
|
-
'borderTypeTablet',
|
|
22
|
-
'fillDesktop',
|
|
23
|
-
'fillMobile',
|
|
24
|
-
'fillTablet',
|
|
25
|
-
'fillHover',
|
|
26
|
-
'labelSizeDesktop',
|
|
27
|
-
'labelSizeMobile',
|
|
28
|
-
'labelSizeTablet',
|
|
29
|
-
'shapeDesktop',
|
|
30
|
-
'shapeMobile',
|
|
31
|
-
'shapeTablet',
|
|
32
|
-
'sizeDesktop',
|
|
33
|
-
'sizeMobile',
|
|
34
|
-
'sizeTablet',
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
title: 'Atoms / Chips ',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const Default = {
|
|
42
|
-
args: {
|
|
43
|
-
appearance: 'accent',
|
|
44
|
-
label: 'Chips',
|
|
45
|
-
labelTextSize: 'xxl',
|
|
46
|
-
shape: 'rounded',
|
|
47
|
-
size: 'xxl',
|
|
48
|
-
},
|
|
49
|
-
argTypes: {
|
|
50
|
-
appearance: {
|
|
51
|
-
control: 'inline-radio',
|
|
52
|
-
options: [
|
|
53
|
-
null,
|
|
54
|
-
'accent',
|
|
55
|
-
'primary',
|
|
56
|
-
'secondary',
|
|
57
|
-
'surfacePrimary',
|
|
58
|
-
'surfaceSecondary',
|
|
59
|
-
'surfaceTertiary',
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export const Accent = {
|
|
66
|
-
args: {
|
|
67
|
-
...Default.args,
|
|
68
|
-
children: <Icon iconFill="accentItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
69
|
-
appearance: 'accent',
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
export const Primary = {
|
|
73
|
-
args: {
|
|
74
|
-
...Default.args,
|
|
75
|
-
children: <Icon iconFill="primaryItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
76
|
-
appearance: 'primary',
|
|
77
|
-
},
|
|
78
|
-
}
|
|
79
|
-
export const Secondary = {
|
|
80
|
-
args: {
|
|
81
|
-
...Default.args,
|
|
82
|
-
children: <Icon iconFill="secondaryItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
83
|
-
appearance: 'secondary',
|
|
84
|
-
},
|
|
85
|
-
}
|
|
86
|
-
export const SurfacePrimary = {
|
|
87
|
-
args: {
|
|
88
|
-
...Default.args,
|
|
89
|
-
children: <Icon iconFill="surfaceItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
90
|
-
appearance: 'surfacePrimary',
|
|
91
|
-
},
|
|
92
|
-
}
|
|
93
|
-
export const SurfaceSecondary = {
|
|
94
|
-
args: {
|
|
95
|
-
...Default.args,
|
|
96
|
-
children: <Icon iconFill="surfaceItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
97
|
-
appearance: 'surfaceSecondary',
|
|
98
|
-
},
|
|
99
|
-
}
|
|
100
|
-
export const SurfaceTertiary = {
|
|
101
|
-
args: {
|
|
102
|
-
...Default.args,
|
|
103
|
-
children: <Icon iconFill="surfaceItemPrimary" imageSrc="assets/16/Remove.svg" size="16" />,
|
|
104
|
-
appearance: 'surfaceTertiary',
|
|
105
|
-
},
|
|
106
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
borderColorProps,
|
|
3
|
-
borderWidthProps,
|
|
4
|
-
fillHoverProps,
|
|
5
|
-
fillProps,
|
|
6
|
-
shapeProps,
|
|
7
|
-
textColorActiveProps,
|
|
8
|
-
textColorProps,
|
|
9
|
-
textSizeProps,
|
|
10
|
-
} from '../../../constants'
|
|
11
|
-
import { Choice } from '../Choice'
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
argTypes: {
|
|
15
|
-
borderWidth: {
|
|
16
|
-
control: 'inline-radio',
|
|
17
|
-
options: borderWidthProps,
|
|
18
|
-
},
|
|
19
|
-
borderColor: {
|
|
20
|
-
control: 'select',
|
|
21
|
-
options: borderColorProps,
|
|
22
|
-
},
|
|
23
|
-
advancedProps: { control: 'boolean' },
|
|
24
|
-
className: {
|
|
25
|
-
if: { arg: 'advancedProps' },
|
|
26
|
-
},
|
|
27
|
-
fill: {
|
|
28
|
-
control: 'select',
|
|
29
|
-
options: fillProps,
|
|
30
|
-
},
|
|
31
|
-
fillActive: {
|
|
32
|
-
control: 'select',
|
|
33
|
-
options: fillProps,
|
|
34
|
-
},
|
|
35
|
-
fillActiveHover: {
|
|
36
|
-
control: 'select',
|
|
37
|
-
options: fillHoverProps,
|
|
38
|
-
},
|
|
39
|
-
fillHover: {
|
|
40
|
-
control: 'select',
|
|
41
|
-
options: fillHoverProps,
|
|
42
|
-
},
|
|
43
|
-
labelTextActiveColor: {
|
|
44
|
-
control: 'select',
|
|
45
|
-
options: textColorActiveProps,
|
|
46
|
-
},
|
|
47
|
-
labelTextColor: {
|
|
48
|
-
control: 'select',
|
|
49
|
-
options: textColorProps,
|
|
50
|
-
},
|
|
51
|
-
labelTextSize: {
|
|
52
|
-
control: 'inline-radio',
|
|
53
|
-
options: textSizeProps,
|
|
54
|
-
},
|
|
55
|
-
name: {
|
|
56
|
-
if: { arg: 'advancedProps' },
|
|
57
|
-
},
|
|
58
|
-
setActiveSegment: {
|
|
59
|
-
if: { arg: 'advancedProps' },
|
|
60
|
-
},
|
|
61
|
-
shape: {
|
|
62
|
-
control: 'inline-radio',
|
|
63
|
-
options: shapeProps,
|
|
64
|
-
},
|
|
65
|
-
size: {
|
|
66
|
-
control: 'inline-radio',
|
|
67
|
-
options: ['tiny', 'compact', 'normal'],
|
|
68
|
-
},
|
|
69
|
-
type: {
|
|
70
|
-
if: { arg: 'advancedProps' },
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
component: Choice,
|
|
74
|
-
parameters: {
|
|
75
|
-
controls: {
|
|
76
|
-
exclude: [
|
|
77
|
-
'fill',
|
|
78
|
-
'icon',
|
|
79
|
-
'iconSize',
|
|
80
|
-
'iconItemFillHover',
|
|
81
|
-
'firstName',
|
|
82
|
-
'secondName',
|
|
83
|
-
'textColor',
|
|
84
|
-
'textSize',
|
|
85
|
-
'textWeight',
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
title: 'Atoms / Choice',
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export const Default = {
|
|
93
|
-
args: {
|
|
94
|
-
borderColor: 'surfaceBorderTertiary',
|
|
95
|
-
active: {
|
|
96
|
-
value: 1,
|
|
97
|
-
},
|
|
98
|
-
fill: 'surfacePrimary',
|
|
99
|
-
fillActive: 'surfacePrimaryActive',
|
|
100
|
-
fillActiveHover: 'surfacePrimaryActiveHover',
|
|
101
|
-
fillHover: 'surfacePrimaryHover',
|
|
102
|
-
labelTextActiveColor: 'surfaceTextPrimary',
|
|
103
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
104
|
-
labelTextSize: 'm',
|
|
105
|
-
options: [
|
|
106
|
-
{ label: 'Label 1', value: 1 },
|
|
107
|
-
{ label: 'Label 2', value: 2 },
|
|
108
|
-
{ label: 'Label 3', value: 3 },
|
|
109
|
-
{ label: 'Label 4', value: 4 },
|
|
110
|
-
{ label: 'Label 5', value: 5 },
|
|
111
|
-
],
|
|
112
|
-
shape: 'rounded',
|
|
113
|
-
size: 'normal',
|
|
114
|
-
},
|
|
115
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
borderColorHoverProps,
|
|
3
|
-
borderColorProps,
|
|
4
|
-
borderWidthProps,
|
|
5
|
-
fillProps,
|
|
6
|
-
textColorProps,
|
|
7
|
-
textSizeProps,
|
|
8
|
-
} from '../../../constants'
|
|
9
|
-
import { Code } from '../Code'
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
args: {
|
|
13
|
-
inputCount: 3,
|
|
14
|
-
},
|
|
15
|
-
argTypes: {
|
|
16
|
-
gap: {
|
|
17
|
-
control: { max: 100, min: 1, step: 1, type: 'number' },
|
|
18
|
-
},
|
|
19
|
-
advancedProps: { control: 'boolean' },
|
|
20
|
-
after: {
|
|
21
|
-
if: { arg: 'advancedProps' },
|
|
22
|
-
},
|
|
23
|
-
before: {
|
|
24
|
-
if: { arg: 'advancedProps' },
|
|
25
|
-
},
|
|
26
|
-
className: {
|
|
27
|
-
if: { arg: 'advancedProps' },
|
|
28
|
-
},
|
|
29
|
-
inputBorderColor: {
|
|
30
|
-
control: 'select',
|
|
31
|
-
options: borderColorProps,
|
|
32
|
-
},
|
|
33
|
-
inputBorderColorHover: {
|
|
34
|
-
control: 'inline-radio',
|
|
35
|
-
options: borderColorHoverProps,
|
|
36
|
-
},
|
|
37
|
-
inputBorderFocusColor: {
|
|
38
|
-
control: 'select',
|
|
39
|
-
options: borderColorProps,
|
|
40
|
-
},
|
|
41
|
-
inputBorderWidth: {
|
|
42
|
-
control: 'inline-radio',
|
|
43
|
-
options: borderWidthProps,
|
|
44
|
-
},
|
|
45
|
-
inputCaretColor: {
|
|
46
|
-
control: 'select',
|
|
47
|
-
options: textColorProps,
|
|
48
|
-
},
|
|
49
|
-
inputCount: {
|
|
50
|
-
control: { max: 12, min: 4, step: 1, type: 'number' },
|
|
51
|
-
},
|
|
52
|
-
inputFill: {
|
|
53
|
-
control: 'select',
|
|
54
|
-
options: fillProps,
|
|
55
|
-
},
|
|
56
|
-
inputFillHover: {
|
|
57
|
-
control: 'select',
|
|
58
|
-
options: fillProps,
|
|
59
|
-
},
|
|
60
|
-
inputPlaceholder: {
|
|
61
|
-
control: { max: 9, min: 0, step: 1, type: 'number' },
|
|
62
|
-
},
|
|
63
|
-
inputShape: {
|
|
64
|
-
control: 'inline-radio',
|
|
65
|
-
options: ['rounded', 'underline'],
|
|
66
|
-
},
|
|
67
|
-
inputSize: {
|
|
68
|
-
control: 'inline-radio',
|
|
69
|
-
options: ['normal', 'compact'],
|
|
70
|
-
},
|
|
71
|
-
inputTextColor: {
|
|
72
|
-
control: 'select',
|
|
73
|
-
options: textColorProps,
|
|
74
|
-
},
|
|
75
|
-
inputTextSize: {
|
|
76
|
-
control: 'inline-radio',
|
|
77
|
-
options: textSizeProps,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
component: Code,
|
|
81
|
-
parameters: {
|
|
82
|
-
controls: {
|
|
83
|
-
exclude: [
|
|
84
|
-
'inputBorderColorHover',
|
|
85
|
-
'inputBorderFocusColor',
|
|
86
|
-
'inputCaretColor',
|
|
87
|
-
'inputPlaceholder',
|
|
88
|
-
'inputType',
|
|
89
|
-
'value',
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
title: 'Atoms / Code',
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export const Default = {}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import { Group } from '../../Group'
|
|
4
|
-
import { Text } from '../../Text'
|
|
5
|
-
import { argTypes } from './args'
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
argTypes: {
|
|
9
|
-
...argTypes,
|
|
10
|
-
},
|
|
11
|
-
component: Group,
|
|
12
|
-
render: ({ ...args }) => (
|
|
13
|
-
<Group
|
|
14
|
-
width={args.width}
|
|
15
|
-
height={args.height}
|
|
16
|
-
fill={args.fill}
|
|
17
|
-
padding={args.padding}
|
|
18
|
-
borderColor={args.borderColor}
|
|
19
|
-
columns={args.columns}
|
|
20
|
-
direction={args.direction}
|
|
21
|
-
gap={args.gap}
|
|
22
|
-
>
|
|
23
|
-
<Group height="60" fill="accentPrimary" padding="20" textAlign="center">
|
|
24
|
-
<Text size="xl" textColor="accentTextPrimary">
|
|
25
|
-
1
|
|
26
|
-
</Text>
|
|
27
|
-
</Group>
|
|
28
|
-
<Group height="60" fill="primaryPrimary" padding="20" textAlign="center">
|
|
29
|
-
<Text size="xl" textColor="accentTextPrimary">
|
|
30
|
-
2
|
|
31
|
-
</Text>
|
|
32
|
-
</Group>
|
|
33
|
-
<Group height="60" fill="secondaryPrimary" padding="20" textAlign="center">
|
|
34
|
-
<Text size="xl" textColor="accentTextPrimary">
|
|
35
|
-
3
|
|
36
|
-
</Text>
|
|
37
|
-
</Group>
|
|
38
|
-
<Group height="60" fill="infoPrimary" padding="20" textAlign="center">
|
|
39
|
-
<Text size="xl" textColor="accentTextPrimary">
|
|
40
|
-
4
|
|
41
|
-
</Text>
|
|
42
|
-
</Group>
|
|
43
|
-
<Group height="60" fill="surfaceQuaternary" padding="20" textAlign="center">
|
|
44
|
-
<Text size="xl" textColor="accentTextPrimary">
|
|
45
|
-
5
|
|
46
|
-
</Text>
|
|
47
|
-
</Group>
|
|
48
|
-
</Group>
|
|
49
|
-
),
|
|
50
|
-
title: 'Layout / Group / Variants / Columns',
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const Default = {
|
|
54
|
-
width: '500',
|
|
55
|
-
padding: '20',
|
|
56
|
-
gap: 10,
|
|
57
|
-
borderColor: 'surfaceBorderPrimary',
|
|
58
|
-
fill: 'surfacePrimary',
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const TwoColumns = {
|
|
62
|
-
args: {
|
|
63
|
-
...Default.args,
|
|
64
|
-
columns: 2,
|
|
65
|
-
},
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const ThreeColumns = {
|
|
69
|
-
args: {
|
|
70
|
-
...Default.args,
|
|
71
|
-
columns: 3,
|
|
72
|
-
},
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export const FiveColumns = {
|
|
76
|
-
args: {
|
|
77
|
-
...Default.args,
|
|
78
|
-
columns: 5,
|
|
79
|
-
},
|
|
80
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react'
|
|
2
|
-
|
|
3
|
-
import { defaultDatepickerProps, defaultInputProps } from '../../../config/forms'
|
|
4
|
-
import {
|
|
5
|
-
fillProps,
|
|
6
|
-
iconSizeProps,
|
|
7
|
-
textColorHoverProps,
|
|
8
|
-
textColorProps,
|
|
9
|
-
textSizeProps,
|
|
10
|
-
} from '../../../constants'
|
|
11
|
-
// import { icon16 } from '../../../___icons'
|
|
12
|
-
import { Button } from '../../Button'
|
|
13
|
-
import { DatePickerInput } from '../DatePicker'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
args: {
|
|
17
|
-
clearLabel: '',
|
|
18
|
-
clearLabelTextColor: 'surfaceTextPrimary',
|
|
19
|
-
clearLabelTextColorHover: 'surfaceTextPrimaryHover',
|
|
20
|
-
clearLabelTextSize: 'm',
|
|
21
|
-
datePickerProps: {
|
|
22
|
-
...defaultDatepickerProps,
|
|
23
|
-
isClearable: true,
|
|
24
|
-
isStartDefaultNull: true,
|
|
25
|
-
readOnly: false,
|
|
26
|
-
onKeyDown: (e) => {
|
|
27
|
-
e.preventDefault()
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
inputProps: defaultInputProps,
|
|
31
|
-
},
|
|
32
|
-
argTypes: {
|
|
33
|
-
clearIconItemFill: {
|
|
34
|
-
control: 'select',
|
|
35
|
-
if: { arg: 'clearIconSrc', neq: null },
|
|
36
|
-
options: fillProps,
|
|
37
|
-
},
|
|
38
|
-
clearIconSize: {
|
|
39
|
-
control: 'inline-radio',
|
|
40
|
-
if: { arg: 'clearIconSrc', neq: null },
|
|
41
|
-
options: iconSizeProps,
|
|
42
|
-
},
|
|
43
|
-
clearIconSrc: {
|
|
44
|
-
control: 'inline-radio',
|
|
45
|
-
options: [null, 'assets/16/Clear.svg'],
|
|
46
|
-
},
|
|
47
|
-
clearLabelTextColor: {
|
|
48
|
-
control: 'select',
|
|
49
|
-
if: { arg: 'clearLabel', neq: '' },
|
|
50
|
-
options: textColorProps,
|
|
51
|
-
},
|
|
52
|
-
clearLabelTextColorHover: {
|
|
53
|
-
control: 'select',
|
|
54
|
-
if: { arg: 'clearLabel', neq: '' },
|
|
55
|
-
options: textColorHoverProps,
|
|
56
|
-
},
|
|
57
|
-
clearLabelTextSize: {
|
|
58
|
-
control: 'select',
|
|
59
|
-
if: { arg: 'clearLabel', neq: '' },
|
|
60
|
-
options: textSizeProps,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
component: (props) => {
|
|
64
|
-
const [value, setValue] = useState(undefined)
|
|
65
|
-
return <DatePickerInput {...props} value={value} onChange={setValue} />
|
|
66
|
-
},
|
|
67
|
-
parameters: {
|
|
68
|
-
docs: {
|
|
69
|
-
story: {
|
|
70
|
-
iframeHeight: 900,
|
|
71
|
-
inline: false,
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
title: 'Molecules / DatePicker',
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export const Default = {
|
|
79
|
-
args: {},
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export const Date = {
|
|
83
|
-
args: {
|
|
84
|
-
datePickerProps: defaultDatepickerProps,
|
|
85
|
-
},
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export const ClearIcon = {
|
|
89
|
-
args: {
|
|
90
|
-
clearIcon: icon16.Clear,
|
|
91
|
-
clearIconItemFill: 'surfaceItemTertiary',
|
|
92
|
-
clearIconItemFillHover: 'surfaceItemPrimary',
|
|
93
|
-
clearIconSize: 16,
|
|
94
|
-
datePickerProps: {
|
|
95
|
-
...defaultDatepickerProps,
|
|
96
|
-
isClearable: true,
|
|
97
|
-
isStartDefaultNull: true,
|
|
98
|
-
readOnly: false,
|
|
99
|
-
onKeyDown: (e) => {
|
|
100
|
-
e.preventDefault()
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export const ClearLabel = {
|
|
107
|
-
args: {
|
|
108
|
-
clearLabel: 'Clear',
|
|
109
|
-
clearLabelTextColor: 'surfaceTextPrimary',
|
|
110
|
-
clearLabelTextColorHover: 'surfaceTextAccent',
|
|
111
|
-
clearLabelTextSize: 'm',
|
|
112
|
-
datePickerProps: {
|
|
113
|
-
...defaultDatepickerProps,
|
|
114
|
-
isClearable: true,
|
|
115
|
-
isStartDefaultNull: true,
|
|
116
|
-
readOnly: false,
|
|
117
|
-
onKeyDown: (e) => {
|
|
118
|
-
e.preventDefault()
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export const DateTime = {
|
|
125
|
-
args: {
|
|
126
|
-
datePickerProps: {
|
|
127
|
-
...defaultDatepickerProps,
|
|
128
|
-
dateFormat: 'dd-MM-yyyy hh:mm',
|
|
129
|
-
showTimeSelect: true,
|
|
130
|
-
timeCaption: 'Время',
|
|
131
|
-
timeFormat: 'p',
|
|
132
|
-
timeIntervals: 15,
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export const DateMultiple = {
|
|
138
|
-
args: {
|
|
139
|
-
datePickerProps: {
|
|
140
|
-
...defaultDatepickerProps,
|
|
141
|
-
monthsShown: 2,
|
|
142
|
-
placeholderText: 'Start – End (m/d/yyyy)',
|
|
143
|
-
selectsRange: true,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export const DateButton = {
|
|
149
|
-
args: {
|
|
150
|
-
datePickerProps: {
|
|
151
|
-
...defaultDatepickerProps,
|
|
152
|
-
customTimeInput: (
|
|
153
|
-
<Button
|
|
154
|
-
width="fill"
|
|
155
|
-
labelTextSize="l"
|
|
156
|
-
appearance="accent"
|
|
157
|
-
label="OK"
|
|
158
|
-
shape="rounded"
|
|
159
|
-
size="xl"
|
|
160
|
-
/>
|
|
161
|
-
),
|
|
162
|
-
dateFormat: 'dd-MM-yyyy hh:mm',
|
|
163
|
-
showTimeInput: true,
|
|
164
|
-
showTimeSelect: true,
|
|
165
|
-
timeCaption: 'Время',
|
|
166
|
-
timeFormat: 'p',
|
|
167
|
-
timeInputLabel: null,
|
|
168
|
-
timeIntervals: 15,
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
}
|