@theroutingcompany/components 0.0.45-alpha.2 → 0.0.45
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/dist/trc-components.es.js +4194 -4209
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +244 -244
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Badge/Badge.d.ts +2 -12
package/package.json
CHANGED
|
@@ -4,44 +4,34 @@ declare const colors: {
|
|
|
4
4
|
readonly positive: {
|
|
5
5
|
readonly background: "hsl(143.1, 48%, 94.7%)";
|
|
6
6
|
readonly color: "hsl(155.68deg 88.1% 16.5%)";
|
|
7
|
-
readonly border: undefined;
|
|
8
|
-
readonly borderStyle: undefined;
|
|
9
7
|
};
|
|
10
8
|
readonly pending: {
|
|
11
9
|
readonly background: "hsl(29deg 74% 53% / 8%)";
|
|
12
10
|
readonly color: "hsl(29deg 74% 53%)";
|
|
13
|
-
readonly border: undefined;
|
|
14
|
-
readonly borderStyle: undefined;
|
|
15
11
|
};
|
|
16
12
|
readonly muted: {
|
|
17
13
|
readonly background: "hsl(0deg 0% 10% / 8%)";
|
|
18
14
|
readonly color: "#909090";
|
|
19
|
-
readonly border: undefined;
|
|
20
|
-
readonly borderStyle: undefined;
|
|
21
15
|
};
|
|
22
16
|
readonly info: {
|
|
23
17
|
readonly background: "hsl(217.4deg 81.6% 51% / 8%)";
|
|
24
18
|
readonly color: "hsl(218deg 84% 45%)";
|
|
25
|
-
readonly border: undefined;
|
|
26
|
-
readonly borderStyle: undefined;
|
|
27
19
|
};
|
|
28
20
|
readonly negative: {
|
|
29
21
|
readonly background: "hsl(11deg 48% 85%)";
|
|
30
22
|
readonly color: "hsl(11deg 68% 55%)";
|
|
31
|
-
readonly border: undefined;
|
|
32
|
-
readonly borderStyle: undefined;
|
|
33
23
|
};
|
|
34
24
|
readonly chip: {
|
|
35
25
|
readonly background: "#FFFFFF";
|
|
36
26
|
readonly color: "rgba(0, 0, 0, 0.92)";
|
|
37
27
|
readonly border: "rgba(0, 0, 0, 0.16)";
|
|
38
|
-
readonly borderStyle: "solid";
|
|
39
28
|
};
|
|
40
29
|
};
|
|
41
30
|
type BadgeVariant = keyof typeof colors;
|
|
42
31
|
export type BadgeProps = PropsWithChildren<{
|
|
43
32
|
variant: BadgeVariant;
|
|
44
33
|
size?: 'small' | 'large';
|
|
34
|
+
as?: 'span' | 'div';
|
|
45
35
|
}> & BoxProps;
|
|
46
|
-
export declare function Badge({ children, size, variant, ...rest }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function Badge({ children, size, variant, as, ...rest }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
47
37
|
export {};
|