@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.
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Drawer/Drawer.css +5 -5
- package/cjs/components/Drawer/Drawer.js +5 -1
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/cjs/components/Panel/Panel.css +2 -2
- package/cjs/components/Panel/Panel.js +7 -6
- package/cjs/components/Panel/Panel.js.map +1 -1
- package/cjs/components/Panel/Panel.styles.js +12 -2
- package/cjs/components/Panel/Panel.styles.js.map +1 -1
- package/cjs/components/Panel/Panel.styles_1g0gq8z.css +1 -0
- package/cjs/components/Panel/Panel.tokens.js +15 -0
- package/cjs/components/Panel/Panel.tokens.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
- package/cjs/components/Panel/variations/_view/base.js +1 -1
- package/cjs/components/Panel/variations/_view/base.js.map +1 -1
- package/cjs/components/Panel/variations/_view/base_lwq4bq.css +1 -0
- package/cjs/index.css +5 -5
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/emotion/cjs/components/Drawer/Drawer.js +5 -1
- package/emotion/cjs/components/Panel/Panel.js +7 -6
- package/emotion/cjs/components/Panel/Panel.styles.js +4 -1
- package/emotion/cjs/components/Panel/Panel.tokens.js +6 -1
- package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
- package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/emotion/es/components/Drawer/Drawer.js +5 -1
- package/emotion/es/components/Panel/Panel.js +8 -7
- package/emotion/es/components/Panel/Panel.styles.js +4 -1
- package/emotion/es/components/Panel/Panel.tokens.js +5 -0
- package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
- package/emotion/es/components/Panel/variations/_view/base.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/es/components/Drawer/Drawer.css +5 -5
- package/es/components/Drawer/Drawer.js +5 -1
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/es/components/Panel/Panel.css +2 -2
- package/es/components/Panel/Panel.js +9 -8
- package/es/components/Panel/Panel.js.map +1 -1
- package/es/components/Panel/Panel.styles.js +12 -2
- package/es/components/Panel/Panel.styles.js.map +1 -1
- package/es/components/Panel/Panel.styles_1g0gq8z.css +1 -0
- package/es/components/Panel/Panel.tokens.js +14 -1
- package/es/components/Panel/Panel.tokens.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css} +1 -1
- package/es/components/Panel/variations/_view/base.js +1 -1
- package/es/components/Panel/variations/_view/base.js.map +1 -1
- package/es/components/Panel/variations/_view/base_lwq4bq.css +1 -0
- package/es/index.css +5 -5
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/styled-components/cjs/components/Drawer/Drawer.js +5 -1
- package/styled-components/cjs/components/Panel/Panel.js +7 -6
- package/styled-components/cjs/components/Panel/Panel.styles.js +4 -1
- package/styled-components/cjs/components/Panel/Panel.tokens.js +6 -1
- package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
- package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +2 -4
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +2 -4
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +2 -4
- package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +2 -4
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +2 -4
- package/styled-components/es/components/Drawer/Drawer.js +5 -1
- package/styled-components/es/components/Panel/Panel.js +8 -7
- package/styled-components/es/components/Panel/Panel.styles.js +4 -1
- package/styled-components/es/components/Panel/Panel.tokens.js +5 -0
- package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
- package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +0 -12
- package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +10 -0
- package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +10 -10
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -13
- package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +11 -1
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +10 -0
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +4 -0
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +8 -0
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Panel/Panel.d.ts.map +1 -1
- package/types/components/Panel/Panel.styles.d.ts +3 -1
- package/types/components/Panel/Panel.styles.d.ts.map +1 -1
- package/types/components/Panel/Panel.tokens.d.ts +5 -0
- package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
- package/types/components/Panel/Panel.types.d.ts +8 -0
- package/types/components/Panel/Panel.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +2 -0
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +2 -0
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
- package/cjs/components/Panel/Panel.styles_2oh0yk.css +0 -1
- package/cjs/components/Panel/variations/_view/base_10gjs6e.css +0 -1
- package/es/components/Panel/Panel.styles_2oh0yk.css +0 -1
- package/es/components/Panel/variations/_view/base_10gjs6e.css +0 -1
@@ -42,15 +42,13 @@ var CalendarMonths = exports.CalendarMonths = function CalendarMonths(_ref) {
|
|
42
42
|
onSetSelected = _ref.onSetSelected,
|
43
43
|
onKeyDown = _ref.onKeyDown,
|
44
44
|
locale = _ref.locale;
|
45
|
-
var minDate = min ? new Date(min.getFullYear(), min.getMonth(), 1) : undefined;
|
46
|
-
var maxDate = max ? new Date(max.getFullYear(), max.getMonth() + 1, 0) : undefined;
|
47
45
|
var _useMonths = (0, _hooks.useMonths)({
|
48
46
|
date: currentDate,
|
49
47
|
value: value,
|
50
48
|
eventList: eventList,
|
51
49
|
disabledList: disabledList,
|
52
|
-
min:
|
53
|
-
max:
|
50
|
+
min: min,
|
51
|
+
max: max,
|
54
52
|
locale: locale
|
55
53
|
}),
|
56
54
|
_useMonths2 = _slicedToArray(_useMonths, 2),
|
@@ -41,15 +41,13 @@ var CalendarQuarters = exports.CalendarQuarters = function CalendarQuarters(_ref
|
|
41
41
|
onHoverQuarter = _ref.onHoverQuarter,
|
42
42
|
onSetSelected = _ref.onSetSelected,
|
43
43
|
onKeyDown = _ref.onKeyDown;
|
44
|
-
var minDate = min ? new Date(min.getFullYear(), min.getMonth(), 1) : undefined;
|
45
|
-
var maxDate = max ? new Date(max.getFullYear(), max.getMonth() + 1, 0) : undefined;
|
46
44
|
var _useQuarters = (0, _hooks.useQuarters)({
|
47
45
|
date: currentDate,
|
48
46
|
value: value,
|
49
47
|
eventList: eventList,
|
50
48
|
disabledList: disabledList,
|
51
|
-
min:
|
52
|
-
max:
|
49
|
+
min: min,
|
50
|
+
max: max
|
53
51
|
}),
|
54
52
|
_useQuarters2 = _slicedToArray(_useQuarters, 2),
|
55
53
|
quarters = _useQuarters2[0],
|
@@ -42,16 +42,14 @@ var CalendarYears = exports.CalendarYears = function CalendarYears(_ref) {
|
|
42
42
|
onHoverYear = _ref.onHoverYear,
|
43
43
|
onSetSelected = _ref.onSetSelected,
|
44
44
|
onKeyDown = _ref.onKeyDown;
|
45
|
-
var minDate = min ? new Date(min.getFullYear(), 0, 1) : undefined;
|
46
|
-
var maxDate = max ? new Date(max.getFullYear(), 11, 31) : undefined;
|
47
45
|
var _useYears = (0, _hooks.useYears)({
|
48
46
|
date: currentDate,
|
49
47
|
value: value,
|
50
48
|
startYear: startYear,
|
51
49
|
eventList: eventList,
|
52
50
|
disabledList: disabledList,
|
53
|
-
min:
|
54
|
-
max:
|
51
|
+
min: min,
|
52
|
+
max: max
|
55
53
|
}),
|
56
54
|
_useYears2 = _slicedToArray(_useYears, 2),
|
57
55
|
years = _useYears2[0],
|
@@ -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
|
-
|
45
|
-
|
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.backgroundColor, customBackgroundColor))
|
46
|
+
}, rest), /*#__PURE__*/_react["default"].createElement(_Panel2.StyledWrapper, {
|
47
|
+
customContentBackgroundColor: customContentBackgroundColor
|
48
|
+
}, children));
|
48
49
|
});
|
49
50
|
};
|
50
51
|
var panelConfig = exports.panelConfig = {
|
@@ -10,4 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
10
10
|
var StyledWrapper = exports.StyledWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
11
11
|
target: "e1uvnvko0",
|
12
12
|
label: "plasma-new-hope__StyledWrapper"
|
13
|
-
})("background:
|
13
|
+
})("background:", function (_ref) {
|
14
|
+
var customContentBackgroundColor = _ref.customContentBackgroundColor;
|
15
|
+
return customContentBackgroundColor || "var(".concat(_Panel.tokens.contentBackgroundColor, ")");
|
16
|
+
}, ";height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvUGFuZWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlrRiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL1BhbmVsLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi9QYW5lbC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXY8eyBjdXN0b21Db250ZW50QmFja2dyb3VuZENvbG9yPzogc3RyaW5nIH0+YFxuICAgIGJhY2tncm91bmQ6ICR7KHsgY3VzdG9tQ29udGVudEJhY2tncm91bmRDb2xvciB9KSA9PlxuICAgICAgICBjdXN0b21Db250ZW50QmFja2dyb3VuZENvbG9yIHx8IGB2YXIoJHt0b2tlbnMuY29udGVudEJhY2tncm91bmRDb2xvcn0pYH07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuYDtcbiJdfQ== */"));
|
@@ -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
|
+
backgroundColor: '--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',
|
@@ -17,7 +17,7 @@ var Button = /*#__PURE__*/(0, _engines.component)(mergedButtonConfig);
|
|
17
17
|
var ButtonWrapper = exports.ButtonWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
18
18
|
target: "e35wejq2",
|
19
19
|
label: "plasma-new-hope__ButtonWrapper"
|
20
|
-
})("background:var(", _Panel.tokens.background, ");order:", function (_ref) {
|
20
|
+
})("background:var(", _Panel.privateTokens.backgroundColor, ", var(", _Panel.tokens.background, "));order:", function (_ref) {
|
21
21
|
var placement = _ref.placement;
|
22
22
|
return placement === _PanelHeader.placements.left ? -1 : 0;
|
23
23
|
}, ";padding-left:", function (_ref2) {
|
@@ -26,7 +26,7 @@ var ButtonWrapper = exports.ButtonWrapper = /*#__PURE__*/(0, _base["default"])("
|
|
26
26
|
}, ";padding-right:", function (_ref3) {
|
27
27
|
var placement = _ref3.placement;
|
28
28
|
return placement === _PanelHeader.placements.left ? '0.5rem' : '';
|
29
|
-
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
29
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVkyRSIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL3VpL1BhbmVsSGVhZGVyL1BhbmVsSGVhZGVyLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgbWVyZ2VDb25maWcsIGNvbXBvbmVudCB9IGZyb20gJy4uLy4uLy4uLy4uL2VuZ2luZXMnO1xuaW1wb3J0IHsgYnV0dG9uQ29uZmlnIH0gZnJvbSAnLi4vLi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cbiAgICBoZWlnaHQ6IGZpdC1jb250ZW50O1xuICAgIGZsZXgtZ3JvdzogMTtcbmA7XG5cbmV4cG9ydCBjb25zdCBDbG9zZUljb25XcmFwcGVyID0gc3R5bGVkKEJ1dHRvbilgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHdpZHRoOiAxLjVyZW07XG4gICAgbWluLWhlaWdodDogMS41cmVtO1xuICAgICR7YnV0dG9uVG9rZW5zLmJ1dHRvbkNvbG9yfTogdmFyKCR7dG9rZW5zLmNsb3NlQ29sb3J9KTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvckhvdmVyfTogdmFyKCR7dG9rZW5zLmNsb3NlQ29sb3J9KTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvckFjdGl2ZX06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG5gO1xuIl19 */"));
|
30
30
|
var StyledHeader = exports.StyledHeader = /*#__PURE__*/(0, _base["default"])("div", {
|
31
31
|
target: "e35wejq1",
|
32
32
|
label: "plasma-new-hope__StyledHeader"
|
@@ -36,10 +36,10 @@ var StyledHeader = exports.StyledHeader = /*#__PURE__*/(0, _base["default"])("di
|
|
36
36
|
} : {
|
37
37
|
name: "1ncj9np",
|
38
38
|
styles: "height:fit-content;flex-grow:1",
|
39
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
39
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Cc0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9QYW5lbC91aS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PiAoIXBsYWNlbWVudCB8fCBwbGFjZW1lbnQgPT09IHBsYWNlbWVudHMucmlnaHQgPyAnMC41cmVtJyA6ICcnKX07XG4gICAgcGFkZGluZy1yaWdodDogJHsoeyBwbGFjZW1lbnQgfSkgPT4gKHBsYWNlbWVudCA9PT0gcGxhY2VtZW50cy5sZWZ0ID8gJzAuNXJlbScgOiAnJyl9O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlYWRlciA9IHN0eWxlZC5kaXZgXG4gICAgaGVpZ2h0OiBmaXQtY29udGVudDtcbiAgICBmbGV4LWdyb3c6IDE7XG5gO1xuXG5leHBvcnQgY29uc3QgQ2xvc2VJY29uV3JhcHBlciA9IHN0eWxlZChCdXR0b24pYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICB3aWR0aDogMS41cmVtO1xuICAgIG1pbi1oZWlnaHQ6IDEuNXJlbTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JIb3Zlcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JBY3RpdmV9OiB2YXIoJHt0b2tlbnMuY2xvc2VDb2xvcn0pO1xuYDtcbiJdfQ== */",
|
40
40
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
41
41
|
});
|
42
42
|
var CloseIconWrapper = exports.CloseIconWrapper = /*#__PURE__*/(0, _base["default"])(Button, {
|
43
43
|
target: "e35wejq0",
|
44
44
|
label: "plasma-new-hope__CloseIconWrapper"
|
45
|
-
})("position:relative;width:1.5rem;min-height:1.5rem;", _Button2.tokens.buttonColor, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorHover, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorActive, ":var(", _Panel.tokens.closeColor, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
45
|
+
})("position:relative;width:1.5rem;min-height:1.5rem;", _Button2.tokens.buttonColor, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorHover, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorActive, ":var(", _Panel.tokens.closeColor, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCOEMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9QYW5lbC91aS9QYW5lbEhlYWRlci9QYW5lbEhlYWRlci5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IG1lcmdlQ29uZmlnLCBjb21wb25lbnQgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IGJ1dHRvbkNvbmZpZyB9IGZyb20gJy4uLy4uLy4uL0J1dHRvbic7XG5pbXBvcnQgeyB0b2tlbnMgYXMgYnV0dG9uVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vQnV0dG9uL0J1dHRvbi50b2tlbnMnO1xuaW1wb3J0IHsgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vUGFuZWwudG9rZW5zJztcblxuaW1wb3J0IHsgQ2xvc2VQbGFjZW1lbnRUeXBlLCBwbGFjZW1lbnRzIH0gZ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XR0b25Db2xvcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JIb3Zlcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JBY3RpdmV9OiB2YXIoJHt0b2tlbnMuY2xvc2VDb2xvcn0pO1xuYDtcbiJdfQ== */"));
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _react = /*#__PURE__*/require("@emotion/react");
|
8
8
|
var _Panel = /*#__PURE__*/require("../../Panel.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("background:var(", _Panel.tokens.background, ");box-shadow:var(", _Panel.tokens.shadow, ");box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("background:var(", _Panel.privateTokens.backgroundColor, ", var(", _Panel.tokens.background, "));box-shadow:var(", _Panel.tokens.shadow, ");box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vUGFuZWwudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgYmFja2dyb3VuZDogdmFyKCR7cHJpdmF0ZVRva2Vucy5iYWNrZ3JvdW5kQ29sb3J9LCB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZH0pKTtcbiAgICBib3gtc2hhZG93OiB2YXIoJHt0b2tlbnMuc2hhZG93fSk7XG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbmA7XG4iXX0= */"));
|
@@ -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/
|
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 {
|
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/
|
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: '
|
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
|
|
@@ -23,8 +23,8 @@ import { IsOutOfRange, StyledCalendar } from './CalendarBase.styles';
|
|
23
23
|
export var calendarBaseRoot = function calendarBaseRoot(Root) {
|
24
24
|
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
25
25
|
var externalValue = _ref.value,
|
26
|
-
|
27
|
-
|
26
|
+
min = _ref.min,
|
27
|
+
max = _ref.max,
|
28
28
|
includeEdgeDates = _ref.includeEdgeDates,
|
29
29
|
_ref$type = _ref.type,
|
30
30
|
type = _ref$type === void 0 ? 'Days' : _ref$type,
|
@@ -63,8 +63,6 @@ export var calendarBaseRoot = function calendarBaseRoot(Root) {
|
|
63
63
|
_useState8 = _slicedToArray(_useState7, 2),
|
64
64
|
outOfRangeKey = _useState8[0],
|
65
65
|
setOutOfRangeKey = _useState8[1];
|
66
|
-
var min = minDate && new Date(minDate);
|
67
|
-
var max = maxDate && new Date(maxDate);
|
68
66
|
var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
|
69
67
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
70
68
|
state = _useReducer2[0],
|
@@ -24,8 +24,8 @@ import { StyledCalendar, StyledSeparator, StyledWrapper } from './CalendarDouble
|
|
24
24
|
export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
|
25
25
|
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
26
26
|
var externalValue = _ref.value,
|
27
|
-
|
28
|
-
|
27
|
+
min = _ref.min,
|
28
|
+
max = _ref.max,
|
29
29
|
includeEdgeDates = _ref.includeEdgeDates,
|
30
30
|
_ref$type = _ref.type,
|
31
31
|
type = _ref$type === void 0 ? 'Days' : _ref$type,
|
@@ -64,8 +64,6 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
|
|
64
64
|
_useState8 = _slicedToArray(_useState7, 2),
|
65
65
|
outOfRangeKey = _useState8[0],
|
66
66
|
setOutOfRangeKey = _useState8[1];
|
67
|
-
var min = minDate && new Date(minDate);
|
68
|
-
var max = maxDate && new Date(maxDate);
|
69
67
|
var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
|
70
68
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
71
69
|
state = _useReducer2[0],
|
@@ -35,15 +35,13 @@ export var CalendarMonths = function CalendarMonths(_ref) {
|
|
35
35
|
onSetSelected = _ref.onSetSelected,
|
36
36
|
onKeyDown = _ref.onKeyDown,
|
37
37
|
locale = _ref.locale;
|
38
|
-
var minDate = min ? new Date(min.getFullYear(), min.getMonth(), 1) : undefined;
|
39
|
-
var maxDate = max ? new Date(max.getFullYear(), max.getMonth() + 1, 0) : undefined;
|
40
38
|
var _useMonths = useMonths({
|
41
39
|
date: currentDate,
|
42
40
|
value: value,
|
43
41
|
eventList: eventList,
|
44
42
|
disabledList: disabledList,
|
45
|
-
min:
|
46
|
-
max:
|
43
|
+
min: min,
|
44
|
+
max: max,
|
47
45
|
locale: locale
|
48
46
|
}),
|
49
47
|
_useMonths2 = _slicedToArray(_useMonths, 2),
|