@creativecodeco/ui 0.4.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,8 +6,9 @@ export default function useSafeButtonProps({ onClick, onSubmit, loading, ...prop
6
6
  }): {
7
7
  onClick: (event: ButtonEvent) => void;
8
8
  onSubmit: (event: ButtonEvent) => void;
9
- name?: string | undefined;
9
+ children?: import("react").ReactNode;
10
10
  color?: string | undefined;
11
+ name?: string | undefined;
11
12
  disabled?: boolean | undefined;
12
13
  onChange?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
13
14
  value?: string | number | readonly string[] | undefined;
@@ -62,7 +63,7 @@ export default function useSafeButtonProps({ onClick, onSubmit, loading, ...prop
62
63
  itemRef?: string | undefined;
63
64
  results?: number | undefined;
64
65
  security?: string | undefined;
65
- unselectable?: "on" | "off" | undefined;
66
+ unselectable?: "off" | "on" | undefined;
66
67
  inputMode?: "search" | "email" | "tel" | "text" | "url" | "none" | "numeric" | "decimal" | undefined;
67
68
  is?: string | undefined;
68
69
  "aria-activedescendant"?: string | undefined;
@@ -118,7 +119,6 @@ export default function useSafeButtonProps({ onClick, onSubmit, loading, ...prop
118
119
  "aria-valuemin"?: number | undefined;
119
120
  "aria-valuenow"?: number | undefined;
120
121
  "aria-valuetext"?: string | undefined;
121
- children?: import("react").ReactNode;
122
122
  dangerouslySetInnerHTML?: {
123
123
  __html: string | TrustedHTML;
124
124
  } | undefined;
@@ -0,0 +1,9 @@
1
+ .accordion-type {
2
+ &-arrow {
3
+ @apply collapse-arrow;
4
+ }
5
+
6
+ &-plus {
7
+ @apply collapse-plus;
8
+ }
9
+ }
@@ -0,0 +1,45 @@
1
+ .badge {
2
+ &-size {
3
+ &-lg {
4
+ @apply badge-lg;
5
+ }
6
+
7
+ &-sm {
8
+ @apply badge-sm;
9
+ }
10
+
11
+ &-xs {
12
+ @apply badge-xs;
13
+ }
14
+ }
15
+
16
+ &-color {
17
+ &-primary {
18
+ @apply badge-primary;
19
+ }
20
+
21
+ &-secondary {
22
+ @apply badge-secondary;
23
+ }
24
+
25
+ &-accent {
26
+ @apply badge-accent;
27
+ }
28
+
29
+ &-success {
30
+ @apply badge-success;
31
+ }
32
+
33
+ &-warning {
34
+ @apply badge-warning;
35
+ }
36
+
37
+ &-info {
38
+ @apply badge-info;
39
+ }
40
+
41
+ &-error {
42
+ @apply badge-error;
43
+ }
44
+ }
45
+ }
@@ -1,6 +1,4 @@
1
1
  .button {
2
- @apply btn;
3
-
4
2
  &-link {
5
3
  @apply btn-link;
6
4
  }
@@ -41,6 +39,10 @@
41
39
  &-error {
42
40
  @apply btn-error;
43
41
  }
42
+
43
+ &-ghost {
44
+ @apply btn-ghost;
45
+ }
44
46
  }
45
47
 
46
48
  &-size {
@@ -2,7 +2,9 @@
2
2
  @import 'tailwindcss/components';
3
3
  @import 'tailwindcss/utilities';
4
4
 
5
+ @import './accordion.css';
5
6
  @import './avatar.css';
7
+ @import './badge.css';
6
8
  @import './button.css';
7
9
  @import './checkbox.css';
8
10
  @import './radio.css';