@arkyn/components 1.3.78 → 1.3.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +862 -865
- package/dist/bundle.umd.cjs +10 -10
- package/dist/components/Alert/AlertContainer/index.d.ts.map +1 -1
- package/dist/components/Alert/AlertContainer/index.js +3 -3
- package/dist/components/Alert/AlertContent/index.d.ts.map +1 -1
- package/dist/components/Alert/AlertContent/index.js +3 -3
- package/dist/components/Alert/AlertDescription/index.d.ts.map +1 -1
- package/dist/components/Alert/AlertDescription/index.js +3 -3
- package/dist/components/Alert/AlertIcon/index.js +1 -1
- package/dist/components/Alert/AlertTitle/index.d.ts.map +1 -1
- package/dist/components/Alert/AlertTitle/index.js +3 -3
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Breadcrumb/BreadcrumbContainer/index.js +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink/index.js +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +6 -2
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +4 -2
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/Container/index.js +3 -3
- package/dist/components/Drawer/Header/index.js +2 -2
- package/dist/components/Form/FormController/index.js +1 -1
- package/dist/components/Form/FormError/index.js +1 -1
- package/dist/components/Form/FormLabel/index.js +3 -3
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.js +3 -2
- package/dist/components/Modal/Container/index.js +3 -3
- package/dist/components/Modal/Footer/index.js +1 -1
- package/dist/components/Modal/Header/index.js +2 -2
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +3 -2
- package/dist/components/Radio/RadioBox/index.d.ts.map +1 -1
- package/dist/components/Radio/RadioBox/index.js +6 -6
- package/dist/components/Radio/RadioGroup/index.js +2 -2
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Table/TableBody/index.js +1 -1
- package/dist/components/Table/TableCaption/index.js +2 -2
- package/dist/components/Table/TableContainer/index.js +1 -1
- package/dist/components/Table/TableFooter/index.js +2 -2
- package/dist/components/Table/TableHeader/index.js +2 -2
- package/dist/components/Tabs/TabButton/index.js +3 -3
- package/dist/components/Tabs/TabContainer/index.js +2 -2
- package/dist/components/Textarea/index.js +4 -4
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Alert/AlertContainer/index.tsx +3 -5
- package/src/components/Alert/AlertContainer/styles.css +5 -5
- package/src/components/Alert/AlertContent/index.tsx +3 -8
- package/src/components/Alert/AlertContent/styles.css +1 -1
- package/src/components/Alert/AlertDescription/index.tsx +3 -7
- package/src/components/Alert/AlertDescription/styles.css +1 -2
- package/src/components/Alert/AlertIcon/index.tsx +1 -1
- package/src/components/Alert/AlertIcon/styles.css +5 -5
- package/src/components/Alert/AlertTitle/index.tsx +3 -7
- package/src/components/Alert/AlertTitle/styles.css +1 -2
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/Badge/styles.css +19 -23
- package/src/components/Breadcrumb/BreadcrumbContainer/index.tsx +1 -1
- package/src/components/Breadcrumb/BreadcrumbContainer/styles.css +1 -33
- package/src/components/Breadcrumb/BreadcrumbLink/index.tsx +1 -1
- package/src/components/Breadcrumb/BreadcrumbLink/styles.css +6 -6
- package/src/components/Button/index.tsx +8 -3
- package/src/components/Button/styles.css +45 -45
- package/src/components/Card/index.tsx +1 -1
- package/src/components/Card/styles.css +1 -1
- package/src/components/Checkbox/index.tsx +6 -4
- package/src/components/Checkbox/styles.css +12 -12
- package/src/components/Divider/index.tsx +2 -2
- package/src/components/Divider/styles.css +3 -3
- package/src/components/Drawer/Container/index.tsx +4 -4
- package/src/components/Drawer/Container/styles.css +6 -6
- package/src/components/Drawer/Header/index.tsx +2 -2
- package/src/components/Drawer/Header/styles.css +3 -3
- package/src/components/Form/FormController/index.tsx +1 -1
- package/src/components/Form/FormController/styles.css +1 -1
- package/src/components/Form/FormError/index.tsx +1 -1
- package/src/components/Form/FormError/styles.css +1 -1
- package/src/components/Form/FormLabel/index.tsx +3 -3
- package/src/components/Form/FormLabel/styles.css +2 -2
- package/src/components/IconButton/index.tsx +4 -3
- package/src/components/IconButton/styles.css +35 -35
- package/src/components/Modal/Container/index.tsx +4 -4
- package/src/components/Modal/Container/styles.css +4 -4
- package/src/components/Modal/Footer/index.tsx +1 -1
- package/src/components/Modal/Footer/styles.css +6 -6
- package/src/components/Modal/Header/index.tsx +2 -2
- package/src/components/Modal/Header/styles.css +3 -3
- package/src/components/Pagination/index.tsx +10 -10
- package/src/components/Pagination/styles.css +13 -13
- package/src/components/Popover/index.tsx +4 -6
- package/src/components/Popover/styles.css +13 -13
- package/src/components/Radio/RadioBox/index.tsx +8 -4
- package/src/components/Radio/RadioBox/styles.css +14 -14
- package/src/components/Radio/RadioGroup/index.tsx +2 -2
- package/src/components/Radio/RadioGroup/styles.css +1 -1
- package/src/components/Skeleton/index.tsx +1 -1
- package/src/components/Skeleton/styles.css +1 -1
- package/src/components/Table/TableBody/index.tsx +1 -1
- package/src/components/Table/TableBody/styles.css +8 -8
- package/src/components/Table/TableCaption/index.tsx +2 -2
- package/src/components/Table/TableCaption/styles.css +3 -3
- package/src/components/Table/TableContainer/index.tsx +1 -1
- package/src/components/Table/TableContainer/styles.css +2 -2
- package/src/components/Table/TableFooter/index.tsx +3 -3
- package/src/components/Table/TableFooter/styles.css +2 -2
- package/src/components/Table/TableHeader/index.tsx +2 -2
- package/src/components/Table/TableHeader/styles.css +4 -4
- package/src/components/Tabs/TabButton/index.tsx +4 -4
- package/src/components/Tabs/TabButton/styles.css +4 -4
- package/src/components/Tabs/TabContainer/index.tsx +2 -2
- package/src/components/Tabs/TabContainer/styles.css +2 -2
- package/src/components/Textarea/index.tsx +4 -4
- package/src/components/Textarea/styles.css +16 -16
- package/src/components/Toast/index.tsx +1 -1
- package/src/components/Toast/styles.css +25 -25
- package/src/components/Tooltip/index.tsx +3 -3
- package/src/components/Tooltip/styles.css +13 -13
@@ -2,14 +2,10 @@ import { AlertDescriptionProps } from "@arkyn/types";
|
|
2
2
|
import "./styles.css";
|
3
3
|
|
4
4
|
function AlertDescription(props: AlertDescriptionProps) {
|
5
|
-
const {
|
6
|
-
const className = `
|
5
|
+
const { className: baseClassName, ...rest } = props;
|
6
|
+
const className = `arkynAlertDescription ${baseClassName}`;
|
7
7
|
|
8
|
-
return (
|
9
|
-
<div className={className.trim()} {...rest}>
|
10
|
-
{children}
|
11
|
-
</div>
|
12
|
-
);
|
8
|
+
return <div className={className.trim()} {...rest} />;
|
13
9
|
}
|
14
10
|
|
15
11
|
export { AlertDescription };
|
@@ -8,7 +8,7 @@ function AlertIcon(props: AlertIconProps) {
|
|
8
8
|
const { className: baseClassName, ...rest } = props;
|
9
9
|
const { schema } = useAlertContainer();
|
10
10
|
|
11
|
-
const className = `
|
11
|
+
const className = `arkynAlertIcon ${schema} ${baseClassName}`;
|
12
12
|
|
13
13
|
switch (schema) {
|
14
14
|
case "success":
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynAlertIcon {
|
2
2
|
min-width: 28px;
|
3
3
|
min-height: 28px;
|
4
4
|
|
@@ -6,18 +6,18 @@
|
|
6
6
|
max-height: 28px;
|
7
7
|
}
|
8
8
|
|
9
|
-
.
|
9
|
+
.arkynAlertIcon.danger {
|
10
10
|
color: rgba(var(--spotlight-danger), 1);
|
11
11
|
}
|
12
12
|
|
13
|
-
.
|
13
|
+
.arkynAlertIcon.success {
|
14
14
|
color: rgba(var(--spotlight-success), 1);
|
15
15
|
}
|
16
16
|
|
17
|
-
.
|
17
|
+
.arkynAlertIcon.info {
|
18
18
|
color: rgba(var(--spotlight-info), 1);
|
19
19
|
}
|
20
20
|
|
21
|
-
.
|
21
|
+
.arkynAlertIcon.warning {
|
22
22
|
color: rgba(var(--spotlight-warning), 1);
|
23
23
|
}
|
@@ -2,14 +2,10 @@ import { AlertTitleProps } from "@arkyn/types";
|
|
2
2
|
import "./styles.css";
|
3
3
|
|
4
4
|
function AlertTitle(props: AlertTitleProps) {
|
5
|
-
const {
|
6
|
-
const className = `
|
5
|
+
const { className: baseClassName, ...rest } = props;
|
6
|
+
const className = `arkynAlertTitle ${baseClassName}`;
|
7
7
|
|
8
|
-
return (
|
9
|
-
<div className={className.trim()} {...rest}>
|
10
|
-
{children}
|
11
|
-
</div>
|
12
|
-
);
|
8
|
+
return <div className={className.trim()} {...rest} />;
|
13
9
|
}
|
14
10
|
|
15
11
|
export { AlertTitle };
|
@@ -18,7 +18,7 @@ function Badge(args: BadgeProps) {
|
|
18
18
|
const iconSizes = { md: 12, lg: 14 };
|
19
19
|
const iconSize = iconSizes[size];
|
20
20
|
|
21
|
-
const className = `
|
21
|
+
const className = `arkynBadge ${variant} ${scheme} ${size} ${baseClassName}`;
|
22
22
|
|
23
23
|
return (
|
24
24
|
<div className={className.trim()} {...rest}>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* BASE */
|
2
|
-
.
|
2
|
+
.arkynBadge {
|
3
3
|
display: flex;
|
4
4
|
align-items: center;
|
5
5
|
justify-content: center;
|
@@ -11,86 +11,82 @@
|
|
11
11
|
}
|
12
12
|
|
13
13
|
/* VARIANTS */
|
14
|
-
.
|
14
|
+
.arkynBadge.solid {
|
15
15
|
color: #fff;
|
16
16
|
}
|
17
17
|
|
18
|
-
.
|
18
|
+
.arkynBadge.solid.primary {
|
19
19
|
background-color: rgba(var(--spotlight-primary), 1);
|
20
20
|
}
|
21
21
|
|
22
|
-
.
|
22
|
+
.arkynBadge.solid.danger {
|
23
23
|
background-color: rgba(var(--spotlight-danger), 1);
|
24
24
|
}
|
25
25
|
|
26
|
-
.
|
26
|
+
.arkynBadge.solid.success {
|
27
27
|
background-color: rgba(var(--spotlight-success), 1);
|
28
28
|
}
|
29
29
|
|
30
|
-
.
|
30
|
+
.arkynBadge.solid.warning {
|
31
31
|
background-color: rgba(var(--spotlight-warning), 1);
|
32
32
|
}
|
33
33
|
|
34
|
-
.
|
34
|
+
.arkynBadge.solid.info {
|
35
35
|
background-color: rgba(var(--spotlight-info), 1);
|
36
36
|
}
|
37
37
|
|
38
|
-
.
|
39
|
-
background-color: rgba(var(--spotlight-outline), 1);
|
40
|
-
}
|
41
|
-
|
42
|
-
.arkyn_badge.outline.primary {
|
38
|
+
.arkynBadge.outline.primary {
|
43
39
|
color: rgba(var(--spotlight-primary), 1);
|
44
40
|
border-color: rgba(var(--spotlight-primary), 1);
|
45
41
|
}
|
46
42
|
|
47
|
-
.
|
43
|
+
.arkynBadge.outline.danger {
|
48
44
|
color: rgba(var(--spotlight-danger), 1);
|
49
45
|
border-color: rgba(var(--spotlight-danger), 1);
|
50
46
|
}
|
51
47
|
|
52
|
-
.
|
48
|
+
.arkynBadge.outline.success {
|
53
49
|
color: rgba(var(--spotlight-success), 1);
|
54
50
|
border-color: rgba(var(--spotlight-success), 1);
|
55
51
|
}
|
56
52
|
|
57
|
-
.
|
53
|
+
.arkynBadge.outline.warning {
|
58
54
|
color: rgba(var(--spotlight-warning), 1);
|
59
55
|
border-color: rgba(var(--spotlight-warning), 1);
|
60
56
|
}
|
61
57
|
|
62
|
-
.
|
58
|
+
.arkynBadge.outline.info {
|
63
59
|
color: rgba(var(--spotlight-info), 1);
|
64
60
|
border-color: rgba(var(--spotlight-info), 1);
|
65
61
|
}
|
66
62
|
|
67
|
-
.
|
63
|
+
.arkynBadge.ghost.primary {
|
68
64
|
color: rgba(var(--spotlight-primary), 1);
|
69
65
|
background-color: rgba(var(--spotlight-primary), 0.2);
|
70
66
|
}
|
71
67
|
|
72
|
-
.
|
68
|
+
.arkynBadge.ghost.danger {
|
73
69
|
color: rgba(var(--spotlight-danger), 1);
|
74
70
|
background-color: rgba(var(--spotlight-danger), 0.2);
|
75
71
|
}
|
76
72
|
|
77
|
-
.
|
73
|
+
.arkynBadge.ghost.success {
|
78
74
|
color: rgba(var(--spotlight-success), 1);
|
79
75
|
background-color: rgba(var(--spotlight-success), 0.2);
|
80
76
|
}
|
81
77
|
|
82
|
-
.
|
78
|
+
.arkynBadge.ghost.warning {
|
83
79
|
color: rgba(var(--spotlight-warning), 1);
|
84
80
|
background-color: rgba(var(--spotlight-warning), 0.2);
|
85
81
|
}
|
86
82
|
|
87
|
-
.
|
83
|
+
.arkynBadge.ghost.info {
|
88
84
|
color: rgba(var(--spotlight-info), 1);
|
89
85
|
background-color: rgba(var(--spotlight-info), 0.2);
|
90
86
|
}
|
91
87
|
|
92
88
|
/* SIZE */
|
93
|
-
.
|
89
|
+
.arkynBadge.lg {
|
94
90
|
font-weight: 400;
|
95
91
|
font-size: 12px;
|
96
92
|
line-height: 12px;
|
@@ -100,7 +96,7 @@
|
|
100
96
|
height: 24px;
|
101
97
|
}
|
102
98
|
|
103
|
-
.
|
99
|
+
.arkynBadge.md {
|
104
100
|
font-weight: 400;
|
105
101
|
font-size: 10px;
|
106
102
|
line-height: 10px;
|
@@ -3,7 +3,7 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function BreadcrumbContainer(args: BreadcrumbContainerProps) {
|
5
5
|
const { className: baseClassName = "", ...rest } = args;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynBreadcrumbContainer ${baseClassName}`;
|
7
7
|
|
8
8
|
return <nav className={className} {...rest} />;
|
9
9
|
}
|
@@ -1,39 +1,7 @@
|
|
1
|
-
.
|
1
|
+
.arkynBreadcrumbContainer {
|
2
2
|
display: flex;
|
3
3
|
align-items: center;
|
4
4
|
justify-content: start;
|
5
|
-
|
6
5
|
flex-wrap: wrap;
|
7
6
|
gap: 4px;
|
8
7
|
}
|
9
|
-
|
10
|
-
.arkyn_breadcrumb_link {
|
11
|
-
user-select: none;
|
12
|
-
text-decoration: none;
|
13
|
-
font-size: 14px;
|
14
|
-
color: var(--text-body);
|
15
|
-
}
|
16
|
-
|
17
|
-
.arkyn_breadcrumb_link.active {
|
18
|
-
color: var(--text-heading);
|
19
|
-
}
|
20
|
-
|
21
|
-
.arkyn_breadcrumb_link.inactive:hover {
|
22
|
-
cursor: pointer;
|
23
|
-
color: var(--text-heading);
|
24
|
-
}
|
25
|
-
|
26
|
-
.arkyn_breadcrumb_link:first-child > svg {
|
27
|
-
display: none;
|
28
|
-
}
|
29
|
-
|
30
|
-
.arkyn_breadcrumb_link:not(:first-child) {
|
31
|
-
display: flex;
|
32
|
-
align-items: center;
|
33
|
-
gap: 4px;
|
34
|
-
}
|
35
|
-
|
36
|
-
.arkyn_breadcrumb_link:not(:first-child) > svg {
|
37
|
-
display: unset;
|
38
|
-
color: var(--text-body);
|
39
|
-
}
|
@@ -16,7 +16,7 @@ function BreadcrumbLink(args: BreadcrumbLinkProps) {
|
|
16
16
|
} = args;
|
17
17
|
|
18
18
|
const active = pathname === to ? "active" : "inactive";
|
19
|
-
const className = `
|
19
|
+
const className = `arkynBreadcrumbLink ${active} ${baseClassName}`;
|
20
20
|
|
21
21
|
if (disabled) {
|
22
22
|
return (
|
@@ -1,30 +1,30 @@
|
|
1
|
-
.
|
1
|
+
.arkynBreadcrumbLink {
|
2
2
|
user-select: none;
|
3
3
|
text-decoration: none;
|
4
4
|
font-size: 14px;
|
5
5
|
color: var(--text-body);
|
6
6
|
}
|
7
7
|
|
8
|
-
.
|
8
|
+
.arkynBreadcrumbLink.active {
|
9
9
|
color: var(--text-muted);
|
10
10
|
}
|
11
11
|
|
12
|
-
.
|
12
|
+
.arkynBreadcrumbLink.inactive:hover {
|
13
13
|
cursor: pointer;
|
14
14
|
color: var(--text-muted);
|
15
15
|
}
|
16
16
|
|
17
|
-
.
|
17
|
+
.arkynBreadcrumbLink:first-child > svg {
|
18
18
|
display: none;
|
19
19
|
}
|
20
20
|
|
21
|
-
.
|
21
|
+
.arkynBreadcrumbLink:not(:first-child) {
|
22
22
|
display: flex;
|
23
23
|
align-items: center;
|
24
24
|
gap: 4px;
|
25
25
|
}
|
26
26
|
|
27
|
-
.
|
27
|
+
.arkynBreadcrumbLink:not(:first-child) > svg {
|
28
28
|
display: unset;
|
29
29
|
color: var(--text-body);
|
30
30
|
}
|
@@ -22,16 +22,21 @@ function Button(args: ButtonProps) {
|
|
22
22
|
const iconSizes = { xs: 12, sm: 16, md: 20, lg: 24 };
|
23
23
|
const iconSize = iconSizes[size];
|
24
24
|
|
25
|
-
const
|
25
|
+
const loadingClass = isLoading ? "loadingTrue" : "loadingFalse";
|
26
|
+
const loadingTextClass = !!loadingText
|
27
|
+
? "loadingTextTrue"
|
28
|
+
: "loadingTextFalse";
|
29
|
+
|
30
|
+
const className = `arkynButton ${loadingClass} ${variant} ${scheme} ${size} ${loadingTextClass} ${baseClassName}`;
|
26
31
|
|
27
32
|
return (
|
28
33
|
<button className={className} disabled={disabled || isLoading} {...rest}>
|
29
|
-
<div className="
|
34
|
+
<div className="arkynButtonSpinner">
|
30
35
|
<Loader2 size={iconSize} strokeWidth={2.5} />
|
31
36
|
{loadingText && loadingText}
|
32
37
|
</div>
|
33
38
|
|
34
|
-
<div className="
|
39
|
+
<div className="arkynButtonContent">
|
35
40
|
{GenerateIcon(iconSize, leftIcon)}
|
36
41
|
{children}
|
37
42
|
{GenerateIcon(iconSize, rightIcon)}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* BASE */
|
2
|
-
.
|
2
|
+
.arkynButton {
|
3
3
|
background: transparent;
|
4
4
|
border: 1px solid transparent;
|
5
5
|
outline: 1px solid transparent;
|
@@ -7,22 +7,22 @@
|
|
7
7
|
transition: 0.15s all ease-out;
|
8
8
|
}
|
9
9
|
|
10
|
-
.
|
10
|
+
.arkynButton:hover {
|
11
11
|
cursor: pointer;
|
12
12
|
filter: brightness(0.95);
|
13
13
|
}
|
14
14
|
|
15
|
-
html.dark .
|
15
|
+
html.dark .arkynButton:hover {
|
16
16
|
cursor: pointer;
|
17
17
|
filter: brightness(1.2);
|
18
18
|
}
|
19
19
|
|
20
|
-
.
|
20
|
+
.arkynButton:disabled {
|
21
21
|
cursor: not-allowed;
|
22
22
|
opacity: 0.5;
|
23
23
|
}
|
24
24
|
|
25
|
-
.
|
25
|
+
.arkynButton .arkynButtonContent {
|
26
26
|
display: flex;
|
27
27
|
align-items: center;
|
28
28
|
justify-content: center;
|
@@ -30,102 +30,102 @@ html.dark .arkyn_button:hover {
|
|
30
30
|
}
|
31
31
|
|
32
32
|
/* VARIANTS */
|
33
|
-
.
|
33
|
+
.arkynButton.solid {
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
36
|
|
37
|
-
.
|
37
|
+
.arkynButton.solid.primary {
|
38
38
|
background-color: rgba(var(--spotlight-primary), 1);
|
39
39
|
}
|
40
40
|
|
41
|
-
.
|
41
|
+
.arkynButton.solid.danger {
|
42
42
|
background-color: rgba(var(--spotlight-danger), 1);
|
43
43
|
}
|
44
44
|
|
45
|
-
.
|
45
|
+
.arkynButton.solid.success {
|
46
46
|
background-color: rgba(var(--spotlight-success), 1);
|
47
47
|
}
|
48
48
|
|
49
|
-
.
|
49
|
+
.arkynButton.solid.warning {
|
50
50
|
background-color: rgba(var(--spotlight-warning), 1);
|
51
51
|
}
|
52
52
|
|
53
|
-
.
|
53
|
+
.arkynButton.solid.info {
|
54
54
|
background-color: rgba(var(--spotlight-info), 1);
|
55
55
|
}
|
56
56
|
|
57
|
-
.
|
57
|
+
.arkynButton.outline {
|
58
58
|
background-color: rgba(var(--input-background), 1);
|
59
59
|
border-color: var(--border);
|
60
60
|
}
|
61
61
|
|
62
|
-
.
|
62
|
+
.arkynButton.outline.primary {
|
63
63
|
color: rgba(var(--spotlight-primary), 1);
|
64
64
|
}
|
65
65
|
|
66
|
-
.
|
66
|
+
.arkynButton.outline.danger {
|
67
67
|
color: rgba(var(--spotlight-danger), 1);
|
68
68
|
}
|
69
69
|
|
70
|
-
.
|
70
|
+
.arkynButton.outline.success {
|
71
71
|
color: rgba(var(--spotlight-success), 1);
|
72
72
|
}
|
73
73
|
|
74
|
-
.
|
74
|
+
.arkynButton.outline.warning {
|
75
75
|
color: rgba(var(--spotlight-warning), 1);
|
76
76
|
}
|
77
77
|
|
78
|
-
.
|
78
|
+
.arkynButton.outline.info {
|
79
79
|
color: rgba(var(--spotlight-info), 1);
|
80
80
|
}
|
81
81
|
|
82
|
-
.
|
82
|
+
.arkynButton.ghost.primary {
|
83
83
|
color: rgba(var(--spotlight-primary), 1);
|
84
84
|
background-color: rgba(var(--spotlight-primary), 0.2);
|
85
85
|
}
|
86
86
|
|
87
|
-
.
|
87
|
+
.arkynButton.ghost.danger {
|
88
88
|
color: rgba(var(--spotlight-danger), 1);
|
89
89
|
background-color: rgba(var(--spotlight-danger), 0.2);
|
90
90
|
}
|
91
91
|
|
92
|
-
.
|
92
|
+
.arkynButton.ghost.success {
|
93
93
|
color: rgba(var(--spotlight-success), 1);
|
94
94
|
background-color: rgba(var(--spotlight-success), 0.2);
|
95
95
|
}
|
96
96
|
|
97
|
-
.
|
97
|
+
.arkynButton.ghost.warning {
|
98
98
|
color: rgba(var(--spotlight-warning), 1);
|
99
99
|
background-color: rgba(var(--spotlight-warning), 0.2);
|
100
100
|
}
|
101
101
|
|
102
|
-
.
|
102
|
+
.arkynButton.ghost.info {
|
103
103
|
color: rgba(var(--spotlight-info), 1);
|
104
104
|
background-color: rgba(var(--spotlight-info), 0.2);
|
105
105
|
}
|
106
106
|
|
107
|
-
.
|
107
|
+
.arkynButton.invisible.primary {
|
108
108
|
color: rgba(var(--spotlight-primary), 1);
|
109
109
|
}
|
110
110
|
|
111
|
-
.
|
111
|
+
.arkynButton.invisible.danger {
|
112
112
|
color: rgba(var(--spotlight-danger), 1);
|
113
113
|
}
|
114
114
|
|
115
|
-
.
|
115
|
+
.arkynButton.invisible.success {
|
116
116
|
color: rgba(var(--spotlight-success), 1);
|
117
117
|
}
|
118
118
|
|
119
|
-
.
|
119
|
+
.arkynButton.invisible.warning {
|
120
120
|
color: rgba(var(--spotlight-warning), 1);
|
121
121
|
}
|
122
122
|
|
123
|
-
.
|
123
|
+
.arkynButton.invisible.info {
|
124
124
|
color: rgba(var(--spotlight-info), 1);
|
125
125
|
}
|
126
126
|
|
127
127
|
/* SIZE */
|
128
|
-
.
|
128
|
+
.arkynButton.lg {
|
129
129
|
font-weight: 600;
|
130
130
|
font-size: 14px;
|
131
131
|
line-height: 14px;
|
@@ -135,12 +135,12 @@ html.dark .arkyn_button:hover {
|
|
135
135
|
height: 44px;
|
136
136
|
}
|
137
137
|
|
138
|
-
.
|
139
|
-
.
|
138
|
+
.arkynButton.lg .arkynButtonContent,
|
139
|
+
.arkynButton.lg .arkynButtonSpinner {
|
140
140
|
gap: 16px;
|
141
141
|
}
|
142
142
|
|
143
|
-
.
|
143
|
+
.arkynButton.md {
|
144
144
|
font-weight: 600;
|
145
145
|
font-size: 14px;
|
146
146
|
line-height: 14px;
|
@@ -151,12 +151,12 @@ html.dark .arkyn_button:hover {
|
|
151
151
|
height: 40px;
|
152
152
|
}
|
153
153
|
|
154
|
-
.
|
155
|
-
.
|
154
|
+
.arkynButton.md .arkynButtonContent,
|
155
|
+
.arkynButton.md .arkynButtonSpinner {
|
156
156
|
gap: 14px;
|
157
157
|
}
|
158
158
|
|
159
|
-
.
|
159
|
+
.arkynButton.sm {
|
160
160
|
font-weight: 600;
|
161
161
|
font-size: 12px;
|
162
162
|
line-height: 12px;
|
@@ -166,12 +166,12 @@ html.dark .arkyn_button:hover {
|
|
166
166
|
height: 32px;
|
167
167
|
}
|
168
168
|
|
169
|
-
.
|
170
|
-
.
|
169
|
+
.arkynButton.sm .arkynButtonContent,
|
170
|
+
.arkynButton.sm .arkynButtonSpinner {
|
171
171
|
gap: 12px;
|
172
172
|
}
|
173
173
|
|
174
|
-
.
|
174
|
+
.arkynButton.xs {
|
175
175
|
font-weight: 600;
|
176
176
|
font-size: 10px;
|
177
177
|
line-height: 10px;
|
@@ -181,13 +181,13 @@ html.dark .arkyn_button:hover {
|
|
181
181
|
height: 24px;
|
182
182
|
}
|
183
183
|
|
184
|
-
.
|
185
|
-
.
|
184
|
+
.arkynButton.xs .arkynButtonContent,
|
185
|
+
.arkynButton.xs .arkynButtonSpinner {
|
186
186
|
gap: 8px;
|
187
187
|
}
|
188
188
|
|
189
189
|
/* SPIN */
|
190
|
-
.
|
190
|
+
.arkynButton .arkynButtonSpinner {
|
191
191
|
display: flex;
|
192
192
|
align-items: center;
|
193
193
|
justify-content: center;
|
@@ -196,27 +196,27 @@ html.dark .arkyn_button:hover {
|
|
196
196
|
opacity: 0;
|
197
197
|
}
|
198
198
|
|
199
|
-
.
|
199
|
+
.arkynButton .arkynButtonSpinner > svg {
|
200
200
|
animation: spin 2s linear infinite;
|
201
201
|
}
|
202
202
|
|
203
|
-
.
|
203
|
+
.arkynButton.loadingTextFalse .arkynButtonSpinner {
|
204
204
|
position: absolute;
|
205
205
|
left: 50%;
|
206
206
|
top: 50%;
|
207
207
|
transform: translate(-50%, -50%);
|
208
208
|
}
|
209
209
|
|
210
|
-
.
|
210
|
+
.arkynButton.loadingTextTrue .arkynButtonSpinner {
|
211
211
|
max-height: 0px;
|
212
212
|
}
|
213
213
|
|
214
|
-
.
|
214
|
+
.arkynButton.loadingTrue .arkynButtonContent {
|
215
215
|
opacity: 0;
|
216
216
|
max-height: 0px;
|
217
217
|
}
|
218
218
|
|
219
|
-
.
|
219
|
+
.arkynButton.loadingTrue .arkynButtonSpinner {
|
220
220
|
opacity: 1;
|
221
221
|
max-height: unset;
|
222
222
|
}
|
@@ -3,7 +3,7 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function Card(props: CardProps) {
|
5
5
|
const { className: baseClassName, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynCard ${baseClassName}`;
|
7
7
|
|
8
8
|
return <div className={className.trim()} {...rest} />;
|
9
9
|
}
|
@@ -25,9 +25,10 @@ function Checkbox(props: CheckboxProps) {
|
|
25
25
|
const currentChecked =
|
26
26
|
typeof baseChecked === "boolean" ? baseChecked : isChecked;
|
27
27
|
|
28
|
-
const
|
29
|
-
|
30
|
-
|
28
|
+
const errorClass = isError ? "errorTrue" : "errorFalse";
|
29
|
+
const currentCheckedClass = currentChecked ? "checkedTrue" : "checkedFalse";
|
30
|
+
|
31
|
+
const className = `arkynCheckbox ${size} ${errorClass} ${currentCheckedClass} ${baseClassName}`;
|
31
32
|
|
32
33
|
function handleCheck() {
|
33
34
|
const defaultChecked = isChecked;
|
@@ -37,8 +38,8 @@ function Checkbox(props: CheckboxProps) {
|
|
37
38
|
|
38
39
|
return (
|
39
40
|
<button
|
40
|
-
type="button"
|
41
41
|
id={id}
|
42
|
+
type="button"
|
42
43
|
className={className}
|
43
44
|
onClick={handleCheck}
|
44
45
|
{...rest}
|
@@ -49,6 +50,7 @@ function Checkbox(props: CheckboxProps) {
|
|
49
50
|
ref={inputRef}
|
50
51
|
value={currentChecked ? value || "checked" : ""}
|
51
52
|
/>
|
53
|
+
|
52
54
|
<Check />
|
53
55
|
</button>
|
54
56
|
);
|