@salutejs/plasma-new-hope 0.317.0-canary.1886.14214080050.0 → 0.317.0-canary.1888.14214679698.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Table/Table.css +24 -22
- package/cjs/components/Table/Table.js +11 -16
- package/cjs/components/Table/Table.js.map +1 -1
- package/cjs/components/Table/Table.styles.js +17 -11
- package/cjs/components/Table/Table.styles.js.map +1 -1
- package/cjs/components/Table/Table.styles_xngwgy.css +12 -0
- package/cjs/components/Table/Table.tokens.js +9 -0
- package/cjs/components/Table/Table.tokens.js.map +1 -1
- package/cjs/components/Table/ui/Cell/Cell.css +24 -22
- package/cjs/components/Table/ui/Cell/Cell.js.map +1 -1
- package/cjs/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/cjs/components/Table/ui/Cell/Cell.styles.js.map +1 -1
- package/cjs/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +1 -0
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +25 -23
- package/cjs/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/cjs/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
- package/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +5 -5
- package/cjs/components/Table/ui/EditableCell/EditableCell.styles.js.map +1 -1
- package/{es/components/Table/ui/EditableCell/EditableCell.styles_277bjm.css → cjs/components/Table/ui/EditableCell/EditableCell.styles_d8duzc.css} +2 -2
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +24 -22
- package/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
- package/cjs/components/Table/ui/HeadCell/HeadCell.js.map +1 -1
- package/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +7 -1
- package/cjs/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
- package/{es/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css → cjs/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css} +1 -0
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +24 -22
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
- package/cjs/components/Typography/Body/Body.css +1 -1
- package/cjs/components/Typography/Typography.js +4 -4
- package/cjs/components/Typography/Typography.js.map +1 -1
- package/cjs/components/Typography/Typography.styles.js +1 -1
- package/cjs/components/Typography/Typography.styles.js.map +1 -1
- package/cjs/components/Typography/{Typography.styles_c0qunc.css → Typography.styles_fa07dt.css} +1 -1
- package/cjs/components/Typography/tokens.js +1 -3
- package/cjs/components/Typography/tokens.js.map +1 -1
- package/cjs/engines/linaria.js +2 -4
- package/cjs/engines/linaria.js.map +1 -1
- package/cjs/index.css +27 -25
- package/emotion/cjs/components/Table/Table.js +14 -16
- package/emotion/cjs/components/Table/Table.styles.js +20 -16
- package/emotion/cjs/components/Table/Table.tokens.js +9 -1
- package/emotion/cjs/components/Table/ui/Cell/Cell.styles.js +2 -2
- package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +9 -9
- package/emotion/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
- package/emotion/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +17 -5
- package/emotion/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/emotion/cjs/components/Typography/Typography.js +4 -4
- package/emotion/cjs/components/Typography/Typography.styles.js +1 -1
- package/emotion/cjs/components/Typography/Typography.template-doc.mdx +9 -42
- package/emotion/cjs/components/Typography/tokens.js +1 -3
- package/emotion/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +7 -6
- package/emotion/cjs/examples/plasma_web/components/Table/Table.stories.tsx +7 -6
- package/emotion/cjs/examples/typography/components/Body/Body.config.js +5 -5
- package/emotion/cjs/examples/typography/components/Body/Body.stories.tsx +1 -17
- package/emotion/cjs/examples/typography/components/Dspl/Dspl.config.js +3 -3
- package/emotion/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +1 -17
- package/emotion/cjs/examples/typography/components/Heading/Heading.config.js +5 -5
- package/emotion/cjs/examples/typography/components/Heading/Heading.stories.tsx +1 -17
- package/emotion/cjs/examples/typography/components/Old/Body/Body.config.js +20 -0
- package/emotion/cjs/examples/typography/components/Old/Body/Body.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Body/Body.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Button/Button.config.js +19 -0
- package/emotion/cjs/examples/typography/components/Old/Button/Button.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Button/Button.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.config.js +18 -0
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Display/Display.config.js +20 -0
- package/emotion/cjs/examples/typography/components/Old/Display/Display.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Display/Display.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +19 -0
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.config.js +21 -0
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +19 -0
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +42 -0
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +18 -0
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +39 -0
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.config.js +18 -0
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.js +11 -0
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +40 -0
- package/emotion/cjs/examples/typography/components/Text/Text.config.js +4 -4
- package/emotion/cjs/examples/typography/components/Text/Text.stories.tsx +1 -17
- package/emotion/es/components/Table/Table.js +15 -17
- package/emotion/es/components/Table/Table.styles.js +19 -15
- package/emotion/es/components/Table/Table.tokens.js +8 -0
- package/emotion/es/components/Table/ui/Cell/Cell.styles.js +2 -2
- package/emotion/es/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/emotion/es/components/Table/ui/EditableCell/EditableCell.styles.js +10 -10
- package/emotion/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
- package/emotion/es/components/Table/ui/HeadCell/HeadCell.styles.js +16 -4
- package/emotion/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/emotion/es/components/Typography/Typography.js +4 -4
- package/emotion/es/components/Typography/Typography.styles.js +1 -1
- package/emotion/es/components/Typography/Typography.template-doc.mdx +9 -42
- package/emotion/es/components/Typography/tokens.js +1 -3
- package/emotion/es/examples/plasma_b2c/components/Table/Table.stories.tsx +7 -6
- package/emotion/es/examples/plasma_web/components/Table/Table.stories.tsx +7 -6
- package/emotion/es/examples/typography/components/Body/Body.config.js +5 -5
- package/emotion/es/examples/typography/components/Body/Body.stories.tsx +1 -17
- package/emotion/es/examples/typography/components/Dspl/Dspl.config.js +3 -3
- package/emotion/es/examples/typography/components/Dspl/Dspl.stories.tsx +1 -17
- package/emotion/es/examples/typography/components/Heading/Heading.config.js +5 -5
- package/emotion/es/examples/typography/components/Heading/Heading.stories.tsx +1 -17
- package/emotion/es/examples/typography/components/Old/Body/Body.config.js +14 -0
- package/emotion/es/examples/typography/components/Old/Body/Body.js +5 -0
- package/emotion/es/examples/typography/components/Old/Body/Body.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Button/Button.config.js +13 -0
- package/emotion/es/examples/typography/components/Old/Button/Button.js +5 -0
- package/emotion/es/examples/typography/components/Old/Button/Button.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Caption/Caption.config.js +12 -0
- package/emotion/es/examples/typography/components/Old/Caption/Caption.js +5 -0
- package/emotion/es/examples/typography/components/Old/Caption/Caption.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Display/Display.config.js +14 -0
- package/emotion/es/examples/typography/components/Old/Display/Display.js +5 -0
- package/emotion/es/examples/typography/components/Old/Display/Display.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.config.js +13 -0
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.js +5 -0
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Headline/Headline.config.js +15 -0
- package/emotion/es/examples/typography/components/Old/Headline/Headline.js +5 -0
- package/emotion/es/examples/typography/components/Old/Headline/Headline.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +13 -0
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.js +5 -0
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +42 -0
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +12 -0
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.js +5 -0
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +39 -0
- package/emotion/es/examples/typography/components/Old/Underline/Underline.config.js +12 -0
- package/emotion/es/examples/typography/components/Old/Underline/Underline.js +5 -0
- package/emotion/es/examples/typography/components/Old/Underline/Underline.stories.tsx +40 -0
- package/emotion/es/examples/typography/components/Text/Text.config.js +4 -4
- package/emotion/es/examples/typography/components/Text/Text.stories.tsx +1 -17
- package/es/components/Table/Table.css +24 -22
- package/es/components/Table/Table.js +13 -18
- package/es/components/Table/Table.js.map +1 -1
- package/es/components/Table/Table.styles.js +17 -12
- package/es/components/Table/Table.styles.js.map +1 -1
- package/es/components/Table/Table.styles_xngwgy.css +12 -0
- package/es/components/Table/Table.tokens.js +9 -1
- package/es/components/Table/Table.tokens.js.map +1 -1
- package/es/components/Table/ui/Cell/Cell.css +24 -22
- package/es/components/Table/ui/Cell/Cell.js.map +1 -1
- package/es/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/es/components/Table/ui/Cell/Cell.styles.js.map +1 -1
- package/es/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +1 -0
- package/es/components/Table/ui/EditableCell/EditableCell.css +25 -23
- package/es/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/es/components/Table/ui/EditableCell/EditableCell.js.map +1 -1
- package/es/components/Table/ui/EditableCell/EditableCell.styles.js +5 -5
- package/es/components/Table/ui/EditableCell/EditableCell.styles.js.map +1 -1
- package/{cjs/components/Table/ui/EditableCell/EditableCell.styles_277bjm.css → es/components/Table/ui/EditableCell/EditableCell.styles_d8duzc.css} +2 -2
- package/es/components/Table/ui/HeadCell/HeadCell.css +24 -22
- package/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
- package/es/components/Table/ui/HeadCell/HeadCell.js.map +1 -1
- package/es/components/Table/ui/HeadCell/HeadCell.styles.js +7 -2
- package/es/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
- package/{cjs/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css → es/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css} +1 -0
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +24 -22
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
- package/es/components/Typography/Body/Body.css +1 -1
- package/es/components/Typography/Typography.js +4 -4
- package/es/components/Typography/Typography.js.map +1 -1
- package/es/components/Typography/Typography.styles.js +1 -1
- package/es/components/Typography/Typography.styles.js.map +1 -1
- package/es/components/Typography/{Typography.styles_c0qunc.css → Typography.styles_fa07dt.css} +1 -1
- package/es/components/Typography/tokens.js +1 -3
- package/es/components/Typography/tokens.js.map +1 -1
- package/es/engines/linaria.js +2 -4
- package/es/engines/linaria.js.map +1 -1
- package/es/index.css +27 -25
- package/package.json +2 -2
- package/styled-components/cjs/components/Table/Table.js +14 -16
- package/styled-components/cjs/components/Table/Table.styles.js +13 -10
- package/styled-components/cjs/components/Table/Table.tokens.js +9 -1
- package/styled-components/cjs/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.styles.js +3 -3
- package/styled-components/cjs/components/Table/ui/HeadCell/HeadCell.js +9 -9
- package/styled-components/cjs/components/Table/ui/HeadCell/HeadCell.styles.js +5 -2
- package/styled-components/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/styled-components/cjs/components/Typography/Typography.js +4 -4
- package/styled-components/cjs/components/Typography/Typography.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +9 -42
- package/styled-components/cjs/components/Typography/tokens.js +1 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +7 -6
- package/styled-components/cjs/examples/plasma_web/components/Table/Table.stories.tsx +7 -6
- package/styled-components/cjs/examples/typography/components/Body/Body.config.js +5 -5
- package/styled-components/cjs/examples/typography/components/Body/Body.stories.tsx +1 -17
- package/styled-components/cjs/examples/typography/components/Dspl/Dspl.config.js +3 -3
- package/styled-components/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +1 -17
- package/styled-components/cjs/examples/typography/components/Heading/Heading.config.js +5 -5
- package/styled-components/cjs/examples/typography/components/Heading/Heading.stories.tsx +1 -17
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.config.js +20 -0
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.config.js +19 -0
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.config.js +18 -0
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.config.js +20 -0
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +19 -0
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.config.js +21 -0
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +19 -0
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +42 -0
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +18 -0
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +39 -0
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.config.js +18 -0
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.js +11 -0
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +40 -0
- package/styled-components/cjs/examples/typography/components/Text/Text.config.js +4 -4
- package/styled-components/cjs/examples/typography/components/Text/Text.stories.tsx +1 -17
- package/styled-components/es/components/Table/Table.js +15 -17
- package/styled-components/es/components/Table/Table.styles.js +12 -9
- package/styled-components/es/components/Table/Table.tokens.js +8 -0
- package/styled-components/es/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/styled-components/es/components/Table/ui/EditableCell/EditableCell.js +15 -9
- package/styled-components/es/components/Table/ui/EditableCell/EditableCell.styles.js +4 -4
- package/styled-components/es/components/Table/ui/HeadCell/HeadCell.js +10 -10
- package/styled-components/es/components/Table/ui/HeadCell/HeadCell.styles.js +4 -1
- package/styled-components/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +3 -1
- package/styled-components/es/components/Typography/Typography.js +4 -4
- package/styled-components/es/components/Typography/Typography.styles.js +1 -1
- package/styled-components/es/components/Typography/Typography.template-doc.mdx +9 -42
- package/styled-components/es/components/Typography/tokens.js +1 -3
- package/styled-components/es/examples/plasma_b2c/components/Table/Table.stories.tsx +7 -6
- package/styled-components/es/examples/plasma_web/components/Table/Table.stories.tsx +7 -6
- package/styled-components/es/examples/typography/components/Body/Body.config.js +5 -5
- package/styled-components/es/examples/typography/components/Body/Body.stories.tsx +1 -17
- package/styled-components/es/examples/typography/components/Dspl/Dspl.config.js +3 -3
- package/styled-components/es/examples/typography/components/Dspl/Dspl.stories.tsx +1 -17
- package/styled-components/es/examples/typography/components/Heading/Heading.config.js +5 -5
- package/styled-components/es/examples/typography/components/Heading/Heading.stories.tsx +1 -17
- package/styled-components/es/examples/typography/components/Old/Body/Body.config.js +14 -0
- package/styled-components/es/examples/typography/components/Old/Body/Body.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Body/Body.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Button/Button.config.js +13 -0
- package/styled-components/es/examples/typography/components/Old/Button/Button.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Button/Button.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.config.js +12 -0
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Display/Display.config.js +14 -0
- package/styled-components/es/examples/typography/components/Old/Display/Display.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Display/Display.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.config.js +13 -0
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.config.js +15 -0
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +13 -0
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +42 -0
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +12 -0
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +39 -0
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.config.js +12 -0
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.js +5 -0
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.stories.tsx +40 -0
- package/styled-components/es/examples/typography/components/Text/Text.config.js +4 -4
- package/styled-components/es/examples/typography/components/Text/Text.stories.tsx +1 -17
- package/types/components/Table/Table.d.ts +2 -15
- package/types/components/Table/Table.d.ts.map +1 -1
- package/types/components/Table/Table.styles.d.ts +1 -0
- package/types/components/Table/Table.styles.d.ts.map +1 -1
- package/types/components/Table/Table.tokens.d.ts +8 -0
- package/types/components/Table/Table.tokens.d.ts.map +1 -1
- package/types/components/Table/Table.types.d.ts +11 -1
- package/types/components/Table/Table.types.d.ts.map +1 -1
- package/types/components/Table/ui/Cell/Cell.d.ts +3 -2
- package/types/components/Table/ui/Cell/Cell.d.ts.map +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts +12 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts +11 -1
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts +1 -0
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts +10 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts.map +1 -1
- package/types/components/Typography/Body/Body.d.ts +10 -2
- package/types/components/Typography/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Dspl/Dspl.d.ts +10 -2
- package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
- package/types/components/Typography/Heading/Heading.d.ts +10 -2
- package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/types/components/Typography/Text/Text.d.ts +10 -2
- package/types/components/Typography/Text/Text.d.ts.map +1 -1
- package/types/components/Typography/Typography.d.ts +5 -1
- package/types/components/Typography/Typography.d.ts.map +1 -1
- package/types/components/Typography/Typography.styles.d.ts.map +1 -1
- package/types/components/Typography/Typography.types.d.ts +5 -23
- package/types/components/Typography/Typography.types.d.ts.map +1 -1
- package/types/components/Typography/tokens.d.ts +0 -2
- package/types/components/Typography/tokens.d.ts.map +1 -1
- package/cjs/components/Table/Table.styles_1eg2zsx.css +0 -11
- package/cjs/components/Table/ui/Cell/Cell.styles_1ikyrwt.css +0 -1
- package/es/components/Table/Table.styles_1eg2zsx.css +0 -11
- package/es/components/Table/ui/Cell/Cell.styles_1ikyrwt.css +0 -1
@@ -23,22 +23,6 @@ title: Typography
|
|
23
23
|
По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
|
24
24
|
Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
|
25
25
|
|
26
|
-
## Смена тега
|
27
|
-
Если при использовании компонентов необходимо сменить тег, то можно использовать свойство `as`:
|
28
|
-
|
29
|
-
```tsx live
|
30
|
-
import React from 'react';
|
31
|
-
import { BodyM } from '@salutejs/{{ package }}';
|
32
|
-
|
33
|
-
export function App() {
|
34
|
-
return (
|
35
|
-
<BodyM as="h3">
|
36
|
-
BodyM
|
37
|
-
</BodyM>
|
38
|
-
);
|
39
|
-
}
|
40
|
-
```
|
41
|
-
|
42
26
|
## Состав
|
43
27
|
|
44
28
|
### Hero unit
|
@@ -52,15 +36,12 @@ export function App() {
|
|
52
36
|
<div style=\{{ display: 'block' }}>
|
53
37
|
<DsplL bold={false}>DsplL</DsplL>
|
54
38
|
<DsplL>DsplL Bold</DsplL>
|
55
|
-
<DsplL medium>DsplL Medium</DsplL>
|
56
39
|
|
57
40
|
<DsplM bold={false}>DsplM</DsplM>
|
58
41
|
<DsplM>DsplM Bold</DsplM>
|
59
|
-
<DsplM medium>DsplM Medium</DsplM>
|
60
42
|
|
61
43
|
<DsplS bold={false}>DsplS</DsplS>
|
62
44
|
<DsplS>DsplS Bold</DsplS>
|
63
|
-
<DsplS medium>DsplS Medium</DsplS>
|
64
45
|
</div>
|
65
46
|
);
|
66
47
|
}
|
@@ -77,23 +58,18 @@ export function App() {
|
|
77
58
|
<div style=\{{ display: 'block' }}>
|
78
59
|
<H1 bold={false}>H1</H1>
|
79
60
|
<H1>H1 Bold</H1>
|
80
|
-
<H1 medium>H1 Medium</H1>
|
81
61
|
|
82
62
|
<H2 bold={false}>H2</H2>
|
83
63
|
<H2>H2 Bold</H2>
|
84
|
-
<H2 medium>H2 Medium</H2>
|
85
64
|
|
86
65
|
<H3 bold={false}>H3</H3>
|
87
66
|
<H3>H3 Bold</H3>
|
88
|
-
<H3 medium>H3 Medium</H3>
|
89
67
|
|
90
68
|
<H4 bold={false}>H4</H4>
|
91
69
|
<H4>H4 Bold</H4>
|
92
|
-
<H4 medium>H4 Medium</H4>
|
93
70
|
|
94
71
|
<H5 bold={false}>H5</H5>
|
95
72
|
<H5>H5 Bold</H5>
|
96
|
-
<H5 medium>H5 Medium</H5>
|
97
73
|
</div>
|
98
74
|
);
|
99
75
|
}
|
@@ -110,24 +86,19 @@ export function App() {
|
|
110
86
|
return (
|
111
87
|
<div style=\{{ display: 'block' }}>
|
112
88
|
<BodyL>BodyL</BodyL>
|
113
|
-
<BodyL bold>BodyL
|
114
|
-
<BodyL medium>BodyL Medium</BodyL>
|
89
|
+
<BodyL bold>BodyL полужирный</BodyL>
|
115
90
|
|
116
91
|
<BodyM>BodyM</BodyM>
|
117
|
-
<BodyM bold>BodyM
|
118
|
-
<BodyM medium>BodyM Medium</BodyM>
|
92
|
+
<BodyM bold>BodyM полужирный</BodyM>
|
119
93
|
|
120
94
|
<BodyS>BodyS</BodyS>
|
121
|
-
<BodyS bold>BodyS
|
122
|
-
<BodyS medium>BodyS Medium</BodyS>
|
95
|
+
<BodyS bold>BodyS полужирный</BodyS>
|
123
96
|
|
124
97
|
<BodyXS>BodyXS</BodyXS>
|
125
|
-
<BodyXS bold>BodyXS
|
126
|
-
<BodyXS medium>BodyXS Medium</BodyXS>
|
98
|
+
<BodyXS bold>BodyXS полужирный</BodyXS>
|
127
99
|
|
128
100
|
<BodyXXS>BodyXXS</BodyXXS>
|
129
|
-
<BodyXXS bold>BodyXXS
|
130
|
-
<BodyXXS medium>BodyXXS Medium</BodyXXS>
|
101
|
+
<BodyXXS bold>BodyXXS полужирный</BodyXXS>
|
131
102
|
</div>
|
132
103
|
);
|
133
104
|
}
|
@@ -144,20 +115,16 @@ export function App() {
|
|
144
115
|
return (
|
145
116
|
<div style=\{{ display: 'block' }}>
|
146
117
|
<TextL>TextL</TextL>
|
147
|
-
<TextL bold>TextL
|
148
|
-
<TextL medium>TextL Medium</TextL>
|
118
|
+
<TextL bold>TextL полужирный</TextL>
|
149
119
|
|
150
120
|
<TextM>TextM</TextM>
|
151
|
-
<TextM bold>TextM
|
152
|
-
<TextM medium>TextM Medium</TextM>
|
121
|
+
<TextM bold>TextM полужирный</TextM>
|
153
122
|
|
154
123
|
<TextS>TextS</TextS>
|
155
|
-
<TextS bold>TextS
|
156
|
-
<TextS medium>TextS Medium</TextS>
|
124
|
+
<TextS bold>TextS полужирный</TextS>
|
157
125
|
|
158
126
|
<TextXS>TextXS</TextXS>
|
159
|
-
<TextXS bold>TextXS
|
160
|
-
<TextXS medium>TextXS Medium</TextXS>
|
127
|
+
<TextXS bold>TextXS полужирный</TextXS>
|
161
128
|
</div>
|
162
129
|
);
|
163
130
|
}
|
@@ -7,8 +7,7 @@ exports.tokens = exports.classes = void 0;
|
|
7
7
|
var classes = exports.classes = {
|
8
8
|
typoWithNoWrap: 'with-no-wrap',
|
9
9
|
typoWithBreakWord: 'with-break-word',
|
10
|
-
typoBold: 'typography-bold'
|
11
|
-
typoMedium: 'typography-medium'
|
10
|
+
typoBold: 'typography-bold'
|
12
11
|
};
|
13
12
|
var tokens = exports.tokens = {
|
14
13
|
typoFontFamily: '--typo-font-family',
|
@@ -16,7 +15,6 @@ var tokens = exports.tokens = {
|
|
16
15
|
typoFontStyle: '--typo-font-style',
|
17
16
|
typoFontWeight: '--typo-font-weight',
|
18
17
|
typoFontWeightBold: '--typo-font-weight-bold',
|
19
|
-
typoFontWeightMedium: '--typo-font-weight-medium',
|
20
18
|
typoFontLetterSpacing: '--typo-font-letter-spacing',
|
21
19
|
typoFontLineHeight: '--typo-font-line-height'
|
22
20
|
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { useRef, ComponentProps, useState } from 'react';
|
2
2
|
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { getConfigVariations } from '@salutejs/plasma-sb-utils';
|
3
4
|
|
4
5
|
import { WithTheme } from '../../../_helpers';
|
5
6
|
import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
|
@@ -8,12 +9,12 @@ import { IconButton } from '../IconButton/IconButton';
|
|
8
9
|
import { IconEditOutline } from '../../../../components/_Icon';
|
9
10
|
import { Dropdown } from '../Dropdown/Dropdown';
|
10
11
|
|
12
|
+
import { config } from './Table.config';
|
11
13
|
import { Table } from './Table';
|
12
14
|
|
13
15
|
type StoryTableProps = ComponentProps<typeof Table>;
|
14
16
|
|
15
|
-
const
|
16
|
-
const size = ['s', 'm', 'l'];
|
17
|
+
const { views, sizes } = getConfigVariations(config);
|
17
18
|
const borderVariant = ['rows', 'header', 'all'];
|
18
19
|
|
19
20
|
const meta: Meta<StoryTableProps> = {
|
@@ -23,11 +24,11 @@ const meta: Meta<StoryTableProps> = {
|
|
23
24
|
argTypes: {
|
24
25
|
view: {
|
25
26
|
control: 'select',
|
26
|
-
options:
|
27
|
+
options: views,
|
27
28
|
},
|
28
29
|
size: {
|
29
30
|
control: 'select',
|
30
|
-
options:
|
31
|
+
options: sizes,
|
31
32
|
},
|
32
33
|
borderVariant: {
|
33
34
|
control: 'select',
|
@@ -514,8 +515,8 @@ const StoryComplex = (args: StoryTableProps) => {
|
|
514
515
|
<Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
|
515
516
|
<Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
|
516
517
|
<Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
|
517
|
-
<Button text="Очистить все" view="
|
518
|
-
<Button text="Добавить строку" view="
|
518
|
+
<Button text="Очистить все" view="negative" size="xs" onClick={clearAll} />
|
519
|
+
<Button text="Добавить строку" view="positive" size="xs" onClick={addRow} />
|
519
520
|
</ButtonGroup>
|
520
521
|
|
521
522
|
<br />
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { useRef, ComponentProps, useState } from 'react';
|
2
2
|
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { getConfigVariations } from '@salutejs/plasma-sb-utils';
|
3
4
|
|
4
5
|
import { WithTheme } from '../../../_helpers';
|
5
6
|
import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
|
@@ -7,13 +8,13 @@ import { Button } from '../Button/Button';
|
|
7
8
|
import { IconButton } from '../IconButton/IconButton';
|
8
9
|
import { IconEditOutline } from '../../../../components/_Icon';
|
9
10
|
import { Dropdown } from '../Dropdown/Dropdown';
|
11
|
+
import { config } from '../../../plasma_b2c/components/Table/Table.config';
|
10
12
|
|
11
13
|
import { Table } from './Table';
|
12
14
|
|
13
15
|
type StoryTableProps = ComponentProps<typeof Table>;
|
14
16
|
|
15
|
-
const
|
16
|
-
const size = ['s', 'm', 'l'];
|
17
|
+
const { views, sizes } = getConfigVariations(config);
|
17
18
|
const borderVariant = ['rows', 'header', 'all'];
|
18
19
|
|
19
20
|
const meta: Meta<StoryTableProps> = {
|
@@ -23,11 +24,11 @@ const meta: Meta<StoryTableProps> = {
|
|
23
24
|
argTypes: {
|
24
25
|
view: {
|
25
26
|
control: 'select',
|
26
|
-
options:
|
27
|
+
options: views,
|
27
28
|
},
|
28
29
|
size: {
|
29
30
|
control: 'select',
|
30
|
-
options:
|
31
|
+
options: sizes,
|
31
32
|
},
|
32
33
|
borderVariant: {
|
33
34
|
control: 'select',
|
@@ -514,8 +515,8 @@ const StoryComplex = (args: StoryTableProps) => {
|
|
514
515
|
<Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
|
515
516
|
<Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
|
516
517
|
<Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
|
517
|
-
<Button text="Очистить все" view="
|
518
|
-
<Button text="Добавить строку" view="
|
518
|
+
<Button text="Очистить все" view="negative" size="xs" onClick={clearAll} />
|
519
|
+
<Button text="Добавить строку" view="positive" size="xs" onClick={addRow} />
|
519
520
|
</ButtonGroup>
|
520
521
|
|
521
522
|
<br />
|
@@ -12,11 +12,11 @@ var config = exports.config = {
|
|
12
12
|
},
|
13
13
|
variations: {
|
14
14
|
size: {
|
15
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-
|
16
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-
|
17
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-s-
|
18
|
-
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-xs-
|
19
|
-
xxs: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-xxs-
|
15
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
16
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
17
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
18
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
19
|
+
xxs: /*#__PURE__*/(0, _styledComponents.css)(["", ":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-bold-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
20
20
|
}
|
21
21
|
}
|
22
22
|
};
|
@@ -9,7 +9,7 @@ import { Body } from './Body';
|
|
9
9
|
import { config } from './Body.config';
|
10
10
|
|
11
11
|
const meta: Meta<typeof Body> = {
|
12
|
-
title: '
|
12
|
+
title: 'Data Display/Typography/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Body,
|
15
15
|
argTypes: {
|
@@ -19,27 +19,11 @@ const meta: Meta<typeof Body> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
-
as: {
|
23
|
-
control: 'text',
|
24
|
-
},
|
25
|
-
bold: {
|
26
|
-
control: {
|
27
|
-
type: 'boolean',
|
28
|
-
},
|
29
|
-
if: { arg: 'medium', truthy: false },
|
30
|
-
},
|
31
|
-
medium: {
|
32
|
-
control: {
|
33
|
-
type: 'boolean',
|
34
|
-
},
|
35
|
-
if: { arg: 'bold', truthy: false },
|
36
|
-
},
|
37
22
|
},
|
38
23
|
args: {
|
39
24
|
noWrap: false,
|
40
25
|
breakWord: true,
|
41
26
|
bold: false,
|
42
|
-
medium: false,
|
43
27
|
},
|
44
28
|
};
|
45
29
|
|
@@ -12,9 +12,9 @@ var config = exports.config = {
|
|
12
12
|
},
|
13
13
|
variations: {
|
14
14
|
size: {
|
15
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-l-font-family);", ":var(--plasma-typo-dspl-l-font-size);", ":var(--plasma-typo-dspl-l-font-style);", ":var(--plasma-typo-dspl-l-font-weight);", ":var(--plasma-typo-dspl-l-bold-font-weight);", ":var(--plasma-typo-dspl-l-
|
16
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-m-font-family);", ":var(--plasma-typo-dspl-m-font-size);", ":var(--plasma-typo-dspl-m-font-style);", ":var(--plasma-typo-dspl-m-font-weight);", ":var(--plasma-typo-dspl-m-bold-font-weight);", ":var(--plasma-typo-dspl-m-
|
17
|
-
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-s-font-family);", ":var(--plasma-typo-dspl-s-font-size);", ":var(--plasma-typo-dspl-s-font-style);", ":var(--plasma-typo-dspl-s-font-weight);", ":var(--plasma-typo-dspl-s-bold-font-weight);", ":var(--plasma-typo-dspl-s-
|
15
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-l-font-family);", ":var(--plasma-typo-dspl-l-font-size);", ":var(--plasma-typo-dspl-l-font-style);", ":var(--plasma-typo-dspl-l-font-weight);", ":var(--plasma-typo-dspl-l-bold-font-weight);", ":var(--plasma-typo-dspl-l-letter-spacing);", ":var(--plasma-typo-dspl-l-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
16
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-m-font-family);", ":var(--plasma-typo-dspl-m-font-size);", ":var(--plasma-typo-dspl-m-font-style);", ":var(--plasma-typo-dspl-m-font-weight);", ":var(--plasma-typo-dspl-m-bold-font-weight);", ":var(--plasma-typo-dspl-m-letter-spacing);", ":var(--plasma-typo-dspl-m-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
17
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-dspl-s-font-family);", ":var(--plasma-typo-dspl-s-font-size);", ":var(--plasma-typo-dspl-s-font-style);", ":var(--plasma-typo-dspl-s-font-weight);", ":var(--plasma-typo-dspl-s-bold-font-weight);", ":var(--plasma-typo-dspl-s-letter-spacing);", ":var(--plasma-typo-dspl-s-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
18
18
|
}
|
19
19
|
}
|
20
20
|
};
|
@@ -9,7 +9,7 @@ import { Dspl } from './Dspl';
|
|
9
9
|
import { config } from './Dspl.config';
|
10
10
|
|
11
11
|
const meta: Meta<typeof Dspl> = {
|
12
|
-
title: '
|
12
|
+
title: 'Data Display/Typography/Dspl',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Dspl,
|
15
15
|
argTypes: {
|
@@ -19,27 +19,11 @@ const meta: Meta<typeof Dspl> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
-
as: {
|
23
|
-
control: 'text',
|
24
|
-
},
|
25
|
-
bold: {
|
26
|
-
control: {
|
27
|
-
type: 'boolean',
|
28
|
-
},
|
29
|
-
if: { arg: 'medium', truthy: false },
|
30
|
-
},
|
31
|
-
medium: {
|
32
|
-
control: {
|
33
|
-
type: 'boolean',
|
34
|
-
},
|
35
|
-
if: { arg: 'bold', truthy: false },
|
36
|
-
},
|
37
22
|
},
|
38
23
|
args: {
|
39
24
|
noWrap: false,
|
40
25
|
breakWord: true,
|
41
26
|
bold: false,
|
42
|
-
medium: false,
|
43
27
|
},
|
44
28
|
};
|
45
29
|
|
@@ -12,11 +12,11 @@ var config = exports.config = {
|
|
12
12
|
},
|
13
13
|
variations: {
|
14
14
|
size: {
|
15
|
-
h1: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h1-font-family);", ":var(--plasma-typo-h1-font-size);", ":var(--plasma-typo-h1-font-style);", ":var(--plasma-typo-h1-font-weight);", ":var(--plasma-typo-h1-bold-font-weight);", ":var(--plasma-typo-h1-
|
16
|
-
h2: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h2-font-family);", ":var(--plasma-typo-h2-font-size);", ":var(--plasma-typo-h2-font-style);", ":var(--plasma-typo-h2-font-weight);", ":var(--plasma-typo-h2-bold-font-weight);", ":var(--plasma-typo-h2-
|
17
|
-
h3: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h3-font-family);", ":var(--plasma-typo-h3-font-size);", ":var(--plasma-typo-h3-font-style);", ":var(--plasma-typo-h3-font-weight);", ":var(--plasma-typo-h3-bold-font-weight);", ":var(--plasma-typo-h3-
|
18
|
-
h4: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h4-font-family);", ":var(--plasma-typo-h4-font-size);", ":var(--plasma-typo-h4-font-style);", ":var(--plasma-typo-h4-font-weight);", ":var(--plasma-typo-h4-bold-font-weight);", ":var(--plasma-typo-h4-
|
19
|
-
h5: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h5-font-family);", ":var(--plasma-typo-h5-font-size);", ":var(--plasma-typo-h5-font-style);", ":var(--plasma-typo-h5-font-weight);", ":var(--plasma-typo-h5-bold-font-weight);", ":var(--plasma-typo-h5-
|
15
|
+
h1: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h1-font-family);", ":var(--plasma-typo-h1-font-size);", ":var(--plasma-typo-h1-font-style);", ":var(--plasma-typo-h1-font-weight);", ":var(--plasma-typo-h1-bold-font-weight);", ":var(--plasma-typo-h1-letter-spacing);", ":var(--plasma-typo-h1-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
16
|
+
h2: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h2-font-family);", ":var(--plasma-typo-h2-font-size);", ":var(--plasma-typo-h2-font-style);", ":var(--plasma-typo-h2-font-weight);", ":var(--plasma-typo-h2-bold-font-weight);", ":var(--plasma-typo-h2-letter-spacing);", ":var(--plasma-typo-h2-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
17
|
+
h3: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h3-font-family);", ":var(--plasma-typo-h3-font-size);", ":var(--plasma-typo-h3-font-style);", ":var(--plasma-typo-h3-font-weight);", ":var(--plasma-typo-h3-bold-font-weight);", ":var(--plasma-typo-h3-letter-spacing);", ":var(--plasma-typo-h3-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
18
|
+
h4: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h4-font-family);", ":var(--plasma-typo-h4-font-size);", ":var(--plasma-typo-h4-font-style);", ":var(--plasma-typo-h4-font-weight);", ":var(--plasma-typo-h4-bold-font-weight);", ":var(--plasma-typo-h4-letter-spacing);", ":var(--plasma-typo-h4-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
19
|
+
h5: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-h5-font-family);", ":var(--plasma-typo-h5-font-size);", ":var(--plasma-typo-h5-font-style);", ":var(--plasma-typo-h5-font-weight);", ":var(--plasma-typo-h5-bold-font-weight);", ":var(--plasma-typo-h5-letter-spacing);", ":var(--plasma-typo-h5-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontWeightBold, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
20
20
|
}
|
21
21
|
}
|
22
22
|
};
|
@@ -9,7 +9,7 @@ import { Heading } from './Heading';
|
|
9
9
|
import { config } from './Heading.config';
|
10
10
|
|
11
11
|
const meta: Meta<typeof Heading> = {
|
12
|
-
title: '
|
12
|
+
title: 'Data Display/Typography/Heading',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Heading,
|
15
15
|
argTypes: {
|
@@ -19,27 +19,11 @@ const meta: Meta<typeof Heading> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
-
as: {
|
23
|
-
control: 'text',
|
24
|
-
},
|
25
|
-
bold: {
|
26
|
-
control: {
|
27
|
-
type: 'boolean',
|
28
|
-
},
|
29
|
-
if: { arg: 'medium', truthy: false },
|
30
|
-
},
|
31
|
-
medium: {
|
32
|
-
control: {
|
33
|
-
type: 'boolean',
|
34
|
-
},
|
35
|
-
if: { arg: 'bold', truthy: false },
|
36
|
-
},
|
37
22
|
},
|
38
23
|
args: {
|
39
24
|
noWrap: false,
|
40
25
|
breakWord: true,
|
41
26
|
bold: false,
|
42
|
-
medium: false,
|
43
27
|
},
|
44
28
|
};
|
45
29
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
+
var _tokens = /*#__PURE__*/require("../../../../../components/Typography/tokens");
|
9
|
+
var config = exports.config = {
|
10
|
+
defaults: {
|
11
|
+
size: 'body1'
|
12
|
+
},
|
13
|
+
variations: {
|
14
|
+
size: {
|
15
|
+
body1: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body1-font-family);", ":var(--plasma-typo-body1-font-size);", ":var(--plasma-typo-body1-font-style);", ":var(--plasma-typo-body1-font-weight);", ":var(--plasma-typo-body1-letter-spacing);", ":var(--plasma-typo-body1-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
16
|
+
body2: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body2-font-family);", ":var(--plasma-typo-body2-font-size);", ":var(--plasma-typo-body2-font-style);", ":var(--plasma-typo-body2-font-weight);", ":var(--plasma-typo-body2-letter-spacing);", ":var(--plasma-typo-body2-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
17
|
+
body3: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-body3-font-family);", ":var(--plasma-typo-body3-font-size);", ":var(--plasma-typo-body3-font-style);", ":var(--plasma-typo-body3-font-weight);", ":var(--plasma-typo-body3-letter-spacing);", ":var(--plasma-typo-body3-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
18
|
+
}
|
19
|
+
}
|
20
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.OldBody = void 0;
|
7
|
+
var _Typography = /*#__PURE__*/require("../../../../../components/Typography");
|
8
|
+
var _engines = /*#__PURE__*/require("../../../../../engines");
|
9
|
+
var _Body = /*#__PURE__*/require("./Body.config");
|
10
|
+
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Typography.oldBodyConfig, _Body.config);
|
11
|
+
var OldBody = exports.OldBody = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
|
4
|
+
import { WithTheme, argTypesFromConfig } from '../../../../_helpers';
|
5
|
+
import { mergeConfig } from '../../../../../engines';
|
6
|
+
import { oldBodyConfig } from '../../../../../components/Typography';
|
7
|
+
|
8
|
+
import { OldBody } from './Body';
|
9
|
+
import { config } from './Body.config';
|
10
|
+
|
11
|
+
const meta: Meta<typeof OldBody> = {
|
12
|
+
title: 'Data Display/Typography/Old/Body',
|
13
|
+
decorators: [WithTheme],
|
14
|
+
component: OldBody,
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
23
|
+
args: {
|
24
|
+
noWrap: false,
|
25
|
+
breakWord: true,
|
26
|
+
},
|
27
|
+
};
|
28
|
+
|
29
|
+
export default meta;
|
30
|
+
|
31
|
+
export const Default: StoryObj<typeof OldBody> = {
|
32
|
+
render: (props) => {
|
33
|
+
return (
|
34
|
+
<OldBody {...props}>
|
35
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium nesciunt nihil non ut animi
|
36
|
+
distinctio modi quo, provident quod.
|
37
|
+
</OldBody>
|
38
|
+
);
|
39
|
+
},
|
40
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
+
var _tokens = /*#__PURE__*/require("../../../../../components/Typography/tokens");
|
9
|
+
var config = exports.config = {
|
10
|
+
defaults: {
|
11
|
+
size: 'button1'
|
12
|
+
},
|
13
|
+
variations: {
|
14
|
+
size: {
|
15
|
+
button1: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-button1-font-family);", ":var(--plasma-typo-button1-font-size);", ":var(--plasma-typo-button1-font-style);", ":var(--plasma-typo-button1-font-weight);", ":var(--plasma-typo-button1-letter-spacing);", ":var(--plasma-typo-button1-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight),
|
16
|
+
button2: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-button2-font-family);", ":var(--plasma-typo-button2-font-size);", ":var(--plasma-typo-button2-font-style);", ":var(--plasma-typo-button2-font-weight);", ":var(--plasma-typo-button2-letter-spacing);", ":var(--plasma-typo-button2-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Button = void 0;
|
7
|
+
var _Typography = /*#__PURE__*/require("../../../../../components/Typography");
|
8
|
+
var _engines = /*#__PURE__*/require("../../../../../engines");
|
9
|
+
var _Button = /*#__PURE__*/require("./Button.config");
|
10
|
+
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Typography.buttonTypographyConfig, _Button.config);
|
11
|
+
var Button = exports.Button = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
|
4
|
+
import { WithTheme, argTypesFromConfig } from '../../../../_helpers';
|
5
|
+
import { mergeConfig } from '../../../../../engines';
|
6
|
+
import { buttonTypographyConfig } from '../../../../../components/Typography';
|
7
|
+
|
8
|
+
import { Button } from './Button';
|
9
|
+
import { config } from './Button.config';
|
10
|
+
|
11
|
+
const meta: Meta<typeof Button> = {
|
12
|
+
title: 'Data Display/Typography/Old/Button',
|
13
|
+
decorators: [WithTheme],
|
14
|
+
component: Button,
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
23
|
+
args: {
|
24
|
+
noWrap: false,
|
25
|
+
breakWord: true,
|
26
|
+
},
|
27
|
+
};
|
28
|
+
|
29
|
+
export default meta;
|
30
|
+
|
31
|
+
export const Default: StoryObj<typeof Button> = {
|
32
|
+
render: (props) => {
|
33
|
+
return (
|
34
|
+
<Button {...props}>
|
35
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium nesciunt nihil non ut animi
|
36
|
+
distinctio modi quo, provident quod.
|
37
|
+
</Button>
|
38
|
+
);
|
39
|
+
},
|
40
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
|
+
var _tokens = /*#__PURE__*/require("../../../../../components/Typography/tokens");
|
9
|
+
var config = exports.config = {
|
10
|
+
defaults: {
|
11
|
+
size: 'm'
|
12
|
+
},
|
13
|
+
variations: {
|
14
|
+
size: {
|
15
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--plasma-typo-caption-font-family);", ":var(--plasma-typo-caption-font-size);", ":var(--plasma-typo-caption-font-style);", ":var(--plasma-typo-caption-font-weight);", ":var(--plasma-typo-caption-letter-spacing);", ":var(--plasma-typo-caption-line-height);"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontWeight, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight)
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Caption = void 0;
|
7
|
+
var _Typography = /*#__PURE__*/require("../../../../../components/Typography");
|
8
|
+
var _engines = /*#__PURE__*/require("../../../../../engines");
|
9
|
+
var _Caption = /*#__PURE__*/require("./Caption.config");
|
10
|
+
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Typography.captionConfig, _Caption.config);
|
11
|
+
var Caption = exports.Caption = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
|
4
|
+
import { WithTheme, argTypesFromConfig } from '../../../../_helpers';
|
5
|
+
import { mergeConfig } from '../../../../../engines';
|
6
|
+
import { captionConfig } from '../../../../../components/Typography';
|
7
|
+
|
8
|
+
import { Caption } from './Caption';
|
9
|
+
import { config } from './Caption.config';
|
10
|
+
|
11
|
+
const meta: Meta<typeof Caption> = {
|
12
|
+
title: 'Data Display/Typography/Old/Caption',
|
13
|
+
decorators: [WithTheme],
|
14
|
+
component: Caption,
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(captionConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
23
|
+
args: {
|
24
|
+
noWrap: false,
|
25
|
+
breakWord: true,
|
26
|
+
},
|
27
|
+
};
|
28
|
+
|
29
|
+
export default meta;
|
30
|
+
|
31
|
+
export const Default: StoryObj<typeof Caption> = {
|
32
|
+
render: (props) => {
|
33
|
+
return (
|
34
|
+
<Caption {...props}>
|
35
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium nesciunt nihil non ut animi
|
36
|
+
distinctio modi quo, provident quod.
|
37
|
+
</Caption>
|
38
|
+
);
|
39
|
+
},
|
40
|
+
};
|