@aristobyte-ui/radio 0.0.0-beta.1
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/@types/index.d.ts +4 -0
- package/@types/styles/scss-modules.d.ts +4 -0
- package/assets/svg/i_Copy.svg +1 -0
- package/assets/svg/i_Error.svg +1 -0
- package/assets/svg/i_Info.svg +1 -0
- package/assets/svg/i_Success.svg +1 -0
- package/assets/svg/i_Warning.svg +1 -0
- package/components/Radio/Radio.module.scss +773 -0
- package/components/Radio/index.tsx +75 -0
- package/components/RadioGroup/RadioGroup.module.scss +15 -0
- package/components/RadioGroup/index.tsx +86 -0
- package/components/index.ts +2 -0
- package/dist/components/Anchor/index.js +28 -0
- package/dist/components/Button/index.js +35 -0
- package/dist/components/ButtonGroup/index.js +16 -0
- package/dist/components/CodeBlock/index.js +33 -0
- package/dist/components/CodeBlock/types.js +1 -0
- package/dist/components/Dropdown/index.js +73 -0
- package/dist/components/DropdownOption/index.js +13 -0
- package/dist/components/MessageBox/index.js +19 -0
- package/dist/components/Radio/index.js +10 -0
- package/dist/components/RadioGroup/index.js +21 -0
- package/dist/components/Spinner/index.js +6 -0
- package/dist/components/Switch/index.js +15 -0
- package/dist/components/TabSwitchWithSlidingIndicator/index.js +10 -0
- package/dist/components/index.js +12 -0
- package/dist/index.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/components/Anchor/index.d.ts +6 -0
- package/dist/types/components/Anchor/index.d.ts.map +1 -0
- package/dist/types/components/Button/index.d.ts +15 -0
- package/dist/types/components/Button/index.d.ts.map +1 -0
- package/dist/types/components/ButtonGroup/index.d.ts +13 -0
- package/dist/types/components/ButtonGroup/index.d.ts.map +1 -0
- package/dist/types/components/CodeBlock/index.d.ts +11 -0
- package/dist/types/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/types/components/CodeBlock/types.d.ts +3 -0
- package/dist/types/components/CodeBlock/types.d.ts.map +1 -0
- package/dist/types/components/Dropdown/index.d.ts +14 -0
- package/dist/types/components/Dropdown/index.d.ts.map +1 -0
- package/dist/types/components/DropdownOption/index.d.ts +12 -0
- package/dist/types/components/DropdownOption/index.d.ts.map +1 -0
- package/dist/types/components/MessageBox/index.d.ts +14 -0
- package/dist/types/components/MessageBox/index.d.ts.map +1 -0
- package/dist/types/components/Radio/index.d.ts +17 -0
- package/dist/types/components/Radio/index.d.ts.map +1 -0
- package/dist/types/components/RadioGroup/index.d.ts +18 -0
- package/dist/types/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/types/components/Spinner/index.d.ts +9 -0
- package/dist/types/components/Spinner/index.d.ts.map +1 -0
- package/dist/types/components/Switch/index.d.ts +18 -0
- package/dist/types/components/Switch/index.d.ts.map +1 -0
- package/dist/types/components/TabSwitchWithSlidingIndicator/index.d.ts +9 -0
- package/dist/types/components/TabSwitchWithSlidingIndicator/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/utils/Portal.d.ts +5 -0
- package/dist/types/utils/Portal.d.ts.map +1 -0
- package/dist/types/utils/icons.d.ts +8 -0
- package/dist/types/utils/icons.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/ripple.d.ts +9 -0
- package/dist/types/utils/ripple.d.ts.map +1 -0
- package/dist/utils/Portal.js +12 -0
- package/dist/utils/icons.js +12 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/ripple.js +38 -0
- package/eslint.config.mjs +2 -0
- package/index.ts +1 -0
- package/package.json +43 -0
- package/styles/_settings.scss +179 -0
- package/tsconfig.json +11 -0
- package/turbo/generators/config.ts +30 -0
- package/turbo/generators/templates/component.hbs +8 -0
- package/utils/Portal.tsx +17 -0
- package/utils/icons.ts +13 -0
- package/utils/index.ts +2 -0
- package/utils/ripple.tsx +54 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
import styles from "./Radio.module.scss";
|
|
4
|
+
|
|
5
|
+
export interface IRadio {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
value: string;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
name?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
highlightLabel?: boolean;
|
|
14
|
+
size?: "xsm" | "sm" | "md" | "lg" | "xlg";
|
|
15
|
+
variant?:
|
|
16
|
+
| "default"
|
|
17
|
+
| "primary"
|
|
18
|
+
| "secondary"
|
|
19
|
+
| "success"
|
|
20
|
+
| "error"
|
|
21
|
+
| "warning";
|
|
22
|
+
appearance?:
|
|
23
|
+
| "default"
|
|
24
|
+
| "solid"
|
|
25
|
+
| "outline"
|
|
26
|
+
| "outline-dashed"
|
|
27
|
+
| "no-outline"
|
|
28
|
+
| "glowing";
|
|
29
|
+
alignLabel?: "top" | "right" | "bottom" | "left";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const Radio: React.FC<IRadio> = ({
|
|
33
|
+
children,
|
|
34
|
+
value,
|
|
35
|
+
checked,
|
|
36
|
+
name,
|
|
37
|
+
disabled = false,
|
|
38
|
+
highlightLabel = false,
|
|
39
|
+
className = "",
|
|
40
|
+
size = "md",
|
|
41
|
+
variant = "default",
|
|
42
|
+
appearance = "default",
|
|
43
|
+
alignLabel = "right",
|
|
44
|
+
onChange,
|
|
45
|
+
}) => {
|
|
46
|
+
const handleChange = () => {
|
|
47
|
+
if (!disabled && onChange) {
|
|
48
|
+
onChange(value);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<label
|
|
54
|
+
className={`${styles["radio"]} ${styles[`radio-align-label--${alignLabel}`]} ${styles[`radio-appearance--${appearance}`]} ${styles[`radio-variant--${variant}`]} ${styles[`radio-size--${size}`]} ${disabled ? styles["radio--disabled"] : ""} ${className}`}
|
|
55
|
+
>
|
|
56
|
+
<input
|
|
57
|
+
type="radio"
|
|
58
|
+
name={name}
|
|
59
|
+
value={value}
|
|
60
|
+
checked={checked}
|
|
61
|
+
disabled={disabled}
|
|
62
|
+
onChange={handleChange}
|
|
63
|
+
className={styles["radio__input"]}
|
|
64
|
+
/>
|
|
65
|
+
<span className={styles["radio__control"]} />
|
|
66
|
+
{children && (
|
|
67
|
+
<span
|
|
68
|
+
className={`${styles["radio__label"]} ${highlightLabel ? styles["radio__label--highlight-label"] : ""}`}
|
|
69
|
+
>
|
|
70
|
+
{children}
|
|
71
|
+
</span>
|
|
72
|
+
)}
|
|
73
|
+
</label>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Radio, type IRadio } from "../Radio";
|
|
5
|
+
|
|
6
|
+
import styles from "./RadioGroup.module.scss";
|
|
7
|
+
|
|
8
|
+
export interface IRadioGroup {
|
|
9
|
+
name: string;
|
|
10
|
+
value: string;
|
|
11
|
+
children: React.ReactElement<IRadio> | React.ReactElement<IRadio>[];
|
|
12
|
+
onChange?: (newValue: string) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
size?: "xsm" | "sm" | "md" | "lg" | "xlg";
|
|
16
|
+
variant?:
|
|
17
|
+
| "default"
|
|
18
|
+
| "primary"
|
|
19
|
+
| "secondary"
|
|
20
|
+
| "success"
|
|
21
|
+
| "error"
|
|
22
|
+
| "warning";
|
|
23
|
+
appearance?:
|
|
24
|
+
| "solid"
|
|
25
|
+
| "outline"
|
|
26
|
+
| "outline-dashed"
|
|
27
|
+
| "no-outline"
|
|
28
|
+
| "glowing";
|
|
29
|
+
align?: "horizontal" | "vertical";
|
|
30
|
+
alignLabel?: "top" | "right" | "bottom" | "left";
|
|
31
|
+
highlightLabel?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const RadioGroup: React.FC<IRadioGroup> = ({
|
|
35
|
+
name,
|
|
36
|
+
value,
|
|
37
|
+
onChange,
|
|
38
|
+
children,
|
|
39
|
+
disabled = false,
|
|
40
|
+
highlightLabel = false,
|
|
41
|
+
className = "",
|
|
42
|
+
size = "md",
|
|
43
|
+
variant = "default",
|
|
44
|
+
appearance = "outline",
|
|
45
|
+
align = "horizontal",
|
|
46
|
+
alignLabel = "right",
|
|
47
|
+
}) => {
|
|
48
|
+
const uniqueId = React.useId();
|
|
49
|
+
const [currentValue, setCurrentValue] = React.useState<string>(value);
|
|
50
|
+
|
|
51
|
+
const radios = React.Children.toArray(children).filter(
|
|
52
|
+
(child): child is React.ReactElement<IRadio> =>
|
|
53
|
+
React.isValidElement(child) && child.type === Radio
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const handleChange = (currentRadioValue: string) => {
|
|
57
|
+
if (onChange) {
|
|
58
|
+
onChange(currentRadioValue);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
setCurrentValue(currentRadioValue);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
key={uniqueId}
|
|
67
|
+
className={`${styles["radio-group"]} ${styles[`radio-group--${align}`]} ${className}`}
|
|
68
|
+
>
|
|
69
|
+
{radios.map(({ props }) => (
|
|
70
|
+
<Radio
|
|
71
|
+
{...props}
|
|
72
|
+
key={`${name}-${props.value}-${uniqueId}`}
|
|
73
|
+
name={`${name}-${props.value}-${uniqueId}`}
|
|
74
|
+
checked={props.value === currentValue}
|
|
75
|
+
onChange={() => handleChange(props.value)}
|
|
76
|
+
disabled={props.disabled ?? disabled}
|
|
77
|
+
size={props.size ?? size}
|
|
78
|
+
variant={props.variant ?? variant}
|
|
79
|
+
appearance={props.appearance ?? appearance}
|
|
80
|
+
highlightLabel={props.highlightLabel ?? highlightLabel}
|
|
81
|
+
alignLabel={props.alignLabel ?? alignLabel}
|
|
82
|
+
/>
|
|
83
|
+
))}
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import { renderRipple } from "../../utils";
|
|
16
|
+
import styles from "./Anchor.module.scss";
|
|
17
|
+
export const Anchor = (_a) => {
|
|
18
|
+
var { href, variant = "default", className = "", children, onClick } = _a, props = __rest(_a, ["href", "variant", "className", "children", "onClick"]);
|
|
19
|
+
const ref = React.useRef(null);
|
|
20
|
+
const handleClick = (e) => {
|
|
21
|
+
const { clientX, clientY } = e;
|
|
22
|
+
renderRipple({ ref, clientX, clientY });
|
|
23
|
+
if (onClick) {
|
|
24
|
+
onClick(e);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return (_jsx("a", Object.assign({}, props, { ref: ref, href: href, className: `anchor ${styles["anchor"]} ${styles[`anchor--${variant}`]} ${className}`, onClick: handleClick, children: children })));
|
|
28
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import { Spinner } from "../Spinner";
|
|
16
|
+
import { renderRipple } from "../../utils";
|
|
17
|
+
import styles from "./Button.module.scss";
|
|
18
|
+
export const Button = (_a) => {
|
|
19
|
+
var { onClick, children, variant = "default", appearance = "solid", size = "md", radius = "md", icon, spinnerType = "default", isLoading = false, disabled, className = "", dangerouslySetInnerHTML } = _a, restProps = __rest(_a, ["onClick", "children", "variant", "appearance", "size", "radius", "icon", "spinnerType", "isLoading", "disabled", "className", "dangerouslySetInnerHTML"]);
|
|
20
|
+
const ref = React.useRef(null);
|
|
21
|
+
const handleClick = (e) => {
|
|
22
|
+
const { clientX, clientY } = e;
|
|
23
|
+
renderRipple({ ref, clientX, clientY });
|
|
24
|
+
if (onClick) {
|
|
25
|
+
onClick(e);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const Children = () => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (_jsxs(_Fragment, { children: [isLoading && (_jsx(Spinner, { size: size, variant: variant, type: spinnerType, className: styles["spinner"] })), icon && (_jsx("span", { className: `${styles["icon"]} ${styles[`icon--${(_a = icon.align) !== null && _a !== void 0 ? _a : "left"}`]}`, children: React.createElement(icon.component) })), children] }));
|
|
31
|
+
};
|
|
32
|
+
return (_jsx("button", Object.assign({ ref: ref, disabled: disabled || isLoading, className: `${styles["button"]} ${styles[`button-variant--${variant}`]} ${styles[`button-appearance--${appearance}`]} ${styles[`button-size--${size}`]} ${styles[`button-radius--${radius}`]} ${isLoading ? styles["button--loading"] : ""} ${className}`, onClick: handleClick }, (dangerouslySetInnerHTML
|
|
33
|
+
? { dangerouslySetInnerHTML }
|
|
34
|
+
: { children: _jsx(Children, {}) }), restProps)));
|
|
35
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Button } from "../Button";
|
|
5
|
+
import styles from "./ButtonGroup.module.scss";
|
|
6
|
+
export const ButtonGroup = ({ children, align = "horizontal", variant = "default", size = "md", radius = "md", disabled, className = "", }) => {
|
|
7
|
+
return (_jsx("div", { className: `${styles["button-group"]} ${styles[`button-group-variant--${variant}`]} ${styles[`button-group-size--${size}`]} ${styles[`button-group-radius--${radius}`]} ${styles[`button-group-align--${align}`]} ${className}`, children: React.Children.toArray(children)
|
|
8
|
+
.filter((child) => React.isValidElement(child) && child.type === Button)
|
|
9
|
+
.map((child, index) => React.cloneElement(child, {
|
|
10
|
+
key: index || child.key,
|
|
11
|
+
size: size || child.props.size,
|
|
12
|
+
disabled: disabled || child.props.disabled,
|
|
13
|
+
variant: variant || child.props.variant,
|
|
14
|
+
radius: "none",
|
|
15
|
+
})) }));
|
|
16
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { getSingletonHighlighter } from "shiki";
|
|
13
|
+
import { Button } from "../Button";
|
|
14
|
+
import { Icons } from "../../utils";
|
|
15
|
+
import styles from "./CodeBlock.module.scss";
|
|
16
|
+
export const CodeBlock = ({ code, lang = "tsx", theme = "nord", className = "", }) => {
|
|
17
|
+
const [html, setHtml] = React.useState("");
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
setHtml((yield getSingletonHighlighter({
|
|
21
|
+
themes: [theme],
|
|
22
|
+
langs: [lang],
|
|
23
|
+
})).codeToHtml(code, {
|
|
24
|
+
lang,
|
|
25
|
+
theme,
|
|
26
|
+
}));
|
|
27
|
+
}))();
|
|
28
|
+
}, [code, lang, theme]);
|
|
29
|
+
const copyToClipboard = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
yield navigator.clipboard.writeText(code);
|
|
31
|
+
});
|
|
32
|
+
return (_jsxs("div", { className: `code-block ${styles["code-block"]} ${className}`, children: [_jsx("div", { className: styles["code-block__container"], dangerouslySetInnerHTML: { __html: html } }), _jsx(Button, { onClick: copyToClipboard, className: styles["code-block__button"], dangerouslySetInnerHTML: { __html: Icons.Copy } })] }));
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createElement as _createElement } from "react";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { DropdownOption } from "../DropdownOption";
|
|
6
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
7
|
+
import { Button } from "../Button";
|
|
8
|
+
import { Portal } from "../../utils/Portal";
|
|
9
|
+
import styles from "./Dropdown.module.scss";
|
|
10
|
+
export const Dropdown = ({ children, value, onChange, appearance = "outline", placeholder = "Select", className = "", initiallyOpened = false, disabled = false, }) => {
|
|
11
|
+
const [isOpened, setIsOpened] = React.useState(initiallyOpened);
|
|
12
|
+
const [selected, setSelected] = React.useState(value);
|
|
13
|
+
const [position, setPosition] = React.useState({
|
|
14
|
+
top: 0,
|
|
15
|
+
left: 0,
|
|
16
|
+
width: 0,
|
|
17
|
+
});
|
|
18
|
+
const [dropdownHeight, setDropdownHeight] = React.useState(0);
|
|
19
|
+
const [buttonHeight, setButtonHeight] = React.useState(0);
|
|
20
|
+
const buttonRef = React.useRef(null);
|
|
21
|
+
const boxRef = React.useRef(null);
|
|
22
|
+
const uniqueId = React.useId();
|
|
23
|
+
React.useLayoutEffect(() => {
|
|
24
|
+
if (!isOpened) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (boxRef.current) {
|
|
28
|
+
setDropdownHeight(boxRef.current.getBoundingClientRect().height);
|
|
29
|
+
}
|
|
30
|
+
if (buttonRef.current) {
|
|
31
|
+
setButtonHeight(buttonRef.current.getBoundingClientRect().height);
|
|
32
|
+
}
|
|
33
|
+
}, [isOpened]);
|
|
34
|
+
const options = React.Children.toArray(children).filter((child) => React.isValidElement(child) && child.type === DropdownOption);
|
|
35
|
+
const isValidValue = () => {
|
|
36
|
+
return !!options.find(({ props }) => props.value === value);
|
|
37
|
+
};
|
|
38
|
+
const handleChange = (currentRadioValue) => {
|
|
39
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(currentRadioValue);
|
|
40
|
+
setSelected(currentRadioValue);
|
|
41
|
+
setIsOpened(false);
|
|
42
|
+
};
|
|
43
|
+
const handleToggle = () => {
|
|
44
|
+
var _a;
|
|
45
|
+
if (disabled)
|
|
46
|
+
return;
|
|
47
|
+
const rect = (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
48
|
+
if (!rect)
|
|
49
|
+
return;
|
|
50
|
+
const spaceBelow = window.innerHeight - rect.bottom;
|
|
51
|
+
const spaceAbove = rect.top;
|
|
52
|
+
const shouldOpenUpwards = dropdownHeight > 0 &&
|
|
53
|
+
spaceBelow < dropdownHeight &&
|
|
54
|
+
spaceAbove > dropdownHeight;
|
|
55
|
+
const finalPosition = {
|
|
56
|
+
top: shouldOpenUpwards
|
|
57
|
+
? rect.top + window.scrollY - dropdownHeight - buttonHeight / 2
|
|
58
|
+
: rect.top + window.scrollY + buttonHeight + 6,
|
|
59
|
+
left: rect.left + window.scrollX,
|
|
60
|
+
width: rect.width,
|
|
61
|
+
};
|
|
62
|
+
setPosition(finalPosition);
|
|
63
|
+
setIsOpened((prev) => !prev);
|
|
64
|
+
};
|
|
65
|
+
if (!isValidValue()) {
|
|
66
|
+
throw new Error('The "value" prop did not match with any of the DropdownOption "value" prop');
|
|
67
|
+
}
|
|
68
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: `${styles["dropdown"]} ${className}`, children: _jsx(Button, { ref: buttonRef, className: styles["dropdown__button"], appearance: appearance, onClick: handleToggle, disabled: disabled, children: placeholder }) }), _jsx(Portal, { children: _jsx(AnimatePresence, { children: isOpened && (_jsxs("div", { className: styles["dropdown__box"], children: [_jsx(motion.div, { className: styles["dropdown__box-overlay"], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.3, ease: "easeIn" }, onClick: () => setIsOpened(false) }), _jsx(motion.div, { ref: boxRef, className: styles["dropdown__box-options"], initial: { opacity: 0, y: 20, scale: 0.95 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: 20, scale: 0.95 }, transition: { duration: 0.2, ease: "easeIn" }, style: {
|
|
69
|
+
top: position.top,
|
|
70
|
+
left: position.left,
|
|
71
|
+
width: position.width,
|
|
72
|
+
}, children: options.map(({ props }) => (_createElement(DropdownOption, Object.assign({}, props, { key: `${props.value}-${uniqueId}`, selectedValue: selected, onChange: () => handleChange(props.value) })))) })] })) }) })] }));
|
|
73
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./DropdownOption.module.scss";
|
|
3
|
+
export const DropdownOption = ({ children,
|
|
4
|
+
// value,
|
|
5
|
+
// selectedValue,
|
|
6
|
+
onChange,
|
|
7
|
+
// icon,
|
|
8
|
+
description,
|
|
9
|
+
// disabled,
|
|
10
|
+
}) => {
|
|
11
|
+
// const isSelected = selectedValue === value;
|
|
12
|
+
return (_jsx("button", { className: styles["dropdown-option"], onClick: onChange, children: _jsxs("div", { className: styles["dropdown-option__content"], children: [_jsx("h3", { className: styles["dropdown-option__title"], children: children }), _jsx("p", { className: styles["dropdown-option__description"], children: description })] }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icons } from "../../utils";
|
|
3
|
+
import styles from "./MessageBox.module.scss";
|
|
4
|
+
const renderIcon = (variant) => {
|
|
5
|
+
switch (variant) {
|
|
6
|
+
case "warning":
|
|
7
|
+
return Icons.Warning;
|
|
8
|
+
case "success":
|
|
9
|
+
return Icons.Success;
|
|
10
|
+
case "error":
|
|
11
|
+
return Icons.Error;
|
|
12
|
+
case "info":
|
|
13
|
+
default:
|
|
14
|
+
return Icons.Info;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export const MessageBox = ({ children, className = "", variant = "default", withIcon = false, customIcon = null, radius = "md", type = "outline", }) => (_jsxs("div", { className: `message-box ${styles["message-box"]} ${styles[`message-box-type--${type}`]} ${styles[`message-box-radius--${radius}`]} ${styles[`message-box--${variant}`]} ${className}`, children: [withIcon && (_jsx("span", { className: `${styles["message-box__icon"]} ${styles[`message-box__icon--${variant}`]}`, dangerouslySetInnerHTML: {
|
|
18
|
+
__html: customIcon ? customIcon : renderIcon(variant),
|
|
19
|
+
} })), _jsx("p", { className: `${styles["message-box__content"]}`, dangerouslySetInnerHTML: { __html: children || "" } })] }));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./Radio.module.scss";
|
|
3
|
+
export const Radio = ({ children, value, checked, name, disabled = false, highlightLabel = false, className = "", size = "md", variant = "default", appearance = "default", alignLabel = "right", onChange, }) => {
|
|
4
|
+
const handleChange = () => {
|
|
5
|
+
if (!disabled && onChange) {
|
|
6
|
+
onChange(value);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("label", { className: `${styles["radio"]} ${styles[`radio-align-label--${alignLabel}`]} ${styles[`radio-appearance--${appearance}`]} ${styles[`radio-variant--${variant}`]} ${styles[`radio-size--${size}`]} ${disabled ? styles["radio--disabled"] : ""} ${className}`, children: [_jsx("input", { type: "radio", name: name, value: value, checked: checked, disabled: disabled, onChange: handleChange, className: styles["radio__input"] }), _jsx("span", { className: styles["radio__control"] }), children && (_jsx("span", { className: `${styles["radio__label"]} ${highlightLabel ? styles["radio__label--highlight-label"] : ""}`, children: children }))] }));
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as _createElement } from "react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { Radio } from "../Radio";
|
|
6
|
+
import styles from "./RadioGroup.module.scss";
|
|
7
|
+
export const RadioGroup = ({ name, value, onChange, children, disabled = false, highlightLabel = false, className = "", size = "md", variant = "default", appearance = "outline", align = "horizontal", alignLabel = "right", }) => {
|
|
8
|
+
const uniqueId = React.useId();
|
|
9
|
+
const [currentValue, setCurrentValue] = React.useState(value);
|
|
10
|
+
const radios = React.Children.toArray(children).filter((child) => React.isValidElement(child) && child.type === Radio);
|
|
11
|
+
const handleChange = (currentRadioValue) => {
|
|
12
|
+
if (onChange) {
|
|
13
|
+
onChange(currentRadioValue);
|
|
14
|
+
}
|
|
15
|
+
setCurrentValue(currentRadioValue);
|
|
16
|
+
};
|
|
17
|
+
return (_jsx("div", { className: `${styles["radio-group"]} ${styles[`radio-group--${align}`]} ${className}`, children: radios.map(({ props }) => {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f;
|
|
19
|
+
return (_createElement(Radio, Object.assign({}, props, { key: `${name}-${props.value}-${uniqueId}`, name: `${name}-${props.value}-${uniqueId}`, checked: props.value === currentValue, onChange: () => handleChange(props.value), disabled: (_a = props.disabled) !== null && _a !== void 0 ? _a : disabled, size: (_b = props.size) !== null && _b !== void 0 ? _b : size, variant: (_c = props.variant) !== null && _c !== void 0 ? _c : variant, appearance: (_d = props.appearance) !== null && _d !== void 0 ? _d : appearance, highlightLabel: (_e = props.highlightLabel) !== null && _e !== void 0 ? _e : highlightLabel, alignLabel: (_f = props.alignLabel) !== null && _f !== void 0 ? _f : alignLabel })));
|
|
20
|
+
}) }, uniqueId));
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import styles from "./Spinner.module.scss";
|
|
4
|
+
export const Spinner = ({ type = "default", variant = "default", size = "md", className = "", }) => {
|
|
5
|
+
return (_jsx("div", { className: `spinner ${styles[`spinner-type--${type}`]} ${styles[`spinner-variant--${variant}`]} ${styles[`spinner-size--${size}`]} ${className}` }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import styles from "./Switch.module.scss";
|
|
5
|
+
//@TODO: Fix the the switch styling, which is breaking when continuously clicking on the component
|
|
6
|
+
export const Switch = ({ label, alignLabel = "vertical", checked, switchSize = "md", variant = "default", disabled = false, trackIcon, thumbIcon, className = "", onChange, }) => {
|
|
7
|
+
const id = React.useId();
|
|
8
|
+
const [isChecked, setIsChecked] = React.useState(!!checked);
|
|
9
|
+
const handleChange = () => {
|
|
10
|
+
setIsChecked((prev) => !prev);
|
|
11
|
+
if (onChange)
|
|
12
|
+
onChange();
|
|
13
|
+
};
|
|
14
|
+
return (_jsxs("label", { htmlFor: id, className: `${styles["switch"]} ${styles[`switch-size--${switchSize}`]} ${styles[`switch-variant--${variant}`]} ${styles[`switch-align-label--${alignLabel}`]} ${disabled ? styles["switch--disabled"] : ""} ${className}`, children: [_jsx("input", { id: id, type: "checkbox", disabled: disabled, checked: isChecked, onChange: handleChange }), _jsxs("span", { className: styles["switch__track"], children: [trackIcon && trackIcon.checked && (_jsx("span", { className: `${styles["switch__track-icon"]} ${styles["switch__track-icon--checked"]}`, children: React.createElement(trackIcon.checked) })), _jsx("span", { className: styles["switch__thumb"], children: thumbIcon && (_jsx("span", { className: styles["switch__thumb-icon"], children: React.createElement(thumbIcon) })) }), trackIcon && trackIcon.unchecked && (_jsx("span", { className: `${styles["switch__track-icon"]} ${styles["switch__track-icon--unchecked"]}`, children: React.createElement(trackIcon.unchecked) }))] }), label && _jsx("span", { className: styles["switch__label"], children: label })] }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./TabSwitchWithSlidingIndicator.module.scss";
|
|
4
|
+
export const TabSwitchWithSlidingIndicator = ({ tabs }) => {
|
|
5
|
+
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
6
|
+
const currentIndex = tabs.findIndex((_, i) => i === activeIndex);
|
|
7
|
+
return (_jsxs("div", { className: `tab-switch-with-sliding-indicator ${styles["tab-switch-with-sliding-indicator"]}`, children: [_jsxs("div", { className: styles["tab-switch-with-sliding-indicator__tabs"], children: [tabs.map(({ buttonContent }, index) => (_jsx("button", { className: `${styles["tab-switch-with-sliding-indicator__tab"]} ${activeIndex === index ? styles[" tab-switch-with-sliding-indicator__tab--active"] : ""}`, onClick: () => setActiveIndex(index), children:
|
|
8
|
+
// @TODO: This should be fixed: from consumer level we should be able to pass only string not components - once this is resolved the active tab should have text color white. Since we pass a whole component from consumer level it's hard to identify the most inner component which contains text, so we can change the color of it in different scenarios
|
|
9
|
+
buttonContent || index }, index))), _jsx("span", { className: styles["tab-switch-with-sliding-indicator__bar"], style: { left: `${currentIndex * 80}px` } })] }), _jsx("div", { className: styles["tab-switch-with-sliding-indicator__content"], children: tabs[currentIndex].content })] }));
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Anchor } from "./Anchor";
|
|
2
|
+
export { Button } from "./Button";
|
|
3
|
+
export { ButtonGroup } from "./ButtonGroup";
|
|
4
|
+
export { Dropdown } from "./Dropdown";
|
|
5
|
+
export { DropdownOption } from "./DropdownOption";
|
|
6
|
+
export { MessageBox } from "./MessageBox";
|
|
7
|
+
export { CodeBlock } from "./CodeBlock";
|
|
8
|
+
export { TabSwitchWithSlidingIndicator } from "./TabSwitchWithSlidingIndicator";
|
|
9
|
+
export { Spinner } from "./Spinner";
|
|
10
|
+
export { Switch } from "./Switch";
|
|
11
|
+
export { Radio } from "./Radio";
|
|
12
|
+
export { RadioGroup } from "./RadioGroup";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Anchor, Button, ButtonGroup, Dropdown, DropdownOption, MessageBox, CodeBlock, Spinner, Switch, } from "./components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../@types/index.d.ts","../@types/styles/scss-modules.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../components/radio/index.tsx","../components/radiogroup/index.tsx","../components/index.ts","../../../node_modules/@types/react-dom/index.d.ts","../utils/portal.tsx","../utils/icons.ts","../utils/ripple.tsx","../utils/index.ts","../index.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../node_modules/undici-types/utility.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client-stats.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/h2c-client.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-call-history.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cache-interceptor.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[66,79,125],[79,125],[64,65,79,125],[67,68,69,79,125],[63,66,67,79,125],[63,66,67,68,79,125],[67,70,79,125],[79,122,125],[79,124,125],[125],[79,125,130,160],[79,125,126,131,137,145,157,168],[79,125,126,127,137,145],[79,125,128,169],[79,125,129,130,138,146],[79,125,130,157,165],[79,125,131,133,137,145],[79,124,125,132],[79,125,133,134],[79,125,135,137],[79,124,125,137],[79,125,137,138,139,157,168],[79,125,137,138,139,152,157,160],[79,120,125],[79,120,125,133,137,140,145,157,168],[79,125,137,138,140,141,145,157,165,168],[79,125,140,142,157,165,168],[77,78,79,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174],[79,125,137,143],[79,125,144,168],[79,125,133,137,145,157],[79,125,146],[79,125,147],[79,124,125,148],[79,122,123,124,125,126,127,128,129,130,131,132,133,134,135,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174],[79,125,150],[79,125,151],[79,125,137,152,153],[79,125,152,154,169,171],[79,125,137,157,158,160],[79,125,159,160],[79,125,157,158],[79,125,160],[79,125,161],[79,122,125,157,162],[79,125,137,163,164],[79,125,163,164],[79,125,130,145,157,165],[79,125,166],[79,125,145,167],[79,125,140,151,168],[79,125,130,169],[79,125,157,170],[79,125,144,171],[79,125,172],[79,125,137,139,148,157,160,168,170,171,173],[79,125,157,174],[79,87,90,93,94,125,168],[79,90,125,157,168],[79,90,94,125,168],[79,125,157],[79,84,125],[79,88,125],[79,86,87,90,125,168],[79,125,145,165],[79,125,175],[79,84,125,175],[79,86,90,125,145,168],[79,81,82,83,85,89,125,137,157,168],[79,90,98,125],[79,82,88,125],[79,90,114,115,125],[79,82,85,90,125,160,168,175],[79,90,125],[79,86,90,125,168],[79,81,125],[79,84,85,86,88,89,90,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,115,116,117,118,119,125],[79,90,107,110,125,133],[79,90,98,99,100,125],[79,88,90,99,101,125],[79,89,125],[79,82,84,90,125],[79,90,94,99,101,125],[79,94,125],[79,88,90,93,125,168],[79,82,86,90,98,125],[79,90,107,125],[79,84,90,114,125,160,173,175],[62,67,79,125],[67,73,74,79,125],[66,67,71,79,125],[67,79,125]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"f90cd2c3a93cae3b0e20c31b54b0f5274b43bd614a90341142a533f66d2f0ba5","0a044244375c700dc399984f7f8adf4382f75eeb7e3c4edfa3831c9106f16954",{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"af5eabf1ad1627f116f661b0232c0fa57e7918123c2d191776f77e84c7e71f44","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"3b32ad804492ed744efda1c44f0ddc1d11f713997830a0f683889583ba9406e9","signature":"e444b0611813cdda2f5cace417d1d68433f7aeb6aea0482ac1252f2a3b35f16e"},{"version":"1e7f685734bee72393ce71ee779f875501ab9ee99ae89b648d6aee5fccde88b7","signature":"741d5eecd515fb6b7865b9d3256deaa75939c25784b14d94ff4e2c7368dbc0ec"},"818c38060bdb0d9647bbe2c166119e3cb05b38c55da0552d2648be22ef85d7d6",{"version":"115b2ad73fa7d175cd71a5873d984c21593b2a022f1a2036cc39d9f53629e5dc","impliedFormat":1},{"version":"6d649584dae5c95852da35d3b7295f4d0442cae3867db2584e70ac0869bd87aa","signature":"0459cf6187aa67e43ca9c93881fb83737ea2dba7f20aba0537336be7c57db0e5"},{"version":"0d1f10be352ac65dad8e682440d07e6f96bc2313468948e2b86960d120ee86d0","signature":"8c902282bd82c87c4ff39f4d2ab00d5c3989988e4933c9dfcb83af82e85b5dd1"},{"version":"2131dccd3974363f85b1c37b335ec39ac4701dc8c55b874907e9ce5586131cc9","signature":"0b2c3364cb5720a80e2b6f58ba739eae0cd0ea5d16506e789077a9ed61ba6273"},"475ca14b7c6667df6bebedd23ea900b774489e4a54075b50c0f7d499bff730c8","14df164274d3e3382ee6a08462d0f6a90a8eeee546bfe5eff0a9525455f8c3bd",{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0671b50bb99cc7ad46e9c68fa0e7f15ba4bc898b59c31a17ea4611fab5095da","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"e525f9e67f5ddba7b5548430211cae2479070b70ef1fd93550c96c10529457bd","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"4bc0794175abedf989547e628949888c1085b1efcd93fc482bccd77ee27f8b7c","impliedFormat":1},{"version":"3c8e93af4d6ce21eb4c8d005ad6dc02e7b5e6781f429d52a35290210f495a674","impliedFormat":1},{"version":"2c9875466123715464539bfd69bcaccb8ff6f3e217809428e0d7bd6323416d01","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"6c8e442ba33b07892169a14f7757321e49ab0f1032d676d321a1fdab8a67d40c","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"1cd673d367293fc5cb31cd7bf03d598eb368e4f31f39cf2b908abbaf120ab85a","impliedFormat":1},{"version":"af13e99445f37022c730bfcafcdc1761e9382ce1ea02afb678e3130b01ce5676","impliedFormat":1},{"version":"3825bf209f1662dfd039010a27747b73d0ef379f79970b1d05601ec8e8a4249f","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"da52342062e70c77213e45107921100ba9f9b3a30dd019444cf349e5fb3470c4","impliedFormat":1},{"version":"e9ace91946385d29192766bf783b8460c7dbcbfc63284aa3c9cae6de5155c8bc","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"1e30c045732e7db8f7a82cf90b516ebe693d2f499ce2250a977ec0d12e44a529","impliedFormat":1},{"version":"84b736594d8760f43400202859cda55607663090a43445a078963031d47e25e7","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"78b29846349d4dfdd88bd6650cc5d2baaa67f2e89dc8a80c8e26ef7995386583","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"e38d4fdf79e1eadd92ed7844c331dbaa40f29f21541cfee4e1acff4db09cda33","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"7c10a32ae6f3962672e6869ee2c794e8055d8225ef35c91c0228e354b4e5d2d3","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"99f569b42ea7e7c5fe404b2848c0893f3e1a56e0547c1cd0f74d5dbb9a9de27e","impliedFormat":1},{"version":"f4b4faedc57701ae727d78ba4a83e466a6e3bdcbe40efbf913b17e860642897c","affectsGlobalScope":true,"impliedFormat":1},{"version":"bbcfd9cd76d92c3ee70475270156755346c9086391e1b9cb643d072e0cf576b8","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"003ec918ec442c3a4db2c36dc0c9c766977ea1c8bcc1ca7c2085868727c3d3f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6310806c6aa3154773976dd083a15659d294700d9ad8f6b8a2e10c3dc461ff1","impliedFormat":1},{"version":"c4e8e8031808b158cfb5ac5c4b38d4a26659aec4b57b6a7e2ba0a141439c208c","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"db39d9a16e4ddcd8a8f2b7b3292b362cc5392f92ad7ccd76f00bccf6838ac7de","affectsGlobalScope":true,"impliedFormat":1},{"version":"289e9894a4668c61b5ffed09e196c1f0c2f87ca81efcaebdf6357cfb198dac14","impliedFormat":1},{"version":"25a1105595236f09f5bce42398be9f9ededc8d538c258579ab662d509aa3b98e","impliedFormat":1},{"version":"5078cd62dbdf91ae8b1dc90b1384dec71a9c0932d62bdafb1a811d2a8e26bef2","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"62f572306e0b173cc5dfc4c583471151f16ef3779cf27ab96922c92ec82a3bc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"622b67a408a881e15ab38043547563b9d29ca4b46f5b7a7e4a4fc3123d25d19f","impliedFormat":1},{"version":"2617f1d06b32c7b4dfd0a5c8bc7b5de69368ec56788c90f3d7f3e3d2f39f0253","impliedFormat":1},{"version":"bd8b644c5861b94926687618ec2c9e60ad054d334d6b7eb4517f23f53cb11f91","impliedFormat":1},{"version":"bcbabfaca3f6b8a76cb2739e57710daf70ab5c9479ab70f5351c9b4932abf6bd","impliedFormat":1},{"version":"77fced47f495f4ff29bb49c52c605c5e73cd9b47d50080133783032769a9d8a6","impliedFormat":1},{"version":"966dd0793b220e22344c944e0f15afafdc9b0c9201b6444ea0197cd176b96893","impliedFormat":1},{"version":"c54f0b30a787b3df16280f4675bd3d9d17bf983ae3cd40087409476bc50b922d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0f5cda0282e1d18198e2887387eb2f026372ebc4e11c4e4516fef8a19ee4d514","impliedFormat":1},{"version":"e99b0e71f07128fc32583e88ccd509a1aaa9524c290efb2f48c22f9bf8ba83b1","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"5e9f8c1e042b0f598a9be018fc8c3cb670fe579e9f2e18e3388b63327544fe16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a8a99a5e6ed33c4a951b67cc1fd5b64fd6ad719f5747845c165ca12f6c21ba16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"1013eb2e2547ad8c100aca52ef9df8c3f209edee32bb387121bb3227f7c00088","impliedFormat":1},{"version":"e07c573ac1971ea89e2c56ff5fd096f6f7bba2e6dbcd5681d39257c8d954d4a8","impliedFormat":1},{"version":"363eedb495912790e867da6ff96e81bf792c8cfe386321e8163b71823a35719a","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"dba28a419aec76ed864ef43e5f577a5c99a010c32e5949fe4e17a4d57c58dd11","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea713aa14a670b1ea0fbaaca4fd204e645f71ca7653a834a8ec07ee889c45de6","impliedFormat":1},{"version":"07199a85560f473f37363d8f1300fac361cda2e954caf8a40221f83a6bfa7ade","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"982efeb2573605d4e6d5df4dc7e40846bda8b9e678e058fc99522ab6165c479e","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"c9231cf03fd7e8cfd78307eecbd24ff3f0fa55d0f6d1108c4003c124d168adc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2d5d50cd0667d9710d4d2f6e077cc4e0f9dc75e106cccaea59999b36873c5a0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"784490137935e1e38c49b9289110e74a1622baf8a8907888dcbe9e476d7c5e44","impliedFormat":1},{"version":"42180b657831d1b8fead051698618b31da623fb71ff37f002cb9d932cfa775f1","impliedFormat":1},{"version":"4f98d6fb4fe7cbeaa04635c6eaa119d966285d4d39f0eb55b2654187b0b27446","impliedFormat":1},{"version":"f8529fe0645fd9af7441191a4961497cc7638f75a777a56248eac6a079bb275d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4445f6ce6289c5b2220398138da23752fd84152c5c95bb8b58dedefc1758c036","impliedFormat":1},{"version":"a51f786b9f3c297668f8f322a6c58f85d84948ef69ade32069d5d63ec917221c","impliedFormat":1}],"root":[62,63,[68,70],[72,76]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"strict":true,"target":2},"referencedMap":[[71,1],[64,2],[66,3],[67,1],[80,2],[65,2],[62,2],[63,2],[70,4],[68,5],[69,6],[76,7],[122,8],[123,8],[124,9],[79,10],[125,11],[126,12],[127,13],[77,2],[128,14],[129,15],[130,16],[131,17],[132,18],[133,19],[134,19],[136,2],[135,20],[137,21],[138,22],[139,23],[121,24],[78,2],[140,25],[141,26],[142,27],[175,28],[143,29],[144,30],[145,31],[146,32],[147,33],[148,34],[149,35],[150,36],[151,37],[152,38],[153,38],[154,39],[155,2],[156,2],[157,40],[159,41],[158,42],[160,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[60,2],[61,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[22,2],[23,2],[4,2],[24,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[5,2],[32,2],[33,2],[34,2],[35,2],[6,2],[39,2],[36,2],[37,2],[38,2],[40,2],[7,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[8,2],[51,2],[48,2],[49,2],[50,2],[52,2],[9,2],[53,2],[54,2],[55,2],[57,2],[56,2],[1,2],[58,2],[59,2],[98,58],[109,59],[96,60],[110,61],[119,62],[87,63],[88,64],[86,65],[118,66],[113,67],[117,68],[90,69],[106,70],[89,71],[116,72],[84,73],[85,67],[91,74],[92,2],[97,75],[95,74],[82,76],[120,77],[111,78],[101,79],[100,74],[102,80],[104,81],[99,82],[103,83],[114,66],[93,84],[94,85],[105,86],[83,61],[108,87],[107,74],[112,2],[81,2],[115,88],[73,89],[75,90],[72,91],[74,92]],"version":"5.8.3"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/Anchor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,OAAQ,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;CAC/C;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CA6BpC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: "default" | "primary" | "secondary" | "success" | "error" | "warning";
|
|
4
|
+
appearance?: "solid" | "outline" | "outline-dashed" | "no-outline" | "glowing";
|
|
5
|
+
size?: "xsm" | "sm" | "md" | "lg" | "xlg";
|
|
6
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
7
|
+
icon?: {
|
|
8
|
+
component: React.ElementType;
|
|
9
|
+
align?: "left" | "right";
|
|
10
|
+
};
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
spinnerType?: "default" | "duo" | "gradient" | "pulse" | "pulse-duo";
|
|
13
|
+
}
|
|
14
|
+
export declare const Button: React.FC<IButton>;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|