@salutejs/plasma-new-hope 0.317.0-canary.1888.14214679698.0 → 0.317.0-dev.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 +22 -24
- package/cjs/components/Table/Table.js +16 -11
- package/cjs/components/Table/Table.js.map +1 -1
- package/cjs/components/Table/Table.styles.js +11 -17
- package/cjs/components/Table/Table.styles.js.map +1 -1
- package/cjs/components/Table/Table.styles_1eg2zsx.css +11 -0
- package/cjs/components/Table/Table.tokens.js +0 -9
- package/cjs/components/Table/Table.tokens.js.map +1 -1
- package/cjs/components/Table/ui/Cell/Cell.css +22 -24
- 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_1ikyrwt.css +1 -0
- package/cjs/components/Table/ui/EditableCell/EditableCell.css +23 -25
- package/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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/cjs/components/Table/ui/EditableCell/{EditableCell.styles_d8duzc.css → EditableCell.styles_277bjm.css} +2 -2
- package/cjs/components/Table/ui/HeadCell/HeadCell.css +22 -24
- 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 +1 -7
- package/cjs/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
- package/{es/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css → cjs/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css} +0 -1
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.css +22 -24
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
- package/cjs/engines/linaria.js +4 -2
- package/cjs/engines/linaria.js.map +1 -1
- package/cjs/index.css +24 -26
- package/emotion/cjs/components/Table/Table.js +16 -14
- package/emotion/cjs/components/Table/Table.styles.js +16 -20
- package/emotion/cjs/components/Table/Table.tokens.js +1 -9
- package/emotion/cjs/components/Table/ui/Cell/Cell.styles.js +2 -2
- package/emotion/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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 +5 -17
- package/emotion/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/emotion/cjs/components/Typography/Typography.template-doc.mdx +16 -0
- package/emotion/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
- package/emotion/cjs/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
- package/emotion/cjs/examples/typography/components/Body/Body.stories.tsx +4 -1
- package/emotion/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
- package/emotion/cjs/examples/typography/components/Heading/Heading.stories.tsx +4 -1
- package/emotion/cjs/examples/typography/components/Text/Text.stories.tsx +4 -1
- package/emotion/es/components/Table/Table.js +17 -15
- package/emotion/es/components/Table/Table.styles.js +15 -19
- package/emotion/es/components/Table/Table.tokens.js +0 -8
- package/emotion/es/components/Table/ui/Cell/Cell.styles.js +2 -2
- package/emotion/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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 +4 -16
- package/emotion/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/emotion/es/components/Typography/Typography.template-doc.mdx +16 -0
- package/emotion/es/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
- package/emotion/es/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
- package/emotion/es/examples/typography/components/Body/Body.stories.tsx +4 -1
- package/emotion/es/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
- package/emotion/es/examples/typography/components/Heading/Heading.stories.tsx +4 -1
- package/emotion/es/examples/typography/components/Text/Text.stories.tsx +4 -1
- package/es/components/Table/Table.css +22 -24
- package/es/components/Table/Table.js +18 -13
- package/es/components/Table/Table.js.map +1 -1
- package/es/components/Table/Table.styles.js +12 -17
- package/es/components/Table/Table.styles.js.map +1 -1
- package/es/components/Table/Table.styles_1eg2zsx.css +11 -0
- package/es/components/Table/Table.tokens.js +1 -9
- package/es/components/Table/Table.tokens.js.map +1 -1
- package/es/components/Table/ui/Cell/Cell.css +22 -24
- 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_1ikyrwt.css +1 -0
- package/es/components/Table/ui/EditableCell/EditableCell.css +23 -25
- package/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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/es/components/Table/ui/EditableCell/{EditableCell.styles_d8duzc.css → EditableCell.styles_277bjm.css} +2 -2
- package/es/components/Table/ui/HeadCell/HeadCell.css +22 -24
- 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 +2 -7
- package/es/components/Table/ui/HeadCell/HeadCell.styles.js.map +1 -1
- package/{cjs/components/Table/ui/HeadCell/HeadCell.styles_155gsrn.css → es/components/Table/ui/HeadCell/HeadCell.styles_1lo3lcf.css} +0 -1
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.css +22 -24
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/es/components/Table/ui/HeadCell/ui/Filter/Filter.js.map +1 -1
- package/es/engines/linaria.js +4 -2
- package/es/engines/linaria.js.map +1 -1
- package/es/index.css +24 -26
- package/package.json +2 -2
- package/styled-components/cjs/components/Table/Table.js +16 -14
- package/styled-components/cjs/components/Table/Table.styles.js +10 -13
- package/styled-components/cjs/components/Table/Table.tokens.js +1 -9
- package/styled-components/cjs/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/styled-components/cjs/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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 +2 -5
- package/styled-components/cjs/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +16 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
- package/styled-components/cjs/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
- package/styled-components/cjs/examples/typography/components/Body/Body.stories.tsx +4 -1
- package/styled-components/cjs/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
- package/styled-components/cjs/examples/typography/components/Heading/Heading.stories.tsx +4 -1
- package/styled-components/cjs/examples/typography/components/Text/Text.stories.tsx +4 -1
- package/styled-components/es/components/Table/Table.js +17 -15
- package/styled-components/es/components/Table/Table.styles.js +9 -12
- package/styled-components/es/components/Table/Table.tokens.js +0 -8
- package/styled-components/es/components/Table/ui/Cell/Cell.styles.js +1 -1
- package/styled-components/es/components/Table/ui/EditableCell/EditableCell.js +9 -15
- 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 +1 -4
- package/styled-components/es/components/Table/ui/HeadCell/ui/Filter/Filter.js +1 -3
- package/styled-components/es/components/Typography/Typography.template-doc.mdx +16 -0
- package/styled-components/es/examples/plasma_b2c/components/Table/Table.stories.tsx +6 -7
- package/styled-components/es/examples/plasma_web/components/Table/Table.stories.tsx +6 -7
- package/styled-components/es/examples/typography/components/Body/Body.stories.tsx +4 -1
- package/styled-components/es/examples/typography/components/Dspl/Dspl.stories.tsx +4 -1
- package/styled-components/es/examples/typography/components/Heading/Heading.stories.tsx +4 -1
- package/styled-components/es/examples/typography/components/Text/Text.stories.tsx +4 -1
- package/types/components/Table/Table.d.ts +15 -2
- package/types/components/Table/Table.d.ts.map +1 -1
- package/types/components/Table/Table.styles.d.ts +0 -1
- package/types/components/Table/Table.styles.d.ts.map +1 -1
- package/types/components/Table/Table.tokens.d.ts +0 -8
- package/types/components/Table/Table.tokens.d.ts.map +1 -1
- package/types/components/Table/Table.types.d.ts +1 -11
- package/types/components/Table/Table.types.d.ts.map +1 -1
- package/types/components/Table/ui/Cell/Cell.d.ts +2 -3
- package/types/components/Table/ui/Cell/Cell.d.ts.map +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts +1 -12
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts +1 -11
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts +0 -1
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts +1 -10
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts.map +1 -1
- package/types/components/Typography/Body/Body.d.ts +2 -2
- package/types/components/Typography/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Dspl/Dspl.d.ts +2 -2
- package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
- package/types/components/Typography/Heading/Heading.d.ts +2 -2
- package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/types/components/Typography/Text/Text.d.ts +2 -2
- package/types/components/Typography/Text/Text.d.ts.map +1 -1
- package/types/components/Typography/Typography.d.ts +1 -1
- package/types/components/Typography/Typography.d.ts.map +1 -1
- package/types/components/Typography/Typography.types.d.ts +2 -1
- package/types/components/Typography/Typography.types.d.ts.map +1 -1
- package/cjs/components/Table/Table.styles_xngwgy.css +0 -12
- package/cjs/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +0 -1
- package/emotion/cjs/examples/typography/components/Old/Body/Body.config.js +0 -20
- package/emotion/cjs/examples/typography/components/Old/Body/Body.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Button/Button.config.js +0 -19
- package/emotion/cjs/examples/typography/components/Old/Button/Button.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.config.js +0 -18
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Display/Display.config.js +0 -20
- package/emotion/cjs/examples/typography/components/Old/Display/Display.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +0 -19
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.config.js +0 -21
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -19
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -18
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.config.js +0 -18
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.js +0 -11
- package/emotion/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Body/Body.config.js +0 -14
- package/emotion/es/examples/typography/components/Old/Body/Body.js +0 -5
- package/emotion/es/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Button/Button.config.js +0 -13
- package/emotion/es/examples/typography/components/Old/Button/Button.js +0 -5
- package/emotion/es/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Caption/Caption.config.js +0 -12
- package/emotion/es/examples/typography/components/Old/Caption/Caption.js +0 -5
- package/emotion/es/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Display/Display.config.js +0 -14
- package/emotion/es/examples/typography/components/Old/Display/Display.js +0 -5
- package/emotion/es/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.config.js +0 -13
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.js +0 -5
- package/emotion/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Headline/Headline.config.js +0 -15
- package/emotion/es/examples/typography/components/Old/Headline/Headline.js +0 -5
- package/emotion/es/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -13
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.js +0 -5
- package/emotion/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -12
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.js +0 -5
- package/emotion/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
- package/emotion/es/examples/typography/components/Old/Underline/Underline.config.js +0 -12
- package/emotion/es/examples/typography/components/Old/Underline/Underline.js +0 -5
- package/emotion/es/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
- package/es/components/Table/Table.styles_xngwgy.css +0 -12
- package/es/components/Table/ui/Cell/Cell.styles_1q2mjxm.css +0 -1
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.config.js +0 -20
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.config.js +0 -19
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.config.js +0 -18
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.config.js +0 -20
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.config.js +0 -19
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.config.js +0 -21
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -19
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -18
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.config.js +0 -18
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.js +0 -11
- package/styled-components/cjs/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Body/Body.config.js +0 -14
- package/styled-components/es/examples/typography/components/Old/Body/Body.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Body/Body.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Button/Button.config.js +0 -13
- package/styled-components/es/examples/typography/components/Old/Button/Button.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Button/Button.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.config.js +0 -12
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Caption/Caption.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Display/Display.config.js +0 -14
- package/styled-components/es/examples/typography/components/Old/Display/Display.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Display/Display.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.config.js +0 -13
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Footnote/Footnote.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.config.js +0 -15
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Headline/Headline.stories.tsx +0 -40
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.config.js +0 -13
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Paragraph/Paragraph.stories.tsx +0 -42
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.config.js +0 -12
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Subtitle/Subtitle.stories.tsx +0 -39
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.config.js +0 -12
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.js +0 -5
- package/styled-components/es/examples/typography/components/Old/Underline/Underline.stories.tsx +0 -40
@@ -1,8 +1,7 @@
|
|
1
1
|
.IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
|
2
2
|
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.HeadCell_styles_155gsrn_iy1msq1__5c959fae{line-height:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
|
3
|
+
.HeadCell_styles_1lo3lcf_c14eoxb5__ac2af3a0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.5rem;}
|
4
|
+
.HeadCell_styles_1lo3lcf_t1179z8p__ac2af3a0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.5rem;}
|
6
5
|
|
7
6
|
.CellTextboxLabel_styles_1x97zqi_supiagz__b05150dd{color:var(--plasma-cell-label-color);font-size:var(--plasma-cell-label-font-size);font-weight:var(--plasma-cell-label-font-weight);font-family:var(--plasma-cell-label-font-family);font-style:var(--plasma-cell-label-font-style);line-height:var(--plasma-cell-label-line-height);-webkit-letter-spacing:var(--plasma-cell-label-letter-spacing);-moz-letter-spacing:var(--plasma-cell-label-letter-spacing);-ms-letter-spacing:var(--plasma-cell-label-letter-spacing);letter-spacing:var(--plasma-cell-label-letter-spacing);}
|
8
7
|
|
@@ -134,16 +133,16 @@
|
|
134
133
|
|
135
134
|
.IconButton_styles_403on7_b1ua728l__d34a8ea7{position:relative;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;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);color:var(--plasma-button-color);background:var(--plasma-button-background-color);height:var(--plasma-button-height);width:var(--plasma-button-width);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);position:relative;--plasma-button-padding:0;--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-loading-background-color:var(--plasma-icon-button-loading-background-color);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}a.IconButton_styles_403on7_b1ua728l__d34a8ea7{-webkit-text-decoration:none;text-decoration:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonSquare__d34a8ea7{width:var(--plasma-button-height);padding:0;}.IconButton_styles_403on7_b1ua728l__d34a8ea7:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.IconButton_styles_403on7_b1ua728l__d34a8ea7:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}.IconButton_styles_403on7_b1ua728l__d34a8ea7:focus{outline:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7::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:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_focusVisible__d34a8ea7:focus::before,.IconButton_styles_403on7_b1ua728l__d34a8ea7[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]:hover,.IconButton_styles_403on7_b1ua728l__d34a8ea7[disabled]:active{scale:none;color:var(--plasma-button-color);background:var(--plasma-button-background-color);}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingFixed__d34a8ea7{width:var(--plasma-button-width);}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingFilled__d34a8ea7{width:100%;}.IconButton_styles_403on7_b1ua728l__d34a8ea7.IconButton_styles_403on7_buttonStretchingAuto__d34a8ea7{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
|
136
135
|
|
137
|
-
.
|
138
|
-
.
|
139
|
-
.
|
140
|
-
.
|
141
|
-
.
|
142
|
-
.
|
143
|
-
.
|
144
|
-
.
|
136
|
+
.EditableCell_styles_277bjm_t12w3lu5__d76a564b{position:relative;padding:var(--t12w3lu5-0);height:var(--plasma-table-row-height);border-width:1px;border-top-width:0;border-style:solid;border-color:var(--t12w3lu5-1);border-bottom-color:var(--t12w3lu5-2);cursor:pointer;box-sizing:border-box;}.EditableCell_styles_277bjm_t12w3lu5__d76a564b .EditableCell_styles_277bjm_editIcon__d76a564b{opacity:0;}.EditableCell_styles_277bjm_t12w3lu5__d76a564b:hover .EditableCell_styles_277bjm_editIcon__d76a564b{opacity:1;}
|
137
|
+
.EditableCell_styles_277bjm_idy8fgn__d76a564b{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:100%;}
|
138
|
+
.EditableCell_styles_277bjm_cwrhll2__d76a564b{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;gap:0.25rem;}
|
139
|
+
.EditableCell_styles_277bjm_e1dkea5v__d76a564b{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:var(--plasma-table-editable-cell-padding);height:100%;}
|
140
|
+
.EditableCell_styles_277bjm_i1uj28nu__d76a564b{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;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;padding:var(--plasma-table-editable-cell-input-padding);background:var(--plasma-table-editable-cell-input-background);border:1px solid var(--plasma-table-editable-cell-input-border-color);border-radius:var(--plasma-table-editable-cell-input-border-radius);box-sizing:border-box;gap:var(--plasma-table-editable-cell-icon-gap);}
|
141
|
+
.EditableCell_styles_277bjm_i1c7bo0z__d76a564b{width:auto;border:none;padding:0;background:transparent;outline:none;caret-color:var(--text-accent);font-family:var(--plasma-table-font-family);font-size:var(--plasma-table-font-size);font-style:var(--plasma-table-font-style);font-weight:var(--plasma-table-font-weight);-webkit-letter-spacing:var(--plasma-table-letter-spacing);-moz-letter-spacing:var(--plasma-table-letter-spacing);-ms-letter-spacing:var(--plasma-table-letter-spacing);letter-spacing:var(--plasma-table-letter-spacing);line-height:var(--plasma-table-line-height);}
|
142
|
+
.EditableCell_styles_277bjm_i1jx30pt__d76a564b{--plasma-icon-button-width:var(--plasma-table-editable-cell-icon-button-width);--plasma-icon-button-height:var(--plasma-table-editable-cell-icon-button-height);}
|
143
|
+
.EditableCell_styles_277bjm_i17hwnh4__d76a564b{--plasma-icon-button-width:auto;--plasma-icon-button-height:auto;}
|
145
144
|
|
146
|
-
.
|
145
|
+
.Cell_styles_1ikyrwt_tv72tnk__e7726029{position:relative;padding:var(--tv72tnk-0);height:var(--plasma-table-row-height);border-width:1px;border-top-width:0;border-style:solid;border-color:var(--tv72tnk-1);border-bottom-color:var(--tv72tnk-2);box-sizing:border-box;}
|
147
146
|
|
148
147
|
.base_1xk2qu8_b17hdes8__122b4c2e input[type='checkbox']:indeterminate + .base_1xk2qu8_shwv1in__122b4c2e .base_1xk2qu8_s1u3nd7e__122b4c2e{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}.base_1xk2qu8_b17hdes8__122b4c2e input:checked + .base_1xk2qu8_shwv1in__122b4c2e .base_1xk2qu8_s1u3nd7e__122b4c2e{border:none;background:var(--plasma-checkbox-fill-color);border-color:var(--plasma-checkbox-fill-color);}
|
149
148
|
|
@@ -206,15 +205,14 @@
|
|
206
205
|
.LinkButton_styles_1kw1zkj_s1uogc3z__846f988c{line-height:0;margin:var(--plasma-link-button-left-content-margin);}
|
207
206
|
.LinkButton_styles_1kw1zkj_s176p3a0__846f988c{line-height:0;margin:var(--plasma-link-button-right-content-margin);}
|
208
207
|
|
209
|
-
.
|
210
|
-
.
|
211
|
-
.
|
212
|
-
.
|
213
|
-
|
214
|
-
.
|
215
|
-
.
|
216
|
-
.
|
217
|
-
.
|
218
|
-
.
|
219
|
-
.
|
220
|
-
.Table_styles_xngwgy_l1ql6jvb__5cfbdc68{--plasma-link-button-color:var(--text-primary);--plasma-link-button-background-color:var(--surface-transparent-clear);--plasma-link-button-color-hover:var(--text-primary-hover);--plasma-link-button-color-active:var(--text-primary-active);--plasma-link-button-focus-color:var(--surface-accent);--plasma-link-button-font-family:var(--plasma-table-link-button-font-family);--plasma-link-button-font-size:var(--plasma-table-link-button-font-size);--plasma-link-button-font-style:var(--plasma-table-link-button-font-style);--plasma-link-button-font-weight:var(--plasma-table-link-button-font-weight);--plasma-link-button-letter-spacing:var(--plasma-table-link-button-letter-spacing);--plasma-link-button-line-height:var(--plasma-table-link-button-line-height);}
|
208
|
+
.Table_styles_1eg2zsx_b1lxisuf__8ba8eb83{display:inline-block;overflow-y:auto;}
|
209
|
+
.Table_styles_1eg2zsx_t15d4jbz__8ba8eb83{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-family:var(--plasma-table-font-family);font-size:var(--plasma-table-font-size);font-style:var(--plasma-table-font-style);font-weight:var(--plasma-table-font-weight);-webkit-letter-spacing:var(--plasma-table-letter-spacing);-moz-letter-spacing:var(--plasma-table-letter-spacing);-ms-letter-spacing:var(--plasma-table-letter-spacing);letter-spacing:var(--plasma-table-letter-spacing);line-height:var(--plasma-table-line-height);border-collapse:collapse;border-width:0;border-style:solid;border-color:var(--t15d4jbz-0);}
|
210
|
+
.Table_styles_1eg2zsx_t1ri3no5__8ba8eb83{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;background-color:var(--t1ri3no5-0);}
|
211
|
+
.Table_styles_1eg2zsx_t1uk535o__8ba8eb83{position:var(--t1uk535o-0);top:0;background:var(--t1uk535o-1);z-index:1;box-shadow:var(--t1uk535o-2);}.Table_styles_1eg2zsx_t1uk535o__8ba8eb83 .Table_styles_1eg2zsx_t1ri3no5__8ba8eb83{background:transparent;}
|
212
|
+
.Table_styles_1eg2zsx_r1ezol8__8ba8eb83{display:var(--r1ezol8-0);position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:none;}
|
213
|
+
.Table_styles_1eg2zsx_t18b5m0z__8ba8eb83{padding:var(--t18b5m0z-0);position:relative;font-weight:600;text-align:left;height:var(--plasma-table-header-row-height);background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:var(--t18b5m0z-1);}.Table_styles_1eg2zsx_t18b5m0z__8ba8eb83:hover .Table_styles_1eg2zsx_r1ezol8__8ba8eb83{display:block;}
|
214
|
+
.Table_styles_1eg2zsx_sedz16__8ba8eb83{--plasma-checkbox-trigger-size:var(--plasma-table-checkbox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-table-checkbox-trigger-border-radius);--plasma-checkbox-fill-color:var(--text-accent);--plasma-checkbox-icon-color:var(--on-dark-text-primary);--plasma-checkbox-trigger-border-color:var(--text-secondary);}
|
215
|
+
.Table_styles_1eg2zsx_s3mgb7q__8ba8eb83{--plasma-divider-base-side-size:0.0625rem;--plasma-divider-background:var(--surface-transparent-tertiary);--plasma-divider-border-radius:0.0625rem;}
|
216
|
+
.Table_styles_1eg2zsx_b177cehz__8ba8eb83{--plasma-button-height:var(--plasma-table-button-height);--plasma-button-disabled-opacity:0.4;--plasma-button-font-family:var(--plasma-table-button-font-family);--plasma-button-font-size:var(--plasma-table-button-font-size);--plasma-button-font-style:var(--plasma-table-button-font-style);--plasma-button-font-weight:var(--plasma-table-button-font-weight);--plasma-button-letter-spacing:var(--plasma-table-button-letter-spacing);--plasma-button-line-height:var(--plasma-table-button-line-height);}
|
217
|
+
.Table_styles_1eg2zsx_beus4rw__8ba8eb83.Table_styles_1eg2zsx_b177cehz__8ba8eb83{--plasma-button-color:var(--on-dark-text-primary);--plasma-button-value-color:var(--on-dark-text-secondary);--plasma-button-background-color:var(--surface-accent);--plasma-button-background-color-hover:var(--surface-accent-hover);--plasma-button-background-color-active:var(--surface-accent-active);}
|
218
|
+
.Table_styles_1eg2zsx_lfybxxj__8ba8eb83{--plasma-link-button-color:var(--text-primary);--plasma-link-button-background-color:var(--surface-transparent-clear);--plasma-link-button-color-hover:var(--text-primary-hover);--plasma-link-button-color-active:var(--text-primary-active);--plasma-link-button-focus-color:var(--surface-accent);--plasma-link-button-font-family:var(--plasma-table-link-button-font-family);--plasma-link-button-font-size:var(--plasma-table-link-button-font-size);--plasma-link-button-font-style:var(--plasma-table-link-button-font-style);--plasma-link-button-font-weight:var(--plasma-table-link-button-font-weight);--plasma-link-button-letter-spacing:var(--plasma-table-link-button-letter-spacing);--plasma-link-button-line-height:var(--plasma-table-link-button-line-height);}
|
@@ -15,8 +15,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
17
17
|
|
18
|
-
var
|
19
|
-
var SELECT_COLUMN_ID = 'SELECT_COLUMN_UNIQUE_ID';
|
18
|
+
var SELECT_COLUMN_ID = 'select#65768756432';
|
20
19
|
var tableRoot = function tableRoot(Root) {
|
21
20
|
return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
22
21
|
var data = _ref.data,
|
@@ -32,8 +31,7 @@ var tableRoot = function tableRoot(Root) {
|
|
32
31
|
outerSorted = _ref.sorted,
|
33
32
|
maxHeight = _ref.maxHeight,
|
34
33
|
stickyHeader = _ref.stickyHeader,
|
35
|
-
onCellUpdate = _ref.onCellUpdate
|
36
|
-
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
34
|
+
onCellUpdate = _ref.onCellUpdate;
|
37
35
|
var _useState = React.useState(outerSelected || {}),
|
38
36
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
39
37
|
innerSelected = _useState2[0],
|
@@ -127,10 +125,17 @@ var tableRoot = function tableRoot(Root) {
|
|
127
125
|
enableSorting: enableSorting,
|
128
126
|
enableResizing: enableResizing,
|
129
127
|
filterFn: function filterFn(row, columnId, filterArr) {
|
130
|
-
if (
|
131
|
-
|
132
|
-
return
|
133
|
-
}
|
128
|
+
if (outerFilterFn && filterArr && Array.isArray(filterArr)) {
|
129
|
+
if (filterArr.length === 0) {
|
130
|
+
return true;
|
131
|
+
}
|
132
|
+
for (var i = 0; i < filterArr.length; i++) {
|
133
|
+
var filterValue = filterArr[i];
|
134
|
+
if (outerFilterFn(filterValue, row.getValue(columnId))) {
|
135
|
+
return true;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
return false;
|
134
139
|
}
|
135
140
|
return true;
|
136
141
|
},
|
@@ -171,7 +176,7 @@ var tableRoot = function tableRoot(Root) {
|
|
171
176
|
}
|
172
177
|
}
|
173
178
|
});
|
174
|
-
return /*#__PURE__*/React__default.default.createElement(Root,
|
179
|
+
return /*#__PURE__*/React__default.default.createElement(Root, {
|
175
180
|
ref: rootRef,
|
176
181
|
data: data,
|
177
182
|
columns: columns,
|
@@ -180,7 +185,7 @@ var tableRoot = function tableRoot(Root) {
|
|
180
185
|
style: {
|
181
186
|
maxHeight: maxHeight || 'none'
|
182
187
|
}
|
183
|
-
},
|
188
|
+
}, /*#__PURE__*/React__default.default.createElement(Table_styles.Table, {
|
184
189
|
borderVariant: borderVariant,
|
185
190
|
stickyHeader: stickyHeader
|
186
191
|
}, /*#__PURE__*/React__default.default.createElement(Table_styles.Thead, {
|
@@ -200,7 +205,7 @@ var tableRoot = function tableRoot(Root) {
|
|
200
205
|
tableContainerRef: tableContainerRef
|
201
206
|
});
|
202
207
|
}));
|
203
|
-
})), /*#__PURE__*/React__default.default.createElement(
|
208
|
+
})), /*#__PURE__*/React__default.default.createElement("tbody", null, table.getRowModel().rows.map(function (row) {
|
204
209
|
return /*#__PURE__*/React__default.default.createElement(Table_styles.Tr, {
|
205
210
|
key: row.id,
|
206
211
|
selected: row.getIsSelected()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Table.js","sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["import React, { forwardRef, useState, useMemo, useRef } from 'react';\nimport {\n getCoreRowModel,\n useReactTable,\n ColumnDef,\n getSortedRowModel,\n getFilteredRowModel,\n OnChangeFn,\n ColumnFiltersState,\n RowSelectionState,\n Table as TableType,\n Row,\n} from '@tanstack/react-table';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../engines';\n\nimport { HeadCell, Cell, EditableCell } from './ui';\nimport { TableProps, TableRowData } from './Table.types';\nimport { base, Table, Tr, Thead, StyledCheckbox, Tbody } from './Table.styles';\n\ntype ColumnSort = {\n id: string;\n desc: boolean;\n};\ntype SortingState = ColumnSort[];\n\nexport const SELECT_COLUMN_ID = 'SELECT_COLUMN_UNIQUE_ID';\n\nexport const tableRoot = (Root: RootProps<HTMLDivElement, TableProps>) =>\n forwardRef<HTMLDivElement, TableProps>(\n (\n {\n data,\n onChange,\n columns,\n view,\n size,\n borderVariant = 'all',\n enableSelection,\n selected: outerSelected,\n filtered: outerFiltered,\n sorted: outerSorted,\n maxHeight,\n stickyHeader,\n onCellUpdate,\n ...props\n },\n ref,\n ) => {\n const [innerSelected, innerSetSelected] = useState<RowSelectionState>(outerSelected || {});\n const [innerFiltered, setInnerFiltered] = useState<ColumnFiltersState>(outerFiltered || []);\n const [innerSorted, setInnerSorted] = useState<SortingState>(outerSorted || []);\n\n const selected = outerSelected || innerSelected;\n const filtered = outerFiltered || innerFiltered;\n const sorted: SortingState = outerSorted || innerSorted;\n\n const handleRowSelection: OnChangeFn<RowSelectionState> = (updaterOrValue) => {\n if (!outerSelected) {\n innerSetSelected(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected: typeof updaterOrValue === 'function' ? updaterOrValue(selected) : updaterOrValue,\n filtered,\n sorted,\n });\n }\n };\n\n const handleSorting: OnChangeFn<SortingState> = (updaterOrValue) => {\n if (!outerSorted) {\n setInnerSorted(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected,\n filtered,\n sorted: typeof updaterOrValue === 'function' ? updaterOrValue(sorted) : updaterOrValue,\n });\n }\n };\n\n const handleFiltering: OnChangeFn<ColumnFiltersState> = (updaterOrValue) => {\n if (!outerFiltered) {\n setInnerFiltered(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected,\n filtered: typeof updaterOrValue === 'function' ? updaterOrValue(filtered) : updaterOrValue,\n sorted,\n });\n }\n };\n\n const tableContainerRef = useRef<HTMLDivElement>(null);\n\n const rootRef = useForkRef(tableContainerRef, ref);\n\n const columnsData = useMemo<ColumnDef<typeof data[number]>[]>(\n () => [\n ...(enableSelection\n ? [\n {\n id: SELECT_COLUMN_ID,\n header: ({ table }: { table: TableType<typeof data[number]> }) => (\n <StyledCheckbox\n checked={table.getIsSomeRowsSelected() || table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n onChange={table.getToggleAllRowsSelectedHandler()}\n />\n ),\n cell: ({ row }: { row: Row<typeof data[number]> }) => (\n <StyledCheckbox\n checked={row.getIsSelected()}\n indeterminate={row.getIsSomeSelected()}\n onChange={row.getToggleSelectedHandler()}\n />\n ),\n enableResizing: false,\n },\n ]\n : []),\n ...columns.map(\n ({\n id,\n label,\n filters,\n enableSorting = false,\n enableResizing = false,\n filterFn: outerFilterFn,\n width: columnSize,\n enableEditing = false,\n renderCell,\n }) => ({\n header: label,\n accessorKey: id,\n size: columnSize,\n enableSorting,\n enableResizing,\n filterFn: (row: Row<TableRowData>, columnId: string, filterArr: string[]) => {\n if (filterArr?.length !== 0 && outerFilterFn && filterArr && Array.isArray(filterArr)) {\n return filterArr.some((filterValue) =>\n outerFilterFn(filterValue, row.getValue(columnId)),\n );\n }\n\n return true;\n },\n meta: {\n filters,\n enableEditing,\n renderCell,\n },\n }),\n ),\n ],\n [enableSelection, columns],\n );\n\n const table = useReactTable({\n data,\n columns: columnsData,\n getRowId: (row) => row.id,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n manualSorting: Boolean(outerSorted),\n manualFiltering: Boolean(outerFiltered),\n state: {\n rowSelection: selected,\n columnFilters: filtered,\n sorting: sorted,\n },\n onSortingChange: handleSorting,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnFiltersChange: handleFiltering,\n onRowSelectionChange: handleRowSelection,\n columnResizeMode: 'onChange',\n columnResizeDirection: 'ltr',\n meta: {\n updateData: (rowId, columnId, value) => {\n if (onCellUpdate) {\n onCellUpdate(rowId, columnId, value);\n }\n },\n },\n });\n\n return (\n <Root\n ref={rootRef}\n data={data}\n columns={columns}\n view={view}\n size={size}\n style={{ maxHeight: maxHeight || 'none' }}\n {...props}\n >\n <Table borderVariant={borderVariant} stickyHeader={stickyHeader}>\n <Thead view={view} borderVariant={borderVariant} stickyHeader={stickyHeader}>\n {table.getHeaderGroups().map((headerGroup) => (\n <Tr key={headerGroup.id}>\n {headerGroup.headers.map((header) => (\n <HeadCell\n key={header.index}\n header={header}\n size={size}\n borderVariant={borderVariant}\n outerFiltered={outerFiltered}\n tableContainerRef={tableContainerRef}\n />\n ))}\n </Tr>\n ))}\n </Thead>\n\n <Tbody>\n {table.getRowModel().rows.map((row) => (\n <Tr key={row.id} selected={row.getIsSelected()}>\n {row.getVisibleCells().map((cell) =>\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n cell?.column?.columnDef?.meta?.enableEditing ? (\n <EditableCell\n key={cell.id}\n size={size}\n cell={cell}\n borderVariant={borderVariant}\n table={table}\n selected={row.getIsSelected()}\n view={view}\n />\n ) : (\n <Cell\n key={cell.id}\n cell={cell}\n borderVariant={borderVariant}\n selected={row.getIsSelected()}\n view={view}\n />\n ),\n )}\n </Tr>\n ))}\n </Tbody>\n </Table>\n </Root>\n );\n },\n );\n\nexport const tableConfig = {\n name: 'Table',\n tag: 'div',\n layout: tableRoot,\n base,\n variations: {},\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["SELECT_COLUMN_ID","tableRoot","Root","forwardRef","_ref","ref","data","onChange","columns","view","size","_ref$borderVariant","borderVariant","enableSelection","outerSelected","selected","outerFiltered","filtered","outerSorted","sorted","maxHeight","stickyHeader","onCellUpdate","props","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","innerSelected","innerSetSelected","_useState3","_useState4","innerFiltered","setInnerFiltered","_useState5","_useState6","innerSorted","setInnerSorted","handleRowSelection","updaterOrValue","handleSorting","handleFiltering","tableContainerRef","useRef","rootRef","useForkRef","columnsData","useMemo","concat","_toConsumableArray","id","header","_ref2","table","React","createElement","StyledCheckbox","checked","getIsSomeRowsSelected","getIsAllRowsSelected","indeterminate","getToggleAllRowsSelectedHandler","cell","_ref3","row","getIsSelected","getIsSomeSelected","getToggleSelectedHandler","enableResizing","map","_ref4","label","filters","_ref4$enableSorting","enableSorting","_ref4$enableResizing","outerFilterFn","filterFn","columnSize","width","_ref4$enableEditing","enableEditing","renderCell","accessorKey","columnId","filterArr","length","Array","isArray","some","filterValue","getValue","meta","useReactTable","getRowId","getCoreRowModel","getSortedRowModel","manualSorting","Boolean","manualFiltering","state","rowSelection","columnFilters","sorting","onSortingChange","getFilteredRowModel","onColumnFiltersChange","onRowSelectionChange","columnResizeMode","columnResizeDirection","updateData","rowId","value","_extends","style","Table","Thead","getHeaderGroups","headerGroup","Tr","key","headers","HeadCell","index","Tbody","getRowModel","rows","getVisibleCells","_cell$column","column","columnDef","EditableCell","Cell","tableConfig","name","tag","layout","base","variations","defaults"],"mappings":";;;;;;;;;;;;;;;;;;AA2BO,IAAMA,gBAAgB,GAAG,0BAAyB;IAE5CC,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,gBAAU,CACN,UAAAC,IAAA,EAiBIC,GAAG,EACF;AAAA,IAAA,IAhBGC,IAAI,GAAAF,IAAA,CAA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AAA,CAAAC,aAAA,CAAC4E,yBAAY,EAAA;YACTX,GAAG,EAAE1D,IAAI,CAACZ,EAAG;AACb1C,YAAAA,IAAI,EAAEA,IAAK;AACXsD,YAAAA,IAAI,EAAEA,IAAK;AACXpD,YAAAA,aAAa,EAAEA,aAAc;AAC7B2C,YAAAA,KAAK,EAAEA,KAAM;AACbxC,YAAAA,QAAQ,EAAEmD,GAAG,CAACC,aAAa,EAAG;AAC9B1D,YAAAA,IAAI,EAAEA,IAAAA;AAAK,WACd,CAAC,gBAEF+C,sBAAA,CAAAC,aAAA,CAAC6E,SAAI,EAAA;YACDZ,GAAG,EAAE1D,IAAI,CAACZ,EAAG;AACbY,YAAAA,IAAI,EAAEA,IAAK;AACXpD,YAAAA,aAAa,EAAEA,aAAc;AAC7BG,YAAAA,QAAQ,EAAEmD,GAAG,CAACC,aAAa,EAAG;AAC9B1D,YAAAA,IAAI,EAAEA,IAAAA;WACT,CAAA;AACJ,UAAA;AAAA,OACL,CACA,CAAC,CAAA;KACR,CACE,CACJ,CACL,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM8H,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEzI,SAAS;AACjB0I,EAAAA,IAAI,EAAJA,iBAAI;EACJC,UAAU,EAAE,EAAE;AACdC,EAAAA,QAAQ,EAAE;AACNpI,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;;"}
|
1
|
+
{"version":3,"file":"Table.js","sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["import React, { forwardRef, useState, useMemo, useRef } from 'react';\nimport {\n getCoreRowModel,\n useReactTable,\n ColumnDef,\n getSortedRowModel,\n getFilteredRowModel,\n OnChangeFn,\n ColumnFiltersState,\n RowSelectionState,\n RowData,\n Table as TableType,\n Row,\n} from '@tanstack/react-table';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../engines';\n\nimport { HeadCell, Cell, EditableCell } from './ui';\nimport { TableProps, TableColumnData } from './Table.types';\nimport { base, Table, Tr, Thead, StyledCheckbox } from './Table.styles';\n\nexport const SELECT_COLUMN_ID = 'select#65768756432';\n\ntype ColumnSort = {\n id: string;\n desc: boolean;\n};\ntype SortingState = ColumnSort[];\n\ndeclare module '@tanstack/react-table' {\n interface ColumnMeta<TData extends RowData, TValue> {\n filters?: TableColumnData['filters'];\n enableEditing?: boolean;\n renderCell?: TableColumnData['renderCell'];\n }\n}\ndeclare module '@tanstack/react-table' {\n interface TableMeta<TData extends RowData> {\n updateData: (rowId: string, columnId: string, value: unknown) => void;\n }\n}\n\nexport const tableRoot = (Root: RootProps<HTMLDivElement, TableProps>) =>\n forwardRef<HTMLDivElement, TableProps>(\n (\n {\n data,\n onChange,\n columns,\n view,\n size,\n borderVariant = 'all',\n enableSelection,\n selected: outerSelected,\n filtered: outerFiltered,\n sorted: outerSorted,\n maxHeight,\n stickyHeader,\n onCellUpdate,\n },\n ref,\n ) => {\n const [innerSelected, innerSetSelected] = useState<RowSelectionState>(outerSelected || {});\n const [innerFiltered, setInnerFiltered] = useState<ColumnFiltersState>(outerFiltered || []);\n const [innerSorted, setInnerSorted] = useState<SortingState>(outerSorted || []);\n\n const selected = outerSelected || innerSelected;\n const filtered = outerFiltered || innerFiltered;\n const sorted: SortingState = outerSorted || innerSorted;\n\n const handleRowSelection: OnChangeFn<RowSelectionState> = (updaterOrValue) => {\n if (!outerSelected) {\n innerSetSelected(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected: typeof updaterOrValue === 'function' ? updaterOrValue(selected) : updaterOrValue,\n filtered,\n sorted,\n });\n }\n };\n\n const handleSorting: OnChangeFn<SortingState> = (updaterOrValue) => {\n if (!outerSorted) {\n setInnerSorted(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected,\n filtered,\n sorted: typeof updaterOrValue === 'function' ? updaterOrValue(sorted) : updaterOrValue,\n });\n }\n };\n\n const handleFiltering: OnChangeFn<ColumnFiltersState> = (updaterOrValue) => {\n if (!outerFiltered) {\n setInnerFiltered(updaterOrValue);\n }\n\n if (onChange) {\n onChange({\n selected,\n filtered: typeof updaterOrValue === 'function' ? updaterOrValue(filtered) : updaterOrValue,\n sorted,\n });\n }\n };\n\n const tableContainerRef = useRef<HTMLDivElement>(null);\n\n const rootRef = useForkRef(tableContainerRef, ref);\n\n const columnsData = useMemo<ColumnDef<typeof data[number]>[]>(\n () => [\n ...(enableSelection\n ? [\n {\n id: SELECT_COLUMN_ID,\n header: ({ table }: { table: TableType<typeof data[number]> }) => (\n <StyledCheckbox\n checked={table.getIsSomeRowsSelected() || table.getIsAllRowsSelected()}\n indeterminate={table.getIsSomeRowsSelected()}\n onChange={table.getToggleAllRowsSelectedHandler()}\n />\n ),\n cell: ({ row }: { row: Row<typeof data[number]> }) => (\n <StyledCheckbox\n checked={row.getIsSelected()}\n indeterminate={row.getIsSomeSelected()}\n onChange={row.getToggleSelectedHandler()}\n />\n ),\n enableResizing: false,\n },\n ]\n : []),\n ...columns.map(\n ({\n id,\n label,\n filters,\n enableSorting = false,\n enableResizing = false,\n filterFn: outerFilterFn,\n width: columnSize,\n enableEditing = false,\n renderCell,\n }) => ({\n header: label,\n accessorKey: id,\n size: columnSize,\n enableSorting,\n enableResizing,\n filterFn: (row: Row<typeof data[number]>, columnId: string, filterArr: any) => {\n if (outerFilterFn && filterArr && Array.isArray(filterArr)) {\n if (filterArr.length === 0) {\n return true;\n }\n\n for (let i = 0; i < filterArr.length; i++) {\n const filterValue = filterArr[i];\n\n if (outerFilterFn(filterValue, row.getValue(columnId))) {\n return true;\n }\n }\n\n return false;\n }\n\n return true;\n },\n meta: {\n filters,\n enableEditing,\n renderCell,\n },\n }),\n ),\n ],\n [enableSelection, columns],\n );\n\n const table = useReactTable({\n data,\n columns: columnsData,\n getRowId: (row) => row.id,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n manualSorting: Boolean(outerSorted),\n manualFiltering: Boolean(outerFiltered),\n state: {\n rowSelection: selected,\n columnFilters: filtered,\n sorting: sorted,\n },\n onSortingChange: handleSorting,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnFiltersChange: handleFiltering,\n onRowSelectionChange: handleRowSelection,\n columnResizeMode: 'onChange',\n columnResizeDirection: 'ltr',\n meta: {\n updateData: (rowId, columnId, value) => {\n if (onCellUpdate) {\n onCellUpdate(rowId, columnId, value);\n }\n },\n },\n });\n\n return (\n <Root\n ref={rootRef}\n data={data}\n columns={columns}\n view={view}\n size={size}\n style={{ maxHeight: maxHeight || 'none' }}\n >\n <Table borderVariant={borderVariant} stickyHeader={stickyHeader}>\n <Thead view={view} borderVariant={borderVariant} stickyHeader={stickyHeader}>\n {table.getHeaderGroups().map((headerGroup) => (\n <Tr key={headerGroup.id}>\n {headerGroup.headers.map((header) => (\n <HeadCell\n key={header.index}\n header={header}\n size={size}\n borderVariant={borderVariant}\n outerFiltered={outerFiltered}\n tableContainerRef={tableContainerRef}\n />\n ))}\n </Tr>\n ))}\n </Thead>\n\n <tbody>\n {table.getRowModel().rows.map((row) => (\n <Tr key={row.id} selected={row.getIsSelected()}>\n {row.getVisibleCells().map((cell) =>\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n cell?.column?.columnDef?.meta?.enableEditing ? (\n <EditableCell\n key={cell.id}\n size={size}\n cell={cell}\n borderVariant={borderVariant}\n table={table}\n selected={row.getIsSelected()}\n view={view}\n />\n ) : (\n <Cell\n key={cell.id}\n cell={cell}\n borderVariant={borderVariant}\n selected={row.getIsSelected()}\n view={view}\n />\n ),\n )}\n </Tr>\n ))}\n </tbody>\n </Table>\n </Root>\n );\n },\n );\n\nexport const tableConfig = {\n name: 'Table',\n tag: 'div',\n layout: tableRoot,\n base,\n variations: {},\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["SELECT_COLUMN_ID","tableRoot","Root","forwardRef","_ref","ref","data","onChange","columns","view","size","_ref$borderVariant","borderVariant","enableSelection","outerSelected","selected","outerFiltered","filtered","outerSorted","sorted","maxHeight","stickyHeader","onCellUpdate","_useState","useState","_useState2","_slicedToArray","innerSelected","innerSetSelected","_useState3","_useState4","innerFiltered","setInnerFiltered","_useState5","_useState6","innerSorted","setInnerSorted","handleRowSelection","updaterOrValue","handleSorting","handleFiltering","tableContainerRef","useRef","rootRef","useForkRef","columnsData","useMemo","concat","_toConsumableArray","id","header","_ref2","table","React","createElement","StyledCheckbox","checked","getIsSomeRowsSelected","getIsAllRowsSelected","indeterminate","getToggleAllRowsSelectedHandler","cell","_ref3","row","getIsSelected","getIsSomeSelected","getToggleSelectedHandler","enableResizing","map","_ref4","label","filters","_ref4$enableSorting","enableSorting","_ref4$enableResizing","outerFilterFn","filterFn","columnSize","width","_ref4$enableEditing","enableEditing","renderCell","accessorKey","columnId","filterArr","Array","isArray","length","i","filterValue","getValue","meta","useReactTable","getRowId","getCoreRowModel","getSortedRowModel","manualSorting","Boolean","manualFiltering","state","rowSelection","columnFilters","sorting","onSortingChange","getFilteredRowModel","onColumnFiltersChange","onRowSelectionChange","columnResizeMode","columnResizeDirection","updateData","rowId","value","style","Table","Thead","getHeaderGroups","headerGroup","Tr","key","headers","HeadCell","index","getRowModel","rows","getVisibleCells","_cell$column","column","columnDef","EditableCell","Cell","tableConfig","name","tag","layout","base","variations","defaults"],"mappings":";;;;;;;;;;;;;;;;;AAsBO,IAAMA,gBAAgB,GAAG,qBAAoB;IAqBvCC,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,gBAAU,CACN,UAAAC,IAAA,EAgBIC,GAAG,EACF;AAAA,IAAA,IAfGC,IAAI,GAAAF,IAAA,CAAJE,IAAI;MACJC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;MACRC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;MACP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Y,EAAA;YACTV,GAAG,EAAEzD,IAAI,CAACZ,EAAG;AACbvC,YAAAA,IAAI,EAAEA,IAAK;AACXmD,YAAAA,IAAI,EAAEA,IAAK;AACXjD,YAAAA,aAAa,EAAEA,aAAc;AAC7BwC,YAAAA,KAAK,EAAEA,KAAM;AACbrC,YAAAA,QAAQ,EAAEgD,GAAG,CAACC,aAAa,EAAG;AAC9BvD,YAAAA,IAAI,EAAEA,IAAAA;AAAK,WACd,CAAC,gBAEF4C,sBAAA,CAAAC,aAAA,CAAC2E,SAAI,EAAA;YACDX,GAAG,EAAEzD,IAAI,CAACZ,EAAG;AACbY,YAAAA,IAAI,EAAEA,IAAK;AACXjD,YAAAA,aAAa,EAAEA,aAAc;AAC7BG,YAAAA,QAAQ,EAAEgD,GAAG,CAACC,aAAa,EAAG;AAC9BvD,YAAAA,IAAI,EAAEA,IAAAA;WACT,CAAA;AACJ,UAAA;AAAA,OACL,CACA,CAAC,CAAA;KACR,CACE,CACJ,CACL,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyH,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpI,SAAS;AACjBqI,EAAAA,IAAI,EAAJA,iBAAI;EACJC,UAAU,EAAE,EAAE;AACdC,EAAAA,QAAQ,EAAE;AACN/H,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require('./Table.
|
1
|
+
require('./Table.styles_1eg2zsx.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -80,11 +80,6 @@ var Thead = /*#__PURE__*/react.styled('thead')({
|
|
80
80
|
"t1uk535o-2": [/*#__PURE__*/_exp11()]
|
81
81
|
}
|
82
82
|
});
|
83
|
-
var Tbody = /*#__PURE__*/react.styled('tbody')({
|
84
|
-
name: "Tbody",
|
85
|
-
"class": "t1ezol8",
|
86
|
-
propsAsIs: false
|
87
|
-
});
|
88
83
|
var _exp13 = function _exp13() {
|
89
84
|
return function (_ref6) {
|
90
85
|
var isResizing = _ref6.isResizing;
|
@@ -93,10 +88,10 @@ var _exp13 = function _exp13() {
|
|
93
88
|
};
|
94
89
|
var Resizer = /*#__PURE__*/react.styled('div')({
|
95
90
|
name: "Resizer",
|
96
|
-
"class": "
|
91
|
+
"class": "r1ezol8",
|
97
92
|
propsAsIs: false,
|
98
93
|
vars: {
|
99
|
-
"
|
94
|
+
"r1ezol8-0": [/*#__PURE__*/_exp13()]
|
100
95
|
}
|
101
96
|
});
|
102
97
|
var _exp14 = function _exp14() {
|
@@ -113,11 +108,11 @@ var _exp16 = function _exp16() {
|
|
113
108
|
};
|
114
109
|
var Th = /*#__PURE__*/react.styled('th')({
|
115
110
|
name: "Th",
|
116
|
-
"class": "
|
111
|
+
"class": "t18b5m0z",
|
117
112
|
propsAsIs: false,
|
118
113
|
vars: {
|
119
|
-
"
|
120
|
-
"
|
114
|
+
"t18b5m0z-0": [/*#__PURE__*/_exp14()],
|
115
|
+
"t18b5m0z-1": [/*#__PURE__*/_exp16()]
|
121
116
|
}
|
122
117
|
});
|
123
118
|
var _exp18 = function _exp18() {
|
@@ -125,7 +120,7 @@ var _exp18 = function _exp18() {
|
|
125
120
|
};
|
126
121
|
var StyledCheckbox = /*#__PURE__*/react.styled(_exp18())({
|
127
122
|
name: "StyledCheckbox",
|
128
|
-
"class": "
|
123
|
+
"class": "sedz16",
|
129
124
|
propsAsIs: true
|
130
125
|
});
|
131
126
|
var _exp26 = function _exp26() {
|
@@ -133,7 +128,7 @@ var _exp26 = function _exp26() {
|
|
133
128
|
};
|
134
129
|
var StyledDivider = /*#__PURE__*/react.styled(_exp26())({
|
135
130
|
name: "StyledDivider",
|
136
|
-
"class": "
|
131
|
+
"class": "s3mgb7q",
|
137
132
|
propsAsIs: true
|
138
133
|
});
|
139
134
|
var _exp30 = function _exp30() {
|
@@ -141,7 +136,7 @@ var _exp30 = function _exp30() {
|
|
141
136
|
};
|
142
137
|
var Button = /*#__PURE__*/react.styled(_exp30())({
|
143
138
|
name: "Button",
|
144
|
-
"class": "
|
139
|
+
"class": "b177cehz",
|
145
140
|
propsAsIs: true
|
146
141
|
});
|
147
142
|
var _exp46 = function _exp46() {
|
@@ -149,7 +144,7 @@ var _exp46 = function _exp46() {
|
|
149
144
|
};
|
150
145
|
var ButtonAccent = /*#__PURE__*/react.styled(_exp46())({
|
151
146
|
name: "ButtonAccent",
|
152
|
-
"class": "
|
147
|
+
"class": "beus4rw",
|
153
148
|
propsAsIs: true
|
154
149
|
});
|
155
150
|
var _exp52 = function _exp52() {
|
@@ -157,7 +152,7 @@ var _exp52 = function _exp52() {
|
|
157
152
|
};
|
158
153
|
var LinkButton = /*#__PURE__*/react.styled(_exp52())({
|
159
154
|
name: "LinkButton",
|
160
|
-
"class": "
|
155
|
+
"class": "lfybxxj",
|
161
156
|
propsAsIs: true
|
162
157
|
});
|
163
158
|
|
@@ -168,7 +163,6 @@ exports.Resizer = Resizer;
|
|
168
163
|
exports.StyledCheckbox = StyledCheckbox;
|
169
164
|
exports.StyledDivider = StyledDivider;
|
170
165
|
exports.Table = Table;
|
171
|
-
exports.Tbody = Tbody;
|
172
166
|
exports.Th = Th;
|
173
167
|
exports.Thead = Thead;
|
174
168
|
exports.Tr = Tr;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Table.styles.js","sources":["../../../src/components/Table/Table.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../engines';\nimport { checkboxConfig, checkboxTokens } from '../Checkbox';\nimport { dividerConfig, dividerTokens } from '../Divider';\nimport { buttonConfig, buttonTokens } from '../Button';\nimport { linkButtonConfig, linkButtonTokens } from '../LinkButton';\n\nimport { TableProps } from './Table.types';\nimport { tableTokens as tokens } from './Table.tokens';\n\nconst mergedCheckboxConfig = mergeConfig(checkboxConfig);\nconst Checkbox = component(mergedCheckboxConfig);\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst ButtonBase = component(mergedButtonConfig);\n\nconst mergedDividerConfig = mergeConfig(dividerConfig);\nconst Divider = component(mergedDividerConfig);\n\nconst mergedLinkButtonConfig = mergeConfig(linkButtonConfig);\nconst LinkButtonBase = component(mergedLinkButtonConfig);\n\nexport const base = css`\n display: inline-block;\n overflow-y: auto;\n`;\n\nexport const Table = styled.table<{ borderVariant: TableProps['borderVariant']; stickyHeader?: boolean }>`\n width: fit-content;\n\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-collapse: collapse;\n\n border-width: 0;\n border-style: solid;\n border-color: ${({ borderVariant }) => (borderVariant === 'all' ? `var(${tokens.borderColor})` : 'transparent')};\n`;\n\nexport const Tr = styled.tr<{ selected?: boolean }>`\n width: fit-content;\n background-color: ${({ selected }) => (selected ? 'var(--surface-transparent-accent)' : 'transparent')};\n`;\n\nexport const Thead = styled.thead<{\n view: TableProps['view'];\n borderVariant: TableProps['borderVariant'];\n stickyHeader?: boolean;\n}>`\n position: ${({ stickyHeader }) => (stickyHeader ? 'sticky' : 'static')};\n top: 0;\n background: ${({ stickyHeader }) => (stickyHeader ? 'var(--background-primary)' : 'transparent')};\n z-index: 1;\n box-shadow: ${({ view, borderVariant }) =>\n // eslint-disable-next-line no-nested-ternary\n view === 'clear'\n ? 'none'\n : borderVariant === 'header' || borderVariant === 'rows'\n ? `inset 0 -1px 0 0 var(${tokens.borderColor})`\n : `inset 0 1px 0 0 var(${tokens.borderColor}), inset 0 -1px 0 0 var(${tokens.borderColor})`};\n\n ${Tr} {\n background: transparent;\n }\n`;\n\nexport const Tbody = styled.tbody``;\n\nexport const Resizer = styled.div<{ isResizing: boolean }>`\n display: ${({ isResizing }) => (isResizing ? 'block' : 'none')};\n position: absolute;\n z-index: 1;\n top: -0.0625rem;\n bottom: 0;\n right: -0.125rem;\n width: 0.1875rem;\n background: var(--outline-accent);\n cursor: col-resize;\n user-select: none;\n touch-action: none;\n`;\n\nexport const Th = styled.th<{ borderVariant: TableProps['borderVariant']; selectionCell?: boolean }>`\n padding: ${({ selectionCell }) =>\n selectionCell ? `var(${tokens.checkboxCellPadding})` : `var(${tokens.cellPadding})`};\n position: relative;\n font-weight: 600;\n text-align: left;\n height: var(${tokens.headerRowHeight});\n background-color: transparent;\n color: inherit;\n\n border-width: 0.0625rem;\n border-top-width: 0;\n border-bottom-width: 0;\n border-style: solid;\n border-color: ${({ borderVariant }) => (borderVariant === 'all' ? `var(${tokens.borderColor})` : 'transparent')};\n\n &:hover {\n ${Resizer} {\n display: block;\n }\n }\n`;\n\nexport const StyledCheckbox = styled(Checkbox)`\n ${checkboxTokens.triggerSize}: var(${tokens.checkboxTriggerSize});\n ${checkboxTokens.triggerBorderRadius}: var(${tokens.checkboxTriggerBorderRadius});\n ${checkboxTokens.fillColor}: var(--text-accent);\n ${checkboxTokens.iconColor}: var(--on-dark-text-primary);\n ${checkboxTokens.triggerBorderColor}: var(--text-secondary);\n`;\n\nexport const StyledDivider = styled(Divider)`\n ${dividerTokens.baseSideSize}: 0.0625rem;\n ${dividerTokens.background}: var(--surface-transparent-tertiary);\n ${dividerTokens.borderRadius}: 0.0625rem;\n`;\n\nexport const Button = styled(ButtonBase)`\n ${buttonTokens.buttonHeight}: var(${tokens.buttonHeight});\n ${buttonTokens.buttonDisabledOpacity}: 0.4;\n\n ${buttonTokens.buttonFontFamily}: var(${tokens.buttonFontFamily});\n ${buttonTokens.buttonFontSize}: var(${tokens.buttonFontSize});\n ${buttonTokens.buttonFontStyle}: var(${tokens.buttonFontStyle});\n ${buttonTokens.buttonFontWeight}: var(${tokens.buttonFontWeight});\n ${buttonTokens.buttonLetterSpacing}: var(${tokens.buttonLetterSpacing});\n ${buttonTokens.buttonLineHeight}: var(${tokens.buttonLineHeight});\n`;\n\nexport const ButtonAccent = styled(Button)`\n ${buttonTokens.buttonColor}: var(--on-dark-text-primary);\n ${buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);\n ${buttonTokens.buttonBackgroundColor}: var(--surface-accent);\n ${buttonTokens.buttonBackgroundColorHover}: var(--surface-accent-hover);\n ${buttonTokens.buttonBackgroundColorActive}: var(--surface-accent-active);\n`;\n\nexport const LinkButton = styled(LinkButtonBase)`\n ${linkButtonTokens.linkButtonColor}: var(--text-primary);\n ${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-transparent-clear);\n ${linkButtonTokens.linkButtonColorHover}: var(--text-primary-hover);\n ${linkButtonTokens.linkButtonColorActive}: var(--text-primary-active);\n ${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);\n\n ${linkButtonTokens.linkButtonFontFamily}: var(${tokens.linkButtonFontFamily});\n ${linkButtonTokens.linkButtonFontSize}: var(${tokens.linkButtonFontSize});\n ${linkButtonTokens.linkButtonFontStyle}: var(${tokens.linkButtonFontStyle});\n ${linkButtonTokens.linkButtonFontWeight}: var(${tokens.linkButtonFontWeight});\n ${linkButtonTokens.linkButtonLetterSpacing}: var(${tokens.linkButtonLetterSpacing});\n ${linkButtonTokens.linkButtonLineHeight}: var(${tokens.linkButtonLineHeight});\n`;\n"],"names":["mergedCheckboxConfig","mergeConfig","checkboxConfig","Checkbox","component","mergedButtonConfig","buttonConfig","ButtonBase","mergedDividerConfig","dividerConfig","Divider","mergedLinkButtonConfig","linkButtonConfig","LinkButtonBase","base","_exp7","_ref","borderVariant","concat","tokens","borderColor","Table","styled","name","class","propsAsIs","vars","_exp8","_ref2","selected","Tr","_exp9","_ref3","stickyHeader","_exp10","_ref4","_exp11","_ref5","view","Thead","Tbody","_exp13","_ref6","isResizing","Resizer","_exp14","_ref7","selectionCell","checkboxCellPadding","cellPadding","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AAU,gBAAGxC,YAAM,CAAAuC,MAAA,EAAA,CAAA,CAAA;AAAAtC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAa/B;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"Table.styles.js","sources":["../../../src/components/Table/Table.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../engines';\nimport { checkboxConfig, checkboxTokens } from '../Checkbox';\nimport { dividerConfig, dividerTokens } from '../Divider';\nimport { buttonConfig, buttonTokens } from '../Button';\nimport { linkButtonConfig, linkButtonTokens } from '../LinkButton';\n\nimport { TableProps } from './Table.types';\nimport { tableTokens as tokens } from './Table.tokens';\n\nconst mergedCheckboxConfig = mergeConfig(checkboxConfig);\nconst Checkbox = component(mergedCheckboxConfig);\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst ButtonBase = component(mergedButtonConfig);\n\nconst mergedDividerConfig = mergeConfig(dividerConfig);\nconst Divider = component(mergedDividerConfig);\n\nconst mergedLinkButtonConfig = mergeConfig(linkButtonConfig);\nconst LinkButtonBase = component(mergedLinkButtonConfig);\n\nexport const base = css`\n display: inline-block;\n overflow-y: auto;\n`;\n\nexport const Table = styled.table<{ borderVariant: TableProps['borderVariant']; stickyHeader?: boolean }>`\n width: fit-content;\n\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-collapse: collapse;\n\n border-width: 0;\n border-style: solid;\n border-color: ${({ borderVariant }) => (borderVariant === 'all' ? `var(${tokens.borderColor})` : 'transparent')};\n`;\n\nexport const Tr = styled.tr<{ selected?: boolean }>`\n width: fit-content;\n background-color: ${({ selected }) => (selected ? 'var(--surface-transparent-accent)' : 'transparent')};\n`;\n\nexport const Thead = styled.thead<{\n view: TableProps['view'];\n borderVariant: TableProps['borderVariant'];\n stickyHeader?: boolean;\n}>`\n position: ${({ stickyHeader }) => (stickyHeader ? 'sticky' : 'static')};\n top: 0;\n background: ${({ stickyHeader }) => (stickyHeader ? 'var(--background-primary)' : 'transparent')};\n z-index: 1;\n box-shadow: ${({ view, borderVariant }) =>\n // eslint-disable-next-line no-nested-ternary\n view === 'clear'\n ? 'none'\n : borderVariant === 'header' || borderVariant === 'rows'\n ? `inset 0 -1px 0 0 var(${tokens.borderColor})`\n : `inset 0 1px 0 0 var(${tokens.borderColor}), inset 0 -1px 0 0 var(${tokens.borderColor})`};\n\n ${Tr} {\n background: transparent;\n }\n`;\n\nexport const Resizer = styled.div<{ isResizing: boolean }>`\n display: ${({ isResizing }) => (isResizing ? 'block' : 'none')};\n position: absolute;\n z-index: 1;\n top: -1px;\n bottom: 0;\n right: -2px;\n width: 0.1875rem;\n background: var(--outline-accent);\n cursor: col-resize;\n user-select: none;\n touch-action: none;\n`;\n\nexport const Th = styled.th<{ borderVariant: TableProps['borderVariant']; selectionCell?: boolean }>`\n padding: ${({ selectionCell }) =>\n selectionCell ? `var(${tokens.checkboxCellPadding})` : `var(${tokens.cellPadding})`};\n position: relative;\n font-weight: 600;\n text-align: left;\n height: var(${tokens.headerRowHeight});\n background-color: transparent;\n color: inherit;\n\n border-width: 1px;\n border-top-width: 0;\n border-bottom-width: 0;\n border-style: solid;\n border-color: ${({ borderVariant }) => (borderVariant === 'all' ? `var(${tokens.borderColor})` : 'transparent')};\n\n &:hover {\n ${Resizer} {\n display: block;\n }\n }\n`;\n\nexport const StyledCheckbox = styled(Checkbox)`\n ${checkboxTokens.triggerSize}: var(${tokens.checkboxTriggerSize});\n ${checkboxTokens.triggerBorderRadius}: var(${tokens.checkboxTriggerBorderRadius});\n ${checkboxTokens.fillColor}: var(--text-accent);\n ${checkboxTokens.iconColor}: var(--on-dark-text-primary);\n ${checkboxTokens.triggerBorderColor}: var(--text-secondary);\n`;\n\nexport const StyledDivider = styled(Divider)`\n ${dividerTokens.baseSideSize}: 0.0625rem;\n ${dividerTokens.background}: var(--surface-transparent-tertiary);\n ${dividerTokens.borderRadius}: 0.0625rem;\n`;\n\nexport const Button = styled(ButtonBase)`\n ${buttonTokens.buttonHeight}: var(${tokens.buttonHeight});\n ${buttonTokens.buttonDisabledOpacity}: 0.4;\n\n ${buttonTokens.buttonFontFamily}: var(${tokens.buttonFontFamily});\n ${buttonTokens.buttonFontSize}: var(${tokens.buttonFontSize});\n ${buttonTokens.buttonFontStyle}: var(${tokens.buttonFontStyle});\n ${buttonTokens.buttonFontWeight}: var(${tokens.buttonFontWeight});\n ${buttonTokens.buttonLetterSpacing}: var(${tokens.buttonLetterSpacing});\n ${buttonTokens.buttonLineHeight}: var(${tokens.buttonLineHeight});\n`;\n\nexport const ButtonAccent = styled(Button)`\n ${buttonTokens.buttonColor}: var(--on-dark-text-primary);\n ${buttonTokens.buttonValueColor}: var(--on-dark-text-secondary);\n ${buttonTokens.buttonBackgroundColor}: var(--surface-accent);\n ${buttonTokens.buttonBackgroundColorHover}: var(--surface-accent-hover);\n ${buttonTokens.buttonBackgroundColorActive}: var(--surface-accent-active);\n`;\n\nexport const LinkButton = styled(LinkButtonBase)`\n ${linkButtonTokens.linkButtonColor}: var(--text-primary);\n ${linkButtonTokens.linkButtonBackgroundColor}: var(--surface-transparent-clear);\n ${linkButtonTokens.linkButtonColorHover}: var(--text-primary-hover);\n ${linkButtonTokens.linkButtonColorActive}: var(--text-primary-active);\n ${linkButtonTokens.linkButtonFocusColor}: var(--surface-accent);\n\n ${linkButtonTokens.linkButtonFontFamily}: var(${tokens.linkButtonFontFamily});\n ${linkButtonTokens.linkButtonFontSize}: var(${tokens.linkButtonFontSize});\n ${linkButtonTokens.linkButtonFontStyle}: var(${tokens.linkButtonFontStyle});\n ${linkButtonTokens.linkButtonFontWeight}: var(${tokens.linkButtonFontWeight});\n ${linkButtonTokens.linkButtonLetterSpacing}: var(${tokens.linkButtonLetterSpacing});\n ${linkButtonTokens.linkButtonLineHeight}: var(${tokens.linkButtonLineHeight});\n`;\n"],"names":["mergedCheckboxConfig","mergeConfig","checkboxConfig","Checkbox","component","mergedButtonConfig","buttonConfig","ButtonBase","mergedDividerConfig","dividerConfig","Divider","mergedLinkButtonConfig","linkButtonConfig","LinkButtonBase","base","_exp7","_ref","borderVariant","concat","tokens","borderColor","Table","styled","name","class","propsAsIs","vars","_exp8","_ref2","selected","Tr","_exp9","_ref3","stickyHeader","_exp10","_ref4","_exp11","_ref5","view","Thead","_exp13","_ref6","isResizing","Resizer","_exp14","_ref7","selectionCell","checkboxCellPadding","cellPadding","_exp16","_ref8","Th","_exp18","StyledCheckbox","_exp26","StyledDivider","_exp30","Button","_exp46","ButtonAccent","_exp52","LinkButton"],"mappings":";;;;;;;;;;;;AAYA,IAAMA,oBAAoB,gBAAGC,kBAAW,CAACC,yBAAc,CAAC,CAAA;AACxD,IAAMC,QAAQ,gBAAGC,gBAAS,CAACJ,oBAAoB,CAAC,CAAA;AAEhD,IAAMK,kBAAkB,gBAAGJ,kBAAW,CAACK,qBAAY,CAAC,CAAA;AACpD,IAAMC,UAAU,gBAAGH,gBAAS,CAACC,kBAAkB,CAAC,CAAA;AAEhD,IAAMG,mBAAmB,gBAAGP,kBAAW,CAACQ,uBAAa,CAAC,CAAA;AACtD,IAAMC,OAAO,gBAAGN,gBAAS,CAACI,mBAAmB,CAAC,CAAA;AAE9C,IAAMG,sBAAsB,gBAAGV,kBAAW,CAACW,6BAAgB,CAAC,CAAA;AAC5D,IAAMC,cAAc,gBAAGT,gBAAS,CAACO,sBAAsB,CAAC,CAAA;AAEjD,IAAMG,IAAI,GAGhB,WAAA;AAAC,IAAAC,KAAA,GA1BgBA,SA0BhBA,KAAAA,GAAA;AAAA,EAAA,OAgBkB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,aAAAA,GAAAA,IAAAA,CAAAA,aAAAA,CAAA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AAA,CAAA,CAAA;AAAAnC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAMjC,EAAA;AAAC,IAAAmC,MAAA,GA7IgBA,SA6IhBA,MAAAA,GAAA;AAAA,EAAA,OAE+B/C,cAAc,CAAA;AAAA,CAAA,CAAA;AAAxC,IAAMgD,UAAU,gBAAGvC,YAAM,CAAAsC,MAAA,EAAA,CAAA,CAAA;AAAArC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAa/B;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.b1lxisuf{display:inline-block;overflow-y:auto;}
|
2
|
+
.t15d4jbz{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-family:var(--plasma-table-font-family);font-size:var(--plasma-table-font-size);font-style:var(--plasma-table-font-style);font-weight:var(--plasma-table-font-weight);-webkit-letter-spacing:var(--plasma-table-letter-spacing);-moz-letter-spacing:var(--plasma-table-letter-spacing);-ms-letter-spacing:var(--plasma-table-letter-spacing);letter-spacing:var(--plasma-table-letter-spacing);line-height:var(--plasma-table-line-height);border-collapse:collapse;border-width:0;border-style:solid;border-color:var(--t15d4jbz-0);}
|
3
|
+
.t1ri3no5{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;background-color:var(--t1ri3no5-0);}
|
4
|
+
.t1uk535o{position:var(--t1uk535o-0);top:0;background:var(--t1uk535o-1);z-index:1;box-shadow:var(--t1uk535o-2);}.t1uk535o .t1ri3no5{background:transparent;}
|
5
|
+
.r1ezol8{display:var(--r1ezol8-0);position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:none;}
|
6
|
+
.t18b5m0z{padding:var(--t18b5m0z-0);position:relative;font-weight:600;text-align:left;height:var(--plasma-table-header-row-height);background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:var(--t18b5m0z-1);}.t18b5m0z:hover .r1ezol8{display:block;}
|
7
|
+
.sedz16{--plasma-checkbox-trigger-size:var(--plasma-table-checkbox-trigger-size);--plasma-checkbox-trigger-border-radius:var(--plasma-table-checkbox-trigger-border-radius);--plasma-checkbox-fill-color:var(--text-accent);--plasma-checkbox-icon-color:var(--on-dark-text-primary);--plasma-checkbox-trigger-border-color:var(--text-secondary);}
|
8
|
+
.s3mgb7q{--plasma-divider-base-side-size:0.0625rem;--plasma-divider-background:var(--surface-transparent-tertiary);--plasma-divider-border-radius:0.0625rem;}
|
9
|
+
.b177cehz{--plasma-button-height:var(--plasma-table-button-height);--plasma-button-disabled-opacity:0.4;--plasma-button-font-family:var(--plasma-table-button-font-family);--plasma-button-font-size:var(--plasma-table-button-font-size);--plasma-button-font-style:var(--plasma-table-button-font-style);--plasma-button-font-weight:var(--plasma-table-button-font-weight);--plasma-button-letter-spacing:var(--plasma-table-button-letter-spacing);--plasma-button-line-height:var(--plasma-table-button-line-height);}
|
10
|
+
.beus4rw.b177cehz{--plasma-button-color:var(--on-dark-text-primary);--plasma-button-value-color:var(--on-dark-text-secondary);--plasma-button-background-color:var(--surface-accent);--plasma-button-background-color-hover:var(--surface-accent-hover);--plasma-button-background-color-active:var(--surface-accent-active);}
|
11
|
+
.lfybxxj{--plasma-link-button-color:var(--text-primary);--plasma-link-button-background-color:var(--surface-transparent-clear);--plasma-link-button-color-hover:var(--text-primary-hover);--plasma-link-button-color-active:var(--text-primary-active);--plasma-link-button-focus-color:var(--surface-accent);--plasma-link-button-font-family:var(--plasma-table-link-button-font-family);--plasma-link-button-font-size:var(--plasma-table-link-button-font-size);--plasma-link-button-font-style:var(--plasma-table-link-button-font-style);--plasma-link-button-font-weight:var(--plasma-table-link-button-font-weight);--plasma-link-button-letter-spacing:var(--plasma-table-link-button-letter-spacing);--plasma-link-button-line-height:var(--plasma-table-link-button-line-height);}
|
@@ -2,14 +2,6 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var classes = {
|
6
|
-
editIcon: 'edit-icon',
|
7
|
-
sortingDefaultIcon: 'sorting-default-icon',
|
8
|
-
sortingAscIcon: 'sorting-asc-icon',
|
9
|
-
sortingDescIcon: 'sorting-desc-icon',
|
10
|
-
filterIcon: 'filter-icon',
|
11
|
-
resizeDivider: 'resize-divider'
|
12
|
-
};
|
13
5
|
var tableTokens = {
|
14
6
|
fontFamily: '--plasma-table-font-family',
|
15
7
|
fontSize: '--plasma-table-font-size',
|
@@ -67,6 +59,5 @@ var tableTokens = {
|
|
67
59
|
linkButtonLineHeight: '--plasma-table-link-button-line-height'
|
68
60
|
};
|
69
61
|
|
70
|
-
exports.classes = classes;
|
71
62
|
exports.tableTokens = tableTokens;
|
72
63
|
//# sourceMappingURL=Table.tokens.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Table.tokens.js","sources":["../../../src/components/Table/Table.tokens.ts"],"sourcesContent":["export const
|
1
|
+
{"version":3,"file":"Table.tokens.js","sources":["../../../src/components/Table/Table.tokens.ts"],"sourcesContent":["export const tableTokens = {\n fontFamily: '--plasma-table-font-family',\n fontSize: '--plasma-table-font-size',\n fontStyle: '--plasma-table-font-style',\n fontWeight: '--plasma-table-font-weight',\n letterSpacing: '--plasma-table-letter-spacing',\n lineHeight: '--plasma-table-line-height',\n\n borderColor: '--plasma-table-border-color',\n headerRowHeight: '--plasma-table-header-row-height',\n rowHeight: '--plasma-table-row-height',\n cellPadding: '--plasma-cell-padding',\n checkboxCellPadding: '--plasma-checkbox-cell-padding',\n\n checkboxTriggerSize: '--plasma-table-checkbox-trigger-size',\n checkboxTriggerBorderRadius: '--plasma-table-checkbox-trigger-border-radius',\n\n editableCellIconGap: '--plasma-table-editable-cell-icon-gap',\n editableCellIconButtonWidth: '--plasma-table-editable-cell-icon-button-width',\n editableCellIconButtonHeight: '--plasma-table-editable-cell-icon-button-height',\n editableCellPadding: '--plasma-table-editable-cell-padding',\n editableCellInputBorderRadius: '--plasma-table-editable-cell-input-border-radius',\n editableCellInputPadding: '--plasma-table-editable-cell-input-padding',\n editableCellInputBackground: '--plasma-table-editable-cell-input-background',\n editableCellInputBorderColor: '--plasma-table-editable-cell-input-border-color',\n\n filterCheckboxPadding: '--plasma-table-filter-checkbox-padding',\n filterDividerMargin: '--plasma-table-filter-divider-margin',\n\n buttonHeight: '--plasma-table-button-height',\n buttonFontFamily: '--plasma-table-button-font-family',\n buttonFontSize: '--plasma-table-button-font-size',\n buttonFontStyle: '--plasma-table-button-font-style',\n buttonFontWeight: '--plasma-table-button-font-weight',\n buttonLetterSpacing: '--plasma-table-button-letter-spacing',\n buttonLineHeight: '--plasma-table-button-line-height',\n\n selectPadding: '--plasma-table-select-padding',\n selectBorderRadius: '--plasma-table-select-border-radius',\n selectItemHeight: '--plasma-table-select-item-height',\n selectItemPadding: '--plasma-table-select-item-padding',\n selectItemBorderRadius: '--plasma-table-select-item-border-radius',\n selectItemIconMargin: '--plasma-table-select-item-icon-margin',\n selectItemIconSize: '--plasma-table-select-item-icon-size',\n selectCellPadding: '--plasma-table-select-cell-padding',\n selectCellTitleFontFamily: '--plasma-table-select-cell-title-font-family',\n selectCellTitleFontSize: '--plasma-table-select-cell-title-font-size',\n selectCellTitleFontStyle: '--plasma-table-select-cell-title-font-style',\n selectCellTitleFontWeight: '--plasma-table-select-cell-title-font-weight',\n selectCellTitleLetterSpacing: '--plasma-table-select-cell-title-letter-spacing',\n selectCellTitleLineHeight: '--plasma-table-select-cell-title-line-height',\n selectCheckboxTriggerSize: '--plasma-table-select-checkbox-trigger-size',\n selectCheckboxTriggerBorderRadius: '--plasma-table-select-checkbox-trigger-border-radius',\n selectControlPanelPadding: '--plasma-table-select-control-panel-padding',\n selectControlPanelGap: '--plasma-table-select-control-panel-gap',\n\n linkButtonFontFamily: '--plasma-table-link-button-font-family',\n linkButtonFontSize: '--plasma-table-link-button-font-size',\n linkButtonFontStyle: '--plasma-table-link-button-font-style',\n linkButtonFontWeight: '--plasma-table-link-button-font-weight',\n linkButtonLetterSpacing: '--plasma-table-link-button-letter-spacing',\n linkButtonLineHeight: '--plasma-table-link-button-line-height',\n};\n"],"names":["tableTokens","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","borderColor","headerRowHeight","rowHeight","cellPadding","checkboxCellPadding","checkboxTriggerSize","checkboxTriggerBorderRadius","editableCellIconGap","editableCellIconButtonWidth","editableCellIconButtonHeight","editableCellPadding","editableCellInputBorderRadius","editableCellInputPadding","editableCellInputBackground","editableCellInputBorderColor","filterCheckboxPadding","filterDividerMargin","buttonHeight","buttonFontFamily","buttonFontSize","buttonFontStyle","buttonFontWeight","buttonLetterSpacing","buttonLineHeight","selectPadding","selectBorderRadius","selectItemHeight","selectItemPadding","selectItemBorderRadius","selectItemIconMargin","selectItemIconSize","selectCellPadding","selectCellTitleFontFamily","selectCellTitleFontSize","selectCellTitleFontStyle","selectCellTitleFontWeight","selectCellTitleLetterSpacing","selectCellTitleLineHeight","selectCheckboxTriggerSize","selectCheckboxTriggerBorderRadius","selectControlPanelPadding","selectControlPanelGap","linkButtonFontFamily","linkButtonFontSize","linkButtonFontStyle","linkButtonFontWeight","linkButtonLetterSpacing","linkButtonLineHeight"],"mappings":";;;;AAAO,IAAMA,WAAW,GAAG;AACvBC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,4BAA4B;AAExCC,EAAAA,WAAW,EAAE,6BAA6B;AAC1CC,EAAAA,eAAe,EAAE,kCAAkC;AACnDC,EAAAA,SAAS,E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