@clearstory/drywall-react 5.1.0 → 5.1.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/{AdapterDayjs-DxEdpe9o.js → AdapterDayjs-BKhf_aHy.js} +1 -1
- package/dist/{Datepicker-BQ9gxoUL.js → Datepicker-ixcQBj5A.js} +724 -712
- package/dist/components/Datepicker/Datepicker.d.ts +1 -0
- package/dist/components/Datepicker/Datepicker.js +1 -1
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.d.ts +1 -0
- package/dist/components/DatepickerControl/DatepickerControl.js +37 -35
- package/dist/main.js +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export interface DatepickerProps extends DatePickerProps {
|
|
|
4
4
|
clearable?: boolean;
|
|
5
5
|
error?: boolean;
|
|
6
6
|
color?: "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
7
|
+
size?: "small" | "medium";
|
|
7
8
|
}
|
|
8
9
|
export declare const Datepicker: ForwardRefExoticComponent<DatepickerProps & RefAttributes<HTMLDivElement>>;
|
|
9
10
|
export default Datepicker;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { D, D as f } from "../../Datepicker-
|
|
3
|
+
import { D, D as f } from "../../Datepicker-ixcQBj5A.js";
|
|
4
4
|
import "../../generateUtilityClass-BhfUaMgk.js";
|
|
5
5
|
import "../../styled-BKpRY52y.js";
|
|
6
6
|
import "../../useForkRef-9kN4DArm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, a as r, b as i, D as t, L as l, M as o, P as d, e as C, d as c, f as D, D as k, g as n, j as p, i as P, p as y, h as f } from "../../Datepicker-
|
|
2
|
-
import { A as b } from "../../AdapterDayjs-
|
|
1
|
+
import { c as e, a as r, b as i, D as t, L as l, M as o, P as d, e as C, d as c, f as D, D as k, g as n, j as p, i as P, p as y, h as f } from "../../Datepicker-ixcQBj5A.js";
|
|
2
|
+
import { A as b } from "../../AdapterDayjs-BKhf_aHy.js";
|
|
3
3
|
export {
|
|
4
4
|
b as AdapterDayjs,
|
|
5
5
|
e as DateCalendar,
|
|
@@ -11,6 +11,7 @@ export interface DatepickerControlProps extends Omit<DatepickerProps, "ref" | "s
|
|
|
11
11
|
label: ReactNode;
|
|
12
12
|
name?: string;
|
|
13
13
|
required?: boolean;
|
|
14
|
+
size?: "small" | "medium";
|
|
14
15
|
slotProps?: {
|
|
15
16
|
datepicker?: DatepickerProps["slotProps"];
|
|
16
17
|
helperText?: Partial<Omit<FormHelperTextProps, "children" | DOMEventHandlers>>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { D
|
|
4
|
-
import { FormSublabel as
|
|
5
|
-
import { useId as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { D } from "../../Datepicker-ixcQBj5A.js";
|
|
4
|
+
import { FormSublabel as b } from "../FormSublabel/FormSublabel.js";
|
|
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
|
-
import { I as
|
|
11
|
-
import { F as
|
|
12
|
-
import { B } from "../../Box-DRIsV4J3.js";
|
|
13
|
-
import { F as
|
|
14
|
-
import { T as
|
|
15
|
-
import { F as
|
|
16
|
-
const
|
|
10
|
+
import { I as u } from "../../Info-BIwRC_L9.js";
|
|
11
|
+
import { F as B } from "../../FormControl-DRR12yE7.js";
|
|
12
|
+
import { B as C } from "../../Box-DRIsV4J3.js";
|
|
13
|
+
import { F as $ } from "../../FormLabel-r7XSjt-O.js";
|
|
14
|
+
import { T as j } from "../../Tooltip-CslS55e6.js";
|
|
15
|
+
import { F as T } from "../../FormHelperText-CmONy7Rj.js";
|
|
16
|
+
const v = y(
|
|
17
17
|
({
|
|
18
18
|
disabled: m = !1,
|
|
19
19
|
error: a = !1,
|
|
@@ -22,24 +22,25 @@ const T = g(
|
|
|
22
22
|
label: t,
|
|
23
23
|
name: f,
|
|
24
24
|
required: s = !1,
|
|
25
|
+
size: h = "small",
|
|
25
26
|
slotProps: e = {},
|
|
26
27
|
sublabel: n,
|
|
27
|
-
sx:
|
|
28
|
-
tooltip:
|
|
29
|
-
...
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
28
|
+
sx: x,
|
|
29
|
+
tooltip: l,
|
|
30
|
+
...F
|
|
31
|
+
}, I) => {
|
|
32
|
+
const k = w("datepicker"), o = f || k, d = i ? `${o}-helper` : void 0;
|
|
33
|
+
return /* @__PURE__ */ c(
|
|
34
|
+
B,
|
|
34
35
|
{
|
|
35
36
|
disabled: m,
|
|
36
37
|
error: a,
|
|
37
38
|
fullWidth: p,
|
|
38
|
-
sx:
|
|
39
|
+
sx: x,
|
|
39
40
|
...e.root,
|
|
40
41
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
42
|
+
/* @__PURE__ */ c(
|
|
43
|
+
C,
|
|
43
44
|
{
|
|
44
45
|
sx: {
|
|
45
46
|
alignItems: "center",
|
|
@@ -47,12 +48,12 @@ const T = g(
|
|
|
47
48
|
gap: "0.25rem"
|
|
48
49
|
},
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */ r(
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
/* @__PURE__ */ r($, { htmlFor: o, required: s, ...e.label, children: t }),
|
|
52
|
+
l && /* @__PURE__ */ r(j, { title: l, arrow: !0, children: /* @__PURE__ */ r(
|
|
53
|
+
u,
|
|
53
54
|
{
|
|
54
|
-
sx: ({ vars:
|
|
55
|
-
color:
|
|
55
|
+
sx: ({ vars: g }) => ({
|
|
56
|
+
color: g?.palette.text.secondary,
|
|
56
57
|
marginBlockEnd: "3px",
|
|
57
58
|
height: "1rem",
|
|
58
59
|
width: "1rem"
|
|
@@ -62,18 +63,19 @@ const T = g(
|
|
|
62
63
|
]
|
|
63
64
|
}
|
|
64
65
|
),
|
|
65
|
-
n && /* @__PURE__ */ r(
|
|
66
|
+
n && /* @__PURE__ */ r(b, { ...e.sublabel, children: n }),
|
|
66
67
|
/* @__PURE__ */ r(
|
|
67
|
-
|
|
68
|
+
D,
|
|
68
69
|
{
|
|
69
|
-
ref:
|
|
70
|
+
ref: I,
|
|
70
71
|
disabled: m,
|
|
71
72
|
name: o,
|
|
72
73
|
error: a,
|
|
74
|
+
size: h,
|
|
73
75
|
slotProps: {
|
|
74
76
|
field: {
|
|
75
77
|
id: o,
|
|
76
|
-
"aria-describedby":
|
|
78
|
+
"aria-describedby": d,
|
|
77
79
|
...p && { sx: { width: "100%" } }
|
|
78
80
|
},
|
|
79
81
|
popper: {
|
|
@@ -81,16 +83,16 @@ const T = g(
|
|
|
81
83
|
},
|
|
82
84
|
...e?.datepicker
|
|
83
85
|
},
|
|
84
|
-
...
|
|
86
|
+
...F
|
|
85
87
|
}
|
|
86
88
|
),
|
|
87
|
-
i && /* @__PURE__ */ r(
|
|
89
|
+
i && /* @__PURE__ */ r(T, { id: d, ...e.helperText, children: i })
|
|
88
90
|
]
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
93
|
}
|
|
92
94
|
);
|
|
93
|
-
|
|
95
|
+
v.displayName = "DatepickerControl";
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
v as DatepickerControl
|
|
96
98
|
};
|
package/dist/main.js
CHANGED
|
@@ -11,7 +11,7 @@ import { I as ha } from "./Info-BIwRC_L9.js";
|
|
|
11
11
|
import { StyledEngineProvider as Pa } from "./theme/index.js";
|
|
12
12
|
import { A as Fa, a as va, c as Oa, g as Ma } from "./Autocomplete-BG3jpE2X.js";
|
|
13
13
|
import { AutocompleteControl as Ga } from "./components/AutocompleteControl/AutocompleteControl.js";
|
|
14
|
-
import { c as Ea, a as Na, b as Va, D as Ka, L as za, M as Wa, P as Za, e as ja, d as Qa, f as qa, g as Ja, j as Xa, i as Ya, p as _a, h as $a } from "./Datepicker-
|
|
14
|
+
import { c as Ea, a as Na, b as Va, D as Ka, L as za, M as Wa, P as Za, e as ja, d as Qa, f as qa, g as Ja, j as Xa, i as Ya, p as _a, h as $a } from "./Datepicker-ixcQBj5A.js";
|
|
15
15
|
import { DescriptionDetails as at } from "./components/DescriptionDetails/DescriptionDetails.js";
|
|
16
16
|
import { DescriptionList as ot } from "./components/DescriptionList/DescriptionList.js";
|
|
17
17
|
import { useDescriptionListContext as rt } from "./components/DescriptionList/DescriptionListContext.js";
|
|
@@ -137,7 +137,7 @@ import { Z as RC } from "./Zoom-Ia0xnNsL.js";
|
|
|
137
137
|
import { a as HC, d as EC, e as NC, g as VC, b as KC, l as zC } from "./createTheme-Cr8frjQ0.js";
|
|
138
138
|
import { u as ZC } from "./ThemeProviderWithVars-hLmfDgWo.js";
|
|
139
139
|
import { C as QC } from "./ClickAwayListener-DwFm5IeK.js";
|
|
140
|
-
import { A as JC } from "./AdapterDayjs-
|
|
140
|
+
import { A as JC } from "./AdapterDayjs-BKhf_aHy.js";
|
|
141
141
|
export {
|
|
142
142
|
g as AccessTimeIcon,
|
|
143
143
|
Zt as Accordion,
|