@ledgerhq/lumen-ui-react 0.0.62 → 0.0.64

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 (49) hide show
  1. package/ai-rules/README.md +1 -1
  2. package/ai-rules/RULES.md +3 -3
  3. package/dist/i18n/locales/de.json.d.ts +23 -2
  4. package/dist/i18n/locales/de.json.js +4 -4
  5. package/dist/i18n/locales/en.json.d.ts +5 -1
  6. package/dist/i18n/locales/en.json.js +1 -1
  7. package/dist/i18n/locales/es.json.d.ts +23 -2
  8. package/dist/i18n/locales/es.json.js +4 -4
  9. package/dist/i18n/locales/fr.json.d.ts +6 -2
  10. package/dist/i18n/locales/fr.json.js +1 -1
  11. package/dist/i18n/locales/ja.json.d.ts +23 -2
  12. package/dist/i18n/locales/ja.json.js +4 -4
  13. package/dist/i18n/locales/ko.json.d.ts +23 -2
  14. package/dist/i18n/locales/ko.json.js +4 -4
  15. package/dist/i18n/locales/pt.json.d.ts +23 -2
  16. package/dist/i18n/locales/pt.json.js +4 -4
  17. package/dist/i18n/locales/ru.json.d.ts +23 -2
  18. package/dist/i18n/locales/ru.json.js +4 -4
  19. package/dist/i18n/locales/th.json.d.ts +23 -2
  20. package/dist/i18n/locales/th.json.js +4 -4
  21. package/dist/i18n/locales/tr.json.d.ts +23 -2
  22. package/dist/i18n/locales/tr.json.js +4 -4
  23. package/dist/i18n/locales/zh.json.d.ts +23 -2
  24. package/dist/i18n/locales/zh.json.js +4 -4
  25. package/dist/lib/Components/AddressInput/AddressInput.js +2 -2
  26. package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
  27. package/dist/lib/Components/BaseInput/BaseInput.js +31 -31
  28. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  29. package/dist/lib/Components/Button/BaseButton.js +1 -1
  30. package/dist/lib/Components/CardButton/CardButton.js +1 -1
  31. package/dist/lib/Components/Checkbox/Checkbox.js +7 -7
  32. package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
  33. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  34. package/dist/lib/Components/Dialog/Dialog.js +56 -48
  35. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +4 -4
  36. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +7 -7
  37. package/dist/lib/Components/ListItem/ListItem.js +1 -1
  38. package/dist/lib/Components/Menu/Menu.js +5 -5
  39. package/dist/lib/Components/SearchInput/SearchInput.js +1 -1
  40. package/dist/lib/Components/Select/Select.js +64 -64
  41. package/dist/lib/Components/Spot/Spot.js +5 -5
  42. package/dist/lib/Components/Subheader/Subheader.js +1 -1
  43. package/dist/lib/Components/Switch/Switch.js +3 -3
  44. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  45. package/dist/lib/Components/Tile/Tile.js +35 -38
  46. package/dist/lib/Components/Tooltip/Tooltip.d.ts +1 -1
  47. package/dist/lib/Components/Tooltip/Tooltip.js +2 -2
  48. package/dist/package.json +1 -1
  49. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqDzC,eAAO,MAAM,UAAU;;;;;;;;;YAxCf,CAAR;iBACU,CAAT;;;2FAkHA,CAAC"}
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqDzC,eAAO,MAAM,UAAU;;;;;;;;;YAxCf,CAAF;iBACI,CAAH;;;2FAkHN,CAAC"}
@@ -5,7 +5,7 @@ import { cva as l } from "class-variance-authority";
5
5
  import y, { useCallback as B } from "react";
6
6
  import { Spinner as N } from "../Spinner/Spinner.js";
7
7
  const j = l(
8
- 'inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200 body-1-semi-bold focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus [&[data-disabled="true"]]:bg-disabled [&[data-disabled="true"]]:text-disabled',
8
+ 'inline-flex size-fit cursor-pointer items-center justify-center rounded-full body-1-semi-bold transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus data-[disabled="true"]:bg-disabled data-[disabled="true"]:text-disabled',
9
9
  {
10
10
  variants: {
11
11
  appearance: {
@@ -9,7 +9,7 @@ const p = c(
9
9
  variants: {
10
10
  appearance: {
11
11
  base: "bg-muted text-base hover:bg-muted-hover active:bg-muted-pressed disabled:bg-disabled",
12
- outline: "bg-base-transparent text-base outline-dashed outline-1 outline-muted-subtle hover:bg-base-transparent-hover hover:outline-muted-subtle-hover focus-visible:outline-none focus-visible:outline-offset-0 active:bg-base-transparent-pressed active:outline-muted-subtle-pressed disabled:bg-base-transparent disabled:outline-disabled"
12
+ outline: "bg-base-transparent text-base outline-dashed outline-1 outline-muted-subtle hover:bg-base-transparent-hover hover:outline-muted-subtle-hover focus-visible:outline-hidden focus-visible:outline-offset-0 active:bg-base-transparent-pressed active:outline-muted-subtle-pressed disabled:bg-base-transparent disabled:outline-disabled"
13
13
  }
14
14
  },
15
15
  defaultVariants: {
@@ -1,11 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { cn as d } from "../../../libs/utils-shared/dist/index.js";
2
+ import { cn as a } from "../../../libs/utils-shared/dist/index.js";
3
3
  import * as t from "@radix-ui/react-checkbox";
4
4
  import i from "react";
5
5
  import { Check as o } from "../../Symbols/Icons/Check.js";
6
- const r = [
7
- "h-20 w-20 shrink-0 rounded-xs transition-colors",
8
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
6
+ const r = a(
7
+ "size-20 shrink-0 cursor-pointer rounded-xs transition-colors",
8
+ "focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:outline-hidden",
9
9
  "data-[state=unchecked]:border data-[state=unchecked]:border-muted data-[state=unchecked]:bg-base",
10
10
  "data-[state=unchecked]:hover:bg-base-hover",
11
11
  "data-[state=unchecked]:active:bg-base-pressed",
@@ -14,12 +14,12 @@ const r = [
14
14
  "data-[state=checked]:hover:bg-active-hover",
15
15
  "data-[state=checked]:active:bg-active-pressed",
16
16
  "data-[state=checked]:disabled:bg-disabled data-[state=checked]:disabled:text-disabled"
17
- ].join(" "), b = i.forwardRef(({ className: a, ...s }, c) => /* @__PURE__ */ e(
17
+ ), b = i.forwardRef(({ className: s, ...d }, c) => /* @__PURE__ */ e(
18
18
  t.Root,
19
19
  {
20
20
  ref: c,
21
- className: d(r, a),
22
- ...s,
21
+ className: a(r, s),
22
+ ...d,
23
23
  children: /* @__PURE__ */ e(t.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(o, { size: 16 }) })
24
24
  }
25
25
  ));
@@ -73,7 +73,7 @@ export declare function DialogTrigger({ ...props }: DialogTriggerProps): import(
73
73
  * // With custom styling for layout
74
74
  * <DialogContent className="max-w-md">
75
75
  * <div className="space-y-4">
76
- * <h4 className="heading-4-semi-bold">Dialog Title</h4>
76
+ * <h4 className="heading-5-semi-bold">Dialog Title</h4>
77
77
  * <p>Detailed content here.</p>
78
78
  * </div>
79
79
  * </DialogContent>
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AGF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;;;+EAaxB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,14 +1,12 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import { cn as n } from "../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import { createSafeContext as u, cn as l } from "../../../libs/utils-shared/dist/index.js";
3
3
  import * as r from "@radix-ui/react-dialog";
4
- import { cva as m } from "class-variance-authority";
5
- import * as i from "react";
6
- const d = i.createContext({
7
- height: "hug"
8
- }), u = m(
4
+ import { cva as h } from "class-variance-authority";
5
+ import * as n from "react";
6
+ const [p, s] = u("Dialog"), x = h(
9
7
  [
10
- "w-400 bg-canvas-sheet flex max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl pb-24",
11
- "z-dialog-content fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%]",
8
+ "flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
9
+ "fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
12
10
  "data-[state=closed]:animate-content-hide data-[state=open]:animate-content-show"
13
11
  ],
14
12
  {
@@ -23,85 +21,95 @@ const d = i.createContext({
23
21
  }
24
22
  }
25
23
  );
26
- function w({ height: a = "hug", ...t }) {
27
- return /* @__PURE__ */ o(d.Provider, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
24
+ function C({ height: a = "hug", ...t }) {
25
+ return /* @__PURE__ */ o(p, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
28
26
  }
29
- function b({ ...a }) {
27
+ function R({ ...a }) {
30
28
  return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
31
29
  }
32
- function h({
30
+ function v({
33
31
  ...a
34
32
  }) {
35
33
  return /* @__PURE__ */ o(r.Portal, { "data-slot": "dialog-portal", ...a });
36
34
  }
37
- const s = i.forwardRef(
35
+ const d = n.forwardRef(
38
36
  ({ className: a, ...t }, e) => /* @__PURE__ */ o(
39
37
  r.Overlay,
40
38
  {
41
39
  ref: e,
42
40
  "data-slot": "dialog-overlay",
43
- className: n(
41
+ className: l(
44
42
  a,
45
- "z-dialog-overlay bg-canvas-overlay data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in fixed inset-0 backdrop-blur-sm"
43
+ "fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
46
44
  ),
47
45
  ...t
48
46
  }
49
47
  )
50
48
  );
51
- s.displayName = "DialogOverlay";
52
- function N({
49
+ d.displayName = "DialogOverlay";
50
+ function O({
53
51
  className: a,
54
52
  children: t,
55
53
  ...e
56
54
  }) {
57
- const { height: l } = i.useContext(d);
58
- return /* @__PURE__ */ f(h, { "data-slot": "dialog-portal", children: [
59
- /* @__PURE__ */ o(s, {}),
55
+ const { height: i } = s({
56
+ consumerName: "DialogContent",
57
+ contextRequired: !0
58
+ });
59
+ return /* @__PURE__ */ m(v, { "data-slot": "dialog-portal", children: [
60
+ /* @__PURE__ */ o(d, {}),
60
61
  /* @__PURE__ */ o(
61
62
  r.Content,
62
63
  {
63
64
  "data-slot": "dialog-content",
64
- className: n(u({ height: l }), a),
65
+ className: l(x({ height: i }), a),
65
66
  ...e,
66
67
  children: t
67
68
  }
68
69
  )
69
70
  ] });
70
71
  }
71
- const p = i.forwardRef(
72
- ({ className: a, children: t, scrollbarWidth: e = "none", style: l, ...g }, c) => /* @__PURE__ */ o(
73
- "div",
74
- {
75
- ref: c,
76
- "data-slot": "dialog-body",
77
- style: { scrollbarWidth: e, ...l },
78
- className: n(
79
- "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
80
- a
81
- ),
82
- ...g,
83
- children: t
84
- }
85
- )
72
+ const y = n.forwardRef(
73
+ ({ className: a, children: t, scrollbarWidth: e = "none", style: i, ...g }, c) => {
74
+ const { height: f } = s({
75
+ consumerName: "DialogBody",
76
+ contextRequired: !0
77
+ });
78
+ return /* @__PURE__ */ o(
79
+ "div",
80
+ {
81
+ ref: c,
82
+ "data-slot": "dialog-body",
83
+ style: { scrollbarWidth: e, ...i },
84
+ className: l(
85
+ "-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
86
+ f === "hug" ? "basis-auto" : "basis-0",
87
+ a
88
+ ),
89
+ ...g,
90
+ children: t
91
+ }
92
+ );
93
+ }
86
94
  );
87
- p.displayName = "DialogBody";
88
- const x = i.forwardRef(
89
- ({ className: a, children: t, ...e }, l) => /* @__PURE__ */ o(
95
+ y.displayName = "DialogBody";
96
+ const D = n.forwardRef(
97
+ ({ className: a, children: t, ...e }, i) => /* @__PURE__ */ o(
90
98
  "div",
91
99
  {
92
- ref: l,
100
+ ref: i,
93
101
  "data-slot": "dialog-footer",
94
- className: n("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
102
+ className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
95
103
  ...e,
96
104
  children: t
97
105
  }
98
106
  )
99
107
  );
100
- x.displayName = "DialogFooter";
108
+ D.displayName = "DialogFooter";
101
109
  export {
102
- w as Dialog,
103
- p as DialogBody,
104
- N as DialogContent,
105
- x as DialogFooter,
106
- b as DialogTrigger
110
+ C as Dialog,
111
+ y as DialogBody,
112
+ O as DialogContent,
113
+ D as DialogFooter,
114
+ R as DialogTrigger
107
115
  };
@@ -79,8 +79,8 @@ const y = b("flex px-24 text-base", {
79
79
  "pl-40": !i
80
80
  }),
81
81
  children: [
82
- o && /* @__PURE__ */ e("div", { className: "truncate text-center heading-4-semi-bold", children: o }),
83
- l && /* @__PURE__ */ e("div", { className: "truncate text-center text-muted body-2", children: l })
82
+ o && /* @__PURE__ */ e("div", { className: "truncate text-center heading-5-semi-bold", children: o }),
83
+ l && /* @__PURE__ */ e("div", { className: "truncate text-center body-2 text-muted", children: l })
84
84
  ]
85
85
  }
86
86
  ),
@@ -92,8 +92,8 @@ const y = b("flex px-24 text-base", {
92
92
  /* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(d, { onClose: n }) })
93
93
  ] }),
94
94
  (o || l) && /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
95
- o && /* @__PURE__ */ e("div", { className: "heading-2-semi-bold", children: o }),
96
- l && /* @__PURE__ */ e("div", { className: "text-muted body-2", children: l })
95
+ o && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: o }),
96
+ l && /* @__PURE__ */ e("div", { className: "body-2 text-muted", children: l })
97
97
  ] })
98
98
  ] })
99
99
  ]
@@ -1,9 +1,9 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { cn as o } from "../../../libs/utils-shared/dist/index.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { cn as i } from "../../../libs/utils-shared/dist/index.js";
3
3
  import { cva as a } from "class-variance-authority";
4
4
  import n from "react";
5
5
  const c = a(
6
- "inline-flex size-fit items-center justify-center rounded-full text-muted transition-colors hover:text-muted-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:text-muted-pressed disabled:text-disabled",
6
+ "inline-flex size-fit cursor-pointer items-center justify-center rounded-full text-muted transition-colors hover:text-muted-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:text-muted-pressed disabled:text-disabled",
7
7
  {
8
8
  variants: {
9
9
  iconType: {
@@ -12,12 +12,12 @@ const c = a(
12
12
  }
13
13
  }
14
14
  }
15
- ), d = n.forwardRef(({ className: e, iconType: t, ...s }, r) => /* @__PURE__ */ i(
15
+ ), d = n.forwardRef(({ className: e, iconType: t, ...r }, s) => /* @__PURE__ */ o(
16
16
  "button",
17
17
  {
18
- ref: r,
19
- className: o(e, c({ iconType: t })),
20
- ...s
18
+ ref: s,
19
+ className: i(e, c({ iconType: t })),
20
+ ...r
21
21
  }
22
22
  ));
23
23
  d.displayName = "InteractiveIcon";
@@ -76,7 +76,7 @@ const N = n.forwardRef(({ children: e, className: t }, s) => {
76
76
  {
77
77
  ref: s,
78
78
  className: a(
79
- "w-full items-center truncate text-muted body-3",
79
+ "w-full items-center truncate body-3 text-muted",
80
80
  o ? "justify-end text-end" : "justify-start text-start",
81
81
  r && "text-disabled",
82
82
  t
@@ -11,14 +11,14 @@ const c = o(
11
11
  "data-[state=open]:animate-fade-in",
12
12
  "data-[state=closed]:animate-fade-out"
13
13
  ), d = o(
14
- "relative flex cursor-default select-none items-center gap-12",
15
- "h-44 rounded-sm px-8 outline-none",
16
- "text-base body-2-semi-bold",
14
+ "relative flex cursor-default items-center gap-12 select-none",
15
+ "h-44 rounded-sm px-8 outline-hidden",
16
+ "body-2-semi-bold text-base",
17
17
  "transition-colors",
18
18
  "focus:bg-base-transparent-hover",
19
19
  "active:bg-base-transparent-pressed",
20
- "data-[disabled]:pointer-events-none data-[disabled]:text-disabled"
21
- ), b = o("px-8 py-4 text-muted body-3-semi-bold"), N = o(
20
+ "data-disabled:pointer-events-none data-disabled:text-disabled"
21
+ ), b = o("px-8 py-4 body-3-semi-bold text-muted"), N = o(
22
22
  d,
23
23
  "data-[state=open]:bg-base-transparent-hover"
24
24
  );
@@ -7,7 +7,7 @@ const c = a.forwardRef(
7
7
  s,
8
8
  {
9
9
  size: 20,
10
- className: "text-muted group-has-[:disabled]:text-disabled",
10
+ className: "text-muted group-has-disabled:text-disabled",
11
11
  "aria-hidden": "true"
12
12
  }
13
13
  ), ...r })
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { cn as r } from "../../../libs/utils-shared/dist/index.js";
2
+ import { cn as l } from "../../../libs/utils-shared/dist/index.js";
3
3
  import * as a from "@radix-ui/react-select";
4
4
  import { cva as c } from "class-variance-authority";
5
5
  import * as s from "react";
@@ -13,34 +13,34 @@ function k({ ...t }) {
13
13
  function G({ ...t }) {
14
14
  return /* @__PURE__ */ e(a.Group, { "data-slot": "select-group", ...t });
15
15
  }
16
- const b = r(
17
- "group relative flex h-48 w-full items-center justify-between gap-8",
16
+ const b = l(
17
+ "group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
18
18
  "rounded-sm bg-muted px-16",
19
- "text-base body-2",
19
+ "body-2 text-base",
20
20
  "hover:bg-muted-hover",
21
- "transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-focus",
21
+ "transition-colors duration-200 focus:ring-2 focus:ring-focus focus:outline-hidden",
22
22
  "disabled:cursor-not-allowed disabled:text-disabled"
23
- ), g = r(
23
+ ), g = l(
24
24
  "pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
25
25
  "top-10 -translate-y-4 body-4",
26
- "group-data-[placeholder]:top-14 group-data-[placeholder]:translate-y-0 group-data-[placeholder]:body-2",
27
- "group-data-[:disabled]:text-disabled disabled:text-disabled group-data-[disabled]:text-disabled group-data-[placeholder][disabled]:text-disabled",
26
+ "group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
27
+ "group-data-disabled:text-disabled disabled:text-disabled",
28
28
  "max-w-[calc(100%-var(--size-56))] truncate"
29
- ), x = s.forwardRef(({ className: t, labelClassName: l, label: o, ...d }, i) => /* @__PURE__ */ n(
29
+ ), h = s.forwardRef(({ className: t, labelClassName: o, label: r, ...i }, d) => /* @__PURE__ */ n(
30
30
  a.Trigger,
31
31
  {
32
- ref: i,
32
+ ref: d,
33
33
  "data-slot": "select-trigger",
34
- className: r(b, t),
35
- ...d,
34
+ className: l(b, t),
35
+ ...i,
36
36
  children: [
37
- o && /* @__PURE__ */ e("label", { className: r(g, l), children: o }),
37
+ r && /* @__PURE__ */ e("label", { className: l(g, o), children: r }),
38
38
  /* @__PURE__ */ e(
39
39
  "span",
40
40
  {
41
- className: r(
42
- "flex-1 truncate text-left ",
43
- o && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-[placeholder]:mt-0 group-data-[placeholder]:opacity-0",
41
+ className: l(
42
+ "flex-1 truncate text-left",
43
+ r && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-placeholder:mt-0 group-data-placeholder:opacity-0",
44
44
  t
45
45
  ),
46
46
  children: /* @__PURE__ */ e(a.Value, { "data-slot": "select-value" })
@@ -50,22 +50,22 @@ const b = r(
50
50
  m,
51
51
  {
52
52
  size: 20,
53
- className: "shrink-0 text-muted group-data-[disabled]:text-disabled"
53
+ className: "shrink-0 text-muted group-data-disabled:text-disabled"
54
54
  }
55
55
  ) })
56
56
  ]
57
57
  }
58
58
  ));
59
- x.displayName = a.Trigger.displayName;
60
- const h = c(
59
+ h.displayName = a.Trigger.displayName;
60
+ const x = c(
61
61
  [
62
- "relative z-select max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden",
62
+ "relative z-select max-h-(--radix-select-content-available-height) overflow-x-hidden overflow-y-auto",
63
63
  "rounded-sm bg-muted",
64
64
  "shadow-md",
65
- "data-[side=bottom]:animate-slide-in-from-top-8",
66
- "data-[side=top]:animate-slide-in-from-bottom-8",
67
- "data-[side=left]:animate-slide-in-from-right-8",
68
- "data-[side=right]:animate-slide-in-from-left-8"
65
+ "data-[side=bottom]:animate-slide-in-from-top",
66
+ "data-[side=top]:animate-slide-in-from-bottom",
67
+ "data-[side=left]:animate-slide-in-from-right",
68
+ "data-[side=right]:animate-slide-in-from-left"
69
69
  ],
70
70
  {
71
71
  variants: {
@@ -81,112 +81,112 @@ const h = c(
81
81
  ), y = c("p-8", {
82
82
  variants: {
83
83
  position: {
84
- popper: "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
84
+ popper: "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
85
85
  "item-aligned": ""
86
86
  }
87
87
  },
88
88
  defaultVariants: {
89
89
  position: "popper"
90
90
  }
91
- }), N = s.forwardRef(({ className: t, children: l, position: o = "popper", ...d }, i) => /* @__PURE__ */ e(a.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ n(
91
+ }), N = s.forwardRef(({ className: t, children: o, position: r = "popper", ...i }, d) => /* @__PURE__ */ e(a.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ n(
92
92
  a.Content,
93
93
  {
94
- ref: i,
94
+ ref: d,
95
95
  "data-slot": "select-content",
96
- className: r(h({ position: o }), t),
97
- position: o,
98
- ...d,
96
+ className: l(x({ position: r }), t),
97
+ position: r,
98
+ ...i,
99
99
  children: [
100
100
  /* @__PURE__ */ e(R, {}),
101
- /* @__PURE__ */ e(a.Viewport, { className: y({ position: o }), children: l }),
101
+ /* @__PURE__ */ e(a.Viewport, { className: y({ position: r }), children: o }),
102
102
  /* @__PURE__ */ e(C, {})
103
103
  ]
104
104
  }
105
105
  ) }));
106
106
  N.displayName = a.Content.displayName;
107
- const v = s.forwardRef(({ className: t, ...l }, o) => /* @__PURE__ */ e(
107
+ const w = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
108
108
  a.Label,
109
109
  {
110
- ref: o,
110
+ ref: r,
111
111
  "data-slot": "select-label",
112
- className: r("mb-4 px-8 pb-0 pt-8 text-muted body-3-semi-bold", t),
113
- ...l
112
+ className: l("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", t),
113
+ ...o
114
114
  }
115
115
  ));
116
- v.displayName = a.Label.displayName;
117
- const w = r(
118
- "relative flex w-full cursor-default select-none items-center bg-base-transparent",
116
+ w.displayName = a.Label.displayName;
117
+ const S = l(
118
+ "relative flex w-full cursor-pointer items-center bg-base-transparent select-none",
119
119
  "rounded-sm p-8",
120
- "text-base body-2",
121
- "outline-none",
120
+ "body-2 text-base",
121
+ "outline-hidden",
122
122
  "focus:bg-base-transparent-hover",
123
123
  "active:bg-base-transparent-pressed",
124
- "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled"
125
- ), S = s.forwardRef(({ className: t, children: l, ...o }, d) => /* @__PURE__ */ n(
124
+ "data-disabled:cursor-not-allowed data-disabled:text-disabled"
125
+ ), v = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ n(
126
126
  a.Item,
127
127
  {
128
- ref: d,
128
+ ref: i,
129
129
  "data-slot": "select-item",
130
- className: r(w, t),
131
- ...o,
130
+ className: l(S, t),
131
+ ...r,
132
132
  children: [
133
- l,
133
+ o,
134
134
  /* @__PURE__ */ e("span", { className: "absolute right-8 flex size-24 items-center justify-center", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(p, { size: 24, className: "text-active" }) }) })
135
135
  ]
136
136
  }
137
137
  ));
138
- S.displayName = a.Item.displayName;
138
+ v.displayName = a.Item.displayName;
139
139
  const I = s.forwardRef(
140
- ({ className: t, ...l }, o) => /* @__PURE__ */ e(
140
+ ({ className: t, ...o }, r) => /* @__PURE__ */ e(
141
141
  u,
142
142
  {
143
- ref: o,
144
- className: r("mx-8 my-4 w-auto", t),
145
- ...l
143
+ ref: r,
144
+ className: l("mx-8 my-4 w-auto", t),
145
+ ...o
146
146
  }
147
147
  )
148
148
  );
149
149
  I.displayName = "SelectSeparator";
150
- const z = s.forwardRef(({ className: t, ...l }, o) => /* @__PURE__ */ e(
150
+ const z = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
151
151
  a.ItemText,
152
152
  {
153
- ref: o,
153
+ ref: r,
154
154
  "data-slot": "select-item-text",
155
- className: r("text-muted body-2", t),
156
- ...l
155
+ className: l("body-2 text-muted", t),
156
+ ...o
157
157
  }
158
158
  ));
159
159
  z.displayName = a.ItemText.displayName;
160
160
  function R({
161
161
  className: t,
162
- ...l
162
+ ...o
163
163
  }) {
164
164
  return /* @__PURE__ */ e(
165
165
  a.ScrollUpButton,
166
166
  {
167
167
  "data-slot": "select-scroll-up-button",
168
- className: r(
168
+ className: l(
169
169
  "flex cursor-default items-center justify-center py-1 text-muted",
170
170
  t
171
171
  ),
172
- ...l,
172
+ ...o,
173
173
  children: /* @__PURE__ */ e(f, { className: "size-4" })
174
174
  }
175
175
  );
176
176
  }
177
177
  function C({
178
178
  className: t,
179
- ...l
179
+ ...o
180
180
  }) {
181
181
  return /* @__PURE__ */ e(
182
182
  a.ScrollDownButton,
183
183
  {
184
184
  "data-slot": "select-scroll-down-button",
185
- className: r(
185
+ className: l(
186
186
  "flex cursor-default items-center justify-center py-1 text-muted",
187
187
  t
188
188
  ),
189
- ...l,
189
+ ...o,
190
190
  children: /* @__PURE__ */ e(m, { className: "size-4" })
191
191
  }
192
192
  );
@@ -195,9 +195,9 @@ export {
195
195
  k as Select,
196
196
  N as SelectContent,
197
197
  G as SelectGroup,
198
- S as SelectItem,
198
+ v as SelectItem,
199
199
  z as SelectItemText,
200
- v as SelectLabel,
200
+ w as SelectLabel,
201
201
  I as SelectSeparator,
202
- x as SelectTrigger
202
+ h as SelectTrigger
203
203
  };
@@ -20,7 +20,7 @@ const F = h(
20
20
  warning: "text-warning",
21
21
  info: "text-muted",
22
22
  loader: "",
23
- number: "text-base heading-4"
23
+ number: "heading-5 text-base"
24
24
  },
25
25
  disabled: {
26
26
  true: "text-disabled"
@@ -41,10 +41,10 @@ const F = h(
41
41
  72: 40
42
42
  }, m = {
43
43
  32: "body-2-semi-bold",
44
- 48: "heading-4",
45
- 56: "heading-3",
46
- 72: "heading-1"
47
- }, t = l[o] ?? 20, n = m[o] ?? "heading-4", p = f(() => {
44
+ 48: "heading-5",
45
+ 56: "heading-4",
46
+ 72: "heading-2"
47
+ }, t = l[o] ?? 20, n = m[o] ?? "heading-5", p = f(() => {
48
48
  switch (r.appearance) {
49
49
  case "icon": {
50
50
  const { icon: u } = r;
@@ -24,7 +24,7 @@ const a = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrin
24
24
  ...d,
25
25
  children: [
26
26
  /* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
27
- /* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-4-semi-bold", children: m }),
27
+ /* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-5-semi-bold", children: m }),
28
28
  u
29
29
  ] }),
30
30
  S
@@ -5,10 +5,10 @@ import { cva as d } from "class-variance-authority";
5
5
  import m from "react";
6
6
  const u = d(
7
7
  s(
8
- "group flex items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
8
+ "group flex cursor-pointer items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
9
9
  "[&[data-state=unchecked]:not([data-disabled])]:bg-muted-strong [&[data-state=unchecked]:not([data-disabled])]:hover:bg-muted-strong-hover [&[data-state=unchecked]:not([data-disabled])]:active:bg-muted-strong-pressed",
10
10
  "[&[data-state=checked]:not([data-disabled])]:bg-active [&[data-state=checked]:not([data-disabled])]:hover:bg-active-hover [&[data-state=checked]:not([data-disabled])]:active:bg-active-pressed",
11
- "data-[disabled]:bg-disabled-strong"
11
+ "data-disabled:bg-disabled-strong"
12
12
  ),
13
13
  {
14
14
  variants: {
@@ -22,7 +22,7 @@ const u = d(
22
22
  }
23
23
  }
24
24
  ), h = d(
25
- "translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-[disabled]:bg-base",
25
+ "translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-disabled:bg-base",
26
26
  {
27
27
  variants: {
28
28
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CA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