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.es.js
CHANGED
|
@@ -118,71 +118,6 @@ const AppBarTitle = (props) => {
|
|
|
118
118
|
return (jsx("div", { className: getCssClass(), onClick: onClick, children: children }));
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
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}";
|
|
122
|
-
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"};
|
|
123
|
-
styleInject(css_248z$13);
|
|
124
|
-
|
|
125
|
-
const Icon = (props) => {
|
|
126
|
-
const { children, iconColor, className, ...rest } = props;
|
|
127
|
-
const getCssClasses = () => {
|
|
128
|
-
const cssClasses = [];
|
|
129
|
-
cssClasses.push(styles$13.icon);
|
|
130
|
-
iconColor && cssClasses.push(styles$13[iconColor]);
|
|
131
|
-
className && cssClasses.push(className);
|
|
132
|
-
return cssClasses.filter(css => css).join(' ');
|
|
133
|
-
};
|
|
134
|
-
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
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}";
|
|
138
|
-
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"};
|
|
139
|
-
styleInject(css_248z$12);
|
|
140
|
-
|
|
141
|
-
const IconButton = (props) => {
|
|
142
|
-
const { children, icon, variant = VARIANT.text, color = COLOR.dark, size = SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
143
|
-
const getCssClasses = () => {
|
|
144
|
-
const cssClasses = [];
|
|
145
|
-
cssClasses.push(styles$12[color]);
|
|
146
|
-
cssClasses.push(styles$12[variant]);
|
|
147
|
-
cssClasses.push(styles$12[size]);
|
|
148
|
-
cssClasses.push(styles$12.iconButton);
|
|
149
|
-
isActive && cssClasses.push(styles$12.active);
|
|
150
|
-
disabled && cssClasses.push(styles$12.disabled);
|
|
151
|
-
shadow && cssClasses.push(styles$12.shadow);
|
|
152
|
-
className && cssClasses.push(className);
|
|
153
|
-
return cssClasses.filter(css => css).join(' ');
|
|
154
|
-
};
|
|
155
|
-
return (jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsx(Icon, { children: icon }), children] }));
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const CaretDownSolidIcon = () => (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: 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" }) }));
|
|
159
|
-
|
|
160
|
-
const CheckSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: 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" }) }));
|
|
161
|
-
|
|
162
|
-
const CheckSquareRegularIcon = () => (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: 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" }) }));
|
|
163
|
-
|
|
164
|
-
const ChevronDownSolidIcon = () => (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: 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" }) }));
|
|
165
|
-
|
|
166
|
-
const ChevronLeftSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: 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" }) }));
|
|
167
|
-
|
|
168
|
-
const ChevronRightSolidIcon = () => (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: 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" }) }));
|
|
169
|
-
|
|
170
|
-
const ChevronUpSolidIcon = () => (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: 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" }) }));
|
|
171
|
-
|
|
172
|
-
const CircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
173
|
-
|
|
174
|
-
const HomeSolidIcon = () => (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: 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" }) }));
|
|
175
|
-
|
|
176
|
-
const PlusSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: 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" }) }));
|
|
177
|
-
|
|
178
|
-
const SpinnerSolidIcon = () => (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: 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" }) }));
|
|
179
|
-
|
|
180
|
-
const SquareRegularIcon = () => (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: 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" }) }));
|
|
181
|
-
|
|
182
|
-
const TimesCircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: 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" }) }));
|
|
183
|
-
|
|
184
|
-
const TimesSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: 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" }) }));
|
|
185
|
-
|
|
186
121
|
const useConstructor = (callBack) => {
|
|
187
122
|
useEffect(() => {
|
|
188
123
|
callBack();
|
|
@@ -265,6 +200,34 @@ const useOnDestroy = (callBack) => {
|
|
|
265
200
|
}, []);
|
|
266
201
|
};
|
|
267
202
|
|
|
203
|
+
const CaretDownSolidIcon = () => (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: 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" }) }));
|
|
204
|
+
|
|
205
|
+
const CheckSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: 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" }) }));
|
|
206
|
+
|
|
207
|
+
const CheckSquareRegularIcon = () => (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: 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" }) }));
|
|
208
|
+
|
|
209
|
+
const ChevronDownSolidIcon = () => (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: 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" }) }));
|
|
210
|
+
|
|
211
|
+
const ChevronLeftSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: 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" }) }));
|
|
212
|
+
|
|
213
|
+
const ChevronRightSolidIcon = () => (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: 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" }) }));
|
|
214
|
+
|
|
215
|
+
const ChevronUpSolidIcon = () => (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: 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" }) }));
|
|
216
|
+
|
|
217
|
+
const CircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
218
|
+
|
|
219
|
+
const HomeSolidIcon = () => (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: 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" }) }));
|
|
220
|
+
|
|
221
|
+
const PlusSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: 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" }) }));
|
|
222
|
+
|
|
223
|
+
const SpinnerSolidIcon = () => (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: 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" }) }));
|
|
224
|
+
|
|
225
|
+
const SquareRegularIcon = () => (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: 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" }) }));
|
|
226
|
+
|
|
227
|
+
const TimesCircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: 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" }) }));
|
|
228
|
+
|
|
229
|
+
const TimesSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: 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" }) }));
|
|
230
|
+
|
|
268
231
|
const Portal$1 = ({ children, target = document.body, className }) => {
|
|
269
232
|
const containerEl = useMemo(() => document.createElement('div'), []);
|
|
270
233
|
useEffect(() => {
|
|
@@ -277,9 +240,9 @@ const Portal$1 = ({ children, target = document.body, className }) => {
|
|
|
277
240
|
return createPortal(children, containerEl);
|
|
278
241
|
};
|
|
279
242
|
|
|
280
|
-
var css_248z$
|
|
281
|
-
var styles$
|
|
282
|
-
styleInject(css_248z$
|
|
243
|
+
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}";
|
|
244
|
+
var styles$13 = {"backdrop":"Backdrop-module_backdrop__IRMoL","isTransparent":"Backdrop-module_isTransparent__F5nA5"};
|
|
245
|
+
styleInject(css_248z$13);
|
|
283
246
|
|
|
284
247
|
const Backdrop = (props) => {
|
|
285
248
|
const { target = document.body, isTransparent = false, onClick, style, ...rest } = props;
|
|
@@ -289,14 +252,51 @@ const Backdrop = (props) => {
|
|
|
289
252
|
};
|
|
290
253
|
const getCssClasses = () => {
|
|
291
254
|
const cssClasses = [];
|
|
292
|
-
cssClasses.push(styles$
|
|
293
|
-
isTransparent && cssClasses.push(styles$
|
|
255
|
+
cssClasses.push(styles$13.backdrop);
|
|
256
|
+
isTransparent && cssClasses.push(styles$13['isTransparent']);
|
|
294
257
|
return cssClasses.filter(css => css).join(' ');
|
|
295
258
|
};
|
|
296
259
|
const getStyles = () => {
|
|
297
260
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
298
261
|
};
|
|
299
|
-
return (jsx(Portal$1, { className:
|
|
262
|
+
return (jsx(Portal$1, { className: "backdrop-root", target: target, children: jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
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}";
|
|
266
|
+
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"};
|
|
267
|
+
styleInject(css_248z$12);
|
|
268
|
+
|
|
269
|
+
const Icon = (props) => {
|
|
270
|
+
const { children, iconColor, className, ...rest } = props;
|
|
271
|
+
const getCssClasses = () => {
|
|
272
|
+
const cssClasses = [];
|
|
273
|
+
cssClasses.push(styles$12.icon);
|
|
274
|
+
iconColor && cssClasses.push(styles$12[iconColor]);
|
|
275
|
+
className && cssClasses.push(className);
|
|
276
|
+
return cssClasses.filter(css => css).join(' ');
|
|
277
|
+
};
|
|
278
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
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}";
|
|
282
|
+
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"};
|
|
283
|
+
styleInject(css_248z$11);
|
|
284
|
+
|
|
285
|
+
const IconButton = (props) => {
|
|
286
|
+
const { children, icon, variant = VARIANT.text, color = COLOR.dark, size = SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
287
|
+
const getCssClasses = () => {
|
|
288
|
+
const cssClasses = [];
|
|
289
|
+
cssClasses.push(styles$11[color]);
|
|
290
|
+
cssClasses.push(styles$11[variant]);
|
|
291
|
+
cssClasses.push(styles$11[size]);
|
|
292
|
+
cssClasses.push(styles$11.iconButton);
|
|
293
|
+
isActive && cssClasses.push(styles$11.active);
|
|
294
|
+
disabled && cssClasses.push(styles$11.disabled);
|
|
295
|
+
shadow && cssClasses.push(styles$11.shadow);
|
|
296
|
+
className && cssClasses.push(className);
|
|
297
|
+
return cssClasses.filter(css => css).join(' ');
|
|
298
|
+
};
|
|
299
|
+
return (jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsx(Icon, { children: icon }), children] }));
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
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}";
|
|
@@ -380,7 +380,7 @@ styleInject(css_248z$W);
|
|
|
380
380
|
// multiple
|
|
381
381
|
// custom template render items
|
|
382
382
|
const AutoComplete = (props) => {
|
|
383
|
-
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value } = props;
|
|
383
|
+
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value, } = props;
|
|
384
384
|
const [model, setModel] = useState('');
|
|
385
385
|
const [searchText, setSearchText] = useState('');
|
|
386
386
|
const [isShow, setIsShow] = useState(false);
|
|
@@ -444,9 +444,8 @@ const AutoComplete = (props) => {
|
|
|
444
444
|
setModel('');
|
|
445
445
|
setSearchText('');
|
|
446
446
|
};
|
|
447
|
-
return (jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxs("div", { className: "d-flex", children: [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 &&
|
|
448
|
-
|
|
449
|
-
jsxs(Fragment$1, { children: [jsx("div", { className: styles$W.selectMenu, children: jsx(List, { children: _options && _options.map((option, index) => jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
|
|
447
|
+
return (jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxs("div", { className: "d-flex", children: [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 && jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow && (jsxs(Fragment$1, { children: [jsx("div", { className: styles$W.selectMenu, children: jsx(List, { children: _options &&
|
|
448
|
+
_options.map((option, index) => (jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value))) }) }), jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] }))] }));
|
|
450
449
|
};
|
|
451
450
|
|
|
452
451
|
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}";
|
|
@@ -455,19 +454,12 @@ styleInject(css_248z$V);
|
|
|
455
454
|
|
|
456
455
|
const Badge = (props) => {
|
|
457
456
|
const { children, content, className, color = COLOR.primary, ...rest } = props;
|
|
458
|
-
const [cssClassName] = useCssClasses([
|
|
459
|
-
styles$V.badge,
|
|
460
|
-
styles$V[color],
|
|
461
|
-
className
|
|
462
|
-
]);
|
|
457
|
+
const [cssClassName] = useCssClasses([styles$V.badge, styles$V[color], className]);
|
|
463
458
|
return (jsxs(BadgeContainer, { children: [children, jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
464
459
|
};
|
|
465
460
|
const BadgeContainer = (props) => {
|
|
466
461
|
const { children, className, ...rest } = props;
|
|
467
|
-
const [cssClassName] = useCssClasses([
|
|
468
|
-
styles$V.badgeContainer,
|
|
469
|
-
className,
|
|
470
|
-
]);
|
|
462
|
+
const [cssClassName] = useCssClasses([styles$V.badgeContainer, className]);
|
|
471
463
|
return (jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
472
464
|
};
|
|
473
465
|
|
|
@@ -1172,20 +1164,16 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
1172
1164
|
* LICENSE file in the root directory of this source tree.
|
|
1173
1165
|
*/
|
|
1174
1166
|
|
|
1175
|
-
var ReactPropTypesSecret$
|
|
1176
|
-
|
|
1177
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
1167
|
+
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1178
1168
|
|
|
1179
|
-
var
|
|
1169
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
1180
1170
|
|
|
1181
|
-
var
|
|
1182
|
-
|
|
1183
|
-
var has$1 = has$2;
|
|
1171
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1184
1172
|
|
|
1185
1173
|
var printWarning$1 = function() {};
|
|
1186
1174
|
|
|
1187
1175
|
if (process.env.NODE_ENV !== 'production') {
|
|
1188
|
-
var ReactPropTypesSecret =
|
|
1176
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1189
1177
|
var loggedTypeFailures = {};
|
|
1190
1178
|
var has = has$1;
|
|
1191
1179
|
|
|
@@ -1214,7 +1202,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1214
1202
|
* @param {?Function} getStack Returns the component stack.
|
|
1215
1203
|
* @private
|
|
1216
1204
|
*/
|
|
1217
|
-
function checkPropTypes
|
|
1205
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
1218
1206
|
if (process.env.NODE_ENV !== 'production') {
|
|
1219
1207
|
for (var typeSpecName in typeSpecs) {
|
|
1220
1208
|
if (has(typeSpecs, typeSpecName)) {
|
|
@@ -1269,15 +1257,13 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
1269
1257
|
*
|
|
1270
1258
|
* @private
|
|
1271
1259
|
*/
|
|
1272
|
-
checkPropTypes
|
|
1260
|
+
checkPropTypes.resetWarningCache = function() {
|
|
1273
1261
|
if (process.env.NODE_ENV !== 'production') {
|
|
1274
1262
|
loggedTypeFailures = {};
|
|
1275
1263
|
}
|
|
1276
1264
|
};
|
|
1277
1265
|
|
|
1278
|
-
var checkPropTypes_1 = checkPropTypes
|
|
1279
|
-
|
|
1280
|
-
var checkPropTypes = checkPropTypes_1;
|
|
1266
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
1281
1267
|
|
|
1282
1268
|
var printWarning = function() {};
|
|
1283
1269
|
|
|
@@ -1442,7 +1428,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1442
1428
|
componentName = componentName || ANONYMOUS;
|
|
1443
1429
|
propFullName = propFullName || propName;
|
|
1444
1430
|
|
|
1445
|
-
if (secret !==
|
|
1431
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
1446
1432
|
if (throwOnDirectAccess) {
|
|
1447
1433
|
// New behavior only for users of `prop-types` package
|
|
1448
1434
|
var err = new Error(
|
|
@@ -1526,7 +1512,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1526
1512
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
1527
1513
|
}
|
|
1528
1514
|
for (var i = 0; i < propValue.length; i++) {
|
|
1529
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']',
|
|
1515
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
1530
1516
|
if (error instanceof Error) {
|
|
1531
1517
|
return error;
|
|
1532
1518
|
}
|
|
@@ -1619,7 +1605,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1619
1605
|
}
|
|
1620
1606
|
for (var key in propValue) {
|
|
1621
1607
|
if (has$1(propValue, key)) {
|
|
1622
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1608
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1623
1609
|
if (error instanceof Error) {
|
|
1624
1610
|
return error;
|
|
1625
1611
|
}
|
|
@@ -1651,7 +1637,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1651
1637
|
var expectedTypes = [];
|
|
1652
1638
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1653
1639
|
var checker = arrayOfTypeCheckers[i];
|
|
1654
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName,
|
|
1640
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
1655
1641
|
if (checkerResult == null) {
|
|
1656
1642
|
return null;
|
|
1657
1643
|
}
|
|
@@ -1694,7 +1680,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1694
1680
|
if (typeof checker !== 'function') {
|
|
1695
1681
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1696
1682
|
}
|
|
1697
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1683
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1698
1684
|
if (error) {
|
|
1699
1685
|
return error;
|
|
1700
1686
|
}
|
|
@@ -1725,7 +1711,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1725
1711
|
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1726
1712
|
);
|
|
1727
1713
|
}
|
|
1728
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1714
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1729
1715
|
if (error) {
|
|
1730
1716
|
return error;
|
|
1731
1717
|
}
|
|
@@ -1867,8 +1853,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1867
1853
|
return propValue.constructor.name;
|
|
1868
1854
|
}
|
|
1869
1855
|
|
|
1870
|
-
ReactPropTypes.checkPropTypes =
|
|
1871
|
-
ReactPropTypes.resetWarningCache =
|
|
1856
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
1857
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
1872
1858
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1873
1859
|
|
|
1874
1860
|
return ReactPropTypes;
|
|
@@ -1880,7 +1866,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
|
1880
1866
|
|
|
1881
1867
|
var factoryWithThrowingShims = function() {
|
|
1882
1868
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1883
|
-
if (secret ===
|
|
1869
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
1884
1870
|
// It is still safe when called from React.
|
|
1885
1871
|
return;
|
|
1886
1872
|
}
|
|
@@ -1927,10 +1913,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1927
1913
|
return ReactPropTypes;
|
|
1928
1914
|
};
|
|
1929
1915
|
|
|
1930
|
-
var require$$1 = factoryWithTypeCheckers;
|
|
1931
|
-
|
|
1932
|
-
var require$$2 = factoryWithThrowingShims;
|
|
1933
|
-
|
|
1934
1916
|
var propTypes = createCommonjsModule(function (module) {
|
|
1935
1917
|
/**
|
|
1936
1918
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1945,11 +1927,11 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1945
1927
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1946
1928
|
// http://fb.me/prop-types-in-prod
|
|
1947
1929
|
var throwOnDirectAccess = true;
|
|
1948
|
-
module.exports =
|
|
1930
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1949
1931
|
} else {
|
|
1950
1932
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1951
1933
|
// http://fb.me/prop-types-in-prod
|
|
1952
|
-
module.exports =
|
|
1934
|
+
module.exports = factoryWithThrowingShims();
|
|
1953
1935
|
}
|
|
1954
1936
|
});
|
|
1955
1937
|
|
|
@@ -2634,6 +2616,8 @@ function isObject(value) {
|
|
|
2634
2616
|
|
|
2635
2617
|
var lodash_memoize = memoize;
|
|
2636
2618
|
|
|
2619
|
+
var memoize$1 = lodash_memoize;
|
|
2620
|
+
|
|
2637
2621
|
function resolver(options) {
|
|
2638
2622
|
return JSON.stringify(options);
|
|
2639
2623
|
}
|
|
@@ -2677,212 +2661,188 @@ function getUserLocalesInternal(_temp) {
|
|
|
2677
2661
|
return normalizeLocales(uniqDefined(languageList));
|
|
2678
2662
|
}
|
|
2679
2663
|
|
|
2680
|
-
var getUserLocales =
|
|
2664
|
+
var getUserLocales = memoize$1(getUserLocalesInternal, resolver);
|
|
2681
2665
|
|
|
2682
2666
|
function getUserLocaleInternal(options) {
|
|
2683
2667
|
return getUserLocales(options)[0] || null;
|
|
2684
2668
|
}
|
|
2685
2669
|
|
|
2686
|
-
var getUserLocale =
|
|
2670
|
+
var getUserLocale = memoize$1(getUserLocaleInternal, resolver);
|
|
2687
2671
|
|
|
2688
2672
|
/**
|
|
2689
2673
|
* Utils
|
|
2690
2674
|
*/
|
|
2691
2675
|
function makeGetEdgeOfNeighbor(getPeriod, getEdgeOfPeriod, defaultOffset) {
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2676
|
+
return function makeGetEdgeOfNeighborInternal(date, offset) {
|
|
2677
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2678
|
+
var previousPeriod = getPeriod(date) + offset;
|
|
2679
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2680
|
+
};
|
|
2697
2681
|
}
|
|
2698
|
-
|
|
2699
2682
|
function makeGetEnd(getBeginOfNextPeriod) {
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2683
|
+
return function makeGetEndInternal(date) {
|
|
2684
|
+
return new Date(getBeginOfNextPeriod(date).getTime() - 1);
|
|
2685
|
+
};
|
|
2703
2686
|
}
|
|
2704
|
-
|
|
2705
|
-
function
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
return fn(date);
|
|
2709
|
-
});
|
|
2710
|
-
};
|
|
2687
|
+
function makeGetRange(getStart, getEnd) {
|
|
2688
|
+
return function makeGetRangeInternal(date) {
|
|
2689
|
+
return [getStart(date), getEnd(date)];
|
|
2690
|
+
};
|
|
2711
2691
|
}
|
|
2712
2692
|
/**
|
|
2713
2693
|
* Simple getters - getting a property of a given point in time
|
|
2714
2694
|
*/
|
|
2715
|
-
|
|
2716
2695
|
/**
|
|
2717
2696
|
* Gets year from date.
|
|
2718
2697
|
*
|
|
2719
2698
|
* @param {Date|number|string} date Date to get year from.
|
|
2720
2699
|
*/
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
2700
|
function getYear(date) {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
return year;
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2701
|
+
if (date instanceof Date) {
|
|
2702
|
+
return date.getFullYear();
|
|
2703
|
+
}
|
|
2704
|
+
if (typeof date === 'number') {
|
|
2705
|
+
return date;
|
|
2706
|
+
}
|
|
2707
|
+
var year = parseInt(date, 10);
|
|
2708
|
+
if (typeof date === 'string' && !isNaN(year)) {
|
|
2709
|
+
return year;
|
|
2710
|
+
}
|
|
2711
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2739
2712
|
}
|
|
2740
2713
|
/**
|
|
2741
2714
|
* Gets month from date.
|
|
2742
2715
|
*
|
|
2743
2716
|
* @param {Date} date Date to get month from.
|
|
2744
2717
|
*/
|
|
2745
|
-
|
|
2746
2718
|
function getMonth(date) {
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
2719
|
+
if (date instanceof Date) {
|
|
2720
|
+
return date.getMonth();
|
|
2721
|
+
}
|
|
2722
|
+
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
2752
2723
|
}
|
|
2753
2724
|
/**
|
|
2754
2725
|
* Gets human-readable day of the month from date.
|
|
2755
2726
|
*
|
|
2756
2727
|
* @param {Date} date Date to get day of the month from.
|
|
2757
2728
|
*/
|
|
2758
|
-
|
|
2759
2729
|
function getDate(date) {
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2730
|
+
if (date instanceof Date) {
|
|
2731
|
+
return date.getDate();
|
|
2732
|
+
}
|
|
2733
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2765
2734
|
}
|
|
2766
2735
|
/**
|
|
2767
2736
|
* Century
|
|
2768
2737
|
*/
|
|
2769
|
-
|
|
2770
2738
|
function getCenturyStart(date) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2739
|
+
var year = getYear(date);
|
|
2740
|
+
var centuryStartYear = year + ((-year + 1) % 100);
|
|
2741
|
+
var centuryStartDate = new Date();
|
|
2742
|
+
centuryStartDate.setFullYear(centuryStartYear, 0, 1);
|
|
2743
|
+
centuryStartDate.setHours(0, 0, 0, 0);
|
|
2744
|
+
return centuryStartDate;
|
|
2777
2745
|
}
|
|
2778
2746
|
var getPreviousCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, -100);
|
|
2779
2747
|
var getNextCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, 100);
|
|
2780
2748
|
var getCenturyEnd = makeGetEnd(getNextCenturyStart);
|
|
2781
2749
|
var getPreviousCenturyEnd = makeGetEdgeOfNeighbor(getYear, getCenturyEnd, -100);
|
|
2782
|
-
var getCenturyRange = makeGetRange(
|
|
2750
|
+
var getCenturyRange = makeGetRange(getCenturyStart, getCenturyEnd);
|
|
2783
2751
|
/**
|
|
2784
2752
|
* Decade
|
|
2785
2753
|
*/
|
|
2786
|
-
|
|
2787
2754
|
function getDecadeStart(date) {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2755
|
+
var year = getYear(date);
|
|
2756
|
+
var decadeStartYear = year + ((-year + 1) % 10);
|
|
2757
|
+
var decadeStartDate = new Date();
|
|
2758
|
+
decadeStartDate.setFullYear(decadeStartYear, 0, 1);
|
|
2759
|
+
decadeStartDate.setHours(0, 0, 0, 0);
|
|
2760
|
+
return decadeStartDate;
|
|
2794
2761
|
}
|
|
2795
2762
|
var getPreviousDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, -10);
|
|
2796
2763
|
var getNextDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, 10);
|
|
2797
2764
|
var getDecadeEnd = makeGetEnd(getNextDecadeStart);
|
|
2798
2765
|
var getPreviousDecadeEnd = makeGetEdgeOfNeighbor(getYear, getDecadeEnd, -10);
|
|
2799
|
-
var getDecadeRange = makeGetRange(
|
|
2766
|
+
var getDecadeRange = makeGetRange(getDecadeStart, getDecadeEnd);
|
|
2800
2767
|
/**
|
|
2801
2768
|
* Year
|
|
2802
2769
|
*/
|
|
2803
|
-
|
|
2804
2770
|
function getYearStart(date) {
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2771
|
+
var year = getYear(date);
|
|
2772
|
+
var yearStartDate = new Date();
|
|
2773
|
+
yearStartDate.setFullYear(year, 0, 1);
|
|
2774
|
+
yearStartDate.setHours(0, 0, 0, 0);
|
|
2775
|
+
return yearStartDate;
|
|
2810
2776
|
}
|
|
2811
2777
|
var getPreviousYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, -1);
|
|
2812
2778
|
var getNextYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, 1);
|
|
2813
2779
|
var getYearEnd = makeGetEnd(getNextYearStart);
|
|
2814
2780
|
var getPreviousYearEnd = makeGetEdgeOfNeighbor(getYear, getYearEnd, -1);
|
|
2815
|
-
var getYearRange = makeGetRange(
|
|
2781
|
+
var getYearRange = makeGetRange(getYearStart, getYearEnd);
|
|
2816
2782
|
/**
|
|
2817
2783
|
* Month
|
|
2818
2784
|
*/
|
|
2819
|
-
|
|
2820
2785
|
function makeGetEdgeOfNeighborMonth(getEdgeOfPeriod, defaultOffset) {
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2786
|
+
return function makeGetEdgeOfNeighborMonthInternal(date, offset) {
|
|
2787
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2788
|
+
var year = getYear(date);
|
|
2789
|
+
var month = getMonth(date) + offset;
|
|
2790
|
+
var previousPeriod = new Date();
|
|
2791
|
+
previousPeriod.setFullYear(year, month, 1);
|
|
2792
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2793
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2794
|
+
};
|
|
2830
2795
|
}
|
|
2831
|
-
|
|
2832
2796
|
function getMonthStart(date) {
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2797
|
+
var year = getYear(date);
|
|
2798
|
+
var month = getMonth(date);
|
|
2799
|
+
var monthStartDate = new Date();
|
|
2800
|
+
monthStartDate.setFullYear(year, month, 1);
|
|
2801
|
+
monthStartDate.setHours(0, 0, 0, 0);
|
|
2802
|
+
return monthStartDate;
|
|
2839
2803
|
}
|
|
2840
2804
|
var getPreviousMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, -1);
|
|
2841
2805
|
var getNextMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, 1);
|
|
2842
2806
|
var getMonthEnd = makeGetEnd(getNextMonthStart);
|
|
2843
2807
|
var getPreviousMonthEnd = makeGetEdgeOfNeighborMonth(getMonthEnd, -1);
|
|
2844
|
-
var getMonthRange = makeGetRange(
|
|
2808
|
+
var getMonthRange = makeGetRange(getMonthStart, getMonthEnd);
|
|
2845
2809
|
/**
|
|
2846
2810
|
* Day
|
|
2847
2811
|
*/
|
|
2848
|
-
|
|
2849
2812
|
function makeGetEdgeOfNeighborDay(getEdgeOfPeriod, defaultOffset) {
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2813
|
+
return function makeGetEdgeOfNeighborDayInternal(date, offset) {
|
|
2814
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2815
|
+
var year = getYear(date);
|
|
2816
|
+
var month = getMonth(date);
|
|
2817
|
+
var day = getDate(date) + offset;
|
|
2818
|
+
var previousPeriod = new Date();
|
|
2819
|
+
previousPeriod.setFullYear(year, month, day);
|
|
2820
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2821
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2822
|
+
};
|
|
2860
2823
|
}
|
|
2861
|
-
|
|
2862
2824
|
function getDayStart(date) {
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2825
|
+
var year = getYear(date);
|
|
2826
|
+
var month = getMonth(date);
|
|
2827
|
+
var day = getDate(date);
|
|
2828
|
+
var dayStartDate = new Date();
|
|
2829
|
+
dayStartDate.setFullYear(year, month, day);
|
|
2830
|
+
dayStartDate.setHours(0, 0, 0, 0);
|
|
2831
|
+
return dayStartDate;
|
|
2870
2832
|
}
|
|
2871
2833
|
var getNextDayStart = makeGetEdgeOfNeighborDay(getDayStart, 1);
|
|
2872
2834
|
var getDayEnd = makeGetEnd(getNextDayStart);
|
|
2873
|
-
var getDayRange = makeGetRange(
|
|
2835
|
+
var getDayRange = makeGetRange(getDayStart, getDayEnd);
|
|
2874
2836
|
/**
|
|
2875
2837
|
* Other
|
|
2876
2838
|
*/
|
|
2877
|
-
|
|
2878
2839
|
/**
|
|
2879
2840
|
* Returns a number of days in a month of a given date.
|
|
2880
2841
|
*
|
|
2881
2842
|
* @param {Date} date Date.
|
|
2882
2843
|
*/
|
|
2883
|
-
|
|
2884
2844
|
function getDaysInMonth(date) {
|
|
2885
|
-
|
|
2845
|
+
return getDate(getMonthEnd(date));
|
|
2886
2846
|
}
|
|
2887
2847
|
|
|
2888
2848
|
var _CALENDAR_TYPE_LOCALE;
|
|
@@ -4461,7 +4421,7 @@ function getInitialActiveStartDate(props) {
|
|
|
4461
4421
|
var getIsSingleValue = function getIsSingleValue(value) {
|
|
4462
4422
|
return value && [].concat(value).length === 1;
|
|
4463
4423
|
};
|
|
4464
|
-
var Calendar
|
|
4424
|
+
var Calendar = /*#__PURE__*/function (_Component) {
|
|
4465
4425
|
_inherits(Calendar, _Component);
|
|
4466
4426
|
var _super = _createSuper(Calendar);
|
|
4467
4427
|
function Calendar() {
|
|
@@ -4913,7 +4873,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4913
4873
|
}]);
|
|
4914
4874
|
return Calendar;
|
|
4915
4875
|
}(Component);
|
|
4916
|
-
Calendar
|
|
4876
|
+
Calendar.defaultProps = {
|
|
4917
4877
|
goToRangeStartOnSelect: true,
|
|
4918
4878
|
maxDate: defaultMaxDate,
|
|
4919
4879
|
maxDetail: 'month',
|
|
@@ -4925,7 +4885,7 @@ Calendar$1.defaultProps = {
|
|
|
4925
4885
|
};
|
|
4926
4886
|
var isActiveStartDate = PropTypes.instanceOf(Date);
|
|
4927
4887
|
var isLooseValue = PropTypes.oneOfType([PropTypes.string, isValue]);
|
|
4928
|
-
Calendar
|
|
4888
|
+
Calendar.propTypes = {
|
|
4929
4889
|
activeStartDate: isActiveStartDate,
|
|
4930
4890
|
allowPartialRange: PropTypes.bool,
|
|
4931
4891
|
calendarType: isCalendarType,
|
|
@@ -4982,8 +4942,6 @@ Calendar$1.propTypes = {
|
|
|
4982
4942
|
view: isView
|
|
4983
4943
|
};
|
|
4984
4944
|
|
|
4985
|
-
var Calendar = Calendar$1;
|
|
4986
|
-
|
|
4987
4945
|
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4988
4946
|
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4989
4947
|
styleInject(css_248z$H);
|
|
@@ -6298,7 +6256,7 @@ const Sidebar = (props) => {
|
|
|
6298
6256
|
jsx(ListItemAction, { children: item.isCollapsed ? jsx(ChevronDownSolidIcon, {}) : jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsx(List, { className: "list-level-1", children: item.items.map(subItem => (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))) }) }));
|
|
6299
6257
|
};
|
|
6300
6258
|
|
|
6301
|
-
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(
|
|
6259
|
+
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}";
|
|
6302
6260
|
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6303
6261
|
styleInject(css_248z$j);
|
|
6304
6262
|
|
|
@@ -6313,7 +6271,7 @@ const SkeletonAvatar = (props) => {
|
|
|
6313
6271
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6314
6272
|
};
|
|
6315
6273
|
|
|
6316
|
-
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(
|
|
6274
|
+
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}";
|
|
6317
6275
|
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6318
6276
|
styleInject(css_248z$i);
|
|
6319
6277
|
|
|
@@ -6328,7 +6286,7 @@ const SkeletonText = (props) => {
|
|
|
6328
6286
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6329
6287
|
};
|
|
6330
6288
|
|
|
6331
|
-
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(
|
|
6289
|
+
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}";
|
|
6332
6290
|
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6333
6291
|
styleInject(css_248z$h);
|
|
6334
6292
|
|
|
@@ -6343,7 +6301,7 @@ const SkeletonFooter = (props) => {
|
|
|
6343
6301
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6344
6302
|
};
|
|
6345
6303
|
|
|
6346
|
-
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(
|
|
6304
|
+
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}";
|
|
6347
6305
|
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6348
6306
|
styleInject(css_248z$g);
|
|
6349
6307
|
|