@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.js CHANGED
@@ -1165,6 +1165,7 @@ var Pagination = ({
1165
1165
  {
1166
1166
  className: ["pagination", className ?? ""].filter(Boolean).join(" "),
1167
1167
  "aria-label": "Pagination navigation",
1168
+ dir: "ltr",
1168
1169
  children: [
1169
1170
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1170
1171
  "button",
@@ -4893,7 +4894,7 @@ var import_framer_motion3 = require("framer-motion");
4893
4894
 
4894
4895
  // templates/DayNightTransition/webflowDayNightV2Ix.ts
4895
4896
  var DESC_SWATCH = { r: 24, g: 28, b: 37 };
4896
- var BODY_TEXT = { r: 51, g: 51, b: 51 };
4897
+ var DAY_TEXT = { r: 0, g: 0, b: 0 };
4897
4898
  var rgb = (r, g, b) => `rgb(${r},${g},${b})`;
4898
4899
  var lerp = (a, b, u) => a + (b - a) * u;
4899
4900
  var seg = (t, t0, t1, v0, v1) => {
@@ -4903,33 +4904,33 @@ var seg = (t, t0, t1, v0, v1) => {
4903
4904
  };
4904
4905
  function webflowV2DescriptionColor(t, media) {
4905
4906
  if (media === "desktop") {
4906
- const body2 = rgb(BODY_TEXT.r, BODY_TEXT.g, BODY_TEXT.b);
4907
+ const day2 = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
4907
4908
  const dark2 = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
4908
4909
  const white2 = rgb(255, 255, 255);
4909
- if (t < 0.49) return body2;
4910
+ if (t < 0.49) return day2;
4910
4911
  if (t < 0.5) return dark2;
4911
4912
  return white2;
4912
4913
  }
4913
4914
  const white = rgb(255, 255, 255);
4914
4915
  const dark = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
4915
- const body = rgb(BODY_TEXT.r, BODY_TEXT.g, BODY_TEXT.b);
4916
- if (t < 0.58) return body;
4916
+ const day = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
4917
+ if (t < 0.58) return day;
4917
4918
  if (t < 0.59) return dark;
4918
4919
  return white;
4919
4920
  }
4920
4921
  function webflowV2TitleColor(t, media) {
4921
4922
  if (media === "desktop") {
4922
- const body2 = rgb(BODY_TEXT.r, BODY_TEXT.g, BODY_TEXT.b);
4923
+ const day2 = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
4923
4924
  const black = rgb(0, 0, 0);
4924
4925
  const white2 = rgb(255, 255, 255);
4925
- if (t < 0.51) return body2;
4926
+ if (t < 0.51) return day2;
4926
4927
  if (t >= 0.52) return white2;
4927
4928
  return seg(t, 0.51, 0.52, black, white2);
4928
4929
  }
4929
4930
  const dark = rgb(DESC_SWATCH.r, DESC_SWATCH.g, DESC_SWATCH.b);
4930
4931
  const white = rgb(255, 255, 255);
4931
- const body = rgb(BODY_TEXT.r, BODY_TEXT.g, BODY_TEXT.b);
4932
- if (t < 0.6) return body;
4932
+ const day = rgb(DAY_TEXT.r, DAY_TEXT.g, DAY_TEXT.b);
4933
+ if (t < 0.6) return day;
4933
4934
  if (t >= 0.61) return white;
4934
4935
  const u = (t - 0.6) / 0.01;
4935
4936
  return rgb(
@@ -5031,8 +5032,14 @@ var DayNightTransition = ({
5031
5032
  const ro = new ResizeObserver(syncNightPull);
5032
5033
  if (dayWordRef.current) ro.observe(dayWordRef.current);
5033
5034
  window.addEventListener("resize", syncNightPull);
5035
+ const mo = new MutationObserver(syncNightPull);
5036
+ mo.observe(document.documentElement, {
5037
+ attributes: true,
5038
+ attributeFilter: ["dir", "lang"]
5039
+ });
5034
5040
  return () => {
5035
5041
  ro.disconnect();
5042
+ mo.disconnect();
5036
5043
  window.removeEventListener("resize", syncNightPull);
5037
5044
  };
5038
5045
  }, [
@@ -7451,7 +7458,7 @@ var FeatureAwards = ({
7451
7458
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "fa__inner", children: [
7452
7459
  title && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h2", { className: "fa__title", children: title }),
7453
7460
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "fa__grid", role: "list", children: awards.map((award, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AwardBadge2, { award }, `g-${i}`)) }),
7454
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "fa__scroller", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "fa__track fa__track--auto", style: trackStyle, children: [
7461
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "fa__scroller", dir: "ltr", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "fa__track fa__track--auto", style: trackStyle, children: [
7455
7462
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "fa__track-group", role: "list", children: awards.map((award, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AwardBadge2, { award }, `m-${i}`)) }),
7456
7463
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7457
7464
  "div",