@clearstory/drywall-react 5.3.1 → 5.3.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.
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { D } from "../../Datepicker-BbdXCdvk.js";
|
|
4
|
-
import { FormSublabel as
|
|
4
|
+
import { FormSublabel as u } from "../FormSublabel/FormSublabel.js";
|
|
5
5
|
import { useId as w } from "../../hooks/useId.js";
|
|
6
6
|
import "../../icons/ClearstoryIcon.js";
|
|
7
7
|
import "../../icons/InternalOnlyIcon.js";
|
|
8
8
|
import "../../icons/MoneyBucketIcon.js";
|
|
9
9
|
import "../../icons/MoreCircleOutlineIcon.js";
|
|
10
10
|
import "../../icons/SparkleIcon.js";
|
|
11
|
-
import { I as
|
|
11
|
+
import { I as $ } from "../../Info-BIwRC_L9.js";
|
|
12
12
|
import { F as B } from "../../FormControl-DRR12yE7.js";
|
|
13
13
|
import { B as C } from "../../Box-DRIsV4J3.js";
|
|
14
|
-
import { F as
|
|
15
|
-
import { T
|
|
16
|
-
import { F as
|
|
17
|
-
const
|
|
14
|
+
import { F as j } from "../../FormLabel-r7XSjt-O.js";
|
|
15
|
+
import { T } from "../../Tooltip-CslS55e6.js";
|
|
16
|
+
import { F as v } from "../../FormHelperText-CmONy7Rj.js";
|
|
17
|
+
const E = y(
|
|
18
18
|
({
|
|
19
|
-
disabled:
|
|
20
|
-
error:
|
|
21
|
-
fullWidth:
|
|
22
|
-
helperText:
|
|
19
|
+
disabled: a = !1,
|
|
20
|
+
error: m = !1,
|
|
21
|
+
fullWidth: l,
|
|
22
|
+
helperText: i,
|
|
23
23
|
label: t,
|
|
24
|
-
name:
|
|
25
|
-
required:
|
|
26
|
-
size:
|
|
27
|
-
slotProps:
|
|
28
|
-
sublabel:
|
|
29
|
-
sx:
|
|
24
|
+
name: s,
|
|
25
|
+
required: h = !1,
|
|
26
|
+
size: x = "small",
|
|
27
|
+
slotProps: r = {},
|
|
28
|
+
sublabel: p,
|
|
29
|
+
sx: b,
|
|
30
30
|
tooltip: d,
|
|
31
31
|
...I
|
|
32
32
|
}, g) => {
|
|
33
|
-
const k = w("datepicker"),
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
const k = w("datepicker"), o = s || k, n = r.label?.id ?? `${o}-label`, c = i ? `${o}-helper` : void 0;
|
|
34
|
+
return /* @__PURE__ */ f(
|
|
35
35
|
B,
|
|
36
36
|
{
|
|
37
|
-
|
|
38
|
-
disabled:
|
|
39
|
-
error:
|
|
40
|
-
fullWidth:
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
"aria-labelledby": n,
|
|
38
|
+
disabled: a,
|
|
39
|
+
error: m,
|
|
40
|
+
fullWidth: l,
|
|
41
|
+
role: "group",
|
|
42
|
+
sx: b,
|
|
43
|
+
...r.root,
|
|
43
44
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ f(
|
|
45
46
|
C,
|
|
46
47
|
{
|
|
47
48
|
sx: {
|
|
@@ -50,17 +51,9 @@ const v = y(
|
|
|
50
51
|
gap: "0.25rem"
|
|
51
52
|
},
|
|
52
53
|
children: [
|
|
53
|
-
/* @__PURE__ */ r
|
|
54
|
+
/* @__PURE__ */ e(j, { id: n, required: h, ...r.label, children: t }),
|
|
55
|
+
d && /* @__PURE__ */ e(T, { title: d, arrow: !0, children: /* @__PURE__ */ e(
|
|
54
56
|
$,
|
|
55
|
-
{
|
|
56
|
-
component: "legend",
|
|
57
|
-
required: s,
|
|
58
|
-
...e.label,
|
|
59
|
-
children: t
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
d && /* @__PURE__ */ r(j, { title: d, arrow: !0, children: /* @__PURE__ */ r(
|
|
63
|
-
u,
|
|
64
57
|
{
|
|
65
58
|
sx: ({ vars: F }) => ({
|
|
66
59
|
color: F?.palette.text.secondary,
|
|
@@ -73,36 +66,36 @@ const v = y(
|
|
|
73
66
|
]
|
|
74
67
|
}
|
|
75
68
|
),
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */
|
|
69
|
+
p && /* @__PURE__ */ e(u, { ...r.sublabel, children: p }),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
78
71
|
D,
|
|
79
72
|
{
|
|
80
73
|
ref: g,
|
|
81
|
-
disabled:
|
|
82
|
-
name:
|
|
83
|
-
error:
|
|
84
|
-
size:
|
|
74
|
+
disabled: a,
|
|
75
|
+
name: o,
|
|
76
|
+
error: m,
|
|
77
|
+
size: x,
|
|
85
78
|
slotProps: {
|
|
86
79
|
field: {
|
|
87
|
-
id:
|
|
88
|
-
"aria-describedby":
|
|
89
|
-
...
|
|
80
|
+
id: o,
|
|
81
|
+
"aria-describedby": c,
|
|
82
|
+
...l && { sx: { width: "100%" } }
|
|
90
83
|
},
|
|
91
84
|
popper: {
|
|
92
85
|
"aria-label": `Date picker${typeof t == "string" && ` for ${t}`}`
|
|
93
86
|
},
|
|
94
|
-
...
|
|
87
|
+
...r?.datepicker
|
|
95
88
|
},
|
|
96
89
|
...I
|
|
97
90
|
}
|
|
98
91
|
),
|
|
99
|
-
|
|
92
|
+
i && /* @__PURE__ */ e(v, { id: c, ...r.helperText, children: i })
|
|
100
93
|
]
|
|
101
94
|
}
|
|
102
95
|
);
|
|
103
96
|
}
|
|
104
97
|
);
|
|
105
|
-
|
|
98
|
+
E.displayName = "DatepickerControl";
|
|
106
99
|
export {
|
|
107
|
-
|
|
100
|
+
E as DatepickerControl
|
|
108
101
|
};
|