@fiscozen/checkbox 3.0.3 → 3.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @fiscozen/checkbox
2
2
 
3
+ ## 3.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a243ebb]
8
+ - @fiscozen/composables@1.0.4
9
+ - @fiscozen/tooltip@3.0.3
10
+
11
+ ## 3.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [351b6b7]
16
+ - @fiscozen/badge@3.0.1
17
+
3
18
  ## 3.0.3
4
19
 
5
20
  ### Patch Changes
package/dist/checkbox.js CHANGED
@@ -52,7 +52,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
52
52
  right: parseFloat(e.marginRight),
53
53
  top: parseFloat(e.marginTop),
54
54
  bottom: parseFloat(e.marginBottom)
55
- }), ne = {
55
+ }), ne = (e) => e !== null && (e.width > 0 || e.height > 0), re = {
56
56
  bottom: (e, t) => ({
57
57
  position: {
58
58
  x: e.left - t.left + e.width / 2,
@@ -173,8 +173,8 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
173
173
  y: -100
174
174
  }
175
175
  })
176
- }, re = (e, t, n) => {
177
- let r = ne[e];
176
+ }, ie = (e, t, n) => {
177
+ let r = re[e];
178
178
  return r ? r(t, n) : {
179
179
  position: {
180
180
  x: 0,
@@ -185,7 +185,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
185
185
  y: 0
186
186
  }
187
187
  };
188
- }, ie = {
188
+ }, ae = {
189
189
  bottom: (e, t) => ({
190
190
  position: {
191
191
  x: e.left + e.width / 2,
@@ -306,8 +306,8 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
306
306
  y: 0
307
307
  }
308
308
  })
309
- }, ae = (e, t, n) => {
310
- let r = ie[e];
309
+ }, oe = (e, t, n) => {
310
+ let r = ae[e];
311
311
  return r ? r(t, n) : {
312
312
  position: {
313
313
  x: 0,
@@ -318,7 +318,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
318
318
  y: 0
319
319
  }
320
320
  };
321
- }, oe = (e, t, n, r) => {
321
+ }, se = (e, t, n, r) => {
322
322
  let i = { ...e }, a = { ...r };
323
323
  if (e.x < n.left && (i.x = n.left, a.x = 0), e.x + t.width > n.right) {
324
324
  let e = n.right - t.width;
@@ -332,7 +332,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
332
332
  position: i,
333
333
  transform: a
334
334
  };
335
- }, se = (e, t, n, r, i) => {
335
+ }, ce = (e, t, n, r, i) => {
336
336
  let a = i ? null : t;
337
337
  switch (e) {
338
338
  case "auto": return K(a, n, r);
@@ -343,7 +343,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
343
343
  case "auto-vertical-end": return K(a, n, r, "end", !0);
344
344
  default: return "bottom-start";
345
345
  }
346
- }, ce = (e) => e.startsWith("auto"), le = (e) => {
346
+ }, le = (e) => e.startsWith("auto"), ue = (e) => {
347
347
  let t = S("auto"), n = S(), r = S(), i = S(), a = S(), o = x({ position: {
348
348
  x: 0,
349
349
  y: 0
@@ -379,8 +379,12 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
379
379
  left: "0px"
380
380
  });
381
381
  let f = u(d);
382
- r.value = f.element, i.value = f.opener ?? void 0, a.value = f.container, c.value.observe(d.element), c.value.observe(d.container), ce(n.value) && d.opener && (n.value = se(n.value, d.container, d.element, d.opener, e.useViewport?.value ?? !1));
383
- let p = te(window.getComputedStyle(d.element)), m = d.opener && f.opener ? re(n.value, f.opener, p) : ae(n.value, f.container, f.element), h = oe(ee(f.element, m.position, m.transform.x, m.transform.y), f.element, f.container, m.transform);
382
+ if (r.value = f.element, i.value = f.opener ?? void 0, a.value = f.container, d.opener && !ne(f.opener)) {
383
+ d.element.style.display = "none";
384
+ return;
385
+ }
386
+ c.value.observe(d.element), c.value.observe(d.container), le(n.value) && d.opener && (n.value = ce(n.value, d.container, d.element, d.opener, e.useViewport?.value ?? !1));
387
+ let p = te(window.getComputedStyle(d.element)), m = d.opener && f.opener ? ie(n.value, f.opener, p) : oe(n.value, f.container, f.element), h = se(ee(f.element, m.position, m.transform.x, m.transform.y), f.element, f.container, m.transform);
384
388
  o.position.x = h.position.x, o.position.y = h.position.y, Object.assign(d.element.style, {
385
389
  top: `${o.position.y}px`,
386
390
  left: `${o.position.x}px`,
@@ -396,7 +400,7 @@ var G = new DOMRect(0, 0, window.innerWidth, window.innerHeight), K = (e, t, n,
396
400
  };
397
401
  //#endregion
398
402
  //#region ../composables/src/composables/useMediaQuery.ts
399
- function ue(e) {
403
+ function de(e) {
400
404
  let t = window.matchMedia(e), r = S(t.matches);
401
405
  function i(e) {
402
406
  r.value = e.matches;
@@ -1926,7 +1930,7 @@ var J = {
1926
1930
  },
1927
1931
  $themes: [],
1928
1932
  $metadata: { tokenSetOrder: ["global", "alias"] }
1929
- }, de = {
1933
+ }, fe = {
1930
1934
  $schema: "http://json-schema.org/draft-07/schema#",
1931
1935
  description: "Lista dei colori da includere nella safelist di Tailwind. Per aggiungere un nuovo colore, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
1932
1936
  safeColorNames: [
@@ -1938,7 +1942,7 @@ var J = {
1938
1942
  "grey",
1939
1943
  "core"
1940
1944
  ]
1941
- }, fe = {
1945
+ }, pe = {
1942
1946
  $schema: "http://json-schema.org/draft-07/schema#",
1943
1947
  description: "Lista dei colori semantici da includere nella safelist di Tailwind. Per aggiungere un nuovo colore semantico, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
1944
1948
  semanticColorNames: [
@@ -1947,8 +1951,8 @@ var J = {
1947
1951
  "success",
1948
1952
  "info"
1949
1953
  ]
1950
- }, pe = de.safeColorNames, me = fe.semanticColorNames, Y = {};
1951
- pe.forEach((e) => {
1954
+ }, me = fe.safeColorNames, he = pe.semanticColorNames, Y = {};
1955
+ me.forEach((e) => {
1952
1956
  let t = J.global[e];
1953
1957
  t && Object.keys(t).forEach((n) => {
1954
1958
  let r = t[n]?.value;
@@ -1956,7 +1960,7 @@ pe.forEach((e) => {
1956
1960
  });
1957
1961
  });
1958
1962
  var X = J.global.semantic;
1959
- X && me.forEach((e) => {
1963
+ X && he.forEach((e) => {
1960
1964
  let t = X[e];
1961
1965
  t && typeof t == "object" && Object.keys(t).forEach((n) => {
1962
1966
  let r = t[n]?.value;
@@ -1968,7 +1972,7 @@ X && me.forEach((e) => {
1968
1972
  });
1969
1973
  //#endregion
1970
1974
  //#region ../style/src/constants.ts
1971
- var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), ge = /* @__PURE__ */ u({
1975
+ var ge = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), _e = /* @__PURE__ */ u({
1972
1976
  __name: "FzFloating",
1973
1977
  props: {
1974
1978
  isOpen: {
@@ -1989,7 +1993,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
1989
1993
  },
1990
1994
  emits: ["fzfloating:setPosition"],
1991
1995
  setup(e, { expose: s, emit: c }) {
1992
- let l = e, u = c, d = S(null), f = S(null), p = P(), m = ue(`(max-width: ${he.xs})`), v = !1, b = !1, x = null, C = null, T = {
1996
+ let l = e, u = c, d = S(null), f = S(null), p = P(), m = de(`(max-width: ${ge.xs})`), v = !1, b = !1, x = null, C = null, T = {
1993
1997
  position: l.position,
1994
1998
  element: { domRef: d },
1995
1999
  container: { domRef: A(l.container || document.body) },
@@ -2000,7 +2004,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2000
2004
  }
2001
2005
  }, E = j(T);
2002
2006
  p.opener && (T.opener = { domRef: f });
2003
- let D = le(E), O = () => {
2007
+ let D = ue(E), O = () => {
2004
2008
  v || !b || (v = !0, requestAnimationFrame(() => {
2005
2009
  b && l.isOpen && D.setPosition(), v = !1;
2006
2010
  }));
@@ -2072,11 +2076,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2072
2076
  })], 2), [[I, n.$slots.default && (!n.$slots.opener || n.$slots.opener && e.isOpen)]])])) : i("", !0)
2073
2077
  ]));
2074
2078
  }
2075
- }), _e = [
2079
+ }), ve = [
2076
2080
  "aria-label",
2077
2081
  "aria-describedby",
2078
2082
  "tabindex"
2079
- ], ve = ["aria-hidden"], ye = 100, be = "text-core-white max-w-[200px] p-8 text-sm leading-[16px] flex flex-row items-start justify-center", xe = /* @__PURE__ */ u({
2083
+ ], ye = ["aria-hidden"], be = 100, xe = "text-core-white max-w-[200px] p-8 text-sm leading-[16px] flex flex-row items-start justify-center", Se = /* @__PURE__ */ u({
2080
2084
  __name: "FzTooltip",
2081
2085
  props: {
2082
2086
  position: { default: "auto" },
@@ -2155,7 +2159,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2155
2159
  function F() {
2156
2160
  T.value &&= (clearTimeout(T.value), null), T.value = setTimeout(() => {
2157
2161
  !x.value && !C.value && j();
2158
- }, ye);
2162
+ }, be);
2159
2163
  }
2160
2164
  function I() {
2161
2165
  x.value = !0, T.value &&= (clearTimeout(T.value), null);
@@ -2178,7 +2182,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2178
2182
  e ? A() : j();
2179
2183
  }), v(() => {
2180
2184
  T.value && clearTimeout(T.value);
2181
- }), (n, a) => (y(), r(M(ge), {
2185
+ }), (n, a) => (y(), r(M(_e), {
2182
2186
  teleport: !0,
2183
2187
  "is-open": b.value,
2184
2188
  position: e.position,
@@ -2198,10 +2202,10 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2198
2202
  onFocusin: B,
2199
2203
  onFocusout: H,
2200
2204
  onKeydown: U
2201
- }, [w(n.$slots, "default", {}, void 0, !0)], 40, _e)]),
2205
+ }, [w(n.$slots, "default", {}, void 0, !0)], 40, ve)]),
2202
2206
  default: R(() => [o("div", {
2203
2207
  id: g,
2204
- class: h(be),
2208
+ class: h(xe),
2205
2209
  role: "tooltip",
2206
2210
  "aria-hidden": !b.value,
2207
2211
  onMouseenter: I,
@@ -2219,7 +2223,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2219
2223
  { "text-core-black": t.status === "alert" }
2220
2224
  ]),
2221
2225
  "aria-hidden": !0
2222
- }, null, 8, ["name", "class"])) : i("", !0), o("span", { class: h(["basis-0 grow shrink-0 break-normal fz__tooltip__text", { "text-core-black": t.status === "alert" }]) }, [w(n.$slots, "text", {}, () => [c(k(t.text), 1)], !0)], 2)], 40, ve)]),
2226
+ }, null, 8, ["name", "class"])) : i("", !0), o("span", { class: h(["basis-0 grow shrink-0 break-normal fz__tooltip__text", { "text-core-black": t.status === "alert" }]) }, [w(n.$slots, "text", {}, () => [c(k(t.text), 1)], !0)], 2)], 40, ye)]),
2223
2227
  _: 3
2224
2228
  }, 8, [
2225
2229
  "is-open",
@@ -2231,12 +2235,12 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2231
2235
  let n = e.__vccOpts || e;
2232
2236
  for (let [e, r] of t) n[e] = r;
2233
2237
  return n;
2234
- }, Se = /* @__PURE__ */ Z(xe, [["__scopeId", "data-v-e4c0b632"]]), Q = {
2238
+ }, Ce = /* @__PURE__ */ Z(Se, [["__scopeId", "data-v-e4c0b632"]]), Q = {
2235
2239
  xs: "backoffice",
2236
2240
  sm: "backoffice",
2237
2241
  md: "backoffice",
2238
2242
  lg: "frontoffice"
2239
- }, Ce = ["disabled", "aria-disabled"], we = /* @__PURE__ */ u({
2243
+ }, we = ["disabled", "aria-disabled"], Te = /* @__PURE__ */ u({
2240
2244
  __fzKind: "@fiscozen/button/FzButton",
2241
2245
  __name: "FzButton",
2242
2246
  props: {
@@ -2320,6 +2324,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2320
2324
  let e = !!(t.label || o.default), n = !!t.iconName, r = t.overrideContainerClass && n;
2321
2325
  return e && n || r;
2322
2326
  }), f = [
2327
+ "fz-button",
2323
2328
  "relative",
2324
2329
  "rounded",
2325
2330
  "flex",
@@ -2330,7 +2335,9 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2330
2335
  "!text-[16px]",
2331
2336
  "!leading-[20px]",
2332
2337
  "border-1",
2338
+ "border-solid",
2333
2339
  "border-transparent",
2340
+ "appearance-none",
2334
2341
  "gap-8"
2335
2342
  ], p = [
2336
2343
  "flex",
@@ -2380,9 +2387,9 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2380
2387
  size: "md",
2381
2388
  variant: e.iconVariant
2382
2389
  }, null, 8, ["name", "variant"])) : i("", !0)])])) : i("", !0)
2383
- ], 10, Ce));
2390
+ ], 10, we));
2384
2391
  }
2385
- }), Te = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2392
+ }), Ee = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2386
2393
  inheritAttrs: !1,
2387
2394
  __fzKind: "@fiscozen/button/FzIconButton",
2388
2395
  __name: "FzIconButton",
@@ -2449,7 +2456,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2449
2456
  "fz-icon-button-wrapper--backoffice": r.value === "backoffice",
2450
2457
  "fz-icon-button-wrapper--frontoffice": r.value === "frontoffice"
2451
2458
  }
2452
- ]) }, [l(we, p(e.$attrs, {
2459
+ ]) }, [l(Te, p(e.$attrs, {
2453
2460
  disabled: t.disabled,
2454
2461
  environment: r.value,
2455
2462
  variant: t.variant,
@@ -2471,7 +2478,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2471
2478
  "aria-hidden": "true"
2472
2479
  }, null, 2)) : i("", !0)], 2));
2473
2480
  }
2474
- }), [["__scopeId", "data-v-84505903"]]), Ee = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2481
+ }), [["__scopeId", "data-v-84505903"]]), De = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2475
2482
  __name: "FzContainer",
2476
2483
  props: {
2477
2484
  main: {
@@ -2510,11 +2517,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2510
2517
  _: 3
2511
2518
  }, 8, ["class"]));
2512
2519
  }
2513
- }), [["__scopeId", "data-v-8c40daeb"]]), De = ["aria-disabled"], Oe = [
2520
+ }), [["__scopeId", "data-v-8c40daeb"]]), Oe = ["aria-disabled"], ke = [
2514
2521
  "href",
2515
2522
  "target",
2516
2523
  "rel"
2517
- ], ke = /* @__PURE__ */ u({
2524
+ ], Ae = /* @__PURE__ */ u({
2518
2525
  __fzKind: "@fiscozen/link/FzLink",
2519
2526
  __name: "FzLink",
2520
2527
  props: {
@@ -2591,13 +2598,13 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2591
2598
  "aria-disabled": e.disabled ? "true" : "false",
2592
2599
  role: "link",
2593
2600
  "aria-label": "Link disabled"
2594
- }, [w(t.$slots, "default")], 10, De)) : e.external ? (y(), a("a", {
2601
+ }, [w(t.$slots, "default")], 10, Oe)) : e.external ? (y(), a("a", {
2595
2602
  key: 1,
2596
2603
  href: g.value,
2597
2604
  class: h(p.value),
2598
2605
  target: e.target,
2599
2606
  rel: _.value
2600
- }, [w(t.$slots, "default")], 10, Oe)) : (y(), r(i, {
2607
+ }, [w(t.$slots, "default")], 10, ke)) : (y(), r(i, {
2601
2608
  key: 2,
2602
2609
  to: e.to,
2603
2610
  replace: e.replace,
@@ -2614,10 +2621,10 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2614
2621
  ]));
2615
2622
  };
2616
2623
  }
2617
- }), Ae = { class: "flex flex-col flex-1" }, je = {
2624
+ }), je = { class: "flex flex-col flex-1" }, Me = {
2618
2625
  key: 0,
2619
2626
  class: "leading-[20px]"
2620
- }, Me = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2627
+ }, Ne = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2621
2628
  __name: "FzAlert",
2622
2629
  props: {
2623
2630
  tone: {},
@@ -2696,7 +2703,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2696
2703
  return y(), a("div", {
2697
2704
  class: h(_.value),
2698
2705
  onClick: G
2699
- }, [l(M(Ee), {
2706
+ }, [l(M(De), {
2700
2707
  horizontal: "",
2701
2708
  gap: T.value,
2702
2709
  class: h(["flex-1", C.value]),
@@ -2711,17 +2718,17 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2711
2718
  "name",
2712
2719
  "size",
2713
2720
  "class"
2714
- ]), o("div", Ae, [
2715
- e.title && !g.value ? z((y(), a("p", je, [c(k(e.title), 1)])), [[s]]) : i("", !0),
2721
+ ]), o("div", je, [
2722
+ e.title && !g.value ? z((y(), a("p", Me, [c(k(e.title), 1)])), [[s]]) : i("", !0),
2716
2723
  F.value ? (y(), a("p", {
2717
2724
  key: 1,
2718
2725
  class: h(O.value)
2719
2726
  }, [w(t.$slots, "default", {}, void 0, !0)], 2)) : i("", !0),
2720
- D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(Ee), {
2727
+ D.value ? w(t.$slots, "action", { key: 2 }, () => [l(M(De), {
2721
2728
  horizontal: "",
2722
2729
  gap: "sm"
2723
2730
  }, {
2724
- default: R(() => [e.showButtonAction ? (y(), r(M(we), {
2731
+ default: R(() => [e.showButtonAction ? (y(), r(M(Te), {
2725
2732
  key: 0,
2726
2733
  onClick: I,
2727
2734
  tooltip: e.buttonActionTooltip,
@@ -2730,7 +2737,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2730
2737
  }, {
2731
2738
  default: R(() => [c(k(e.buttonActionLabel), 1)]),
2732
2739
  _: 1
2733
- }, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(ke), {
2740
+ }, 8, ["tooltip", "environment"])) : i("", !0), e.showLinkAction ? (y(), r(M(Ae), {
2734
2741
  key: 1,
2735
2742
  to: e.linkActionLocation,
2736
2743
  onClick: I,
@@ -2749,7 +2756,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2749
2756
  })], !0) : i("", !0)
2750
2757
  ])]),
2751
2758
  _: 3
2752
- }, 8, ["gap", "class"]), U.value ? (y(), r(M(Te), {
2759
+ }, 8, ["gap", "class"]), U.value ? (y(), r(M(Ee), {
2753
2760
  key: 0,
2754
2761
  iconName: j.value,
2755
2762
  environment: L.value,
@@ -2758,11 +2765,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2758
2765
  }, null, 8, ["iconName", "environment"])) : i("", !0)], 2);
2759
2766
  };
2760
2767
  }
2761
- }), [["__scopeId", "data-v-3d1f9d4e"]]), Ne = /* @__PURE__ */ u({
2768
+ }), [["__scopeId", "data-v-3d1f9d4e"]]), Pe = /* @__PURE__ */ u({
2762
2769
  __name: "ErrorAlert",
2763
2770
  props: { id: {} },
2764
2771
  setup(e) {
2765
- return (t, n) => (y(), r(M(Me), {
2772
+ return (t, n) => (y(), r(M(Ne), {
2766
2773
  id: e.id,
2767
2774
  tone: "error",
2768
2775
  variant: "text",
@@ -2775,11 +2782,11 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2775
2782
  _: 3
2776
2783
  }, 8, ["id"]));
2777
2784
  }
2778
- }), Pe = { class: "flex justify-center flex-col w-fit gap-4" }, Fe = [
2785
+ }), Fe = { class: "flex justify-center flex-col w-fit gap-4" }, Ie = [
2779
2786
  "data-emphasis",
2780
2787
  "data-error",
2781
2788
  "data-disabled"
2782
- ], Ie = [
2789
+ ], Le = [
2783
2790
  "id",
2784
2791
  "disabled",
2785
2792
  "required",
@@ -2791,7 +2798,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2791
2798
  "aria-describedby",
2792
2799
  "aria-labelledby",
2793
2800
  "aria-owns"
2794
- ], Le = ["id", "for"], Re = "w-0 h-0 peer fz-hidden-input", ze = "\n flex gap-6 items-start hover:cursor-pointer text-core-black\n peer-focus:[&_div]:after:border-1\n peer-focus:[&_div]:after:border-solid\n peer-focus:[&_div]:after:rounded-[2px]\n peer-focus:[&_div]:after:border-blue-200\n peer-focus:[&_div]:after:content-['']\n peer-focus:[&_div]:after:top-0\n peer-focus:[&_div]:after:left-0\n peer-focus:[&_div]:after:right-0\n peer-focus:[&_div]:after:bottom-0\n peer-focus:[&_div]:after:absolute\n", Be = "relative", $ = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2801
+ ], Re = ["id", "for"], ze = "w-0 h-0 peer fz-hidden-input", Be = "\n flex gap-6 items-start hover:cursor-pointer text-core-black\n peer-focus:[&_div]:after:border-1\n peer-focus:[&_div]:after:border-solid\n peer-focus:[&_div]:after:rounded-[2px]\n peer-focus:[&_div]:after:border-blue-200\n peer-focus:[&_div]:after:content-['']\n peer-focus:[&_div]:after:top-0\n peer-focus:[&_div]:after:left-0\n peer-focus:[&_div]:after:right-0\n peer-focus:[&_div]:after:bottom-0\n peer-focus:[&_div]:after:absolute\n", Ve = "relative", $ = /* @__PURE__ */ Z(/* @__PURE__ */ u({
2795
2802
  __name: "FzCheckbox",
2796
2803
  props: /* @__PURE__ */ f({
2797
2804
  label: {},
@@ -2840,7 +2847,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2840
2847
  }), m = n(() => u.value ?? u.label), g = u.checkboxId || U(), v = N(t, "modelValue"), b = s, x = O(null), S = n(() => v.value == null ? !1 : typeof v.value == "boolean" ? v.value : v.value.includes(m.value)), C = n(() => u.disabled ? "text-grey-300 [&_div]:text-grey-300" : u.error ? "text-semantic-error-200 [&_div]:text-semantic-error-200 peer-checked:[&_div]:text-semantic-error-200 peer-indeterminate:[&_div]:text-semantic-error-200" : u.emphasis ? "text-core-black [&_div]:text-blue-500 peer-checked:[&_div]:text-blue-500 peer-indeterminate:[&_div]:text-blue-500" : "text-core-black peer-checked:[&_div]:text-grey-500 peer-indeterminate:[&_div]:text-grey-500"), T = n(() => u.disabled ? "text-grey-300" : u.error ? "text-semantic-error-200" : u.emphasis ? "text-blue-500" : "text-grey-400"), E = n(() => ["text-base", C.value]), D = n(() => [T.value]), A = n(() => u.indeterminate ? d.INDETERMINATE : S.value ? d.CHECKED : d.UNCHECKED), j = n(() => u.indeterminate || S.value ? f.SOLID : f.REGULAR);
2841
2848
  return _(() => {
2842
2849
  v.value != null && (typeof v.value == "boolean" ? v.value && x.value?.dispatchEvent(new Event("change")) : v.value.includes(m.value) && x.value?.dispatchEvent(new Event("change")));
2843
- }), (n, s) => (y(), a("div", Pe, [
2850
+ }), (n, s) => (y(), a("div", Fe, [
2844
2851
  o("div", {
2845
2852
  class: "flex items-start group",
2846
2853
  "data-emphasis": t.emphasis || void 0,
@@ -2851,7 +2858,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2851
2858
  type: "checkbox",
2852
2859
  id: M(g),
2853
2860
  disabled: t.disabled,
2854
- class: h(Re),
2861
+ class: h(ze),
2855
2862
  required: t.required,
2856
2863
  value: t.value,
2857
2864
  onChange: s[0] ||= (e) => b("change", e),
@@ -2865,23 +2872,23 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2865
2872
  "aria-owns": u.ariaOwns,
2866
2873
  ref_key: "refCheckbox",
2867
2874
  ref: x
2868
- }, null, 40, Ie), [[F, v.value]]),
2875
+ }, null, 40, Le), [[F, v.value]]),
2869
2876
  o("label", {
2870
2877
  id: `${M(g)}-label`,
2871
2878
  for: M(g),
2872
- class: h([ze, E.value])
2879
+ class: h([Be, E.value])
2873
2880
  }, [l(M(V), {
2874
2881
  name: A.value,
2875
2882
  size: "md",
2876
- class: h([Be, D.value]),
2883
+ class: h([Ve, D.value]),
2877
2884
  variant: j.value,
2878
2885
  "aria-hidden": "true"
2879
2886
  }, null, 8, [
2880
2887
  "name",
2881
2888
  "class",
2882
2889
  "variant"
2883
- ]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10, Le),
2884
- t.tooltip ? (y(), r(M(Se), p({ key: 0 }, t.tooltip, { class: "ml-6" }), {
2890
+ ]), t.standalone ? i("", !0) : (y(), a(e, { key: 0 }, [c(k(t.label), 1)], 64))], 10, Re),
2891
+ t.tooltip ? (y(), r(M(Ce), p({ key: 0 }, t.tooltip, { class: "ml-6" }), {
2885
2892
  default: R(() => [l(M(V), {
2886
2893
  name: "info-circle",
2887
2894
  size: "md",
@@ -2891,8 +2898,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2891
2898
  })]),
2892
2899
  _: 1
2893
2900
  }, 16)) : i("", !0)
2894
- ], 8, Fe),
2895
- t.error && n.$slots.error ? (y(), r(Ne, {
2901
+ ], 8, Ie),
2902
+ t.error && n.$slots.error ? (y(), r(Pe, {
2896
2903
  key: 0,
2897
2904
  id: `${M(g)}-error`
2898
2905
  }, {
@@ -2902,7 +2909,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2902
2909
  w(n.$slots, "children", {}, void 0, !0)
2903
2910
  ]));
2904
2911
  }
2905
- }), [["__scopeId", "data-v-2b198cc9"]]), Ve = "@fiscozen/checkbox/CheckedSet", He = "flex flex-col justify-center gap-8 pl-24", Ue = /* @__PURE__ */ u({
2912
+ }), [["__scopeId", "data-v-2b198cc9"]]), He = "@fiscozen/checkbox/CheckedSet", Ue = "flex flex-col justify-center gap-8 pl-24", We = /* @__PURE__ */ u({
2906
2913
  __name: "FzCheckboxGroupOption",
2907
2914
  props: /* @__PURE__ */ f({
2908
2915
  label: {},
@@ -2954,7 +2961,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2954
2961
  onChange: _
2955
2962
  }, s({ _: 2 }, [t.children?.length ? {
2956
2963
  name: "children",
2957
- fn: R(() => [o("div", { class: h([He, f.value]) }, [(y(!0), a(e, null, C(t.children, (e, n) => (y(), r($, p({
2964
+ fn: R(() => [o("div", { class: h([Ue, f.value]) }, [(y(!0), a(e, null, C(t.children, (e, n) => (y(), r($, p({
2958
2965
  key: e.value ? e.value.toString() : e.label,
2959
2966
  modelValue: l.value,
2960
2967
  "onUpdate:modelValue": c[0] ||= (e) => l.value = e,
@@ -2983,13 +2990,13 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
2983
2990
  "aria-owns"
2984
2991
  ]));
2985
2992
  }
2986
- }), We = ["id"], Ge = { key: 0 }, Ke = ["id"], qe = [
2993
+ }), Ge = ["id"], Ke = { key: 0 }, qe = ["id"], Je = [
2987
2994
  "id",
2988
2995
  "aria-labelledby",
2989
2996
  "aria-describedby",
2990
2997
  "aria-required",
2991
2998
  "aria-invalid"
2992
- ], Je = "flex flex-col", Ye = "flex flex-col gap-10", Xe = "flex self-stretch", Ze = /* @__PURE__ */ u({
2999
+ ], Ye = "flex flex-col", Xe = "flex flex-col gap-10", Ze = "flex self-stretch", Qe = /* @__PURE__ */ u({
2993
3000
  __name: "FzCheckboxGroup",
2994
3001
  props: /* @__PURE__ */ f({
2995
3002
  label: {},
@@ -3014,7 +3021,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3014
3021
  e !== void 0 && console.warn("[FzCheckboxGroup] The \"size\" prop is deprecated and will be removed in a future version. Checkboxes now have a fixed size.");
3015
3022
  }, { immediate: !0 });
3016
3023
  let u = W(), d = n(() => ["text-sm", s.disabled ? "text-grey-400" : "text-grey-500"]), f = N(t, "modelValue");
3017
- b(Ve, {
3024
+ b(He, {
3018
3025
  source: f,
3019
3026
  set: n(() => new Set(f.value))
3020
3027
  });
@@ -3035,24 +3042,24 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3035
3042
  let e = [];
3036
3043
  return l.help && e.push(`${u}-help`), s.error && l.error && e.push(`${u}-error`), e.length > 0 ? e.join(" ") : void 0;
3037
3044
  });
3038
- return (n, s) => (y(), a("div", { class: h([Ye, g.value]) }, [
3045
+ return (n, s) => (y(), a("div", { class: h([Xe, g.value]) }, [
3039
3046
  o("label", {
3040
3047
  id: M(u) + "-label",
3041
- class: h([Je, m.value])
3042
- }, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span", Ge, " *")) : i("", !0)]), n.$slots.help ? (y(), a("p", {
3048
+ class: h([Ye, m.value])
3049
+ }, [o("span", null, [c(k(t.label), 1), t.required ? (y(), a("span", Ke, " *")) : i("", !0)]), n.$slots.help ? (y(), a("p", {
3043
3050
  key: 0,
3044
3051
  id: M(u) + "-help",
3045
3052
  class: h(d.value)
3046
- }, [w(n.$slots, "help")], 10, Ke)) : i("", !0)], 10, We),
3053
+ }, [w(n.$slots, "help")], 10, qe)) : i("", !0)], 10, Ge),
3047
3054
  o("div", {
3048
- class: h([Xe, _.value]),
3055
+ class: h([Ze, _.value]),
3049
3056
  id: M(u),
3050
3057
  role: "group",
3051
3058
  "aria-labelledby": M(u) + "-label",
3052
3059
  "aria-describedby": S.value,
3053
3060
  "aria-required": t.required ? "true" : "false",
3054
3061
  "aria-invalid": t.error ? "true" : "false"
3055
- }, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(Ue, p({
3062
+ }, [v.value ? (y(!0), a(e, { key: 0 }, C(t.options, (e) => (y(), r(We, p({
3056
3063
  key: e.value ? e.value.toString() : e.label,
3057
3064
  modelValue: f.value,
3058
3065
  "onUpdate:modelValue": s[0] ||= (e) => f.value = e,
@@ -3068,8 +3075,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3068
3075
  ]))), 128)) : w(n.$slots, "default", {
3069
3076
  key: 1,
3070
3077
  checkboxGroupProps: x.value
3071
- })], 10, qe),
3072
- t.error && n.$slots.error ? (y(), r(Ne, {
3078
+ })], 10, Je),
3079
+ t.error && n.$slots.error ? (y(), r(Pe, {
3073
3080
  key: 0,
3074
3081
  id: M(u) + "-error"
3075
3082
  }, {
@@ -3078,7 +3085,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3078
3085
  }, 8, ["id"])) : i("", !0)
3079
3086
  ], 2));
3080
3087
  }
3081
- }), Qe = [
3088
+ }), $e = [
3082
3089
  "id",
3083
3090
  "value",
3084
3091
  "disabled",
@@ -3088,7 +3095,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3088
3095
  "aria-checked",
3089
3096
  "aria-required",
3090
3097
  "aria-invalid"
3091
- ], $e = ["for"], et = ["title"], tt = ["src", "alt"], nt = { class: "flex flex-row w-full justify-between min-w-0" }, rt = { class: "justify-center flex flex-col w-full grow-0 min-w-0 gap-4" }, it = "peer h-0 w-0 absolute fz-hidden-input", at = /* @__PURE__ */ Z(/* @__PURE__ */ u({
3098
+ ], et = ["for"], tt = ["title"], nt = ["src", "alt"], rt = { class: "flex flex-row w-full justify-between min-w-0" }, it = { class: "justify-center flex flex-col w-full grow-0 min-w-0 gap-4" }, at = "peer h-0 w-0 absolute fz-hidden-input", ot = /* @__PURE__ */ Z(/* @__PURE__ */ u({
3092
3099
  __name: "FzCheckboxCard",
3093
3100
  props: /* @__PURE__ */ f({
3094
3101
  label: {},
@@ -3119,7 +3126,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3119
3126
  }),
3120
3127
  emits: ["update:modelValue"],
3121
3128
  setup(e) {
3122
- let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(Ve, null), p = n(() => u.value == null ? !1 : f && f.source.value === u.value ? f.set.value.has(s.value) : u.value.includes(s.value));
3129
+ let t = e, s = n(() => t.value ?? t.label), c = U(), u = N(e, "modelValue"), f = d(He, null), p = n(() => u.value == null ? !1 : f && f.source.value === u.value ? f.set.value.has(s.value) : u.value.includes(s.value));
3123
3130
  function m() {
3124
3131
  if (t.disabled) return;
3125
3132
  let e = u.value ?? [];
@@ -3148,7 +3155,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3148
3155
  return (n, u) => (y(), a("div", null, [o("input", {
3149
3156
  type: "checkbox",
3150
3157
  id: M(c),
3151
- class: h([it]),
3158
+ class: h([at]),
3152
3159
  value: s.value,
3153
3160
  disabled: e.disabled,
3154
3161
  checked: p.value,
@@ -3159,7 +3166,7 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3159
3166
  "aria-required": e.required ? "true" : "false",
3160
3167
  "aria-invalid": e.error ? "true" : "false",
3161
3168
  onChange: m
3162
- }, null, 42, Qe), o("label", {
3169
+ }, null, 42, $e), o("label", {
3163
3170
  class: h(["relative flex block rounded-lg border-solid pt-12 px-12 cursor-pointer w-full", C.value]),
3164
3171
  for: M(c)
3165
3172
  }, [
@@ -3194,14 +3201,14 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3194
3201
  src: e.imageUrl,
3195
3202
  alt: e.imageAlt || "",
3196
3203
  class: "object-cover h-full w-full"
3197
- }, null, 8, tt)], 10, et)) : i("", !0),
3198
- o("div", nt, [o("div", rt, [o("p", { class: h(["font-medium break-words !m-0 !leading-[20px]", { "text-grey-300": t.disabled }]) }, k(e.title), 3), e.subtitle ? (y(), a("p", {
3204
+ }, null, 8, nt)], 10, tt)) : i("", !0),
3205
+ o("div", rt, [o("div", it, [o("p", { class: h(["font-medium break-words !m-0 !leading-[20px]", { "text-grey-300": t.disabled }]) }, k(e.title), 3), e.subtitle ? (y(), a("p", {
3199
3206
  key: 0,
3200
3207
  class: h(["font-normal text-sm mt-4 break-words !m-0 !leading-[16px]", {
3201
3208
  "text-grey-300": t.disabled,
3202
3209
  "text-grey-500": !t.disabled
3203
3210
  }])
3204
- }, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(Se), {
3211
+ }, k(e.subtitle), 3)) : i("", !0)]), e.tooltip ? (y(), r(M(Ce), {
3205
3212
  key: 0,
3206
3213
  class: h({
3207
3214
  "self-center": t.variant === "horizontal",
@@ -3226,8 +3233,8 @@ var he = Object.entries(J.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.val
3226
3233
  "text",
3227
3234
  "status"
3228
3235
  ])) : i("", !0)])
3229
- ], 10, $e)]));
3236
+ ], 10, et)]));
3230
3237
  }
3231
3238
  }), [["__scopeId", "data-v-1a096df1"]]);
3232
3239
  //#endregion
3233
- export { $ as FzCheckbox, at as FzCheckboxCard, Ze as FzCheckboxGroup, U as generateCheckboxId, W as generateGroupId };
3240
+ export { $ as FzCheckbox, ot as FzCheckboxCard, Qe as FzCheckboxGroup, U as generateCheckboxId, W as generateGroupId };