@dinofront/design_system 1.20.11 → 1.20.12

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 CHANGED
@@ -5115,21 +5115,45 @@ 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 = !!y.current?.closest(".dark"), k = t.props ?? {}, A = n(t, {
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,
5124
+ "--color-fg-default": n,
5125
+ "--color-fg-secondary": n,
5126
+ "--color-fg-tertiary": n,
5127
+ "--color-icon-primary": n,
5128
+ "--color-icon-secondary": n
5129
+ }, k = t);
5130
+ }
5131
+ let A = {
5132
+ top: "borderTopColor",
5133
+ bottom: "borderBottomColor",
5134
+ left: "borderLeftColor",
5135
+ right: "borderRightColor"
5136
+ }, j = t.props ?? {}, M = n(t, {
5119
5137
  onMouseEnter: E,
5120
5138
  onMouseLeave: D,
5121
5139
  onFocus: E,
5122
5140
  onBlur: D,
5123
- "aria-describedby": f ? b : k["aria-describedby"]
5124
- }), j = /* @__PURE__ */ K("span", {
5141
+ "aria-describedby": f ? b : j["aria-describedby"]
5142
+ }), N = /* @__PURE__ */ K("span", {
5125
5143
  ref: S ? _ : void 0,
5126
5144
  role: "tooltip",
5127
5145
  id: b,
5128
- style: S ? C : void 0,
5129
- className: X("z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", S && O && "dark", So[i], !S && ["absolute", Co[r]], c),
5146
+ style: {
5147
+ ...S ? C : void 0,
5148
+ ...O
5149
+ },
5150
+ 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
5151
  children: [e, S ? /* @__PURE__ */ G("span", {
5131
5152
  "aria-hidden": !0,
5132
- style: w,
5153
+ style: {
5154
+ ...w,
5155
+ ...k ? { [A[T]]: k } : {}
5156
+ },
5133
5157
  className: X("absolute h-0 w-0 border-4", To[T])
5134
5158
  }) : /* @__PURE__ */ G("span", {
5135
5159
  "aria-hidden": !0,
@@ -5140,7 +5164,7 @@ var xo = a(function({ value: e, defaultValue: t = null, onChange: n, step: r = 1
5140
5164
  ref: Xt(d, y),
5141
5165
  "data-test-id": l,
5142
5166
  className: X("inline-flex", !S && "relative"),
5143
- children: [A, f && (S ? be(j, S) : j)]
5167
+ children: [M, f && (S ? be(N, S) : N)]
5144
5168
  });
5145
5169
  }), 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
5170
  lg: "xl",