@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.
Files changed (46) hide show
  1. package/README.md +99 -66
  2. package/dist/assets/web-design-system.css +1 -0
  3. package/dist/components/Base/index.d.ts +11 -0
  4. package/dist/components/Button/button.defs.d.ts +119 -0
  5. package/dist/components/Button/button.helpers.d.ts +5 -0
  6. package/dist/components/Button/index.d.ts +117 -0
  7. package/dist/components/Flex/flex.defs.d.ts +281 -0
  8. package/dist/components/Flex/flex.helpers.d.ts +2 -0
  9. package/dist/components/Flex/index.d.ts +15 -0
  10. package/dist/components/Grid/grid.defs.d.ts +312 -0
  11. package/dist/components/Grid/grid.helpers.d.ts +4 -0
  12. package/dist/components/Grid/index.d.ts +15 -0
  13. package/dist/components/Outlet/Outlet.test.d.ts +1 -0
  14. package/dist/components/Outlet/index.d.ts +15 -0
  15. package/dist/components/Spinner/index.d.ts +67 -0
  16. package/dist/components/Spinner/spinner.defs.d.ts +60 -0
  17. package/dist/components/Text/index.d.ts +21 -0
  18. package/dist/components/Text/text.defs.d.ts +93 -0
  19. package/dist/components/VisuallyHidden/index.d.ts +17 -0
  20. package/dist/components/index.d.ts +7 -0
  21. package/dist/core/defs/as-child.defs.d.ts +6 -0
  22. package/dist/core/defs/color.defs.d.ts +20 -0
  23. package/dist/core/defs/gap.defs.d.ts +22 -0
  24. package/dist/core/defs/height.defs.d.ts +21 -0
  25. package/dist/core/defs/index.d.ts +15 -0
  26. package/dist/core/defs/layout.defs.d.ts +194 -0
  27. package/dist/core/defs/leading-trim.defs.d.ts +9 -0
  28. package/dist/core/defs/margin.defs.d.ts +48 -0
  29. package/dist/core/defs/padding.defs.d.ts +49 -0
  30. package/dist/core/defs/prop-defs.d.ts +55 -0
  31. package/dist/core/defs/radius.defs.d.ts +14 -0
  32. package/dist/core/defs/text-align.defs.d.ts +8 -0
  33. package/dist/core/defs/text-wrap.defs.d.ts +8 -0
  34. package/dist/core/defs/truncate.defs.d.ts +7 -0
  35. package/dist/core/defs/weight.defs.d.ts +8 -0
  36. package/dist/core/defs/width.defs.d.ts +21 -0
  37. package/dist/core/react/component-props.d.ts +4 -0
  38. package/dist/core/react/extract-props.d.ts +11 -0
  39. package/dist/core/react/get-styles.d.ts +18 -0
  40. package/dist/core/react/index.d.ts +4 -0
  41. package/dist/core/react/merge-styles.d.ts +5 -0
  42. package/dist/core/react/props.d.ts +6 -0
  43. package/dist/core/react/ref.d.ts +5 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.js +698 -0
  46. package/package.json +1 -1
@@ -0,0 +1,281 @@
1
+ declare const FlexPropDefs: {
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
+ position: {
45
+ type: "enum";
46
+ className: string;
47
+ values: readonly ["static", "relative", "absolute", "fixed", "sticky"];
48
+ };
49
+ inset: {
50
+ type: "enum | string";
51
+ className: string;
52
+ customProperties: "--inset"[];
53
+ 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"];
54
+ };
55
+ top: {
56
+ type: "enum | string";
57
+ className: string;
58
+ customProperties: "--top"[];
59
+ 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"];
60
+ };
61
+ right: {
62
+ type: "enum | string";
63
+ className: string;
64
+ customProperties: "--right"[];
65
+ 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"];
66
+ };
67
+ bottom: {
68
+ type: "enum | string";
69
+ className: string;
70
+ customProperties: "--bottom"[];
71
+ 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"];
72
+ };
73
+ left: {
74
+ type: "enum | string";
75
+ className: string;
76
+ customProperties: "--left"[];
77
+ 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"];
78
+ };
79
+ overflow: {
80
+ type: "enum";
81
+ className: string;
82
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
83
+ };
84
+ overflowX: {
85
+ type: "enum";
86
+ className: string;
87
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
88
+ };
89
+ overflowY: {
90
+ type: "enum";
91
+ className: string;
92
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
93
+ };
94
+ flexBasis: {
95
+ type: "string";
96
+ className: string;
97
+ customProperties: "--flex-basis"[];
98
+ };
99
+ flexShrink: {
100
+ type: "enum | string";
101
+ className: string;
102
+ customProperties: "--flex-shrink"[];
103
+ values: readonly ["0", "1"];
104
+ };
105
+ flexGrow: {
106
+ type: "enum | string";
107
+ className: string;
108
+ customProperties: "--flex-grow"[];
109
+ values: readonly ["0", "1"];
110
+ };
111
+ gridArea: {
112
+ type: "string";
113
+ className: string;
114
+ customProperties: "--grid-area"[];
115
+ };
116
+ gridColumn: {
117
+ type: "string";
118
+ className: string;
119
+ customProperties: "--grid-column"[];
120
+ };
121
+ gridColumnStart: {
122
+ type: "string";
123
+ className: string;
124
+ customProperties: "--grid-column-start"[];
125
+ };
126
+ gridColumnEnd: {
127
+ type: "string";
128
+ className: string;
129
+ customProperties: "--grid-column-end"[];
130
+ };
131
+ gridRow: {
132
+ type: "string";
133
+ className: string;
134
+ customProperties: "--grid-row"[];
135
+ };
136
+ gridRowStart: {
137
+ type: "string";
138
+ className: string;
139
+ customProperties: "--grid-row-start"[];
140
+ };
141
+ gridRowEnd: {
142
+ type: "string";
143
+ className: string;
144
+ customProperties: "--grid-row-end"[];
145
+ };
146
+ alignSelf: {
147
+ type: "enum";
148
+ className: string;
149
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
150
+ };
151
+ justifySelf: {
152
+ type: "enum";
153
+ className: string;
154
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
155
+ };
156
+ p: {
157
+ type: "enum | string";
158
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
159
+ className: string;
160
+ customProperties: "--p"[];
161
+ };
162
+ px: {
163
+ type: "enum | string";
164
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
165
+ className: string;
166
+ customProperties: "--px"[];
167
+ };
168
+ py: {
169
+ type: "enum | string";
170
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
171
+ className: string;
172
+ customProperties: "--py"[];
173
+ };
174
+ pt: {
175
+ type: "enum | string";
176
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
177
+ className: string;
178
+ customProperties: "--pt"[];
179
+ };
180
+ pr: {
181
+ type: "enum | string";
182
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
183
+ className: string;
184
+ customProperties: "--pr"[];
185
+ };
186
+ pb: {
187
+ type: "enum | string";
188
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
189
+ className: string;
190
+ customProperties: "--pb"[];
191
+ };
192
+ pl: {
193
+ type: "enum | string";
194
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
195
+ className: string;
196
+ customProperties: "--pl"[];
197
+ };
198
+ height: {
199
+ type: "string";
200
+ className: string;
201
+ customProperties: "--height"[];
202
+ };
203
+ minHeight: {
204
+ type: "string";
205
+ className: string;
206
+ customProperties: "--min-height"[];
207
+ };
208
+ maxHeight: {
209
+ type: "string";
210
+ className: string;
211
+ customProperties: "--max-height"[];
212
+ };
213
+ width: {
214
+ type: "string";
215
+ className: string;
216
+ customProperties: "--width"[];
217
+ };
218
+ minWidth: {
219
+ type: "string";
220
+ className: string;
221
+ customProperties: "--min-width"[];
222
+ };
223
+ maxWidth: {
224
+ type: "string";
225
+ className: string;
226
+ customProperties: "--max-width"[];
227
+ };
228
+ gap: {
229
+ type: "enum | string";
230
+ className: string;
231
+ customProperties: "--gap"[];
232
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
233
+ };
234
+ gapX: {
235
+ type: "enum | string";
236
+ className: string;
237
+ customProperties: "--col-gap"[];
238
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
239
+ };
240
+ gapY: {
241
+ type: "enum | string";
242
+ className: string;
243
+ customProperties: "--row-gap"[];
244
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
245
+ };
246
+ display: {
247
+ type: "enum";
248
+ className: string;
249
+ values: readonly ["none", "inline-flex", "flex"];
250
+ };
251
+ direction: {
252
+ type: "enum";
253
+ className: string;
254
+ values: readonly ["row", "column", "row-reverse", "column-reverse"];
255
+ };
256
+ align: {
257
+ type: "enum";
258
+ className: string;
259
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
260
+ };
261
+ justify: {
262
+ type: "enum";
263
+ className: string;
264
+ values: readonly ["start", "center", "end", "between"];
265
+ parseValue: (value: string) => string;
266
+ };
267
+ wrap: {
268
+ type: "enum";
269
+ className: string;
270
+ values: readonly ["nowrap", "wrap", "wrap-reverse"];
271
+ };
272
+ asChild: {
273
+ type: "boolean";
274
+ };
275
+ as: {
276
+ type: "enum";
277
+ values: readonly ["div", "span"];
278
+ default: "div";
279
+ };
280
+ };
281
+ export { FlexPropDefs };
@@ -0,0 +1,2 @@
1
+ declare const parseJustifyValue: (value: string) => string;
2
+ export { parseJustifyValue };
@@ -0,0 +1,15 @@
1
+ import { ComponentPropsWithout, DefaultRemovedProps } from '../../core/react';
2
+ import { GetPropDefTypes } from '../../core/defs';
3
+ import { FlexPropDefs } from './flex.defs';
4
+ import * as React from 'react';
5
+ type FlexPropDefs = GetPropDefTypes<typeof FlexPropDefs>;
6
+ type FlexDivProps = {
7
+ as?: 'div';
8
+ } & ComponentPropsWithout<'div', DefaultRemovedProps>;
9
+ type FlexSpanProps = {
10
+ as: 'span';
11
+ } & ComponentPropsWithout<'span', DefaultRemovedProps>;
12
+ type FlexProps = FlexPropDefs & (FlexDivProps | FlexSpanProps);
13
+ declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default Flex;
15
+ export type { FlexProps };
@@ -0,0 +1,312 @@
1
+ declare const GridPropDefs: {
2
+ gap: {
3
+ type: "enum | string";
4
+ className: string;
5
+ customProperties: "--gap"[];
6
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
7
+ };
8
+ gapX: {
9
+ type: "enum | string";
10
+ className: string;
11
+ customProperties: "--col-gap"[];
12
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
13
+ };
14
+ gapY: {
15
+ type: "enum | string";
16
+ className: string;
17
+ customProperties: "--row-gap"[];
18
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
19
+ };
20
+ m: {
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: "--m"[];
25
+ };
26
+ mx: {
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: ("--ml" | "--mr")[];
31
+ };
32
+ my: {
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: ("--mt" | "--mb")[];
37
+ };
38
+ mt: {
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: "--mt"[];
43
+ };
44
+ mr: {
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: "--mr"[];
49
+ };
50
+ mb: {
51
+ type: "enum | string";
52
+ 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"];
53
+ className: string;
54
+ customProperties: "--mb"[];
55
+ };
56
+ ml: {
57
+ type: "enum | string";
58
+ 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"];
59
+ className: string;
60
+ customProperties: "--ml"[];
61
+ };
62
+ position: {
63
+ type: "enum";
64
+ className: string;
65
+ values: readonly ["static", "relative", "absolute", "fixed", "sticky"];
66
+ };
67
+ inset: {
68
+ type: "enum | string";
69
+ className: string;
70
+ customProperties: "--inset"[];
71
+ 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"];
72
+ };
73
+ top: {
74
+ type: "enum | string";
75
+ className: string;
76
+ customProperties: "--top"[];
77
+ 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"];
78
+ };
79
+ right: {
80
+ type: "enum | string";
81
+ className: string;
82
+ customProperties: "--right"[];
83
+ 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"];
84
+ };
85
+ bottom: {
86
+ type: "enum | string";
87
+ className: string;
88
+ customProperties: "--bottom"[];
89
+ 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"];
90
+ };
91
+ left: {
92
+ type: "enum | string";
93
+ className: string;
94
+ customProperties: "--left"[];
95
+ 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"];
96
+ };
97
+ overflow: {
98
+ type: "enum";
99
+ className: string;
100
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
101
+ };
102
+ overflowX: {
103
+ type: "enum";
104
+ className: string;
105
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
106
+ };
107
+ overflowY: {
108
+ type: "enum";
109
+ className: string;
110
+ values: readonly ["visible", "hidden", "clip", "scroll", "auto"];
111
+ };
112
+ flexBasis: {
113
+ type: "string";
114
+ className: string;
115
+ customProperties: "--flex-basis"[];
116
+ };
117
+ flexShrink: {
118
+ type: "enum | string";
119
+ className: string;
120
+ customProperties: "--flex-shrink"[];
121
+ values: readonly ["0", "1"];
122
+ };
123
+ flexGrow: {
124
+ type: "enum | string";
125
+ className: string;
126
+ customProperties: "--flex-grow"[];
127
+ values: readonly ["0", "1"];
128
+ };
129
+ gridArea: {
130
+ type: "string";
131
+ className: string;
132
+ customProperties: "--grid-area"[];
133
+ };
134
+ gridColumn: {
135
+ type: "string";
136
+ className: string;
137
+ customProperties: "--grid-column"[];
138
+ };
139
+ gridColumnStart: {
140
+ type: "string";
141
+ className: string;
142
+ customProperties: "--grid-column-start"[];
143
+ };
144
+ gridColumnEnd: {
145
+ type: "string";
146
+ className: string;
147
+ customProperties: "--grid-column-end"[];
148
+ };
149
+ gridRow: {
150
+ type: "string";
151
+ className: string;
152
+ customProperties: "--grid-row"[];
153
+ };
154
+ gridRowStart: {
155
+ type: "string";
156
+ className: string;
157
+ customProperties: "--grid-row-start"[];
158
+ };
159
+ gridRowEnd: {
160
+ type: "string";
161
+ className: string;
162
+ customProperties: "--grid-row-end"[];
163
+ };
164
+ alignSelf: {
165
+ type: "enum";
166
+ className: string;
167
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
168
+ };
169
+ justifySelf: {
170
+ type: "enum";
171
+ className: string;
172
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
173
+ };
174
+ p: {
175
+ type: "enum | string";
176
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
177
+ className: string;
178
+ customProperties: "--p"[];
179
+ };
180
+ px: {
181
+ type: "enum | string";
182
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
183
+ className: string;
184
+ customProperties: "--px"[];
185
+ };
186
+ py: {
187
+ type: "enum | string";
188
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
189
+ className: string;
190
+ customProperties: "--py"[];
191
+ };
192
+ pt: {
193
+ type: "enum | string";
194
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
195
+ className: string;
196
+ customProperties: "--pt"[];
197
+ };
198
+ pr: {
199
+ type: "enum | string";
200
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
201
+ className: string;
202
+ customProperties: "--pr"[];
203
+ };
204
+ pb: {
205
+ type: "enum | string";
206
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
207
+ className: string;
208
+ customProperties: "--pb"[];
209
+ };
210
+ pl: {
211
+ type: "enum | string";
212
+ values: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
213
+ className: string;
214
+ customProperties: "--pl"[];
215
+ };
216
+ height: {
217
+ type: "string";
218
+ className: string;
219
+ customProperties: "--height"[];
220
+ };
221
+ minHeight: {
222
+ type: "string";
223
+ className: string;
224
+ customProperties: "--min-height"[];
225
+ };
226
+ maxHeight: {
227
+ type: "string";
228
+ className: string;
229
+ customProperties: "--max-height"[];
230
+ };
231
+ width: {
232
+ type: "string";
233
+ className: string;
234
+ customProperties: "--width"[];
235
+ };
236
+ minWidth: {
237
+ type: "string";
238
+ className: string;
239
+ customProperties: "--min-width"[];
240
+ };
241
+ maxWidth: {
242
+ type: "string";
243
+ className: string;
244
+ customProperties: "--max-width"[];
245
+ };
246
+ display: {
247
+ type: "enum";
248
+ className: string;
249
+ values: readonly ["none", "inline-grid", "grid"];
250
+ default: "grid";
251
+ };
252
+ areas: {
253
+ type: "string";
254
+ className: string;
255
+ customProperties: "--grid-template-areas"[];
256
+ };
257
+ columns: {
258
+ type: "enum | string";
259
+ className: string;
260
+ customProperties: "--grid-template-columns"[];
261
+ values: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
262
+ parseValue: (value: string) => string;
263
+ };
264
+ rows: {
265
+ type: "enum | string";
266
+ className: string;
267
+ customProperties: "--grid-template-rows"[];
268
+ values: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
269
+ parseValue: (value: string) => string;
270
+ };
271
+ flow: {
272
+ type: "enum";
273
+ className: string;
274
+ values: readonly ["row", "column", "dense", "row-dense", "column-dense"];
275
+ default: "row";
276
+ };
277
+ align: {
278
+ type: "enum";
279
+ className: string;
280
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
281
+ default: "start";
282
+ };
283
+ justify: {
284
+ type: "enum";
285
+ className: string;
286
+ values: readonly ["start", "center", "end", "between"];
287
+ parseValue: (value: string) => string;
288
+ default: "start";
289
+ };
290
+ alignContent: {
291
+ type: "enum";
292
+ className: string;
293
+ values: readonly ["start", "center", "end", "baseline", "between", "around", "evenly", "stretch"];
294
+ parseValue: (value: string) => string;
295
+ default: "start";
296
+ };
297
+ justifyItems: {
298
+ type: "enum";
299
+ className: string;
300
+ values: readonly ["start", "center", "end", "baseline", "stretch"];
301
+ default: "start";
302
+ };
303
+ asChild: {
304
+ type: "boolean";
305
+ };
306
+ as: {
307
+ type: "enum";
308
+ values: readonly ["div", "span"];
309
+ default: "div";
310
+ };
311
+ };
312
+ export { GridPropDefs };
@@ -0,0 +1,4 @@
1
+ declare const parseGridValue: (value: string) => string;
2
+ declare const parseJustifyValue: (value: string) => string;
3
+ declare const parseAlignContentValue: (value: string) => string;
4
+ export { parseGridValue, parseJustifyValue, parseAlignContentValue };
@@ -0,0 +1,15 @@
1
+ import { ComponentPropsWithout, DefaultRemovedProps } from '../../core/react';
2
+ import { GetPropDefTypes } from '../../core/defs';
3
+ import { GridPropDefs } from './grid.defs';
4
+ import * as React from 'react';
5
+ type GridPropDefs = GetPropDefTypes<typeof GridPropDefs>;
6
+ type GridDivProps = {
7
+ as?: 'div';
8
+ } & ComponentPropsWithout<'div', DefaultRemovedProps>;
9
+ type GridSpanProps = {
10
+ as: 'span';
11
+ } & ComponentPropsWithout<'span', DefaultRemovedProps>;
12
+ type GridProps = GridPropDefs & (GridDivProps | GridSpanProps);
13
+ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default Grid;
15
+ export type { GridProps };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface OutletProps extends React.HTMLAttributes<HTMLElement> {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare const createOutlet: (originName: string) => React.ForwardRefExoticComponent<OutletProps & React.RefAttributes<HTMLElement>>;
6
+ declare const Outlet: React.ForwardRefExoticComponent<OutletProps & React.RefAttributes<HTMLElement>>;
7
+ interface OutlettableProps {
8
+ children: React.ReactNode;
9
+ }
10
+ interface OutlettableComponent extends React.FC<OutlettableProps> {
11
+ __bdsId: symbol;
12
+ }
13
+ declare const Outlettable: OutlettableComponent;
14
+ export { Outlettable, Outlet as OutletUI, createOutlet };
15
+ export type { OutletProps };