@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.
- package/lib/hooks/use-safe-button-props.hook.d.ts +3 -3
- package/lib/theme/css/accordion.css +9 -0
- package/lib/theme/css/badge.css +45 -0
- package/lib/theme/css/button.css +4 -2
- package/lib/theme/css/main.css +2 -0
- package/lib/theme/main.css +1094 -286
- package/lib/types/ui/components/accordion.types.d.ts +12 -0
- package/lib/types/ui/components/accordion.types.js +1 -0
- package/lib/types/ui/components/badge.types.d.ts +12 -0
- package/lib/types/ui/components/badge.types.js +1 -0
- package/lib/types/ui/components/button.types.d.ts +4 -1
- package/lib/types/ui/components/index.d.ts +2 -0
- package/lib/ui/components/accordion/accordion.component.d.ts +3 -0
- package/lib/ui/components/accordion/accordion.component.js +12 -0
- package/lib/ui/components/accordion/index.d.ts +2 -0
- package/lib/ui/components/accordion/index.js +2 -0
- package/lib/ui/components/badge/badge.component.d.ts +3 -0
- package/lib/ui/components/badge/badge.component.js +19 -0
- package/lib/ui/components/badge/index.d.ts +2 -0
- package/lib/ui/components/badge/index.js +2 -0
- package/lib/ui/components/button/button.component.js +4 -3
- package/lib/ui/components/index.d.ts +2 -0
- package/lib/ui/components/index.js +2 -0
- package/package.json +25 -25
|
@@ -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
|
-
|
|
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?: "
|
|
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,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
|
+
}
|
package/lib/theme/css/button.css
CHANGED
package/lib/theme/css/main.css
CHANGED