@salutejs/plasma-new-hope 0.69.0-canary.1155.8506197081.0 → 0.69.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. package/cjs/components/Cell/Cell.css +3 -0
  2. package/cjs/components/Cell/Cell.js +71 -0
  3. package/cjs/components/Cell/Cell.js.map +1 -0
  4. package/cjs/components/Cell/Cell.styles.js +39 -0
  5. package/cjs/components/Cell/Cell.styles.js.map +1 -0
  6. package/cjs/components/Cell/Cell.styles_ygfo1w.css +1 -0
  7. package/cjs/components/Cell/Cell.tokens.js +50 -0
  8. package/cjs/components/Cell/Cell.tokens.js.map +1 -0
  9. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +20 -0
  10. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  11. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +13 -0
  12. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  13. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +13 -0
  14. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  15. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +13 -0
  16. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  17. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +13 -0
  18. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  19. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +13 -0
  20. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  21. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +13 -0
  22. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  23. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +13 -0
  24. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  25. package/cjs/components/Cell/variations/_size/base.js +9 -0
  26. package/cjs/components/Cell/variations/_size/base.js.map +1 -0
  27. package/cjs/components/Cell/variations/_size/base_x642ct.css +1 -0
  28. package/cjs/components/Cell/variations/_view/base.js +9 -0
  29. package/cjs/components/Cell/variations/_view/base.js.map +1 -0
  30. package/cjs/components/Cell/variations/_view/base_pir0qf.css +1 -0
  31. package/cjs/components/Pagination/Pagination.js +14 -13
  32. package/cjs/components/Pagination/Pagination.js.map +1 -1
  33. package/cjs/index.css +4 -0
  34. package/cjs/index.js +14 -0
  35. package/cjs/index.js.map +1 -1
  36. package/es/components/Cell/Cell.css +3 -0
  37. package/es/components/Cell/Cell.js +66 -0
  38. package/es/components/Cell/Cell.js.map +1 -0
  39. package/es/components/Cell/Cell.styles.js +31 -0
  40. package/es/components/Cell/Cell.styles.js.map +1 -0
  41. package/es/components/Cell/Cell.styles_ygfo1w.css +1 -0
  42. package/es/components/Cell/Cell.tokens.js +45 -0
  43. package/es/components/Cell/Cell.tokens.js.map +1 -0
  44. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +16 -0
  45. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -0
  46. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +9 -0
  47. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -0
  48. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +9 -0
  49. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js.map +1 -0
  50. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +9 -0
  51. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -0
  52. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +9 -0
  53. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js.map +1 -0
  54. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +9 -0
  55. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -0
  56. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +9 -0
  57. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -0
  58. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +9 -0
  59. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -0
  60. package/es/components/Cell/variations/_size/base.js +5 -0
  61. package/es/components/Cell/variations/_size/base.js.map +1 -0
  62. package/es/components/Cell/variations/_size/base_x642ct.css +1 -0
  63. package/es/components/Cell/variations/_view/base.js +5 -0
  64. package/es/components/Cell/variations/_view/base.js.map +1 -0
  65. package/es/components/Cell/variations/_view/base_pir0qf.css +1 -0
  66. package/es/components/Pagination/Pagination.js +15 -14
  67. package/es/components/Pagination/Pagination.js.map +1 -1
  68. package/es/index.css +4 -0
  69. package/es/index.js +6 -0
  70. package/es/index.js.map +1 -1
  71. package/package.json +4 -4
  72. package/styled-components/cjs/components/Cell/Cell.js +71 -0
  73. package/styled-components/cjs/components/Cell/Cell.styles.js +35 -0
  74. package/styled-components/cjs/components/Cell/Cell.tokens.js +48 -0
  75. package/styled-components/cjs/components/Cell/Cell.types.js +5 -0
  76. package/styled-components/cjs/components/Cell/index.js +59 -0
  77. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +19 -0
  78. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +12 -0
  79. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.types.js +5 -0
  80. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +12 -0
  81. package/styled-components/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +12 -0
  82. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +12 -0
  83. package/styled-components/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +12 -0
  84. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +12 -0
  85. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +12 -0
  86. package/styled-components/cjs/components/Cell/variations/_size/base.js +8 -0
  87. package/styled-components/cjs/components/Cell/variations/_size/tokens.json +1 -0
  88. package/styled-components/cjs/components/Cell/variations/_stretching/base.js +9 -0
  89. package/styled-components/cjs/components/Cell/variations/_stretching/tokens.json +1 -0
  90. package/styled-components/cjs/components/Cell/variations/_view/base.js +9 -0
  91. package/styled-components/cjs/components/Cell/variations/_view/tokens.json +1 -0
  92. package/styled-components/cjs/components/Pagination/Pagination.js +14 -13
  93. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.config.js +21 -0
  94. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.js +35 -0
  95. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  96. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  97. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  98. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  99. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.config.js +21 -0
  100. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.js +35 -0
  101. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  102. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  103. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  104. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  105. package/styled-components/cjs/index.js +11 -0
  106. package/styled-components/es/components/Cell/Cell.js +62 -0
  107. package/styled-components/es/components/Cell/Cell.styles.js +27 -0
  108. package/styled-components/es/components/Cell/Cell.tokens.js +42 -0
  109. package/styled-components/es/components/Cell/Cell.types.js +1 -0
  110. package/styled-components/es/components/Cell/index.js +6 -0
  111. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +12 -0
  112. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +5 -0
  113. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.types.js +1 -0
  114. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.js +5 -0
  115. package/styled-components/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +5 -0
  116. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.js +5 -0
  117. package/styled-components/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +5 -0
  118. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +5 -0
  119. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +5 -0
  120. package/styled-components/es/components/Cell/variations/_size/base.js +2 -0
  121. package/styled-components/es/components/Cell/variations/_size/tokens.json +1 -0
  122. package/styled-components/es/components/Cell/variations/_stretching/base.js +3 -0
  123. package/styled-components/es/components/Cell/variations/_stretching/tokens.json +1 -0
  124. package/styled-components/es/components/Cell/variations/_view/base.js +3 -0
  125. package/styled-components/es/components/Cell/variations/_view/tokens.json +1 -0
  126. package/styled-components/es/components/Pagination/Pagination.js +14 -13
  127. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.config.js +15 -0
  128. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.js +6 -0
  129. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +128 -0
  130. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.config.js +1 -2
  131. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  132. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  133. package/styled-components/es/examples/plasma_web/components/Cell/Cell.config.js +15 -0
  134. package/styled-components/es/examples/plasma_web/components/Cell/Cell.js +6 -0
  135. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +128 -0
  136. package/styled-components/es/examples/plasma_web/components/Chip/Chip.config.js +1 -2
  137. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  138. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  139. package/styled-components/es/index.js +1 -0
  140. package/types/components/Cell/Cell.d.ts +23 -0
  141. package/types/components/Cell/Cell.d.ts.map +1 -0
  142. package/types/components/Cell/Cell.styles.d.ts +11 -0
  143. package/types/components/Cell/Cell.styles.d.ts.map +1 -0
  144. package/types/components/Cell/Cell.tokens.d.ts +43 -0
  145. package/types/components/Cell/Cell.tokens.d.ts.map +1 -0
  146. package/types/components/Cell/Cell.types.d.ts +51 -0
  147. package/types/components/Cell/Cell.types.d.ts.map +1 -0
  148. package/types/components/Cell/index.d.ts +9 -0
  149. package/types/components/Cell/index.d.ts.map +1 -0
  150. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts +4 -0
  151. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -0
  152. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts +2 -0
  153. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -0
  154. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts +33 -0
  155. package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts.map +1 -0
  156. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts +3 -0
  157. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.d.ts.map +1 -0
  158. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts +2 -0
  159. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts.map +1 -0
  160. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts +3 -0
  161. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.d.ts.map +1 -0
  162. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts +2 -0
  163. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts.map +1 -0
  164. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts +3 -0
  165. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -0
  166. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts +2 -0
  167. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts.map +1 -0
  168. package/types/components/Cell/variations/_size/base.d.ts +2 -0
  169. package/types/components/Cell/variations/_size/base.d.ts.map +1 -0
  170. package/types/components/Cell/variations/_stretching/base.d.ts +2 -0
  171. package/types/components/Cell/variations/_stretching/base.d.ts.map +1 -0
  172. package/types/components/Cell/variations/_view/base.d.ts +2 -0
  173. package/types/components/Cell/variations/_view/base.d.ts.map +1 -0
  174. package/types/components/Chip/Chip.d.ts +26 -2
  175. package/types/components/Chip/Chip.d.ts.map +1 -1
  176. package/types/components/Chip/Chip.types.d.ts +6 -5
  177. package/types/components/Chip/Chip.types.d.ts.map +1 -1
  178. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts +13 -1
  179. package/types/components/Combobox/ui/ComboboxChip/ComboboxChip.styles.d.ts.map +1 -1
  180. package/types/components/Indicator/Indicator.d.ts +2 -2
  181. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  182. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +13 -1
  183. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +1 -1
  184. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts +14 -0
  185. package/types/examples/plasma_b2c/components/Cell/Cell.config.d.ts.map +1 -0
  186. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +45 -0
  187. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts.map +1 -0
  188. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts +0 -1
  189. package/types/examples/plasma_b2c/components/Chip/Chip.config.d.ts.map +1 -1
  190. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts +13 -2
  191. package/types/examples/plasma_b2c/components/Chip/Chip.d.ts.map +1 -1
  192. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -2
  193. package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +2 -2
  194. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts +14 -0
  195. package/types/examples/plasma_web/components/Cell/Cell.config.d.ts.map +1 -0
  196. package/types/examples/plasma_web/components/Cell/Cell.d.ts +45 -0
  197. package/types/examples/plasma_web/components/Cell/Cell.d.ts.map +1 -0
  198. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts +0 -1
  199. package/types/examples/plasma_web/components/Chip/Chip.config.d.ts.map +1 -1
  200. package/types/examples/plasma_web/components/Chip/Chip.d.ts +13 -2
  201. package/types/examples/plasma_web/components/Chip/Chip.d.ts.map +1 -1
  202. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +2 -2
  203. package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +2 -2
  204. package/types/examples/sds_engineer/components/Chip/Chip.d.ts +13 -1
  205. package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -1
  206. package/types/index.d.ts +1 -0
  207. package/types/index.d.ts.map +1 -1
@@ -0,0 +1,62 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { cx } from '../../utils';
3
+ import { base, CellLeft, CellRight, CellContentWrapper, CellContent } from './Cell.styles';
4
+ import { classes } from './Cell.tokens';
5
+ import { base as viewCSS } from './variations/_view/base';
6
+ import { base as sizeCSS } from './variations/_size/base';
7
+ import { CellTextbox } from './ui/CellTextbox/CellTextbox';
8
+ export var cellRoot = function cellRoot(Root) {
9
+ return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
10
+ var size = _ref.size,
11
+ view = _ref.view,
12
+ contentLeft = _ref.contentLeft,
13
+ contentRight = _ref.contentRight,
14
+ _ref$alignContentLeft = _ref.alignContentLeft,
15
+ alignContentLeft = _ref$alignContentLeft === void 0 ? 'center' : _ref$alignContentLeft,
16
+ _ref$alignContentRigh = _ref.alignContentRight,
17
+ alignContentRight = _ref$alignContentRigh === void 0 ? 'center' : _ref$alignContentRigh,
18
+ children = _ref.children,
19
+ title = _ref.title,
20
+ subtitle = _ref.subtitle,
21
+ label = _ref.label,
22
+ description = _ref.description,
23
+ content = _ref.content,
24
+ _ref$stretching = _ref.stretching,
25
+ stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
26
+ var stretchingClass = classes["".concat(stretching, "Stretching")];
27
+ var titleText = title || description;
28
+ var contentLeftDeprecated = contentLeft || content;
29
+ return /*#__PURE__*/React.createElement(Root, {
30
+ ref: outerRootRef,
31
+ size: size,
32
+ view: view,
33
+ className: cx(stretchingClass, classes.cellRoot)
34
+ }, contentLeftDeprecated && /*#__PURE__*/React.createElement(CellLeft, {
35
+ align: alignContentLeft
36
+ }, contentLeftDeprecated), /*#__PURE__*/React.createElement(CellContentWrapper, null, /*#__PURE__*/React.createElement(CellContent, null, titleText || subtitle || label ? /*#__PURE__*/React.createElement(CellTextbox, {
37
+ label: label,
38
+ title: titleText,
39
+ subtitle: subtitle
40
+ }) : children), contentRight && /*#__PURE__*/React.createElement(CellRight, {
41
+ align: alignContentRight
42
+ }, contentRight)));
43
+ });
44
+ };
45
+ export var cellConfig = {
46
+ name: 'Cell',
47
+ tag: 'div',
48
+ layout: cellRoot,
49
+ base: base,
50
+ variations: {
51
+ view: {
52
+ css: viewCSS
53
+ },
54
+ size: {
55
+ css: sizeCSS
56
+ }
57
+ },
58
+ defaults: {
59
+ view: 'default',
60
+ size: 'm'
61
+ }
62
+ };
@@ -0,0 +1,27 @@
1
+ import styled from 'styled-components';
2
+ import { css } from 'styled-components';
3
+ import { tokens, classes } from './Cell.tokens';
4
+ var alignToFlex = {
5
+ center: 'center',
6
+ top: 'flex-start',
7
+ bottom: 'flex-end'
8
+ };
9
+ export var base = /*#__PURE__*/css(["&&.", "{width:var(", ");}&&.", "{width:100%;}&&.", "{width:auto;}"], classes.fixedStretching, tokens.cellWidth, classes.filledStretching, classes.autoStretching);
10
+ export var CellContentWrapper = /*#__PURE__*/styled.div.withConfig({
11
+ componentId: "plasma-new-hope__sc-16emz3n-0"
12
+ })(["display:flex;flex:auto;align-items:stretch;justify-content:space-between;gap:var(", ");height:auto;"], tokens.cellGap);
13
+ export var CellContent = /*#__PURE__*/styled.div.withConfig({
14
+ componentId: "plasma-new-hope__sc-16emz3n-1"
15
+ })(["display:flex;align-items:center;height:auto;"]);
16
+ export var CellLeft = /*#__PURE__*/styled.div.withConfig({
17
+ componentId: "plasma-new-hope__sc-16emz3n-2"
18
+ })(["display:flex;align-items:", ";"], function (_ref) {
19
+ var align = _ref.align;
20
+ return alignToFlex[align];
21
+ });
22
+ export var CellRight = /*#__PURE__*/styled.div.withConfig({
23
+ componentId: "plasma-new-hope__sc-16emz3n-3"
24
+ })(["display:flex;align-items:", ";text-align:right;"], function (_ref2) {
25
+ var align = _ref2.align;
26
+ return alignToFlex[align];
27
+ });
@@ -0,0 +1,42 @@
1
+ export var tokens = {
2
+ cellColor: '--plasma-cell-color',
3
+ cellBackgroundColor: '--plasma-cell-background-color',
4
+ cellPadding: '--plasma-cell-padding',
5
+ cellPaddingLeftContent: '--plasma-cell-padding-left-content',
6
+ cellPaddingContent: '--plasma-cell-padding-content',
7
+ cellPaddingRightContent: '--plasma-cell-padding-right-content',
8
+ cellTextboxGap: '--plasma-cell-textbox-gap',
9
+ cellGap: '--plasma-cell-gap',
10
+ cellWidth: '--plasma-cell-width',
11
+ cellLabelColor: '--plasma-cell-label-color',
12
+ cellLabelFontFamily: '--plasma-cell-label-font-family',
13
+ cellLabelFontSize: '--plasma-cell-label-font-size',
14
+ cellLabelFontStyle: '--plasma-cell-label-font-style',
15
+ cellLabelFontWeight: '--plasma-cell-label-font-weight',
16
+ cellLabelLetterSpacing: '--plasma-cell-label-letter-spacing',
17
+ cellLabelLineHeight: '--plasma-cell-label-line-height',
18
+ cellTitleColor: '--plasma-cell-title-color',
19
+ cellTitleFontFamily: '--plasma-cell-title-font-family',
20
+ cellTitleFontSize: '--plasma-cell-title-font-size',
21
+ cellTitleFontStyle: '--plasma-cell-title-font-style',
22
+ cellTitleFontWeight: '--plasma-cell-title-font-weight',
23
+ cellTitleLetterSpacing: '--plasma-cell-title-letter-spacing',
24
+ cellTitleLineHeight: '--plasma-cell-title-line-height',
25
+ cellSubtitleColor: '--plasma-cell-subtitle-color',
26
+ cellSubtitleFontFamily: '--plasma-cell-subtitle-font-family',
27
+ cellSubtitleFontSize: '--plasma-cell-subtitle-font-size',
28
+ cellSubtitleFontStyle: '--plasma-cell-subtitle-font-style',
29
+ cellSubtitleFontWeight: '--plasma-cell-subtitle-font-weight',
30
+ cellSubtitleLetterSpacing: '--plasma-cell-subtitle-letter-spacing',
31
+ cellSubtitleLineHeight: '--plasma-cell-subtitle-line-height'
32
+ };
33
+ export var classes = {
34
+ autoStretching: 'cell-stretching-auto',
35
+ filledStretching: 'cell-stretching-filled',
36
+ fixedStretching: 'cell-stretching-fixed',
37
+ cellWrapper: 'cell-wrapper',
38
+ cellRoot: 'cell-root',
39
+ cellContent: 'cell-content',
40
+ cellLeftContent: 'cell-left-content',
41
+ cellRightContent: 'cell-right-content'
42
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export { CellTextboxLabel } from './ui/CellTextboxLabel/CellTextboxLabel';
2
+ export { CellTextboxTitle } from './ui/CellTextboxTitle/CellTextboxTitle';
3
+ export { CellTextboxSubtitle } from './ui/CellTextboxSubtitle/CellTextboxSubtitle';
4
+ export { cellRoot, cellConfig } from './Cell';
5
+ export { tokens as cellTokens, classes as cellClasses } from './Cell.tokens';
6
+ export { CellTextbox } from './ui/CellTextbox/CellTextbox';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { CellTextboxLabel } from '../CellTextboxLabel/CellTextboxLabel';
3
+ import { CellTextboxTitle } from '../CellTextboxTitle/CellTextboxTitle';
4
+ import { CellTextboxSubtitle } from '../CellTextboxSubtitle/CellTextboxSubtitle';
5
+ import { CellTextboxStyled } from './CellTextbox.styles';
6
+ export var CellTextbox = function CellTextbox(_ref) {
7
+ var label = _ref.label,
8
+ title = _ref.title,
9
+ subtitle = _ref.subtitle,
10
+ children = _ref.children;
11
+ return /*#__PURE__*/React.createElement(CellTextboxStyled, null, label || title || subtitle ? /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(CellTextboxLabel, null, label), title && /*#__PURE__*/React.createElement(CellTextboxTitle, null, title), subtitle && /*#__PURE__*/React.createElement(CellTextboxSubtitle, null, subtitle)) : children);
12
+ };
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { tokens } from '../../Cell.tokens';
3
+ export var CellTextboxStyled = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-w4g41u-0"
5
+ })(["display:flex;flex-direction:column;gap:var(", ");"], tokens.cellTextboxGap);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StyledTextboxLabel } from './CellTextboxLabel.styles';
3
+ export var CellTextboxLabel = function CellTextboxLabel(props) {
4
+ return /*#__PURE__*/React.createElement(StyledTextboxLabel, null, props.children);
5
+ };
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { tokens } from '../../Cell.tokens';
3
+ export var StyledTextboxLabel = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-j0en77-0"
5
+ })(["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);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StyledTextboxSubtitle } from './CellTextboxSubtitle.styles';
3
+ export var CellTextboxSubtitle = function CellTextboxSubtitle(props) {
4
+ return /*#__PURE__*/React.createElement(StyledTextboxSubtitle, null, props.children);
5
+ };
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { tokens } from '../../Cell.tokens';
3
+ export var StyledTextboxSubtitle = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-lkssfu-0"
5
+ })(["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);
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StyledTextboxTitle } from './CellTextboxTitle.styles';
3
+ export var CellTextboxTitle = function CellTextboxTitle(props) {
4
+ return /*#__PURE__*/React.createElement(StyledTextboxTitle, null, props.children);
5
+ };
@@ -0,0 +1,5 @@
1
+ import styled from 'styled-components';
2
+ import { tokens } from '../../Cell.tokens';
3
+ export var StyledTextboxTitle = /*#__PURE__*/styled.div.withConfig({
4
+ componentId: "plasma-new-hope__sc-3vis0m-0"
5
+ })(["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);
@@ -0,0 +1,2 @@
1
+ import { css } from 'styled-components';
2
+ export var base = /*#__PURE__*/css([""]);
@@ -0,0 +1 @@
1
+ ["--plasma-cell-left-height", "--plasma-cell-right-height", "--plasma-cell-height"]
@@ -0,0 +1,3 @@
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);
@@ -0,0 +1 @@
1
+ ["--plasma-button-width"]
@@ -0,0 +1,3 @@
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;align-items:stretch;gap:var(", ");&:focus{outline:0 none;}"], tokens.cellColor, tokens.cellBackgroundColor, tokens.cellGap);
@@ -0,0 +1 @@
1
+ ["--plasma-cell-color", "--plasma-cell-background-color"]
@@ -58,7 +58,7 @@ export var paginationRoot = function paginationRoot(Root) {
58
58
  onChangePageValue = _ref.onChangePageValue,
59
59
  onChangePerPageValue = _ref.onChangePerPageValue,
60
60
  rest = _objectWithoutProperties(_ref, _excluded);
61
- var _useState = useState(value !== null && value !== void 0 ? value : defaultValues.value),
61
+ var _useState = useState(1),
62
62
  _useState2 = _slicedToArray(_useState, 2),
63
63
  page = _useState2[0],
64
64
  setPageValue = _useState2[1];
@@ -85,24 +85,22 @@ export var paginationRoot = function paginationRoot(Root) {
85
85
  setPagesValue(Math.ceil(count / (newPerPage || (hasPerPage ? defaultValues.perPage : 1))));
86
86
  };
87
87
  var handlerSetPage = function handlerSetPage(newPageValue) {
88
- var _newPageValue;
89
- newPageValue = (_newPageValue = newPageValue) !== null && _newPageValue !== void 0 ? _newPageValue : defaultValues.value;
90
- if (newPageValue > pages) {
91
- newPageValue = pages;
88
+ var pageValue = newPageValue !== null && newPageValue !== void 0 ? newPageValue : defaultValues.value;
89
+ if (pageValue > pages) {
90
+ pageValue = pages;
92
91
  }
93
- if (newPageValue < 1) {
94
- newPageValue = 1;
92
+ if (pageValue < 1) {
93
+ pageValue = 1;
95
94
  }
96
- if (disabled.includes(newPageValue)) {
95
+ if (disabled.includes(pageValue)) {
97
96
  return;
98
97
  }
99
- setPageValue(newPageValue);
100
- onChangePageValue === null || onChangePageValue === void 0 ? void 0 : onChangePageValue(newPageValue);
98
+ setPageValue(pageValue);
99
+ onChangePageValue === null || onChangePageValue === void 0 ? void 0 : onChangePageValue(pageValue);
101
100
  };
102
101
  var handlerSetPerPage = function handlerSetPerPage(newPerPageValue) {
103
- setPageValue(1);
102
+ handlerSetPage(1);
104
103
  setPerPageValue(newPerPageValue);
105
- onChangePageValue === null || onChangePageValue === void 0 ? void 0 : onChangePageValue(1);
106
104
  onChangePerPageValue === null || onChangePerPageValue === void 0 ? void 0 : onChangePerPageValue(newPerPageValue);
107
105
  handlerSetPages(newPerPageValue);
108
106
  };
@@ -111,7 +109,10 @@ export var paginationRoot = function paginationRoot(Root) {
111
109
  };
112
110
  useEffect(function () {
113
111
  handlerSetPages(perPage);
114
- }, [perPage, handlerSetPages]);
112
+ }, [perPage, count, handlerSetPages]);
113
+ useEffect(function () {
114
+ handlerSetPage(value);
115
+ }, [value]);
115
116
  useEffect(function () {
116
117
  setSections(getSections(page, pages, slots));
117
118
  }, [page, slots, pages, setSections, getSections]);
@@ -0,0 +1,15 @@
1
+ import { css } from 'styled-components';
2
+ import { cellTokens } from '../../../../components/Cell';
3
+ export var config = {
4
+ variations: {
5
+ view: {
6
+ "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)
7
+ },
8
+ size: {
9
+ 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),
10
+ 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),
11
+ 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),
12
+ 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)
13
+ }
14
+ }
15
+ };
@@ -0,0 +1,6 @@
1
+ import { cellConfig, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle } 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 { CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle };
@@ -0,0 +1,128 @@
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, CellTextbox, CellTextboxTitle } from './Cell';
11
+
12
+ type StoryProps = ComponentProps<typeof Cell> & {
13
+ itemsCount?: number;
14
+ disableLeftContent?: boolean;
15
+ disableRightContent?: 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
+ alignContentLeft: {
52
+ options: alignLeft,
53
+ control: {
54
+ type: 'select',
55
+ },
56
+ },
57
+ alignContentRight: {
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
+ disableLeftContent: false,
78
+ disableRightContent: false,
79
+ alignContentLeft: 'center',
80
+ alignContentRight: 'center',
81
+ title: 'Title',
82
+ subtitle: 'Subtitle',
83
+ label: 'Label',
84
+ },
85
+ render: ({ ...args }: StoryProps) => {
86
+ return (
87
+ <Cell
88
+ contentLeft={
89
+ !args.disableLeftContent && (
90
+ <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
91
+ )
92
+ }
93
+ contentRight={!args.disableRightContent && <ChevronRight color="inherit" size="xs" />}
94
+ {...args}
95
+ />
96
+ );
97
+ },
98
+ };
99
+
100
+ export const WithContentTextboxCustom: Story = {
101
+ args: {
102
+ size: 'm',
103
+ stretching: 'filled',
104
+ },
105
+ render: ({ ...args }: StoryProps) => {
106
+ const MyStyledText = styled.div`
107
+ font-size: 12px;
108
+ font-weight: 600;
109
+ opacity: 0.5;
110
+ `;
111
+ return (
112
+ <Cell
113
+ view="default"
114
+ size={args.size}
115
+ stretching={args.stretching}
116
+ contentLeft={
117
+ <Avatar size={getSize(args.size)} url="https://avatars.githubusercontent.com/u/1813468?v=4" />
118
+ }
119
+ contentRight={!args.disableRightContent && <ChevronRight color="inherit" size="xs" />}
120
+ >
121
+ <CellTextboxTitle>
122
+ <CellTextbox>Title</CellTextbox>
123
+ <MyStyledText>My styled Text</MyStyledText>
124
+ </CellTextboxTitle>
125
+ </Cell>
126
+ );
127
+ },
128
+ };
@@ -2,13 +2,12 @@ import { css } from 'styled-components';
2
2
  import { chipTokens } from '../../../../components/Chip';
3
3
  export var config = {
4
4
  defaults: {
5
- view: 'default',
5
+ view: 'primary',
6
6
  focused: 'true',
7
7
  size: 'm'
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- "default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
12
11
  primary: /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
13
12
  secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover),
14
13
  positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-positive) 85% );", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-positive) 85%);", ":var(--surface-positive);", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--on-dark-text-primary);"], chipTokens.color, chipTokens.background, chipTokens.colorHover, chipTokens.backgroundHover, chipTokens.colorActive, chipTokens.backgroundActive, chipTokens.backgroundReadOnly, chipTokens.colorReadOnly, chipTokens.backgroundReadOnlyHover, chipTokens.colorReadOnlyHover)
@@ -18,10 +18,10 @@ export var config = {
18
18
  clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], paginationTokens.paginationCurrentButtonColor, paginationTokens.paginationCurrentButtonBackgroundColor, paginationTokens.paginationCurrentButtonHoverColor, paginationTokens.paginationCurrentButtonHoverBackgroundColor, paginationTokens.paginationCurrentButtonActiveColor, paginationTokens.paginationCurrentButtonActiveBackgroundColor)
19
19
  },
20
20
  size: {
21
- l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":3.5rem;", ":3rem;", ":2.25rem;", ":4rem;", ":0.875rem;", ":1.2rem;", ":1.45rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":1.875rem;", ":transparent;", ":1rem;", ":100%;", ":0 3.5rem 0 1.5rem;", ":0 3.625rem 0 0.375rem;", ":0 3.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.875rem;", ":4rem;", ":3.5rem;", ":0 0.625rem;", ":0.125rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
22
- m: /*#__PURE__*/css(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3rem;", ":3rem;", ":2rem;", ":3.5rem;", ":0.75rem;", ":1.05rem;", ":1.3rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.875rem;", ":100%;", ":0 3.25rem 0 1.25rem;", ":0 3.375rem 0 0.375rem;", ":0 3.375rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.75rem;", ":3.5rem;", ":3rem;", ":0 0.625rem;", ":0.125rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
23
- s: /*#__PURE__*/css(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":2.5rem;", ":2.5rem;", ":1.75rem;", ":3rem;", ":0.625rem;", ":0.9rem;", ":1.15rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":0.5rem;", ":0.75rem;", ":0.5rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.75rem;", ":100%;", ":0 3rem 0 1rem;", ":0 3.125rem 0 0.375rem;", ":0 3.125rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.625rem;", ":3rem;", ":2.5rem;", ":0 0.625rem;", ":0.125rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
24
- xs: /*#__PURE__*/css(["", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2.5rem;", ":0.5rem;", ":2rem;", ":1.5rem;", ":0.75rem;", ":1rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":1.25rem;", ":transparent;", ":0.5rem;", ":100%;", ":0 2.5rem 0 0.75rem;", ":0 2.625rem 0 0.375rem;", ":0 2.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":2.5rem;", ":2rem;", ":0 0.625rem;", ":0.125rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth)
21
+ l: /*#__PURE__*/css(["", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":3.5rem;", ":3rem;", ":2.25rem;", ":4rem;", ":0.875rem;", ":1.2rem;", ":1.45rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":1rem;", ":1rem;", ":1rem;", ":1rem;", ":1.875rem;", ":transparent;", ":1rem;", ":100%;", ":0 3.5rem 0 1.5rem;", ":0 3.625rem 0 0.375rem;", ":0 3.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.875rem;", ":4rem;", ":3.5rem;", ":0 0.625rem;", ":0.0625rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
22
+ m: /*#__PURE__*/css(["", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":3rem;", ":3rem;", ":2rem;", ":3.5rem;", ":0.75rem;", ":1.05rem;", ":1.3rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.875rem;", ":100%;", ":0 3.25rem 0 1.25rem;", ":0 3.375rem 0 0.375rem;", ":0 3.375rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.75rem;", ":3.5rem;", ":3rem;", ":0 0.625rem;", ":0.0625rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
23
+ s: /*#__PURE__*/css(["", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":2.5rem;", ":2.5rem;", ":1.75rem;", ":3rem;", ":0.625rem;", ":0.9rem;", ":1.15rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1.5rem;", ":0.5rem;", ":0.75rem;", ":0.5rem;", ":0.75rem;", ":1.75rem;", ":transparent;", ":0.75rem;", ":100%;", ":0 3rem 0 1rem;", ":0 3.125rem 0 0.375rem;", ":0 3.125rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.625rem;", ":3rem;", ":2.5rem;", ":0 0.625rem;", ":0.0625rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth),
24
+ xs: /*#__PURE__*/css(["", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":2rem;", ":2.5rem;", ":0.5rem;", ":2rem;", ":1.5rem;", ":0.75rem;", ":1rem;", ":100%;", ":auto;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":0.125rem;", ":auto;", ":1rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":0.5rem;", ":1.25rem;", ":transparent;", ":0.5rem;", ":100%;", ":0 2.5rem 0 0.75rem;", ":0 2.625rem 0 0.375rem;", ":0 2.625rem 0 0.625rem;", ":0.5rem;", ":0.375rem;", ":0.5rem;", ":2.5rem;", ":2rem;", ":0 0.625rem;", ":0.0625rem;"], paginationTokens.paginationFontFamily, paginationTokens.paginationFontSize, paginationTokens.paginationFontStyle, paginationTokens.paginationFontWeight, paginationTokens.paginationLetterSpacing, paginationTokens.paginationLineHeight, paginationTokens.buttonHeight, paginationTokens.paginationInputWidth, paginationTokens.buttonRadius, paginationTokens.buttonWidth, paginationTokens.buttonWidthShorter, paginationTokens.paginationIconSize, paginationTokens.paginationIconDoubleSize, paginationTokens.selectWidth, paginationTokens.selectHeight, paginationTokens.selectPaddingTop, paginationTokens.selectPaddingRight, paginationTokens.selectPaddingBottom, paginationTokens.selectPaddingLeft, paginationTokens.selectItemWidth, paginationTokens.selectItemHeight, paginationTokens.selectItemPaddingTop, paginationTokens.selectItemPaddingRight, paginationTokens.selectItemPaddingBottom, paginationTokens.selectItemPaddingLeft, paginationTokens.selectItemContentLeftWidth, paginationTokens.selectItemBackground, paginationTokens.selectTargetArrowRight, paginationTokens.selectTargetWidth, paginationTokens.selectTargetPadding, paginationTokens.selectTargetPaddingHasChips, paginationTokens.selectTargetPaddingWithInput, paginationTokens.selectTargetInnerTop, paginationTokens.selectTargetLabelInnerTop, paginationTokens.inputBorderRadius, paginationTokens.inputWidth, paginationTokens.inputHeight, paginationTokens.inputPadding, paginationTokens.inputBorderWidth)
25
25
  },
26
26
  type: {
27
27
  compact: /*#__PURE__*/css([""]),
@@ -53,7 +53,7 @@ type Story = StoryObj<typeof Pagination>;
53
53
 
54
54
  export const Default: Story = {
55
55
  args: {
56
- count: 20,
56
+ count: 2000,
57
57
  value: 1,
58
58
  slots: 9,
59
59
  type: 'default',
@@ -71,12 +71,18 @@ const PaginationContent = (agrs) => {
71
71
  const [pageValue, setPageValue] = useState(agrs.value);
72
72
  const [perPageValue, setPerPageValue] = useState(agrs.perPage);
73
73
 
74
- const handleChange = useCallback(
75
- (page: number, perPage: number) => {
76
- setPerPageValue(perPage);
74
+ const handleChangePage = useCallback(
75
+ (page: number) => {
77
76
  setPageValue(page);
78
77
  },
79
- [pageValue, perPageValue, setPageValue, setPerPageValue],
78
+ [pageValue, setPageValue],
79
+ );
80
+
81
+ const handleChangePerpage = useCallback(
82
+ (perPage: number) => {
83
+ setPerPageValue(perPage);
84
+ },
85
+ [perPageValue, setPerPageValue],
80
86
  );
81
87
 
82
88
  return (
@@ -103,7 +109,8 @@ const PaginationContent = (agrs) => {
103
109
  Next
104
110
  </Button>
105
111
  }
106
- onChangeValue={handleChange}
112
+ onChangePageValue={handleChangePage}
113
+ onChangePerPageValue={handleChangePerpage}
107
114
  />
108
115
  </>
109
116
  );
@@ -111,7 +118,7 @@ const PaginationContent = (agrs) => {
111
118
 
112
119
  export const Content: Story = {
113
120
  args: {
114
- count: 20,
121
+ count: 2000,
115
122
  value: 1,
116
123
  slots: 9,
117
124
  type: 'default',
@@ -0,0 +1,15 @@
1
+ import { css } from 'styled-components';
2
+ import { cellTokens } from '../../../../components/Cell';
3
+ export var config = {
4
+ variations: {
5
+ view: {
6
+ "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)
7
+ },
8
+ size: {
9
+ 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),
10
+ 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),
11
+ 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),
12
+ 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)
13
+ }
14
+ }
15
+ };