@theroutingcompany/components 0.0.117-alpha.7 → 0.0.117-alpha.8
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/trc-components.es.js +22 -13
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +1 -1
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/SingleSelect/SingleSelect.d.ts +1 -0
|
@@ -25962,19 +25962,20 @@ const kh = M.span`
|
|
|
25962
25962
|
showCaret: o = !0,
|
|
25963
25963
|
isInvalid: a,
|
|
25964
25964
|
children: i = bM,
|
|
25965
|
-
displayValue: l = "rendered"
|
|
25966
|
-
|
|
25965
|
+
displayValue: l = "rendered",
|
|
25966
|
+
isPopoverTargetWidth: s = !0
|
|
25967
|
+
} = e, c = gM({
|
|
25967
25968
|
...e,
|
|
25968
25969
|
children: i
|
|
25969
|
-
}),
|
|
25970
|
+
}), d = X.useRef(null), { labelProps: u, triggerProps: p, valueProps: g, menuProps: h, errorMessageProps: b } = uM(e, c, d), { buttonProps: m } = ho(p, d);
|
|
25970
25971
|
return /* @__PURE__ */ oe(jt, { children: [
|
|
25971
25972
|
e.label ? /* @__PURE__ */ oe(
|
|
25972
25973
|
Ye,
|
|
25973
25974
|
{
|
|
25974
|
-
...
|
|
25975
|
+
...u,
|
|
25975
25976
|
srOnly: n,
|
|
25976
25977
|
mb: f.spacing_150,
|
|
25977
|
-
onClick: () =>
|
|
25978
|
+
onClick: () => c.open(),
|
|
25978
25979
|
bold: t,
|
|
25979
25980
|
children: [
|
|
25980
25981
|
e.label,
|
|
@@ -25985,8 +25986,8 @@ const kh = M.span`
|
|
|
25985
25986
|
/* @__PURE__ */ w(
|
|
25986
25987
|
pM,
|
|
25987
25988
|
{
|
|
25988
|
-
state:
|
|
25989
|
-
triggerRef:
|
|
25989
|
+
state: c,
|
|
25990
|
+
triggerRef: d,
|
|
25990
25991
|
label: e.label,
|
|
25991
25992
|
name: e.name
|
|
25992
25993
|
}
|
|
@@ -25994,12 +25995,12 @@ const kh = M.span`
|
|
|
25994
25995
|
/* @__PURE__ */ oe(
|
|
25995
25996
|
A2,
|
|
25996
25997
|
{
|
|
25997
|
-
...
|
|
25998
|
-
ref:
|
|
25999
|
-
isOpen:
|
|
25998
|
+
...m,
|
|
25999
|
+
ref: d,
|
|
26000
|
+
isOpen: c.isOpen,
|
|
26000
26001
|
"data-state": a ? "invalid" : void 0,
|
|
26001
26002
|
children: [
|
|
26002
|
-
/* @__PURE__ */ w(hM, { ...
|
|
26003
|
+
/* @__PURE__ */ w(hM, { ...g, children: c.selectedItem ? l === "textValue" ? /* @__PURE__ */ w(kh, { children: c.selectedItem.textValue }) : /* @__PURE__ */ w(kh, { children: c.selectedItem.rendered }) : /* @__PURE__ */ w(R2, { children: r }) }),
|
|
26003
26004
|
o ? /* @__PURE__ */ w(
|
|
26004
26005
|
wf,
|
|
26005
26006
|
{
|
|
@@ -26010,8 +26011,16 @@ const kh = M.span`
|
|
|
26010
26011
|
]
|
|
26011
26012
|
}
|
|
26012
26013
|
),
|
|
26013
|
-
e.errorMessage ? /* @__PURE__ */ w(Ut, { ...
|
|
26014
|
-
|
|
26014
|
+
e.errorMessage ? /* @__PURE__ */ w(Ut, { ...b, children: e.errorMessage }) : null,
|
|
26015
|
+
c.isOpen ? /* @__PURE__ */ w(
|
|
26016
|
+
vo,
|
|
26017
|
+
{
|
|
26018
|
+
state: c,
|
|
26019
|
+
targetRef: d,
|
|
26020
|
+
isTargetWidth: s,
|
|
26021
|
+
children: /* @__PURE__ */ w(K_, { ...h, state: c })
|
|
26022
|
+
}
|
|
26023
|
+
) : null
|
|
26015
26024
|
] });
|
|
26016
26025
|
};
|
|
26017
26026
|
mM.displayName = "SingleSelect";
|