@dinofront/design_system 1.20.10 → 1.20.12-alpha.0
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/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5115,21 +5115,40 @@ var xo = a(function({ value: e, defaultValue: t = null, onChange: n, step: r = 1
|
|
|
5115
5115
|
v.current && clearTimeout(v.current), h(!1);
|
|
5116
5116
|
};
|
|
5117
5117
|
if (!o(t)) return t;
|
|
5118
|
-
let O =
|
|
5118
|
+
let O = {}, k;
|
|
5119
|
+
if (S && y.current) {
|
|
5120
|
+
let e = getComputedStyle(y.current), t = e.getPropertyValue("--color-fg-default").trim(), n = e.getPropertyValue("--color-bg-default").trim();
|
|
5121
|
+
t && (O = {
|
|
5122
|
+
backgroundColor: t,
|
|
5123
|
+
color: n || void 0
|
|
5124
|
+
}, k = t);
|
|
5125
|
+
}
|
|
5126
|
+
let A = {
|
|
5127
|
+
top: "borderTopColor",
|
|
5128
|
+
bottom: "borderBottomColor",
|
|
5129
|
+
left: "borderLeftColor",
|
|
5130
|
+
right: "borderRightColor"
|
|
5131
|
+
}, j = t.props ?? {}, M = n(t, {
|
|
5119
5132
|
onMouseEnter: E,
|
|
5120
5133
|
onMouseLeave: D,
|
|
5121
5134
|
onFocus: E,
|
|
5122
5135
|
onBlur: D,
|
|
5123
|
-
"aria-describedby": f ? b :
|
|
5124
|
-
}),
|
|
5136
|
+
"aria-describedby": f ? b : j["aria-describedby"]
|
|
5137
|
+
}), N = /* @__PURE__ */ K("span", {
|
|
5125
5138
|
ref: S ? _ : void 0,
|
|
5126
5139
|
role: "tooltip",
|
|
5127
5140
|
id: b,
|
|
5128
|
-
style:
|
|
5141
|
+
style: {
|
|
5142
|
+
...S ? C : void 0,
|
|
5143
|
+
...O
|
|
5144
|
+
},
|
|
5129
5145
|
className: X("z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", So[i], !S && ["absolute", Co[r]], c),
|
|
5130
5146
|
children: [e, S ? /* @__PURE__ */ G("span", {
|
|
5131
5147
|
"aria-hidden": !0,
|
|
5132
|
-
style:
|
|
5148
|
+
style: {
|
|
5149
|
+
...w,
|
|
5150
|
+
...k ? { [A[T]]: k } : {}
|
|
5151
|
+
},
|
|
5133
5152
|
className: X("absolute h-0 w-0 border-4", To[T])
|
|
5134
5153
|
}) : /* @__PURE__ */ G("span", {
|
|
5135
5154
|
"aria-hidden": !0,
|
|
@@ -5140,7 +5159,7 @@ var xo = a(function({ value: e, defaultValue: t = null, onChange: n, step: r = 1
|
|
|
5140
5159
|
ref: Xt(d, y),
|
|
5141
5160
|
"data-test-id": l,
|
|
5142
5161
|
className: X("inline-flex", !S && "relative"),
|
|
5143
|
-
children: [
|
|
5162
|
+
children: [M, f && (S ? be(N, S) : N)]
|
|
5144
5163
|
});
|
|
5145
5164
|
}), Do = "We'll be back soon", Oo = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", ko = {
|
|
5146
5165
|
lg: "xl",
|