@salutejs/plasma-new-hope 0.186.0-canary.1546.11723696357.0 → 0.187.0-canary.1551.11740641367.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Badge/Badge.css +7 -7
- package/cjs/components/Badge/Badge.js +11 -16
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.styles.js +5 -5
- package/cjs/components/Badge/Badge.styles.js.map +1 -1
- package/cjs/components/Badge/Badge.styles_hhbwyi.css +4 -0
- package/cjs/components/Badge/Badge.tokens.js +5 -9
- package/cjs/components/Badge/Badge.tokens.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base_oopyb7.css +1 -0
- package/cjs/components/Badge/variations/_size/base.js +1 -1
- package/cjs/components/Badge/variations/_size/base.js.map +1 -1
- package/{es/components/Badge/variations/_size/base_rn38n6.css → cjs/components/Badge/variations/_size/base_to0y5x.css} +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
- package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
- package/cjs/components/Badge/variations/_view/base.js +1 -1
- package/cjs/components/Badge/variations/_view/base.js.map +1 -1
- package/cjs/components/Badge/variations/_view/base_qlxank.css +1 -0
- package/cjs/components/Tabs/tokens.js +2 -1
- package/cjs/components/Tabs/tokens.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +10 -3
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +10 -3
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
- package/cjs/index.css +19 -19
- package/emotion/cjs/components/Badge/Badge.js +11 -16
- package/emotion/cjs/components/Badge/Badge.styles.js +4 -13
- package/emotion/cjs/components/Badge/Badge.tokens.js +6 -9
- package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_size/base.js +1 -2
- package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
- package/emotion/cjs/components/Tabs/tokens.js +2 -1
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
- package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +12 -12
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
- package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +12 -12
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
- package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/es/components/Badge/Badge.js +12 -17
- package/emotion/es/components/Badge/Badge.styles.js +5 -14
- package/emotion/es/components/Badge/Badge.tokens.js +5 -8
- package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
- package/emotion/es/components/Badge/variations/_size/base.js +2 -3
- package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
- package/emotion/es/components/Badge/variations/_view/base.js +2 -2
- package/emotion/es/components/Tabs/tokens.js +2 -1
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
- package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +13 -13
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
- package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +13 -13
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +17 -14
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
- package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +16 -16
- package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
- package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/emotion/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +18 -15
- package/emotion/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +9 -6
- package/es/components/Badge/Badge.css +7 -7
- package/es/components/Badge/Badge.js +14 -19
- package/es/components/Badge/Badge.js.map +1 -1
- package/es/components/Badge/Badge.styles.js +5 -5
- package/es/components/Badge/Badge.styles.js.map +1 -1
- package/es/components/Badge/Badge.styles_hhbwyi.css +4 -0
- package/es/components/Badge/Badge.tokens.js +6 -9
- package/es/components/Badge/Badge.tokens.js.map +1 -1
- package/es/components/Badge/variations/_clear/base.js +1 -1
- package/es/components/Badge/variations/_clear/base.js.map +1 -1
- package/es/components/Badge/variations/_clear/base_oopyb7.css +1 -0
- package/es/components/Badge/variations/_size/base.js +1 -1
- package/es/components/Badge/variations/_size/base.js.map +1 -1
- package/{cjs/components/Badge/variations/_size/base_rn38n6.css → es/components/Badge/variations/_size/base_to0y5x.css} +1 -1
- package/es/components/Badge/variations/_transparent/base.js +1 -1
- package/es/components/Badge/variations/_transparent/base.js.map +1 -1
- package/es/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
- package/es/components/Badge/variations/_view/base.js +1 -1
- package/es/components/Badge/variations/_view/base.js.map +1 -1
- package/es/components/Badge/variations/_view/base_qlxank.css +1 -0
- package/es/components/Tabs/tokens.js +2 -1
- package/es/components/Tabs/tokens.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +6 -6
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +11 -4
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +6 -6
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_1yi1gll.css +5 -0
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/variations/_view/{base_4zingj.css → base_j8lg9u.css} +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +6 -6
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +11 -4
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +6 -6
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_17vv6lq.css +5 -0
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/base.js +1 -1
- package/es/components/Tabs/ui/vertical/VerticalTabItem/variations/_view/{base_fueiq8.css → base_12fk3xi.css} +1 -1
- package/es/index.css +19 -19
- package/package.json +2 -2
- package/styled-components/cjs/components/Badge/Badge.js +11 -16
- package/styled-components/cjs/components/Badge/Badge.styles.js +2 -2
- package/styled-components/cjs/components/Badge/Badge.tokens.js +6 -9
- package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_size/base.js +1 -2
- package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/Tabs/tokens.js +2 -1
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +15 -3
- package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +8 -8
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +15 -3
- package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +9 -9
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +8 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
- package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/cjs/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/cjs/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/es/components/Badge/Badge.js +12 -17
- package/styled-components/es/components/Badge/Badge.styles.js +3 -3
- package/styled-components/es/components/Badge/Badge.tokens.js +5 -8
- package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_size/base.js +2 -3
- package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
- package/styled-components/es/components/Tabs/tokens.js +2 -1
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js +16 -3
- package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +9 -9
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js +16 -3
- package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +10 -10
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +8 -5
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +4 -6
- package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/es/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +4 -4
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -8
- package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +51 -19
- package/styled-components/es/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.js +3 -0
- package/styled-components/es/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.js +3 -0
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.styles.d.ts +1 -1
- package/types/components/Badge/Badge.styles.d.ts.map +1 -1
- package/types/components/Badge/Badge.tokens.d.ts +5 -8
- package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +10 -18
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
- package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +6 -1
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/tokens.d.ts +1 -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/HorizontalTabItem/HorizontalTabItem.styles.d.ts +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +10 -58
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts +6 -0
- package/types/examples/plasma_b2c/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +7 -58
- package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts +6 -0
- package/types/examples/plasma_web/components/Tabs/TabItem.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Tabs/horizontal/HorizontalTabItem.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Tabs/vertical/VerticalTabItem.config.d.ts.map +1 -1
- package/cjs/components/Badge/Badge.styles_8pi3br.css +0 -4
- package/cjs/components/Badge/variations/_clear/base_wiboj8.css +0 -1
- package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
- package/cjs/components/Badge/variations/_view/base_j3xzf3.css +0 -1
- package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
- package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
- package/es/components/Badge/Badge.styles_8pi3br.css +0 -4
- package/es/components/Badge/variations/_clear/base_wiboj8.css +0 -1
- package/es/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
- package/es/components/Badge/variations/_view/base_j3xzf3.css +0 -1
- package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css +0 -5
- package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles_1g7zipg.css +0 -5
package/es/index.css
CHANGED
@@ -242,7 +242,7 @@
|
|
242
242
|
.HorizontalTabs_styles_p9rk79_s158pfyo__eeaee6e8{margin:-0.125rem;padding:0.25rem;box-sizing:content-box;position:relative;height:100%;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1;}.HorizontalTabs_styles_p9rk79_s158pfyo__eeaee6e8.HorizontalTabs_styles_p9rk79_tabsClipScroll__eeaee6e8{overflow:scroll;-webkit-scroll-padding:0.25rem;-moz-scroll-padding:0.25rem;-ms-scroll-padding:0.25rem;scroll-padding:0.25rem;overscroll-behavior:contain;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;}.HorizontalTabs_styles_p9rk79_s158pfyo__eeaee6e8.HorizontalTabs_styles_p9rk79_tabsClipScroll__eeaee6e8::-webkit-scrollbar{display:none;}.HorizontalTabs_styles_p9rk79_s158pfyo__eeaee6e8.HorizontalTabs_styles_p9rk79_tabsClipShowAll__eeaee6e8{overflow:visible;}
|
243
243
|
.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;border:none;background-color:transparent;padding:0;outline:none;position:relative;--plasma_private-outer-padding:var(--s1in38wj-0);padding-right:var(--s1in38wj-1);padding-left:var(--s1in38wj-2);color:var(--plasma-tabs-arrow-color);}.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) - 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8.HorizontalTabs_styles_p9rk79_focusVisible__eeaee6e8:focus::before,.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8[disabled]{cursor:not-allowed;}.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8:hover{color:var(--plasma-tabs-arrow-color-hover);}.HorizontalTabs_styles_p9rk79_s1in38wj__eeaee6e8:active{color:var(--plasma-tabs-arrow-color-active);}
|
244
244
|
|
245
|
-
.
|
245
|
+
.base_j8lg9u_b1vyjqk2__5c21fd4a{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);margin-left:var(--plasma-tab-item-margin-left-filled,var(--plasma-tab-item-margin-left));}.base_j8lg9u_b1vyjqk2__5c21fd4a:hover{color:var(--plasma-tab-item-color-hover);background-color:var(--plasma-tab-item-background-color-hover);}.base_j8lg9u_b1vyjqk2__5c21fd4a:hover .base_j8lg9u_t1l5e9z0__5c21fd4a{color:var(--plasma-tab-item-value-color-hover);}.base_j8lg9u_b1vyjqk2__5c21fd4a:active{color:var(--plasma-tab-item-color-active);}.base_j8lg9u_b1vyjqk2__5c21fd4a:active .base_j8lg9u_t1l5e9z0__5c21fd4a{color:var(--plasma-tab-item-value-color-active);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_tabItemAnimated__5c21fd4a{-webkit-transition:var(--plasma-tab-item-background-transition);transition:var(--plasma-tab-item-background-transition);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a:hover{color:var(--plasma-tab-item-selected-color-hover);background-color:var(--plasma-tab-item-selected-background-color-hover);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a:hover::after{background:var(--plasma-tab-item-selected-hover-divider-color);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a .base_j8lg9u_t1l5e9z0__5c21fd4a{color:var(--plasma-tab-item-selected-value-color-hover);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a .base_j8lg9u_t1l5e9z0__5c21fd4a:hover{color:var(--plasma-tab-item-selected-value-color-hover);}.base_j8lg9u_b1vyjqk2__5c21fd4a.base_j8lg9u_selectedTabsItem__5c21fd4a::after{content:'';position:absolute;bottom:0;left:0;right:0;background:var(--plasma-tab-item-selected-divider-color);height:var(--plasma-tab-item-selected-divider-height);border-radius:0.063rem;}
|
246
246
|
|
247
247
|
.base_kcn71r_b1lnzg5o__73784135{font-family:var(--plasma-tab-item-font-family);font-size:var(--plasma-tab-item-font-size);font-style:var(--plasma-tab-item-font-style);font-weight:var(--plasma-tab-item-font-weight);-webkit-letter-spacing:var(--plasma-tab-item-letter-spacing);-moz-letter-spacing:var(--plasma-tab-item-letter-spacing);-ms-letter-spacing:var(--plasma-tab-item-letter-spacing);letter-spacing:var(--plasma-tab-item-letter-spacing);line-height:var(--plasma-tab-item-lineheight);--plasma_private-outline-radius:var(--plasma-tab-item-border-radius);border-radius:var(--plasma-tab-item-border-radius);width:var(--plasma-tab-item-width);height:var(--plasma-tab-item-height);}
|
248
248
|
|
@@ -250,11 +250,11 @@
|
|
250
250
|
|
251
251
|
.base_1ogr2cm_bt431lh__e8119f61[disabled]{cursor:not-allowed;}.base_1ogr2cm_bt431lh__e8119f61[disabled]:hover{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_1ogr2cm_bt431lh__e8119f61[disabled].base_1ogr2cm_selectedTabsItem__e8119f61:hover{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}
|
252
252
|
|
253
|
-
.
|
254
|
-
.
|
255
|
-
.
|
256
|
-
.
|
257
|
-
.
|
253
|
+
.HorizontalTabItem_styles_1yi1gll_skuum0w__dcc7bfa0{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
|
254
|
+
.HorizontalTabItem_styles_1yi1gll_t1l5e9z0__dcc7bfa0{color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
|
255
|
+
.HorizontalTabItem_styles_1yi1gll_r1nh4m12__dcc7bfa0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_1yi1gll_r1nh4m12__dcc7bfa0:hover{color:inherit;}
|
256
|
+
.HorizontalTabItem_styles_1yi1gll_l13nweg3__dcc7bfa0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.HorizontalTabItem_styles_1yi1gll_l13nweg3__dcc7bfa0:hover{color:inherit;}
|
257
|
+
.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-clear,var(--plasma-tab-item-padding));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0:first-child{margin-left:0;}.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0.HorizontalTabItem_styles_1yi1gll_focusVisible__dcc7bfa0:focus::before,.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0.HorizontalTabItem_styles_1yi1gll_tabsTruncate__dcc7bfa0 .HorizontalTabItem_styles_1yi1gll_skuum0w__dcc7bfa0{overflow:hidden;text-overflow:ellipsis;}.HorizontalTabItem_styles_1yi1gll_b1iip2sx__dcc7bfa0.HorizontalTabItem_styles_1yi1gll_tabsTruncate__dcc7bfa0 .HorizontalTabItem_styles_1yi1gll_t1l5e9z0__dcc7bfa0{overflow:hidden;text-overflow:ellipsis;}
|
258
258
|
|
259
259
|
.VerticalTabs_styles_1r1hidh_b2r261u__b37a3ef1{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0.125rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
260
260
|
.VerticalTabs_styles_1r1hidh_s1tfgc53__b37a3ef1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;}
|
@@ -267,13 +267,13 @@
|
|
267
267
|
|
268
268
|
.base_do8935_b1vdpmya__377ce78c{opacity:var(--plasma-tabs-disabled-opacity);}
|
269
269
|
|
270
|
-
.
|
271
|
-
.
|
272
|
-
.
|
273
|
-
.
|
274
|
-
.
|
270
|
+
.VerticalTabItem_styles_17vv6lq_s1vnvg8i__4094188b{display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 var(--plasma-tab-item-content-padding-clear,var(--plasma-tab-item-content-padding));}
|
271
|
+
.VerticalTabItem_styles_17vv6lq_t4s0t81__4094188b{white-space:nowrap;color:var(--plasma-tab-item-value-color);font-family:var(--plasma-tab-item-value-font-family,var(--plasma-tab-item-font-family));font-size:var(--plasma-tab-item-value-font-size,var(--plasma-tab-item-font-size));font-style:var(--plasma-tab-item-value-font-style,var(--plasma-tab-item-font-style));font-weight:var(--plasma-tab-item-value-font-weight,var(--plasma-tab-item-font-weight));-webkit-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-moz-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));-ms-letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));letter-spacing:var(--plasma-tab-item-value-letter-spacing,var(--plasma-tab-item-letter-spacing));line-height:var(--plasma-tab-item-value-lineheight,var(--plasma-tab-item-lineheight));}
|
272
|
+
.VerticalTabItem_styles_17vv6lq_rur46hh__4094188b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_17vv6lq_rur46hh__4094188b:hover{color:inherit;}
|
273
|
+
.VerticalTabItem_styles_17vv6lq_l1ms3p4x__4094188b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:inherit;}.VerticalTabItem_styles_17vv6lq_l1ms3p4x__4094188b:hover{color:inherit;}
|
274
|
+
.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;box-sizing:border-box;white-space:nowrap;gap:var(--plasma-tab-item-content-gap);padding:var(--plasma-tab-item-padding-orientation-vertical);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;}.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.063rem solid transparent;border-radius:calc(var(--plasma_private-outline-radius) + 0.063rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b.VerticalTabItem_styles_17vv6lq_focusVisible__4094188b:focus::before,.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b[data-focus-visible-added]::before{z-index:1;outline:none;box-shadow:0 0 0 0.063rem var(--plasma-tabs-outline-focus-color);}.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b.VerticalTabItem_styles_17vv6lq_tabsTruncate__4094188b .VerticalTabItem_styles_17vv6lq_s1vnvg8i__4094188b{overflow:hidden;text-overflow:ellipsis;}.VerticalTabItem_styles_17vv6lq_b1yz2xa4__4094188b.VerticalTabItem_styles_17vv6lq_tabsTruncate__4094188b .VerticalTabItem_styles_17vv6lq_t4s0t81__4094188b{overflow:hidden;text-overflow:ellipsis;}
|
275
275
|
|
276
|
-
.
|
276
|
+
.base_12fk3xi_byyhn69__7e2c76ac{color:var(--plasma-tab-item-color);background-color:var(--plasma-tab-item-background-color);}.base_12fk3xi_byyhn69__7e2c76ac:hover{color:var(--plasma-tab-item-color-hover);background-color:var(--plasma-tab-item-background-color-hover);}.base_12fk3xi_byyhn69__7e2c76ac:hover .base_12fk3xi_t4s0t81__7e2c76ac{color:var(--plasma-tab-item-value-color-hover);}.base_12fk3xi_byyhn69__7e2c76ac:active{color:var(--plasma-tab-item-color-active);}.base_12fk3xi_byyhn69__7e2c76ac:active .base_12fk3xi_t4s0t81__7e2c76ac{color:var(--plasma-tab-item-value-color-active);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_tabItemAnimated__7e2c76ac{-webkit-transition:var(--plasma-tab-item-background-transition);transition:var(--plasma-tab-item-background-transition);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac{color:var(--plasma-tab-item-selected-color);background-color:var(--plasma-tab-item-selected-background-color);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac:hover{color:var(--plasma-tab-item-selected-color-hover);background-color:var(--plasma-tab-item-selected-background-color-hover);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac:hover::after{background:var(--plasma-tab-item-selected-hover-divider-color);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac .base_12fk3xi_t4s0t81__7e2c76ac{color:var(--plasma-tab-item-selected-value-color-hover);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac .base_12fk3xi_t4s0t81__7e2c76ac:hover{color:var(--plasma-tab-item-selected-value-color-hover);}.base_12fk3xi_byyhn69__7e2c76ac.base_12fk3xi_selectedTabsItem__7e2c76ac::after{content:'';position:absolute;top:0;left:0;bottom:0;background:var(--plasma-tab-item-selected-divider-color);width:var(--plasma-tab-item-selected-divider-width);border-radius:0.063rem;}
|
277
277
|
|
278
278
|
.base_322rr_b13ylalc__13d4018e{font-family:var(--plasma-tab-item-font-family);font-size:var(--plasma-tab-item-font-size);font-style:var(--plasma-tab-item-font-style);font-weight:var(--plasma-tab-item-font-weight);-webkit-letter-spacing:var(--plasma-tab-item-letter-spacing);-moz-letter-spacing:var(--plasma-tab-item-letter-spacing);-ms-letter-spacing:var(--plasma-tab-item-letter-spacing);letter-spacing:var(--plasma-tab-item-letter-spacing);line-height:var(--plasma-tab-item-lineheight);--plasma_private-outline-radius:var(--plasma-tab-item-border-radius);border-radius:var(--plasma-tab-item-border-radius);width:100%;height:var(--plasma-tab-item-height);}
|
279
279
|
|
@@ -459,20 +459,20 @@
|
|
459
459
|
.Image_styles_12ttxgz_s2ny8jg__83bd03eb{width:100%;height:100%;object-fit:cover;position:absolute;}
|
460
460
|
.Image_styles_12ttxgz_s1e232qk__83bd03eb{width:100%;height:100%;position:absolute;background-position:center;background-size:cover;}
|
461
461
|
|
462
|
-
.
|
462
|
+
.base_qlxank_b5zny0e__7dda249c{color:var(--plasma-badge-color);background-color:var(--plasma-badge-background);}
|
463
463
|
|
464
|
-
.
|
464
|
+
.base_to0y5x_bb8jvo5__5c9e1c86{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding-top:var(--plasma-badge-padding-top);padding-right:var(--plasma-badge-padding-right);padding-bottom:var(--plasma-badge-padding-bottom);padding-left:var(--plasma-badge-padding-left);}
|
465
465
|
|
466
466
|
.base_zpvffd_b3w4z61__f9738ae7.base_zpvffd_badgePilled__f9738ae7{border-radius:var(--plasma-badge-pilled-border-radius);}
|
467
467
|
|
468
|
-
.
|
468
|
+
.base_1l6036y_binquhc__5cc72580.base_1l6036y_badgeTransparent__5cc72580{color:var(--plasma-badge-color-transparent);background-color:var(--plasma-badge-background-transparent);}
|
469
469
|
|
470
|
-
.
|
470
|
+
.base_oopyb7_b1e1wuvi__72387433.base_oopyb7_badgeClear__72387433{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
|
471
471
|
|
472
|
-
.
|
473
|
-
.Badge_styles_8pi3br_st1n7hr__783e5f62{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
|
472
|
+
.Badge_styles_hhbwyi_s1t43xoe__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
|
474
473
|
|
475
|
-
.
|
474
|
+
.Badge_styles_hhbwyi_sqn2dok__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-right-content-margin-left);margin-right:var(--plasma-badge-right-content-margin-right);}
|
475
|
+
.Badge_styles_hhbwyi_bae60b0__47a1842a{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-max-content;width:-moz-max-content;width:max-content;}.Badge_styles_hhbwyi_bae60b0__47a1842a.Badge_styles_hhbwyi_badgeTruncate__47a1842a{max-width:100%;}.Badge_styles_hhbwyi_bae60b0__47a1842a.Badge_styles_hhbwyi_badgeTruncate__47a1842a .Badge_styles_hhbwyi_st1n7hr__47a1842a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
476
476
|
|
477
477
|
.base_1vjakah_b15waymg__f123ad8a{color:var(--plasma-counter-color);background-color:var(--plasma-counter-background);}
|
478
478
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.187.0-canary.1551.11740641367.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -128,5 +128,5 @@
|
|
128
128
|
"sideEffects": [
|
129
129
|
"*.css"
|
130
130
|
],
|
131
|
-
"gitHead": "
|
131
|
+
"gitHead": "0b3ada38adb06cff0294f58f0f5dbe33adf8198d"
|
132
132
|
}
|
@@ -14,7 +14,7 @@ var _base4 = /*#__PURE__*/require("./variations/_transparent/base");
|
|
14
14
|
var _base5 = /*#__PURE__*/require("./variations/_clear/base");
|
15
15
|
var _Badge = /*#__PURE__*/require("./Badge.styles");
|
16
16
|
var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
|
17
|
-
var _excluded = ["children", "className", "
|
17
|
+
var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
20
20
|
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); }
|
@@ -27,45 +27,40 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
27
27
|
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; }
|
28
28
|
var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
|
29
29
|
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
30
|
-
var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
|
31
30
|
var children = props.children,
|
32
31
|
className = props.className,
|
33
|
-
style = props.style,
|
34
32
|
text = props.text,
|
35
33
|
contentLeft = props.contentLeft,
|
36
34
|
contentRight = props.contentRight,
|
37
35
|
size = props.size,
|
38
36
|
view = props.view,
|
39
|
-
customColor = props.customColor,
|
40
|
-
customBackgroundColor = props.customBackgroundColor,
|
41
37
|
_props$pilled = props.pilled,
|
42
38
|
pilled = _props$pilled === void 0 ? false : _props$pilled,
|
43
39
|
_props$transparent = props.transparent,
|
44
40
|
transparent = _props$transparent === void 0 ? false : _props$transparent,
|
45
41
|
_props$clear = props.clear,
|
46
42
|
clear = _props$clear === void 0 ? false : _props$clear,
|
43
|
+
_props$maxWidth = props.maxWidth,
|
44
|
+
maxWidth = _props$maxWidth === void 0 ? 'auto' : _props$maxWidth,
|
47
45
|
rest = _objectWithoutProperties(props, _excluded);
|
48
46
|
var pilledClass = pilled ? _Badge2.classes.badgePilled : undefined;
|
49
47
|
var transparentClass = transparent ? _Badge2.classes.badgeTransparent : undefined;
|
50
48
|
var clearClass = clear ? _Badge2.classes.badgeClear : undefined;
|
49
|
+
var truncateClass = maxWidth !== 'auto' ? _Badge2.classes.badgeTruncate : undefined;
|
51
50
|
var txt = !text && typeof children === 'string' ? children : text;
|
52
|
-
var iconOnlyClass = !txt && contentLeft ? _Badge2.classes.iconOnly : undefined;
|
53
|
-
var BadgeContent = function BadgeContent() {
|
54
|
-
if (contentLeft) {
|
55
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children);
|
56
|
-
}
|
57
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight))));
|
58
|
-
};
|
59
51
|
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
60
52
|
ref: ref,
|
61
|
-
className: (0, _utils.cx)(pilledClass, transparentClass, clearClass,
|
53
|
+
className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncateClass, className),
|
62
54
|
view: view,
|
63
55
|
size: size,
|
64
56
|
pilled: pilled,
|
65
57
|
transparent: transparent,
|
66
|
-
clear: clear
|
67
|
-
|
68
|
-
|
58
|
+
clear: clear
|
59
|
+
}, rest, {
|
60
|
+
style: _objectSpread(_objectSpread({}, rest.style), {}, {
|
61
|
+
maxWidth: maxWidth
|
62
|
+
})
|
63
|
+
}), contentLeft && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight));
|
69
64
|
});
|
70
65
|
};
|
71
66
|
var badgeConfig = exports.badgeConfig = {
|
@@ -9,7 +9,6 @@ var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requi
|
|
9
9
|
var _Badge = /*#__PURE__*/require("./Badge.tokens");
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
12
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;width:max-content;"]);
|
13
12
|
var StyledContentLeft = exports.StyledContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
14
13
|
componentId: "plasma-new-hope__sc-naxmb2-0"
|
15
14
|
})(["display:flex;margin-left:var(", ");margin-right:var(", ");"], _Badge.tokens.leftContentMarginLeft, _Badge.tokens.leftContentMarginRight);
|
@@ -18,4 +17,5 @@ var StyledContentMain = exports.StyledContentMain = /*#__PURE__*/_styledComponen
|
|
18
17
|
})([""]);
|
19
18
|
var StyledContentRight = exports.StyledContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
20
19
|
componentId: "plasma-new-hope__sc-naxmb2-2"
|
21
|
-
})(["display:flex;margin-left:var(", ");margin-right:var(", ");"], _Badge.tokens.rightContentMarginLeft, _Badge.tokens.rightContentMarginRight);
|
20
|
+
})(["display:flex;margin-left:var(", ");margin-right:var(", ");"], _Badge.tokens.rightContentMarginLeft, _Badge.tokens.rightContentMarginRight);
|
21
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;width:max-content;&.", "{max-width:100%;", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"], _Badge.classes.badgeTruncate, StyledContentMain);
|
@@ -3,16 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.tokens = exports.
|
6
|
+
exports.tokens = exports.classes = void 0;
|
7
7
|
var classes = exports.classes = {
|
8
8
|
badgePilled: 'badge-pilled',
|
9
9
|
badgeTransparent: 'badge-transparent',
|
10
10
|
badgeClear: 'badge-clear',
|
11
|
-
|
12
|
-
};
|
13
|
-
var privateTokens = exports.privateTokens = {
|
14
|
-
customBackground: '--plasma-badge-custom-background',
|
15
|
-
customColor: '--plasma-badge-custom-color'
|
11
|
+
badgeTruncate: 'badge-truncate'
|
16
12
|
};
|
17
13
|
var tokens = exports.tokens = {
|
18
14
|
background: '--plasma-badge-background',
|
@@ -20,12 +16,13 @@ var tokens = exports.tokens = {
|
|
20
16
|
backgroundTransparent: '--plasma-badge-background-transparent',
|
21
17
|
colorTransparent: '--plasma-badge-color-transparent',
|
22
18
|
colorClear: '--plasma-badge-color-clear',
|
23
|
-
backgroundClear: '--plasma-badge-background-clear',
|
24
19
|
borderRadius: '--plasma-badge-border-radius',
|
25
20
|
pilledBorderRadius: '--plasma-badge-pilled-border-radius',
|
26
21
|
height: '--plasma-badge-height',
|
27
|
-
|
28
|
-
|
22
|
+
paddingTop: '--plasma-badge-padding-top',
|
23
|
+
paddingRight: '--plasma-badge-padding-right',
|
24
|
+
paddingBottom: '--plasma-badge-padding-bottom',
|
25
|
+
paddingLeft: '--plasma-badge-padding-left',
|
29
26
|
fontFamily: '--plasma-badge-font-family',
|
30
27
|
fontSize: '--plasma-badge-font-size',
|
31
28
|
fontStyle: '--plasma-badge-font-style',
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Badge = /*#__PURE__*/require("../../Badge.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{color:var(", "
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{color:var(", ");background-color:transparent;padding:0;}"], _Badge.classes.badgeClear, _Badge.tokens.colorClear);
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Badge = /*#__PURE__*/require("../../Badge.tokens");
|
9
|
-
var
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");border-radius:var(", ");height:var(", ");padding:var(", ");&.", "{padding:var(", ");", "{margin:0;}}"], _Badge.tokens.fontFamily, _Badge.tokens.fontSize, _Badge.tokens.fontStyle, _Badge.tokens.fontWeight, _Badge.tokens.letterSpacing, _Badge.tokens.lineHeight, _Badge.tokens.borderRadius, _Badge.tokens.height, _Badge.tokens.padding, _Badge.classes.iconOnly, _Badge.tokens.paddingIconOnly, _Badge2.StyledContentLeft);
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");border-radius:var(", ");height:var(", ");padding-top:var(", ");padding-right:var(", ");padding-bottom:var(", ");padding-left:var(", ");"], _Badge.tokens.fontFamily, _Badge.tokens.fontSize, _Badge.tokens.fontStyle, _Badge.tokens.fontWeight, _Badge.tokens.letterSpacing, _Badge.tokens.lineHeight, _Badge.tokens.borderRadius, _Badge.tokens.height, _Badge.tokens.paddingTop, _Badge.tokens.paddingRight, _Badge.tokens.paddingBottom, _Badge.tokens.paddingLeft);
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Badge = /*#__PURE__*/require("../../Badge.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{color:var(", "
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["&.", "{color:var(", ");background-color:var(", ");}"], _Badge.classes.badgeTransparent, _Badge.tokens.colorTransparent, _Badge.tokens.backgroundTransparent);
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Badge = /*#__PURE__*/require("../../Badge.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["color:var(", "
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["color:var(", ");background-color:var(", ");"], _Badge.tokens.color, _Badge.tokens.background);
|
@@ -20,7 +20,8 @@ var classes = exports.classes = {
|
|
20
20
|
tabsHasTopArrow: 'tabs-has-top-arrow',
|
21
21
|
tabsHasBottomArrow: 'tabs-has-bottom-arrow',
|
22
22
|
tabsClipScroll: 'tabs-clip-scroll',
|
23
|
-
tabsClipShowAll: 'tabs-clip-show-all'
|
23
|
+
tabsClipShowAll: 'tabs-clip-show-all',
|
24
|
+
tabsTruncate: 'tabs-truncate'
|
24
25
|
};
|
25
26
|
var tokens = exports.tokens = {
|
26
27
|
disabledOpacity: '--plasma-tabs-disabled-opacity',
|
package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.js
CHANGED
@@ -15,10 +15,15 @@ var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
|
15
15
|
var _base3 = /*#__PURE__*/require("./variations/_pilled/base");
|
16
16
|
var _base4 = /*#__PURE__*/require("./variations/_disabled/base");
|
17
17
|
var _HorizontalTabItem = /*#__PURE__*/require("./HorizontalTabItem.styles");
|
18
|
-
var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
|
18
|
+
var _excluded = ["size", "view", "isActive", "selected", "disabled", "pilled", "children", "value", "contentLeft", "contentRight", "animated", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
21
21
|
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); }
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
24
|
+
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; }
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
26
|
+
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); }
|
22
27
|
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; }
|
23
28
|
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; }
|
24
29
|
var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalTabItemRoot(Root) {
|
@@ -42,6 +47,8 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
|
|
42
47
|
tabIndex = props.tabIndex,
|
43
48
|
className = props.className,
|
44
49
|
onClick = props.onClick,
|
50
|
+
_props$maxItemWidth = props.maxItemWidth,
|
51
|
+
maxWidth = _props$maxItemWidth === void 0 ? 'auto' : _props$maxItemWidth,
|
45
52
|
rest = _objectWithoutProperties(props, _excluded);
|
46
53
|
var innerRef = (0, _react.useRef)(null);
|
47
54
|
var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
|
@@ -51,6 +58,7 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
|
|
51
58
|
var animatedClass = animated ? _tokens.classes.tabItemAnimated : undefined;
|
52
59
|
var pilledClass = pilledAttr ? _tokens.classes.tabsPilled : undefined;
|
53
60
|
var selectedClass = isActive || selected ? _tokens.classes.selectedTabsItem : undefined;
|
61
|
+
var truncateClass = maxWidth !== 'auto' ? _tokens.classes.tabsTruncate : undefined;
|
54
62
|
var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
|
55
63
|
var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
|
56
64
|
(0, _react.useEffect)(function () {
|
@@ -107,9 +115,13 @@ var horizontalTabItemRoot = exports.horizontalTabItemRoot = function horizontalT
|
|
107
115
|
size: size,
|
108
116
|
onFocus: onItemFocus,
|
109
117
|
tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
|
110
|
-
className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, className),
|
118
|
+
className: (0, _utils.cx)(pilledClass, selectedClass, animatedClass, truncateClass, className),
|
111
119
|
onClick: handleClick
|
112
|
-
}, rest
|
120
|
+
}, rest, {
|
121
|
+
style: _objectSpread(_objectSpread({}, rest.style), {}, {
|
122
|
+
maxWidth: maxWidth
|
123
|
+
})
|
124
|
+
}), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.LeftContent, {
|
113
125
|
className: _tokens.classes.tabLeftContent
|
114
126
|
}, contentLeft), /*#__PURE__*/_react["default"].createElement(_HorizontalTabItem.StyledContent, {
|
115
127
|
className: _tokens.classes.tabContent
|
@@ -10,13 +10,6 @@ var _mixins = /*#__PURE__*/require("../../../../../mixins");
|
|
10
10
|
var _tokens = /*#__PURE__*/require("../../../tokens");
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
13
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";"], _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingClear, _tokens.tokens.itemPadding, /*#__PURE__*/(0, _mixins.addFocus)({
|
14
|
-
outlineSize: '0.063rem',
|
15
|
-
outlineOffset: '-0.125rem',
|
16
|
-
outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
|
17
|
-
outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
|
18
|
-
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 ")
|
19
|
-
}));
|
20
13
|
var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
21
14
|
componentId: "plasma-new-hope__sc-lremls-0"
|
22
15
|
})(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], _tokens.tokens.itemContentPaddingClear, _tokens.tokens.itemContentPadding);
|
@@ -28,4 +21,11 @@ var RightContent = exports.RightContent = /*#__PURE__*/_styledComponents["defaul
|
|
28
21
|
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
29
22
|
var LeftContent = exports.LeftContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
30
23
|
componentId: "plasma-new-hope__sc-lremls-3"
|
31
|
-
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
24
|
+
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
25
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;align-items:center;white-space:nowrap;gap:var(", ");padding:var(", ",var(", "));appearance:none;border:none;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;&:first-child{margin-left:0;}", ";&.", "{", "{overflow:hidden;text-overflow:ellipsis;}", "{overflow:hidden;text-overflow:ellipsis;}}"], _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingClear, _tokens.tokens.itemPadding, /*#__PURE__*/(0, _mixins.addFocus)({
|
26
|
+
outlineSize: '0.063rem',
|
27
|
+
outlineOffset: '-0.125rem',
|
28
|
+
outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
|
29
|
+
outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
|
30
|
+
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 ")
|
31
|
+
}), _tokens.classes.tabsTruncate, StyledContent, TabItemValue);
|
package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.js
CHANGED
@@ -14,10 +14,15 @@ var _VerticalTabItem = /*#__PURE__*/require("./VerticalTabItem.styles");
|
|
14
14
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
15
15
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
16
16
|
var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
|
17
|
-
var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick"];
|
17
|
+
var _excluded = ["size", "view", "selected", "disabled", "children", "value", "contentLeft", "contentRight", "onIndexChange", "itemIndex", "tabIndex", "className", "onClick", "maxItemWidth"];
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
20
20
|
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); }
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
23
|
+
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; }
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
25
|
+
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); }
|
21
26
|
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; }
|
22
27
|
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; }
|
23
28
|
var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItemRoot(Root) {
|
@@ -36,12 +41,15 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
|
|
36
41
|
tabIndex = props.tabIndex,
|
37
42
|
className = props.className,
|
38
43
|
onClick = props.onClick,
|
44
|
+
_props$maxItemWidth = props.maxItemWidth,
|
45
|
+
maxWidth = _props$maxItemWidth === void 0 ? 'auto' : _props$maxItemWidth,
|
39
46
|
rest = _objectWithoutProperties(props, _excluded);
|
40
47
|
var innerRef = (0, _react.useRef)(null);
|
41
48
|
var ref = (0, _plasmaCore.useForkRef)(outerRef, innerRef);
|
42
49
|
var refs = (0, _react.useContext)(_TabsContext.TabsContext);
|
43
50
|
var role = 'tab';
|
44
51
|
var selectedClass = selected ? _tokens.classes.selectedTabsItem : undefined;
|
52
|
+
var truncateClass = maxWidth !== 'auto' ? _tokens.classes.tabsTruncate : undefined;
|
45
53
|
var hasKeyNavigation = itemIndex !== undefined && onIndexChange !== undefined;
|
46
54
|
var navigationTabIndex = !disabled && (refs === null || refs === void 0 ? void 0 : refs.current) === itemIndex ? 0 : -1;
|
47
55
|
(0, _react.useEffect)(function () {
|
@@ -94,9 +102,13 @@ var verticalTabItemRoot = exports.verticalTabItemRoot = function verticalTabItem
|
|
94
102
|
size: size,
|
95
103
|
onFocus: onItemFocus,
|
96
104
|
tabIndex: hasKeyNavigation ? navigationTabIndex : tabIndex,
|
97
|
-
className: (0, _utils.cx)(selectedClass, className),
|
105
|
+
className: (0, _utils.cx)(selectedClass, truncateClass, className),
|
98
106
|
onClick: handleClick
|
99
|
-
}, rest
|
107
|
+
}, rest, {
|
108
|
+
style: _objectSpread(_objectSpread({}, rest.style), {}, {
|
109
|
+
maxWidth: maxWidth
|
110
|
+
})
|
111
|
+
}), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, contentLeft && /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.LeftContent, {
|
100
112
|
className: _tokens.classes.tabLeftContent
|
101
113
|
}, contentLeft), /*#__PURE__*/_react["default"].createElement(_VerticalTabItem.StyledContent, {
|
102
114
|
className: _tokens.classes.tabContent
|
package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js
CHANGED
@@ -12,22 +12,22 @@ var _templateObject;
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
15
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n align-items: center;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
|
16
|
-
outlineSize: '0.063rem',
|
17
|
-
outlineOffset: '-0.125rem',
|
18
|
-
outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
|
19
|
-
outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
|
20
|
-
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 ")
|
21
|
-
}));
|
22
15
|
var StyledContent = exports.StyledContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
23
16
|
componentId: "plasma-new-hope__sc-1pflgj8-0"
|
24
17
|
})(["display:inline-block;width:fit-content;padding:0 var(", ",var(", "));"], _tokens.tokens.itemContentPaddingClear, _tokens.tokens.itemContentPadding);
|
25
18
|
var TabItemValue = exports.TabItemValue = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
26
19
|
componentId: "plasma-new-hope__sc-1pflgj8-1"
|
27
|
-
})(["color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], _tokens.tokens.itemValueColor, _tokens.tokens.valueFontFamily, _tokens.tokens.fontFamily, _tokens.tokens.valueFontSize, _tokens.tokens.fontSize, _tokens.tokens.valueFontStyle, _tokens.tokens.fontStyle, _tokens.tokens.valueFontWeight, _tokens.tokens.fontWeight, _tokens.tokens.valueLetterSpacing, _tokens.tokens.letterSpacing, _tokens.tokens.valueLineHeight, _tokens.tokens.lineHeight);
|
20
|
+
})(["white-space:nowrap;color:var(", ");font-family:var(", ",var(", "));font-size:var(", ",var(", "));font-style:var(", ",var(", "));font-weight:var(", ",var(", "));letter-spacing:var(", ",var(", "));line-height:var(", ",var(", "));"], _tokens.tokens.itemValueColor, _tokens.tokens.valueFontFamily, _tokens.tokens.fontFamily, _tokens.tokens.valueFontSize, _tokens.tokens.fontSize, _tokens.tokens.valueFontStyle, _tokens.tokens.fontStyle, _tokens.tokens.valueFontWeight, _tokens.tokens.fontWeight, _tokens.tokens.valueLetterSpacing, _tokens.tokens.letterSpacing, _tokens.tokens.valueLineHeight, _tokens.tokens.lineHeight);
|
28
21
|
var RightContent = exports.RightContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
29
22
|
componentId: "plasma-new-hope__sc-1pflgj8-2"
|
30
23
|
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
31
24
|
var LeftContent = exports.LeftContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
32
25
|
componentId: "plasma-new-hope__sc-1pflgj8-3"
|
33
|
-
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
26
|
+
})(["display:flex;color:inherit;&:hover{color:inherit;}"]);
|
27
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n box-sizing: border-box;\n white-space: nowrap;\n\n gap: var(", ");\n padding: var(", ");\n\n appearance: none;\n border: none;\n outline: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n ", ";\n\n &.", " {\n ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n"])), _tokens.tokens.itemContentGap, _tokens.tokens.itemPaddingOrientationVertical, /*#__PURE__*/(0, _mixins.addFocus)({
|
28
|
+
outlineSize: '0.063rem',
|
29
|
+
outlineOffset: '-0.125rem',
|
30
|
+
outlineColor: /*#__PURE__*/"var(".concat(_tokens.tokens.outlineFocusColor, ")"),
|
31
|
+
outlineRadius: 'calc(var(--plasma_private-outline-radius) + 0.063rem)',
|
32
|
+
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 ")
|
33
|
+
}), _tokens.classes.tabsTruncate, StyledContent, TabItemValue);
|
@@ -22,10 +22,10 @@ var config = exports.config = {
|
|
22
22
|
light: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], _Badge.badgeTokens.color, _Badge.badgeTokens.background, _Badge.badgeTokens.colorTransparent, _Badge.badgeTokens.backgroundTransparent, _Badge.badgeTokens.colorClear)
|
23
23
|
},
|
24
24
|
size: {
|
25
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.5rem;", ":1.75rem;", ":0
|
26
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.375rem;", ":1.5rem;", ":0
|
27
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.375rem;", ":1.25rem;", ":0
|
28
|
-
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.25rem;", ":1rem;", ":0
|
25
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], _Badge.badgeTokens.borderRadius, _Badge.badgeTokens.height, _Badge.badgeTokens.paddingRight, _Badge.badgeTokens.paddingLeft, _Badge.badgeTokens.fontFamily, _Badge.badgeTokens.fontSize, _Badge.badgeTokens.fontStyle, _Badge.badgeTokens.fontWeight, _Badge.badgeTokens.letterSpacing, _Badge.badgeTokens.lineHeight, _Badge.badgeTokens.leftContentMarginLeft, _Badge.badgeTokens.leftContentMarginRight, _Badge.badgeTokens.rightContentMarginLeft, _Badge.badgeTokens.rightContentMarginRight),
|
26
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], _Badge.badgeTokens.borderRadius, _Badge.badgeTokens.height, _Badge.badgeTokens.paddingRight, _Badge.badgeTokens.paddingLeft, _Badge.badgeTokens.fontFamily, _Badge.badgeTokens.fontSize, _Badge.badgeTokens.fontStyle, _Badge.badgeTokens.fontWeight, _Badge.badgeTokens.letterSpacing, _Badge.badgeTokens.lineHeight, _Badge.badgeTokens.leftContentMarginLeft, _Badge.badgeTokens.leftContentMarginRight, _Badge.badgeTokens.rightContentMarginLeft, _Badge.badgeTokens.rightContentMarginRight),
|
27
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], _Badge.badgeTokens.borderRadius, _Badge.badgeTokens.height, _Badge.badgeTokens.paddingRight, _Badge.badgeTokens.paddingLeft, _Badge.badgeTokens.fontFamily, _Badge.badgeTokens.fontSize, _Badge.badgeTokens.fontStyle, _Badge.badgeTokens.fontWeight, _Badge.badgeTokens.letterSpacing, _Badge.badgeTokens.lineHeight, _Badge.badgeTokens.leftContentMarginLeft, _Badge.badgeTokens.leftContentMarginRight, _Badge.badgeTokens.rightContentMarginLeft, _Badge.badgeTokens.rightContentMarginRight),
|
28
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], _Badge.badgeTokens.borderRadius, _Badge.badgeTokens.height, _Badge.badgeTokens.paddingRight, _Badge.badgeTokens.paddingLeft, _Badge.badgeTokens.fontFamily, _Badge.badgeTokens.fontSize, _Badge.badgeTokens.fontStyle, _Badge.badgeTokens.fontWeight, _Badge.badgeTokens.letterSpacing, _Badge.badgeTokens.lineHeight, _Badge.badgeTokens.leftContentMarginLeft, _Badge.badgeTokens.leftContentMarginRight, _Badge.badgeTokens.rightContentMarginLeft, _Badge.badgeTokens.rightContentMarginRight)
|
29
29
|
},
|
30
30
|
pilled: {
|
31
31
|
"true": /*#__PURE__*/(0, _styledComponents.css)(["", ":1.25rem;"], _Badge.badgeTokens.pilledBorderRadius)
|
@@ -34,7 +34,10 @@ var config = exports.config = {
|
|
34
34
|
"true": /*#__PURE__*/(0, _styledComponents.css)([""])
|
35
35
|
},
|
36
36
|
clear: {
|
37
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)([""
|
37
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)([""])
|
38
|
+
},
|
39
|
+
truncate: {
|
40
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)([""])
|
38
41
|
}
|
39
42
|
}
|
40
43
|
};
|
@@ -31,9 +31,8 @@ const meta: Meta<typeof Badge> = {
|
|
31
31
|
control: { type: 'boolean' },
|
32
32
|
if: { arg: 'clear', truthy: false },
|
33
33
|
},
|
34
|
-
|
34
|
+
maxWidth: {
|
35
35
|
control: { type: 'text' },
|
36
|
-
if: { arg: 'enableText', truthy: true },
|
37
36
|
},
|
38
37
|
...disableProps(['contentLeft', 'contentRight']),
|
39
38
|
},
|
@@ -44,7 +43,6 @@ export default meta;
|
|
44
43
|
type StoryProps = ComponentProps<typeof Badge> & {
|
45
44
|
enableContentLeft: boolean;
|
46
45
|
enableContentRight: boolean;
|
47
|
-
enableText: boolean;
|
48
46
|
};
|
49
47
|
type Story = StoryObj<StoryProps>;
|
50
48
|
|
@@ -65,19 +63,19 @@ export const Default: Story = {
|
|
65
63
|
},
|
66
64
|
enableContentRight: {
|
67
65
|
control: { type: 'boolean' },
|
68
|
-
if: { arg: '
|
66
|
+
if: { arg: 'enableContentLeft', truthy: false },
|
69
67
|
},
|
70
68
|
},
|
71
69
|
args: {
|
70
|
+
text: 'Hello Kitty',
|
72
71
|
view: 'default',
|
73
72
|
size: 'm',
|
74
|
-
enableText: true,
|
75
|
-
text: 'Hello',
|
76
73
|
enableContentLeft: false,
|
77
74
|
enableContentRight: false,
|
78
75
|
clear: false,
|
79
76
|
pilled: false,
|
80
77
|
transparent: false,
|
78
|
+
maxWidth: '',
|
81
79
|
},
|
82
80
|
render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
|
83
81
|
const iconSize = size === 'l' ? '1rem' : '0.75rem';
|