react-asc 18.8.7 → 18.8.8
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/Alert/Alert.d.ts +2 -2
- package/components/AppBar/AppBar.d.ts +2 -2
- package/components/AppBar/AppBarTitle.d.ts +2 -4
- package/components/Backdrop/Backdrop.d.ts +1 -3
- package/components/Badge/Badge.d.ts +1 -2
- package/components/Breadcrumb/Breadcrumb.d.ts +2 -3
- package/components/Button/Button.d.ts +2 -3
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/components/Card/Card.d.ts +1 -2
- package/components/Card/CardBody.d.ts +1 -1
- package/components/Card/CardFooter.d.ts +1 -1
- package/components/Card/CardImage.d.ts +1 -4
- package/components/Card/CardSubtitle.d.ts +1 -1
- package/components/Card/CardText.d.ts +1 -1
- package/components/Card/CardTitle.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +1 -6
- package/components/Chip/Chip.d.ts +2 -5
- package/components/Form/FormHint/FormHint.d.ts +3 -3
- package/index.es.js +91 -94
- package/index.es.js.map +1 -1
- package/index.js +91 -94
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/components/Button/Button.template.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { VARIANT } from '../component.enums';
|
|
3
3
|
import { COLOR, SIZE } from '../component.enums';
|
|
4
|
-
export interface IAlertProps {
|
|
4
|
+
export interface IAlertProps extends React.ComponentProps<"div"> {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
variant?: VARIANT;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { COLOR, SIZE } from '../component.enums';
|
|
3
|
-
export interface IAppBarProps {
|
|
3
|
+
export interface IAppBarProps extends React.ComponentProps<"nav"> {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
color?: COLOR.primary | COLOR.light;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface IAppBarTitleProps {
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IAppBarTitleProps extends React.ComponentProps<"div"> {
|
|
3
3
|
children?: ReactNode;
|
|
4
|
-
onClick?: () => void;
|
|
5
|
-
className?: string;
|
|
6
4
|
}
|
|
7
5
|
export declare const AppBarTitle: (props: IAppBarTitleProps) => JSX.Element;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface IBackdropProps {
|
|
2
|
+
interface IBackdropProps extends React.ComponentProps<"div"> {
|
|
3
3
|
target?: HTMLElement;
|
|
4
|
-
onClick?: () => void;
|
|
5
4
|
isTransparent?: boolean;
|
|
6
|
-
style?: any;
|
|
7
5
|
}
|
|
8
6
|
export declare const Backdrop: (props: IBackdropProps) => React.ReactPortal;
|
|
9
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { COLOR } from "../component.enums";
|
|
3
|
-
export interface IBadgeProps extends React.
|
|
3
|
+
export interface IBadgeProps extends React.ComponentProps<"div"> {
|
|
4
4
|
color?: COLOR;
|
|
5
5
|
content?: any;
|
|
6
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
7
6
|
}
|
|
8
7
|
export declare const Badge: (props: IBadgeProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface IBreadcrumbProps {
|
|
3
|
-
className?: string;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IBreadcrumbProps extends React.ComponentProps<"nav"> {
|
|
4
3
|
children?: ReactNode;
|
|
5
4
|
}
|
|
6
5
|
export declare const Breadcrumb: (props: IBreadcrumbProps) => JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { COLOR, VARIANT } from '../component.enums';
|
|
3
|
-
export interface IButtonProps extends React.
|
|
3
|
+
export interface IButtonProps extends React.ComponentProps<"button"> {
|
|
4
4
|
color?: COLOR;
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
isRounded?: boolean;
|
|
7
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
8
7
|
variant?: VARIANT;
|
|
9
8
|
startIcon?: React.SVGProps<SVGSVGElement>;
|
|
10
9
|
endIcon?: React.SVGProps<SVGSVGElement>;
|
|
11
10
|
}
|
|
12
|
-
export declare const Button:
|
|
11
|
+
export declare const Button: React.FunctionComponent<IButtonProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface IButtonGroupProps extends React.
|
|
2
|
+
export interface IButtonGroupProps extends React.ComponentProps<"div"> {
|
|
3
3
|
}
|
|
4
4
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardProps extends React.
|
|
2
|
+
interface ICardProps extends React.ComponentProps<"div"> {
|
|
3
3
|
shadow?: boolean;
|
|
4
|
-
style?: any;
|
|
5
4
|
}
|
|
6
5
|
export declare const Card: (props: ICardProps) => JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardBodyProps extends React.
|
|
2
|
+
interface ICardBodyProps extends React.ComponentProps<"div"> {
|
|
3
3
|
}
|
|
4
4
|
export declare const CardBody: (props: ICardBodyProps) => JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardFooter extends React.
|
|
2
|
+
interface ICardFooter extends React.ComponentProps<"div"> {
|
|
3
3
|
}
|
|
4
4
|
export declare const CardFooter: (props: ICardFooter) => JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardImageProps extends React.
|
|
3
|
-
src?: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
className?: string;
|
|
2
|
+
interface ICardImageProps extends React.ComponentProps<"img"> {
|
|
6
3
|
}
|
|
7
4
|
export declare const CardImage: (props: ICardImageProps) => JSX.Element;
|
|
8
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardSubtitleProps extends React.
|
|
2
|
+
interface ICardSubtitleProps extends React.ComponentProps<"div"> {
|
|
3
3
|
}
|
|
4
4
|
export declare const CardSubtitle: (props: ICardSubtitleProps) => JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardTextProps extends React.
|
|
2
|
+
interface ICardTextProps extends React.ComponentProps<"p"> {
|
|
3
3
|
}
|
|
4
4
|
export declare const CardText: (props: ICardTextProps) => JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ICardTitleProps extends React.
|
|
2
|
+
interface ICardTitleProps extends React.ComponentProps<"div"> {
|
|
3
3
|
as?: any;
|
|
4
4
|
}
|
|
5
5
|
export declare const CardTitle: (props: ICardTitleProps) => JSX.Element;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ICheckboxProps extends HtmlBaseProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
checked?: boolean;
|
|
2
|
+
export interface ICheckboxProps extends React.ComponentProps<"input"> {
|
|
8
3
|
label?: string;
|
|
9
4
|
value?: string;
|
|
10
5
|
onChange?: (val: React.FocusEvent<HTMLInputElement>) => void;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { COLOR } from '../component.enums';
|
|
3
|
-
export interface IChipProps {
|
|
3
|
+
export interface IChipProps extends React.ComponentProps<"div"> {
|
|
4
4
|
color?: COLOR;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
className?: string;
|
|
7
5
|
shadow?: boolean;
|
|
8
6
|
onClick?: (e: React.MouseEvent<Element>) => void;
|
|
9
7
|
isDeletable?: boolean;
|
|
10
8
|
onDelete?: (e: React.MouseEvent<Element>) => void;
|
|
11
9
|
deleteIcon?: any;
|
|
12
|
-
style?: any;
|
|
13
10
|
}
|
|
14
11
|
export declare const Chip: (props: IChipProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
interface IFormHintProps {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IFormHintProps extends React.ComponentProps<"small"> {
|
|
3
3
|
}
|
|
4
|
-
export declare const FormHint:
|
|
4
|
+
export declare const FormHint: (props: IFormHintProps) => JSX.Element;
|
|
5
5
|
export {};
|
package/index.es.js
CHANGED
|
@@ -140,14 +140,14 @@ const AppBarTitle = (props) => {
|
|
|
140
140
|
className && cssClasses.push(className);
|
|
141
141
|
return cssClasses.filter(r => r).join(' ');
|
|
142
142
|
};
|
|
143
|
-
return (React.createElement("div", { className: getCssClass(), onClick:
|
|
143
|
+
return (React.createElement("div", { className: getCssClass(), onClick: onClick }, children));
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
const Backdrop = (props) => {
|
|
147
|
-
const { target = document.body, isTransparent = false, onClick, style } = props;
|
|
147
|
+
const { target = document.body, isTransparent = false, onClick, style } = props, rest = __rest(props, ["target", "isTransparent", "onClick", "style"]);
|
|
148
148
|
const handleClick = (e) => {
|
|
149
149
|
e.stopPropagation();
|
|
150
|
-
onClick && onClick();
|
|
150
|
+
onClick && onClick(e);
|
|
151
151
|
};
|
|
152
152
|
const getCssClasses = () => {
|
|
153
153
|
const cssClasses = [];
|
|
@@ -161,7 +161,7 @@ const Backdrop = (props) => {
|
|
|
161
161
|
const styles = Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
162
162
|
return styles;
|
|
163
163
|
};
|
|
164
|
-
return (createPortal(React.createElement("div", { className: getCssClasses(), onClick: handleClick, style: getStyles() }), target));
|
|
164
|
+
return (createPortal(React.createElement("div", Object.assign({ className: getCssClasses(), onClick: handleClick, style: getStyles() }, rest)), target));
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
var css_248z$S = ".List-module_list__1ax9w {\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";
|
|
@@ -325,18 +325,17 @@ const AutoComplete = (props) => {
|
|
|
325
325
|
setModel('');
|
|
326
326
|
setSearchText('');
|
|
327
327
|
};
|
|
328
|
-
return (React.createElement(
|
|
329
|
-
React.createElement("div", {
|
|
330
|
-
React.createElement("
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
React.createElement(
|
|
336
|
-
React.createElement(
|
|
337
|
-
React.createElement(
|
|
338
|
-
|
|
339
|
-
React.createElement(Backdrop, { isTransparent: true, onClick: () => hide() })))));
|
|
328
|
+
return (React.createElement("div", { ref: selectConainter, className: styles$M.selectContainer },
|
|
329
|
+
React.createElement("div", { className: "d-flex" },
|
|
330
|
+
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 }),
|
|
331
|
+
showClearButton && (model === null || model === void 0 ? void 0 : model.length) > 0 &&
|
|
332
|
+
React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), onClick: handleClickReset })),
|
|
333
|
+
isShow &&
|
|
334
|
+
React.createElement(React.Fragment, null,
|
|
335
|
+
React.createElement("div", { className: styles$M.selectMenu },
|
|
336
|
+
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 },
|
|
337
|
+
React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
338
|
+
React.createElement(Backdrop, { isTransparent: true, onClick: () => hide() }))));
|
|
340
339
|
};
|
|
341
340
|
|
|
342
341
|
var css_248z$L = ".Badge-module_badgeContainer__1QtTD {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle; }\n\n.Badge-module_badge__2Y_LO {\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__2Y_LO.Badge-module_primary__2mn7_ {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Badge-module_badge__2Y_LO.Badge-module_accent__8Hg8z {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Badge-module_badge__2Y_LO.Badge-module_secondary__1QqDc {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Badge-module_badge__2Y_LO.Badge-module_light__3Z7JO {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Badge-module_badge__2Y_LO.Badge-module_dark__2qWe_ {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n";
|
|
@@ -362,42 +361,26 @@ const Badge = (props) => {
|
|
|
362
361
|
React.createElement("span", { className: getCssClassesBadge() }, content)));
|
|
363
362
|
};
|
|
364
363
|
|
|
365
|
-
var css_248z$K = ".
|
|
366
|
-
var styles$K = {"
|
|
364
|
+
var css_248z$K = ".Button-module_button__3cIVZ {\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__8Q4uL.Button-module_primary__2soUg {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__8Q4uL.Button-module_primary__2soUg:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_accent__1_cP6 {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__8Q4uL.Button-module_accent__1_cP6:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_secondary__psAvb {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__8Q4uL.Button-module_secondary__psAvb:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_light__JVK1z {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__8Q4uL.Button-module_light__JVK1z:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_dark__O89wU {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__8Q4uL.Button-module_dark__O89wU:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__8Q4uL:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__32H44 {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__32H44.Button-module_primary__2soUg {\n color: var(--primary) !important; }\n .Button-module_btnText__32H44.Button-module_primary__2soUg:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_secondary__psAvb {\n color: var(--secondary) !important; }\n .Button-module_btnText__32H44.Button-module_secondary__psAvb:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_accent__1_cP6 {\n color: var(--accent) !important; }\n .Button-module_btnText__32H44.Button-module_accent__1_cP6:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_light__JVK1z {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__32H44.Button-module_light__JVK1z:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_dark__O89wU {\n color: var(--dark) !important; }\n .Button-module_btnText__32H44.Button-module_dark__O89wU:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__2drkn {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__2drkn.Button-module_primary__2soUg {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__2drkn.Button-module_primary__2soUg:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_secondary__psAvb {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__2drkn.Button-module_secondary__psAvb:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_accent__1_cP6 {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__2drkn.Button-module_accent__1_cP6:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_light__JVK1z {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__2drkn.Button-module_light__JVK1z:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_dark__O89wU {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__2drkn.Button-module_dark__O89wU:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__1TN-G {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__1TN-G svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__3uZjE {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__3uZjE svg {\n width: 18px;\n height: 18px; }\n";
|
|
365
|
+
var styles$K = {"button":"Button-module_button__3cIVZ","btnContained":"Button-module_btnContained__8Q4uL","primary":"Button-module_primary__2soUg","accent":"Button-module_accent__1_cP6","secondary":"Button-module_secondary__psAvb","light":"Button-module_light__JVK1z","dark":"Button-module_dark__O89wU","btnText":"Button-module_btnText__32H44","btnOutline":"Button-module_btnOutline__2drkn","startIcon":"Button-module_startIcon__1TN-G","endIcon":"Button-module_endIcon__3uZjE"};
|
|
367
366
|
styleInject(css_248z$K);
|
|
368
367
|
|
|
369
|
-
const
|
|
370
|
-
const { children, iconColor, className } = props, rest = __rest(props, ["children", "iconColor", "className"]);
|
|
371
|
-
const getCssClasses = () => {
|
|
372
|
-
const cssClasses = [];
|
|
373
|
-
cssClasses.push(styles$K.icon);
|
|
374
|
-
iconColor && cssClasses.push(styles$K[iconColor]);
|
|
375
|
-
className && cssClasses.push(className);
|
|
376
|
-
return cssClasses.filter(css => css).join(' ');
|
|
377
|
-
};
|
|
378
|
-
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
var css_248z$J = ".Button-module_button__3cIVZ {\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__8Q4uL.Button-module_primary__2soUg {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__8Q4uL.Button-module_primary__2soUg:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_accent__1_cP6 {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__8Q4uL.Button-module_accent__1_cP6:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_secondary__psAvb {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__8Q4uL.Button-module_secondary__psAvb:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_light__JVK1z {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__8Q4uL.Button-module_light__JVK1z:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__8Q4uL.Button-module_dark__O89wU {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__8Q4uL.Button-module_dark__O89wU:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__8Q4uL:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__32H44 {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__32H44.Button-module_primary__2soUg {\n color: var(--primary) !important; }\n .Button-module_btnText__32H44.Button-module_primary__2soUg:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_secondary__psAvb {\n color: var(--secondary) !important; }\n .Button-module_btnText__32H44.Button-module_secondary__psAvb:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_accent__1_cP6 {\n color: var(--accent) !important; }\n .Button-module_btnText__32H44.Button-module_accent__1_cP6:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_light__JVK1z {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__32H44.Button-module_light__JVK1z:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__32H44.Button-module_dark__O89wU {\n color: var(--dark) !important; }\n .Button-module_btnText__32H44.Button-module_dark__O89wU:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__2drkn {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__2drkn.Button-module_primary__2soUg {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__2drkn.Button-module_primary__2soUg:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_secondary__psAvb {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__2drkn.Button-module_secondary__psAvb:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_accent__1_cP6 {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__2drkn.Button-module_accent__1_cP6:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_light__JVK1z {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__2drkn.Button-module_light__JVK1z:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__2drkn.Button-module_dark__O89wU {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__2drkn.Button-module_dark__O89wU:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__1TN-G {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__1TN-G svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__3uZjE {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__3uZjE svg {\n width: 18px;\n height: 18px; }\n";
|
|
382
|
-
var styles$J = {"button":"Button-module_button__3cIVZ","btnContained":"Button-module_btnContained__8Q4uL","primary":"Button-module_primary__2soUg","accent":"Button-module_accent__1_cP6","secondary":"Button-module_secondary__psAvb","light":"Button-module_light__JVK1z","dark":"Button-module_dark__O89wU","btnText":"Button-module_btnText__32H44","btnOutline":"Button-module_btnOutline__2drkn","startIcon":"Button-module_startIcon__1TN-G","endIcon":"Button-module_endIcon__3uZjE"};
|
|
383
|
-
styleInject(css_248z$J);
|
|
384
|
-
|
|
385
|
-
const ButtonTemplate = (props) => {
|
|
368
|
+
const Button = (props) => {
|
|
386
369
|
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"]);
|
|
387
370
|
const getCssClasses = () => {
|
|
388
371
|
const cssClasses = [];
|
|
389
|
-
cssClasses.push(styles$
|
|
372
|
+
cssClasses.push(styles$K.button);
|
|
390
373
|
if (variant !== 'outline' && variant !== 'text') {
|
|
391
|
-
cssClasses.push(styles$
|
|
392
|
-
cssClasses.push(styles$
|
|
374
|
+
cssClasses.push(styles$K.btnContained);
|
|
375
|
+
cssClasses.push(styles$K[color]);
|
|
393
376
|
}
|
|
394
377
|
if (variant === 'outline') {
|
|
395
|
-
cssClasses.push(styles$
|
|
396
|
-
cssClasses.push(styles$
|
|
378
|
+
cssClasses.push(styles$K.btnOutline);
|
|
379
|
+
cssClasses.push(styles$K[color]);
|
|
397
380
|
}
|
|
398
381
|
if (variant === 'text') {
|
|
399
|
-
cssClasses.push(styles$
|
|
400
|
-
cssClasses.push(styles$
|
|
382
|
+
cssClasses.push(styles$K.btnText);
|
|
383
|
+
cssClasses.push(styles$K[color]);
|
|
401
384
|
}
|
|
402
385
|
if (isRounded && variant !== 'text') {
|
|
403
386
|
cssClasses.push(`rounded-pill`);
|
|
@@ -408,61 +391,57 @@ const ButtonTemplate = (props) => {
|
|
|
408
391
|
className && cssClasses.push(className);
|
|
409
392
|
return cssClasses.filter(css => css).join(' ');
|
|
410
393
|
};
|
|
411
|
-
return (React.createElement("button", Object.assign({
|
|
394
|
+
return (React.createElement("button", Object.assign({ className: getCssClasses() }, rest),
|
|
412
395
|
React.createElement("span", { className: "d-flex justify-content-center" },
|
|
413
396
|
startIcon &&
|
|
414
|
-
React.createElement(Icon, { className: styles$
|
|
397
|
+
React.createElement(Icon, { className: styles$K.startIcon }, startIcon),
|
|
415
398
|
children,
|
|
416
399
|
endIcon &&
|
|
417
|
-
React.createElement(Icon, { className: styles$
|
|
400
|
+
React.createElement(Icon, { className: styles$K.endIcon }, endIcon))));
|
|
418
401
|
};
|
|
419
402
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
var css_248z$I = ".ButtonGroup-module_buttonGroup__2RS71 button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n\n.ButtonGroup-module_buttonGroup__2RS71 button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0; }\n";
|
|
425
|
-
var styles$I = {"buttonGroup":"ButtonGroup-module_buttonGroup__2RS71"};
|
|
426
|
-
styleInject(css_248z$I);
|
|
403
|
+
var css_248z$J = ".ButtonGroup-module_buttonGroup__2RS71 button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n\n.ButtonGroup-module_buttonGroup__2RS71 button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0; }\n";
|
|
404
|
+
var styles$J = {"buttonGroup":"ButtonGroup-module_buttonGroup__2RS71"};
|
|
405
|
+
styleInject(css_248z$J);
|
|
427
406
|
|
|
428
407
|
const ButtonGroup = (props) => {
|
|
429
408
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
430
409
|
const getCssClasses = () => {
|
|
431
410
|
const cssClasses = [];
|
|
432
|
-
cssClasses.push(styles$
|
|
411
|
+
cssClasses.push(styles$J.buttonGroup);
|
|
433
412
|
className && cssClasses.push(className);
|
|
434
413
|
return cssClasses.filter(css => css).join(' ');
|
|
435
414
|
};
|
|
436
415
|
return (React.createElement("div", Object.assign({ className: getCssClasses(), role: "group" }, rest), children));
|
|
437
416
|
};
|
|
438
417
|
|
|
439
|
-
var css_248z$
|
|
440
|
-
var styles$
|
|
441
|
-
styleInject(css_248z$
|
|
418
|
+
var css_248z$I = ".Breadcrumb-module_breadcrumb__2BHXS {\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";
|
|
419
|
+
var styles$I = {"breadcrumb":"Breadcrumb-module_breadcrumb__2BHXS"};
|
|
420
|
+
styleInject(css_248z$I);
|
|
442
421
|
|
|
443
422
|
const Breadcrumb = (props) => {
|
|
444
|
-
const { children, className } = props;
|
|
423
|
+
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
445
424
|
const getCssClasses = () => {
|
|
446
425
|
const cssClasses = [];
|
|
447
|
-
cssClasses.push(styles$
|
|
426
|
+
cssClasses.push(styles$I.breadcrumb);
|
|
448
427
|
className && cssClasses.push(className);
|
|
449
428
|
return cssClasses.filter(css => css).join(' ');
|
|
450
429
|
};
|
|
451
|
-
return (React.createElement("nav",
|
|
430
|
+
return (React.createElement("nav", Object.assign({}, rest),
|
|
452
431
|
React.createElement("ol", { className: getCssClasses() }, children)));
|
|
453
432
|
};
|
|
454
433
|
|
|
455
434
|
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
456
435
|
|
|
457
|
-
var css_248z$
|
|
458
|
-
var styles$
|
|
459
|
-
styleInject(css_248z$
|
|
436
|
+
var css_248z$H = ".BreadcrumbItem-module_breadcrumbItem__1yy-D + .BreadcrumbItem-module_breadcrumbItem__1yy-D {\n padding-left: 0.5rem; }\n\n.BreadcrumbItem-module_breadcrumbItem__1yy-D + .BreadcrumbItem-module_breadcrumbItem__1yy-D::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\"; }\n\n.BreadcrumbItem-module_breadcrumbItem__1yy-D a:not([href]):not([class]) {\n color: var(--primary); }\n\n.BreadcrumbItem-module_breadcrumbItem__1yy-D:hover {\n cursor: pointer; }\n\n.BreadcrumbItem-module_breadcrumbItem__1yy-D.BreadcrumbItem-module_active__3iVU2:hover {\n cursor: unset; }\n";
|
|
437
|
+
var styles$H = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__1yy-D","active":"BreadcrumbItem-module_active__3iVU2"};
|
|
438
|
+
styleInject(css_248z$H);
|
|
460
439
|
|
|
461
440
|
const BreadcrumbItem = (props) => {
|
|
462
441
|
const { children, className, isActive, onClick } = props;
|
|
463
442
|
const getCssClasses = () => {
|
|
464
443
|
const cssClasses = [];
|
|
465
|
-
cssClasses.push(styles$
|
|
444
|
+
cssClasses.push(styles$H.breadcrumbItem);
|
|
466
445
|
className && cssClasses.push(className);
|
|
467
446
|
isActive && cssClasses.push('active');
|
|
468
447
|
return cssClasses.filter(css => css).join(' ');
|
|
@@ -476,106 +455,106 @@ const BreadcrumbItem = (props) => {
|
|
|
476
455
|
wrapper: label => React.createElement("a", null, label) }, children)));
|
|
477
456
|
};
|
|
478
457
|
|
|
479
|
-
var css_248z$
|
|
480
|
-
var styles$
|
|
481
|
-
styleInject(css_248z$
|
|
458
|
+
var css_248z$G = ".Card-module_card__31o3Z {\n background: var(--white);\n border-radius: var(--borderRadius); }\n .Card-module_card__31o3Z.Card-module_shadow__2lpYq {\n box-shadow: var(--shadow); }\n";
|
|
459
|
+
var styles$G = {"card":"Card-module_card__31o3Z","shadow":"Card-module_shadow__2lpYq"};
|
|
460
|
+
styleInject(css_248z$G);
|
|
482
461
|
|
|
483
462
|
const Card = (props) => {
|
|
484
463
|
const { children, className, shadow = true } = props, rest = __rest(props, ["children", "className", "shadow"]);
|
|
485
464
|
const getCssClasses = () => {
|
|
486
465
|
const cssClasses = [];
|
|
487
|
-
cssClasses.push(styles$
|
|
488
|
-
shadow && cssClasses.push(styles$
|
|
466
|
+
cssClasses.push(styles$G.card);
|
|
467
|
+
shadow && cssClasses.push(styles$G.shadow);
|
|
489
468
|
className && cssClasses.push(className);
|
|
490
469
|
return cssClasses.filter(css => css).join(' ');
|
|
491
470
|
};
|
|
492
471
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
493
472
|
};
|
|
494
473
|
|
|
495
|
-
var css_248z$
|
|
496
|
-
var styles$
|
|
497
|
-
styleInject(css_248z$
|
|
474
|
+
var css_248z$F = ".CardBody-module_cardBody__N8z-L {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem; }\n";
|
|
475
|
+
var styles$F = {"cardBody":"CardBody-module_cardBody__N8z-L"};
|
|
476
|
+
styleInject(css_248z$F);
|
|
498
477
|
|
|
499
478
|
const CardBody = (props) => {
|
|
500
479
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
501
480
|
const getCssClasses = () => {
|
|
502
481
|
const cssClasses = [];
|
|
503
|
-
cssClasses.push(styles$
|
|
482
|
+
cssClasses.push(styles$F.cardBody);
|
|
504
483
|
className && cssClasses.push(className);
|
|
505
484
|
return cssClasses.filter(css => css).join(' ');
|
|
506
485
|
};
|
|
507
486
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
508
487
|
};
|
|
509
488
|
|
|
510
|
-
var css_248z$
|
|
511
|
-
var styles$
|
|
512
|
-
styleInject(css_248z$
|
|
489
|
+
var css_248z$E = ".CardFooter-module_cardFooter__3dYKa {\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__3dYKa:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); }\n";
|
|
490
|
+
var styles$E = {"cardFooter":"CardFooter-module_cardFooter__3dYKa"};
|
|
491
|
+
styleInject(css_248z$E);
|
|
513
492
|
|
|
514
493
|
const CardFooter = (props) => {
|
|
515
494
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
516
495
|
const getCssClasses = () => {
|
|
517
496
|
const cssClasses = [];
|
|
518
|
-
cssClasses.push(styles$
|
|
497
|
+
cssClasses.push(styles$E.cardFooter);
|
|
519
498
|
className && cssClasses.push(className);
|
|
520
499
|
return cssClasses.filter(css => css).join(' ');
|
|
521
500
|
};
|
|
522
501
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
523
502
|
};
|
|
524
503
|
|
|
525
|
-
var css_248z$
|
|
526
|
-
var styles$
|
|
527
|
-
styleInject(css_248z$
|
|
504
|
+
var css_248z$D = ".CardSubtitle-module_cardSubtitle__2WWHW {\n color: #6c757d !important; }\n";
|
|
505
|
+
var styles$D = {"cardSubtitle":"CardSubtitle-module_cardSubtitle__2WWHW"};
|
|
506
|
+
styleInject(css_248z$D);
|
|
528
507
|
|
|
529
508
|
const CardSubtitle = (props) => {
|
|
530
509
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
531
510
|
const getCssClasses = () => {
|
|
532
511
|
const cssClasses = [];
|
|
533
|
-
cssClasses.push(styles$
|
|
512
|
+
cssClasses.push(styles$D.cardSubtitle);
|
|
534
513
|
className && cssClasses.push(className);
|
|
535
514
|
return cssClasses.filter(css => css).join(' ');
|
|
536
515
|
};
|
|
537
516
|
return (React.createElement("p", Object.assign({ className: getCssClasses() }, rest), children));
|
|
538
517
|
};
|
|
539
518
|
|
|
540
|
-
var css_248z$
|
|
541
|
-
var styles$
|
|
542
|
-
styleInject(css_248z$
|
|
519
|
+
var css_248z$C = ".CardText-module_cardText__1LWJi:last-child {\n margin-bottom: 0; }\n";
|
|
520
|
+
var styles$C = {"cardText":"CardText-module_cardText__1LWJi"};
|
|
521
|
+
styleInject(css_248z$C);
|
|
543
522
|
|
|
544
523
|
const CardText = (props) => {
|
|
545
524
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
546
525
|
const getCssClasses = () => {
|
|
547
526
|
const cssClasses = [];
|
|
548
|
-
cssClasses.push(styles$
|
|
527
|
+
cssClasses.push(styles$C.cardText);
|
|
549
528
|
className && cssClasses.push(className);
|
|
550
529
|
return cssClasses.filter(css => css).join(' ');
|
|
551
530
|
};
|
|
552
531
|
return (React.createElement("p", Object.assign({ className: getCssClasses() }, rest), props.children));
|
|
553
532
|
};
|
|
554
533
|
|
|
555
|
-
var css_248z$
|
|
556
|
-
var styles$
|
|
557
|
-
styleInject(css_248z$
|
|
534
|
+
var css_248z$B = ".CardTitle-module_cardTitle__24Amb {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em; }\n";
|
|
535
|
+
var styles$B = {"cardTitle":"CardTitle-module_cardTitle__24Amb"};
|
|
536
|
+
styleInject(css_248z$B);
|
|
558
537
|
|
|
559
538
|
const CardTitle = (props) => {
|
|
560
539
|
const { children, className, as: As = 'div' } = props, rest = __rest(props, ["children", "className", "as"]);
|
|
561
540
|
const getCssClasses = () => {
|
|
562
541
|
const cssClasses = [];
|
|
563
|
-
cssClasses.push(styles$
|
|
542
|
+
cssClasses.push(styles$B.cardTitle);
|
|
564
543
|
className && cssClasses.push(className);
|
|
565
544
|
return cssClasses.filter(css => css).join(' ');
|
|
566
545
|
};
|
|
567
546
|
return (React.createElement(As, Object.assign({ className: getCssClasses() }, rest), children));
|
|
568
547
|
};
|
|
569
548
|
|
|
570
|
-
var css_248z$
|
|
571
|
-
var styles$
|
|
572
|
-
styleInject(css_248z$
|
|
549
|
+
var css_248z$A = ".CardImage-module_cardImage__1tZM4 {\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";
|
|
550
|
+
var styles$A = {"cardImage":"CardImage-module_cardImage__1tZM4"};
|
|
551
|
+
styleInject(css_248z$A);
|
|
573
552
|
|
|
574
553
|
const CardImage = (props) => {
|
|
575
554
|
const { src, alt, className } = props, rest = __rest(props, ["src", "alt", "className"]);
|
|
576
555
|
const getCssClasses = () => {
|
|
577
556
|
const cssClasses = [];
|
|
578
|
-
cssClasses.push(styles$
|
|
557
|
+
cssClasses.push(styles$A.cardImage);
|
|
579
558
|
className && cssClasses.push(className);
|
|
580
559
|
return cssClasses.filter(css => css).join(' ');
|
|
581
560
|
};
|
|
@@ -624,6 +603,22 @@ const CircleSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true
|
|
|
624
603
|
const ChevronLeftSolidIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
|
|
625
604
|
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" })));
|
|
626
605
|
|
|
606
|
+
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";
|
|
607
|
+
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"};
|
|
608
|
+
styleInject(css_248z$z);
|
|
609
|
+
|
|
610
|
+
const Icon = (props) => {
|
|
611
|
+
const { children, iconColor, className } = props, rest = __rest(props, ["children", "iconColor", "className"]);
|
|
612
|
+
const getCssClasses = () => {
|
|
613
|
+
const cssClasses = [];
|
|
614
|
+
cssClasses.push(styles$z.icon);
|
|
615
|
+
iconColor && cssClasses.push(styles$z[iconColor]);
|
|
616
|
+
className && cssClasses.push(className);
|
|
617
|
+
return cssClasses.filter(css => css).join(' ');
|
|
618
|
+
};
|
|
619
|
+
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest), children));
|
|
620
|
+
};
|
|
621
|
+
|
|
627
622
|
var css_248z$y = ".Typography-module_typography__2bM6E {\n text-overflow: ellipsis;\n overflow: hidden !important; }\n";
|
|
628
623
|
var styles$y = {"typography":"Typography-module_typography__2bM6E"};
|
|
629
624
|
styleInject(css_248z$y);
|
|
@@ -700,8 +695,10 @@ const Checkbox = (props) => {
|
|
|
700
695
|
};
|
|
701
696
|
const handleClick = () => {
|
|
702
697
|
var _a;
|
|
703
|
-
|
|
704
|
-
|
|
698
|
+
if (!disabled && !readOnly) {
|
|
699
|
+
setIsChecked(!isChecked);
|
|
700
|
+
(_a = checkboxElement === null || checkboxElement === void 0 ? void 0 : checkboxElement.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
701
|
+
}
|
|
705
702
|
};
|
|
706
703
|
return (React.createElement("div", { className: styles$w.checkboxContainer },
|
|
707
704
|
React.createElement(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }),
|