@clearstory/drywall-react 5.3.0 → 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,46 +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:
|
|
19
|
+
disabled: a = !1,
|
|
20
|
+
error: m = !1,
|
|
21
|
+
fullWidth: l,
|
|
22
22
|
helperText: i,
|
|
23
23
|
label: t,
|
|
24
|
-
name:
|
|
25
|
-
required:
|
|
26
|
-
size:
|
|
27
|
-
slotProps:
|
|
28
|
-
sublabel:
|
|
29
|
-
sx:
|
|
30
|
-
tooltip:
|
|
31
|
-
...
|
|
32
|
-
},
|
|
33
|
-
const k = w("datepicker"), o =
|
|
34
|
-
return /* @__PURE__ */
|
|
24
|
+
name: s,
|
|
25
|
+
required: h = !1,
|
|
26
|
+
size: x = "small",
|
|
27
|
+
slotProps: r = {},
|
|
28
|
+
sublabel: p,
|
|
29
|
+
sx: b,
|
|
30
|
+
tooltip: d,
|
|
31
|
+
...I
|
|
32
|
+
}, g) => {
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
"aria-labelledby": n,
|
|
38
|
+
disabled: a,
|
|
39
|
+
error: m,
|
|
40
|
+
fullWidth: l,
|
|
41
|
+
role: "group",
|
|
42
|
+
sx: b,
|
|
43
|
+
...r.root,
|
|
42
44
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ f(
|
|
44
46
|
C,
|
|
45
47
|
{
|
|
46
48
|
sx: {
|
|
@@ -49,12 +51,12 @@ const v = y(
|
|
|
49
51
|
gap: "0.25rem"
|
|
50
52
|
},
|
|
51
53
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
/* @__PURE__ */ e(j, { id: n, required: h, ...r.label, children: t }),
|
|
55
|
+
d && /* @__PURE__ */ e(T, { title: d, arrow: !0, children: /* @__PURE__ */ e(
|
|
56
|
+
$,
|
|
55
57
|
{
|
|
56
|
-
sx: ({ vars:
|
|
57
|
-
color:
|
|
58
|
+
sx: ({ vars: F }) => ({
|
|
59
|
+
color: F?.palette.text.secondary,
|
|
58
60
|
marginBlockEnd: "3px",
|
|
59
61
|
height: "1rem",
|
|
60
62
|
width: "1rem"
|
|
@@ -64,36 +66,36 @@ const v = y(
|
|
|
64
66
|
]
|
|
65
67
|
}
|
|
66
68
|
),
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
+
p && /* @__PURE__ */ e(u, { ...r.sublabel, children: p }),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
69
71
|
D,
|
|
70
72
|
{
|
|
71
|
-
ref:
|
|
72
|
-
disabled:
|
|
73
|
+
ref: g,
|
|
74
|
+
disabled: a,
|
|
73
75
|
name: o,
|
|
74
|
-
error:
|
|
75
|
-
size:
|
|
76
|
+
error: m,
|
|
77
|
+
size: x,
|
|
76
78
|
slotProps: {
|
|
77
79
|
field: {
|
|
78
80
|
id: o,
|
|
79
|
-
"aria-describedby":
|
|
80
|
-
...
|
|
81
|
+
"aria-describedby": c,
|
|
82
|
+
...l && { sx: { width: "100%" } }
|
|
81
83
|
},
|
|
82
84
|
popper: {
|
|
83
85
|
"aria-label": `Date picker${typeof t == "string" && ` for ${t}`}`
|
|
84
86
|
},
|
|
85
|
-
...
|
|
87
|
+
...r?.datepicker
|
|
86
88
|
},
|
|
87
|
-
...
|
|
89
|
+
...I
|
|
88
90
|
}
|
|
89
91
|
),
|
|
90
|
-
i && /* @__PURE__ */
|
|
92
|
+
i && /* @__PURE__ */ e(v, { id: c, ...r.helperText, children: i })
|
|
91
93
|
]
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
96
|
}
|
|
95
97
|
);
|
|
96
|
-
|
|
98
|
+
E.displayName = "DatepickerControl";
|
|
97
99
|
export {
|
|
98
|
-
|
|
100
|
+
E as DatepickerControl
|
|
99
101
|
};
|