@mirai/ui 1.0.79 → 1.0.81-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/build/components/Action/Action.stories.js +6 -7
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +1 -1
- package/build/components/Button/Button.stories.js +26 -8
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +3 -3
- package/build/components/Calendar/Calendar.Month.js +3 -1
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +24 -7
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.js +11 -3
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +8 -4
- package/build/components/Calendar/Calendar.stories.js +79 -26
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +7464 -7464
- package/build/components/Form/Form.constants.js +3 -1
- package/build/components/Form/Form.constants.js.map +1 -1
- package/build/components/Form/Form.js +5 -6
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/Form.stories.js +171 -30
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/InputDate/InputDate.stories.js +53 -42
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +3 -3
- package/build/components/InputNumber/InputNumber.js +1 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/InputNumber.stories.js +30 -15
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +9 -9
- package/build/components/InputOption/InputOption.js +2 -3
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +29 -14
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +22 -33
- package/build/components/InputSelect/InputSelect.stories.js +48 -28
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputText/InputText.js +1 -1
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +43 -30
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +0 -1
- package/build/components/Menu/Menu.Option.js +0 -2
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +1 -2
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +42 -20
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Modal/Modal.js +2 -3
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.module.css +1 -0
- package/build/components/Modal/Modal.stories.js +77 -20
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +116 -113
- package/build/components/Notification/Notification.js +7 -4
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +4 -0
- package/build/components/Notification/Notification.stories.js +8 -7
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +35 -0
- package/build/components/Table/Table.stories.js +55 -20
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/Table.stories.module.css +12 -0
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +16 -24
- package/build/components/Tooltip/Tooltip.js +30 -8
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/Tooltip.module.css +32 -0
- package/build/components/Tooltip/Tooltip.stories.js +72 -8
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +79 -22
- package/build/hooks/useDevice.stories.js +9 -8
- package/build/hooks/useDevice.stories.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +6 -3
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +29 -11
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +23 -28
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Input/Input.js +1 -0
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +50 -18
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +5 -0
- package/build/primitives/Layer/Layer.js +9 -3
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +13 -8
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.module.css +0 -0
- package/build/primitives/Layer/helpers/getLayerPosition.js +43 -5
- package/build/primitives/Layer/helpers/getLayerPosition.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +3 -3
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/Pressable.module.css +1 -0
- package/build/primitives/Pressable/Pressable.stories.js +7 -7
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +9 -9
- package/build/primitives/Radio/Radio.js +7 -4
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +29 -11
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.js +2 -2
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +27 -22
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +28 -12
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Switch/Switch.js +4 -2
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +29 -10
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +6 -6
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/View/View.stories.js +7 -7
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/theme/theme.stories.js +60 -0
- package/build/theme/theme.stories.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,31 +1,95 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = exports.Story = void 0;
|
|
7
8
|
var _locale = require("@mirai/locale");
|
|
8
|
-
var
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _Calendar = require("./Calendar");
|
|
10
|
-
var _captions;
|
|
11
|
+
var _captions, _Story$args;
|
|
11
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function
|
|
14
|
+
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); }
|
|
14
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
17
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
22
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
24
|
var _default = {
|
|
18
25
|
title: 'Components'
|
|
19
26
|
};
|
|
20
27
|
exports.default = _default;
|
|
28
|
+
var format = 'DD/MM/YYYY';
|
|
29
|
+
var today = new Date();
|
|
21
30
|
var Story = function Story(props) {
|
|
22
|
-
|
|
31
|
+
var _useState = (0, _react.useState)(),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
focus = _useState2[0],
|
|
34
|
+
setFocus = _useState2[1];
|
|
35
|
+
var _useState3 = (0, _react.useState)(props.value),
|
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
+
value = _useState4[0],
|
|
38
|
+
setValue = _useState4[1];
|
|
39
|
+
var handleChange = function handleChange(_ref) {
|
|
40
|
+
var _console;
|
|
41
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
42
|
+
from = _ref2[0],
|
|
43
|
+
to = _ref2[1];
|
|
44
|
+
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
45
|
+
props[_key - 1] = arguments[_key];
|
|
46
|
+
}
|
|
47
|
+
(_console = console).log.apply(_console, ['<Calendar>::onChange', [from, to]].concat(props));
|
|
48
|
+
setValue([from ? (0, _locale.dateFormat)(from, {
|
|
49
|
+
format: format
|
|
50
|
+
}) : undefined, to ? (0, _locale.dateFormat)(to, {
|
|
51
|
+
format: format
|
|
52
|
+
}) : undefined]);
|
|
53
|
+
};
|
|
54
|
+
var handleFocus = function handleFocus(nextFocus) {
|
|
55
|
+
var _console2;
|
|
56
|
+
for (var _len2 = arguments.length, props = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
57
|
+
props[_key2 - 1] = arguments[_key2];
|
|
58
|
+
}
|
|
59
|
+
(_console2 = console).log.apply(_console2, ['<Calendar>::onFocus', nextFocus].concat(props));
|
|
60
|
+
setFocus(nextFocus ? (0, _locale.dateFormat)(nextFocus, {
|
|
61
|
+
format: format
|
|
62
|
+
}) : undefined);
|
|
63
|
+
};
|
|
64
|
+
var tooltips = _defineProperty({}, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
|
|
65
|
+
format: format
|
|
66
|
+
}), {
|
|
67
|
+
pressable: false,
|
|
68
|
+
visible: false,
|
|
69
|
+
text: '10.95$'
|
|
70
|
+
});
|
|
71
|
+
var _value = _slicedToArray(value, 2),
|
|
72
|
+
from = _value[0],
|
|
73
|
+
_value$ = _value[1],
|
|
74
|
+
to = _value$ === void 0 ? focus : _value$;
|
|
75
|
+
var _dateDiff = (0, _locale.dateDiff)((0, _locale.parseDate)(from, format), (0, _locale.parseDate)(to, format)),
|
|
76
|
+
nights = _dateDiff.days;
|
|
77
|
+
if (from) tooltips[from] = {
|
|
78
|
+
text: "Min. ".concat(props.rangeMinDays, " nights")
|
|
79
|
+
};
|
|
80
|
+
if (nights >= props.rangeMinDays) tooltips[to] = {
|
|
81
|
+
text: "".concat(nights, " nights")
|
|
82
|
+
};
|
|
83
|
+
return /*#__PURE__*/_react.default.createElement(_Calendar.Calendar, _extends({}, props, {
|
|
84
|
+
tooltips: tooltips,
|
|
85
|
+
value: value,
|
|
86
|
+
onChange: handleChange,
|
|
87
|
+
onFocus: handleFocus
|
|
88
|
+
}));
|
|
23
89
|
};
|
|
24
90
|
exports.Story = Story;
|
|
25
|
-
var format = 'DD/MM/YYYY';
|
|
26
|
-
var today = new Date();
|
|
27
91
|
Story.storyName = 'Calendar';
|
|
28
|
-
Story.args =
|
|
92
|
+
Story.args = (_Story$args = {
|
|
29
93
|
captions: (_captions = {}, _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
|
|
30
94
|
format: format
|
|
31
95
|
}), '10.95$'), _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 8, 'days'), {
|
|
@@ -48,7 +112,7 @@ Story.args = _defineProperty({
|
|
|
48
112
|
})],
|
|
49
113
|
disabledPast: true,
|
|
50
114
|
format: format,
|
|
51
|
-
from: '',
|
|
115
|
+
from: (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 2, 'days')),
|
|
52
116
|
highlights: [(0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
|
|
53
117
|
format: format
|
|
54
118
|
}), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 10, 'days'), {
|
|
@@ -63,24 +127,13 @@ Story.args = _defineProperty({
|
|
|
63
127
|
locale: 'es-ES',
|
|
64
128
|
months: 2,
|
|
65
129
|
range: true,
|
|
66
|
-
rangeMaxDays:
|
|
130
|
+
rangeMaxDays: 14,
|
|
67
131
|
rangeMinDays: 3,
|
|
68
132
|
to: (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'months')),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
props[_key] = arguments[_key];
|
|
74
|
-
}
|
|
75
|
-
return (_console = console).log.apply(_console, ['<Calendar>::onChange'].concat(props));
|
|
76
|
-
},
|
|
77
|
-
onFocus: function onFocus() {
|
|
78
|
-
var _console2;
|
|
79
|
-
for (var _len2 = arguments.length, props = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
80
|
-
props[_key2] = arguments[_key2];
|
|
81
|
-
}
|
|
82
|
-
return (_console2 = console).log.apply(_console2, ['<Calendar>::onFocus'].concat(props));
|
|
83
|
-
},
|
|
133
|
+
tooltips: _defineProperty({}, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
|
|
134
|
+
format: format
|
|
135
|
+
}), '10.95$'),
|
|
136
|
+
value: [(0, _locale.dateFormat)((0, _locale.dateCalc)(today, 10, 'days')), (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 13, 'days'))],
|
|
84
137
|
onNavigation: function onNavigation() {
|
|
85
138
|
var _console3;
|
|
86
139
|
for (var _len3 = arguments.length, props = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
@@ -95,10 +148,10 @@ Story.args = _defineProperty({
|
|
|
95
148
|
}
|
|
96
149
|
return (_console4 = console).log.apply(_console4, ['<Calendar>::onScroll'].concat(props));
|
|
97
150
|
}
|
|
98
|
-
}, 'data-testid', 'test-story');
|
|
151
|
+
}, _defineProperty(_Story$args, 'data-testid', 'test-story'), _defineProperty(_Story$args, "style", {}), _Story$args);
|
|
99
152
|
Story.argTypes = {
|
|
100
153
|
locale: {
|
|
101
|
-
options: ['es-ES', 'en-GB', '
|
|
154
|
+
options: ['es-ES', 'en-GB', 'fr-FR', 'it-IT', 'pt-PT', 'fr-BE', 'de-DE', 'ja-JA'],
|
|
102
155
|
control: {
|
|
103
156
|
type: 'select'
|
|
104
157
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.stories.js","names":["title","Story","props","
|
|
1
|
+
{"version":3,"file":"Calendar.stories.js","names":["title","format","today","Date","Story","props","useState","focus","setFocus","value","setValue","handleChange","from","to","console","log","dateFormat","undefined","handleFocus","nextFocus","tooltips","dateCalc","pressable","visible","text","dateDiff","parseDate","nights","days","rangeMinDays","storyName","args","captions","disabledDates","disabledPast","highlights","locale","months","range","rangeMaxDays","onNavigation","onScroll","argTypes","options","control","type","defaultValue"],"sources":["../../../src/components/Calendar/Calendar.stories.jsx"],"sourcesContent":["import { dateCalc, dateDiff, dateFormat, parseDate } from '@mirai/locale';\nimport React, { useState } from 'react';\n\nimport { Calendar } from './Calendar';\n\nexport default { title: 'Components' };\n\nconst format = 'DD/MM/YYYY';\nconst today = new Date();\n\nexport const Story = (props) => {\n const [focus, setFocus] = useState();\n const [value, setValue] = useState(props.value);\n\n const handleChange = ([from, to], ...props) => {\n console.log('<Calendar>::onChange', [from, to], ...props);\n setValue([from ? dateFormat(from, { format }) : undefined, to ? dateFormat(to, { format }) : undefined]);\n };\n\n const handleFocus = (nextFocus, ...props) => {\n console.log('<Calendar>::onFocus', nextFocus, ...props);\n setFocus(nextFocus ? dateFormat(nextFocus, { format }) : undefined);\n };\n\n const tooltips = {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: { pressable: false, visible: false, text: '10.95$' },\n };\n const [from, to = focus] = value;\n const { days: nights } = dateDiff(parseDate(from, format), parseDate(to, format));\n\n if (from) tooltips[from] = { text: `Min. ${props.rangeMinDays} nights` };\n if (nights >= props.rangeMinDays) tooltips[to] = { text: `${nights} nights` };\n\n return <Calendar {...props} {...{ tooltips, value }} onChange={handleChange} onFocus={handleFocus} />;\n};\n\nStory.storyName = 'Calendar';\n\nStory.args = {\n captions: {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 8, 'days'), { format })]: '129510.95$',\n [dateFormat(dateCalc(today, 16, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 18, 'days'), { format })]: '9.95$',\n },\n disabledDates: [\n dateFormat(dateCalc(today, 20, 'days'), { format }),\n dateFormat(dateCalc(today, 21, 'days'), { format }),\n dateFormat(dateCalc(today, 22, 'days'), { format }),\n dateFormat(dateCalc(today, 23, 'days'), { format }),\n dateFormat(dateCalc(today, 24, 'days'), { format }),\n ],\n disabledPast: true,\n format,\n from: dateFormat(dateCalc(today, 2, 'days')),\n highlights: [\n dateFormat(dateCalc(today, 6, 'days'), { format }),\n dateFormat(dateCalc(today, 10, 'days'), { format }),\n dateFormat(dateCalc(today, 12, 'days'), { format }),\n dateFormat(dateCalc(today, 14, 'days'), { format }),\n dateFormat(dateCalc(today, 16, 'days'), { format }),\n ],\n locale: 'es-ES',\n months: 2,\n range: true,\n rangeMaxDays: 14,\n rangeMinDays: 3,\n to: dateFormat(dateCalc(today, 6, 'months')),\n tooltips: {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: '10.95$',\n },\n value: [dateFormat(dateCalc(today, 10, 'days')), dateFormat(dateCalc(today, 13, 'days'))],\n onNavigation: (...props) => console.log('<Calendar>::onNavigation', ...props),\n onScroll: (...props) => console.log('<Calendar>::onScroll', ...props),\n // inherited properties\n ['data-testid']: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n locale: {\n options: ['es-ES', 'en-GB', 'fr-FR', 'it-IT', 'pt-PT', 'fr-BE', 'de-DE', 'ja-JA'],\n control: { type: 'select' },\n defaultValue: 'es-ES',\n },\n};\n"],"mappings":";;;;;;;AAAA;AACA;AAEA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEvB;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAEtC,IAAMC,MAAM,GAAG,YAAY;AAC3B,IAAMC,KAAK,GAAG,IAAIC,IAAI,EAAE;AAEjB,IAAMC,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK,EAAK;EAC9B,gBAA0B,IAAAC,eAAQ,GAAE;IAAA;IAA7BC,KAAK;IAAEC,QAAQ;EACtB,iBAA0B,IAAAF,eAAQ,EAACD,KAAK,CAACI,KAAK,CAAC;IAAA;IAAxCA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