@ledgerhq/lumen-ui-react 0.1.47 → 0.1.49

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 (72) hide show
  1. package/dist/index.js +227 -219
  2. package/dist/lib/Components/AmountDisplay/AmountDisplay.js +10 -10
  3. package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
  4. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -1
  5. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  6. package/dist/lib/Components/Avatar/Avatar.js +97 -57
  7. package/dist/lib/Components/Avatar/index.d.ts +1 -0
  8. package/dist/lib/Components/Avatar/index.d.ts.map +1 -1
  9. package/dist/lib/Components/Avatar/resolveAvatarColor.d.ts +9 -0
  10. package/dist/lib/Components/Avatar/resolveAvatarColor.d.ts.map +1 -0
  11. package/dist/lib/Components/Avatar/resolveAvatarColor.js +18 -0
  12. package/dist/lib/Components/Avatar/types.d.ts +23 -8
  13. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  14. package/dist/lib/Components/AvatarButton/AvatarButton.d.ts +6 -0
  15. package/dist/lib/Components/AvatarButton/AvatarButton.d.ts.map +1 -0
  16. package/dist/lib/Components/AvatarButton/AvatarButton.js +52 -0
  17. package/dist/lib/Components/AvatarButton/index.d.ts +3 -0
  18. package/dist/lib/Components/AvatarButton/index.d.ts.map +1 -0
  19. package/dist/lib/Components/AvatarButton/types.d.ts +4 -0
  20. package/dist/lib/Components/AvatarButton/types.d.ts.map +1 -0
  21. package/dist/lib/Components/BaseInput/BaseInput.js +6 -6
  22. package/dist/lib/Components/BaseTag/BaseTag.js +4 -4
  23. package/dist/lib/Components/Button/BaseButton.d.ts +2 -2
  24. package/dist/lib/Components/Button/Button.js +8 -8
  25. package/dist/lib/Components/Card/Card.js +14 -14
  26. package/dist/lib/Components/CardButton/CardButton.js +6 -6
  27. package/dist/lib/Components/DataTable/DataTable.js +10 -10
  28. package/dist/lib/Components/Divider/Divider.js +4 -4
  29. package/dist/lib/Components/DotIcon/DotIcon.js +5 -5
  30. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +32 -0
  31. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -1
  32. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +7 -4
  33. package/dist/lib/Components/Icon/createIcon.js +6 -6
  34. package/dist/lib/Components/Link/Link.js +6 -6
  35. package/dist/lib/Components/ListItem/ListItem.js +4 -4
  36. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +1 -1
  37. package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
  38. package/dist/lib/Components/MediaBanner/MediaBanner.js +94 -75
  39. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  40. package/dist/lib/Components/MediaImage/MediaImage.js +6 -6
  41. package/dist/lib/Components/Menu/Menu.js +33 -33
  42. package/dist/lib/Components/NavBar/CoinCapsule.js +4 -4
  43. package/dist/lib/Components/NavBar/NavBar.js +9 -9
  44. package/dist/lib/Components/Popover/Popover.js +14 -14
  45. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +11 -11
  46. package/dist/lib/Components/SideBar/SideBar.js +34 -34
  47. package/dist/lib/Components/Spot/Spot.js +4 -4
  48. package/dist/lib/Components/Stepper/Stepper.js +6 -6
  49. package/dist/lib/Components/Table/Table.d.ts +24 -3
  50. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  51. package/dist/lib/Components/Table/Table.js +270 -182
  52. package/dist/lib/Components/Table/types.d.ts +63 -28
  53. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  54. package/dist/lib/Components/Tooltip/Tooltip.js +4 -4
  55. package/dist/lib/Components/index.d.ts +1 -0
  56. package/dist/lib/Components/index.d.ts.map +1 -1
  57. package/dist/lib/Symbols/Icons/Atm.d.ts +29 -0
  58. package/dist/lib/Symbols/Icons/Atm.d.ts.map +1 -0
  59. package/dist/lib/Symbols/Icons/Atm.js +28 -0
  60. package/dist/lib/Symbols/Icons/Cutlery.d.ts +29 -0
  61. package/dist/lib/Symbols/Icons/Cutlery.d.ts.map +1 -0
  62. package/dist/lib/Symbols/Icons/Cutlery.js +28 -0
  63. package/dist/lib/Symbols/Icons/GameControler.d.ts +29 -0
  64. package/dist/lib/Symbols/Icons/GameControler.d.ts.map +1 -0
  65. package/dist/lib/Symbols/Icons/GameControler.js +28 -0
  66. package/dist/lib/Symbols/index.d.ts +3 -0
  67. package/dist/lib/Symbols/index.d.ts.map +1 -1
  68. package/dist/lib/Symbols/index.js +512 -506
  69. package/dist/libs/design-core/dist/lib/cssVar/cssVar.js +4 -0
  70. package/dist/libs/utils-shared/dist/index.js +135 -112
  71. package/dist/package.json +3 -3
  72. package/package.json +3 -3
@@ -1,78 +1,118 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { cva as u } from "class-variance-authority";
3
- import { useState as v, useEffect as b } from "react";
4
- import { useCommonTranslation as g } from "../../../i18n/useCommonTranslation.js";
5
- import { User as z } from "../../Symbols/Icons/User.js";
6
- const x = {
7
- root: u(
8
- "relative inline-flex items-center justify-center rounded-full transition-colors",
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { cn as c } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as m } from "class-variance-authority";
4
+ import { useState as z, useEffect as y } from "react";
5
+ import { useCommonTranslation as N } from "../../../i18n/useCommonTranslation.js";
6
+ import { User as j } from "../../Symbols/Icons/User.js";
7
+ const u = {
8
+ root: m(
9
+ "relative inline-flex items-center justify-center rounded-full bg-base-transparent-hover align-middle transition-colors",
9
10
  {
10
11
  variants: {
11
- appearance: {
12
- gray: "bg-muted",
13
- transparent: "bg-muted-transparent"
14
- },
15
12
  size: {
16
- sm: "size-40 p-4",
17
- md: "size-48 p-4",
18
- lg: "size-56 p-4",
19
- xl: "size-72 p-4"
13
+ xs: "size-24",
14
+ sm: "size-40",
15
+ md: "size-48",
16
+ lg: "size-56",
17
+ xl: "size-72",
18
+ "2xl": "size-128"
20
19
  }
21
20
  },
22
21
  defaultVariants: {
23
- appearance: "transparent",
24
22
  size: "md"
25
23
  }
26
24
  }
27
- )
28
- }, h = {
25
+ ),
26
+ text: m("select-none", {
27
+ variants: {
28
+ size: {
29
+ xs: "body-4-semi-bold",
30
+ sm: "body-1-semi-bold",
31
+ md: "heading-5-semi-bold",
32
+ lg: "heading-4-semi-bold",
33
+ xl: "heading-2-semi-bold",
34
+ "2xl": "heading-1-semi-bold"
35
+ }
36
+ }
37
+ })
38
+ }, C = {
39
+ xs: 12,
29
40
  sm: 16,
30
41
  md: 24,
31
42
  lg: 32,
32
- xl: 40
33
- }, y = ({
34
- ref: o,
35
- className: n,
36
- src: a,
37
- alt: s,
38
- appearance: l = "transparent",
39
- size: r = "md",
40
- imgLoading: i,
41
- ...m
43
+ xl: 40,
44
+ "2xl": 56
45
+ }, A = ({
46
+ size: s,
47
+ fallbackText: o,
48
+ fallbackColor: e
49
+ }) => {
50
+ const a = e ? "text-black" : "text-base";
51
+ return o ? /* @__PURE__ */ t("span", { className: c(u.text({ size: s }), a), children: o }) : /* @__PURE__ */ t(
52
+ j,
53
+ {
54
+ className: a,
55
+ size: C[s],
56
+ "aria-hidden": "true"
57
+ }
58
+ );
59
+ }, U = ({
60
+ ref: s,
61
+ className: o,
62
+ src: e,
63
+ alt: a,
64
+ size: n = "md",
65
+ imgLoading: b,
66
+ fallbackText: x,
67
+ fallbackColor: r,
68
+ appearance: i,
69
+ ...v
42
70
  }) => {
43
- const { t: c } = g(), [d, t] = v(!1), p = !a || d, f = s || c("components.avatar.defaultAriaLabel");
44
- return b(() => {
45
- t(!1);
46
- }, [a]), /* @__PURE__ */ e(
71
+ const { t: f } = N(), [h, l] = z(!1), d = !e || h, g = a || f("components.avatar.defaultAriaLabel");
72
+ return y(() => {
73
+ l(!1);
74
+ }, [e]), /* @__PURE__ */ p(
47
75
  "div",
48
76
  {
49
- ref: o,
50
- className: x.root({ appearance: l, size: r, className: n }),
77
+ ref: s,
78
+ className: c(u.root({ size: n }), o),
79
+ style: d && r ? { backgroundColor: r } : void 0,
51
80
  role: "img",
52
- "aria-label": f,
53
- ...m,
54
- children: p ? /* @__PURE__ */ e(
55
- z,
56
- {
57
- className: "text-base",
58
- size: h[r],
59
- "aria-label": "Fallback Icon",
60
- "aria-hidden": "true"
61
- }
62
- ) : /* @__PURE__ */ e(
63
- "img",
64
- {
65
- src: a,
66
- alt: "",
67
- loading: i,
68
- onError: () => t(!0),
69
- className: "size-full overflow-hidden rounded-full object-cover",
70
- "aria-hidden": "true"
71
- }
72
- )
81
+ "aria-label": g,
82
+ ...v,
83
+ children: [
84
+ d ? /* @__PURE__ */ t(
85
+ A,
86
+ {
87
+ size: n,
88
+ fallbackText: x,
89
+ fallbackColor: r
90
+ }
91
+ ) : /* @__PURE__ */ t(
92
+ "img",
93
+ {
94
+ src: e,
95
+ alt: "",
96
+ loading: b,
97
+ onError: () => l(!0),
98
+ className: "size-full overflow-hidden rounded-full object-cover",
99
+ "aria-hidden": "true"
100
+ }
101
+ ),
102
+ i && /* @__PURE__ */ t(
103
+ "span",
104
+ {
105
+ className: "pointer-events-none absolute inset-0 rounded-full",
106
+ style: {
107
+ boxShadow: i === "thin" ? "inset 0 0 0 1px var(--color-border-icon)" : "inset 0 0 0 2px var(--color-border-muted-subtle-transparent)"
108
+ },
109
+ "aria-hidden": "true"
110
+ }
111
+ )
112
+ ]
73
113
  }
74
114
  );
75
115
  };
76
116
  export {
77
- y as Avatar
117
+ U as Avatar
78
118
  };
@@ -1,3 +1,4 @@
1
1
  export { Avatar } from './Avatar';
2
+ export { resolveAvatarColor } from './resolveAvatarColor';
2
3
  export * from './types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,SAAS,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { CSSVarRef } from '@ledgerhq/lumen-design-core';
2
+ /**
3
+ * Resolves a stable identifier (e.g. a user id) to one of the avatar pastel
4
+ * color tokens. The same identifier always resolves to the same color.
5
+ *
6
+ * Pass the result directly to `<Avatar fallbackColor={resolveAvatarColor(id)} />`.
7
+ */
8
+ export declare function resolveAvatarColor(identifier: string): CSSVarRef;
9
+ //# sourceMappingURL=resolveAvatarColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveAvatarColor.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/resolveAvatarColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAiBrE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAEhE"}
@@ -0,0 +1,18 @@
1
+ import { resolveAvatarColorKey as o } from "../../../libs/utils-shared/dist/index.js";
2
+ import { cssVar as a } from "../../../libs/design-core/dist/lib/cssVar/cssVar.js";
3
+ const e = {
4
+ orange: a("var(--background-avatar-orange)"),
5
+ green: a("var(--background-avatar-green)"),
6
+ blue: a("var(--background-avatar-blue)"),
7
+ purple: a("var(--background-avatar-purple)"),
8
+ red: a("var(--background-avatar-red)"),
9
+ yellow: a("var(--background-avatar-yellow)"),
10
+ turquoise: a("var(--background-avatar-turquoise)"),
11
+ pink: a("var(--background-avatar-pink)")
12
+ };
13
+ function n(r) {
14
+ return e[o(r)];
15
+ }
16
+ export {
17
+ n as resolveAvatarColor
18
+ };
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
+ export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2
3
  export type AvatarProps = {
3
4
  /**
4
5
  * Image source URL. When undefined or on load error, displays a fallback icon.
@@ -11,17 +12,11 @@ export type AvatarProps = {
11
12
  */
12
13
  alt?: string;
13
14
  /**
14
- * The visual appearance of the avatar background: `gray` or `transparent`.
15
- * @optional
16
- * @default transparent
17
- */
18
- appearance?: 'gray' | 'transparent';
19
- /**
20
- * The size variant of the avatar: `sm`, `md`, `lg`, `xl`.
15
+ * The size variant of the avatar.
21
16
  * @optional
22
17
  * @default md
23
18
  */
24
- size?: 'sm' | 'md' | 'lg' | 'xl';
19
+ size?: AvatarSize;
25
20
  /**
26
21
  * Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
27
22
  * @optional
@@ -35,5 +30,25 @@ export type AvatarProps = {
35
30
  * @default undefined (browser default: eager)
36
31
  */
37
32
  imgLoading?: 'eager' | 'lazy';
33
+ /**
34
+ * Background color behind the fallback when no image is displayed.
35
+ * Use `resolveAvatarColor` from `@ledgerhq/lumen-ui-react` to derive
36
+ * a stable pastel color from an identifier such as a user id.
37
+ * @optional
38
+ */
39
+ fallbackColor?: string;
40
+ /**
41
+ * Short text shown in place of the fallback icon when no image is displayed,
42
+ * typically a user's initials.
43
+ * @optional
44
+ */
45
+ fallbackText?: string;
46
+ /**
47
+ * Appearance for the avatar.
48
+ * - `thin`: 1px ring using the icon border color
49
+ * - `thick`: 2px ring using the muted subtle transparent border color
50
+ * @optional
51
+ */
52
+ appearance?: 'thin' | 'thick';
38
53
  } & ComponentPropsWithRef<'div'>;
39
54
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IAEpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AvatarButtonProps } from './types';
2
+ /**
3
+ * An {@link Avatar} wrapped in a button, for use as an interactive trigger.
4
+ */
5
+ export declare const AvatarButton: ({ ref, className, src, alt, size, imgLoading, fallbackText, fallbackColor, appearance, disabled: disabledProp, ...buttonProps }: AvatarButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=AvatarButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AvatarButton/AvatarButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,iIAY1B,iBAAiB,4CA6BnB,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { useDisabledContext as f, cn as v } from "../../../libs/utils-shared/dist/index.js";
3
+ import { Avatar as m } from "../Avatar/Avatar.js";
4
+ const A = ({
5
+ ref: t,
6
+ className: o,
7
+ src: s,
8
+ alt: r,
9
+ size: a,
10
+ imgLoading: n,
11
+ fallbackText: i,
12
+ fallbackColor: l,
13
+ appearance: u,
14
+ disabled: d = !1,
15
+ ...b
16
+ }) => {
17
+ const c = f({
18
+ consumerName: "AvatarButton",
19
+ mergeWith: { disabled: d }
20
+ });
21
+ return /* @__PURE__ */ p(
22
+ "button",
23
+ {
24
+ ref: t,
25
+ type: "button",
26
+ disabled: c,
27
+ className: v(
28
+ "group relative cursor-pointer rounded-full focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-30",
29
+ o
30
+ ),
31
+ ...b,
32
+ children: [
33
+ /* @__PURE__ */ e(
34
+ m,
35
+ {
36
+ src: s,
37
+ alt: r,
38
+ size: a,
39
+ imgLoading: n,
40
+ fallbackText: i,
41
+ fallbackColor: l,
42
+ appearance: u
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e("span", { className: "pointer-events-none absolute inset-0 rounded-full transition-colors group-hover:bg-base-transparent-hover group-active:bg-base-transparent-pressed" })
46
+ ]
47
+ }
48
+ );
49
+ };
50
+ export {
51
+ A as AvatarButton
52
+ };
@@ -0,0 +1,3 @@
1
+ export { AvatarButton } from './AvatarButton';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AvatarButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { AvatarProps } from '../Avatar/types';
3
+ export type AvatarButtonProps = Pick<AvatarProps, 'src' | 'alt' | 'size' | 'imgLoading' | 'fallbackText' | 'fallbackColor' | 'appearance'> & Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'>;
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/AvatarButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,WAAW,EACT,KAAK,GACL,KAAK,GACL,MAAM,GACN,YAAY,GACZ,cAAc,GACd,eAAe,GACf,YAAY,CACf,GACC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC"}
@@ -72,12 +72,12 @@ const ne = g(
72
72
  inputClassName: B,
73
73
  labelClassName: F,
74
74
  label: i,
75
- id: j,
76
- disabled: z,
75
+ id: P,
76
+ disabled: j,
77
77
  helperText: b,
78
78
  maxCount: c,
79
79
  status: d,
80
- suffix: P,
80
+ suffix: z,
81
81
  prefix: R,
82
82
  onClear: D,
83
83
  hideClearButton: $ = !1,
@@ -88,8 +88,8 @@ const ne = g(
88
88
  }) => {
89
89
  const w = Q({
90
90
  consumerName: "BaseInput",
91
- mergeWith: { disabled: z }
92
- }), { t: L } = re(), r = Z(null), A = _(), m = j || `input-${A}`, M = E ?? (d === "error" ? !0 : void 0), p = u.value !== void 0, [O, y] = ee(
91
+ mergeWith: { disabled: j }
92
+ }), { t: L } = re(), r = Z(null), A = _(), m = P || `input-${A}`, M = E ?? (d === "error" ? !0 : void 0), p = u.value !== void 0, [O, y] = ee(
93
93
  u.defaultValue?.toString() ?? ""
94
94
  ), T = te(
95
95
  (n) => {
@@ -170,7 +170,7 @@ const ne = g(
170
170
  "aria-label": L("components.baseInput.clearInputAriaLabel")
171
171
  }
172
172
  ),
173
- !I && P
173
+ !I && z
174
174
  ]
175
175
  }
176
176
  ),
@@ -50,9 +50,9 @@ const u = x(
50
50
  label: n,
51
51
  disabled: c,
52
52
  leadingContent: d,
53
- ...b
53
+ ...l
54
54
  }) => {
55
- const l = g({
55
+ const b = g({
56
56
  consumerName: i,
57
57
  mergeWith: { disabled: c }
58
58
  });
@@ -60,11 +60,11 @@ const u = x(
60
60
  "div",
61
61
  {
62
62
  className: o(
63
- u({ appearance: t, size: s, variant: r, disabled: !!l }),
63
+ u({ appearance: t, size: s, variant: r, disabled: !!b }),
64
64
  a
65
65
  ),
66
66
  ref: e,
67
- ...b,
67
+ ...l,
68
68
  children: [
69
69
  d,
70
70
  /* @__PURE__ */ p("span", { className: "truncate", children: n })
@@ -1,9 +1,9 @@
1
1
  import { BaseButtonProps } from './types';
2
2
  export declare const baseButtonVariants: (props?: ({
3
- appearance?: "base" | "gray" | "transparent" | "accent" | "no-background" | "red" | null | undefined;
3
+ appearance?: "base" | "gray" | "red" | "transparent" | "accent" | "no-background" | null | undefined;
4
4
  disabled?: boolean | null | undefined;
5
5
  loading?: boolean | null | undefined;
6
- size?: "md" | "sm" | "lg" | "xs" | null | undefined;
6
+ size?: "md" | "sm" | "xs" | "lg" | null | undefined;
7
7
  isFull?: boolean | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  export declare const BaseButton: ({ ref, className, appearance, size, isFull, disabled: disabledProp, asChild, icon: Icon, loading, children, onClick, ...props }: BaseButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -15,10 +15,10 @@ const l = e("", {
15
15
  }
16
16
  }), x = ({
17
17
  ref: t,
18
- className: s,
19
- loading: m,
20
- disabled: r,
21
- children: a,
18
+ className: m,
19
+ loading: s,
20
+ disabled: a,
21
+ children: r,
22
22
  size: o,
23
23
  icon: i,
24
24
  ...p
@@ -27,12 +27,12 @@ const l = e("", {
27
27
  {
28
28
  ref: t,
29
29
  size: o,
30
- disabled: r,
30
+ disabled: a,
31
31
  icon: i,
32
- loading: m,
33
- className: d(l({ size: o }), "gap-8", s),
32
+ loading: s,
33
+ className: d(l({ size: o }), "gap-8", m),
34
34
  ...p,
35
- children: a
35
+ children: r
36
36
  }
37
37
  );
38
38
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, jsxs as f, Fragment as b } from "react/jsx-runtime";
2
- import { createSafeContext as m, DisabledProvider as p, cn as o, getButtonA11yProps as C } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as g } from "class-variance-authority";
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
4
  import { useMemo as h } from "react";
5
5
  import { ChevronUp as N } from "../../Symbols/Icons/ChevronUp.js";
6
6
  import { ChevronDown as w } from "../../Symbols/Icons/ChevronDown.js";
@@ -46,7 +46,7 @@ const k = ({
46
46
  }
47
47
  ), [q, v] = m("CardContentAlign", {
48
48
  align: "left"
49
- }), E = 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: {
@@ -96,7 +96,7 @@ const k = ({
96
96
  }),
97
97
  [r, e, l, i]
98
98
  );
99
- return /* @__PURE__ */ s(R, { value: u, children: /* @__PURE__ */ s(p, { 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
102
  ref: t,
@@ -203,7 +203,7 @@ const k = ({
203
203
  children: a
204
204
  }
205
205
  );
206
- }, U = ({
206
+ }, I = ({
207
207
  ref: t,
208
208
  children: a,
209
209
  className: r,
@@ -226,7 +226,7 @@ const k = ({
226
226
  children: a
227
227
  }
228
228
  );
229
- }, I = ({
229
+ }, L = ({
230
230
  ref: t,
231
231
  children: a,
232
232
  className: r,
@@ -249,7 +249,7 @@ const k = ({
249
249
  children: a
250
250
  }
251
251
  );
252
- }, L = ({
252
+ }, M = ({
253
253
  ref: t,
254
254
  children: a,
255
255
  className: r,
@@ -272,7 +272,7 @@ const k = ({
272
272
  children: a
273
273
  }
274
274
  ) });
275
- }, M = ({
275
+ }, S = ({
276
276
  ref: t,
277
277
  children: a,
278
278
  className: r,
@@ -304,7 +304,7 @@ const k = ({
304
304
  ) })
305
305
  }
306
306
  );
307
- }, S = ({
307
+ }, U = ({
308
308
  ref: t,
309
309
  children: a,
310
310
  className: r,
@@ -321,13 +321,13 @@ const k = ({
321
321
  export {
322
322
  P as Card,
323
323
  z as CardContent,
324
- I as CardContentDescription,
324
+ L as CardContentDescription,
325
325
  B as CardContentRow,
326
- U as CardContentTitle,
327
- M as CardFooter,
328
- S as CardFooterActions,
326
+ I as CardContentTitle,
327
+ S as CardFooter,
328
+ U as CardFooterActions,
329
329
  T as CardHeader,
330
330
  V as CardLeading,
331
- L as CardTrailing,
331
+ M as CardTrailing,
332
332
  k as resolveCardInnerContext
333
333
  };
@@ -17,9 +17,9 @@ const h = f(
17
17
  }
18
18
  ), w = ({
19
19
  ref: i,
20
- className: o,
21
- appearance: d,
22
- icon: l,
20
+ className: l,
21
+ appearance: o,
22
+ icon: d,
23
23
  title: r,
24
24
  description: t,
25
25
  hideChevron: n,
@@ -29,16 +29,16 @@ const h = f(
29
29
  const c = m({
30
30
  consumerName: "CardButton",
31
31
  mergeWith: { disabled: b }
32
- }), s = l;
32
+ }), s = d;
33
33
  return /* @__PURE__ */ a(
34
34
  "button",
35
35
  {
36
36
  ref: i,
37
37
  className: p(
38
38
  h({
39
- appearance: d
39
+ appearance: o
40
40
  }),
41
- o
41
+ l
42
42
  ),
43
43
  disabled: c,
44
44
  ...u,