@salutejs/plasma-new-hope 0.264.0-canary.1757.13287195621.0 → 0.264.0-canary.1760.13286965233.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  3. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  4. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  5. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  6. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  7. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  8. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  9. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  10. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  11. package/cjs/components/Drawer/Drawer.css +5 -5
  12. package/cjs/components/Drawer/Drawer.js +5 -1
  13. package/cjs/components/Drawer/Drawer.js.map +1 -1
  14. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  15. package/cjs/components/Panel/Panel.css +2 -2
  16. package/cjs/components/Panel/Panel.js +7 -6
  17. package/cjs/components/Panel/Panel.js.map +1 -1
  18. package/cjs/components/Panel/Panel.styles.js +12 -2
  19. package/cjs/components/Panel/Panel.styles.js.map +1 -1
  20. package/cjs/components/Panel/Panel.styles_1g0gq8z.css +1 -0
  21. package/cjs/components/Panel/Panel.tokens.js +15 -0
  22. package/cjs/components/Panel/Panel.tokens.js.map +1 -1
  23. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  24. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  25. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  26. package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
  27. package/cjs/components/Panel/variations/_view/base.js +1 -1
  28. package/cjs/components/Panel/variations/_view/base.js.map +1 -1
  29. package/cjs/components/Panel/variations/_view/base_lwq4bq.css +1 -0
  30. package/cjs/index.css +5 -5
  31. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  32. package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  33. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  34. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  35. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  36. package/emotion/cjs/components/Drawer/Drawer.js +5 -1
  37. package/emotion/cjs/components/Panel/Panel.js +7 -6
  38. package/emotion/cjs/components/Panel/Panel.styles.js +4 -1
  39. package/emotion/cjs/components/Panel/Panel.tokens.js +6 -1
  40. package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
  41. package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
  42. package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
  43. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
  44. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  45. package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  46. package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
  47. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
  48. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
  49. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  50. package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  51. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  52. package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  53. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  54. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  55. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  56. package/emotion/es/components/Drawer/Drawer.js +5 -1
  57. package/emotion/es/components/Panel/Panel.js +8 -7
  58. package/emotion/es/components/Panel/Panel.styles.js +4 -1
  59. package/emotion/es/components/Panel/Panel.tokens.js +5 -0
  60. package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
  61. package/emotion/es/components/Panel/variations/_view/base.js +2 -2
  62. package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
  63. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
  64. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  65. package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  66. package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
  67. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
  68. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
  69. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  70. package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  71. package/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  72. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  73. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  74. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  75. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  76. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  77. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  78. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  79. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  80. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  81. package/es/components/Drawer/Drawer.css +5 -5
  82. package/es/components/Drawer/Drawer.js +5 -1
  83. package/es/components/Drawer/Drawer.js.map +1 -1
  84. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  85. package/es/components/Panel/Panel.css +2 -2
  86. package/es/components/Panel/Panel.js +9 -8
  87. package/es/components/Panel/Panel.js.map +1 -1
  88. package/es/components/Panel/Panel.styles.js +12 -2
  89. package/es/components/Panel/Panel.styles.js.map +1 -1
  90. package/es/components/Panel/Panel.styles_1g0gq8z.css +1 -0
  91. package/es/components/Panel/Panel.tokens.js +14 -1
  92. package/es/components/Panel/Panel.tokens.js.map +1 -1
  93. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  94. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  95. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  96. package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
  97. package/es/components/Panel/variations/_view/base.js +1 -1
  98. package/es/components/Panel/variations/_view/base.js.map +1 -1
  99. package/es/components/Panel/variations/_view/base_lwq4bq.css +1 -0
  100. package/es/index.css +5 -5
  101. package/package.json +2 -2
  102. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  103. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  104. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  105. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  106. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  107. package/styled-components/cjs/components/Drawer/Drawer.js +5 -1
  108. package/styled-components/cjs/components/Panel/Panel.js +7 -6
  109. package/styled-components/cjs/components/Panel/Panel.styles.js +4 -1
  110. package/styled-components/cjs/components/Panel/Panel.tokens.js +6 -1
  111. package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
  112. package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
  113. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
  114. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
  115. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  116. package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  117. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
  118. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
  119. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
  120. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  121. package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  122. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
  123. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
  124. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
  125. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
  126. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
  127. package/styled-components/es/components/Drawer/Drawer.js +5 -1
  128. package/styled-components/es/components/Panel/Panel.js +8 -7
  129. package/styled-components/es/components/Panel/Panel.styles.js +4 -1
  130. package/styled-components/es/components/Panel/Panel.tokens.js +5 -0
  131. package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
  132. package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
  133. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
  134. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
  135. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  136. package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  137. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
  138. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
  139. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
  140. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  141. package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  142. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  143. package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
  144. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
  145. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
  146. package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
  147. package/types/components/Drawer/Drawer.d.ts +4 -0
  148. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  149. package/types/components/Drawer/Drawer.types.d.ts +8 -0
  150. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  151. package/types/components/Panel/Panel.d.ts.map +1 -1
  152. package/types/components/Panel/Panel.styles.d.ts +3 -1
  153. package/types/components/Panel/Panel.styles.d.ts.map +1 -1
  154. package/types/components/Panel/Panel.tokens.d.ts +5 -0
  155. package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
  156. package/types/components/Panel/Panel.types.d.ts +8 -0
  157. package/types/components/Panel/Panel.types.d.ts.map +1 -1
  158. package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
  159. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +2 -0
  160. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
  161. package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
  162. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +2 -0
  163. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
  164. package/cjs/components/Panel/Panel.styles_2oh0yk.css +0 -1
  165. package/cjs/components/Panel/variations/_view/base_10gjs6e.css +0 -1
  166. package/es/components/Panel/Panel.styles_2oh0yk.css +0 -1
  167. package/es/components/Panel/variations/_view/base_10gjs6e.css +0 -1
@@ -1,4 +1,4 @@
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"];
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"];
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,6 +35,8 @@ 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,
38
40
  onClose = _ref.onClose,
39
41
  onOverlayClick = _ref.onOverlayClick,
40
42
  onEscKeyDown = _ref.onEscKeyDown,
@@ -118,6 +120,8 @@ export var drawerRoot = function drawerRoot(Root) {
118
120
  }, /*#__PURE__*/React.createElement(StyledPanel, {
119
121
  width: innerWidth,
120
122
  height: innerHeight,
123
+ customBackgroundColor: customBackgroundColor,
124
+ customContentBackgroundColor: customContentBackgroundColor,
121
125
  className: className
122
126
  }, children)));
123
127
  });
@@ -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", "className", "style"];
2
+ var _excluded = ["children", "view", "size", "width", "height", "customBackgroundColor", "customContentBackgroundColor", "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 } from './Panel.tokens';
16
+ import { classes, privateTokens } 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,6 +22,8 @@ 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,
25
27
  className = _ref.className,
26
28
  style = _ref.style,
27
29
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -32,11 +34,10 @@ export var panelRoot = function panelRoot(Root) {
32
34
  view: view,
33
35
  size: size,
34
36
  className: cx(classes.root, className),
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));
37
+ style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty(_defineProperty({}, privateTokens.width, innerWidth), privateTokens.height, innerHeight), privateTokens.backgroundColor, customBackgroundColor))
38
+ }, rest), /*#__PURE__*/React.createElement(StyledWrapper, {
39
+ customContentBackgroundColor: customContentBackgroundColor
40
+ }, children));
40
41
  });
41
42
  };
42
43
  export var panelConfig = {
@@ -2,4 +2,7 @@ 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:var(", ");height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], tokens.contentBackgroundColor);
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
+ });
@@ -6,6 +6,11 @@ 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
+ backgroundColor: '--plasma_private-panel-custom-background-color'
13
+ };
9
14
  export var tokens = {
10
15
  background: '--plasma-panel-background',
11
16
  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 { tokens } from '../../Panel.tokens';
5
+ import { privateTokens, 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(", ");order:", ";padding-left:", ";padding-right:", ";"], tokens.background, function (_ref) {
11
+ })(["background:var(", ",var(", "));order:", ";padding-left:", ";padding-right:", ";"], privateTokens.backgroundColor, 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 { tokens } from '../../Panel.tokens';
3
- export var base = /*#__PURE__*/css(["background:var(", ");box-shadow:var(", ");box-sizing:border-box;"], tokens.background, tokens.shadow);
2
+ import { privateTokens, tokens } from '../../Panel.tokens';
3
+ export var base = /*#__PURE__*/css(["background:var(", ",var(", "));box-shadow:var(", ");box-sizing:border-box;"], privateTokens.backgroundColor, tokens.background, tokens.shadow);
@@ -100,11 +100,11 @@ const StoryDefault = (args: CalendarProps) => {
100
100
  isDouble={isDouble}
101
101
  date={date}
102
102
  value={(isRange ? valueRange : value) as Date & [Date, Date?]}
103
+ min={min}
104
+ max={max}
103
105
  includeEdgeDates={includeEdgeDates}
104
106
  locale={locale}
105
107
  onChangeValue={(isRange ? handleOnRangeChange : handleOnChange) as (value: Date | [Date, Date?]) => void}
106
- min={min}
107
- max={max}
108
108
  />
109
109
  );
110
110
  };
@@ -146,24 +146,24 @@ const StoryBase = (args: CalendarBaseProps & { displayDouble: boolean }) => {
146
146
  <CalendarDouble
147
147
  size={size}
148
148
  value={value}
149
+ min={min}
150
+ max={max}
149
151
  includeEdgeDates={includeEdgeDates}
150
152
  type={type}
151
153
  locale={locale}
152
154
  onChangeValue={handleOnChange}
153
- {...(min && { min: new Date(min) })}
154
- {...(max && { max: new Date(max) })}
155
155
  {...rest}
156
156
  />
157
157
  ) : (
158
158
  <CalendarBase
159
159
  size={size}
160
160
  value={value}
161
+ min={min}
162
+ max={max}
161
163
  includeEdgeDates={includeEdgeDates}
162
164
  type={type}
163
165
  locale={locale}
164
166
  onChangeValue={handleOnChange}
165
- {...(min && { min: new Date(min) })}
166
- {...(max && { max: new Date(max) })}
167
167
  {...rest}
168
168
  />
169
169
  );
@@ -233,24 +233,24 @@ const StoryRange = (args: CalendarBaseRangeProps & { displayDouble: boolean }) =
233
233
  <CalendarBaseRange
234
234
  size={size}
235
235
  value={values}
236
+ min={min}
237
+ max={max}
236
238
  includeEdgeDates={includeEdgeDates}
237
239
  type={type}
238
240
  onChangeValue={handleOnChange}
239
241
  locale={locale}
240
- {...(min && { min: new Date(min) })}
241
- {...(max && { max: new Date(max) })}
242
242
  {...rest}
243
243
  />
244
244
  ) : (
245
245
  <CalendarDoubleRange
246
246
  size={size}
247
247
  value={values}
248
+ min={min}
249
+ max={max}
248
250
  includeEdgeDates={includeEdgeDates}
249
251
  type={type}
250
252
  onChangeValue={handleOnChange}
251
253
  locale={locale}
252
- {...(min && { min: new Date(min) })}
253
- {...(max && { max: new Date(max) })}
254
254
  {...rest}
255
255
  />
256
256
  );
@@ -80,8 +80,6 @@ const StoryDefault = ({
80
80
  size,
81
81
  lang,
82
82
  format,
83
- min,
84
- max,
85
83
  ...rest
86
84
  }: StoryPropsDefault) => {
87
85
  const [isOpen, setIsOpen] = useState(false);
@@ -105,8 +103,6 @@ const StoryDefault = ({
105
103
  lang={lang}
106
104
  format={format}
107
105
  onCommitDate={() => setIsOpen(false)}
108
- min={min}
109
- max={max}
110
106
  {...rest}
111
107
  />
112
108
  );
@@ -192,8 +188,6 @@ const StoryRange = ({
192
188
  secondValueSuccess,
193
189
  size,
194
190
  lang,
195
- min,
196
- max,
197
191
  ...rest
198
192
  }: StoryPropsRange) => {
199
193
  const rangeRef = useRef<RangeInputRefs>(null);
@@ -246,8 +240,6 @@ const StoryRange = ({
246
240
  onChangeSecondValue(e, currentValue);
247
241
  }}
248
242
  lang={lang}
249
- min={min}
250
- max={max}
251
243
  {...dividerIconProps}
252
244
  {...rest}
253
245
  />
@@ -314,8 +306,6 @@ const StoryDeferred = ({
314
306
  valueError,
315
307
  valueSuccess,
316
308
  size,
317
- min,
318
- max,
319
309
  ...rest
320
310
  }: StoryPropsDefault) => {
321
311
  const [isOpen, setIsOpen] = useState(false);
@@ -348,8 +338,6 @@ const StoryDeferred = ({
348
338
  onChangeValue(e, currentValue);
349
339
  }}
350
340
  onCommitDate={() => setIsOpen(false)}
351
- {...(min && { min: new Date(min) })}
352
- {...(max && { max: new Date(max) })}
353
341
  {...rest}
354
342
  />
355
343
  </>
@@ -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/Divider',
17
+ title: 'b2c/Overlay/Drawer',
18
18
  decorators: [WithTheme],
19
19
  argTypes: {
20
20
  placement: {
@@ -85,6 +85,16 @@ 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
+ },
88
98
  },
89
99
  } as Meta;
90
100
 
@@ -47,6 +47,16 @@ 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
+ },
50
60
  },
51
61
  } as Meta;
52
62
 
@@ -100,11 +100,11 @@ const StoryDefault = (args: CalendarProps) => {
100
100
  isDouble={isDouble}
101
101
  date={date}
102
102
  value={(isRange ? valueRange : value) as Date & [Date, Date?]}
103
+ min={min}
104
+ max={max}
103
105
  includeEdgeDates={includeEdgeDates}
104
106
  locale={locale}
105
107
  onChangeValue={(isRange ? handleOnRangeChange : handleOnChange) as (value: Date | [Date, Date?]) => void}
106
- min={min}
107
- max={max}
108
108
  />
109
109
  );
110
110
  };
@@ -146,24 +146,24 @@ const StoryBase = (args: CalendarBaseProps & { displayDouble: boolean }) => {
146
146
  <CalendarDouble
147
147
  size={size}
148
148
  value={value}
149
+ min={min}
150
+ max={max}
149
151
  includeEdgeDates={includeEdgeDates}
150
152
  type={type}
151
153
  locale={locale}
152
154
  onChangeValue={handleOnChange}
153
- {...(min && { min: new Date(min) })}
154
- {...(max && { max: new Date(max) })}
155
155
  {...rest}
156
156
  />
157
157
  ) : (
158
158
  <CalendarBase
159
159
  size={size}
160
160
  value={value}
161
+ min={min}
162
+ max={max}
161
163
  includeEdgeDates={includeEdgeDates}
162
164
  type={type}
163
165
  locale={locale}
164
166
  onChangeValue={handleOnChange}
165
- {...(min && { min: new Date(min) })}
166
- {...(max && { max: new Date(max) })}
167
167
  {...rest}
168
168
  />
169
169
  );
@@ -233,24 +233,24 @@ const StoryRange = (args: CalendarBaseRangeProps & { displayDouble: boolean }) =
233
233
  <CalendarBaseRange
234
234
  size={size}
235
235
  value={values}
236
+ min={min}
237
+ max={max}
236
238
  includeEdgeDates={includeEdgeDates}
237
239
  type={type}
238
240
  onChangeValue={handleOnChange}
239
241
  locale={locale}
240
- {...(min && { min: new Date(min) })}
241
- {...(max && { max: new Date(max) })}
242
242
  {...rest}
243
243
  />
244
244
  ) : (
245
245
  <CalendarDoubleRange
246
246
  size={size}
247
247
  value={values}
248
+ min={min}
249
+ max={max}
248
250
  includeEdgeDates={includeEdgeDates}
249
251
  type={type}
250
252
  onChangeValue={handleOnChange}
251
253
  locale={locale}
252
- {...(min && { min: new Date(min) })}
253
- {...(max && { max: new Date(max) })}
254
254
  {...rest}
255
255
  />
256
256
  );
@@ -1,7 +1,7 @@
1
1
  import React, { ComponentProps, useEffect, useRef, useState } from 'react';
2
2
  import type { StoryObj, Meta } from '@storybook/react';
3
3
  import { action } from '@storybook/addon-actions';
4
- import { disableProps, IconPlaceholder } from '@salutejs/plasma-sb-utils';
4
+ import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
5
 
6
6
  import { WithTheme } from '../../../_helpers';
7
7
  import { IconButton } from '../IconButton/IconButton';
@@ -80,8 +80,6 @@ const StoryDefault = ({
80
80
  size,
81
81
  lang,
82
82
  format,
83
- min,
84
- max,
85
83
  ...rest
86
84
  }: StoryPropsDefault) => {
87
85
  const [isOpen, setIsOpen] = useState(false);
@@ -105,8 +103,6 @@ const StoryDefault = ({
105
103
  lang={lang}
106
104
  format={format}
107
105
  onCommitDate={() => setIsOpen(false)}
108
- min={min}
109
- max={max}
110
106
  {...rest}
111
107
  />
112
108
  );
@@ -192,8 +188,6 @@ const StoryRange = ({
192
188
  secondValueSuccess,
193
189
  size,
194
190
  lang,
195
- min,
196
- max,
197
191
  ...rest
198
192
  }: StoryPropsRange) => {
199
193
  const rangeRef = useRef<RangeInputRefs>(null);
@@ -246,8 +240,6 @@ const StoryRange = ({
246
240
  onChangeSecondValue(e, currentValue);
247
241
  }}
248
242
  lang={lang}
249
- min={min}
250
- max={max}
251
243
  {...dividerIconProps}
252
244
  {...rest}
253
245
  />
@@ -314,8 +306,6 @@ const StoryDeferred = ({
314
306
  valueError,
315
307
  valueSuccess,
316
308
  size,
317
- min,
318
- max,
319
309
  ...rest
320
310
  }: StoryPropsDefault) => {
321
311
  const [isOpen, setIsOpen] = useState(false);
@@ -348,8 +338,6 @@ const StoryDeferred = ({
348
338
  onChangeValue(e, currentValue);
349
339
  }}
350
340
  onCommitDate={() => setIsOpen(false)}
351
- {...(min && { min: new Date(min) })}
352
- {...(max && { max: new Date(max) })}
353
341
  {...rest}
354
342
  />
355
343
  </>
@@ -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: 'web/Overlay/Divider',
17
+ title: 'web/Overlay/Drawer',
18
18
  decorators: [WithTheme],
19
19
  argTypes: {
20
20
  placement: {
@@ -85,6 +85,16 @@ 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
+ },
88
98
  },
89
99
  } as Meta;
90
100
 
@@ -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: 'plasma_web/Dropzone',
19
+ title: 'web/Data Entry/Dropzone',
20
20
  component: Dropzone,
21
21
  decorators: [WithTheme],
22
22
  argTypes: {
@@ -47,6 +47,16 @@ 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
+ },
50
60
  },
51
61
  } as Meta;
52
62
 
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,oBAAY,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC,0GA6M3F,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBA/MQ,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC;;;;;;;;;;;;;;CAgO/F,CAAC"}
1
+ {"version":3,"file":"CalendarBase.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMV,cAAc,EAGjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAMnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,oBAAY,iBAAiB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC,0GA0M3F,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBA5MQ,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC;;;;;;;;;;;;;;CA6N/F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQnD,oBAAY,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC,0GAwV7F,CAAC;AAEN,eAAO,MAAM,oBAAoB;;;mBA1VQ,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC;;;;;;;;;;;CAwWjG,CAAC"}
1
+ {"version":3,"file":"CalendarDouble.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarDouble/CalendarDouble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKV,cAAc,EAIjB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAc,MAAM,mBAAmB,CAAC;AAInF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQnD,oBAAY,mBAAmB,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC,0GAqV7F,CAAC;AAEN,eAAO,MAAM,oBAAoB;;;mBAvVQ,UAAU,cAAc,EAAE,eAAe,cAAc,CAAC,CAAC;;;;;;;;;;;CAqWjG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyLxD,CAAC"}
1
+ {"version":3,"file":"CalendarMonths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarMonths/CalendarMonths.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8KxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqL5D,CAAC"}
1
+ {"version":3,"file":"CalendarQuarters.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarQuarters/CalendarQuarters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2K5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0LtD,CAAC"}
1
+ {"version":3,"file":"CalendarYears.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/ui/CalendarYears/CalendarYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+KtD,CAAC"}
@@ -4,6 +4,8 @@ import type { DrawerProps } from './Drawer.types';
4
4
  export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
5
5
  placement?: "left" | "right" | "top" | "bottom" | undefined;
6
6
  asModal?: boolean | undefined;
7
+ customBackgroundColor?: string | undefined;
8
+ customContentBackgroundColor?: string | undefined;
7
9
  withBlur?: boolean | undefined;
8
10
  closeOnEsc?: boolean | undefined;
9
11
  closeOnOverlayClick?: boolean | undefined;
@@ -19,6 +21,8 @@ export declare const drawerConfig: {
19
21
  layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
20
22
  placement?: "left" | "right" | "top" | "bottom" | undefined;
21
23
  asModal?: boolean | undefined;
24
+ customBackgroundColor?: string | undefined;
25
+ customContentBackgroundColor?: string | undefined;
22
26
  withBlur?: boolean | undefined;
23
27
  closeOnEsc?: boolean | undefined;
24
28
  closeOnOverlayClick?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;wCAsHlE,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAxHQ,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ItE,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;wCA8HlE,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJtE,CAAC"}
@@ -25,6 +25,14 @@ export declare type DrawerProps = PopupProps & PanelProps & {
25
25
  * Если же передано как false, контент вне Drawer становиться доступным.
26
26
  */
27
27
  asModal?: boolean;
28
+ /**
29
+ * Пользовательский цвет фона Panel.
30
+ */
31
+ customBackgroundColor?: string;
32
+ /**
33
+ * Пользовательский цвет фона контента Panel.
34
+ */
35
+ customContentBackgroundColor?: string;
28
36
  /**
29
37
  * Нужно ли применять blur для подложки.
30
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,oBAAY,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,oBAAY,WAAW,GAAG,UAAU,GAChC,UAAU,GAAG;IACT;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,oBAAY,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,oBAAY,WAAW,GAAG,UAAU,GAChC,UAAU,GAAG;IACT;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFAyBhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA3BQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;CAgDpE,CAAC"}
1
+ {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFA0ChE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA5CQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;CAiEpE,CAAC"}
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const StyledWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
3
+ customContentBackgroundColor?: string | undefined;
4
+ }>;
3
5
  //# sourceMappingURL=Panel.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa,qKAOzB,CAAC"}
1
+ {"version":3,"file":"Panel.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa;;EAQzB,CAAC"}
@@ -6,6 +6,11 @@ export declare const classes: {
6
6
  hasHeader: string;
7
7
  isRightClose: string;
8
8
  };
9
+ export declare const privateTokens: {
10
+ width: string;
11
+ height: string;
12
+ backgroundColor: string;
13
+ };
9
14
  export declare const tokens: {
10
15
  background: string;
11
16
  shadow: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
1
+ {"version":3,"file":"Panel.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAIzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
@@ -37,6 +37,14 @@ export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
37
37
  * none
38
38
  */
39
39
  borderRadius?: BorderRadius;
40
+ /**
41
+ * Пользовательский цвет фона Panel.
42
+ */
43
+ customBackgroundColor?: string;
44
+ /**
45
+ * Пользовательский цвет фона контента Panel.
46
+ */
47
+ customContentBackgroundColor?: string;
40
48
  }
41
49
  export {};
42
50
  //# sourceMappingURL=Panel.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.types.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B"}
1
+ {"version":3,"file":"Panel.types.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACzC"}