@salutejs/plasma-new-hope 0.261.0-canary.1756.13182478014.0 → 0.261.0-canary.1760.13177544873.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  2. package/cjs/components/Calendar/hooks/useCalendarDateChange.js.map +1 -1
  3. package/cjs/components/Calendar/store/reducer.js +3 -4
  4. package/cjs/components/Calendar/store/reducer.js.map +1 -1
  5. package/cjs/components/Calendar/store/types.js.map +1 -1
  6. package/cjs/components/Drawer/Drawer.css +5 -5
  7. package/cjs/components/Drawer/Drawer.js +5 -1
  8. package/cjs/components/Drawer/Drawer.js.map +1 -1
  9. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  10. package/cjs/components/Panel/Panel.css +2 -2
  11. package/cjs/components/Panel/Panel.js +7 -6
  12. package/cjs/components/Panel/Panel.js.map +1 -1
  13. package/cjs/components/Panel/Panel.styles.js +12 -2
  14. package/cjs/components/Panel/Panel.styles.js.map +1 -1
  15. package/cjs/components/Panel/Panel.styles_1g0gq8z.css +1 -0
  16. package/cjs/components/Panel/Panel.tokens.js +15 -0
  17. package/cjs/components/Panel/Panel.tokens.js.map +1 -1
  18. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  19. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  20. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  21. package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
  22. package/cjs/components/Panel/variations/_view/base.js +1 -1
  23. package/cjs/components/Panel/variations/_view/base.js.map +1 -1
  24. package/cjs/components/Panel/variations/_view/base_lwq4bq.css +1 -0
  25. package/cjs/index.css +5 -5
  26. package/emotion/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  27. package/emotion/cjs/components/Calendar/store/reducer.js +3 -4
  28. package/emotion/cjs/components/Drawer/Drawer.js +5 -1
  29. package/emotion/cjs/components/Panel/Panel.js +7 -6
  30. package/emotion/cjs/components/Panel/Panel.styles.js +4 -1
  31. package/emotion/cjs/components/Panel/Panel.tokens.js +6 -1
  32. package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
  33. package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
  34. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  35. package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  36. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
  37. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  38. package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  39. package/emotion/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  40. package/emotion/es/components/Calendar/store/reducer.js +3 -4
  41. package/emotion/es/components/Drawer/Drawer.js +5 -1
  42. package/emotion/es/components/Panel/Panel.js +8 -7
  43. package/emotion/es/components/Panel/Panel.styles.js +4 -1
  44. package/emotion/es/components/Panel/Panel.tokens.js +5 -0
  45. package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
  46. package/emotion/es/components/Panel/variations/_view/base.js +2 -2
  47. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  48. package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  49. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
  50. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  51. package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  52. package/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  53. package/es/components/Calendar/hooks/useCalendarDateChange.js.map +1 -1
  54. package/es/components/Calendar/store/reducer.js +3 -4
  55. package/es/components/Calendar/store/reducer.js.map +1 -1
  56. package/es/components/Calendar/store/types.js.map +1 -1
  57. package/es/components/Drawer/Drawer.css +5 -5
  58. package/es/components/Drawer/Drawer.js +5 -1
  59. package/es/components/Drawer/Drawer.js.map +1 -1
  60. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
  61. package/es/components/Panel/Panel.css +2 -2
  62. package/es/components/Panel/Panel.js +9 -8
  63. package/es/components/Panel/Panel.js.map +1 -1
  64. package/es/components/Panel/Panel.styles.js +12 -2
  65. package/es/components/Panel/Panel.styles.js.map +1 -1
  66. package/es/components/Panel/Panel.styles_1g0gq8z.css +1 -0
  67. package/es/components/Panel/Panel.tokens.js +14 -1
  68. package/es/components/Panel/Panel.tokens.js.map +1 -1
  69. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
  70. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
  71. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  72. package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
  73. package/es/components/Panel/variations/_view/base.js +1 -1
  74. package/es/components/Panel/variations/_view/base.js.map +1 -1
  75. package/es/components/Panel/variations/_view/base_lwq4bq.css +1 -0
  76. package/es/index.css +5 -5
  77. package/package.json +2 -2
  78. package/styled-components/cjs/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  79. package/styled-components/cjs/components/Calendar/store/reducer.js +3 -4
  80. package/styled-components/cjs/components/Drawer/Drawer.js +5 -1
  81. package/styled-components/cjs/components/Panel/Panel.js +7 -6
  82. package/styled-components/cjs/components/Panel/Panel.styles.js +4 -1
  83. package/styled-components/cjs/components/Panel/Panel.tokens.js +6 -1
  84. package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
  85. package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
  86. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  87. package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  88. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
  89. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  90. package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  91. package/styled-components/es/components/Calendar/hooks/useCalendarDateChange.js +0 -1
  92. package/styled-components/es/components/Calendar/store/reducer.js +3 -4
  93. package/styled-components/es/components/Drawer/Drawer.js +5 -1
  94. package/styled-components/es/components/Panel/Panel.js +8 -7
  95. package/styled-components/es/components/Panel/Panel.styles.js +4 -1
  96. package/styled-components/es/components/Panel/Panel.tokens.js +5 -0
  97. package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
  98. package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
  99. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
  100. package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
  101. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +10 -0
  102. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
  103. package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
  104. package/types/components/Calendar/hooks/useCalendarDateChange.d.ts.map +1 -1
  105. package/types/components/Calendar/store/types.d.ts +0 -1
  106. package/types/components/Calendar/store/types.d.ts.map +1 -1
  107. package/types/components/Drawer/Drawer.d.ts +4 -0
  108. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  109. package/types/components/Drawer/Drawer.types.d.ts +8 -0
  110. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  111. package/types/components/Panel/Panel.d.ts.map +1 -1
  112. package/types/components/Panel/Panel.styles.d.ts +3 -1
  113. package/types/components/Panel/Panel.styles.d.ts.map +1 -1
  114. package/types/components/Panel/Panel.tokens.d.ts +5 -0
  115. package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
  116. package/types/components/Panel/Panel.types.d.ts +8 -0
  117. package/types/components/Panel/Panel.types.d.ts.map +1 -1
  118. package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
  119. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +2 -0
  120. package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
  121. package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
  122. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +2 -0
  123. package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
  124. package/cjs/components/Panel/Panel.styles_2oh0yk.css +0 -1
  125. package/cjs/components/Panel/variations/_view/base_10gjs6e.css +0 -1
  126. package/es/components/Panel/Panel.styles_2oh0yk.css +0 -1
  127. package/es/components/Panel/variations/_view/base_10gjs6e.css +0 -1
@@ -1,3 +1,3 @@
1
- .b5xb1jq{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
1
+ .b5xb1jq{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
2
2
  .s1hqmxl1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
3
3
  .c7hx8go{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
@@ -1,4 +1,4 @@
1
- import './base_10gjs6e.css';
1
+ import './base_lwq4bq.css';
2
2
  var base = "b11yryf5";
3
3
 
4
4
  export { base };
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Panel.tokens';\n\nexport const base = css`\n background: var(${tokens.background});\n box-shadow: var(${tokens.shadow});\n box-sizing: border-box;\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAIhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { privateTokens, tokens } from '../../Panel.tokens';\n\nexport const base = css`\n background: var(${privateTokens.backgrounColor}, var(${tokens.background}));\n box-shadow: var(${tokens.shadow});\n box-sizing: border-box;\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAIhB;;;;"}
@@ -0,0 +1 @@
1
+ .b11yryf5{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
package/es/index.css CHANGED
@@ -371,21 +371,21 @@
371
371
 
372
372
  .base_ydejlv_b175yas1__99ab42b5{--plasma-panel-border-radius:var(--plasma-drawer-border-radius);}
373
373
 
374
- .base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
374
+ .base_lwq4bq_b11yryf5__4e4b1db2{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
375
375
 
376
376
  .base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
377
377
 
378
378
  .base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
379
379
 
380
- .Panel_styles_2oh0yk_siaxu13__4b38fa73{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
380
+ .Panel_styles_1g0gq8z_siaxu13__180beaa7{background:var(--siaxu13-0);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
381
381
 
382
382
  .base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
383
383
 
384
384
  .base_hmbg05_b1orvu2x__ac0d2781{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}
385
385
 
386
- .PanelHeader_styles_8c7krd_b5xb1jq__8864a0a4{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
387
- .PanelHeader_styles_8c7krd_s1hqmxl1__8864a0a4{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
388
- .PanelHeader_styles_8c7krd_c7hx8go__8864a0a4{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
386
+ .PanelHeader_styles_16qje7n_b5xb1jq__a3864628{background:var(--plasma_private-panel-custom-background-color,var(--plasma-panel-background));-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
387
+ .PanelHeader_styles_16qje7n_s1hqmxl1__a3864628{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
388
+ .PanelHeader_styles_16qje7n_c7hx8go__a3864628{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
389
389
 
390
390
  .base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
391
391
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.261.0-canary.1756.13182478014.0",
3
+ "version": "0.261.0-canary.1760.13177544873.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -131,5 +131,5 @@
131
131
  "sideEffects": [
132
132
  "*.css"
133
133
  ],
134
- "gitHead": "4216a1ac9a997323845981773c6d9fda16e92a4f"
134
+ "gitHead": "22fb5284f5f9d0dbf330f40304b05514cd8b2cfc"
135
135
  }
@@ -40,7 +40,6 @@ var useCalendarDateChange = exports.useCalendarDateChange = function useCalendar
40
40
  payload: {
41
41
  calendarState: _types.CalendarState.Days,
42
42
  monthIndex: newDate.monthIndex,
43
- year: newDate.year,
44
43
  size: _reducer.sizeMap.Days["double"]
45
44
  }
46
45
  });
@@ -140,7 +140,6 @@ var reducer = exports.reducer = function reducer(state, action) {
140
140
  var _action$payload3 = action.payload,
141
141
  calendarState = _action$payload3.calendarState,
142
142
  _monthIndex2 = _action$payload3.monthIndex,
143
- _year2 = _action$payload3.year,
144
143
  size = _action$payload3.size;
145
144
  return _objectSpread(_objectSpread({}, state), {}, {
146
145
  size: size,
@@ -148,7 +147,7 @@ var reducer = exports.reducer = function reducer(state, action) {
148
147
  date: {
149
148
  day: state.date.day,
150
149
  monthIndex: _monthIndex2,
151
- year: _year2
150
+ year: state.date.year
152
151
  }
153
152
  });
154
153
  }
@@ -156,7 +155,7 @@ var reducer = exports.reducer = function reducer(state, action) {
156
155
  {
157
156
  var _action$payload4 = action.payload,
158
157
  _calendarState = _action$payload4.calendarState,
159
- _year3 = _action$payload4.year,
158
+ _year2 = _action$payload4.year,
160
159
  _size = _action$payload4.size;
161
160
  return _objectSpread(_objectSpread({}, state), {}, {
162
161
  size: _size,
@@ -164,7 +163,7 @@ var reducer = exports.reducer = function reducer(state, action) {
164
163
  date: {
165
164
  day: state.date.day,
166
165
  monthIndex: state.date.monthIndex,
167
- year: _year3
166
+ year: _year2
168
167
  }
169
168
  });
170
169
  }
@@ -19,7 +19,7 @@ var _base3 = /*#__PURE__*/require("./variations/_borderRadius/base");
19
19
  var _Drawer2 = /*#__PURE__*/require("./Drawer.styles");
20
20
  var _DrawerContext = /*#__PURE__*/require("./DrawerContext");
21
21
  var _hooks2 = /*#__PURE__*/require("./hooks");
22
- 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"];
22
+ 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"];
23
23
  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); }
24
24
  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; }
25
25
  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); }
@@ -43,6 +43,8 @@ var drawerRoot = exports.drawerRoot = function drawerRoot(Root) {
43
43
  initialFocusRef = _ref.initialFocusRef,
44
44
  focusAfterRef = _ref.focusAfterRef,
45
45
  className = _ref.className,
46
+ customBackgroundColor = _ref.customBackgroundColor,
47
+ customContentBackgroundColor = _ref.customContentBackgroundColor,
46
48
  onClose = _ref.onClose,
47
49
  onOverlayClick = _ref.onOverlayClick,
48
50
  onEscKeyDown = _ref.onEscKeyDown,
@@ -126,6 +128,8 @@ var drawerRoot = exports.drawerRoot = function drawerRoot(Root) {
126
128
  }, /*#__PURE__*/_react["default"].createElement(_Drawer2.StyledPanel, {
127
129
  width: innerWidth,
128
130
  height: innerHeight,
131
+ customBackgroundColor: customBackgroundColor,
132
+ customContentBackgroundColor: customContentBackgroundColor,
129
133
  className: className
130
134
  }, children)));
131
135
  });
@@ -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", "className", "style"];
15
+ var _excluded = ["children", "view", "size", "width", "height", "customBackgroundColor", "customContentBackgroundColor", "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,6 +30,8 @@ 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,
33
35
  className = _ref.className,
34
36
  style = _ref.style,
35
37
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -40,11 +42,10 @@ var panelRoot = exports.panelRoot = function panelRoot(Root) {
40
42
  view: view,
41
43
  size: size,
42
44
  className: (0, _utils.cx)(_Panel.classes.root, className),
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));
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));
48
49
  });
49
50
  };
50
51
  var panelConfig = exports.panelConfig = {
@@ -9,4 +9,7 @@ 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:var(", ");height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;"], _Panel.tokens.contentBackgroundColor);
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
+ });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.classes = void 0;
6
+ exports.tokens = exports.privateTokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  root: 'panel-root',
9
9
  content: 'panel-content',
@@ -12,6 +12,11 @@ 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
+ };
15
20
  var tokens = exports.tokens = {
16
21
  background: '--plasma-panel-background',
17
22
  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(", ");order:", ";padding-left:", ";padding-right:", ";"], _Panel.tokens.background, function (_ref) {
18
+ })(["background:var(", ",var(", "));order:", ";padding-left:", ";padding-right:", ";"], _Panel.privateTokens.backgrounColor, _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(", ");box-shadow:var(", ");box-sizing:border-box;"], _Panel.tokens.background, _Panel.tokens.shadow);
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);
@@ -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
 
@@ -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
 
@@ -34,7 +34,6 @@ export var useCalendarDateChange = function useCalendarDateChange(_ref) {
34
34
  payload: {
35
35
  calendarState: CalendarState.Days,
36
36
  monthIndex: newDate.monthIndex,
37
- year: newDate.year,
38
37
  size: sizeMap.Days["double"]
39
38
  }
40
39
  });
@@ -134,7 +134,6 @@ export var reducer = function reducer(state, action) {
134
134
  var _action$payload3 = action.payload,
135
135
  calendarState = _action$payload3.calendarState,
136
136
  _monthIndex2 = _action$payload3.monthIndex,
137
- _year2 = _action$payload3.year,
138
137
  size = _action$payload3.size;
139
138
  return _objectSpread(_objectSpread({}, state), {}, {
140
139
  size: size,
@@ -142,7 +141,7 @@ export var reducer = function reducer(state, action) {
142
141
  date: {
143
142
  day: state.date.day,
144
143
  monthIndex: _monthIndex2,
145
- year: _year2
144
+ year: state.date.year
146
145
  }
147
146
  });
148
147
  }
@@ -150,7 +149,7 @@ export var reducer = function reducer(state, action) {
150
149
  {
151
150
  var _action$payload4 = action.payload,
152
151
  _calendarState = _action$payload4.calendarState,
153
- _year3 = _action$payload4.year,
152
+ _year2 = _action$payload4.year,
154
153
  _size = _action$payload4.size;
155
154
  return _objectSpread(_objectSpread({}, state), {}, {
156
155
  size: _size,
@@ -158,7 +157,7 @@ export var reducer = function reducer(state, action) {
158
157
  date: {
159
158
  day: state.date.day,
160
159
  monthIndex: state.date.monthIndex,
161
- year: _year3
160
+ year: _year2
162
161
  }
163
162
  });
164
163
  }
@@ -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.backgrounColor, 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
+ backgrounColor: '--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.backgrounColor, 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.backgrounColor, tokens.background, tokens.shadow);
@@ -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
 
@@ -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":"useCalendarDateChange.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useCalendarDateChange.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAA6B,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,qBAAqB,wDAK/B,yBAAyB;iCAEV,UAAU,SAAS,MAAM,EAAE;mCA4B3B,UAAU,SAAS,MAAM,EAAE;qCAlB3B,UAAU,SAAS,MAAM,EAAE,eAAe,MAAM;kCAyChD,UAAU,SAAS,MAAM,EAAE;kDAkCwB,iBAAiB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;CAchH,CAAC"}
1
+ {"version":3,"file":"useCalendarDateChange.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/hooks/useCalendarDateChange.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAA6B,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,qBAAqB,wDAK/B,yBAAyB;iCAEV,UAAU,SAAS,MAAM,EAAE;mCA4B3B,UAAU,SAAS,MAAM,EAAE;qCAlB3B,UAAU,SAAS,MAAM,EAAE,eAAe,MAAM;kCAwChD,UAAU,SAAS,MAAM,EAAE;kDAkCwB,iBAAiB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;CAchH,CAAC"}
@@ -79,7 +79,6 @@ export declare type UpdateMonthAction = {
79
79
  payload: {
80
80
  calendarState: CalendarStateType;
81
81
  monthIndex: number;
82
- year: number;
83
82
  size: [number, number];
84
83
  };
85
84
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB;AAED,0BAAkB,UAAU;IACxB,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,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BAAqB,CAAC;IACvC,OAAO,EAAE;QAAE,aAAa,EAAE,iBAAiB,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CAC1E,CAAC;AAEF,oBAAY,MAAM,GACZ,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,uBAAuB,GACvB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,yBAAyB,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;