@arkyn/components 1.3.78 → 1.3.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/dist/bundle.js +880 -878
  2. package/dist/bundle.umd.cjs +10 -10
  3. package/dist/components/Alert/AlertContainer/index.d.ts.map +1 -1
  4. package/dist/components/Alert/AlertContainer/index.js +3 -3
  5. package/dist/components/Alert/AlertContent/index.d.ts.map +1 -1
  6. package/dist/components/Alert/AlertContent/index.js +3 -3
  7. package/dist/components/Alert/AlertDescription/index.d.ts.map +1 -1
  8. package/dist/components/Alert/AlertDescription/index.js +3 -3
  9. package/dist/components/Alert/AlertIcon/index.js +1 -1
  10. package/dist/components/Alert/AlertTitle/index.d.ts.map +1 -1
  11. package/dist/components/Alert/AlertTitle/index.js +3 -3
  12. package/dist/components/Badge/index.js +1 -1
  13. package/dist/components/Breadcrumb/BreadcrumbContainer/index.js +1 -1
  14. package/dist/components/Breadcrumb/BreadcrumbLink/index.js +1 -1
  15. package/dist/components/Button/index.d.ts.map +1 -1
  16. package/dist/components/Button/index.js +6 -2
  17. package/dist/components/Card/index.js +1 -1
  18. package/dist/components/Checkbox/index.d.ts.map +1 -1
  19. package/dist/components/Checkbox/index.js +4 -2
  20. package/dist/components/Divider/index.js +2 -2
  21. package/dist/components/Drawer/Container/index.js +3 -3
  22. package/dist/components/Drawer/Header/index.js +2 -2
  23. package/dist/components/Form/FormController/index.js +1 -1
  24. package/dist/components/Form/FormError/index.js +1 -1
  25. package/dist/components/Form/FormLabel/index.js +3 -3
  26. package/dist/components/IconButton/index.d.ts.map +1 -1
  27. package/dist/components/IconButton/index.js +3 -2
  28. package/dist/components/Modal/Container/index.js +3 -3
  29. package/dist/components/Modal/Footer/index.js +1 -1
  30. package/dist/components/Modal/Header/index.js +2 -2
  31. package/dist/components/Pagination/index.js +1 -1
  32. package/dist/components/Popover/index.d.ts.map +1 -1
  33. package/dist/components/Popover/index.js +3 -2
  34. package/dist/components/Radio/RadioBox/index.d.ts.map +1 -1
  35. package/dist/components/Radio/RadioBox/index.js +6 -6
  36. package/dist/components/Radio/RadioGroup/index.js +2 -2
  37. package/dist/components/Skeleton/index.js +1 -1
  38. package/dist/components/Table/TableBody/index.d.ts.map +1 -1
  39. package/dist/components/Table/TableBody/index.js +5 -3
  40. package/dist/components/Table/TableCaption/index.js +2 -2
  41. package/dist/components/Table/TableContainer/index.js +1 -1
  42. package/dist/components/Table/TableFooter/index.js +2 -2
  43. package/dist/components/Table/TableHeader/index.js +2 -2
  44. package/dist/components/Tabs/TabButton/index.js +3 -3
  45. package/dist/components/Tabs/TabContainer/index.js +2 -2
  46. package/dist/components/Textarea/index.js +4 -4
  47. package/dist/components/Toast/index.js +1 -1
  48. package/dist/components/Tooltip/index.js +3 -3
  49. package/dist/style.css +1 -1
  50. package/package.json +1 -1
  51. package/src/components/Alert/AlertContainer/index.tsx +3 -5
  52. package/src/components/Alert/AlertContainer/styles.css +5 -5
  53. package/src/components/Alert/AlertContent/index.tsx +3 -8
  54. package/src/components/Alert/AlertContent/styles.css +1 -1
  55. package/src/components/Alert/AlertDescription/index.tsx +3 -7
  56. package/src/components/Alert/AlertDescription/styles.css +1 -2
  57. package/src/components/Alert/AlertIcon/index.tsx +1 -1
  58. package/src/components/Alert/AlertIcon/styles.css +5 -5
  59. package/src/components/Alert/AlertTitle/index.tsx +3 -7
  60. package/src/components/Alert/AlertTitle/styles.css +1 -2
  61. package/src/components/Badge/index.tsx +1 -1
  62. package/src/components/Badge/styles.css +19 -23
  63. package/src/components/Breadcrumb/BreadcrumbContainer/index.tsx +1 -1
  64. package/src/components/Breadcrumb/BreadcrumbContainer/styles.css +1 -33
  65. package/src/components/Breadcrumb/BreadcrumbLink/index.tsx +1 -1
  66. package/src/components/Breadcrumb/BreadcrumbLink/styles.css +6 -6
  67. package/src/components/Button/index.tsx +8 -3
  68. package/src/components/Button/styles.css +45 -45
  69. package/src/components/Card/index.tsx +1 -1
  70. package/src/components/Card/styles.css +1 -1
  71. package/src/components/Checkbox/index.tsx +6 -4
  72. package/src/components/Checkbox/styles.css +12 -12
  73. package/src/components/Divider/index.tsx +2 -2
  74. package/src/components/Divider/styles.css +3 -3
  75. package/src/components/Drawer/Container/index.tsx +4 -4
  76. package/src/components/Drawer/Container/styles.css +6 -6
  77. package/src/components/Drawer/Header/index.tsx +2 -2
  78. package/src/components/Drawer/Header/styles.css +3 -3
  79. package/src/components/Form/FormController/index.tsx +1 -1
  80. package/src/components/Form/FormController/styles.css +1 -1
  81. package/src/components/Form/FormError/index.tsx +1 -1
  82. package/src/components/Form/FormError/styles.css +1 -1
  83. package/src/components/Form/FormLabel/index.tsx +3 -3
  84. package/src/components/Form/FormLabel/styles.css +2 -2
  85. package/src/components/IconButton/index.tsx +4 -3
  86. package/src/components/IconButton/styles.css +35 -35
  87. package/src/components/Modal/Container/index.tsx +4 -4
  88. package/src/components/Modal/Container/styles.css +4 -4
  89. package/src/components/Modal/Footer/index.tsx +1 -1
  90. package/src/components/Modal/Footer/styles.css +6 -6
  91. package/src/components/Modal/Header/index.tsx +2 -2
  92. package/src/components/Modal/Header/styles.css +3 -3
  93. package/src/components/Pagination/index.tsx +10 -10
  94. package/src/components/Pagination/styles.css +13 -13
  95. package/src/components/Popover/index.tsx +4 -6
  96. package/src/components/Popover/styles.css +13 -13
  97. package/src/components/Radio/RadioBox/index.tsx +8 -4
  98. package/src/components/Radio/RadioBox/styles.css +14 -14
  99. package/src/components/Radio/RadioGroup/index.tsx +2 -2
  100. package/src/components/Radio/RadioGroup/styles.css +1 -1
  101. package/src/components/Skeleton/index.tsx +1 -1
  102. package/src/components/Skeleton/styles.css +1 -1
  103. package/src/components/Table/TableBody/index.tsx +23 -3
  104. package/src/components/Table/TableBody/styles.css +27 -8
  105. package/src/components/Table/TableCaption/index.tsx +2 -2
  106. package/src/components/Table/TableCaption/styles.css +3 -3
  107. package/src/components/Table/TableContainer/index.tsx +1 -1
  108. package/src/components/Table/TableContainer/styles.css +2 -2
  109. package/src/components/Table/TableFooter/index.tsx +3 -3
  110. package/src/components/Table/TableFooter/styles.css +2 -2
  111. package/src/components/Table/TableHeader/index.tsx +2 -2
  112. package/src/components/Table/TableHeader/styles.css +4 -4
  113. package/src/components/Tabs/TabButton/index.tsx +4 -4
  114. package/src/components/Tabs/TabButton/styles.css +4 -4
  115. package/src/components/Tabs/TabContainer/index.tsx +2 -2
  116. package/src/components/Tabs/TabContainer/styles.css +2 -2
  117. package/src/components/Textarea/index.tsx +4 -4
  118. package/src/components/Textarea/styles.css +16 -16
  119. package/src/components/Toast/index.tsx +1 -1
  120. package/src/components/Toast/styles.css +25 -25
  121. package/src/components/Tooltip/index.tsx +3 -3
  122. 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="arkyn_pagination" {...rest}>
36
+ <div className="arkynPagination" {...rest}>
37
37
  <button
38
- className="arkyn_pagination-icon_button"
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="arkyn_pagination-page_button"
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="arkyn_pagination-spread">
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="arkyn_pagination-page_button"
66
+ className="arkynPaginationPageButton"
67
67
  >
68
68
  {page}
69
69
  </button>
70
70
  ))}
71
71
 
72
- <button className="arkyn_pagination-current" disabled>
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="arkyn_pagination-page_button"
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="arkyn_pagination-spread">
89
+ <button disabled className="arkynPaginationSpread">
90
90
  <Ellipsis />
91
91
  </button>
92
92
  )}
93
93
 
94
94
  <button
95
- className="arkyn_pagination-page_button"
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="arkyn_pagination-icon_button"
104
+ className="arkynPaginationIconButton"
105
105
  disabled={currentPage >= lastPage}
106
106
  onClick={() => handlePageChange(currentPage + 1)}
107
107
  >
@@ -1,4 +1,4 @@
1
- .arkyn_pagination {
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
- .arkyn_pagination .arkyn_pagination-icon_button,
10
- .arkyn_pagination .arkyn_pagination-page_button {
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
- .arkyn_pagination .arkyn_pagination-icon_button:hover,
28
- .arkyn_pagination .arkyn_pagination-page_button:hover {
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 .arkyn_pagination .arkyn_pagination-icon_button:hover,
34
- html.dark .arkyn_pagination .arkyn_pagination-page_button:hover {
33
+ html.dark .arkynPagination .arkynPaginationIconButton:hover,
34
+ html.dark .arkynPagination .arkynPaginationPageButton:hover {
35
35
  filter: brightness(1.2);
36
36
  }
37
37
 
38
- .arkyn_pagination .arkyn_pagination-icon_button > svg {
38
+ .arkynPagination .arkynPaginationIconButton > svg {
39
39
  color: var(--text-muted);
40
40
  height: 20px;
41
41
  width: 20px;
42
42
  }
43
43
 
44
- .arkyn_pagination .arkyn_pagination-page_button {
44
+ .arkynPagination .arkynPaginationPageButton {
45
45
  color: var(--text-body);
46
46
  font-size: 14px;
47
47
  font-weight: 600;
48
48
  }
49
49
 
50
- .arkyn_pagination .arkyn_pagination-icon_button:disabled {
50
+ .arkynPagination .arkynPaginationIconButton:disabled {
51
51
  filter: brightness(1);
52
52
  cursor: not-allowed;
53
53
  opacity: 0.5;
54
54
  }
55
55
 
56
- .arkyn_pagination .arkyn_pagination-current {
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
- .arkyn_pagination .arkyn_pagination-spread {
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
- .arkyn_pagination .arkyn_pagination-spread > svg {
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 className = `arkyn_popover ${orientation} ${isOpen ? "show" : ""}`;
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="arkyn_popover-content"
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
- .arkyn_popover {
1
+ .arkynPopover {
2
2
  position: relative;
3
3
  }
4
4
 
5
- .arkyn_popover .arkyn_popover-content {
5
+ .arkynPopover .arkynPopoverContent {
6
6
  display: none;
7
7
  }
8
8
 
9
- .arkyn_popover.show .arkyn_popover-content {
9
+ .arkynPopover.show .arkynPopoverContent {
10
10
  display: unset;
11
11
  }
12
12
 
13
- .arkyn_popover-content {
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
- .arkyn_popover.bottom-left .arkyn_popover-content {
22
+ .arkynPopover.bottomLeft .arkynPopoverContent {
23
23
  bottom: -5px;
24
24
  right: 0;
25
25
  transform: translateY(100%);
26
26
  }
27
27
 
28
- .arkyn_popover.bottom-right .arkyn_popover-content {
28
+ .arkynPopover.bottomRight .arkynPopoverContent {
29
29
  bottom: -5px;
30
30
  left: 0;
31
31
  transform: translateY(100%);
32
32
  }
33
33
 
34
- .arkyn_popover.top-left .arkyn_popover-content {
34
+ .arkynPopover.topLeft .arkynPopoverContent {
35
35
  top: -5px;
36
36
  right: 0;
37
37
  transform: translateY(-100%);
38
38
  }
39
39
 
40
- .arkyn_popover.top-right .arkyn_popover-content {
40
+ .arkynPopover.topRight .arkynPopoverContent {
41
41
  top: -5px;
42
42
  left: 0;
43
43
  transform: translateY(-100%);
44
44
  }
45
45
 
46
- .arkyn_popover.bottom .arkyn_popover-content {
46
+ .arkynPopover.bottom .arkynPopoverContent {
47
47
  top: calc(100% + 5px);
48
48
  left: 50%;
49
49
  transform: translateX(-50%);
50
50
  }
51
51
 
52
- .arkyn_popover.top .arkyn_popover-content {
52
+ .arkynPopover.top .arkynPopoverContent {
53
53
  bottom: calc(100% + 5px);
54
54
  left: 50%;
55
55
  transform: translateX(-50%);
56
56
  }
57
57
 
58
- .arkyn_popover.left .arkyn_popover-content {
58
+ .arkynPopover.left .arkynPopoverContent {
59
59
  bottom: 50%;
60
60
  right: calc(100% + 5px);
61
61
  transform: translateY(50%);
62
62
  }
63
63
 
64
- .arkyn_popover.right .arkyn_popover-content {
64
+ .arkynPopover.right .arkynPopoverContent {
65
65
  bottom: 50%;
66
66
  left: calc(100% + 5px);
67
67
  transform: translateY(50%);
68
68
  }
69
69
 
70
- .arkyn_popover-overlay {
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 isChecked = selectedValue === componentValue ? "isChecked" : "";
21
- const isErrored = !!error ? "isErrored" : "";
22
- const isDisabled = disabled ? "isDisabled" : "";
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 = `arkyn_radio_box ${size} ${isChecked} ${isErrored} ${isDisabled}`;
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
- .arkyn_radio_box {
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
- .arkyn_radio_box > button {
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
- .arkyn_radio_box > button:not(:disabled):hover {
19
+ .arkynRadioBox > button:not(:disabled):hover {
20
20
  cursor: pointer;
21
21
  }
22
22
 
23
- .arkyn_radio_box.isChecked > button {
23
+ .arkynRadioBox.checkedTrue > button {
24
24
  border-color: rgba(var(--spotlight-primary), 1);
25
25
  }
26
26
 
27
- .arkyn_radio_box.isErrored > button {
27
+ .arkynRadioBox.errorTrue > button {
28
28
  border-color: rgba(var(--spotlight-danger), 1);
29
29
  }
30
30
 
31
- .arkyn_radio_box.isChecked > button::before {
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
- .arkyn_radio_box.sm > button {
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
- .arkyn_radio_box.md > button {
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
- .arkyn_radio_box.lg > button {
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
- .arkyn_radio_box.isChecked.sm > button::before {
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
- .arkyn_radio_box.isChecked.md > button::before {
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
- .arkyn_radio_box.isChecked.lg > button::before {
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
- .arkyn_radio_box.isDisabled {
89
+ .arkynRadioBox.disabledTrue {
90
90
  opacity: 0.5;
91
91
  }
92
92
 
93
- .arkyn_radio_box.isDisabled > button {
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 = `arkyn_radio_group ${size} ${baseClassName || ""}`;
33
+ const className = `arkynRadioGroup ${size} ${baseClassName}`;
34
34
 
35
35
  return (
36
36
  <RadioContext.Provider
@@ -1,4 +1,4 @@
1
- .arkyn_radio_group {
1
+ .arkynRadioGroup {
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: 32px;
@@ -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 = `arkyn_skeleton ${baseClassName}`;
6
+ const className = `arkynSkeleton ${baseClassName}`;
7
7
 
8
8
  return <aside className={className.trim()} {...rest} />;
9
9
  }
@@ -1,4 +1,4 @@
1
- .arkyn_skeleton {
1
+ .arkynSkeleton {
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  border-radius: 6px;
@@ -1,11 +1,31 @@
1
1
  import { TableBodyProps } from "@arkyn/types";
2
+ import { Children } from "react";
2
3
  import "./styles.css";
3
4
 
4
5
  function TableBody(props: TableBodyProps) {
5
- const { className: baseClassName, ...rest } = props;
6
- const className = `arkyn_table_body ${baseClassName}`;
6
+ const {
7
+ emptyMessage = "Nenhum dado adicionado.",
8
+ className: baseClassName,
9
+ children,
10
+ ...rest
11
+ } = props;
12
+ const className = `arkynTableBody ${baseClassName}`;
7
13
 
8
- return <tbody className={className.trim()} {...rest} />;
14
+ const isEmpty = Children.count(children) === 0;
15
+
16
+ return (
17
+ <tbody className={className.trim()} {...rest}>
18
+ {isEmpty ? (
19
+ <tr className="arkynTableBodyEmptyLine">
20
+ <td colSpan={100}>
21
+ <div>{emptyMessage}</div>
22
+ </td>
23
+ </tr>
24
+ ) : (
25
+ children
26
+ )}
27
+ </tbody>
28
+ );
9
29
  }
10
30
 
11
31
  export { TableBody };
@@ -1,8 +1,8 @@
1
- .arkyn_table_body > tr:nth-child(odd) > td {
1
+ .arkynTableBody > tr:nth-child(odd) > td {
2
2
  background-color: var(--card-foreground-primary);
3
3
  }
4
4
 
5
- .arkyn_table_body > tr > td {
5
+ .arkynTableBody > tr > td {
6
6
  padding-left: 16px;
7
7
  height: 64px;
8
8
 
@@ -12,32 +12,51 @@
12
12
  color: var(--text-body);
13
13
  }
14
14
 
15
- .arkyn_table_body > tr > td:first-child {
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
- .arkyn_table_body > tr > td:last-child {
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
- .arkyn_table_body > tr:nth-child(odd):hover > td {
27
+ .arkynTableBody > tr:nth-child(odd):hover > td {
28
28
  filter: brightness(0.98);
29
29
  }
30
30
 
31
- .arkyn_table_body > tr:nth-child(even):hover > td {
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 .arkyn_table_body > tr:nth-child(odd):hover > td {
36
+ html.dark .arkynTableBody > tr:nth-child(odd):hover > td {
37
37
  filter: brightness(1.2);
38
38
  }
39
39
 
40
- html.dark .arkyn_table_body > tr:nth-child(even):hover > td {
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
  }
44
+
45
+ .arkynTableBodyEmptyLine > td {
46
+ background-color: var(--card-foreground-primary);
47
+ height: 64px;
48
+ }
49
+
50
+ .arkynTableBodyEmptyLine > td > div {
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+
55
+ text-align: center;
56
+ white-space: nowrap;
57
+
58
+ font-weight: 400;
59
+ font-size: 14px;
60
+
61
+ color: var(--text-body);
62
+ }
@@ -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 = `arkyn_table_caption ${baseClassName}`;
6
+ const className = `arkynTableCaption ${baseClassName}`;
7
7
 
8
8
  return (
9
9
  <caption className={className.trim()} {...rest}>
10
- <div className="arkyn_table_caption-content">{children}</div>
10
+ <div className="arkynTableCaptionContent">{children}</div>
11
11
  </caption>
12
12
  );
13
13
  }
@@ -1,13 +1,13 @@
1
- .arkyn_table_caption {
1
+ .arkynTableCaption {
2
2
  margin-bottom: 24px;
3
3
  }
4
4
 
5
- .arkyn_table_caption-content {
5
+ .arkynTableCaptionContent {
6
6
  display: flex;
7
7
  align-items: center;
8
8
  }
9
9
 
10
- .arkyn_table_caption-content > .right-section {
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 = `arkyn_table_container ${baseClassName}`;
6
+ const className = `arkynTableContainer ${baseClassName}`;
7
7
 
8
8
  return (
9
9
  <div className={className.trim()} {...rest}>
@@ -1,4 +1,4 @@
1
- .arkyn_table_container {
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
- .arkyn_table_container table {
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 = `arkyn_table_footer ${baseClassName}`;
6
+ const className = `arkynTableFooter ${baseClassName}`;
7
7
 
8
8
  return (
9
9
  <tfoot className={className.trim()} {...rest}>
10
- <tr className="spacing-row" />
10
+ <tr className="spacingRow" />
11
11
  <tr>
12
12
  <th colSpan={100}>
13
- <div className="arkyn_table_footer-content">{children}</div>
13
+ <div className="arkynTableFooterContent">{children}</div>
14
14
  </th>
15
15
  </tr>
16
16
  </tfoot>
@@ -1,4 +1,4 @@
1
- .arkyn_table_footer-content {
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
- .arkyn_table_footer .spacing-row {
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 = `arkyn_table_header ${baseClassName}`;
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="spacing-row" />
11
+ <tr className="spacingRow" />
12
12
  </thead>
13
13
  );
14
14
  }