@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,333 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
borderColorHoverProps,
|
|
3
|
-
borderColorProps,
|
|
4
|
-
fillHoverProps,
|
|
5
|
-
fillProps,
|
|
6
|
-
sizeProps,
|
|
7
|
-
textColorProps,
|
|
8
|
-
textSizeProps,
|
|
9
|
-
} from '../../../constants'
|
|
10
|
-
import { Button } from '../../Button'
|
|
11
|
-
import { Loader } from '../../Loader'
|
|
12
|
-
import { Select } from '../index'
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
args: {
|
|
16
|
-
elevation: 8,
|
|
17
|
-
isClearable: true,
|
|
18
|
-
isMulti: false,
|
|
19
|
-
isSearchable: false,
|
|
20
|
-
badgeAppearance: 'accent',
|
|
21
|
-
badgeSize: 'm',
|
|
22
|
-
badgeTextSize: 'm',
|
|
23
|
-
// clearIcon: icon24.Clear,
|
|
24
|
-
clearIconFill: 'surfaceItemPrimary',
|
|
25
|
-
closeMenuOnSelect: true,
|
|
26
|
-
dividerDirection: 'horizontal',
|
|
27
|
-
// optionSelected: <Icon iconFill="surfaceItemAccent" SvgImage={icon24.Check} />,
|
|
28
|
-
|
|
29
|
-
dividerFill: 'surfaceTertiary',
|
|
30
|
-
dividerSize: 'xxs',
|
|
31
|
-
// dropdownIcon: icon24.ChevronDownSmall,
|
|
32
|
-
dropdownIconFill: 'surfaceItemPrimary',
|
|
33
|
-
// error
|
|
34
|
-
errorInputBorderColor: 'errorBorderPrimary',
|
|
35
|
-
headingFill: 'surfaceSecondary',
|
|
36
|
-
headingTextColor: 'surfaceTextPrimary',
|
|
37
|
-
headingTextSize: 'm',
|
|
38
|
-
|
|
39
|
-
headingTextWeight: '600',
|
|
40
|
-
hideSelectedOptions: false,
|
|
41
|
-
inputBorderColor: 'surfaceBorderTertiary',
|
|
42
|
-
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
43
|
-
inputCaretColor: 'secondaryItemPrimary',
|
|
44
|
-
|
|
45
|
-
inputFill: 'surfacePrimary',
|
|
46
|
-
|
|
47
|
-
inputShape: 'rounded',
|
|
48
|
-
inputTextColor: 'surfaceTextPrimary',
|
|
49
|
-
inputTextSize: 'm',
|
|
50
|
-
loadingMessage: (
|
|
51
|
-
<Loader
|
|
52
|
-
width="fill"
|
|
53
|
-
height="fill"
|
|
54
|
-
fill="surfacePrimary"
|
|
55
|
-
position="absolute"
|
|
56
|
-
left="0px"
|
|
57
|
-
right="0px"
|
|
58
|
-
zIndex="1"
|
|
59
|
-
itemFill="surfaceItemAccent"
|
|
60
|
-
set="simple"
|
|
61
|
-
/>
|
|
62
|
-
),
|
|
63
|
-
|
|
64
|
-
menuItemSize: 'l',
|
|
65
|
-
multipleItemFill: 'accentPrimary',
|
|
66
|
-
multipleItemFillHover: 'accentPrimaryHover',
|
|
67
|
-
// multipleItemIcon: icon14.Remove,
|
|
68
|
-
multipleItemIconFill: 'accentItemPrimary',
|
|
69
|
-
multipleItemTextColor: 'accentTextPrimary',
|
|
70
|
-
|
|
71
|
-
multipleItemTextSize: 'm',
|
|
72
|
-
|
|
73
|
-
noOptionsSearchText: 'Ничего не найдено...',
|
|
74
|
-
noOptionsText: (
|
|
75
|
-
<Loader
|
|
76
|
-
width="fill"
|
|
77
|
-
height="fill"
|
|
78
|
-
fill="surfacePrimary"
|
|
79
|
-
position="absolute"
|
|
80
|
-
left="0px"
|
|
81
|
-
right="0px"
|
|
82
|
-
zIndex="1"
|
|
83
|
-
itemFill="surfaceItemAccent"
|
|
84
|
-
set="simple"
|
|
85
|
-
/>
|
|
86
|
-
),
|
|
87
|
-
noOptionsTextColor: 'surfaceTextPrimary',
|
|
88
|
-
noOptionsTextSize: 'm',
|
|
89
|
-
|
|
90
|
-
optionBorder: 'none',
|
|
91
|
-
optionFill: 'surfacePrimary',
|
|
92
|
-
optionFillHover: 'surfacePrimaryHover',
|
|
93
|
-
options: [
|
|
94
|
-
{ label: 'Завершены', value: 'completed' },
|
|
95
|
-
{ label: 'Идут торги', value: 'active' },
|
|
96
|
-
{ label: 'Остановлены', value: 'stopped' },
|
|
97
|
-
{ label: 'Отменены', value: 'canceled' },
|
|
98
|
-
{ label: 'Планируемые', value: 'planned' },
|
|
99
|
-
{ label: 'Продолжены', value: 'continued' },
|
|
100
|
-
],
|
|
101
|
-
optionShape: 'rounded',
|
|
102
|
-
|
|
103
|
-
optionTextColor: 'surfaceTextPrimary',
|
|
104
|
-
optionTextSize: 'l',
|
|
105
|
-
placeholder: 'Выбрать...',
|
|
106
|
-
|
|
107
|
-
placeholderTextColor: 'surfaceTextQuaternary',
|
|
108
|
-
|
|
109
|
-
placeholderTextSize: 'm',
|
|
110
|
-
// appearance depending on the type of error
|
|
111
|
-
// required
|
|
112
|
-
requiredInputBorderColor: 'warningBorderPrimary',
|
|
113
|
-
showBadge: false,
|
|
114
|
-
showDivider: false,
|
|
115
|
-
|
|
116
|
-
size: 'm',
|
|
117
|
-
},
|
|
118
|
-
argTypes: {
|
|
119
|
-
elevation: {
|
|
120
|
-
control: 'inline-radio',
|
|
121
|
-
options: [1, 2, 4, 6, 8, 12, 16, 24],
|
|
122
|
-
},
|
|
123
|
-
isClearable: {
|
|
124
|
-
control: 'boolean',
|
|
125
|
-
},
|
|
126
|
-
isMulti: {
|
|
127
|
-
control: 'boolean',
|
|
128
|
-
},
|
|
129
|
-
isSearchable: {
|
|
130
|
-
control: 'boolean',
|
|
131
|
-
},
|
|
132
|
-
advancedProps: { control: 'boolean' },
|
|
133
|
-
className: {
|
|
134
|
-
if: { arg: 'advancedProps' },
|
|
135
|
-
},
|
|
136
|
-
clearIcon: {
|
|
137
|
-
if: { arg: 'isClearable', eq: true },
|
|
138
|
-
},
|
|
139
|
-
clearIconFill: {
|
|
140
|
-
control: 'select',
|
|
141
|
-
if: { arg: 'isClearable', eq: true },
|
|
142
|
-
options: fillProps,
|
|
143
|
-
},
|
|
144
|
-
closeMenuOnSelect: {
|
|
145
|
-
control: 'boolean',
|
|
146
|
-
},
|
|
147
|
-
dividerDirection: {
|
|
148
|
-
if: { arg: 'advancedProps' },
|
|
149
|
-
},
|
|
150
|
-
dividerFill: {
|
|
151
|
-
control: 'select',
|
|
152
|
-
options: fillProps,
|
|
153
|
-
},
|
|
154
|
-
dividerSize: {
|
|
155
|
-
control: 'inline-radio',
|
|
156
|
-
options: sizeProps,
|
|
157
|
-
},
|
|
158
|
-
dropdownIconFill: {
|
|
159
|
-
control: 'select',
|
|
160
|
-
options: fillProps,
|
|
161
|
-
},
|
|
162
|
-
hideSelectedOptions: {
|
|
163
|
-
control: 'boolean',
|
|
164
|
-
},
|
|
165
|
-
hideValueContainer: {
|
|
166
|
-
control: 'boolean',
|
|
167
|
-
},
|
|
168
|
-
inputAfter: {
|
|
169
|
-
if: { arg: 'advancedProps' },
|
|
170
|
-
},
|
|
171
|
-
inputBefore: {
|
|
172
|
-
if: { arg: 'advancedProps' },
|
|
173
|
-
},
|
|
174
|
-
inputBorderColor: {
|
|
175
|
-
control: 'select',
|
|
176
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
177
|
-
options: borderColorProps,
|
|
178
|
-
},
|
|
179
|
-
inputBorderColorHover: {
|
|
180
|
-
control: 'select',
|
|
181
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
182
|
-
options: borderColorHoverProps,
|
|
183
|
-
},
|
|
184
|
-
inputFill: {
|
|
185
|
-
control: 'select',
|
|
186
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
187
|
-
options: fillProps,
|
|
188
|
-
},
|
|
189
|
-
inputTextColor: {
|
|
190
|
-
control: 'select',
|
|
191
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
192
|
-
options: textColorProps,
|
|
193
|
-
},
|
|
194
|
-
inputTextSize: {
|
|
195
|
-
control: 'inline-radio',
|
|
196
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
197
|
-
options: textSizeProps,
|
|
198
|
-
},
|
|
199
|
-
menuItemSize: {
|
|
200
|
-
control: 'inline-radio',
|
|
201
|
-
options: ['xs', 's', 'm', 'l', 'xl', 'xxl'],
|
|
202
|
-
},
|
|
203
|
-
multipleItemFill: {
|
|
204
|
-
control: 'select',
|
|
205
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
206
|
-
options: fillProps,
|
|
207
|
-
},
|
|
208
|
-
multipleItemFillHover: {
|
|
209
|
-
control: 'select',
|
|
210
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
211
|
-
options: fillHoverProps,
|
|
212
|
-
},
|
|
213
|
-
multipleItemIcon: {
|
|
214
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
215
|
-
},
|
|
216
|
-
multipleItemIconFill: {
|
|
217
|
-
control: 'select',
|
|
218
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
219
|
-
options: fillProps,
|
|
220
|
-
},
|
|
221
|
-
multipleItemTextColor: {
|
|
222
|
-
control: 'select',
|
|
223
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
224
|
-
options: textColorProps,
|
|
225
|
-
},
|
|
226
|
-
multipleItemTextSize: {
|
|
227
|
-
control: 'inline-radio',
|
|
228
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
229
|
-
options: textSizeProps,
|
|
230
|
-
},
|
|
231
|
-
noOptionsTextColor: {
|
|
232
|
-
control: 'select',
|
|
233
|
-
options: textColorProps,
|
|
234
|
-
},
|
|
235
|
-
noOptionsTextSize: {
|
|
236
|
-
control: 'inline-radio',
|
|
237
|
-
options: textSizeProps,
|
|
238
|
-
},
|
|
239
|
-
optionFill: {
|
|
240
|
-
control: 'select',
|
|
241
|
-
options: fillProps,
|
|
242
|
-
},
|
|
243
|
-
optionTextColor: {
|
|
244
|
-
control: 'select',
|
|
245
|
-
options: textColorProps,
|
|
246
|
-
},
|
|
247
|
-
optionTextSize: {
|
|
248
|
-
control: 'inline-radio',
|
|
249
|
-
options: textSizeProps,
|
|
250
|
-
},
|
|
251
|
-
placeholder: {
|
|
252
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
253
|
-
},
|
|
254
|
-
placeholderTextColor: {
|
|
255
|
-
control: 'select',
|
|
256
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
257
|
-
options: textColorProps,
|
|
258
|
-
},
|
|
259
|
-
placeholderTextSize: {
|
|
260
|
-
control: 'inline-radio',
|
|
261
|
-
if: { arg: 'hideValueContainer', neq: true },
|
|
262
|
-
options: textSizeProps,
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
component: Select,
|
|
266
|
-
parameters: {
|
|
267
|
-
controls: {
|
|
268
|
-
exclude: [
|
|
269
|
-
'optionShape',
|
|
270
|
-
'inputCaretColor',
|
|
271
|
-
'inputShape',
|
|
272
|
-
'animationOpen',
|
|
273
|
-
'animationClose',
|
|
274
|
-
'optionFillHover',
|
|
275
|
-
'headingFill',
|
|
276
|
-
'headingTextColor',
|
|
277
|
-
'headingTextSize',
|
|
278
|
-
'headingTextWeight',
|
|
279
|
-
'filterOption',
|
|
280
|
-
'initialValue',
|
|
281
|
-
'set',
|
|
282
|
-
'onChange',
|
|
283
|
-
'openMenuOnClick',
|
|
284
|
-
],
|
|
285
|
-
},
|
|
286
|
-
docs: {
|
|
287
|
-
story: {
|
|
288
|
-
iframeHeight: 800,
|
|
289
|
-
inline: false,
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
title: 'Atoms / Select',
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export const Default = {
|
|
297
|
-
args: {},
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export const WithSearch = {
|
|
301
|
-
args: {
|
|
302
|
-
...Default.args,
|
|
303
|
-
isSearchable: true,
|
|
304
|
-
},
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export const Multi = {
|
|
308
|
-
args: {
|
|
309
|
-
...Default.args,
|
|
310
|
-
isMulti: true,
|
|
311
|
-
},
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export const NoInput = {
|
|
315
|
-
args: {
|
|
316
|
-
...Default.args,
|
|
317
|
-
isClearable: false,
|
|
318
|
-
isMulti: true,
|
|
319
|
-
// dropdownIcon: icon16.Filter,
|
|
320
|
-
hideValueContainer: true,
|
|
321
|
-
menuAfter: (
|
|
322
|
-
<Button
|
|
323
|
-
width="fill"
|
|
324
|
-
labelTextSize="m"
|
|
325
|
-
appearance="surfaceSecondary"
|
|
326
|
-
label="Очистить"
|
|
327
|
-
size="l"
|
|
328
|
-
/>
|
|
329
|
-
),
|
|
330
|
-
showDivider: true,
|
|
331
|
-
size: 'none',
|
|
332
|
-
},
|
|
333
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { badgeAppearance, badgeConfig } from '../../Badge'
|
|
2
|
-
import { Tab, tabConfig } from '../Tab'
|
|
3
|
-
import { tabAppearance } from '../Tab.appearance'
|
|
4
|
-
import { argTypes } from './args'
|
|
5
|
-
|
|
6
|
-
badgeConfig.setAppearance(badgeAppearance)
|
|
7
|
-
tabConfig.setAppearance(tabAppearance)
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
argTypes: {
|
|
11
|
-
...argTypes,
|
|
12
|
-
},
|
|
13
|
-
component: Tab,
|
|
14
|
-
parameters: {
|
|
15
|
-
controls: {
|
|
16
|
-
exclude: [
|
|
17
|
-
'fillDesktop',
|
|
18
|
-
'fillMobile',
|
|
19
|
-
'fillTablet',
|
|
20
|
-
'linkFillDesktop',
|
|
21
|
-
'linkFillMobile',
|
|
22
|
-
'linkFillTablet',
|
|
23
|
-
'shapeDesktop',
|
|
24
|
-
'shapeMobile',
|
|
25
|
-
'shapeTablet',
|
|
26
|
-
'sizeDesktop',
|
|
27
|
-
'sizeMobile',
|
|
28
|
-
'sizeTablet',
|
|
29
|
-
'typeDesktop',
|
|
30
|
-
'typeMobile',
|
|
31
|
-
'typeTablet',
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
title: 'Atoms / Tab / Size',
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export const Default = {
|
|
39
|
-
args: {
|
|
40
|
-
appearance: 'primary',
|
|
41
|
-
badge: true,
|
|
42
|
-
badgeAppearance: 'accent',
|
|
43
|
-
badgeSize: 'xs',
|
|
44
|
-
badgeTextSize: 'xs',
|
|
45
|
-
badgeValue: '3',
|
|
46
|
-
label: 'Label',
|
|
47
|
-
labelTextSize: 'm',
|
|
48
|
-
size: 'm',
|
|
49
|
-
},
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const SizeXXS = {
|
|
53
|
-
args: {
|
|
54
|
-
...Default.args,
|
|
55
|
-
size: 'xxs',
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const SizeXS = {
|
|
60
|
-
args: {
|
|
61
|
-
...Default.args,
|
|
62
|
-
size: 'xs',
|
|
63
|
-
},
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export const SizeS = {
|
|
67
|
-
args: {
|
|
68
|
-
...Default.args,
|
|
69
|
-
size: 's',
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export const SizeM = {
|
|
74
|
-
args: {
|
|
75
|
-
...Default.args,
|
|
76
|
-
size: 'm',
|
|
77
|
-
},
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const SizeL = {
|
|
81
|
-
args: {
|
|
82
|
-
...Default.args,
|
|
83
|
-
size: 'l',
|
|
84
|
-
},
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export const SizeXL = {
|
|
88
|
-
args: {
|
|
89
|
-
...Default.args,
|
|
90
|
-
size: 'xl',
|
|
91
|
-
},
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export const SizeXXL = {
|
|
95
|
-
args: {
|
|
96
|
-
...Default.args,
|
|
97
|
-
size: 'xxl',
|
|
98
|
-
},
|
|
99
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { badgeAppearance, badgeConfig } from '../../Badge'
|
|
2
|
-
import { Tab, tabConfig } from '../Tab'
|
|
3
|
-
import { tabAppearance } from '../Tab.appearance'
|
|
4
|
-
import { argTypes } from './args'
|
|
5
|
-
|
|
6
|
-
badgeConfig.setAppearance(badgeAppearance)
|
|
7
|
-
tabConfig.setAppearance(tabAppearance)
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
args: {
|
|
11
|
-
badge: true,
|
|
12
|
-
badgeAppearance: 'accent',
|
|
13
|
-
badgeSize: 'xs',
|
|
14
|
-
badgeTextSize: 'xs',
|
|
15
|
-
badgeValue: '3',
|
|
16
|
-
label: 'Label',
|
|
17
|
-
labelTextSize: 'm',
|
|
18
|
-
size: 'normal',
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
...argTypes,
|
|
22
|
-
},
|
|
23
|
-
component: Tab,
|
|
24
|
-
parameters: {
|
|
25
|
-
controls: {
|
|
26
|
-
exclude: [
|
|
27
|
-
'fillDesktop',
|
|
28
|
-
'fillMobile',
|
|
29
|
-
'fillTablet',
|
|
30
|
-
'linkFillDesktop',
|
|
31
|
-
'linkFillMobile',
|
|
32
|
-
'linkFillTablet',
|
|
33
|
-
'shapeDesktop',
|
|
34
|
-
'shapeMobile',
|
|
35
|
-
'shapeTablet',
|
|
36
|
-
'sizeDesktop',
|
|
37
|
-
'sizeMobile',
|
|
38
|
-
'sizeTablet',
|
|
39
|
-
'typeDesktop',
|
|
40
|
-
'typeMobile',
|
|
41
|
-
'typeTablet',
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
title: 'Atoms / Tab / State',
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const Normal = {
|
|
49
|
-
args: {
|
|
50
|
-
appearance: 'any',
|
|
51
|
-
},
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const Active = {
|
|
55
|
-
args: {
|
|
56
|
-
isActive: true,
|
|
57
|
-
appearance: 'surfacePrimary',
|
|
58
|
-
},
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const Disabled = {
|
|
62
|
-
args: {
|
|
63
|
-
isDisabled: true,
|
|
64
|
-
appearance: 'surfacePrimary',
|
|
65
|
-
badgeAppearance: 'disabled',
|
|
66
|
-
},
|
|
67
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Switch } from '../Switch'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
argTypes: {
|
|
5
|
-
id: {
|
|
6
|
-
if: { arg: 'advancedProps' },
|
|
7
|
-
},
|
|
8
|
-
advancedProps: { control: 'boolean' },
|
|
9
|
-
checked: {
|
|
10
|
-
control: 'boolean',
|
|
11
|
-
},
|
|
12
|
-
className: {
|
|
13
|
-
if: { arg: 'advancedProps' },
|
|
14
|
-
},
|
|
15
|
-
disabled: {
|
|
16
|
-
control: 'boolean',
|
|
17
|
-
},
|
|
18
|
-
set: {
|
|
19
|
-
if: { arg: 'advancedProps' },
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
control: 'inline-radio',
|
|
23
|
-
options: ['normal', 'compact'],
|
|
24
|
-
},
|
|
25
|
-
onChange: {
|
|
26
|
-
if: { arg: 'advancedProps' },
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
component: Switch,
|
|
30
|
-
title: 'Atoms / Switch ',
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const Default = {
|
|
34
|
-
args: {
|
|
35
|
-
checked: false,
|
|
36
|
-
disabled: false,
|
|
37
|
-
size: 'normal',
|
|
38
|
-
},
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const Active = {
|
|
42
|
-
args: {
|
|
43
|
-
...Default.args,
|
|
44
|
-
checked: false,
|
|
45
|
-
disabled: false,
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
export const ActiveChecked = {
|
|
49
|
-
args: {
|
|
50
|
-
...Default.args,
|
|
51
|
-
checked: true,
|
|
52
|
-
disabled: false,
|
|
53
|
-
},
|
|
54
|
-
}
|
|
55
|
-
export const Disabled = {
|
|
56
|
-
args: {
|
|
57
|
-
...Default.args,
|
|
58
|
-
checked: false,
|
|
59
|
-
disabled: true,
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
export const DisabledChecked = {
|
|
63
|
-
args: {
|
|
64
|
-
...Default.args,
|
|
65
|
-
checked: true,
|
|
66
|
-
disabled: true,
|
|
67
|
-
},
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export const Normal = {
|
|
71
|
-
args: {
|
|
72
|
-
checked: true,
|
|
73
|
-
disabled: false,
|
|
74
|
-
size: 'normal',
|
|
75
|
-
},
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export const Compact = {
|
|
79
|
-
args: {
|
|
80
|
-
checked: true,
|
|
81
|
-
disabled: false,
|
|
82
|
-
size: 'compact',
|
|
83
|
-
},
|
|
84
|
-
}
|