@ledgerhq/lumen-ui-react 0.1.45 → 0.1.47

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 (103) hide show
  1. package/dist/i18n/locales/de.json.d.ts +1 -3
  2. package/dist/i18n/locales/de.json.js +1 -1
  3. package/dist/i18n/locales/en.json.d.ts +1 -3
  4. package/dist/i18n/locales/en.json.js +1 -1
  5. package/dist/i18n/locales/es.json.d.ts +1 -3
  6. package/dist/i18n/locales/es.json.js +1 -1
  7. package/dist/i18n/locales/fr.json.d.ts +1 -3
  8. package/dist/i18n/locales/fr.json.js +1 -1
  9. package/dist/i18n/locales/ja.json.d.ts +1 -3
  10. package/dist/i18n/locales/ja.json.js +2 -2
  11. package/dist/i18n/locales/ko.json.d.ts +1 -3
  12. package/dist/i18n/locales/ko.json.js +2 -2
  13. package/dist/i18n/locales/pt.json.d.ts +1 -3
  14. package/dist/i18n/locales/pt.json.js +1 -1
  15. package/dist/i18n/locales/ru.json.d.ts +1 -3
  16. package/dist/i18n/locales/ru.json.js +1 -1
  17. package/dist/i18n/locales/th.json.d.ts +1 -3
  18. package/dist/i18n/locales/th.json.js +2 -2
  19. package/dist/i18n/locales/tr.json.d.ts +1 -3
  20. package/dist/i18n/locales/tr.json.js +2 -2
  21. package/dist/i18n/locales/zh.json.d.ts +1 -3
  22. package/dist/i18n/locales/zh.json.js +2 -2
  23. package/dist/index.js +169 -161
  24. package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
  25. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  26. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  27. package/dist/lib/Components/Avatar/Avatar.js +33 -40
  28. package/dist/lib/Components/Avatar/types.d.ts +0 -6
  29. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  30. package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -1
  31. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  32. package/dist/lib/Components/BaseInput/BaseInput.js +119 -93
  33. package/dist/lib/Components/BaseInput/types.d.ts +24 -0
  34. package/dist/lib/Components/BaseInput/types.d.ts.map +1 -1
  35. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  36. package/dist/lib/Components/Card/Card.js +5 -5
  37. package/dist/lib/Components/CardButton/CardButton.js +1 -1
  38. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  39. package/dist/lib/Components/DataTable/DataTable.js +97 -80
  40. package/dist/lib/Components/DataTable/types.d.ts +2 -1
  41. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  42. package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
  43. package/dist/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
  44. package/dist/lib/Components/DescriptionItem/DescriptionItem.js +74 -48
  45. package/dist/lib/Components/DescriptionItem/types.d.ts +6 -0
  46. package/dist/lib/Components/DescriptionItem/types.d.ts.map +1 -1
  47. package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +1 -1
  48. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  49. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  50. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
  51. package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
  52. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
  53. package/dist/lib/Components/Icon/Icon.js +8 -8
  54. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  55. package/dist/lib/Components/ListItem/ListItem.js +118 -68
  56. package/dist/lib/Components/ListItem/types.d.ts +11 -1
  57. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  58. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  59. package/dist/lib/Components/Menu/Menu.d.ts +1 -1
  60. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  61. package/dist/lib/Components/Menu/Menu.js +79 -65
  62. package/dist/lib/Components/Menu/types.d.ts +6 -0
  63. package/dist/lib/Components/Menu/types.d.ts.map +1 -1
  64. package/dist/lib/Components/SearchInput/SearchInput.js +10 -10
  65. package/dist/lib/Components/SectionHeader/SectionHeader.d.ts +33 -0
  66. package/dist/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
  67. package/dist/lib/Components/SectionHeader/SectionHeader.js +56 -0
  68. package/dist/lib/Components/SectionHeader/index.d.ts +3 -0
  69. package/dist/lib/Components/SectionHeader/index.d.ts.map +1 -0
  70. package/dist/lib/Components/SectionHeader/types.d.ts +26 -0
  71. package/dist/lib/Components/SectionHeader/types.d.ts.map +1 -0
  72. package/dist/lib/Components/SideBar/SideBar.js +2 -2
  73. package/dist/lib/Components/Spot/Spot.js +5 -5
  74. package/dist/lib/Components/Table/Table.d.ts +17 -1
  75. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  76. package/dist/lib/Components/Table/Table.js +121 -92
  77. package/dist/lib/Components/Table/types.d.ts +23 -0
  78. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  79. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +5 -5
  80. package/dist/lib/Components/TileButton/TileButton.d.ts +1 -1
  81. package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
  82. package/dist/lib/Components/TileButton/TileButton.js +52 -39
  83. package/dist/lib/Components/TileButton/types.d.ts +5 -0
  84. package/dist/lib/Components/TileButton/types.d.ts.map +1 -1
  85. package/dist/lib/Components/Trend/Trend.js +2 -2
  86. package/dist/lib/Components/index.d.ts +1 -0
  87. package/dist/lib/Components/index.d.ts.map +1 -1
  88. package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
  89. package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
  90. package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
  91. package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  92. package/dist/lib/Symbols/Icons/Contact.js +28 -0
  93. package/dist/lib/Symbols/Icons/Upload.d.ts +29 -0
  94. package/dist/lib/Symbols/Icons/Upload.d.ts.map +1 -0
  95. package/dist/lib/Symbols/Icons/Upload.js +28 -0
  96. package/dist/lib/Symbols/index.d.ts +2 -0
  97. package/dist/lib/Symbols/index.d.ts.map +1 -1
  98. package/dist/lib/Symbols/index.js +396 -392
  99. package/dist/libs/utils-shared/dist/index.js +58 -52
  100. package/dist/package.json +3 -3
  101. package/package.json +3 -3
  102. package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
  103. package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
@@ -1,12 +1,13 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { useDisabledContext as U, resolveBaseInputPlaceholder as G, useMergedRef as J, cn as n } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as u } from "class-variance-authority";
4
- import { useRef as K, useId as Q, useState as X, useCallback as Y } from "react";
5
- import { useCommonTranslation as Z } from "../../../i18n/useCommonTranslation.js";
6
- import { InteractiveIcon as _ } from "../InteractiveIcon/InteractiveIcon.js";
7
- import { DeleteCircleFill as y } from "../../Symbols/Icons/DeleteCircleFill.js";
8
- import { CheckmarkCircleFill as ee } from "../../Symbols/Icons/CheckmarkCircleFill.js";
9
- const te = u(
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import { useDisabledContext as Q, resolveBaseInputPlaceholder as X, useMergedRef as Y, cn as s } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as g } from "class-variance-authority";
4
+ import { useRef as Z, useId as _, useState as ee, useCallback as te } from "react";
5
+ import { useCommonTranslation as re } from "../../../i18n/useCommonTranslation.js";
6
+ import { InteractiveIcon as se } from "../InteractiveIcon/InteractiveIcon.js";
7
+ import { DeleteCircleFill as k } from "../../Symbols/Icons/DeleteCircleFill.js";
8
+ import { InformationFill as ae } from "../../Symbols/Icons/InformationFill.js";
9
+ import { CheckmarkCircleFill as oe } from "../../Symbols/Icons/CheckmarkCircleFill.js";
10
+ const ne = g(
10
11
  [
11
12
  "group relative flex h-48 w-full cursor-text items-center gap-8 rounded-sm bg-muted px-16 transition-colors",
12
13
  "focus-within:ring-2 focus-within:ring-active hover:bg-muted-hover",
@@ -24,20 +25,20 @@ const te = u(
24
25
  status: "default"
25
26
  }
26
27
  }
27
- ), re = n(
28
+ ), le = s(
28
29
  "peer w-full flex-1 bg-muted body-1 text-base caret-active outline-hidden transition-colors",
29
30
  "group-hover:bg-muted-hover group-disabled:bg-disabled",
30
31
  "group-has-disabled:cursor-not-allowed group-has-disabled:bg-disabled group-has-disabled:text-disabled",
31
32
  "placeholder:text-muted group-has-disabled:placeholder:text-disabled",
32
33
  "[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
33
34
  "truncate"
34
- ), ae = n(
35
+ ), ie = s(
35
36
  "pointer-events-none absolute top-6 left-16 origin-left body-4 text-muted transition-all duration-300",
36
37
  "peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-placeholder-shown:body-2",
37
38
  "group-has-disabled:text-disabled",
38
39
  "peer-focus:top-6 peer-focus:translate-y-0 peer-focus:body-4",
39
40
  "w-[calc(100%-var(--size-56))] truncate"
40
- ), se = u(ae, {
41
+ ), ce = g(ie, {
41
42
  variants: {
42
43
  status: {
43
44
  default: "",
@@ -53,7 +54,7 @@ const te = u(
53
54
  status: "default",
54
55
  floated: !1
55
56
  }
56
- }), oe = u("mt-8 flex items-center gap-2 body-3", {
57
+ }), de = g("flex items-center gap-2 body-3", {
57
58
  variants: {
58
59
  status: {
59
60
  default: "text-muted",
@@ -64,129 +65,154 @@ const te = u(
64
65
  defaultVariants: {
65
66
  status: "default"
66
67
  }
67
- }), be = ({
68
- ref: I,
69
- className: C,
70
- containerClassName: S,
71
- inputClassName: V,
72
- labelClassName: N,
73
- label: l,
74
- id: k,
75
- disabled: F,
76
- helperText: p,
77
- status: e,
68
+ }), Ie = ({
69
+ ref: a,
70
+ className: o,
71
+ containerClassName: t,
72
+ inputClassName: B,
73
+ labelClassName: F,
74
+ label: i,
75
+ id: j,
76
+ disabled: z,
77
+ helperText: b,
78
+ maxCount: c,
79
+ status: d,
78
80
  suffix: P,
79
81
  prefix: R,
80
- onClear: z,
81
- hideClearButton: B = !1,
82
- "aria-invalid": D,
83
- onChange: h,
84
- placeholder: j,
85
- ...a
82
+ onClear: D,
83
+ hideClearButton: $ = !1,
84
+ "aria-invalid": E,
85
+ onChange: v,
86
+ placeholder: H,
87
+ ...u
86
88
  }) => {
87
- const b = U({
89
+ const w = Q({
88
90
  consumerName: "BaseInput",
89
- mergeWith: { disabled: F }
90
- }), { t: E } = Z(), t = K(null), L = Q(), c = k || `input-${L}`, A = D ?? (e === "error" ? !0 : void 0), i = a.value !== void 0, [H, f] = X(
91
- a.defaultValue?.toString() || ""
92
- ), M = Y(
93
- (s) => {
94
- i || f(s.target.value), h?.(s);
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(
93
+ u.defaultValue?.toString() ?? ""
94
+ ), T = te(
95
+ (n) => {
96
+ p || y(n.target.value), v?.(n);
95
97
  },
96
- [i, h]
97
- ), O = i ? !!a.value && a.value.toString().length > 0 : H.length > 0, { inputPlaceholder: T, labelStaysFloatedWithPlaceholder: W } = G({
98
- label: l,
99
- placeholder: j
100
- }), m = O && !b && !B, g = `${c}-helper`, v = !!p, $ = () => {
101
- if (!t.current) return;
98
+ [p, v]
99
+ ), x = p ? u.value?.toString() ?? "" : O, W = x.length > 0, { inputPlaceholder: q, labelStaysFloatedWithPlaceholder: U } = X({
100
+ label: i,
101
+ placeholder: H
102
+ }), I = W && !w && !$, G = x.length, C = !!(c && c > 0), N = `${m}-helper`, h = !!b, J = () => {
103
+ if (!r.current) return;
102
104
  Object.getOwnPropertyDescriptor(
103
105
  window.HTMLInputElement.prototype,
104
106
  "value"
105
- )?.set?.call(t.current, ""), i || f("");
106
- const w = new Event("input", { bubbles: !0 });
107
- t.current.dispatchEvent(w), t.current.focus(), z?.();
108
- }, q = J(I, t);
109
- return /* @__PURE__ */ d("div", { className: C, children: [
110
- /* @__PURE__ */ d(
107
+ )?.set?.call(r.current, ""), p || y("");
108
+ const V = new Event("input", { bubbles: !0 });
109
+ r.current.dispatchEvent(V), r.current.focus(), D?.();
110
+ }, K = Y(a, r);
111
+ return /* @__PURE__ */ f("div", { className: o, children: [
112
+ /* @__PURE__ */ f(
111
113
  "div",
112
114
  {
113
- className: n(te({ status: e }), S),
114
- onPointerDown: (s) => {
115
- if (s.target.closest("input, button, a")) return;
116
- const o = t.current;
117
- if (!o) return;
118
- const x = o.value.length > 0 ? o.value.length : 0;
115
+ className: s(ne({ status: d }), t),
116
+ onPointerDown: (n) => {
117
+ if (n.target.closest("input, button, a")) return;
118
+ const l = r.current;
119
+ if (!l) return;
120
+ const S = l.value.length > 0 ? l.value.length : 0;
119
121
  window.requestAnimationFrame(() => {
120
122
  try {
121
- o.setSelectionRange(x, x);
123
+ l.setSelectionRange(S, S);
122
124
  } catch {
123
125
  }
124
- o.focus();
126
+ l.focus();
125
127
  });
126
128
  },
127
129
  children: [
128
130
  R,
129
- /* @__PURE__ */ r(
131
+ /* @__PURE__ */ e(
130
132
  "input",
131
133
  {
132
- ref: q,
133
- id: c,
134
- disabled: b,
135
- placeholder: T,
136
- "aria-invalid": A,
137
- "aria-describedby": v ? g : void 0,
138
- className: n(
139
- re,
140
- l && "pt-12 body-2",
141
- V
134
+ ref: K,
135
+ id: m,
136
+ disabled: w,
137
+ placeholder: q,
138
+ "aria-invalid": M,
139
+ "aria-describedby": h ? N : void 0,
140
+ className: s(
141
+ le,
142
+ i && "pt-12 body-2",
143
+ B
142
144
  ),
143
- onChange: M,
144
- ...a
145
+ onChange: T,
146
+ ...u
145
147
  }
146
148
  ),
147
- l && /* @__PURE__ */ r(
149
+ i && /* @__PURE__ */ e(
148
150
  "label",
149
151
  {
150
- htmlFor: c,
151
- className: n(
152
- se({
153
- status: e,
154
- floated: W
152
+ htmlFor: m,
153
+ className: s(
154
+ ce({
155
+ status: d,
156
+ floated: U
155
157
  }),
156
- N
158
+ F
157
159
  ),
158
- children: l
160
+ children: i
159
161
  }
160
162
  ),
161
- m && /* @__PURE__ */ r(
162
- _,
163
+ I && /* @__PURE__ */ e(
164
+ se,
163
165
  {
164
166
  iconType: "filled",
165
- icon: y,
167
+ icon: k,
166
168
  size: 20,
167
- onClick: $,
168
- "aria-label": E("components.baseInput.clearInputAriaLabel")
169
+ onClick: J,
170
+ "aria-label": L("components.baseInput.clearInputAriaLabel")
169
171
  }
170
172
  ),
171
- !m && P
173
+ !I && P
172
174
  ]
173
175
  }
174
176
  ),
175
- v && /* @__PURE__ */ d(
177
+ (h || C) && /* @__PURE__ */ f(
176
178
  "div",
177
179
  {
178
- id: g,
179
- className: oe({ status: e }),
180
- role: e === "error" ? "alert" : void 0,
180
+ className: s(
181
+ "mt-8 flex items-start gap-8",
182
+ h ? "justify-between" : "justify-end"
183
+ ),
181
184
  children: [
182
- e === "error" && /* @__PURE__ */ r(y, { size: 16, className: "text-error" }),
183
- e === "success" && /* @__PURE__ */ r(ee, { size: 16, className: "text-success" }),
184
- /* @__PURE__ */ r("span", { children: p })
185
+ h && b && /* @__PURE__ */ e(
186
+ ue,
187
+ {
188
+ id: N,
189
+ helperText: b,
190
+ status: d
191
+ }
192
+ ),
193
+ C && c != null && /* @__PURE__ */ e(pe, { count: G, maxCount: c })
185
194
  ]
186
195
  }
187
196
  )
188
197
  ] });
189
- };
198
+ }, ue = ({
199
+ id: a,
200
+ helperText: o,
201
+ status: t
202
+ }) => /* @__PURE__ */ f(
203
+ "div",
204
+ {
205
+ id: a,
206
+ className: de({ status: t }),
207
+ role: t === "error" ? "alert" : void 0,
208
+ children: [
209
+ !t && /* @__PURE__ */ e(ae, { size: 16, className: "text-muted" }),
210
+ t === "error" && /* @__PURE__ */ e(k, { size: 16, className: "text-error" }),
211
+ t === "success" && /* @__PURE__ */ e(oe, { size: 16, className: "text-success" }),
212
+ /* @__PURE__ */ e("span", { className: "body-3", children: o })
213
+ ]
214
+ }
215
+ ), pe = ({ count: a, maxCount: o }) => /* @__PURE__ */ e("span", { "aria-live": "polite", className: "shrink-0 body-3 text-muted", children: `${a}/${o}` });
190
216
  export {
191
- be as BaseInput
217
+ Ie as BaseInput
192
218
  };
@@ -10,6 +10,10 @@ export type BaseInputProps = {
10
10
  * Pair with `status` for error/success styling and icons; omit `status` for a neutral hint.
11
11
  */
12
12
  helperText?: string;
13
+ /**
14
+ * Soft character limit. When set, renders a `count/maxCount` counter below the input.
15
+ */
16
+ maxCount?: number;
13
17
  /**
14
18
  * Visual state for border, label, helper text, and helper icon.
15
19
  * Omit when `helperText` is a neutral hint.
@@ -57,4 +61,24 @@ export type BaseInputProps = {
57
61
  */
58
62
  labelClassName?: string;
59
63
  } & Omit<ComponentPropsWithRef<'input'>, 'size' | 'prefix'>;
64
+ export type BaseInputHelperTextProps = {
65
+ /**
66
+ * The id linking the helper text to the input via `aria-describedby`.
67
+ */
68
+ id: string;
69
+ /**
70
+ * The helper copy shown below the input.
71
+ */
72
+ helperText: string;
73
+ } & Pick<BaseInputProps, 'status'>;
74
+ export type BaseInputCounterProps = {
75
+ /**
76
+ * Current character count.
77
+ */
78
+ count: number;
79
+ /**
80
+ * Soft character limit rendered as the counter denominator.
81
+ */
82
+ maxCount: number;
83
+ };
60
84
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/BaseInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;AAE5D,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAEnC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BaseButtonProps } from './types';
2
2
  export declare const baseButtonVariants: (props?: ({
3
- appearance?: "base" | "red" | "gray" | "transparent" | "accent" | "no-background" | null | undefined;
3
+ appearance?: "base" | "gray" | "transparent" | "accent" | "no-background" | "red" | null | undefined;
4
4
  disabled?: boolean | null | undefined;
5
5
  loading?: boolean | null | undefined;
6
6
  size?: "md" | "sm" | "lg" | "xs" | null | undefined;
@@ -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 g, cn as o, getButtonA11yProps as C } from "../../../libs/utils-shared/dist/index.js";
3
- import { cva as p } from "class-variance-authority";
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";
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,12 +46,12 @@ const k = ({
46
46
  }
47
47
  ), [q, v] = m("CardContentAlign", {
48
48
  align: "left"
49
- }), E = p(
49
+ }), E = g(
50
50
  "flex w-full flex-col overflow-clip rounded-lg bg-surface text-base transition-colors",
51
51
  {
52
52
  variants: {
53
53
  interactive: {
54
- true: "cursor-pointer hover:bg-surface-hover active:bg-surface-pressed focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
54
+ true: "cursor-pointer hover:bg-surface-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:bg-surface-pressed",
55
55
  false: ""
56
56
  },
57
57
  outlined: {
@@ -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(g, { value: { disabled: i }, children: /* @__PURE__ */ s(
99
+ return /* @__PURE__ */ s(R, { value: u, children: /* @__PURE__ */ s(p, { value: { disabled: i }, children: /* @__PURE__ */ s(
100
100
  "div",
101
101
  {
102
102
  ref: t,
@@ -8,7 +8,7 @@ const h = f(
8
8
  variants: {
9
9
  appearance: {
10
10
  base: "bg-surface text-base hover:bg-surface-hover active:bg-surface-pressed disabled:bg-disabled",
11
- 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"
11
+ outline: "bg-base-transparent text-base outline-1 outline-muted-subtle outline-dashed 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"
12
12
  }
13
13
  },
14
14
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAejB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,sKAelD,kBAAkB,CAAC,KAAK,CAAC,4CAqB3B,CAAC;AAyDF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA6BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,OAAO,EAER,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkBvD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAejB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,sKAelD,kBAAkB,CAAC,KAAK,CAAC,4CAqB3B,CAAC;AAqFF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA8BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}