@theroutingcompany/components 0.0.117-alpha.6 → 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 +26 -17
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +2 -2
- 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
|
@@ -24861,7 +24861,7 @@ function uB({
|
|
|
24861
24861
|
...l
|
|
24862
24862
|
});
|
|
24863
24863
|
return /* @__PURE__ */ w(kf.Provider, { value: c, children: /* @__PURE__ */ oe(jt, { children: [
|
|
24864
|
-
/* @__PURE__ */ oe(Ye, { ...d, display: "flex", mb: f.spacing_150, children: [
|
|
24864
|
+
/* @__PURE__ */ oe(Ye, { ...d, display: "flex", mb: f.spacing_150, bold: !0, children: [
|
|
24865
24865
|
t,
|
|
24866
24866
|
r ? /* @__PURE__ */ w(ht, { icon: o, children: r }) : null
|
|
24867
24867
|
] }),
|
|
@@ -24876,7 +24876,7 @@ const GO = U((e, t) => {
|
|
|
24876
24876
|
{
|
|
24877
24877
|
paddingSize: "small",
|
|
24878
24878
|
ref: t,
|
|
24879
|
-
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, children: [
|
|
24879
|
+
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, bold: !0, children: [
|
|
24880
24880
|
n,
|
|
24881
24881
|
r ? /* @__PURE__ */ w(ht, { icon: o, children: r }) : null
|
|
24882
24882
|
] }),
|
|
@@ -24891,7 +24891,7 @@ const YO = U((e, t) => {
|
|
|
24891
24891
|
S2,
|
|
24892
24892
|
{
|
|
24893
24893
|
ref: t,
|
|
24894
|
-
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, children: [
|
|
24894
|
+
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, bold: !0, children: [
|
|
24895
24895
|
n,
|
|
24896
24896
|
r ? /* @__PURE__ */ w(ht, { icon: o, children: r }) : null
|
|
24897
24897
|
] }),
|
|
@@ -24906,7 +24906,7 @@ const qO = U((e, t) => {
|
|
|
24906
24906
|
w2,
|
|
24907
24907
|
{
|
|
24908
24908
|
ref: t,
|
|
24909
|
-
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, children: [
|
|
24909
|
+
label: /* @__PURE__ */ oe(Ye, { mb: f.spacing_150, bold: !0, children: [
|
|
24910
24910
|
n,
|
|
24911
24911
|
r ? /* @__PURE__ */ w(ht, { icon: o, children: r }) : null
|
|
24912
24912
|
] }),
|
|
@@ -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";
|