prometeo-design-system 2.4.1 → 2.4.3

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 (62) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/{Button-DsbEyjth.js → Button-Bc0LYLfg.js} +1 -1
  3. package/dist/Button.es.js +1 -1
  4. package/dist/{CardProfile-Fn44kEnM.js → CardProfile-BhHJmvqs.js} +1 -1
  5. package/dist/CardProfile.es.js +1 -1
  6. package/dist/CheckBox.es.js +13 -12
  7. package/dist/CheckboxFormik.es.js +1 -1
  8. package/dist/DatePicker.es.js +2 -2
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -1
  12. package/dist/DropZone.es.js +1 -1
  13. package/dist/Header.es.js +1 -1
  14. package/dist/Icons.es.js +1 -1
  15. package/dist/Image.es.js +1 -1
  16. package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-BeADef_g.js} +2 -2
  17. package/dist/ImageGallery.es.js +1 -1
  18. package/dist/Input.es.js +1 -1
  19. package/dist/InputFormik.es.js +1 -1
  20. package/dist/InputMultiple.es.js +1 -1
  21. package/dist/{LayoutGeneric-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.js} +1 -1
  22. package/dist/LayoutGeneric.es.js +1 -1
  23. package/dist/Logo.es.js +1 -1
  24. package/dist/Menu.es.js +1 -1
  25. package/dist/OtpInput.es.js +1 -1
  26. package/dist/Pagination.es.js +1 -1
  27. package/dist/ProfilePictureUpload.es.js +1 -1
  28. package/dist/ProgressBar.es.js +1 -1
  29. package/dist/SegmentedButton.es.js +24 -28
  30. package/dist/Select.es.js +334 -318
  31. package/dist/SelectFormik.es.js +1 -1
  32. package/dist/SelectFormikLegacy.es.js +1 -1
  33. package/dist/Skeleton.es.js +1 -1
  34. package/dist/Spinner.es.js +1 -1
  35. package/dist/Steps.es.js +1 -1
  36. package/dist/SwipeContainer.es.js +1 -1
  37. package/dist/Switch.es.js +1 -1
  38. package/dist/TabLinks.es.js +2 -3
  39. package/dist/Table.es.js +1 -1
  40. package/dist/TextArea.es.js +1 -1
  41. package/dist/Toast.d.ts +6 -0
  42. package/dist/Toast.es.js +145 -0
  43. package/dist/ToastProvider.d.ts +6 -0
  44. package/dist/ToastProvider.es.js +6 -0
  45. package/dist/Tooltip.es.js +1 -1
  46. package/dist/components/Toaster/ToastProvider.d.ts +5 -0
  47. package/dist/components/Toaster/Toaster.d.ts +23 -31
  48. package/dist/exports/DrawerDesktop.d.ts +2 -0
  49. package/dist/exports/DrawerMobile.d.ts +2 -0
  50. package/dist/exports/Select.d.ts +3 -0
  51. package/dist/exports/Toast.d.ts +3 -0
  52. package/dist/exports/ToastProvider.d.ts +2 -0
  53. package/dist/index.d.ts +4 -1
  54. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  55. package/dist/pages/ToastsPage.d.ts +2 -0
  56. package/dist/preview/ToastsPreview.d.ts +2 -0
  57. package/dist/prometeo-design-system.css +1 -1
  58. package/dist/prometeo-design-system.es.js +43 -38
  59. package/package.json +1 -1
  60. package/src/styles/intellisense.css +3 -0
  61. package/dist/components/Toaster/PrometeoProviderToas.d.ts +0 -6
  62. package/dist/components/Toaster/Toast.d.ts +0 -3
package/dist/Avatar.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as p } from "./cn-B6yFEsav.js";
3
3
  import { motion as u } from "framer-motion";
4
4
  import { useState as f } from "react";
@@ -1,4 +1,4 @@
1
- import { j as f } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as f } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as g } from "./cn-B6yFEsav.js";
3
3
  import { clsx as B } from "clsx";
4
4
  import { useAnimationControls as E, motion as j } from "framer-motion";
package/dist/Button.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as f } from "./Button-DsbEyjth.js";
1
+ import { B as f } from "./Button-Bc0LYLfg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import { motion as l, AnimatePresence as u } from "framer-motion";
4
4
  import m from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "./CardProfile-Fn44kEnM.js";
1
+ import { C as a } from "./CardProfile-BhHJmvqs.js";
2
2
  export {
3
3
  a as CardProfile
4
4
  };
@@ -1,8 +1,8 @@
1
- import { j as a } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as h } from "./Icons.es.js";
3
3
  import { memo as x, useId as o, useRef as m } from "react";
4
4
  const n = ({ className: s, disabled: e, ...t }) => {
5
- const c = o(), i = o(), r = m(null), l = `
5
+ const c = o(), i = o(), a = m(null), l = `
6
6
  after:content-["<span id='${c}-hover-span'></span>"]
7
7
  after:absolute
8
8
  after:top-1/2
@@ -24,7 +24,7 @@ const n = ({ className: s, disabled: e, ...t }) => {
24
24
  transition-all
25
25
  duration-200
26
26
  ease-in-out
27
- `, d = "hover:#hover-span:opacity-100", p = "bg-primary-light", u = `
27
+ `, d = "hover:#hover-span:opacity-100", u = "bg-primary-light", p = `
28
28
  bg-transparent
29
29
  border-[2px]
30
30
  aria-checked:border-none
@@ -38,7 +38,7 @@ const n = ({ className: s, disabled: e, ...t }) => {
38
38
  // biome-ignore lint/a11y/noStaticElementInteractions: <>
39
39
  // biome-ignore lint/a11y/useKeyWithClickEvents: <>
40
40
  // biome-ignore lint/correctness/useUniqueElementIds: <>
41
- /* @__PURE__ */ a.jsx(
41
+ /* @__PURE__ */ r.jsx(
42
42
  "div",
43
43
  {
44
44
  id: "checkbox-container",
@@ -49,28 +49,29 @@ const n = ({ className: s, disabled: e, ...t }) => {
49
49
  zIndex: 10
50
50
  },
51
51
  className: "grid place-items-center p-2",
52
- onClick: r.current?.click,
52
+ onClick: a.current?.click,
53
53
  draggable: !1,
54
- children: /* @__PURE__ */ a.jsxs(
54
+ children: /* @__PURE__ */ r.jsxs(
55
55
  "div",
56
56
  {
57
57
  id: "checkbox-box",
58
58
  "aria-checked": t.checked,
59
59
  className: `grid place-items-center absolute size-[18px] rounded-[2px]
60
60
  ${l}
61
- ${u}
62
- ${t.checked ? p : ""}
61
+ ${p}
62
+ ${t.checked ? u : ""}
63
63
  ${e ? f[t.checked ? "selected" : "default"] : ""}
64
64
  `,
65
- onClick: r.current?.click,
65
+ onClick: a.current?.click,
66
66
  draggable: !1,
67
67
  children: [
68
- /* @__PURE__ */ a.jsx(
68
+ /* @__PURE__ */ r.jsx(
69
69
  "input",
70
70
  {
71
71
  type: "checkbox",
72
+ readOnly: !0,
72
73
  id: i,
73
- ref: r,
74
+ ref: a,
74
75
  className: `${s} ${d} `,
75
76
  disabled: e,
76
77
  style: {
@@ -87,7 +88,7 @@ const n = ({ className: s, disabled: e, ...t }) => {
87
88
  ...t
88
89
  }
89
90
  ),
90
- t.checked && /* @__PURE__ */ a.jsx(
91
+ t.checked && /* @__PURE__ */ r.jsx(
91
92
  h.Check,
92
93
  {
93
94
  size: 18,
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as x } from "./Icons.es.js";
3
3
  import { c as r } from "./cn-B6yFEsav.js";
4
4
  import { useField as h, ErrorMessage as p } from "formik";
@@ -1,11 +1,11 @@
1
- import { j as $ } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as $ } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import m, { createContext as mn, useContext as hn, useCallback as q, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
3
3
  import { InputMultiple as gn } from "./InputMultiple.es.js";
4
4
  import wn from "./Input.es.js";
5
5
  import { createPortal as bn } from "react-dom";
6
6
  import { Icons as Mt } from "./Icons.es.js";
7
7
  import { c as Be } from "./cn-B6yFEsav.js";
8
- import { B as vt } from "./Button-DsbEyjth.js";
8
+ import { B as vt } from "./Button-Bc0LYLfg.js";
9
9
  function Mn(e, t, n = "long") {
10
10
  return new Intl.DateTimeFormat("en-US", {
11
11
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
3
3
  import { c as j } from "./cn-B6yFEsav.js";
4
4
  const C = h(
@@ -1,6 +1,6 @@
1
- import { j as s } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as s } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as b } from "./cn-B6yFEsav.js";
3
- import { c as y, B as h } from "./Button-DsbEyjth.js";
3
+ import { c as y, B as h } from "./Button-Bc0LYLfg.js";
4
4
  import { createPortal as g } from "react-dom";
5
5
  import { Icons as C } from "./Icons.es.js";
6
6
  import { forwardRef as k, useState as j, useRef as x, useEffect as v, useCallback as l, useImperativeHandle as D } from "react";
@@ -1,4 +1,4 @@
1
- import { j as d } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as d } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as T } from "./cn-B6yFEsav.js";
3
3
  import { forwardRef as q, useState as J, useRef as v, useEffect as M, useCallback as l, useMemo as B, useImperativeHandle as K } from "react";
4
4
  import { createPortal as Q } from "react-dom";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as i } from "./cn-B6yFEsav.js";
3
3
  import R, { useCallback as w } from "react";
4
4
  import { useDropzone as z } from "react-dropzone";
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as l } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as l } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as s } from "./cn-B6yFEsav.js";
3
3
  import { motion as m } from "framer-motion";
4
4
  import { memo as n } from "react";
package/dist/Icons.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as h } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as h } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { memo as v } from "react";
3
3
  const l = (t) => v(t), w = l(({
4
4
  size: t = 24,
package/dist/Image.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { memo as x, useState as E, useRef as R, useCallback as N, useEffect as b } from "react";
3
3
  import M from "./Spinner.es.js";
4
4
  import { c as d } from "./cn-B6yFEsav.js";
@@ -1,8 +1,8 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import ee, { memo as D, forwardRef as L, useRef as v, useEffect as te, useCallback as i, useState as R, useImperativeHandle as ne } from "react";
3
3
  import { c as X } from "./cn-B6yFEsav.js";
4
4
  import { u as re } from "./useDragScroll-CHN9OMwn.js";
5
- import { B as S } from "./Button-DsbEyjth.js";
5
+ import { B as S } from "./Button-Bc0LYLfg.js";
6
6
  import { Icons as M } from "./Icons.es.js";
7
7
  const O = D(L(({ images: n, className: c }, r) => {
8
8
  const { ref: d, bind: a } = re({
@@ -1,4 +1,4 @@
1
- import { I as p } from "./ImageGallery-DnoRTpCr.js";
1
+ import { I as p } from "./ImageGallery-BeADef_g.js";
2
2
  import { useRef as u, useCallback as r } from "react";
3
3
  const g = () => {
4
4
  const e = u(null), t = r((a) => {
package/dist/Input.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as J } from "./Icons.es.js";
3
3
  import { c as e } from "./cn-B6yFEsav.js";
4
4
  import { memo as xe, useState as H, useRef as K, useCallback as me, useEffect as L, useLayoutEffect as ge } from "react";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as u } from "./cn-B6yFEsav.js";
3
3
  import { FastField as O, ErrorMessage as q } from "formik";
4
4
  import { memo as G, useState as I, useRef as H, useCallback as y, useLayoutEffect as J } from "react";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as C } from "./Icons.es.js";
3
3
  import { c as d } from "./cn-B6yFEsav.js";
4
4
  import S, { useRef as M, useState as x, useCallback as T, useEffect as ee } from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { useRef as a, createContext as i, useContext as u, memo as c } from "react";
3
3
  const o = i(null), l = ({ children: e }) => {
4
4
  const r = a(null), s = (n) => {
@@ -1,4 +1,4 @@
1
- import { L as f } from "./LayoutGeneric-p4Pll4Cm.js";
1
+ import { L as f } from "./LayoutGeneric-jDE96L2N.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/Logo.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as t } from "./Icons.es.js";
3
3
  const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
4
4
  /* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
package/dist/Menu.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as r } from "./cn-B6yFEsav.js";
3
3
  import { AnimatePresence as n, motion as o } from "framer-motion";
4
4
  const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
@@ -1,4 +1,4 @@
1
- import { j as p } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as p } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { Icons as ve } from "./Icons.es.js";
3
3
  import { c as L } from "./cn-B6yFEsav.js";
4
4
  import * as n from "react";
@@ -1,4 +1,4 @@
1
- import { j as t } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as a } from "framer-motion";
3
3
  function h({
4
4
  currentPage: i = 1,
@@ -1,4 +1,4 @@
1
- import { j as n } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as n } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { motion as s } from "framer-motion";
3
3
  import { memo as T, useRef as b, useLayoutEffect as A } from "react";
4
4
  import M from "./Avatar.es.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as x } from "./cn-B6yFEsav.js";
3
3
  import u from "react";
4
4
  const j = u.forwardRef(
@@ -1,9 +1,9 @@
1
- import { j as u } from "./jsx-runtime-DKDX3adD.js";
2
- import { c as d } from "./cn-B6yFEsav.js";
1
+ import { j as u } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { c as s } from "./cn-B6yFEsav.js";
3
3
  import z, { useState as M, useMemo as C, useEffect as L } from "react";
4
4
  import { motion as E } from "framer-motion";
5
5
  const X = (T) => {
6
- const [c, _] = M({}), { size: t = "medium", color: R = "default", options: l, value: p, name: x, onChange: j, icon: y, allowExpand: n = !1, disabled: s = !1 } = T, m = Math.max(l.findIndex((e) => e.value === p), 0), b = l.length, N = 9, w = 26, o = {
6
+ const [c, _] = M({}), { size: t = "medium", color: R = "default", options: l, value: p, name: x, onChange: j, icon: y, allowExpand: n = !1, disabled: d = !1 } = T, m = Math.max(l.findIndex((e) => e.value === p), 0), w = l.length, N = 9, b = 26, o = {
7
7
  small: 120,
8
8
  medium: 120,
9
9
  large: 120
@@ -46,10 +46,10 @@ const X = (T) => {
46
46
  icon: "text-neutral-strong-disabled",
47
47
  option: "text-neutral-strong-disabled"
48
48
  }
49
- }, I = l.find((e) => e.value === p) ?? l[0], g = I.label.length * N + k * 2 + w, W = () => C(() => Object.values(c).reduce((i, r) => i + r, 0) + w, [c]), v = {
50
- small: n ? W() : (b - 1) * a.small + o.small,
51
- medium: n ? W() : (b - 1) * a.medium + o.medium,
52
- large: n ? W() : (b - 1) * a.large + o.large
49
+ }, I = l.find((e) => e.value === p) ?? l[0], g = I.label.length * N + k * 2 + b, W = () => C(() => Object.values(c).reduce((i, r) => i + r, 0) + b, [c]), v = {
50
+ small: n ? W() : (w - 1) * a.small + o.small,
51
+ medium: n ? W() : (w - 1) * a.medium + o.medium,
52
+ large: n ? W() : (w - 1) * a.large + o.large
53
53
  };
54
54
  L(() => {
55
55
  if (!n) return;
@@ -59,33 +59,31 @@ const X = (T) => {
59
59
  }), _(e);
60
60
  }, []);
61
61
  const H = C(() => n ? Object.values(c).reduce((e, i, r) => r < m ? e + i : e, 0) : Math.max(m * a[t] - 2, 0), [m]), D = () => {
62
- if (s) return;
62
+ if (d) return;
63
63
  const e = m === l.length - 1 ? l[0] : l[m + 1];
64
64
  j?.(x, e.value);
65
- }, h = s ? "disabled" : R;
65
+ }, h = d ? "disabled" : R;
66
66
  return /* @__PURE__ */ u.jsxs(
67
67
  "button",
68
68
  {
69
69
  name: x,
70
70
  type: "button",
71
- id: "segmented-button-container",
72
71
  style: {
73
72
  width: v[t],
74
73
  minWidth: v[t],
75
74
  maxWidth: v[t]
76
75
  },
77
- className: d(
76
+ className: s(
78
77
  S[t].container,
79
78
  f[h].container,
80
79
  "border-[1px]",
81
- !s && "cursor-pointer",
80
+ !d && "cursor-pointer",
82
81
  "relative"
83
82
  ),
84
83
  children: [
85
84
  /* @__PURE__ */ u.jsxs(
86
85
  E.div,
87
86
  {
88
- id: "segmented-button-switcher",
89
87
  animate: {
90
88
  left: `${H}px`,
91
89
  width: n ? g : o[t],
@@ -97,25 +95,25 @@ const X = (T) => {
97
95
  stiffness: 260,
98
96
  damping: 30
99
97
  },
100
- className: d(
98
+ className: s(
101
99
  "absolute top-0 left-0 h-full rounded-[6px] z-30",
102
100
  "flex items-center justify-center gap-[2px] p-4",
103
101
  f[h].switch
104
102
  ),
105
103
  onClick: () => {
106
- !s && D();
104
+ !d && D();
107
105
  },
108
106
  children: [
109
- y && z.cloneElement(y, { className: d(
107
+ y && z.cloneElement(y, { className: s(
110
108
  "w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
111
109
  f[h].icon
112
110
  ) }),
113
111
  /* @__PURE__ */ u.jsx(
114
112
  "p",
115
113
  {
116
- className: d(
114
+ className: s(
117
115
  "prometeo-fonts-label-large ",
118
- " overflow-hidden overflow-ellipsis text-nowrap ",
116
+ " overflow-hidden overflow-ellipsis text-nowrap select-none ",
119
117
  f[h].switch
120
118
  ),
121
119
  children: I.label
@@ -127,19 +125,17 @@ const X = (T) => {
127
125
  /* @__PURE__ */ u.jsx(
128
126
  "div",
129
127
  {
130
- id: "segmented-button-options",
131
- className: d(
128
+ className: s(
132
129
  "absolute top-0 left-0 w-full h-full overflow-hidden",
133
130
  "flex justify-center"
134
131
  ),
135
132
  children: l?.map((e, i) => {
136
- const r = e.value === (p || l[0].value), A = n ? c[i] + w : o[t], P = n ? c[i] : a[t], O = r ? A : P;
133
+ const r = e.value === (p || l[0].value), A = n ? c[i] + b : o[t], P = n ? c[i] : a[t], O = r ? A : P;
137
134
  return /* @__PURE__ */ u.jsx(
138
135
  E.span,
139
136
  {
140
- id: "segmented-button-option",
141
137
  onClick: () => {
142
- !s && j?.(x, e.value);
138
+ !d && j?.(x, e.value);
143
139
  },
144
140
  animate: {
145
141
  width: O,
@@ -150,12 +146,12 @@ const X = (T) => {
150
146
  duration: 0.3,
151
147
  delay: 0
152
148
  },
153
- className: d(
149
+ className: s(
154
150
  "z-20 h-full ",
155
151
  "flex items-center justify-center px-3 py-[6px]",
156
152
  "prometeo-fonts-label-large text-neutral-medium-default",
157
- " overflow-hidden ",
158
- !s && "cursor-pointer"
153
+ " overflow-hidden select-none ",
154
+ !d && "cursor-pointer"
159
155
  ),
160
156
  "aria-label": e.label,
161
157
  children: /* @__PURE__ */ u.jsx(
@@ -166,8 +162,8 @@ const X = (T) => {
166
162
  minWidth: n ? "max-content" : a[t],
167
163
  maxWidth: n ? "max-content" : a[t]
168
164
  },
169
- className: d(
170
- "px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full",
165
+ className: s(
166
+ "px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full select-none",
171
167
  f[h].option
172
168
  ),
173
169
  children: e.label