@deriv-web-design/ui 0.1.38 → 0.1.40
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.css +19 -7
- package/dist/index.css.map +1 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1023,6 +1023,7 @@ var Pagination = ({
|
|
|
1023
1023
|
{
|
|
1024
1024
|
className: ["pagination", className ?? ""].filter(Boolean).join(" "),
|
|
1025
1025
|
"aria-label": "Pagination navigation",
|
|
1026
|
+
dir: "ltr",
|
|
1026
1027
|
children: [
|
|
1027
1028
|
/* @__PURE__ */ jsx16(
|
|
1028
1029
|
"button",
|
|
@@ -4775,7 +4776,7 @@ import {
|
|
|
4775
4776
|
|
|
4776
4777
|
// templates/DayNightTransition/webflowDayNightV2Ix.ts
|
|
4777
4778
|
var DESC_SWATCH = { r: 24, g: 28, b: 37 };
|
|
4778
|
-
var
|
|
4779
|
+
var DAY_TEXT = { r: 0, g: 0, b: 0 };
|
|
4779
4780
|
var rgb = (r, g, b) => `rgb(${r},${g},${b})`;
|
|
4780
4781
|
var lerp = (a, b, u) => a + (b - a) * u;
|
|
4781
4782
|
var seg = (t, t0, t1, v0, v1) => {
|
|
@@ -4785,33 +4786,33 @@ var seg = (t, t0, t1, v0, v1) => {
|
|
|
4785
4786
|
};
|
|
4786
4787
|
function webflowV2DescriptionColor(t, media) {
|
|
4787
4788
|
if (media === "desktop") {
|
|
4788
|
-
const
|
|
4789
|
+
const day2 = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
|
|
4789
4790
|
const dark2 = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
|
|
4790
4791
|
const white2 = rgb(255, 255, 255);
|
|
4791
|
-
if (t < 0.49) return
|
|
4792
|
+
if (t < 0.49) return day2;
|
|
4792
4793
|
if (t < 0.5) return dark2;
|
|
4793
4794
|
return white2;
|
|
4794
4795
|
}
|
|
4795
4796
|
const white = rgb(255, 255, 255);
|
|
4796
4797
|
const dark = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
|
|
4797
|
-
const
|
|
4798
|
-
if (t < 0.58) return
|
|
4798
|
+
const day = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
|
|
4799
|
+
if (t < 0.58) return day;
|
|
4799
4800
|
if (t < 0.59) return dark;
|
|
4800
4801
|
return white;
|
|
4801
4802
|
}
|
|
4802
4803
|
function webflowV2TitleColor(t, media) {
|
|
4803
4804
|
if (media === "desktop") {
|
|
4804
|
-
const
|
|
4805
|
+
const day2 = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
|
|
4805
4806
|
const black = rgb(0, 0, 0);
|
|
4806
4807
|
const white2 = rgb(255, 255, 255);
|
|
4807
|
-
if (t < 0.51) return
|
|
4808
|
+
if (t < 0.51) return day2;
|
|
4808
4809
|
if (t >= 0.52) return white2;
|
|
4809
4810
|
return seg(t, 0.51, 0.52, black, white2);
|
|
4810
4811
|
}
|
|
4811
4812
|
const dark = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
|
|
4812
4813
|
const white = rgb(255, 255, 255);
|
|
4813
|
-
const
|
|
4814
|
-
if (t < 0.6) return
|
|
4814
|
+
const day = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
|
|
4815
|
+
if (t < 0.6) return day;
|
|
4815
4816
|
if (t >= 0.61) return white;
|
|
4816
4817
|
const u = (t - 0.6) / 0.01;
|
|
4817
4818
|
return rgb(
|
|
@@ -4913,8 +4914,14 @@ var DayNightTransition = ({
|
|
|
4913
4914
|
const ro = new ResizeObserver(syncNightPull);
|
|
4914
4915
|
if (dayWordRef.current) ro.observe(dayWordRef.current);
|
|
4915
4916
|
window.addEventListener("resize", syncNightPull);
|
|
4917
|
+
const mo = new MutationObserver(syncNightPull);
|
|
4918
|
+
mo.observe(document.documentElement, {
|
|
4919
|
+
attributes: true,
|
|
4920
|
+
attributeFilter: ["dir", "lang"]
|
|
4921
|
+
});
|
|
4916
4922
|
return () => {
|
|
4917
4923
|
ro.disconnect();
|
|
4924
|
+
mo.disconnect();
|
|
4918
4925
|
window.removeEventListener("resize", syncNightPull);
|
|
4919
4926
|
};
|
|
4920
4927
|
}, [
|
|
@@ -7339,7 +7346,7 @@ var FeatureAwards = ({
|
|
|
7339
7346
|
children: /* @__PURE__ */ jsxs48("div", { className: "fa__inner", children: [
|
|
7340
7347
|
title && /* @__PURE__ */ jsx52("h2", { className: "fa__title", children: title }),
|
|
7341
7348
|
/* @__PURE__ */ jsx52("div", { className: "fa__grid", role: "list", children: awards.map((award, i) => /* @__PURE__ */ jsx52(AwardBadge2, { award }, `g-${i}`)) }),
|
|
7342
|
-
/* @__PURE__ */ jsx52("div", { className: "fa__scroller", children: /* @__PURE__ */ jsxs48("div", { className: "fa__track fa__track--auto", style: trackStyle, children: [
|
|
7349
|
+
/* @__PURE__ */ jsx52("div", { className: "fa__scroller", dir: "ltr", children: /* @__PURE__ */ jsxs48("div", { className: "fa__track fa__track--auto", style: trackStyle, children: [
|
|
7343
7350
|
/* @__PURE__ */ jsx52("div", { className: "fa__track-group", role: "list", children: awards.map((award, i) => /* @__PURE__ */ jsx52(AwardBadge2, { award }, `m-${i}`)) }),
|
|
7344
7351
|
/* @__PURE__ */ jsx52(
|
|
7345
7352
|
"div",
|