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