@ledgerhq/lumen-ui-react 0.1.15 → 0.1.17

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 (149) hide show
  1. package/ai-rules/RULES.md +2 -2
  2. package/dist/i18n/i18n.d.ts.map +1 -1
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +146 -142
  6. package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
  7. package/dist/lib/Components/Avatar/Avatar.js +24 -24
  8. package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
  9. package/dist/lib/Components/BaseInput/BaseInput.js +78 -85
  10. package/dist/lib/Components/CardButton/CardButton.js +10 -10
  11. package/dist/lib/Components/Dialog/Dialog.js +39 -39
  12. package/dist/lib/Components/Dialog/types.d.ts +3 -3
  13. package/dist/lib/Components/Icon/Icon.js +5 -5
  14. package/dist/lib/Components/Icon/createIcon.d.ts.map +1 -1
  15. package/dist/lib/Components/Link/Link.d.ts.map +1 -1
  16. package/dist/lib/Components/Link/Link.js +25 -32
  17. package/dist/lib/Components/ListItem/ListItem.d.ts +17 -28
  18. package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  19. package/dist/lib/Components/ListItem/ListItem.js +81 -93
  20. package/dist/lib/Components/ListItem/types.d.ts +13 -32
  21. package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
  22. package/dist/lib/Components/MediaImage/MediaImage.d.ts +19 -0
  23. package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
  24. package/dist/lib/Components/MediaImage/MediaImage.js +75 -0
  25. package/dist/lib/Components/MediaImage/index.d.ts +3 -0
  26. package/dist/lib/Components/MediaImage/index.d.ts.map +1 -0
  27. package/dist/lib/Components/MediaImage/types.d.ts +38 -0
  28. package/dist/lib/Components/MediaImage/types.d.ts.map +1 -0
  29. package/dist/lib/Components/Menu/Menu.d.ts +4 -4
  30. package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
  31. package/dist/lib/Components/NavBar/NavBar.d.ts +0 -1
  32. package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
  33. package/dist/lib/Components/Popover/Popover.js +7 -7
  34. package/dist/lib/Components/Popover/types.d.ts +3 -3
  35. package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -1
  36. package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
  37. package/dist/lib/Components/SearchInput/SearchInput.js +24 -20
  38. package/dist/lib/Components/SearchInput/types.d.ts +1 -1
  39. package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
  40. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
  41. package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  42. package/dist/lib/Components/SegmentedControl/SegmentedControl.js +97 -81
  43. package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -0
  44. package/dist/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  45. package/dist/lib/Components/SegmentedControl/types.d.ts +7 -0
  46. package/dist/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  47. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts +5 -6
  48. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.d.ts.map +1 -1
  49. package/dist/lib/Components/SegmentedControl/usePillElementLayoutEffect.js +30 -25
  50. package/dist/lib/Components/Select/Select.d.ts +27 -12
  51. package/dist/lib/Components/Select/Select.d.ts.map +1 -1
  52. package/dist/lib/Components/Select/Select.js +356 -202
  53. package/dist/lib/Components/Select/SelectContext.d.ts +3 -1
  54. package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
  55. package/dist/lib/Components/Select/index.d.ts +1 -1
  56. package/dist/lib/Components/Select/index.d.ts.map +1 -1
  57. package/dist/lib/Components/Select/types.d.ts +171 -140
  58. package/dist/lib/Components/Select/types.d.ts.map +1 -1
  59. package/dist/lib/Components/Select/useSelectItems/index.d.ts +2 -0
  60. package/dist/lib/Components/Select/useSelectItems/index.d.ts.map +1 -0
  61. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +30 -0
  62. package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -0
  63. package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +42 -0
  64. package/dist/lib/Components/Select/utils/groupItems.d.ts +13 -0
  65. package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -0
  66. package/dist/lib/Components/Select/utils/groupItems.js +16 -0
  67. package/dist/lib/Components/Select/utils/index.d.ts +2 -0
  68. package/dist/lib/Components/Select/utils/index.d.ts.map +1 -0
  69. package/dist/lib/Components/SideBar/SideBar.d.ts +1 -1
  70. package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
  71. package/dist/lib/Components/SideBar/SideBar.js +93 -89
  72. package/dist/lib/Components/SideBar/types.d.ts +7 -1
  73. package/dist/lib/Components/SideBar/types.d.ts.map +1 -1
  74. package/dist/lib/Components/Stepper/Stepper.d.ts +5 -6
  75. package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
  76. package/dist/lib/Components/Stepper/Stepper.js +100 -102
  77. package/dist/lib/Components/Stepper/types.d.ts +2 -2
  78. package/dist/lib/Components/Stepper/types.d.ts.map +1 -1
  79. package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
  80. package/dist/lib/Components/Tag/Tag.js +1 -1
  81. package/dist/lib/Components/Tooltip/Tooltip.d.ts +2 -2
  82. package/dist/lib/Components/Tooltip/Tooltip.d.ts.map +1 -1
  83. package/dist/lib/Components/TriggerButton/TriggerButton.js +8 -8
  84. package/dist/lib/Components/index.d.ts +1 -0
  85. package/dist/lib/Components/index.d.ts.map +1 -1
  86. package/dist/libs/utils-shared/dist/index.js +151 -124
  87. package/dist/node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js +10 -0
  88. package/dist/node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js +17 -0
  89. package/dist/node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js +23 -0
  90. package/dist/node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js +26 -0
  91. package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js +34 -0
  92. package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js +14 -0
  93. package/dist/node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
  94. package/dist/node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js +221 -0
  95. package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js +113 -0
  96. package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js +14 -0
  97. package/dist/node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js +52 -0
  98. package/dist/node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js +65 -0
  99. package/dist/node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js +76 -0
  100. package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js +24 -0
  101. package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js +14 -0
  102. package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js +102 -0
  103. package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js +14 -0
  104. package/dist/node_modules/@base-ui/react/esm/combobox/root/AriaCombobox.js +596 -0
  105. package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js +23 -0
  106. package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js +41 -0
  107. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/constants.js +8 -0
  108. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/index.js +23 -0
  109. package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/useFilter.js +43 -0
  110. package/dist/node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js +10 -0
  111. package/dist/node_modules/@base-ui/react/esm/combobox/store.js +74 -0
  112. package/dist/node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js +135 -0
  113. package/dist/node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js +32 -0
  114. package/dist/node_modules/@base-ui/react/esm/combobox/utils/stateAttributesMapping.js +15 -0
  115. package/dist/node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js +19 -0
  116. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.js +81 -0
  117. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js +23 -0
  118. package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js +55 -0
  119. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js +6 -0
  120. package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js +53 -0
  121. package/dist/node_modules/@base-ui/react/esm/field/useField.js +51 -0
  122. package/dist/node_modules/@base-ui/react/esm/field/utils/constants.js +37 -0
  123. package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js +12 -0
  124. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js +287 -0
  125. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js +71 -0
  126. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +218 -4
  127. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -3
  128. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +3 -3
  129. package/dist/node_modules/@base-ui/react/esm/form/FormContext.js +23 -0
  130. package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js +19 -0
  131. package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js +44 -0
  132. package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -8
  133. package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +22 -13
  134. package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js +18 -0
  135. package/dist/node_modules/@base-ui/react/esm/utils/itemEquality.js +20 -0
  136. package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +13 -6
  137. package/dist/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js +6 -0
  138. package/dist/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js +73 -0
  139. package/dist/node_modules/@base-ui/react/esm/utils/serializeValue.js +14 -0
  140. package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +8 -7
  141. package/dist/node_modules/@base-ui/utils/esm/empty.js +3 -2
  142. package/dist/node_modules/@base-ui/utils/esm/useControlled.js +31 -0
  143. package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +5 -1
  144. package/dist/node_modules/i18next/dist/esm/i18next.js +45 -47
  145. package/dist/package.json +1 -2
  146. package/dist/utils/icon-template.d.ts.map +1 -1
  147. package/package.json +1 -2
  148. package/dist/lib/Patterns/index.d.ts +0 -3
  149. package/dist/lib/Patterns/index.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { ListItemContentProps, ListItemDescriptionProps, ListItemIconProps, ListItemLeadingProps, ListItemProps, ListItemSpotProps, ListItemTitleProps, ListItemTrailingProps, ListItemTruncateProps } from './types';
1
+ import { ListItemContentProps, ListItemDescriptionProps, ListItemLeadingProps, ListItemProps, ListItemTitleProps, ListItemTrailingProps, ListItemContentRowProps } from './types';
2
2
  /**
3
3
  * A flexible list item component that provides a composable structure for displaying
4
4
  * interactive list items with leading content, title, description, and trailing content.
@@ -10,7 +10,7 @@ import { ListItemContentProps, ListItemDescriptionProps, ListItemIconProps, List
10
10
  *
11
11
  * <ListItem onClick={() => console.log('Clicked!')}>
12
12
  * <ListItemLeading>
13
- * <ListItemSpot appearance="icon" icon={Wallet} />
13
+ * <Spot size={48} appearance="icon" icon={Wallet} />
14
14
  * <ListItemContent>
15
15
  * <ListItemTitle>Balance</ListItemTitle>
16
16
  * <ListItemDescription>Optional description</ListItemDescription>
@@ -27,32 +27,40 @@ export declare const ListItem: {
27
27
  };
28
28
  /**
29
29
  * Container for the leading (left) part of the list item.
30
- * Contains the visual element (ListItemSpot, Avatar, Icon) and the content (title + description).
30
+ * Contains the visual element (Spot, Avatar, Icon) and the content (title + description).
31
31
  */
32
32
  export declare const ListItemLeading: {
33
- ({ ref, children, className, }: ListItemLeadingProps): import("react/jsx-runtime").JSX.Element;
33
+ ({ ref, children, className, ...props }: ListItemLeadingProps): import("react/jsx-runtime").JSX.Element;
34
34
  displayName: string;
35
35
  };
36
36
  /**
37
37
  * Container for the text content (title and description) within the leading area.
38
38
  */
39
39
  export declare const ListItemContent: {
40
- ({ ref, children, className, }: ListItemContentProps): import("react/jsx-runtime").JSX.Element;
40
+ ({ ref, children, className, ...props }: ListItemContentProps): import("react/jsx-runtime").JSX.Element;
41
+ displayName: string;
42
+ };
43
+ /**
44
+ * Horizontal row container within ListItemContent to place a title or description
45
+ * alongside additional inline content (e.g. Tag) while preserving text truncation.
46
+ */
47
+ export declare const ListItemContentRow: {
48
+ ({ ref, children, className, ...props }: ListItemContentRowProps): import("react/jsx-runtime").JSX.Element;
41
49
  displayName: string;
42
50
  };
43
51
  /**
44
52
  * The main title of the list item.
45
53
  */
46
54
  export declare const ListItemTitle: {
47
- ({ ref, children, className, }: ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
55
+ ({ ref, children, className, ...props }: ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
48
56
  displayName: string;
49
57
  };
50
58
  /**
51
- * Optional description text below the title. Can include inline elements like Tag.
59
+ * Optional description text below the title.
52
60
  * Automatically applies disabled styling when the parent ListItem is disabled.
53
61
  */
54
62
  export declare const ListItemDescription: {
55
- ({ ref, children, className, }: ListItemDescriptionProps): import("react/jsx-runtime").JSX.Element;
63
+ ({ ref, children, className, ...props }: ListItemDescriptionProps): import("react/jsx-runtime").JSX.Element;
56
64
  displayName: string;
57
65
  };
58
66
  /**
@@ -60,26 +68,7 @@ export declare const ListItemDescription: {
60
68
  * Used for icons, switches, values, tags, chevrons, etc.
61
69
  */
62
70
  export declare const ListItemTrailing: {
63
- ({ ref, children, className, }: ListItemTrailingProps): import("react/jsx-runtime").JSX.Element;
64
- displayName: string;
65
- };
66
- /**
67
- * Spot adapter for ListItem. Automatically inherits disabled state from parent ListItem.
68
- */
69
- export declare const ListItemSpot: {
70
- (props: ListItemSpotProps): import("react/jsx-runtime").JSX.Element;
71
- displayName: string;
72
- };
73
- /**
74
- * Icon adapter for ListItem. Automatically applies disabled styling from parent ListItem.
75
- * Fixed at size 24 for consistent list item appearance.
76
- */
77
- export declare const ListItemIcon: {
78
- ({ ref, icon: Icon, className, ...props }: ListItemIconProps): import("react/jsx-runtime").JSX.Element;
79
- displayName: string;
80
- };
81
- export declare const ListItemTruncate: {
82
- ({ children, className, }: ListItemTruncateProps): import("react/jsx-runtime").JSX.Element;
71
+ ({ ref, children, className, ...props }: ListItemTrailingProps): import("react/jsx-runtime").JSX.Element;
83
72
  displayName: string;
84
73
  };
85
74
  //# sourceMappingURL=ListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ;wBAAuB,aAAa;;CAyBxD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,eAAe;oCAIzB,oBAAoB;;CAStB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,eAAe;oCAIzB,oBAAoB;;CAStB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa;oCAIvB,kBAAkB;;CAuBpB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;oCAI7B,wBAAwB;;CAuB1B,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;oCAI1B,qBAAqB;;CAoBvB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAOpD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,YAAY;+CAKtB,iBAAiB;;CAenB,CAAC;AAIF,eAAO,MAAM,gBAAgB;+BAG1B,qBAAqB;;CAEvB,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ;wBAAuB,aAAa;;CAyBxD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,eAAe;6CAKzB,oBAAoB;;CAUtB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,eAAe;6CAKzB,oBAAoB;;CAUtB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;6CAK5B,uBAAuB;;CAUzB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,aAAa;6CAKvB,kBAAkB;;CAwBpB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;6CAK7B,wBAAwB;;CAwB1B,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;6CAK1B,qBAAqB;;CAqBvB,CAAC"}
@@ -1,176 +1,164 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useDisabledContext as o, DisabledProvider as c, cn as a, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
- import { Spot as b } from "../Spot/Spot.js";
4
- const [I, d] = u("ListItemTrailing", {
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useDisabledContext as o, DisabledProvider as c, cn as r, createSafeContext as u } from "../../../libs/utils-shared/dist/index.js";
3
+ const [b, m] = u("ListItemTrailing", {
5
4
  isInTrailing: !1
6
- }), p = ({ ref: e, ...t }) => {
7
- const { children: s, className: n, disabled: r, ...m } = t, l = o({
5
+ }), x = ({ ref: e, ...t }) => {
6
+ const { children: s, className: i, disabled: a, ...l } = t, d = o({
8
7
  consumerName: "ListItem",
9
- mergeWith: { disabled: r }
8
+ mergeWith: { disabled: a }
10
9
  });
11
- return /* @__PURE__ */ i(c, { value: { disabled: l }, children: /* @__PURE__ */ i(
10
+ return /* @__PURE__ */ n(c, { value: { disabled: d }, children: /* @__PURE__ */ n(
12
11
  "button",
13
12
  {
14
13
  ref: e,
15
14
  type: "button",
16
- disabled: l,
17
- className: a(
15
+ disabled: d,
16
+ className: r(
18
17
  "flex h-64 w-full cursor-pointer items-center gap-16 rounded-md bg-base-transparent px-8 py-12 text-base transition-colors",
19
18
  "hover:bg-base-transparent-hover focus-visible:outline-2 focus-visible:outline-focus active:bg-base-transparent-pressed",
20
19
  "disabled:cursor-default disabled:bg-base-transparent disabled:text-disabled",
21
- n
20
+ i
22
21
  ),
23
- ...m,
22
+ ...l,
24
23
  children: s
25
24
  }
26
25
  ) });
27
26
  };
28
- p.displayName = "ListItem";
29
- const x = ({
27
+ x.displayName = "ListItem";
28
+ const p = ({
30
29
  ref: e,
31
30
  children: t,
32
- className: s
33
- }) => /* @__PURE__ */ i(
31
+ className: s,
32
+ ...i
33
+ }) => /* @__PURE__ */ n(
34
34
  "div",
35
35
  {
36
36
  ref: e,
37
- className: a("flex min-w-0 flex-1 items-center gap-12", s),
37
+ className: r("flex min-w-0 flex-1 items-center gap-12", s),
38
+ ...i,
38
39
  children: t
39
40
  }
40
41
  );
41
- x.displayName = "ListItemLeading";
42
- const L = ({
42
+ p.displayName = "ListItemLeading";
43
+ const I = ({
43
44
  ref: e,
44
45
  children: t,
45
- className: s
46
- }) => /* @__PURE__ */ i(
46
+ className: s,
47
+ ...i
48
+ }) => /* @__PURE__ */ n(
47
49
  "div",
48
50
  {
49
51
  ref: e,
50
- className: a("flex min-w-0 flex-1 flex-col gap-4", s),
52
+ className: r("flex min-w-0 flex-1 flex-col gap-4", s),
53
+ ...i,
51
54
  children: t
52
55
  }
53
56
  );
54
- L.displayName = "ListItemContent";
55
- const N = ({
57
+ I.displayName = "ListItemContent";
58
+ const f = ({
59
+ ref: e,
60
+ children: t,
61
+ className: s,
62
+ ...i
63
+ }) => /* @__PURE__ */ n(
64
+ "div",
65
+ {
66
+ ref: e,
67
+ className: r("flex min-w-0 items-center gap-8", s),
68
+ ...i,
69
+ children: t
70
+ }
71
+ );
72
+ f.displayName = "ListItemContentRow";
73
+ const L = ({
56
74
  ref: e,
57
75
  children: t,
58
- className: s
76
+ className: s,
77
+ ...i
59
78
  }) => {
60
- const n = o({
79
+ const a = o({
61
80
  consumerName: "ListItemTitle",
62
81
  contextRequired: !0
63
- }), { isInTrailing: r } = d({
82
+ }), { isInTrailing: l } = m({
64
83
  consumerName: "ListItemTitle",
65
84
  contextRequired: !1
66
85
  });
67
- return /* @__PURE__ */ i(
86
+ return /* @__PURE__ */ n(
68
87
  "div",
69
88
  {
70
89
  ref: e,
71
- className: a(
72
- "w-full truncate body-2-semi-bold",
73
- r ? "justify-end text-end" : "justify-start text-start",
74
- n && "text-disabled",
90
+ className: r(
91
+ "min-w-0 flex-1 truncate body-2-semi-bold",
92
+ l ? "justify-end text-end" : "justify-start text-start",
93
+ a && "text-disabled",
75
94
  s
76
95
  ),
96
+ ...i,
77
97
  children: t
78
98
  }
79
99
  );
80
100
  };
81
- N.displayName = "ListItemTitle";
82
- const f = ({
101
+ L.displayName = "ListItemTitle";
102
+ const g = ({
83
103
  ref: e,
84
104
  children: t,
85
- className: s
105
+ className: s,
106
+ ...i
86
107
  }) => {
87
- const n = o({
108
+ const a = o({
88
109
  consumerName: "ListItemDescription",
89
110
  contextRequired: !0
90
- }), { isInTrailing: r } = d({
111
+ }), { isInTrailing: l } = m({
91
112
  consumerName: "ListItemDescription",
92
113
  contextRequired: !1
93
114
  });
94
- return /* @__PURE__ */ i(
115
+ return /* @__PURE__ */ n(
95
116
  "div",
96
117
  {
97
118
  ref: e,
98
- className: a(
99
- "w-full items-center truncate body-3 text-muted",
100
- r ? "justify-end text-end" : "justify-start text-start",
101
- n && "text-disabled",
119
+ className: r(
120
+ "min-w-0 flex-1 items-center truncate body-3 text-muted",
121
+ l ? "justify-end text-end" : "justify-start text-start",
122
+ a && "text-disabled",
102
123
  s
103
124
  ),
125
+ ...i,
104
126
  children: t
105
127
  }
106
128
  );
107
129
  };
108
- f.displayName = "ListItemDescription";
109
- const g = ({
130
+ g.displayName = "ListItemDescription";
131
+ const N = ({
110
132
  ref: e,
111
133
  children: t,
112
- className: s
134
+ className: s,
135
+ ...i
113
136
  }) => {
114
- const n = o({
137
+ const a = o({
115
138
  consumerName: "ListItemTrailing",
116
139
  contextRequired: !0
117
140
  });
118
- return /* @__PURE__ */ i(I, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ i(
141
+ return /* @__PURE__ */ n(b, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ n(
119
142
  "div",
120
143
  {
121
144
  ref: e,
122
- className: a(
145
+ className: r(
123
146
  "flex shrink-0 items-center",
124
- n && "text-disabled",
147
+ a && "text-disabled",
125
148
  s
126
149
  ),
150
+ ...i,
127
151
  children: t
128
152
  }
129
153
  ) });
130
154
  };
131
- g.displayName = "ListItemTrailing";
132
- const y = (e) => {
133
- const t = o({
134
- consumerName: "ListItemSpot",
135
- contextRequired: !0
136
- });
137
- return /* @__PURE__ */ i(b, { ...e, size: 48, disabled: t });
138
- };
139
- y.displayName = "ListItemSpot";
140
- const v = ({
141
- ref: e,
142
- icon: t,
143
- className: s,
144
- ...n
145
- }) => {
146
- const r = o({
147
- consumerName: "ListItemIcon",
148
- contextRequired: !0
149
- });
150
- return /* @__PURE__ */ i(
151
- "div",
152
- {
153
- ref: e,
154
- className: a("shrink-0", r && "text-disabled", s),
155
- ...n,
156
- children: /* @__PURE__ */ i(t, { size: 24 })
157
- }
158
- );
159
- };
160
- v.displayName = "ListItemIcon";
161
- const T = ({
162
- children: e,
163
- className: t
164
- }) => /* @__PURE__ */ i("div", { className: a("min-w-0 truncate", t), children: e });
165
- T.displayName = "ListItemTruncate";
155
+ N.displayName = "ListItemTrailing";
166
156
  export {
167
- p as ListItem,
168
- L as ListItemContent,
169
- f as ListItemDescription,
170
- v as ListItemIcon,
171
- x as ListItemLeading,
172
- y as ListItemSpot,
173
- N as ListItemTitle,
174
- g as ListItemTrailing,
175
- T as ListItemTruncate
157
+ x as ListItem,
158
+ I as ListItemContent,
159
+ f as ListItemContentRow,
160
+ g as ListItemDescription,
161
+ p as ListItemLeading,
162
+ L as ListItemTitle,
163
+ N as ListItemTrailing
176
164
  };
@@ -1,5 +1,4 @@
1
- import { ButtonHTMLAttributes, ComponentPropsWithRef, ComponentType, ReactNode } from 'react';
2
- import { DiscriminatedSpotProps } from '../Spot';
1
+ import { ButtonHTMLAttributes, ComponentPropsWithRef, ReactNode } from 'react';
3
2
  /**
4
3
  * Context value for passing state to sub-components
5
4
  */
@@ -54,11 +53,11 @@ export type ListItemContentProps = {
54
53
  className?: string;
55
54
  } & ComponentPropsWithRef<'div'>;
56
55
  /**
57
- * Props for the ListItemTitle component
56
+ * Props for the ListItemContentRow component
58
57
  */
59
- export type ListItemTitleProps = {
58
+ export type ListItemContentRowProps = {
60
59
  /**
61
- * The title text or custom content
60
+ * The row content (ListItemTitle or ListItemDescription alongside inline elements like Tag)
62
61
  */
63
62
  children: ReactNode;
64
63
  /**
@@ -67,11 +66,11 @@ export type ListItemTitleProps = {
67
66
  className?: string;
68
67
  } & ComponentPropsWithRef<'div'>;
69
68
  /**
70
- * Props for the ListItemDescription component
69
+ * Props for the ListItemTitle component
71
70
  */
72
- export type ListItemDescriptionProps = {
71
+ export type ListItemTitleProps = {
73
72
  /**
74
- * The description text or custom content
73
+ * The title text or custom content
75
74
  */
76
75
  children: ReactNode;
77
76
  /**
@@ -80,11 +79,11 @@ export type ListItemDescriptionProps = {
80
79
  className?: string;
81
80
  } & ComponentPropsWithRef<'div'>;
82
81
  /**
83
- * Props for the ListItemTrailing component
82
+ * Props for the ListItemDescription component
84
83
  */
85
- export type ListItemTrailingProps = {
84
+ export type ListItemDescriptionProps = {
86
85
  /**
87
- * The trailing content (icons, switches, values, etc.)
86
+ * The description text or custom content
88
87
  */
89
88
  children: ReactNode;
90
89
  /**
@@ -93,16 +92,11 @@ export type ListItemTrailingProps = {
93
92
  className?: string;
94
93
  } & ComponentPropsWithRef<'div'>;
95
94
  /**
96
- * Props for ListItemSpot when appearance is 'icon'
97
- */
98
- export type ListItemSpotProps = DiscriminatedSpotProps & ComponentPropsWithRef<'div'>;
99
- /**
100
- * Props for the ListItemTruncate component
101
- * Used to truncate text that should when ListItemDescription or ListItemTitle contain custom content
95
+ * Props for the ListItemTrailing component
102
96
  */
103
- export type ListItemTruncateProps = {
97
+ export type ListItemTrailingProps = {
104
98
  /**
105
- * The content to truncate
99
+ * The trailing content (icons, switches, values, etc.)
106
100
  */
107
101
  children: ReactNode;
108
102
  /**
@@ -110,17 +104,4 @@ export type ListItemTruncateProps = {
110
104
  */
111
105
  className?: string;
112
106
  } & ComponentPropsWithRef<'div'>;
113
- /**
114
- * Props for the ListItemIcon component
115
- */
116
- export type ListItemIconProps = {
117
- /**
118
- * The icon component to render
119
- */
120
- icon: ComponentType<any>;
121
- /**
122
- * custom classname
123
- */
124
- className?: string;
125
- } & ComponentPropsWithRef<'div'>;
126
107
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,o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'./types';
2
+ export declare const mediaImageDotSizeMap: Record<MediaImageSize, number>;
3
+ /**
4
+ * A generic media image component that displays an image with optional shape variants.
5
+ * Supports square and circular appearances with consistent sizing.
6
+ *
7
+ * When the image fails to load or no src is provided, displays a background placeholder
8
+ * or an optional text fallback.
9
+ *
10
+ * @example
11
+ * import { MediaImage } from '@ledgerhq/lumen-ui-react';
12
+ *
13
+ * <MediaImage src="https://example.com/icon.png" alt="Bitcoin" size={32} />
14
+ */
15
+ export declare const MediaImage: {
16
+ ({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ //# sourceMappingURL=MediaImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B1D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAStD,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;sEASpB,eAAe;;CA8BjB,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as c } from "../../../libs/utils-shared/dist/index.js";
3
+ import { cva as f } from "class-variance-authority";
4
+ import { useState as z, useEffect as g } from "react";
5
+ const p = {
6
+ root: f(
7
+ "relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-muted-transparent",
8
+ {
9
+ variants: {
10
+ size: {
11
+ 12: "size-12 rounded-xs",
12
+ 16: "size-16 rounded-xs",
13
+ 20: "size-20 rounded-xs",
14
+ 24: "size-24 rounded-sm",
15
+ 32: "size-32 rounded-sm",
16
+ 40: "size-40 rounded-md",
17
+ 48: "size-48 rounded-md",
18
+ 56: "size-56 rounded-lg"
19
+ },
20
+ shape: {
21
+ square: "",
22
+ circle: "rounded-full"
23
+ }
24
+ }
25
+ }
26
+ )
27
+ }, N = {
28
+ 12: 8,
29
+ 16: 8,
30
+ 20: 8,
31
+ 24: 10,
32
+ 32: 12,
33
+ 40: 16,
34
+ 48: 20,
35
+ 56: 24
36
+ }, h = ({
37
+ ref: s,
38
+ className: i,
39
+ src: e,
40
+ alt: o,
41
+ size: t = 48,
42
+ shape: d = "square",
43
+ imgLoading: n = "eager",
44
+ ...m
45
+ }) => {
46
+ const [l, a] = z(!1), u = !e || l;
47
+ return g(() => {
48
+ a(!1);
49
+ }, [e]), /* @__PURE__ */ r(
50
+ "div",
51
+ {
52
+ ref: s,
53
+ className: c(p.root({ size: t, shape: d }), i),
54
+ role: "img",
55
+ "aria-label": o,
56
+ ...m,
57
+ children: u ? /* @__PURE__ */ r("span", { className: "text-muted select-none", "aria-hidden": "true" }) : /* @__PURE__ */ r(
58
+ "img",
59
+ {
60
+ src: e,
61
+ alt: "",
62
+ loading: n,
63
+ onError: () => a(!0),
64
+ className: "size-full object-cover",
65
+ "aria-hidden": "true"
66
+ }
67
+ )
68
+ }
69
+ );
70
+ };
71
+ h.displayName = "MediaImage";
72
+ export {
73
+ h as MediaImage,
74
+ N as mediaImageDotSizeMap
75
+ };
@@ -0,0 +1,3 @@
1
+ export { MediaImage, mediaImageDotSizeMap } from './MediaImage';
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/MediaImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAChE,cAAc,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export type MediaImageSize = 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56;
3
+ export type MediaImageShape = 'square' | 'circle';
4
+ export type MediaImageProps = {
5
+ /**
6
+ * Image source URL. When undefined or on load error, displays a fallback.
7
+ * @optional
8
+ */
9
+ src?: string;
10
+ /**
11
+ * The shape of the media image.
12
+ * @default 'squared'
13
+ */
14
+ shape?: MediaImageShape;
15
+ /**
16
+ * The size of the media image in pixels.
17
+ * @default 48
18
+ */
19
+ size?: MediaImageSize;
20
+ /**
21
+ * Loading strategy for the image.
22
+ * - `eager`: Load immediately (default browser behavior)
23
+ * - `lazy`: Defer loading until near viewport
24
+ * @optional
25
+ * @default eager (browser default: eager)
26
+ */
27
+ imgLoading?: 'eager' | 'lazy';
28
+ /**
29
+ * Alternative text for the image, used for accessibility.
30
+ */
31
+ alt?: string;
32
+ /**
33
+ * Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
34
+ * @optional
35
+ */
36
+ className?: string;
37
+ } & ComponentPropsWithRef<'div'>;
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
+ import { ComponentProps, ComponentRef, Ref } from 'react';
1
2
  import { MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuLabelProps, MenuSeparatorProps, MenuSubTriggerProps, MenuSubContentProps, MenuGroupProps, MenuRadioGroupProps } from './types';
2
3
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
- import * as React from 'react';
4
4
  declare function Menu({ ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare const MenuTrigger: {
6
6
  ({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string | undefined;
8
8
  };
9
9
  declare function MenuGroup({ ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
10
- declare function MenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
11
- declare function MenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
10
+ declare function MenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
11
+ declare function MenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
12
12
  declare function MenuRadioGroup({ ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
13
13
  declare const MenuSubTrigger: {
14
14
  ({ ref, className, inset, children, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -36,7 +36,7 @@ declare const MenuRadioItem: {
36
36
  };
37
37
  declare const MenuLabel: {
38
38
  ({ ref, className, inset, ...props }: MenuLabelProps & {
39
- ref?: React.Ref<React.ComponentRef<typeof DropdownMenuPrimitive.Label>>;
39
+ ref?: Ref<ComponentRef<typeof DropdownMenuPrimitive.Label>>;
40
40
  }): import("react/jsx-runtime").JSX.Element;
41
41
  displayName: string | undefined;
42
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Menu/Menu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,SAAS,CAAC;AA0BjB,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAEpC;AAED,QAAA,MAAM,WAAW;wBAAuB,gBAAgB;;CAMvD,CAAC;AAGF,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAE9C;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAExD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;oDAMjB,mBAAmB;;CAUrB,CAAC;AAGF,QAAA,MAAM,cAAc;mCAAkC,mBAAmB;;CAOxE,CAAC;AAGF,QAAA,MAAM,WAAW;sDAMd,gBAAgB;;CAkBlB,CAAC;AAGF,QAAA,MAAM,QAAQ;kEAMX,aAAa;;CAiBf,CAAC;AAGF,QAAA,MAAM,gBAAgB;8EAOnB,qBAAqB;;CAyBvB,CAAC;AAGF,QAAA,M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,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAElD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAIxD;AAED,QAAA,MAAM,cAAc;oDAMjB,mBAAmB;;CAUrB,CAAC;AAGF,QAAA,MAAM,cAAc;mCAAkC,mBAAmB;;CAOxE,CAAC;AAGF,QAAA,MAAM,WAAW;sDAMd,gBAAgB;;CAkBlB,CAAC;AAGF,QAAA,MAAM,QAAQ;kEAMX,aAAa;;CAiBf,CAAC;AAGF,QAAA,MAAM,gBAAgB;8EAOnB,qBAAqB;;CAyBvB,CAAC;AAGF,QAAA,MAAM,aAAa;qEAMhB,kBAAkB;;CAwBpB,CAAC;AAGF,QAAA,MAAM,SAAS;0CAKZ,cAAc,GAAG;QAClB,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;KAC7D;;CAOA,CAAC;AAGF,QAAA,MAAM,aAAa;mCAAkC,kBAAkB;;CAEtE,CAAC;AAGF,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAc,GACf,CAAC"}
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { NavBarBackButtonProps, NavBarCoinCapsuleProps, NavBarProps, NavBarTitleProps, NavBarTrailingProps } from './types';
3
2
  /**
4
3
  * A coin capsule component for displaying cryptocurrency information within the NavBar.
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/NavBar/NavBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACpB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