@ledgerhq/lumen-ui-react 0.1.17 → 0.1.18

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 (136) hide show
  1. package/ai-rules/RULES.md +6 -0
  2. package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
  3. package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
  4. package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
  5. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
  6. package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  7. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
  8. package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
  9. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  10. package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
  11. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  12. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  13. package/dist/lib/Components/Avatar/Avatar.js +8 -9
  14. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
  15. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  16. package/dist/lib/Components/BaseInput/BaseInput.js +44 -44
  17. package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
  18. package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
  19. package/dist/lib/Components/Button/BaseButton.js +14 -15
  20. package/dist/lib/Components/Button/Button.d.ts +1 -4
  21. package/dist/lib/Components/Button/Button.d.ts.map +1 -1
  22. package/dist/lib/Components/Button/Button.js +6 -7
  23. package/dist/lib/Components/Card/Card.d.ts +10 -40
  24. package/dist/lib/Components/Card/Card.d.ts.map +1 -1
  25. package/dist/lib/Components/Card/Card.js +115 -134
  26. package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
  27. package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
  28. package/dist/lib/Components/CardButton/CardButton.js +10 -11
  29. package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
  30. package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
  32. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
  33. package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
  34. package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
  35. package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
  36. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  37. package/dist/lib/Components/DataTable/DataTable.js +84 -97
  38. package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
  39. package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
  40. package/dist/lib/Components/Dialog/Dialog.js +44 -50
  41. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
  42. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  43. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
  44. package/dist/lib/Components/Divider/Divider.d.ts +1 -4
  45. package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
  46. package/dist/lib/Components/Divider/Divider.js +10 -11
  47. package/dist/lib/Components/Icon/Icon.d.ts +1 -4
  48. package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
  49. package/dist/lib/Components/Icon/Icon.js +6 -7
  50. package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
  51. package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
  52. package/dist/lib/Components/IconButton/IconButton.js +5 -6
  53. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
  54. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
  55. package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
  56. package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
  57. package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
  58. package/dist/lib/Components/Link/Link.d.ts +1 -4
  59. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  60. package/dist/lib/Components/Link/Link.js +13 -14
  61. package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
  62. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  63. package/dist/lib/Components/ListItem/ListItem.js +60 -63
  64. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
  65. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  66. package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
  67. package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
  68. package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
  69. package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
  70. package/dist/lib/Components/MediaImage/MediaImage.d.ts +1 -4
  71. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  72. package/dist/lib/Components/MediaImage/MediaImage.js +15 -16
  73. package/dist/lib/Components/Menu/Menu.d.ts +11 -38
  74. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  75. package/dist/lib/Components/Menu/Menu.js +100 -116
  76. package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
  77. package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
  78. package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
  79. package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
  80. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  81. package/dist/lib/Components/NavBar/NavBar.js +25 -34
  82. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
  83. package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
  84. package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
  85. package/dist/lib/Components/Popover/Popover.d.ts +1 -4
  86. package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
  87. package/dist/lib/Components/Popover/Popover.js +5 -7
  88. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
  89. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  90. package/dist/lib/Components/SearchInput/SearchInput.js +2 -3
  91. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
  92. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  93. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
  94. package/dist/lib/Components/Select/Select.d.ts +10 -40
  95. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  96. package/dist/lib/Components/Select/Select.js +141 -163
  97. package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
  98. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  99. package/dist/lib/Components/SideBar/SideBar.js +44 -53
  100. package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
  101. package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  102. package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
  103. package/dist/lib/Components/Spot/Spot.d.ts +1 -4
  104. package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
  105. package/dist/lib/Components/Spot/Spot.js +11 -12
  106. package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
  107. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  108. package/dist/lib/Components/Stepper/Stepper.js +10 -11
  109. package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
  110. package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
  111. package/dist/lib/Components/Subheader/Subheader.js +14 -15
  112. package/dist/lib/Components/Subheader/types.d.ts +1 -1
  113. package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
  114. package/dist/lib/Components/Switch/Switch.d.ts +1 -4
  115. package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
  116. package/dist/lib/Components/Switch/Switch.js +2 -3
  117. package/dist/lib/Components/Table/Table.d.ts +16 -64
  118. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  119. package/dist/lib/Components/Table/Table.js +146 -176
  120. package/dist/lib/Components/Tag/Tag.d.ts +1 -4
  121. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  122. package/dist/lib/Components/Tag/Tag.js +10 -11
  123. package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
  124. package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
  125. package/dist/lib/Components/TextInput/TextInput.js +4 -5
  126. package/dist/lib/Components/Tile/Tile.d.ts +6 -24
  127. package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
  128. package/dist/lib/Components/Tile/Tile.js +58 -71
  129. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
  130. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  131. package/dist/lib/Components/TileButton/TileButton.js +12 -13
  132. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
  133. package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
  134. package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
  135. package/dist/package.json +1 -1
  136. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
2
  import { useDisabledContext as f, cn as h } from "../../../libs/utils-shared/dist/index.js";
3
- import { Slot as B, Slottable as z } from "@radix-ui/react-slot";
3
+ import { Slot as z, Slottable as S } from "@radix-ui/react-slot";
4
4
  import { cva as l } from "class-variance-authority";
5
- import { Spinner as N } from "../Spinner/Spinner.js";
6
- const S = l(
5
+ import { Spinner as B } from "../Spinner/Spinner.js";
6
+ const N = l(
7
7
  "inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
8
8
  {
9
9
  variants: {
@@ -65,7 +65,7 @@ const S = l(
65
65
  true: "text-disabled"
66
66
  }
67
67
  }
68
- }), y = ({
68
+ }), M = ({
69
69
  ref: c,
70
70
  className: u,
71
71
  appearance: a = "base",
@@ -76,8 +76,8 @@ const S = l(
76
76
  icon: n,
77
77
  loading: r = !1,
78
78
  children: i,
79
- onClick: m,
80
- ...g
79
+ onClick: g,
80
+ ...m
81
81
  }) => {
82
82
  const e = f({
83
83
  consumerName: "BaseButton",
@@ -89,20 +89,20 @@ const S = l(
89
89
  lg: 24
90
90
  }[s] : 24;
91
91
  return /* @__PURE__ */ x(
92
- o ? B : "button",
92
+ o ? z : "button",
93
93
  {
94
94
  className: h(
95
- S({ disabled: e, loading: r, appearance: a, size: s, isFull: v }),
95
+ N({ disabled: e, loading: r, appearance: a, size: s, isFull: v }),
96
96
  u
97
97
  ),
98
98
  ref: c,
99
99
  "data-disabled": e || void 0,
100
100
  disabled: e,
101
- onClick: m,
102
- ...g,
101
+ onClick: g,
102
+ ...m,
103
103
  children: [
104
104
  r && /* @__PURE__ */ t(
105
- N,
105
+ B,
106
106
  {
107
107
  size: d,
108
108
  className: b({ appearance: a, disabled: e })
@@ -115,13 +115,12 @@ const S = l(
115
115
  className: b({ appearance: a, disabled: e })
116
116
  }
117
117
  ),
118
- i && (o ? /* @__PURE__ */ t(z, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
118
+ i && (o ? /* @__PURE__ */ t(S, { children: i }) : /* @__PURE__ */ t("span", { className: "line-clamp-2 text-left", children: i }))
119
119
  ]
120
120
  }
121
121
  );
122
122
  };
123
- y.displayName = "BaseButton";
124
123
  export {
125
- y as BaseButton,
126
- S as baseButtonVariants
124
+ M as BaseButton,
125
+ N as baseButtonVariants
127
126
  };
@@ -32,8 +32,5 @@ import { ButtonProps } from './types';
32
32
  * </Button>
33
33
  *
34
34
  */
35
- export declare const Button: {
36
- ({ ref, className, loading, disabled, children, size, icon, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
35
+ export declare const Button: ({ ref, className, loading, disabled, children, size, icon, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
39
36
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM;4EAShB,WAAW;;CAcb,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAetC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM,GAAI,uEASpB,WAAW,4CAcb,CAAC"}
@@ -13,12 +13,12 @@ const l = e("", {
13
13
  defaultVariants: {
14
14
  size: "md"
15
15
  }
16
- }), u = ({
16
+ }), x = ({
17
17
  ref: t,
18
18
  className: m,
19
19
  loading: s,
20
- disabled: a,
21
- children: r,
20
+ disabled: r,
21
+ children: a,
22
22
  size: o,
23
23
  icon: i,
24
24
  ...n
@@ -27,15 +27,14 @@ const l = e("", {
27
27
  {
28
28
  ref: t,
29
29
  size: o,
30
- disabled: a,
30
+ disabled: r,
31
31
  icon: i,
32
32
  loading: s,
33
33
  className: d(l({ size: o }), "gap-8", m),
34
34
  ...n,
35
- children: r
35
+ children: a
36
36
  }
37
37
  );
38
- u.displayName = "Button";
39
38
  export {
40
- u as Button
39
+ x as Button
41
40
  };
@@ -25,77 +25,47 @@ export declare const resolveCardInnerContext: ({ type, expanded, onClick, disabl
25
25
  * </CardHeader>
26
26
  * </Card>
27
27
  */
28
- export declare const Card: {
29
- ({ ref, className, type, expanded, outlined, disabled, onClick, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
30
- displayName: string;
31
- };
28
+ export declare const Card: ({ ref, className, type, expanded, outlined, disabled, onClick, children, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
32
29
  /**
33
30
  * Header row container for the card. Lays out CardLeading and CardTrailing horizontally.
34
31
  * When the card `type` is `"expandable"`, the header becomes the click target with hover/pressed states.
35
32
  */
36
- export declare const CardHeader: {
37
- ({ ref, children, className, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
38
- displayName: string;
39
- };
33
+ export declare const CardHeader: ({ ref, children, className, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
40
34
  /**
41
35
  * Leading section container. Wraps icon + CardContent.
42
36
  * Reusable inside both CardHeader and CardFooter.
43
37
  */
44
- export declare const CardLeading: {
45
- ({ ref, children, className, ...props }: CardLeadingProps): import("react/jsx-runtime").JSX.Element;
46
- displayName: string;
47
- };
38
+ export declare const CardLeading: ({ ref, children, className, ...props }: CardLeadingProps) => import("react/jsx-runtime").JSX.Element;
48
39
  /**
49
40
  * Flex column wrapper for CardContentTitle and CardContentDescription.
50
41
  * Supports right alignment via the `align` prop for trailing value displays.
51
42
  */
52
- export declare const CardContent: {
53
- ({ ref, children, className, ...props }: CardContentProps): import("react/jsx-runtime").JSX.Element;
54
- displayName: string;
55
- };
43
+ export declare const CardContent: ({ ref, children, className, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
56
44
  /**
57
45
  * Horizontal row wrapper for placing a CardContentTitle or CardContentDescription
58
46
  * alongside additional inline content (e.g. Tag) while preserving text truncation.
59
47
  */
60
- export declare const CardContentRow: {
61
- ({ ref, children, className, ...props }: CardContentRowProps): import("react/jsx-runtime").JSX.Element;
62
- displayName: string;
63
- };
48
+ export declare const CardContentRow: ({ ref, children, className, ...props }: CardContentRowProps) => import("react/jsx-runtime").JSX.Element;
64
49
  /**
65
50
  * Primary text of the card. Inherits the disabled state from the parent Card via context.
66
51
  */
67
- export declare const CardContentTitle: {
68
- ({ ref, children, className, ...props }: CardContentTitleProps): import("react/jsx-runtime").JSX.Element;
69
- displayName: string;
70
- };
52
+ export declare const CardContentTitle: ({ ref, children, className, ...props }: CardContentTitleProps) => import("react/jsx-runtime").JSX.Element;
71
53
  /**
72
54
  * Secondary text of the card. Inherits the disabled state from the parent Card via context.
73
55
  */
74
- export declare const CardContentDescription: {
75
- ({ ref, children, className, ...props }: CardContentDescriptionProps): import("react/jsx-runtime").JSX.Element;
76
- displayName: string;
77
- };
56
+ export declare const CardContentDescription: ({ ref, children, className, ...props }: CardContentDescriptionProps) => import("react/jsx-runtime").JSX.Element;
78
57
  /**
79
58
  * Trailing content container in the header. Used for Button, Tag, or right-aligned CardContent.
80
59
  * Inherits the disabled state from the parent Card via context.
81
60
  */
82
- export declare const CardTrailing: {
83
- ({ ref, children, className, ...props }: CardTrailingProps): import("react/jsx-runtime").JSX.Element;
84
- displayName: string;
85
- };
61
+ export declare const CardTrailing: ({ ref, children, className, ...props }: CardTrailingProps) => import("react/jsx-runtime").JSX.Element;
86
62
  /**
87
63
  * Footer container for the card. Collapses with a 300ms transition
88
64
  * when `footerExpanded` is `false` (only happens in `"expandable"` mode).
89
65
  */
90
- export declare const CardFooter: {
91
- ({ ref, children, className, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
92
- displayName: string;
93
- };
66
+ export declare const CardFooter: ({ ref, children, className, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
94
67
  /**
95
68
  * Horizontal row container for action buttons inside CardFooter.
96
69
  */
97
- export declare const CardFooterActions: {
98
- ({ ref, children, className, ...props }: CardFooterActionsProps): import("react/jsx-runtime").JSX.Element;
99
- displayName: string;
100
- };
70
+ export declare const CardFooterActions: ({ ref, children, className, ...props }: CardFooterActionsProps) => import("react/jsx-runtime").JSX.Element;
101
71
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Card/Card.tsx"],"names":[],"mappings":"AASA,OAAO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1
- import { jsx as s, jsxs as f, Fragment as p } from "react/jsx-runtime";
2
- import { createSafeContext as m, DisabledProvider as b, cn as o, getButtonA11yProps as C } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as g } from "class-variance-authority";
4
- import { useMemo as N } from "react";
5
- import { ChevronUp as h } from "../../Symbols/Icons/ChevronUp.js";
1
+ import { jsx as s, jsxs as f, Fragment as b } from "react/jsx-runtime";
2
+ import { createSafeContext as m, DisabledProvider as g, cn as o, getButtonA11yProps as C } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as p } from "class-variance-authority";
4
+ import { useMemo as h } from "react";
5
+ import { ChevronUp as N } from "../../Symbols/Icons/ChevronUp.js";
6
6
  import { ChevronDown as w } from "../../Symbols/Icons/ChevronDown.js";
7
- const y = ({
8
- type: r,
9
- expanded: t,
10
- onClick: a,
7
+ const k = ({
8
+ type: t,
9
+ expanded: a,
10
+ onClick: r,
11
11
  disabled: e
12
12
  }) => {
13
- switch (r) {
13
+ switch (t) {
14
14
  case "interactive":
15
15
  return {
16
- cardClickable: !!a,
16
+ cardClickable: !!r,
17
17
  headerClickable: !1,
18
18
  footerExpanded: !0,
19
19
  disabled: !!e,
@@ -22,10 +22,10 @@ const y = ({
22
22
  case "expandable":
23
23
  return {
24
24
  cardClickable: !1,
25
- headerClickable: !!a && !e,
26
- footerExpanded: !!t,
25
+ headerClickable: !!r && !e,
26
+ footerExpanded: !!a,
27
27
  disabled: !!e,
28
- onHeaderClick: a
28
+ onHeaderClick: r
29
29
  };
30
30
  case "info":
31
31
  return {
@@ -36,7 +36,7 @@ const y = ({
36
36
  onHeaderClick: void 0
37
37
  };
38
38
  }
39
- }, [k, c] = m(
39
+ }, [R, c] = m(
40
40
  "Card",
41
41
  {
42
42
  cardClickable: !1,
@@ -44,9 +44,9 @@ const y = ({
44
44
  footerExpanded: !0,
45
45
  disabled: !1
46
46
  }
47
- ), [R, v] = m("CardContentAlign", {
47
+ ), [q, v] = m("CardContentAlign", {
48
48
  align: "left"
49
- }), q = g(
49
+ }), E = p(
50
50
  "flex w-full flex-col overflow-clip rounded-lg bg-surface text-base transition-colors",
51
51
  {
52
52
  variants: {
@@ -76,97 +76,91 @@ const y = ({
76
76
  disabled: !1
77
77
  }
78
78
  }
79
- ), H = ({
80
- ref: r,
81
- className: t,
82
- type: a = "interactive",
79
+ ), P = ({
80
+ ref: t,
81
+ className: a,
82
+ type: r = "interactive",
83
83
  expanded: e,
84
84
  outlined: n = !1,
85
85
  disabled: i = !1,
86
- onClick: d,
87
- children: l,
86
+ onClick: l,
87
+ children: d,
88
88
  ...x
89
89
  }) => {
90
- const u = N(
91
- () => y({
92
- type: a,
90
+ const u = h(
91
+ () => k({
92
+ type: r,
93
93
  expanded: e,
94
- onClick: d,
94
+ onClick: l,
95
95
  disabled: i
96
96
  }),
97
- [a, e, d, i]
97
+ [r, e, l, i]
98
98
  );
99
- return /* @__PURE__ */ s(k, { value: u, children: /* @__PURE__ */ s(b, { value: { disabled: i }, children: /* @__PURE__ */ s(
99
+ return /* @__PURE__ */ s(R, { value: u, children: /* @__PURE__ */ s(g, { value: { disabled: i }, children: /* @__PURE__ */ s(
100
100
  "div",
101
101
  {
102
- ref: r,
103
- ...u.cardClickable && C({ onClick: d, disabled: i }),
102
+ ref: t,
103
+ ...u.cardClickable && C({ onClick: l, disabled: i }),
104
104
  className: o(
105
- q({
105
+ E({
106
106
  interactive: u.cardClickable,
107
107
  outlined: n,
108
108
  disabled: i
109
109
  }),
110
- t
110
+ a
111
111
  ),
112
112
  ...x,
113
- children: l
113
+ children: d
114
114
  }
115
115
  ) }) });
116
- };
117
- H.displayName = "Card";
118
- const A = ({
119
- ref: r,
120
- children: t,
121
- className: a,
116
+ }, T = ({
117
+ ref: t,
118
+ children: a,
119
+ className: r,
122
120
  ...e
123
121
  }) => {
124
- const { disabled: n, headerClickable: i, footerExpanded: d, onHeaderClick: l } = c({
122
+ const { disabled: n, headerClickable: i, footerExpanded: l, onHeaderClick: d } = c({
125
123
  consumerName: "CardHeader",
126
124
  contextRequired: !1
127
125
  });
128
126
  return /* @__PURE__ */ f(
129
127
  "div",
130
128
  {
131
- ref: r,
132
- "aria-expanded": l ? d : void 0,
133
- ...C({ onClick: l, disabled: n }),
129
+ ref: t,
130
+ "aria-expanded": d ? l : void 0,
131
+ ...C({ onClick: d, disabled: n }),
134
132
  className: o(
135
133
  "flex items-center gap-12 p-12",
136
134
  i && "cursor-pointer -outline-offset-6 transition-colors hover:bg-surface-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-surface-pressed",
137
- a
135
+ r
138
136
  ),
139
137
  ...e,
140
138
  children: [
141
- t,
142
- l && /* @__PURE__ */ f(p, { children: [
143
- d && /* @__PURE__ */ s(h, { className: "text-muted", size: 20 }),
144
- !d && /* @__PURE__ */ s(w, { className: "text-muted", size: 20 })
139
+ a,
140
+ d && /* @__PURE__ */ f(b, { children: [
141
+ l && /* @__PURE__ */ s(N, { className: "text-muted", size: 20 }),
142
+ !l && /* @__PURE__ */ s(w, { className: "text-muted", size: 20 })
145
143
  ] })
146
144
  ]
147
145
  }
148
146
  );
149
- };
150
- A.displayName = "CardHeader";
151
- const E = ({
152
- ref: r,
153
- children: t,
154
- className: a,
147
+ }, z = ({
148
+ ref: t,
149
+ children: a,
150
+ className: r,
155
151
  ...e
156
152
  }) => /* @__PURE__ */ s(
157
153
  "div",
158
154
  {
159
- ref: r,
160
- className: o("flex min-w-0 flex-1 items-center gap-12", a),
155
+ ref: t,
156
+ className: o("flex min-w-0 flex-1 items-center gap-12", r),
161
157
  ...e,
162
- children: t
158
+ children: a
163
159
  }
164
- );
165
- E.displayName = "CardLeading";
166
- const F = ({
167
- ref: r,
168
- children: t,
169
- className: a,
160
+ ), V = ({
161
+ ref: t,
162
+ children: a,
163
+ className: r,
170
164
  ...e
171
165
  }) => {
172
166
  const { align: n } = v({
@@ -176,22 +170,20 @@ const F = ({
176
170
  return /* @__PURE__ */ s(
177
171
  "div",
178
172
  {
179
- ref: r,
173
+ ref: t,
180
174
  className: o(
181
175
  "flex min-w-0 flex-1 flex-col gap-4",
182
176
  n === "right" && "items-end text-end",
183
- a
177
+ r
184
178
  ),
185
179
  ...e,
186
- children: t
180
+ children: a
187
181
  }
188
182
  );
189
- };
190
- F.displayName = "CardContent";
191
- const T = ({
192
- ref: r,
193
- children: t,
194
- className: a,
183
+ }, B = ({
184
+ ref: t,
185
+ children: a,
186
+ className: r,
195
187
  ...e
196
188
  }) => {
197
189
  const { align: n } = v({
@@ -201,22 +193,20 @@ const T = ({
201
193
  return /* @__PURE__ */ s(
202
194
  "div",
203
195
  {
204
- ref: r,
196
+ ref: t,
205
197
  className: o(
206
198
  "flex min-w-0 items-center gap-8",
207
199
  n === "right" && "justify-end",
208
- a
200
+ r
209
201
  ),
210
202
  ...e,
211
- children: t
203
+ children: a
212
204
  }
213
205
  );
214
- };
215
- T.displayName = "CardContentRow";
216
- const D = ({
217
- ref: r,
218
- children: t,
219
- className: a,
206
+ }, I = ({
207
+ ref: t,
208
+ children: a,
209
+ className: r,
220
210
  ...e
221
211
  }) => {
222
212
  const { disabled: n } = c({
@@ -226,22 +216,20 @@ const D = ({
226
216
  return /* @__PURE__ */ s(
227
217
  "div",
228
218
  {
229
- ref: r,
219
+ ref: t,
230
220
  className: o(
231
221
  "truncate body-2-semi-bold",
232
222
  n && "text-disabled",
233
- a
223
+ r
234
224
  ),
235
225
  ...e,
236
- children: t
226
+ children: a
237
227
  }
238
228
  );
239
- };
240
- D.displayName = "CardContentTitle";
241
- const j = ({
242
- ref: r,
243
- children: t,
244
- className: a,
229
+ }, L = ({
230
+ ref: t,
231
+ children: a,
232
+ className: r,
245
233
  ...e
246
234
  }) => {
247
235
  const { disabled: n } = c({
@@ -251,47 +239,43 @@ const j = ({
251
239
  return /* @__PURE__ */ s(
252
240
  "div",
253
241
  {
254
- ref: r,
242
+ ref: t,
255
243
  className: o(
256
244
  "truncate body-3",
257
245
  n ? "text-disabled" : "text-muted",
258
- a
246
+ r
259
247
  ),
260
248
  ...e,
261
- children: t
249
+ children: a
262
250
  }
263
251
  );
264
- };
265
- j.displayName = "CardContentDescription";
266
- const P = ({
267
- ref: r,
268
- children: t,
269
- className: a,
252
+ }, M = ({
253
+ ref: t,
254
+ children: a,
255
+ className: r,
270
256
  ...e
271
257
  }) => {
272
258
  const { disabled: n } = c({
273
259
  consumerName: "CardTrailing",
274
260
  contextRequired: !1
275
261
  });
276
- return /* @__PURE__ */ s(R, { value: { align: "right" }, children: /* @__PURE__ */ s(
262
+ return /* @__PURE__ */ s(q, { value: { align: "right" }, children: /* @__PURE__ */ s(
277
263
  "div",
278
264
  {
279
- ref: r,
265
+ ref: t,
280
266
  className: o(
281
267
  "flex shrink-0 items-center gap-12",
282
268
  n && "text-disabled",
283
- a
269
+ r
284
270
  ),
285
271
  ...e,
286
- children: t
272
+ children: a
287
273
  }
288
274
  ) });
289
- };
290
- P.displayName = "CardTrailing";
291
- const z = ({
292
- ref: r,
293
- children: t,
294
- className: a,
275
+ }, S = ({
276
+ ref: t,
277
+ children: a,
278
+ className: r,
295
279
  ...e
296
280
  }) => {
297
281
  const { disabled: n, footerExpanded: i } = c({
@@ -308,45 +292,42 @@ const z = ({
308
292
  children: /* @__PURE__ */ s("div", { className: "overflow-hidden", children: /* @__PURE__ */ s(
309
293
  "div",
310
294
  {
311
- ref: r,
295
+ ref: t,
312
296
  className: o(
313
297
  "flex w-full flex-col gap-8 px-12 py-10",
314
298
  n && "text-disabled",
315
- a
299
+ r
316
300
  ),
317
301
  ...e,
318
- children: t
302
+ children: a
319
303
  }
320
304
  ) })
321
305
  }
322
306
  );
323
- };
324
- z.displayName = "CardFooter";
325
- const V = ({
326
- ref: r,
327
- children: t,
328
- className: a,
307
+ }, U = ({
308
+ ref: t,
309
+ children: a,
310
+ className: r,
329
311
  ...e
330
312
  }) => /* @__PURE__ */ s(
331
313
  "div",
332
314
  {
333
- ref: r,
334
- className: o("flex flex-row justify-end gap-10", a),
315
+ ref: t,
316
+ className: o("flex flex-row justify-end gap-10", r),
335
317
  ...e,
336
- children: t
318
+ children: a
337
319
  }
338
320
  );
339
- V.displayName = "CardFooterActions";
340
321
  export {
341
- H as Card,
342
- F as CardContent,
343
- j as CardContentDescription,
344
- T as CardContentRow,
345
- D as CardContentTitle,
346
- z as CardFooter,
347
- V as CardFooterActions,
348
- A as CardHeader,
349
- E as CardLeading,
350
- P as CardTrailing,
351
- y as resolveCardInnerContext
322
+ P as Card,
323
+ V as CardContent,
324
+ L as CardContentDescription,
325
+ B as CardContentRow,
326
+ I as CardContentTitle,
327
+ S as CardFooter,
328
+ U as CardFooterActions,
329
+ T as CardHeader,
330
+ z as CardLeading,
331
+ M as CardTrailing,
332
+ k as resolveCardInnerContext
352
333
  };
@@ -27,8 +27,5 @@ import { CardButtonProps } from './types';
27
27
  * appearance="outline"
28
28
  * />
29
29
  */
30
- export declare const CardButton: {
31
- ({ ref, className, appearance, icon, title, description, hideChevron, disabled: disabledProp, ...props }: CardButtonProps): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
30
+ export declare const CardButton: ({ ref, className, appearance, icon, title, description, hideChevron, disabled: disabledProp, ...props }: CardButtonProps) => import("react/jsx-runtime").JSX.Element;
34
31
  //# sourceMappingURL=CardButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU;8GAUpB,eAAe;;CAoCjB,CAAC"}
1
+ {"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU,GAAI,yGAUxB,eAAe,4CAoCjB,CAAC"}