@salutejs/plasma-new-hope 0.69.0-canary.1148.8507402029.0 → 0.69.0-canary.1148.8520837057.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Cell/Cell.js +7 -6
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/Cell/ui/CellTextLabel/CellTextLabel.js +13 -0
- package/cjs/components/Cell/ui/CellTextLabel/CellTextLabel.js.map +1 -0
- package/cjs/components/Cell/{CellTextbox/ui/CellTextLabel.js → ui/CellTextLabel/CellTextLabel.styles.js} +3 -7
- package/cjs/components/Cell/ui/CellTextLabel/CellTextLabel.styles.js.map +1 -0
- package/cjs/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js +13 -0
- package/cjs/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js.map +1 -0
- package/cjs/components/Cell/{CellTextbox/ui/CellTextSubtitle.js → ui/CellTextSubtitle/CellTextSubtitle.styles.js} +3 -7
- package/cjs/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.js.map +1 -0
- package/cjs/components/Cell/ui/CellTextTitle/CellTextTitle.js +13 -0
- package/cjs/components/Cell/ui/CellTextTitle/CellTextTitle.js.map +1 -0
- package/cjs/components/Cell/{CellTextbox/ui/CellTextTitle.js → ui/CellTextTitle/CellTextTitle.styles.js} +3 -7
- package/cjs/components/Cell/ui/CellTextTitle/CellTextTitle.styles.js.map +1 -0
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +20 -0
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
- package/cjs/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.styles.js +2 -2
- package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
- package/cjs/index.js +7 -7
- package/es/components/Cell/Cell.js +7 -6
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/Cell/ui/CellTextLabel/CellTextLabel.js +9 -0
- package/es/components/Cell/ui/CellTextLabel/CellTextLabel.js.map +1 -0
- package/es/components/Cell/{CellTextbox/ui/CellTextLabel.js → ui/CellTextLabel/CellTextLabel.styles.js} +3 -7
- package/es/components/Cell/ui/CellTextLabel/CellTextLabel.styles.js.map +1 -0
- package/es/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js +9 -0
- package/es/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js.map +1 -0
- package/es/components/Cell/{CellTextbox/ui/CellTextSubtitle.js → ui/CellTextSubtitle/CellTextSubtitle.styles.js} +3 -7
- package/es/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.js.map +1 -0
- package/es/components/Cell/ui/CellTextTitle/CellTextTitle.js +9 -0
- package/es/components/Cell/ui/CellTextTitle/CellTextTitle.js.map +1 -0
- package/es/components/Cell/{CellTextbox/ui/CellTextTitle.js → ui/CellTextTitle/CellTextTitle.styles.js} +3 -7
- package/es/components/Cell/ui/CellTextTitle/CellTextTitle.styles.js.map +1 -0
- package/es/components/Cell/ui/CellTextbox/CellTextbox.js +16 -0
- package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
- package/es/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.styles.js +2 -2
- package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
- package/es/index.js +4 -4
- package/package.json +2 -2
- package/styled-components/cjs/components/Cell/Cell.js +7 -6
- package/styled-components/cjs/components/Cell/index.js +12 -12
- package/styled-components/cjs/components/Cell/ui/CellTextLabel/CellTextLabel.js +12 -0
- package/styled-components/cjs/components/Cell/{CellTextbox/ui/CellTextLabel.js → ui/CellTextLabel/CellTextLabel.styles.js} +4 -8
- package/styled-components/cjs/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js +12 -0
- package/styled-components/cjs/components/Cell/{CellTextbox/ui/CellTextSubtitle.js → ui/CellTextSubtitle/CellTextSubtitle.styles.js} +4 -8
- package/styled-components/cjs/components/Cell/ui/CellTextTitle/CellTextTitle.js +12 -0
- package/styled-components/cjs/components/Cell/{CellTextbox/ui/CellTextTitle.js → ui/CellTextTitle/CellTextTitle.styles.js} +4 -8
- package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +19 -0
- package/styled-components/cjs/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.styles.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +8 -8
- package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +3 -3
- package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +8 -8
- package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +2 -2
- package/styled-components/es/components/Cell/Cell.js +7 -6
- package/styled-components/es/components/Cell/index.js +4 -4
- package/styled-components/es/components/Cell/ui/CellTextLabel/CellTextLabel.js +5 -0
- package/styled-components/es/components/Cell/{CellTextbox/ui/CellTextLabel.js → ui/CellTextLabel/CellTextLabel.styles.js} +3 -7
- package/styled-components/es/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js +5 -0
- package/styled-components/es/components/Cell/{CellTextbox/ui/CellTextSubtitle.js → ui/CellTextSubtitle/CellTextSubtitle.styles.js} +3 -7
- package/styled-components/es/components/Cell/ui/CellTextTitle/CellTextTitle.js +5 -0
- package/styled-components/es/components/Cell/{CellTextbox/ui/CellTextTitle.js → ui/CellTextTitle/CellTextTitle.styles.js} +3 -7
- package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +12 -0
- package/styled-components/es/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.styles.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +3 -3
- package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +2 -2
- package/types/components/Cell/Cell.d.ts +2 -2
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Cell/Cell.types.d.ts +6 -1
- package/types/components/Cell/Cell.types.d.ts.map +1 -1
- package/types/components/Cell/index.d.ts +5 -5
- package/types/components/Cell/index.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextLabel/CellTextLabel.d.ts +3 -0
- package/types/components/Cell/ui/CellTextLabel/CellTextLabel.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextLabel/CellTextLabel.styles.d.ts +2 -0
- package/types/components/Cell/ui/CellTextLabel/CellTextLabel.styles.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.d.ts +3 -0
- package/types/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.d.ts +2 -0
- package/types/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextTitle/CellTextTitle.d.ts +3 -0
- package/types/components/Cell/ui/CellTextTitle/CellTextTitle.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextTitle/CellTextTitle.styles.d.ts +2 -0
- package/types/components/Cell/ui/CellTextTitle/CellTextTitle.styles.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -0
- package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts +33 -0
- package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +11 -11
- package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Cell/Cell.d.ts +11 -11
- package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +1 -1
- package/cjs/components/Cell/CellTextbox/CellTextbox.js +0 -21
- package/cjs/components/Cell/CellTextbox/CellTextbox.js.map +0 -1
- package/cjs/components/Cell/CellTextbox/CellTextbox.styles.js.map +0 -1
- package/cjs/components/Cell/CellTextbox/ui/CellTextLabel.js.map +0 -1
- package/cjs/components/Cell/CellTextbox/ui/CellTextSubtitle.js.map +0 -1
- package/cjs/components/Cell/CellTextbox/ui/CellTextTitle.js.map +0 -1
- package/es/components/Cell/CellTextbox/CellTextbox.js +0 -17
- package/es/components/Cell/CellTextbox/CellTextbox.js.map +0 -1
- package/es/components/Cell/CellTextbox/CellTextbox.styles.js.map +0 -1
- package/es/components/Cell/CellTextbox/ui/CellTextLabel.js.map +0 -1
- package/es/components/Cell/CellTextbox/ui/CellTextSubtitle.js.map +0 -1
- package/es/components/Cell/CellTextbox/ui/CellTextTitle.js.map +0 -1
- package/styled-components/cjs/components/Cell/CellTextbox/CellTextbox.js +0 -20
- package/styled-components/es/components/Cell/CellTextbox/CellTextbox.js +0 -13
- package/types/components/Cell/CellTextbox/CellTextbox.d.ts.map +0 -1
- package/types/components/Cell/CellTextbox/CellTextbox.styles.d.ts.map +0 -1
- package/types/components/Cell/CellTextbox/CellTextbox.types.d.ts +0 -43
- package/types/components/Cell/CellTextbox/CellTextbox.types.d.ts.map +0 -1
- package/types/components/Cell/CellTextbox/ui/CellTextLabel.d.ts +0 -5
- package/types/components/Cell/CellTextbox/ui/CellTextLabel.d.ts.map +0 -1
- package/types/components/Cell/CellTextbox/ui/CellTextSubtitle.d.ts +0 -5
- package/types/components/Cell/CellTextbox/ui/CellTextSubtitle.d.ts.map +0 -1
- package/types/components/Cell/CellTextbox/ui/CellTextTitle.d.ts +0 -5
- package/types/components/Cell/CellTextbox/ui/CellTextTitle.d.ts.map +0 -1
- /package/styled-components/cjs/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.types.js +0 -0
- /package/styled-components/es/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.types.js +0 -0
- /package/types/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.d.ts +0 -0
- /package/types/components/Cell/{CellTextbox → ui/CellTextbox}/CellTextbox.styles.d.ts +0 -0
@@ -8,7 +8,7 @@ var Cell_styles = require('./Cell.styles.js');
|
|
8
8
|
var Cell_tokens = require('./Cell.tokens.js');
|
9
9
|
var base = require('./variations/_view/base.js');
|
10
10
|
var base$1 = require('./variations/_size/base.js');
|
11
|
-
var CellTextbox = require('./CellTextbox/CellTextbox.js');
|
11
|
+
var CellTextbox = require('./ui/CellTextbox/CellTextbox.js');
|
12
12
|
|
13
13
|
var cellRoot = function cellRoot(Root) {
|
14
14
|
return /*#__PURE__*/React.forwardRef(function (_ref, outerRootRef) {
|
@@ -29,19 +29,20 @@ var cellRoot = function cellRoot(Root) {
|
|
29
29
|
_ref$stretching = _ref.stretching,
|
30
30
|
stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
|
31
31
|
var stretchingClass = Cell_tokens.classes["".concat(stretching, "Stretching")];
|
32
|
+
var titleText = title || description;
|
33
|
+
var contentLeftDeprecated = contentLeft || content;
|
32
34
|
return /*#__PURE__*/React.createElement(Root, {
|
33
35
|
ref: outerRootRef,
|
34
36
|
size: size,
|
35
37
|
view: view,
|
36
38
|
className: index.cx(stretchingClass, Cell_tokens.classes.cellRoot)
|
37
|
-
},
|
39
|
+
}, contentLeftDeprecated && /*#__PURE__*/React.createElement(Cell_styles.CellLeft, {
|
38
40
|
align: alignContentLeft
|
39
|
-
},
|
41
|
+
}, contentLeftDeprecated), /*#__PURE__*/React.createElement(Cell_styles.CellContentWrapper, null, /*#__PURE__*/React.createElement(Cell_styles.CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox.CellTextbox, {
|
40
42
|
label: label,
|
41
|
-
|
42
|
-
title: title,
|
43
|
+
title: titleText,
|
43
44
|
subtitle: subtitle
|
44
|
-
}) : children
|
45
|
+
}) : children), contentRight && /*#__PURE__*/React.createElement(Cell_styles.CellRight, {
|
45
46
|
align: alignContentRight
|
46
47
|
}, contentRight)));
|
47
48
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cell.js","sources":["../../../src/components/Cell/Cell.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { CellProps } from './Cell.types';\nimport { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';\nimport { classes } from './Cell.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { CellTextbox } from './CellTextbox/CellTextbox';\n\nexport const cellRoot = (Root: RootProps<
|
1
|
+
{"version":3,"file":"Cell.js","sources":["../../../src/components/Cell/Cell.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { CellProps } from './Cell.types';\nimport { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';\nimport { classes } from './Cell.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { CellTextbox } from './ui/CellTextbox/CellTextbox';\n\nexport const cellRoot = (Root: RootProps<HTMLDivElement, CellProps>) =>\n forwardRef<HTMLDivElement, CellProps>(\n (\n {\n size,\n view,\n contentLeft,\n contentRight,\n alignContentLeft = 'center',\n alignContentRight = 'center',\n children,\n title,\n subtitle,\n label,\n description,\n content,\n stretching = 'filled',\n },\n outerRootRef,\n ) => {\n const stretchingClass = classes[`${stretching}Stretching` as keyof typeof classes];\n const titleText = title || description;\n const contentLeftDeprecated = contentLeft || content;\n\n return (\n <Root ref={outerRootRef} size={size} view={view} className={cx(stretchingClass, classes.cellRoot)}>\n {contentLeftDeprecated && <CellLeft align={alignContentLeft}>{contentLeftDeprecated}</CellLeft>}\n <CellContentWrapper>\n <CellContent>\n {titleText || subtitle || label ? (\n <CellTextbox label={label} title={titleText} subtitle={subtitle} />\n ) : (\n children\n )}\n </CellContent>\n {contentRight && <CellRight align={alignContentRight}>{contentRight}</CellRight>}\n </CellContentWrapper>\n </Root>\n );\n },\n );\n\nexport const cellConfig = {\n name: 'Cell',\n tag: 'div',\n layout: cellRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["cellRoot","Root","forwardRef","_ref","outerRootRef","size","view","contentLeft","contentRight","_ref$alignContentLeft","alignContentLeft","_ref$alignContentRigh","alignContentRight","children","title","subtitle","label","description","content","_ref$stretching","stretching","stretchingClass","classes","concat","titleText","contentLeftDeprecated","React","createElement","ref","className","cx","CellLeft","align","CellContentWrapper","CellContent","CellTextbox","CellRight","cellConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":"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"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var React = require('react');
|
6
|
+
var CellTextLabel_styles = require('./CellTextLabel.styles.js');
|
7
|
+
|
8
|
+
var CellTextLabel = function CellTextLabel(props) {
|
9
|
+
return /*#__PURE__*/React.createElement(CellTextLabel_styles.StyledTextLabel, null, props.children);
|
10
|
+
};
|
11
|
+
|
12
|
+
exports.CellTextLabel = CellTextLabel;
|
13
|
+
//# sourceMappingURL=CellTextLabel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextLabel.js","sources":["../../../../../src/components/Cell/ui/CellTextLabel/CellTextLabel.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextLabel } from './CellTextLabel.styles';\n\nexport const CellTextLabel: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextLabel>{props.children}</StyledTextLabel>;\n};\n"],"names":["CellTextLabel","props","React","createElement","StyledTextLabel","children"],"mappings":";;;;;;;IAIaA,aAAuD,GAAG,SAA1DA,aAAuDA,CAAIC,KAAK,EAAK;EAC9E,oBAAOC,KAAA,CAAAC,aAAA,CAACC,oCAAe,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA0B,CAAC,CAAA;AAC9D;;;;"}
|
@@ -2,16 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var React = require('react');
|
6
5
|
var styled = require('styled-components');
|
7
6
|
var Cell_tokens = require('../../Cell.tokens.js');
|
8
7
|
|
9
8
|
var StyledTextLabel = /*#__PURE__*/styled.div.withConfig({
|
10
|
-
componentId: "plasma-new-hope__sc-
|
9
|
+
componentId: "plasma-new-hope__sc-1tqdor0-0"
|
11
10
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], Cell_tokens.tokens.cellLabelColor, Cell_tokens.tokens.cellLabelFontSize, Cell_tokens.tokens.cellLabelFontWeight, Cell_tokens.tokens.cellLabelFontFamily, Cell_tokens.tokens.cellLabelFontStyle, Cell_tokens.tokens.cellLabelLineHeight, Cell_tokens.tokens.cellLabelLetterSpacing);
|
12
|
-
var CellTextboxLabel = function CellTextboxLabel(props) {
|
13
|
-
return /*#__PURE__*/React.createElement(StyledTextLabel, null, props.children);
|
14
|
-
};
|
15
11
|
|
16
|
-
exports.
|
17
|
-
//# sourceMappingURL=CellTextLabel.js.map
|
12
|
+
exports.StyledTextLabel = StyledTextLabel;
|
13
|
+
//# sourceMappingURL=CellTextLabel.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextLabel.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextLabel/CellTextLabel.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextLabel = styled.div`\n color: var(${tokens.cellLabelColor});\n font-size: var(${tokens.cellLabelFontSize});\n font-weight: var(${tokens.cellLabelFontWeight});\n font-family: var(${tokens.cellLabelFontFamily});\n font-style: var(${tokens.cellLabelFontStyle});\n line-height: var(${tokens.cellLabelLineHeight});\n letter-spacing: var(${tokens.cellLabelLetterSpacing});\n`;\n"],"names":["StyledTextLabel","styled","div","withConfig","componentId","tokens","cellLabelColor","cellLabelFontSize","cellLabelFontWeight","cellLabelFontFamily","cellLabelFontStyle","cellLabelLineHeight","cellLabelLetterSpacing"],"mappings":";;;;;;;IAIaA,eAAe,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,+BAAA;AAAA,CACxBC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,kBAAM,CAACC,cAAc,EACjBD,kBAAM,CAACE,iBAAiB,EACtBF,kBAAM,CAACG,mBAAmB,EAC1BH,kBAAM,CAACI,mBAAmB,EAC3BJ,kBAAM,CAACK,kBAAkB,EACxBL,kBAAM,CAACM,mBAAmB,EACvBN,kBAAM,CAACO,sBAAsB;;;;"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var React = require('react');
|
6
|
+
var CellTextSubtitle_styles = require('./CellTextSubtitle.styles.js');
|
7
|
+
|
8
|
+
var CellTextSubtitle = function CellTextSubtitle(props) {
|
9
|
+
return /*#__PURE__*/React.createElement(CellTextSubtitle_styles.StyledTextSubtitle, null, props.children);
|
10
|
+
};
|
11
|
+
|
12
|
+
exports.CellTextSubtitle = CellTextSubtitle;
|
13
|
+
//# sourceMappingURL=CellTextSubtitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextSubtitle.js","sources":["../../../../../src/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextSubtitle } from './CellTextSubtitle.styles';\n\nexport const CellTextSubtitle: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextSubtitle>{props.children}</StyledTextSubtitle>;\n};\n"],"names":["CellTextSubtitle","props","React","createElement","StyledTextSubtitle","children"],"mappings":";;;;;;;IAIaA,gBAA0D,GAAG,SAA7DA,gBAA0DA,CAAIC,KAAK,EAAK;EACjF,oBAAOC,KAAA,CAAAC,aAAA,CAACC,0CAAkB,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA6B,CAAC,CAAA;AACpE;;;;"}
|
@@ -2,16 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var React = require('react');
|
6
5
|
var styled = require('styled-components');
|
7
6
|
var Cell_tokens = require('../../Cell.tokens.js');
|
8
7
|
|
9
8
|
var StyledTextSubtitle = /*#__PURE__*/styled.div.withConfig({
|
10
|
-
componentId: "plasma-new-hope__sc-
|
9
|
+
componentId: "plasma-new-hope__sc-1knq38p-0"
|
11
10
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], Cell_tokens.tokens.cellSubtitleColor, Cell_tokens.tokens.cellSubtitleFontSize, Cell_tokens.tokens.cellSubtitleFontWeight, Cell_tokens.tokens.cellSubtitleFontFamily, Cell_tokens.tokens.cellSubtitleFontStyle, Cell_tokens.tokens.cellSubtitleLineHeight, Cell_tokens.tokens.cellSubtitleLetterSpacing);
|
12
|
-
var CellTextboxSubtitle = function CellTextboxSubtitle(props) {
|
13
|
-
return /*#__PURE__*/React.createElement(StyledTextSubtitle, null, props.children);
|
14
|
-
};
|
15
11
|
|
16
|
-
exports.
|
17
|
-
//# sourceMappingURL=CellTextSubtitle.js.map
|
12
|
+
exports.StyledTextSubtitle = StyledTextSubtitle;
|
13
|
+
//# sourceMappingURL=CellTextSubtitle.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextSubtitle.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextSubtitle = styled.div`\n color: var(${tokens.cellSubtitleColor});\n font-size: var(${tokens.cellSubtitleFontSize});\n font-weight: var(${tokens.cellSubtitleFontWeight});\n font-family: var(${tokens.cellSubtitleFontFamily});\n font-style: var(${tokens.cellSubtitleFontStyle});\n line-height: var(${tokens.cellSubtitleLineHeight});\n letter-spacing: var(${tokens.cellSubtitleLetterSpacing});\n`;\n"],"names":["StyledTextSubtitle","styled","div","withConfig","componentId","tokens","cellSubtitleColor","cellSubtitleFontSize","cellSubtitleFontWeight","cellSubtitleFontFamily","cellSubtitleFontStyle","cellSubtitleLineHeight","cellSubtitleLetterSpacing"],"mappings":";;;;;;;IAIaA,kBAAkB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,+BAAA;AAAA,CAC3BC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,kBAAM,CAACC,iBAAiB,EACpBD,kBAAM,CAACE,oBAAoB,EACzBF,kBAAM,CAACG,sBAAsB,EAC7BH,kBAAM,CAACI,sBAAsB,EAC9BJ,kBAAM,CAACK,qBAAqB,EAC3BL,kBAAM,CAACM,sBAAsB,EAC1BN,kBAAM,CAACO,yBAAyB;;;;"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var React = require('react');
|
6
|
+
var CellTextTitle_styles = require('./CellTextTitle.styles.js');
|
7
|
+
|
8
|
+
var CellTextTitle = function CellTextTitle(props) {
|
9
|
+
return /*#__PURE__*/React.createElement(CellTextTitle_styles.StyledTextTitle, null, props.children);
|
10
|
+
};
|
11
|
+
|
12
|
+
exports.CellTextTitle = CellTextTitle;
|
13
|
+
//# sourceMappingURL=CellTextTitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextTitle.js","sources":["../../../../../src/components/Cell/ui/CellTextTitle/CellTextTitle.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextTitle } from './CellTextTitle.styles';\n\nexport const CellTextTitle: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextTitle>{props.children}</StyledTextTitle>;\n};\n"],"names":["CellTextTitle","props","React","createElement","StyledTextTitle","children"],"mappings":";;;;;;;IAIaA,aAAuD,GAAG,SAA1DA,aAAuDA,CAAIC,KAAK,EAAK;EAC9E,oBAAOC,KAAA,CAAAC,aAAA,CAACC,oCAAe,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA0B,CAAC,CAAA;AAC9D;;;;"}
|
@@ -2,16 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var React = require('react');
|
6
5
|
var styled = require('styled-components');
|
7
6
|
var Cell_tokens = require('../../Cell.tokens.js');
|
8
7
|
|
9
8
|
var StyledTextTitle = /*#__PURE__*/styled.div.withConfig({
|
10
|
-
componentId: "plasma-new-hope__sc-
|
9
|
+
componentId: "plasma-new-hope__sc-pvtsj3-0"
|
11
10
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], Cell_tokens.tokens.cellTitleColor, Cell_tokens.tokens.cellTitleFontSize, Cell_tokens.tokens.cellTitleFontWeight, Cell_tokens.tokens.cellTitleFontFamily, Cell_tokens.tokens.cellTitleFontStyle, Cell_tokens.tokens.cellTitleLineHeight, Cell_tokens.tokens.cellTitleLetterSpacing);
|
12
|
-
var CellTextboxTitle = function CellTextboxTitle(props) {
|
13
|
-
return /*#__PURE__*/React.createElement(StyledTextTitle, null, props.children);
|
14
|
-
};
|
15
11
|
|
16
|
-
exports.
|
17
|
-
//# sourceMappingURL=CellTextTitle.js.map
|
12
|
+
exports.StyledTextTitle = StyledTextTitle;
|
13
|
+
//# sourceMappingURL=CellTextTitle.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextTitle.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextTitle/CellTextTitle.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextTitle = styled.div`\n color: var(${tokens.cellTitleColor});\n font-size: var(${tokens.cellTitleFontSize});\n font-weight: var(${tokens.cellTitleFontWeight});\n font-family: var(${tokens.cellTitleFontFamily});\n font-style: var(${tokens.cellTitleFontStyle});\n line-height: var(${tokens.cellTitleLineHeight});\n letter-spacing: var(${tokens.cellTitleLetterSpacing});\n`;\n"],"names":["StyledTextTitle","styled","div","withConfig","componentId","tokens","cellTitleColor","cellTitleFontSize","cellTitleFontWeight","cellTitleFontFamily","cellTitleFontStyle","cellTitleLineHeight","cellTitleLetterSpacing"],"mappings":";;;;;;;IAIaA,eAAe,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8BAAA;AAAA,CACxBC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,kBAAM,CAACC,cAAc,EACjBD,kBAAM,CAACE,iBAAiB,EACtBF,kBAAM,CAACG,mBAAmB,EAC1BH,kBAAM,CAACI,mBAAmB,EAC3BJ,kBAAM,CAACK,kBAAkB,EACxBL,kBAAM,CAACM,mBAAmB,EACvBN,kBAAM,CAACO,sBAAsB;;;;"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var React = require('react');
|
6
|
+
var CellTextLabel = require('../CellTextLabel/CellTextLabel.js');
|
7
|
+
var CellTextTitle = require('../CellTextTitle/CellTextTitle.js');
|
8
|
+
var CellTextSubtitle = require('../CellTextSubtitle/CellTextSubtitle.js');
|
9
|
+
var CellTextbox_styles = require('./CellTextbox.styles.js');
|
10
|
+
|
11
|
+
var CellTextbox = function CellTextbox(_ref) {
|
12
|
+
var label = _ref.label,
|
13
|
+
title = _ref.title,
|
14
|
+
subtitle = _ref.subtitle,
|
15
|
+
children = _ref.children;
|
16
|
+
return /*#__PURE__*/React.createElement(CellTextbox_styles.CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextLabel.CellTextLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextTitle.CellTextTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextSubtitle.CellTextSubtitle, null, subtitle)) : children);
|
17
|
+
};
|
18
|
+
|
19
|
+
exports.CellTextbox = CellTextbox;
|
20
|
+
//# sourceMappingURL=CellTextbox.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextbox.js","sources":["../../../../../src/components/Cell/ui/CellTextbox/CellTextbox.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { CellTextLabel } from '../CellTextLabel/CellTextLabel';\nimport { CellTextTitle } from '../CellTextTitle/CellTextTitle';\nimport { CellTextSubtitle } from '../CellTextSubtitle/CellTextSubtitle';\n\nimport { CellTextboxStyled } from './CellTextbox.styles';\nimport type { CellTextboxProps } from './CellTextbox.types';\n\nexport const CellTextbox: React.FC<HTMLAttributes<HTMLDivElement> & CellTextboxProps> = ({\n label,\n title,\n subtitle,\n children,\n}) => {\n return (\n <CellTextboxStyled>\n {label || title || subtitle ? (\n <>\n {label && <CellTextLabel>{label}</CellTextLabel>}\n {title && <CellTextTitle>{title}</CellTextTitle>}\n {subtitle && <CellTextSubtitle>{subtitle}</CellTextSubtitle>}\n </>\n ) : (\n children\n )}\n </CellTextboxStyled>\n );\n};\n"],"names":["CellTextbox","_ref","label","title","subtitle","children","React","createElement","CellTextboxStyled","Fragment","CellTextLabel","CellTextTitle","CellTextSubtitle"],"mappings":";;;;;;;;;;IASaA,WAAwE,GAAG,SAA3EA,WAAwEA,CAAAC,IAAA,EAK/E;AAAA,EAAA,IAJFC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ,CAAA;EAER,oBACIC,KAAA,CAAAC,aAAA,CAACC,oCAAiB,QACbN,KAAK,IAAIC,KAAK,IAAIC,QAAQ,gBACvBE,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAG,QAAA,EACKP,IAAAA,EAAAA,KAAK,iBAAII,KAAA,CAAAC,aAAA,CAACG,2BAAa,QAAER,KAAqB,CAAC,EAC/CC,KAAK,iBAAIG,KAAA,CAAAC,aAAA,CAACI,2BAAa,EAAER,IAAAA,EAAAA,KAAqB,CAAC,EAC/CC,QAAQ,iBAAIE,KAAA,CAAAC,aAAA,CAACK,iCAAgB,EAAER,IAAAA,EAAAA,QAA2B,CAC7D,CAAC,GAEHC,QAEW,CAAC,CAAA;AAE5B;;;;"}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var styled = require('styled-components');
|
6
|
-
var Cell_tokens = require('
|
6
|
+
var Cell_tokens = require('../../Cell.tokens.js');
|
7
7
|
|
8
8
|
var CellTextboxStyled = /*#__PURE__*/styled.div.withConfig({
|
9
|
-
componentId: "plasma-new-hope__sc-
|
9
|
+
componentId: "plasma-new-hope__sc-gn95dc-0"
|
10
10
|
})(["display:flex;flex-direction:column;gap:var(", ");"], Cell_tokens.tokens.cellTextboxGap);
|
11
11
|
|
12
12
|
exports.CellTextboxStyled = CellTextboxStyled;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextbox.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextbox/CellTextbox.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const CellTextboxStyled = styled.div`\n display: flex;\n flex-direction: column;\n gap: var(${tokens.cellTextboxGap});\n`;\n"],"names":["CellTextboxStyled","styled","div","withConfig","componentId","tokens","cellTextboxGap"],"mappings":";;;;;;;IAIaA,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8BAAA;AAAA,CAG5BC,CAAAA,CAAAA,CAAAA,6CAAAA,EAAAA,IAAAA,CAAAA,EAAAA,kBAAM,CAACC,cAAc;;;;"}
|
package/cjs/index.js
CHANGED
@@ -23,12 +23,12 @@ var ButtonGroup = require('./components/ButtonGroup/ButtonGroup.js');
|
|
23
23
|
var ButtonGroup_tokens = require('./components/ButtonGroup/ButtonGroup.tokens.js');
|
24
24
|
var Chip = require('./components/Chip/Chip.js');
|
25
25
|
var Chip_tokens = require('./components/Chip/Chip.tokens.js');
|
26
|
-
var CellTextLabel = require('./components/Cell/
|
27
|
-
var CellTextTitle = require('./components/Cell/
|
28
|
-
var CellTextSubtitle = require('./components/Cell/
|
26
|
+
var CellTextLabel = require('./components/Cell/ui/CellTextLabel/CellTextLabel.js');
|
27
|
+
var CellTextTitle = require('./components/Cell/ui/CellTextTitle/CellTextTitle.js');
|
28
|
+
var CellTextSubtitle = require('./components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js');
|
29
29
|
var Cell = require('./components/Cell/Cell.js');
|
30
30
|
var Cell_tokens = require('./components/Cell/Cell.tokens.js');
|
31
|
-
var CellTextbox = require('./components/Cell/CellTextbox/CellTextbox.js');
|
31
|
+
var CellTextbox = require('./components/Cell/ui/CellTextbox/CellTextbox.js');
|
32
32
|
var Link = require('./components/Link/Link.js');
|
33
33
|
var Spinner = require('./components/Spinner/Spinner.js');
|
34
34
|
var Spinner_tokens = require('./components/Spinner/Spinner.tokens.js');
|
@@ -244,9 +244,9 @@ exports.buttonGroupTokens = ButtonGroup_tokens.tokens;
|
|
244
244
|
exports.chipConfig = Chip.chipConfig;
|
245
245
|
exports.chipRoot = Chip.chipRoot;
|
246
246
|
exports.chipTokens = Chip_tokens.tokens;
|
247
|
-
exports.
|
248
|
-
exports.
|
249
|
-
exports.
|
247
|
+
exports.CellTextLabel = CellTextLabel.CellTextLabel;
|
248
|
+
exports.CellTextTitle = CellTextTitle.CellTextTitle;
|
249
|
+
exports.CellTextSubtitle = CellTextSubtitle.CellTextSubtitle;
|
250
250
|
exports.cellConfig = Cell.cellConfig;
|
251
251
|
exports.cellRoot = Cell.cellRoot;
|
252
252
|
exports.cellClasses = Cell_tokens.classes;
|
@@ -4,7 +4,7 @@ import { CellLeft, CellContentWrapper, CellContent, CellRight, base } from './Ce
|
|
4
4
|
import { classes } from './Cell.tokens.js';
|
5
5
|
import { base as base$1 } from './variations/_view/base.js';
|
6
6
|
import { base as base$2 } from './variations/_size/base.js';
|
7
|
-
import { CellTextbox } from './CellTextbox/CellTextbox.js';
|
7
|
+
import { CellTextbox } from './ui/CellTextbox/CellTextbox.js';
|
8
8
|
|
9
9
|
var cellRoot = function cellRoot(Root) {
|
10
10
|
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
@@ -25,19 +25,20 @@ var cellRoot = function cellRoot(Root) {
|
|
25
25
|
_ref$stretching = _ref.stretching,
|
26
26
|
stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
|
27
27
|
var stretchingClass = classes["".concat(stretching, "Stretching")];
|
28
|
+
var titleText = title || description;
|
29
|
+
var contentLeftDeprecated = contentLeft || content;
|
28
30
|
return /*#__PURE__*/React.createElement(Root, {
|
29
31
|
ref: outerRootRef,
|
30
32
|
size: size,
|
31
33
|
view: view,
|
32
34
|
className: cx(stretchingClass, classes.cellRoot)
|
33
|
-
},
|
35
|
+
}, contentLeftDeprecated && /*#__PURE__*/React.createElement(CellLeft, {
|
34
36
|
align: alignContentLeft
|
35
|
-
},
|
37
|
+
}, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
|
36
38
|
label: label,
|
37
|
-
|
38
|
-
title: title,
|
39
|
+
title: titleText,
|
39
40
|
subtitle: subtitle
|
40
|
-
}) : children
|
41
|
+
}) : children), contentRight && /*#__PURE__*/React.createElement(CellRight, {
|
41
42
|
align: alignContentRight
|
42
43
|
}, contentRight)));
|
43
44
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cell.js","sources":["../../../src/components/Cell/Cell.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { CellProps } from './Cell.types';\nimport { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';\nimport { classes } from './Cell.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { CellTextbox } from './CellTextbox/CellTextbox';\n\nexport const cellRoot = (Root: RootProps<
|
1
|
+
{"version":3,"file":"Cell.js","sources":["../../../src/components/Cell/Cell.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { CellProps } from './Cell.types';\nimport { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';\nimport { classes } from './Cell.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { CellTextbox } from './ui/CellTextbox/CellTextbox';\n\nexport const cellRoot = (Root: RootProps<HTMLDivElement, CellProps>) =>\n forwardRef<HTMLDivElement, CellProps>(\n (\n {\n size,\n view,\n contentLeft,\n contentRight,\n alignContentLeft = 'center',\n alignContentRight = 'center',\n children,\n title,\n subtitle,\n label,\n description,\n content,\n stretching = 'filled',\n },\n outerRootRef,\n ) => {\n const stretchingClass = classes[`${stretching}Stretching` as keyof typeof classes];\n const titleText = title || description;\n const contentLeftDeprecated = contentLeft || content;\n\n return (\n <Root ref={outerRootRef} size={size} view={view} className={cx(stretchingClass, classes.cellRoot)}>\n {contentLeftDeprecated && <CellLeft align={alignContentLeft}>{contentLeftDeprecated}</CellLeft>}\n <CellContentWrapper>\n <CellContent>\n {titleText || subtitle || label ? (\n <CellTextbox label={label} title={titleText} subtitle={subtitle} />\n ) : (\n children\n )}\n </CellContent>\n {contentRight && <CellRight align={alignContentRight}>{contentRight}</CellRight>}\n </CellContentWrapper>\n </Root>\n );\n },\n );\n\nexport const cellConfig = {\n name: 'Cell',\n tag: 'div',\n layout: cellRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["cellRoot","Root","forwardRef","_ref","outerRootRef","size","view","contentLeft","contentRight","_ref$alignContentLeft","alignContentLeft","_ref$alignContentRigh","alignContentRight","children","title","subtitle","label","description","content","_ref$stretching","stretching","stretchingClass","classes","concat","titleText","contentLeftDeprecated","React","createElement","ref","className","cx","CellLeft","align","CellContentWrapper","CellContent","CellTextbox","CellRight","cellConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":"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"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { StyledTextLabel } from './CellTextLabel.styles.js';
|
3
|
+
|
4
|
+
var CellTextLabel = function CellTextLabel(props) {
|
5
|
+
return /*#__PURE__*/React.createElement(StyledTextLabel, null, props.children);
|
6
|
+
};
|
7
|
+
|
8
|
+
export { CellTextLabel };
|
9
|
+
//# sourceMappingURL=CellTextLabel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextLabel.js","sources":["../../../../../src/components/Cell/ui/CellTextLabel/CellTextLabel.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextLabel } from './CellTextLabel.styles';\n\nexport const CellTextLabel: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextLabel>{props.children}</StyledTextLabel>;\n};\n"],"names":["CellTextLabel","props","React","createElement","StyledTextLabel","children"],"mappings":";;;IAIaA,aAAuD,GAAG,SAA1DA,aAAuDA,CAAIC,KAAK,EAAK;EAC9E,oBAAOC,KAAA,CAAAC,aAAA,CAACC,eAAe,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA0B,CAAC,CAAA;AAC9D;;;;"}
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import styled from 'styled-components';
|
3
2
|
import { tokens } from '../../Cell.tokens.js';
|
4
3
|
|
5
4
|
var StyledTextLabel = /*#__PURE__*/styled.div.withConfig({
|
6
|
-
componentId: "plasma-new-hope__sc-
|
5
|
+
componentId: "plasma-new-hope__sc-1tqdor0-0"
|
7
6
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], tokens.cellLabelColor, tokens.cellLabelFontSize, tokens.cellLabelFontWeight, tokens.cellLabelFontFamily, tokens.cellLabelFontStyle, tokens.cellLabelLineHeight, tokens.cellLabelLetterSpacing);
|
8
|
-
var CellTextboxLabel = function CellTextboxLabel(props) {
|
9
|
-
return /*#__PURE__*/React.createElement(StyledTextLabel, null, props.children);
|
10
|
-
};
|
11
7
|
|
12
|
-
export {
|
13
|
-
//# sourceMappingURL=CellTextLabel.js.map
|
8
|
+
export { StyledTextLabel };
|
9
|
+
//# sourceMappingURL=CellTextLabel.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextLabel.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextLabel/CellTextLabel.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextLabel = styled.div`\n color: var(${tokens.cellLabelColor});\n font-size: var(${tokens.cellLabelFontSize});\n font-weight: var(${tokens.cellLabelFontWeight});\n font-family: var(${tokens.cellLabelFontFamily});\n font-style: var(${tokens.cellLabelFontStyle});\n line-height: var(${tokens.cellLabelLineHeight});\n letter-spacing: var(${tokens.cellLabelLetterSpacing});\n`;\n"],"names":["StyledTextLabel","styled","div","withConfig","componentId","tokens","cellLabelColor","cellLabelFontSize","cellLabelFontWeight","cellLabelFontFamily","cellLabelFontStyle","cellLabelLineHeight","cellLabelLetterSpacing"],"mappings":";;;IAIaA,eAAe,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,+BAAA;AAAA,CACxBC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,MAAM,CAACC,cAAc,EACjBD,MAAM,CAACE,iBAAiB,EACtBF,MAAM,CAACG,mBAAmB,EAC1BH,MAAM,CAACI,mBAAmB,EAC3BJ,MAAM,CAACK,kBAAkB,EACxBL,MAAM,CAACM,mBAAmB,EACvBN,MAAM,CAACO,sBAAsB;;;;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { StyledTextSubtitle } from './CellTextSubtitle.styles.js';
|
3
|
+
|
4
|
+
var CellTextSubtitle = function CellTextSubtitle(props) {
|
5
|
+
return /*#__PURE__*/React.createElement(StyledTextSubtitle, null, props.children);
|
6
|
+
};
|
7
|
+
|
8
|
+
export { CellTextSubtitle };
|
9
|
+
//# sourceMappingURL=CellTextSubtitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextSubtitle.js","sources":["../../../../../src/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextSubtitle } from './CellTextSubtitle.styles';\n\nexport const CellTextSubtitle: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextSubtitle>{props.children}</StyledTextSubtitle>;\n};\n"],"names":["CellTextSubtitle","props","React","createElement","StyledTextSubtitle","children"],"mappings":";;;IAIaA,gBAA0D,GAAG,SAA7DA,gBAA0DA,CAAIC,KAAK,EAAK;EACjF,oBAAOC,KAAA,CAAAC,aAAA,CAACC,kBAAkB,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA6B,CAAC,CAAA;AACpE;;;;"}
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import styled from 'styled-components';
|
3
2
|
import { tokens } from '../../Cell.tokens.js';
|
4
3
|
|
5
4
|
var StyledTextSubtitle = /*#__PURE__*/styled.div.withConfig({
|
6
|
-
componentId: "plasma-new-hope__sc-
|
5
|
+
componentId: "plasma-new-hope__sc-1knq38p-0"
|
7
6
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], tokens.cellSubtitleColor, tokens.cellSubtitleFontSize, tokens.cellSubtitleFontWeight, tokens.cellSubtitleFontFamily, tokens.cellSubtitleFontStyle, tokens.cellSubtitleLineHeight, tokens.cellSubtitleLetterSpacing);
|
8
|
-
var CellTextboxSubtitle = function CellTextboxSubtitle(props) {
|
9
|
-
return /*#__PURE__*/React.createElement(StyledTextSubtitle, null, props.children);
|
10
|
-
};
|
11
7
|
|
12
|
-
export {
|
13
|
-
//# sourceMappingURL=CellTextSubtitle.js.map
|
8
|
+
export { StyledTextSubtitle };
|
9
|
+
//# sourceMappingURL=CellTextSubtitle.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextSubtitle.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextSubtitle/CellTextSubtitle.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextSubtitle = styled.div`\n color: var(${tokens.cellSubtitleColor});\n font-size: var(${tokens.cellSubtitleFontSize});\n font-weight: var(${tokens.cellSubtitleFontWeight});\n font-family: var(${tokens.cellSubtitleFontFamily});\n font-style: var(${tokens.cellSubtitleFontStyle});\n line-height: var(${tokens.cellSubtitleLineHeight});\n letter-spacing: var(${tokens.cellSubtitleLetterSpacing});\n`;\n"],"names":["StyledTextSubtitle","styled","div","withConfig","componentId","tokens","cellSubtitleColor","cellSubtitleFontSize","cellSubtitleFontWeight","cellSubtitleFontFamily","cellSubtitleFontStyle","cellSubtitleLineHeight","cellSubtitleLetterSpacing"],"mappings":";;;IAIaA,kBAAkB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,+BAAA;AAAA,CAC3BC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,MAAM,CAACC,iBAAiB,EACpBD,MAAM,CAACE,oBAAoB,EACzBF,MAAM,CAACG,sBAAsB,EAC7BH,MAAM,CAACI,sBAAsB,EAC9BJ,MAAM,CAACK,qBAAqB,EAC3BL,MAAM,CAACM,sBAAsB,EAC1BN,MAAM,CAACO,yBAAyB;;;;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { StyledTextTitle } from './CellTextTitle.styles.js';
|
3
|
+
|
4
|
+
var CellTextTitle = function CellTextTitle(props) {
|
5
|
+
return /*#__PURE__*/React.createElement(StyledTextTitle, null, props.children);
|
6
|
+
};
|
7
|
+
|
8
|
+
export { CellTextTitle };
|
9
|
+
//# sourceMappingURL=CellTextTitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextTitle.js","sources":["../../../../../src/components/Cell/ui/CellTextTitle/CellTextTitle.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledTextTitle } from './CellTextTitle.styles';\n\nexport const CellTextTitle: React.FC<HTMLAttributes<HTMLDivElement>> = (props) => {\n return <StyledTextTitle>{props.children}</StyledTextTitle>;\n};\n"],"names":["CellTextTitle","props","React","createElement","StyledTextTitle","children"],"mappings":";;;IAIaA,aAAuD,GAAG,SAA1DA,aAAuDA,CAAIC,KAAK,EAAK;EAC9E,oBAAOC,KAAA,CAAAC,aAAA,CAACC,eAAe,EAAEH,IAAAA,EAAAA,KAAK,CAACI,QAA0B,CAAC,CAAA;AAC9D;;;;"}
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import styled from 'styled-components';
|
3
2
|
import { tokens } from '../../Cell.tokens.js';
|
4
3
|
|
5
4
|
var StyledTextTitle = /*#__PURE__*/styled.div.withConfig({
|
6
|
-
componentId: "plasma-new-hope__sc-
|
5
|
+
componentId: "plasma-new-hope__sc-pvtsj3-0"
|
7
6
|
})(["color:var(", ");font-size:var(", ");font-weight:var(", ");font-family:var(", ");font-style:var(", ");line-height:var(", ");letter-spacing:var(", ");"], tokens.cellTitleColor, tokens.cellTitleFontSize, tokens.cellTitleFontWeight, tokens.cellTitleFontFamily, tokens.cellTitleFontStyle, tokens.cellTitleLineHeight, tokens.cellTitleLetterSpacing);
|
8
|
-
var CellTextboxTitle = function CellTextboxTitle(props) {
|
9
|
-
return /*#__PURE__*/React.createElement(StyledTextTitle, null, props.children);
|
10
|
-
};
|
11
7
|
|
12
|
-
export {
|
13
|
-
//# sourceMappingURL=CellTextTitle.js.map
|
8
|
+
export { StyledTextTitle };
|
9
|
+
//# sourceMappingURL=CellTextTitle.styles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextTitle.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextTitle/CellTextTitle.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const StyledTextTitle = styled.div`\n color: var(${tokens.cellTitleColor});\n font-size: var(${tokens.cellTitleFontSize});\n font-weight: var(${tokens.cellTitleFontWeight});\n font-family: var(${tokens.cellTitleFontFamily});\n font-style: var(${tokens.cellTitleFontStyle});\n line-height: var(${tokens.cellTitleLineHeight});\n letter-spacing: var(${tokens.cellTitleLetterSpacing});\n`;\n"],"names":["StyledTextTitle","styled","div","withConfig","componentId","tokens","cellTitleColor","cellTitleFontSize","cellTitleFontWeight","cellTitleFontFamily","cellTitleFontStyle","cellTitleLineHeight","cellTitleLetterSpacing"],"mappings":";;;IAIaA,eAAe,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8BAAA;AAAA,CACxBC,CAAAA,CAAAA,CAAAA,YAAAA,EAAAA,kBAAAA,EAAAA,oBAAAA,EAAAA,oBAAAA,EAAAA,mBAAAA,EAAAA,oBAAAA,EAAAA,uBAAAA,EAAAA,IAAAA,CAAAA,EAAAA,MAAM,CAACC,cAAc,EACjBD,MAAM,CAACE,iBAAiB,EACtBF,MAAM,CAACG,mBAAmB,EAC1BH,MAAM,CAACI,mBAAmB,EAC3BJ,MAAM,CAACK,kBAAkB,EACxBL,MAAM,CAACM,mBAAmB,EACvBN,MAAM,CAACO,sBAAsB;;;;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { CellTextLabel } from '../CellTextLabel/CellTextLabel.js';
|
3
|
+
import { CellTextTitle } from '../CellTextTitle/CellTextTitle.js';
|
4
|
+
import { CellTextSubtitle } from '../CellTextSubtitle/CellTextSubtitle.js';
|
5
|
+
import { CellTextboxStyled } from './CellTextbox.styles.js';
|
6
|
+
|
7
|
+
var CellTextbox = function CellTextbox(_ref) {
|
8
|
+
var label = _ref.label,
|
9
|
+
title = _ref.title,
|
10
|
+
subtitle = _ref.subtitle,
|
11
|
+
children = _ref.children;
|
12
|
+
return /*#__PURE__*/React.createElement(CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextSubtitle, null, subtitle)) : children);
|
13
|
+
};
|
14
|
+
|
15
|
+
export { CellTextbox };
|
16
|
+
//# sourceMappingURL=CellTextbox.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextbox.js","sources":["../../../../../src/components/Cell/ui/CellTextbox/CellTextbox.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { CellTextLabel } from '../CellTextLabel/CellTextLabel';\nimport { CellTextTitle } from '../CellTextTitle/CellTextTitle';\nimport { CellTextSubtitle } from '../CellTextSubtitle/CellTextSubtitle';\n\nimport { CellTextboxStyled } from './CellTextbox.styles';\nimport type { CellTextboxProps } from './CellTextbox.types';\n\nexport const CellTextbox: React.FC<HTMLAttributes<HTMLDivElement> & CellTextboxProps> = ({\n label,\n title,\n subtitle,\n children,\n}) => {\n return (\n <CellTextboxStyled>\n {label || title || subtitle ? (\n <>\n {label && <CellTextLabel>{label}</CellTextLabel>}\n {title && <CellTextTitle>{title}</CellTextTitle>}\n {subtitle && <CellTextSubtitle>{subtitle}</CellTextSubtitle>}\n </>\n ) : (\n children\n )}\n </CellTextboxStyled>\n );\n};\n"],"names":["CellTextbox","_ref","label","title","subtitle","children","React","createElement","CellTextboxStyled","Fragment","CellTextLabel","CellTextTitle","CellTextSubtitle"],"mappings":";;;;;;IASaA,WAAwE,GAAG,SAA3EA,WAAwEA,CAAAC,IAAA,EAK/E;AAAA,EAAA,IAJFC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ,CAAA;EAER,oBACIC,KAAA,CAAAC,aAAA,CAACC,iBAAiB,QACbN,KAAK,IAAIC,KAAK,IAAIC,QAAQ,gBACvBE,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAG,QAAA,EACKP,IAAAA,EAAAA,KAAK,iBAAII,KAAA,CAAAC,aAAA,CAACG,aAAa,QAAER,KAAqB,CAAC,EAC/CC,KAAK,iBAAIG,KAAA,CAAAC,aAAA,CAACI,aAAa,EAAER,IAAAA,EAAAA,KAAqB,CAAC,EAC/CC,QAAQ,iBAAIE,KAAA,CAAAC,aAAA,CAACK,gBAAgB,EAAER,IAAAA,EAAAA,QAA2B,CAC7D,CAAC,GAEHC,QAEW,CAAC,CAAA;AAE5B;;;;"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { tokens } from '
|
2
|
+
import { tokens } from '../../Cell.tokens.js';
|
3
3
|
|
4
4
|
var CellTextboxStyled = /*#__PURE__*/styled.div.withConfig({
|
5
|
-
componentId: "plasma-new-hope__sc-
|
5
|
+
componentId: "plasma-new-hope__sc-gn95dc-0"
|
6
6
|
})(["display:flex;flex-direction:column;gap:var(", ");"], tokens.cellTextboxGap);
|
7
7
|
|
8
8
|
export { CellTextboxStyled };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CellTextbox.styles.js","sources":["../../../../../src/components/Cell/ui/CellTextbox/CellTextbox.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { tokens } from '../../Cell.tokens';\n\nexport const CellTextboxStyled = styled.div`\n display: flex;\n flex-direction: column;\n gap: var(${tokens.cellTextboxGap});\n`;\n"],"names":["CellTextboxStyled","styled","div","withConfig","componentId","tokens","cellTextboxGap"],"mappings":";;;IAIaA,iBAAiB,gBAAGC,MAAM,CAACC,GAAG,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,8BAAA;AAAA,CAG5BC,CAAAA,CAAAA,CAAAA,6CAAAA,EAAAA,IAAAA,CAAAA,EAAAA,MAAM,CAACC,cAAc;;;;"}
|
package/es/index.js
CHANGED
@@ -19,12 +19,12 @@ export { buttonGroupConfig, buttonGroupRoot } from './components/ButtonGroup/But
|
|
19
19
|
export { classes as buttonGroupClasses, tokens as buttonGroupTokens } from './components/ButtonGroup/ButtonGroup.tokens.js';
|
20
20
|
export { chipConfig, chipRoot } from './components/Chip/Chip.js';
|
21
21
|
export { tokens as chipTokens } from './components/Chip/Chip.tokens.js';
|
22
|
-
export {
|
23
|
-
export {
|
24
|
-
export {
|
22
|
+
export { CellTextLabel } from './components/Cell/ui/CellTextLabel/CellTextLabel.js';
|
23
|
+
export { CellTextTitle } from './components/Cell/ui/CellTextTitle/CellTextTitle.js';
|
24
|
+
export { CellTextSubtitle } from './components/Cell/ui/CellTextSubtitle/CellTextSubtitle.js';
|
25
25
|
export { cellConfig, cellRoot } from './components/Cell/Cell.js';
|
26
26
|
export { classes as cellClasses, tokens as cellTokens } from './components/Cell/Cell.tokens.js';
|
27
|
-
export { CellTextbox } from './components/Cell/CellTextbox/CellTextbox.js';
|
27
|
+
export { CellTextbox } from './components/Cell/ui/CellTextbox/CellTextbox.js';
|
28
28
|
export { linkConfig, linkRoot } from './components/Link/Link.js';
|
29
29
|
export { spinnerConfig, spinnerRoot } from './components/Spinner/Spinner.js';
|
30
30
|
export { tokens as spinnerTokens } from './components/Spinner/Spinner.tokens.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.69.0-canary.1148.
|
3
|
+
"version": "0.69.0-canary.1148.8520837057.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -102,5 +102,5 @@
|
|
102
102
|
"react-popper": "2.3.0",
|
103
103
|
"storeon": "3.1.5"
|
104
104
|
},
|
105
|
-
"gitHead": "
|
105
|
+
"gitHead": "faed02e745e943828a9f05e6f1e0d48cbfd1117a"
|
106
106
|
}
|
@@ -11,7 +11,7 @@ var _Cell = /*#__PURE__*/require("./Cell.styles");
|
|
11
11
|
var _Cell2 = /*#__PURE__*/require("./Cell.tokens");
|
12
12
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
13
13
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
14
|
-
var _CellTextbox = /*#__PURE__*/require("./CellTextbox/CellTextbox");
|
14
|
+
var _CellTextbox = /*#__PURE__*/require("./ui/CellTextbox/CellTextbox");
|
15
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); }
|
16
16
|
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 && Object.prototype.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; }
|
17
17
|
var cellRoot = exports.cellRoot = function cellRoot(Root) {
|
@@ -33,19 +33,20 @@ var cellRoot = exports.cellRoot = function cellRoot(Root) {
|
|
33
33
|
_ref$stretching = _ref.stretching,
|
34
34
|
stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
|
35
35
|
var stretchingClass = _Cell2.classes["".concat(stretching, "Stretching")];
|
36
|
+
var titleText = title || description;
|
37
|
+
var contentLeftDeprecated = contentLeft || content;
|
36
38
|
return /*#__PURE__*/_react["default"].createElement(Root, {
|
37
39
|
ref: outerRootRef,
|
38
40
|
size: size,
|
39
41
|
view: view,
|
40
42
|
className: (0, _utils.cx)(stretchingClass, _Cell2.classes.cellRoot)
|
41
|
-
},
|
43
|
+
}, contentLeftDeprecated && /*#__PURE__*/_react["default"].createElement(_Cell.CellLeft, {
|
42
44
|
align: alignContentLeft
|
43
|
-
},
|
45
|
+
}, contentLeftDeprecated), /*#__PURE__*/_react["default"].createElement(_Cell.CellContentWrapper, null, /*#__PURE__*/_react["default"].createElement(_Cell.CellContent, null, titleText || subtitle || label ? /*#__PURE__*/_react["default"].createElement(_CellTextbox.CellTextbox, {
|
44
46
|
label: label,
|
45
|
-
|
46
|
-
title: title,
|
47
|
+
title: titleText,
|
47
48
|
subtitle: subtitle
|
48
|
-
}) : children
|
49
|
+
}) : children), contentRight && /*#__PURE__*/_react["default"].createElement(_Cell.CellRight, {
|
49
50
|
align: alignContentRight
|
50
51
|
}, contentRight)));
|
51
52
|
});
|