@arkyn/components 1.3.77 → 1.3.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/dist/bundle.js +862 -865
  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.js +1 -1
  39. package/dist/components/Table/TableCaption/index.js +2 -2
  40. package/dist/components/Table/TableContainer/index.js +1 -1
  41. package/dist/components/Table/TableFooter/index.js +2 -2
  42. package/dist/components/Table/TableHeader/index.js +2 -2
  43. package/dist/components/Tabs/TabButton/index.js +3 -3
  44. package/dist/components/Tabs/TabContainer/index.js +2 -2
  45. package/dist/components/Textarea/index.js +4 -4
  46. package/dist/components/Toast/index.js +1 -1
  47. package/dist/components/Tooltip/index.js +3 -3
  48. package/dist/style.css +1 -1
  49. package/package.json +1 -1
  50. package/src/components/Alert/AlertContainer/index.tsx +3 -5
  51. package/src/components/Alert/AlertContainer/styles.css +5 -5
  52. package/src/components/Alert/AlertContent/index.tsx +3 -8
  53. package/src/components/Alert/AlertContent/styles.css +1 -1
  54. package/src/components/Alert/AlertDescription/index.tsx +3 -7
  55. package/src/components/Alert/AlertDescription/styles.css +1 -2
  56. package/src/components/Alert/AlertIcon/index.tsx +1 -1
  57. package/src/components/Alert/AlertIcon/styles.css +5 -5
  58. package/src/components/Alert/AlertTitle/index.tsx +3 -7
  59. package/src/components/Alert/AlertTitle/styles.css +1 -2
  60. package/src/components/Badge/index.tsx +1 -1
  61. package/src/components/Badge/styles.css +19 -23
  62. package/src/components/Breadcrumb/BreadcrumbContainer/index.tsx +1 -1
  63. package/src/components/Breadcrumb/BreadcrumbContainer/styles.css +1 -33
  64. package/src/components/Breadcrumb/BreadcrumbLink/index.tsx +1 -1
  65. package/src/components/Breadcrumb/BreadcrumbLink/styles.css +6 -6
  66. package/src/components/Button/index.tsx +8 -3
  67. package/src/components/Button/styles.css +45 -45
  68. package/src/components/Card/index.tsx +1 -1
  69. package/src/components/Card/styles.css +1 -1
  70. package/src/components/Checkbox/index.tsx +6 -4
  71. package/src/components/Checkbox/styles.css +12 -12
  72. package/src/components/Divider/index.tsx +2 -2
  73. package/src/components/Divider/styles.css +3 -3
  74. package/src/components/Drawer/Container/index.tsx +4 -4
  75. package/src/components/Drawer/Container/styles.css +6 -6
  76. package/src/components/Drawer/Header/index.tsx +2 -2
  77. package/src/components/Drawer/Header/styles.css +3 -3
  78. package/src/components/Form/FormController/index.tsx +1 -1
  79. package/src/components/Form/FormController/styles.css +1 -1
  80. package/src/components/Form/FormError/index.tsx +1 -1
  81. package/src/components/Form/FormError/styles.css +1 -1
  82. package/src/components/Form/FormLabel/index.tsx +3 -3
  83. package/src/components/Form/FormLabel/styles.css +2 -2
  84. package/src/components/IconButton/index.tsx +4 -3
  85. package/src/components/IconButton/styles.css +35 -35
  86. package/src/components/Modal/Container/index.tsx +4 -4
  87. package/src/components/Modal/Container/styles.css +4 -4
  88. package/src/components/Modal/Footer/index.tsx +1 -1
  89. package/src/components/Modal/Footer/styles.css +6 -6
  90. package/src/components/Modal/Header/index.tsx +2 -2
  91. package/src/components/Modal/Header/styles.css +3 -3
  92. package/src/components/Pagination/index.tsx +10 -10
  93. package/src/components/Pagination/styles.css +13 -13
  94. package/src/components/Popover/index.tsx +4 -6
  95. package/src/components/Popover/styles.css +13 -13
  96. package/src/components/Radio/RadioBox/index.tsx +8 -4
  97. package/src/components/Radio/RadioBox/styles.css +14 -14
  98. package/src/components/Radio/RadioGroup/index.tsx +2 -2
  99. package/src/components/Radio/RadioGroup/styles.css +1 -1
  100. package/src/components/Skeleton/index.tsx +1 -1
  101. package/src/components/Skeleton/styles.css +1 -1
  102. package/src/components/Table/TableBody/index.tsx +1 -1
  103. package/src/components/Table/TableBody/styles.css +9 -9
  104. package/src/components/Table/TableCaption/index.tsx +2 -2
  105. package/src/components/Table/TableCaption/styles.css +3 -3
  106. package/src/components/Table/TableContainer/index.tsx +1 -1
  107. package/src/components/Table/TableContainer/styles.css +2 -2
  108. package/src/components/Table/TableFooter/index.tsx +3 -3
  109. package/src/components/Table/TableFooter/styles.css +2 -2
  110. package/src/components/Table/TableHeader/index.tsx +2 -2
  111. package/src/components/Table/TableHeader/styles.css +4 -4
  112. package/src/components/Tabs/TabButton/index.tsx +4 -4
  113. package/src/components/Tabs/TabButton/styles.css +4 -4
  114. package/src/components/Tabs/TabContainer/index.tsx +2 -2
  115. package/src/components/Tabs/TabContainer/styles.css +2 -2
  116. package/src/components/Textarea/index.tsx +4 -4
  117. package/src/components/Textarea/styles.css +16 -16
  118. package/src/components/Toast/index.tsx +1 -1
  119. package/src/components/Toast/styles.css +25 -25
  120. package/src/components/Tooltip/index.tsx +3 -3
  121. package/src/components/Tooltip/styles.css +13 -13
@@ -1,4 +1,4 @@
1
- .arkyn_alert_content {
1
+ .arkynAlertContent {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 8px;
@@ -2,14 +2,10 @@ import { AlertDescriptionProps } from "@arkyn/types";
2
2
  import "./styles.css";
3
3
 
4
4
  function AlertDescription(props: AlertDescriptionProps) {
5
- const { children, className: baseClassName, ...rest } = props;
6
- const className = `arkyn_description ${baseClassName}`;
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 };
@@ -1,8 +1,7 @@
1
- .arkyn_description {
1
+ .arkynAlertDescription {
2
2
  font-size: 14px;
3
3
  font-weight: 400;
4
4
  line-height: 15px;
5
5
  text-align: left;
6
-
7
6
  color: var(--text-body);
8
7
  }
@@ -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 = `arkyn_alert_icon ${schema} ${baseClassName}`;
11
+ const className = `arkynAlertIcon ${schema} ${baseClassName}`;
12
12
 
13
13
  switch (schema) {
14
14
  case "success":
@@ -1,4 +1,4 @@
1
- .arkyn_alert_icon {
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
- .arkyn_alert_icon.danger {
9
+ .arkynAlertIcon.danger {
10
10
  color: rgba(var(--spotlight-danger), 1);
11
11
  }
12
12
 
13
- .arkyn_alert_icon.success {
13
+ .arkynAlertIcon.success {
14
14
  color: rgba(var(--spotlight-success), 1);
15
15
  }
16
16
 
17
- .arkyn_alert_icon.info {
17
+ .arkynAlertIcon.info {
18
18
  color: rgba(var(--spotlight-info), 1);
19
19
  }
20
20
 
21
- .arkyn_alert_icon.warning {
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 { children, className: baseClassName, ...rest } = props;
6
- const className = `arkyn_title ${baseClassName}`;
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 };
@@ -1,8 +1,7 @@
1
- .arkyn_title {
1
+ .arkynAlertTitle {
2
2
  font-size: 16px;
3
3
  font-weight: 600;
4
4
  line-height: 17px;
5
5
  text-align: left;
6
-
7
6
  color: var(--text-heading);
8
7
  }
@@ -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 = `arkyn_badge ${variant} ${scheme} ${size} ${baseClassName}`;
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
- .arkyn_badge {
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
- .arkyn_badge.solid {
14
+ .arkynBadge.solid {
15
15
  color: #fff;
16
16
  }
17
17
 
18
- .arkyn_badge.solid.primary {
18
+ .arkynBadge.solid.primary {
19
19
  background-color: rgba(var(--spotlight-primary), 1);
20
20
  }
21
21
 
22
- .arkyn_badge.solid.danger {
22
+ .arkynBadge.solid.danger {
23
23
  background-color: rgba(var(--spotlight-danger), 1);
24
24
  }
25
25
 
26
- .arkyn_badge.solid.success {
26
+ .arkynBadge.solid.success {
27
27
  background-color: rgba(var(--spotlight-success), 1);
28
28
  }
29
29
 
30
- .arkyn_badge.solid.warning {
30
+ .arkynBadge.solid.warning {
31
31
  background-color: rgba(var(--spotlight-warning), 1);
32
32
  }
33
33
 
34
- .arkyn_badge.solid.info {
34
+ .arkynBadge.solid.info {
35
35
  background-color: rgba(var(--spotlight-info), 1);
36
36
  }
37
37
 
38
- .arkyn_button.outline {
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
- .arkyn_badge.outline.danger {
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
- .arkyn_badge.outline.success {
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
- .arkyn_badge.outline.warning {
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
- .arkyn_badge.outline.info {
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
- .arkyn_badge.ghost.primary {
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
- .arkyn_badge.ghost.danger {
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
- .arkyn_badge.ghost.success {
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
- .arkyn_badge.ghost.warning {
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
- .arkyn_badge.ghost.info {
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
- .arkyn_badge.lg {
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
- .arkyn_badge.md {
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 = `arkyn_breadcrumb_container ${baseClassName}`;
6
+ const className = `arkynBreadcrumbContainer ${baseClassName}`;
7
7
 
8
8
  return <nav className={className} {...rest} />;
9
9
  }
@@ -1,39 +1,7 @@
1
- .arkyn_breadcrumb_container {
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 = `arkyn_breadcrumb_link ${active} ${baseClassName}`;
19
+ const className = `arkynBreadcrumbLink ${active} ${baseClassName}`;
20
20
 
21
21
  if (disabled) {
22
22
  return (
@@ -1,30 +1,30 @@
1
- .arkyn_breadcrumb_link {
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
- .arkyn_breadcrumb_link.active {
8
+ .arkynBreadcrumbLink.active {
9
9
  color: var(--text-muted);
10
10
  }
11
11
 
12
- .arkyn_breadcrumb_link.inactive:hover {
12
+ .arkynBreadcrumbLink.inactive:hover {
13
13
  cursor: pointer;
14
14
  color: var(--text-muted);
15
15
  }
16
16
 
17
- .arkyn_breadcrumb_link:first-child > svg {
17
+ .arkynBreadcrumbLink:first-child > svg {
18
18
  display: none;
19
19
  }
20
20
 
21
- .arkyn_breadcrumb_link:not(:first-child) {
21
+ .arkynBreadcrumbLink:not(:first-child) {
22
22
  display: flex;
23
23
  align-items: center;
24
24
  gap: 4px;
25
25
  }
26
26
 
27
- .arkyn_breadcrumb_link:not(:first-child) > svg {
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 className = `arkyn_button loading_text_${!!loadingText} ${variant} ${scheme} ${size} loading_${isLoading} ${baseClassName}`;
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="arkyn_button-spinner">
34
+ <div className="arkynButtonSpinner">
30
35
  <Loader2 size={iconSize} strokeWidth={2.5} />
31
36
  {loadingText && loadingText}
32
37
  </div>
33
38
 
34
- <div className="arkyn_button-content">
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
- .arkyn_button {
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
- .arkyn_button:hover {
10
+ .arkynButton:hover {
11
11
  cursor: pointer;
12
12
  filter: brightness(0.95);
13
13
  }
14
14
 
15
- html.dark .arkyn_button:hover {
15
+ html.dark .arkynButton:hover {
16
16
  cursor: pointer;
17
17
  filter: brightness(1.2);
18
18
  }
19
19
 
20
- .arkyn_button:disabled {
20
+ .arkynButton:disabled {
21
21
  cursor: not-allowed;
22
22
  opacity: 0.5;
23
23
  }
24
24
 
25
- .arkyn_button .arkyn_button-content {
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
- .arkyn_button.solid {
33
+ .arkynButton.solid {
34
34
  color: #fff;
35
35
  }
36
36
 
37
- .arkyn_button.solid.primary {
37
+ .arkynButton.solid.primary {
38
38
  background-color: rgba(var(--spotlight-primary), 1);
39
39
  }
40
40
 
41
- .arkyn_button.solid.danger {
41
+ .arkynButton.solid.danger {
42
42
  background-color: rgba(var(--spotlight-danger), 1);
43
43
  }
44
44
 
45
- .arkyn_button.solid.success {
45
+ .arkynButton.solid.success {
46
46
  background-color: rgba(var(--spotlight-success), 1);
47
47
  }
48
48
 
49
- .arkyn_button.solid.warning {
49
+ .arkynButton.solid.warning {
50
50
  background-color: rgba(var(--spotlight-warning), 1);
51
51
  }
52
52
 
53
- .arkyn_button.solid.info {
53
+ .arkynButton.solid.info {
54
54
  background-color: rgba(var(--spotlight-info), 1);
55
55
  }
56
56
 
57
- .arkyn_button.outline {
57
+ .arkynButton.outline {
58
58
  background-color: rgba(var(--input-background), 1);
59
59
  border-color: var(--border);
60
60
  }
61
61
 
62
- .arkyn_button.outline.primary {
62
+ .arkynButton.outline.primary {
63
63
  color: rgba(var(--spotlight-primary), 1);
64
64
  }
65
65
 
66
- .arkyn_button.outline.danger {
66
+ .arkynButton.outline.danger {
67
67
  color: rgba(var(--spotlight-danger), 1);
68
68
  }
69
69
 
70
- .arkyn_button.outline.success {
70
+ .arkynButton.outline.success {
71
71
  color: rgba(var(--spotlight-success), 1);
72
72
  }
73
73
 
74
- .arkyn_button.outline.warning {
74
+ .arkynButton.outline.warning {
75
75
  color: rgba(var(--spotlight-warning), 1);
76
76
  }
77
77
 
78
- .arkyn_button.outline.info {
78
+ .arkynButton.outline.info {
79
79
  color: rgba(var(--spotlight-info), 1);
80
80
  }
81
81
 
82
- .arkyn_button.ghost.primary {
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
- .arkyn_button.ghost.danger {
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
- .arkyn_button.ghost.success {
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
- .arkyn_button.ghost.warning {
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
- .arkyn_button.ghost.info {
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
- .arkyn_button.invisible.primary {
107
+ .arkynButton.invisible.primary {
108
108
  color: rgba(var(--spotlight-primary), 1);
109
109
  }
110
110
 
111
- .arkyn_button.invisible.danger {
111
+ .arkynButton.invisible.danger {
112
112
  color: rgba(var(--spotlight-danger), 1);
113
113
  }
114
114
 
115
- .arkyn_button.invisible.success {
115
+ .arkynButton.invisible.success {
116
116
  color: rgba(var(--spotlight-success), 1);
117
117
  }
118
118
 
119
- .arkyn_button.invisible.warning {
119
+ .arkynButton.invisible.warning {
120
120
  color: rgba(var(--spotlight-warning), 1);
121
121
  }
122
122
 
123
- .arkyn_button.invisible.info {
123
+ .arkynButton.invisible.info {
124
124
  color: rgba(var(--spotlight-info), 1);
125
125
  }
126
126
 
127
127
  /* SIZE */
128
- .arkyn_button.lg {
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
- .arkyn_button.lg .arkyn_button-content,
139
- .arkyn_button.lg .arkyn_button-spinner {
138
+ .arkynButton.lg .arkynButtonContent,
139
+ .arkynButton.lg .arkynButtonSpinner {
140
140
  gap: 16px;
141
141
  }
142
142
 
143
- .arkyn_button.md {
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
- .arkyn_button.md .arkyn_button-content,
155
- .arkyn_button.md .arkyn_button-spinner {
154
+ .arkynButton.md .arkynButtonContent,
155
+ .arkynButton.md .arkynButtonSpinner {
156
156
  gap: 14px;
157
157
  }
158
158
 
159
- .arkyn_button.sm {
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
- .arkyn_button.sm .arkyn_button-content,
170
- .arkyn_button.sm .arkyn_button-spinner {
169
+ .arkynButton.sm .arkynButtonContent,
170
+ .arkynButton.sm .arkynButtonSpinner {
171
171
  gap: 12px;
172
172
  }
173
173
 
174
- .arkyn_button.xs {
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
- .arkyn_button.xs .arkyn_button-content,
185
- .arkyn_button.xs .arkyn_button-spinner {
184
+ .arkynButton.xs .arkynButtonContent,
185
+ .arkynButton.xs .arkynButtonSpinner {
186
186
  gap: 8px;
187
187
  }
188
188
 
189
189
  /* SPIN */
190
- .arkyn_button .arkyn_button-spinner {
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
- .arkyn_button .arkyn_button-spinner > svg {
199
+ .arkynButton .arkynButtonSpinner > svg {
200
200
  animation: spin 2s linear infinite;
201
201
  }
202
202
 
203
- .arkyn_button.loading_text_false .arkyn_button-spinner {
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
- .arkyn_button.loading_text_true .arkyn_button-spinner {
210
+ .arkynButton.loadingTextTrue .arkynButtonSpinner {
211
211
  max-height: 0px;
212
212
  }
213
213
 
214
- .arkyn_button.loading_true .arkyn_button-content {
214
+ .arkynButton.loadingTrue .arkynButtonContent {
215
215
  opacity: 0;
216
216
  max-height: 0px;
217
217
  }
218
218
 
219
- .arkyn_button.loading_true .arkyn_button-spinner {
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 = `arkyn_card_container ${baseClassName}`;
6
+ const className = `arkynCard ${baseClassName}`;
7
7
 
8
8
  return <div className={className.trim()} {...rest} />;
9
9
  }
@@ -1,4 +1,4 @@
1
- .arkyn_card_container {
1
+ .arkynCard {
2
2
  display: flex;
3
3
 
4
4
  padding: 20px;
@@ -25,9 +25,10 @@ function Checkbox(props: CheckboxProps) {
25
25
  const currentChecked =
26
26
  typeof baseChecked === "boolean" ? baseChecked : isChecked;
27
27
 
28
- const className = `arkyn_checkbox ${size} ${isError ? "error" : ""} ${
29
- currentChecked ? "checked" : ""
30
- } ${baseClassName}`;
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
  );