@solibo/solibo-ui 2.2.13 → 2.2.14
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/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -1
- package/dist/assets/index52.css +1 -1
- package/dist/assets/index53.css +1 -1
- package/dist/assets/index54.css +1 -1
- package/dist/assets/index55.css +1 -1
- package/dist/assets/index56.css +1 -1
- package/dist/assets/index57.css +1 -1
- package/dist/assets/index58.css +1 -1
- package/dist/assets/index59.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index60.css +1 -0
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +9 -9
- package/dist/components/app-shell/index.cjs +1 -1
- package/dist/components/app-shell/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.js +38 -39
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/index.cjs +1 -1
- package/dist/components/card/index.js +49 -49
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +23 -17
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/clipboard/index.cjs +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/collapsible/index.cjs +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/comment/index.cjs +1 -1
- package/dist/components/comment/index.js +1 -1
- package/dist/components/comments/index.cjs +1 -1
- package/dist/components/comments/index.js +2 -2
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.js +1 -1
- package/dist/components/croppable/index.cjs +1 -1
- package/dist/components/croppable/index.js +152 -152
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/divider/index.cjs +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +3 -3
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +1 -1
- package/dist/components/editor/index.cjs +1 -1
- package/dist/components/editor/index.js +237 -234
- package/dist/components/empty-state/index.cjs +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/fieldset/index.cjs +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.js +1 -1
- package/dist/components/footer/index.cjs +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +21 -12
- package/dist/components/graph/index.cjs +1 -1
- package/dist/components/graph/index.js +1 -1
- package/dist/components/group/index.cjs +1 -1
- package/dist/components/group/index.js +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/iframe/index.cjs +1 -1
- package/dist/components/iframe/index.js +2 -2
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +4 -2
- package/dist/components/label/index.cjs +1 -0
- package/dist/components/label/index.js +18 -0
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +2 -2
- package/dist/components/messages/index.cjs +1 -1
- package/dist/components/messages/index.js +2 -2
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +1 -1
- package/dist/components/object/index.cjs +1 -1
- package/dist/components/object/index.js +1 -1
- package/dist/components/page-layout/index.cjs +1 -1
- package/dist/components/page-layout/index.js +1 -1
- package/dist/components/panel/index.cjs +1 -1
- package/dist/components/panel/index.js +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/portal/index.cjs +1 -1
- package/dist/components/portal/index.js +1 -1
- package/dist/components/radio/index.cjs +1 -0
- package/dist/components/radio/index.js +35 -0
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +2 -2
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +3 -2
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +30 -29
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +16 -16
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +8 -9
- package/dist/components/tooltip/index.cjs +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/{index-DqZSdMHT.cjs → index-B4dFheLl.cjs} +1 -1
- package/dist/{index-KGoXYG8u.js → index-BJiUk1q2.js} +2 -2
- package/dist/index-BQoXmNo3.cjs +1 -0
- package/dist/index-Bre56YYa.js +90 -0
- package/dist/{index-Bl5EEYDv.cjs → index-BwfsmdF6.cjs} +1 -1
- package/dist/index-CHJNMNDr.cjs +1 -0
- package/dist/index-GPsHvb4d.js +74 -0
- package/dist/{index-DQuc_Zkg.js → index-acMNM3VJ.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +30 -7
- package/dist/index.js +74 -70
- package/dist/tokens.css +79 -38
- package/dist/tokens.json +627 -257
- package/package.json +1 -1
- package/dist/index-FSKjg3Z8.js +0 -82
- package/dist/index-HVXauXrX.js +0 -73
- package/dist/index-S1XsOUKE.cjs +0 -1
- package/dist/index-riaH5c_S.cjs +0 -1
package/package.json
CHANGED
package/dist/index-FSKjg3Z8.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { jsxs as g, Fragment as k, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import m from "classix";
|
|
3
|
-
import { useId as A, useState as T, useEffect as V } from "react";
|
|
4
|
-
import { i as D } from "./icons-DVeBguFb.js";
|
|
5
|
-
import { u as J, c as K } from "./use-touched-B999bBr8.js";
|
|
6
|
-
import './assets/index52.css';function O(n) {
|
|
7
|
-
return n && `${n[0].toLocaleUpperCase()}${n.slice(1)}`;
|
|
8
|
-
}
|
|
9
|
-
function Q(n) {
|
|
10
|
-
const o = O(n);
|
|
11
|
-
return o && !o.endsWith(":") ? `${o}:` : o;
|
|
12
|
-
}
|
|
13
|
-
const R = "_field_w1cmd_3", X = "_input_w1cmd_8", Y = "_touched_w1cmd_48", Z = "_label_w1cmd_57", q = "_inline_w1cmd_78", M = "_error_w1cmd_99", ee = "_code_w1cmd_106", e = {
|
|
14
|
-
field: R,
|
|
15
|
-
input: X,
|
|
16
|
-
touched: Y,
|
|
17
|
-
label: Z,
|
|
18
|
-
inline: q,
|
|
19
|
-
error: M,
|
|
20
|
-
code: ee
|
|
21
|
-
};
|
|
22
|
-
function ae({
|
|
23
|
-
className: n,
|
|
24
|
-
defaultCountryCode: o = "+47",
|
|
25
|
-
disabled: c = !1,
|
|
26
|
-
errorMessage: w,
|
|
27
|
-
icon: x,
|
|
28
|
-
invalid: h = !1,
|
|
29
|
-
label: p,
|
|
30
|
-
onBlur: y,
|
|
31
|
-
placeholder: I,
|
|
32
|
-
ref: B,
|
|
33
|
-
required: _,
|
|
34
|
-
style: N,
|
|
35
|
-
type: t = "text",
|
|
36
|
-
variant: f = "default",
|
|
37
|
-
...a
|
|
38
|
-
}) {
|
|
39
|
-
const z = A(), [v, L] = T(""), [l, j] = T(""), {
|
|
40
|
-
name: C,
|
|
41
|
-
onChange: s,
|
|
42
|
-
pattern: G,
|
|
43
|
-
value: d,
|
|
44
|
-
...H
|
|
45
|
-
} = a, {
|
|
46
|
-
touched: E,
|
|
47
|
-
onBlur: U
|
|
48
|
-
} = J(d === ""), u = x && t !== "radio" && t !== "datetime-local" ? x : void 0, $ = p && f === "inline" ? Q(p) : p, b = h && w ? z : void 0, F = [a["aria-describedby"], b].filter(Boolean).join(" ") || void 0, P = u ? {
|
|
49
|
-
...N,
|
|
50
|
-
"--icon-svg": D(u)
|
|
51
|
-
} : N, S = K(U, y);
|
|
52
|
-
V(() => {
|
|
53
|
-
if (s && t === "tel") {
|
|
54
|
-
const i = {
|
|
55
|
-
name: C,
|
|
56
|
-
value: l ? (v || o).split(" ").join("") + l.split(" ").join("") : void 0
|
|
57
|
-
};
|
|
58
|
-
s({
|
|
59
|
-
target: i,
|
|
60
|
-
currentTarget: i
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}, [v, o, C, s, l, t]), V(() => {
|
|
64
|
-
t === "tel" && !d && (j(""), L(""));
|
|
65
|
-
}, [t, d]);
|
|
66
|
-
const W = /* @__PURE__ */ g(k, { children: [
|
|
67
|
-
/* @__PURE__ */ r("input", { disabled: c, hidden: !0, onChange: s, pattern: void 0, placeholder: I, ref: B, type: t, value: d }),
|
|
68
|
-
/* @__PURE__ */ r("input", { type: "text", className: m(e.code, e.input), disabled: c, maxLength: 5, onChange: (i) => L(i.target.value), placeholder: o, value: v }),
|
|
69
|
-
/* @__PURE__ */ r("input", { ...H, "aria-describedby": F, "aria-invalid": h ? !0 : a["aria-invalid"], type: "tel", className: m(e.input, n, E && e.touched), "data-icon": u ? "true" : void 0, disabled: c, maxLength: 14, name: void 0, onChange: (i) => j(i.target.value), onBlur: S, pattern: G, required: _, style: P, value: l })
|
|
70
|
-
] });
|
|
71
|
-
return /* @__PURE__ */ g("div", { className: e.field, "data-component": "input", children: [
|
|
72
|
-
/* @__PURE__ */ g("label", { className: m(e.label, f === "inline" && e.inline), children: [
|
|
73
|
-
$ && /* @__PURE__ */ r("span", { "data-required": _ && f !== "inline" ? !0 : void 0, children: $ }),
|
|
74
|
-
t === "tel" ? W : /* @__PURE__ */ r("input", { ...a, "aria-describedby": F, "aria-invalid": h ? !0 : a["aria-invalid"], ref: B, className: m(e.input, n, E && e.touched), "data-icon": u ? "true" : void 0, disabled: c, onBlur: S, placeholder: I, required: _, style: P, type: t })
|
|
75
|
-
] }),
|
|
76
|
-
b && /* @__PURE__ */ r("span", { className: e.error, id: b, role: "alert", children: w })
|
|
77
|
-
] });
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
ae as I,
|
|
81
|
-
Q as f
|
|
82
|
-
};
|
package/dist/index-HVXauXrX.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import v from "classix";
|
|
3
|
-
import { i as w } from "./icons-DVeBguFb.js";
|
|
4
|
-
import { u as C, c as S } from "./use-touched-B999bBr8.js";
|
|
5
|
-
import './assets/index57.css';const P = /* @__PURE__ */ new Set(["aria-activedescendant", "aria-autocomplete", "aria-busy", "aria-controls", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-live", "aria-owns", "aria-required", "aria-roledescription", "autoComplete", "autoFocus", "className", "defaultValue", "dir", "disabled", "form", "id", "multiple", "name", "onBlur", "onChange", "onClick", "onFocus", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", "required", "role", "size", "style", "tabIndex", "title", "value"]);
|
|
6
|
-
function _(n) {
|
|
7
|
-
return Object.fromEntries(Object.entries(n).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-") || P.has(e)));
|
|
8
|
-
}
|
|
9
|
-
const V = /^--[\w-]+$/, g = /^var\(\s*(--[\w-]+)\s*(?:,\s*(.+))?\)$/, x = /* @__PURE__ */ new Set(["currentcolor", "inherit", "initial", "revert", "revert-layer", "unset"]), l = typeof document < "u" ? document.createElement("span") : null;
|
|
10
|
-
function b(n) {
|
|
11
|
-
const e = n.trim();
|
|
12
|
-
if (!e || !l || x.has(e.toLowerCase()))
|
|
13
|
-
return e;
|
|
14
|
-
const a = document.body ?? document.documentElement;
|
|
15
|
-
if (!a || (l.style.color = e, !l.style.color))
|
|
16
|
-
return e;
|
|
17
|
-
a.appendChild(l);
|
|
18
|
-
const o = getComputedStyle(l).color.trim();
|
|
19
|
-
return l.remove(), o || e;
|
|
20
|
-
}
|
|
21
|
-
function E(n, e = "currentColor") {
|
|
22
|
-
var i;
|
|
23
|
-
if (typeof document > "u")
|
|
24
|
-
return e;
|
|
25
|
-
const a = getComputedStyle(document.documentElement), o = /* @__PURE__ */ new Set();
|
|
26
|
-
let t = n.trim();
|
|
27
|
-
for (; t; ) {
|
|
28
|
-
const r = t.match(g), s = (r == null ? void 0 : r[1]) ?? (V.test(t) ? t : null), c = (i = r == null ? void 0 : r[2]) == null ? void 0 : i.trim();
|
|
29
|
-
if (!s)
|
|
30
|
-
return b(t);
|
|
31
|
-
if (o.has(s)) {
|
|
32
|
-
t = c ?? "";
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
o.add(s), t = a.getPropertyValue(s).trim() || c || "";
|
|
36
|
-
}
|
|
37
|
-
return b(e);
|
|
38
|
-
}
|
|
39
|
-
const N = "_select_1bm47_3", B = "_touched_1bm47_24", j = "_label_1bm47_29", u = {
|
|
40
|
-
select: N,
|
|
41
|
-
touched: B,
|
|
42
|
-
label: j
|
|
43
|
-
}, F = ({
|
|
44
|
-
children: n,
|
|
45
|
-
label: e,
|
|
46
|
-
placeholder: a,
|
|
47
|
-
...o
|
|
48
|
-
}) => {
|
|
49
|
-
const {
|
|
50
|
-
touched: t,
|
|
51
|
-
onBlur: i
|
|
52
|
-
} = C(o.value === ""), r = _(o), {
|
|
53
|
-
className: s,
|
|
54
|
-
onBlur: c,
|
|
55
|
-
style: f,
|
|
56
|
-
...h
|
|
57
|
-
} = r, y = {
|
|
58
|
-
...f,
|
|
59
|
-
"--icon-svg": w("CaretDown", E("--colors-semantic-content-secondary"))
|
|
60
|
-
}, d = /* @__PURE__ */ m("select", { className: v(u.select, s, t && u.touched), onBlur: S(i, c), style: y, ...h, "data-component": "select", children: [
|
|
61
|
-
a && /* @__PURE__ */ p("option", { value: "", hidden: !0, children: a }, "placeholder"),
|
|
62
|
-
n
|
|
63
|
-
] });
|
|
64
|
-
return e ? /* @__PURE__ */ m("label", { "data-component": "select", children: [
|
|
65
|
-
/* @__PURE__ */ p("span", { className: u.label, "data-required": o.required || void 0, children: e }),
|
|
66
|
-
d
|
|
67
|
-
] }) : d;
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
F as S,
|
|
71
|
-
E as r,
|
|
72
|
-
_ as s
|
|
73
|
-
};
|
package/dist/index-S1XsOUKE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/index52.css');const e=require("react/jsx-runtime"),m=require("classix"),r=require("react"),U=require("./icons-BIdcCH-v.cjs"),F=require("./use-touched-Bq5Gjbpz.cjs");function W(t){return t&&`${t[0].toLocaleUpperCase()}${t.slice(1)}`}function P(t){const o=W(t);return o&&!o.endsWith(":")?`${o}:`:o}const k="_field_w1cmd_3",A="_input_w1cmd_8",D="_touched_w1cmd_48",J="_label_w1cmd_57",K="_inline_w1cmd_78",O="_error_w1cmd_99",Q="_code_w1cmd_106",n={field:k,input:A,touched:D,label:J,inline:K,error:O,code:Q};function X({className:t,defaultCountryCode:o="+47",disabled:a=!1,errorMessage:j,icon:g,invalid:_=!1,label:f,onBlur:R,placeholder:I,ref:w,required:p,style:B,type:i="text",variant:v="default",...s}){const V=r.useId(),[x,L]=r.useState(""),[l,N]=r.useState(""),{name:q,onChange:u,pattern:y,value:d,...z}=s,{touched:E,onBlur:G}=F.useTouched(d===""),h=g&&i!=="radio"&&i!=="datetime-local"?g:void 0,C=f&&v==="inline"?P(f):f,b=_&&j?V:void 0,S=[s["aria-describedby"],b].filter(Boolean).join(" ")||void 0,T=h?{...B,"--icon-svg":U.iconSVG(h)}:B,$=F.composeEventHandlers(G,R);r.useEffect(()=>{if(u&&i==="tel"){const c={name:q,value:l?(x||o).split(" ").join("")+l.split(" ").join(""):void 0};u({target:c,currentTarget:c})}},[x,o,q,u,l,i]),r.useEffect(()=>{i==="tel"&&!d&&(N(""),L(""))},[i,d]);const H=e.jsxs(e.Fragment,{children:[e.jsx("input",{disabled:a,hidden:!0,onChange:u,pattern:void 0,placeholder:I,ref:w,type:i,value:d}),e.jsx("input",{type:"text",className:m(n.code,n.input),disabled:a,maxLength:5,onChange:c=>L(c.target.value),placeholder:o,value:x}),e.jsx("input",{...z,"aria-describedby":S,"aria-invalid":_?!0:s["aria-invalid"],type:"tel",className:m(n.input,t,E&&n.touched),"data-icon":h?"true":void 0,disabled:a,maxLength:14,name:void 0,onChange:c=>N(c.target.value),onBlur:$,pattern:y,required:p,style:T,value:l})]});return e.jsxs("div",{className:n.field,"data-component":"input",children:[e.jsxs("label",{className:m(n.label,v==="inline"&&n.inline),children:[C&&e.jsx("span",{"data-required":p&&v!=="inline"?!0:void 0,children:C}),i==="tel"?H:e.jsx("input",{...s,"aria-describedby":S,"aria-invalid":_?!0:s["aria-invalid"],ref:w,className:m(n.input,t,E&&n.touched),"data-icon":h?"true":void 0,disabled:a,onBlur:$,placeholder:I,required:p,style:T,type:i})]}),b&&e.jsx("span",{className:n.error,id:b,role:"alert",children:j})]})}exports.Input=X;exports.formatInlineLabel=P;
|
package/dist/index-riaH5c_S.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/index57.css');const u=require("react/jsx-runtime"),C=require("classix"),S=require("./icons-BIdcCH-v.cjs"),p=require("./use-touched-Bq5Gjbpz.cjs"),P=new Set(["aria-activedescendant","aria-autocomplete","aria-busy","aria-controls","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-required","aria-roledescription","autoComplete","autoFocus","className","defaultValue","dir","disabled","form","id","multiple","name","onBlur","onChange","onClick","onFocus","onInput","onInvalid","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPointerDown","onPointerUp","required","role","size","style","tabIndex","title","value"]);function h(r){return Object.fromEntries(Object.entries(r).filter(([e])=>e.startsWith("data-")||e.startsWith("aria-")||P.has(e)))}const _=/^--[\w-]+$/,q=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+))?\)$/,x=new Set(["currentcolor","inherit","initial","revert","revert-layer","unset"]),l=typeof document<"u"?document.createElement("span"):null;function b(r){const e=r.trim();if(!e||!l||x.has(e.toLowerCase()))return e;const s=document.body??document.documentElement;if(!s||(l.style.color=e,!l.style.color))return e;s.appendChild(l);const n=getComputedStyle(l).color.trim();return l.remove(),n||e}function y(r,e="currentColor"){var c;if(typeof document>"u")return e;const s=getComputedStyle(document.documentElement),n=new Set;let t=r.trim();for(;t;){const o=t.match(q),a=(o==null?void 0:o[1])??(_.test(t)?t:null),i=(c=o==null?void 0:o[2])==null?void 0:c.trim();if(!a)return b(t);if(n.has(a)){t=i??"";continue}n.add(a),t=s.getPropertyValue(a).trim()||i||""}return b(e)}const j="_select_1bm47_3",V="_touched_1bm47_24",g="_label_1bm47_29",d={select:j,touched:V,label:g},E=({children:r,label:e,placeholder:s,...n})=>{const{touched:t,onBlur:c}=p.useTouched(n.value===""),o=h(n),{className:a,onBlur:i,style:v,...f}=o,w={...v,"--icon-svg":S.iconSVG("CaretDown",y("--colors-semantic-content-secondary"))},m=u.jsxs("select",{className:C(d.select,a,t&&d.touched),onBlur:p.composeEventHandlers(c,i),style:w,...f,"data-component":"select",children:[s&&u.jsx("option",{value:"",hidden:!0,children:s},"placeholder"),r]});return e?u.jsxs("label",{"data-component":"select",children:[u.jsx("span",{className:d.label,"data-required":n.required||void 0,children:e}),m]}):m};exports.Select=E;exports.resolveColor=y;exports.sanitizeSelectProps=h;
|