@flux-ui/visuals 3.13.0 → 4.0.0-beta.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.css CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .dot-pattern {
18
- fill: var(--gray-300);
18
+ fill: var(--surface-stroke-hover);
19
19
  pointer-events: none;
20
20
  }
21
21
 
@@ -24,8 +24,8 @@
24
24
  }
25
25
 
26
26
  .grid-pattern {
27
- fill: var(--gray-100);
28
- stroke: var(--gray-300);
27
+ fill: var(--surface-stroke-muted);
28
+ stroke: var(--surface-stroke-hover);
29
29
  pointer-events: none;
30
30
  }
31
31
 
@@ -925,11 +925,11 @@
925
925
  }
926
926
 
927
927
  .glow-dot {
928
- fill: var(--primary-500);
928
+ fill: var(--primary-solid);
929
929
  }
930
930
 
931
931
  .glow-line {
932
- stroke: var(--primary-500);
932
+ stroke: var(--primary-solid);
933
933
  }.highlighter {
934
934
  position: relative;
935
935
  }
@@ -1120,7 +1120,7 @@
1120
1120
  display: inline-block;
1121
1121
  animation: text-shimmer-sweep var(--shimmer-duration, 2s) linear infinite;
1122
1122
  color: transparent;
1123
- background-image: linear-gradient(90deg, var(--shimmer-base, var(--gray-400)) calc(50% - var(--shimmer-spread, 15) * 1%), var(--shimmer-color, var(--gray-950)) 50%, var(--shimmer-base, var(--gray-400)) calc(50% + var(--shimmer-spread, 15) * 1%));
1123
+ background-image: linear-gradient(90deg, var(--shimmer-base, var(--foreground-subtle)) calc(50% - var(--shimmer-spread, 15) * 1%), var(--shimmer-color, var(--foreground-prominent)) 50%, var(--shimmer-base, var(--foreground-subtle)) calc(50% + var(--shimmer-spread, 15) * 1%));
1124
1124
  background-repeat: repeat;
1125
1125
  background-position: 100% center;
1126
1126
  background-clip: text;
@@ -1128,13 +1128,10 @@
1128
1128
  -webkit-background-clip: text;
1129
1129
  -webkit-text-fill-color: transparent;
1130
1130
  }
1131
- [dark] .text-shimmer {
1132
- background-image: linear-gradient(90deg, var(--shimmer-base, var(--gray-500)) calc(50% - var(--shimmer-spread, 15) * 1%), var(--shimmer-color, var(--gray-50)) 50%, var(--shimmer-base, var(--gray-500)) calc(50% + var(--shimmer-spread, 15) * 1%));
1133
- }
1134
1131
  @media (prefers-reduced-motion: reduce) {
1135
1132
  .text-shimmer {
1136
1133
  animation: none;
1137
- color: var(--shimmer-base, var(--gray-500));
1134
+ color: var(--shimmer-base, var(--foreground-subtle));
1138
1135
  background: none;
1139
1136
  -webkit-text-fill-color: currentColor;
1140
1137
  }
package/dist/index.js CHANGED
@@ -910,7 +910,7 @@ var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
910
910
  };
911
911
  //#endregion
912
912
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
913
- var k$3 = Math.pow(29, 3) / Math.pow(3, 3);
913
+ var k$2 = Math.pow(29, 3) / Math.pow(3, 3);
914
914
  var e$3 = Math.pow(6, 3) / Math.pow(29, 3);
915
915
  //#endregion
916
916
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/constants.js
@@ -928,7 +928,7 @@ Math.pow(29, 3) / Math.pow(3, 3);
928
928
  Math.pow(6, 3) / Math.pow(29, 3);
929
929
  //#endregion
930
930
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
931
- var fn$1 = (v) => Math.pow(v, 3) > e$3 ? Math.pow(v, 3) : (116 * v - 16) / k$3;
931
+ var fn$1 = (v) => Math.pow(v, 3) > e$3 ? Math.pow(v, 3) : (116 * v - 16) / k$2;
932
932
  var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
933
933
  if (l === void 0) l = 0;
934
934
  if (a === void 0) a = 0;
@@ -950,7 +950,7 @@ var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
950
950
  var convertLab65ToRgb = (lab) => convertXyz65ToRgb(convertLab65ToXyz65(lab));
951
951
  //#endregion
952
952
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
953
- var f$2 = (value) => value > e$3 ? Math.cbrt(value) : (k$3 * value + 16) / 116;
953
+ var f$2 = (value) => value > e$3 ? Math.cbrt(value) : (k$2 * value + 16) / 116;
954
954
  var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
955
955
  if (x === void 0) x = 0;
956
956
  if (y === void 0) y = 0;
@@ -1812,11 +1812,11 @@ var definition$16 = {
1812
1812
  };
1813
1813
  //#endregion
1814
1814
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
1815
- var k$1 = Math.pow(29, 3) / Math.pow(3, 3);
1815
+ var k = Math.pow(29, 3) / Math.pow(3, 3);
1816
1816
  var e$1 = Math.pow(6, 3) / Math.pow(29, 3);
1817
1817
  //#endregion
1818
1818
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
1819
- var fn = (v) => Math.pow(v, 3) > e$1 ? Math.pow(v, 3) : (116 * v - 16) / k$1;
1819
+ var fn = (v) => Math.pow(v, 3) > e$1 ? Math.pow(v, 3) : (116 * v - 16) / k;
1820
1820
  var convertLabToXyz50 = ({ l, a, b, alpha }) => {
1821
1821
  if (l === void 0) l = 0;
1822
1822
  if (a === void 0) a = 0;
@@ -1865,7 +1865,7 @@ var convertRgbToXyz50 = (rgb) => {
1865
1865
  };
1866
1866
  //#endregion
1867
1867
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
1868
- var f$1 = (value) => value > e$1 ? Math.cbrt(value) : (k$1 * value + 16) / 116;
1868
+ var f$1 = (value) => value > e$1 ? Math.cbrt(value) : (k * value + 16) / 116;
1869
1869
  var convertXyz50ToLab = ({ x, y, z, alpha }) => {
1870
1870
  if (x === void 0) x = 0;
1871
1871
  if (y === void 0) y = 0;
@@ -2071,7 +2071,7 @@ var u_fn$1 = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
2071
2071
  var v_fn$1 = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
2072
2072
  var un$1 = u_fn$1(D50.X, D50.Y, D50.Z);
2073
2073
  var vn$1 = v_fn$1(D50.X, D50.Y, D50.Z);
2074
- var l_fn = (value) => value <= e$1 ? k$1 * value : 116 * Math.cbrt(value) - 16;
2074
+ var l_fn = (value) => value <= e$1 ? k * value : 116 * Math.cbrt(value) - 16;
2075
2075
  var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
2076
2076
  if (x === void 0) x = 0;
2077
2077
  if (y === void 0) y = 0;
@@ -2111,7 +2111,7 @@ var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
2111
2111
  if (v === void 0) v = 0;
2112
2112
  let up = u / (13 * l) + un;
2113
2113
  let vp = v / (13 * l) + vn;
2114
- let y = D50.Y * (l <= 8 ? l / k$1 : Math.pow((l + 16) / 116, 3));
2114
+ let y = D50.Y * (l <= 8 ? l / k : Math.pow((l + 16) / 116, 3));
2115
2115
  let res = {
2116
2116
  mode: "xyz50",
2117
2117
  x: y * (9 * up) / (4 * vp),
@@ -9331,7 +9331,7 @@ function K(e, t, n) {
9331
9331
  Object.defineProperty(e, t, { value: n });
9332
9332
  }
9333
9333
  //#endregion
9334
- //#region ../../node_modules/.bun/@basmilius+http-client@3.55.0+5b14057fc6050d41/node_modules/@basmilius/http-client/dist/index.mjs
9334
+ //#region ../../node_modules/.bun/@basmilius+http-client@3.55.0+cdb470e444abca7f/node_modules/@basmilius/http-client/dist/index.mjs
9335
9335
  function adapter_default(Parent) {
9336
9336
  return class extends Parent {
9337
9337
  constructor(...args) {
@@ -9908,8 +9908,8 @@ new class {
9908
9908
  }();
9909
9909
  globalThis.document;
9910
9910
  //#endregion
9911
- //#region ../internals/dist/composable-Cr4VA1Rs.js
9912
- function k(t, n = {}) {
9911
+ //#region ../internals/dist/composable-Ddn-evA6.js
9912
+ function F(t, n = {}) {
9913
9913
  let r = ref(n.initial ?? !1);
9914
9914
  return watch(t, (i, a, o) => {
9915
9915
  let s = y(t);
@@ -9950,7 +9950,7 @@ var FluxVisualAnimatedColors_default = /* @__PURE__ */ defineComponent({
9950
9950
  const tick = ref(0);
9951
9951
  const size = ref(null);
9952
9952
  const componentId = de();
9953
- const inView = k(canvasRef, { initial: true });
9953
+ const inView = F(canvasRef, { initial: true });
9954
9954
  const reducedMotion = v();
9955
9955
  const polygons = computed(() => {
9956
9956
  if (!__props.colors || __props.colors.length === 0) return [];
@@ -11094,7 +11094,7 @@ var FluxVisualBorderBeam_default = /* @__PURE__ */ defineComponent({
11094
11094
  "pulse-outside": BorderBeam_module_default.pulseOutside
11095
11095
  };
11096
11096
  const wrapperRef = useTemplateRef("wrapper");
11097
- const inView = k(wrapperRef, {
11097
+ const inView = F(wrapperRef, {
11098
11098
  initial: true,
11099
11099
  rootMargin: "256px"
11100
11100
  });
@@ -11354,7 +11354,7 @@ var FluxVisualFlickeringGrid_default = /* @__PURE__ */ defineComponent({
11354
11354
  },
11355
11355
  setup(__props) {
11356
11356
  const canvasRef = useTemplateRef("canvas");
11357
- const inView = k(canvasRef);
11357
+ const inView = F(canvasRef);
11358
11358
  const mulberry = V(13);
11359
11359
  const rgb = computed(() => {
11360
11360
  const canvas = document.createElement("canvas");
@@ -11594,9 +11594,9 @@ var FluxVisualHighlighter_default = /* @__PURE__ */ defineComponent({
11594
11594
  const emit = __emit;
11595
11595
  const targetRef = useTemplateRef("target");
11596
11596
  const group = useHighlighterGroupInjection();
11597
- const inView = group ? shallowRef(true) : k(targetRef, { initial: !__props.whenInView });
11597
+ const inView = group ? shallowRef(true) : F(targetRef, { initial: !__props.whenInView });
11598
11598
  const effectiveVariant = computed(() => __props.variant ?? group?.defaults.variant ?? "highlight");
11599
- const effectiveColor = computed(() => __props.color ?? group?.defaults.color ?? "var(--warning-200)");
11599
+ const effectiveColor = computed(() => __props.color ?? group?.defaults.color ?? "var(--warning-border)");
11600
11600
  const effectiveStrokeWidth = computed(() => __props.strokeWidth ?? group?.defaults.strokeWidth ?? 1.5);
11601
11601
  const effectiveAnimationDuration = computed(() => __props.animationDuration ?? group?.defaults.animationDuration ?? 500);
11602
11602
  const effectiveIterations = computed(() => __props.iterations ?? group?.defaults.iterations ?? 2);
@@ -11980,7 +11980,7 @@ var FluxVisualPing_default = /* @__PURE__ */ defineComponent({
11980
11980
  "aria-hidden": "true",
11981
11981
  class: normalizeClass(unref(Ping_module_default).ping),
11982
11982
  style: normalizeStyle({
11983
- "--ping-color": `var(--${__props.color}-500)`,
11983
+ "--ping-color": `var(--${__props.color}-solid)`,
11984
11984
  "--ping-size": `${__props.size}px`,
11985
11985
  "--ping-duration": __props.duration
11986
11986
  })