@salutejs/plasma-new-hope 0.261.0-canary.1760.13180340956.0 → 0.261.0-canary.1762.13182430055.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/cjs/components/Drawer/Drawer.css +5 -5
  2. package/cjs/components/Drawer/Drawer.js +1 -5
  3. package/cjs/components/Drawer/Drawer.js.map +1 -1
  4. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  5. package/cjs/components/Panel/Panel.css +2 -2
  6. package/cjs/components/Panel/Panel.js +6 -7
  7. package/cjs/components/Panel/Panel.js.map +1 -1
  8. package/cjs/components/Panel/Panel.styles.js +2 -12
  9. package/cjs/components/Panel/Panel.styles.js.map +1 -1
  10. package/cjs/components/Panel/Panel.styles_2oh0yk.css +1 -0
  11. package/cjs/components/Panel/Panel.tokens.js +0 -15
  12. package/cjs/components/Panel/Panel.tokens.js.map +1 -1
  13. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  14. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  15. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  16. package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
  17. package/cjs/components/Panel/variations/_view/base.js +1 -1
  18. package/cjs/components/Panel/variations/_view/base.js.map +1 -1
  19. package/cjs/components/Panel/variations/_view/base_10gjs6e.css +1 -0
  20. package/cjs/index.css +5 -5
  21. package/emotion/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  22. package/emotion/cjs/components/Drawer/Drawer.js +1 -5
  23. package/emotion/cjs/components/Panel/Panel.js +6 -7
  24. package/emotion/cjs/components/Panel/Panel.styles.js +1 -4
  25. package/emotion/cjs/components/Panel/Panel.tokens.js +1 -6
  26. package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
  27. package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
  28. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
  29. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  30. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  31. package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  32. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
  33. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  34. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  35. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  36. package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  37. package/emotion/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  38. package/emotion/es/components/Drawer/Drawer.js +1 -5
  39. package/emotion/es/components/Panel/Panel.js +7 -8
  40. package/emotion/es/components/Panel/Panel.styles.js +1 -4
  41. package/emotion/es/components/Panel/Panel.tokens.js +0 -5
  42. package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
  43. package/emotion/es/components/Panel/variations/_view/base.js +2 -2
  44. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
  45. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  46. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  47. package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  48. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
  49. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  50. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  51. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  52. package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  53. package/es/components/Drawer/Drawer.css +5 -5
  54. package/es/components/Drawer/Drawer.js +1 -5
  55. package/es/components/Drawer/Drawer.js.map +1 -1
  56. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  57. package/es/components/Panel/Panel.css +2 -2
  58. package/es/components/Panel/Panel.js +8 -9
  59. package/es/components/Panel/Panel.js.map +1 -1
  60. package/es/components/Panel/Panel.styles.js +2 -12
  61. package/es/components/Panel/Panel.styles.js.map +1 -1
  62. package/es/components/Panel/Panel.styles_2oh0yk.css +1 -0
  63. package/es/components/Panel/Panel.tokens.js +1 -14
  64. package/es/components/Panel/Panel.tokens.js.map +1 -1
  65. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  66. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  67. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  68. package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
  69. package/es/components/Panel/variations/_view/base.js +1 -1
  70. package/es/components/Panel/variations/_view/base.js.map +1 -1
  71. package/es/components/Panel/variations/_view/base_10gjs6e.css +1 -0
  72. package/es/index.css +5 -5
  73. package/package.json +2 -2
  74. package/styled-components/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  75. package/styled-components/cjs/components/Drawer/Drawer.js +1 -5
  76. package/styled-components/cjs/components/Panel/Panel.js +6 -7
  77. package/styled-components/cjs/components/Panel/Panel.styles.js +1 -4
  78. package/styled-components/cjs/components/Panel/Panel.tokens.js +1 -6
  79. package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
  80. package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
  81. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
  82. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  83. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  84. package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  85. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
  86. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  87. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  88. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  89. package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  90. package/styled-components/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
  91. package/styled-components/es/components/Drawer/Drawer.js +1 -5
  92. package/styled-components/es/components/Panel/Panel.js +7 -8
  93. package/styled-components/es/components/Panel/Panel.styles.js +1 -4
  94. package/styled-components/es/components/Panel/Panel.tokens.js +0 -5
  95. package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
  96. package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
  97. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
  98. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
  99. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
  100. package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
  101. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
  102. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
  103. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
  104. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  105. package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
  106. package/types/components/Drawer/Drawer.d.ts +0 -4
  107. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  108. package/types/components/Drawer/Drawer.types.d.ts +0 -8
  109. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  110. package/types/components/Panel/Panel.d.ts.map +1 -1
  111. package/types/components/Panel/Panel.styles.d.ts +1 -3
  112. package/types/components/Panel/Panel.styles.d.ts.map +1 -1
  113. package/types/components/Panel/Panel.tokens.d.ts +0 -5
  114. package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
  115. package/types/components/Panel/Panel.types.d.ts +0 -8
  116. package/types/components/Panel/Panel.types.d.ts.map +1 -1
  117. package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
  118. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
  119. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  120. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
  121. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +0 -2
  122. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
  123. package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
  124. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
  125. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
  126. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
  127. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +0 -2
  128. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
  129. package/cjs/components/Panel/Panel.styles_1g0gq8z.css +0 -1
  130. package/cjs/components/Panel/variations/_view/base_lwq4bq.css +0 -1
  131. package/es/components/Panel/Panel.styles_1g0gq8z.css +0 -1
  132. package/es/components/Panel/variations/_view/base_lwq4bq.css +0 -1
@@ -12,7 +12,7 @@ var _base2 = /*#__PURE__*/require("./variations/_size/base");
12
12
  var _base3 = /*#__PURE__*/require("./variations/_borderRadius/base");
13
13
  var _Panel = /*#__PURE__*/require("./Panel.tokens");
14
14
  var _Panel2 = /*#__PURE__*/require("./Panel.styles");
15
- var _excluded = ["children", "view", "size", "width", "height", "customBackgroundColor", "customContentBackgroundColor", "className", "style"];
15
+ var _excluded = ["children", "view", "size", "width", "height", "className", "style"];
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -30,8 +30,6 @@ var panelRoot = exports.panelRoot = function panelRoot(Root) {
30
30
  size = _ref.size,
31
31
  width = _ref.width,
32
32
  height = _ref.height,
33
- customBackgroundColor = _ref.customBackgroundColor,
34
- customContentBackgroundColor = _ref.customContentBackgroundColor,
35
33
  className = _ref.className,
36
34
  style = _ref.style,
37
35
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -42,10 +40,11 @@ var panelRoot = exports.panelRoot = function panelRoot(Root) {
42
40
  view: view,
43
41
  size: size,
44
42
  className: (0, _utils.cx)(_Panel.classes.root, className),
45
- style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty(_defineProperty({}, _Panel.privateTokens.width, innerWidth), _Panel.privateTokens.height, innerHeight), _Panel.privateTokens.backgrounColor, customBackgroundColor))
46
- }, rest), /*#__PURE__*/_react["default"].createElement(_Panel2.StyledWrapper, {
47
- customContentBackgroundColor: customContentBackgroundColor
48
- }, children));
43
+ style: _objectSpread(_objectSpread({}, style), {}, {
44
+ '--plasma_private-panel-width': innerWidth,
45
+ '--plasma_private-panel-height': innerHeight
46
+ })
47
+ }, rest), /*#__PURE__*/_react["default"].createElement(_Panel2.StyledWrapper, null, children));
49
48
  });
50
49
  };
51
50
  var panelConfig = exports.panelConfig = {
@@ -9,7 +9,4 @@ var _Panel = /*#__PURE__*/require("./Panel.tokens");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  var StyledWrapper = exports.StyledWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
11
11
  componentId: "plasma-new-hope__sc-ryn15p-0"
12
- })(["background:", ";height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], function (_ref) {
13
- var customContentBackgroundColor = _ref.customContentBackgroundColor;
14
- return customContentBackgroundColor || "var(".concat(_Panel.tokens.contentBackgroundColor, ")");
15
- });
12
+ })(["background:var(", ");height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], _Panel.tokens.contentBackgroundColor);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.privateTokens = exports.classes = void 0;
6
+ exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  root: 'panel-root',
9
9
  content: 'panel-content',
@@ -12,11 +12,6 @@ var classes = exports.classes = {
12
12
  hasHeader: 'panel-has-header',
13
13
  isRightClose: 'panel-right-close-button'
14
14
  };
15
- var privateTokens = exports.privateTokens = {
16
- width: '--plasma_private-panel-width',
17
- height: '--plasma_private-panel-height',
18
- backgrounColor: '--plasma_private-panel-custom-background-color'
19
- };
20
15
  var tokens = exports.tokens = {
21
16
  background: '--plasma-panel-background',
22
17
  shadow: '--plasma-panel-shadow',
@@ -15,7 +15,7 @@ var mergedButtonConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Button.buttonCo
15
15
  var Button = /*#__PURE__*/(0, _engines.component)(mergedButtonConfig);
16
16
  var ButtonWrapper = exports.ButtonWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
17
17
  componentId: "plasma-new-hope__sc-yiy73v-0"
18
- })(["background:var(", ",var(", "));order:", ";padding-left:", ";padding-right:", ";"], _Panel.privateTokens.backgrounColor, _Panel.tokens.background, function (_ref) {
18
+ })(["background:var(", ");order:", ";padding-left:", ";padding-right:", ";"], _Panel.tokens.background, function (_ref) {
19
19
  var placement = _ref.placement;
20
20
  return placement === _PanelHeader.placements.left ? -1 : 0;
21
21
  }, function (_ref2) {
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Panel = /*#__PURE__*/require("../../Panel.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["background:var(", ",var(", "));box-shadow:var(", ");box-sizing:border-box;"], _Panel.privateTokens.backgrounColor, _Panel.tokens.background, _Panel.tokens.shadow);
9
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["background:var(", ");box-shadow:var(", ");box-sizing:border-box;"], _Panel.tokens.background, _Panel.tokens.shadow);
@@ -22,13 +22,20 @@ var config = exports.config = {
22
22
  * Вид контрола.
23
23
  */
24
24
  view: {
25
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
26
+ // deprecated
25
27
  "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
28
+ // deprecated
26
29
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
30
+ // deprecated
27
31
  tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
32
+ // deprecated
28
33
  paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
29
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
34
+ // deprecated
30
35
  positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
36
+ // deprecated
31
37
  warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
38
+ // deprecated
32
39
  negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor)
33
40
  },
34
41
  disabled: {
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
5
5
 
6
- import { checkboxConfig } from '../../../../components/Checkbox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { WithTheme } from '../../../_helpers';
9
7
  import { Link } from '../Link/Link';
10
8
 
11
- import { config } from './Checkbox.config';
12
9
  import { Checkbox } from './Checkbox';
13
10
 
14
11
  const onChange = action('onChange');
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
19
16
  title: 'b2c/Data Entry/Checkbox',
20
17
  decorators: [WithTheme],
21
18
  component: Checkbox,
22
- argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
19
+ argTypes: {
20
+ view: {
21
+ options: ['accent'],
22
+ control: {
23
+ type: 'radio',
24
+ },
25
+ },
26
+ size: {
27
+ options: ['m', 's'],
28
+ control: {
29
+ type: 'radio',
30
+ },
31
+ },
32
+ },
23
33
  args: {
24
34
  view: 'accent',
25
35
  size: 'm',
@@ -14,7 +14,7 @@ import type { ClosePlacementType } from '../../../../components/Drawer';
14
14
  import { Drawer, DrawerContent, DrawerFooter, DrawerHeader } from './Drawer';
15
15
 
16
16
  export default {
17
- title: 'b2c/Overlay/Drawer',
17
+ title: 'b2c/Overlay/Divider',
18
18
  decorators: [WithTheme],
19
19
  argTypes: {
20
20
  placement: {
@@ -85,16 +85,6 @@ export default {
85
85
  type: 'select',
86
86
  },
87
87
  },
88
- customBackgroundColor: {
89
- control: {
90
- type: 'color',
91
- },
92
- },
93
- customContentBackgroundColor: {
94
- control: {
95
- type: 'color',
96
- },
97
- },
98
88
  },
99
89
  } as Meta;
100
90
 
@@ -47,16 +47,6 @@ export default {
47
47
  },
48
48
  table: { defaultValue: { summary: 'right' } },
49
49
  },
50
- customBackgroundColor: {
51
- control: {
52
- type: 'color',
53
- },
54
- },
55
- customContentBackgroundColor: {
56
- control: {
57
- type: 'color',
58
- },
59
- },
60
50
  },
61
51
  } as Meta;
62
52
 
@@ -22,13 +22,20 @@ var config = exports.config = {
22
22
  * Вид контрола.
23
23
  */
24
24
  view: {
25
+ accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
26
+ // deprecated
25
27
  "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
28
+ // deprecated
26
29
  secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
30
+ // deprecated
27
31
  tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
32
+ // deprecated
28
33
  paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
29
- accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
34
+ // deprecated
30
35
  positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
36
+ // deprecated
31
37
  warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor),
38
+ // deprecated
32
39
  negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], _Checkbox.checkboxTokens.fillColor, _Checkbox.checkboxTokens.iconColor, _Checkbox.checkboxTokens.descriptionColor, _Checkbox.checkboxTokens.triggerBackgroundColor, _Checkbox.checkboxTokens.triggerBorderColor)
33
40
  },
34
41
  disabled: {
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
5
5
 
6
- import { checkboxConfig } from '../../../../components/Checkbox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { WithTheme } from '../../../_helpers';
9
7
  import { Link } from '../Link/Link';
10
8
 
11
- import { config } from './Checkbox.config';
12
9
  import { Checkbox } from './Checkbox';
13
10
 
14
11
  const onChange = action('onChange');
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
19
16
  title: 'web/Data Entry/Checkbox',
20
17
  decorators: [WithTheme],
21
18
  component: Checkbox,
22
- argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
19
+ argTypes: {
20
+ view: {
21
+ options: ['accent'],
22
+ control: {
23
+ type: 'radio',
24
+ },
25
+ },
26
+ size: {
27
+ options: ['m', 's'],
28
+ control: {
29
+ type: 'radio',
30
+ },
31
+ },
32
+ },
23
33
  args: {
24
34
  view: 'accent',
25
35
  size: 'm',
@@ -85,16 +85,6 @@ export default {
85
85
  type: 'select',
86
86
  },
87
87
  },
88
- customBackgroundColor: {
89
- control: {
90
- type: 'color',
91
- },
92
- },
93
- customContentBackgroundColor: {
94
- control: {
95
- type: 'color',
96
- },
97
- },
98
88
  },
99
89
  } as Meta;
100
90
 
@@ -16,7 +16,7 @@ const onChoseFiles = action('onChoseFiles');
16
16
  const iconPlacements = ['top', 'left'];
17
17
 
18
18
  const meta: Meta<typeof Dropzone> = {
19
- title: 'web/Data Entry/Dropzone',
19
+ title: 'plasma_web/Dropzone',
20
20
  component: Dropzone,
21
21
  decorators: [WithTheme],
22
22
  argTypes: {
@@ -47,16 +47,6 @@ export default {
47
47
  },
48
48
  table: { defaultValue: { summary: 'right' } },
49
49
  },
50
- customBackgroundColor: {
51
- control: {
52
- type: 'color',
53
- },
54
- },
55
- customContentBackgroundColor: {
56
- control: {
57
- type: 'color',
58
- },
59
- },
60
50
  },
61
51
  } as Meta;
62
52
 
@@ -9,6 +9,10 @@ import { PropsTable, Description } from '@site/src/components';
9
9
  <Description name="Checkbox" />
10
10
  <PropsTable name="Checkbox" exclude={['css', 'focused']} />
11
11
 
12
+ :::caution устаревшие view
13
+ Актуальное значение свойства `view` - это `accent`. Все остальные - depracated.
14
+ :::
15
+
12
16
  ## Использование
13
17
  Компонент `Checkbox` может содержать лейбл и описание.
14
18
 
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "customBackgroundColor", "customContentBackgroundColor", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
1
+ var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -35,8 +35,6 @@ export var drawerRoot = function drawerRoot(Root) {
35
35
  initialFocusRef = _ref.initialFocusRef,
36
36
  focusAfterRef = _ref.focusAfterRef,
37
37
  className = _ref.className,
38
- customBackgroundColor = _ref.customBackgroundColor,
39
- customContentBackgroundColor = _ref.customContentBackgroundColor,
40
38
  onClose = _ref.onClose,
41
39
  onOverlayClick = _ref.onOverlayClick,
42
40
  onEscKeyDown = _ref.onEscKeyDown,
@@ -120,8 +118,6 @@ export var drawerRoot = function drawerRoot(Root) {
120
118
  }, /*#__PURE__*/React.createElement(StyledPanel, {
121
119
  width: innerWidth,
122
120
  height: innerHeight,
123
- customBackgroundColor: customBackgroundColor,
124
- customContentBackgroundColor: customContentBackgroundColor,
125
121
  className: className
126
122
  }, children)));
127
123
  });
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["children", "view", "size", "width", "height", "customBackgroundColor", "customContentBackgroundColor", "className", "style"];
2
+ var _excluded = ["children", "view", "size", "width", "height", "className", "style"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -13,7 +13,7 @@ import { cx, getSizeValueFromProp } from '../../utils';
13
13
  import { base as viewCSS } from './variations/_view/base';
14
14
  import { base as sizeCSS } from './variations/_size/base';
15
15
  import { base as borderRadiusCSS } from './variations/_borderRadius/base';
16
- import { classes, privateTokens } from './Panel.tokens';
16
+ import { classes } from './Panel.tokens';
17
17
  import { StyledWrapper } from './Panel.styles';
18
18
  export var panelRoot = function panelRoot(Root) {
19
19
  return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
@@ -22,8 +22,6 @@ export var panelRoot = function panelRoot(Root) {
22
22
  size = _ref.size,
23
23
  width = _ref.width,
24
24
  height = _ref.height,
25
- customBackgroundColor = _ref.customBackgroundColor,
26
- customContentBackgroundColor = _ref.customContentBackgroundColor,
27
25
  className = _ref.className,
28
26
  style = _ref.style,
29
27
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -34,10 +32,11 @@ export var panelRoot = function panelRoot(Root) {
34
32
  view: view,
35
33
  size: size,
36
34
  className: cx(classes.root, className),
37
- style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty(_defineProperty({}, privateTokens.width, innerWidth), privateTokens.height, innerHeight), privateTokens.backgrounColor, customBackgroundColor))
38
- }, rest), /*#__PURE__*/React.createElement(StyledWrapper, {
39
- customContentBackgroundColor: customContentBackgroundColor
40
- }, children));
35
+ style: _objectSpread(_objectSpread({}, style), {}, {
36
+ '--plasma_private-panel-width': innerWidth,
37
+ '--plasma_private-panel-height': innerHeight
38
+ })
39
+ }, rest), /*#__PURE__*/React.createElement(StyledWrapper, null, children));
41
40
  });
42
41
  };
43
42
  export var panelConfig = {
@@ -2,7 +2,4 @@ import styled from 'styled-components';
2
2
  import { tokens } from './Panel.tokens';
3
3
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
4
4
  componentId: "plasma-new-hope__sc-ryn15p-0"
5
- })(["background:", ";height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], function (_ref) {
6
- var customContentBackgroundColor = _ref.customContentBackgroundColor;
7
- return customContentBackgroundColor || "var(".concat(tokens.contentBackgroundColor, ")");
8
- });
5
+ })(["background:var(", ");height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], tokens.contentBackgroundColor);
@@ -6,11 +6,6 @@ export var classes = {
6
6
  hasHeader: 'panel-has-header',
7
7
  isRightClose: 'panel-right-close-button'
8
8
  };
9
- export var privateTokens = {
10
- width: '--plasma_private-panel-width',
11
- height: '--plasma_private-panel-height',
12
- backgrounColor: '--plasma_private-panel-custom-background-color'
13
- };
14
9
  export var tokens = {
15
10
  background: '--plasma-panel-background',
16
11
  shadow: '--plasma-panel-shadow',
@@ -2,13 +2,13 @@ import styled from 'styled-components';
2
2
  import { mergeConfig, component } from '../../../../engines';
3
3
  import { buttonConfig } from '../../../Button';
4
4
  import { tokens as buttonTokens } from '../../../Button/Button.tokens';
5
- import { privateTokens, tokens } from '../../Panel.tokens';
5
+ import { tokens } from '../../Panel.tokens';
6
6
  import { placements } from './PanelHeader.types';
7
7
  var mergedButtonConfig = /*#__PURE__*/mergeConfig(buttonConfig);
8
8
  var Button = /*#__PURE__*/component(mergedButtonConfig);
9
9
  export var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
10
10
  componentId: "plasma-new-hope__sc-yiy73v-0"
11
- })(["background:var(", ",var(", "));order:", ";padding-left:", ";padding-right:", ";"], privateTokens.backgrounColor, tokens.background, function (_ref) {
11
+ })(["background:var(", ");order:", ";padding-left:", ";padding-right:", ";"], tokens.background, function (_ref) {
12
12
  var placement = _ref.placement;
13
13
  return placement === placements.left ? -1 : 0;
14
14
  }, function (_ref2) {
@@ -1,3 +1,3 @@
1
1
  import { css } from 'styled-components';
2
- import { privateTokens, tokens } from '../../Panel.tokens';
3
- export var base = /*#__PURE__*/css(["background:var(", ",var(", "));box-shadow:var(", ");box-sizing:border-box;"], privateTokens.backgrounColor, tokens.background, tokens.shadow);
2
+ import { tokens } from '../../Panel.tokens';
3
+ export var base = /*#__PURE__*/css(["background:var(", ");box-shadow:var(", ");box-sizing:border-box;"], tokens.background, tokens.shadow);
@@ -16,13 +16,20 @@ export var config = {
16
16
  * Вид контрола.
17
17
  */
18
18
  view: {
19
+ accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
20
+ // deprecated
19
21
  "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
22
+ // deprecated
20
23
  secondary: /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
24
+ // deprecated
21
25
  tertiary: /*#__PURE__*/css(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
26
+ // deprecated
22
27
  paragraph: /*#__PURE__*/css(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
23
- accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
28
+ // deprecated
24
29
  positive: /*#__PURE__*/css(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
30
+ // deprecated
25
31
  warning: /*#__PURE__*/css(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
32
+ // deprecated
26
33
  negative: /*#__PURE__*/css(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor)
27
34
  },
28
35
  disabled: {
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
5
5
 
6
- import { checkboxConfig } from '../../../../components/Checkbox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { WithTheme } from '../../../_helpers';
9
7
  import { Link } from '../Link/Link';
10
8
 
11
- import { config } from './Checkbox.config';
12
9
  import { Checkbox } from './Checkbox';
13
10
 
14
11
  const onChange = action('onChange');
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
19
16
  title: 'b2c/Data Entry/Checkbox',
20
17
  decorators: [WithTheme],
21
18
  component: Checkbox,
22
- argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
19
+ argTypes: {
20
+ view: {
21
+ options: ['accent'],
22
+ control: {
23
+ type: 'radio',
24
+ },
25
+ },
26
+ size: {
27
+ options: ['m', 's'],
28
+ control: {
29
+ type: 'radio',
30
+ },
31
+ },
32
+ },
23
33
  args: {
24
34
  view: 'accent',
25
35
  size: 'm',
@@ -14,7 +14,7 @@ import type { ClosePlacementType } from '../../../../components/Drawer';
14
14
  import { Drawer, DrawerContent, DrawerFooter, DrawerHeader } from './Drawer';
15
15
 
16
16
  export default {
17
- title: 'b2c/Overlay/Drawer',
17
+ title: 'b2c/Overlay/Divider',
18
18
  decorators: [WithTheme],
19
19
  argTypes: {
20
20
  placement: {
@@ -85,16 +85,6 @@ export default {
85
85
  type: 'select',
86
86
  },
87
87
  },
88
- customBackgroundColor: {
89
- control: {
90
- type: 'color',
91
- },
92
- },
93
- customContentBackgroundColor: {
94
- control: {
95
- type: 'color',
96
- },
97
- },
98
88
  },
99
89
  } as Meta;
100
90
 
@@ -47,16 +47,6 @@ export default {
47
47
  },
48
48
  table: { defaultValue: { summary: 'right' } },
49
49
  },
50
- customBackgroundColor: {
51
- control: {
52
- type: 'color',
53
- },
54
- },
55
- customContentBackgroundColor: {
56
- control: {
57
- type: 'color',
58
- },
59
- },
60
50
  },
61
51
  } as Meta;
62
52
 
@@ -16,13 +16,20 @@ export var config = {
16
16
  * Вид контрола.
17
17
  */
18
18
  view: {
19
+ accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
20
+ // deprecated
19
21
  "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
22
+ // deprecated
20
23
  secondary: /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
24
+ // deprecated
21
25
  tertiary: /*#__PURE__*/css(["", ":var(--text-tertiary);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
26
+ // deprecated
22
27
  paragraph: /*#__PURE__*/css(["", ":var(--text-paragraph);", ":var(--inverse-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
23
- accent: /*#__PURE__*/css(["", ":var(--text-accent);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
28
+ // deprecated
24
29
  positive: /*#__PURE__*/css(["", ":var(--text-positive);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
30
+ // deprecated
25
31
  warning: /*#__PURE__*/css(["", ":var(--text-warning);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor),
32
+ // deprecated
26
33
  negative: /*#__PURE__*/css(["", ":var(--text-negative);", ":var(--on-dark-text-primary);", ":var(--text-secondary);", ":transparent;", ":var(--text-secondary);"], checkboxTokens.fillColor, checkboxTokens.iconColor, checkboxTokens.descriptionColor, checkboxTokens.triggerBackgroundColor, checkboxTokens.triggerBorderColor)
27
34
  },
28
35
  disabled: {
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
5
5
 
6
- import { checkboxConfig } from '../../../../components/Checkbox';
7
- import { mergeConfig } from '../../../../engines';
8
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
6
+ import { WithTheme } from '../../../_helpers';
9
7
  import { Link } from '../Link/Link';
10
8
 
11
- import { config } from './Checkbox.config';
12
9
  import { Checkbox } from './Checkbox';
13
10
 
14
11
  const onChange = action('onChange');
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
19
16
  title: 'web/Data Entry/Checkbox',
20
17
  decorators: [WithTheme],
21
18
  component: Checkbox,
22
- argTypes: argTypesFromConfig(mergeConfig(checkboxConfig, config)),
19
+ argTypes: {
20
+ view: {
21
+ options: ['accent'],
22
+ control: {
23
+ type: 'radio',
24
+ },
25
+ },
26
+ size: {
27
+ options: ['m', 's'],
28
+ control: {
29
+ type: 'radio',
30
+ },
31
+ },
32
+ },
23
33
  args: {
24
34
  view: 'accent',
25
35
  size: 'm',
@@ -85,16 +85,6 @@ export default {
85
85
  type: 'select',
86
86
  },
87
87
  },
88
- customBackgroundColor: {
89
- control: {
90
- type: 'color',
91
- },
92
- },
93
- customContentBackgroundColor: {
94
- control: {
95
- type: 'color',
96
- },
97
- },
98
88
  },
99
89
  } as Meta;
100
90