@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
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports.base = exports.Tr = exports.Thead = exports.Th = exports.
|
7
|
+
exports.base = exports.Tr = exports.Thead = exports.Th = exports.Table = exports.StyledDivider = exports.StyledCheckbox = exports.Resizer = exports.LinkButton = exports.ButtonAccent = exports.Button = void 0;
|
8
8
|
var _styledComponents = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("styled-components"));
|
9
9
|
var _engines = /*#__PURE__*/require("../../engines");
|
10
10
|
var _Checkbox = /*#__PURE__*/require("../Checkbox");
|
@@ -51,18 +51,15 @@ var Thead = exports.Thead = /*#__PURE__*/_styledComponents["default"].thead.with
|
|
51
51
|
view === 'clear' ? 'none' : borderVariant === 'header' || borderVariant === 'rows' ? "inset 0 -1px 0 0 var(".concat(_Table.tableTokens.borderColor, ")") : "inset 0 1px 0 0 var(".concat(_Table.tableTokens.borderColor, "), inset 0 -1px 0 0 var(").concat(_Table.tableTokens.borderColor, ")")
|
52
52
|
);
|
53
53
|
}, Tr);
|
54
|
-
var Tbody = exports.Tbody = /*#__PURE__*/_styledComponents["default"].tbody.withConfig({
|
55
|
-
componentId: "plasma-new-hope__sc-1nklm7n-3"
|
56
|
-
})([""]);
|
57
54
|
var Resizer = exports.Resizer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
58
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
59
|
-
})(["display:", ";position:absolute;z-index:1;top:-
|
55
|
+
componentId: "plasma-new-hope__sc-1nklm7n-3"
|
56
|
+
})(["display:", ";position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
|
60
57
|
var isResizing = _ref6.isResizing;
|
61
58
|
return isResizing ? 'block' : 'none';
|
62
59
|
});
|
63
60
|
var Th = exports.Th = /*#__PURE__*/_styledComponents["default"].th.withConfig({
|
64
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
65
|
-
})(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:
|
61
|
+
componentId: "plasma-new-hope__sc-1nklm7n-4"
|
62
|
+
})(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
|
66
63
|
var selectionCell = _ref7.selectionCell;
|
67
64
|
return selectionCell ? "var(".concat(_Table.tableTokens.checkboxCellPadding, ")") : "var(".concat(_Table.tableTokens.cellPadding, ")");
|
68
65
|
}, _Table.tableTokens.headerRowHeight, function (_ref8) {
|
@@ -70,17 +67,17 @@ var Th = exports.Th = /*#__PURE__*/_styledComponents["default"].th.withConfig({
|
|
70
67
|
return borderVariant === 'all' ? "var(".concat(_Table.tableTokens.borderColor, ")") : 'transparent';
|
71
68
|
}, Resizer);
|
72
69
|
var StyledCheckbox = exports.StyledCheckbox = /*#__PURE__*/(0, _styledComponents["default"])(Checkbox).withConfig({
|
73
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
70
|
+
componentId: "plasma-new-hope__sc-1nklm7n-5"
|
74
71
|
})(["", ":var(", ");", ":var(", ");", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);"], _Checkbox.checkboxTokens.triggerSize, _Table.tableTokens.checkboxTriggerSize, _Checkbox.checkboxTokens.triggerBorderRadius, _Table.tableTokens.checkboxTriggerBorderRadius, _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.triggerBorderColor);
|
75
72
|
var StyledDivider = exports.StyledDivider = /*#__PURE__*/(0, _styledComponents["default"])(Divider).withConfig({
|
76
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
73
|
+
componentId: "plasma-new-hope__sc-1nklm7n-6"
|
77
74
|
})(["", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], _Divider.dividerTokens.baseSideSize, _Divider.dividerTokens.background, _Divider.dividerTokens.borderRadius);
|
78
75
|
var Button = exports.Button = /*#__PURE__*/(0, _styledComponents["default"])(ButtonBase).withConfig({
|
79
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
76
|
+
componentId: "plasma-new-hope__sc-1nklm7n-7"
|
80
77
|
})(["", ":var(", ");", ":0.4;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _Button.buttonTokens.buttonHeight, _Table.tableTokens.buttonHeight, _Button.buttonTokens.buttonDisabledOpacity, _Button.buttonTokens.buttonFontFamily, _Table.tableTokens.buttonFontFamily, _Button.buttonTokens.buttonFontSize, _Table.tableTokens.buttonFontSize, _Button.buttonTokens.buttonFontStyle, _Table.tableTokens.buttonFontStyle, _Button.buttonTokens.buttonFontWeight, _Table.tableTokens.buttonFontWeight, _Button.buttonTokens.buttonLetterSpacing, _Table.tableTokens.buttonLetterSpacing, _Button.buttonTokens.buttonLineHeight, _Table.tableTokens.buttonLineHeight);
|
81
78
|
var ButtonAccent = exports.ButtonAccent = /*#__PURE__*/(0, _styledComponents["default"])(Button).withConfig({
|
82
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
79
|
+
componentId: "plasma-new-hope__sc-1nklm7n-8"
|
83
80
|
})(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], _Button.buttonTokens.buttonColor, _Button.buttonTokens.buttonValueColor, _Button.buttonTokens.buttonBackgroundColor, _Button.buttonTokens.buttonBackgroundColorHover, _Button.buttonTokens.buttonBackgroundColorActive);
|
84
81
|
var LinkButton = exports.LinkButton = /*#__PURE__*/(0, _styledComponents["default"])(LinkButtonBase).withConfig({
|
85
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
82
|
+
componentId: "plasma-new-hope__sc-1nklm7n-9"
|
86
83
|
})(["", ":var(--text-primary);", ":var(--surface-transparent-clear);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--surface-accent);", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], _LinkButton.linkButtonTokens.linkButtonColor, _LinkButton.linkButtonTokens.linkButtonBackgroundColor, _LinkButton.linkButtonTokens.linkButtonColorHover, _LinkButton.linkButtonTokens.linkButtonColorActive, _LinkButton.linkButtonTokens.linkButtonFocusColor, _LinkButton.linkButtonTokens.linkButtonFontFamily, _Table.tableTokens.linkButtonFontFamily, _LinkButton.linkButtonTokens.linkButtonFontSize, _Table.tableTokens.linkButtonFontSize, _LinkButton.linkButtonTokens.linkButtonFontStyle, _Table.tableTokens.linkButtonFontStyle, _LinkButton.linkButtonTokens.linkButtonFontWeight, _Table.tableTokens.linkButtonFontWeight, _LinkButton.linkButtonTokens.linkButtonLetterSpacing, _Table.tableTokens.linkButtonLetterSpacing, _LinkButton.linkButtonTokens.linkButtonLineHeight, _Table.tableTokens.linkButtonLineHeight);
|
@@ -3,15 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.tableTokens =
|
7
|
-
var classes = exports.classes = {
|
8
|
-
editIcon: 'edit-icon',
|
9
|
-
sortingDefaultIcon: 'sorting-default-icon',
|
10
|
-
sortingAscIcon: 'sorting-asc-icon',
|
11
|
-
sortingDescIcon: 'sorting-desc-icon',
|
12
|
-
filterIcon: 'filter-icon',
|
13
|
-
resizeDivider: 'resize-divider'
|
14
|
-
};
|
6
|
+
exports.tableTokens = void 0;
|
15
7
|
var tableTokens = exports.tableTokens = {
|
16
8
|
fontFamily: '--plasma-table-font-family',
|
17
9
|
fontSize: '--plasma-table-font-size',
|
@@ -9,7 +9,7 @@ var _Table = /*#__PURE__*/require("../../Table.tokens");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
10
|
var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
|
11
11
|
componentId: "plasma-new-hope__sc-1doamj5-0"
|
12
|
-
})(["position:relative;padding:", ";height:var(", ");border-width:
|
12
|
+
})(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
|
13
13
|
var selectionCell = _ref.selectionCell;
|
14
14
|
return selectionCell ? "var(".concat(_Table.tableTokens.checkboxCellPadding, ")") : "var(".concat(_Table.tableTokens.cellPadding, ")");
|
15
15
|
}, _Table.tableTokens.rowHeight, function (_ref2) {
|
@@ -12,9 +12,8 @@ var _Table2 = /*#__PURE__*/require("../../Table");
|
|
12
12
|
var _hooks = /*#__PURE__*/require("../../../../hooks");
|
13
13
|
var _Icon = /*#__PURE__*/require("../../../_Icon");
|
14
14
|
var _HeadCell = /*#__PURE__*/require("../HeadCell/HeadCell");
|
15
|
-
var _Table3 = /*#__PURE__*/require("../../Table.tokens");
|
16
15
|
var _EditableCell = /*#__PURE__*/require("./EditableCell.styles");
|
17
|
-
var _Resizer;
|
16
|
+
var _IconEditOutline, _Resizer;
|
18
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
19
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
20
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
@@ -29,13 +28,12 @@ var keys = {
|
|
29
28
|
Escape: 'Escape'
|
30
29
|
};
|
31
30
|
var EditableCell = exports.EditableCell = function EditableCell(_ref) {
|
32
|
-
var _table$options$meta;
|
33
31
|
var size = _ref.size,
|
34
|
-
view = _ref.view,
|
35
32
|
cell = _ref.cell,
|
36
33
|
borderVariant = _ref.borderVariant,
|
37
34
|
table = _ref.table,
|
38
|
-
selected = _ref.selected
|
35
|
+
selected = _ref.selected,
|
36
|
+
view = _ref.view;
|
39
37
|
var _useState = (0, _react.useState)(cell.getValue()),
|
40
38
|
_useState2 = _slicedToArray(_useState, 2),
|
41
39
|
value = _useState2[0],
|
@@ -44,7 +42,7 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
|
|
44
42
|
_useState4 = _slicedToArray(_useState3, 2),
|
45
43
|
editingMode = _useState4[0],
|
46
44
|
setEditingMode = _useState4[1];
|
47
|
-
var updateData =
|
45
|
+
var updateData = table.options.meta.updateData;
|
48
46
|
var ref = (0, _hooks.useOutsideClick)(function () {
|
49
47
|
setEditingMode(false);
|
50
48
|
});
|
@@ -61,18 +59,14 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
|
|
61
59
|
};
|
62
60
|
var handleSubmit = function handleSubmit(e) {
|
63
61
|
e.stopPropagation();
|
64
|
-
|
65
|
-
updateData(cell.row.id, cell.column.id, value);
|
66
|
-
}
|
62
|
+
updateData(cell.row.id, cell.column.id, value);
|
67
63
|
setEditingMode(false);
|
68
64
|
};
|
69
65
|
var handleKeyDown = function handleKeyDown(event) {
|
70
66
|
switch (event.code) {
|
71
67
|
case keys.Enter:
|
72
68
|
{
|
73
|
-
|
74
|
-
updateData(cell.row.id, cell.column.id, value);
|
75
|
-
}
|
69
|
+
updateData(cell.row.id, cell.column.id, value);
|
76
70
|
setEditingMode(false);
|
77
71
|
break;
|
78
72
|
}
|
@@ -112,11 +106,11 @@ var EditableCell = exports.EditableCell = function EditableCell(_ref) {
|
|
112
106
|
tabIndex: -1
|
113
107
|
}, /*#__PURE__*/_react["default"].createElement(_Icon.IconDoneCircleOutline, {
|
114
108
|
size: (0, _HeadCell.getIconSize)(size)
|
115
|
-
}))) : /*#__PURE__*/_react["default"].createElement(_EditableCell.ContentWrapper, null, (0, _reactTable.flexRender)(cell.column.columnDef.cell, cell.getContext()), /*#__PURE__*/_react["default"].createElement(_Icon.IconEditOutline, {
|
109
|
+
}))) : /*#__PURE__*/_react["default"].createElement(_EditableCell.ContentWrapper, null, (0, _reactTable.flexRender)(cell.column.columnDef.cell, cell.getContext()), _IconEditOutline || (_IconEditOutline = /*#__PURE__*/_react["default"].createElement(_Icon.IconEditOutline, {
|
116
110
|
size: "xs",
|
117
|
-
className:
|
111
|
+
className: "editIcon",
|
118
112
|
color: "var(--text-secondary)"
|
119
|
-
}))), cell.column.getIsResizing() && (_Resizer || (_Resizer = /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
|
113
|
+
})))), cell.column.getIsResizing() && (_Resizer || (_Resizer = /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
|
120
114
|
isResizing: true
|
121
115
|
}))));
|
122
116
|
};
|
@@ -13,7 +13,7 @@ var mergedIndicatorConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_IconButton.i
|
|
13
13
|
var IconButton = /*#__PURE__*/(0, _engines.component)(mergedIndicatorConfig);
|
14
14
|
var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
|
15
15
|
componentId: "plasma-new-hope__sc-1uu72a1-0"
|
16
|
-
})(["position:relative;padding:", ";height:var(", ");border-width:
|
16
|
+
})(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";cursor:pointer;box-sizing:border-box;& .editIcon{opacity:0;}&:hover .editIcon{opacity:1;}"], function (_ref) {
|
17
17
|
var selectionCell = _ref.selectionCell,
|
18
18
|
editingMode = _ref.editingMode;
|
19
19
|
return (
|
@@ -31,7 +31,7 @@ var Td = exports.Td = /*#__PURE__*/_styledComponents["default"].td.withConfig({
|
|
31
31
|
}, function (_ref3) {
|
32
32
|
var borderVariant = _ref3.borderVariant;
|
33
33
|
return borderVariant === 'all' || borderVariant === 'rows' ? "var(".concat(_Table.tableTokens.borderColor, ")") : 'transparent';
|
34
|
-
}
|
34
|
+
});
|
35
35
|
var InnerWrapper = exports.InnerWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
36
36
|
componentId: "plasma-new-hope__sc-1uu72a1-1"
|
37
37
|
})(["display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;"]);
|
@@ -43,7 +43,7 @@ var EditModeWrapper = exports.EditModeWrapper = /*#__PURE__*/_styledComponents["
|
|
43
43
|
})(["display:flex;align-items:center;justify-content:space-between;gap:var(", ");height:100%;"], _Table.tableTokens.editableCellPadding);
|
44
44
|
var InputWrapper = exports.InputWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
45
45
|
componentId: "plasma-new-hope__sc-1uu72a1-4"
|
46
|
-
})(["display:flex;align-items:center;height:100%;flex:1;padding:var(", ");background:var(", ");border:
|
46
|
+
})(["display:flex;align-items:center;height:100%;flex:1;padding:var(", ");background:var(", ");border:1px solid var(", ");border-radius:var(", ");box-sizing:border-box;gap:var(", ");"], _Table.tableTokens.editableCellInputPadding, _Table.tableTokens.editableCellInputBackground, _Table.tableTokens.editableCellInputBorderColor, _Table.tableTokens.editableCellInputBorderRadius, _Table.tableTokens.editableCellIconGap);
|
47
47
|
var Input = exports.Input = /*#__PURE__*/_styledComponents["default"].input.withConfig({
|
48
48
|
componentId: "plasma-new-hope__sc-1uu72a1-5"
|
49
49
|
})(["width:auto;border:none;padding:0;background:transparent;outline:none;caret-color:var(--text-accent);font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Table.tableTokens.fontFamily, _Table.tableTokens.fontSize, _Table.tableTokens.fontStyle, _Table.tableTokens.fontWeight, _Table.tableTokens.letterSpacing, _Table.tableTokens.lineHeight);
|
@@ -9,7 +9,6 @@ var _react = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("react"));
|
|
9
9
|
var _Table = /*#__PURE__*/require("../../Table.styles");
|
10
10
|
var _Icon = /*#__PURE__*/require("../../../_Icon");
|
11
11
|
var _Table2 = /*#__PURE__*/require("../../Table");
|
12
|
-
var _Table3 = /*#__PURE__*/require("../../Table.tokens");
|
13
12
|
var _HeadCell = /*#__PURE__*/require("./HeadCell.styles");
|
14
13
|
var _Filter = /*#__PURE__*/require("./ui/Filter/Filter");
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
@@ -38,22 +37,23 @@ var HeadCell = exports.HeadCell = function HeadCell(_ref) {
|
|
38
37
|
size: size,
|
39
38
|
outerFiltered: outerFiltered,
|
40
39
|
tableContainerRef: tableContainerRef
|
41
|
-
}), header.column.getCanSort() && /*#__PURE__*/_react["default"].createElement(
|
40
|
+
}), header.column.getCanSort() && /*#__PURE__*/_react["default"].createElement("span", {
|
41
|
+
style: {
|
42
|
+
lineHeight: 0,
|
43
|
+
cursor: 'pointer',
|
44
|
+
userSelect: 'none'
|
45
|
+
},
|
42
46
|
onClick: header.column.getToggleSortingHandler()
|
43
47
|
}, (_asc$desc = {
|
44
48
|
asc: /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowUp, {
|
45
|
-
size: getIconSize(size)
|
46
|
-
className: _Table3.classes.sortingAscIcon
|
49
|
+
size: getIconSize(size)
|
47
50
|
}),
|
48
51
|
desc: /*#__PURE__*/_react["default"].createElement(_Icon.IconArrowDown, {
|
49
|
-
size: getIconSize(size)
|
50
|
-
className: _Table3.classes.sortingDescIcon
|
52
|
+
size: getIconSize(size)
|
51
53
|
})
|
52
54
|
}[header.column.getIsSorted()]) !== null && _asc$desc !== void 0 ? _asc$desc : /*#__PURE__*/_react["default"].createElement(_Icon.IconSwapVert, {
|
53
|
-
size: getIconSize(size)
|
54
|
-
className: _Table3.classes.sortingDefaultIcon
|
55
|
+
size: getIconSize(size)
|
55
56
|
}))))), header.column.getCanResize() && /*#__PURE__*/_react["default"].createElement(_Table.Resizer, {
|
56
|
-
className: _Table3.classes.resizeDivider,
|
57
57
|
onMouseDown: header.getResizeHandler(),
|
58
58
|
onTouchStart: header.getResizeHandler(),
|
59
59
|
isResizing: header.column.getIsResizing()
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.ThWrapper = exports.
|
6
|
+
exports.ThWrapper = exports.ControlButtons = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("styled-components"));
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
9
|
var ControlButtons = exports.ControlButtons = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
@@ -11,7 +11,4 @@ var ControlButtons = exports.ControlButtons = /*#__PURE__*/_styledComponents["de
|
|
11
11
|
})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
|
12
12
|
var ThWrapper = exports.ThWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
13
13
|
componentId: "plasma-new-hope__sc-haivw3-1"
|
14
|
-
})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
|
15
|
-
var IconWrapper = exports.IconWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
16
|
-
componentId: "plasma-new-hope__sc-haivw3-2"
|
17
|
-
})(["line-height:0;cursor:pointer;user-select:none;"]);
|
14
|
+
})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;"]);
|
@@ -10,7 +10,6 @@ var _hooks = /*#__PURE__*/require("../../../../../../hooks");
|
|
10
10
|
var _Icon = /*#__PURE__*/require("../../../../../_Icon");
|
11
11
|
var _HeadCell = /*#__PURE__*/require("../../HeadCell");
|
12
12
|
var _Table = /*#__PURE__*/require("../../../../Table.styles");
|
13
|
-
var _Table2 = /*#__PURE__*/require("../../../../Table.tokens");
|
14
13
|
var _Filter = /*#__PURE__*/require("./Filter.styles");
|
15
14
|
var _StyledIndicator, _StyledDivider;
|
16
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
@@ -86,8 +85,7 @@ var Filter = exports.Filter = function Filter(_ref) {
|
|
86
85
|
onChange: setLocalFiltered,
|
87
86
|
renderTarget: function renderTarget() {
|
88
87
|
return /*#__PURE__*/_react["default"].createElement(_Filter.IconFilterWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconFilterFunnel, {
|
89
|
-
size: (0, _HeadCell.getIconSize)(size)
|
90
|
-
className: _Table2.classes.filterIcon
|
88
|
+
size: (0, _HeadCell.getIconSize)(size)
|
91
89
|
}), filtered.length ? _StyledIndicator || (_StyledIndicator = /*#__PURE__*/_react["default"].createElement(_Filter.StyledIndicator, {
|
92
90
|
size: "s",
|
93
91
|
view: "accent"
|
@@ -23,6 +23,22 @@ 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
|
+
|
26
42
|
## Состав
|
27
43
|
|
28
44
|
### Hero unit
|
@@ -1,6 +1,5 @@
|
|
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';
|
4
3
|
|
5
4
|
import { WithTheme } from '../../../_helpers';
|
6
5
|
import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
|
@@ -9,12 +8,12 @@ import { IconButton } from '../IconButton/IconButton';
|
|
9
8
|
import { IconEditOutline } from '../../../../components/_Icon';
|
10
9
|
import { Dropdown } from '../Dropdown/Dropdown';
|
11
10
|
|
12
|
-
import { config } from './Table.config';
|
13
11
|
import { Table } from './Table';
|
14
12
|
|
15
13
|
type StoryTableProps = ComponentProps<typeof Table>;
|
16
14
|
|
17
|
-
const
|
15
|
+
const view = ['default', 'clear'];
|
16
|
+
const size = ['s', 'm', 'l'];
|
18
17
|
const borderVariant = ['rows', 'header', 'all'];
|
19
18
|
|
20
19
|
const meta: Meta<StoryTableProps> = {
|
@@ -24,11 +23,11 @@ const meta: Meta<StoryTableProps> = {
|
|
24
23
|
argTypes: {
|
25
24
|
view: {
|
26
25
|
control: 'select',
|
27
|
-
options:
|
26
|
+
options: view,
|
28
27
|
},
|
29
28
|
size: {
|
30
29
|
control: 'select',
|
31
|
-
options:
|
30
|
+
options: size,
|
32
31
|
},
|
33
32
|
borderVariant: {
|
34
33
|
control: 'select',
|
@@ -515,8 +514,8 @@ const StoryComplex = (args: StoryTableProps) => {
|
|
515
514
|
<Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
|
516
515
|
<Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
|
517
516
|
<Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
|
518
|
-
<Button text="Очистить все" view="
|
519
|
-
<Button text="Добавить строку" view="
|
517
|
+
<Button text="Очистить все" view="critical" size="xs" onClick={clearAll} />
|
518
|
+
<Button text="Добавить строку" view="success" size="xs" onClick={addRow} />
|
520
519
|
</ButtonGroup>
|
521
520
|
|
522
521
|
<br />
|
@@ -1,6 +1,5 @@
|
|
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';
|
4
3
|
|
5
4
|
import { WithTheme } from '../../../_helpers';
|
6
5
|
import { ButtonGroup } from '../ButtonGroup/ButtonGroup';
|
@@ -8,13 +7,13 @@ import { Button } from '../Button/Button';
|
|
8
7
|
import { IconButton } from '../IconButton/IconButton';
|
9
8
|
import { IconEditOutline } from '../../../../components/_Icon';
|
10
9
|
import { Dropdown } from '../Dropdown/Dropdown';
|
11
|
-
import { config } from '../../../plasma_b2c/components/Table/Table.config';
|
12
10
|
|
13
11
|
import { Table } from './Table';
|
14
12
|
|
15
13
|
type StoryTableProps = ComponentProps<typeof Table>;
|
16
14
|
|
17
|
-
const
|
15
|
+
const view = ['default', 'clear'];
|
16
|
+
const size = ['s', 'm', 'l'];
|
18
17
|
const borderVariant = ['rows', 'header', 'all'];
|
19
18
|
|
20
19
|
const meta: Meta<StoryTableProps> = {
|
@@ -24,11 +23,11 @@ const meta: Meta<StoryTableProps> = {
|
|
24
23
|
argTypes: {
|
25
24
|
view: {
|
26
25
|
control: 'select',
|
27
|
-
options:
|
26
|
+
options: view,
|
28
27
|
},
|
29
28
|
size: {
|
30
29
|
control: 'select',
|
31
|
-
options:
|
30
|
+
options: size,
|
32
31
|
},
|
33
32
|
borderVariant: {
|
34
33
|
control: 'select',
|
@@ -515,8 +514,8 @@ const StoryComplex = (args: StoryTableProps) => {
|
|
515
514
|
<Button text="Очистить выбранные" view="warning" size="xs" onClick={clearSelected} />
|
516
515
|
<Button text="Убрать сортировку" view="warning" size="xs" onClick={clearSorted} />
|
517
516
|
<Button text="Очистить фильтры" view="warning" size="xs" onClick={clearFiltered} />
|
518
|
-
<Button text="Очистить все" view="
|
519
|
-
<Button text="Добавить строку" view="
|
517
|
+
<Button text="Очистить все" view="critical" size="xs" onClick={clearAll} />
|
518
|
+
<Button text="Добавить строку" view="success" size="xs" onClick={addRow} />
|
520
519
|
</ButtonGroup>
|
521
520
|
|
522
521
|
<br />
|
@@ -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: 'typography/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Body,
|
15
15
|
argTypes: {
|
@@ -19,6 +19,9 @@ const meta: Meta<typeof Body> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
+
as: {
|
23
|
+
control: 'text',
|
24
|
+
},
|
22
25
|
},
|
23
26
|
args: {
|
24
27
|
noWrap: false,
|
@@ -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: 'typography/Dspl',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Dspl,
|
15
15
|
argTypes: {
|
@@ -19,6 +19,9 @@ const meta: Meta<typeof Dspl> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
+
as: {
|
23
|
+
control: 'text',
|
24
|
+
},
|
22
25
|
},
|
23
26
|
args: {
|
24
27
|
noWrap: false,
|
@@ -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: 'typography/Heading',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Heading,
|
15
15
|
argTypes: {
|
@@ -19,6 +19,9 @@ const meta: Meta<typeof Heading> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
+
as: {
|
23
|
+
control: 'text',
|
24
|
+
},
|
22
25
|
},
|
23
26
|
args: {
|
24
27
|
noWrap: false,
|
@@ -9,7 +9,7 @@ import { Text } from './Text';
|
|
9
9
|
import { config } from './Text.config';
|
10
10
|
|
11
11
|
const meta: Meta<typeof Text> = {
|
12
|
-
title: '
|
12
|
+
title: 'typography/Text',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Text,
|
15
15
|
argTypes: {
|
@@ -19,6 +19,9 @@ const meta: Meta<typeof Text> = {
|
|
19
19
|
type: 'color',
|
20
20
|
},
|
21
21
|
},
|
22
|
+
as: {
|
23
|
+
control: 'text',
|
24
|
+
},
|
22
25
|
},
|
23
26
|
args: {
|
24
27
|
noWrap: false,
|
@@ -1,5 +1,3 @@
|
|
1
|
-
var _excluded = ["data", "onChange", "columns", "view", "size", "borderVariant", "enableSelection", "selected", "filtered", "sorted", "maxHeight", "stickyHeader", "onCellUpdate"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
1
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
3
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
@@ -10,14 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
10
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
11
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
12
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
13
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
14
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
15
11
|
import React, { forwardRef, useState, useMemo, useRef } from 'react';
|
16
12
|
import { getCoreRowModel, useReactTable, getSortedRowModel, getFilteredRowModel } from '@tanstack/react-table';
|
17
13
|
import { useForkRef } from '@salutejs/plasma-core';
|
18
14
|
import { HeadCell, Cell, EditableCell } from './ui';
|
19
|
-
import { base, Table, Tr, Thead, StyledCheckbox
|
20
|
-
export var SELECT_COLUMN_ID = '
|
15
|
+
import { base, Table, Tr, Thead, StyledCheckbox } from './Table.styles';
|
16
|
+
export var SELECT_COLUMN_ID = 'select#65768756432';
|
21
17
|
export var tableRoot = function tableRoot(Root) {
|
22
18
|
return /*#__PURE__*/forwardRef(function (_ref, ref) {
|
23
19
|
var data = _ref.data,
|
@@ -33,8 +29,7 @@ export var tableRoot = function tableRoot(Root) {
|
|
33
29
|
outerSorted = _ref.sorted,
|
34
30
|
maxHeight = _ref.maxHeight,
|
35
31
|
stickyHeader = _ref.stickyHeader,
|
36
|
-
onCellUpdate = _ref.onCellUpdate
|
37
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
32
|
+
onCellUpdate = _ref.onCellUpdate;
|
38
33
|
var _useState = useState(outerSelected || {}),
|
39
34
|
_useState2 = _slicedToArray(_useState, 2),
|
40
35
|
innerSelected = _useState2[0],
|
@@ -128,10 +123,17 @@ export var tableRoot = function tableRoot(Root) {
|
|
128
123
|
enableSorting: enableSorting,
|
129
124
|
enableResizing: enableResizing,
|
130
125
|
filterFn: function filterFn(row, columnId, filterArr) {
|
131
|
-
if (
|
132
|
-
|
133
|
-
return
|
134
|
-
}
|
126
|
+
if (outerFilterFn && filterArr && Array.isArray(filterArr)) {
|
127
|
+
if (filterArr.length === 0) {
|
128
|
+
return true;
|
129
|
+
}
|
130
|
+
for (var i = 0; i < filterArr.length; i++) {
|
131
|
+
var filterValue = filterArr[i];
|
132
|
+
if (outerFilterFn(filterValue, row.getValue(columnId))) {
|
133
|
+
return true;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
return false;
|
135
137
|
}
|
136
138
|
return true;
|
137
139
|
},
|
@@ -172,7 +174,7 @@ export var tableRoot = function tableRoot(Root) {
|
|
172
174
|
}
|
173
175
|
}
|
174
176
|
});
|
175
|
-
return /*#__PURE__*/React.createElement(Root,
|
177
|
+
return /*#__PURE__*/React.createElement(Root, {
|
176
178
|
ref: rootRef,
|
177
179
|
data: data,
|
178
180
|
columns: columns,
|
@@ -181,7 +183,7 @@ export var tableRoot = function tableRoot(Root) {
|
|
181
183
|
style: {
|
182
184
|
maxHeight: maxHeight || 'none'
|
183
185
|
}
|
184
|
-
},
|
186
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
185
187
|
borderVariant: borderVariant,
|
186
188
|
stickyHeader: stickyHeader
|
187
189
|
}, /*#__PURE__*/React.createElement(Thead, {
|
@@ -201,7 +203,7 @@ export var tableRoot = function tableRoot(Root) {
|
|
201
203
|
tableContainerRef: tableContainerRef
|
202
204
|
});
|
203
205
|
}));
|
204
|
-
})), /*#__PURE__*/React.createElement(
|
206
|
+
})), /*#__PURE__*/React.createElement("tbody", null, table.getRowModel().rows.map(function (row) {
|
205
207
|
return /*#__PURE__*/React.createElement(Tr, {
|
206
208
|
key: row.id,
|
207
209
|
selected: row.getIsSelected()
|
@@ -43,18 +43,15 @@ export var Thead = /*#__PURE__*/styled.thead.withConfig({
|
|
43
43
|
view === 'clear' ? 'none' : borderVariant === 'header' || borderVariant === 'rows' ? "inset 0 -1px 0 0 var(".concat(tokens.borderColor, ")") : "inset 0 1px 0 0 var(".concat(tokens.borderColor, "), inset 0 -1px 0 0 var(").concat(tokens.borderColor, ")")
|
44
44
|
);
|
45
45
|
}, Tr);
|
46
|
-
export var Tbody = /*#__PURE__*/styled.tbody.withConfig({
|
47
|
-
componentId: "plasma-new-hope__sc-1nklm7n-3"
|
48
|
-
})([""]);
|
49
46
|
export var Resizer = /*#__PURE__*/styled.div.withConfig({
|
50
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
51
|
-
})(["display:", ";position:absolute;z-index:1;top:-
|
47
|
+
componentId: "plasma-new-hope__sc-1nklm7n-3"
|
48
|
+
})(["display:", ";position:absolute;z-index:1;top:-1px;bottom:0;right:-2px;width:0.1875rem;background:var(--outline-accent);cursor:col-resize;user-select:none;touch-action:none;"], function (_ref6) {
|
52
49
|
var isResizing = _ref6.isResizing;
|
53
50
|
return isResizing ? 'block' : 'none';
|
54
51
|
});
|
55
52
|
export var Th = /*#__PURE__*/styled.th.withConfig({
|
56
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
57
|
-
})(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:
|
53
|
+
componentId: "plasma-new-hope__sc-1nklm7n-4"
|
54
|
+
})(["padding:", ";position:relative;font-weight:600;text-align:left;height:var(", ");background-color:transparent;color:inherit;border-width:1px;border-top-width:0;border-bottom-width:0;border-style:solid;border-color:", ";&:hover{", "{display:block;}}"], function (_ref7) {
|
58
55
|
var selectionCell = _ref7.selectionCell;
|
59
56
|
return selectionCell ? "var(".concat(tokens.checkboxCellPadding, ")") : "var(".concat(tokens.cellPadding, ")");
|
60
57
|
}, tokens.headerRowHeight, function (_ref8) {
|
@@ -62,17 +59,17 @@ export var Th = /*#__PURE__*/styled.th.withConfig({
|
|
62
59
|
return borderVariant === 'all' ? "var(".concat(tokens.borderColor, ")") : 'transparent';
|
63
60
|
}, Resizer);
|
64
61
|
export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
|
65
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
62
|
+
componentId: "plasma-new-hope__sc-1nklm7n-5"
|
66
63
|
})(["", ":var(", ");", ":var(", ");", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);"], checkboxTokens.triggerSize, tokens.checkboxTriggerSize, checkboxTokens.triggerBorderRadius, tokens.checkboxTriggerBorderRadius, checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.triggerBorderColor);
|
67
64
|
export var StyledDivider = /*#__PURE__*/styled(Divider).withConfig({
|
68
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
65
|
+
componentId: "plasma-new-hope__sc-1nklm7n-6"
|
69
66
|
})(["", ":0.0625rem;", ":var(--surface-transparent-tertiary);", ":0.0625rem;"], dividerTokens.baseSideSize, dividerTokens.background, dividerTokens.borderRadius);
|
70
67
|
export var Button = /*#__PURE__*/styled(ButtonBase).withConfig({
|
71
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
68
|
+
componentId: "plasma-new-hope__sc-1nklm7n-7"
|
72
69
|
})(["", ":var(", ");", ":0.4;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], buttonTokens.buttonHeight, tokens.buttonHeight, buttonTokens.buttonDisabledOpacity, buttonTokens.buttonFontFamily, tokens.buttonFontFamily, buttonTokens.buttonFontSize, tokens.buttonFontSize, buttonTokens.buttonFontStyle, tokens.buttonFontStyle, buttonTokens.buttonFontWeight, tokens.buttonFontWeight, buttonTokens.buttonLetterSpacing, tokens.buttonLetterSpacing, buttonTokens.buttonLineHeight, tokens.buttonLineHeight);
|
73
70
|
export var ButtonAccent = /*#__PURE__*/styled(Button).withConfig({
|
74
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
71
|
+
componentId: "plasma-new-hope__sc-1nklm7n-8"
|
75
72
|
})(["", ":var(--on-dark-text-primary);", ":var(--on-dark-text-secondary);", ":var(--surface-accent);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonValueColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonBackgroundColorActive);
|
76
73
|
export var LinkButton = /*#__PURE__*/styled(LinkButtonBase).withConfig({
|
77
|
-
componentId: "plasma-new-hope__sc-1nklm7n-
|
74
|
+
componentId: "plasma-new-hope__sc-1nklm7n-9"
|
78
75
|
})(["", ":var(--text-primary);", ":var(--surface-transparent-clear);", ":var(--text-primary-hover);", ":var(--text-primary-active);", ":var(--surface-accent);", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");"], linkButtonTokens.linkButtonColor, linkButtonTokens.linkButtonBackgroundColor, linkButtonTokens.linkButtonColorHover, linkButtonTokens.linkButtonColorActive, linkButtonTokens.linkButtonFocusColor, linkButtonTokens.linkButtonFontFamily, tokens.linkButtonFontFamily, linkButtonTokens.linkButtonFontSize, tokens.linkButtonFontSize, linkButtonTokens.linkButtonFontStyle, tokens.linkButtonFontStyle, linkButtonTokens.linkButtonFontWeight, tokens.linkButtonFontWeight, linkButtonTokens.linkButtonLetterSpacing, tokens.linkButtonLetterSpacing, linkButtonTokens.linkButtonLineHeight, tokens.linkButtonLineHeight);
|
@@ -1,11 +1,3 @@
|
|
1
|
-
export var classes = {
|
2
|
-
editIcon: 'edit-icon',
|
3
|
-
sortingDefaultIcon: 'sorting-default-icon',
|
4
|
-
sortingAscIcon: 'sorting-asc-icon',
|
5
|
-
sortingDescIcon: 'sorting-desc-icon',
|
6
|
-
filterIcon: 'filter-icon',
|
7
|
-
resizeDivider: 'resize-divider'
|
8
|
-
};
|
9
1
|
export var tableTokens = {
|
10
2
|
fontFamily: '--plasma-table-font-family',
|
11
3
|
fontSize: '--plasma-table-font-size',
|
@@ -2,7 +2,7 @@ import styled from 'styled-components';
|
|
2
2
|
import { tableTokens as tokens } from '../../Table.tokens';
|
3
3
|
export var Td = /*#__PURE__*/styled.td.withConfig({
|
4
4
|
componentId: "plasma-new-hope__sc-1doamj5-0"
|
5
|
-
})(["position:relative;padding:", ";height:var(", ");border-width:
|
5
|
+
})(["position:relative;padding:", ";height:var(", ");border-width:1px;border-top-width:0;border-style:solid;border-color:", ";border-bottom-color:", ";box-sizing:border-box;"], function (_ref) {
|
6
6
|
var selectionCell = _ref.selectionCell;
|
7
7
|
return selectionCell ? "var(".concat(tokens.checkboxCellPadding, ")") : "var(".concat(tokens.cellPadding, ")");
|
8
8
|
}, tokens.rowHeight, function (_ref2) {
|