@beaubrain/web-design-system 0.1.0 → 0.1.2
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/README.md +99 -66
- package/dist/assets/web-design-system.css +1 -0
- package/dist/components/Base/index.d.ts +11 -0
- package/dist/components/Button/button.defs.d.ts +119 -0
- package/dist/components/Button/button.helpers.d.ts +5 -0
- package/dist/components/Button/index.d.ts +117 -0
- package/dist/components/Flex/flex.defs.d.ts +281 -0
- package/dist/components/Flex/flex.helpers.d.ts +2 -0
- package/dist/components/Flex/index.d.ts +15 -0
- package/dist/components/Grid/grid.defs.d.ts +312 -0
- package/dist/components/Grid/grid.helpers.d.ts +4 -0
- package/dist/components/Grid/index.d.ts +15 -0
- package/dist/components/Outlet/Outlet.test.d.ts +1 -0
- package/dist/components/Outlet/index.d.ts +15 -0
- package/dist/components/Spinner/index.d.ts +67 -0
- package/dist/components/Spinner/spinner.defs.d.ts +60 -0
- package/dist/components/Text/index.d.ts +21 -0
- package/dist/components/Text/text.defs.d.ts +93 -0
- package/dist/components/VisuallyHidden/index.d.ts +17 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/core/defs/as-child.defs.d.ts +6 -0
- package/dist/core/defs/color.defs.d.ts +20 -0
- package/dist/core/defs/gap.defs.d.ts +22 -0
- package/dist/core/defs/height.defs.d.ts +21 -0
- package/dist/core/defs/index.d.ts +15 -0
- package/dist/core/defs/layout.defs.d.ts +194 -0
- package/dist/core/defs/leading-trim.defs.d.ts +9 -0
- package/dist/core/defs/margin.defs.d.ts +48 -0
- package/dist/core/defs/padding.defs.d.ts +49 -0
- package/dist/core/defs/prop-defs.d.ts +55 -0
- package/dist/core/defs/radius.defs.d.ts +14 -0
- package/dist/core/defs/text-align.defs.d.ts +8 -0
- package/dist/core/defs/text-wrap.defs.d.ts +8 -0
- package/dist/core/defs/truncate.defs.d.ts +7 -0
- package/dist/core/defs/weight.defs.d.ts +8 -0
- package/dist/core/defs/width.defs.d.ts +21 -0
- package/dist/core/react/component-props.d.ts +4 -0
- package/dist/core/react/extract-props.d.ts +11 -0
- package/dist/core/react/get-styles.d.ts +18 -0
- package/dist/core/react/index.d.ts +4 -0
- package/dist/core/react/merge-styles.d.ts +5 -0
- package/dist/core/react/props.d.ts +6 -0
- package/dist/core/react/ref.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +698 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GetPropDefTypes } from '../../core/defs';
|
|
2
|
+
import { ComponentPropsWithout, DefaultRemovedProps } from '../../core/react';
|
|
3
|
+
import { SpinnerPropDefs } from './spinner.defs';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
type SpinnerPropDefs = GetPropDefTypes<typeof SpinnerPropDefs>;
|
|
6
|
+
type SpinnerProps = ComponentPropsWithout<'span', DefaultRemovedProps> & SpinnerPropDefs;
|
|
7
|
+
declare const Spinner: React.ForwardRefExoticComponent<ComponentPropsWithout<"span", DefaultRemovedProps> & GetPropDefTypes<{
|
|
8
|
+
m: {
|
|
9
|
+
type: "enum | string";
|
|
10
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
11
|
+
className: string;
|
|
12
|
+
customProperties: "--m"[];
|
|
13
|
+
};
|
|
14
|
+
mx: {
|
|
15
|
+
type: "enum | string";
|
|
16
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
17
|
+
className: string;
|
|
18
|
+
customProperties: ("--ml" | "--mr")[];
|
|
19
|
+
};
|
|
20
|
+
my: {
|
|
21
|
+
type: "enum | string";
|
|
22
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
23
|
+
className: string;
|
|
24
|
+
customProperties: ("--mt" | "--mb")[];
|
|
25
|
+
};
|
|
26
|
+
mt: {
|
|
27
|
+
type: "enum | string";
|
|
28
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
29
|
+
className: string;
|
|
30
|
+
customProperties: "--mt"[];
|
|
31
|
+
};
|
|
32
|
+
mr: {
|
|
33
|
+
type: "enum | string";
|
|
34
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
35
|
+
className: string;
|
|
36
|
+
customProperties: "--mr"[];
|
|
37
|
+
};
|
|
38
|
+
mb: {
|
|
39
|
+
type: "enum | string";
|
|
40
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
41
|
+
className: string;
|
|
42
|
+
customProperties: "--mb"[];
|
|
43
|
+
};
|
|
44
|
+
ml: {
|
|
45
|
+
type: "enum | string";
|
|
46
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
47
|
+
className: string;
|
|
48
|
+
customProperties: "--ml"[];
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: "enum";
|
|
52
|
+
className: string;
|
|
53
|
+
values: readonly ["1", "2", "3"];
|
|
54
|
+
default: "2";
|
|
55
|
+
};
|
|
56
|
+
loading: {
|
|
57
|
+
type: "boolean";
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
color: {
|
|
61
|
+
type: "enum";
|
|
62
|
+
className: string;
|
|
63
|
+
values: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
64
|
+
};
|
|
65
|
+
}> & React.RefAttributes<HTMLSpanElement>>;
|
|
66
|
+
export default Spinner;
|
|
67
|
+
export type { SpinnerProps };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const SpinnerPropDefs: {
|
|
2
|
+
m: {
|
|
3
|
+
type: "enum | string";
|
|
4
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
5
|
+
className: string;
|
|
6
|
+
customProperties: "--m"[];
|
|
7
|
+
};
|
|
8
|
+
mx: {
|
|
9
|
+
type: "enum | string";
|
|
10
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
11
|
+
className: string;
|
|
12
|
+
customProperties: ("--ml" | "--mr")[];
|
|
13
|
+
};
|
|
14
|
+
my: {
|
|
15
|
+
type: "enum | string";
|
|
16
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
17
|
+
className: string;
|
|
18
|
+
customProperties: ("--mt" | "--mb")[];
|
|
19
|
+
};
|
|
20
|
+
mt: {
|
|
21
|
+
type: "enum | string";
|
|
22
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
23
|
+
className: string;
|
|
24
|
+
customProperties: "--mt"[];
|
|
25
|
+
};
|
|
26
|
+
mr: {
|
|
27
|
+
type: "enum | string";
|
|
28
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
29
|
+
className: string;
|
|
30
|
+
customProperties: "--mr"[];
|
|
31
|
+
};
|
|
32
|
+
mb: {
|
|
33
|
+
type: "enum | string";
|
|
34
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
35
|
+
className: string;
|
|
36
|
+
customProperties: "--mb"[];
|
|
37
|
+
};
|
|
38
|
+
ml: {
|
|
39
|
+
type: "enum | string";
|
|
40
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
41
|
+
className: string;
|
|
42
|
+
customProperties: "--ml"[];
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
type: "enum";
|
|
46
|
+
className: string;
|
|
47
|
+
values: readonly ["1", "2", "3"];
|
|
48
|
+
default: "2";
|
|
49
|
+
};
|
|
50
|
+
loading: {
|
|
51
|
+
type: "boolean";
|
|
52
|
+
default: true;
|
|
53
|
+
};
|
|
54
|
+
color: {
|
|
55
|
+
type: "enum";
|
|
56
|
+
className: string;
|
|
57
|
+
values: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export { SpinnerPropDefs };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithout, DefaultRemovedProps } from '../../core/react';
|
|
2
|
+
import { GetPropDefTypes } from '../../core/defs';
|
|
3
|
+
import { TextPropDefs } from './text.defs';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
type TextPropDefs = GetPropDefTypes<typeof TextPropDefs>;
|
|
6
|
+
type TextSpanProps = {
|
|
7
|
+
as?: 'span';
|
|
8
|
+
} & ComponentPropsWithout<'span', DefaultRemovedProps>;
|
|
9
|
+
type TextDivProps = {
|
|
10
|
+
as: 'div';
|
|
11
|
+
} & ComponentPropsWithout<'div', DefaultRemovedProps>;
|
|
12
|
+
type TextLabelProps = {
|
|
13
|
+
as: 'label';
|
|
14
|
+
} & ComponentPropsWithout<'label', DefaultRemovedProps>;
|
|
15
|
+
type TextPProps = {
|
|
16
|
+
as: 'p';
|
|
17
|
+
} & ComponentPropsWithout<'p', DefaultRemovedProps>;
|
|
18
|
+
type TextProps = TextPropDefs & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);
|
|
19
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
export default Text;
|
|
21
|
+
export type { TextProps };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const as: readonly ["span", "div", "label", "p"];
|
|
2
|
+
declare const sizes: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];
|
|
3
|
+
declare const TextPropDefs: {
|
|
4
|
+
color: {
|
|
5
|
+
type: "enum | string";
|
|
6
|
+
values: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
7
|
+
className: string;
|
|
8
|
+
customProperties: "--color"[];
|
|
9
|
+
default: ("gray50" | "gray100" | "gray200" | "gray300" | "gray400" | "gray500" | "gray600" | "gray700" | "gray800" | "gray900" | "gray1000" | "gray1100" | "gray1200" | "gray1300" | "gray1400" | "gray1500" | "blue50" | "blue100" | "blue200" | "blue300" | "blue400" | "blue500" | "blue600" | "blue700" | "blue800" | "blue900" | "blue1000" | "blue1100" | "blue1200" | "blue1300" | "blue1400" | "green50" | "green100" | "green200" | "green300" | "green400" | "green500" | "green600" | "green700" | "green800" | "green900" | "green1000" | "green1100" | "green1200" | "red50" | "red100" | "red200" | "red300" | "red400" | "red500" | "red600" | "red700" | "red800" | "red900" | "red1000" | "red1100") | undefined;
|
|
10
|
+
};
|
|
11
|
+
trim: {
|
|
12
|
+
type: "enum";
|
|
13
|
+
className: string;
|
|
14
|
+
values: readonly ["normal", "start", "end", "both"];
|
|
15
|
+
default: "normal";
|
|
16
|
+
};
|
|
17
|
+
truncate: {
|
|
18
|
+
type: "boolean";
|
|
19
|
+
className: string;
|
|
20
|
+
};
|
|
21
|
+
weight: {
|
|
22
|
+
type: "enum";
|
|
23
|
+
values: readonly ["light", "regular", "medium", "semibold", "bold"];
|
|
24
|
+
className: string;
|
|
25
|
+
};
|
|
26
|
+
wrap: {
|
|
27
|
+
type: "enum";
|
|
28
|
+
className: string;
|
|
29
|
+
values: readonly ["wrap", "nowrap", "pretty", "balance"];
|
|
30
|
+
};
|
|
31
|
+
align: {
|
|
32
|
+
type: "enum";
|
|
33
|
+
values: readonly ["left", "center", "right"];
|
|
34
|
+
className: string;
|
|
35
|
+
};
|
|
36
|
+
m: {
|
|
37
|
+
type: "enum | string";
|
|
38
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
39
|
+
className: string;
|
|
40
|
+
customProperties: "--m"[];
|
|
41
|
+
};
|
|
42
|
+
mx: {
|
|
43
|
+
type: "enum | string";
|
|
44
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
45
|
+
className: string;
|
|
46
|
+
customProperties: ("--ml" | "--mr")[];
|
|
47
|
+
};
|
|
48
|
+
my: {
|
|
49
|
+
type: "enum | string";
|
|
50
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
51
|
+
className: string;
|
|
52
|
+
customProperties: ("--mt" | "--mb")[];
|
|
53
|
+
};
|
|
54
|
+
mt: {
|
|
55
|
+
type: "enum | string";
|
|
56
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
57
|
+
className: string;
|
|
58
|
+
customProperties: "--mt"[];
|
|
59
|
+
};
|
|
60
|
+
mr: {
|
|
61
|
+
type: "enum | string";
|
|
62
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
63
|
+
className: string;
|
|
64
|
+
customProperties: "--mr"[];
|
|
65
|
+
};
|
|
66
|
+
mb: {
|
|
67
|
+
type: "enum | string";
|
|
68
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
69
|
+
className: string;
|
|
70
|
+
customProperties: "--mb"[];
|
|
71
|
+
};
|
|
72
|
+
ml: {
|
|
73
|
+
type: "enum | string";
|
|
74
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
75
|
+
className: string;
|
|
76
|
+
customProperties: "--ml"[];
|
|
77
|
+
};
|
|
78
|
+
asChild: {
|
|
79
|
+
type: "boolean";
|
|
80
|
+
};
|
|
81
|
+
size: {
|
|
82
|
+
type: "enum | string";
|
|
83
|
+
className: string;
|
|
84
|
+
values: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];
|
|
85
|
+
customProperties: "--size"[];
|
|
86
|
+
};
|
|
87
|
+
as: {
|
|
88
|
+
type: "enum";
|
|
89
|
+
values: readonly ["span", "div", "label", "p"];
|
|
90
|
+
default: "span";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export { TextPropDefs, as as textAs, sizes as textSizes };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const VISUALLY_HIDDEN_STYLES: Readonly<{
|
|
3
|
+
position: "absolute";
|
|
4
|
+
border: 0;
|
|
5
|
+
width: 1;
|
|
6
|
+
height: 1;
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: -1;
|
|
9
|
+
overflow: "hidden";
|
|
10
|
+
clip: "rect(0, 0, 0, 0)";
|
|
11
|
+
whiteSpace: "nowrap";
|
|
12
|
+
wordWrap: "normal";
|
|
13
|
+
}>;
|
|
14
|
+
declare const VisuallyHidden: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement> & {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
}, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
export { VisuallyHidden, VISUALLY_HIDDEN_STYLES };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Text, type TextProps } from './Text/index.js';
|
|
2
|
+
export { default as Flex, type FlexProps } from './Flex/index.js';
|
|
3
|
+
export { default as Button, type ButtonProps } from './Button/index.js';
|
|
4
|
+
export { default as Spinner, type SpinnerProps } from './Spinner/index.js';
|
|
5
|
+
export { OutletUI, type OutletProps } from './Outlet/index.js';
|
|
6
|
+
export { Base } from './Base/index.js';
|
|
7
|
+
export { VisuallyHidden, VISUALLY_HIDDEN_STYLES } from './VisuallyHidden/index.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const colorValues: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
2
|
+
declare const colorPropDef: {
|
|
3
|
+
color: {
|
|
4
|
+
type: "enum | string";
|
|
5
|
+
values: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
6
|
+
className: string;
|
|
7
|
+
customProperties: "--color"[];
|
|
8
|
+
default: (typeof colorValues)[number] | undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare const borderColorPropDef: {
|
|
12
|
+
borderColor: {
|
|
13
|
+
type: "enum | string";
|
|
14
|
+
values: readonly ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"];
|
|
15
|
+
className: string;
|
|
16
|
+
customProperties: "--border-color"[];
|
|
17
|
+
default: (typeof colorValues)[number] | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { colorPropDef, borderColorPropDef, colorValues as baseColorValues };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const gapValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
2
|
+
declare const gapPropDefs: {
|
|
3
|
+
gap: {
|
|
4
|
+
type: "enum | string";
|
|
5
|
+
className: string;
|
|
6
|
+
customProperties: "--gap"[];
|
|
7
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
8
|
+
};
|
|
9
|
+
gapX: {
|
|
10
|
+
type: "enum | string";
|
|
11
|
+
className: string;
|
|
12
|
+
customProperties: "--col-gap"[];
|
|
13
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
14
|
+
};
|
|
15
|
+
gapY: {
|
|
16
|
+
type: "enum | string";
|
|
17
|
+
className: string;
|
|
18
|
+
customProperties: "--row-gap"[];
|
|
19
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export { gapPropDefs, gapValues };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-defs';
|
|
2
|
+
declare const heightPropDefs: {
|
|
3
|
+
height: {
|
|
4
|
+
type: "string";
|
|
5
|
+
className: string;
|
|
6
|
+
customProperties: "--height"[];
|
|
7
|
+
};
|
|
8
|
+
minHeight: {
|
|
9
|
+
type: "string";
|
|
10
|
+
className: string;
|
|
11
|
+
customProperties: "--min-height"[];
|
|
12
|
+
};
|
|
13
|
+
maxHeight: {
|
|
14
|
+
type: "string";
|
|
15
|
+
className: string;
|
|
16
|
+
customProperties: "--max-height"[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type HeightPropDefs = GetPropDefTypes<typeof heightPropDefs>;
|
|
20
|
+
export { heightPropDefs };
|
|
21
|
+
export type { HeightPropDefs };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './prop-defs';
|
|
2
|
+
export * from './as-child.defs';
|
|
3
|
+
export * from './color.defs';
|
|
4
|
+
export * from './layout.defs';
|
|
5
|
+
export * from './width.defs';
|
|
6
|
+
export * from './height.defs';
|
|
7
|
+
export * from './margin.defs';
|
|
8
|
+
export * from './padding.defs';
|
|
9
|
+
export * from './text-align.defs';
|
|
10
|
+
export * from './text-wrap.defs';
|
|
11
|
+
export * from './weight.defs';
|
|
12
|
+
export * from './truncate.defs';
|
|
13
|
+
export * from './leading-trim.defs';
|
|
14
|
+
export * from './radius.defs';
|
|
15
|
+
export * from './gap.defs';
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
declare const positionValues: readonly ["static", "relative", "absolute", "fixed", "sticky"];
|
|
2
|
+
declare const overflowValues: readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
3
|
+
declare const positionEdgeValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
4
|
+
declare const flexShrinkValues: readonly ["0", "1"];
|
|
5
|
+
declare const flexGrowValues: readonly ["0", "1"];
|
|
6
|
+
declare const alignSelfValues: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
7
|
+
declare const justifySelfValues: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
8
|
+
declare const layoutPropDefs: {
|
|
9
|
+
position: {
|
|
10
|
+
type: "enum";
|
|
11
|
+
className: string;
|
|
12
|
+
values: readonly ["static", "relative", "absolute", "fixed", "sticky"];
|
|
13
|
+
};
|
|
14
|
+
inset: {
|
|
15
|
+
type: "enum | string";
|
|
16
|
+
className: string;
|
|
17
|
+
customProperties: "--inset"[];
|
|
18
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
19
|
+
};
|
|
20
|
+
top: {
|
|
21
|
+
type: "enum | string";
|
|
22
|
+
className: string;
|
|
23
|
+
customProperties: "--top"[];
|
|
24
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
25
|
+
};
|
|
26
|
+
right: {
|
|
27
|
+
type: "enum | string";
|
|
28
|
+
className: string;
|
|
29
|
+
customProperties: "--right"[];
|
|
30
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
31
|
+
};
|
|
32
|
+
bottom: {
|
|
33
|
+
type: "enum | string";
|
|
34
|
+
className: string;
|
|
35
|
+
customProperties: "--bottom"[];
|
|
36
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
37
|
+
};
|
|
38
|
+
left: {
|
|
39
|
+
type: "enum | string";
|
|
40
|
+
className: string;
|
|
41
|
+
customProperties: "--left"[];
|
|
42
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
43
|
+
};
|
|
44
|
+
overflow: {
|
|
45
|
+
type: "enum";
|
|
46
|
+
className: string;
|
|
47
|
+
values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
48
|
+
};
|
|
49
|
+
overflowX: {
|
|
50
|
+
type: "enum";
|
|
51
|
+
className: string;
|
|
52
|
+
values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
53
|
+
};
|
|
54
|
+
overflowY: {
|
|
55
|
+
type: "enum";
|
|
56
|
+
className: string;
|
|
57
|
+
values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
58
|
+
};
|
|
59
|
+
flexBasis: {
|
|
60
|
+
type: "string";
|
|
61
|
+
className: string;
|
|
62
|
+
customProperties: "--flex-basis"[];
|
|
63
|
+
};
|
|
64
|
+
flexShrink: {
|
|
65
|
+
type: "enum | string";
|
|
66
|
+
className: string;
|
|
67
|
+
customProperties: "--flex-shrink"[];
|
|
68
|
+
values: readonly ["0", "1"];
|
|
69
|
+
};
|
|
70
|
+
flexGrow: {
|
|
71
|
+
type: "enum | string";
|
|
72
|
+
className: string;
|
|
73
|
+
customProperties: "--flex-grow"[];
|
|
74
|
+
values: readonly ["0", "1"];
|
|
75
|
+
};
|
|
76
|
+
gridArea: {
|
|
77
|
+
type: "string";
|
|
78
|
+
className: string;
|
|
79
|
+
customProperties: "--grid-area"[];
|
|
80
|
+
};
|
|
81
|
+
gridColumn: {
|
|
82
|
+
type: "string";
|
|
83
|
+
className: string;
|
|
84
|
+
customProperties: "--grid-column"[];
|
|
85
|
+
};
|
|
86
|
+
gridColumnStart: {
|
|
87
|
+
type: "string";
|
|
88
|
+
className: string;
|
|
89
|
+
customProperties: "--grid-column-start"[];
|
|
90
|
+
};
|
|
91
|
+
gridColumnEnd: {
|
|
92
|
+
type: "string";
|
|
93
|
+
className: string;
|
|
94
|
+
customProperties: "--grid-column-end"[];
|
|
95
|
+
};
|
|
96
|
+
gridRow: {
|
|
97
|
+
type: "string";
|
|
98
|
+
className: string;
|
|
99
|
+
customProperties: "--grid-row"[];
|
|
100
|
+
};
|
|
101
|
+
gridRowStart: {
|
|
102
|
+
type: "string";
|
|
103
|
+
className: string;
|
|
104
|
+
customProperties: "--grid-row-start"[];
|
|
105
|
+
};
|
|
106
|
+
gridRowEnd: {
|
|
107
|
+
type: "string";
|
|
108
|
+
className: string;
|
|
109
|
+
customProperties: "--grid-row-end"[];
|
|
110
|
+
};
|
|
111
|
+
alignSelf: {
|
|
112
|
+
type: "enum";
|
|
113
|
+
className: string;
|
|
114
|
+
values: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
115
|
+
};
|
|
116
|
+
justifySelf: {
|
|
117
|
+
type: "enum";
|
|
118
|
+
className: string;
|
|
119
|
+
values: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
120
|
+
};
|
|
121
|
+
p: {
|
|
122
|
+
type: "enum | string";
|
|
123
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
124
|
+
className: string;
|
|
125
|
+
customProperties: "--p"[];
|
|
126
|
+
};
|
|
127
|
+
px: {
|
|
128
|
+
type: "enum | string";
|
|
129
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
130
|
+
className: string;
|
|
131
|
+
customProperties: "--px"[];
|
|
132
|
+
};
|
|
133
|
+
py: {
|
|
134
|
+
type: "enum | string";
|
|
135
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
136
|
+
className: string;
|
|
137
|
+
customProperties: "--py"[];
|
|
138
|
+
};
|
|
139
|
+
pt: {
|
|
140
|
+
type: "enum | string";
|
|
141
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
142
|
+
className: string;
|
|
143
|
+
customProperties: "--pt"[];
|
|
144
|
+
};
|
|
145
|
+
pr: {
|
|
146
|
+
type: "enum | string";
|
|
147
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
148
|
+
className: string;
|
|
149
|
+
customProperties: "--pr"[];
|
|
150
|
+
};
|
|
151
|
+
pb: {
|
|
152
|
+
type: "enum | string";
|
|
153
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
154
|
+
className: string;
|
|
155
|
+
customProperties: "--pb"[];
|
|
156
|
+
};
|
|
157
|
+
pl: {
|
|
158
|
+
type: "enum | string";
|
|
159
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
160
|
+
className: string;
|
|
161
|
+
customProperties: "--pl"[];
|
|
162
|
+
};
|
|
163
|
+
height: {
|
|
164
|
+
type: "string";
|
|
165
|
+
className: string;
|
|
166
|
+
customProperties: "--height"[];
|
|
167
|
+
};
|
|
168
|
+
minHeight: {
|
|
169
|
+
type: "string";
|
|
170
|
+
className: string;
|
|
171
|
+
customProperties: "--min-height"[];
|
|
172
|
+
};
|
|
173
|
+
maxHeight: {
|
|
174
|
+
type: "string";
|
|
175
|
+
className: string;
|
|
176
|
+
customProperties: "--max-height"[];
|
|
177
|
+
};
|
|
178
|
+
width: {
|
|
179
|
+
type: "string";
|
|
180
|
+
className: string;
|
|
181
|
+
customProperties: "--width"[];
|
|
182
|
+
};
|
|
183
|
+
minWidth: {
|
|
184
|
+
type: "string";
|
|
185
|
+
className: string;
|
|
186
|
+
customProperties: "--min-width"[];
|
|
187
|
+
};
|
|
188
|
+
maxWidth: {
|
|
189
|
+
type: "string";
|
|
190
|
+
className: string;
|
|
191
|
+
customProperties: "--max-width"[];
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export { layoutPropDefs, positionValues, overflowValues, positionEdgeValues, flexShrinkValues, flexGrowValues, alignSelfValues, justifySelfValues, };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GetPropDefTypes } from './prop-defs';
|
|
2
|
+
declare const marginPropDefs: {
|
|
3
|
+
m: {
|
|
4
|
+
type: "enum | string";
|
|
5
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
6
|
+
className: string;
|
|
7
|
+
customProperties: "--m"[];
|
|
8
|
+
};
|
|
9
|
+
mx: {
|
|
10
|
+
type: "enum | string";
|
|
11
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
12
|
+
className: string;
|
|
13
|
+
customProperties: ("--ml" | "--mr")[];
|
|
14
|
+
};
|
|
15
|
+
my: {
|
|
16
|
+
type: "enum | string";
|
|
17
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
18
|
+
className: string;
|
|
19
|
+
customProperties: ("--mt" | "--mb")[];
|
|
20
|
+
};
|
|
21
|
+
mt: {
|
|
22
|
+
type: "enum | string";
|
|
23
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
24
|
+
className: string;
|
|
25
|
+
customProperties: "--mt"[];
|
|
26
|
+
};
|
|
27
|
+
mr: {
|
|
28
|
+
type: "enum | string";
|
|
29
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
30
|
+
className: string;
|
|
31
|
+
customProperties: "--mr"[];
|
|
32
|
+
};
|
|
33
|
+
mb: {
|
|
34
|
+
type: "enum | string";
|
|
35
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
36
|
+
className: string;
|
|
37
|
+
customProperties: "--mb"[];
|
|
38
|
+
};
|
|
39
|
+
ml: {
|
|
40
|
+
type: "enum | string";
|
|
41
|
+
values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"];
|
|
42
|
+
className: string;
|
|
43
|
+
customProperties: "--ml"[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type MarginPropDefs = GetPropDefTypes<typeof marginPropDefs>;
|
|
47
|
+
export { marginPropDefs };
|
|
48
|
+
export type { MarginPropDefs };
|