@salutejs/plasma-new-hope 0.175.2-canary.1505.11553165432.0 → 0.175.3-canary.1502.11570570852.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Slider/Slider.css +15 -13
- package/cjs/components/Slider/Slider.js +11 -2
- package/cjs/components/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/Slider.tokens.js +23 -17
- package/cjs/components/Slider/Slider.tokens.js.map +1 -1
- package/cjs/components/Slider/components/Double/Double.css +8 -8
- package/cjs/components/Slider/components/Double/Double.js +58 -23
- package/cjs/components/Slider/components/Double/Double.js.map +1 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
- package/cjs/components/Slider/components/Single/Single.css +14 -14
- package/cjs/components/Slider/components/Single/Single.js +64 -33
- package/cjs/components/Slider/components/Single/Single.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
- package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
- package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
- package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
- package/cjs/components/Slider/ui/Handler/Handler.js +49 -88
- package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles.js +17 -7
- package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +122 -0
- package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
- package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
- package/cjs/components/Slider/utils/index.js +28 -10
- package/cjs/components/Slider/utils/index.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base.js +1 -1
- package/cjs/components/Slider/variations/_view/base.js.map +1 -1
- package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
- package/cjs/components/Tabs/createTabsController.js.map +1 -1
- package/cjs/components/Tabs/tokens.js +2 -0
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +5 -5
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +20 -8
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/{HorizontalTabs.styles_16kuvxt.css → HorizontalTabs.styles_p9rk79.css} +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/{base_9miwn.css → base_4ob3q5.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabs/{VerticalTabs.styles_1fr5ovg.css → VerticalTabs.styles_1r1hidh.css} +1 -1
- package/cjs/index.css +24 -22
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/Slider/Slider.js +10 -2
- package/emotion/cjs/components/Slider/Slider.template-doc.mdx +26 -0
- package/emotion/cjs/components/Slider/Slider.tokens.js +23 -17
- package/emotion/cjs/components/Slider/components/Double/Double.js +54 -19
- package/emotion/cjs/components/Slider/components/Single/Single.js +64 -33
- package/emotion/cjs/components/Slider/components/Single/Single.styles.js +18 -9
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
- package/emotion/cjs/components/Slider/ui/Handler/Handler.js +52 -88
- package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +9 -15
- package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/cjs/components/Slider/utils/index.js +28 -10
- package/emotion/cjs/components/Slider/variations/_view/base.js +2 -1
- package/emotion/cjs/components/Tabs/tokens.js +2 -0
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +20 -8
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +4 -4
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -6
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +4 -4
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +72 -33
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +72 -33
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/es/components/Slider/Slider.js +11 -2
- package/emotion/es/components/Slider/Slider.template-doc.mdx +26 -0
- package/emotion/es/components/Slider/Slider.tokens.js +23 -17
- package/emotion/es/components/Slider/components/Double/Double.js +54 -19
- package/emotion/es/components/Slider/components/Single/Single.js +65 -34
- package/emotion/es/components/Slider/components/Single/Single.styles.js +17 -8
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
- package/emotion/es/components/Slider/ui/Handler/Handler.js +51 -86
- package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +10 -16
- package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
- package/emotion/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
- package/emotion/es/components/Slider/utils/index.js +28 -10
- package/emotion/es/components/Slider/variations/_view/base.js +2 -1
- package/emotion/es/components/Tabs/tokens.js +2 -0
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +21 -9
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +4 -4
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +8 -7
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +4 -4
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +72 -33
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
- package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +72 -33
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +15 -15
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +15 -15
- package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +6 -6
- package/es/components/Slider/Slider.css +15 -13
- package/es/components/Slider/Slider.js +11 -2
- package/es/components/Slider/Slider.js.map +1 -1
- package/es/components/Slider/Slider.tokens.js +23 -17
- package/es/components/Slider/Slider.tokens.js.map +1 -1
- package/es/components/Slider/components/Double/Double.css +8 -8
- package/es/components/Slider/components/Double/Double.js +54 -19
- package/es/components/Slider/components/Double/Double.js.map +1 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
- package/es/components/Slider/components/Single/Single.css +14 -14
- package/es/components/Slider/components/Single/Single.js +65 -34
- package/es/components/Slider/components/Single/Single.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles.js +4 -4
- package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
- package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
- package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
- package/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
- package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
- package/es/components/Slider/ui/Handler/Handler.css +3 -3
- package/es/components/Slider/ui/Handler/Handler.js +48 -87
- package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles.js +17 -7
- package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
- package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
- package/es/components/Slider/ui/Handler/computeKeyPressData.js +118 -0
- package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
- package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
- package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
- package/es/components/Slider/utils/index.js +28 -10
- package/es/components/Slider/utils/index.js.map +1 -1
- package/es/components/Slider/variations/_view/base.js +1 -1
- package/es/components/Slider/variations/_view/base.js.map +1 -1
- package/es/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
- package/es/components/Tabs/createTabsController.js.map +1 -1
- package/es/components/Tabs/tokens.js +2 -0
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.css +5 -5
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +21 -9
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/{HorizontalTabs.styles_16kuvxt.css → HorizontalTabs.styles_p9rk79.css} +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/{base_9miwn.css → base_4ob3q5.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.css +4 -4
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +8 -7
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabs/{VerticalTabs.styles_1fr5ovg.css → VerticalTabs.styles_1r1hidh.css} +1 -1
- package/es/index.css +24 -22
- package/es/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Slider/Slider.js +10 -2
- package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +26 -0
- package/styled-components/cjs/components/Slider/Slider.tokens.js +23 -17
- package/styled-components/cjs/components/Slider/components/Double/Double.js +54 -19
- package/styled-components/cjs/components/Slider/components/Single/Single.js +64 -33
- package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +52 -88
- package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -4
- package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/cjs/components/Slider/utils/index.js +28 -10
- package/styled-components/cjs/components/Slider/variations/_view/base.js +2 -1
- package/styled-components/cjs/components/Tabs/tokens.js +2 -0
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +20 -8
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +2 -2
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +7 -6
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +72 -33
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +72 -33
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/es/components/Slider/Slider.js +11 -2
- package/styled-components/es/components/Slider/Slider.template-doc.mdx +26 -0
- package/styled-components/es/components/Slider/Slider.tokens.js +23 -17
- package/styled-components/es/components/Slider/components/Double/Double.js +54 -19
- package/styled-components/es/components/Slider/components/Single/Single.js +65 -34
- package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
- package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
- package/styled-components/es/components/Slider/ui/Handler/Handler.js +51 -86
- package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -5
- package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +3 -2
- package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
- package/styled-components/es/components/Slider/utils/index.js +28 -10
- package/styled-components/es/components/Slider/variations/_view/base.js +2 -1
- package/styled-components/es/components/Tabs/tokens.js +2 -0
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +3 -1
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +21 -9
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js +2 -2
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js +1 -1
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +8 -7
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +72 -33
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
- package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +72 -33
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.js +3 -3
- package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.js +1 -1
- package/types/components/Slider/Slider.d.ts.map +1 -1
- package/types/components/Slider/Slider.tokens.d.ts +22 -16
- package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.types.d.ts +1 -0
- package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.types.d.ts +79 -7
- package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +6 -0
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts +6 -2
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.types.d.ts +5 -1
- package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +12 -0
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -0
- package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +1 -0
- package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
- package/types/components/Slider/utils/index.d.ts +26 -8
- package/types/components/Slider/utils/index.d.ts.map +1 -1
- package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +50 -8
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/Tabs.types.d.ts +44 -2
- package/types/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/types/components/Tabs/createTabsController.d.ts +2 -2
- package/types/components/Tabs/createTabsController.d.ts.map +1 -1
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tabs/index.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +2 -0
- package/types/components/Tabs/tokens.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts +2 -2
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +80 -2
- package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +21 -6
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Tabs/Tabs.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Slider/Slider.d.ts +80 -2
- package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +21 -6
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/Tabs.d.ts +2 -2
- package/types/examples/plasma_web/components/Tabs/Tabs.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabs.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabs.config.d.ts.map +1 -1
- package/types/utils/index.d.ts +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
- package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
- package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
- package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
- package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
- package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
- package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
- package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
- package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
- package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
@@ -1,5 +1,9 @@
|
|
1
|
-
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["size", "orientation", "stepSize", "onChangeCommitted", "onChange", "position", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value", "valuePlacement"];
|
2
3
|
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); }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
3
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -10,28 +14,23 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
10
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
15
|
import React, { useRef, forwardRef } from 'react';
|
12
16
|
import Draggable from 'react-draggable';
|
17
|
+
import { cx } from '../../../../utils';
|
13
18
|
import { getSliderThumbValue, getOffsets } from '../../utils';
|
14
19
|
import { Thumb } from '../Thumb/Thumb';
|
20
|
+
import { classes } from '../../Slider.tokens';
|
15
21
|
import { HandlerStyled, StyledValue } from './Handler.styles';
|
22
|
+
import { computeKeyPressData } from './computeKeyPressData';
|
16
23
|
|
17
24
|
// TODO: PLASMA-1707
|
18
25
|
|
19
|
-
var KeyboardSupport = {
|
20
|
-
PageUp: 33,
|
21
|
-
PageDown: 34,
|
22
|
-
End: 35,
|
23
|
-
Home: 36,
|
24
|
-
ArrowLeft: 37,
|
25
|
-
ArrowUp: 38,
|
26
|
-
ArrowRight: 39,
|
27
|
-
ArrowDown: 40
|
28
|
-
};
|
29
26
|
export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
30
|
-
var
|
27
|
+
var size = _ref.size,
|
28
|
+
orientation = _ref.orientation,
|
29
|
+
stepSize = _ref.stepSize,
|
31
30
|
onChangeCommitted = _ref.onChangeCommitted,
|
32
31
|
onChange = _ref.onChange,
|
33
|
-
_ref$
|
34
|
-
|
32
|
+
_ref$position = _ref.position,
|
33
|
+
position = _ref$position === void 0 ? 0 : _ref$position,
|
35
34
|
min = _ref.min,
|
36
35
|
max = _ref.max,
|
37
36
|
_ref$bounds = _ref.bounds,
|
@@ -46,122 +45,88 @@ export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
46
45
|
_ref$endOffset = _ref.endOffset,
|
47
46
|
endOffset = _ref$endOffset === void 0 ? 0 : _ref$endOffset,
|
48
47
|
value = _ref.value,
|
48
|
+
valuePlacement = _ref.valuePlacement,
|
49
49
|
rest = _objectWithoutProperties(_ref, _excluded);
|
50
|
+
var isVertical = orientation === 'vertical';
|
50
51
|
var lastOnChangeValue = useRef();
|
51
|
-
var _getOffsets = getOffsets(ref, side),
|
52
|
+
var _getOffsets = getOffsets(ref, side, isVertical),
|
52
53
|
_getOffsets2 = _slicedToArray(_getOffsets, 2),
|
53
|
-
|
54
|
-
|
54
|
+
startClientOffset = _getOffsets2[0],
|
55
|
+
endClientOffset = _getOffsets2[1];
|
55
56
|
var _bounds = _slicedToArray(bounds, 2),
|
56
|
-
|
57
|
-
|
58
|
-
var
|
59
|
-
var
|
60
|
-
var
|
61
|
-
x:
|
62
|
-
y: 0
|
57
|
+
startValueBound = _bounds[0],
|
58
|
+
endValueBound = _bounds[1];
|
59
|
+
var startPositionBound = startValueBound ? (startValueBound - min) * stepSize : null;
|
60
|
+
var endPositionBound = endValueBound ? (endValueBound - min) * stepSize : null;
|
61
|
+
var dragPosition = typeof position === 'number' ? {
|
62
|
+
x: isVertical ? 0 : position,
|
63
|
+
y: isVertical ? position : 0
|
63
64
|
} : undefined;
|
64
65
|
var tabIndex = disabled ? -1 : 0;
|
65
|
-
var computedBounds = {
|
66
|
-
|
67
|
-
right: (rightPositionBound !== null && rightPositionBound !== void 0 ? rightPositionBound : stepSize * (max - min)) - (offsetRight ? stepSize : 0)
|
68
|
-
};
|
69
|
-
var showCurrentValueCondition = showCurrentValue && (xPosition >= startOffset && xPosition <= max * stepSize - endOffset || xPosition === 0 && value !== 0);
|
66
|
+
var computedBounds = _defineProperty(_defineProperty({}, isVertical ? 'top' : 'left', (startPositionBound !== null && startPositionBound !== void 0 ? startPositionBound : 0) - (startClientOffset ? stepSize : 0)), isVertical ? 'bottom' : 'right', (endPositionBound !== null && endPositionBound !== void 0 ? endPositionBound : stepSize * (max - min)) - (endClientOffset ? stepSize : 0));
|
67
|
+
var showCurrentValueCondition = showCurrentValue && (position >= startOffset && position <= max * stepSize - endOffset || position === 0 && value !== 0);
|
70
68
|
var onDrag = function onDrag(_, data) {
|
71
|
-
var newValue = getSliderThumbValue(data.x, stepSize, min, max);
|
69
|
+
var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
|
72
70
|
if (lastOnChangeValue.current !== newValue) {
|
73
71
|
onChange === null || onChange === void 0 || onChange(newValue, data);
|
74
72
|
lastOnChangeValue.current = newValue;
|
75
73
|
}
|
76
74
|
};
|
77
75
|
var onStop = function onStop(_, data) {
|
78
|
-
var newValue = getSliderThumbValue(data.x, stepSize, min, max);
|
76
|
+
var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
|
79
77
|
onChangeCommitted && onChangeCommitted(newValue, data);
|
80
78
|
};
|
81
79
|
var onKeyPress = function onKeyPress(event) {
|
82
80
|
event.persist();
|
83
|
-
var keyCode = event.keyCode,
|
84
|
-
target = event.target;
|
85
|
-
if (!Object.values(KeyboardSupport).includes(keyCode)) {
|
86
|
-
return;
|
87
|
-
}
|
88
|
-
var ArrowUp = KeyboardSupport.ArrowUp,
|
89
|
-
ArrowRight = KeyboardSupport.ArrowRight,
|
90
|
-
ArrowDown = KeyboardSupport.ArrowDown,
|
91
|
-
ArrowLeft = KeyboardSupport.ArrowLeft,
|
92
|
-
Home = KeyboardSupport.Home,
|
93
|
-
End = KeyboardSupport.End,
|
94
|
-
PageDown = KeyboardSupport.PageDown,
|
95
|
-
PageUp = KeyboardSupport.PageUp;
|
96
81
|
var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
|
97
|
-
var data = {
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
switch (keyCode) {
|
107
|
-
case ArrowUp:
|
108
|
-
case ArrowRight:
|
109
|
-
data.x = xPosition + stepSize;
|
110
|
-
break;
|
111
|
-
case ArrowDown:
|
112
|
-
case ArrowLeft:
|
113
|
-
data.x = xPosition - stepSize;
|
114
|
-
data.deltaX = -stepSize;
|
115
|
-
break;
|
116
|
-
case PageUp:
|
117
|
-
data.x = xPosition + computedMultipleSteps;
|
118
|
-
data.deltaX = computedMultipleSteps;
|
119
|
-
break;
|
120
|
-
case PageDown:
|
121
|
-
data.x = xPosition - computedMultipleSteps;
|
122
|
-
data.deltaX = -computedMultipleSteps;
|
123
|
-
break;
|
124
|
-
case End:
|
125
|
-
data.x = max * stepSize;
|
126
|
-
break;
|
127
|
-
case Home:
|
128
|
-
data.x = 0;
|
129
|
-
break;
|
130
|
-
default:
|
131
|
-
data.x = 0;
|
82
|
+
var data = computeKeyPressData(event, {
|
83
|
+
isVertical: isVertical,
|
84
|
+
stepSize: stepSize,
|
85
|
+
position: position,
|
86
|
+
max: max,
|
87
|
+
computedMultipleSteps: computedMultipleSteps
|
88
|
+
});
|
89
|
+
if (!data) {
|
90
|
+
return;
|
132
91
|
}
|
133
92
|
var left = computedBounds.left,
|
134
|
-
right = computedBounds.right
|
93
|
+
right = computedBounds.right,
|
94
|
+
top = computedBounds.top,
|
95
|
+
bottom = computedBounds.bottom;
|
135
96
|
|
136
97
|
/*
|
137
98
|
* INFO: Находим значение в диапазоне между указанными левой и правой границами.
|
99
|
+
* Или между верхней и нижней
|
138
100
|
* Необходимо для правильного расчета положения SliderThumb.
|
139
101
|
* см. функция clamp
|
140
102
|
*/
|
141
|
-
var boundedValue = Math.max(Math.min(right, data.x), left);
|
103
|
+
var boundedValue = isVertical ? Math.max(Math.min(bottom, data.y), top) : Math.max(Math.min(right, data.x), left);
|
142
104
|
var computedValue = getSliderThumbValue(boundedValue, stepSize, min, max);
|
143
105
|
lastOnChangeValue.current = computedValue;
|
144
106
|
onChangeCommitted && onChangeCommitted(computedValue, data);
|
145
107
|
};
|
146
108
|
return /*#__PURE__*/React.createElement(Draggable, {
|
147
|
-
axis:
|
109
|
+
axis: isVertical ? 'y' : 'x',
|
148
110
|
bounds: computedBounds,
|
149
|
-
grid: [stepSize, 1],
|
111
|
+
grid: isVertical ? [1, stepSize] : [stepSize, 1],
|
150
112
|
onStop: onStop,
|
151
113
|
onDrag: onDrag,
|
152
|
-
position:
|
114
|
+
position: dragPosition,
|
153
115
|
disabled: disabled
|
154
116
|
}, /*#__PURE__*/React.createElement(HandlerStyled, {
|
155
117
|
ref: ref,
|
156
118
|
style: {
|
157
119
|
zIndex: zIndex
|
158
120
|
},
|
121
|
+
className: cx(isVertical && classes.verticalOrientation, valuePlacement === 'left' && classes.valuePlacementLeft),
|
122
|
+
isLarge: size === 'large',
|
159
123
|
onKeyDown: onKeyPress
|
160
|
-
}, /*#__PURE__*/React.createElement(Thumb, _extends({
|
124
|
+
}, size !== 'none' && /*#__PURE__*/React.createElement(Thumb, _extends({
|
161
125
|
tabIndex: tabIndex,
|
162
126
|
min: min,
|
163
127
|
max: max,
|
164
128
|
value: value,
|
165
|
-
disabled: disabled
|
129
|
+
disabled: disabled,
|
130
|
+
orientation: orientation
|
166
131
|
}, rest)), showCurrentValueCondition && /*#__PURE__*/React.createElement(StyledValue, null, value)));
|
167
132
|
});
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { tokens } from '../../Slider.tokens';
|
3
|
-
export var HandlerStyled = /*#__PURE__*/styled.div.withConfig({
|
4
|
-
componentId: "plasma-new-hope__sc-a1py3c-0"
|
5
|
-
})(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;"]);
|
2
|
+
import { classes, tokens } from '../../Slider.tokens';
|
6
3
|
export var StyledValue = /*#__PURE__*/styled.span.withConfig({
|
4
|
+
componentId: "plasma-new-hope__sc-a1py3c-0"
|
5
|
+
})(["position:absolute;z-index:1;top:var(", ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.currentValueTopOffset, tokens.valueFontFamily, tokens.valueFontSize, tokens.valueFontStyle, tokens.valueFontWeight, tokens.valueLetterSpacing, tokens.valueLineHeight);
|
6
|
+
export var HandlerStyled = /*#__PURE__*/styled.div.withConfig({
|
7
7
|
componentId: "plasma-new-hope__sc-a1py3c-1"
|
8
|
-
})(["position:absolute;z-index:1;top:
|
8
|
+
})(["cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;--thumb-size:", ";&.", "{right:0;bottom:auto;align-items:flex-start;justify-content:center;", "{margin:0;top:0;bottom:0;right:0;left:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.25rem);align-items:center;justify-content:flex-start;}}&.", "{", "{left:auto;right:calc(var(", ") - (var(", ") - var(--thumb-size)) / 2 + 0.3125rem);justify-content:flex-end;}}"], function (_ref) {
|
9
|
+
var isLarge = _ref.isLarge;
|
10
|
+
return isLarge ? "var(".concat(tokens.thumbSizeLarge, ")") : "var(".concat(tokens.thumbSize, ")");
|
11
|
+
}, classes.verticalOrientation, StyledValue, tokens.size, tokens.size, classes.valuePlacementLeft, StyledValue, tokens.size, tokens.size);
|
@@ -0,0 +1,115 @@
|
|
1
|
+
var KeyboardSupport = {
|
2
|
+
PageUp: 33,
|
3
|
+
PageDown: 34,
|
4
|
+
End: 35,
|
5
|
+
Home: 36,
|
6
|
+
ArrowLeft: 37,
|
7
|
+
ArrowUp: 38,
|
8
|
+
ArrowRight: 39,
|
9
|
+
ArrowDown: 40
|
10
|
+
};
|
11
|
+
var ArrowUp = KeyboardSupport.ArrowUp,
|
12
|
+
ArrowRight = KeyboardSupport.ArrowRight,
|
13
|
+
ArrowDown = KeyboardSupport.ArrowDown,
|
14
|
+
ArrowLeft = KeyboardSupport.ArrowLeft,
|
15
|
+
Home = KeyboardSupport.Home,
|
16
|
+
End = KeyboardSupport.End,
|
17
|
+
PageDown = KeyboardSupport.PageDown,
|
18
|
+
PageUp = KeyboardSupport.PageUp;
|
19
|
+
var computeVerticalMovement = function computeVerticalMovement(event, _ref) {
|
20
|
+
var stepSize = _ref.stepSize,
|
21
|
+
position = _ref.position,
|
22
|
+
max = _ref.max,
|
23
|
+
computedMultipleSteps = _ref.computedMultipleSteps;
|
24
|
+
var keyCode = event.keyCode,
|
25
|
+
target = event.target;
|
26
|
+
var data = {
|
27
|
+
x: 0,
|
28
|
+
deltaX: 0,
|
29
|
+
lastX: 0,
|
30
|
+
y: 0,
|
31
|
+
deltaY: stepSize,
|
32
|
+
lastY: position,
|
33
|
+
node: target
|
34
|
+
};
|
35
|
+
switch (keyCode) {
|
36
|
+
case ArrowUp:
|
37
|
+
case ArrowRight:
|
38
|
+
data.y = position - stepSize;
|
39
|
+
data.deltaY = -stepSize;
|
40
|
+
break;
|
41
|
+
case ArrowDown:
|
42
|
+
case ArrowLeft:
|
43
|
+
data.y = position + stepSize;
|
44
|
+
break;
|
45
|
+
case PageUp:
|
46
|
+
data.y = position - computedMultipleSteps;
|
47
|
+
data.deltaY = -computedMultipleSteps;
|
48
|
+
break;
|
49
|
+
case PageDown:
|
50
|
+
data.y = position + computedMultipleSteps;
|
51
|
+
data.deltaY = computedMultipleSteps;
|
52
|
+
break;
|
53
|
+
case End:
|
54
|
+
data.y = max * stepSize;
|
55
|
+
break;
|
56
|
+
case Home:
|
57
|
+
data.y = 0;
|
58
|
+
break;
|
59
|
+
default:
|
60
|
+
data.y = 0;
|
61
|
+
}
|
62
|
+
return data;
|
63
|
+
};
|
64
|
+
var computeHorizontalMovement = function computeHorizontalMovement(event, _ref2) {
|
65
|
+
var stepSize = _ref2.stepSize,
|
66
|
+
position = _ref2.position,
|
67
|
+
max = _ref2.max,
|
68
|
+
computedMultipleSteps = _ref2.computedMultipleSteps;
|
69
|
+
var keyCode = event.keyCode,
|
70
|
+
target = event.target;
|
71
|
+
var data = {
|
72
|
+
x: 0,
|
73
|
+
deltaX: stepSize,
|
74
|
+
lastX: position,
|
75
|
+
y: 0,
|
76
|
+
deltaY: 0,
|
77
|
+
lastY: 0,
|
78
|
+
node: target
|
79
|
+
};
|
80
|
+
switch (keyCode) {
|
81
|
+
case ArrowUp:
|
82
|
+
case ArrowRight:
|
83
|
+
data.x = position + stepSize;
|
84
|
+
break;
|
85
|
+
case ArrowDown:
|
86
|
+
case ArrowLeft:
|
87
|
+
data.x = position - stepSize;
|
88
|
+
data.deltaX = -stepSize;
|
89
|
+
break;
|
90
|
+
case PageUp:
|
91
|
+
data.x = position + computedMultipleSteps;
|
92
|
+
data.deltaX = computedMultipleSteps;
|
93
|
+
break;
|
94
|
+
case PageDown:
|
95
|
+
data.x = position - computedMultipleSteps;
|
96
|
+
data.deltaX = -computedMultipleSteps;
|
97
|
+
break;
|
98
|
+
case End:
|
99
|
+
data.x = max * stepSize;
|
100
|
+
break;
|
101
|
+
case Home:
|
102
|
+
data.x = 0;
|
103
|
+
break;
|
104
|
+
default:
|
105
|
+
data.x = 0;
|
106
|
+
}
|
107
|
+
return data;
|
108
|
+
};
|
109
|
+
export var computeKeyPressData = function computeKeyPressData(event, params) {
|
110
|
+
var keyCode = event.keyCode;
|
111
|
+
if (!Object.values(KeyboardSupport).includes(keyCode)) {
|
112
|
+
return null;
|
113
|
+
}
|
114
|
+
return params.isVertical ? computeVerticalMovement(event, params) : computeHorizontalMovement(event, params);
|
115
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
|
1
|
+
var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled", "orientation"];
|
2
2
|
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); }
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -12,6 +12,7 @@ export var Thumb = function Thumb(_ref) {
|
|
12
12
|
ariaValueMin = _ref$ariaValueMin === void 0 ? min : _ref$ariaValueMin,
|
13
13
|
ariaLabel = _ref.ariaLabel,
|
14
14
|
disabled = _ref.disabled,
|
15
|
+
orientation = _ref.orientation,
|
15
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
16
17
|
return /*#__PURE__*/React.createElement(ThumbBase, _extends({
|
17
18
|
role: "slider",
|
@@ -20,6 +21,6 @@ export var Thumb = function Thumb(_ref) {
|
|
20
21
|
"aria-valuemax": max,
|
21
22
|
"aria-valuenow": value,
|
22
23
|
disabled: disabled,
|
23
|
-
"aria-orientation":
|
24
|
+
"aria-orientation": orientation
|
24
25
|
}, rest));
|
25
26
|
};
|
@@ -3,8 +3,8 @@ import { addFocus } from '../../../../mixins';
|
|
3
3
|
import { tokens } from '../../Slider.tokens';
|
4
4
|
export var ThumbBase = /*#__PURE__*/styled.div.withConfig({
|
5
5
|
componentId: "plasma-new-hope__sc-13botku-0"
|
6
|
-
})(["width:var(
|
7
|
-
outlineOffset: '0.
|
6
|
+
})(["width:var(--thumb-size);height:var(--thumb-size);min-width:var(--thumb-size);min-height:var(--thumb-size);position:relative;border-radius:50%;box-sizing:border-box;background:var(", ");margin:0.0625rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", ");margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", ""], tokens.thumbBackgroundColor, tokens.thumbBorderColor, tokens.thumbFocusBorderColor, /*#__PURE__*/addFocus({
|
7
|
+
outlineOffset: '0.0625rem',
|
8
8
|
outlineSize: '0.125rem',
|
9
9
|
outlineRadius: '50%',
|
10
10
|
outlineColor: /*#__PURE__*/"var(".concat(tokens.thumbFocusBorderColor, ")")
|
@@ -6,8 +6,8 @@
|
|
6
6
|
* @param {number} max
|
7
7
|
* @return {number}
|
8
8
|
*/
|
9
|
-
export function getSliderThumbValue(
|
10
|
-
var newValue = Math.round(
|
9
|
+
export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max) {
|
10
|
+
var newValue = Math.round(handleCenterPosRelative / stepSize) + min;
|
11
11
|
return Math.min(Math.max(newValue, min), max);
|
12
12
|
}
|
13
13
|
|
@@ -18,11 +18,11 @@ export function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
|
|
18
18
|
* @param {'left' | 'right'} side
|
19
19
|
* @return Array<number>
|
20
20
|
*/
|
21
|
-
export function getOffsets(ref, side) {
|
21
|
+
export function getOffsets(ref, side, isVertical) {
|
22
22
|
if (!ref || !('current' in ref) || !ref.current || !side) {
|
23
23
|
return [0, 0];
|
24
24
|
}
|
25
|
-
var size = ref.current.clientWidth;
|
25
|
+
var size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;
|
26
26
|
if (side === 'left') {
|
27
27
|
return [0, size];
|
28
28
|
}
|
@@ -33,15 +33,33 @@ export function getOffsets(ref, side) {
|
|
33
33
|
}
|
34
34
|
export var sizeData = {
|
35
35
|
s: {
|
36
|
-
|
37
|
-
|
36
|
+
small: {
|
37
|
+
indent: 0.5,
|
38
|
+
fontSizeMultiplier: 16
|
39
|
+
},
|
40
|
+
large: {
|
41
|
+
indent: 0.625,
|
42
|
+
fontSizeMultiplier: 16
|
43
|
+
}
|
38
44
|
},
|
39
45
|
m: {
|
40
|
-
|
41
|
-
|
46
|
+
small: {
|
47
|
+
indent: 0.5,
|
48
|
+
fontSizeMultiplier: 16
|
49
|
+
},
|
50
|
+
large: {
|
51
|
+
indent: 0.625,
|
52
|
+
fontSizeMultiplier: 16
|
53
|
+
}
|
42
54
|
},
|
43
55
|
l: {
|
44
|
-
|
45
|
-
|
56
|
+
small: {
|
57
|
+
indent: 0.5,
|
58
|
+
fontSizeMultiplier: 16
|
59
|
+
},
|
60
|
+
large: {
|
61
|
+
indent: 0.625,
|
62
|
+
fontSizeMultiplier: 16
|
63
|
+
}
|
46
64
|
}
|
47
65
|
};
|
@@ -33,6 +33,8 @@ export var tokens = {
|
|
33
33
|
itemSelectedDividerColorHover: '--plasma-tab-item-selected-hover-divider-color',
|
34
34
|
outlineFocusColor: '--plasma-tabs-outline-focus-color',
|
35
35
|
arrowColor: '--plasma-tabs-arrow-color',
|
36
|
+
arrowColorHover: '--plasma-tabs-arrow-color-hover',
|
37
|
+
arrowColorActive: '--plasma-tabs-arrow-color-active',
|
36
38
|
tabsFilledBackgroundColor: '--plasma-tabs-filled-background-color',
|
37
39
|
tabsBackgroundColor: '--plasma-tabs-background-color',
|
38
40
|
tabsBorderRadius: '--plasma-tabs-border-radius',
|
package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js
CHANGED
@@ -92,7 +92,9 @@ export var horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
|
|
92
92
|
disabled: disabled,
|
93
93
|
pilled: pilled,
|
94
94
|
role: role,
|
95
|
-
view: view
|
95
|
+
view: view
|
96
|
+
// TODO: убрать каст any, когда будут удалены deprecated props
|
97
|
+
,
|
96
98
|
size: size,
|
97
99
|
onFocus: onItemFocus,
|
98
100
|
tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["id", "stretch", "disabled", "clip", "size", "view", "children", "pilled", "index", "className"];
|
1
|
+
var _excluded = ["id", "stretch", "disabled", "clip", "size", "view", "children", "pilled", "index", "className", "hasDivider"];
|
2
2
|
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); }
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -11,7 +11,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
11
11
|
import React, { forwardRef, useCallback, useMemo, useState, useEffect, useRef } from 'react';
|
12
12
|
import { safeUseId } from '@salutejs/plasma-core';
|
13
13
|
import { IconDisclosureLeft, IconDisclosureRight } from '../../../../_Icon';
|
14
|
-
import { classes
|
14
|
+
import { classes } from '../../../tokens';
|
15
15
|
import { cx } from '../../../../../utils';
|
16
16
|
import { TabItemRefs, TabsContext } from '../../../TabsContext';
|
17
17
|
import { base as sizeCSS } from './variations/_size/base';
|
@@ -26,7 +26,12 @@ var Keys = /*#__PURE__*/function (Keys) {
|
|
26
26
|
Keys[Keys["left"] = 37] = "left";
|
27
27
|
Keys[Keys["right"] = 39] = "right";
|
28
28
|
return Keys;
|
29
|
-
}(Keys || {});
|
29
|
+
}(Keys || {});
|
30
|
+
var getIconSize = function getIconSize(size) {
|
31
|
+
return size === 'h1' || size === 'h2' ? 'm' : 's';
|
32
|
+
};
|
33
|
+
|
34
|
+
// TODO: https://github.com/salute-developers/plasma/issues/1474
|
30
35
|
export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
31
36
|
return /*#__PURE__*/forwardRef(function (props, outerRef) {
|
32
37
|
var id = props.id,
|
@@ -43,6 +48,8 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
|
43
48
|
pilled = _props$pilled === void 0 ? false : _props$pilled,
|
44
49
|
index = props.index,
|
45
50
|
className = props.className,
|
51
|
+
_props$hasDivider = props.hasDivider,
|
52
|
+
hasDivider = _props$hasDivider === void 0 ? true : _props$hasDivider,
|
46
53
|
rest = _objectWithoutProperties(props, _excluded);
|
47
54
|
var _useState = useState(true),
|
48
55
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -60,6 +67,7 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
|
60
67
|
var isFilled = view === 'filled'; // outer padding is only for filled view
|
61
68
|
var pilledAttr = view !== 'clear' && pilled;
|
62
69
|
var pilledClass = pilledAttr ? classes.tabsPilled : undefined;
|
70
|
+
var noDividerClass = !hasDivider ? classes.tabsNoDivider : undefined;
|
63
71
|
var stretchClass = firstItemVisible && lastItemVisible && stretch ? classes.tabsStretch : undefined;
|
64
72
|
var hasLeftArrowClass = !firstItemVisible ? classes.tabsHasLeftArrow : undefined;
|
65
73
|
var hasRightArrowClass = !lastItemVisible ? classes.tabsHasRightArrow : undefined;
|
@@ -115,9 +123,10 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
|
115
123
|
ref: leftArrowRef,
|
116
124
|
isLeftArrow: true
|
117
125
|
}, /*#__PURE__*/React.createElement(IconDisclosureLeft, {
|
118
|
-
|
126
|
+
size: getIconSize(size),
|
127
|
+
color: "inherit"
|
119
128
|
}));
|
120
|
-
}, [onPrev, disabled, isFilled]);
|
129
|
+
}, [onPrev, size, disabled, isFilled]);
|
121
130
|
var NextButton = useMemo(function () {
|
122
131
|
return /*#__PURE__*/React.createElement(StyledArrow, {
|
123
132
|
type: "button",
|
@@ -127,9 +136,10 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
|
127
136
|
disabled: disabled,
|
128
137
|
isFilled: isFilled
|
129
138
|
}, /*#__PURE__*/React.createElement(IconDisclosureRight, {
|
130
|
-
|
139
|
+
size: getIconSize(size),
|
140
|
+
color: "inherit"
|
131
141
|
}));
|
132
|
-
}, [onNext, disabled, isFilled]);
|
142
|
+
}, [onNext, size, disabled, isFilled]);
|
133
143
|
var handleScroll = useCallback(function (event) {
|
134
144
|
event.stopPropagation();
|
135
145
|
var maxScrollLeft = event.currentTarget.scrollWidth - event.currentTarget.clientWidth;
|
@@ -189,13 +199,15 @@ export var horizontalTabsRoot = function horizontalTabsRoot(Root) {
|
|
189
199
|
value: refs
|
190
200
|
}, /*#__PURE__*/React.createElement(Root, _extends({
|
191
201
|
view: view,
|
192
|
-
role: "tablist"
|
202
|
+
role: "tablist"
|
203
|
+
// TODO: убрать каст any, когда будут удалены deprecated props
|
204
|
+
,
|
193
205
|
size: size,
|
194
206
|
pilled: pilled,
|
195
207
|
id: tabsId,
|
196
208
|
ref: outerRef,
|
197
209
|
disabled: disabled,
|
198
|
-
className: cx(pilledClass, stretchClass, hasLeftArrowClass, hasRightArrowClass, className),
|
210
|
+
className: cx(pilledClass, stretchClass, hasLeftArrowClass, hasRightArrowClass, noDividerClass, className),
|
199
211
|
onKeyDown: onKeyDown
|
200
212
|
}, rest), !firstItemVisible && PreviousButton, /*#__PURE__*/React.createElement(StyledContentWrapper, {
|
201
213
|
className: cx(clipScrollClass, clipShowAllClass),
|
package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.js
CHANGED
@@ -13,7 +13,7 @@ export var StyledContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
})(["margin:-0.125rem;padding:0.25rem;box-sizing:content-box;position:relative;height:100%;width:100%;display:flex;align-items:center;z-index:1;&.", "{overflow:scroll;scroll-padding:0.25rem;overscroll-behavior:contain;scrollbar-width:none;::-webkit-scrollbar{display:none;}}&.", "{overflow:visible;}"], classes.tabsClipScroll, classes.tabsClipShowAll);
|
14
14
|
export var StyledArrow = /*#__PURE__*/styled.button.withConfig({
|
15
15
|
componentId: "plasma-new-hope__sc-1nr0m0h-2"
|
16
|
-
})(["display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;", ";&[disabled]{cursor:not-allowed;}--plasma_private-outer-padding:", ";padding-right:", ";padding-left:", ";"], /*#__PURE__*/addFocus({
|
16
|
+
})(["display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;", ";&[disabled]{cursor:not-allowed;}--plasma_private-outer-padding:", ";padding-right:", ";padding-left:", ";color:var(", ");&:hover{color:var(", ");}&:active{color:var(", ");}"], /*#__PURE__*/addFocus({
|
17
17
|
outlineSize: '0.063rem',
|
18
18
|
outlineOffset: '-0.125rem',
|
19
19
|
outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
|
@@ -27,4 +27,4 @@ export var StyledArrow = /*#__PURE__*/styled.button.withConfig({
|
|
27
27
|
}, function (_ref3) {
|
28
28
|
var isLeftArrow = _ref3.isLeftArrow;
|
29
29
|
return isLeftArrow ? 'var(--plasma_private-outer-padding)' : "var(".concat(tokens.arrowInnerPadding, ")");
|
30
|
-
});
|
30
|
+
}, tokens.arrowColor, tokens.arrowColorHover, tokens.arrowColorActive);
|
package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabs/variations/_view/base.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import { css } from 'styled-components';
|
2
2
|
import { classes, tokens } from '../../../../../tokens';
|
3
|
-
export var base = /*#__PURE__*/css(["background-color:var(", ");&::after{content:'';position:absolute;bottom:0.125rem;left:0.125rem;right:0.125rem;background:var(", ");height:var(", ");border-radius:var(", ");}&.", "{&::after{left:1.5rem;}}&.", "{&::after{right:1.5rem;}}"], tokens.tabsBackgroundColor, tokens.tabsDividerColor, tokens.tabsDividerHeight, tokens.tabsDividerBorderRadius, classes.tabsHasLeftArrow, classes.tabsHasRightArrow);
|
3
|
+
export var base = /*#__PURE__*/css(["background-color:var(", ");&::after{content:'';position:absolute;bottom:0.125rem;left:0.125rem;right:0.125rem;background:var(", ");height:var(", ");border-radius:var(", ");}&.", "{&::after{left:1.5rem;}}&.", "{&::after{right:1.5rem;}}&.", "{&::after{height:0;}}"], tokens.tabsBackgroundColor, tokens.tabsDividerColor, tokens.tabsDividerHeight, tokens.tabsDividerBorderRadius, classes.tabsHasLeftArrow, classes.tabsHasRightArrow, classes.tabsNoDivider);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
var _IconDisclosureLeft, _IconDisclosureRight;
|
1
2
|
var _excluded = ["id", "disabled", "clip", "size", "view", "children", "index", "className", "orientation", "hasDivider"];
|
2
3
|
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); }
|
3
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
@@ -10,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
10
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
12
|
import React, { forwardRef, useCallback, useMemo, useState, useEffect, useRef } from 'react';
|
12
13
|
import { safeUseId } from '@salutejs/plasma-core';
|
13
|
-
import { classes
|
14
|
+
import { classes } from '../../../tokens';
|
14
15
|
import { cx } from '../../../../../utils';
|
15
16
|
import { TabItemRefs, TabsContext } from '../../../TabsContext';
|
16
17
|
import { IconDisclosureLeft, IconDisclosureRight } from '../../../../_Icon';
|
@@ -105,18 +106,18 @@ export var verticalTabsRoot = function verticalTabsRoot(Root) {
|
|
105
106
|
tabIndex: disabled ? -1 : 0,
|
106
107
|
disabled: disabled,
|
107
108
|
ref: upArrowRef
|
108
|
-
}, /*#__PURE__*/React.createElement(IconDisclosureLeft, {
|
109
|
-
color: "
|
110
|
-
}));
|
109
|
+
}, _IconDisclosureLeft || (_IconDisclosureLeft = /*#__PURE__*/React.createElement(IconDisclosureLeft, {
|
110
|
+
color: "inherit"
|
111
|
+
})));
|
111
112
|
var NextButton = /*#__PURE__*/React.createElement(StyledArrow, {
|
112
113
|
type: "button",
|
113
114
|
"aria-label": "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0442\u0430\u0431",
|
114
115
|
onClick: onNext,
|
115
116
|
tabIndex: disabled ? -1 : 0,
|
116
117
|
disabled: disabled
|
117
|
-
}, /*#__PURE__*/React.createElement(IconDisclosureRight, {
|
118
|
-
color: "
|
119
|
-
}));
|
118
|
+
}, _IconDisclosureRight || (_IconDisclosureRight = /*#__PURE__*/React.createElement(IconDisclosureRight, {
|
119
|
+
color: "inherit"
|
120
|
+
})));
|
120
121
|
var handleScroll = useCallback(function (event) {
|
121
122
|
event.stopPropagation();
|
122
123
|
var maxScrollTop = event.currentTarget.scrollHeight - event.currentTarget.clientHeight;
|
package/styled-components/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.js
CHANGED
@@ -13,9 +13,9 @@ export var StyledContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
})(["margin:-0.125rem;padding:0.25rem;box-sizing:content-box;position:relative;height:100%;width:100%;display:flex;align-items:center;z-index:1;&.", "{overflow:scroll;scroll-padding:0.25rem;overscroll-behavior:contain;scrollbar-width:none;::-webkit-scrollbar{display:none;}", "{margin-top:auto;}}&.", "{overflow:visible;}"], classes.tabsClipScroll, StyledContent, classes.tabsClipShowAll);
|
14
14
|
export var StyledArrow = /*#__PURE__*/styled.button.withConfig({
|
15
15
|
componentId: "plasma-new-hope__sc-gz8fxn-2"
|
16
|
-
})(["display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;transform:rotate(90deg);", ";&[disabled]{cursor:not-allowed;}"], /*#__PURE__*/addFocus({
|
16
|
+
})(["display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;transform:rotate(90deg);", ";&[disabled]{cursor:not-allowed;}color:var(", ");&:hover{color:var(", ");}&:active{color:var(", ");}"], /*#__PURE__*/addFocus({
|
17
17
|
outlineSize: '0.063rem',
|
18
18
|
outlineOffset: '-0.125rem',
|
19
19
|
outlineColor: /*#__PURE__*/"var(".concat(tokens.outlineFocusColor, ")"),
|
20
20
|
outlineRadius: 'calc(var(--plasma_private-outline-radius) - 0.063rem)'
|
21
|
-
}));
|
21
|
+
}), tokens.arrowColor, tokens.arrowColorHover, tokens.arrowColorActive);
|