@ledgerhq/lumen-ui-rnative 0.1.34 → 0.1.36

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 (120) hide show
  1. package/dist/module/index.js +1 -0
  2. package/dist/module/index.js.map +1 -1
  3. package/dist/module/lib/Animations/Pulse/Pulse.js +16 -6
  4. package/dist/module/lib/Animations/Pulse/Pulse.js.map +1 -1
  5. package/dist/module/lib/Components/BottomSheet/BottomSheet.js +12 -7
  6. package/dist/module/lib/Components/BottomSheet/BottomSheet.js.map +1 -1
  7. package/dist/module/lib/Components/BottomSheet/BottomSheet.stories.js +220 -1
  8. package/dist/module/lib/Components/BottomSheet/BottomSheet.stories.js.map +1 -1
  9. package/dist/module/lib/Components/BottomSheet/BottomSheet.test.js +73 -0
  10. package/dist/module/lib/Components/BottomSheet/BottomSheet.test.js.map +1 -1
  11. package/dist/module/lib/Components/BottomSheet/BottomSheetHeader.js +1 -1
  12. package/dist/module/lib/Components/BottomSheet/BottomSheetHeader.js.map +1 -1
  13. package/dist/module/lib/Components/BottomSheet/CustomHandle.js +15 -2
  14. package/dist/module/lib/Components/BottomSheet/CustomHandle.js.map +1 -1
  15. package/dist/module/lib/Components/Card/Card.js.map +1 -1
  16. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js +184 -0
  17. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js.map +1 -0
  18. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.mdx +139 -0
  19. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js +258 -0
  20. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js.map +1 -0
  21. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js +94 -0
  22. package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js.map +1 -0
  23. package/dist/module/lib/Components/DescriptionItem/index.js +5 -0
  24. package/dist/module/lib/Components/DescriptionItem/index.js.map +1 -0
  25. package/dist/module/lib/Components/DescriptionItem/types.js +4 -0
  26. package/dist/module/lib/Components/DescriptionItem/types.js.map +1 -0
  27. package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
  28. package/dist/module/lib/Components/MediaImage/MediaImage.js +5 -1
  29. package/dist/module/lib/Components/MediaImage/MediaImage.js.map +1 -1
  30. package/dist/module/lib/Components/NavBar/CoinCapsule.js +1 -0
  31. package/dist/module/lib/Components/NavBar/CoinCapsule.js.map +1 -1
  32. package/dist/module/lib/Components/OptionList/OptionList.js +45 -4
  33. package/dist/module/lib/Components/OptionList/OptionList.js.map +1 -1
  34. package/dist/module/lib/Components/OptionList/OptionList.mdx +19 -0
  35. package/dist/module/lib/Components/OptionList/OptionList.stories.js +254 -1
  36. package/dist/module/lib/Components/OptionList/OptionList.stories.js.map +1 -1
  37. package/dist/module/lib/Components/OptionList/OptionList.test.js +136 -1
  38. package/dist/module/lib/Components/OptionList/OptionList.test.js.map +1 -1
  39. package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.js +39 -13
  40. package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.js.map +1 -1
  41. package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.test.js +117 -2
  42. package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.test.js.map +1 -1
  43. package/dist/module/lib/Components/PageIndicator/PageIndicator.test.js.map +1 -1
  44. package/dist/module/lib/Components/Skeleton/Skeleton.js +10 -3
  45. package/dist/module/lib/Components/Skeleton/Skeleton.js.map +1 -1
  46. package/dist/module/lib/Components/TabBar/TabBar.js +7 -6
  47. package/dist/module/lib/Components/TabBar/TabBar.js.map +1 -1
  48. package/dist/module/lib/Components/index.js +1 -0
  49. package/dist/module/lib/Components/index.js.map +1 -1
  50. package/dist/module/styles/lx/resolveStyle.js.map +1 -1
  51. package/dist/typescript/src/index.d.ts +1 -0
  52. package/dist/typescript/src/index.d.ts.map +1 -1
  53. package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts +1 -1
  54. package/dist/typescript/src/lib/Animations/Pulse/Pulse.d.ts.map +1 -1
  55. package/dist/typescript/src/lib/Animations/Pulse/types.d.ts +2 -1
  56. package/dist/typescript/src/lib/Animations/Pulse/types.d.ts.map +1 -1
  57. package/dist/typescript/src/lib/Components/BottomSheet/BottomSheet.d.ts +1 -1
  58. package/dist/typescript/src/lib/Components/BottomSheet/BottomSheet.d.ts.map +1 -1
  59. package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts +5 -2
  60. package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts.map +1 -1
  61. package/dist/typescript/src/lib/Components/BottomSheet/types.d.ts +16 -3
  62. package/dist/typescript/src/lib/Components/BottomSheet/types.d.ts.map +1 -1
  63. package/dist/typescript/src/lib/Components/Card/Card.d.ts.map +1 -1
  64. package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts +42 -0
  65. package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -0
  66. package/dist/typescript/src/lib/Components/DescriptionItem/index.d.ts +3 -0
  67. package/dist/typescript/src/lib/Components/DescriptionItem/index.d.ts.map +1 -0
  68. package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts +39 -0
  69. package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts.map +1 -0
  70. package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +3 -3
  71. package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
  72. package/dist/typescript/src/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
  73. package/dist/typescript/src/lib/Components/OptionList/OptionList.d.ts +3 -2
  74. package/dist/typescript/src/lib/Components/OptionList/OptionList.d.ts.map +1 -1
  75. package/dist/typescript/src/lib/Components/OptionList/types.d.ts +42 -5
  76. package/dist/typescript/src/lib/Components/OptionList/types.d.ts.map +1 -1
  77. package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts +9 -1
  78. package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts.map +1 -1
  79. package/dist/typescript/src/lib/Components/Skeleton/Skeleton.d.ts +1 -1
  80. package/dist/typescript/src/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
  81. package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
  82. package/dist/typescript/src/lib/Components/index.d.ts +1 -0
  83. package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
  84. package/dist/typescript/src/lib/types/index.d.ts +3 -3
  85. package/dist/typescript/src/lib/types/index.d.ts.map +1 -1
  86. package/dist/typescript/src/styles/lx/resolveStyle.d.ts +3 -3
  87. package/dist/typescript/src/styles/lx/resolveStyle.d.ts.map +1 -1
  88. package/package.json +1 -1
  89. package/src/index.ts +1 -0
  90. package/src/lib/Animations/Pulse/Pulse.tsx +38 -30
  91. package/src/lib/Animations/Pulse/types.ts +2 -1
  92. package/src/lib/Components/BottomSheet/BottomSheet.stories.tsx +174 -1
  93. package/src/lib/Components/BottomSheet/BottomSheet.test.tsx +59 -0
  94. package/src/lib/Components/BottomSheet/BottomSheet.tsx +19 -7
  95. package/src/lib/Components/BottomSheet/BottomSheetHeader.tsx +1 -1
  96. package/src/lib/Components/BottomSheet/CustomHandle.tsx +26 -5
  97. package/src/lib/Components/BottomSheet/types.ts +24 -3
  98. package/src/lib/Components/Card/Card.tsx +3 -3
  99. package/src/lib/Components/DescriptionItem/DescriptionItem.mdx +139 -0
  100. package/src/lib/Components/DescriptionItem/DescriptionItem.stories.tsx +234 -0
  101. package/src/lib/Components/DescriptionItem/DescriptionItem.test.tsx +112 -0
  102. package/src/lib/Components/DescriptionItem/DescriptionItem.tsx +224 -0
  103. package/src/lib/Components/DescriptionItem/index.ts +2 -0
  104. package/src/lib/Components/DescriptionItem/types.ts +44 -0
  105. package/src/lib/Components/ListItem/ListItem.tsx +3 -3
  106. package/src/lib/Components/MediaImage/MediaImage.tsx +5 -1
  107. package/src/lib/Components/NavBar/CoinCapsule.tsx +1 -0
  108. package/src/lib/Components/OptionList/OptionList.mdx +19 -0
  109. package/src/lib/Components/OptionList/OptionList.stories.tsx +254 -0
  110. package/src/lib/Components/OptionList/OptionList.test.tsx +143 -0
  111. package/src/lib/Components/OptionList/OptionList.tsx +49 -3
  112. package/src/lib/Components/OptionList/types.ts +46 -5
  113. package/src/lib/Components/OptionList/useOptionList/useOptionListItems.test.ts +124 -2
  114. package/src/lib/Components/OptionList/useOptionList/useOptionListItems.ts +53 -10
  115. package/src/lib/Components/PageIndicator/PageIndicator.test.tsx +2 -1
  116. package/src/lib/Components/Skeleton/Skeleton.tsx +9 -5
  117. package/src/lib/Components/TabBar/TabBar.tsx +3 -2
  118. package/src/lib/Components/index.ts +1 -0
  119. package/src/lib/types/index.ts +3 -3
  120. package/src/styles/lx/resolveStyle.ts +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA2ChD,QAAA,MAA4B,qBAAqB;;;yJAG9C,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,8SAqBzB,gBAAgB,4CAwHlB,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAiDhD,QAAA,MAA4B,qBAAqB;;;yJAG9C,CAAC;AAEJ,eAAO,MAAM,WAAW,GAAI,+UAuBzB,gBAAgB,4CA4HlB,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { BottomSheetVariables } from '@gorhom/bottom-sheet/lib/typescript/types';
2
- import type { Ref } from 'react';
2
+ import type { ComponentRef, Ref } from 'react';
3
3
  import { View } from 'react-native';
4
4
  export declare const CustomHandle: ({ ref, ...props }: BottomSheetVariables & {
5
- ref?: Ref<React.ElementRef<typeof View>>;
5
+ ref?: Ref<ComponentRef<typeof View>>;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const HiddenHandle: ({ ref, ...props }: BottomSheetVariables & {
8
+ ref?: Ref<ComponentRef<typeof View>>;
6
9
  }) => import("react/jsx-runtime").JSX.Element;
7
10
  //# sourceMappingURL=CustomHandle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/CustomHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAyBpC,eAAO,MAAM,YAAY,GAAI,mBAG1B,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;CAAE,4CAQrE,CAAC"}
1
+ {"version":3,"file":"CustomHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/CustomHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAyBpC,eAAO,MAAM,YAAY,GAAI,mBAG1B,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;CAAE,4CAajE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,mBAG1B,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;CAAE,4CAWjE,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { BottomSheetModal as GorhomBottomSheetModal, BottomSheetView as GorhomBottomSheetView, BottomSheetFlatList as GorhomBottomSheetFlatList, BottomSheetSectionList as GorhomBottomSheetSectionList, BottomSheetScrollView as GorhomBottomSheetScrollView, BottomSheetVirtualizedList as GorhomBottomSheetVirtualizedList } from '@gorhom/bottom-sheet';
1
+ import type { BottomSheetModal as GorhomBottomSheetModal, BottomSheetView as GorhomBottomSheetView, BottomSheetFlatList as GorhomBottomSheetFlatList, BottomSheetSectionList as GorhomBottomSheetSectionList, BottomSheetScrollView as GorhomBottomSheetScrollView, BottomSheetVirtualizedList as GorhomBottomSheetVirtualizedList, BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
2
2
  import type { Density } from '@ledgerhq/lumen-utils-shared';
3
- import type { PropsWithChildren, ReactNode, Ref } from 'react';
3
+ import type { ComponentRef, FC, PropsWithChildren, ReactNode, Ref } from 'react';
4
4
  import type { StyledViewProps } from '../../../styles';
5
5
  export type BottomSheetProps = PropsWithChildren & {
6
6
  /**
7
7
  * Ref to the bottom sheet component.
8
8
  */
9
- ref?: Ref<React.ElementRef<typeof GorhomBottomSheetModal>>;
9
+ ref?: Ref<ComponentRef<typeof GorhomBottomSheetModal>>;
10
10
  /**
11
11
  * Used to locate this view in end-to-end tests.
12
12
  */
@@ -111,7 +111,20 @@ export type BottomSheetProps = PropsWithChildren & {
111
111
  * @default true
112
112
  */
113
113
  enableBlurKeyboardOnGesture?: boolean;
114
+ /**
115
+ * Custom background component rendered behind the sheet content and handle.
116
+ * Use to render gradients or other effects that should span the full sheet area,
117
+ * including the handle strip. When provided, the default sheet background is removed.
118
+ * @default undefined
119
+ */
120
+ backgroundComponent?: FC<BottomSheetBackgroundProps> | null;
121
+ /**
122
+ * If true, the drag handle (grabber) at the top of the sheet is hidden.
123
+ * @default false
124
+ */
125
+ hideHandle?: boolean;
114
126
  };
127
+ export type { BottomSheetBackgroundProps };
115
128
  export type BottomSheetHeaderProps = {
116
129
  /**
117
130
  * The density of the header.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,eAAe,IAAI,qBAAqB,EACxC,mBAAmB,IAAI,yBAAyB,EAChD,sBAAsB,IAAI,4BAA4B,EACtD,qBAAqB,IAAI,2BAA2B,EACpD,0BAA0B,IAAI,gCAAgC,EAC/D,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EACP,MAAM,GACN,gBAAgB,GAChB,QAAQ,GACR,OAAO,GACP,MAAM,EAAE,GACR,MAAM,EAAE,GACR,IAAI,CAAC;IACT;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,E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AAC,CAAC,CAAC,CAAC;AAC/E,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,yBAAyB,CACjC,CAAC,CAAC,CAAC,CAAC;AACL,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,4BAA4B,CACpC,CAAC,CAAC,CAAC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,2BAA2B,CACnC,CAAC,CAAC,CAAC,CAAC;AACL,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,gCAAgC,CACxC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/BottomSheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,eAAe,IAAI,qBAAqB,EACxC,mBAAmB,IAAI,yBAAyB,EAChD,sBAAsB,IAAI,4BAA4B,EACtD,qBAAqB,IAAI,2BAA2B,EACpD,0BAA0B,IAAI,gCAAgC,EAC9D,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EACV,YAAY,EACZ,EAAE,EACF,iBAAiB,EACjB,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EACP,MAAM,GACN,gBAAgB,GAChB,QAAQ,GACR,OAAO,GACP,MAAM,EAAE,GACR,MAAM,EAAE,GACR,IAAI,CA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AC,IAAI,CAAC,CAAA;CAAE,4CAwDnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,wCAM1B,iBAAiB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAwBzC,CAAC;AA2CF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,wCAMxB,eAAe,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAwCvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,wCAM/B,sBAAsB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAsB9C,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { DescriptionItemLabelProps, DescriptionItemLeadingProps, DescriptionItemProps, DescriptionItemTrailingProps, DescriptionItemValueProps } from './types';
2
+ /**
3
+ * A compound component for displaying a key-value description row.
4
+ * Composed with DescriptionItemLeading / DescriptionItemLabel (key side)
5
+ * and DescriptionItemTrailing / DescriptionItemValue (value side).
6
+ *
7
+ * @see {@link https://ldls.vercel.app/?path=/docs/containment-descriptionitem--docs Storybook}
8
+ *
9
+ * @example
10
+ * <DescriptionItem size="md">
11
+ * <DescriptionItemLeading>
12
+ * <DescriptionItemLabel>Fees</DescriptionItemLabel>
13
+ * </DescriptionItemLeading>
14
+ * <DescriptionItemTrailing>
15
+ * <DescriptionItemValue>0.001 BTC</DescriptionItemValue>
16
+ * </DescriptionItemTrailing>
17
+ * </DescriptionItem>
18
+ */
19
+ export declare const DescriptionItem: ({ children, lx, style, size, ...props }: DescriptionItemProps) => import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * Layout container for the leading (left) side of the description item.
22
+ * Contains DescriptionItemLabel and an optional info icon sibling.
23
+ */
24
+ export declare const DescriptionItemLeading: ({ children, lx, style, ...props }: DescriptionItemLeadingProps) => import("react/jsx-runtime").JSX.Element;
25
+ /**
26
+ * Typography-bearing label for the leading side.
27
+ * Reads size from DescriptionItemSizeContext to apply the correct typography
28
+ * based on the size of the parent `DescriptionItem`.
29
+ */
30
+ export declare const DescriptionItemLabel: ({ children, lx, style, numberOfLines, ellipsizeMode, ...props }: DescriptionItemLabelProps) => import("react/jsx-runtime").JSX.Element;
31
+ /**
32
+ * Layout container for the trailing (right) side of the description item.
33
+ * Accepts DescriptionItemValue, Tag, Link, or any custom content.
34
+ */
35
+ export declare const DescriptionItemTrailing: ({ children, lx, style, ...props }: DescriptionItemTrailingProps) => import("react/jsx-runtime").JSX.Element;
36
+ /**
37
+ * Typography-bearing value for the trailing side.
38
+ * Reads size from DescriptionItemSizeContext to apply the correct typography
39
+ * based on the size of the parent `DescriptionItem`.
40
+ */
41
+ export declare const DescriptionItemValue: ({ children, lx, style, numberOfLines, ellipsizeMode, ...props }: DescriptionItemValueProps) => import("react/jsx-runtime").JSX.Element;
42
+ //# sourceMappingURL=DescriptionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionItem.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/DescriptionItem/DescriptionItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EAEpB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAWjB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,GAAI,yCAM7B,oBAAoB,4CAoBtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,mCAKpC,2BAA2B,4CAmB7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,iEAOlC,yBAAyB,4CAgC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,mCAKrC,4BAA4B,4CAuB9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,iEAOlC,yBAAyB,4CAkC3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './DescriptionItem';
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/DescriptionItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyledTextProps, StyledViewProps } from '../../../styles';
3
+ export type DescriptionItemSize = 'sm' | 'md';
4
+ export type DescriptionItemProps = {
5
+ /**
6
+ * The content of the description item (DescriptionItemLeading, DescriptionItemTrailing).
7
+ */
8
+ children: ReactNode;
9
+ /**
10
+ * The size of the description item.
11
+ * @default 'md'
12
+ */
13
+ size?: DescriptionItemSize;
14
+ } & Omit<StyledViewProps, 'children'>;
15
+ export type DescriptionItemLeadingProps = {
16
+ /**
17
+ * The leading content (DescriptionItemLabel + optional info icon sibling).
18
+ */
19
+ children: ReactNode;
20
+ } & Omit<StyledViewProps, 'children'>;
21
+ export type DescriptionItemLabelProps = {
22
+ /**
23
+ * The label text or custom content.
24
+ */
25
+ children: ReactNode;
26
+ } & Omit<StyledTextProps, 'children'>;
27
+ export type DescriptionItemTrailingProps = {
28
+ /**
29
+ * The trailing content (DescriptionItemValue, Tag, Link, etc.).
30
+ */
31
+ children: ReactNode;
32
+ } & Omit<StyledViewProps, 'children'>;
33
+ export type DescriptionItemValueProps = {
34
+ /**
35
+ * The value text or custom content.
36
+ */
37
+ children: ReactNode;
38
+ } & Omit<StyledTextProps, 'children'>;
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/DescriptionItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ElementRef, Ref } from 'react';
1
+ import type { ComponentRef, Ref } from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { Text } from '../Utility';
4
4
  import type { ListItemContentProps, ListItemContentRowProps, ListItemDescriptionProps, ListItemLeadingProps, ListItemProps, ListItemTitleProps, ListItemTrailingProps } from './types';
@@ -62,14 +62,14 @@ export declare const ListItemContentRow: ({ children, lx, style, ref, ...props }
62
62
  * The main title of the list item.
63
63
  */
64
64
  export declare const ListItemTitle: ({ children, lx, style, ref, ...props }: ListItemTitleProps & {
65
- ref?: Ref<ElementRef<typeof Text>>;
65
+ ref?: Ref<ComponentRef<typeof Text>>;
66
66
  }) => import("react/jsx-runtime").JSX.Element;
67
67
  /**
68
68
  * Optional description text below the title.
69
69
  * Automatically applies disabled styling when the parent ListItem is disabled.
70
70
  */
71
71
  export declare const ListItemDescription: ({ children, lx, style, ref, ...props }: ListItemDescriptionProps & {
72
- ref?: Ref<ElementRef<typeof Text>>;
72
+ ref?: Ref<ComponentRef<typeof Text>>;
73
73
  }) => import("react/jsx-runtime").JSX.Element;
74
74
  /**
75
75
  * Container for the trailing (right) content of the list item.
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,GAAG,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAc,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAkB,IAAI,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAoCjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,QAAQ,GAAI,+FAUtB,aAAa,4CA+Cf,CAAC;AAsBF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,wCAM7B,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAwB5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,wCAM7B,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CA4B5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAMhC,uBAAuB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG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,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CA4B5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,wCAMhC,uBAAuB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAuB/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,wCAM3B,kBAAkB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;CAAE,4CAsC/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,wCAMjC,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;CAAE,4CAsCrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAM9B,qBAAqB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CAAE,4CAuB7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAgBhF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUtD,CAAC;AAyCF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,GAAI,wEAWxB,eAAe,4CA0CjB,CAAC"}
1
+ {"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAgBhF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUtD,CAAC;AA6CF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,GAAI,wEAWxB,eAAe,4CA0CjB,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { MetaShape, OptionListProps, OptionListContentProps, OptionListItemProps, OptionListItemLeadingProps, OptionListItemTextProps, OptionListItemDescriptionProps, OptionListItemContentProps, OptionListItemContentRowProps, OptionListEmptyStateProps, OptionListTriggerProps } from './types';
2
- export declare const OptionList: <TMeta extends MetaShape = MetaShape>({ items, value, defaultValue, onValueChange, disabled: disabledProp, children, }: OptionListProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
1
+ import type { MetaShape, OptionListProps, OptionListContentProps, OptionListItemProps, OptionListItemLeadingProps, OptionListItemTextProps, OptionListItemDescriptionProps, OptionListItemContentProps, OptionListItemContentRowProps, OptionListEmptyStateProps, OptionListSearchProps, OptionListTriggerProps } from './types';
2
+ export declare const OptionList: <TMeta extends MetaShape = MetaShape>({ items, value, defaultValue, onValueChange, disabled: disabledProp, filter, filteredItems, searchValue, defaultSearchValue, onSearchValueChange, children, }: OptionListProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
3
3
  export declare const OptionListContent: <TMeta extends MetaShape = MetaShape>({ renderItem, lx, style, ref, ...props }: OptionListContentProps<TMeta>) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const OptionListItem: ({ value, disabled: disabledProp, children, lx, style, ref, ...props }: OptionListItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const OptionListItemText: ({ children, lx, style, ref, ...props }: OptionListItemTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,7 @@ export declare const OptionListItemDescription: ({ children, lx, style, ref, ...
7
7
  export declare const OptionListItemContent: ({ children, lx, style, ref, ...props }: OptionListItemContentProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const OptionListItemContentRow: ({ children, lx, style, ref, ...props }: OptionListItemContentRowProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const OptionListItemLeading: ({ children, lx, style, ref, ...props }: OptionListItemLeadingProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const OptionListSearch: ({ ref, ...props }: OptionListSearchProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export declare const OptionListEmptyState: ({ title, description, lx, style, ref, ...props }: OptionListEmptyStateProps) => import("react/jsx-runtime").JSX.Element | null;
11
12
  export declare const OptionListTrigger: ({ label, onPress, disabled: disabledProp, children, lx, style, ref, ...props }: OptionListTriggerProps) => import("react/jsx-runtime").JSX.Element;
12
13
  //# sourceMappingURL=OptionList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/OptionList/OptionList.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,SAAS,EAGT,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,sBAAsB,EAEvB,MAAM,SAAS,CAAC;AAMjB,eAAO,MAAM,UAAU,GAAI,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,kFAO7D,eAAe,CAAC,KAAK,CAAC,4CA+BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,0CAMpE,sBAAsB,CAAC,KAAK,CAAC,4CAkC/B,CAAC;AA4BF,eAAO,MAAM,cAAc,GAAI,uEAQ5B,mBAAmB,4CA+BrB,CAAC;AAyBF,eAAO,MAAM,kBAAkB,GAAI,wCAMhC,uBAAuB,4CA6BzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,wCAMvC,8BAA8B,4CA6BhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,wCAMnC,0BAA0B,4CAsB5B,CAAC;AAEF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qBAAqB,4CAiBxE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,kDAOlC,yBAAyB,mDA4C3B,CAAC;AA6DF,eAAO,MAAM,iBAAiB,GAAI,gFAS/B,sBAAsB,4CAgCxB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { StyledPressableProps, StyledTextProps, StyledViewProps } from '../../../styles';
3
+ import type { SearchInputProps } from '../SearchInput';
3
4
  export type MetaShape = Record<string, unknown>;
4
5
  export type OptionListItemData<TMeta extends MetaShape = MetaShape> = {
5
6
  /** Unique string identifier for this item, used for selection tracking. */
@@ -30,6 +31,8 @@ export type OptionListContextValue = {
30
31
  isGrouped: boolean;
31
32
  groups: OptionListItemGroup[];
32
33
  flatItems: OptionListItemData[];
34
+ resolvedSearchValue: string;
35
+ handleSearchValueChange: (value: string) => void;
33
36
  };
34
37
  /** Internal type -- consumers never construct this directly. */
35
38
  export type OptionListItemGroup<TMeta extends MetaShape = MetaShape> = {
@@ -37,16 +40,49 @@ export type OptionListItemGroup<TMeta extends MetaShape = MetaShape> = {
37
40
  items: OptionListItemData<TMeta>[];
38
41
  };
39
42
  export type OptionListProps<TMeta extends MetaShape = MetaShape> = {
40
- /** Flat array of items. Use the `group` field on each item for automatic grouping. */
43
+ /**
44
+ * Flat array of items.
45
+ * Use the `group` field on each item for automatic grouping.
46
+ */
41
47
  items: OptionListItemData<TMeta>[];
42
- /** The controlled selected value. */
48
+ /**
49
+ * The controlled selected value.
50
+ */
43
51
  value?: string | null;
44
- /** The default selected value (uncontrolled). */
52
+ /**
53
+ * The default selected value (uncontrolled)
54
+ */
45
55
  defaultValue?: string | null;
46
- /** Called when the selected value changes. */
56
+ /**
57
+ * Called when the selected value changes.
58
+ */
47
59
  onValueChange?: (value: string | null) => void;
48
- /** When true, prevents interaction with the entire list. */
60
+ /**
61
+ * When true, prevents interaction with the entire list.
62
+ */
49
63
  disabled?: boolean;
64
+ /**
65
+ * Custom item/query matcher.
66
+ * Defaults to case-insensitive label match; `null` disables filtering.
67
+ */
68
+ filter?: null | ((item: OptionListItemData<TMeta>, query: string) => boolean);
69
+ /**
70
+ * Pre-filtered items for async/remote search.
71
+ * Bypasses internal filtering.
72
+ */
73
+ filteredItems?: OptionListItemData<TMeta>[];
74
+ /**
75
+ * Controlled search input value.
76
+ */
77
+ searchValue?: string;
78
+ /**
79
+ * Initial uncontrolled search value.
80
+ */
81
+ defaultSearchValue?: string;
82
+ /**
83
+ * Fired when search input changes.
84
+ */
85
+ onSearchValueChange?: (value: string) => void;
50
86
  children: ReactNode;
51
87
  };
52
88
  export type OptionListContentProps<TMeta extends MetaShape = MetaShape> = {
@@ -84,6 +120,7 @@ export type OptionListEmptyStateProps = {
84
120
  /** Optional secondary text displayed below the title. */
85
121
  description?: string;
86
122
  } & Omit<StyledViewProps, 'children'>;
123
+ export type OptionListSearchProps = Omit<SearchInputProps, 'value' | 'onChangeText' | 'defaultValue'>;
87
124
  export type OptionListTriggerProps = {
88
125
  /** Floating label shown above the selected value. */
89
126
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/OptionList/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhD,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IACpE,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;O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tB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,gBAAgB,EAChB,OAAO,GAAG,cAAc,GAAG,cAAc,CAC1C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC"}
@@ -1,12 +1,20 @@
1
1
  import type { MetaShape, OptionListItemData, OptionListItemGroup } from '../types';
2
+ export declare const defaultLabelFilter: (item: OptionListItemData, query: string) => boolean;
2
3
  type UseOptionListItemsParams<TMeta extends MetaShape = MetaShape> = {
3
4
  items: OptionListItemData<TMeta>[];
5
+ filter?: null | ((item: OptionListItemData<TMeta>, query: string) => boolean);
6
+ filteredItems?: OptionListItemData<TMeta>[];
7
+ searchValue?: string;
8
+ defaultSearchValue?: string;
9
+ onSearchValueChange?: (value: string) => void;
4
10
  };
5
11
  type UseOptionListItemsResult<TMeta extends MetaShape = MetaShape> = {
6
12
  isGrouped: boolean;
7
13
  groups: OptionListItemGroup<TMeta>[];
8
14
  flatItems: OptionListItemData<TMeta>[];
15
+ resolvedSearchValue: string;
16
+ handleSearchValueChange: (val: string) => void;
9
17
  };
10
- export declare const useOptionListItems: <TMeta extends MetaShape = MetaShape>({ items, }: UseOptionListItemsParams<TMeta>) => UseOptionListItemsResult<TMeta>;
18
+ export declare const useOptionListItems: <TMeta extends MetaShape = MetaShape>({ items, filter, filteredItems, searchValue: searchValueProp, defaultSearchValue, onSearchValueChange, }: UseOptionListItemsParams<TMeta>) => UseOptionListItemsResult<TMeta>;
11
19
  export {};
12
20
  //# sourceMappingURL=useOptionListItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOptionListItems.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/OptionList/useOptionList/useOptionListItems.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AA8BlB,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IACnE,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;CACpC,CAAC;AAEF,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IACnE,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,YAErE,wBAAwB,CAAC,KAAK,CAAC,KAAG,wBAAwB,CAAC,KAAK,CAC1B,CAAC"}
1
+ {"version":3,"file":"useOptionListItems.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/OptionList/useOptionList/useOptionListItems.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAqBlB,eAAO,MAAM,kBAAkB,GAC7B,MAAM,kBAAkB,EACxB,OAAO,MAAM,KACZ,OAAiE,CAAC;AAErE,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IACnE,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;IACnC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAC9E,aAAa,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI;IACnE,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,SAAS,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,KAAK,SAAS,SAAS,GAAG,SAAS,EAAE,0GAOrE,wBAAwB,CAAC,KAAK,CAAC,KAAG,wBAAwB,CAAC,KAAK,CAmClE,CAAC"}
@@ -13,6 +13,6 @@ import type { SkeletonProps } from './types';
13
13
  * // Tile variant
14
14
  * <Skeleton component='tile' />
15
15
  */
16
- declare const Skeleton: ({ lx, component, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Skeleton: ({ lx, component, style, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
17
17
  export { Skeleton };
18
18
  //# sourceMappingURL=Skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgG7C;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ,GAAI,6BAA6B,aAAa,4CAkB3D,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgG7C;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ,GAAI,oCAAoC,aAAa,4CAsBlE,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/TabBar/TabBar.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AA+IjC,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,UAAU,EACV,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,2CAmDjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CA2Cb"}
1
+ {"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/TabBar/TabBar.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AA+IjC,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,UAAU,EACV,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,2CAmDjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CA2Cb"}
@@ -9,6 +9,7 @@ export * from './Card';
9
9
  export * from './CardButton';
10
10
  export * from './Checkbox';
11
11
  export * from './ContentBanner';
12
+ export * from './DescriptionItem';
12
13
  export * from './Divider';
13
14
  export * from './DotCount';
14
15
  export * from './DotIcon';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;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AAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -1,11 +1,11 @@
1
- import type { ElementType, ComponentPropsWithRef, ElementRef } from 'react';
1
+ import type { ElementType, ComponentPropsWithRef, ComponentRef } from 'react';
2
2
  import type { Pressable, View } from 'react-native';
3
3
  type ComponentPropsWithAsChild<T extends ElementType<any>> = ComponentPropsWithRef<T> & {
4
4
  asChild?: boolean;
5
5
  };
6
6
  type SlottableViewProps = ComponentPropsWithAsChild<typeof View>;
7
- type ViewRef = ElementRef<typeof View>;
8
- type PressableRef = ElementRef<typeof Pressable>;
7
+ type ViewRef = ComponentRef<typeof View>;
8
+ type PressableRef = ComponentRef<typeof Pressable>;
9
9
  type SlottablePressableProps = ComponentPropsWithAsChild<typeof Pressable> & {
10
10
  /**
11
11
  * Platform: WEB ONLY
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpD,KAAK,yBAAyB,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,IACvD,qBAAqB,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnD,KAAK,kBAAkB,GAAG,yBAAyB,CAAC,OAAO,IAAI,CAAC,CAAC;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AC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,YAAY,EACV,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,OAAO,GACR,CAAC"}
@@ -1,11 +1,11 @@
1
- import { type ViewStyle, type TextStyle } from 'react-native';
1
+ import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
2
  import type { LumenTextStyle, LumenViewStyle } from '../types';
3
3
  /**
4
4
  * Transform lx props to StyleSheet style object for View
5
5
  */
6
- export declare const useResolveViewStyle: (lx: LumenViewStyle, bareStyle?: ViewStyle) => ViewStyle;
6
+ export declare const useResolveViewStyle: (lx: LumenViewStyle, bareStyle?: StyleProp<ViewStyle>) => ViewStyle;
7
7
  /**
8
8
  * Transform lx props to StyleSheet style object for Text
9
9
  */
10
- export declare const useResolveTextStyle: (lx: LumenTextStyle, bareStyle?: TextStyle) => TextStyle;
10
+ export declare const useResolveTextStyle: (lx: LumenTextStyle, bareStyle?: StyleProp<TextStyle>) => TextStyle;
11
11
  //# sourceMappingURL=resolveStyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveStyle.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/resolveStyle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAc,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACf,MAAM,UAAU,CAAC;AAoClB;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,IAAI,cAAc,EAClB,YAAY,SAAS,KACpB,SAIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,IAAI,cAAc,EAClB,YAAY,SAAS,KACpB,SAIF,CAAC"}
1
+ {"version":3,"file":"resolveStyle.d.ts","sourceRoot":"","sources":["../../../../../src/styles/lx/resolveStyle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACf,MAAM,UAAU,CAAC;AAoClB;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,IAAI,cAAc,EAClB,YAAY,SAAS,CAAC,SAAS,CAAC,KAC/B,SAIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,IAAI,cAAc,EAClB,YAAY,SAAS,CAAC,SAAS,CAAC,KAC/B,SAIF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-ui-rnative",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "react-native",
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { type SupportedLocale, Languages } from './i18n';
2
+ export { RuntimeConstants } from './lib/utils';
2
3
  export { useTheme, useStyleSheet } from './styles';
3
4
  export * from './lib/Components';
4
5
  export * from './lib/Animations';
@@ -4,9 +4,9 @@ import Animated, {
4
4
  useAnimatedStyle,
5
5
  useSharedValue,
6
6
  withRepeat,
7
- withSequence,
8
7
  withTiming,
9
8
  } from 'react-native-reanimated';
9
+ import { useResolveViewStyle } from '../../../styles';
10
10
  import type { TimingTokens } from '../types';
11
11
  import { useTimingConfig } from '../useTimingConfig';
12
12
  import type { PulseProps } from './types';
@@ -17,38 +17,46 @@ const TIMING_DEFAULTS: TimingTokens = {
17
17
  duration: 1000,
18
18
  easing: 'linear',
19
19
  };
20
- export const Pulse = memo(({ children, timing, animate }: PulseProps) => {
21
- const sv = useSharedValue<number>(1);
20
+ export const Pulse = memo(
21
+ ({ children, timing, animate, style, lx = {}, ...props }: PulseProps) => {
22
+ const sv = useSharedValue<number>(1);
23
+ const resolvedLxStyle = useResolveViewStyle(lx, style);
22
24
 
23
- const timingConfig = useTimingConfig({
24
- duration: timing?.duration ?? TIMING_DEFAULTS.duration,
25
- easing: timing?.easing ?? TIMING_DEFAULTS.easing,
26
- });
25
+ const timingConfig = useTimingConfig({
26
+ duration: timing?.duration ?? TIMING_DEFAULTS.duration,
27
+ easing: timing?.easing ?? TIMING_DEFAULTS.easing,
28
+ });
27
29
 
28
- useEffect(() => {
29
- if (animate) {
30
- sv.value = withRepeat(
31
- withSequence(
32
- withTiming(MIN_OPACITY, timingConfig),
33
- withTiming(1, timingConfig),
34
- ),
35
- -1,
36
- );
37
- } else {
38
- cancelAnimation(sv);
39
- sv.value = withTiming(1, timingConfig);
40
- }
30
+ useEffect(() => {
31
+ if (animate) {
32
+ sv.value = withRepeat(withTiming(MIN_OPACITY, timingConfig), -1, true);
33
+ } else {
34
+ cancelAnimation(sv);
35
+ sv.value = withTiming(1, timingConfig);
36
+ }
41
37
 
42
- return () => cancelAnimation(sv);
43
- }, [sv, animate, timingConfig]);
38
+ return () => {
39
+ cancelAnimation(sv);
40
+ sv.value = 1;
41
+ };
42
+ }, [sv, animate, timingConfig]);
44
43
 
45
- const animatedStyle = useAnimatedStyle(
46
- () => ({
47
- opacity: sv.value,
48
- }),
49
- [sv],
50
- );
44
+ const animatedStyle = useAnimatedStyle(
45
+ () => ({
46
+ opacity: sv.value,
47
+ }),
48
+ [sv],
49
+ );
51
50
 
52
- return <Animated.View style={animatedStyle}>{children}</Animated.View>;
53
- });
51
+ return (
52
+ <Animated.View
53
+ {...props}
54
+ collapsable={false}
55
+ style={[resolvedLxStyle, animatedStyle]}
56
+ >
57
+ {children}
58
+ </Animated.View>
59
+ );
60
+ },
61
+ );
54
62
  Pulse.displayName = 'Pulse';
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { StyledViewProps } from '../../../styles';
2
3
  import type { TimingTokens } from '../types';
3
4
 
4
5
  export type PulseProps = {
@@ -15,4 +16,4 @@ export type PulseProps = {
15
16
  * Whether the pulse animation should play
16
17
  */
17
18
  animate?: boolean;
18
- };
19
+ } & StyledViewProps;