@recursica/mantine-adapter 0.27.0 → 0.29.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/CHANGELOG.md +26 -0
- package/dist/mantine-adapter.cjs +11 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +2036 -1851
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Panel/Panel.d.ts +1 -1
- package/dist/src/components/Popover/Popover.d.ts +3 -1
- package/dist/src/components/Tree/Tree.d.ts +9 -0
- package/dist/src/components/Tree/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/index.d.ts +153 -1
- package/package.json +2 -2
- package/src/OverStyling.tsx +67 -3
- package/src/components/AutoComplete/AutoComplete.tsx +2 -2
- package/src/components/Button/Button.module.css +42 -0
- package/src/components/Card/Card.tsx +3 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -1
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -6
- package/src/components/Dropdown/Dropdown.tsx +1 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +0 -2
- package/src/components/Panel/Panel.tsx +1 -1
- package/src/components/Popover/Popover.tsx +8 -3
- package/src/components/SegmentedControl/SegmentedControl.module.css +1 -0
- package/src/components/Slider/Slider.module.css +29 -0
- package/src/components/Table/Table.module.css +387 -2
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Tabs/Tabs.module.css +2 -0
- package/src/components/Toast/Toast.module.css +6 -1
- package/src/components/Tree/Tree.module.css +43 -0
- package/src/components/Tree/Tree.stories.tsx +14 -0
- package/src/components/Tree/Tree.tsx +24 -0
- package/src/components/Tree/index.ts +1 -0
- package/src/components/index.ts +2 -0
- package/src/index.ts +157 -1
|
@@ -1,7 +1,392 @@
|
|
|
1
1
|
/* HARDCODED VALUES:
|
|
2
|
-
*
|
|
2
|
+
* - border-collapse: separate; border-spacing: 0; (To support custom border-radius on table elements)
|
|
3
|
+
* - overflow: hidden; (To prevent content from bleeding outside the rounded table border)
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
.root {
|
|
6
|
-
|
|
7
|
+
border-collapse: separate;
|
|
8
|
+
border-spacing: 0;
|
|
9
|
+
border-radius: var(
|
|
10
|
+
--recursica_ui-kit_components_table_properties_border-radius
|
|
11
|
+
);
|
|
12
|
+
border: var(--recursica_ui-kit_components_table_properties_border-size) solid
|
|
13
|
+
var(--recursica_ui-kit_components_table_properties_colors_border-color);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* ==========================================
|
|
18
|
+
1. General Cell Dividers & Padding Defaults
|
|
19
|
+
========================================== */
|
|
20
|
+
|
|
21
|
+
.root th,
|
|
22
|
+
.root td {
|
|
23
|
+
padding: var(--recursica_ui-kit_components_table_properties_row-padding)
|
|
24
|
+
var(--recursica_ui-kit_components_table_properties_padding);
|
|
25
|
+
border-bottom: var(
|
|
26
|
+
--recursica_ui-kit_components_table_properties_row-divider-size
|
|
27
|
+
)
|
|
28
|
+
solid
|
|
29
|
+
var(--recursica_ui-kit_components_table_properties_colors_row-divider-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.root th + th,
|
|
33
|
+
.root td + td {
|
|
34
|
+
border-left: var(
|
|
35
|
+
--recursica_ui-kit_components_table_properties_column-divider-size
|
|
36
|
+
)
|
|
37
|
+
solid
|
|
38
|
+
var(
|
|
39
|
+
--recursica_ui-kit_components_table_properties_colors_column-divider-color
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ==========================================
|
|
44
|
+
2. Row Highlighting & Selection Styles
|
|
45
|
+
========================================== */
|
|
46
|
+
|
|
47
|
+
/* Striped rows */
|
|
48
|
+
.root tbody tr:nth-of-type(even) td {
|
|
49
|
+
background-color: color-mix(
|
|
50
|
+
in srgb,
|
|
51
|
+
var(--recursica_ui-kit_components_table_properties_colors_striped-color)
|
|
52
|
+
calc(
|
|
53
|
+
var(
|
|
54
|
+
--recursica_ui-kit_components_table_properties_opacities_striped-opacity
|
|
55
|
+
) *
|
|
56
|
+
100%
|
|
57
|
+
),
|
|
58
|
+
transparent
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Selected rows */
|
|
63
|
+
.root tbody tr[data-selected] td {
|
|
64
|
+
background-color: color-mix(
|
|
65
|
+
in srgb,
|
|
66
|
+
var(--recursica_ui-kit_components_table_properties_colors_selected-color)
|
|
67
|
+
calc(
|
|
68
|
+
var(
|
|
69
|
+
--recursica_ui-kit_components_table_properties_opacities_selected-opacity
|
|
70
|
+
) *
|
|
71
|
+
100%
|
|
72
|
+
),
|
|
73
|
+
transparent
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Hover rows */
|
|
78
|
+
.root tbody tr:hover td {
|
|
79
|
+
background-color: color-mix(
|
|
80
|
+
in srgb,
|
|
81
|
+
var(
|
|
82
|
+
--recursica_ui-kit_components_table_properties_colors_highlight-on-hover-color
|
|
83
|
+
)
|
|
84
|
+
calc(
|
|
85
|
+
var(
|
|
86
|
+
--recursica_ui-kit_components_table_properties_opacities_highlight-on-hover-opacity
|
|
87
|
+
) *
|
|
88
|
+
100%
|
|
89
|
+
),
|
|
90
|
+
transparent
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ==========================================
|
|
95
|
+
3. Table Headers (th)
|
|
96
|
+
========================================== */
|
|
97
|
+
|
|
98
|
+
.root thead th {
|
|
99
|
+
background-color: var(
|
|
100
|
+
--recursica_ui-kit_components_table-header_properties_colors_cell-color-enabled
|
|
101
|
+
);
|
|
102
|
+
color: var(
|
|
103
|
+
--recursica_ui-kit_components_table-header_properties_colors_text-color-enabled
|
|
104
|
+
);
|
|
105
|
+
padding: var(
|
|
106
|
+
--recursica_ui-kit_components_table-header_properties_padding-vertical
|
|
107
|
+
)
|
|
108
|
+
var(
|
|
109
|
+
--recursica_ui-kit_components_table-header_properties_padding-horizontal
|
|
110
|
+
);
|
|
111
|
+
margin-top: var(
|
|
112
|
+
--recursica_ui-kit_components_table-header_properties_vertical-margin
|
|
113
|
+
);
|
|
114
|
+
margin-bottom: var(
|
|
115
|
+
--recursica_ui-kit_components_table-header_properties_vertical-margin
|
|
116
|
+
);
|
|
117
|
+
border-bottom: var(
|
|
118
|
+
--recursica_ui-kit_components_table-header_properties_horizontal-divider-size
|
|
119
|
+
)
|
|
120
|
+
solid
|
|
121
|
+
var(
|
|
122
|
+
--recursica_ui-kit_components_table-header_properties_colors_horizontal-divider-color
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/* Unsorted text style by default */
|
|
126
|
+
font-family: var(
|
|
127
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_font-family
|
|
128
|
+
);
|
|
129
|
+
font-size: var(
|
|
130
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_font-size
|
|
131
|
+
);
|
|
132
|
+
font-style: var(
|
|
133
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_font-style
|
|
134
|
+
);
|
|
135
|
+
font-weight: var(
|
|
136
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_font-weight
|
|
137
|
+
);
|
|
138
|
+
letter-spacing: var(
|
|
139
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_letter-spacing
|
|
140
|
+
);
|
|
141
|
+
line-height: var(
|
|
142
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_line-height
|
|
143
|
+
);
|
|
144
|
+
text-decoration: var(
|
|
145
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_text-decoration
|
|
146
|
+
);
|
|
147
|
+
text-transform: var(
|
|
148
|
+
--recursica_ui-kit_components_table-header_properties_unsorted-text-style_text-transform
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.root thead th + th {
|
|
153
|
+
border-left: var(
|
|
154
|
+
--recursica_ui-kit_components_table-header_properties_vertical-divider-size
|
|
155
|
+
)
|
|
156
|
+
solid
|
|
157
|
+
var(
|
|
158
|
+
--recursica_ui-kit_components_table-header_properties_colors_vertical-divider-color
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Unsorted specific state overrides */
|
|
163
|
+
.root thead th:not([data-sorted="true"]) {
|
|
164
|
+
background-color: var(
|
|
165
|
+
--recursica_ui-kit_components_table-header_properties_colors_unsorted-cell-color
|
|
166
|
+
);
|
|
167
|
+
color: var(
|
|
168
|
+
--recursica_ui-kit_components_table-header_properties_colors_unsorted-text-color
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Sorted specific state overrides */
|
|
173
|
+
.root thead th[data-sorted="true"] {
|
|
174
|
+
background-color: var(
|
|
175
|
+
--recursica_ui-kit_components_table-header_properties_colors_sorted-cell-color
|
|
176
|
+
);
|
|
177
|
+
color: var(
|
|
178
|
+
--recursica_ui-kit_components_table-header_properties_colors_sorted-text-color
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
font-family: var(
|
|
182
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_font-family
|
|
183
|
+
);
|
|
184
|
+
font-size: var(
|
|
185
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_font-size
|
|
186
|
+
);
|
|
187
|
+
font-style: var(
|
|
188
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_font-style
|
|
189
|
+
);
|
|
190
|
+
font-weight: var(
|
|
191
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_font-weight
|
|
192
|
+
);
|
|
193
|
+
letter-spacing: var(
|
|
194
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_letter-spacing
|
|
195
|
+
);
|
|
196
|
+
line-height: var(
|
|
197
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_line-height
|
|
198
|
+
);
|
|
199
|
+
text-decoration: var(
|
|
200
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_text-decoration
|
|
201
|
+
);
|
|
202
|
+
text-transform: var(
|
|
203
|
+
--recursica_ui-kit_components_table-header_properties_sorted-text-style_text-transform
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Disabled Header */
|
|
208
|
+
.root thead th[data-disabled="true"] {
|
|
209
|
+
background-color: var(
|
|
210
|
+
--recursica_ui-kit_components_table-header_properties_colors_cell-color-disabled
|
|
211
|
+
);
|
|
212
|
+
color: var(
|
|
213
|
+
--recursica_ui-kit_components_table-header_properties_colors_text-color-disabled
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Header sort icon & gap spacing helper */
|
|
218
|
+
.root thead th .sortIcon {
|
|
219
|
+
width: var(--recursica_ui-kit_components_table-header_properties_icon-size);
|
|
220
|
+
height: var(--recursica_ui-kit_components_table-header_properties_icon-size);
|
|
221
|
+
margin-left: var(
|
|
222
|
+
--recursica_ui-kit_components_table-header_properties_label-sort-gap
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* ==========================================
|
|
227
|
+
4. Table Cells (td)
|
|
228
|
+
========================================== */
|
|
229
|
+
|
|
230
|
+
.root tbody td {
|
|
231
|
+
background-color: var(
|
|
232
|
+
--recursica_ui-kit_components_table-cell_properties_colors_cell-color-enabled
|
|
233
|
+
);
|
|
234
|
+
color: var(
|
|
235
|
+
--recursica_ui-kit_components_table-cell_properties_colors_text-color-enabled
|
|
236
|
+
);
|
|
237
|
+
padding: var(
|
|
238
|
+
--recursica_ui-kit_components_table-cell_properties_padding-vertical
|
|
239
|
+
)
|
|
240
|
+
var(--recursica_ui-kit_components_table-cell_properties_padding-horizontal);
|
|
241
|
+
max-width: var(--recursica_ui-kit_components_table-cell_properties_max-width);
|
|
242
|
+
|
|
243
|
+
/* Standard text style */
|
|
244
|
+
font-family: var(
|
|
245
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_font-family
|
|
246
|
+
);
|
|
247
|
+
font-size: var(
|
|
248
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_font-size
|
|
249
|
+
);
|
|
250
|
+
font-style: var(
|
|
251
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_font-style
|
|
252
|
+
);
|
|
253
|
+
font-weight: var(
|
|
254
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_font-weight
|
|
255
|
+
);
|
|
256
|
+
letter-spacing: var(
|
|
257
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_letter-spacing
|
|
258
|
+
);
|
|
259
|
+
line-height: var(
|
|
260
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_line-height
|
|
261
|
+
);
|
|
262
|
+
text-align: var(
|
|
263
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_text-align
|
|
264
|
+
);
|
|
265
|
+
text-decoration: var(
|
|
266
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_text-decoration
|
|
267
|
+
);
|
|
268
|
+
text-transform: var(
|
|
269
|
+
--recursica_ui-kit_components_table-cell_properties_text-style_text-transform
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Currency formatted cell layout override */
|
|
274
|
+
.root tbody td[data-currency="true"] {
|
|
275
|
+
font-family: var(
|
|
276
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_font-family
|
|
277
|
+
);
|
|
278
|
+
font-size: var(
|
|
279
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_font-size
|
|
280
|
+
);
|
|
281
|
+
font-style: var(
|
|
282
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_font-style
|
|
283
|
+
);
|
|
284
|
+
font-weight: var(
|
|
285
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_font-weight
|
|
286
|
+
);
|
|
287
|
+
letter-spacing: var(
|
|
288
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_letter-spacing
|
|
289
|
+
);
|
|
290
|
+
line-height: var(
|
|
291
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_line-height
|
|
292
|
+
);
|
|
293
|
+
text-align: var(
|
|
294
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_text-align
|
|
295
|
+
);
|
|
296
|
+
text-decoration: var(
|
|
297
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_text-decoration
|
|
298
|
+
);
|
|
299
|
+
text-transform: var(
|
|
300
|
+
--recursica_ui-kit_components_table-cell_properties_currency-style_text-transform
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* Disabled Cells */
|
|
305
|
+
.root tbody tr[data-disabled="true"] td,
|
|
306
|
+
.root tbody td[data-disabled="true"] {
|
|
307
|
+
background-color: var(
|
|
308
|
+
--recursica_ui-kit_components_table-cell_properties_colors_cell-color-disabled
|
|
309
|
+
);
|
|
310
|
+
color: var(
|
|
311
|
+
--recursica_ui-kit_components_table-cell_properties_colors_text-color-disabled
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* ==========================================
|
|
316
|
+
5. Table Footers (tfoot td)
|
|
317
|
+
========================================== */
|
|
318
|
+
|
|
319
|
+
.root tfoot td {
|
|
320
|
+
background-color: var(
|
|
321
|
+
--recursica_ui-kit_components_table-footer_properties_colors_cell-color-enabled
|
|
322
|
+
);
|
|
323
|
+
color: var(
|
|
324
|
+
--recursica_ui-kit_components_table-footer_properties_colors_text-color-enabled
|
|
325
|
+
);
|
|
326
|
+
padding: var(
|
|
327
|
+
--recursica_ui-kit_components_table-footer_properties_padding-vertical
|
|
328
|
+
)
|
|
329
|
+
var(
|
|
330
|
+
--recursica_ui-kit_components_table-footer_properties_padding-horizontal
|
|
331
|
+
);
|
|
332
|
+
margin-top: var(
|
|
333
|
+
--recursica_ui-kit_components_table-footer_properties_vertical-margin
|
|
334
|
+
);
|
|
335
|
+
margin-bottom: var(
|
|
336
|
+
--recursica_ui-kit_components_table-footer_properties_vertical-margin
|
|
337
|
+
);
|
|
338
|
+
border-top: var(
|
|
339
|
+
--recursica_ui-kit_components_table-footer_properties_horizontal-divider-size
|
|
340
|
+
)
|
|
341
|
+
solid
|
|
342
|
+
var(
|
|
343
|
+
--recursica_ui-kit_components_table-footer_properties_colors_horizontal-divider-color
|
|
344
|
+
);
|
|
345
|
+
|
|
346
|
+
/* Footer typography style */
|
|
347
|
+
font-family: var(
|
|
348
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_font-family
|
|
349
|
+
);
|
|
350
|
+
font-size: var(
|
|
351
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_font-size
|
|
352
|
+
);
|
|
353
|
+
font-style: var(
|
|
354
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_font-style
|
|
355
|
+
);
|
|
356
|
+
font-weight: var(
|
|
357
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_font-weight
|
|
358
|
+
);
|
|
359
|
+
letter-spacing: var(
|
|
360
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_letter-spacing
|
|
361
|
+
);
|
|
362
|
+
line-height: var(
|
|
363
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_line-height
|
|
364
|
+
);
|
|
365
|
+
text-decoration: var(
|
|
366
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_text-decoration
|
|
367
|
+
);
|
|
368
|
+
text-transform: var(
|
|
369
|
+
--recursica_ui-kit_components_table-footer_properties_text-style_text-transform
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.root tfoot td + td {
|
|
374
|
+
border-left: var(
|
|
375
|
+
--recursica_ui-kit_components_table-footer_properties_vertical-divider-size
|
|
376
|
+
)
|
|
377
|
+
solid
|
|
378
|
+
var(
|
|
379
|
+
--recursica_ui-kit_components_table-footer_properties_colors_vertical-divider-color
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* Disabled Footer Row/Cells */
|
|
384
|
+
.root tfoot tr[data-disabled="true"] td,
|
|
385
|
+
.root tfoot td[data-disabled="true"] {
|
|
386
|
+
background-color: var(
|
|
387
|
+
--recursica_ui-kit_components_table-footer_properties_colors_cell-color-disabled
|
|
388
|
+
);
|
|
389
|
+
color: var(
|
|
390
|
+
--recursica_ui-kit_components_table-footer_properties_colors_text-color-disabled
|
|
391
|
+
);
|
|
7
392
|
}
|
|
@@ -15,7 +15,7 @@ export type TableProps = RecursicaOverStyled<
|
|
|
15
15
|
>;
|
|
16
16
|
|
|
17
17
|
const TableBase = forwardRef<HTMLTableElement, TableProps>(function Table(
|
|
18
|
-
{ overStyled = false,
|
|
18
|
+
{ overStyled = false, ...rest },
|
|
19
19
|
ref,
|
|
20
20
|
) {
|
|
21
21
|
const sanitizedProps = filterStylingProps(rest, overStyled);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Recursica Tabs CSS module natively binding to Figma variables.
|
|
3
3
|
*/
|
|
4
|
+
/* recursica-ignore: --recursica_ui-kit_components_tabs_properties_hover-color */
|
|
5
|
+
/* recursica-ignore: --recursica_ui-kit_components_tabs_properties_hover-opacity */
|
|
4
6
|
|
|
5
7
|
.root {
|
|
6
8
|
width: 100%;
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
====================================== */
|
|
15
15
|
|
|
16
16
|
.root {
|
|
17
|
-
border-
|
|
17
|
+
border-radius: var(
|
|
18
|
+
--recursica_ui-kit_components_toast_properties_border-radius
|
|
19
|
+
);
|
|
20
|
+
border-width: var(--recursica_ui-kit_components_toast_properties_border-size);
|
|
21
|
+
border-style: solid;
|
|
22
|
+
border-color: transparent;
|
|
18
23
|
box-shadow: var(
|
|
19
24
|
--recursica_ui-kit_components_toast_properties_elevation_layer-0
|
|
20
25
|
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_border-radius */
|
|
2
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_border-size */
|
|
3
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_button-node-gap */
|
|
4
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_horizontal-padding */
|
|
5
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_indent */
|
|
6
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_item-gap */
|
|
7
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_max-width */
|
|
8
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_font-family */
|
|
9
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_font-size */
|
|
10
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_font-style */
|
|
11
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_font-weight */
|
|
12
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_letter-spacing */
|
|
13
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_line-height */
|
|
14
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_text-decoration */
|
|
15
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_selected-text_text-transform */
|
|
16
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_font-family */
|
|
17
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_font-size */
|
|
18
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_font-style */
|
|
19
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_font-weight */
|
|
20
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_letter-spacing */
|
|
21
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_line-height */
|
|
22
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_text-decoration */
|
|
23
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_unselected-text_text-transform */
|
|
24
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_vertical-padding */
|
|
25
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_hover-background */
|
|
26
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_hover-border-color */
|
|
27
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_hover-text */
|
|
28
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_selected-background */
|
|
29
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_selected-border-color */
|
|
30
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_selected-text */
|
|
31
|
+
/* recursica-ignore: --recursica_ui-kit_components_tree_properties_colors_unselected-text */
|
|
32
|
+
|
|
33
|
+
.root {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
font-family: sans-serif;
|
|
36
|
+
padding: 24px;
|
|
37
|
+
border: 1px dashed #ccc;
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
color: #666;
|
|
40
|
+
text-align: center;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
background-color: #fafafa;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Tree } from "./Tree";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof Tree> = {
|
|
5
|
+
title: "Components/Tree",
|
|
6
|
+
component: Tree,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof Tree>;
|
|
11
|
+
|
|
12
|
+
export const ComingSoon: Story = {
|
|
13
|
+
args: {},
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { type RecursicaOverStyled } from "../../utils/filterStylingProps";
|
|
3
|
+
import styles from "./Tree.module.css";
|
|
4
|
+
|
|
5
|
+
export interface TreeProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
6
|
+
overStyled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Placeholder component for Tree (Coming Soon).
|
|
11
|
+
*/
|
|
12
|
+
export const Tree = forwardRef<HTMLDivElement, RecursicaOverStyled<TreeProps>>(
|
|
13
|
+
function Tree({ overStyled: _overStyled = false, className, ...rest }, ref) {
|
|
14
|
+
void _overStyled;
|
|
15
|
+
const finalClass = className ? `${styles.root} ${className}` : styles.root;
|
|
16
|
+
return (
|
|
17
|
+
<div ref={ref} className={finalClass} {...rest}>
|
|
18
|
+
Tree (Coming Soon)
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
Tree.displayName = "Tree";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Tree";
|
package/src/components/index.ts
CHANGED
|
@@ -42,7 +42,9 @@ export * from "./TextArea/TextArea";
|
|
|
42
42
|
export * from "./TextField/TextField";
|
|
43
43
|
export * from "./TimePicker/TimePicker";
|
|
44
44
|
export * from "./Timeline/Timeline";
|
|
45
|
+
export * from "./Timeline/TimelineItem";
|
|
45
46
|
export * from "./Title/Title";
|
|
46
47
|
export * from "./Toast";
|
|
47
48
|
export * from "./Tooltip/Tooltip";
|
|
48
49
|
export * from "./TransferList/TransferList";
|
|
50
|
+
export * from "./Tree";
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,163 @@
|
|
|
1
1
|
import "@recursica/adapter-common/style.css";
|
|
2
|
-
|
|
2
|
+
import * as rawComponents from "./components";
|
|
3
|
+
import { wrapComponent } from "@recursica/adapter-common";
|
|
4
|
+
|
|
3
5
|
export * from "@recursica/adapter-common";
|
|
4
6
|
|
|
7
|
+
// Expose unwrapped structural layout primitives to preserve their polymorphic types
|
|
8
|
+
export const Flex = rawComponents.Flex;
|
|
9
|
+
export const Group = rawComponents.Group;
|
|
10
|
+
export const Stack = rawComponents.Stack;
|
|
11
|
+
export const Container = rawComponents.Container;
|
|
12
|
+
export const Link = rawComponents.Link;
|
|
13
|
+
export const Text = rawComponents.Text;
|
|
14
|
+
|
|
15
|
+
// Statically wrap and export components to inject overStyled visual highlight in dev mode
|
|
16
|
+
export const Accordion = wrapComponent(
|
|
17
|
+
rawComponents.Accordion,
|
|
18
|
+
) as typeof rawComponents.Accordion;
|
|
19
|
+
export const AccordionItem = wrapComponent(
|
|
20
|
+
rawComponents.AccordionItem,
|
|
21
|
+
) as typeof rawComponents.AccordionItem;
|
|
22
|
+
export const AccordionControl = wrapComponent(
|
|
23
|
+
rawComponents.AccordionControl,
|
|
24
|
+
) as typeof rawComponents.AccordionControl;
|
|
25
|
+
export const AccordionPanel = wrapComponent(
|
|
26
|
+
rawComponents.AccordionPanel,
|
|
27
|
+
) as typeof rawComponents.AccordionPanel;
|
|
28
|
+
export const AutoComplete = wrapComponent(
|
|
29
|
+
rawComponents.AutoComplete,
|
|
30
|
+
) as typeof rawComponents.AutoComplete;
|
|
31
|
+
export const Avatar = wrapComponent(
|
|
32
|
+
rawComponents.Avatar,
|
|
33
|
+
) as typeof rawComponents.Avatar;
|
|
34
|
+
export const Badge = wrapComponent(
|
|
35
|
+
rawComponents.Badge,
|
|
36
|
+
) as typeof rawComponents.Badge;
|
|
37
|
+
export const Breadcrumb = wrapComponent(
|
|
38
|
+
rawComponents.Breadcrumb,
|
|
39
|
+
) as typeof rawComponents.Breadcrumb;
|
|
40
|
+
export const Button = wrapComponent(
|
|
41
|
+
rawComponents.Button,
|
|
42
|
+
) as typeof rawComponents.Button;
|
|
43
|
+
export const Card = wrapComponent(
|
|
44
|
+
rawComponents.Card,
|
|
45
|
+
) as typeof rawComponents.Card;
|
|
46
|
+
export const Checkbox = wrapComponent(
|
|
47
|
+
rawComponents.Checkbox,
|
|
48
|
+
) as typeof rawComponents.Checkbox;
|
|
49
|
+
export const CheckboxGroup = wrapComponent(
|
|
50
|
+
rawComponents.CheckboxGroup,
|
|
51
|
+
) as typeof rawComponents.CheckboxGroup;
|
|
52
|
+
export const Chip = wrapComponent(
|
|
53
|
+
rawComponents.Chip,
|
|
54
|
+
) as typeof rawComponents.Chip;
|
|
55
|
+
export const DatePicker = wrapComponent(
|
|
56
|
+
rawComponents.DatePicker,
|
|
57
|
+
) as typeof rawComponents.DatePicker;
|
|
58
|
+
export const Dropdown = wrapComponent(
|
|
59
|
+
rawComponents.Dropdown,
|
|
60
|
+
) as typeof rawComponents.Dropdown;
|
|
61
|
+
export const FileInput = wrapComponent(
|
|
62
|
+
rawComponents.FileInput,
|
|
63
|
+
) as typeof rawComponents.FileInput;
|
|
64
|
+
export const FileUpload = wrapComponent(
|
|
65
|
+
rawComponents.FileUpload,
|
|
66
|
+
) as typeof rawComponents.FileUpload;
|
|
67
|
+
export const FormControlLayout = wrapComponent(
|
|
68
|
+
rawComponents.FormControlLayout,
|
|
69
|
+
) as typeof rawComponents.FormControlLayout;
|
|
70
|
+
export const HoverCard = wrapComponent(
|
|
71
|
+
rawComponents.HoverCard,
|
|
72
|
+
) as typeof rawComponents.HoverCard;
|
|
73
|
+
export const Loader = wrapComponent(
|
|
74
|
+
rawComponents.Loader,
|
|
75
|
+
) as typeof rawComponents.Loader;
|
|
76
|
+
export const Label = wrapComponent(
|
|
77
|
+
rawComponents.Label,
|
|
78
|
+
) as typeof rawComponents.Label;
|
|
79
|
+
export const Menu = wrapComponent(
|
|
80
|
+
rawComponents.Menu,
|
|
81
|
+
) as typeof rawComponents.Menu;
|
|
82
|
+
export const Modal = wrapComponent(
|
|
83
|
+
rawComponents.Modal,
|
|
84
|
+
) as typeof rawComponents.Modal;
|
|
85
|
+
export const NumberInput = wrapComponent(
|
|
86
|
+
rawComponents.NumberInput,
|
|
87
|
+
) as typeof rawComponents.NumberInput;
|
|
88
|
+
export const Pagination = wrapComponent(
|
|
89
|
+
rawComponents.Pagination,
|
|
90
|
+
) as typeof rawComponents.Pagination;
|
|
91
|
+
export const Panel = wrapComponent(
|
|
92
|
+
rawComponents.Panel,
|
|
93
|
+
) as typeof rawComponents.Panel;
|
|
94
|
+
export const PanelFooter = wrapComponent(
|
|
95
|
+
rawComponents.PanelFooter,
|
|
96
|
+
) as typeof rawComponents.PanelFooter;
|
|
97
|
+
export const Popover = wrapComponent(
|
|
98
|
+
rawComponents.Popover,
|
|
99
|
+
) as typeof rawComponents.Popover;
|
|
100
|
+
export const Radio = wrapComponent(
|
|
101
|
+
rawComponents.Radio,
|
|
102
|
+
) as typeof rawComponents.Radio;
|
|
103
|
+
export const RadioGroup = wrapComponent(
|
|
104
|
+
rawComponents.RadioGroup,
|
|
105
|
+
) as typeof rawComponents.RadioGroup;
|
|
106
|
+
export const ReadOnlyField = wrapComponent(
|
|
107
|
+
rawComponents.ReadOnlyField,
|
|
108
|
+
) as typeof rawComponents.ReadOnlyField;
|
|
109
|
+
export const SegmentedControl = wrapComponent(
|
|
110
|
+
rawComponents.SegmentedControl,
|
|
111
|
+
) as typeof rawComponents.SegmentedControl;
|
|
112
|
+
export const Slider = wrapComponent(
|
|
113
|
+
rawComponents.Slider,
|
|
114
|
+
) as typeof rawComponents.Slider;
|
|
115
|
+
export const Stepper = wrapComponent(
|
|
116
|
+
rawComponents.Stepper,
|
|
117
|
+
) as typeof rawComponents.Stepper;
|
|
118
|
+
export const Switch = wrapComponent(
|
|
119
|
+
rawComponents.Switch,
|
|
120
|
+
) as typeof rawComponents.Switch;
|
|
121
|
+
export const SwitchGroup = wrapComponent(
|
|
122
|
+
rawComponents.SwitchGroup,
|
|
123
|
+
) as typeof rawComponents.SwitchGroup;
|
|
124
|
+
export const Table = wrapComponent(
|
|
125
|
+
rawComponents.Table,
|
|
126
|
+
) as typeof rawComponents.Table;
|
|
127
|
+
export const Tabs = wrapComponent(
|
|
128
|
+
rawComponents.Tabs,
|
|
129
|
+
) as typeof rawComponents.Tabs;
|
|
130
|
+
export const TextArea = wrapComponent(
|
|
131
|
+
rawComponents.TextArea,
|
|
132
|
+
) as typeof rawComponents.TextArea;
|
|
133
|
+
export const TextField = wrapComponent(
|
|
134
|
+
rawComponents.TextField,
|
|
135
|
+
) as typeof rawComponents.TextField;
|
|
136
|
+
export const TimePicker = wrapComponent(
|
|
137
|
+
rawComponents.TimePicker,
|
|
138
|
+
) as typeof rawComponents.TimePicker;
|
|
139
|
+
export const Timeline = wrapComponent(
|
|
140
|
+
rawComponents.Timeline,
|
|
141
|
+
) as typeof rawComponents.Timeline;
|
|
142
|
+
export const TimelineItem = wrapComponent(
|
|
143
|
+
rawComponents.TimelineItem,
|
|
144
|
+
) as typeof rawComponents.TimelineItem;
|
|
145
|
+
export const Title = wrapComponent(
|
|
146
|
+
rawComponents.Title,
|
|
147
|
+
) as typeof rawComponents.Title;
|
|
148
|
+
export const Toast = wrapComponent(
|
|
149
|
+
rawComponents.Toast,
|
|
150
|
+
) as typeof rawComponents.Toast;
|
|
151
|
+
export const Tooltip = wrapComponent(
|
|
152
|
+
rawComponents.Tooltip,
|
|
153
|
+
) as typeof rawComponents.Tooltip;
|
|
154
|
+
export const TransferList = wrapComponent(
|
|
155
|
+
rawComponents.TransferList,
|
|
156
|
+
) as typeof rawComponents.TransferList;
|
|
157
|
+
export const Tree = wrapComponent(
|
|
158
|
+
rawComponents.Tree,
|
|
159
|
+
) as typeof rawComponents.Tree;
|
|
160
|
+
|
|
5
161
|
export type {
|
|
6
162
|
RecursicaCheckboxGroupProps,
|
|
7
163
|
RecursicaDatePickerProps,
|