@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 c, jsx as r } from "react/jsx-runtime";
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 b } from "../FormSublabel/FormSublabel.js";
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 u } from "../../Info-BIwRC_L9.js";
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 $ } from "../../FormLabel-r7XSjt-O.js";
15
- import { T as j } from "../../Tooltip-CslS55e6.js";
16
- import { F as T } from "../../FormHelperText-CmONy7Rj.js";
17
- const v = y(
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: m = !1,
20
- error: a = !1,
21
- fullWidth: p,
19
+ disabled: a = !1,
20
+ error: m = !1,
21
+ fullWidth: l,
22
22
  helperText: i,
23
23
  label: t,
24
- name: f,
25
- required: s = !1,
26
- size: h = "small",
27
- slotProps: e = {},
28
- sublabel: n,
29
- sx: x,
30
- tooltip: l,
31
- ...F
32
- }, I) => {
33
- const k = w("datepicker"), o = f || k, d = i ? `${o}-helper` : void 0;
34
- return /* @__PURE__ */ c(
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
- disabled: m,
38
- error: a,
39
- fullWidth: p,
40
- sx: x,
41
- ...e.root,
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__ */ c(
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__ */ r($, { htmlFor: o, required: s, ...e.label, children: t }),
53
- l && /* @__PURE__ */ r(j, { title: l, arrow: !0, children: /* @__PURE__ */ r(
54
- u,
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: g }) => ({
57
- color: g?.palette.text.secondary,
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
- n && /* @__PURE__ */ r(b, { ...e.sublabel, children: n }),
68
- /* @__PURE__ */ r(
69
+ p && /* @__PURE__ */ e(u, { ...r.sublabel, children: p }),
70
+ /* @__PURE__ */ e(
69
71
  D,
70
72
  {
71
- ref: I,
72
- disabled: m,
73
+ ref: g,
74
+ disabled: a,
73
75
  name: o,
74
- error: a,
75
- size: h,
76
+ error: m,
77
+ size: x,
76
78
  slotProps: {
77
79
  field: {
78
80
  id: o,
79
- "aria-describedby": d,
80
- ...p && { sx: { width: "100%" } }
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
- ...e?.datepicker
87
+ ...r?.datepicker
86
88
  },
87
- ...F
89
+ ...I
88
90
  }
89
91
  ),
90
- i && /* @__PURE__ */ r(T, { id: d, ...e.helperText, children: i })
92
+ i && /* @__PURE__ */ e(v, { id: c, ...r.helperText, children: i })
91
93
  ]
92
94
  }
93
95
  );
94
96
  }
95
97
  );
96
- v.displayName = "DatepickerControl";
98
+ E.displayName = "DatepickerControl";
97
99
  export {
98
- v as DatepickerControl
100
+ E as DatepickerControl
99
101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearstory/drywall-react",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",