@clearstory/drywall-react 3.3.0 → 3.4.1
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/SelectControl-BmDx8v5U.js +354 -0
- package/dist/components/AutocompleteControl/AutocompleteControl.js +6 -2
- package/dist/components/AutocompleteControl/index.js +1 -1
- package/dist/components/DatepickerControl/DatepickerControl.d.ts +1 -0
- package/dist/components/DatepickerControl/DatepickerControl.js +6 -2
- package/dist/components/DatepickerControl/index.js +1 -1
- package/dist/components/DescriptionDetails/DescriptionDetails.d.ts +4 -0
- package/dist/components/DescriptionDetails/DescriptionDetails.js +30 -0
- package/dist/components/DescriptionDetails/index.d.ts +1 -0
- package/dist/components/DescriptionDetails/index.js +4 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +6 -0
- package/dist/components/DescriptionList/DescriptionList.js +9 -0
- package/dist/components/DescriptionList/DescriptionListContext.d.ts +7 -0
- package/dist/components/DescriptionList/DescriptionListContext.js +6 -0
- package/dist/components/DescriptionList/index.d.ts +2 -0
- package/dist/components/DescriptionList/index.js +6 -0
- package/dist/components/DescriptionTerm/DescriptionTerm.d.ts +4 -0
- package/dist/components/DescriptionTerm/DescriptionTerm.js +27 -0
- package/dist/components/DescriptionTerm/index.d.ts +1 -0
- package/dist/components/DescriptionTerm/index.js +4 -0
- package/dist/components/FormSublabel/FormSublabel.js +6 -2
- package/dist/components/FormSublabel/index.js +1 -1
- package/dist/components/InputControl/InputControl.js +6 -2
- package/dist/components/InputControl/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.js +6 -2
- package/dist/components/SelectControl/index.js +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.js +376 -368
- package/package.json +1 -1
- package/dist/SelectControl-BWiB-iy9.js +0 -317
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { useId as $ } from "./hooks/useId.js";
|
|
4
|
+
import "./icons/ClearstoryIcon.js";
|
|
5
|
+
import "./icons/InternalOnlyIcon.js";
|
|
6
|
+
import "./icons/MoneyBucketIcon.js";
|
|
7
|
+
import "./icons/MoreCircleOutlineIcon.js";
|
|
8
|
+
import { I as F } from "./Info-DtWHV9kz.js";
|
|
9
|
+
import "./theme/index.js";
|
|
10
|
+
import { A as M } from "./Autocomplete-CfXcTXLL.js";
|
|
11
|
+
import { D as O } from "./Datepicker-CJBEgBsm.js";
|
|
12
|
+
import "./components/DescriptionDetails/DescriptionDetails.js";
|
|
13
|
+
import "./components/DescriptionList/DescriptionList.js";
|
|
14
|
+
import "./components/DescriptionList/DescriptionListContext.js";
|
|
15
|
+
import "./components/DescriptionTerm/DescriptionTerm.js";
|
|
16
|
+
import { Input as Q } from "./components/Input/Input.js";
|
|
17
|
+
import { Select as U } from "./components/Select/Select.js";
|
|
18
|
+
import "./theme/internal.js";
|
|
19
|
+
import "./components/ToastContainer/ToastContainer.js";
|
|
20
|
+
import "./components/ToastContainer/ToastLabelContext.js";
|
|
21
|
+
import "./index-SzwnPTHF.js";
|
|
22
|
+
import { F as k } from "./FormControl-CuHXXTcL.js";
|
|
23
|
+
import { B as C } from "./Box-CKDKtm7F.js";
|
|
24
|
+
import { F as w } from "./FormLabel-CgNd8XLN.js";
|
|
25
|
+
import { T as B } from "./Tooltip-BJmTHiZe.js";
|
|
26
|
+
import { F as I } from "./FormHelperText-wucHHOG8.js";
|
|
27
|
+
import { s as V } from "./styled-fvngWWLy.js";
|
|
28
|
+
function X(c, m) {
|
|
29
|
+
const {
|
|
30
|
+
disabled: d,
|
|
31
|
+
error: t,
|
|
32
|
+
helperText: n,
|
|
33
|
+
id: f,
|
|
34
|
+
label: p,
|
|
35
|
+
required: o,
|
|
36
|
+
slotProps: l,
|
|
37
|
+
sublabel: s,
|
|
38
|
+
tooltip: a,
|
|
39
|
+
...h
|
|
40
|
+
} = c, y = $("autocomplete"), i = f || y, r = n ? `${i}-helper` : void 0;
|
|
41
|
+
return /* @__PURE__ */ b(k, { disabled: d, error: t, ...l?.root, children: [
|
|
42
|
+
/* @__PURE__ */ b(
|
|
43
|
+
C,
|
|
44
|
+
{
|
|
45
|
+
sx: {
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
display: "flex",
|
|
48
|
+
gap: "0.25rem"
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ e(w, { htmlFor: i, required: o, ...l?.label, children: p }),
|
|
52
|
+
a && /* @__PURE__ */ e(B, { title: a, arrow: !0, children: /* @__PURE__ */ e(
|
|
53
|
+
F,
|
|
54
|
+
{
|
|
55
|
+
sx: ({ vars: x }) => ({
|
|
56
|
+
color: x?.palette.text.secondary,
|
|
57
|
+
marginBlockEnd: "3px",
|
|
58
|
+
height: "1rem",
|
|
59
|
+
width: "1rem"
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
s && /* @__PURE__ */ e(A, { ...l?.sublabel, children: s }),
|
|
67
|
+
/* @__PURE__ */ e(
|
|
68
|
+
M,
|
|
69
|
+
{
|
|
70
|
+
disabled: d,
|
|
71
|
+
ref: m,
|
|
72
|
+
error: t,
|
|
73
|
+
id: i,
|
|
74
|
+
"aria-describedby": r ? h["aria-describedby"] ? `${h["aria-describedby"]} ${r}` : r : h["aria-describedby"],
|
|
75
|
+
...h
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
n && /* @__PURE__ */ e(I, { id: r, ...l?.helperText, children: n })
|
|
79
|
+
] });
|
|
80
|
+
}
|
|
81
|
+
const Y = u(
|
|
82
|
+
X
|
|
83
|
+
);
|
|
84
|
+
Y.displayName = "AutocompleteControl";
|
|
85
|
+
const Z = u(
|
|
86
|
+
({
|
|
87
|
+
disabled: c = !1,
|
|
88
|
+
error: m = !1,
|
|
89
|
+
fullWidth: d,
|
|
90
|
+
helperText: t,
|
|
91
|
+
label: n,
|
|
92
|
+
required: f = !1,
|
|
93
|
+
slotProps: p = {},
|
|
94
|
+
sublabel: o,
|
|
95
|
+
tooltip: l,
|
|
96
|
+
name: s,
|
|
97
|
+
value: a,
|
|
98
|
+
onChange: h,
|
|
99
|
+
onAccept: y,
|
|
100
|
+
onClose: i,
|
|
101
|
+
onOpen: r,
|
|
102
|
+
format: x,
|
|
103
|
+
views: S,
|
|
104
|
+
openTo: E,
|
|
105
|
+
disableFuture: v,
|
|
106
|
+
disablePast: N,
|
|
107
|
+
minDate: j,
|
|
108
|
+
maxDate: T,
|
|
109
|
+
closeOnSelect: q,
|
|
110
|
+
readOnly: H,
|
|
111
|
+
clearable: L,
|
|
112
|
+
reduceAnimations: R,
|
|
113
|
+
...z
|
|
114
|
+
}, G) => {
|
|
115
|
+
const J = $("datepicker"), g = s || J, D = t ? `${g}-helper` : void 0;
|
|
116
|
+
return /* @__PURE__ */ b(
|
|
117
|
+
k,
|
|
118
|
+
{
|
|
119
|
+
disabled: c,
|
|
120
|
+
error: m,
|
|
121
|
+
fullWidth: d,
|
|
122
|
+
...p.root,
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ b(
|
|
125
|
+
C,
|
|
126
|
+
{
|
|
127
|
+
sx: {
|
|
128
|
+
alignItems: "center",
|
|
129
|
+
display: "flex",
|
|
130
|
+
gap: "0.25rem"
|
|
131
|
+
},
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ e(w, { htmlFor: g, required: f, ...p.label, children: n }),
|
|
134
|
+
l && /* @__PURE__ */ e(B, { title: l, arrow: !0, children: /* @__PURE__ */ e(
|
|
135
|
+
F,
|
|
136
|
+
{
|
|
137
|
+
sx: ({ vars: K }) => ({
|
|
138
|
+
color: K?.palette.text.secondary,
|
|
139
|
+
marginBlockEnd: "3px",
|
|
140
|
+
height: "1rem",
|
|
141
|
+
width: "1rem"
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
) })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
o && /* @__PURE__ */ e(A, { ...p.sublabel, children: o }),
|
|
149
|
+
/* @__PURE__ */ e(
|
|
150
|
+
O,
|
|
151
|
+
{
|
|
152
|
+
ref: G,
|
|
153
|
+
disabled: c,
|
|
154
|
+
name: g,
|
|
155
|
+
value: a,
|
|
156
|
+
onChange: h,
|
|
157
|
+
onAccept: y,
|
|
158
|
+
onClose: i,
|
|
159
|
+
onOpen: r,
|
|
160
|
+
format: x,
|
|
161
|
+
views: S,
|
|
162
|
+
openTo: E,
|
|
163
|
+
disableFuture: v,
|
|
164
|
+
disablePast: N,
|
|
165
|
+
minDate: j,
|
|
166
|
+
maxDate: T,
|
|
167
|
+
closeOnSelect: q,
|
|
168
|
+
readOnly: H,
|
|
169
|
+
clearable: L,
|
|
170
|
+
reduceAnimations: R,
|
|
171
|
+
error: m,
|
|
172
|
+
slotProps: {
|
|
173
|
+
field: {
|
|
174
|
+
id: g,
|
|
175
|
+
"aria-describedby": D,
|
|
176
|
+
...d && { sx: { width: "100%" } }
|
|
177
|
+
},
|
|
178
|
+
popper: {
|
|
179
|
+
"aria-label": `Date picker${typeof n == "string" && ` for ${n}`}`
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
...z
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
t && /* @__PURE__ */ e(I, { id: D, ...p.helperText, children: t })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
Z.displayName = "DatepickerControl";
|
|
192
|
+
const A = V(I)(() => ({
|
|
193
|
+
marginBlockStart: 0,
|
|
194
|
+
marginBlockEnd: "3px",
|
|
195
|
+
marginInline: 0
|
|
196
|
+
})), _ = u(
|
|
197
|
+
({
|
|
198
|
+
disabled: c,
|
|
199
|
+
error: m,
|
|
200
|
+
fullWidth: d,
|
|
201
|
+
helperText: t,
|
|
202
|
+
id: n,
|
|
203
|
+
label: f,
|
|
204
|
+
required: p,
|
|
205
|
+
slotProps: o,
|
|
206
|
+
sublabel: l,
|
|
207
|
+
tooltip: s,
|
|
208
|
+
...a
|
|
209
|
+
}, h) => {
|
|
210
|
+
const y = $("input"), i = n || y, r = t ? `${i}-helper` : void 0;
|
|
211
|
+
return /* @__PURE__ */ b(
|
|
212
|
+
k,
|
|
213
|
+
{
|
|
214
|
+
disabled: c,
|
|
215
|
+
error: m,
|
|
216
|
+
fullWidth: d,
|
|
217
|
+
...o?.root,
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ b(
|
|
220
|
+
C,
|
|
221
|
+
{
|
|
222
|
+
sx: {
|
|
223
|
+
alignItems: "center",
|
|
224
|
+
display: "flex",
|
|
225
|
+
gap: "0.25rem"
|
|
226
|
+
},
|
|
227
|
+
children: [
|
|
228
|
+
/* @__PURE__ */ e(
|
|
229
|
+
w,
|
|
230
|
+
{
|
|
231
|
+
htmlFor: i,
|
|
232
|
+
required: p,
|
|
233
|
+
...o?.label,
|
|
234
|
+
children: f
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
s && /* @__PURE__ */ e(B, { title: s, arrow: !0, children: /* @__PURE__ */ e(
|
|
238
|
+
F,
|
|
239
|
+
{
|
|
240
|
+
sx: ({ vars: x }) => ({
|
|
241
|
+
color: x?.palette.text.secondary,
|
|
242
|
+
marginBlockEnd: "3px",
|
|
243
|
+
height: "1rem",
|
|
244
|
+
width: "1rem"
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
) })
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
l && /* @__PURE__ */ e(A, { ...o?.sublabel, children: l }),
|
|
252
|
+
/* @__PURE__ */ e(
|
|
253
|
+
Q,
|
|
254
|
+
{
|
|
255
|
+
ref: h,
|
|
256
|
+
disabled: c,
|
|
257
|
+
error: m,
|
|
258
|
+
fullWidth: d,
|
|
259
|
+
id: i,
|
|
260
|
+
"aria-describedby": r ? a["aria-describedby"] ? `${a["aria-describedby"]} ${r}` : r : a["aria-describedby"],
|
|
261
|
+
...a
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
t && /* @__PURE__ */ e(I, { id: r, ...o?.helperText, children: t })
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
_.displayName = "InputControl";
|
|
271
|
+
const W = u(
|
|
272
|
+
({
|
|
273
|
+
disabled: c,
|
|
274
|
+
error: m,
|
|
275
|
+
fullWidth: d,
|
|
276
|
+
helperText: t,
|
|
277
|
+
id: n,
|
|
278
|
+
label: f,
|
|
279
|
+
required: p,
|
|
280
|
+
slotProps: o,
|
|
281
|
+
sublabel: l,
|
|
282
|
+
tooltip: s,
|
|
283
|
+
...a
|
|
284
|
+
}, h) => {
|
|
285
|
+
const y = $("select"), i = n || y, r = t ? `${i}-helper` : void 0;
|
|
286
|
+
return /* @__PURE__ */ b(
|
|
287
|
+
k,
|
|
288
|
+
{
|
|
289
|
+
disabled: c,
|
|
290
|
+
error: m,
|
|
291
|
+
fullWidth: d,
|
|
292
|
+
...o?.root,
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ b(
|
|
295
|
+
C,
|
|
296
|
+
{
|
|
297
|
+
sx: {
|
|
298
|
+
alignItems: "center",
|
|
299
|
+
display: "flex",
|
|
300
|
+
gap: "0.25rem"
|
|
301
|
+
},
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ e(
|
|
304
|
+
w,
|
|
305
|
+
{
|
|
306
|
+
id: `${i}-label`,
|
|
307
|
+
htmlFor: i,
|
|
308
|
+
required: p,
|
|
309
|
+
...o?.label,
|
|
310
|
+
children: f
|
|
311
|
+
}
|
|
312
|
+
),
|
|
313
|
+
s && /* @__PURE__ */ e(B, { title: s, arrow: !0, children: /* @__PURE__ */ e(
|
|
314
|
+
F,
|
|
315
|
+
{
|
|
316
|
+
sx: ({ vars: x }) => ({
|
|
317
|
+
color: x?.palette.text.secondary,
|
|
318
|
+
marginBlockEnd: "3px",
|
|
319
|
+
height: "1rem",
|
|
320
|
+
width: "1rem"
|
|
321
|
+
})
|
|
322
|
+
}
|
|
323
|
+
) })
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
),
|
|
327
|
+
l && /* @__PURE__ */ e(A, { ...o?.sublabel, children: l }),
|
|
328
|
+
/* @__PURE__ */ e(
|
|
329
|
+
U,
|
|
330
|
+
{
|
|
331
|
+
ref: h,
|
|
332
|
+
disabled: c,
|
|
333
|
+
error: m,
|
|
334
|
+
fullWidth: d,
|
|
335
|
+
labelId: `${i}-label`,
|
|
336
|
+
id: i,
|
|
337
|
+
"aria-describedby": r ? a["aria-describedby"] ? `${a["aria-describedby"]} ${r}` : r : a["aria-describedby"],
|
|
338
|
+
...a
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
t && /* @__PURE__ */ e(I, { id: r, ...o?.helperText, children: t })
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
);
|
|
347
|
+
W.displayName = "SelectControl";
|
|
348
|
+
export {
|
|
349
|
+
Y as A,
|
|
350
|
+
Z as D,
|
|
351
|
+
A as F,
|
|
352
|
+
_ as I,
|
|
353
|
+
W as S
|
|
354
|
+
};
|
|
@@ -8,8 +8,12 @@ import "../../icons/MoreCircleOutlineIcon.js";
|
|
|
8
8
|
import "../../Info-DtWHV9kz.js";
|
|
9
9
|
import "../../theme/index.js";
|
|
10
10
|
import "../../Autocomplete-CfXcTXLL.js";
|
|
11
|
-
import { A as
|
|
11
|
+
import { A as B } from "../../SelectControl-BmDx8v5U.js";
|
|
12
12
|
import "../../Datepicker-CJBEgBsm.js";
|
|
13
|
+
import "../DescriptionDetails/DescriptionDetails.js";
|
|
14
|
+
import "../DescriptionList/DescriptionList.js";
|
|
15
|
+
import "../DescriptionList/DescriptionListContext.js";
|
|
16
|
+
import "../DescriptionTerm/DescriptionTerm.js";
|
|
13
17
|
import "../Input/Input.js";
|
|
14
18
|
import "../Select/Select.js";
|
|
15
19
|
import "../../theme/internal.js";
|
|
@@ -22,5 +26,5 @@ import "../../FormLabel-CgNd8XLN.js";
|
|
|
22
26
|
import "../../Tooltip-BJmTHiZe.js";
|
|
23
27
|
import "../../FormHelperText-wucHHOG8.js";
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
B as AutocompleteControl
|
|
26
30
|
};
|
|
@@ -8,8 +8,12 @@ import "../../icons/MoreCircleOutlineIcon.js";
|
|
|
8
8
|
import "../../Info-DtWHV9kz.js";
|
|
9
9
|
import "../../theme/index.js";
|
|
10
10
|
import "../../Autocomplete-CfXcTXLL.js";
|
|
11
|
-
import { D as
|
|
11
|
+
import { D as A } from "../../SelectControl-BmDx8v5U.js";
|
|
12
12
|
import "../../Datepicker-CJBEgBsm.js";
|
|
13
|
+
import "../DescriptionDetails/DescriptionDetails.js";
|
|
14
|
+
import "../DescriptionList/DescriptionList.js";
|
|
15
|
+
import "../DescriptionList/DescriptionListContext.js";
|
|
16
|
+
import "../DescriptionTerm/DescriptionTerm.js";
|
|
13
17
|
import "../Input/Input.js";
|
|
14
18
|
import "../Select/Select.js";
|
|
15
19
|
import "../../theme/internal.js";
|
|
@@ -22,5 +26,5 @@ import "../../FormLabel-CgNd8XLN.js";
|
|
|
22
26
|
import "../../Tooltip-BJmTHiZe.js";
|
|
23
27
|
import "../../FormHelperText-wucHHOG8.js";
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
A as DatepickerControl
|
|
26
30
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TypographyProps } from '../Typography';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export type DescriptionDetailsProps = Omit<TypographyProps, "component">;
|
|
4
|
+
export declare const DescriptionDetails: ForwardRefExoticComponent<Omit<DescriptionDetailsProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { useDescriptionListContext as a } from "../DescriptionList/DescriptionListContext.js";
|
|
4
|
+
import { T as e } from "../../Typography-DnNWmNen.js";
|
|
5
|
+
const c = s(({ variant: t = "body2", sx: o, ...i }, n) => {
|
|
6
|
+
const r = a()?.spacing;
|
|
7
|
+
return /* @__PURE__ */ p(
|
|
8
|
+
e,
|
|
9
|
+
{
|
|
10
|
+
component: "dd",
|
|
11
|
+
variant: t,
|
|
12
|
+
ref: n,
|
|
13
|
+
...i,
|
|
14
|
+
sx: [
|
|
15
|
+
{ border: "1px solid transparent", padding: "6px 10px" },
|
|
16
|
+
r && {
|
|
17
|
+
marginBlockEnd: r,
|
|
18
|
+
"&:last-child": {
|
|
19
|
+
marginBlockEnd: 0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
...Array.isArray(o) ? o : [o]
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
c.displayName = "DescriptionDetails";
|
|
28
|
+
export {
|
|
29
|
+
c as DescriptionDetails
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DescriptionDetails';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export interface DescriptionListProps extends Omit<BoxProps<"dl">, "component"> {
|
|
4
|
+
spacing?: string | number;
|
|
5
|
+
}
|
|
6
|
+
export declare const DescriptionList: ForwardRefExoticComponent<Omit<DescriptionListProps, "ref"> & RefAttributes<HTMLDListElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { DescriptionListContext as p } from "./DescriptionListContext.js";
|
|
4
|
+
import { B as s } from "../../Box-CKDKtm7F.js";
|
|
5
|
+
const n = m(({ spacing: r, children: i, ...t }, e) => /* @__PURE__ */ o(p.Provider, { value: { spacing: r }, children: /* @__PURE__ */ o(s, { component: "dl", ref: e, ...t, children: i }) }));
|
|
6
|
+
n.displayName = "DescriptionList";
|
|
7
|
+
export {
|
|
8
|
+
n as DescriptionList
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
type DescriptionListContextValue = {
|
|
3
|
+
spacing?: string | number;
|
|
4
|
+
};
|
|
5
|
+
export declare const DescriptionListContext: Context<DescriptionListContextValue | null>;
|
|
6
|
+
export declare const useDescriptionListContext: () => DescriptionListContextValue | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TypographyProps } from '../Typography';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
export type DescriptionTermProps = Omit<TypographyProps, "component">;
|
|
4
|
+
export declare const DescriptionTerm: ForwardRefExoticComponent<Omit<DescriptionTermProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { T as p } from "../../Typography-DnNWmNen.js";
|
|
4
|
+
const n = m(
|
|
5
|
+
({ sx: r, ...o }, e) => /* @__PURE__ */ i(
|
|
6
|
+
p,
|
|
7
|
+
{
|
|
8
|
+
component: "dt",
|
|
9
|
+
ref: e,
|
|
10
|
+
...o,
|
|
11
|
+
sx: [
|
|
12
|
+
{
|
|
13
|
+
color: ({ vars: t }) => t?.palette.text.primary,
|
|
14
|
+
fontSize: "0.875rem",
|
|
15
|
+
fontWeight: "500",
|
|
16
|
+
lineHeight: "1.4375em",
|
|
17
|
+
marginBlockEnd: "3px"
|
|
18
|
+
},
|
|
19
|
+
...Array.isArray(r) ? r : [r]
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
n.displayName = "DescriptionTerm";
|
|
25
|
+
export {
|
|
26
|
+
n as DescriptionTerm
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DescriptionTerm';
|
|
@@ -5,8 +5,12 @@ import "../../icons/MoneyBucketIcon.js";
|
|
|
5
5
|
import "../../icons/MoreCircleOutlineIcon.js";
|
|
6
6
|
import "../../theme/index.js";
|
|
7
7
|
import "../../Autocomplete-CfXcTXLL.js";
|
|
8
|
-
import { F as
|
|
8
|
+
import { F as q } from "../../SelectControl-BmDx8v5U.js";
|
|
9
9
|
import "../../Datepicker-CJBEgBsm.js";
|
|
10
|
+
import "../DescriptionDetails/DescriptionDetails.js";
|
|
11
|
+
import "../DescriptionList/DescriptionList.js";
|
|
12
|
+
import "../DescriptionList/DescriptionListContext.js";
|
|
13
|
+
import "../DescriptionTerm/DescriptionTerm.js";
|
|
10
14
|
import "../Input/Input.js";
|
|
11
15
|
import "../Select/Select.js";
|
|
12
16
|
import "react/jsx-runtime";
|
|
@@ -17,5 +21,5 @@ import "../../index-SzwnPTHF.js";
|
|
|
17
21
|
import "../../styled-fvngWWLy.js";
|
|
18
22
|
import "../../FormHelperText-wucHHOG8.js";
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
q as FormSublabel
|
|
21
25
|
};
|
|
@@ -8,8 +8,12 @@ import "../../icons/MoreCircleOutlineIcon.js";
|
|
|
8
8
|
import "../../Info-DtWHV9kz.js";
|
|
9
9
|
import "../../theme/index.js";
|
|
10
10
|
import "../../Autocomplete-CfXcTXLL.js";
|
|
11
|
-
import { I as
|
|
11
|
+
import { I as A } from "../../SelectControl-BmDx8v5U.js";
|
|
12
12
|
import "../../Datepicker-CJBEgBsm.js";
|
|
13
|
+
import "../DescriptionDetails/DescriptionDetails.js";
|
|
14
|
+
import "../DescriptionList/DescriptionList.js";
|
|
15
|
+
import "../DescriptionList/DescriptionListContext.js";
|
|
16
|
+
import "../DescriptionTerm/DescriptionTerm.js";
|
|
13
17
|
import "../Input/Input.js";
|
|
14
18
|
import "../Select/Select.js";
|
|
15
19
|
import "../../theme/internal.js";
|
|
@@ -22,5 +26,5 @@ import "../../FormLabel-CgNd8XLN.js";
|
|
|
22
26
|
import "../../Tooltip-BJmTHiZe.js";
|
|
23
27
|
import "../../FormHelperText-wucHHOG8.js";
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
A as InputControl
|
|
26
30
|
};
|
|
@@ -8,8 +8,12 @@ import "../../icons/MoreCircleOutlineIcon.js";
|
|
|
8
8
|
import "../../Info-DtWHV9kz.js";
|
|
9
9
|
import "../../theme/index.js";
|
|
10
10
|
import "../../Autocomplete-CfXcTXLL.js";
|
|
11
|
-
import { S as
|
|
11
|
+
import { S as A } from "../../SelectControl-BmDx8v5U.js";
|
|
12
12
|
import "../../Datepicker-CJBEgBsm.js";
|
|
13
|
+
import "../DescriptionDetails/DescriptionDetails.js";
|
|
14
|
+
import "../DescriptionList/DescriptionList.js";
|
|
15
|
+
import "../DescriptionList/DescriptionListContext.js";
|
|
16
|
+
import "../DescriptionTerm/DescriptionTerm.js";
|
|
13
17
|
import "../Input/Input.js";
|
|
14
18
|
import "../Select/Select.js";
|
|
15
19
|
import "../../theme/internal.js";
|
|
@@ -22,5 +26,5 @@ import "../../FormLabel-CgNd8XLN.js";
|
|
|
22
26
|
import "../../Tooltip-BJmTHiZe.js";
|
|
23
27
|
import "../../FormHelperText-wucHHOG8.js";
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
A as SelectControl
|
|
26
30
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export * from './components/CircularProgress';
|
|
|
31
31
|
export * from './components/Container';
|
|
32
32
|
export * from './components/CssBaseline';
|
|
33
33
|
export * from './components/Datepicker';
|
|
34
|
+
export * from './components/DescriptionDetails';
|
|
35
|
+
export * from './components/DescriptionList';
|
|
36
|
+
export * from './components/DescriptionTerm';
|
|
34
37
|
export * from './components/DatepickerControl';
|
|
35
38
|
export * from './components/Dialog';
|
|
36
39
|
export * from './components/DialogActions';
|