@ledgerhq/lumen-ui-react 0.0.61 → 0.0.63

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.
@@ -75,7 +75,7 @@ import { ArrowRight } from '@ledgerhq/lumen-ui-react';
75
75
 
76
76
  // ✅ With rules
77
77
  import { ArrowRight } from '@ledgerhq/lumen-ui-react/symbols';
78
- <div className='text-muted heading-2'>Text</div>;
78
+ <div className='text-muted heading-3'>Text</div>;
79
79
  ```
80
80
 
81
81
  ## Auto-Sync Benefits
package/ai-rules/RULES.md CHANGED
@@ -40,7 +40,7 @@
40
40
  - Do not use Tailwind Typography utilities (e.g., `font-bold`, `text-sm`, etc.)
41
41
  - Use Lumen custom typography utilities:
42
42
  - `responsive-display-1` to `responsive-display-4`
43
- - `heading-0`, `heading-0-semi-bold` through `heading-4`, `heading-4-semi-bold`
43
+ - `heading-0`, `heading-0-semi-bold` through `heading-5`, `heading-5-semi-bold`
44
44
  - `body-1`, `body-1-semi-bold` through `body-4`, `body-4-semi-bold`
45
45
 
46
46
  ### Colors and Background
@@ -154,7 +154,7 @@ import { ArrowRight } from '@ledgerhq/lumen-ui-react/symbols';
154
154
 
155
155
  const Card = () => (
156
156
  <div className='bg-base border border-base rounded-lg p-16'>
157
- <h2 className='heading-3'>Card Title</h2>
157
+ <h2 className='heading-4'>Card Title</h2>
158
158
  <p className='body-2 text-muted mt-8'>This is a description using proper spacing and typography tokens.</p>
159
159
  <Button icon={ArrowRight} className='mt-16'>
160
160
  Learn More
@@ -319,4 +319,4 @@ Use ONLY the unique part after the last hyphen of the CSS variable name.
319
319
  - Figma shows: a comment with the style name, like `/* body/3 */`
320
320
  - Transform: replace `/` with `-`
321
321
  - Result: `body-3` (transform `body/3` → `body-3`)
322
- - Example: `/* heading/2-semi-bold */` → `heading-2-semi-bold`
322
+ - Example: `/* heading/2-semi-bold */` → `heading-3-semi-bold`
@@ -1,4 +1,4 @@
1
- export { type SupportedLocale } from './languages';
1
+ export { type SupportedLocale, Languages } from './languages';
2
2
  export { I18nProvider } from './I18nProvider';
3
3
  export { useCommonTranslation } from './useCommonTranslation';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,10 +1,40 @@
1
- const n = {
1
+ const d = {
2
+ de: {
3
+ id: "de"
4
+ },
2
5
  en: {
3
6
  id: "en"
7
+ },
8
+ es: {
9
+ id: "es"
10
+ },
11
+ fr: {
12
+ id: "fr"
13
+ },
14
+ ja: {
15
+ id: "ja"
16
+ },
17
+ ko: {
18
+ id: "ko"
19
+ },
20
+ pt: {
21
+ id: "pt"
22
+ },
23
+ ru: {
24
+ id: "ru"
25
+ },
26
+ th: {
27
+ id: "th"
28
+ },
29
+ tr: {
30
+ id: "tr"
31
+ },
32
+ zh: {
33
+ id: "zh"
4
34
  }
5
- }, o = n.en.id, A = "common";
35
+ }, i = d.en.id, t = "common";
6
36
  export {
7
- o as DEFAULT_LANGUAGE,
8
- A as I18N_DEFAULT_NAMESPACE,
9
- n as Languages
37
+ i as DEFAULT_LANGUAGE,
38
+ t as I18N_DEFAULT_NAMESPACE,
39
+ d as Languages
10
40
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './lib/Components';
2
2
  export * from './lib/Patterns';
3
- export { type SupportedLocale } from './i18n';
3
+ export { type SupportedLocale, Languages } from './i18n';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -1,97 +1,99 @@
1
- import { AddressInput as o } from "./lib/Components/AddressInput/AddressInput.js";
2
- import { AmountInput as n } from "./lib/Components/AmountInput/AmountInput.js";
3
- import { Banner as p } from "./lib/Components/Banner/Banner.js";
4
- import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
5
- import { Button as x } from "./lib/Components/Button/Button.js";
6
- import { BaseButton as f } from "./lib/Components/Button/BaseButton.js";
7
- import { CardButton as I } from "./lib/Components/CardButton/CardButton.js";
8
- import { Checkbox as S } from "./lib/Components/Checkbox/Checkbox.js";
9
- import { Dialog as s, DialogBody as M, DialogContent as d, DialogFooter as L, DialogTrigger as C } from "./lib/Components/Dialog/Dialog.js";
10
- import { DialogHeader as b } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
11
- import { Divider as h } from "./lib/Components/Divider/Divider.js";
12
- import { IconButton as v } from "./lib/Components/IconButton/IconButton.js";
13
- import { InteractiveIcon as G } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
14
- import { Link as y } from "./lib/Components/Link/Link.js";
15
- import { ListItem as w, ListItemContent as F, ListItemDescription as H, ListItemIcon as j, ListItemLeading as q, ListItemSpot as z, ListItemTitle as E, ListItemTrailing as J, ListItemTruncate as K } from "./lib/Components/ListItem/ListItem.js";
16
- import { Menu as O, MenuCheckboxItem as Q, MenuContent as U, MenuGroup as V, MenuItem as W, MenuLabel as X, MenuPortal as Y, MenuRadioGroup as Z, MenuRadioItem as _, MenuSeparator as $, MenuSub as ee, MenuSubContent as te, MenuSubTrigger as oe, MenuTrigger as re } from "./lib/Components/Menu/Menu.js";
17
- import { SearchInput as ie } from "./lib/Components/SearchInput/SearchInput.js";
18
- import { Select as me, SelectContent as ue, SelectGroup as le, SelectItem as xe, SelectItemText as ae, SelectLabel as fe, SelectSeparator as Te, SelectTrigger as Ie } from "./lib/Components/Select/Select.js";
19
- import { Skeleton as Se } from "./lib/Components/Skeleton/Skeleton.js";
20
- import { Spot as se } from "./lib/Components/Spot/Spot.js";
21
- import { Subheader as de } from "./lib/Components/Subheader/Subheader.js";
22
- import { Switch as Ce } from "./lib/Components/Switch/Switch.js";
23
- import { Tag as be } from "./lib/Components/Tag/Tag.js";
24
- import { TextInput as he } from "./lib/Components/TextInput/TextInput.js";
25
- import { Tile as ve, TileContent as Ae, TileDescription as Ge, TileSecondaryAction as Pe, TileSpot as ye, TileTitle as Re } from "./lib/Components/Tile/Tile.js";
26
- import { Tooltip as Fe, TooltipContent as He, TooltipProvider as je, TooltipTrigger as qe } from "./lib/Components/Tooltip/Tooltip.js";
27
- import { ThemeProvider as Ee, useTheme as Je } from "./lib/Components/ThemeProvider/ThemeProvider.js";
1
+ import { Languages as o } from "./i18n/languages.js";
2
+ import { AddressInput as n } from "./lib/Components/AddressInput/AddressInput.js";
3
+ import { AmountInput as p } from "./lib/Components/AmountInput/AmountInput.js";
4
+ import { Banner as u } from "./lib/Components/Banner/Banner.js";
5
+ import { BaseInput as l } from "./lib/Components/BaseInput/BaseInput.js";
6
+ import { Button as f } from "./lib/Components/Button/Button.js";
7
+ import { BaseButton as I } from "./lib/Components/Button/BaseButton.js";
8
+ import { CardButton as g } from "./lib/Components/CardButton/CardButton.js";
9
+ import { Checkbox as s } from "./lib/Components/Checkbox/Checkbox.js";
10
+ import { Dialog as M, DialogBody as d, DialogContent as C, DialogFooter as D, DialogTrigger as b } from "./lib/Components/Dialog/Dialog.js";
11
+ import { DialogHeader as h } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
12
+ import { Divider as v } from "./lib/Components/Divider/Divider.js";
13
+ import { IconButton as G } from "./lib/Components/IconButton/IconButton.js";
14
+ import { InteractiveIcon as y } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
15
+ import { Link as w } from "./lib/Components/Link/Link.js";
16
+ import { ListItem as H, ListItemContent as j, ListItemDescription as q, ListItemIcon as z, ListItemLeading as E, ListItemSpot as J, ListItemTitle as K, ListItemTrailing as N, ListItemTruncate as O } from "./lib/Components/ListItem/ListItem.js";
17
+ import { Menu as U, MenuCheckboxItem as V, MenuContent as W, MenuGroup as X, MenuItem as Y, MenuLabel as Z, MenuPortal as _, MenuRadioGroup as $, MenuRadioItem as ee, MenuSeparator as te, MenuSub as oe, MenuSubContent as re, MenuSubTrigger as ne, MenuTrigger as ie } from "./lib/Components/Menu/Menu.js";
18
+ import { SearchInput as me } from "./lib/Components/SearchInput/SearchInput.js";
19
+ import { Select as xe, SelectContent as le, SelectGroup as ae, SelectItem as fe, SelectItemText as Te, SelectLabel as Ie, SelectSeparator as ce, SelectTrigger as ge } from "./lib/Components/Select/Select.js";
20
+ import { Skeleton as se } from "./lib/Components/Skeleton/Skeleton.js";
21
+ import { Spot as Me } from "./lib/Components/Spot/Spot.js";
22
+ import { Subheader as Ce } from "./lib/Components/Subheader/Subheader.js";
23
+ import { Switch as be } from "./lib/Components/Switch/Switch.js";
24
+ import { Tag as he } from "./lib/Components/Tag/Tag.js";
25
+ import { TextInput as ve } from "./lib/Components/TextInput/TextInput.js";
26
+ import { Tile as Ge, TileContent as Pe, TileDescription as ye, TileSecondaryAction as Re, TileSpot as we, TileTitle as Fe } from "./lib/Components/Tile/Tile.js";
27
+ import { Tooltip as je, TooltipContent as qe, TooltipProvider as ze, TooltipTrigger as Ee } from "./lib/Components/Tooltip/Tooltip.js";
28
+ import { ThemeProvider as Ke, useTheme as Ne } from "./lib/Components/ThemeProvider/ThemeProvider.js";
28
29
  export {
29
- o as AddressInput,
30
- n as AmountInput,
31
- p as Banner,
32
- f as BaseButton,
33
- u as BaseInput,
34
- x as Button,
35
- I as CardButton,
36
- S as Checkbox,
37
- s as Dialog,
38
- M as DialogBody,
39
- d as DialogContent,
40
- L as DialogFooter,
41
- b as DialogHeader,
42
- C as DialogTrigger,
43
- h as Divider,
44
- v as IconButton,
45
- G as InteractiveIcon,
46
- y as Link,
47
- w as ListItem,
48
- F as ListItemContent,
49
- H as ListItemDescription,
50
- j as ListItemIcon,
51
- q as ListItemLeading,
52
- z as ListItemSpot,
53
- E as ListItemTitle,
54
- J as ListItemTrailing,
55
- K as ListItemTruncate,
56
- O as Menu,
57
- Q as MenuCheckboxItem,
58
- U as MenuContent,
59
- V as MenuGroup,
60
- W as MenuItem,
61
- X as MenuLabel,
62
- Y as MenuPortal,
63
- Z as MenuRadioGroup,
64
- _ as MenuRadioItem,
65
- $ as MenuSeparator,
66
- ee as MenuSub,
67
- te as MenuSubContent,
68
- oe as MenuSubTrigger,
69
- re as MenuTrigger,
70
- ie as SearchInput,
71
- me as Select,
72
- ue as SelectContent,
73
- le as SelectGroup,
74
- xe as SelectItem,
75
- ae as SelectItemText,
76
- fe as SelectLabel,
77
- Te as SelectSeparator,
78
- Ie as SelectTrigger,
79
- Se as Skeleton,
80
- se as Spot,
81
- de as Subheader,
82
- Ce as Switch,
83
- be as Tag,
84
- he as TextInput,
85
- Ee as ThemeProvider,
86
- ve as Tile,
87
- Ae as TileContent,
88
- Ge as TileDescription,
89
- Pe as TileSecondaryAction,
90
- ye as TileSpot,
91
- Re as TileTitle,
92
- Fe as Tooltip,
93
- He as TooltipContent,
94
- je as TooltipProvider,
95
- qe as TooltipTrigger,
96
- Je as useTheme
30
+ n as AddressInput,
31
+ p as AmountInput,
32
+ u as Banner,
33
+ I as BaseButton,
34
+ l as BaseInput,
35
+ f as Button,
36
+ g as CardButton,
37
+ s as Checkbox,
38
+ M as Dialog,
39
+ d as DialogBody,
40
+ C as DialogContent,
41
+ D as DialogFooter,
42
+ h as DialogHeader,
43
+ b as DialogTrigger,
44
+ v as Divider,
45
+ G as IconButton,
46
+ y as InteractiveIcon,
47
+ o as Languages,
48
+ w as Link,
49
+ H as ListItem,
50
+ j as ListItemContent,
51
+ q as ListItemDescription,
52
+ z as ListItemIcon,
53
+ E as ListItemLeading,
54
+ J as ListItemSpot,
55
+ K as ListItemTitle,
56
+ N as ListItemTrailing,
57
+ O as ListItemTruncate,
58
+ U as Menu,
59
+ V as MenuCheckboxItem,
60
+ W as MenuContent,
61
+ X as MenuGroup,
62
+ Y as MenuItem,
63
+ Z as MenuLabel,
64
+ _ as MenuPortal,
65
+ $ as MenuRadioGroup,
66
+ ee as MenuRadioItem,
67
+ te as MenuSeparator,
68
+ oe as MenuSub,
69
+ re as MenuSubContent,
70
+ ne as MenuSubTrigger,
71
+ ie as MenuTrigger,
72
+ me as SearchInput,
73
+ xe as Select,
74
+ le as SelectContent,
75
+ ae as SelectGroup,
76
+ fe as SelectItem,
77
+ Te as SelectItemText,
78
+ Ie as SelectLabel,
79
+ ce as SelectSeparator,
80
+ ge as SelectTrigger,
81
+ se as Skeleton,
82
+ Me as Spot,
83
+ Ce as Subheader,
84
+ be as Switch,
85
+ he as Tag,
86
+ ve as TextInput,
87
+ Ke as ThemeProvider,
88
+ Ge as Tile,
89
+ Pe as TileContent,
90
+ ye as TileDescription,
91
+ Re as TileSecondaryAction,
92
+ we as TileSpot,
93
+ Fe as TileTitle,
94
+ je as Tooltip,
95
+ qe as TooltipContent,
96
+ ze as TooltipProvider,
97
+ Ee as TooltipTrigger,
98
+ Ne as useTheme
97
99
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAepB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;;;;+EAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;;;+EAaxB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;;;;+EAsBtB,CAAC;AAGF;;;;;;;;;;;;;;;;;;;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 [x, s] = u("Dialog"), p = 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 left-[50%] top-[50%] z-dialog-content translate-x-[-50%] translate-y-[-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(x, { 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(p({ 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,7 +79,7 @@ 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 }),
82
+ o && /* @__PURE__ */ e("div", { className: "heading-5-semi-bold truncate text-center", children: o }),
83
83
  l && /* @__PURE__ */ e("div", { className: "truncate text-center text-muted body-2", children: l })
84
84
  ]
85
85
  }
@@ -92,7 +92,7 @@ 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 }),
95
+ o && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: o }),
96
96
  l && /* @__PURE__ */ e("div", { className: "text-muted body-2", children: l })
97
97
  ] })
98
98
  ] })
@@ -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: "heading-5-semi-bold min-w-0 truncate", children: m }),
28
28
  u
29
29
  ] }),
30
30
  S
@@ -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,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CAYlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;sEAM7B,wBAAwB;;CAmC1B,CAAC"}
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,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;sEAM7B,wBAAwB;;CAmC1B,CAAC"}
@@ -73,7 +73,7 @@ const [V, u] = C("Tile"), v = {
73
73
  onMouseLeave: r,
74
74
  ...x
75
75
  }) => {
76
- const [g, f] = I(!1), { slotElement: y, remainingChildren: N } = q(
76
+ const [y, f] = I(!1), { slotElement: N, remainingChildren: g } = q(
77
77
  m,
78
78
  T
79
79
  ), h = n(
@@ -100,7 +100,7 @@ const [V, u] = C("Tile"), v = {
100
100
  ...x,
101
101
  className: v.root({
102
102
  appearance: s,
103
- isActive: g,
103
+ isActive: y,
104
104
  disabled: t,
105
105
  className: e
106
106
  }),
@@ -122,10 +122,10 @@ const [V, u] = C("Tile"), v = {
122
122
  disabled: t,
123
123
  "data-disabled": t || void 0,
124
124
  className: v.button(),
125
- children: N
125
+ children: g
126
126
  }
127
127
  ),
128
- y
128
+ N
129
129
  ]
130
130
  }
131
131
  ) });
@@ -146,10 +146,7 @@ const P = ({
146
146
  }) => /* @__PURE__ */ l(
147
147
  "div",
148
148
  {
149
- className: d(
150
- "flex w-full flex-col items-center gap-4 text-center",
151
- i
152
- ),
149
+ className: d("flex w-full flex-col items-center text-center", i),
153
150
  ...s,
154
151
  children: e
155
152
  }
@@ -224,7 +221,7 @@ const T = ({
224
221
  {
225
222
  "data-slot": "tile-secondary-action",
226
223
  className: d(
227
- "absolute right-12 top-16 opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100",
224
+ "absolute right-4 top-8 opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100",
228
225
  s
229
226
  ),
230
227
  "data-secondary-button-container": !0,
@@ -93,7 +93,7 @@ export declare const TooltipTrigger: ({ ...props }: TooltipTriggerProps) => impo
93
93
  * // With custom styling for layout
94
94
  * <TooltipContent sideOffset={12} className="max-w-xs">
95
95
  * <div className="space-y-2">
96
- * <h4 className="heading-1">Tip Title</h4>
96
+ * <h4 className="heading-2">Tip Title</h4>
97
97
  * <p>Detailed explanation of the feature.</p>
98
98
  * </div>
99
99
  * </TooltipContent>
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@ledgerhq/lumen-utils-shared": "0.0.14",
44
+ "@ledgerhq/lumen-utils-shared": "0.0.15",
45
45
  "i18next": "^23.7.0",
46
46
  "react-i18next": "^14.0.0"
47
47
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-react",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "keywords": [