@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
@@ -33,9 +33,9 @@ function Pagination(props: PaginationProps) {
|
|
33
33
|
}
|
34
34
|
|
35
35
|
return (
|
36
|
-
<div className="
|
36
|
+
<div className="arkynPagination" {...rest}>
|
37
37
|
<button
|
38
|
-
className="
|
38
|
+
className="arkynPaginationIconButton"
|
39
39
|
disabled={currentPage <= 1}
|
40
40
|
onClick={() => handlePageChange(currentPage - 1)}
|
41
41
|
>
|
@@ -45,14 +45,14 @@ function Pagination(props: PaginationProps) {
|
|
45
45
|
{currentPage > 1 + siblingsCount && (
|
46
46
|
<>
|
47
47
|
<button
|
48
|
-
className="
|
48
|
+
className="arkynPaginationPageButton"
|
49
49
|
onClick={() => handlePageChange(1)}
|
50
50
|
>
|
51
51
|
1
|
52
52
|
</button>
|
53
53
|
|
54
54
|
{currentPage > 2 + siblingsCount && (
|
55
|
-
<button disabled className="
|
55
|
+
<button disabled className="arkynPaginationSpread">
|
56
56
|
<Ellipsis />
|
57
57
|
</button>
|
58
58
|
)}
|
@@ -63,13 +63,13 @@ function Pagination(props: PaginationProps) {
|
|
63
63
|
<button
|
64
64
|
key={index}
|
65
65
|
onClick={() => handlePageChange(page)}
|
66
|
-
className="
|
66
|
+
className="arkynPaginationPageButton"
|
67
67
|
>
|
68
68
|
{page}
|
69
69
|
</button>
|
70
70
|
))}
|
71
71
|
|
72
|
-
<button className="
|
72
|
+
<button className="arkynPaginationCurrent" disabled>
|
73
73
|
{currentPage}
|
74
74
|
</button>
|
75
75
|
|
@@ -77,7 +77,7 @@ function Pagination(props: PaginationProps) {
|
|
77
77
|
<button
|
78
78
|
key={index}
|
79
79
|
onClick={() => handlePageChange(page)}
|
80
|
-
className="
|
80
|
+
className="arkynPaginationPageButton"
|
81
81
|
>
|
82
82
|
{page}
|
83
83
|
</button>
|
@@ -86,13 +86,13 @@ function Pagination(props: PaginationProps) {
|
|
86
86
|
{currentPage + siblingsCount < lastPage && (
|
87
87
|
<>
|
88
88
|
{currentPage + 1 + siblingsCount < lastPage && (
|
89
|
-
<button disabled className="
|
89
|
+
<button disabled className="arkynPaginationSpread">
|
90
90
|
<Ellipsis />
|
91
91
|
</button>
|
92
92
|
)}
|
93
93
|
|
94
94
|
<button
|
95
|
-
className="
|
95
|
+
className="arkynPaginationPageButton"
|
96
96
|
onClick={() => handlePageChange(lastPage)}
|
97
97
|
>
|
98
98
|
{lastPage}
|
@@ -101,7 +101,7 @@ function Pagination(props: PaginationProps) {
|
|
101
101
|
)}
|
102
102
|
|
103
103
|
<button
|
104
|
-
className="
|
104
|
+
className="arkynPaginationIconButton"
|
105
105
|
disabled={currentPage >= lastPage}
|
106
106
|
onClick={() => handlePageChange(currentPage + 1)}
|
107
107
|
>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynPagination {
|
2
2
|
display: flex;
|
3
3
|
justify-content: center;
|
4
4
|
align-items: center;
|
@@ -6,8 +6,8 @@
|
|
6
6
|
gap: 8px;
|
7
7
|
}
|
8
8
|
|
9
|
-
.
|
10
|
-
.
|
9
|
+
.arkynPagination .arkynPaginationIconButton,
|
10
|
+
.arkynPagination .arkynPaginationPageButton {
|
11
11
|
background-color: var(--background-foreground);
|
12
12
|
border: none;
|
13
13
|
|
@@ -24,36 +24,36 @@
|
|
24
24
|
border-radius: var(--rounded-inputs);
|
25
25
|
}
|
26
26
|
|
27
|
-
.
|
28
|
-
.
|
27
|
+
.arkynPagination .arkynPaginationIconButton:hover,
|
28
|
+
.arkynPagination .arkynPaginationPageButton:hover {
|
29
29
|
filter: brightness(0.98);
|
30
30
|
cursor: pointer;
|
31
31
|
}
|
32
32
|
|
33
|
-
html.dark .
|
34
|
-
html.dark .
|
33
|
+
html.dark .arkynPagination .arkynPaginationIconButton:hover,
|
34
|
+
html.dark .arkynPagination .arkynPaginationPageButton:hover {
|
35
35
|
filter: brightness(1.2);
|
36
36
|
}
|
37
37
|
|
38
|
-
.
|
38
|
+
.arkynPagination .arkynPaginationIconButton > svg {
|
39
39
|
color: var(--text-muted);
|
40
40
|
height: 20px;
|
41
41
|
width: 20px;
|
42
42
|
}
|
43
43
|
|
44
|
-
.
|
44
|
+
.arkynPagination .arkynPaginationPageButton {
|
45
45
|
color: var(--text-body);
|
46
46
|
font-size: 14px;
|
47
47
|
font-weight: 600;
|
48
48
|
}
|
49
49
|
|
50
|
-
.
|
50
|
+
.arkynPagination .arkynPaginationIconButton:disabled {
|
51
51
|
filter: brightness(1);
|
52
52
|
cursor: not-allowed;
|
53
53
|
opacity: 0.5;
|
54
54
|
}
|
55
55
|
|
56
|
-
.
|
56
|
+
.arkynPagination .arkynPaginationCurrent {
|
57
57
|
background-color: rgba(var(--spotlight-primary), 1);
|
58
58
|
color: #ffffff;
|
59
59
|
border: none;
|
@@ -71,7 +71,7 @@ html.dark .arkyn_pagination .arkyn_pagination-page_button:hover {
|
|
71
71
|
border-radius: var(--rounded-inputs);
|
72
72
|
}
|
73
73
|
|
74
|
-
.
|
74
|
+
.arkynPagination .arkynPaginationSpread {
|
75
75
|
background-color: transparent;
|
76
76
|
color: var(--text-muted);
|
77
77
|
border: none;
|
@@ -87,7 +87,7 @@ html.dark .arkyn_pagination .arkyn_pagination-page_button:hover {
|
|
87
87
|
justify-content: center;
|
88
88
|
}
|
89
89
|
|
90
|
-
.
|
90
|
+
.arkynPagination .arkynPaginationSpread > svg {
|
91
91
|
color: var(--text-muted);
|
92
92
|
height: 16px;
|
93
93
|
width: 16px;
|
@@ -8,7 +8,8 @@ function Popover(props: PopoverProps) {
|
|
8
8
|
const { children, button, closeOnClick, orientation = "bottom-left" } = props;
|
9
9
|
const [isOpen, setIsOpen] = useState(false);
|
10
10
|
|
11
|
-
const
|
11
|
+
const visible = isOpen ? "visibleTrue" : "visibleFalse";
|
12
|
+
const className = `arkynPopover ${orientation} ${visible}`;
|
12
13
|
|
13
14
|
function handleOpenPopover() {
|
14
15
|
if (!isOpen) setIsOpen(true);
|
@@ -25,16 +26,13 @@ function Popover(props: PopoverProps) {
|
|
25
26
|
animate={{ opacity: isOpen ? 1 : 0 }}
|
26
27
|
exit={{ opacity: 0 }}
|
27
28
|
onClick={() => closeOnClick && setIsOpen(false)}
|
28
|
-
className="
|
29
|
+
className="arkynPopoverContent"
|
29
30
|
>
|
30
31
|
{children}
|
31
32
|
</motion.div>
|
32
33
|
|
33
34
|
{isOpen && (
|
34
|
-
<div
|
35
|
-
onClick={() => setIsOpen(false)}
|
36
|
-
className="arkyn_popover-overlay"
|
37
|
-
/>
|
35
|
+
<div onClick={() => setIsOpen(false)} className="arkynPopoverOverlay" />
|
38
36
|
)}
|
39
37
|
</div>
|
40
38
|
);
|
@@ -1,16 +1,16 @@
|
|
1
|
-
.
|
1
|
+
.arkynPopover {
|
2
2
|
position: relative;
|
3
3
|
}
|
4
4
|
|
5
|
-
.
|
5
|
+
.arkynPopover .arkynPopoverContent {
|
6
6
|
display: none;
|
7
7
|
}
|
8
8
|
|
9
|
-
.
|
9
|
+
.arkynPopover.show .arkynPopoverContent {
|
10
10
|
display: unset;
|
11
11
|
}
|
12
12
|
|
13
|
-
.
|
13
|
+
.arkynPopoverContent {
|
14
14
|
position: absolute;
|
15
15
|
z-index: 3;
|
16
16
|
|
@@ -19,55 +19,55 @@
|
|
19
19
|
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
|
20
20
|
}
|
21
21
|
|
22
|
-
.
|
22
|
+
.arkynPopover.bottomLeft .arkynPopoverContent {
|
23
23
|
bottom: -5px;
|
24
24
|
right: 0;
|
25
25
|
transform: translateY(100%);
|
26
26
|
}
|
27
27
|
|
28
|
-
.
|
28
|
+
.arkynPopover.bottomRight .arkynPopoverContent {
|
29
29
|
bottom: -5px;
|
30
30
|
left: 0;
|
31
31
|
transform: translateY(100%);
|
32
32
|
}
|
33
33
|
|
34
|
-
.
|
34
|
+
.arkynPopover.topLeft .arkynPopoverContent {
|
35
35
|
top: -5px;
|
36
36
|
right: 0;
|
37
37
|
transform: translateY(-100%);
|
38
38
|
}
|
39
39
|
|
40
|
-
.
|
40
|
+
.arkynPopover.topRight .arkynPopoverContent {
|
41
41
|
top: -5px;
|
42
42
|
left: 0;
|
43
43
|
transform: translateY(-100%);
|
44
44
|
}
|
45
45
|
|
46
|
-
.
|
46
|
+
.arkynPopover.bottom .arkynPopoverContent {
|
47
47
|
top: calc(100% + 5px);
|
48
48
|
left: 50%;
|
49
49
|
transform: translateX(-50%);
|
50
50
|
}
|
51
51
|
|
52
|
-
.
|
52
|
+
.arkynPopover.top .arkynPopoverContent {
|
53
53
|
bottom: calc(100% + 5px);
|
54
54
|
left: 50%;
|
55
55
|
transform: translateX(-50%);
|
56
56
|
}
|
57
57
|
|
58
|
-
.
|
58
|
+
.arkynPopover.left .arkynPopoverContent {
|
59
59
|
bottom: 50%;
|
60
60
|
right: calc(100% + 5px);
|
61
61
|
transform: translateY(50%);
|
62
62
|
}
|
63
63
|
|
64
|
-
.
|
64
|
+
.arkynPopover.right .arkynPopoverContent {
|
65
65
|
bottom: 50%;
|
66
66
|
left: calc(100% + 5px);
|
67
67
|
transform: translateY(50%);
|
68
68
|
}
|
69
69
|
|
70
|
-
.
|
70
|
+
.arkynPopoverOverlay {
|
71
71
|
position: fixed;
|
72
72
|
z-index: 1;
|
73
73
|
top: 0;
|
@@ -11,17 +11,20 @@ function RadioBox(props: RadioBoxProps) {
|
|
11
11
|
size: componentSize,
|
12
12
|
disabled,
|
13
13
|
children,
|
14
|
+
className: baseClassName = "",
|
15
|
+
...rest
|
14
16
|
} = props;
|
15
17
|
|
16
18
|
const { onChange, size: groupSize, value: selectedValue } = useRadioGroup();
|
17
19
|
const { error } = useFormController();
|
18
20
|
|
19
21
|
const size = componentSize || groupSize;
|
20
|
-
const
|
21
|
-
|
22
|
-
const
|
22
|
+
const checkedClass =
|
23
|
+
selectedValue === componentValue ? "checkedTrue" : "checkedFalse";
|
24
|
+
const errorClass = !!error ? "errorTrue" : "errorFalse";
|
25
|
+
const disabledClass = disabled ? "disabledTrue" : "disabledFalse";
|
23
26
|
|
24
|
-
const className = `
|
27
|
+
const className = `arkynRadioBox ${size} ${checkedClass} ${errorClass} ${disabledClass} ${baseClassName}`;
|
25
28
|
|
26
29
|
return (
|
27
30
|
<label className={className.trim()}>
|
@@ -30,6 +33,7 @@ function RadioBox(props: RadioBoxProps) {
|
|
30
33
|
disabled={disabled}
|
31
34
|
onClick={() => onChange(componentValue)}
|
32
35
|
onFocus={() => onChange(componentValue)}
|
36
|
+
{...rest}
|
33
37
|
/>
|
34
38
|
|
35
39
|
{children}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynRadioBox {
|
2
2
|
display: flex;
|
3
3
|
align-items: center;
|
4
4
|
gap: 8px;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
line-height: 19.07px;
|
9
9
|
}
|
10
10
|
|
11
|
-
.
|
11
|
+
.arkynRadioBox > button {
|
12
12
|
position: relative;
|
13
13
|
background-color: rgba(var(--input-background), 1);
|
14
14
|
|
@@ -16,19 +16,19 @@
|
|
16
16
|
border-radius: 99999px;
|
17
17
|
}
|
18
18
|
|
19
|
-
.
|
19
|
+
.arkynRadioBox > button:not(:disabled):hover {
|
20
20
|
cursor: pointer;
|
21
21
|
}
|
22
22
|
|
23
|
-
.
|
23
|
+
.arkynRadioBox.checkedTrue > button {
|
24
24
|
border-color: rgba(var(--spotlight-primary), 1);
|
25
25
|
}
|
26
26
|
|
27
|
-
.
|
27
|
+
.arkynRadioBox.errorTrue > button {
|
28
28
|
border-color: rgba(var(--spotlight-danger), 1);
|
29
29
|
}
|
30
30
|
|
31
|
-
.
|
31
|
+
.arkynRadioBox.checkedTrue > button::before {
|
32
32
|
content: " ";
|
33
33
|
position: absolute;
|
34
34
|
top: 50%;
|
@@ -38,7 +38,7 @@
|
|
38
38
|
background-color: rgba(var(--spotlight-primary), 1);
|
39
39
|
}
|
40
40
|
|
41
|
-
.
|
41
|
+
.arkynRadioBox.sm > button {
|
42
42
|
min-height: 20px;
|
43
43
|
min-width: 20px;
|
44
44
|
|
@@ -46,7 +46,7 @@
|
|
46
46
|
max-width: 20px;
|
47
47
|
}
|
48
48
|
|
49
|
-
.
|
49
|
+
.arkynRadioBox.md > button {
|
50
50
|
min-height: 24px;
|
51
51
|
min-width: 24px;
|
52
52
|
|
@@ -54,7 +54,7 @@
|
|
54
54
|
max-width: 24px;
|
55
55
|
}
|
56
56
|
|
57
|
-
.
|
57
|
+
.arkynRadioBox.lg > button {
|
58
58
|
min-height: 24px;
|
59
59
|
min-width: 24px;
|
60
60
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
max-width: 24px;
|
63
63
|
}
|
64
64
|
|
65
|
-
.
|
65
|
+
.arkynRadioBox.checkedTrue.sm > button::before {
|
66
66
|
min-height: 10px;
|
67
67
|
min-width: 10px;
|
68
68
|
|
@@ -70,7 +70,7 @@
|
|
70
70
|
max-width: 10px;
|
71
71
|
}
|
72
72
|
|
73
|
-
.
|
73
|
+
.arkynRadioBox.checkedTrue.md > button::before {
|
74
74
|
min-height: 12px;
|
75
75
|
min-width: 12px;
|
76
76
|
|
@@ -78,7 +78,7 @@
|
|
78
78
|
max-width: 12px;
|
79
79
|
}
|
80
80
|
|
81
|
-
.
|
81
|
+
.arkynRadioBox.checkedTrue.lg > button::before {
|
82
82
|
min-height: 12px;
|
83
83
|
min-width: 12px;
|
84
84
|
|
@@ -86,10 +86,10 @@
|
|
86
86
|
max-width: 12px;
|
87
87
|
}
|
88
88
|
|
89
|
-
.
|
89
|
+
.arkynRadioBox.disabledTrue {
|
90
90
|
opacity: 0.5;
|
91
91
|
}
|
92
92
|
|
93
|
-
.
|
93
|
+
.arkynRadioBox.disabledTrue > button {
|
94
94
|
cursor: not-allowed;
|
95
95
|
}
|
@@ -18,7 +18,7 @@ function RadioGroup(props: RadioGroupProps) {
|
|
18
18
|
value: forceValue,
|
19
19
|
onChange,
|
20
20
|
size = "md",
|
21
|
-
className: baseClassName,
|
21
|
+
className: baseClassName = "",
|
22
22
|
...rest
|
23
23
|
} = props;
|
24
24
|
|
@@ -30,7 +30,7 @@ function RadioGroup(props: RadioGroupProps) {
|
|
30
30
|
onChange && onChange(value);
|
31
31
|
}
|
32
32
|
|
33
|
-
const className = `
|
33
|
+
const className = `arkynRadioGroup ${size} ${baseClassName}`;
|
34
34
|
|
35
35
|
return (
|
36
36
|
<RadioContext.Provider
|
@@ -3,7 +3,7 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function Skeleton(props: SkeletonProps) {
|
5
5
|
const { className: baseClassName, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynSkeleton ${baseClassName}`;
|
7
7
|
|
8
8
|
return <aside className={className.trim()} {...rest} />;
|
9
9
|
}
|
@@ -3,7 +3,7 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function TableBody(props: TableBodyProps) {
|
5
5
|
const { className: baseClassName, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynTableBody ${baseClassName}`;
|
7
7
|
|
8
8
|
return <tbody className={className.trim()} {...rest} />;
|
9
9
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
.
|
1
|
+
.arkynTableBody > tr:nth-child(odd) > td {
|
2
2
|
background-color: var(--card-foreground-primary);
|
3
3
|
}
|
4
4
|
|
5
|
-
.
|
5
|
+
.arkynTableBody > tr > td {
|
6
6
|
padding-left: 16px;
|
7
7
|
height: 64px;
|
8
8
|
|
@@ -12,32 +12,32 @@
|
|
12
12
|
color: var(--text-body);
|
13
13
|
}
|
14
14
|
|
15
|
-
.
|
15
|
+
.arkynTableBody > tr > td:first-child {
|
16
16
|
border-top-left-radius: var(--rounded-cards);
|
17
17
|
border-bottom-left-radius: var(--rounded-cards);
|
18
18
|
}
|
19
19
|
|
20
|
-
.
|
20
|
+
.arkynTableBody > tr > td:last-child {
|
21
21
|
border-top-right-radius: var(--rounded-cards);
|
22
22
|
border-bottom-right-radius: var(--rounded-cards);
|
23
23
|
|
24
24
|
padding-right: 16px;
|
25
25
|
}
|
26
26
|
|
27
|
-
.
|
27
|
+
.arkynTableBody > tr:nth-child(odd):hover > td {
|
28
28
|
filter: brightness(0.98);
|
29
29
|
}
|
30
30
|
|
31
|
-
.
|
31
|
+
.arkynTableBody > tr:nth-child(even):hover > td {
|
32
32
|
background-color: var(--card-foreground-primary);
|
33
33
|
filter: brightness(0.98);
|
34
34
|
}
|
35
35
|
|
36
|
-
html.dark .
|
36
|
+
html.dark .arkynTableBody > tr:nth-child(odd):hover > td {
|
37
37
|
filter: brightness(1.2);
|
38
38
|
}
|
39
39
|
|
40
|
-
html.dark .
|
40
|
+
html.dark .arkynTableBody > tr:nth-child(even):hover > td {
|
41
41
|
background-color: var(--card-foreground-primary);
|
42
42
|
filter: brightness(1.2);
|
43
43
|
}
|
@@ -3,11 +3,11 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function TableCaption(props: TableCaptionProps) {
|
5
5
|
const { className: baseClassName, children, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynTableCaption ${baseClassName}`;
|
7
7
|
|
8
8
|
return (
|
9
9
|
<caption className={className.trim()} {...rest}>
|
10
|
-
<div className="
|
10
|
+
<div className="arkynTableCaptionContent">{children}</div>
|
11
11
|
</caption>
|
12
12
|
);
|
13
13
|
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
.
|
1
|
+
.arkynTableCaption {
|
2
2
|
margin-bottom: 24px;
|
3
3
|
}
|
4
4
|
|
5
|
-
.
|
5
|
+
.arkynTableCaptionContent {
|
6
6
|
display: flex;
|
7
7
|
align-items: center;
|
8
8
|
}
|
9
9
|
|
10
|
-
.
|
10
|
+
.arkynTableCaptionContent > .rightSection {
|
11
11
|
display: flex;
|
12
12
|
align-items: center;
|
13
13
|
justify-content: end;
|
@@ -3,7 +3,7 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function TableContainer(props: TableContainerProps) {
|
5
5
|
const { children, className: baseClassName, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynTableContainer ${baseClassName}`;
|
7
7
|
|
8
8
|
return (
|
9
9
|
<div className={className.trim()} {...rest}>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynTableContainer {
|
2
2
|
display: flex;
|
3
3
|
flex-direction: column;
|
4
4
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
overflow-x: auto;
|
10
10
|
}
|
11
11
|
|
12
|
-
.
|
12
|
+
.arkynTableContainer table {
|
13
13
|
border-collapse: separate;
|
14
14
|
border-spacing: 0;
|
15
15
|
}
|
@@ -3,14 +3,14 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function TableFooter(props: TableFooterProps) {
|
5
5
|
const { className: baseClassName, children, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynTableFooter ${baseClassName}`;
|
7
7
|
|
8
8
|
return (
|
9
9
|
<tfoot className={className.trim()} {...rest}>
|
10
|
-
<tr className="
|
10
|
+
<tr className="spacingRow" />
|
11
11
|
<tr>
|
12
12
|
<th colSpan={100}>
|
13
|
-
<div className="
|
13
|
+
<div className="arkynTableFooterContent">{children}</div>
|
14
14
|
</th>
|
15
15
|
</tr>
|
16
16
|
</tfoot>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynTableFooterContent {
|
2
2
|
display: flex;
|
3
3
|
align-items: center;
|
4
4
|
justify-content: space-between;
|
@@ -8,6 +8,6 @@
|
|
8
8
|
border-top: 1px solid var(--border);
|
9
9
|
}
|
10
10
|
|
11
|
-
.
|
11
|
+
.arkynTableFooter .spacingRow {
|
12
12
|
height: 24px;
|
13
13
|
}
|
@@ -3,12 +3,12 @@ import "./styles.css";
|
|
3
3
|
|
4
4
|
function TableHeader(props: TableHeaderProps) {
|
5
5
|
const { className: baseClassName, children, ...rest } = props;
|
6
|
-
const className = `
|
6
|
+
const className = `arkynTableHeader ${baseClassName}`;
|
7
7
|
|
8
8
|
return (
|
9
9
|
<thead className={className.trim()} {...rest}>
|
10
10
|
<tr>{children}</tr>
|
11
|
-
<tr className="
|
11
|
+
<tr className="spacingRow" />
|
12
12
|
</thead>
|
13
13
|
);
|
14
14
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.
|
1
|
+
.arkynTableHeader th {
|
2
2
|
text-align: left;
|
3
3
|
background-color: var(--card-foreground-secondary);
|
4
4
|
padding-left: 16px;
|
@@ -11,18 +11,18 @@
|
|
11
11
|
white-space: nowrap;
|
12
12
|
}
|
13
13
|
|
14
|
-
.
|
14
|
+
.arkynTableHeader th:first-child {
|
15
15
|
border-top-left-radius: var(--rounded-cards);
|
16
16
|
border-bottom-left-radius: var(--rounded-cards);
|
17
17
|
}
|
18
18
|
|
19
|
-
.
|
19
|
+
.arkynTableHeader th:last-child {
|
20
20
|
border-top-right-radius: var(--rounded-cards);
|
21
21
|
border-bottom-right-radius: var(--rounded-cards);
|
22
22
|
|
23
23
|
padding-right: 16px;
|
24
24
|
}
|
25
25
|
|
26
|
-
.
|
26
|
+
.arkynTableHeader .spacingRow {
|
27
27
|
height: 12px;
|
28
28
|
}
|
@@ -6,14 +6,14 @@ import "./styles.css";
|
|
6
6
|
|
7
7
|
function TabButton(props: TabButtonProps) {
|
8
8
|
const { children, className: baseClassName = "", onClick, ...rest } = props;
|
9
|
-
|
10
9
|
const { value, showInitialTab, handleTabClick } = useTabContext();
|
11
10
|
|
12
|
-
const
|
11
|
+
const activeClass =
|
12
|
+
value === rest.value && value ? "activeTrue" : "activeFalse";
|
13
13
|
const defaultShowBorderBottomTable =
|
14
|
-
value === rest.value && showInitialTab ? "
|
14
|
+
value === rest.value && showInitialTab ? "showBorderBottom" : "";
|
15
15
|
|
16
|
-
const className = `
|
16
|
+
const className = `arkynTabButton ${defaultShowBorderBottomTable} ${activeClass} ${baseClassName}`;
|
17
17
|
|
18
18
|
function handleClick(event: MouseEvent<HTMLButtonElement>) {
|
19
19
|
handleTabClick(event);
|