react-asc 18.9.6 → 19.0.3
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/components/AutoComplete/AutoComplete.d.ts +0 -1
- package/components/Badge/Badge.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.d.ts +2 -5
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -3
- package/components/Card/CardBody.d.ts +1 -4
- package/components/Card/CardFooter.d.ts +1 -4
- package/components/Card/CardImage.d.ts +1 -4
- package/components/Card/CardSubtitle.d.ts +1 -4
- package/components/Card/CardText.d.ts +1 -4
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/Chip/Chip.d.ts +1 -1
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +3 -3
- package/components/Drawer/Drawer.d.ts +3 -4
- package/components/FloatingActionButton/FloatingActionButton.d.ts +1 -1
- package/components/Form/Form.d.ts +1 -1
- package/components/Form/FormHint/FormHint.d.ts +1 -4
- package/components/Form/FormInput/FormInput.d.ts +4 -4
- package/components/Form/FormLabel/FormLabel.d.ts +2 -4
- package/components/Form/form.interfaces.d.ts +1 -1
- package/components/Form/form.models.d.ts +2 -2
- package/components/Form/validators/IsEmptyValidator.d.ts +1 -1
- package/components/Form/validators/IsEqualValidator.d.ts +1 -1
- package/components/List/list.models.d.ts +2 -2
- package/components/LoadingIndicator/LoadingIndicator.d.ts +0 -2
- package/components/LoadingIndicator/loading-indicator.service.d.ts +2 -4
- package/components/Menu/Menu.d.ts +0 -1
- package/components/Menu/MenuBody.d.ts +1 -1
- package/components/Modal/GlobalModal.d.ts +1 -1
- package/components/Modal/Modal.d.ts +3 -3
- package/components/Modal/ModalHeader.d.ts +3 -4
- package/components/Modal/modal.service.d.ts +1 -1
- package/components/Select/Select.d.ts +2 -2
- package/components/SpeedDial/SpeedDialActions.d.ts +2 -6
- package/components/Stepper/Step/Step.d.ts +5 -2
- package/components/Tabs/Tab.d.ts +5 -2
- package/components/Tabs/TabIndicator.d.ts +2 -2
- package/components/Tabs/TabPanel.d.ts +0 -1
- package/components/Tabs/Tabs.d.ts +6 -2
- package/components/Tooltip/Tooltip.d.ts +2 -3
- package/components/TreeView/TreeItem.d.ts +6 -5
- package/hooks/useConstructor.d.ts +1 -1
- package/hooks/useDebounce.d.ts +2 -1
- package/hooks/useHover.d.ts +2 -2
- package/{assets/icons → icons}/CaretDownSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/CheckSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/CheckSquareRegularIcon.d.ts +0 -0
- package/{assets/icons → icons}/ChevronDownSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/ChevronLeftSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/ChevronRightSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/ChevronUpSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/CircleSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/HomeSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/PlusSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/SpinnerSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/SquareRegularIcon.d.ts +0 -0
- package/{assets/icons → icons}/TimesCircleSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/TimesSolidIcon.d.ts +0 -0
- package/{assets/icons → icons}/index.d.ts +0 -0
- package/index.d.ts +1 -1
- package/index.es.js +383 -377
- package/index.js +382 -376
- package/package.json +1 -1
- package/react-asc.scss +52 -52
- package/index.es.js.map +0 -1
- package/index.js.map +0 -1
package/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, useEffect, useRef, Fragment, Component, createRef, cloneElement } from 'react';
|
|
2
2
|
import { createPortal, render, unmountComponentAtNode } from 'react-dom';
|
|
3
3
|
import { createPopper } from '@popperjs/core';
|
|
4
4
|
|
|
@@ -87,8 +87,8 @@ function styleInject(css, ref) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
var css_248z$V = ".Alert-
|
|
91
|
-
var styles$V = {"alert":"Alert-
|
|
90
|
+
var css_248z$V = ".Alert-module_alert__b4tbk {\n border-radius: var(--borderRadius);\n padding: 6px 16px; }\n\n.Alert-module_contained__EM0x6.Alert-module_primary__q4pNj {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n\n.Alert-module_contained__EM0x6.Alert-module_accent__a2WIl {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n\n.Alert-module_contained__EM0x6.Alert-module_secondary__syXKX {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n\n.Alert-module_contained__EM0x6.Alert-module_light__VKCXF {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n\n.Alert-module_contained__EM0x6.Alert-module_dark__3c-Hm {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n\n.Alert-module_outline__T2262.Alert-module_primary__q4pNj {\n color: var(--primary) !important;\n border: 1px solid var(--primary) !important; }\n\n.Alert-module_outline__T2262.Alert-module_secondary__syXKX {\n color: var(--secondary) !important;\n border: 1px solid var(--secondary) !important; }\n\n.Alert-module_outline__T2262.Alert-module_accent__a2WIl {\n color: var(--accent) !important;\n border: 1px solid var(--accent) !important; }\n\n.Alert-module_outline__T2262.Alert-module_light__VKCXF {\n color: var(--light-contrast-text) !important;\n border: 1px solid var(--light) !important; }\n\n.Alert-module_outline__T2262.Alert-module_dark__3c-Hm {\n color: var(--dark) !important;\n border: 1px solid var(--dark) !important; }\n";
|
|
91
|
+
var styles$V = {"alert":"Alert-module_alert__b4tbk","contained":"Alert-module_contained__EM0x6","primary":"Alert-module_primary__q4pNj","accent":"Alert-module_accent__a2WIl","secondary":"Alert-module_secondary__syXKX","light":"Alert-module_light__VKCXF","dark":"Alert-module_dark__3c-Hm","outline":"Alert-module_outline__T2262"};
|
|
92
92
|
styleInject(css_248z$V);
|
|
93
93
|
|
|
94
94
|
const Alert = (props) => {
|
|
@@ -111,8 +111,8 @@ const Alert = (props) => {
|
|
|
111
111
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
var css_248z$U = ".AppBar-
|
|
115
|
-
var styles$U = {"appbar":"AppBar-
|
|
114
|
+
var css_248z$U = ".AppBar-module_appbar__Neyh3 {\n padding: 0.5rem 1rem;\n display: flex;\n z-index: 1000;\n min-height: 64px;\n flex-shrink: 0; }\n .AppBar-module_appbar__Neyh3.AppBar-module_primary__xMqXD {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .AppBar-module_appbar__Neyh3.AppBar-module_secondary__8MkLA {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .AppBar-module_appbar__Neyh3.AppBar-module_accent__vHbkp {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .AppBar-module_appbar__Neyh3.AppBar-module_light__HGy3y {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .AppBar-module_appbar__Neyh3.AppBar-module_dark__ILq96 {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .AppBar-module_appbar__Neyh3.AppBar-module_shadow__gQN8s {\n box-shadow: var(--shadow); }\n";
|
|
115
|
+
var styles$U = {"appbar":"AppBar-module_appbar__Neyh3","primary":"AppBar-module_primary__xMqXD","secondary":"AppBar-module_secondary__8MkLA","accent":"AppBar-module_accent__vHbkp","light":"AppBar-module_light__HGy3y","dark":"AppBar-module_dark__ILq96","shadow":"AppBar-module_shadow__gQN8s"};
|
|
116
116
|
styleInject(css_248z$U);
|
|
117
117
|
|
|
118
118
|
const AppBar = (props) => {
|
|
@@ -128,8 +128,8 @@ const AppBar = (props) => {
|
|
|
128
128
|
return (React.createElement("nav", Object.assign({ className: getCssClasses() }, rest), children));
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
var css_248z$T = ".AppBarTitle-
|
|
132
|
-
var styles$T = {"appbarTitle":"AppBarTitle-
|
|
131
|
+
var css_248z$T = ".AppBarTitle-module_appbarTitle__RsFg5 {\n align-items: center;\n padding-top: 0.3125rem;\n padding-bottom: 0.3125rem;\n font-size: 1.25rem;\n line-height: 1.8;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden !important;\n display: inline-block; }\n .AppBarTitle-module_appbarTitle__RsFg5:hover {\n cursor: pointer; }\n";
|
|
132
|
+
var styles$T = {"appbarTitle":"AppBarTitle-module_appbarTitle__RsFg5"};
|
|
133
133
|
styleInject(css_248z$T);
|
|
134
134
|
|
|
135
135
|
const AppBarTitle = (props) => {
|
|
@@ -143,6 +143,141 @@ const AppBarTitle = (props) => {
|
|
|
143
143
|
return (React.createElement("div", { className: getCssClass(), onClick: onClick }, children));
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
+
var css_248z$S = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px; }\n .Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit; }\n .Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary); }\n .Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent); }\n .Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary); }\n .Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light); }\n .Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark); }\n";
|
|
147
|
+
var styles$S = {"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"};
|
|
148
|
+
styleInject(css_248z$S);
|
|
149
|
+
|
|
150
|
+
const Icon = (props) => {
|
|
151
|
+
const { children, iconColor, className } = props, rest = __rest(props, ["children", "iconColor", "className"]);
|
|
152
|
+
const getCssClasses = () => {
|
|
153
|
+
const cssClasses = [];
|
|
154
|
+
cssClasses.push(styles$S.icon);
|
|
155
|
+
iconColor && cssClasses.push(styles$S[iconColor]);
|
|
156
|
+
className && cssClasses.push(className);
|
|
157
|
+
return cssClasses.filter(css => css).join(' ');
|
|
158
|
+
};
|
|
159
|
+
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
var css_248z$R = ".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 .IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer; }\n .IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow); }\n .IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px; }\n .IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px; }\n .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit; }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark); }\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 .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 .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 .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark); }\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 .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white); }\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 .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";
|
|
163
|
+
var styles$R = {"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"};
|
|
164
|
+
styleInject(css_248z$R);
|
|
165
|
+
|
|
166
|
+
const IconButton = (props) => {
|
|
167
|
+
const { children, icon, variant = VARIANT.text, color = COLOR.dark, size = SIZE.md, isActive, disabled, className, shadow } = props, rest = __rest(props, ["children", "icon", "variant", "color", "size", "isActive", "disabled", "className", "shadow"]);
|
|
168
|
+
const getCssClasses = () => {
|
|
169
|
+
const cssClasses = [];
|
|
170
|
+
cssClasses.push(styles$R[color]);
|
|
171
|
+
cssClasses.push(styles$R[variant]);
|
|
172
|
+
cssClasses.push(styles$R[size]);
|
|
173
|
+
cssClasses.push(styles$R.iconButton);
|
|
174
|
+
isActive && cssClasses.push(styles$R.active);
|
|
175
|
+
disabled && cssClasses.push(styles$R.disabled);
|
|
176
|
+
shadow && cssClasses.push(styles$R.shadow);
|
|
177
|
+
className && cssClasses.push(className);
|
|
178
|
+
return cssClasses.filter(css => css).join(' ');
|
|
179
|
+
};
|
|
180
|
+
return (React.createElement("button", Object.assign({ type: "button", className: getCssClasses(), disabled: disabled }, rest),
|
|
181
|
+
icon && React.createElement(Icon, null, icon),
|
|
182
|
+
children));
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const CaretDownSolidIcon = () => (React.createElement("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" },
|
|
186
|
+
React.createElement("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" })));
|
|
187
|
+
|
|
188
|
+
const CheckSquareRegularIcon = () => (React.createElement("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" },
|
|
189
|
+
React.createElement("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" })));
|
|
190
|
+
|
|
191
|
+
const ChevronDownSolidIcon = () => (React.createElement("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" },
|
|
192
|
+
React.createElement("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" })));
|
|
193
|
+
|
|
194
|
+
const ChevronRightSolidIcon = () => (React.createElement("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" },
|
|
195
|
+
React.createElement("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" })));
|
|
196
|
+
|
|
197
|
+
const ChevronUpSolidIcon = () => (React.createElement("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" },
|
|
198
|
+
React.createElement("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" })));
|
|
199
|
+
|
|
200
|
+
const HomeSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512" },
|
|
201
|
+
React.createElement("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" })));
|
|
202
|
+
|
|
203
|
+
const SquareRegularIcon = () => (React.createElement("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" },
|
|
204
|
+
React.createElement("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" })));
|
|
205
|
+
|
|
206
|
+
const TimesCircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
207
|
+
React.createElement("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" })));
|
|
208
|
+
|
|
209
|
+
const TimesSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512" },
|
|
210
|
+
React.createElement("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" })));
|
|
211
|
+
|
|
212
|
+
const SpinnerSolidIcon = () => (React.createElement("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" },
|
|
213
|
+
React.createElement("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" })));
|
|
214
|
+
|
|
215
|
+
const PlusSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
|
|
216
|
+
React.createElement("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" })));
|
|
217
|
+
|
|
218
|
+
const CheckSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
219
|
+
React.createElement("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" })));
|
|
220
|
+
|
|
221
|
+
const CircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
222
|
+
React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
|
|
223
|
+
|
|
224
|
+
const ChevronLeftSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
|
|
225
|
+
React.createElement("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" })));
|
|
226
|
+
|
|
227
|
+
function useWindowSize() {
|
|
228
|
+
const [windowSize, setWindowSize] = useState({
|
|
229
|
+
width: 0,
|
|
230
|
+
height: 0,
|
|
231
|
+
});
|
|
232
|
+
useEffect(() => {
|
|
233
|
+
function handleResize() {
|
|
234
|
+
setWindowSize({
|
|
235
|
+
width: window.innerWidth,
|
|
236
|
+
height: window.innerHeight,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
window.addEventListener("resize", handleResize);
|
|
240
|
+
handleResize();
|
|
241
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
242
|
+
}, []);
|
|
243
|
+
return windowSize;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function useHover(elementRef) {
|
|
247
|
+
const [value, setValue] = useState(false);
|
|
248
|
+
const handleMouseOver = () => setValue(true);
|
|
249
|
+
const handleMouseOut = () => setValue(false);
|
|
250
|
+
const node = elementRef.current;
|
|
251
|
+
if (node) {
|
|
252
|
+
node.addEventListener("mouseover", handleMouseOver);
|
|
253
|
+
node.addEventListener("mouseout", handleMouseOut);
|
|
254
|
+
useEffect(() => {
|
|
255
|
+
return () => {
|
|
256
|
+
node.removeEventListener("mouseover", handleMouseOver);
|
|
257
|
+
node.removeEventListener("mouseout", handleMouseOut);
|
|
258
|
+
};
|
|
259
|
+
}, [elementRef.current]);
|
|
260
|
+
}
|
|
261
|
+
return value;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const useConstructor = (callBack) => {
|
|
265
|
+
const [hasBeenCalled, setHasBeenCalled] = useState(false);
|
|
266
|
+
if (hasBeenCalled)
|
|
267
|
+
return;
|
|
268
|
+
callBack();
|
|
269
|
+
setHasBeenCalled(true);
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
function useDebounce(callback, timeout, deps) {
|
|
273
|
+
const timeoutId = useRef();
|
|
274
|
+
useEffect(() => {
|
|
275
|
+
clearTimeout(timeoutId.current);
|
|
276
|
+
timeoutId.current = setTimeout(callback, timeout);
|
|
277
|
+
return () => clearTimeout(timeoutId.current);
|
|
278
|
+
}, deps);
|
|
279
|
+
}
|
|
280
|
+
|
|
146
281
|
const Backdrop = (props) => {
|
|
147
282
|
const { target = document.body, isTransparent = false, onClick, style } = props, rest = __rest(props, ["target", "isTransparent", "onClick", "style"]);
|
|
148
283
|
const handleClick = (e) => {
|
|
@@ -164,34 +299,34 @@ const Backdrop = (props) => {
|
|
|
164
299
|
return (createPortal(React.createElement("div", Object.assign({ className: getCssClasses(), onClick: handleClick, style: getStyles() }, rest)), target));
|
|
165
300
|
};
|
|
166
301
|
|
|
167
|
-
var css_248z$
|
|
168
|
-
var styles$
|
|
169
|
-
styleInject(css_248z$
|
|
302
|
+
var css_248z$Q = ".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";
|
|
303
|
+
var styles$Q = {"list":"List-module_list__gpZ41"};
|
|
304
|
+
styleInject(css_248z$Q);
|
|
170
305
|
|
|
171
306
|
const List = (props) => {
|
|
172
307
|
const { children, className, isFlush } = props, rest = __rest(props, ["children", "className", "isFlush"]);
|
|
173
308
|
const getCssClasses = () => {
|
|
174
309
|
const cssClasses = [];
|
|
175
|
-
isFlush && cssClasses.push(styles$
|
|
176
|
-
cssClasses.push(styles$
|
|
310
|
+
isFlush && cssClasses.push(styles$Q.flush);
|
|
311
|
+
cssClasses.push(styles$Q.list);
|
|
177
312
|
className && cssClasses.push(className);
|
|
178
313
|
return cssClasses.filter(css => css).join(' ');
|
|
179
314
|
};
|
|
180
315
|
return (React.createElement("ul", Object.assign({ className: getCssClasses() }, rest), children));
|
|
181
316
|
};
|
|
182
317
|
|
|
183
|
-
var css_248z$
|
|
184
|
-
var styles$
|
|
185
|
-
styleInject(css_248z$
|
|
318
|
+
var css_248z$P = ".ListItem-module_listItem__Pk1AP {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.75rem 1.25rem;\n min-width: 100%;\n color: var(--bodyColor);\n text-align: inherit;\n transition: background 0.5s ease; }\n .ListItem-module_listItem__Pk1AP:hover, .ListItem-module_listItem__Pk1AP.ListItem-module_active__zm2q8 {\n cursor: pointer;\n z-index: 1;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n color: var(--primary); }\n .ListItem-module_listItem__Pk1AP + .ListItem-module_listItem__Pk1AP {\n border-top-width: 0; }\n .ListItem-module_listItem__Pk1AP.ListItem-module_primary__F6Qja {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_accent__pg3Ha {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_secondary__d0drD {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_light__37kby {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_dark__ZxQTF {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl {\n color: rgba(0, 0, 0, 0.26); }\n .ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl:hover {\n cursor: not-allowed;\n background-color: inherit; }\n";
|
|
319
|
+
var styles$P = {"listItem":"ListItem-module_listItem__Pk1AP","active":"ListItem-module_active__zm2q8","primary":"ListItem-module_primary__F6Qja","accent":"ListItem-module_accent__pg3Ha","secondary":"ListItem-module_secondary__d0drD","light":"ListItem-module_light__37kby","dark":"ListItem-module_dark__ZxQTF","disabled":"ListItem-module_disabled__DQLKl"};
|
|
320
|
+
styleInject(css_248z$P);
|
|
186
321
|
|
|
187
322
|
const ListItem = (props) => {
|
|
188
323
|
const { children, color, active, className, disabled, onClick } = props, rest = __rest(props, ["children", "color", "active", "className", "disabled", "onClick"]);
|
|
189
324
|
const getCssClasses = () => {
|
|
190
325
|
const cssClasses = [];
|
|
191
|
-
cssClasses.push(styles$
|
|
192
|
-
color && cssClasses.push(styles$
|
|
193
|
-
active && cssClasses.push(styles$
|
|
194
|
-
disabled && cssClasses.push(styles$
|
|
326
|
+
cssClasses.push(styles$P.listItem);
|
|
327
|
+
color && cssClasses.push(styles$P[color]);
|
|
328
|
+
active && cssClasses.push(styles$P['active']);
|
|
329
|
+
disabled && cssClasses.push(styles$P['disabled']);
|
|
195
330
|
className && cssClasses.push(className);
|
|
196
331
|
return cssClasses.filter(css => css).join(' ');
|
|
197
332
|
};
|
|
@@ -201,42 +336,42 @@ const ListItem = (props) => {
|
|
|
201
336
|
return (React.createElement("li", Object.assign({ onClick: handleClick, className: getCssClasses() }, rest), children));
|
|
202
337
|
};
|
|
203
338
|
|
|
204
|
-
var css_248z$
|
|
205
|
-
var styles$
|
|
206
|
-
styleInject(css_248z$
|
|
339
|
+
var css_248z$O = ".ListItemAvatar-module_avatar__sVWfR {\n margin-right: 16px; }\n .ListItemAvatar-module_avatar__sVWfR svg, .ListItemAvatar-module_avatar__sVWfR img {\n width: 24px;\n height: 24px; }\n .ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%; }\n";
|
|
340
|
+
var styles$O = {"avatar":"ListItemAvatar-module_avatar__sVWfR"};
|
|
341
|
+
styleInject(css_248z$O);
|
|
207
342
|
|
|
208
343
|
const ListItemAvatar = (_a) => {
|
|
209
344
|
var { avatar } = _a, rest = __rest(_a, ["avatar"]);
|
|
210
|
-
return (React.createElement("div", Object.assign({ className: styles$
|
|
345
|
+
return (React.createElement("div", Object.assign({ className: styles$O.avatar }, rest), avatar));
|
|
211
346
|
};
|
|
212
347
|
|
|
213
|
-
var css_248z$
|
|
214
|
-
var styles$
|
|
215
|
-
styleInject(css_248z$
|
|
348
|
+
var css_248z$N = ".ListItemIcon-module_icon__cCvEv {\n margin-right: 32px; }\n .ListItemIcon-module_icon__cCvEv svg {\n width: 24px;\n height: 24px; }\n";
|
|
349
|
+
var styles$N = {"icon":"ListItemIcon-module_icon__cCvEv"};
|
|
350
|
+
styleInject(css_248z$N);
|
|
216
351
|
|
|
217
352
|
const ListItemIcon = (_a) => {
|
|
218
353
|
var { icon } = _a, rest = __rest(_a, ["icon"]);
|
|
219
|
-
return (React.createElement("div", Object.assign({ className: styles$
|
|
354
|
+
return (React.createElement("div", Object.assign({ className: styles$N.icon }, rest), icon));
|
|
220
355
|
};
|
|
221
356
|
|
|
222
|
-
var css_248z$
|
|
223
|
-
var styles$
|
|
224
|
-
styleInject(css_248z$
|
|
357
|
+
var css_248z$M = ".ListItemAction-module_listItemAction__gAQRj {\n display: flex;\n justify-content: center;\n min-width: 40px; }\n .ListItemAction-module_listItemAction__gAQRj svg {\n width: 20px;\n height: 20px; }\n";
|
|
358
|
+
var styles$M = {"listItemAction":"ListItemAction-module_listItemAction__gAQRj"};
|
|
359
|
+
styleInject(css_248z$M);
|
|
225
360
|
|
|
226
361
|
const ListItemAction = (_a) => {
|
|
227
362
|
var { children, onClick } = _a, rest = __rest(_a, ["children", "onClick"]);
|
|
228
|
-
return (React.createElement("div", Object.assign({ className: styles$
|
|
363
|
+
return (React.createElement("div", Object.assign({ className: styles$M.listItemAction, onClick: e => onClick && onClick(e) }, rest), children));
|
|
229
364
|
};
|
|
230
365
|
|
|
231
|
-
var css_248z$
|
|
232
|
-
var styles$
|
|
233
|
-
styleInject(css_248z$
|
|
366
|
+
var css_248z$L = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1; }\n";
|
|
367
|
+
var styles$L = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
368
|
+
styleInject(css_248z$L);
|
|
234
369
|
|
|
235
370
|
const ListItemText = (_a) => {
|
|
236
371
|
var { primary, secondary } = _a, rest = __rest(_a, ["primary", "secondary"]);
|
|
237
372
|
const getCssClasses = () => {
|
|
238
373
|
const cssClasses = [];
|
|
239
|
-
cssClasses.push(styles$
|
|
374
|
+
cssClasses.push(styles$L.listItemText);
|
|
240
375
|
return cssClasses.filter(css => css).join(' ');
|
|
241
376
|
};
|
|
242
377
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest),
|
|
@@ -247,9 +382,9 @@ const ListItemText = (_a) => {
|
|
|
247
382
|
const ListItemTextPrimary = ({ children }) => (React.createElement("div", { className: "list-item-text-primary" }, children));
|
|
248
383
|
const ListItemTextSecondary = ({ children }) => (React.createElement("div", { className: "list-item-text-secondary text-muted", style: { fontSize: '0.875rem' } }, children));
|
|
249
384
|
|
|
250
|
-
var css_248z$
|
|
251
|
-
var styles$
|
|
252
|
-
styleInject(css_248z$
|
|
385
|
+
var css_248z$K = ".AutoComplete-module_selectContainer__1kA85 {\n position: relative; }\n\n.AutoComplete-module_select__NNYOi {\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex; }\n .AutoComplete-module_select__NNYOi:hover {\n cursor: pointer; }\n\n.AutoComplete-module_selectMenu__Gu81L {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 38px;\n z-index: 1050;\n max-height: 280px;\n overflow: auto; }\n";
|
|
386
|
+
var styles$K = {"selectContainer":"AutoComplete-module_selectContainer__1kA85","select":"AutoComplete-module_select__NNYOi","selectMenu":"AutoComplete-module_selectMenu__Gu81L"};
|
|
387
|
+
styleInject(css_248z$K);
|
|
253
388
|
|
|
254
389
|
// preset value
|
|
255
390
|
// enter -> delay? -> show results
|
|
@@ -305,7 +440,7 @@ const AutoComplete = (props) => {
|
|
|
305
440
|
const getCssClass = () => {
|
|
306
441
|
const cssClasses = [];
|
|
307
442
|
className && cssClasses.push(className);
|
|
308
|
-
cssClasses.push(styles$
|
|
443
|
+
cssClasses.push(styles$K.select);
|
|
309
444
|
return cssClasses.filter(r => r).join(' ');
|
|
310
445
|
};
|
|
311
446
|
const show = () => setIsShow(true);
|
|
@@ -329,35 +464,35 @@ const AutoComplete = (props) => {
|
|
|
329
464
|
setModel('');
|
|
330
465
|
setSearchText('');
|
|
331
466
|
};
|
|
332
|
-
return (React.createElement("div", { ref: selectConainter, className: styles$
|
|
467
|
+
return (React.createElement("div", { ref: selectConainter, className: styles$K.selectContainer },
|
|
333
468
|
React.createElement("div", { className: "d-flex" },
|
|
334
469
|
React.createElement("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }),
|
|
335
470
|
showClearButton && (model === null || model === void 0 ? void 0 : model.length) > 0 &&
|
|
336
471
|
React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), onClick: handleClickReset })),
|
|
337
472
|
isShow &&
|
|
338
473
|
React.createElement(React.Fragment, null,
|
|
339
|
-
React.createElement("div", { className: styles$
|
|
474
|
+
React.createElement("div", { className: styles$K.selectMenu },
|
|
340
475
|
React.createElement(List, null, optionsTemp && optionsTemp.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), disabled: !option.value },
|
|
341
476
|
React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
342
477
|
React.createElement(Backdrop, { isTransparent: true, onClick: () => hide() }))));
|
|
343
478
|
};
|
|
344
479
|
|
|
345
|
-
var css_248z$
|
|
346
|
-
var styles$
|
|
347
|
-
styleInject(css_248z$
|
|
480
|
+
var css_248z$J = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle; }\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 .Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n";
|
|
481
|
+
var styles$J = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"Badge-module_badge__9ImR0","primary":"Badge-module_primary__41U-t","accent":"Badge-module_accent__OQy2-","secondary":"Badge-module_secondary__a9Jfh","light":"Badge-module_light__4QvQ5","dark":"Badge-module_dark__g1yUJ"};
|
|
482
|
+
styleInject(css_248z$J);
|
|
348
483
|
|
|
349
484
|
const Badge = (props) => {
|
|
350
485
|
const { children, content, className, color = COLOR.primary } = props, rest = __rest(props, ["children", "content", "className", "color"]);
|
|
351
486
|
const getCssClassesBadgeContainer = () => {
|
|
352
487
|
const cssClasses = [];
|
|
353
|
-
cssClasses.push(styles$
|
|
488
|
+
cssClasses.push(styles$J.badgeContainer);
|
|
354
489
|
className && cssClasses.push(className);
|
|
355
490
|
return cssClasses.filter(css => css).join(' ');
|
|
356
491
|
};
|
|
357
492
|
const getCssClassesBadge = () => {
|
|
358
493
|
const cssClasses = [];
|
|
359
|
-
cssClasses.push(styles$
|
|
360
|
-
cssClasses.push(styles$
|
|
494
|
+
cssClasses.push(styles$J.badge);
|
|
495
|
+
cssClasses.push(styles$J[color]);
|
|
361
496
|
return cssClasses.filter(css => css).join(' ');
|
|
362
497
|
};
|
|
363
498
|
return (React.createElement("div", Object.assign({ className: getCssClassesBadgeContainer() }, rest),
|
|
@@ -365,26 +500,26 @@ const Badge = (props) => {
|
|
|
365
500
|
React.createElement("span", { className: getCssClassesBadge() }, content)));
|
|
366
501
|
};
|
|
367
502
|
|
|
368
|
-
var css_248z$
|
|
369
|
-
var styles$
|
|
370
|
-
styleInject(css_248z$
|
|
503
|
+
var css_248z$I = ".Button-module_button__qeIer {\n text-transform: uppercase !important;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\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 min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n box-shadow: var(--shadow); }\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary) !important; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px; }\n";
|
|
504
|
+
var styles$I = {"button":"Button-module_button__qeIer","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
505
|
+
styleInject(css_248z$I);
|
|
371
506
|
|
|
372
507
|
const Button = (props) => {
|
|
373
508
|
const { children, variant = VARIANT.contained, color = COLOR.primary, isRounded, isActive, className, startIcon, endIcon } = props, rest = __rest(props, ["children", "variant", "color", "isRounded", "isActive", "className", "startIcon", "endIcon"]);
|
|
374
509
|
const getCssClasses = () => {
|
|
375
510
|
const cssClasses = [];
|
|
376
|
-
cssClasses.push(styles$
|
|
511
|
+
cssClasses.push(styles$I.button);
|
|
377
512
|
if (variant !== 'outline' && variant !== 'text') {
|
|
378
|
-
cssClasses.push(styles$
|
|
379
|
-
cssClasses.push(styles$
|
|
513
|
+
cssClasses.push(styles$I.btnContained);
|
|
514
|
+
cssClasses.push(styles$I[color]);
|
|
380
515
|
}
|
|
381
516
|
if (variant === 'outline') {
|
|
382
|
-
cssClasses.push(styles$
|
|
383
|
-
cssClasses.push(styles$
|
|
517
|
+
cssClasses.push(styles$I.btnOutline);
|
|
518
|
+
cssClasses.push(styles$I[color]);
|
|
384
519
|
}
|
|
385
520
|
if (variant === 'text') {
|
|
386
|
-
cssClasses.push(styles$
|
|
387
|
-
cssClasses.push(styles$
|
|
521
|
+
cssClasses.push(styles$I.btnText);
|
|
522
|
+
cssClasses.push(styles$I[color]);
|
|
388
523
|
}
|
|
389
524
|
if (isRounded && variant !== 'text') {
|
|
390
525
|
cssClasses.push(`rounded-pill`);
|
|
@@ -398,36 +533,36 @@ const Button = (props) => {
|
|
|
398
533
|
return (React.createElement("button", Object.assign({ type: "button", className: getCssClasses() }, rest),
|
|
399
534
|
React.createElement("span", { className: "d-flex justify-content-center" },
|
|
400
535
|
startIcon &&
|
|
401
|
-
React.createElement(Icon, { className: styles$
|
|
536
|
+
React.createElement(Icon, { className: styles$I.startIcon }, startIcon),
|
|
402
537
|
children,
|
|
403
538
|
endIcon &&
|
|
404
|
-
React.createElement(Icon, { className: styles$
|
|
539
|
+
React.createElement(Icon, { className: styles$I.endIcon }, endIcon))));
|
|
405
540
|
};
|
|
406
541
|
|
|
407
|
-
var css_248z$
|
|
408
|
-
var styles$
|
|
409
|
-
styleInject(css_248z$
|
|
542
|
+
var css_248z$H = ".ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0; }\n";
|
|
543
|
+
var styles$H = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
|
|
544
|
+
styleInject(css_248z$H);
|
|
410
545
|
|
|
411
546
|
const ButtonGroup = (props) => {
|
|
412
547
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
413
548
|
const getCssClasses = () => {
|
|
414
549
|
const cssClasses = [];
|
|
415
|
-
cssClasses.push(styles$
|
|
550
|
+
cssClasses.push(styles$H.buttonGroup);
|
|
416
551
|
className && cssClasses.push(className);
|
|
417
552
|
return cssClasses.filter(css => css).join(' ');
|
|
418
553
|
};
|
|
419
554
|
return (React.createElement("div", Object.assign({ className: getCssClasses(), role: "group" }, rest), children));
|
|
420
555
|
};
|
|
421
556
|
|
|
422
|
-
var css_248z$
|
|
423
|
-
var styles$
|
|
424
|
-
styleInject(css_248z$
|
|
557
|
+
var css_248z$G = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0.75rem 1rem;\n margin-bottom: 0;\n list-style: none;\n border-radius: var(--borderRadius); }\n";
|
|
558
|
+
var styles$G = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
559
|
+
styleInject(css_248z$G);
|
|
425
560
|
|
|
426
561
|
const Breadcrumb = (props) => {
|
|
427
562
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
428
563
|
const getCssClasses = () => {
|
|
429
564
|
const cssClasses = [];
|
|
430
|
-
cssClasses.push(styles$
|
|
565
|
+
cssClasses.push(styles$G.breadcrumb);
|
|
431
566
|
className && cssClasses.push(className);
|
|
432
567
|
return cssClasses.filter(css => css).join(' ');
|
|
433
568
|
};
|
|
@@ -437,15 +572,15 @@ const Breadcrumb = (props) => {
|
|
|
437
572
|
|
|
438
573
|
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
439
574
|
|
|
440
|
-
var css_248z$
|
|
441
|
-
var styles$
|
|
442
|
-
styleInject(css_248z$
|
|
575
|
+
var css_248z$F = ".BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem; }\n\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\"; }\n\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary); }\n\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer; }\n\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset; }\n";
|
|
576
|
+
var styles$F = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
577
|
+
styleInject(css_248z$F);
|
|
443
578
|
|
|
444
579
|
const BreadcrumbItem = (props) => {
|
|
445
580
|
const { children, className, isActive, onClick } = props;
|
|
446
581
|
const getCssClasses = () => {
|
|
447
582
|
const cssClasses = [];
|
|
448
|
-
cssClasses.push(styles$
|
|
583
|
+
cssClasses.push(styles$F.breadcrumbItem);
|
|
449
584
|
className && cssClasses.push(className);
|
|
450
585
|
isActive && cssClasses.push('active');
|
|
451
586
|
return cssClasses.filter(css => css).join(' ');
|
|
@@ -454,200 +589,117 @@ const BreadcrumbItem = (props) => {
|
|
|
454
589
|
onClick && onClick(event);
|
|
455
590
|
};
|
|
456
591
|
return (React.createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
457
|
-
React.createElement(ConditionalWrapper, { condition: !isActive,
|
|
458
|
-
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
459
|
-
wrapper: label => React.createElement("a", null, label) }, children)));
|
|
592
|
+
React.createElement(ConditionalWrapper, { condition: !isActive, wrapper: label => React.createElement("a", null, label) }, children)));
|
|
460
593
|
};
|
|
461
594
|
|
|
462
|
-
var css_248z$
|
|
463
|
-
var styles$
|
|
464
|
-
styleInject(css_248z$
|
|
595
|
+
var css_248z$E = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius); }\n .Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow); }\n";
|
|
596
|
+
var styles$E = {"card":"Card-module_card__TQdQq","shadow":"Card-module_shadow__NxDVz"};
|
|
597
|
+
styleInject(css_248z$E);
|
|
465
598
|
|
|
466
599
|
const Card = (props) => {
|
|
467
600
|
const { children, className, shadow = true } = props, rest = __rest(props, ["children", "className", "shadow"]);
|
|
468
601
|
const getCssClasses = () => {
|
|
469
602
|
const cssClasses = [];
|
|
470
|
-
cssClasses.push(styles$
|
|
471
|
-
shadow && cssClasses.push(styles$
|
|
603
|
+
cssClasses.push(styles$E.card);
|
|
604
|
+
shadow && cssClasses.push(styles$E.shadow);
|
|
472
605
|
className && cssClasses.push(className);
|
|
473
606
|
return cssClasses.filter(css => css).join(' ');
|
|
474
607
|
};
|
|
475
608
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
476
609
|
};
|
|
477
610
|
|
|
478
|
-
var css_248z$
|
|
479
|
-
var styles$
|
|
480
|
-
styleInject(css_248z$
|
|
611
|
+
var css_248z$D = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem; }\n";
|
|
612
|
+
var styles$D = {"cardBody":"CardBody-module_cardBody__X52VY"};
|
|
613
|
+
styleInject(css_248z$D);
|
|
481
614
|
|
|
482
615
|
const CardBody = (props) => {
|
|
483
616
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
484
617
|
const getCssClasses = () => {
|
|
485
618
|
const cssClasses = [];
|
|
486
|
-
cssClasses.push(styles$
|
|
619
|
+
cssClasses.push(styles$D.cardBody);
|
|
487
620
|
className && cssClasses.push(className);
|
|
488
621
|
return cssClasses.filter(css => css).join(' ');
|
|
489
622
|
};
|
|
490
623
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
491
624
|
};
|
|
492
625
|
|
|
493
|
-
var css_248z$
|
|
494
|
-
var styles$
|
|
495
|
-
styleInject(css_248z$
|
|
626
|
+
var css_248z$C = ".CardFooter-module_cardFooter__BpOTG {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125); }\n .CardFooter-module_cardFooter__BpOTG:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); }\n";
|
|
627
|
+
var styles$C = {"cardFooter":"CardFooter-module_cardFooter__BpOTG"};
|
|
628
|
+
styleInject(css_248z$C);
|
|
496
629
|
|
|
497
630
|
const CardFooter = (props) => {
|
|
498
631
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
499
632
|
const getCssClasses = () => {
|
|
500
633
|
const cssClasses = [];
|
|
501
|
-
cssClasses.push(styles$
|
|
634
|
+
cssClasses.push(styles$C.cardFooter);
|
|
502
635
|
className && cssClasses.push(className);
|
|
503
636
|
return cssClasses.filter(css => css).join(' ');
|
|
504
637
|
};
|
|
505
638
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
506
639
|
};
|
|
507
640
|
|
|
508
|
-
var css_248z$
|
|
509
|
-
var styles$
|
|
510
|
-
styleInject(css_248z$
|
|
641
|
+
var css_248z$B = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important; }\n";
|
|
642
|
+
var styles$B = {"cardSubtitle":"CardSubtitle-module_cardSubtitle__YdoRM"};
|
|
643
|
+
styleInject(css_248z$B);
|
|
511
644
|
|
|
512
645
|
const CardSubtitle = (props) => {
|
|
513
646
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
514
647
|
const getCssClasses = () => {
|
|
515
648
|
const cssClasses = [];
|
|
516
|
-
cssClasses.push(styles$
|
|
649
|
+
cssClasses.push(styles$B.cardSubtitle);
|
|
517
650
|
className && cssClasses.push(className);
|
|
518
651
|
return cssClasses.filter(css => css).join(' ');
|
|
519
652
|
};
|
|
520
653
|
return (React.createElement("p", Object.assign({ className: getCssClasses() }, rest), children));
|
|
521
654
|
};
|
|
522
655
|
|
|
523
|
-
var css_248z$
|
|
524
|
-
var styles$
|
|
525
|
-
styleInject(css_248z$
|
|
656
|
+
var css_248z$A = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0; }\n";
|
|
657
|
+
var styles$A = {"cardText":"CardText-module_cardText__UtYd9"};
|
|
658
|
+
styleInject(css_248z$A);
|
|
526
659
|
|
|
527
660
|
const CardText = (props) => {
|
|
528
661
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
529
662
|
const getCssClasses = () => {
|
|
530
663
|
const cssClasses = [];
|
|
531
|
-
cssClasses.push(styles$
|
|
664
|
+
cssClasses.push(styles$A.cardText);
|
|
532
665
|
className && cssClasses.push(className);
|
|
533
666
|
return cssClasses.filter(css => css).join(' ');
|
|
534
667
|
};
|
|
535
|
-
return (React.createElement("p", Object.assign({ className: getCssClasses() }, rest),
|
|
668
|
+
return (React.createElement("p", Object.assign({ className: getCssClasses() }, rest), children));
|
|
536
669
|
};
|
|
537
670
|
|
|
538
|
-
var css_248z$
|
|
539
|
-
var styles$
|
|
540
|
-
styleInject(css_248z$
|
|
671
|
+
var css_248z$z = ".CardTitle-module_cardTitle__aiPSE {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em; }\n";
|
|
672
|
+
var styles$z = {"cardTitle":"CardTitle-module_cardTitle__aiPSE"};
|
|
673
|
+
styleInject(css_248z$z);
|
|
541
674
|
|
|
542
675
|
const CardTitle = (props) => {
|
|
543
676
|
const { children, className, as: As = 'div' } = props, rest = __rest(props, ["children", "className", "as"]);
|
|
544
677
|
const getCssClasses = () => {
|
|
545
678
|
const cssClasses = [];
|
|
546
|
-
cssClasses.push(styles$
|
|
679
|
+
cssClasses.push(styles$z.cardTitle);
|
|
547
680
|
className && cssClasses.push(className);
|
|
548
681
|
return cssClasses.filter(css => css).join(' ');
|
|
549
682
|
};
|
|
550
683
|
return (React.createElement(As, Object.assign({ className: getCssClasses() }, rest), children));
|
|
551
684
|
};
|
|
552
685
|
|
|
553
|
-
var css_248z$
|
|
554
|
-
var styles$
|
|
555
|
-
styleInject(css_248z$
|
|
686
|
+
var css_248z$y = ".CardImage-module_cardImage__Z6JWW {\n flex-shrink: 0;\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px); }\n";
|
|
687
|
+
var styles$y = {"cardImage":"CardImage-module_cardImage__Z6JWW"};
|
|
688
|
+
styleInject(css_248z$y);
|
|
556
689
|
|
|
557
690
|
const CardImage = (props) => {
|
|
558
691
|
const { src, alt, className } = props, rest = __rest(props, ["src", "alt", "className"]);
|
|
559
692
|
const getCssClasses = () => {
|
|
560
693
|
const cssClasses = [];
|
|
561
|
-
cssClasses.push(styles$
|
|
694
|
+
cssClasses.push(styles$y.cardImage);
|
|
562
695
|
className && cssClasses.push(className);
|
|
563
696
|
return cssClasses.filter(css => css).join(' ');
|
|
564
697
|
};
|
|
565
698
|
return (React.createElement("img", Object.assign({ className: getCssClasses(), src: src, alt: alt }, rest)));
|
|
566
699
|
};
|
|
567
700
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
const CheckSquareRegularIcon = () => (React.createElement("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" },
|
|
572
|
-
React.createElement("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" })));
|
|
573
|
-
|
|
574
|
-
const ChevronDownSolidIcon = () => (React.createElement("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" },
|
|
575
|
-
React.createElement("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" })));
|
|
576
|
-
|
|
577
|
-
const ChevronRightSolidIcon = () => (React.createElement("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" },
|
|
578
|
-
React.createElement("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" })));
|
|
579
|
-
|
|
580
|
-
const ChevronUpSolidIcon = () => (React.createElement("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" },
|
|
581
|
-
React.createElement("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" })));
|
|
582
|
-
|
|
583
|
-
const HomeSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512" },
|
|
584
|
-
React.createElement("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" })));
|
|
585
|
-
|
|
586
|
-
const SquareRegularIcon = () => (React.createElement("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" },
|
|
587
|
-
React.createElement("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" })));
|
|
588
|
-
|
|
589
|
-
const TimesCircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
590
|
-
React.createElement("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" })));
|
|
591
|
-
|
|
592
|
-
const TimesSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512" },
|
|
593
|
-
React.createElement("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" })));
|
|
594
|
-
|
|
595
|
-
const SpinnerSolidIcon = () => (React.createElement("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" },
|
|
596
|
-
React.createElement("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" })));
|
|
597
|
-
|
|
598
|
-
const PlusSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
|
|
599
|
-
React.createElement("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" })));
|
|
600
|
-
|
|
601
|
-
const CheckSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
602
|
-
React.createElement("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" })));
|
|
603
|
-
|
|
604
|
-
const CircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
605
|
-
React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
|
|
606
|
-
|
|
607
|
-
const ChevronLeftSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
|
|
608
|
-
React.createElement("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" })));
|
|
609
|
-
|
|
610
|
-
var css_248z$z = ".Icon-module_icon__2etAT {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px; }\n .Icon-module_icon__2etAT svg {\n width: inherit;\n height: inherit; }\n .Icon-module_icon__2etAT.Icon-module_primary__32Mh4 {\n color: var(--primary); }\n .Icon-module_icon__2etAT.Icon-module_accent__2U_no {\n color: var(--accent); }\n .Icon-module_icon__2etAT.Icon-module_secondary__3cMmx {\n color: var(--secondary); }\n .Icon-module_icon__2etAT.Icon-module_light__2SugS {\n color: var(--light); }\n .Icon-module_icon__2etAT.Icon-module_dark__GWMzb {\n color: var(--dark); }\n";
|
|
611
|
-
var styles$z = {"icon":"Icon-module_icon__2etAT","primary":"Icon-module_primary__32Mh4","accent":"Icon-module_accent__2U_no","secondary":"Icon-module_secondary__3cMmx","light":"Icon-module_light__2SugS","dark":"Icon-module_dark__GWMzb"};
|
|
612
|
-
styleInject(css_248z$z);
|
|
613
|
-
|
|
614
|
-
const Icon = (props) => {
|
|
615
|
-
const { children, iconColor, className } = props, rest = __rest(props, ["children", "iconColor", "className"]);
|
|
616
|
-
const getCssClasses = () => {
|
|
617
|
-
const cssClasses = [];
|
|
618
|
-
cssClasses.push(styles$z.icon);
|
|
619
|
-
iconColor && cssClasses.push(styles$z[iconColor]);
|
|
620
|
-
className && cssClasses.push(className);
|
|
621
|
-
return cssClasses.filter(css => css).join(' ');
|
|
622
|
-
};
|
|
623
|
-
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
var css_248z$y = ".IconButton-module_iconButton__1xqrL {\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 .IconButton-module_iconButton__1xqrL:hover {\n cursor: pointer; }\n .IconButton-module_iconButton__1xqrL.IconButton-module_shadow__5U4-_ {\n box-shadow: var(--shadow); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_md__1lmDL {\n width: 48px;\n height: 48px; }\n .IconButton-module_iconButton__1xqrL.IconButton-module_lg__1O2Uy {\n width: 56px;\n height: 56px; }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG {\n padding: 0;\n background: transparent;\n color: inherit; }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_active__2tJut {\n background-color: rgba(0, 0, 0, 0.04); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_primary__qRw4T {\n color: var(--primary); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_primary__qRw4T:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_primary__qRw4T.IconButton-module_active__2tJut {\n color: var(--primary-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_secondary__1lzNL {\n color: var(--secondary); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_secondary__1lzNL:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_secondary__1lzNL.IconButton-module_active__2tJut {\n color: var(--secondary-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_accent__exm5t {\n color: var(--accent); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_accent__exm5t:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_accent__exm5t.IconButton-module_active__2tJut {\n color: var(--accent-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_light__2nWhD {\n color: var(--light); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_light__2nWhD:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_light__2nWhD.IconButton-module_active__2tJut {\n color: var(--light-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_dark__1e6bR {\n color: var(--dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_dark__1e6bR:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_dark__1e6bR.IconButton-module_active__2tJut {\n color: var(--dark-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_text__33RrG.IconButton-module_disabled__3TgpF {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none; }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_active__2tJut {\n background-color: rgba(0, 0, 0, 0.04); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_primary__qRw4T {\n background-color: var(--primary);\n color: var(--white); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_primary__qRw4T:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_primary__qRw4T.IconButton-module_active__2tJut {\n background-color: var(--primary-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_secondary__1lzNL {\n background-color: var(--secondary);\n color: var(--white); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_secondary__1lzNL:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_secondary__1lzNL.IconButton-module_active__2tJut {\n background-color: var(--secondary-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_accent__exm5t {\n background-color: var(--accent);\n color: var(--white); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_accent__exm5t:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_accent__exm5t.IconButton-module_active__2tJut {\n background-color: var(--accent-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_light__2nWhD {\n background-color: var(--light);\n color: var(--dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_light__2nWhD:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_light__2nWhD.IconButton-module_active__2tJut {\n background-color: var(--light-dark); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_dark__1e6bR {\n background-color: var(--dark);\n color: var(--white); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_dark__1e6bR:hover, .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_dark__1e6bR.IconButton-module_active__2tJut {\n background-color: var(--dark-light); }\n .IconButton-module_iconButton__1xqrL.IconButton-module_contained__gWulJ.IconButton-module_disabled__3TgpF {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none; }\n";
|
|
627
|
-
var styles$y = {"iconButton":"IconButton-module_iconButton__1xqrL","shadow":"IconButton-module_shadow__5U4-_","md":"IconButton-module_md__1lmDL","lg":"IconButton-module_lg__1O2Uy","text":"IconButton-module_text__33RrG","active":"IconButton-module_active__2tJut","primary":"IconButton-module_primary__qRw4T","secondary":"IconButton-module_secondary__1lzNL","accent":"IconButton-module_accent__exm5t","light":"IconButton-module_light__2nWhD","dark":"IconButton-module_dark__1e6bR","disabled":"IconButton-module_disabled__3TgpF","contained":"IconButton-module_contained__gWulJ"};
|
|
628
|
-
styleInject(css_248z$y);
|
|
629
|
-
|
|
630
|
-
const IconButton = (props) => {
|
|
631
|
-
const { children, icon, variant = VARIANT.text, color = COLOR.dark, size = SIZE.md, isActive, disabled, className, shadow } = props, rest = __rest(props, ["children", "icon", "variant", "color", "size", "isActive", "disabled", "className", "shadow"]);
|
|
632
|
-
const getCssClasses = () => {
|
|
633
|
-
const cssClasses = [];
|
|
634
|
-
cssClasses.push(styles$y[color]);
|
|
635
|
-
cssClasses.push(styles$y[variant]);
|
|
636
|
-
cssClasses.push(styles$y[size]);
|
|
637
|
-
cssClasses.push(styles$y.iconButton);
|
|
638
|
-
isActive && cssClasses.push(styles$y.active);
|
|
639
|
-
disabled && cssClasses.push(styles$y.disabled);
|
|
640
|
-
shadow && cssClasses.push(styles$y.shadow);
|
|
641
|
-
className && cssClasses.push(className);
|
|
642
|
-
return cssClasses.filter(css => css).join(' ');
|
|
643
|
-
};
|
|
644
|
-
return (React.createElement("button", Object.assign({ type: "button", className: getCssClasses(), disabled: disabled }, rest),
|
|
645
|
-
icon && React.createElement(Icon, null, icon),
|
|
646
|
-
children));
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
var css_248z$x = ".Checkbox-module_checkboxContainer__2oWhu {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .Checkbox-module_checkboxContainer__2oWhu label {\n margin-bottom: 0;\n margin-left: 0; }\n .Checkbox-module_checkboxContainer__2oWhu label:hover {\n cursor: pointer; }\n\n.Checkbox-module_checkboxLabel__27Y6U.Checkbox-module_disabled__3EXUd {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed; }\n";
|
|
650
|
-
var styles$x = {"checkboxContainer":"Checkbox-module_checkboxContainer__2oWhu","checkboxLabel":"Checkbox-module_checkboxLabel__27Y6U","disabled":"Checkbox-module_disabled__3EXUd"};
|
|
701
|
+
var css_248z$x = ".Checkbox-module_checkboxContainer__x2GCi {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .Checkbox-module_checkboxContainer__x2GCi label {\n margin-bottom: 0;\n margin-left: 0; }\n .Checkbox-module_checkboxContainer__x2GCi label:hover {\n cursor: pointer; }\n\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed; }\n";
|
|
702
|
+
var styles$x = {"checkboxContainer":"Checkbox-module_checkboxContainer__x2GCi","checkboxLabel":"Checkbox-module_checkboxLabel__nPY4k","disabled":"Checkbox-module_disabled__wnFIG"};
|
|
651
703
|
styleInject(css_248z$x);
|
|
652
704
|
|
|
653
705
|
const Checkbox = (props) => {
|
|
@@ -691,8 +743,8 @@ const Checkbox = (props) => {
|
|
|
691
743
|
React.createElement("input", Object.assign({ type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value }, rest))));
|
|
692
744
|
};
|
|
693
745
|
|
|
694
|
-
var css_248z$w = ".Chip-
|
|
695
|
-
var styles$w = {"chip":"Chip-
|
|
746
|
+
var css_248z$w = ".Chip-module_chip__dZ5qz {\n display: inline-flex;\n align-items: center;\n padding: 0.5rem;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\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 font-size: 75%;\n font-weight: 700;\n border-radius: 10rem;\n line-height: 1; }\n .Chip-module_chip__dZ5qz svg {\n width: 18px;\n height: 18px; }\n .Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx {\n margin-left: 5px; }\n .Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx:hover {\n cursor: pointer; }\n .Chip-module_chip__dZ5qz.Chip-module_primary__YVDi9 {\n background: var(--primary);\n color: var(--primary-contrast-text); }\n .Chip-module_chip__dZ5qz.Chip-module_secondary__-e4xP {\n background: var(--secondary);\n color: var(--secondary-contrast-text); }\n .Chip-module_chip__dZ5qz.Chip-module_accent__ZCTwu {\n background: var(--accent);\n color: var(--accent-contrast-text); }\n .Chip-module_chip__dZ5qz.Chip-module_light__vKs7O {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Chip-module_chip__dZ5qz.Chip-module_dark__G-FLQ {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover {\n cursor: pointer; }\n .Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_primary__YVDi9 {\n background: var(--primary-dark); }\n .Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_secondary__-e4xP {\n background: var(--secondary-dark); }\n .Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_accent__ZCTwu {\n background: var(--accent-dark); }\n .Chip-module_chip__dZ5qz.Chip-module_shadow__v11NF {\n box-shadow: var(--shadow); }\n";
|
|
747
|
+
var styles$w = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_deleteIcon__--rUx","primary":"Chip-module_primary__YVDi9","secondary":"Chip-module_secondary__-e4xP","accent":"Chip-module_accent__ZCTwu","light":"Chip-module_light__vKs7O","dark":"Chip-module_dark__G-FLQ","clickable":"Chip-module_clickable__qAqVH","shadow":"Chip-module_shadow__v11NF"};
|
|
696
748
|
styleInject(css_248z$w);
|
|
697
749
|
|
|
698
750
|
const Chip = (props) => {
|
|
@@ -715,12 +767,12 @@ const Chip = (props) => {
|
|
|
715
767
|
isDeletable && (React.createElement("div", { className: styles$w.deleteIcon, onClick: e => handleClickOnDelete(e) }, deleteIcon))));
|
|
716
768
|
};
|
|
717
769
|
|
|
718
|
-
var css_248z$v = ".FormLabel-
|
|
719
|
-
var styles$v = {"formLabel":"FormLabel-
|
|
770
|
+
var css_248z$v = ".FormLabel-module_formLabel__TXcHc {\n margin-bottom: .5rem; }\n";
|
|
771
|
+
var styles$v = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
720
772
|
styleInject(css_248z$v);
|
|
721
773
|
|
|
722
|
-
const FormLabel = (
|
|
723
|
-
|
|
774
|
+
const FormLabel = (_a) => {
|
|
775
|
+
var { children, className, htmlFor } = _a, rest = __rest(_a, ["children", "className", "htmlFor"]);
|
|
724
776
|
const getCssClasses = () => {
|
|
725
777
|
const cssClasses = [];
|
|
726
778
|
cssClasses.push(styles$v.formLabel);
|
|
@@ -736,7 +788,7 @@ const FormGroup = (props) => {
|
|
|
736
788
|
};
|
|
737
789
|
|
|
738
790
|
const FileInput = (props) => {
|
|
739
|
-
const { id,
|
|
791
|
+
const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false } = props, rest = __rest(props, ["id", "className", "children", "name", "multiple", "accept", "disabled", "onChange", "readOnly", "value", "deletable"]);
|
|
740
792
|
const inputFileElement = useRef(null);
|
|
741
793
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
742
794
|
const [model, setModel] = useState(value);
|
|
@@ -751,8 +803,7 @@ const FileInput = (props) => {
|
|
|
751
803
|
setFileList(values);
|
|
752
804
|
onChange && onChange(event);
|
|
753
805
|
};
|
|
754
|
-
const handleOnDelete = (
|
|
755
|
-
// TODO - setModel
|
|
806
|
+
const handleOnDelete = () => {
|
|
756
807
|
alert('coming soon');
|
|
757
808
|
};
|
|
758
809
|
return (React.createElement("div", { className: "d-flex align-items-start" },
|
|
@@ -761,8 +812,8 @@ const FileInput = (props) => {
|
|
|
761
812
|
React.createElement("input", Object.assign({ type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model }, rest))));
|
|
762
813
|
};
|
|
763
814
|
|
|
764
|
-
var css_248z$u = ".Select-
|
|
765
|
-
var styles$u = {"selectContainer":"Select-
|
|
815
|
+
var css_248z$u = ".Select-module_selectContainer__DHFDZ {\n position: relative; }\n\n.Select-module_select__Fbn38 {\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex; }\n .Select-module_select__Fbn38:hover {\n cursor: pointer; }\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto; }\n";
|
|
816
|
+
var styles$u = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","selectMenu":"Select-module_selectMenu__8y4kQ"};
|
|
766
817
|
styleInject(css_248z$u);
|
|
767
818
|
|
|
768
819
|
const Select = (props) => {
|
|
@@ -780,7 +831,7 @@ const Select = (props) => {
|
|
|
780
831
|
return cssClasses.filter(r => r).join(' ');
|
|
781
832
|
};
|
|
782
833
|
useEffect(() => {
|
|
783
|
-
const newValue =
|
|
834
|
+
const newValue = value ? value : '';
|
|
784
835
|
writeValue(newValue);
|
|
785
836
|
if (newValue) {
|
|
786
837
|
const option = options.find(o => o.value === newValue);
|
|
@@ -852,7 +903,7 @@ const Select = (props) => {
|
|
|
852
903
|
let result = null;
|
|
853
904
|
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
854
905
|
result = selectedOptions
|
|
855
|
-
.map(
|
|
906
|
+
.map(option => React.createElement(Chip, { key: option.value, className: "mr-2", color: COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option) }, option.label));
|
|
856
907
|
}
|
|
857
908
|
else {
|
|
858
909
|
result = React.createElement("span", null,
|
|
@@ -925,8 +976,8 @@ const Textarea = (props) => {
|
|
|
925
976
|
return (React.createElement("textarea", Object.assign({ className: getCssClass() }, rest)));
|
|
926
977
|
};
|
|
927
978
|
|
|
928
|
-
var css_248z$s = ".FormInput-
|
|
929
|
-
var styles$s = {"formInput":"FormInput-
|
|
979
|
+
var css_248z$s = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }\n .FormInput-module_formInput__VXZip:focus {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }\n";
|
|
980
|
+
var styles$s = {"formInput":"FormInput-module_formInput__VXZip"};
|
|
930
981
|
styleInject(css_248z$s);
|
|
931
982
|
|
|
932
983
|
const FormInput = (props) => {
|
|
@@ -958,15 +1009,19 @@ const FormInput = (props) => {
|
|
|
958
1009
|
type === 'file' &&
|
|
959
1010
|
React.createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: e => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
960
1011
|
type === 'textarea' &&
|
|
961
|
-
React.createElement(Textarea, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange(
|
|
1012
|
+
React.createElement(Textarea, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.rows, style: (textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.resize) !== false ? undefined : { resize: 'none' } }),
|
|
962
1013
|
type === 'select' &&
|
|
963
|
-
React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: e => handleOnChange(e, type, name),
|
|
1014
|
+
React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: e => handleOnChange(e, type, name),
|
|
1015
|
+
// onKeyDown={e => onKeyDown(e)}
|
|
1016
|
+
options: options }),
|
|
964
1017
|
type === 'autocomplete' &&
|
|
965
|
-
React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: e => handleOnChange(e, type, name),
|
|
1018
|
+
React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: e => handleOnChange(e, type, name), options: options }),
|
|
966
1019
|
type === 'checkbox' &&
|
|
967
|
-
React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''),
|
|
1020
|
+
React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''),
|
|
1021
|
+
// onChange={e => handleOnChange((e?.target as HTMLInputElement).checked, type, name as string)}
|
|
1022
|
+
checked: value === 'true' ? true : false }),
|
|
968
1023
|
type === 'radio' &&
|
|
969
|
-
React.createElement(Fragment, null, options.map((option) => React.createElement("div", { className: "form-check", key: option.id },
|
|
1024
|
+
React.createElement(React.Fragment, null, options.map((option) => React.createElement("div", { className: "form-check", key: option.id },
|
|
970
1025
|
React.createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
971
1026
|
React.createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
972
1027
|
};
|
|
@@ -987,7 +1042,7 @@ const FormError = (props) => {
|
|
|
987
1042
|
React.createElement("div", { className: className }, errors.map(e => React.createElement("div", { key: e.validator }, e.message)))));
|
|
988
1043
|
};
|
|
989
1044
|
|
|
990
|
-
const IsEmptyValidator = (value) => value === '' || value === null || value === undefined;
|
|
1045
|
+
const IsEmptyValidator = (value) => value.trim() === '' || value === null || value === undefined;
|
|
991
1046
|
|
|
992
1047
|
const EmailValidator = (value) => {
|
|
993
1048
|
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
@@ -1017,7 +1072,7 @@ class Form extends Component {
|
|
|
1017
1072
|
const values = keys.reduce((obj, f) => {
|
|
1018
1073
|
const control = this.getControl(f);
|
|
1019
1074
|
// TODO - refactor
|
|
1020
|
-
const newValue = ((control.type === 'date' || control.type === 'datetime-local') && control.value && isValidDate(control.value)) ? new Date(control.value).toISOString() : control.value;
|
|
1075
|
+
const newValue = ((control.type === 'date' || control.type === 'datetime-local') && control.value && isValidDate((control.value))) ? new Date((control.value)).toISOString() : control.value;
|
|
1021
1076
|
return (Object.assign(Object.assign({}, obj), { [f]: newValue }));
|
|
1022
1077
|
}, {});
|
|
1023
1078
|
if (this.state.isValid && this.state.isSubmitted) {
|
|
@@ -1064,7 +1119,7 @@ class Form extends Component {
|
|
|
1064
1119
|
}
|
|
1065
1120
|
return errors;
|
|
1066
1121
|
}
|
|
1067
|
-
handleInputChange(name, value
|
|
1122
|
+
handleInputChange(name, value) {
|
|
1068
1123
|
const field = this.getControl(name);
|
|
1069
1124
|
field.value = value;
|
|
1070
1125
|
// redundant mit handleOnBlur
|
|
@@ -1089,7 +1144,6 @@ class Form extends Component {
|
|
|
1089
1144
|
}
|
|
1090
1145
|
}
|
|
1091
1146
|
}
|
|
1092
|
-
;
|
|
1093
1147
|
isRequired(fieldName) {
|
|
1094
1148
|
let result = false;
|
|
1095
1149
|
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
@@ -1108,7 +1162,6 @@ class Form extends Component {
|
|
|
1108
1162
|
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1109
1163
|
return React.createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label);
|
|
1110
1164
|
}
|
|
1111
|
-
;
|
|
1112
1165
|
// trigger via ref
|
|
1113
1166
|
handleFormSubmit() {
|
|
1114
1167
|
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
@@ -1150,7 +1203,7 @@ class Form extends Component {
|
|
|
1150
1203
|
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1151
1204
|
}
|
|
1152
1205
|
getFormGroupCssClass(fieldKey) {
|
|
1153
|
-
|
|
1206
|
+
const result = this.getControl(fieldKey).config.formGroupClassName;
|
|
1154
1207
|
return result;
|
|
1155
1208
|
}
|
|
1156
1209
|
render() {
|
|
@@ -1158,7 +1211,7 @@ class Form extends Component {
|
|
|
1158
1211
|
return (React.createElement(FormGroup, { key: fieldKey, className: this.getFormGroupCssClass(fieldKey) },
|
|
1159
1212
|
this.getControl(fieldKey).config.labelPosition !== 'behind' && this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1160
1213
|
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1161
|
-
React.createElement(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value
|
|
1214
|
+
React.createElement(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }),
|
|
1162
1215
|
this.getControl(fieldKey).config.labelPosition === 'behind' && this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1163
1216
|
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1164
1217
|
this.getControl(fieldKey).config.hint &&
|
|
@@ -1173,7 +1226,9 @@ function isValidDate(dateObject) {
|
|
|
1173
1226
|
}
|
|
1174
1227
|
|
|
1175
1228
|
class FormControl {
|
|
1176
|
-
constructor(
|
|
1229
|
+
constructor(
|
|
1230
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1231
|
+
value, validators = [], type, config) {
|
|
1177
1232
|
this.value = value;
|
|
1178
1233
|
this.validators = validators;
|
|
1179
1234
|
this.type = type;
|
|
@@ -1190,7 +1245,7 @@ const DaySelect = (props) => {
|
|
|
1190
1245
|
init();
|
|
1191
1246
|
}, [month, year]);
|
|
1192
1247
|
const init = () => {
|
|
1193
|
-
|
|
1248
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
1194
1249
|
const newDays = [];
|
|
1195
1250
|
for (let i = 1; i <= daysInMonth; i++) {
|
|
1196
1251
|
newDays.push({ value: i.toString(), label: i.toString() });
|
|
@@ -1299,12 +1354,12 @@ const DateSelect = (props) => {
|
|
|
1299
1354
|
// return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)
|
|
1300
1355
|
// };
|
|
1301
1356
|
|
|
1302
|
-
var css_248z$r = ".Drawer-
|
|
1303
|
-
var styles$r = {"drawer":"Drawer-
|
|
1357
|
+
var css_248z$r = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 280px;\n overflow-y: auto; }\n .Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0; }\n .Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0; }\n .Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2; }\n .Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow); }\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden; }\n";
|
|
1358
|
+
var styles$r = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
|
|
1304
1359
|
styleInject(css_248z$r);
|
|
1305
1360
|
|
|
1306
1361
|
const Drawer = (props) => {
|
|
1307
|
-
const { children, className, position = 'left', permanent = false, target = document.body, onClickBackdrop } = props;
|
|
1362
|
+
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop } = props, rest = __rest(props, ["children", "className", "position", "permanent", "target", "shadow", "onClickBackdrop"]);
|
|
1308
1363
|
useEffect(() => {
|
|
1309
1364
|
document.body.classList.add(styles$r.drawerOpen);
|
|
1310
1365
|
return () => {
|
|
@@ -1314,18 +1369,19 @@ const Drawer = (props) => {
|
|
|
1314
1369
|
const handleClickBackdrop = () => {
|
|
1315
1370
|
onClickBackdrop && onClickBackdrop();
|
|
1316
1371
|
};
|
|
1317
|
-
return createPortal(React.createElement(Fragment, null,
|
|
1318
|
-
React.createElement(DrawerContent, { className: className, position: position, permanent: permanent }, children),
|
|
1372
|
+
return createPortal(React.createElement(React.Fragment, null,
|
|
1373
|
+
React.createElement(DrawerContent, Object.assign({ className: className, position: position, permanent: permanent, shadow: shadow }, rest), children),
|
|
1319
1374
|
!permanent && React.createElement(Backdrop, { onClick: handleClickBackdrop })), target);
|
|
1320
1375
|
};
|
|
1321
1376
|
const DrawerContent = (props) => {
|
|
1322
|
-
const { children, className, position = 'left', permanent = false } = props;
|
|
1377
|
+
const { children, className, position = 'left', permanent = false, shadow } = props, rest = __rest(props, ["children", "className", "position", "permanent", "shadow"]);
|
|
1323
1378
|
const getCssClasses = () => {
|
|
1324
1379
|
const cssClasses = [];
|
|
1325
1380
|
cssClasses.push(styles$r.drawer);
|
|
1326
|
-
|
|
1381
|
+
shadow && cssClasses.push(styles$r.shadow);
|
|
1327
1382
|
!!permanent && cssClasses.push(styles$r['permanent']);
|
|
1328
1383
|
position === 'left' ? cssClasses.push(styles$r['left']) : cssClasses.push(styles$r['right']);
|
|
1384
|
+
className && cssClasses.push(className);
|
|
1329
1385
|
return cssClasses.filter(css => css).join(' ');
|
|
1330
1386
|
};
|
|
1331
1387
|
const positionStyles = {
|
|
@@ -1335,25 +1391,26 @@ const DrawerContent = (props) => {
|
|
|
1335
1391
|
const getStyles = () => {
|
|
1336
1392
|
return !permanent ? positionStyles[position] : undefined;
|
|
1337
1393
|
};
|
|
1338
|
-
return (React.createElement("div", { className: getCssClasses(), style: getStyles() }, children));
|
|
1394
|
+
return (React.createElement("div", Object.assign({ className: getCssClasses(), style: getStyles() }, rest), children));
|
|
1339
1395
|
};
|
|
1340
1396
|
|
|
1341
|
-
var css_248z$q = ".MenuBody-
|
|
1342
|
-
var styles$q = {"menuBody":"MenuBody-
|
|
1397
|
+
var css_248z$q = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 8px 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius); }\n .MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow); }\n";
|
|
1398
|
+
var styles$q = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
|
|
1343
1399
|
styleInject(css_248z$q);
|
|
1344
1400
|
|
|
1345
1401
|
const MenuBody = (props) => {
|
|
1346
1402
|
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
1347
1403
|
const menuBodyRef = useRef(null);
|
|
1348
1404
|
useEffect(() => {
|
|
1349
|
-
if (menuBodyRef) {
|
|
1405
|
+
if (menuBodyRef && parentRef.current && menuBodyRef.current) {
|
|
1350
1406
|
createPopper(parentRef.current, menuBodyRef.current, {
|
|
1351
1407
|
placement: `${menuPosition}-start`,
|
|
1352
1408
|
modifiers: [
|
|
1353
1409
|
{
|
|
1354
1410
|
name: 'offset',
|
|
1355
1411
|
options: {
|
|
1356
|
-
|
|
1412
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1413
|
+
offset: ({ placement, popper }) => {
|
|
1357
1414
|
if (placement === 'left-start') {
|
|
1358
1415
|
return [0, -popper.width]; // y, x
|
|
1359
1416
|
}
|
|
@@ -1383,12 +1440,12 @@ const MenuBody = (props) => {
|
|
|
1383
1440
|
React.createElement(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })), document.body));
|
|
1384
1441
|
};
|
|
1385
1442
|
|
|
1386
|
-
var css_248z$p = ".Menu-
|
|
1387
|
-
var styles$p = {"menu":"Menu-
|
|
1443
|
+
var css_248z$p = ".Menu-module_menu__p8QL- {\n display: flex; }\n";
|
|
1444
|
+
var styles$p = {"menu":"Menu-module_menu__p8QL-"};
|
|
1388
1445
|
styleInject(css_248z$p);
|
|
1389
1446
|
|
|
1390
1447
|
const Menu = (props) => {
|
|
1391
|
-
const { toggle, children, className, open, menuPosition, onClickBackdrop
|
|
1448
|
+
const { toggle, children, className, open, menuPosition, onClickBackdrop } = props, rest = __rest(props, ["toggle", "children", "className", "open", "menuPosition", "onClickBackdrop"]);
|
|
1392
1449
|
const menuContainer = useRef(null);
|
|
1393
1450
|
const toggleContainerRef = useRef(null);
|
|
1394
1451
|
const getCssClasses = () => {
|
|
@@ -1406,8 +1463,8 @@ const Menu = (props) => {
|
|
|
1406
1463
|
React.createElement(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop }, children)));
|
|
1407
1464
|
};
|
|
1408
1465
|
|
|
1409
|
-
var css_248z$o = ".MenuItem-
|
|
1410
|
-
var styles$o = {"menuItem":"MenuItem-
|
|
1466
|
+
var css_248z$o = ".MenuItem-module_menuItem__MeBxN {\n display: flex;\n width: 100%;\n padding: 0.25rem 1.5rem;\n clear: both;\n font-weight: 400;\n color: #212529;\n text-align: inherit;\n text-decoration: none;\n white-space: nowrap;\n background-color: transparent;\n border: 0; }\n .MenuItem-module_menuItem__MeBxN.MenuItem-module_menuItemHeader__2l732 {\n margin-bottom: 0;\n font-size: 0.875rem; }\n .MenuItem-module_menuItem__MeBxN:hover {\n cursor: pointer;\n color: #1e2125;\n background-color: rgba(0, 0, 0, 0.04); }\n";
|
|
1467
|
+
var styles$o = {"menuItem":"MenuItem-module_menuItem__MeBxN","menuItemHeader":"MenuItem-module_menuItemHeader__2l732"};
|
|
1411
1468
|
styleInject(css_248z$o);
|
|
1412
1469
|
|
|
1413
1470
|
const MenuItem = (props) => {
|
|
@@ -1424,9 +1481,7 @@ const MenuItem = (props) => {
|
|
|
1424
1481
|
e.stopPropagation();
|
|
1425
1482
|
onClick && onClick(e);
|
|
1426
1483
|
};
|
|
1427
|
-
return (React.createElement(ConditionalWrapper, { condition: true, wrapper: children => ((type === 'item' ? (
|
|
1428
|
-
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
1429
|
-
React.createElement("a", { className: getCssClasses(), onClick: handleClick }, children)) :
|
|
1484
|
+
return (React.createElement(ConditionalWrapper, { condition: true, wrapper: children => ((type === 'item' ? (React.createElement("a", { className: getCssClasses(), onClick: handleClick }, children)) :
|
|
1430
1485
|
React.createElement("div", { className: getCssClasses(), onClick: handleClick }, children))) }, children));
|
|
1431
1486
|
};
|
|
1432
1487
|
|
|
@@ -1434,22 +1489,22 @@ const MenuToggle = ({ children }) => {
|
|
|
1434
1489
|
return (React.createElement(Fragment, null, children));
|
|
1435
1490
|
};
|
|
1436
1491
|
|
|
1437
|
-
var css_248z$n = ".MenuDivider-
|
|
1438
|
-
var styles$n = {"menuItemDivider":"MenuDivider-
|
|
1492
|
+
var css_248z$n = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef; }\n";
|
|
1493
|
+
var styles$n = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
|
|
1439
1494
|
styleInject(css_248z$n);
|
|
1440
1495
|
|
|
1441
1496
|
const MenuDivider = () => React.createElement("div", { className: styles$n.menuItemDivider });
|
|
1442
1497
|
|
|
1443
|
-
var css_248z$m = ".ExpansionPanelContent-
|
|
1444
|
-
var styles$m = {"expansionPanelContent":"ExpansionPanelContent-
|
|
1498
|
+
var css_248z$m = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px; }\n";
|
|
1499
|
+
var styles$m = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
1445
1500
|
styleInject(css_248z$m);
|
|
1446
1501
|
|
|
1447
1502
|
const ExpansionPanelContent = ({ children }) => {
|
|
1448
1503
|
return (React.createElement("div", { className: styles$m.expansionPanelContent }, children));
|
|
1449
1504
|
};
|
|
1450
1505
|
|
|
1451
|
-
var css_248z$l = ".ExpansionPanelHeader-
|
|
1452
|
-
var styles$l = {"expansionPanelHeader":"ExpansionPanelHeader-
|
|
1506
|
+
var css_248z$l = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px; }\n .ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight); }\n";
|
|
1507
|
+
var styles$l = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
|
|
1453
1508
|
styleInject(css_248z$l);
|
|
1454
1509
|
|
|
1455
1510
|
const ExpansionPanelHeader = (props) => {
|
|
@@ -1464,8 +1519,8 @@ const ExpansionPanelHeader = (props) => {
|
|
|
1464
1519
|
React.createElement(Icon, null, isExpanded ? React.createElement(ChevronUpSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null)))));
|
|
1465
1520
|
};
|
|
1466
1521
|
|
|
1467
|
-
var css_248z$k = ".ExpansionPanel-
|
|
1468
|
-
var styles$k = {"expansionPanel":"ExpansionPanel-
|
|
1522
|
+
var css_248z$k = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\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 .ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px; }\n .ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px; }\n .ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph {\n margin: 16px 0; }\n .ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0; }\n .ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0; }\n";
|
|
1523
|
+
var styles$k = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
|
|
1469
1524
|
styleInject(css_248z$k);
|
|
1470
1525
|
|
|
1471
1526
|
const ExpansionPanel = (props) => {
|
|
@@ -1492,8 +1547,8 @@ const ExpansionPanel = (props) => {
|
|
|
1492
1547
|
React.createElement(ExpansionPanelContent, null, children)));
|
|
1493
1548
|
};
|
|
1494
1549
|
|
|
1495
|
-
var css_248z$j = ".FloatingActionButton-
|
|
1496
|
-
var styles$j = {"fab":"FloatingActionButton-
|
|
1550
|
+
var css_248z$j = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow); }\n .FloatingActionButton-module_fab__Rw3kd.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n bottom: 16px;\n right: 16px;\n z-index: 1000; }\n";
|
|
1551
|
+
var styles$j = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG"};
|
|
1497
1552
|
styleInject(css_248z$j);
|
|
1498
1553
|
|
|
1499
1554
|
const FloatingActionButton = (props) => {
|
|
@@ -1562,8 +1617,8 @@ const Link = (props) => {
|
|
|
1562
1617
|
return (React.createElement("a", Object.assign({ className: getCssClasses(), href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, rest), children));
|
|
1563
1618
|
};
|
|
1564
1619
|
|
|
1565
|
-
var css_248z$i = ".LoadingIndicator-
|
|
1566
|
-
var styles$i = {"loadingIndicatorContainer":"LoadingIndicator-
|
|
1620
|
+
var css_248z$i = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%; }\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px; }\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg); }\n to {\n transform: rotate(360deg); } }\n";
|
|
1621
|
+
var styles$i = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
|
|
1567
1622
|
styleInject(css_248z$i);
|
|
1568
1623
|
|
|
1569
1624
|
const LoadingIndicator = (_a) => {
|
|
@@ -1588,38 +1643,36 @@ const LoadingIndicatorContainer = ({ children }) => {
|
|
|
1588
1643
|
|
|
1589
1644
|
class LoadingIndicatorService {
|
|
1590
1645
|
show() {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
React.createElement(LoadingIndicator, null)), this.container);
|
|
1600
|
-
});
|
|
1646
|
+
if (this.container) {
|
|
1647
|
+
this.hide();
|
|
1648
|
+
}
|
|
1649
|
+
this.container = document.createElement('div');
|
|
1650
|
+
this.container.classList.add('snackbar-container');
|
|
1651
|
+
document.body.appendChild(this.container);
|
|
1652
|
+
render(React.createElement(LoadingIndicatorContainer, null,
|
|
1653
|
+
React.createElement(LoadingIndicator, null)), this.container);
|
|
1601
1654
|
}
|
|
1602
1655
|
hide() {
|
|
1603
1656
|
if (this.container) {
|
|
1604
1657
|
unmountComponentAtNode(this.container);
|
|
1605
1658
|
document.body.removeChild(this.container);
|
|
1606
|
-
this.container =
|
|
1607
|
-
clearTimeout(this.handler);
|
|
1659
|
+
this.container = undefined;
|
|
1660
|
+
this.handler && clearTimeout(this.handler);
|
|
1608
1661
|
}
|
|
1609
1662
|
}
|
|
1610
1663
|
}
|
|
1611
1664
|
const loadingIndicatorService = new LoadingIndicatorService();
|
|
1612
1665
|
|
|
1613
|
-
var css_248z$h = ".ModalHeader-
|
|
1614
|
-
var styles$h = {"modalHeader":"ModalHeader-
|
|
1666
|
+
var css_248z$h = ".ModalHeader-module_modalHeader__tw-u- {\n border-bottom: none;\n align-items: center; }\n";
|
|
1667
|
+
var styles$h = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-"};
|
|
1615
1668
|
styleInject(css_248z$h);
|
|
1616
1669
|
|
|
1617
1670
|
const ModalHeader = (props) => {
|
|
1618
|
-
const { children, isDismissable = false, onClose } = props;
|
|
1671
|
+
const { children, isDismissable = false, onClose } = props, rest = __rest(props, ["children", "isDismissable", "onClose"]);
|
|
1619
1672
|
const handleClick = () => {
|
|
1620
1673
|
onClose && onClose();
|
|
1621
1674
|
};
|
|
1622
|
-
return (React.createElement("div", { className: "modal-header " + styles$h.modalHeader },
|
|
1675
|
+
return (React.createElement("div", Object.assign({ className: "modal-header " + styles$h.modalHeader }, rest),
|
|
1623
1676
|
React.createElement("h5", { className: "modal-title" }, children),
|
|
1624
1677
|
isDismissable &&
|
|
1625
1678
|
React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), variant: VARIANT.text, onClick: handleClick })));
|
|
@@ -1627,12 +1680,12 @@ const ModalHeader = (props) => {
|
|
|
1627
1680
|
|
|
1628
1681
|
const ModalBody = ({ children }) => (React.createElement("div", { className: "modal-body" }, children));
|
|
1629
1682
|
|
|
1630
|
-
var css_248z$g = ".Modal-
|
|
1631
|
-
var styles$g = {"modal":"Modal-
|
|
1683
|
+
var css_248z$g = ".Modal-module_modal__HMxWV {\n z-index: 1111 !important;\n border-radius: var(--borderRadius); }\n .Modal-module_modal__HMxWV.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0; }\n .Modal-module_modal__HMxWV.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto; }\n @media (min-width: 320px) {\n .Modal-module_modal__HMxWV.Modal-module_fullscreen__iepGa {\n max-width: 100% !important; } }\n .Modal-module_modal__HMxWV .Modal-module_sm__CsR6U {\n max-width: 300px; }\n .Modal-module_modal__HMxWV .Modal-module_md__lNggx {\n max-width: 500px; }\n .Modal-module_modal__HMxWV .Modal-module_lg__6dtT2 {\n max-width: 1140px; }\n @media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px; } }\n";
|
|
1684
|
+
var styles$g = {"modal":"Modal-module_modal__HMxWV","fullscreen":"Modal-module_fullscreen__iepGa","modalContent":"Modal-module_modalContent__9wAwB","sm":"Modal-module_sm__CsR6U","md":"Modal-module_md__lNggx","lg":"Modal-module_lg__6dtT2","modal-dialog":"Modal-module_modal-dialog__U2wGf"};
|
|
1632
1685
|
styleInject(css_248z$g);
|
|
1633
1686
|
|
|
1634
|
-
var css_248z$f = ".ModalFooter-
|
|
1635
|
-
var styles$f = {"modalFooter":"ModalFooter-
|
|
1687
|
+
var css_248z$f = ".ModalFooter-module_modalFooter__SNm-f {\n border-top: none; }\n";
|
|
1688
|
+
var styles$f = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f"};
|
|
1636
1689
|
styleInject(css_248z$f);
|
|
1637
1690
|
|
|
1638
1691
|
const ModalFooter = ({ children }) => (React.createElement("div", { className: "modal-footer " + styles$f.modalFooter }, children));
|
|
@@ -1660,7 +1713,7 @@ const Modal = (props) => {
|
|
|
1660
1713
|
return (React.createElement(Fragment, null,
|
|
1661
1714
|
React.createElement("div", { className: "modal show " + styles$g.modal, style: { display: 'block' } },
|
|
1662
1715
|
React.createElement("div", { className: getCssClass() },
|
|
1663
|
-
React.createElement("div", { className: 'modal-content ' + (
|
|
1716
|
+
React.createElement("div", { className: 'modal-content ' + (fullScreen ? styles$g['modalContent'] : undefined) },
|
|
1664
1717
|
header &&
|
|
1665
1718
|
React.createElement(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick() }, header),
|
|
1666
1719
|
React.createElement(ModalBody, null, children),
|
|
@@ -1835,7 +1888,9 @@ const Sidebar = (props) => {
|
|
|
1835
1888
|
const handleClickItem = (item, e) => {
|
|
1836
1889
|
if (item.items && item.items.length > 0 && item.isCollapsible) {
|
|
1837
1890
|
const newMenuItems = menuItems.map((menuItem) => {
|
|
1838
|
-
|
|
1891
|
+
if (item.id === menuItem.id) {
|
|
1892
|
+
menuItem.isCollapsed = !item.isCollapsed;
|
|
1893
|
+
}
|
|
1839
1894
|
return menuItem;
|
|
1840
1895
|
});
|
|
1841
1896
|
setMenuItems(newMenuItems);
|
|
@@ -1861,8 +1916,8 @@ const Sidebar = (props) => {
|
|
|
1861
1916
|
!item.isCollapsed && item.items && item.items.length > 0 && (React.createElement(List, { className: "list-level-1", key: `${item.id}-sub` }, item.items.map(subItem => (React.createElement(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), key: subItem.id, onClick: (e) => handleClickSubItem(item.path, subItem.path, e) }, subItem.label)))))))))));
|
|
1862
1917
|
};
|
|
1863
1918
|
|
|
1864
|
-
var css_248z$e = ".Snackbar-
|
|
1865
|
-
var styles$e = {"snackbar":"Snackbar-
|
|
1919
|
+
var css_248z$e = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius); }\n .Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0; }\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto; }\n .Snackbar-module_action__vus2Y:hover {\n cursor: pointer; }\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0; }\n 50% {\n opacity: 0.9; }\n 80% {\n opacity: 1; }\n 100% {\n opacity: 1; } }\n";
|
|
1920
|
+
var styles$e = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
1866
1921
|
styleInject(css_248z$e);
|
|
1867
1922
|
|
|
1868
1923
|
const Snackbar = (props) => {
|
|
@@ -1887,7 +1942,7 @@ class SnackbarService {
|
|
|
1887
1942
|
show(message, options) {
|
|
1888
1943
|
const defaultOptions = { timeout: 3000, actionText: 'ok', color: COLOR.dark, target: document.body };
|
|
1889
1944
|
const mergedOptions = Object.assign(defaultOptions, options);
|
|
1890
|
-
return new Promise((resolve
|
|
1945
|
+
return new Promise((resolve) => {
|
|
1891
1946
|
if (this.container) {
|
|
1892
1947
|
this.hide();
|
|
1893
1948
|
}
|
|
@@ -1910,15 +1965,15 @@ class SnackbarService {
|
|
|
1910
1965
|
if (this.container) {
|
|
1911
1966
|
unmountComponentAtNode(this.container);
|
|
1912
1967
|
document.body.removeChild(this.container);
|
|
1913
|
-
this.container =
|
|
1914
|
-
clearTimeout(this.handler);
|
|
1968
|
+
this.container = undefined;
|
|
1969
|
+
this.handler && clearTimeout(this.handler);
|
|
1915
1970
|
}
|
|
1916
1971
|
}
|
|
1917
1972
|
}
|
|
1918
1973
|
const snackbarService = new SnackbarService();
|
|
1919
1974
|
|
|
1920
|
-
var css_248z$d = ".SpeedDialActions-
|
|
1921
|
-
var styles$d = {"speedDialActions":"SpeedDialActions-
|
|
1975
|
+
var css_248z$d = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto; }\n";
|
|
1976
|
+
var styles$d = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
|
|
1922
1977
|
styleInject(css_248z$d);
|
|
1923
1978
|
|
|
1924
1979
|
const SpeedDialActions = (props) => {
|
|
@@ -1931,8 +1986,8 @@ const SpeedDialActions = (props) => {
|
|
|
1931
1986
|
return (React.createElement("div", { className: getCssClasses() }, children));
|
|
1932
1987
|
};
|
|
1933
1988
|
|
|
1934
|
-
var css_248z$c = ".SpeedDial-
|
|
1935
|
-
var styles$c = {"speedDial":"SpeedDial-
|
|
1989
|
+
var css_248z$c = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n";
|
|
1990
|
+
var styles$c = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
|
|
1936
1991
|
styleInject(css_248z$c);
|
|
1937
1992
|
|
|
1938
1993
|
const SpeedDial = (props) => {
|
|
@@ -1956,8 +2011,8 @@ const SpeedDial = (props) => {
|
|
|
1956
2011
|
React.createElement(SpeedDialActions, null, children)));
|
|
1957
2012
|
};
|
|
1958
2013
|
|
|
1959
|
-
var css_248z$b = ".SpeedDialAction-
|
|
1960
|
-
var styles$b = {"speedDialAction":"SpeedDialAction-
|
|
2014
|
+
var css_248z$b = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px; }\n";
|
|
2015
|
+
var styles$b = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
|
|
1961
2016
|
styleInject(css_248z$b);
|
|
1962
2017
|
|
|
1963
2018
|
const SpeedDialAction = (props) => {
|
|
@@ -1981,8 +2036,8 @@ const SpeedDialIcon = (props) => {
|
|
|
1981
2036
|
return (React.createElement(Icon, Object.assign({ className: getCssClasses() }, rest), children));
|
|
1982
2037
|
};
|
|
1983
2038
|
|
|
1984
|
-
var css_248z$a = ".StepperActions-
|
|
1985
|
-
var styles$a = {"stepperActions":"StepperActions-
|
|
2039
|
+
var css_248z$a = ".StepperActions-module_stepperActions__hBUkh {\n display: flex; }\n";
|
|
2040
|
+
var styles$a = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
|
|
1986
2041
|
styleInject(css_248z$a);
|
|
1987
2042
|
|
|
1988
2043
|
const StepperActions = (props) => {
|
|
@@ -2006,8 +2061,8 @@ const StepPanel = (props) => {
|
|
|
2006
2061
|
return (React.createElement("div", { className: "steppanel" }, children));
|
|
2007
2062
|
};
|
|
2008
2063
|
|
|
2009
|
-
var css_248z$9 = ".StepConnector-
|
|
2010
|
-
var styles$9 = {"stepConnector":"StepConnector-
|
|
2064
|
+
var css_248z$9 = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px; }\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary); }\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px; }\n";
|
|
2065
|
+
var styles$9 = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
|
|
2011
2066
|
styleInject(css_248z$9);
|
|
2012
2067
|
|
|
2013
2068
|
const StepConnector = (props) => {
|
|
@@ -2028,8 +2083,8 @@ const StepConnector = (props) => {
|
|
|
2028
2083
|
React.createElement("div", { className: getCssClassesLine() })));
|
|
2029
2084
|
};
|
|
2030
2085
|
|
|
2031
|
-
var css_248z$8 = ".Stepper-
|
|
2032
|
-
var styles$8 = {"stepper":"Stepper-
|
|
2086
|
+
var css_248z$8 = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px; }\n .Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto; }\n";
|
|
2087
|
+
var styles$8 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
|
|
2033
2088
|
styleInject(css_248z$8);
|
|
2034
2089
|
|
|
2035
2090
|
const Stepper = (props) => {
|
|
@@ -2065,7 +2120,7 @@ const Stepper = (props) => {
|
|
|
2065
2120
|
isDisabled: isLinear && (activeIndex + 1 < index),
|
|
2066
2121
|
showLabel: showLabel,
|
|
2067
2122
|
showProgressCheckIcon: showProgressCheckIcon,
|
|
2068
|
-
onClick: (
|
|
2123
|
+
onClick: (e) => handleClickStep(e.event, e.value, index)
|
|
2069
2124
|
});
|
|
2070
2125
|
};
|
|
2071
2126
|
const isStepOptional = (index) => {
|
|
@@ -2132,64 +2187,8 @@ const Stepper = (props) => {
|
|
|
2132
2187
|
React.createElement(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset }))));
|
|
2133
2188
|
};
|
|
2134
2189
|
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
width: 0,
|
|
2138
|
-
height: 0,
|
|
2139
|
-
});
|
|
2140
|
-
useEffect(() => {
|
|
2141
|
-
function handleResize() {
|
|
2142
|
-
setWindowSize({
|
|
2143
|
-
width: window.innerWidth,
|
|
2144
|
-
height: window.innerHeight,
|
|
2145
|
-
});
|
|
2146
|
-
}
|
|
2147
|
-
window.addEventListener("resize", handleResize);
|
|
2148
|
-
handleResize();
|
|
2149
|
-
return () => window.removeEventListener("resize", handleResize);
|
|
2150
|
-
}, []);
|
|
2151
|
-
return windowSize;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
function useHover() {
|
|
2155
|
-
const [value, setValue] = useState(false);
|
|
2156
|
-
const ref = useRef(null);
|
|
2157
|
-
const handleMouseOver = () => setValue(true);
|
|
2158
|
-
const handleMouseOut = () => setValue(false);
|
|
2159
|
-
useEffect(() => {
|
|
2160
|
-
const node = ref.current;
|
|
2161
|
-
if (node) {
|
|
2162
|
-
node.addEventListener("mouseover", handleMouseOver);
|
|
2163
|
-
node.addEventListener("mouseout", handleMouseOut);
|
|
2164
|
-
return () => {
|
|
2165
|
-
node.removeEventListener("mouseover", handleMouseOver);
|
|
2166
|
-
node.removeEventListener("mouseout", handleMouseOut);
|
|
2167
|
-
};
|
|
2168
|
-
}
|
|
2169
|
-
}, [ref.current] // Recall only if ref changes
|
|
2170
|
-
);
|
|
2171
|
-
return [ref, value];
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
const useConstructor = (callBack = () => { }) => {
|
|
2175
|
-
const [hasBeenCalled, setHasBeenCalled] = useState(false);
|
|
2176
|
-
if (hasBeenCalled)
|
|
2177
|
-
return;
|
|
2178
|
-
callBack();
|
|
2179
|
-
setHasBeenCalled(true);
|
|
2180
|
-
};
|
|
2181
|
-
|
|
2182
|
-
function useDebounce(callback, timeout, deps) {
|
|
2183
|
-
const timeoutId = useRef();
|
|
2184
|
-
useEffect(() => {
|
|
2185
|
-
clearTimeout(timeoutId.current);
|
|
2186
|
-
timeoutId.current = setTimeout(callback, timeout);
|
|
2187
|
-
return () => clearTimeout(timeoutId.current);
|
|
2188
|
-
}, deps);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
var css_248z$7 = ".Typography-module_typography__2bM6E {\n text-overflow: ellipsis;\n overflow: hidden !important; }\n";
|
|
2192
|
-
var styles$7 = {"typography":"Typography-module_typography__2bM6E"};
|
|
2190
|
+
var css_248z$7 = ".Typography-module_typography__sw-td {\n text-overflow: ellipsis;\n overflow: hidden !important; }\n";
|
|
2191
|
+
var styles$7 = {"typography":"Typography-module_typography__sw-td"};
|
|
2193
2192
|
styleInject(css_248z$7);
|
|
2194
2193
|
|
|
2195
2194
|
const Wrapper = (props) => {
|
|
@@ -2207,16 +2206,17 @@ const Typography = (_a) => {
|
|
|
2207
2206
|
return (React.createElement(Wrapper, Object.assign({ as: as }, rest), children));
|
|
2208
2207
|
};
|
|
2209
2208
|
|
|
2210
|
-
var css_248z$6 = ".Step-
|
|
2211
|
-
var styles$6 = {"stepWrapper":"Step-
|
|
2209
|
+
var css_248z$6 = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius); }\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04); }\n .Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important; }\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px; }\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text); }\n .Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text); }\n";
|
|
2210
|
+
var styles$6 = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
|
|
2212
2211
|
styleInject(css_248z$6);
|
|
2213
2212
|
|
|
2214
2213
|
const Step = (props) => {
|
|
2215
2214
|
const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
|
|
2216
|
-
const
|
|
2217
|
-
const
|
|
2215
|
+
const hoverRef = useRef(null);
|
|
2216
|
+
const isHover = useHover(hoverRef);
|
|
2217
|
+
const handleClick = (event) => {
|
|
2218
2218
|
if (!isDisabled) {
|
|
2219
|
-
onClick && onClick(
|
|
2219
|
+
onClick && onClick({ event, value });
|
|
2220
2220
|
}
|
|
2221
2221
|
};
|
|
2222
2222
|
const getCssClasses = () => {
|
|
@@ -2234,11 +2234,18 @@ const Step = (props) => {
|
|
|
2234
2234
|
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
2235
2235
|
return cssClasses.filter(css => css).join(' ');
|
|
2236
2236
|
};
|
|
2237
|
+
const getCssClassesStepValue = () => {
|
|
2238
|
+
const cssClasses = [];
|
|
2239
|
+
cssClasses.push(styles$6.stepValue);
|
|
2240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2241
|
+
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
2242
|
+
return cssClasses.filter(css => css).join(' ');
|
|
2243
|
+
};
|
|
2237
2244
|
return (React.createElement("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick },
|
|
2238
2245
|
React.createElement("div", { className: getCssClassesStep() },
|
|
2239
|
-
React.createElement(Icon, { className: styles$6.stepIconCircle, iconColor: (
|
|
2246
|
+
React.createElement(Icon, { className: styles$6.stepIconCircle, iconColor: (isHover || isActive) && !isDisabled ? COLOR.primary : COLOR.secondary },
|
|
2240
2247
|
React.createElement(CircleSolidIcon, null)),
|
|
2241
|
-
React.createElement("div", { className:
|
|
2248
|
+
React.createElement("div", { className: getCssClassesStepValue() }, showProgressCheckIcon && isActive && isDone ?
|
|
2242
2249
|
React.createElement(Icon, null,
|
|
2243
2250
|
React.createElement(CheckSolidIcon, null))
|
|
2244
2251
|
:
|
|
@@ -2262,8 +2269,8 @@ const Table = (props) => {
|
|
|
2262
2269
|
React.createElement("table", { className: getCssClasses() }, children)));
|
|
2263
2270
|
};
|
|
2264
2271
|
|
|
2265
|
-
var css_248z$5 = ".TabIndicator-
|
|
2266
|
-
var styles$5 = {"tabIndicator":"TabIndicator-
|
|
2272
|
+
var css_248z$5 = ".TabIndicator-module_tabIndicator__jSJhH {\n bottom: 0;\n height: 2px;\n position: absolute;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; }\n .TabIndicator-module_tabIndicator__jSJhH.TabIndicator-module_primary__Q5jEo {\n background-color: var(--primary); }\n .TabIndicator-module_tabIndicator__jSJhH.TabIndicator-module_accent__qbgIG {\n background-color: var(--accent); }\n";
|
|
2273
|
+
var styles$5 = {"tabIndicator":"TabIndicator-module_tabIndicator__jSJhH","primary":"TabIndicator-module_primary__Q5jEo","accent":"TabIndicator-module_accent__qbgIG"};
|
|
2267
2274
|
styleInject(css_248z$5);
|
|
2268
2275
|
|
|
2269
2276
|
const TabIndicator = (props) => {
|
|
@@ -2280,8 +2287,8 @@ const TabIndicator = (props) => {
|
|
|
2280
2287
|
} }));
|
|
2281
2288
|
};
|
|
2282
2289
|
|
|
2283
|
-
var css_248z$4 = ".Tabs-
|
|
2284
|
-
var styles$4 = {"tabs":"Tabs-
|
|
2290
|
+
var css_248z$4 = ".Tabs-module_tabs__YyRTZ {\n display: flex;\n position: relative; }\n";
|
|
2291
|
+
var styles$4 = {"tabs":"Tabs-module_tabs__YyRTZ"};
|
|
2285
2292
|
styleInject(css_248z$4);
|
|
2286
2293
|
|
|
2287
2294
|
const Tabs = (props) => {
|
|
@@ -2304,25 +2311,25 @@ const Tabs = (props) => {
|
|
|
2304
2311
|
const handleClickTab = (event, newValue, index) => {
|
|
2305
2312
|
setSelectedValue(newValue);
|
|
2306
2313
|
setSelectedIndex(index);
|
|
2307
|
-
onChange && onChange(event, newValue);
|
|
2314
|
+
onChange && onChange({ event, newValue });
|
|
2308
2315
|
};
|
|
2309
2316
|
const renderTabs = (child, index) => {
|
|
2310
2317
|
return React.isValidElement(child) && cloneElement(child, {
|
|
2311
2318
|
key: child.props.value,
|
|
2312
2319
|
isActive: child.props.value === selectedValue,
|
|
2313
2320
|
fixed: fixed,
|
|
2314
|
-
onClick: (
|
|
2321
|
+
onClick: (e) => handleClickTab(e.event, e.value, index),
|
|
2315
2322
|
});
|
|
2316
2323
|
};
|
|
2317
|
-
return (React.createElement(Fragment, null,
|
|
2324
|
+
return (React.createElement(React.Fragment, null,
|
|
2318
2325
|
React.createElement("div", { className: getCssClasses() },
|
|
2319
2326
|
children && React.Children.toArray(children).map((child, index) => renderTabs(child, index)),
|
|
2320
2327
|
children &&
|
|
2321
2328
|
React.createElement(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length }))));
|
|
2322
2329
|
};
|
|
2323
2330
|
|
|
2324
|
-
var css_248z$3 = ".Tab-
|
|
2325
|
-
var styles$3 = {"tab":"Tab-
|
|
2331
|
+
var css_248z$3 = ".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";
|
|
2332
|
+
var styles$3 = {"tab":"Tab-module_tab__Q8w1f"};
|
|
2326
2333
|
styleInject(css_248z$3);
|
|
2327
2334
|
|
|
2328
2335
|
const Tab = (props) => {
|
|
@@ -2336,25 +2343,25 @@ const Tab = (props) => {
|
|
|
2336
2343
|
className && cssClasses.push(className);
|
|
2337
2344
|
return cssClasses.filter(css => css).join(' ');
|
|
2338
2345
|
};
|
|
2339
|
-
return (React.createElement(Button, { className: getCssClasses(), onClick: (event) => onClick && onClick(event, value), isActive: isActive, disabled: disabled }, label));
|
|
2346
|
+
return (React.createElement(Button, { className: getCssClasses(), onClick: (event) => onClick && onClick({ event, value }), isActive: isActive, disabled: disabled }, label));
|
|
2340
2347
|
};
|
|
2341
2348
|
|
|
2342
2349
|
const TabPanel = (props) => {
|
|
2343
|
-
const { children,
|
|
2350
|
+
const { children, value, index } = props, rest = __rest(props, ["children", "value", "index"]);
|
|
2344
2351
|
return (React.createElement("div", Object.assign({ role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}` }, rest), value === index && children));
|
|
2345
2352
|
};
|
|
2346
2353
|
|
|
2347
|
-
var css_248z$2 = ".Tooltip-
|
|
2348
|
-
var styles$2 = {"tooltipContainer":"Tooltip-
|
|
2354
|
+
var css_248z$2 = ".Tooltip-module_tooltipContainer__9ZWx3 {\n display: inline; }\n\n.Tooltip-module_tooltip__x5HOu {\n background-color: #333;\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n font-size: 13px;\n position: absolute;\n left: -1000000px;\n z-index: 1100; }\n .Tooltip-module_tooltip__x5HOu #Tooltip-module_arrow__B6lfe,\n .Tooltip-module_tooltip__x5HOu #Tooltip-module_arrow__B6lfe::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1; }\n .Tooltip-module_tooltip__x5HOu #Tooltip-module_arrow__B6lfe::before {\n content: \"\";\n transform: rotate(45deg);\n background: #333; }\n .Tooltip-module_tooltip__x5HOu[data-popper-placement^=\"top\"] > #Tooltip-module_arrow__B6lfe {\n bottom: -4px; }\n .Tooltip-module_tooltip__x5HOu[data-popper-placement^=\"bottom\"] > #Tooltip-module_arrow__B6lfe {\n top: -4px; }\n .Tooltip-module_tooltip__x5HOu[data-popper-placement^=\"left\"] > #Tooltip-module_arrow__B6lfe {\n right: -4px; }\n .Tooltip-module_tooltip__x5HOu[data-popper-placement^=\"right\"] > #Tooltip-module_arrow__B6lfe {\n left: -4px; }\n";
|
|
2355
|
+
var styles$2 = {"tooltipContainer":"Tooltip-module_tooltipContainer__9ZWx3","tooltip":"Tooltip-module_tooltip__x5HOu","arrow":"Tooltip-module_arrow__B6lfe"};
|
|
2349
2356
|
styleInject(css_248z$2);
|
|
2350
2357
|
|
|
2351
2358
|
const Tooltip = (props) => {
|
|
2352
2359
|
const { children, text, placement = 'bottom' } = props;
|
|
2353
2360
|
const [show, setShow] = useState(false);
|
|
2354
|
-
const refChild = useRef(
|
|
2355
|
-
const refTooltip = useRef(
|
|
2361
|
+
const refChild = useRef();
|
|
2362
|
+
const refTooltip = useRef();
|
|
2356
2363
|
useEffect(() => {
|
|
2357
|
-
if (show === true && refChild && refChild.current) {
|
|
2364
|
+
if (show === true && refChild && refChild.current && refTooltip && refTooltip.current) {
|
|
2358
2365
|
// TODO - extract to own component?
|
|
2359
2366
|
createPopper(refChild.current, refTooltip.current, {
|
|
2360
2367
|
placement: placement,
|
|
@@ -2373,7 +2380,7 @@ const Tooltip = (props) => {
|
|
|
2373
2380
|
const handleMouseLeave = () => {
|
|
2374
2381
|
setShow(false);
|
|
2375
2382
|
};
|
|
2376
|
-
return (React.createElement(Fragment, null,
|
|
2383
|
+
return (React.createElement(React.Fragment, null,
|
|
2377
2384
|
React.createElement("div", { className: styles$2.tooltipContainer, ref: refChild, id: "tooltip-container" }, cloneElement(children, {
|
|
2378
2385
|
onMouseOver: handleMouseOver,
|
|
2379
2386
|
onMouseLeave: handleMouseLeave,
|
|
@@ -2523,8 +2530,8 @@ const TimeSelect = (props) => {
|
|
|
2523
2530
|
React.createElement(MilliSecondSelect, { className: "form-control", value: currDate.getMilliseconds(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
|
|
2524
2531
|
};
|
|
2525
2532
|
|
|
2526
|
-
var css_248z$1 = ".TreeView-
|
|
2527
|
-
var styles$1 = {"treeView":"TreeView-
|
|
2533
|
+
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important; }\n .TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important; }\n";
|
|
2534
|
+
var styles$1 = {"treeView":"TreeView-module_treeView__VVj-4"};
|
|
2528
2535
|
styleInject(css_248z$1);
|
|
2529
2536
|
|
|
2530
2537
|
const TreeView = (props) => {
|
|
@@ -2538,12 +2545,12 @@ const TreeView = (props) => {
|
|
|
2538
2545
|
return (React.createElement("ul", Object.assign({ className: getCssClasses() }, rest), children));
|
|
2539
2546
|
};
|
|
2540
2547
|
|
|
2541
|
-
var css_248z = ".TreeItem-
|
|
2542
|
-
var styles = {"treeItem":"TreeItem-
|
|
2548
|
+
var css_248z = ".TreeItem-module_treeItem__Mxsjr {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center; }\n";
|
|
2549
|
+
var styles = {"treeItem":"TreeItem-module_treeItem__Mxsjr"};
|
|
2543
2550
|
styleInject(css_248z);
|
|
2544
2551
|
|
|
2545
2552
|
const TreeItem = (props) => {
|
|
2546
|
-
const { nodeId, label, children, className, isExpanded, isSelected, isSelectable, onToggleExpand,
|
|
2553
|
+
const { nodeId, label, children, className, isExpanded, isSelected, isSelectable, onToggleExpand, onItemSelect } = props;
|
|
2547
2554
|
const [_isExpanded, setIsExpanded] = useState(false);
|
|
2548
2555
|
const [_isSelected, setIsSelected] = useState(false);
|
|
2549
2556
|
const getCssClasses = () => {
|
|
@@ -2566,7 +2573,7 @@ const TreeItem = (props) => {
|
|
|
2566
2573
|
};
|
|
2567
2574
|
const handleOnSelect = (nodeId) => {
|
|
2568
2575
|
setIsSelected(!_isSelected);
|
|
2569
|
-
|
|
2576
|
+
onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
|
|
2570
2577
|
};
|
|
2571
2578
|
return (React.createElement("li", { className: getCssClasses(), style: { paddingLeft: `${(48 * (children ? 0 : 1))}px` } },
|
|
2572
2579
|
React.createElement("div", { className: "d-flex align-items-center" },
|
|
@@ -2579,4 +2586,3 @@ const TreeItem = (props) => {
|
|
|
2579
2586
|
};
|
|
2580
2587
|
|
|
2581
2588
|
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, DATEMODE, DateSelect, DaySelect, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, MODALBUTTONTYPE, MODALTYPE, Menu, MenuBody, MenuDivider, MenuItem, MenuToggle, MilliSecondSelect, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, NumberSelect, POSITION, PlusSolidIcon, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TreeItem, TreeView, Typography, VARIANT, YearSelect, loadingIndicatorService, modalService, snackbarService, useConstructor, useDebounce, useHover, useWindowSize };
|
|
2582
|
-
//# sourceMappingURL=index.es.js.map
|