pds-dev-kit-web-test 0.2.23 → 0.2.24
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/README.md +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -3
- package/dist/src/common/assets/icons/fill/Accordion.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Accordion.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignBottom.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignBottom.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignCenter.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignCenter.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignLeft.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignMiddle.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignMiddle.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignRight.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignRight.js +30 -0
- package/dist/src/common/assets/icons/fill/AlignTop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/AlignTop.js +30 -0
- package/dist/src/common/assets/icons/fill/ArrowDownStepper.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowDownStepper.js +30 -0
- package/dist/src/common/assets/icons/fill/ArrowRoundLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowRoundLeft.js +30 -0
- package/dist/src/common/assets/icons/fill/ArrowUpStepper.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowUpStepper.js +30 -0
- package/dist/src/common/assets/icons/fill/Audio.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Audio.js +30 -0
- package/dist/src/common/assets/icons/fill/Button.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Button.js +30 -0
- package/dist/src/common/assets/icons/fill/Calendar.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Calendar.js +30 -0
- package/dist/src/common/assets/icons/fill/Carousel.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Carousel.js +30 -0
- package/dist/src/common/assets/icons/fill/Copy.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Copy.js +30 -0
- package/dist/src/common/assets/icons/fill/DeviceApp.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DeviceApp.js +30 -0
- package/dist/src/common/assets/icons/fill/DeviceDesktop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DeviceDesktop.js +30 -0
- package/dist/src/common/assets/icons/fill/DeviceMobile.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DeviceMobile.js +30 -0
- package/dist/src/common/assets/icons/fill/Divider.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Divider.js +30 -0
- package/dist/src/common/assets/icons/fill/Download.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Download.js +30 -0
- package/dist/src/common/assets/icons/fill/EditorLeftSide.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/EditorLeftSide.js +30 -0
- package/dist/src/common/assets/icons/fill/EditorRightSide.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/EditorRightSide.js +30 -0
- package/dist/src/common/assets/icons/fill/Embed.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Embed.js +30 -0
- package/dist/src/common/assets/icons/fill/Icon.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Icon.js +30 -0
- package/dist/src/common/assets/icons/fill/Image.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Image.js +30 -0
- package/dist/src/common/assets/icons/fill/Information.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Information.js +30 -0
- package/dist/src/common/assets/icons/fill/Item.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Item.js +30 -0
- package/dist/src/common/assets/icons/fill/LayerBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LayerBackward.js +30 -0
- package/dist/src/common/assets/icons/fill/LayerForward.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LayerForward.js +30 -0
- package/dist/src/common/assets/icons/fill/Layout.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Layout.js +30 -0
- package/dist/src/common/assets/icons/fill/LightBulb.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LightBulb.js +30 -0
- package/dist/src/common/assets/icons/fill/Lightning.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Lightning.js +30 -0
- package/dist/src/common/assets/icons/fill/Links.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Links.js +30 -0
- package/dist/src/common/assets/icons/fill/List.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/List.js +30 -0
- package/dist/src/common/assets/icons/fill/LogoInsta.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LogoInsta.js +30 -0
- package/dist/src/common/assets/icons/fill/LogoTwitter.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LogoTwitter.js +30 -0
- package/dist/src/common/assets/icons/fill/LogoYt.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/LogoYt.js +30 -0
- package/dist/src/common/assets/icons/fill/MenuDesign.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MenuDesign.js +30 -0
- package/dist/src/common/assets/icons/fill/MinusCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MinusCircle.js +30 -0
- package/dist/src/common/assets/icons/fill/Moon.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Moon.js +30 -0
- package/dist/src/common/assets/icons/fill/Paint.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Paint.js +30 -0
- package/dist/src/common/assets/icons/fill/Palette.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Palette.js +30 -0
- package/dist/src/common/assets/icons/fill/PlusCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PlusCircle.js +30 -0
- package/dist/src/common/assets/icons/fill/PlusRound.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PlusRound.js +30 -0
- package/dist/src/common/assets/icons/fill/PostInquiry.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/PostInquiry.js +30 -0
- package/dist/src/common/assets/icons/fill/Richtext.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Richtext.js +30 -0
- package/dist/src/common/assets/icons/fill/ScrollingText.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ScrollingText.js +30 -0
- package/dist/src/common/assets/icons/fill/SellerPage.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/SellerPage.js +30 -0
- package/dist/src/common/assets/icons/fill/Setting.js +1 -1
- package/dist/src/common/assets/icons/fill/Shape.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Shape.js +30 -0
- package/dist/src/common/assets/icons/fill/Slider.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Slider.js +30 -0
- package/dist/src/common/assets/icons/fill/Text.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Text.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignBottom.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignBottom.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignCenter.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignCenter.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignLeft.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignMiddle.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignMiddle.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignRight.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignRight.js +30 -0
- package/dist/src/common/assets/icons/fill/TextAlignTop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/TextAlignTop.js +30 -0
- package/dist/src/common/assets/icons/fill/Trashcan.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Trashcan.js +30 -0
- package/dist/src/common/assets/icons/fill/Unavailable.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Unavailable.js +30 -0
- package/dist/src/common/assets/icons/fill/Upload.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Upload.js +30 -0
- package/dist/src/common/assets/icons/fill/VideoType.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoType.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +61 -0
- package/dist/src/common/assets/icons/fill/index.js +122 -0
- package/dist/src/common/assets/icons/line/Accordion.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Accordion.js +30 -0
- package/dist/src/common/assets/icons/line/AlignBottom.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignBottom.js +30 -0
- package/dist/src/common/assets/icons/line/AlignCenter.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignCenter.js +30 -0
- package/dist/src/common/assets/icons/line/AlignLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignLeft.js +30 -0
- package/dist/src/common/assets/icons/line/AlignMiddle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignMiddle.js +30 -0
- package/dist/src/common/assets/icons/line/AlignRight.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignRight.js +30 -0
- package/dist/src/common/assets/icons/line/AlignTop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/AlignTop.js +30 -0
- package/dist/src/common/assets/icons/line/ArrowRoundLeft.js +1 -1
- package/dist/src/common/assets/icons/line/Audio.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Audio.js +30 -0
- package/dist/src/common/assets/icons/line/Button.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Button.js +30 -0
- package/dist/src/common/assets/icons/line/Calendar.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Calendar.js +30 -0
- package/dist/src/common/assets/icons/line/Carousel.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Carousel.js +30 -0
- package/dist/src/common/assets/icons/line/ChannelSetting.js +1 -1
- package/dist/src/common/assets/icons/line/Copy.js +1 -1
- package/dist/src/common/assets/icons/line/DeviceDesktop.js +1 -1
- package/dist/src/common/assets/icons/line/DeviceMobile.js +1 -1
- package/dist/src/common/assets/icons/line/Divider.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Divider.js +30 -0
- package/dist/src/common/assets/icons/line/Download.js +1 -1
- package/dist/src/common/assets/icons/line/EditorLeftSide.js +1 -1
- package/dist/src/common/assets/icons/line/EditorRightSide.js +1 -1
- package/dist/src/common/assets/icons/line/Embed.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Embed.js +30 -0
- package/dist/src/common/assets/icons/line/Icon.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Icon.js +30 -0
- package/dist/src/common/assets/icons/line/Image.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Image.js +30 -0
- package/dist/src/common/assets/icons/line/Item.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Item.js +30 -0
- package/dist/src/common/assets/icons/line/LayerBackward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/LayerBackward.js +30 -0
- package/dist/src/common/assets/icons/line/LayerForward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/LayerForward.js +30 -0
- package/dist/src/common/assets/icons/line/Layout.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Layout.js +30 -0
- package/dist/src/common/assets/icons/line/LightBulb.d.ts +4 -0
- package/dist/src/common/assets/icons/line/LightBulb.js +30 -0
- package/dist/src/common/assets/icons/line/Lightning.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Lightning.js +30 -0
- package/dist/src/common/assets/icons/line/List.d.ts +4 -0
- package/dist/src/common/assets/icons/line/List.js +30 -0
- package/dist/src/common/assets/icons/line/MenuDesign.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MenuDesign.js +30 -0
- package/dist/src/common/assets/icons/line/Minus.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Minus.js +30 -0
- package/dist/src/common/assets/icons/line/MinusCircle.js +1 -1
- package/dist/src/common/assets/icons/line/MinusRound.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MinusRound.js +30 -0
- package/dist/src/common/assets/icons/line/Moon.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Moon.js +30 -0
- package/dist/src/common/assets/icons/line/Paint.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Paint.js +30 -0
- package/dist/src/common/assets/icons/line/Palette.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Palette.js +30 -0
- package/dist/src/common/assets/icons/line/PaymentSetting.js +1 -1
- package/dist/src/common/assets/icons/line/PlusCircle.js +1 -1
- package/dist/src/common/assets/icons/line/PlusRound.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PlusRound.js +30 -0
- package/dist/src/common/assets/icons/line/PostStorage.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostStorage.js +30 -0
- package/dist/src/common/assets/icons/line/Richtext.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Richtext.js +30 -0
- package/dist/src/common/assets/icons/line/ScrollingText.d.ts +4 -0
- package/dist/src/common/assets/icons/line/ScrollingText.js +30 -0
- package/dist/src/common/assets/icons/line/SectionContent32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContent40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContentsCarousel32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionContentsCarousel40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionCustom32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionCustom32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionCustom40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionCustom40.js +30 -0
- package/dist/src/common/assets/icons/line/SectionDivider32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionDivider40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionFooter32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionFooter40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIframe32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIframe40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionInfoBox32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionInfoBox40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIntro32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionIntro40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMap32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMap40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMembership32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionMembership40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionPriceBox32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionPriceBox40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionProductsCarousel32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionProductsCarousel40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionReview32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionReview40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionSlider32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionSlider40.js +1 -1
- package/dist/src/common/assets/icons/line/SectionTab32.js +1 -1
- package/dist/src/common/assets/icons/line/SectionTab40.js +1 -1
- package/dist/src/common/assets/icons/line/Setting.js +1 -1
- package/dist/src/common/assets/icons/line/Shape.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Shape.js +30 -0
- package/dist/src/common/assets/icons/line/Slider.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Slider.js +30 -0
- package/dist/src/common/assets/icons/line/Target.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Target.js +30 -0
- package/dist/src/common/assets/icons/line/Text.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Text.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignBottom.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignBottom.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignCenter.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignCenter.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignLeft.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignLeft.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignMiddle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignMiddle.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignRight.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignRight.js +30 -0
- package/dist/src/common/assets/icons/line/TextAlignTop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextAlignTop.js +30 -0
- package/dist/src/common/assets/icons/line/Trashcan.js +1 -1
- package/dist/src/common/assets/icons/line/Upload.js +1 -1
- package/dist/src/common/assets/icons/line/VideoType.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoType.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +45 -0
- package/dist/src/common/assets/icons/line/index.js +90 -0
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +38 -8
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +36 -6
- package/dist/src/common/styles/colorSet/SemanticColor.json +4 -2
- package/dist/src/common/styles/colorSet/UIColor.json +35 -1
- package/dist/src/common/styles/colorSet/index.d.ts +411 -315
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +34 -0
- package/dist/src/common/types/components.d.ts +33 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +181 -28
- package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/constants.js +2 -1
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +13 -13
- package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +13 -13
- package/dist/src/desktop/components/AdminListHeader/AdminListHeader.d.ts +4 -4
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +4 -4
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.d.ts +9 -0
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +123 -0
- package/dist/src/desktop/components/BasicButtonGroup/constants.d.ts +11 -0
- package/dist/src/desktop/components/BasicButtonGroup/constants.js +15 -0
- package/dist/src/desktop/components/BasicButtonGroup/index.d.ts +1 -0
- package/dist/src/desktop/components/BasicButtonGroup/index.js +8 -0
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +6 -4
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +15 -3
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +2 -1
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +38 -10
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +58 -26
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +10 -10
- package/dist/src/desktop/components/Dropdown/Dropdown.js +71 -26
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +2 -2
- package/dist/src/desktop/components/IconButton/IconButton.js +20 -15
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +13 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +189 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/constants.d.ts +11 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/constants.js +15 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/index.d.ts +1 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/index.js +8 -0
- package/dist/src/desktop/components/Select/Select.js +12 -6
- package/dist/src/desktop/components/Slider/Slider.d.ts +19 -0
- package/dist/src/desktop/components/Slider/Slider.js +189 -0
- package/dist/src/desktop/components/Slider/index.d.ts +1 -0
- package/dist/src/desktop/components/Slider/index.js +8 -0
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +3 -0
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -1
- package/dist/src/desktop/components/TextField/TextField.js +12 -12
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +15 -15
- package/dist/src/desktop/components/TextLabel/TextLabel.js +89 -54
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +6 -4
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +61 -8
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +3 -0
- package/dist/src/desktop/components/index.d.ts +4 -1
- package/dist/src/desktop/components/index.js +7 -1
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +5 -2
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +6 -2
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +180 -27
- package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/constants.js +2 -1
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.d.ts +9 -0
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +80 -0
- package/dist/src/mobile/components/BasicButtonGroup/index.d.ts +1 -0
- package/dist/src/mobile/components/BasicButtonGroup/index.js +8 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +6 -4
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +13 -3
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +10 -10
- package/dist/src/mobile/components/Dropdown/Dropdown.js +70 -25
- package/dist/src/mobile/components/IconButton/IconButton.d.ts +2 -2
- package/dist/src/mobile/components/IconButton/IconButton.js +12 -7
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +13 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +146 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/index.d.ts +1 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/index.js +8 -0
- package/dist/src/mobile/components/Select/Select.js +12 -6
- package/dist/src/mobile/components/Slider/Slider.d.ts +19 -0
- package/dist/src/mobile/components/Slider/Slider.js +186 -0
- package/dist/src/mobile/components/Slider/index.d.ts +1 -0
- package/dist/src/mobile/components/Slider/index.js +8 -0
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +3 -0
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -1
- package/dist/src/mobile/components/TextField/TextField.js +12 -12
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +14 -14
- package/dist/src/mobile/components/TextLabel/TextLabel.js +45 -23
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +2 -2
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +11 -6
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +3 -0
- package/dist/src/mobile/components/index.d.ts +4 -1
- package/dist/src/mobile/components/index.js +7 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +5 -1
- package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +4 -4
- package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +4 -4
- package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +13 -13
- package/dist/src/sub/AdminList/ToolBar/SearchField.js +1 -1
- package/dist/src/sub/DynamicLayout/components/YouTubeIframe/YouTubeIframe.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +48 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/desktop/D_TemplateA.js +18 -1
- package/dist/src/sub/DynamicLayout/sections/FullscreenIframeSection/templates/TemplateA/mobile/M_TemplateA.js +18 -1
- package/package.json +1 -1
- package/release-note.md +6 -5
- package/webhook/node_modules/esrecurse/.babelrc +3 -0
|
@@ -48,9 +48,9 @@ function Dropdown(_a) {
|
|
|
48
48
|
// selectionMode = 'single',
|
|
49
49
|
_e = _a.size,
|
|
50
50
|
// selectionMode = 'single',
|
|
51
|
-
size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, onChange = _a.onChange;
|
|
52
|
-
var
|
|
53
|
-
var
|
|
51
|
+
size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, onChange = _a.onChange;
|
|
52
|
+
var _j = (0, react_1.useState)(false), isFocused = _j[0], setIsFocused = _j[1];
|
|
53
|
+
var _k = (0, react_1.useState)(null), selectedValue = _k[0], setSelectedValue = _k[1];
|
|
54
54
|
/**
|
|
55
55
|
* @when value 프롭의 값에 따라
|
|
56
56
|
* @expected 값이 null일 때 드롭다운을 초기화하고, 값이 있다면 해당 값으로 설정해줍니다.
|
|
@@ -96,7 +96,21 @@ function Dropdown(_a) {
|
|
|
96
96
|
onChange(option);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
+
var getCustomWidth = function () {
|
|
100
|
+
if (customWidth) {
|
|
101
|
+
return customWidth;
|
|
102
|
+
}
|
|
103
|
+
if (displayType === 'icon_only') {
|
|
104
|
+
return 'auto';
|
|
105
|
+
}
|
|
106
|
+
};
|
|
99
107
|
var getIconColorKey = function () {
|
|
108
|
+
if (state === 'disabled' || state === 'read_only') {
|
|
109
|
+
return 'ui_cpnt_dropdown_display_icon_disabled';
|
|
110
|
+
}
|
|
111
|
+
return 'ui_cpnt_dropdown_display_icon_normal';
|
|
112
|
+
};
|
|
113
|
+
var getArrowIconColorKey = function () {
|
|
100
114
|
if (colorTheme === 'dark') {
|
|
101
115
|
if (state === 'disabled' || state === 'read_only') {
|
|
102
116
|
return 'ui_cpnt_dropdown_text_darktheme_disabled';
|
|
@@ -176,12 +190,9 @@ function Dropdown(_a) {
|
|
|
176
190
|
var LARGE_HEIGHT = 48;
|
|
177
191
|
return LARGE_HEIGHT * maxHeightItemNumber;
|
|
178
192
|
}, [size, maxHeightItemNumber]);
|
|
179
|
-
return ((0, jsx_runtime_1.jsxs)(S_Dropdown, __assign({ "x-pds-name": "Dropdown", "x-pds-element-type": "component", "x-pds-device-type": "mobile", className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsxs)(S_Select, __assign({ size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.
|
|
193
|
+
return ((0, jsx_runtime_1.jsxs)(S_Dropdown, __assign({ "x-pds-name": "Dropdown", "x-pds-element-type": "component", "x-pds-device-type": "mobile", className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_Select, __assign({ size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ size: size, responsiveMode: responsiveMode, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.iconName) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: size === 'small' ? 20 : 24, iconName: selectedValue.iconName, fillType: selectedValue.iconFillType, colorKey: getIconColorKey() }, void 0), displayType === 'icon_text' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (displayType === 'text_only' || displayType === 'icon_text') && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: fontWeight === 'bold' ? 'form2Bold' : 'form2Regular', singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0))] }), void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getArrowIconColorKey() }, void 0)] }), void 0), isFocused && ((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ displayType: displayType }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, onClick: handleClickOption, state: el.state, displayType: displayType }, void 0) }, el.value)); }) }), void 0) }), void 0))] }), void 0));
|
|
180
194
|
}
|
|
181
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
182
|
-
var theme = _a.theme;
|
|
183
|
-
return theme.spacing.spacingD;
|
|
184
|
-
}, function (_a) {
|
|
195
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
|
|
185
196
|
var theme = _a.theme;
|
|
186
197
|
return theme.spacing.spacingB;
|
|
187
198
|
}, function (_a) {
|
|
@@ -189,29 +200,53 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
|
|
|
189
200
|
return size &&
|
|
190
201
|
{
|
|
191
202
|
large: large,
|
|
203
|
+
medium: medium,
|
|
192
204
|
small: small
|
|
193
205
|
}[size];
|
|
194
206
|
});
|
|
195
207
|
var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
196
|
-
var responsiveMode = _a.responsiveMode;
|
|
197
|
-
|
|
208
|
+
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
209
|
+
if (responsiveMode === 'use') {
|
|
210
|
+
return '100%';
|
|
211
|
+
}
|
|
212
|
+
if (displayType === 'icon_only') {
|
|
213
|
+
return 'fit-content';
|
|
214
|
+
}
|
|
215
|
+
return '432px';
|
|
198
216
|
});
|
|
199
|
-
var
|
|
200
|
-
var responsiveMode = _a.responsiveMode;
|
|
201
|
-
|
|
217
|
+
var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
|
|
218
|
+
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
219
|
+
if (responsiveMode === 'use') {
|
|
220
|
+
return '100%';
|
|
221
|
+
}
|
|
222
|
+
if (displayType === 'icon_only') {
|
|
223
|
+
return 'fit-content';
|
|
224
|
+
}
|
|
225
|
+
return '188px';
|
|
202
226
|
});
|
|
203
|
-
var
|
|
227
|
+
var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
228
|
+
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
229
|
+
if (responsiveMode === 'use') {
|
|
230
|
+
return '100%';
|
|
231
|
+
}
|
|
232
|
+
if (displayType === 'icon_only') {
|
|
233
|
+
return 'fit-content';
|
|
234
|
+
}
|
|
235
|
+
return '188px';
|
|
236
|
+
});
|
|
237
|
+
var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
204
238
|
var size = _a.size;
|
|
205
239
|
return size &&
|
|
206
240
|
{
|
|
207
241
|
large: large,
|
|
242
|
+
medium: medium,
|
|
208
243
|
small: small
|
|
209
244
|
}[size];
|
|
210
245
|
}, function (_a) {
|
|
211
246
|
var customWidth = _a.customWidth;
|
|
212
247
|
return customWidth && "width: " + customWidth + ";";
|
|
213
248
|
});
|
|
214
|
-
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(
|
|
249
|
+
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
215
250
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
216
251
|
switch (colorTheme) {
|
|
217
252
|
case 'dark':
|
|
@@ -222,7 +257,7 @@ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_5
|
|
|
222
257
|
return theme.ui_cpnt_dropdown_base_disabled;
|
|
223
258
|
}
|
|
224
259
|
});
|
|
225
|
-
var colorThemeBackgroundDisabled = (0, styled_components_1.css)(
|
|
260
|
+
var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
226
261
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
227
262
|
switch (colorTheme) {
|
|
228
263
|
case 'dark':
|
|
@@ -233,7 +268,7 @@ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_6
|
|
|
233
268
|
return theme.ui_cpnt_dropdown_base_disabled;
|
|
234
269
|
}
|
|
235
270
|
});
|
|
236
|
-
var colorThemeBackgroundNormal = (0, styled_components_1.css)(
|
|
271
|
+
var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
237
272
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
238
273
|
switch (colorTheme) {
|
|
239
274
|
case 'dark':
|
|
@@ -244,7 +279,7 @@ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_7 |
|
|
|
244
279
|
return theme.ui_cpnt_dropdown_base_normal;
|
|
245
280
|
}
|
|
246
281
|
});
|
|
247
|
-
var colorThemeBorderWhite = (0, styled_components_1.css)(
|
|
282
|
+
var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
248
283
|
var state = _a.state, theme = _a.theme;
|
|
249
284
|
switch (state) {
|
|
250
285
|
case 'disabled':
|
|
@@ -254,7 +289,7 @@ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_8 || (te
|
|
|
254
289
|
return theme.ui_cpnt_dropdown_border_white_normal;
|
|
255
290
|
}
|
|
256
291
|
});
|
|
257
|
-
var colorThemeBorderDark = (0, styled_components_1.css)(
|
|
292
|
+
var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
258
293
|
var state = _a.state, theme = _a.theme;
|
|
259
294
|
switch (state) {
|
|
260
295
|
case 'disabled':
|
|
@@ -264,7 +299,7 @@ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_9 || (tem
|
|
|
264
299
|
return theme.ui_cpnt_dropdown_border_darktheme_normal;
|
|
265
300
|
}
|
|
266
301
|
});
|
|
267
|
-
var borderColor = (0, styled_components_1.css)(
|
|
302
|
+
var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
268
303
|
var state = _a.state, theme = _a.theme;
|
|
269
304
|
switch (state) {
|
|
270
305
|
case 'disabled':
|
|
@@ -275,7 +310,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_10 || (templateObj
|
|
|
275
310
|
return theme.ui_cpnt_dropdown_border_normal;
|
|
276
311
|
}
|
|
277
312
|
});
|
|
278
|
-
var backgroundActiveColor = (0, styled_components_1.css)(
|
|
313
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
279
314
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
280
315
|
switch (colorTheme) {
|
|
281
316
|
case 'none':
|
|
@@ -288,8 +323,8 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_11 || (t
|
|
|
288
323
|
return theme.ui_cpnt_textfield_base_pressed;
|
|
289
324
|
}
|
|
290
325
|
});
|
|
291
|
-
var normalActionColor = (0, styled_components_1.css)(
|
|
292
|
-
var S_Select = styled_components_1.default.div(
|
|
326
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
|
|
327
|
+
var S_Select = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
293
328
|
var state = _a.state;
|
|
294
329
|
switch (state) {
|
|
295
330
|
case 'disabled':
|
|
@@ -309,11 +344,18 @@ var S_Select = styled_components_1.default.div(templateObject_13 || (templateObj
|
|
|
309
344
|
case 'white':
|
|
310
345
|
return isFocused ? theme.ui_cpnt_dropdown_border_white_focus : colorThemeBorderWhite;
|
|
311
346
|
}
|
|
347
|
+
}, function (_a) {
|
|
348
|
+
var size = _a.size, theme = _a.theme;
|
|
349
|
+
return size === 'large' ? theme.spacing.spacingD : theme.spacing.spacingC;
|
|
350
|
+
}, function (_a) {
|
|
351
|
+
var size = _a.size, theme = _a.theme;
|
|
352
|
+
return size === 'large' ? theme.spacing.spacingD : theme.spacing.spacingC;
|
|
312
353
|
}, function (_a) {
|
|
313
354
|
var size = _a.size;
|
|
314
355
|
return size &&
|
|
315
356
|
{
|
|
316
357
|
large: large,
|
|
358
|
+
medium: medium,
|
|
317
359
|
small: small
|
|
318
360
|
}[size];
|
|
319
361
|
}, function (_a) {
|
|
@@ -323,9 +365,12 @@ var S_Select = styled_components_1.default.div(templateObject_13 || (templateObj
|
|
|
323
365
|
var state = _a.state;
|
|
324
366
|
return state === 'normal' && normalActionColor;
|
|
325
367
|
});
|
|
326
|
-
var S_ContextMenuWrapper = styled_components_1.default.div(
|
|
368
|
+
var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n margin-top: ", ";\n position: absolute;\n width: inherit;\n width: ", ";\n"], ["\n display: block;\n margin-top: ", ";\n position: absolute;\n width: inherit;\n width: ", ";\n"])), function (_a) {
|
|
327
369
|
var theme = _a.theme;
|
|
328
370
|
return theme.spacing.spacingB;
|
|
371
|
+
}, function (_a) {
|
|
372
|
+
var displayType = _a.displayType;
|
|
373
|
+
return (displayType === 'icon_only' ? '100%' : 'inherit');
|
|
329
374
|
});
|
|
330
375
|
exports.default = Dropdown;
|
|
331
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
|
|
376
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import type { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
|
|
3
3
|
export declare type IconButtonProps = {
|
|
4
4
|
fillType?: 'fill' | 'line';
|
|
5
|
-
shapeType?: 'circular' | 'rectangle';
|
|
5
|
+
shapeType?: 'circular' | 'rectangle' | 'round';
|
|
6
6
|
baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
7
7
|
baseColorKey?: UiColors;
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
|
-
iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
|
|
9
|
+
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
11
|
iconName: FillIconNameKeys | LineIconNameKeys;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
@@ -81,7 +81,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
81
81
|
? ''
|
|
82
82
|
: theme.ui_cpnt_button_fill_base_disabled;
|
|
83
83
|
});
|
|
84
|
-
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n
|
|
84
|
+
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
85
85
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
86
86
|
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
87
87
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
@@ -128,17 +128,22 @@ var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
128
128
|
var medium = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
|
|
129
129
|
var small = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
|
|
130
130
|
var xsmall = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
|
|
131
|
-
var
|
|
131
|
+
var roundStyle = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
|
|
132
|
+
var baseSize = _a.baseSize;
|
|
133
|
+
return baseSize &&
|
|
134
|
+
{ xxlarge: '24px', large: '14px', medium: '12px', small: '10px', xsmall: '8px' }[baseSize];
|
|
135
|
+
});
|
|
136
|
+
var line1ColorTheme = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
|
|
132
137
|
var theme = _a.theme;
|
|
133
138
|
return theme.ui_cpnt_button_line_border_error;
|
|
134
139
|
});
|
|
135
|
-
var line2ColorTheme = (0, styled_components_1.css)(
|
|
140
|
+
var line2ColorTheme = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
|
|
136
141
|
var theme = _a.theme;
|
|
137
142
|
return theme.ui_cpnt_button_line_border_primary;
|
|
138
143
|
});
|
|
139
|
-
var iconButtonStyle = (0, styled_components_1.css)(
|
|
144
|
+
var iconButtonStyle = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
140
145
|
var shapeType = _a.shapeType;
|
|
141
|
-
return shapeType && { circular: 'border-radius: 50%', rectangle: '' }[shapeType];
|
|
146
|
+
return shapeType && { circular: 'border-radius: 50%', rectangle: '', round: roundStyle }[shapeType];
|
|
142
147
|
}, function (_a) {
|
|
143
148
|
var theme = _a.theme, shadow = _a.shadow;
|
|
144
149
|
return shadow === 'visible' && "box-shadow: " + theme.boxShadow.elevation2;
|
|
@@ -160,6 +165,6 @@ var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templat
|
|
|
160
165
|
xsmall: xsmall
|
|
161
166
|
}[baseSize];
|
|
162
167
|
});
|
|
163
|
-
var S_IconButton = styled_components_1.default.button(
|
|
168
|
+
var S_IconButton = styled_components_1.default.button(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
|
|
164
169
|
exports.default = IconButton;
|
|
165
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
170
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSValueOption, SegmentedButtonGroupValueOption } from '../../../common/types';
|
|
3
|
+
export declare type SegmentedButtonGroupProps = {
|
|
4
|
+
size?: 'large' | 'medium' | 'small';
|
|
5
|
+
value: PDSValueOption['value'] | PDSValueOption['value'][];
|
|
6
|
+
valueArray: SegmentedButtonGroupValueOption[];
|
|
7
|
+
selectionType?: 'single' | 'multi';
|
|
8
|
+
state?: 'normal' | 'disabled';
|
|
9
|
+
onClick?: (value: PDSValueOption['value']) => void;
|
|
10
|
+
onMouseDown?: (value: PDSValueOption['value']) => void;
|
|
11
|
+
};
|
|
12
|
+
declare function SegmentedButtonGroup({ size, value, valueArray, selectionType, state, onClick, onMouseDown }: SegmentedButtonGroupProps): JSX.Element;
|
|
13
|
+
export default SegmentedButtonGroup;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var components_1 = require("../../../hybrid/components");
|
|
39
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
40
|
+
function SegmentedButtonGroup(_a) {
|
|
41
|
+
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, value = _a.value, valueArray = _a.valueArray, _c = _a.selectionType, selectionType = _c === void 0 ? 'single' : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
42
|
+
var handleClick = function (value) {
|
|
43
|
+
if (onClick) {
|
|
44
|
+
onClick(value);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var handleMouseDown = function (value) {
|
|
48
|
+
if (onMouseDown) {
|
|
49
|
+
onMouseDown(value);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var checkSelection = function (currentButtonValue) {
|
|
53
|
+
if (selectionType === 'multi' && Array.isArray(value)) {
|
|
54
|
+
return value.includes(currentButtonValue);
|
|
55
|
+
}
|
|
56
|
+
return value === currentButtonValue;
|
|
57
|
+
};
|
|
58
|
+
var getIconColorKey = function (isSelected, isDisabled, iconColorTheme) {
|
|
59
|
+
if (isDisabled) {
|
|
60
|
+
return 'ui_cpnt_button_icon_disabled';
|
|
61
|
+
}
|
|
62
|
+
if (isSelected) {
|
|
63
|
+
return 'ui_cpnt_button_icon_white';
|
|
64
|
+
}
|
|
65
|
+
if (iconColorTheme === 'red') {
|
|
66
|
+
return 'ui_cpnt_button_icon_error';
|
|
67
|
+
}
|
|
68
|
+
return 'ui_cpnt_button_icon_enabled';
|
|
69
|
+
};
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)(S_SegmentedButtonGroupGroups, __assign({ "x-pds-name": "SegmentedButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "mobile", selectionType: selectionType }, { children: valueArray.map(function (_a) {
|
|
71
|
+
var currentButtonValue = _a.value, iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.iconColorTheme, iconColorTheme = _c === void 0 ? 'none' : _c, _d = _a.state, buttonState = _d === void 0 ? 'normal' : _d;
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectionType: selectionType, isSelected: checkSelection(currentButtonValue) }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getIconColorKey(checkSelection(currentButtonValue), state === 'disabled' || buttonState === 'disabled', iconColorTheme) }, void 0) }), String(currentButtonValue)));
|
|
73
|
+
}) }), void 0));
|
|
74
|
+
}
|
|
75
|
+
var S_SegmentedButtonGroupGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
76
|
+
var selectionType = _a.selectionType, theme = _a.theme;
|
|
77
|
+
return selectionType === 'multi' && theme.spacing.spacingA;
|
|
78
|
+
});
|
|
79
|
+
var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: ", ";\n height: 48px;\n width: 48px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"], ["\n border-radius: ", ";\n height: 48px;\n width: 48px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"])), function (_a) {
|
|
80
|
+
var selectionType = _a.selectionType;
|
|
81
|
+
return selectionType === 'multi' && '14px';
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var selectionType = _a.selectionType;
|
|
84
|
+
return selectionType === 'single' && '14px';
|
|
85
|
+
}, function (_a) {
|
|
86
|
+
var selectionType = _a.selectionType;
|
|
87
|
+
return selectionType === 'single' && '14px';
|
|
88
|
+
}, function (_a) {
|
|
89
|
+
var selectionType = _a.selectionType;
|
|
90
|
+
return selectionType === 'single' && '14px';
|
|
91
|
+
}, function (_a) {
|
|
92
|
+
var selectionType = _a.selectionType;
|
|
93
|
+
return selectionType === 'single' && '14px';
|
|
94
|
+
});
|
|
95
|
+
var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: ", ";\n height: 40px;\n width: 40px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"], ["\n border-radius: ", ";\n height: 40px;\n width: 40px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"])), function (_a) {
|
|
96
|
+
var selectionType = _a.selectionType;
|
|
97
|
+
return selectionType === 'multi' && '12px';
|
|
98
|
+
}, function (_a) {
|
|
99
|
+
var selectionType = _a.selectionType;
|
|
100
|
+
return selectionType === 'single' && '12px';
|
|
101
|
+
}, function (_a) {
|
|
102
|
+
var selectionType = _a.selectionType;
|
|
103
|
+
return selectionType === 'single' && '12px';
|
|
104
|
+
}, function (_a) {
|
|
105
|
+
var selectionType = _a.selectionType;
|
|
106
|
+
return selectionType === 'single' && '12px';
|
|
107
|
+
}, function (_a) {
|
|
108
|
+
var selectionType = _a.selectionType;
|
|
109
|
+
return selectionType === 'single' && '12px';
|
|
110
|
+
});
|
|
111
|
+
var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: ", ";\n height: 32px;\n width: 32px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"], ["\n border-radius: ", ";\n height: 32px;\n width: 32px;\n\n &:nth-child(1) {\n border-bottom-left-radius: ", ";\n border-top-left-radius: ", ";\n }\n\n &:nth-last-child(1) {\n border-bottom-right-radius: ", ";\n border-top-right-radius: ", ";\n }\n"])), function (_a) {
|
|
112
|
+
var selectionType = _a.selectionType;
|
|
113
|
+
return selectionType === 'multi' && '10px';
|
|
114
|
+
}, function (_a) {
|
|
115
|
+
var selectionType = _a.selectionType;
|
|
116
|
+
return selectionType === 'single' && '10px';
|
|
117
|
+
}, function (_a) {
|
|
118
|
+
var selectionType = _a.selectionType;
|
|
119
|
+
return selectionType === 'single' && '10px';
|
|
120
|
+
}, function (_a) {
|
|
121
|
+
var selectionType = _a.selectionType;
|
|
122
|
+
return selectionType === 'single' && '10px';
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var selectionType = _a.selectionType;
|
|
125
|
+
return selectionType === 'single' && '10px';
|
|
126
|
+
});
|
|
127
|
+
var S_BasicButton = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n position: relative;\n\n ", ";\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover:enabled:before {\n background-color: ", ";\n }\n\n &:active:enabled:before {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n cursor: default;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n position: relative;\n\n ", ";\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:hover:enabled:before {\n background-color: ", ";\n }\n\n &:active:enabled:before {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n cursor: default;\n }\n"])), function (_a) {
|
|
128
|
+
var isSelected = _a.isSelected, theme = _a.theme;
|
|
129
|
+
return isSelected
|
|
130
|
+
? theme.ui_cpnt_segmentedbuttongroup_base_selected
|
|
131
|
+
: theme.ui_cpnt_segmentedbuttongroup_base_default;
|
|
132
|
+
}, function (_a) {
|
|
133
|
+
var size = _a.size;
|
|
134
|
+
return size && { large: large, medium: medium, small: small }[size];
|
|
135
|
+
}, function (_a) {
|
|
136
|
+
var theme = _a.theme;
|
|
137
|
+
return theme.ui_cpnt_segmentedbuttongroup_on_base_hover;
|
|
138
|
+
}, function (_a) {
|
|
139
|
+
var theme = _a.theme;
|
|
140
|
+
return theme.ui_cpnt_segmentedbuttongroup_on_base_pressed;
|
|
141
|
+
}, function (_a) {
|
|
142
|
+
var theme = _a.theme;
|
|
143
|
+
return theme.ui_cpnt_segmentedbuttongroup_base_disabled;
|
|
144
|
+
});
|
|
145
|
+
exports.default = SegmentedButtonGroup;
|
|
146
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SegmentedButtonGroup } from './SegmentedButtonGroup';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SegmentedButtonGroup = void 0;
|
|
7
|
+
var SegmentedButtonGroup_1 = require("./SegmentedButtonGroup");
|
|
8
|
+
Object.defineProperty(exports, "SegmentedButtonGroup", { enumerable: true, get: function () { return __importDefault(SegmentedButtonGroup_1).default; } });
|
|
@@ -59,7 +59,7 @@ function Select(_a) {
|
|
|
59
59
|
}
|
|
60
60
|
return 'ui_cpnt_select_icon_01';
|
|
61
61
|
};
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ "x-pds-name": "Select", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(S_Icon_Wrapper, __assign({ state: state }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() }, void 0) }), void 0), (0, jsx_runtime_1.jsxs)(S_Select, __assign({ disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value || undefined }, { children: [hintText && ((0, jsx_runtime_1.jsx)("option", __assign({ disabled: true, value: HINT }, { children: hintText }), void 0)), valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("option", __assign({ value: el.value }, { children: el.text }), el.value)); })] }), void 0)] }), void 0));
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ "x-pds-name": "Select", "x-pds-element-type": "component", "x-pds-device-type": "mobile", "$size": size, responsiveMode: responsiveMode, tabIndex: 0, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(S_Icon_Wrapper, __assign({ state: state }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() }, void 0) }), void 0), (0, jsx_runtime_1.jsxs)(S_Select, __assign({ disabled: state === 'disabled' || state === 'read_only', state: state, "$size": size, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value || undefined }, { children: [hintText && ((0, jsx_runtime_1.jsx)("option", __assign({ disabled: true, value: HINT }, { children: hintText }), void 0)), valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("option", __assign({ value: el.value }, { children: el.text }), el.value)); })] }), void 0)] }), void 0));
|
|
63
63
|
}
|
|
64
64
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 432px;\n"], ["\n height: 48px;\n width: 432px;\n"])));
|
|
65
65
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n width: 188px;\n"], ["\n height: 40px;\n width: 188px;\n"])));
|
|
@@ -93,14 +93,14 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
|
|
|
93
93
|
return theme.ui_cpnt_select_text_darktheme_enabled;
|
|
94
94
|
});
|
|
95
95
|
var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n ", "\n"], ["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n ", "\n"])), function (_a) {
|
|
96
|
-
var size = _a
|
|
97
|
-
return size &&
|
|
96
|
+
var $size = _a.$size;
|
|
97
|
+
return $size &&
|
|
98
98
|
{
|
|
99
99
|
large: large,
|
|
100
100
|
medium: medium,
|
|
101
101
|
small: small,
|
|
102
102
|
rlarge: rlarge
|
|
103
|
-
}[size];
|
|
103
|
+
}[$size];
|
|
104
104
|
}, function (_a) {
|
|
105
105
|
var responsiveMode = _a.responsiveMode;
|
|
106
106
|
return responsiveMode === 'use' && 'width: 100%';
|
|
@@ -131,8 +131,14 @@ var S_Select = styled_components_1.default.select(templateObject_10 || (template
|
|
|
131
131
|
var theme = _a.theme;
|
|
132
132
|
return theme.ui_cpnt_select_border_normal;
|
|
133
133
|
}, function (_a) {
|
|
134
|
-
var size = _a
|
|
135
|
-
return
|
|
134
|
+
var $size = _a.$size;
|
|
135
|
+
return $size &&
|
|
136
|
+
{
|
|
137
|
+
small: '10px',
|
|
138
|
+
medium: '12px',
|
|
139
|
+
large: '14px',
|
|
140
|
+
rlarge: '14px'
|
|
141
|
+
}[$size];
|
|
136
142
|
}, function (_a) {
|
|
137
143
|
var theme = _a.theme;
|
|
138
144
|
return theme.ui_cpnt_select_text_hint;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSTextType } from '../../../common/types';
|
|
3
|
+
export declare type Props = {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
name?: string;
|
|
8
|
+
value: number;
|
|
9
|
+
tooltipText?: PDSTextType;
|
|
10
|
+
state?: 'normal' | 'disabled';
|
|
11
|
+
prefixText?: PDSTextType;
|
|
12
|
+
suffixText?: PDSTextType;
|
|
13
|
+
customWidth?: string;
|
|
14
|
+
responsiveMode?: 'none' | 'use';
|
|
15
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
+
export default _default;
|