@salutejs/plasma-new-hope 0.160.1-canary.1454.11177563590.0 → 0.161.0-canary.1392.11178979637.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Attach/Attach.js +9 -13
- package/cjs/components/Attach/Attach.js.map +1 -1
- package/cjs/components/Attach/utils/truncateFilename.js +24 -0
- package/cjs/components/Attach/utils/truncateFilename.js.map +1 -0
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
- package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Segment/tokens.js +14 -1
- package/cjs/components/Segment/tokens.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.css +8 -9
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +68 -112
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +1 -7
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_klze6h.css +3 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +9 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base_pxl3nb.css +1 -0
- package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_18cpjsq.css +1 -0
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +30 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_1ir79py.css +4 -0
- package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
- package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_dettiq.css +1 -0
- package/cjs/components/Tabs/ui/Tabs/Tabs.js +6 -6
- package/cjs/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
- package/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/cjs/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
- package/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
- package/cjs/index.css +14 -11
- package/emotion/cjs/components/Attach/Attach.js +6 -9
- package/emotion/cjs/components/Attach/utils/index.js +7 -9
- package/emotion/cjs/components/Attach/utils/truncateFilename.js +23 -0
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
- package/emotion/cjs/components/Segment/README.md +61 -0
- package/emotion/cjs/components/Segment/tokens.js +14 -1
- package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
- package/emotion/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +15 -33
- package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
- package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
- package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/emotion/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
- package/emotion/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +21 -7
- package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/emotion/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
- package/emotion/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/emotion/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
- package/emotion/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
- package/emotion/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
- package/emotion/cjs/components/_Icon/index.js +21 -0
- package/emotion/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
- package/emotion/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
- package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
- package/emotion/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
- package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/emotion/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
- package/emotion/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
- package/emotion/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
- package/emotion/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
- package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/emotion/es/components/Attach/Attach.js +7 -10
- package/emotion/es/components/Attach/utils/index.js +1 -2
- package/emotion/es/components/Attach/utils/truncateFilename.js +17 -0
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.styles.js +5 -5
- package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
- package/emotion/es/components/Segment/README.md +61 -0
- package/emotion/es/components/Segment/tokens.js +14 -1
- package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
- package/emotion/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +14 -32
- package/emotion/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
- package/emotion/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
- package/emotion/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/emotion/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
- package/emotion/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +21 -7
- package/emotion/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/emotion/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
- package/emotion/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
- package/emotion/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
- package/emotion/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
- package/emotion/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
- package/emotion/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/emotion/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
- package/emotion/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
- package/emotion/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
- package/emotion/es/components/_Icon/index.js +3 -0
- package/emotion/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
- package/emotion/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
- package/emotion/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +13 -10
- package/emotion/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +9 -9
- package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/emotion/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
- package/emotion/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
- package/emotion/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +15 -9
- package/emotion/es/examples/plasma_web/components/Segment/SegmentItem.config.js +9 -9
- package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/es/components/Attach/Attach.js +9 -13
- package/es/components/Attach/Attach.js.map +1 -1
- package/es/components/Attach/utils/truncateFilename.js +20 -0
- package/es/components/Attach/utils/truncateFilename.js.map +1 -0
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
- package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/es/components/Segment/tokens.js +14 -1
- package/es/components/Segment/tokens.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.css +8 -9
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +73 -118
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +2 -7
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_klze6h.css +3 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_a7w5s0.css +1 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +5 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js.map +1 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_orientation/base_1ejecy9.css +1 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base_pxl3nb.css +1 -0
- package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_size/base.js.map +1 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_size/base_18cpjsq.css +1 -0
- package/es/components/Segment/ui/SegmentItem/SegmentItem.css +6 -4
- package/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
- package/es/components/Segment/ui/SegmentItem/SegmentItem.js.map +1 -1
- package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +29 -2
- package/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js.map +1 -1
- package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_1ir79py.css +4 -0
- package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js.map +1 -1
- package/es/components/Segment/ui/SegmentItem/variations/_pilled/{base_15s0fel.css → base_omc5u1.css} +1 -1
- package/es/components/Segment/ui/SegmentItem/variations/_view/base.js +1 -1
- package/es/components/Segment/ui/SegmentItem/variations/_view/base.js.map +1 -1
- package/es/components/Segment/ui/SegmentItem/variations/_view/base_dettiq.css +1 -0
- package/es/components/Tabs/ui/Tabs/Tabs.js +6 -6
- package/es/components/Tabs/ui/Tabs/Tabs.js.map +1 -1
- package/es/components/_Icon/Icon.assets/{DisclosureLeft.js → DisclosureLeftCentered.js} +3 -3
- package/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js.map +1 -0
- package/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/es/components/_Icon/Icons/{IconDisclosureLeft.js → IconDisclosureLeftCentered.js} +5 -5
- package/es/components/_Icon/Icons/IconDisclosureLeftCentered.js.map +1 -0
- package/es/index.css +14 -11
- package/package.json +2 -2
- package/styled-components/cjs/components/Attach/Attach.js +6 -9
- package/styled-components/cjs/components/Attach/utils/index.js +7 -9
- package/styled-components/cjs/components/Attach/utils/truncateFilename.js +23 -0
- package/styled-components/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +1 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +2 -2
- package/styled-components/cjs/components/Segment/README.md +61 -0
- package/styled-components/cjs/components/Segment/tokens.js +14 -1
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +66 -115
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +4 -13
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +10 -0
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/styled-components/cjs/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.js +17 -7
- package/styled-components/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles.js +17 -5
- package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/styled-components/cjs/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
- package/styled-components/cjs/components/Tabs/ui/Tabs/Tabs.js +4 -4
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDown.js +21 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeftCentered.js +22 -0
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureUp.js +21 -0
- package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDown.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconDisclosureLeftCentered.js +22 -0
- package/styled-components/cjs/components/_Icon/Icons/IconDisclosureUp.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +21 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
- package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
- package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
- package/styled-components/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
- package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
- package/styled-components/cjs/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
- package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/styled-components/es/components/Attach/Attach.js +7 -10
- package/styled-components/es/components/Attach/utils/index.js +1 -2
- package/styled-components/es/components/Attach/utils/truncateFilename.js +17 -0
- package/styled-components/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -2
- package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
- package/styled-components/es/components/Segment/README.md +61 -0
- package/styled-components/es/components/Segment/tokens.js +14 -1
- package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +69 -118
- package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles.js +3 -12
- package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.js +1 -1
- package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/base.js +4 -0
- package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_orientation/tokens.json +1 -0
- package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_pilled/base.js +1 -1
- package/styled-components/es/components/Segment/ui/SegmentGroup/variations/_size/base.js +1 -1
- package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.js +18 -8
- package/styled-components/es/components/Segment/ui/SegmentItem/SegmentItem.styles.js +17 -5
- package/styled-components/es/components/Segment/ui/SegmentItem/variations/_pilled/base.js +1 -1
- package/styled-components/es/components/Segment/ui/SegmentItem/variations/_view/base.js +2 -1
- package/styled-components/es/components/Tabs/ui/Tabs/Tabs.js +5 -5
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureDown.js +14 -0
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +3 -4
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeftCentered.js +15 -0
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +3 -4
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureUp.js +14 -0
- package/styled-components/es/components/_Icon/Icons/IconDisclosureDown.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconDisclosureLeftCentered.js +15 -0
- package/styled-components/es/components/_Icon/Icons/IconDisclosureUp.js +15 -0
- package/styled-components/es/components/_Icon/index.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +6 -3
- package/styled-components/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +118 -42
- package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentGroup.config.js +10 -7
- package/styled-components/es/examples/plasma_b2c/components/Segment/SegmentItem.config.js +8 -8
- package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Editable/Editable.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +6 -3
- package/styled-components/es/examples/plasma_web/components/Segment/Segment.stories.tsx +119 -42
- package/styled-components/es/examples/plasma_web/components/Segment/SegmentGroup.config.js +13 -7
- package/styled-components/es/examples/plasma_web/components/Segment/SegmentItem.config.js +8 -8
- package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +2 -2
- package/types/components/Attach/Attach.d.ts.map +1 -1
- package/types/components/Attach/utils/index.d.ts +1 -2
- package/types/components/Attach/utils/index.d.ts.map +1 -1
- package/types/components/Attach/utils/truncateFilename.d.ts +7 -0
- package/types/components/Attach/utils/truncateFilename.d.ts.map +1 -0
- package/types/components/Segment/tokens.d.ts +13 -0
- package/types/components/Segment/tokens.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +10 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts +0 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +19 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts +2 -0
- package/types/components/Segment/ui/SegmentGroup/variations/_orientation/base.d.ts.map +1 -0
- package/types/components/Segment/ui/SegmentGroup/variations/_pilled/base.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/variations/_size/base.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts +8 -2
- package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts +7 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts +14 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/variations/_pilled/base.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/variations/_view/base.d.ts.map +1 -1
- package/types/components/Tabs/ui/Tabs/Tabs.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureDown.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/DisclosureLeft.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureLeftCentered.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureUp.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconDisclosureDown.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureDown.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureLeftCentered.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconDisclosureUp.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureUp.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +3 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Segment/Segment.d.ts +10 -1
- package/types/examples/plasma_b2c/components/Segment/Segment.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Segment/SegmentGroup.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Segment/SegmentItem.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Segment/Segment.d.ts +13 -1
- package/types/examples/plasma_web/components/Segment/Segment.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts +6 -0
- package/types/examples/plasma_web/components/Segment/SegmentGroup.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Segment/SegmentItem.config.d.ts.map +1 -1
- package/cjs/components/Attach/utils/addSeparator.js +0 -18
- package/cjs/components/Attach/utils/addSeparator.js.map +0 -1
- package/cjs/components/Attach/utils/index.js +0 -11
- package/cjs/components/Attach/utils/index.js.map +0 -1
- package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
- package/cjs/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_pilled/base_fqbatz.css +0 -1
- package/cjs/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
- package/cjs/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
- package/cjs/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
- package/emotion/cjs/components/Attach/utils/addSeparator.js +0 -16
- package/emotion/es/components/Attach/utils/addSeparator.js +0 -10
- package/es/components/Attach/utils/addSeparator.js +0 -14
- package/es/components/Attach/utils/addSeparator.js.map +0 -1
- package/es/components/Attach/utils/index.js +0 -7
- package/es/components/Attach/utils/index.js.map +0 -1
- package/es/components/Segment/ui/SegmentGroup/SegmentGroup.styles_m9i9p0.css +0 -4
- package/es/components/Segment/ui/SegmentGroup/variations/_filledBackgound/base_escgtx.css +0 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_pilled/base_fqbatz.css +0 -1
- package/es/components/Segment/ui/SegmentGroup/variations/_size/base_m358nl.css +0 -1
- package/es/components/Segment/ui/SegmentItem/SegmentItem.styles_18h1p52.css +0 -2
- package/es/components/Segment/ui/SegmentItem/variations/_view/base_1m1u2ys.css +0 -1
- package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +0 -1
- package/es/components/_Icon/Icons/IconDisclosureLeft.js.map +0 -1
- package/styled-components/cjs/components/Attach/utils/addSeparator.js +0 -16
- package/styled-components/es/components/Attach/utils/addSeparator.js +0 -10
- package/types/components/Attach/utils/addSeparator.d.ts +0 -2
- package/types/components/Attach/utils/addSeparator.d.ts.map +0 -1
@@ -3,20 +3,34 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.base = exports.StyledContent = void 0;
|
6
|
+
exports.base = exports.StyledContent = exports.RightContent = exports.LeftContent = void 0;
|
7
7
|
var _base = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("@emotion/styled/base"));
|
8
8
|
var _react = /*#__PURE__*/require("@emotion/react");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
10
10
|
var _tokens = /*#__PURE__*/require("../../tokens");
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
12
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
|
12
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;appearance:none;border:none;outline:none;cursor:pointer;margin-left:var(", _tokens.tokens.itemMarginLeft, ");-webkit-tap-highlight-color:rgba(0, 0, 0, 0);&:first-child{margin-left:0;}", /*#__PURE__*/(0, _mixins.addFocus)({
|
13
13
|
outlineSize: '0.063rem',
|
14
|
-
outlineOffset: '-0.
|
14
|
+
outlineOffset: '-0.063rem',
|
15
15
|
outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
|
16
|
-
outlineRadius: 'calc(var(--plasma_private-outline-radius)
|
16
|
+
outlineRadius: 'calc(var(--plasma_private-outline-radius) - 0.063rem)',
|
17
17
|
customFocusRules: /*#__PURE__*/"\n &.focus-visible:focus,\n &[data-focus-visible-added] {\n &::before {\n z-index: 1;\n outline: none;\n box-shadow: 0 0 0 0.063rem var(".concat(_tokens.tokens.outlineFocusColor, ");\n }\n }\n ")
|
18
|
-
}), ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
18
|
+
}), ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGFkZEZvY3VzLCBhcHBseUVsbGlwc2lzIH0gZnJvbSAnLi4vLi4vLi4vLi4vbWl4aW5zJztcbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL3Rva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGJveC1zaXppbmc6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b3J9KTtcbiAgICB9XG5gO1xuXG5leHBvcnQgY29uc3QgTGVmdENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLXJpZ2h0OiB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KTtcblxuICAgIGNvbG9yOiBpbmhlcml0O1xuYDtcbiJdfQ== */"));
|
19
19
|
var StyledContent = exports.StyledContent = /*#__PURE__*/(0, _base["default"])("div", {
|
20
|
-
target: "
|
20
|
+
target: "e1hjv4i52",
|
21
21
|
label: "plasma-new-hope__StyledContent"
|
22
|
-
})("display:inline-block;width:fit-content;", /*#__PURE__*/(0, _mixins.applyEllipsis)(), ";"
|
22
|
+
})("display:inline-block;width:fit-content;padding:var(", _tokens.tokens.itemContentPadding, ");", /*#__PURE__*/(0, _mixins.applyEllipsis)(), ";margin-right:", function (_ref) {
|
23
|
+
var hasRightMargin = _ref.hasRightMargin;
|
24
|
+
return hasRightMargin ? "var(".concat(_tokens.tokens.itemIconMargin, ")") : '0';
|
25
|
+
}, ";margin-left:", function (_ref2) {
|
26
|
+
var hasLeftMargin = _ref2.hasLeftMargin;
|
27
|
+
return hasLeftMargin ? "var(".concat(_tokens.tokens.itemIconMargin, ")") : '0';
|
28
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0NFIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudH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tlbnMuaXRlbUljb25NYXJnaW59KWAgOiAnMCcpfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBSaWdodENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLWxlZnQ6IHZhcigke3Rva2Vucy5pdGVtSWNvbk1hcmdpbn0pO1xuICAgIG92ZXJmbG93OiBoaWRkZW47XG5cbiAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1Db2xvcn0pO1xuXG4gICAgJi4ke2NsYXNzZXMuc2VnbWVudEFkZGl0aW9uYWxUZXh0fSB7XG4gICAgICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzO1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1BZGRpdGlvbmFsQ29sb3J9KTtcbiAgICB9XG5gO1xuXG5leHBvcnQgY29uc3QgTGVmdENvbnRlbnQgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgbWFyZ2luLXJpZ2h0OiB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KTtcblxuICAgIGNvbG9yOiBpbmhlcml0O1xuYDtcbiJdfQ== */"));
|
29
|
+
var RightContent = exports.RightContent = /*#__PURE__*/(0, _base["default"])("div", {
|
30
|
+
target: "e1hjv4i51",
|
31
|
+
label: "plasma-new-hope__RightContent"
|
32
|
+
})("display:flex;margin-left:var(", _tokens.tokens.itemIconMargin, ");overflow:hidden;color:var(", _tokens.tokens.itemColor, ");&.", _tokens.classes.segmentAdditionalText, "{text-overflow:ellipsis;overflow:hidden;color:var(", _tokens.tokens.itemAdditionalColor, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9u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Ake2FwcGx5RWxsaXBzaXMoKX07XG5cbiAgICBtYXJnaW4tcmlnaHQ6ICR7KHsgaGFzUmlnaHRNYXJnaW4gfSkgPT4gKGhhc1JpZ2h0TWFyZ2luID8gYHZhcigke3Rva2Vucy5pdGVtSWNvbk1hcmdpbn0pYCA6ICcwJyl9O1xuICAgIG1hcmdpbi1sZWZ0OiAkeyh7IGhhc0xlZnRNYXJnaW4gfSkgPT4gKGhhc0xlZnRNYXJnaW4gPyBgdmFyKCR7dG9rZW5zLml0ZW1JY29uTWFyZ2lufSlgIDogJzAnKX07XG5gO1xuXG5leHBvcnQgY29uc3QgUmlnaHRDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIG1hcmdpbi1sZWZ0OiB2YXIoJHt0b2tlbnMuaXRlbUljb25NYXJnaW59KTtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQ29sb3J9KTtcblxuICAgICYuJHtjbGFzc2VzLnNlZ21lbnRBZGRpdGlvbmFsVGV4dH0ge1xuICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQWRkaXRpb25hbENvbG9yfSk7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IExlZnRDb250ZW50ID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIG1hcmdpbi1yaWdodDogdmFyKCR7dG9rZW5zLml0ZW1JY29uTWFyZ2lufSk7XG5cbiAgICBjb2xvcjogaW5oZXJpdDtcbmA7XG4iXX0= */"));
|
33
|
+
var LeftContent = exports.LeftContent = /*#__PURE__*/(0, _base["default"])("div", {
|
34
|
+
target: "e1hjv4i50",
|
35
|
+
label: "plasma-new-hope__LeftContent"
|
36
|
+
})("display:flex;margin-right:var(", _tokens.tokens.itemIconMargin, ");color:inherit;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS9TZWdtZW50SXRlbS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUVxQyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NlZ21lbnQvdWkvU2VnbWVudEl0ZW0vU2VnbWVudEl0ZW0uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhZGRGb2N1cywgYXBwbHlFbGxpcHNpcyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIG1pbi13aWR0aDogMDtcblxuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIG91dGxpbmU6IG5vbmU7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIG1hcmdpbi1sZWZ0OiB2Y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ufSk7XG5cbiAgICBjb2xvcjogaW5oZXJpdDtcbmA7XG4iXX0= */"));
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _react = /*#__PURE__*/require("@emotion/react");
|
8
8
|
var _tokens = /*#__PURE__*/require("../../../../tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", /*#__PURE__*/String(_tokens.classes.segmentPilled), "{--plasma_private-outline-radius:var(", _tokens.tokens.itemPilledBorderRadius, ");border-radius:var(", _tokens.tokens.itemPilledBorderRadius, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", /*#__PURE__*/String(_tokens.classes.segmentPilled), "{--plasma_private-outline-radius:var(", _tokens.tokens.itemPilledBorderRadius, ");border-radius:var(", _tokens.tokens.itemPilledBorderRadius, ");padding:var(", _tokens.tokens.itemPilledPadding, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL19waWxsZWQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TZWdtZW50L3VpL1NlZ21lbnRJdGVtL3ZhcmlhdGlvbnMvX3BpbGxlZC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi90b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7U3RyaW5nKGNsYXNzZXMuc2VnbWVudFBpbGxlZCl9IHtcbiAgICAgICAgLS1wbGFzbWFfcHJpdmF0ZS1vdXRsaW5lLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLml0ZW1QaWxsZWRCb3JkZXJSYWRpdXN9KTtcblxuICAgICAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMuaXRlbVBpbGxlZFBhZGRpbmd9KTtcbiAgICB9XG5gO1xuIl19 */"));
|
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _react = /*#__PURE__*/require("@emotion/react");
|
8
8
|
var _tokens = /*#__PURE__*/require("../../../../tokens");
|
9
|
-
var
|
9
|
+
var _SegmentItem = /*#__PURE__*/require("../../SegmentItem.styles");
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("color:var(", _tokens.tokens.itemColor, ");background-color:var(", _tokens.tokens.itemBackgroundColor, ");&:hover{color:var(", _tokens.tokens.itemColorHover, ");background-color:var(", _tokens.tokens.itemBackgroundColorHover, ");", _SegmentItem.RightContent, "{color:var(", _tokens.tokens.itemColorHover, ");}", _SegmentItem.RightContent, ".", _tokens.classes.segmentAdditionalText, "{color:var(", _tokens.tokens.itemAdditionalColorHover, ");}}&.", /*#__PURE__*/String(_tokens.classes.selectedSegmentItem), "{color:var(", _tokens.tokens.itemSelectedColor, ");background-color:var(", _tokens.tokens.itemSelectedBackgroundColor, ");", _SegmentItem.RightContent, "{color:var(", _tokens.tokens.itemSelectedColor, ");}", _SegmentItem.RightContent, ".", _tokens.classes.segmentAdditionalText, "{color:var(", _tokens.tokens.itemSelectedAdditionalColor, ");}&:hover{color:var(", _tokens.tokens.itemSelectedColorHover, ");background-color:var(", _tokens.tokens.itemSelectedBackgroundColorHover, ");", _SegmentItem.RightContent, "{color:var(", _tokens.tokens.itemSelectedAdditionalColorHover, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2VnbWVudC91aS9TZWdtZW50SXRlbS92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uLy4uLy4uL3Rva2Vucyc7XG5pbXBvcnQgeyBSaWdodENvbnRlbnQgfSBmcm9tICcuLi8uLi9TZWdtZW50SXRlbS5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1Db2xvcn0pO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQmFja2dyb3VuZENvbG9yfSk7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5pdGVtQ29sb3JIb3Zlcn0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNv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ENvbG9ySG92ZXJ9KTtcblxuICAgICAgICAgICAgJHtSaWdodENvbnRlbnR9IHtcbiAgICAgICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLml0ZW1TZWxlY3RlZEFkZGl0aW9uYWxDb2xvckhvdmVyfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
@@ -123,7 +123,7 @@ var tabsRoot = exports.tabsRoot = function tabsRoot(Root) {
|
|
123
123
|
isFilled: isFilled,
|
124
124
|
ref: leftArrowRef,
|
125
125
|
isLeftArrow: true
|
126
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon.
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureLeftCentered, {
|
127
127
|
color: "var(".concat(_tokens.tokens.arrowColor, ")")
|
128
128
|
}));
|
129
129
|
}, [onPrev, disabled, isFilled]);
|
@@ -135,7 +135,7 @@ var tabsRoot = exports.tabsRoot = function tabsRoot(Root) {
|
|
135
135
|
tabIndex: disabled ? -1 : 0,
|
136
136
|
disabled: disabled,
|
137
137
|
isFilled: isFilled
|
138
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon.
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureRightCentered, {
|
139
139
|
color: "var(".concat(_tokens.tokens.arrowColor, ")")
|
140
140
|
}));
|
141
141
|
}, [onNext, disabled, isFilled]);
|
@@ -145,7 +145,7 @@ var tabsRoot = exports.tabsRoot = function tabsRoot(Root) {
|
|
145
145
|
var scrollLeft = Math.round(event.currentTarget.scrollLeft);
|
146
146
|
setFirstItemVisible(scrollLeft <= 0);
|
147
147
|
setLastItemVisible(scrollLeft >= maxScrollLeft);
|
148
|
-
}, [
|
148
|
+
}, []);
|
149
149
|
var onKeyDown = (0, _react.useCallback)(function (event) {
|
150
150
|
if (index === undefined) {
|
151
151
|
return;
|
@@ -193,7 +193,7 @@ var tabsRoot = exports.tabsRoot = function tabsRoot(Root) {
|
|
193
193
|
scrollRef.current.scrollTo({
|
194
194
|
left: Math.round(scrollRef.current.scrollLeft + leftArrowRef.current.clientWidth)
|
195
195
|
});
|
196
|
-
}, [firstItemVisible
|
196
|
+
}, [firstItemVisible]);
|
197
197
|
return /*#__PURE__*/_react["default"].createElement(_TabsContext.TabsContext.Provider, {
|
198
198
|
value: refs
|
199
199
|
}, /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.DisclosureDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _path;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11
|
+
var DisclosureDown = exports.DisclosureDown = function DisclosureDown(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 24 24",
|
15
|
+
fill: "none"
|
16
|
+
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
17
|
+
d: "M17.78 18.21C17.48 17.92 17.01 17.92 16.71 18.21L12.75 22.18L8.78 18.21C8.48 17.92 8.01 17.92 7.71 18.21C7.42 18.51 7.42 18.98 7.71 19.28L12.75 24.31L17.78 19.28C18.07 18.98 18.07 18.51 17.78 18.21Z",
|
18
|
+
fillRule: "evenodd",
|
19
|
+
fill: "currentColor"
|
20
|
+
})));
|
21
|
+
};
|
@@ -14,9 +14,8 @@ var DisclosureLeft = exports.DisclosureLeft = function DisclosureLeft(props) {
|
|
14
14
|
viewBox: "0 0 24 24",
|
15
15
|
fill: "none"
|
16
16
|
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
fill: "currentColor"
|
17
|
+
d: "M6.09 6.96c.29.3.29.77 0 1.07L2.12 12l3.97 3.96c.29.3.29.77 0 1.07-.3.29-.77.29-1.06 0L0 12l5.03-5.04c.29-.29.76-.29 1.06 0Z",
|
18
|
+
fill: "currentColor",
|
19
|
+
fillRule: "evenodd"
|
21
20
|
})));
|
22
21
|
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.DisclosureLeftCentered = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _path;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11
|
+
var DisclosureLeftCentered = exports.DisclosureLeftCentered = function DisclosureLeftCentered(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 24 24",
|
15
|
+
fill: "none"
|
16
|
+
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
17
|
+
fillRule: "evenodd",
|
18
|
+
clipRule: "evenodd",
|
19
|
+
d: "M14.5309 6.96967C14.8238 7.26256 14.8238 7.73744 14.5309 8.03033L10.5613 12L14.5309 15.9697C14.8238 16.2626 14.8238 16.7374 14.5309 17.0303C14.238 17.3232 13.7632 17.3232 13.4703 17.0303L8.43994 12L13.4703 6.96967C13.7632 6.67678 14.238 6.67678 14.5309 6.96967Z",
|
20
|
+
fill: "currentColor"
|
21
|
+
})));
|
22
|
+
};
|
@@ -14,9 +14,8 @@ var DisclosureRight = exports.DisclosureRight = function DisclosureRight(props)
|
|
14
14
|
viewBox: "0 0 24 24",
|
15
15
|
fill: "none"
|
16
16
|
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
fill: "currentColor"
|
17
|
+
d: "M18.21 6.96c-.29.3-.29.77 0 1.07L22.18 12l-3.97 3.96c-.29.3-.29.77 0 1.07.3.29.77.29 1.07 0L24.31 12l-5.03-5.04a.767.767 0 0 0-1.07 0Z",
|
18
|
+
fill: "currentColor",
|
19
|
+
fillRule: "evenodd"
|
21
20
|
})));
|
22
21
|
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.DisclosureUp = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _path;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11
|
+
var DisclosureUp = exports.DisclosureUp = function DisclosureUp(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 24 24",
|
15
|
+
fill: "none"
|
16
|
+
}, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
|
17
|
+
d: "M17.18 8.18C16.89 8.47 16.41 8.47 16.12 8.18L12.15 4.21L8.18 8.18C7.89 8.47 7.41 8.47 7.12 8.18C6.83 7.89 6.83 7.41 7.12 7.12L12.15 2.09L17.18 7.12C17.47 7.41 17.47 7.89 17.18 8.18Z",
|
18
|
+
fillRule: "evenodd",
|
19
|
+
fill: "currentColor"
|
20
|
+
})));
|
21
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconDisclosureDown = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _DisclosureDown = /*#__PURE__*/require("../Icon.assets/DisclosureDown");
|
9
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconDisclosureDown = exports.IconDisclosureDown = function IconDisclosureDown(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 's' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _DisclosureDown.DisclosureDown
|
21
|
+
});
|
22
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconDisclosureLeftCentered = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
9
|
+
var _DisclosureLeftCentered = /*#__PURE__*/require("../Icon.assets/DisclosureLeftCentered");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconDisclosureLeftCentered = exports.IconDisclosureLeftCentered = function IconDisclosureLeftCentered(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 's' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _DisclosureLeftCentered.DisclosureLeftCentered
|
21
|
+
});
|
22
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconDisclosureUp = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _DisclosureUp = /*#__PURE__*/require("../Icon.assets/DisclosureUp");
|
9
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconDisclosureUp = exports.IconDisclosureUp = function IconDisclosureUp(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 's' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _DisclosureUp.DisclosureUp
|
21
|
+
});
|
22
|
+
};
|
@@ -81,6 +81,12 @@ Object.defineProperty(exports, "IconCross", {
|
|
81
81
|
return _IconCross.IconCross;
|
82
82
|
}
|
83
83
|
});
|
84
|
+
Object.defineProperty(exports, "IconDisclosureDown", {
|
85
|
+
enumerable: true,
|
86
|
+
get: function get() {
|
87
|
+
return _IconDisclosureDown.IconDisclosureDown;
|
88
|
+
}
|
89
|
+
});
|
84
90
|
Object.defineProperty(exports, "IconDisclosureDownCentered", {
|
85
91
|
enumerable: true,
|
86
92
|
get: function get() {
|
@@ -99,6 +105,12 @@ Object.defineProperty(exports, "IconDisclosureLeft", {
|
|
99
105
|
return _IconDisclosureLeft.IconDisclosureLeft;
|
100
106
|
}
|
101
107
|
});
|
108
|
+
Object.defineProperty(exports, "IconDisclosureLeftCentered", {
|
109
|
+
enumerable: true,
|
110
|
+
get: function get() {
|
111
|
+
return _IconDisclosureLeftCentered.IconDisclosureLeftCentered;
|
112
|
+
}
|
113
|
+
});
|
102
114
|
Object.defineProperty(exports, "IconDisclosureRight", {
|
103
115
|
enumerable: true,
|
104
116
|
get: function get() {
|
@@ -111,6 +123,12 @@ Object.defineProperty(exports, "IconDisclosureRightCentered", {
|
|
111
123
|
return _IconDisclosureRightCentered.IconDisclosureRightCentered;
|
112
124
|
}
|
113
125
|
});
|
126
|
+
Object.defineProperty(exports, "IconDisclosureUp", {
|
127
|
+
enumerable: true,
|
128
|
+
get: function get() {
|
129
|
+
return _IconDisclosureUp.IconDisclosureUp;
|
130
|
+
}
|
131
|
+
});
|
114
132
|
Object.defineProperty(exports, "IconDone", {
|
115
133
|
enumerable: true,
|
116
134
|
get: function get() {
|
@@ -138,6 +156,8 @@ Object.defineProperty(exports, "IconPlus", {
|
|
138
156
|
var _IconDisclosureLeft = /*#__PURE__*/require("./Icons/IconDisclosureLeft");
|
139
157
|
var _IconDisclosureRight = /*#__PURE__*/require("./Icons/IconDisclosureRight");
|
140
158
|
var _IconDisclosureDownFill = /*#__PURE__*/require("./Icons/IconDisclosureDownFill");
|
159
|
+
var _IconDisclosureDown = /*#__PURE__*/require("./Icons/IconDisclosureDown");
|
160
|
+
var _IconDisclosureUp = /*#__PURE__*/require("./Icons/IconDisclosureUp");
|
141
161
|
var _IconMic = /*#__PURE__*/require("./Icons/IconMic");
|
142
162
|
var _IconChevronLeft = /*#__PURE__*/require("./Icons/IconChevronLeft");
|
143
163
|
var _IconChevronDoubleLeft = /*#__PURE__*/require("./Icons/IconChevronDoubleLeft");
|
@@ -146,6 +166,7 @@ var _IconChevronDownFill = /*#__PURE__*/require("./Icons/IconChevronDownFill");
|
|
146
166
|
var _IconClose = /*#__PURE__*/require("./Icons/IconClose");
|
147
167
|
var _IconCross = /*#__PURE__*/require("./Icons/IconCross");
|
148
168
|
var _IconDone = /*#__PURE__*/require("./Icons/IconDone");
|
169
|
+
var _IconDisclosureLeftCentered = /*#__PURE__*/require("./Icons/IconDisclosureLeftCentered");
|
149
170
|
var _IconDisclosureRightCentered = /*#__PURE__*/require("./Icons/IconDisclosureRightCentered");
|
150
171
|
var _IconDisclosureDownCentered = /*#__PURE__*/require("./Icons/IconDisclosureDownCentered");
|
151
172
|
var _IconMinus = /*#__PURE__*/require("./Icons/IconMinus");
|
@@ -3,7 +3,7 @@ import type { ComponentProps } from 'react';
|
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
4
4
|
import { disableProps } from '@salutejs/plasma-sb-utils';
|
5
5
|
|
6
|
-
import {
|
6
|
+
import { IconDisclosureLeftCentered } from '../../../../components/_Icon';
|
7
7
|
import { WithTheme } from '../../../_helpers';
|
8
8
|
|
9
9
|
import { Editable, typographyVariants } from './Editable';
|
@@ -50,7 +50,7 @@ const StoryDefault = ({ defaultValue, componentName, iconSize, ...rest }: StoryP
|
|
50
50
|
return (
|
51
51
|
<Editable
|
52
52
|
{...rest}
|
53
|
-
icon={<
|
53
|
+
icon={<IconDisclosureLeftCentered size={iconSize} color="inherit" />}
|
54
54
|
textComponent={typographyVariants[componentName]}
|
55
55
|
value={defaultValue}
|
56
56
|
onChange={handleChange}
|
@@ -12,7 +12,7 @@ import {
|
|
12
12
|
import { WithTheme } from '../../../_helpers';
|
13
13
|
import { PopupProvider } from '../Popup/Popup';
|
14
14
|
import { NotificationProps } from '../../../../components/Notification';
|
15
|
-
import {
|
15
|
+
import { IconDisclosureRightCentered } from '../../../../components/_Icon';
|
16
16
|
|
17
17
|
import { Notification, NotificationsProvider } from './Notification';
|
18
18
|
|
@@ -55,7 +55,7 @@ const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIc
|
|
55
55
|
return (
|
56
56
|
<Notification
|
57
57
|
title={title}
|
58
|
-
icon={showLeftIcon ? <
|
58
|
+
icon={showLeftIcon ? <IconDisclosureRightCentered /> : ''}
|
59
59
|
iconPlacement={iconPlacement}
|
60
60
|
actions={
|
61
61
|
<Button
|
@@ -116,7 +116,10 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
|
|
116
116
|
const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
|
117
117
|
const count = useRef(0);
|
118
118
|
const handleClick = useCallback(() => {
|
119
|
-
addNotification(
|
119
|
+
addNotification(
|
120
|
+
{ icon: <IconDisclosureRightCentered />, ...rest, ...getNotificationProps(count.current) },
|
121
|
+
timeout,
|
122
|
+
);
|
120
123
|
count.current++;
|
121
124
|
}, [count, rest]);
|
122
125
|
|
@@ -1,23 +1,55 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { ComponentProps } from 'react';
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
+
import { disableProps } from '@salutejs/plasma-sb-utils';
|
4
5
|
|
5
6
|
import { segmentGroupConfig } from '../../../../components/Segment';
|
6
7
|
import { mergeConfig } from '../../../../engines';
|
7
8
|
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
8
9
|
import { SegmentProvider } from '../../../../components/Segment/SegmentProvider';
|
10
|
+
import { Counter } from '../Counter/Counter';
|
11
|
+
import { IconMic } from '../../../../components/_Icon';
|
9
12
|
|
10
13
|
import { config } from './SegmentGroup.config';
|
11
14
|
import { SegmentItem, SegmentGroup } from './Segment';
|
12
15
|
|
13
|
-
const
|
16
|
+
const contentLeftOptions = ['none', 'icon'];
|
17
|
+
const contentRightOptions = ['none', 'text', 'counter', 'icon'];
|
14
18
|
|
15
|
-
|
16
|
-
|
17
|
-
|
19
|
+
const segmentItemViews = ['default', 'secondary'];
|
20
|
+
type Size = typeof sizes[number];
|
21
|
+
|
22
|
+
type CustomStoryProps = {
|
23
|
+
itemQuantity: number;
|
24
|
+
contentLeft: string;
|
25
|
+
contentRight: string;
|
26
|
+
segmentItemView?: 'default' | 'secondary';
|
27
|
+
};
|
28
|
+
|
29
|
+
type StorySegmentProps = ComponentProps<typeof SegmentGroup> & CustomStoryProps;
|
30
|
+
|
31
|
+
const sizes = ['xs', 's', 'm', 'l'] as const;
|
32
|
+
|
33
|
+
const getContentLeft = (contentLeftOption: string, size: Size) => {
|
34
|
+
const iconSize = size === 'xs' ? 'xs' : 's';
|
35
|
+
return contentLeftOption === 'icon' ? <IconMic size={iconSize} color="inherit" /> : undefined;
|
18
36
|
};
|
19
37
|
|
20
|
-
|
38
|
+
const getContentRight = (contentRightOption: string, size: Size) => {
|
39
|
+
const iconSize = size === 'xs' ? 'xs' : 's';
|
40
|
+
const counterSize = size === 'xs' ? 'xxs' : 'xs';
|
41
|
+
|
42
|
+
switch (contentRightOption) {
|
43
|
+
case 'icon':
|
44
|
+
return <IconMic size={iconSize} color="inherit" />;
|
45
|
+
case 'counter':
|
46
|
+
return <Counter size={counterSize} count={1} view="positive" />;
|
47
|
+
case 'text':
|
48
|
+
return 'Text';
|
49
|
+
default:
|
50
|
+
return undefined;
|
51
|
+
}
|
52
|
+
};
|
21
53
|
|
22
54
|
const meta: Meta<StorySegmentProps> = {
|
23
55
|
title: 'plasma_b2c/Segment',
|
@@ -25,6 +57,19 @@ const meta: Meta<StorySegmentProps> = {
|
|
25
57
|
component: SegmentGroup,
|
26
58
|
argTypes: {
|
27
59
|
...argTypesFromConfig(mergeConfig(segmentGroupConfig, config)),
|
60
|
+
...disableProps(['filledBackground', 'view', 'selectionMode']),
|
61
|
+
stretch: {
|
62
|
+
control: {
|
63
|
+
type: 'boolean',
|
64
|
+
},
|
65
|
+
if: { arg: 'orientation', eq: 'horizontal' },
|
66
|
+
},
|
67
|
+
orientation: {
|
68
|
+
options: ['horizontal', 'vertical'],
|
69
|
+
control: {
|
70
|
+
type: 'select',
|
71
|
+
},
|
72
|
+
},
|
28
73
|
selectionMode: {
|
29
74
|
options: ['single', 'multiple'],
|
30
75
|
control: {
|
@@ -37,60 +82,91 @@ const meta: Meta<StorySegmentProps> = {
|
|
37
82
|
type: 'select',
|
38
83
|
},
|
39
84
|
},
|
85
|
+
contentLeft: {
|
86
|
+
options: contentLeftOptions,
|
87
|
+
control: {
|
88
|
+
type: 'select',
|
89
|
+
},
|
90
|
+
},
|
91
|
+
contentRight: {
|
92
|
+
options: contentRightOptions,
|
93
|
+
control: {
|
94
|
+
type: 'select',
|
95
|
+
},
|
96
|
+
},
|
40
97
|
},
|
41
98
|
};
|
42
99
|
|
43
100
|
export default meta;
|
44
101
|
|
45
|
-
const StoryDefault = (
|
46
|
-
const
|
102
|
+
const StoryDefault = (props: StorySegmentProps) => {
|
103
|
+
const {
|
104
|
+
disabled,
|
105
|
+
itemQuantity,
|
106
|
+
size,
|
107
|
+
stretch,
|
108
|
+
orientation,
|
109
|
+
|
110
|
+
segmentItemView,
|
111
|
+
contentLeft: contentLeftOption,
|
112
|
+
contentRight: contentRightOption,
|
113
|
+
...args
|
114
|
+
} = props;
|
115
|
+
const items = Array(itemQuantity).fill(0);
|
47
116
|
|
48
117
|
return (
|
49
|
-
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<SegmentGroup view={view} style={{ width: '28.5rem' }} selectionMode={selectionMode} {...args}>
|
68
|
-
{contentItems.map((_, i) => (
|
69
|
-
<SegmentItem
|
70
|
-
view={segmentItemView}
|
71
|
-
label={`Label ${i}`}
|
72
|
-
value={`label_${i}`}
|
73
|
-
key={`label_${i}`}
|
74
|
-
{...args}
|
75
|
-
/>
|
76
|
-
))}
|
77
|
-
</SegmentGroup>
|
78
|
-
</SegmentProvider>
|
79
|
-
</>
|
118
|
+
<SegmentProvider>
|
119
|
+
<SegmentGroup stretch={stretch} disabled={disabled} size={size} orientation={orientation} {...args}>
|
120
|
+
{items.map((_, i) => (
|
121
|
+
<SegmentItem
|
122
|
+
view={segmentItemView}
|
123
|
+
label={`Label ${i}`}
|
124
|
+
value={`label_${i}`}
|
125
|
+
size={size}
|
126
|
+
key={`label_${i}`}
|
127
|
+
contentLeft={getContentLeft(contentLeftOption, size)}
|
128
|
+
contentRight={getContentRight(contentRightOption, size)}
|
129
|
+
{...args}
|
130
|
+
>
|
131
|
+
{`Label${i + 1}`}
|
132
|
+
</SegmentItem>
|
133
|
+
))}
|
134
|
+
</SegmentGroup>
|
135
|
+
</SegmentProvider>
|
80
136
|
);
|
81
137
|
};
|
82
138
|
|
83
139
|
export const Default: StoryObj<StorySegmentProps> = {
|
84
140
|
args: {
|
85
|
-
|
141
|
+
itemQuantity: 8,
|
86
142
|
size: 'xs',
|
87
|
-
segmentItemView: '
|
143
|
+
segmentItemView: 'default',
|
88
144
|
selectionMode: 'single',
|
89
|
-
contentItemsNumber: 11,
|
90
145
|
pilled: false,
|
91
146
|
filledBackground: false,
|
147
|
+
hasBackground: false,
|
92
148
|
disabled: false,
|
93
149
|
stretch: false,
|
150
|
+
orientation: 'horizontal',
|
151
|
+
contentRight: 'none',
|
152
|
+
contentLeft: 'none',
|
153
|
+
},
|
154
|
+
argTypes: {
|
155
|
+
stretch: {
|
156
|
+
control: {
|
157
|
+
type: 'boolean',
|
158
|
+
},
|
159
|
+
if: { arg: 'orientation', eq: 'horizontal' },
|
160
|
+
},
|
161
|
+
size: {
|
162
|
+
options: sizes,
|
163
|
+
control: {
|
164
|
+
type: 'select',
|
165
|
+
},
|
166
|
+
},
|
167
|
+
...disableProps(['filledBackground', 'view', 'selectionMode', 'vertical']),
|
168
|
+
},
|
169
|
+
render: (args: StorySegmentProps) => {
|
170
|
+
return <StoryDefault {...args} />;
|
94
171
|
},
|
95
|
-
render: (args) => <StoryDefault {...args} />,
|
96
172
|
};
|