@weasel-js/labkit 1.4.3 → 1.4.4

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.
Files changed (57) hide show
  1. package/dist/_dts/{CanvasStackContext-Dde8_1my.d.ts → CanvasStackContext-kTEZvEgE.d.ts} +1 -1
  2. package/dist/_dts/{frac-B5mB8LsJ.d.ts → frac-z7ker2Vx.d.ts} +4 -3
  3. package/dist/_dts/{index-DelFfeV0.d.ts → index-Blv9uQzu.d.ts} +27 -2
  4. package/dist/canvas/index.d.ts +4 -4
  5. package/dist/chrome/index.d.ts +2 -2
  6. package/dist/chrome/index.js +4 -4
  7. package/dist/{chunk-5TROQVQ2.js → chunk-2P6PP5N4.js} +10 -4
  8. package/dist/chunk-2P6PP5N4.js.map +1 -0
  9. package/dist/{chunk-C42T6DJT.js → chunk-64ZCN3DA.js} +5 -5
  10. package/dist/{chunk-C42T6DJT.js.map → chunk-64ZCN3DA.js.map} +1 -1
  11. package/dist/{chunk-ISCOFAUO.js → chunk-BKFVHKJH.js} +3 -3
  12. package/dist/{chunk-ISCOFAUO.js.map → chunk-BKFVHKJH.js.map} +1 -1
  13. package/dist/{chunk-QAGAHJKZ.js → chunk-MOM3GOVY.js} +3 -3
  14. package/dist/{chunk-QAGAHJKZ.js.map → chunk-MOM3GOVY.js.map} +1 -1
  15. package/dist/{chunk-2RQPGOQF.js → chunk-SMHP6XZ4.js} +3 -3
  16. package/dist/{chunk-2RQPGOQF.js.map → chunk-SMHP6XZ4.js.map} +1 -1
  17. package/dist/{chunk-ASWKLRKJ.js → chunk-U3IYHIAE.js} +11 -11
  18. package/dist/chunk-U3IYHIAE.js.map +1 -0
  19. package/dist/{chunk-MHAGC6VD.js → chunk-W3ECWC2K.js} +199 -184
  20. package/dist/chunk-W3ECWC2K.js.map +1 -0
  21. package/dist/controls/index.d.ts +1 -1
  22. package/dist/controls/index.js +2 -2
  23. package/dist/dragdrop/index.d.ts +1 -1
  24. package/dist/index.d.ts +55 -9
  25. package/dist/index.js +128 -45
  26. package/dist/index.js.map +1 -1
  27. package/dist/layers/index.d.ts +2 -2
  28. package/dist/layers/index.js +2 -2
  29. package/dist/loupe/index.d.ts +3 -3
  30. package/dist/passthrough/weasel-ui.d.ts +10 -0
  31. package/dist/passthrough/weasel-ui.js +1 -1
  32. package/dist/primitives/index.js +3 -3
  33. package/dist/state/index.js +2 -2
  34. package/dist/styles.css +81 -14
  35. package/dist/ui/layers/index.js +1 -1
  36. package/dist/undo/index.d.ts +1 -1
  37. package/package.json +7 -7
  38. package/src/annotations/frac.test.ts +4 -4
  39. package/src/annotations/frac.ts +3 -2
  40. package/src/annotations/index.ts +1 -1
  41. package/src/annotations/store.ts +2 -2
  42. package/src/annotations/svgNodes.ts +1 -2
  43. package/src/index.ts +1 -1
  44. package/src/lab/LabShell.tsx +14 -2
  45. package/src/lab/LabSwitcher.less +85 -0
  46. package/src/lab/LabSwitcher.test.tsx +96 -0
  47. package/src/lab/LabSwitcher.tsx +112 -0
  48. package/src/lab/index.ts +2 -0
  49. package/src/state/helpers.test.ts +20 -0
  50. package/src/state/helpers.ts +16 -0
  51. package/src/state/store.ts +2 -2
  52. package/src/styles.less +1 -0
  53. package/src/theme/base.less +4 -4
  54. package/src/trial/trialOps.ts +3 -2
  55. package/dist/chunk-5TROQVQ2.js.map +0 -1
  56. package/dist/chunk-ASWKLRKJ.js.map +0 -1
  57. package/dist/chunk-MHAGC6VD.js.map +0 -1
@@ -474,13 +474,13 @@ function u4({ children: e23, className: r37, ...i33 }) {
474
474
  });
475
475
  }
476
476
  var c6 = {
477
- slider: "_slider_cno0k_1",
478
- head: "_head_cno0k_17",
479
- label: "_label_cno0k_24",
480
- output: "_output_cno0k_30",
481
- track: "_track_cno0k_36",
482
- fill: "_fill_cno0k_50",
483
- thumb: "_thumb_cno0k_59"
477
+ slider: "_slider_1ll0c_1",
478
+ head: "_head_1ll0c_17",
479
+ label: "_label_1ll0c_24",
480
+ output: "_output_1ll0c_30",
481
+ track: "_track_1ll0c_36",
482
+ fill: "_fill_1ll0c_49",
483
+ thumb: "_thumb_1ll0c_58"
484
484
  };
485
485
  function l5(l21) {
486
486
  let { label: u17, showOutput: d15, formatOutput: f15, className: p13, ...m12 } = l21, h11 = d15 ?? u17 !== void 0;
@@ -3516,7 +3516,7 @@ function Lt(o27) {
3516
3516
  let re3 = [l9.badge, b6].filter(Boolean).join(" "), z4 = !D5 && F5.compose ? F5.compose(I5) : null, ie3 = D5 ?? z4?.base, B4 = ie3 ? Ze[ie3] : null, ae3 = D5 ? O5 : z4?.baseParams, oe3 = D5 ? k5 : z4?.effects ?? k5, se3 = B4 ? {
3517
3517
  ...B4.defaults ?? {},
3518
3518
  ...ae3 ?? {}
3519
- } : null, ce3 = useRef(null), V4 = _2(ce3, B4), H3 = B4 ? B4.build(se3, V4.w, V4.h) : null, U3 = B4 ? (typeof B4.insets == "function" ? B4.insets(se3) : B4.insets) ?? {
3519
+ } : null, ce3 = useRef(null), V4 = _2(ce3, B4), H4 = B4 ? B4.build(se3, V4.w, V4.h) : null, U3 = B4 ? (typeof B4.insets == "function" ? B4.insets(se3) : B4.insets) ?? {
3520
3520
  top: 0,
3521
3521
  right: 0,
3522
3522
  bottom: 0,
@@ -3544,7 +3544,7 @@ function Lt(o27) {
3544
3544
  onBlur: () => N5(false),
3545
3545
  "aria-label": A5
3546
3546
  }, W3 = (() => {
3547
- if (!B4 || !H3) return null;
3547
+ if (!B4 || !H4) return null;
3548
3548
  let e23 = (oe3 ?? []).map((e24) => {
3549
3549
  let t34 = $[e24.type];
3550
3550
  if (!t34?.offsetAt) return null;
@@ -3557,15 +3557,15 @@ function Lt(o27) {
3557
3557
  params: n40
3558
3558
  };
3559
3559
  }).filter(Boolean), t33 = S6 ?? 0;
3560
- if (e23.length === 0 && t33 === 0) return H3;
3561
- let n39 = 100 / V4.w, r37 = 100 / V4.h, i33 = H3.totalCss, a31 = (a32) => {
3562
- let o29 = (a32 % i33 + i33) % i33, s24 = H3.perimeterAt(o29), c22 = s24.nx * t33, l21 = s24.ny * t33;
3560
+ if (e23.length === 0 && t33 === 0) return H4;
3561
+ let n39 = 100 / V4.w, r37 = 100 / V4.h, i33 = H4.totalCss, a31 = (a32) => {
3562
+ let o29 = (a32 % i33 + i33) % i33, s24 = H4.perimeterAt(o29), c22 = s24.nx * t33, l21 = s24.ny * t33;
3563
3563
  for (let t34 of e23) {
3564
3564
  let e24 = t34.offsetAt(o29, {
3565
3565
  params: t34.params,
3566
3566
  phase: P5,
3567
3567
  totalCss: i33,
3568
- perimeterAt: H3.perimeterAt
3568
+ perimeterAt: H4.perimeterAt
3569
3569
  });
3570
3570
  c22 += e24.dx, l21 += e24.dy;
3571
3571
  }
@@ -3693,19 +3693,20 @@ function Lt(o27) {
3693
3693
  });
3694
3694
  }
3695
3695
  var r17 = {
3696
- button: "_button_wj58b_3",
3697
- size_sm: "_size_sm_wj58b_110",
3698
- size_md: "_size_md_wj58b_111",
3699
- iconOnly: "_iconOnly_wj58b_113",
3700
- variant_primary: "_variant_primary_wj58b_121",
3701
- variant_secondary: "_variant_secondary_wj58b_168",
3702
- variant_ghost: "_variant_ghost_wj58b_203",
3703
- fullWidth: "_fullWidth_wj58b_220",
3704
- loading: "_loading_wj58b_221",
3705
- label: "_label_wj58b_221",
3706
- iconSlot: "_iconSlot_wj58b_225",
3707
- spinner: "_spinner_wj58b_239",
3708
- "wzl-btn-spin": "_wzl-btn-spin_wj58b_1"
3696
+ button: "_button_1aa2p_3",
3697
+ size_sm: "_size_sm_1aa2p_110",
3698
+ size_md: "_size_md_1aa2p_111",
3699
+ iconOnly: "_iconOnly_1aa2p_113",
3700
+ variant_primary: "_variant_primary_1aa2p_121",
3701
+ variant_secondary: "_variant_secondary_1aa2p_168",
3702
+ variant_ghost: "_variant_ghost_1aa2p_203",
3703
+ pressed: "_pressed_1aa2p_220",
3704
+ fullWidth: "_fullWidth_1aa2p_228",
3705
+ loading: "_loading_1aa2p_229",
3706
+ label: "_label_1aa2p_229",
3707
+ iconSlot: "_iconSlot_1aa2p_233",
3708
+ spinner: "_spinner_1aa2p_247",
3709
+ "wzl-btn-spin": "_wzl-btn-spin_1aa2p_1"
3709
3710
  };
3710
3711
  function i14() {
3711
3712
  return /* @__PURE__ */ jsx("span", {
@@ -3734,39 +3735,41 @@ function i14() {
3734
3735
  });
3735
3736
  }
3736
3737
  var a14 = forwardRef(function(n39, a31) {
3737
- let { variant: o27 = "secondary", size: s24 = "md", disabled: c22, loading: l21, leadingIcon: u17, trailingIcon: d15, fullWidth: f15, iconOnly: p13, ariaLabel: m12, type: h11 = "button", className: g11, style: _10, children: v9, onClick: y7 } = n39;
3738
+ let { variant: o27 = "secondary", size: s24 = "md", pressed: c22, disabled: l21, loading: u17, leadingIcon: d15, trailingIcon: f15, fullWidth: p13, iconOnly: m12, ariaLabel: h11, type: g11 = "button", className: _10, style: v9, children: y7, onClick: b6 } = n39;
3738
3739
  return /* @__PURE__ */ jsxs("button", {
3739
3740
  ref: a31,
3740
- type: h11,
3741
+ type: g11,
3741
3742
  className: [
3742
3743
  r17.button,
3743
3744
  r17[`variant_${o27}`],
3744
3745
  r17[`size_${s24}`],
3745
- f15 && r17.fullWidth,
3746
- p13 && r17.iconOnly,
3747
- l21 && r17.loading,
3748
- g11
3746
+ p13 && r17.fullWidth,
3747
+ c22 && r17.pressed,
3748
+ m12 && r17.iconOnly,
3749
+ u17 && r17.loading,
3750
+ _10
3749
3751
  ].filter(Boolean).join(" "),
3750
- style: _10,
3751
- disabled: c22,
3752
- "aria-busy": l21 ? true : void 0,
3753
- "aria-label": m12,
3754
- onClick: y7,
3752
+ style: v9,
3753
+ disabled: l21,
3754
+ "aria-busy": u17 ? true : void 0,
3755
+ "aria-pressed": c22,
3756
+ "aria-label": h11,
3757
+ onClick: b6,
3755
3758
  children: [
3756
- !p13 && (l21 || u17) && /* @__PURE__ */ jsx("span", {
3759
+ !m12 && (u17 || d15) && /* @__PURE__ */ jsx("span", {
3757
3760
  className: r17.iconSlot,
3758
- children: l21 ? /* @__PURE__ */ jsx(i14, {}) : u17
3761
+ children: u17 ? /* @__PURE__ */ jsx(i14, {}) : d15
3759
3762
  }),
3760
- p13 ? l21 ? /* @__PURE__ */ jsx(i14, {}) : /* @__PURE__ */ jsx("span", {
3763
+ m12 ? u17 ? /* @__PURE__ */ jsx(i14, {}) : /* @__PURE__ */ jsx("span", {
3761
3764
  className: r17.iconSlot,
3762
- children: v9
3763
- }) : v9 !== void 0 && /* @__PURE__ */ jsx("span", {
3765
+ children: y7
3766
+ }) : y7 !== void 0 && /* @__PURE__ */ jsx("span", {
3764
3767
  className: r17.label,
3765
- children: v9
3768
+ children: y7
3766
3769
  }),
3767
- !p13 && d15 && /* @__PURE__ */ jsx("span", {
3770
+ !m12 && f15 && /* @__PURE__ */ jsx("span", {
3768
3771
  className: r17.iconSlot,
3769
- children: d15
3772
+ children: f15
3770
3773
  })
3771
3774
  ]
3772
3775
  });
@@ -4603,18 +4606,18 @@ function n23(e23) {
4603
4606
  return Number(e23.replace("\u2212", "-"));
4604
4607
  }
4605
4608
  var s14 = {
4606
- root: "_root_123hn_1",
4607
- row: "_row_123hn_8",
4608
- track: "_track_123hn_14",
4609
- trackInner: "_trackInner_123hn_25",
4610
- thumb: "_thumb_123hn_35",
4611
- slim: "_slim_123hn_68",
4612
- readoutsBelow: "_readoutsBelow_123hn_94",
4613
- readoutBelow: "_readoutBelow_123hn_100",
4614
- readoutInline: "_readoutInline_123hn_108",
4615
- notched: "_notched_123hn_116",
4616
- ticks: "_ticks_123hn_135",
4617
- tick: "_tick_123hn_135"
4609
+ root: "_root_72t5i_1",
4610
+ row: "_row_72t5i_8",
4611
+ track: "_track_72t5i_14",
4612
+ trackInner: "_trackInner_72t5i_25",
4613
+ thumb: "_thumb_72t5i_35",
4614
+ slim: "_slim_72t5i_68",
4615
+ readoutsBelow: "_readoutsBelow_72t5i_94",
4616
+ readoutBelow: "_readoutBelow_72t5i_100",
4617
+ readoutInline: "_readoutInline_72t5i_108",
4618
+ notched: "_notched_72t5i_116",
4619
+ ticks: "_ticks_72t5i_135",
4620
+ tick: "_tick_72t5i_135"
4618
4621
  };
4619
4622
  function c13(e23, t33, n39) {
4620
4623
  return t33 === void 0 || t33 <= 0 ? e23 : Math.round((e23 - n39) / t33) * t33 + n39;
@@ -4820,7 +4823,7 @@ function y3(e23) {
4820
4823
  ...o27[e24],
4821
4824
  value: p13
4822
4825
  }, b6(o27), x5?.(o27);
4823
- }, H3 = e23.readoutPlacement ?? "none", U3 = e23.renderReadout, W3 = D5 === "slim", G3 = {};
4826
+ }, H4 = e23.readoutPlacement ?? "none", U3 = e23.renderReadout, W3 = D5 === "slim", G3 = {};
4824
4827
  return W3 && (G3["--rp-track-height"] = "var(--wzl-slider-track-h)", G3["--rp-thumb-size"] = "var(--wzl-slider-thumb-size)"), E5 !== void 0 && (G3["--rp-track-height"] = `${E5}px`), /* @__PURE__ */ jsxs("div", {
4825
4828
  className: [
4826
4829
  s14.root,
@@ -4880,12 +4883,12 @@ function y3(e23) {
4880
4883
  }, n39);
4881
4884
  })
4882
4885
  ]
4883
- }), H3 === "inline-after" && /* @__PURE__ */ jsx("span", {
4886
+ }), H4 === "inline-after" && /* @__PURE__ */ jsx("span", {
4884
4887
  "data-readout": "inline",
4885
4888
  className: s14.readoutInline,
4886
4889
  children: y7.map((e24, t33) => /* @__PURE__ */ jsxs("span", { children: [t33 > 0 ? " / " : "", U3 ? U3(e24, t33) : v3(e24)] }, t33))
4887
4890
  })]
4888
- }), H3 === "below-thumb" && /* @__PURE__ */ jsx("div", {
4891
+ }), H4 === "below-thumb" && /* @__PURE__ */ jsx("div", {
4889
4892
  className: s14.readoutsBelow,
4890
4893
  children: y7.map((e24, n39) => /* @__PURE__ */ jsx("span", {
4891
4894
  "data-readout": "below",
@@ -5100,10 +5103,10 @@ function r27(r37) {
5100
5103
  });
5101
5104
  }
5102
5105
 
5103
- // ../ui/dist/chunks/range.module-CgURq-Ua.js
5106
+ // ../ui/dist/chunks/range.module-CvSfABmu.js
5104
5107
  var e18 = {
5105
- range: "_range_1uep0_9",
5106
- alpha: "_alpha_1uep0_74"
5108
+ range: "_range_1fs1g_9",
5109
+ alpha: "_alpha_1fs1g_74"
5107
5110
  };
5108
5111
  var _4 = {
5109
5112
  angleDeg: 135,
@@ -5737,7 +5740,7 @@ function I2(i33) {
5737
5740
  let e23 = /* @__PURE__ */ new Map();
5738
5741
  for (let t33 of k5.current) e23.set(t33.layer.id, t33.state);
5739
5742
  return e23;
5740
- }, []), H3 = useCallback((e23) => {
5743
+ }, []), H4 = useCallback((e23) => {
5741
5744
  let t33 = k5.current;
5742
5745
  for (let n39 of t33) {
5743
5746
  let t34 = e23.get(n39.layer.id);
@@ -5748,21 +5751,21 @@ function I2(i33) {
5748
5751
  let e23 = z4.current;
5749
5752
  if (e23.length === 0) return;
5750
5753
  let t33 = e23.pop();
5751
- B4.current.push(V4()), H3(t33);
5754
+ B4.current.push(V4()), H4(t33);
5752
5755
  }, [
5753
5756
  E5,
5754
5757
  V4,
5755
- H3
5758
+ H4
5756
5759
  ]), W3 = useCallback(() => {
5757
5760
  if (!E5) return;
5758
5761
  let e23 = B4.current;
5759
5762
  if (e23.length === 0) return;
5760
5763
  let t33 = e23.pop();
5761
- z4.current.push(V4()), H3(t33);
5764
+ z4.current.push(V4()), H4(t33);
5762
5765
  }, [
5763
5766
  E5,
5764
5767
  V4,
5765
- H3
5768
+ H4
5766
5769
  ]), G3 = useRef(() => {
5767
5770
  }), K3 = useRef(() => {
5768
5771
  }), q3 = useRef(() => {
@@ -6164,58 +6167,58 @@ function y5({ values: t33, min: n39, max: r37, step: i33, width: a31, height: o2
6164
6167
  });
6165
6168
  }
6166
6169
  var b4 = {
6167
- panel: "_panel_1x92f_9",
6168
- list: "_list_1x92f_3",
6169
- row: "_row_1x92f_4",
6170
- group: "_group_1x92f_4",
6171
- subpanel: "_subpanel_1x92f_3",
6172
- card: "_card_1x92f_14",
6173
- cardList: "_cardList_1x92f_15",
6174
- panelTitle: "_panelTitle_1x92f_42",
6175
- listPairs: "_listPairs_1x92f_3",
6176
- rowColor: "_rowColor_1x92f_4",
6177
- span: "_span_1x92f_79",
6178
- listOneUp: "_listOneUp_1x92f_87",
6179
- densityTight: "_densityTight_1x92f_98",
6180
- densityNormal: "_densityNormal_1x92f_110",
6181
- densityRoomy: "_densityRoomy_1x92f_122",
6182
- alignStart: "_alignStart_1x92f_144",
6183
- alignCenter: "_alignCenter_1x92f_149",
6184
- alignEnd: "_alignEnd_1x92f_154",
6185
- alignBaseline: "_alignBaseline_1x92f_159",
6186
- rowLabel: "_rowLabel_1x92f_186",
6187
- readout: "_readout_1x92f_208",
6188
- help: "_help_1x92f_220",
6189
- readoutInput: "_readoutInput_1x92f_252",
6190
- readoutGroup: "_readoutGroup_1x92f_290",
6191
- readoutUnit: "_readoutUnit_1x92f_296",
6192
- fieldUnitGroup: "_fieldUnitGroup_1x92f_303",
6193
- rowInline: "_rowInline_1x92f_324",
6194
- toggle: "_toggle_1x92f_342",
6195
- alpha: "_alpha_1x92f_485",
6196
- rowBlock: "_rowBlock_1x92f_494",
6197
- rowCheckbox: "_rowCheckbox_1x92f_514",
6198
- toggleButton: "_toggleButton_1x92f_557",
6199
- toggleButtonSelected: "_toggleButtonSelected_1x92f_583",
6200
- groupTitle: "_groupTitle_1x92f_602",
6201
- groupHead: "_groupHead_1x92f_624",
6202
- groupBody: "_groupBody_1x92f_4",
6203
- groupPairs: "_groupPairs_1x92f_648",
6204
- groupOneUp: "_groupOneUp_1x92f_661",
6205
- subpanelTitle: "_subpanelTitle_1x92f_684",
6206
- cardDragging: "_cardDragging_1x92f_728",
6207
- cardExpanded: "_cardExpanded_1x92f_732",
6208
- cardAccented: "_cardAccented_1x92f_736",
6209
- cardHead: "_cardHead_1x92f_751",
6210
- cardHandle: "_cardHandle_1x92f_772",
6211
- cardIndexBadge: "_cardIndexBadge_1x92f_785",
6212
- cardTitle: "_cardTitle_1x92f_803",
6213
- cardPrimary: "_cardPrimary_1x92f_813",
6214
- cardRemove: "_cardRemove_1x92f_828",
6215
- cardBody: "_cardBody_1x92f_857",
6216
- cardListWrap: "_cardListWrap_1x92f_869",
6217
- cardDropHint: "_cardDropHint_1x92f_873",
6218
- cardListEmpty: "_cardListEmpty_1x92f_881"
6170
+ panel: "_panel_1628n_9",
6171
+ list: "_list_1628n_3",
6172
+ row: "_row_1628n_4",
6173
+ group: "_group_1628n_4",
6174
+ subpanel: "_subpanel_1628n_3",
6175
+ card: "_card_1628n_14",
6176
+ cardList: "_cardList_1628n_15",
6177
+ panelTitle: "_panelTitle_1628n_42",
6178
+ listPairs: "_listPairs_1628n_3",
6179
+ rowColor: "_rowColor_1628n_4",
6180
+ span: "_span_1628n_79",
6181
+ listOneUp: "_listOneUp_1628n_87",
6182
+ densityTight: "_densityTight_1628n_98",
6183
+ densityNormal: "_densityNormal_1628n_110",
6184
+ densityRoomy: "_densityRoomy_1628n_122",
6185
+ alignStart: "_alignStart_1628n_144",
6186
+ alignCenter: "_alignCenter_1628n_149",
6187
+ alignEnd: "_alignEnd_1628n_154",
6188
+ alignBaseline: "_alignBaseline_1628n_159",
6189
+ rowLabel: "_rowLabel_1628n_186",
6190
+ readout: "_readout_1628n_208",
6191
+ help: "_help_1628n_220",
6192
+ readoutInput: "_readoutInput_1628n_252",
6193
+ readoutGroup: "_readoutGroup_1628n_293",
6194
+ readoutUnit: "_readoutUnit_1628n_299",
6195
+ fieldUnitGroup: "_fieldUnitGroup_1628n_306",
6196
+ rowInline: "_rowInline_1628n_327",
6197
+ toggle: "_toggle_1628n_345",
6198
+ alpha: "_alpha_1628n_488",
6199
+ rowBlock: "_rowBlock_1628n_497",
6200
+ rowCheckbox: "_rowCheckbox_1628n_517",
6201
+ toggleButton: "_toggleButton_1628n_560",
6202
+ toggleButtonSelected: "_toggleButtonSelected_1628n_586",
6203
+ groupTitle: "_groupTitle_1628n_605",
6204
+ groupHead: "_groupHead_1628n_627",
6205
+ groupBody: "_groupBody_1628n_4",
6206
+ groupPairs: "_groupPairs_1628n_651",
6207
+ groupOneUp: "_groupOneUp_1628n_664",
6208
+ subpanelTitle: "_subpanelTitle_1628n_687",
6209
+ cardDragging: "_cardDragging_1628n_731",
6210
+ cardExpanded: "_cardExpanded_1628n_735",
6211
+ cardAccented: "_cardAccented_1628n_739",
6212
+ cardHead: "_cardHead_1628n_754",
6213
+ cardHandle: "_cardHandle_1628n_775",
6214
+ cardIndexBadge: "_cardIndexBadge_1628n_788",
6215
+ cardTitle: "_cardTitle_1628n_806",
6216
+ cardPrimary: "_cardPrimary_1628n_816",
6217
+ cardRemove: "_cardRemove_1628n_831",
6218
+ cardBody: "_cardBody_1628n_860",
6219
+ cardListWrap: "_cardListWrap_1628n_872",
6220
+ cardDropHint: "_cardDropHint_1628n_876",
6221
+ cardListEmpty: "_cardListEmpty_1628n_884"
6219
6222
  };
6220
6223
  var x3 = {
6221
6224
  tight: b4.densityTight,
@@ -6305,38 +6308,42 @@ function O3({ label: e23, description: r37 }) {
6305
6308
  children: "\u24D8"
6306
6309
  }) }), /* @__PURE__ */ jsx(l7, { children: r37 })] });
6307
6310
  }
6308
- function k3({ label: t33, value: n39, min: r37, max: i33, step: s24 = 1, onChange: c22, onInput: u17, format: d15, unit: p13, layout: m12, description: g11, span: _10, density: v9, align: y7 }) {
6309
- let b6 = s24 >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(s24)))), x5 = u17 ?? c22, S6 = u17 ? c22 : void 0, C5 = useRef(null), w6 = useRef(S6);
6311
+ function k3(e23) {
6312
+ let t33 = useRef(null), n39 = useRef(e23);
6310
6313
  return useEffect(() => {
6311
- w6.current = S6;
6314
+ n39.current = e23;
6312
6315
  }), useEffect(() => {
6313
- let e23 = C5.current;
6314
- if (!e23) return;
6315
- let t34 = () => w6.current?.(Number(e23.value));
6316
- return e23.addEventListener("change", t34), () => e23.removeEventListener("change", t34);
6317
- }, []), /* @__PURE__ */ jsx(D3, {
6318
- span: _10,
6316
+ let e24 = t33.current;
6317
+ if (!e24) return;
6318
+ let r37 = () => n39.current?.(e24.value);
6319
+ return e24.addEventListener("change", r37), () => e24.removeEventListener("change", r37);
6320
+ }, []), t33;
6321
+ }
6322
+ function A3({ label: t33, value: n39, min: r37, max: i33, step: s24 = 1, onChange: c22, onInput: u17, format: d15, unit: f15, layout: p13, description: m12, span: h11, density: g11, align: _10 }) {
6323
+ let v9 = s24 >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(s24)))), y7 = u17 ?? c22, b6 = u17 ? c22 : void 0, x5 = k3(b6 && ((e23) => b6(Number(e23))));
6324
+ return /* @__PURE__ */ jsx(D3, {
6325
+ span: h11,
6319
6326
  label: t33,
6320
- readout: /* @__PURE__ */ jsx(A3, {
6327
+ readout: /* @__PURE__ */ jsx(j3, {
6321
6328
  value: n39,
6322
6329
  min: r37,
6323
6330
  max: i33,
6324
6331
  format: d15 ?? ((e23) => t21(e23, {
6325
6332
  useGrouping: false,
6326
- minimumFractionDigits: b6,
6327
- maximumFractionDigits: b6
6333
+ minimumFractionDigits: v9,
6334
+ maximumFractionDigits: v9
6328
6335
  })),
6329
- unit: p13,
6336
+ unit: f15,
6330
6337
  onCommit: (e23) => {
6331
- x5(e23), S6?.(e23);
6338
+ y7(e23), b6?.(e23);
6332
6339
  }
6333
6340
  }),
6334
- layout: m12,
6335
- description: g11,
6336
- density: v9,
6337
- align: y7,
6341
+ layout: p13,
6342
+ description: m12,
6343
+ density: g11,
6344
+ align: _10,
6338
6345
  children: /* @__PURE__ */ jsx("input", {
6339
- ref: C5,
6346
+ ref: x5,
6340
6347
  type: "range",
6341
6348
  className: e18.range,
6342
6349
  tabIndex: -1,
@@ -6349,12 +6356,12 @@ function k3({ label: t33, value: n39, min: r37, max: i33, step: s24 = 1, onChang
6349
6356
  a("property-panel", "slider", {
6350
6357
  label: t33,
6351
6358
  value: r38
6352
- }), x5(r38);
6359
+ }), y7(r38);
6353
6360
  }
6354
6361
  })
6355
6362
  });
6356
6363
  }
6357
- function A3({ value: e23, min: t33, max: n39, format: r37, unit: o27, onCommit: s24 }) {
6364
+ function j3({ value: e23, min: t33, max: n39, format: r37, unit: o27, onCommit: s24 }) {
6358
6365
  let [c22, d15] = useState(null), f15 = (e24) => r37 ? r37(e24) : t21(e24, {
6359
6366
  useGrouping: false,
6360
6367
  maximumFractionDigits: 20
@@ -6394,32 +6401,35 @@ function A3({ value: e23, min: t33, max: n39, format: r37, unit: o27, onCommit:
6394
6401
  }), m12]
6395
6402
  });
6396
6403
  }
6397
- function j3({ label: e23, value: t33, onChange: n39, alpha: r37, onAlphaChange: i33, alphaDisabled: a31, layout: s24, description: c22, span: d15, density: f15, align: p13 }) {
6404
+ function M3({ label: e23, value: t33, onChange: n39, onInput: r37, alpha: i33, onAlphaChange: a31, onAlphaInput: s24, alphaDisabled: c22, layout: d15, description: f15, span: p13, density: m12, align: h11 }) {
6405
+ let g11 = i33 != null, _10 = r37 ?? n39, v9 = k3(r37 && ((e24) => n39(e24))), y7 = s24 ?? a31, x5 = k3(s24 && a31 && ((e24) => a31(Number(e24))));
6398
6406
  return /* @__PURE__ */ jsxs(D3, {
6399
- span: d15,
6407
+ span: p13,
6400
6408
  label: e23,
6401
6409
  variant: "color",
6402
- layout: s24,
6403
- description: c22,
6404
- density: f15,
6405
- align: p13,
6410
+ layout: d15,
6411
+ description: f15,
6412
+ density: m12,
6413
+ align: h11,
6406
6414
  children: [/* @__PURE__ */ jsx("input", {
6415
+ ref: v9,
6407
6416
  type: "color",
6408
6417
  value: t33,
6409
- onChange: (e24) => n39(e24.target.value)
6410
- }), r37 != null && /* @__PURE__ */ jsx("input", {
6418
+ onChange: (e24) => _10(e24.target.value)
6419
+ }), g11 && /* @__PURE__ */ jsx("input", {
6420
+ ref: x5,
6411
6421
  type: "range",
6412
6422
  className: `${e18.range} ${e18.alpha} ${b4.alpha}`,
6413
6423
  min: 0,
6414
6424
  max: 1,
6415
6425
  step: 0.01,
6416
- value: r37,
6417
- disabled: a31,
6418
- onChange: (e24) => i33?.(Number(e24.target.value))
6426
+ value: i33,
6427
+ disabled: c22,
6428
+ onChange: (e24) => y7?.(Number(e24.target.value))
6419
6429
  })]
6420
6430
  });
6421
6431
  }
6422
- function M3({ label: e23, value: t33, onChange: n39, layout: r37, span: i33, description: a31, density: o27, align: s24 }) {
6432
+ function N2({ label: e23, value: t33, onChange: n39, layout: r37, span: i33, description: a31, density: o27, align: s24 }) {
6423
6433
  return /* @__PURE__ */ jsx(D3, {
6424
6434
  span: i33,
6425
6435
  label: e23,
@@ -6435,7 +6445,7 @@ function M3({ label: e23, value: t33, onChange: n39, layout: r37, span: i33, des
6435
6445
  })
6436
6446
  });
6437
6447
  }
6438
- function N2({ label: e23, value: t33, onChange: n39, placeholder: r37, maxLength: i33, layout: a31, description: o27, span: s24, density: c22, align: u17 }) {
6448
+ function P3({ label: e23, value: t33, onChange: n39, placeholder: r37, maxLength: i33, layout: a31, description: o27, span: s24, density: c22, align: u17 }) {
6439
6449
  return /* @__PURE__ */ jsx(D3, {
6440
6450
  span: s24,
6441
6451
  label: e23,
@@ -6452,38 +6462,43 @@ function N2({ label: e23, value: t33, onChange: n39, placeholder: r37, maxLength
6452
6462
  })
6453
6463
  });
6454
6464
  }
6455
- function P3({ label: e23, value: t33, onChange: n39, min: r37, max: i33, step: a31, placeholder: o27, unit: s24, layout: c22, description: d15, span: f15, density: p13, align: m12 }) {
6456
- let h11 = /* @__PURE__ */ jsx("input", {
6465
+ function F3({ label: e23, value: t33, onChange: n39, onInput: r37, min: i33, max: a31, step: o27, placeholder: s24, unit: c22, layout: d15, description: f15, span: p13, density: m12, align: h11 }) {
6466
+ let g11 = r37 ?? n39, _10 = /* @__PURE__ */ jsx("input", {
6467
+ ref: k3(r37 && ((e24) => {
6468
+ if (e24 === "") return;
6469
+ let t34 = Number(e24);
6470
+ Number.isFinite(t34) && n39(t34);
6471
+ })),
6457
6472
  type: "number",
6458
6473
  value: t33,
6459
- min: r37,
6460
- max: i33,
6461
- step: a31,
6462
- placeholder: o27,
6474
+ min: i33,
6475
+ max: a31,
6476
+ step: o27,
6477
+ placeholder: s24,
6463
6478
  onChange: (e24) => {
6464
6479
  let t34 = e24.target.value;
6465
6480
  if (t34 === "") return;
6466
- let r38 = Number(t34);
6467
- Number.isFinite(r38) && n39(r38);
6481
+ let n40 = Number(t34);
6482
+ Number.isFinite(n40) && g11(n40);
6468
6483
  }
6469
6484
  });
6470
6485
  return /* @__PURE__ */ jsx(D3, {
6471
- span: f15,
6486
+ span: p13,
6472
6487
  label: e23,
6473
- layout: c22,
6474
- description: d15,
6475
- density: p13,
6476
- align: m12,
6477
- children: s24 == null ? h11 : /* @__PURE__ */ jsxs("span", {
6488
+ layout: d15,
6489
+ description: f15,
6490
+ density: m12,
6491
+ align: h11,
6492
+ children: c22 == null ? _10 : /* @__PURE__ */ jsxs("span", {
6478
6493
  className: b4.fieldUnitGroup,
6479
- children: [h11, typeof s24 == "string" ? /* @__PURE__ */ jsx("span", {
6494
+ children: [_10, typeof c22 == "string" ? /* @__PURE__ */ jsx("span", {
6480
6495
  className: b4.readoutUnit,
6481
- children: s24
6482
- }) : s24]
6496
+ children: c22
6497
+ }) : c22]
6483
6498
  })
6484
6499
  });
6485
6500
  }
6486
- function F3({ label: t33, value: n39, options: r37, onChange: i33, layout: a31, description: o27, span: s24, density: c22, align: u17 }) {
6501
+ function I3({ label: t33, value: n39, options: r37, onChange: i33, layout: a31, description: o27, span: s24, density: c22, align: u17 }) {
6487
6502
  return /* @__PURE__ */ jsx(D3, {
6488
6503
  span: s24,
6489
6504
  label: t33,
@@ -6507,7 +6522,7 @@ function F3({ label: t33, value: n39, options: r37, onChange: i33, layout: a31,
6507
6522
  })
6508
6523
  });
6509
6524
  }
6510
- function I3({ label: e23, value: t33, options: n39, onChange: r37, layout: i33, description: a31, span: o27, density: s24, align: c22 }) {
6525
+ function L3({ label: e23, value: t33, options: n39, onChange: r37, layout: i33, description: a31, span: o27, density: s24, align: c22 }) {
6511
6526
  return /* @__PURE__ */ jsx(D3, {
6512
6527
  span: o27,
6513
6528
  label: e23,
@@ -6530,7 +6545,7 @@ function I3({ label: e23, value: t33, options: n39, onChange: r37, layout: i33,
6530
6545
  })
6531
6546
  });
6532
6547
  }
6533
- function L3({ title: e23, children: t33, className: n39, density: r37, align: i33 }) {
6548
+ function R2({ title: e23, children: t33, className: n39, density: r37, align: i33 }) {
6534
6549
  return /* @__PURE__ */ jsxs("div", {
6535
6550
  className: C3(b4.subpanel, {
6536
6551
  density: r37,
@@ -6542,7 +6557,7 @@ function L3({ title: e23, children: t33, className: n39, density: r37, align: i3
6542
6557
  }), t33]
6543
6558
  });
6544
6559
  }
6545
- function R2({ title: e23, primary: t33, accent: n39, index: r37, expanded: i33 = true, onToggleExpanded: a31, onRemove: o27, draggable: s24, onPressHandle: c22, onReleaseHandle: d15, onDragStart: f15, onDragEnd: p13, onDragOver: m12, onDragLeave: h11, onDrop: g11, dragging: _10, children: v9, className: y7 }) {
6560
+ function z2({ title: e23, primary: t33, accent: n39, index: r37, expanded: i33 = true, onToggleExpanded: a31, onRemove: o27, draggable: s24, onPressHandle: c22, onReleaseHandle: d15, onDragStart: f15, onDragEnd: p13, onDragOver: m12, onDragLeave: h11, onDrop: g11, dragging: _10, children: v9, className: y7 }) {
6546
6561
  let x5 = `${i33 ? ` ${b4.cardExpanded}` : ""}${_10 ? ` ${b4.cardDragging}` : ""}${n39 ? ` ${b4.cardAccented}` : ""}`, S6 = `${b4.card}${x5}${y7 ? ` ${y7}` : ""}`, C5 = n39 ? { "--wzl-effect-card-accent": n39 } : void 0, w6 = a31 ? {
6547
6562
  role: "button",
6548
6563
  tabIndex: 0,
@@ -6570,7 +6585,7 @@ function R2({ title: e23, primary: t33, accent: n39, index: r37, expanded: i33 =
6570
6585
  title: "Drag to reorder",
6571
6586
  onMouseDown: c22,
6572
6587
  onMouseUp: d15,
6573
- children: /* @__PURE__ */ jsx(z2, {})
6588
+ children: /* @__PURE__ */ jsx(B2, {})
6574
6589
  }) : /* @__PURE__ */ jsx("button", {
6575
6590
  type: "button",
6576
6591
  className: `${b4.cardIndexBadge} ${b4.cardHandle}`,
@@ -6608,7 +6623,7 @@ function R2({ title: e23, primary: t33, accent: n39, index: r37, expanded: i33 =
6608
6623
  })]
6609
6624
  });
6610
6625
  }
6611
- function z2() {
6626
+ function B2() {
6612
6627
  return /* @__PURE__ */ jsxs("svg", {
6613
6628
  width: "10",
6614
6629
  height: "14",
@@ -6654,7 +6669,7 @@ function z2() {
6654
6669
  ]
6655
6670
  });
6656
6671
  }
6657
- function B2({ items: e23, renderItem: t33, onReorder: n39, empty: r37, defaultExpandedIds: i33 }) {
6672
+ function V2({ items: e23, renderItem: t33, onReorder: n39, empty: r37, defaultExpandedIds: i33 }) {
6658
6673
  let [a31, o27] = useState(() => new Set(i33 ?? [])), [s24, d15] = useState(null), [f15, p13] = useState(null), [m12, h11] = useState(null);
6659
6674
  return e23.length === 0 ? /* @__PURE__ */ jsx(Fragment, { children: r37 ?? /* @__PURE__ */ jsx("div", {
6660
6675
  className: b4.cardListEmpty,
@@ -6715,7 +6730,7 @@ function B2({ items: e23, renderItem: t33, onReorder: n39, empty: r37, defaultEx
6715
6730
  })
6716
6731
  });
6717
6732
  }
6718
- function V2({ title: e23, hidden: t33, collapsible: n39, defaultCollapsed: i33, collapsed: a31, onCollapsedChange: o27, children: s24, className: c22, pack: d15 = "auto-color", density: f15, align: m12 }) {
6733
+ function H2({ title: e23, hidden: t33, collapsible: n39, defaultCollapsed: i33, collapsed: a31, onCollapsedChange: o27, children: s24, className: c22, pack: d15 = "auto-color", density: f15, align: m12 }) {
6719
6734
  let h11 = useId(), [_10, v9] = useState(i33 ?? false);
6720
6735
  if (t33) return null;
6721
6736
  let y7 = n39 ?? (i33 !== void 0 || a31 !== void 0 || o27 !== void 0), x5 = y7 && (a31 ?? _10), S6 = () => {
@@ -7202,7 +7217,7 @@ function g10(l21) {
7202
7217
  z4.current = C5;
7203
7218
  let B4 = useRef((e23) => {
7204
7219
  e23.key === "Escape" && z4.current?.();
7205
- }), V4 = useRef(null), H3 = useCallback((e23) => {
7220
+ }), V4 = useRef(null), H4 = useCallback((e23) => {
7206
7221
  V4.current?.removeEventListener("keydown", B4.current), V4.current = e23, e23?.addEventListener("keydown", B4.current);
7207
7222
  }, []), U3 = useId(), W3 = T5 !== void 0;
7208
7223
  useEffect(() => {
@@ -7261,7 +7276,7 @@ function g10(l21) {
7261
7276
  className: m11.dialog,
7262
7277
  "aria-label": j6,
7263
7278
  "aria-labelledby": M5,
7264
- ref: H3,
7279
+ ref: H4,
7265
7280
  children: ({ close: e23 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
7266
7281
  (v9 !== void 0 || R5) && /* @__PURE__ */ jsxs("header", {
7267
7282
  className: m11.header,
@@ -7315,6 +7330,6 @@ function Jn(e23, t33) {
7315
7330
  return e23 <= n39 ? t33.cBot : e23 >= r37 ? t33.cTop : e23 <= t33.midL ? t33.cBot + (t33.cPeak - t33.cBot) * ((e23 - n39) / (t33.midL - n39)) : t33.cPeak + (t33.cTop - t33.cPeak) * ((e23 - t33.midL) / (r37 - t33.midL));
7316
7331
  }
7317
7332
 
7318
- export { A4 as A, B2 as B, C4 as C, D3 as D, E4 as E, E3 as E2, F3 as F, I3 as I, Je, Jn, L2 as L, L3 as L2, Lt, M4 as M, M3 as M2, N3 as N, N2, P4 as P, P3 as P2, R2 as R, T4 as T, T3 as T2, U2 as U, V2 as V, _7 as _, _8 as _2, a, a9 as a2, a14 as a3, a20 as a4, b5 as b, b as b2, c11 as c2, c12 as c3, c19 as c4, ce2 as ce, d5 as d, d12 as d2, e14 as e, e15 as e2, f2, f8 as f3, g, g9 as g2, g10 as g3, i, i17 as i2, j4 as j, j3 as j2, k3 as k, l4 as l, l5 as l2, l6 as l3, l18 as l4, le2 as le, m2 as m, n4 as n2, n12 as n3, n21 as n4, n31 as n5, n34 as n6, n38 as n7, o, o14 as o2, o22 as o3, o24 as o4, p4 as p2, qn, r2 as r, r4 as r3, r12 as r4, r20 as r5, r25 as r6, r26 as r7, r27 as r8, r29 as r9, s10 as s, s11 as s2, s12 as s3, s19 as s4, s21 as s5, t2 as t, t11 as t2, t21 as t3, u2, u4 as u3, u7 as u4, u14 as u5, v7 as v, v4 as v2, v8 as v3, w4 as w, w3 as w2, x4 as x, y6 as y, y3 as y2, y5 as y3 };
7319
- //# sourceMappingURL=chunk-MHAGC6VD.js.map
7320
- //# sourceMappingURL=chunk-MHAGC6VD.js.map
7333
+ export { A4 as A, A3 as A2, C4 as C, D3 as D, E4 as E, E3 as E2, F3 as F, H2 as H, I3 as I, Je, Jn, L2 as L, L3 as L2, Lt, M4 as M, M3 as M2, N3 as N, N2, P4 as P, P3 as P2, R2 as R, T4 as T, T3 as T2, U2 as U, V2 as V, _7 as _, _8 as _2, a, a9 as a2, a14 as a3, a20 as a4, b5 as b, b as b2, c11 as c2, c12 as c3, c19 as c4, ce2 as ce, d5 as d, d12 as d2, e14 as e, e15 as e2, f2, f8 as f3, g, g9 as g2, g10 as g3, i, i17 as i2, j4 as j, l4 as l, l5 as l2, l6 as l3, l18 as l4, le2 as le, m2 as m, n4 as n2, n12 as n3, n21 as n4, n31 as n5, n34 as n6, n38 as n7, o, o14 as o2, o22 as o3, o24 as o4, p4 as p2, qn, r2 as r, r4 as r3, r12 as r4, r20 as r5, r25 as r6, r26 as r7, r27 as r8, r29 as r9, s10 as s, s11 as s2, s12 as s3, s19 as s4, s21 as s5, t2 as t, t11 as t2, t21 as t3, u2, u4 as u3, u7 as u4, u14 as u5, v7 as v, v4 as v2, v8 as v3, w4 as w, w3 as w2, x4 as x, y6 as y, y3 as y2, y5 as y3, z2 as z };
7334
+ //# sourceMappingURL=chunk-W3ECWC2K.js.map
7335
+ //# sourceMappingURL=chunk-W3ECWC2K.js.map