@ledgerhq/lumen-ui-react 0.1.45 → 0.1.46

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 (59) 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 -165
  24. package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
  25. package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
  26. package/dist/lib/Components/Avatar/Avatar.js +33 -40
  27. package/dist/lib/Components/Avatar/types.d.ts +0 -6
  28. package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
  29. package/dist/lib/Components/Button/BaseButton.d.ts +1 -1
  30. package/dist/lib/Components/Card/Card.js +4 -4
  31. package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
  32. package/dist/lib/Components/DataTable/DataTable.js +97 -80
  33. package/dist/lib/Components/DataTable/types.d.ts +2 -1
  34. package/dist/lib/Components/DataTable/types.d.ts.map +1 -1
  35. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +24 -0
  36. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -0
  37. package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +11 -0
  38. package/dist/lib/Components/DotIndicator/index.d.ts +1 -0
  39. package/dist/lib/Components/DotIndicator/index.d.ts.map +1 -1
  40. package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
  41. package/dist/lib/Components/Table/Table.d.ts +17 -1
  42. package/dist/lib/Components/Table/Table.d.ts.map +1 -1
  43. package/dist/lib/Components/Table/Table.js +117 -88
  44. package/dist/lib/Components/Table/types.d.ts +23 -0
  45. package/dist/lib/Components/Table/types.d.ts.map +1 -1
  46. package/dist/lib/Components/Table/utils/useThrottledScrollBottom.js +5 -5
  47. package/dist/lib/Symbols/Icons/ChevronAscending.js +1 -1
  48. package/dist/lib/Symbols/Icons/ChevronDescending.js +1 -1
  49. package/dist/lib/Symbols/Icons/Contact.d.ts +29 -0
  50. package/dist/lib/Symbols/Icons/Contact.d.ts.map +1 -0
  51. package/dist/lib/Symbols/Icons/Contact.js +28 -0
  52. package/dist/lib/Symbols/index.d.ts +1 -0
  53. package/dist/lib/Symbols/index.d.ts.map +1 -1
  54. package/dist/lib/Symbols/index.js +388 -386
  55. package/dist/libs/utils-shared/dist/index.js +58 -52
  56. package/dist/package.json +3 -3
  57. package/package.json +3 -3
  58. package/dist/lib/Components/Design-tokens/shared.d.ts +0 -20
  59. package/dist/lib/Components/Design-tokens/shared.d.ts.map +0 -1
@@ -1,91 +1,107 @@
1
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
- import { createSafeContext as w, cn as C } from "../../../libs/utils-shared/dist/index.js";
3
- import { flexRender as m } from "@tanstack/react-table";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import { createSafeContext as f, cn as w } from "../../../libs/utils-shared/dist/index.js";
3
+ import { flexRender as d } from "@tanstack/react-table";
4
4
  import { useCallback as R, Fragment as x } from "react";
5
- import { TableRoot as B, Table as k, TableLoadingRow as y, TableHeader as H, TableHeaderRow as N, TableHeaderCell as S, TableSortButton as v, TableBody as b, TableGroupHeaderRow as G, TableRow as q, TableCell as I } from "../Table/Table.js";
6
- import { SearchInput as F } from "../SearchInput/SearchInput.js";
7
- const [M, u] = w("DataTableContext"), O = ({
5
+ import { TableRoot as B, Table as N, TableLoadingRow as k, TableColGroup as y, TableCol as H, TableHeader as S, TableHeaderRow as G, TableHeaderCell as q, TableSortButton as v, TableBody as b, TableGroupHeaderRow as I, TableRow as F, TableCell as M } from "../Table/Table.js";
6
+ import { SearchInput as V } from "../SearchInput/SearchInput.js";
7
+ const [j, i] = f("DataTableContext"), X = ({
8
8
  table: l,
9
9
  appearance: n = "no-background",
10
- paginationMode: o = "none",
10
+ paginationMode: t = "none",
11
11
  loading: e = !1,
12
- onScrollBottom: t,
13
- onRowClick: i,
12
+ onScrollBottom: a,
13
+ onRowClick: s,
14
14
  groupBy: r,
15
15
  renderGroupHeader: c,
16
- hideHeader: s = !1,
16
+ hideHeader: u = !1,
17
17
  stickyHeader: T = !0,
18
18
  children: p,
19
19
  className: D,
20
- ref: f,
21
- ...h
22
- }) => /* @__PURE__ */ a(
23
- M,
20
+ ref: h,
21
+ ...C
22
+ }) => /* @__PURE__ */ o(
23
+ j,
24
24
  {
25
25
  value: {
26
- hideHeader: s,
26
+ hideHeader: u,
27
27
  stickyHeader: T,
28
- paginationMode: o,
28
+ paginationMode: t,
29
29
  table: l,
30
30
  appearance: n,
31
31
  loading: e,
32
- onScrollBottom: t,
33
- onRowClick: i,
32
+ onScrollBottom: a,
33
+ onRowClick: s,
34
34
  groupBy: r,
35
35
  renderGroupHeader: c
36
36
  },
37
- children: /* @__PURE__ */ a("div", { ref: f, className: C("flex flex-col", D), ...h, children: p })
37
+ children: /* @__PURE__ */ o("div", { ref: h, className: w("flex flex-col", D), ...C, children: p })
38
38
  }
39
- ), j = ({
39
+ ), L = () => {
40
+ const { table: l } = i({
41
+ consumerName: "DataTableColGroup",
42
+ contextRequired: !0
43
+ });
44
+ return /* @__PURE__ */ o(y, { children: l.getVisibleLeafColumns().map((n) => {
45
+ const t = n.columnDef.meta;
46
+ return /* @__PURE__ */ o(
47
+ H,
48
+ {
49
+ hideBelow: t?.hideBelow,
50
+ className: t?.className
51
+ },
52
+ n.id
53
+ );
54
+ }) });
55
+ }, P = ({
40
56
  className: l,
41
57
  ref: n,
42
- ...o
58
+ ...t
43
59
  }) => {
44
- const { table: e, stickyHeader: t } = u({
60
+ const { table: e, stickyHeader: a } = i({
45
61
  consumerName: "DataTableHeader",
46
62
  contextRequired: !0
47
63
  });
48
- return /* @__PURE__ */ a(H, { ref: n, className: l, ...o, children: e.getHeaderGroups().map((i) => /* @__PURE__ */ a(N, { stickyHeader: t, children: i.headers.map((r) => {
64
+ return /* @__PURE__ */ o(S, { ref: n, className: l, ...t, children: e.getHeaderGroups().map((s) => /* @__PURE__ */ o(G, { stickyHeader: a, children: s.headers.map((r) => {
49
65
  const c = r.column.columnDef.meta;
50
- return /* @__PURE__ */ a(
51
- S,
66
+ return /* @__PURE__ */ o(
67
+ q,
52
68
  {
53
69
  align: c?.align,
54
70
  hideBelow: c?.hideBelow,
55
71
  className: c?.className,
56
72
  trailingContent: c?.headerTrailingContent,
57
- children: r.isPlaceholder ? null : r.column.getCanSort() ? /* @__PURE__ */ a(
73
+ children: r.isPlaceholder ? null : r.column.getCanSort() ? /* @__PURE__ */ o(
58
74
  v,
59
75
  {
60
76
  sortDirection: r.column.getIsSorted() || void 0,
61
77
  onClick: r.column.getToggleSortingHandler(),
62
78
  align: c?.align,
63
- children: m(
79
+ children: d(
64
80
  r.column.columnDef.header,
65
81
  r.getContext()
66
82
  )
67
83
  }
68
- ) : m(
84
+ ) : d(
69
85
  r.column.columnDef.header,
70
86
  r.getContext()
71
87
  )
72
88
  },
73
89
  r.id
74
90
  );
75
- }) }, i.id)) });
76
- }, Q = ({ className: l, ref: n, ...o }) => {
91
+ }) }, s.id)) });
92
+ }, Y = ({ className: l, ref: n, ...t }) => {
77
93
  const {
78
94
  appearance: e,
79
- paginationMode: t,
80
- hideHeader: i,
95
+ paginationMode: a,
96
+ hideHeader: s,
81
97
  loading: r,
82
98
  onScrollBottom: c,
83
- groupBy: s
84
- } = u({
99
+ groupBy: u
100
+ } = i({
85
101
  consumerName: "DataTable",
86
102
  contextRequired: !0
87
103
  });
88
- return /* @__PURE__ */ d(
104
+ return /* @__PURE__ */ m(
89
105
  B,
90
106
  {
91
107
  ref: n,
@@ -93,92 +109,93 @@ const [M, u] = w("DataTableContext"), O = ({
93
109
  loading: r,
94
110
  onScrollBottom: c,
95
111
  className: l,
96
- ...o,
112
+ ...t,
97
113
  children: [
98
- /* @__PURE__ */ d(k, { children: [
99
- !i && /* @__PURE__ */ a(j, {}),
100
- s ? /* @__PURE__ */ a(L, {}) : /* @__PURE__ */ a(P, {})
114
+ /* @__PURE__ */ m(N, { children: [
115
+ /* @__PURE__ */ o(L, {}),
116
+ !s && /* @__PURE__ */ o(P, {}),
117
+ u ? /* @__PURE__ */ o(A, {}) : /* @__PURE__ */ o(U, {})
101
118
  ] }),
102
- t === "infinite-scroll" && /* @__PURE__ */ a(y, {})
119
+ a === "infinite-scroll" && /* @__PURE__ */ o(k, {})
103
120
  ]
104
121
  }
105
122
  );
106
- }, P = ({ className: l, ref: n, ...o }) => {
107
- const { table: e } = u({
123
+ }, U = ({ className: l, ref: n, ...t }) => {
124
+ const { table: e } = i({
108
125
  consumerName: "DataTableBody",
109
126
  contextRequired: !0
110
127
  });
111
- return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: e.getRowModel().rows.map((t) => /* @__PURE__ */ a(g, { row: t }, t.id)) });
112
- }, V = (l, n) => {
113
- const o = [];
128
+ return /* @__PURE__ */ o(b, { ref: n, className: l, ...t, children: e.getRowModel().rows.map((a) => /* @__PURE__ */ o(g, { row: a }, a.id)) });
129
+ }, z = (l, n) => {
130
+ const t = [];
114
131
  let e = null;
115
- for (const t of l) {
116
- const i = n(t);
117
- (!e || e.key !== i) && (e = { key: i, rows: [], count: 0 }, o.push(e)), e.rows.push(t), e.count++;
132
+ for (const a of l) {
133
+ const s = n(a);
134
+ (!e || e.key !== s) && (e = { key: s, rows: [], count: 0 }, t.push(e)), e.rows.push(a), e.count++;
118
135
  }
119
- return o;
120
- }, L = ({
136
+ return t;
137
+ }, A = ({
121
138
  className: l,
122
139
  ref: n,
123
- ...o
140
+ ...t
124
141
  }) => {
125
- const { table: e, groupBy: t, renderGroupHeader: i } = u({
142
+ const { table: e, groupBy: a, renderGroupHeader: s } = i({
126
143
  consumerName: "DataTableGroupedBody",
127
144
  contextRequired: !0
128
- }), r = V(e.getRowModel().rows, t);
129
- return /* @__PURE__ */ a(b, { ref: n, className: l, ...o, children: r.map((c) => /* @__PURE__ */ d(x, { children: [
130
- /* @__PURE__ */ a(G, { colSpan: c.rows[0].getVisibleCells().length, children: i ? i({ row: c.rows[0], count: c.count }) : c.key }),
131
- c.rows.map((s) => /* @__PURE__ */ a(g, { row: s }, s.id))
145
+ }), r = z(e.getRowModel().rows, a);
146
+ return /* @__PURE__ */ o(b, { ref: n, className: l, ...t, children: r.map((c) => /* @__PURE__ */ m(x, { children: [
147
+ /* @__PURE__ */ o(I, { colSpan: c.rows[0].getVisibleCells().length, children: s ? s({ row: c.rows[0], count: c.count }) : c.key }),
148
+ c.rows.map((u) => /* @__PURE__ */ o(g, { row: u }, u.id))
132
149
  ] }, c.key)) });
133
150
  }, g = ({ row: l }) => {
134
- const { onRowClick: n } = u({
151
+ const { onRowClick: n } = i({
135
152
  consumerName: "DataTableRow",
136
153
  contextRequired: !0
137
- }), o = !!n;
138
- return /* @__PURE__ */ a(
139
- q,
154
+ }), t = !!n;
155
+ return /* @__PURE__ */ o(
156
+ F,
140
157
  {
141
- clickable: o,
142
- onClick: o ? () => n?.(l) : void 0,
158
+ clickable: t,
159
+ onClick: t ? () => n?.(l) : void 0,
143
160
  children: l.getVisibleCells().map((e) => {
144
- const t = e.column.columnDef.meta;
145
- return /* @__PURE__ */ a(
146
- I,
161
+ const a = e.column.columnDef.meta;
162
+ return /* @__PURE__ */ o(
163
+ M,
147
164
  {
148
- align: t?.align,
149
- hideBelow: t?.hideBelow,
150
- className: t?.className,
151
- children: m(e.column.columnDef.cell, e.getContext())
165
+ align: a?.align,
166
+ hideBelow: a?.hideBelow,
167
+ className: a?.className,
168
+ children: d(e.column.columnDef.cell, e.getContext())
152
169
  },
153
170
  e.id
154
171
  );
155
172
  })
156
173
  }
157
174
  );
158
- }, W = ({
175
+ }, Z = ({
159
176
  onChange: l,
160
177
  ...n
161
178
  }) => {
162
- const { table: o } = u({
179
+ const { table: t } = i({
163
180
  consumerName: "DataTableGlobalSearchInput",
164
181
  contextRequired: !0
165
182
  }), e = R(
166
- (t) => {
167
- o.setGlobalFilter(t.target.value), l?.(t);
183
+ (a) => {
184
+ t.setGlobalFilter(a.target.value), l?.(a);
168
185
  },
169
- [o, l]
186
+ [t, l]
170
187
  );
171
- return /* @__PURE__ */ a(
172
- F,
188
+ return /* @__PURE__ */ o(
189
+ V,
173
190
  {
174
- value: o.getState().globalFilter ?? "",
191
+ value: t.getState().globalFilter ?? "",
175
192
  onChange: e,
176
193
  ...n
177
194
  }
178
195
  );
179
196
  };
180
197
  export {
181
- Q as DataTable,
182
- W as DataTableGlobalSearchInput,
183
- O as DataTableRoot
198
+ Y as DataTable,
199
+ Z as DataTableGlobalSearchInput,
200
+ X as DataTableRoot
184
201
  };
@@ -17,7 +17,8 @@ export type LumenColumnMeta = {
17
17
  */
18
18
  hideBelow?: Breakpoints;
19
19
  /**
20
- * Custom className applied to each cell in this column including the header cell.
20
+ * Custom className applied to the `<col>` element (for width tokens such as `w-144`)
21
+ * and to each cell in this column including the header cell.
21
22
  */
22
23
  className?: string;
23
24
  /**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CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;CAC7E,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAEnC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const getDotIndicatorProps: <Context extends "avatar", Variant extends keyof {
2
+ avatar: {
3
+ sm: {
4
+ size: "lg";
5
+ appearance: "red";
6
+ };
7
+ md: {
8
+ size: "xl";
9
+ appearance: "red";
10
+ };
11
+ };
12
+ }[Context]>(context: Context, variant: Variant) => {
13
+ avatar: {
14
+ sm: {
15
+ size: "lg";
16
+ appearance: "red";
17
+ };
18
+ md: {
19
+ size: "xl";
20
+ appearance: "red";
21
+ };
22
+ };
23
+ }[Context][Variant];
24
+ //# sourceMappingURL=getDotIndicatorProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDotIndicatorProps.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/getDotIndicatorProps.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;mBAM/B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { createPropsResolver as e } from "../../../libs/utils-shared/dist/index.js";
2
+ const a = e({
3
+ // larger avatars (`lg`, `xl`) don't render a dot indicator
4
+ avatar: {
5
+ sm: { size: "lg", appearance: "red" },
6
+ md: { size: "xl", appearance: "red" }
7
+ }
8
+ });
9
+ export {
10
+ a as getDotIndicatorProps
11
+ };
@@ -1,3 +1,4 @@
1
1
  export * from './DotIndicator';
2
+ export * from './getDotIndicatorProps';
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/DotIndicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
@@ -67,8 +67,8 @@ const r = {
67
67
  onClick: a,
68
68
  onClose: l,
69
69
  closeAriaLabel: u,
70
- className: f,
71
- ...p
70
+ className: p,
71
+ ...f
72
72
  }) => {
73
73
  const { t: v } = z(), [g, c] = x(!1), b = t && !g;
74
74
  return N(() => {
@@ -79,10 +79,10 @@ const r = {
79
79
  ...y({ onClick: a }),
80
80
  className: m(
81
81
  r.root({ interactive: !!a }),
82
- f
82
+ p
83
83
  ),
84
84
  ref: i,
85
- ...p,
85
+ ...f,
86
86
  children: [
87
87
  b && /* @__PURE__ */ e(
88
88
  "img",
@@ -1,4 +1,4 @@
1
- import { TableBodyProps, TableCellProps, TableHeaderCellProps, TableHeaderRowProps, TableHeaderProps, TableProps, TableRowProps, TableActionBarLeadingProps, TableActionBarProps, TableActionBarTrailingProps, TableCellContentProps, TableLoadingRowProps, TableRootProps, TableInfoIconProps, TableSortButtonProps, TableGroupHeaderRowProps } from './types';
1
+ import { TableBodyProps, TableCellProps, TableColGroupProps, TableColProps, TableHeaderCellProps, TableHeaderRowProps, TableHeaderProps, TableProps, TableRowProps, TableActionBarLeadingProps, TableActionBarProps, TableActionBarTrailingProps, TableCellContentProps, TableLoadingRowProps, TableRootProps, TableInfoIconProps, TableSortButtonProps, TableGroupHeaderRowProps } from './types';
2
2
  /**
3
3
  * Root table container component. Wraps a scrollable HTML `<div>` around the `Table` element.
4
4
  *
@@ -22,6 +22,22 @@ import { TableBodyProps, TableCellProps, TableHeaderCellProps, TableHeaderRowPro
22
22
  */
23
23
  export declare const TableRoot: ({ children, appearance, className, onScrollBottom, loading, ref, ...props }: TableRootProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const Table: ({ children, className, ref, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
25
+ /**
26
+ * Column group component. Wraps the HTML `<colgroup>` element.
27
+ * Use with `TableCol` to define column widths.
28
+ *
29
+ * @example
30
+ * <TableColGroup>
31
+ * <TableCol className="w-40" />
32
+ * <TableCol className="w-144" />
33
+ * </TableColGroup>
34
+ */
35
+ export declare const TableColGroup: ({ children, className, ref, ...props }: TableColGroupProps) => import("react/jsx-runtime").JSX.Element;
36
+ /**
37
+ * Column component. Wraps the HTML `<col>` element.
38
+ * Use to define column widths within a `TableColGroup`.
39
+ */
40
+ export declare const TableCol: ({ className, hideBelow, ref, ...props }: TableColProps) => import("react/jsx-runtime").JSX.Element;
25
41
  /**
26
42
  * Table head component. Wraps the HTML `<thead>` element.
27
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Table/Table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB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