@salutejs/plasma-new-hope 0.68.0-canary.1148.8452223133.0 → 0.68.0-canary.1151.8450920847.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. package/cjs/index.css +0 -4
  2. package/cjs/index.js +0 -14
  3. package/cjs/index.js.map +1 -1
  4. package/es/index.css +0 -4
  5. package/es/index.js +0 -6
  6. package/es/index.js.map +1 -1
  7. package/package.json +4 -4
  8. package/styled-components/cjs/index.js +0 -11
  9. package/styled-components/es/index.js +0 -1
  10. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -2
  11. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +2 -2
  12. package/types/index.d.ts +0 -1
  13. package/types/index.d.ts.map +1 -1
  14. package/cjs/components/Cell/Cell.css +0 -3
  15. package/cjs/components/Cell/Cell.js +0 -71
  16. package/cjs/components/Cell/Cell.js.map +0 -1
  17. package/cjs/components/Cell/Cell.styles.js +0 -36
  18. package/cjs/components/Cell/Cell.styles.js.map +0 -1
  19. package/cjs/components/Cell/Cell.tokens.js +0 -50
  20. package/cjs/components/Cell/Cell.tokens.js.map +0 -1
  21. package/cjs/components/Cell/Textbox/Textbox.js +0 -20
  22. package/cjs/components/Cell/Textbox/Textbox.js.map +0 -1
  23. package/cjs/components/Cell/Textbox/Textbox.styles.js +0 -13
  24. package/cjs/components/Cell/Textbox/Textbox.styles.js.map +0 -1
  25. package/cjs/components/Cell/Textbox/ui/TextLabel.js +0 -17
  26. package/cjs/components/Cell/Textbox/ui/TextLabel.js.map +0 -1
  27. package/cjs/components/Cell/Textbox/ui/TextSubtitle.js +0 -17
  28. package/cjs/components/Cell/Textbox/ui/TextSubtitle.js.map +0 -1
  29. package/cjs/components/Cell/Textbox/ui/TextTitle.js +0 -17
  30. package/cjs/components/Cell/Textbox/ui/TextTitle.js.map +0 -1
  31. package/cjs/components/Cell/variations/_size/base.js +0 -9
  32. package/cjs/components/Cell/variations/_size/base.js.map +0 -1
  33. package/cjs/components/Cell/variations/_size/base_x642ct.css +0 -1
  34. package/cjs/components/Cell/variations/_stretching/base.js +0 -9
  35. package/cjs/components/Cell/variations/_stretching/base.js.map +0 -1
  36. package/cjs/components/Cell/variations/_stretching/base_1ryz4br.css +0 -1
  37. package/cjs/components/Cell/variations/_view/base.js +0 -9
  38. package/cjs/components/Cell/variations/_view/base.js.map +0 -1
  39. package/cjs/components/Cell/variations/_view/base_2qgj2i.css +0 -1
  40. package/es/components/Cell/Cell.css +0 -3
  41. package/es/components/Cell/Cell.js +0 -66
  42. package/es/components/Cell/Cell.js.map +0 -1
  43. package/es/components/Cell/Cell.styles.js +0 -29
  44. package/es/components/Cell/Cell.styles.js.map +0 -1
  45. package/es/components/Cell/Cell.tokens.js +0 -45
  46. package/es/components/Cell/Cell.tokens.js.map +0 -1
  47. package/es/components/Cell/Textbox/Textbox.js +0 -16
  48. package/es/components/Cell/Textbox/Textbox.js.map +0 -1
  49. package/es/components/Cell/Textbox/Textbox.styles.js +0 -9
  50. package/es/components/Cell/Textbox/Textbox.styles.js.map +0 -1
  51. package/es/components/Cell/Textbox/ui/TextLabel.js +0 -13
  52. package/es/components/Cell/Textbox/ui/TextLabel.js.map +0 -1
  53. package/es/components/Cell/Textbox/ui/TextSubtitle.js +0 -13
  54. package/es/components/Cell/Textbox/ui/TextSubtitle.js.map +0 -1
  55. package/es/components/Cell/Textbox/ui/TextTitle.js +0 -13
  56. package/es/components/Cell/Textbox/ui/TextTitle.js.map +0 -1
  57. package/es/components/Cell/variations/_size/base.js +0 -5
  58. package/es/components/Cell/variations/_size/base.js.map +0 -1
  59. package/es/components/Cell/variations/_size/base_x642ct.css +0 -1
  60. package/es/components/Cell/variations/_stretching/base.js +0 -5
  61. package/es/components/Cell/variations/_stretching/base.js.map +0 -1
  62. package/es/components/Cell/variations/_stretching/base_1ryz4br.css +0 -1
  63. package/es/components/Cell/variations/_view/base.js +0 -5
  64. package/es/components/Cell/variations/_view/base.js.map +0 -1
  65. package/es/components/Cell/variations/_view/base_2qgj2i.css +0 -1
  66. package/styled-components/cjs/components/Cell/Cell.js +0 -71
  67. package/styled-components/cjs/components/Cell/Cell.styles.js +0 -32
  68. package/styled-components/cjs/components/Cell/Cell.tokens.js +0 -48
  69. package/styled-components/cjs/components/Cell/Cell.types.js +0 -5
  70. package/styled-components/cjs/components/Cell/Textbox/Textbox.js +0 -19
  71. package/styled-components/cjs/components/Cell/Textbox/Textbox.styles.js +0 -12
  72. package/styled-components/cjs/components/Cell/Textbox/Textbox.types.js +0 -5
  73. package/styled-components/cjs/components/Cell/Textbox/ui/TextLabel.js +0 -16
  74. package/styled-components/cjs/components/Cell/Textbox/ui/TextSubtitle.js +0 -16
  75. package/styled-components/cjs/components/Cell/Textbox/ui/TextTitle.js +0 -16
  76. package/styled-components/cjs/components/Cell/index.js +0 -59
  77. package/styled-components/cjs/components/Cell/variations/_size/base.js +0 -8
  78. package/styled-components/cjs/components/Cell/variations/_size/tokens.json +0 -1
  79. package/styled-components/cjs/components/Cell/variations/_stretching/base.js +0 -9
  80. package/styled-components/cjs/components/Cell/variations/_stretching/tokens.json +0 -1
  81. package/styled-components/cjs/components/Cell/variations/_view/base.js +0 -9
  82. package/styled-components/cjs/components/Cell/variations/_view/tokens.json +0 -1
  83. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.config.js +0 -31
  84. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +0 -35
  85. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +0 -131
  86. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.config.js +0 -31
  87. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +0 -35
  88. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +0 -131
  89. package/styled-components/es/components/Cell/Cell.js +0 -62
  90. package/styled-components/es/components/Cell/Cell.styles.js +0 -25
  91. package/styled-components/es/components/Cell/Cell.tokens.js +0 -42
  92. package/styled-components/es/components/Cell/Cell.types.js +0 -1
  93. package/styled-components/es/components/Cell/Textbox/Textbox.js +0 -12
  94. package/styled-components/es/components/Cell/Textbox/Textbox.styles.js +0 -5
  95. package/styled-components/es/components/Cell/Textbox/Textbox.types.js +0 -1
  96. package/styled-components/es/components/Cell/Textbox/ui/TextLabel.js +0 -9
  97. package/styled-components/es/components/Cell/Textbox/ui/TextSubtitle.js +0 -9
  98. package/styled-components/es/components/Cell/Textbox/ui/TextTitle.js +0 -9
  99. package/styled-components/es/components/Cell/index.js +0 -6
  100. package/styled-components/es/components/Cell/variations/_size/base.js +0 -2
  101. package/styled-components/es/components/Cell/variations/_size/tokens.json +0 -1
  102. package/styled-components/es/components/Cell/variations/_stretching/base.js +0 -3
  103. package/styled-components/es/components/Cell/variations/_stretching/tokens.json +0 -1
  104. package/styled-components/es/components/Cell/variations/_view/base.js +0 -3
  105. package/styled-components/es/components/Cell/variations/_view/tokens.json +0 -1
  106. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.config.js +0 -25
  107. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +0 -6
  108. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +0 -131
  109. package/styled-components/es/examples/plasma_web/components/Cell/Cell.config.js +0 -25
  110. package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +0 -6
  111. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +0 -131
  112. package/types/components/Cell/Cell.d.ts +0 -27
  113. package/types/components/Cell/Cell.d.ts.map +0 -1
  114. package/types/components/Cell/Cell.styles.d.ts +0 -10
  115. package/types/components/Cell/Cell.styles.d.ts.map +0 -1
  116. package/types/components/Cell/Cell.tokens.d.ts +0 -43
  117. package/types/components/Cell/Cell.tokens.d.ts.map +0 -1
  118. package/types/components/Cell/Cell.types.d.ts +0 -46
  119. package/types/components/Cell/Cell.types.d.ts.map +0 -1
  120. package/types/components/Cell/Textbox/Textbox.d.ts +0 -4
  121. package/types/components/Cell/Textbox/Textbox.d.ts.map +0 -1
  122. package/types/components/Cell/Textbox/Textbox.styles.d.ts +0 -2
  123. package/types/components/Cell/Textbox/Textbox.styles.d.ts.map +0 -1
  124. package/types/components/Cell/Textbox/Textbox.types.d.ts +0 -35
  125. package/types/components/Cell/Textbox/Textbox.types.d.ts.map +0 -1
  126. package/types/components/Cell/Textbox/ui/TextLabel.d.ts +0 -5
  127. package/types/components/Cell/Textbox/ui/TextLabel.d.ts.map +0 -1
  128. package/types/components/Cell/Textbox/ui/TextSubtitle.d.ts +0 -5
  129. package/types/components/Cell/Textbox/ui/TextSubtitle.d.ts.map +0 -1
  130. package/types/components/Cell/Textbox/ui/TextTitle.d.ts +0 -5
  131. package/types/components/Cell/Textbox/ui/TextTitle.d.ts.map +0 -1
  132. package/types/components/Cell/index.d.ts +0 -9
  133. package/types/components/Cell/index.d.ts.map +0 -1
  134. package/types/components/Cell/variations/_size/base.d.ts +0 -2
  135. package/types/components/Cell/variations/_size/base.d.ts.map +0 -1
  136. package/types/components/Cell/variations/_stretching/base.d.ts +0 -2
  137. package/types/components/Cell/variations/_stretching/base.d.ts.map +0 -1
  138. package/types/components/Cell/variations/_view/base.d.ts +0 -2
  139. package/types/components/Cell/variations/_view/base.d.ts.map +0 -1
  140. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts +0 -24
  141. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts.map +0 -1
  142. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +0 -48
  143. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +0 -1
  144. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts +0 -24
  145. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts.map +0 -1
  146. package/types/examples/plasma_web/components/Cell/Cell.d.ts +0 -48
  147. package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +0 -1
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { TextboxStyled } from './Textbox.styles';
3
- import { TextLabel } from './ui/TextLabel';
4
- import { TextTitle } from './ui/TextTitle';
5
- import { TextSubtitle } from './ui/TextSubtitle';
6
- export var Textbox = function Textbox(_ref) {
7
- var label = _ref.label,
8
- title = _ref.title,
9
- subtitle = _ref.subtitle,
10
- children = _ref.children;
11
- return /*#__PURE__*/React.createElement(TextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(TextLabel, null, label), title && /*#__PURE__*/React.createElement(TextTitle, null, title), subtitle && /*#__PURE__*/React.createElement(TextSubtitle, null, subtitle)) : children);
12
- };
@@ -1,5 +0,0 @@
1
- import styled from 'styled-components';
2
- import { tokens } from '../Cell.tokens';
3
- export var TextboxStyled = /*#__PURE__*/styled.div.withConfig({
4
- componentId: "plasma-new-hope__sc-t2ald4-0"
5
- })(["display:flex;flex-direction:column;gap:var(", ");"], tokens.cellTextboxGap);
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { tokens } from '../../Cell.tokens';
4
- var StyledTextLabel = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "plasma-new-hope__sc-6e2num-0"
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);
7
- export var TextLabel = function TextLabel(props) {
8
- return /*#__PURE__*/React.createElement(StyledTextLabel, null, props.children);
9
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { tokens } from '../../Cell.tokens';
4
- var StyledTextSubtitle = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "plasma-new-hope__sc-jj01ut-0"
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);
7
- export var TextSubtitle = function TextSubtitle(props) {
8
- return /*#__PURE__*/React.createElement(StyledTextSubtitle, null, props.children);
9
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { tokens } from '../../Cell.tokens';
4
- var StyledTextTitle = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "plasma-new-hope__sc-1mxjeba-0"
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);
7
- export var TextTitle = function TextTitle(props) {
8
- return /*#__PURE__*/React.createElement(StyledTextTitle, null, props.children);
9
- };
@@ -1,6 +0,0 @@
1
- export { TextLabel } from './Textbox/ui/TextLabel';
2
- export { TextTitle } from './Textbox/ui/TextTitle';
3
- export { TextSubtitle } from './Textbox/ui/TextSubtitle';
4
- export { cellRoot, cellConfig } from './Cell';
5
- export { tokens as cellTokens, classes as cellClasses } from './Cell.tokens';
6
- export { Textbox } from './Textbox/Textbox';
@@ -1,2 +0,0 @@
1
- import { css } from 'styled-components';
2
- export var base = /*#__PURE__*/css([""]);
@@ -1 +0,0 @@
1
- ["--plasma-cell-left-height", "--plasma-cell-right-height", "--plasma-cell-height"]
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { classes, tokens } from '../../Cell.tokens';
3
- export var base = /*#__PURE__*/css(["&.", "{width:var(", ");}&.", "{width:100%;}&.", "{width:auto;}"], classes.fixedStretching, tokens.cellWidth, classes.filledStretching, classes.autoStretching);
@@ -1 +0,0 @@
1
- ["--plasma-button-width"]
@@ -1,3 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { tokens } from '../../Cell.tokens';
3
- export var base = /*#__PURE__*/css(["color:var(", ");background-color:var(", ");width:100%;display:flex;gap:var(", ");&:focus{outline:0 none;}"], tokens.cellColor, tokens.cellBackgroundColor, tokens.cellGap);
@@ -1 +0,0 @@
1
- ["--plasma-cell-color", "--plasma-cell-background-color"]
@@ -1,25 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { cellTokens } from '../../../../components/Cell';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'm',
7
- stretching: 'filled'
8
- },
9
- variations: {
10
- view: {
11
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;"], cellTokens.cellColor, cellTokens.cellLabelColor, cellTokens.cellTitleColor, cellTokens.cellSubtitleColor, cellTokens.cellBackgroundColor)
12
- },
13
- size: {
14
- l: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
15
- m: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
16
- s: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
17
- xs: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight)
18
- },
19
- stretching: {
20
- auto: /*#__PURE__*/css([""]),
21
- filled: /*#__PURE__*/css([""]),
22
- fixed: /*#__PURE__*/css([""])
23
- }
24
- }
25
- };
@@ -1,6 +0,0 @@
1
- import { cellConfig, Textbox, TextLabel, TextSubtitle, TextTitle } from '../../../../components/Cell';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './Cell.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(cellConfig, config);
5
- export var Cell = /*#__PURE__*/component(mergedConfig);
6
- export { Textbox, TextLabel, TextSubtitle, TextTitle };
@@ -1,131 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import type { StoryObj, Meta } from '@storybook/react';
4
- import styled from 'styled-components';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
- import { Avatar } from '../Avatar/Avatar';
8
- import { IconChevronLeft } from '../../../../components/_Icon';
9
-
10
- import { Cell, Textbox, TextTitle } from './Cell';
11
-
12
- type StoryProps = ComponentProps<typeof Cell> & {
13
- itemsCount?: number;
14
- enableLeftContent?: boolean;
15
- enableRightContent?: boolean;
16
- };
17
- type Story = StoryObj<StoryProps>;
18
-
19
- const sizes = ['l', 'm', 's', 'xs'];
20
- const stretchingValues = ['fixed', 'filled', 'auto'];
21
- const alignLeft = ['top', 'center', 'bottom'];
22
- const alignRight = ['top', 'center', 'bottom'];
23
-
24
- type SizesCell = 'xs' | 'l' | 'm' | 's' | undefined;
25
- type SizesAvatar = 'l' | 'm' | 's';
26
-
27
- const getSize = (size: SizesCell): SizesAvatar => {
28
- if (size === 'xs' || !size) {
29
- return 's';
30
- }
31
-
32
- return size;
33
- };
34
-
35
- const meta: Meta<typeof Cell> = {
36
- title: 'plasma_b2c/Cell',
37
- decorators: [WithTheme],
38
- argTypes: {
39
- size: {
40
- options: sizes,
41
- control: {
42
- type: 'select',
43
- },
44
- },
45
- stretching: {
46
- options: stretchingValues,
47
- control: {
48
- type: 'select',
49
- },
50
- },
51
- alignLeft: {
52
- options: alignLeft,
53
- control: {
54
- type: 'select',
55
- },
56
- },
57
- alignRight: {
58
- options: alignRight,
59
- control: {
60
- type: 'select',
61
- },
62
- },
63
- },
64
- };
65
-
66
- export default meta;
67
-
68
- const ChevronRight = styled(IconChevronLeft)`
69
- transform: rotate(180deg);
70
- color: var(--text-secondary);
71
- `;
72
-
73
- export const Default: Story = {
74
- args: {
75
- size: 'm',
76
- stretching: 'filled',
77
- enableLeftContent: false,
78
- enableRightContent: false,
79
- alignLeft: 'center',
80
- alignRight: 'center',
81
- title: 'Title',
82
- subtitle: 'Subtitle',
83
- label: 'Label',
84
- },
85
- render: ({ ...args }: StoryProps) => {
86
- return (
87
- <Cell
88
- contentLeft={
89
- !args.enableLeftContent && (
90
- <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
91
- )
92
- }
93
- alignLeft={args.alignLeft}
94
- contentRight={!args.enableRightContent && <ChevronRight color="inherit" size="xs" />}
95
- alignRight={args.alignRight}
96
- title={args.title}
97
- subtitle={args.subtitle}
98
- label={args.label}
99
- {...args}
100
- />
101
- );
102
- },
103
- };
104
-
105
- export const WithContentTextboxCustom: Story = {
106
- args: {
107
- size: 'm',
108
- stretching: 'filled',
109
- },
110
- render: ({ ...args }: StoryProps) => {
111
- const MyStyledText = styled.div`
112
- font-size: 12px;
113
- font-weight: 600;
114
- opacity: 0.5;
115
- `;
116
- return (
117
- <Cell
118
- contentLeft={
119
- <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
120
- }
121
- contentRight={<ChevronRight color="inherit" size="xs" />}
122
- {...args}
123
- >
124
- <Textbox>
125
- <TextTitle>Title</TextTitle>
126
- <MyStyledText>My styled Text</MyStyledText>
127
- </Textbox>
128
- </Cell>
129
- );
130
- },
131
- };
@@ -1,25 +0,0 @@
1
- import { css } from 'styled-components';
2
- import { cellTokens } from '../../../../components/Cell';
3
- export var config = {
4
- defaults: {
5
- view: 'default',
6
- size: 'm',
7
- stretching: 'filled'
8
- },
9
- variations: {
10
- view: {
11
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":transparent;"], cellTokens.cellColor, cellTokens.cellLabelColor, cellTokens.cellTitleColor, cellTokens.cellSubtitleColor, cellTokens.cellBackgroundColor)
12
- },
13
- size: {
14
- l: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
15
- m: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
16
- s: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight),
17
- xs: /*#__PURE__*/css(["", ":15rem;", ":0rem;", ":0rem;", ":0rem;", ":0rem;", ":0.125rem;", ":0.25rem;", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], cellTokens.cellWidth, cellTokens.cellPadding, cellTokens.cellPaddingLeftContent, cellTokens.cellPaddingContent, cellTokens.cellPaddingRightContent, cellTokens.cellTextboxGap, cellTokens.cellGap, cellTokens.cellGap, cellTokens.cellLabelFontFamily, cellTokens.cellLabelFontSize, cellTokens.cellLabelFontStyle, cellTokens.cellLabelFontWeight, cellTokens.cellLabelLetterSpacing, cellTokens.cellLabelLineHeight, cellTokens.cellTitleFontFamily, cellTokens.cellTitleFontSize, cellTokens.cellTitleFontStyle, cellTokens.cellTitleFontWeight, cellTokens.cellTitleLetterSpacing, cellTokens.cellTitleLineHeight, cellTokens.cellSubtitleFontFamily, cellTokens.cellSubtitleFontSize, cellTokens.cellSubtitleFontStyle, cellTokens.cellSubtitleFontWeight, cellTokens.cellSubtitleLetterSpacing, cellTokens.cellSubtitleLineHeight)
18
- },
19
- stretching: {
20
- auto: /*#__PURE__*/css([""]),
21
- filled: /*#__PURE__*/css([""]),
22
- fixed: /*#__PURE__*/css([""])
23
- }
24
- }
25
- };
@@ -1,6 +0,0 @@
1
- import { cellConfig, Textbox, TextLabel, TextSubtitle, TextTitle } from '../../../../components/Cell';
2
- import { component, mergeConfig } from '../../../../engines';
3
- import { config } from './Cell.config';
4
- var mergedConfig = /*#__PURE__*/mergeConfig(cellConfig, config);
5
- export var Cell = /*#__PURE__*/component(mergedConfig);
6
- export { Textbox, TextLabel, TextSubtitle, TextTitle };
@@ -1,131 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import type { StoryObj, Meta } from '@storybook/react';
4
- import styled from 'styled-components';
5
-
6
- import { WithTheme } from '../../../_helpers';
7
- import { Avatar } from '../Avatar/Avatar';
8
- import { IconChevronLeft } from '../../../../components/_Icon';
9
-
10
- import { Cell, Textbox, TextTitle } from './Cell';
11
-
12
- type StoryProps = ComponentProps<typeof Cell> & {
13
- itemsCount?: number;
14
- enableLeftContent?: boolean;
15
- enableRightContent?: boolean;
16
- };
17
- type Story = StoryObj<StoryProps>;
18
-
19
- const sizes = ['l', 'm', 's', 'xs'];
20
- const stretchingValues = ['fixed', 'filled', 'auto'];
21
- const alignLeft = ['top', 'center', 'bottom'];
22
- const alignRight = ['top', 'center', 'bottom'];
23
-
24
- type SizesCell = 'xs' | 'l' | 'm' | 's' | undefined;
25
- type SizesAvatar = 'l' | 'm' | 's';
26
-
27
- const getSize = (size: SizesCell): SizesAvatar => {
28
- if (size === 'xs' || !size) {
29
- return 's';
30
- }
31
-
32
- return size;
33
- };
34
-
35
- const meta: Meta<typeof Cell> = {
36
- title: 'plasma_web/Cell',
37
- decorators: [WithTheme],
38
- argTypes: {
39
- size: {
40
- options: sizes,
41
- control: {
42
- type: 'select',
43
- },
44
- },
45
- stretching: {
46
- options: stretchingValues,
47
- control: {
48
- type: 'select',
49
- },
50
- },
51
- alignLeft: {
52
- options: alignLeft,
53
- control: {
54
- type: 'select',
55
- },
56
- },
57
- alignRight: {
58
- options: alignRight,
59
- control: {
60
- type: 'select',
61
- },
62
- },
63
- },
64
- };
65
-
66
- export default meta;
67
-
68
- const ChevronRight = styled(IconChevronLeft)`
69
- transform: rotate(180deg);
70
- color: var(--text-secondary);
71
- `;
72
-
73
- export const Default: Story = {
74
- args: {
75
- size: 'm',
76
- stretching: 'filled',
77
- enableLeftContent: false,
78
- enableRightContent: false,
79
- alignLeft: 'center',
80
- alignRight: 'center',
81
- title: 'Title',
82
- subtitle: 'Subtitle',
83
- label: 'Label',
84
- },
85
- render: ({ ...args }: StoryProps) => {
86
- return (
87
- <Cell
88
- contentLeft={
89
- !args.enableLeftContent && (
90
- <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
91
- )
92
- }
93
- alignLeft={args.alignLeft}
94
- contentRight={!args.enableRightContent && <ChevronRight color="inherit" size="xs" />}
95
- alignRight={args.alignRight}
96
- title={args.title}
97
- subtitle={args.subtitle}
98
- label={args.label}
99
- {...args}
100
- />
101
- );
102
- },
103
- };
104
-
105
- export const WithContentTextboxCustom: Story = {
106
- args: {
107
- size: 'm',
108
- stretching: 'filled',
109
- },
110
- render: ({ ...args }: StoryProps) => {
111
- const MyStyledText = styled.div`
112
- font-size: 12px;
113
- font-weight: 600;
114
- opacity: 0.5;
115
- `;
116
- return (
117
- <Cell
118
- contentLeft={
119
- <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
120
- }
121
- contentRight={<ChevronRight color="inherit" size="xs" />}
122
- {...args}
123
- >
124
- <Textbox>
125
- <TextTitle>Title</TextTitle>
126
- <MyStyledText>My styled Text</MyStyledText>
127
- </Textbox>
128
- </Cell>
129
- );
130
- },
131
- };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { RootProps } from '../../engines';
3
- import type { CellProps } from './Cell.types';
4
- export declare const cellRoot: (Root: RootProps<HTMLSelectElement, CellProps>) => React.ForwardRefExoticComponent<CellProps & React.RefAttributes<HTMLSelectElement>>;
5
- export declare const cellConfig: {
6
- name: string;
7
- tag: string;
8
- layout: (Root: RootProps<HTMLSelectElement, CellProps>) => React.ForwardRefExoticComponent<CellProps & React.RefAttributes<HTMLSelectElement>>;
9
- base: string;
10
- variations: {
11
- view: {
12
- css: import("@linaria/core").LinariaClassName;
13
- };
14
- size: {
15
- css: import("@linaria/core").LinariaClassName;
16
- };
17
- stretching: {
18
- css: import("@linaria/core").LinariaClassName;
19
- };
20
- };
21
- defaults: {
22
- view: string;
23
- size: string;
24
- stretching: string;
25
- };
26
- };
27
- //# sourceMappingURL=Cell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C,eAAO,MAAM,QAAQ,SAAU,UAAU,iBAAiB,EAAE,SAAS,CAAC,wFAoCjE,CAAC;AAEN,eAAO,MAAM,UAAU;;;mBAtCQ,UAAU,iBAAiB,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;CA2DrE,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { AlignLeftProp, AlignRightProp } from './Cell.types';
2
- export declare const CellContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const CellContent: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const CellLeft: import("styled-components").StyledComponent<"div", any, {
5
- align: AlignLeftProp;
6
- }, never>;
7
- export declare const CellRight: import("styled-components").StyledComponent<"div", any, {
8
- align: AlignRightProp;
9
- }, never>;
10
- //# sourceMappingURL=Cell.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AASlE,eAAO,MAAM,kBAAkB,oEAK9B,CAAC;AAEF,eAAO,MAAM,WAAW,oEAGvB,CAAC;AAEF,eAAO,MAAM,QAAQ;WAAuB,aAAa;SAGxD,CAAC;AAEF,eAAO,MAAM,SAAS;WAAuB,cAAc;SAI1D,CAAC"}
@@ -1,43 +0,0 @@
1
- export declare const tokens: {
2
- cellColor: string;
3
- cellBackgroundColor: string;
4
- cellPadding: string;
5
- cellPaddingLeftContent: string;
6
- cellPaddingContent: string;
7
- cellPaddingRightContent: string;
8
- cellTextboxGap: string;
9
- cellGap: string;
10
- cellWidth: string;
11
- cellLabelColor: string;
12
- cellLabelFontFamily: string;
13
- cellLabelFontSize: string;
14
- cellLabelFontStyle: string;
15
- cellLabelFontWeight: string;
16
- cellLabelLetterSpacing: string;
17
- cellLabelLineHeight: string;
18
- cellTitleColor: string;
19
- cellTitleFontFamily: string;
20
- cellTitleFontSize: string;
21
- cellTitleFontStyle: string;
22
- cellTitleFontWeight: string;
23
- cellTitleLetterSpacing: string;
24
- cellTitleLineHeight: string;
25
- cellSubtitleColor: string;
26
- cellSubtitleFontFamily: string;
27
- cellSubtitleFontSize: string;
28
- cellSubtitleFontStyle: string;
29
- cellSubtitleFontWeight: string;
30
- cellSubtitleLetterSpacing: string;
31
- cellSubtitleLineHeight: string;
32
- };
33
- export declare const classes: {
34
- autoStretching: string;
35
- filledStretching: string;
36
- fixedStretching: string;
37
- cellWrapper: string;
38
- cellRoot: string;
39
- cellContent: string;
40
- cellLeftContent: string;
41
- cellRightContent: string;
42
- };
43
- //# sourceMappingURL=Cell.tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAUnB,CAAC"}
@@ -1,46 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { TextboxProps } from './Textbox/Textbox.types';
3
- export declare type AlignLeftProp = 'center' | 'top' | 'bottom';
4
- export declare type AlignRightProp = 'center' | 'top' | 'bottom';
5
- declare type CustomCellProps = {
6
- /**
7
- * Размер
8
- */
9
- size?: string;
10
- /**
11
- * Размер
12
- */
13
- view: string;
14
- /**
15
- * Слот для контента слева, например `Icon`
16
- */
17
- contentLeft?: ReactNode;
18
- /**
19
- * Слот для контента спарва, например `Icon`
20
- */
21
- contentRight?: ReactNode;
22
- /**
23
- * Слот для контента спарва, например `Icon`
24
- */
25
- content?: ReactNode;
26
- /**
27
- * Вертикальное выравнивание контента слева.
28
- */
29
- alignLeft?: AlignLeftProp;
30
- /**
31
- * Вертикальное выравнивание контента справа.
32
- */
33
- alignRight?: AlignRightProp;
34
- /**
35
- * Ширина cell
36
- * @description
37
- * Может принимать три значения:
38
- * fixed - кнопка фиксированной ширины;
39
- * filled - кнопка занимает всю доступную ширину
40
- * auto - кнопка растягивается в зависимости от контента
41
- */
42
- stretching?: 'fixed' | 'filled' | 'auto';
43
- };
44
- export declare type CellProps = CustomCellProps & TextboxProps;
45
- export {};
46
- //# sourceMappingURL=Cell.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.types.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,oBAAY,aAAa,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;AACxD,oBAAY,cAAc,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEzD,aAAK,eAAe,GAAG;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC5C,CAAC;AAEF,oBAAY,SAAS,GAAG,eAAe,GAAG,YAAY,CAAC"}
@@ -1,4 +0,0 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import type { TextboxProps } from './Textbox.types';
3
- export declare const Textbox: React.FC<HTMLAttributes<HTMLDivElement> & TextboxProps>;
4
- //# sourceMappingURL=Textbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Cell/Textbox/Textbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAMpD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,YAAY,CAmB3E,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const TextboxStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- //# sourceMappingURL=Textbox.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Cell/Textbox/Textbox.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,oEAIzB,CAAC"}
@@ -1,35 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- export declare type AlignLeftProp = 'center' | 'top' | 'bottom';
3
- export declare type AlignRightProp = 'center' | 'top';
4
- declare type CustomTextboxProps = {
5
- /**
6
- * Слот для Title
7
- */
8
- title?: ReactNode;
9
- /**
10
- * Слот для Subtitle
11
- */
12
- subtitle?: ReactNode;
13
- /**
14
- * Слот для Label
15
- */
16
- label?: ReactNode;
17
- children?: undefined;
18
- } | {
19
- /**
20
- * Слот для Title
21
- */
22
- title?: undefined;
23
- /**
24
- * Слот для Subtitle
25
- */
26
- subtitle?: undefined;
27
- /**
28
- * Слот для Label
29
- */
30
- label?: undefined;
31
- children?: ReactNode;
32
- };
33
- export declare type TextboxProps = HTMLAttributes<HTMLDivElement> & CustomTextboxProps;
34
- export {};
35
- //# sourceMappingURL=Textbox.types.d.ts.map