react-asc 25.5.4 → 25.5.6
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/index.d.ts +1028 -0
- package/index.es.js +191 -233
- package/index.js +255 -304
- package/package.json +1 -1
- package/vite.config.d.ts +2 -0
package/index.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var reactDom = require('react-dom');
|
|
8
6
|
var core = require('@popperjs/core');
|
|
9
7
|
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
-
var reactDom__default = /*#__PURE__*/_interopDefaultLegacy(reactDom);
|
|
14
|
-
|
|
15
8
|
exports.COLOR = void 0;
|
|
16
9
|
(function (COLOR) {
|
|
17
10
|
COLOR["primary"] = "primary";
|
|
@@ -127,71 +120,6 @@ const AppBarTitle = (props) => {
|
|
|
127
120
|
return (jsxRuntime.jsx("div", { className: getCssClass(), onClick: onClick, children: children }));
|
|
128
121
|
};
|
|
129
122
|
|
|
130
|
-
var css_248z$13 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
|
|
131
|
-
var styles$13 = {"icon":"Icon-module_icon__lFKCA","primary":"Icon-module_primary__3fID-","accent":"Icon-module_accent__aZXGb","secondary":"Icon-module_secondary__HKKop","light":"Icon-module_light__-ApMm","dark":"Icon-module_dark__DpCIK"};
|
|
132
|
-
styleInject(css_248z$13);
|
|
133
|
-
|
|
134
|
-
const Icon = (props) => {
|
|
135
|
-
const { children, iconColor, className, ...rest } = props;
|
|
136
|
-
const getCssClasses = () => {
|
|
137
|
-
const cssClasses = [];
|
|
138
|
-
cssClasses.push(styles$13.icon);
|
|
139
|
-
iconColor && cssClasses.push(styles$13[iconColor]);
|
|
140
|
-
className && cssClasses.push(className);
|
|
141
|
-
return cssClasses.filter(css => css).join(' ');
|
|
142
|
-
};
|
|
143
|
-
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
var css_248z$12 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
|
|
147
|
-
var styles$12 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"IconButton-module_shadow__Uw0RK","md":"IconButton-module_md__XnuSk","lg":"IconButton-module_lg__arEvo","text":"IconButton-module_text__Ualag","active":"IconButton-module_active__VIqU9","primary":"IconButton-module_primary__vbo-G","secondary":"IconButton-module_secondary__AiNAY","accent":"IconButton-module_accent__QRzM2","light":"IconButton-module_light__YNEiO","dark":"IconButton-module_dark__gnbUH","disabled":"IconButton-module_disabled__QB0ZV","contained":"IconButton-module_contained__k7vGA"};
|
|
148
|
-
styleInject(css_248z$12);
|
|
149
|
-
|
|
150
|
-
const IconButton = (props) => {
|
|
151
|
-
const { children, icon, variant = exports.VARIANT.text, color = exports.COLOR.dark, size = exports.SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
152
|
-
const getCssClasses = () => {
|
|
153
|
-
const cssClasses = [];
|
|
154
|
-
cssClasses.push(styles$12[color]);
|
|
155
|
-
cssClasses.push(styles$12[variant]);
|
|
156
|
-
cssClasses.push(styles$12[size]);
|
|
157
|
-
cssClasses.push(styles$12.iconButton);
|
|
158
|
-
isActive && cssClasses.push(styles$12.active);
|
|
159
|
-
disabled && cssClasses.push(styles$12.disabled);
|
|
160
|
-
shadow && cssClasses.push(styles$12.shadow);
|
|
161
|
-
className && cssClasses.push(className);
|
|
162
|
-
return cssClasses.filter(css => css).join(' ');
|
|
163
|
-
};
|
|
164
|
-
return (jsxRuntime.jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsxRuntime.jsx(Icon, { children: icon }), children] }));
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
const CaretDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
168
|
-
|
|
169
|
-
const CheckSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
|
|
170
|
-
|
|
171
|
-
const CheckSquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
|
|
172
|
-
|
|
173
|
-
const ChevronDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
|
|
174
|
-
|
|
175
|
-
const ChevronLeftSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
|
|
176
|
-
|
|
177
|
-
const ChevronRightSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
|
|
178
|
-
|
|
179
|
-
const ChevronUpSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
|
|
180
|
-
|
|
181
|
-
const CircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
182
|
-
|
|
183
|
-
const HomeSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
|
|
184
|
-
|
|
185
|
-
const PlusSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
|
|
186
|
-
|
|
187
|
-
const SpinnerSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
|
|
188
|
-
|
|
189
|
-
const SquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
|
|
190
|
-
|
|
191
|
-
const TimesCircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
|
|
192
|
-
|
|
193
|
-
const TimesSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
194
|
-
|
|
195
123
|
const useConstructor = (callBack) => {
|
|
196
124
|
React.useEffect(() => {
|
|
197
125
|
callBack();
|
|
@@ -274,6 +202,34 @@ const useOnDestroy = (callBack) => {
|
|
|
274
202
|
}, []);
|
|
275
203
|
};
|
|
276
204
|
|
|
205
|
+
const CaretDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
206
|
+
|
|
207
|
+
const CheckSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
|
|
208
|
+
|
|
209
|
+
const CheckSquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
|
|
210
|
+
|
|
211
|
+
const ChevronDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
|
|
212
|
+
|
|
213
|
+
const ChevronLeftSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
|
|
214
|
+
|
|
215
|
+
const ChevronRightSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
|
|
216
|
+
|
|
217
|
+
const ChevronUpSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
|
|
218
|
+
|
|
219
|
+
const CircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
220
|
+
|
|
221
|
+
const HomeSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
|
|
222
|
+
|
|
223
|
+
const PlusSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
|
|
224
|
+
|
|
225
|
+
const SpinnerSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
|
|
226
|
+
|
|
227
|
+
const SquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
|
|
228
|
+
|
|
229
|
+
const TimesCircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
|
|
230
|
+
|
|
231
|
+
const TimesSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
232
|
+
|
|
277
233
|
const Portal$1 = ({ children, target = document.body, className }) => {
|
|
278
234
|
const containerEl = React.useMemo(() => document.createElement('div'), []);
|
|
279
235
|
React.useEffect(() => {
|
|
@@ -286,9 +242,9 @@ const Portal$1 = ({ children, target = document.body, className }) => {
|
|
|
286
242
|
return reactDom.createPortal(children, containerEl);
|
|
287
243
|
};
|
|
288
244
|
|
|
289
|
-
var css_248z$
|
|
290
|
-
var styles$
|
|
291
|
-
styleInject(css_248z$
|
|
245
|
+
var css_248z$13 = ".Backdrop-module_backdrop__IRMoL {\n height: 100%;\n width: 100%;\n position: absolute;\n opacity: 0.5;\n z-index: 1040;\n top: 0;\n left: 0;\n background-color: #000;\n}\n.Backdrop-module_backdrop__IRMoL.Backdrop-module_isTransparent__F5nA5 {\n opacity: 0;\n}";
|
|
246
|
+
var styles$13 = {"backdrop":"Backdrop-module_backdrop__IRMoL","isTransparent":"Backdrop-module_isTransparent__F5nA5"};
|
|
247
|
+
styleInject(css_248z$13);
|
|
292
248
|
|
|
293
249
|
const Backdrop = (props) => {
|
|
294
250
|
const { target = document.body, isTransparent = false, onClick, style, ...rest } = props;
|
|
@@ -298,14 +254,51 @@ const Backdrop = (props) => {
|
|
|
298
254
|
};
|
|
299
255
|
const getCssClasses = () => {
|
|
300
256
|
const cssClasses = [];
|
|
301
|
-
cssClasses.push(styles$
|
|
302
|
-
isTransparent && cssClasses.push(styles$
|
|
257
|
+
cssClasses.push(styles$13.backdrop);
|
|
258
|
+
isTransparent && cssClasses.push(styles$13['isTransparent']);
|
|
303
259
|
return cssClasses.filter(css => css).join(' ');
|
|
304
260
|
};
|
|
305
261
|
const getStyles = () => {
|
|
306
262
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
307
263
|
};
|
|
308
|
-
return (jsxRuntime.jsx(Portal$1, { className:
|
|
264
|
+
return (jsxRuntime.jsx(Portal$1, { className: "backdrop-root", target: target, children: jsxRuntime.jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
var css_248z$12 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
|
|
268
|
+
var styles$12 = {"icon":"Icon-module_icon__lFKCA","primary":"Icon-module_primary__3fID-","accent":"Icon-module_accent__aZXGb","secondary":"Icon-module_secondary__HKKop","light":"Icon-module_light__-ApMm","dark":"Icon-module_dark__DpCIK"};
|
|
269
|
+
styleInject(css_248z$12);
|
|
270
|
+
|
|
271
|
+
const Icon = (props) => {
|
|
272
|
+
const { children, iconColor, className, ...rest } = props;
|
|
273
|
+
const getCssClasses = () => {
|
|
274
|
+
const cssClasses = [];
|
|
275
|
+
cssClasses.push(styles$12.icon);
|
|
276
|
+
iconColor && cssClasses.push(styles$12[iconColor]);
|
|
277
|
+
className && cssClasses.push(className);
|
|
278
|
+
return cssClasses.filter(css => css).join(' ');
|
|
279
|
+
};
|
|
280
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
var css_248z$11 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
|
|
284
|
+
var styles$11 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"IconButton-module_shadow__Uw0RK","md":"IconButton-module_md__XnuSk","lg":"IconButton-module_lg__arEvo","text":"IconButton-module_text__Ualag","active":"IconButton-module_active__VIqU9","primary":"IconButton-module_primary__vbo-G","secondary":"IconButton-module_secondary__AiNAY","accent":"IconButton-module_accent__QRzM2","light":"IconButton-module_light__YNEiO","dark":"IconButton-module_dark__gnbUH","disabled":"IconButton-module_disabled__QB0ZV","contained":"IconButton-module_contained__k7vGA"};
|
|
285
|
+
styleInject(css_248z$11);
|
|
286
|
+
|
|
287
|
+
const IconButton = (props) => {
|
|
288
|
+
const { children, icon, variant = exports.VARIANT.text, color = exports.COLOR.dark, size = exports.SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
289
|
+
const getCssClasses = () => {
|
|
290
|
+
const cssClasses = [];
|
|
291
|
+
cssClasses.push(styles$11[color]);
|
|
292
|
+
cssClasses.push(styles$11[variant]);
|
|
293
|
+
cssClasses.push(styles$11[size]);
|
|
294
|
+
cssClasses.push(styles$11.iconButton);
|
|
295
|
+
isActive && cssClasses.push(styles$11.active);
|
|
296
|
+
disabled && cssClasses.push(styles$11.disabled);
|
|
297
|
+
shadow && cssClasses.push(styles$11.shadow);
|
|
298
|
+
className && cssClasses.push(className);
|
|
299
|
+
return cssClasses.filter(css => css).join(' ');
|
|
300
|
+
};
|
|
301
|
+
return (jsxRuntime.jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsxRuntime.jsx(Icon, { children: icon }), children] }));
|
|
309
302
|
};
|
|
310
303
|
|
|
311
304
|
var css_248z$10 = ".List-module_list__gpZ41 {\n width: 100%;\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n background-color: var(--white);\n}";
|
|
@@ -389,7 +382,7 @@ styleInject(css_248z$W);
|
|
|
389
382
|
// multiple
|
|
390
383
|
// custom template render items
|
|
391
384
|
const AutoComplete = (props) => {
|
|
392
|
-
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value } = props;
|
|
385
|
+
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value, } = props;
|
|
393
386
|
const [model, setModel] = React.useState('');
|
|
394
387
|
const [searchText, setSearchText] = React.useState('');
|
|
395
388
|
const [isShow, setIsShow] = React.useState(false);
|
|
@@ -453,9 +446,8 @@ const AutoComplete = (props) => {
|
|
|
453
446
|
setModel('');
|
|
454
447
|
setSearchText('');
|
|
455
448
|
};
|
|
456
|
-
return (jsxRuntime.jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxRuntime.jsxs("div", { className: "d-flex", children: [jsxRuntime.jsx("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }), showClearButton && model?.length > 0 &&
|
|
457
|
-
|
|
458
|
-
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$W.selectMenu, children: jsxRuntime.jsx(List, { children: _options && _options.map((option, index) => jsxRuntime.jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
|
|
449
|
+
return (jsxRuntime.jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxRuntime.jsxs("div", { className: "d-flex", children: [jsxRuntime.jsx("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }), showClearButton && model?.length > 0 && jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$W.selectMenu, children: jsxRuntime.jsx(List, { children: _options &&
|
|
450
|
+
_options.map((option, index) => (jsxRuntime.jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value))) }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] }))] }));
|
|
459
451
|
};
|
|
460
452
|
|
|
461
453
|
var css_248z$V = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
@@ -464,19 +456,12 @@ styleInject(css_248z$V);
|
|
|
464
456
|
|
|
465
457
|
const Badge = (props) => {
|
|
466
458
|
const { children, content, className, color = exports.COLOR.primary, ...rest } = props;
|
|
467
|
-
const [cssClassName] = useCssClasses([
|
|
468
|
-
styles$V.badge,
|
|
469
|
-
styles$V[color],
|
|
470
|
-
className
|
|
471
|
-
]);
|
|
459
|
+
const [cssClassName] = useCssClasses([styles$V.badge, styles$V[color], className]);
|
|
472
460
|
return (jsxRuntime.jsxs(BadgeContainer, { children: [children, jsxRuntime.jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
473
461
|
};
|
|
474
462
|
const BadgeContainer = (props) => {
|
|
475
463
|
const { children, className, ...rest } = props;
|
|
476
|
-
const [cssClassName] = useCssClasses([
|
|
477
|
-
styles$V.badgeContainer,
|
|
478
|
-
className,
|
|
479
|
-
]);
|
|
464
|
+
const [cssClassName] = useCssClasses([styles$V.badgeContainer, className]);
|
|
480
465
|
return (jsxRuntime.jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
481
466
|
};
|
|
482
467
|
|
|
@@ -1181,20 +1166,16 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
1181
1166
|
* LICENSE file in the root directory of this source tree.
|
|
1182
1167
|
*/
|
|
1183
1168
|
|
|
1184
|
-
var ReactPropTypesSecret$
|
|
1169
|
+
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1185
1170
|
|
|
1186
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$
|
|
1171
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
1187
1172
|
|
|
1188
|
-
var has$
|
|
1189
|
-
|
|
1190
|
-
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
1191
|
-
|
|
1192
|
-
var has$1 = has$2;
|
|
1173
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1193
1174
|
|
|
1194
1175
|
var printWarning$1 = function() {};
|
|
1195
1176
|
|
|
1196
1177
|
if (process.env.NODE_ENV !== 'production') {
|
|
1197
|
-
var ReactPropTypesSecret =
|
|
1178
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1198
1179
|
var loggedTypeFailures = {};
|
|
1199
1180
|
var has = has$1;
|
|
1200
1181
|
|
|
@@ -1223,7 +1204,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1223
1204
|
* @param {?Function} getStack Returns the component stack.
|
|
1224
1205
|
* @private
|
|
1225
1206
|
*/
|
|
1226
|
-
function checkPropTypes
|
|
1207
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
1227
1208
|
if (process.env.NODE_ENV !== 'production') {
|
|
1228
1209
|
for (var typeSpecName in typeSpecs) {
|
|
1229
1210
|
if (has(typeSpecs, typeSpecName)) {
|
|
@@ -1278,15 +1259,13 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
1278
1259
|
*
|
|
1279
1260
|
* @private
|
|
1280
1261
|
*/
|
|
1281
|
-
checkPropTypes
|
|
1262
|
+
checkPropTypes.resetWarningCache = function() {
|
|
1282
1263
|
if (process.env.NODE_ENV !== 'production') {
|
|
1283
1264
|
loggedTypeFailures = {};
|
|
1284
1265
|
}
|
|
1285
1266
|
};
|
|
1286
1267
|
|
|
1287
|
-
var checkPropTypes_1 = checkPropTypes
|
|
1288
|
-
|
|
1289
|
-
var checkPropTypes = checkPropTypes_1;
|
|
1268
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
1290
1269
|
|
|
1291
1270
|
var printWarning = function() {};
|
|
1292
1271
|
|
|
@@ -1451,7 +1430,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1451
1430
|
componentName = componentName || ANONYMOUS;
|
|
1452
1431
|
propFullName = propFullName || propName;
|
|
1453
1432
|
|
|
1454
|
-
if (secret !==
|
|
1433
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
1455
1434
|
if (throwOnDirectAccess) {
|
|
1456
1435
|
// New behavior only for users of `prop-types` package
|
|
1457
1436
|
var err = new Error(
|
|
@@ -1535,7 +1514,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1535
1514
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
1536
1515
|
}
|
|
1537
1516
|
for (var i = 0; i < propValue.length; i++) {
|
|
1538
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']',
|
|
1517
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
1539
1518
|
if (error instanceof Error) {
|
|
1540
1519
|
return error;
|
|
1541
1520
|
}
|
|
@@ -1628,7 +1607,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1628
1607
|
}
|
|
1629
1608
|
for (var key in propValue) {
|
|
1630
1609
|
if (has$1(propValue, key)) {
|
|
1631
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1610
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1632
1611
|
if (error instanceof Error) {
|
|
1633
1612
|
return error;
|
|
1634
1613
|
}
|
|
@@ -1660,7 +1639,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1660
1639
|
var expectedTypes = [];
|
|
1661
1640
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1662
1641
|
var checker = arrayOfTypeCheckers[i];
|
|
1663
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName,
|
|
1642
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
1664
1643
|
if (checkerResult == null) {
|
|
1665
1644
|
return null;
|
|
1666
1645
|
}
|
|
@@ -1703,7 +1682,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1703
1682
|
if (typeof checker !== 'function') {
|
|
1704
1683
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1705
1684
|
}
|
|
1706
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1685
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1707
1686
|
if (error) {
|
|
1708
1687
|
return error;
|
|
1709
1688
|
}
|
|
@@ -1734,7 +1713,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1734
1713
|
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1735
1714
|
);
|
|
1736
1715
|
}
|
|
1737
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1716
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1738
1717
|
if (error) {
|
|
1739
1718
|
return error;
|
|
1740
1719
|
}
|
|
@@ -1876,8 +1855,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1876
1855
|
return propValue.constructor.name;
|
|
1877
1856
|
}
|
|
1878
1857
|
|
|
1879
|
-
ReactPropTypes.checkPropTypes =
|
|
1880
|
-
ReactPropTypes.resetWarningCache =
|
|
1858
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
1859
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
1881
1860
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1882
1861
|
|
|
1883
1862
|
return ReactPropTypes;
|
|
@@ -1889,7 +1868,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
|
1889
1868
|
|
|
1890
1869
|
var factoryWithThrowingShims = function() {
|
|
1891
1870
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1892
|
-
if (secret ===
|
|
1871
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
1893
1872
|
// It is still safe when called from React.
|
|
1894
1873
|
return;
|
|
1895
1874
|
}
|
|
@@ -1936,10 +1915,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1936
1915
|
return ReactPropTypes;
|
|
1937
1916
|
};
|
|
1938
1917
|
|
|
1939
|
-
var require$$1 = factoryWithTypeCheckers;
|
|
1940
|
-
|
|
1941
|
-
var require$$2 = factoryWithThrowingShims;
|
|
1942
|
-
|
|
1943
1918
|
var propTypes = createCommonjsModule(function (module) {
|
|
1944
1919
|
/**
|
|
1945
1920
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1954,11 +1929,11 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1954
1929
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1955
1930
|
// http://fb.me/prop-types-in-prod
|
|
1956
1931
|
var throwOnDirectAccess = true;
|
|
1957
|
-
module.exports =
|
|
1932
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1958
1933
|
} else {
|
|
1959
1934
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1960
1935
|
// http://fb.me/prop-types-in-prod
|
|
1961
|
-
module.exports =
|
|
1936
|
+
module.exports = factoryWithThrowingShims();
|
|
1962
1937
|
}
|
|
1963
1938
|
});
|
|
1964
1939
|
|
|
@@ -2643,6 +2618,8 @@ function isObject(value) {
|
|
|
2643
2618
|
|
|
2644
2619
|
var lodash_memoize = memoize;
|
|
2645
2620
|
|
|
2621
|
+
var memoize$1 = lodash_memoize;
|
|
2622
|
+
|
|
2646
2623
|
function resolver(options) {
|
|
2647
2624
|
return JSON.stringify(options);
|
|
2648
2625
|
}
|
|
@@ -2686,212 +2663,188 @@ function getUserLocalesInternal(_temp) {
|
|
|
2686
2663
|
return normalizeLocales(uniqDefined(languageList));
|
|
2687
2664
|
}
|
|
2688
2665
|
|
|
2689
|
-
var getUserLocales =
|
|
2666
|
+
var getUserLocales = memoize$1(getUserLocalesInternal, resolver);
|
|
2690
2667
|
|
|
2691
2668
|
function getUserLocaleInternal(options) {
|
|
2692
2669
|
return getUserLocales(options)[0] || null;
|
|
2693
2670
|
}
|
|
2694
2671
|
|
|
2695
|
-
var getUserLocale =
|
|
2672
|
+
var getUserLocale = memoize$1(getUserLocaleInternal, resolver);
|
|
2696
2673
|
|
|
2697
2674
|
/**
|
|
2698
2675
|
* Utils
|
|
2699
2676
|
*/
|
|
2700
2677
|
function makeGetEdgeOfNeighbor(getPeriod, getEdgeOfPeriod, defaultOffset) {
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2678
|
+
return function makeGetEdgeOfNeighborInternal(date, offset) {
|
|
2679
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2680
|
+
var previousPeriod = getPeriod(date) + offset;
|
|
2681
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2682
|
+
};
|
|
2706
2683
|
}
|
|
2707
|
-
|
|
2708
2684
|
function makeGetEnd(getBeginOfNextPeriod) {
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2685
|
+
return function makeGetEndInternal(date) {
|
|
2686
|
+
return new Date(getBeginOfNextPeriod(date).getTime() - 1);
|
|
2687
|
+
};
|
|
2712
2688
|
}
|
|
2713
|
-
|
|
2714
|
-
function
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
return fn(date);
|
|
2718
|
-
});
|
|
2719
|
-
};
|
|
2689
|
+
function makeGetRange(getStart, getEnd) {
|
|
2690
|
+
return function makeGetRangeInternal(date) {
|
|
2691
|
+
return [getStart(date), getEnd(date)];
|
|
2692
|
+
};
|
|
2720
2693
|
}
|
|
2721
2694
|
/**
|
|
2722
2695
|
* Simple getters - getting a property of a given point in time
|
|
2723
2696
|
*/
|
|
2724
|
-
|
|
2725
2697
|
/**
|
|
2726
2698
|
* Gets year from date.
|
|
2727
2699
|
*
|
|
2728
2700
|
* @param {Date|number|string} date Date to get year from.
|
|
2729
2701
|
*/
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
2702
|
function getYear(date) {
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
return year;
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2703
|
+
if (date instanceof Date) {
|
|
2704
|
+
return date.getFullYear();
|
|
2705
|
+
}
|
|
2706
|
+
if (typeof date === 'number') {
|
|
2707
|
+
return date;
|
|
2708
|
+
}
|
|
2709
|
+
var year = parseInt(date, 10);
|
|
2710
|
+
if (typeof date === 'string' && !isNaN(year)) {
|
|
2711
|
+
return year;
|
|
2712
|
+
}
|
|
2713
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2748
2714
|
}
|
|
2749
2715
|
/**
|
|
2750
2716
|
* Gets month from date.
|
|
2751
2717
|
*
|
|
2752
2718
|
* @param {Date} date Date to get month from.
|
|
2753
2719
|
*/
|
|
2754
|
-
|
|
2755
2720
|
function getMonth(date) {
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
2721
|
+
if (date instanceof Date) {
|
|
2722
|
+
return date.getMonth();
|
|
2723
|
+
}
|
|
2724
|
+
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
2761
2725
|
}
|
|
2762
2726
|
/**
|
|
2763
2727
|
* Gets human-readable day of the month from date.
|
|
2764
2728
|
*
|
|
2765
2729
|
* @param {Date} date Date to get day of the month from.
|
|
2766
2730
|
*/
|
|
2767
|
-
|
|
2768
2731
|
function getDate(date) {
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2732
|
+
if (date instanceof Date) {
|
|
2733
|
+
return date.getDate();
|
|
2734
|
+
}
|
|
2735
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2774
2736
|
}
|
|
2775
2737
|
/**
|
|
2776
2738
|
* Century
|
|
2777
2739
|
*/
|
|
2778
|
-
|
|
2779
2740
|
function getCenturyStart(date) {
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2741
|
+
var year = getYear(date);
|
|
2742
|
+
var centuryStartYear = year + ((-year + 1) % 100);
|
|
2743
|
+
var centuryStartDate = new Date();
|
|
2744
|
+
centuryStartDate.setFullYear(centuryStartYear, 0, 1);
|
|
2745
|
+
centuryStartDate.setHours(0, 0, 0, 0);
|
|
2746
|
+
return centuryStartDate;
|
|
2786
2747
|
}
|
|
2787
2748
|
var getPreviousCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, -100);
|
|
2788
2749
|
var getNextCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, 100);
|
|
2789
2750
|
var getCenturyEnd = makeGetEnd(getNextCenturyStart);
|
|
2790
2751
|
var getPreviousCenturyEnd = makeGetEdgeOfNeighbor(getYear, getCenturyEnd, -100);
|
|
2791
|
-
var getCenturyRange = makeGetRange(
|
|
2752
|
+
var getCenturyRange = makeGetRange(getCenturyStart, getCenturyEnd);
|
|
2792
2753
|
/**
|
|
2793
2754
|
* Decade
|
|
2794
2755
|
*/
|
|
2795
|
-
|
|
2796
2756
|
function getDecadeStart(date) {
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2757
|
+
var year = getYear(date);
|
|
2758
|
+
var decadeStartYear = year + ((-year + 1) % 10);
|
|
2759
|
+
var decadeStartDate = new Date();
|
|
2760
|
+
decadeStartDate.setFullYear(decadeStartYear, 0, 1);
|
|
2761
|
+
decadeStartDate.setHours(0, 0, 0, 0);
|
|
2762
|
+
return decadeStartDate;
|
|
2803
2763
|
}
|
|
2804
2764
|
var getPreviousDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, -10);
|
|
2805
2765
|
var getNextDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, 10);
|
|
2806
2766
|
var getDecadeEnd = makeGetEnd(getNextDecadeStart);
|
|
2807
2767
|
var getPreviousDecadeEnd = makeGetEdgeOfNeighbor(getYear, getDecadeEnd, -10);
|
|
2808
|
-
var getDecadeRange = makeGetRange(
|
|
2768
|
+
var getDecadeRange = makeGetRange(getDecadeStart, getDecadeEnd);
|
|
2809
2769
|
/**
|
|
2810
2770
|
* Year
|
|
2811
2771
|
*/
|
|
2812
|
-
|
|
2813
2772
|
function getYearStart(date) {
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2773
|
+
var year = getYear(date);
|
|
2774
|
+
var yearStartDate = new Date();
|
|
2775
|
+
yearStartDate.setFullYear(year, 0, 1);
|
|
2776
|
+
yearStartDate.setHours(0, 0, 0, 0);
|
|
2777
|
+
return yearStartDate;
|
|
2819
2778
|
}
|
|
2820
2779
|
var getPreviousYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, -1);
|
|
2821
2780
|
var getNextYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, 1);
|
|
2822
2781
|
var getYearEnd = makeGetEnd(getNextYearStart);
|
|
2823
2782
|
var getPreviousYearEnd = makeGetEdgeOfNeighbor(getYear, getYearEnd, -1);
|
|
2824
|
-
var getYearRange = makeGetRange(
|
|
2783
|
+
var getYearRange = makeGetRange(getYearStart, getYearEnd);
|
|
2825
2784
|
/**
|
|
2826
2785
|
* Month
|
|
2827
2786
|
*/
|
|
2828
|
-
|
|
2829
2787
|
function makeGetEdgeOfNeighborMonth(getEdgeOfPeriod, defaultOffset) {
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2788
|
+
return function makeGetEdgeOfNeighborMonthInternal(date, offset) {
|
|
2789
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2790
|
+
var year = getYear(date);
|
|
2791
|
+
var month = getMonth(date) + offset;
|
|
2792
|
+
var previousPeriod = new Date();
|
|
2793
|
+
previousPeriod.setFullYear(year, month, 1);
|
|
2794
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2795
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2796
|
+
};
|
|
2839
2797
|
}
|
|
2840
|
-
|
|
2841
2798
|
function getMonthStart(date) {
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2799
|
+
var year = getYear(date);
|
|
2800
|
+
var month = getMonth(date);
|
|
2801
|
+
var monthStartDate = new Date();
|
|
2802
|
+
monthStartDate.setFullYear(year, month, 1);
|
|
2803
|
+
monthStartDate.setHours(0, 0, 0, 0);
|
|
2804
|
+
return monthStartDate;
|
|
2848
2805
|
}
|
|
2849
2806
|
var getPreviousMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, -1);
|
|
2850
2807
|
var getNextMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, 1);
|
|
2851
2808
|
var getMonthEnd = makeGetEnd(getNextMonthStart);
|
|
2852
2809
|
var getPreviousMonthEnd = makeGetEdgeOfNeighborMonth(getMonthEnd, -1);
|
|
2853
|
-
var getMonthRange = makeGetRange(
|
|
2810
|
+
var getMonthRange = makeGetRange(getMonthStart, getMonthEnd);
|
|
2854
2811
|
/**
|
|
2855
2812
|
* Day
|
|
2856
2813
|
*/
|
|
2857
|
-
|
|
2858
2814
|
function makeGetEdgeOfNeighborDay(getEdgeOfPeriod, defaultOffset) {
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2815
|
+
return function makeGetEdgeOfNeighborDayInternal(date, offset) {
|
|
2816
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2817
|
+
var year = getYear(date);
|
|
2818
|
+
var month = getMonth(date);
|
|
2819
|
+
var day = getDate(date) + offset;
|
|
2820
|
+
var previousPeriod = new Date();
|
|
2821
|
+
previousPeriod.setFullYear(year, month, day);
|
|
2822
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2823
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2824
|
+
};
|
|
2869
2825
|
}
|
|
2870
|
-
|
|
2871
2826
|
function getDayStart(date) {
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2827
|
+
var year = getYear(date);
|
|
2828
|
+
var month = getMonth(date);
|
|
2829
|
+
var day = getDate(date);
|
|
2830
|
+
var dayStartDate = new Date();
|
|
2831
|
+
dayStartDate.setFullYear(year, month, day);
|
|
2832
|
+
dayStartDate.setHours(0, 0, 0, 0);
|
|
2833
|
+
return dayStartDate;
|
|
2879
2834
|
}
|
|
2880
2835
|
var getNextDayStart = makeGetEdgeOfNeighborDay(getDayStart, 1);
|
|
2881
2836
|
var getDayEnd = makeGetEnd(getNextDayStart);
|
|
2882
|
-
var getDayRange = makeGetRange(
|
|
2837
|
+
var getDayRange = makeGetRange(getDayStart, getDayEnd);
|
|
2883
2838
|
/**
|
|
2884
2839
|
* Other
|
|
2885
2840
|
*/
|
|
2886
|
-
|
|
2887
2841
|
/**
|
|
2888
2842
|
* Returns a number of days in a month of a given date.
|
|
2889
2843
|
*
|
|
2890
2844
|
* @param {Date} date Date.
|
|
2891
2845
|
*/
|
|
2892
|
-
|
|
2893
2846
|
function getDaysInMonth(date) {
|
|
2894
|
-
|
|
2847
|
+
return getDate(getMonthEnd(date));
|
|
2895
2848
|
}
|
|
2896
2849
|
|
|
2897
2850
|
var _CALENDAR_TYPE_LOCALE;
|
|
@@ -3454,7 +3407,7 @@ function Navigation(_ref) {
|
|
|
3454
3407
|
}
|
|
3455
3408
|
function renderButton() {
|
|
3456
3409
|
var labelClassName = "".concat(className$6, "__label");
|
|
3457
|
-
return /*#__PURE__*/
|
|
3410
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
3458
3411
|
"aria-label": navigationAriaLabel,
|
|
3459
3412
|
"aria-live": navigationAriaLive,
|
|
3460
3413
|
className: labelClassName,
|
|
@@ -3464,35 +3417,35 @@ function Navigation(_ref) {
|
|
|
3464
3417
|
flexGrow: 1
|
|
3465
3418
|
},
|
|
3466
3419
|
type: "button"
|
|
3467
|
-
}, /*#__PURE__*/
|
|
3420
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
3468
3421
|
className: "".concat(labelClassName, "__labelText ").concat(labelClassName, "__labelText--from")
|
|
3469
|
-
}, renderLabel(activeStartDate)), showDoubleView && /*#__PURE__*/
|
|
3422
|
+
}, renderLabel(activeStartDate)), showDoubleView && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
3470
3423
|
className: "".concat(labelClassName, "__divider")
|
|
3471
|
-
}, " \u2013 "), /*#__PURE__*/
|
|
3424
|
+
}, " \u2013 "), /*#__PURE__*/React.createElement("span", {
|
|
3472
3425
|
className: "".concat(labelClassName, "__labelText ").concat(labelClassName, "__labelText--to")
|
|
3473
3426
|
}, renderLabel(nextActiveStartDate))));
|
|
3474
3427
|
}
|
|
3475
|
-
return /*#__PURE__*/
|
|
3428
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3476
3429
|
className: className$6
|
|
3477
|
-
}, prev2Label !== null && shouldShowPrevNext2Buttons && /*#__PURE__*/
|
|
3430
|
+
}, prev2Label !== null && shouldShowPrevNext2Buttons && /*#__PURE__*/React.createElement("button", {
|
|
3478
3431
|
"aria-label": prev2AriaLabel,
|
|
3479
3432
|
className: "".concat(className$6, "__arrow ").concat(className$6, "__prev2-button"),
|
|
3480
3433
|
disabled: prev2ButtonDisabled,
|
|
3481
3434
|
onClick: onClickPrevious2,
|
|
3482
3435
|
type: "button"
|
|
3483
|
-
}, prev2Label), prevLabel !== null && /*#__PURE__*/
|
|
3436
|
+
}, prev2Label), prevLabel !== null && /*#__PURE__*/React.createElement("button", {
|
|
3484
3437
|
"aria-label": prevAriaLabel,
|
|
3485
3438
|
className: "".concat(className$6, "__arrow ").concat(className$6, "__prev-button"),
|
|
3486
3439
|
disabled: prevButtonDisabled,
|
|
3487
3440
|
onClick: onClickPrevious,
|
|
3488
3441
|
type: "button"
|
|
3489
|
-
}, prevLabel), renderButton(), nextLabel !== null && /*#__PURE__*/
|
|
3442
|
+
}, prevLabel), renderButton(), nextLabel !== null && /*#__PURE__*/React.createElement("button", {
|
|
3490
3443
|
"aria-label": nextAriaLabel,
|
|
3491
3444
|
className: "".concat(className$6, "__arrow ").concat(className$6, "__next-button"),
|
|
3492
3445
|
disabled: nextButtonDisabled,
|
|
3493
3446
|
onClick: onClickNext,
|
|
3494
3447
|
type: "button"
|
|
3495
|
-
}, nextLabel), next2Label !== null && shouldShowPrevNext2Buttons && /*#__PURE__*/
|
|
3448
|
+
}, nextLabel), next2Label !== null && shouldShowPrevNext2Buttons && /*#__PURE__*/React.createElement("button", {
|
|
3496
3449
|
"aria-label": next2AriaLabel,
|
|
3497
3450
|
className: "".concat(className$6, "__arrow ").concat(className$6, "__next2-button"),
|
|
3498
3451
|
disabled: next2ButtonDisabled,
|
|
@@ -3544,15 +3497,15 @@ function Flex(_ref) {
|
|
|
3544
3497
|
style = _ref.style,
|
|
3545
3498
|
wrap = _ref.wrap,
|
|
3546
3499
|
otherProps = _objectWithoutProperties$9(_ref, _excluded$9);
|
|
3547
|
-
return /*#__PURE__*/
|
|
3500
|
+
return /*#__PURE__*/React.createElement("div", _extends$c({
|
|
3548
3501
|
className: className,
|
|
3549
3502
|
style: _objectSpread$c({
|
|
3550
3503
|
display: 'flex',
|
|
3551
3504
|
flexDirection: direction,
|
|
3552
3505
|
flexWrap: wrap ? 'wrap' : 'no-wrap'
|
|
3553
3506
|
}, style)
|
|
3554
|
-
}, otherProps),
|
|
3555
|
-
return /*#__PURE__*/
|
|
3507
|
+
}, otherProps), React.Children.map(children, function (child, index) {
|
|
3508
|
+
return /*#__PURE__*/React.cloneElement(child, _objectSpread$c(_objectSpread$c({}, child.props), {}, {
|
|
3556
3509
|
style: {
|
|
3557
3510
|
flexBasis: toPercent(100 / count),
|
|
3558
3511
|
flexShrink: 0,
|
|
@@ -3693,7 +3646,7 @@ function TileGroup(_ref) {
|
|
|
3693
3646
|
var tiles = [];
|
|
3694
3647
|
for (var point = start; point <= end; point += step) {
|
|
3695
3648
|
var date = dateTransform(point);
|
|
3696
|
-
tiles.push( /*#__PURE__*/
|
|
3649
|
+
tiles.push( /*#__PURE__*/React.createElement(Tile, _extends$b({
|
|
3697
3650
|
key: date.getTime(),
|
|
3698
3651
|
classes: getTileClasses({
|
|
3699
3652
|
value: value,
|
|
@@ -3706,7 +3659,7 @@ function TileGroup(_ref) {
|
|
|
3706
3659
|
point: point
|
|
3707
3660
|
}, tileProps)));
|
|
3708
3661
|
}
|
|
3709
|
-
return /*#__PURE__*/
|
|
3662
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
3710
3663
|
className: className,
|
|
3711
3664
|
count: count,
|
|
3712
3665
|
offset: offset,
|
|
@@ -3785,7 +3738,7 @@ var Tile = /*#__PURE__*/function (_Component) {
|
|
|
3785
3738
|
var _this$state = this.state,
|
|
3786
3739
|
tileClassName = _this$state.tileClassName,
|
|
3787
3740
|
tileContent = _this$state.tileContent;
|
|
3788
|
-
return /*#__PURE__*/
|
|
3741
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
3789
3742
|
className: clsx(classes, tileClassName),
|
|
3790
3743
|
disabled: minDate && minDateTransform(minDate) > date || maxDate && maxDateTransform(maxDate) < date || tileDisabled && tileDisabled({
|
|
3791
3744
|
activeStartDate: activeStartDate,
|
|
@@ -3803,7 +3756,7 @@ var Tile = /*#__PURE__*/function (_Component) {
|
|
|
3803
3756
|
},
|
|
3804
3757
|
style: style,
|
|
3805
3758
|
type: "button"
|
|
3806
|
-
}, formatAbbr ? /*#__PURE__*/
|
|
3759
|
+
}, formatAbbr ? /*#__PURE__*/React.createElement("abbr", {
|
|
3807
3760
|
"aria-label": formatAbbr(locale, date)
|
|
3808
3761
|
}, children) : children, tileContent);
|
|
3809
3762
|
}
|
|
@@ -3850,7 +3803,7 @@ function Decade(_ref) {
|
|
|
3850
3803
|
otherProps = _objectWithoutProperties$7(_ref, _excluded$7);
|
|
3851
3804
|
var date = otherProps.date,
|
|
3852
3805
|
locale = otherProps.locale;
|
|
3853
|
-
return /*#__PURE__*/
|
|
3806
|
+
return /*#__PURE__*/React.createElement(Tile, _extends$a({}, otherProps, {
|
|
3854
3807
|
classes: [].concat(classes, className$5),
|
|
3855
3808
|
maxDateTransform: getDecadeEnd,
|
|
3856
3809
|
minDateTransform: getDecadeStart,
|
|
@@ -3869,7 +3822,7 @@ function Decades(props) {
|
|
|
3869
3822
|
var activeStartDate = props.activeStartDate;
|
|
3870
3823
|
var start = getBeginOfCenturyYear(activeStartDate);
|
|
3871
3824
|
var end = start + 99;
|
|
3872
|
-
return /*#__PURE__*/
|
|
3825
|
+
return /*#__PURE__*/React.createElement(TileGroup, _extends$9({}, props, {
|
|
3873
3826
|
className: "react-calendar__century-view__decades",
|
|
3874
3827
|
dateTransform: getDecadeStart,
|
|
3875
3828
|
dateType: "decade",
|
|
@@ -3883,9 +3836,9 @@ Decades.propTypes = _objectSpread$8({}, tileGroupProps);
|
|
|
3883
3836
|
|
|
3884
3837
|
function CenturyView(props) {
|
|
3885
3838
|
function renderDecades() {
|
|
3886
|
-
return /*#__PURE__*/
|
|
3839
|
+
return /*#__PURE__*/React.createElement(Decades, props);
|
|
3887
3840
|
}
|
|
3888
|
-
return /*#__PURE__*/
|
|
3841
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3889
3842
|
className: "react-calendar__century-view"
|
|
3890
3843
|
}, renderDecades());
|
|
3891
3844
|
}
|
|
@@ -3905,7 +3858,7 @@ function Year(_ref) {
|
|
|
3905
3858
|
otherProps = _objectWithoutProperties$6(_ref, _excluded$6);
|
|
3906
3859
|
var date = otherProps.date,
|
|
3907
3860
|
locale = otherProps.locale;
|
|
3908
|
-
return /*#__PURE__*/
|
|
3861
|
+
return /*#__PURE__*/React.createElement(Tile, _extends$8({}, otherProps, {
|
|
3909
3862
|
classes: [].concat(classes, className$4),
|
|
3910
3863
|
maxDateTransform: getYearEnd,
|
|
3911
3864
|
minDateTransform: getYearStart,
|
|
@@ -3924,7 +3877,7 @@ function Years(props) {
|
|
|
3924
3877
|
var activeStartDate = props.activeStartDate;
|
|
3925
3878
|
var start = getBeginOfDecadeYear(activeStartDate);
|
|
3926
3879
|
var end = start + 9;
|
|
3927
|
-
return /*#__PURE__*/
|
|
3880
|
+
return /*#__PURE__*/React.createElement(TileGroup, _extends$7({}, props, {
|
|
3928
3881
|
className: "react-calendar__decade-view__years",
|
|
3929
3882
|
dateTransform: function dateTransform(year) {
|
|
3930
3883
|
var date = new Date();
|
|
@@ -3942,9 +3895,9 @@ Years.propTypes = _objectSpread$6({}, tileGroupProps);
|
|
|
3942
3895
|
|
|
3943
3896
|
function DecadeView(props) {
|
|
3944
3897
|
function renderYears() {
|
|
3945
|
-
return /*#__PURE__*/
|
|
3898
|
+
return /*#__PURE__*/React.createElement(Years, props);
|
|
3946
3899
|
}
|
|
3947
|
-
return /*#__PURE__*/
|
|
3900
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3948
3901
|
className: "react-calendar__decade-view"
|
|
3949
3902
|
}, renderYears());
|
|
3950
3903
|
}
|
|
@@ -3966,7 +3919,7 @@ function Month(_ref) {
|
|
|
3966
3919
|
otherProps = _objectWithoutProperties$5(_ref, _excluded$5);
|
|
3967
3920
|
var date = otherProps.date,
|
|
3968
3921
|
locale = otherProps.locale;
|
|
3969
|
-
return /*#__PURE__*/
|
|
3922
|
+
return /*#__PURE__*/React.createElement(Tile, _extends$6({}, otherProps, {
|
|
3970
3923
|
classes: [].concat(classes, className$3),
|
|
3971
3924
|
formatAbbr: formatMonthYear$1,
|
|
3972
3925
|
maxDateTransform: getMonthEnd,
|
|
@@ -3988,7 +3941,7 @@ function Months(props) {
|
|
|
3988
3941
|
var start = 0;
|
|
3989
3942
|
var end = 11;
|
|
3990
3943
|
var year = getYear(activeStartDate);
|
|
3991
|
-
return /*#__PURE__*/
|
|
3944
|
+
return /*#__PURE__*/React.createElement(TileGroup, _extends$5({}, props, {
|
|
3992
3945
|
className: "react-calendar__year-view__months",
|
|
3993
3946
|
dateTransform: function dateTransform(monthIndex) {
|
|
3994
3947
|
var date = new Date();
|
|
@@ -4008,9 +3961,9 @@ Months.propTypes = _objectSpread$4(_objectSpread$4({}, tileGroupProps), {}, {
|
|
|
4008
3961
|
|
|
4009
3962
|
function YearView(props) {
|
|
4010
3963
|
function renderMonths() {
|
|
4011
|
-
return /*#__PURE__*/
|
|
3964
|
+
return /*#__PURE__*/React.createElement(Months, props);
|
|
4012
3965
|
}
|
|
4013
|
-
return /*#__PURE__*/
|
|
3966
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
4014
3967
|
className: "react-calendar__year-view"
|
|
4015
3968
|
}, renderMonths());
|
|
4016
3969
|
}
|
|
@@ -4034,7 +3987,7 @@ function Day(_ref) {
|
|
|
4034
3987
|
otherProps = _objectWithoutProperties$4(_ref, _excluded$4);
|
|
4035
3988
|
var date = otherProps.date,
|
|
4036
3989
|
locale = otherProps.locale;
|
|
4037
|
-
return /*#__PURE__*/
|
|
3990
|
+
return /*#__PURE__*/React.createElement(Tile, _extends$4({}, otherProps, {
|
|
4038
3991
|
classes: [].concat(classes, className$2, isWeekend(date, calendarType) ? "".concat(className$2, "--weekend") : null, date.getMonth() !== currentMonthIndex ? "".concat(className$2, "--neighboringMonth") : null),
|
|
4039
3992
|
formatAbbr: formatLongDate$1,
|
|
4040
3993
|
maxDateTransform: getDayEnd,
|
|
@@ -4094,7 +4047,7 @@ function Days(props) {
|
|
|
4094
4047
|
}
|
|
4095
4048
|
return daysInMonth;
|
|
4096
4049
|
}();
|
|
4097
|
-
return /*#__PURE__*/
|
|
4050
|
+
return /*#__PURE__*/React.createElement(TileGroup, _extends$3({}, otherProps, {
|
|
4098
4051
|
className: "react-calendar__month-view__days",
|
|
4099
4052
|
count: 7,
|
|
4100
4053
|
currentMonthIndex: monthIndex,
|
|
@@ -4135,15 +4088,15 @@ function Weekdays(props) {
|
|
|
4135
4088
|
for (var weekday = 1; weekday <= 7; weekday += 1) {
|
|
4136
4089
|
var weekdayDate = new Date(year, monthIndex, weekday - getDayOfWeek(beginOfMonth, calendarType));
|
|
4137
4090
|
var abbr = formatWeekday$1(locale, weekdayDate);
|
|
4138
|
-
weekdays.push( /*#__PURE__*/
|
|
4091
|
+
weekdays.push( /*#__PURE__*/React.createElement("div", {
|
|
4139
4092
|
key: weekday,
|
|
4140
4093
|
className: clsx(weekdayClassName, isWeekend(weekdayDate, calendarType) && "".concat(weekdayClassName, "--weekend"))
|
|
4141
|
-
}, /*#__PURE__*/
|
|
4094
|
+
}, /*#__PURE__*/React.createElement("abbr", {
|
|
4142
4095
|
"aria-label": abbr,
|
|
4143
4096
|
title: abbr
|
|
4144
4097
|
}, formatShortWeekday$1(locale, weekdayDate).replace('.', ''))));
|
|
4145
4098
|
}
|
|
4146
|
-
return /*#__PURE__*/
|
|
4099
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
4147
4100
|
className: className$1,
|
|
4148
4101
|
count: 7,
|
|
4149
4102
|
onFocus: onMouseLeave,
|
|
@@ -4174,13 +4127,13 @@ function WeekNumber(_ref) {
|
|
|
4174
4127
|
var props = _objectSpread$1({
|
|
4175
4128
|
className: className
|
|
4176
4129
|
}, otherProps);
|
|
4177
|
-
var children = /*#__PURE__*/
|
|
4178
|
-
return onClickWeekNumber ? /*#__PURE__*/
|
|
4130
|
+
var children = /*#__PURE__*/React.createElement("span", null, weekNumber);
|
|
4131
|
+
return onClickWeekNumber ? /*#__PURE__*/React.createElement("button", _extends$2({}, props, {
|
|
4179
4132
|
onClick: function onClick(event) {
|
|
4180
4133
|
return onClickWeekNumber(weekNumber, date, event);
|
|
4181
4134
|
},
|
|
4182
4135
|
type: "button"
|
|
4183
|
-
}), children) : /*#__PURE__*/
|
|
4136
|
+
}), children) : /*#__PURE__*/React.createElement("div", props, children);
|
|
4184
4137
|
}
|
|
4185
4138
|
WeekNumber.propTypes = {
|
|
4186
4139
|
date: PropTypes.instanceOf(Date).isRequired,
|
|
@@ -4216,7 +4169,7 @@ function WeekNumbers(props) {
|
|
|
4216
4169
|
var weekNumbers = dates.map(function (date) {
|
|
4217
4170
|
return getWeekNumber(date, calendarType);
|
|
4218
4171
|
});
|
|
4219
|
-
return /*#__PURE__*/
|
|
4172
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
4220
4173
|
className: "react-calendar__month-view__weekNumbers",
|
|
4221
4174
|
count: numberOfWeeks,
|
|
4222
4175
|
direction: "column",
|
|
@@ -4227,7 +4180,7 @@ function WeekNumbers(props) {
|
|
|
4227
4180
|
flexShrink: 0
|
|
4228
4181
|
}
|
|
4229
4182
|
}, weekNumbers.map(function (weekNumber, weekIndex) {
|
|
4230
|
-
return /*#__PURE__*/
|
|
4183
|
+
return /*#__PURE__*/React.createElement(WeekNumber, {
|
|
4231
4184
|
key: weekNumber,
|
|
4232
4185
|
date: dates[weekIndex],
|
|
4233
4186
|
onClickWeekNumber: onClickWeekNumber,
|
|
@@ -4265,7 +4218,7 @@ function MonthView(props) {
|
|
|
4265
4218
|
showWeekNumbers = props.showWeekNumbers,
|
|
4266
4219
|
childProps = _objectWithoutProperties$1(props, _excluded$1);
|
|
4267
4220
|
function renderWeekdays() {
|
|
4268
|
-
return /*#__PURE__*/
|
|
4221
|
+
return /*#__PURE__*/React.createElement(Weekdays, {
|
|
4269
4222
|
calendarType: calendarType,
|
|
4270
4223
|
formatShortWeekday: formatShortWeekday,
|
|
4271
4224
|
formatWeekday: formatWeekday,
|
|
@@ -4277,7 +4230,7 @@ function MonthView(props) {
|
|
|
4277
4230
|
if (!showWeekNumbers) {
|
|
4278
4231
|
return null;
|
|
4279
4232
|
}
|
|
4280
|
-
return /*#__PURE__*/
|
|
4233
|
+
return /*#__PURE__*/React.createElement(WeekNumbers, {
|
|
4281
4234
|
activeStartDate: activeStartDate,
|
|
4282
4235
|
calendarType: calendarType,
|
|
4283
4236
|
onClickWeekNumber: onClickWeekNumber,
|
|
@@ -4286,19 +4239,19 @@ function MonthView(props) {
|
|
|
4286
4239
|
});
|
|
4287
4240
|
}
|
|
4288
4241
|
function renderDays() {
|
|
4289
|
-
return /*#__PURE__*/
|
|
4242
|
+
return /*#__PURE__*/React.createElement(Days, _extends$1({
|
|
4290
4243
|
calendarType: calendarType
|
|
4291
4244
|
}, childProps));
|
|
4292
4245
|
}
|
|
4293
4246
|
var className = 'react-calendar__month-view';
|
|
4294
|
-
return /*#__PURE__*/
|
|
4247
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
4295
4248
|
className: clsx(className, showWeekNumbers ? "".concat(className, "--weekNumbers") : '')
|
|
4296
|
-
}, /*#__PURE__*/
|
|
4249
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
4297
4250
|
style: {
|
|
4298
4251
|
display: 'flex',
|
|
4299
4252
|
alignItems: 'flex-end'
|
|
4300
4253
|
}
|
|
4301
|
-
}, renderWeekNumbers(), /*#__PURE__*/
|
|
4254
|
+
}, renderWeekNumbers(), /*#__PURE__*/React.createElement("div", {
|
|
4302
4255
|
style: {
|
|
4303
4256
|
flexGrow: 1,
|
|
4304
4257
|
width: '100%'
|
|
@@ -4470,7 +4423,7 @@ function getInitialActiveStartDate(props) {
|
|
|
4470
4423
|
var getIsSingleValue = function getIsSingleValue(value) {
|
|
4471
4424
|
return value && [].concat(value).length === 1;
|
|
4472
4425
|
};
|
|
4473
|
-
var Calendar
|
|
4426
|
+
var Calendar = /*#__PURE__*/function (_Component) {
|
|
4474
4427
|
_inherits(Calendar, _Component);
|
|
4475
4428
|
var _super = _createSuper(Calendar);
|
|
4476
4429
|
function Calendar() {
|
|
@@ -4795,14 +4748,14 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4795
4748
|
case 'century':
|
|
4796
4749
|
{
|
|
4797
4750
|
var formatYear = this.props.formatYear;
|
|
4798
|
-
return /*#__PURE__*/
|
|
4751
|
+
return /*#__PURE__*/React.createElement(CenturyView, _extends({
|
|
4799
4752
|
formatYear: formatYear
|
|
4800
4753
|
}, commonProps));
|
|
4801
4754
|
}
|
|
4802
4755
|
case 'decade':
|
|
4803
4756
|
{
|
|
4804
4757
|
var _formatYear = this.props.formatYear;
|
|
4805
|
-
return /*#__PURE__*/
|
|
4758
|
+
return /*#__PURE__*/React.createElement(DecadeView, _extends({
|
|
4806
4759
|
formatYear: _formatYear
|
|
4807
4760
|
}, commonProps));
|
|
4808
4761
|
}
|
|
@@ -4811,7 +4764,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4811
4764
|
var _this$props9 = this.props,
|
|
4812
4765
|
formatMonth = _this$props9.formatMonth,
|
|
4813
4766
|
formatMonthYear = _this$props9.formatMonthYear;
|
|
4814
|
-
return /*#__PURE__*/
|
|
4767
|
+
return /*#__PURE__*/React.createElement(YearView, _extends({
|
|
4815
4768
|
formatMonth: formatMonth,
|
|
4816
4769
|
formatMonthYear: formatMonthYear
|
|
4817
4770
|
}, commonProps));
|
|
@@ -4829,7 +4782,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4829
4782
|
showNeighboringMonth = _this$props10.showNeighboringMonth,
|
|
4830
4783
|
showWeekNumbers = _this$props10.showWeekNumbers;
|
|
4831
4784
|
var onMouseLeave = this.onMouseLeave;
|
|
4832
|
-
return /*#__PURE__*/
|
|
4785
|
+
return /*#__PURE__*/React.createElement(MonthView, _extends({
|
|
4833
4786
|
calendarType: calendarType,
|
|
4834
4787
|
formatDay: formatDay,
|
|
4835
4788
|
formatLongDate: formatLongDate,
|
|
@@ -4874,7 +4827,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4874
4827
|
prevAriaLabel = _this$props11.prevAriaLabel,
|
|
4875
4828
|
prevLabel = _this$props11.prevLabel,
|
|
4876
4829
|
showDoubleView = _this$props11.showDoubleView;
|
|
4877
|
-
return /*#__PURE__*/
|
|
4830
|
+
return /*#__PURE__*/React.createElement(Navigation, {
|
|
4878
4831
|
activeStartDate: activeStartDate,
|
|
4879
4832
|
drillUp: this.drillUp,
|
|
4880
4833
|
formatMonthYear: formatMonthYear,
|
|
@@ -4910,10 +4863,10 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4910
4863
|
var onMouseLeave = this.onMouseLeave,
|
|
4911
4864
|
value = this.value;
|
|
4912
4865
|
var valueArray = [].concat(value);
|
|
4913
|
-
return /*#__PURE__*/
|
|
4866
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
4914
4867
|
className: clsx(baseClassName, selectRange && valueArray.length === 1 && "".concat(baseClassName, "--selectRange"), showDoubleView && "".concat(baseClassName, "--doubleView"), className),
|
|
4915
4868
|
ref: inputRef
|
|
4916
|
-
}, this.renderNavigation(), /*#__PURE__*/
|
|
4869
|
+
}, this.renderNavigation(), /*#__PURE__*/React.createElement("div", {
|
|
4917
4870
|
className: "".concat(baseClassName, "__viewContainer"),
|
|
4918
4871
|
onBlur: selectRange ? onMouseLeave : null,
|
|
4919
4872
|
onMouseLeave: selectRange ? onMouseLeave : null
|
|
@@ -4922,7 +4875,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4922
4875
|
}]);
|
|
4923
4876
|
return Calendar;
|
|
4924
4877
|
}(React.Component);
|
|
4925
|
-
Calendar
|
|
4878
|
+
Calendar.defaultProps = {
|
|
4926
4879
|
goToRangeStartOnSelect: true,
|
|
4927
4880
|
maxDate: defaultMaxDate,
|
|
4928
4881
|
maxDetail: 'month',
|
|
@@ -4934,7 +4887,7 @@ Calendar$1.defaultProps = {
|
|
|
4934
4887
|
};
|
|
4935
4888
|
var isActiveStartDate = PropTypes.instanceOf(Date);
|
|
4936
4889
|
var isLooseValue = PropTypes.oneOfType([PropTypes.string, isValue]);
|
|
4937
|
-
Calendar
|
|
4890
|
+
Calendar.propTypes = {
|
|
4938
4891
|
activeStartDate: isActiveStartDate,
|
|
4939
4892
|
allowPartialRange: PropTypes.bool,
|
|
4940
4893
|
calendarType: isCalendarType,
|
|
@@ -4991,8 +4944,6 @@ Calendar$1.propTypes = {
|
|
|
4991
4944
|
view: isView
|
|
4992
4945
|
};
|
|
4993
4946
|
|
|
4994
|
-
var Calendar = Calendar$1;
|
|
4995
|
-
|
|
4996
4947
|
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4997
4948
|
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4998
4949
|
styleInject(css_248z$H);
|
|
@@ -5776,14 +5727,14 @@ var client = createCommonjsModule(function (module, exports) {
|
|
|
5776
5727
|
|
|
5777
5728
|
|
|
5778
5729
|
if (process.env.NODE_ENV === 'production') {
|
|
5779
|
-
exports.createRoot =
|
|
5780
|
-
exports.hydrateRoot =
|
|
5730
|
+
exports.createRoot = reactDom.createRoot;
|
|
5731
|
+
exports.hydrateRoot = reactDom.hydrateRoot;
|
|
5781
5732
|
} else {
|
|
5782
|
-
var i =
|
|
5733
|
+
var i = reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5783
5734
|
exports.createRoot = function(c, o) {
|
|
5784
5735
|
i.usingClientEntryPoint = true;
|
|
5785
5736
|
try {
|
|
5786
|
-
return
|
|
5737
|
+
return reactDom.createRoot(c, o);
|
|
5787
5738
|
} finally {
|
|
5788
5739
|
i.usingClientEntryPoint = false;
|
|
5789
5740
|
}
|
|
@@ -5791,7 +5742,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
5791
5742
|
exports.hydrateRoot = function(c, h, o) {
|
|
5792
5743
|
i.usingClientEntryPoint = true;
|
|
5793
5744
|
try {
|
|
5794
|
-
return
|
|
5745
|
+
return reactDom.hydrateRoot(c, h, o);
|
|
5795
5746
|
} finally {
|
|
5796
5747
|
i.usingClientEntryPoint = false;
|
|
5797
5748
|
}
|
|
@@ -6303,11 +6254,11 @@ const Sidebar = (props) => {
|
|
|
6303
6254
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
6304
6255
|
navigate(e, `${itemPath}/${subItemPath}`);
|
|
6305
6256
|
};
|
|
6306
|
-
return (jsxRuntime.jsx("nav", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(List, { children: menuItems.map(item => (jsxRuntime.jsxs(
|
|
6257
|
+
return (jsxRuntime.jsx("nav", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(List, { children: menuItems.map(item => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e), children: [jsxRuntime.jsx(ListItemText, { primary: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item.label, item.items && item.items.length > 0 && (jsxRuntime.jsxs("small", { className: "ml-2", children: ["(", item.items.length, ")"] }))] }) }), item.items && item.items.length > 0 &&
|
|
6307
6258
|
jsxRuntime.jsx(ListItemAction, { children: item.isCollapsed ? jsxRuntime.jsx(ChevronDownSolidIcon, {}) : jsxRuntime.jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsxRuntime.jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsxRuntime.jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
|
|
6308
6259
|
};
|
|
6309
6260
|
|
|
6310
|
-
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(
|
|
6261
|
+
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6311
6262
|
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6312
6263
|
styleInject(css_248z$j);
|
|
6313
6264
|
|
|
@@ -6322,7 +6273,7 @@ const SkeletonAvatar = (props) => {
|
|
|
6322
6273
|
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6323
6274
|
};
|
|
6324
6275
|
|
|
6325
|
-
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(
|
|
6276
|
+
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6326
6277
|
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6327
6278
|
styleInject(css_248z$i);
|
|
6328
6279
|
|
|
@@ -6337,7 +6288,7 @@ const SkeletonText = (props) => {
|
|
|
6337
6288
|
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6338
6289
|
};
|
|
6339
6290
|
|
|
6340
|
-
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(
|
|
6291
|
+
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6341
6292
|
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6342
6293
|
styleInject(css_248z$h);
|
|
6343
6294
|
|
|
@@ -6352,7 +6303,7 @@ const SkeletonFooter = (props) => {
|
|
|
6352
6303
|
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6353
6304
|
};
|
|
6354
6305
|
|
|
6355
|
-
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(
|
|
6306
|
+
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6356
6307
|
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6357
6308
|
styleInject(css_248z$g);
|
|
6358
6309
|
|
|
@@ -6552,11 +6503,11 @@ const Dot = (props) => {
|
|
|
6552
6503
|
const Stepper = (props) => {
|
|
6553
6504
|
const { children, isLinear = true, showLabel = true, showProgressCheckIcon = false, value, isHorizontal = true, showDoneButton, showResetButton, showSteps = true, showDots, onChange, onFinish } = props;
|
|
6554
6505
|
const [steps, setSteps] = React.useState();
|
|
6555
|
-
const [activeIndex, setActiveIndex] =
|
|
6556
|
-
const [skipped, setSkipped] =
|
|
6506
|
+
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
6507
|
+
const [skipped, setSkipped] = React.useState(new Set());
|
|
6557
6508
|
React.useEffect(() => {
|
|
6558
6509
|
if (children) {
|
|
6559
|
-
setSteps(
|
|
6510
|
+
setSteps(React.Children.toArray(children));
|
|
6560
6511
|
}
|
|
6561
6512
|
}, [children]);
|
|
6562
6513
|
const prevActiveIndexRef = React.useRef(activeIndex);
|
|
@@ -6578,7 +6529,7 @@ const Stepper = (props) => {
|
|
|
6578
6529
|
setActiveIndex(index);
|
|
6579
6530
|
};
|
|
6580
6531
|
const renderSteps = (child, index) => {
|
|
6581
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children:
|
|
6532
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: React.isValidElement(child) &&
|
|
6582
6533
|
React.cloneElement(child, {
|
|
6583
6534
|
index: index,
|
|
6584
6535
|
isActive: activeIndex >= index,
|
|
@@ -6656,7 +6607,7 @@ const Wrapper = (props) => {
|
|
|
6656
6607
|
className && cssClasses.push(className);
|
|
6657
6608
|
return cssClasses.filter(css => css).join(' ');
|
|
6658
6609
|
};
|
|
6659
|
-
return
|
|
6610
|
+
return React.createElement(as, { ...rest, className: getCssClasses() }, children);
|
|
6660
6611
|
};
|
|
6661
6612
|
const Typography = ({ children, as = 'span', wrap, ...rest }) => {
|
|
6662
6613
|
return (jsxRuntime.jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
|
|
@@ -6791,7 +6742,7 @@ const Tabs = (props) => {
|
|
|
6791
6742
|
}, [value]);
|
|
6792
6743
|
React.useEffect(() => {
|
|
6793
6744
|
if (selectedValue && children) {
|
|
6794
|
-
|
|
6745
|
+
React.Children.toArray(children).forEach((child, index) => {
|
|
6795
6746
|
if (child.props.value === selectedValue) {
|
|
6796
6747
|
setSelectedIndex(index);
|
|
6797
6748
|
onChange && onChange(selectedValue);
|
|
@@ -6806,7 +6757,7 @@ const Tabs = (props) => {
|
|
|
6806
6757
|
return cssClasses.filter(css => css).join(' ');
|
|
6807
6758
|
};
|
|
6808
6759
|
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.light }, children: jsxRuntime.jsx(TabContext.Provider, { value: tabContext, children: jsxRuntime.jsxs("div", { className: getCssClasses(), children: [children, children &&
|
|
6809
|
-
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 /
|
|
6760
|
+
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })] }) }) }));
|
|
6810
6761
|
};
|
|
6811
6762
|
|
|
6812
6763
|
var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|