@ledgerhq/lumen-ui-rnative 0.1.61 → 0.1.62
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.
- package/dist/module/lib/Components/core/Avatar/Avatar.js +17 -6
- package/dist/module/lib/Components/core/Avatar/Avatar.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.mdx +10 -6
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +15 -6
- package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.test.js +56 -0
- package/dist/module/lib/Components/core/Avatar/Avatar.test.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/index.js +1 -1
- package/dist/module/lib/Components/core/Avatar/index.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.js +21 -0
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.js.map +1 -0
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js +88 -0
- package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js.map +1 -0
- package/dist/module/lib/Components/core/Banner/Banner.js +3 -3
- package/dist/module/lib/Components/core/Banner/Banner.js.map +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.test.js +3 -3
- package/dist/module/lib/Components/core/Banner/Banner.test.js.map +1 -1
- package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js +1 -4
- package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js.map +1 -1
- package/dist/module/lib/Components/core/DotIcon/index.js +0 -10
- package/dist/module/lib/Components/core/DotIcon/index.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js +1 -4
- package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/index.js +0 -15
- package/dist/module/lib/Components/core/DotSymbol/index.js.map +1 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/module/lib/Components/core/MediaButton/MediaButton.mdx +2 -2
- package/dist/module/lib/Components/core/MenuList/MenuList.figma.js +21 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.figma.js.map +1 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.js +143 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.js.map +1 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.mdx +66 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +139 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.test.js +146 -0
- package/dist/module/lib/Components/core/MenuList/MenuList.test.js.map +1 -0
- package/dist/module/lib/Components/core/MenuList/index.js +5 -0
- package/dist/module/lib/Components/core/MenuList/index.js.map +1 -0
- package/dist/module/lib/Components/core/MenuList/types.js.map +1 -0
- package/dist/module/lib/Components/core/SelectList/SelectList.figma.js +28 -0
- package/dist/module/lib/Components/core/{OptionList/OptionList.figma.js.map → SelectList/SelectList.figma.js.map} +1 -1
- package/dist/module/lib/Components/core/{OptionList/OptionList.js → SelectList/SelectList.js} +46 -46
- package/dist/module/lib/Components/core/{OptionList/OptionList.js.map → SelectList/SelectList.js.map} +1 -1
- package/dist/module/lib/Components/core/{OptionList/OptionList.mdx → SelectList/SelectList.mdx} +81 -81
- package/dist/module/lib/Components/core/{OptionList/OptionList.stories.js → SelectList/SelectList.stories.js} +130 -130
- package/dist/module/lib/Components/core/{OptionList/OptionList.stories.js.map → SelectList/SelectList.stories.js.map} +1 -1
- package/dist/module/lib/Components/core/{OptionList/OptionList.test.js → SelectList/SelectList.test.js} +83 -83
- package/dist/module/lib/Components/core/{OptionList/OptionList.test.js.map → SelectList/SelectList.test.js.map} +1 -1
- package/dist/module/lib/Components/core/SelectList/index.js +5 -0
- package/dist/module/lib/Components/core/{OptionList → SelectList}/index.js.map +1 -1
- package/dist/module/lib/Components/core/SelectList/types.js +4 -0
- package/dist/module/lib/Components/core/{OptionList → SelectList}/types.js.map +1 -1
- package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.js → SelectList/useSelectList/useSelectListItems.js} +2 -2
- package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.js.map → SelectList/useSelectList/useSelectListItems.js.map} +1 -1
- package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.js → SelectList/useSelectList/useSelectListItems.test.js} +17 -17
- package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.js.map → SelectList/useSelectList/useSelectListItems.test.js.map} +1 -1
- package/dist/module/lib/Components/core/index.js +2 -1
- package/dist/module/lib/Components/core/index.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +2 -2
- package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.js +3 -3
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js +1 -1
- package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js.map +1 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.test.js +1 -1
- package/dist/module/lib/Components/symbols/icons/CloudSync.js +50 -0
- package/dist/module/lib/Components/symbols/icons/CloudSync.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Dollar.js +11 -5
- package/dist/module/lib/Components/symbols/icons/Dollar.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/DollarConvert.js +1 -1
- package/dist/module/lib/Components/symbols/icons/DollarConvert.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/DollarFill.js +47 -0
- package/dist/module/lib/Components/symbols/icons/DollarFill.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/FaceId.js +50 -0
- package/dist/module/lib/Components/symbols/icons/FaceId.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Fingerprint.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Fingerprint.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Pause.js +2 -1
- package/dist/module/lib/Components/symbols/icons/Pause.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Range.js +2 -5
- package/dist/module/lib/Components/symbols/icons/Range.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Telegram.js +20 -9
- package/dist/module/lib/Components/symbols/icons/Telegram.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Usb.js +1 -1
- package/dist/module/lib/Components/symbols/index.js +4 -0
- package/dist/module/lib/Components/symbols/index.js.map +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/Avatar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/index.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Avatar/useResolveAvatarColor.d.ts +10 -0
- package/dist/typescript/src/lib/Components/core/Avatar/useResolveAvatarColor.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/DotIcon/index.d.ts +0 -7
- package/dist/typescript/src/lib/Components/core/DotIcon/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/DotSymbol/index.d.ts +0 -12
- package/dist/typescript/src/lib/Components/core/DotSymbol/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/MediaButton/MediaButton.d.ts +2 -2
- package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts +29 -0
- package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MenuList/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/MenuList/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/MenuList/types.d.ts +42 -0
- package/dist/typescript/src/lib/Components/core/MenuList/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/SelectList/SelectList.d.ts +27 -0
- package/dist/typescript/src/lib/Components/core/{OptionList/OptionList.d.ts.map → SelectList/SelectList.d.ts.map} +1 -1
- package/dist/typescript/src/lib/Components/core/SelectList/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/types.d.ts +24 -24
- package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/SelectList/useSelectList/useSelectListItems.d.ts +20 -0
- package/dist/typescript/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.d.ts.map → SelectList/useSelectList/useSelectListItems.d.ts.map} +1 -1
- package/dist/typescript/src/lib/Components/core/index.d.ts +2 -1
- package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/CloudSync.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CloudSync.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Dollar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/DollarFill.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/DollarFill.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/FaceId.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/FaceId.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Fingerprint.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Fingerprint.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Pause.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Range.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Telegram.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/index.d.ts +4 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/Components/core/Avatar/Avatar.mdx +10 -6
- package/src/lib/Components/core/Avatar/Avatar.stories.tsx +16 -9
- package/src/lib/Components/core/Avatar/Avatar.test.tsx +64 -0
- package/src/lib/Components/core/Avatar/Avatar.tsx +41 -8
- package/src/lib/Components/core/Avatar/index.ts +1 -1
- package/src/lib/Components/core/Avatar/types.ts +1 -1
- package/src/lib/Components/core/Avatar/useResolveAvatarColor.test.tsx +106 -0
- package/src/lib/Components/core/Avatar/useResolveAvatarColor.ts +25 -0
- package/src/lib/Components/core/Banner/Banner.test.tsx +3 -3
- package/src/lib/Components/core/Banner/Banner.tsx +3 -3
- package/src/lib/Components/core/DotIcon/getDotIconProps.test.ts +1 -5
- package/src/lib/Components/core/DotIcon/index.ts +0 -10
- package/src/lib/Components/core/DotSymbol/getDotSymbolProps.test.ts +1 -5
- package/src/lib/Components/core/DotSymbol/index.ts +0 -15
- package/src/lib/Components/core/MediaButton/MediaButton.mdx +2 -2
- package/src/lib/Components/core/MediaButton/MediaButton.tsx +2 -2
- package/src/lib/Components/core/MenuList/MenuList.figma.tsx +23 -0
- package/src/lib/Components/core/MenuList/MenuList.mdx +66 -0
- package/src/lib/Components/core/MenuList/MenuList.stories.tsx +114 -0
- package/src/lib/Components/core/MenuList/MenuList.test.tsx +135 -0
- package/src/lib/Components/core/MenuList/MenuList.tsx +162 -0
- package/src/lib/Components/core/MenuList/index.ts +2 -0
- package/src/lib/Components/core/MenuList/types.ts +49 -0
- package/src/lib/Components/core/SelectList/SelectList.figma.tsx +37 -0
- package/src/lib/Components/core/{OptionList/OptionList.mdx → SelectList/SelectList.mdx} +81 -81
- package/src/lib/Components/core/{OptionList/OptionList.stories.tsx → SelectList/SelectList.stories.tsx} +227 -227
- package/src/lib/Components/core/{OptionList/OptionList.test.tsx → SelectList/SelectList.test.tsx} +138 -138
- package/src/lib/Components/core/{OptionList/OptionList.tsx → SelectList/SelectList.tsx} +92 -92
- package/src/lib/Components/core/SelectList/index.ts +2 -0
- package/src/lib/Components/core/{OptionList → SelectList}/types.ts +28 -28
- package/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.ts → SelectList/useSelectList/useSelectListItems.test.ts} +24 -24
- package/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.ts → SelectList/useSelectList/useSelectListItems.ts} +21 -21
- package/src/lib/Components/core/Spot/Spot.tsx +1 -1
- package/src/lib/Components/core/index.ts +2 -1
- package/src/lib/Components/internal/BaseButton/BaseButton.tsx +2 -2
- package/src/lib/Components/internal/BaseTag/BaseTag.test.tsx +3 -3
- package/src/lib/Components/internal/BaseTag/BaseTag.tsx +3 -3
- package/src/lib/Components/symbols/Icon/Icon.test.tsx +1 -1
- package/src/lib/Components/symbols/icons/CloudSync.tsx +45 -0
- package/src/lib/Components/symbols/icons/Dollar.tsx +8 -1
- package/src/lib/Components/symbols/icons/DollarConvert.tsx +1 -1
- package/src/lib/Components/symbols/icons/DollarFill.tsx +42 -0
- package/src/lib/Components/symbols/icons/FaceId.tsx +45 -0
- package/src/lib/Components/symbols/icons/Fingerprint.tsx +45 -0
- package/src/lib/Components/symbols/icons/Pause.tsx +2 -1
- package/src/lib/Components/symbols/icons/Range.tsx +2 -5
- package/src/lib/Components/symbols/icons/Telegram.tsx +14 -7
- package/src/lib/Components/symbols/icons/Usb.tsx +1 -1
- package/src/lib/Components/symbols/index.ts +4 -0
- package/dist/module/lib/Components/core/Avatar/resolveAvatarColor.js +0 -18
- package/dist/module/lib/Components/core/Avatar/resolveAvatarColor.js.map +0 -1
- package/dist/module/lib/Components/core/OptionList/OptionList.figma.js +0 -28
- package/dist/module/lib/Components/core/OptionList/index.js +0 -5
- package/dist/typescript/src/lib/Components/core/Avatar/resolveAvatarColor.d.ts +0 -8
- package/dist/typescript/src/lib/Components/core/Avatar/resolveAvatarColor.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/core/OptionList/OptionList.d.ts +0 -27
- package/dist/typescript/src/lib/Components/core/OptionList/index.d.ts +0 -3
- package/dist/typescript/src/lib/Components/core/OptionList/useOptionList/useOptionListItems.d.ts +0 -20
- package/src/lib/Components/core/Avatar/resolveAvatarColor.ts +0 -19
- package/src/lib/Components/core/OptionList/OptionList.figma.tsx +0 -37
- package/src/lib/Components/core/OptionList/index.ts +0 -2
- /package/dist/module/lib/Components/core/{OptionList → MenuList}/types.js +0 -0
|
@@ -3,14 +3,4 @@
|
|
|
3
3
|
export { DotIcon } from "./DotIcon.js";
|
|
4
4
|
export * from "./getDotIconProps.js";
|
|
5
5
|
export * from "./types.js";
|
|
6
|
-
|
|
7
|
-
// shim: @ledgerhq/crypto-icons imports this
|
|
8
|
-
// remove once the package drops the dependency
|
|
9
|
-
export const mediaImageDotIconSizeMap = {
|
|
10
|
-
40: 16,
|
|
11
|
-
48: 20,
|
|
12
|
-
56: 24,
|
|
13
|
-
64: 24,
|
|
14
|
-
72: 32
|
|
15
|
-
};
|
|
16
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DotIcon"
|
|
1
|
+
{"version":3,"names":["DotIcon"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/DotIcon/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAW;AACnC,cAAc,sBAAmB;AACjC,cAAc,YAAS","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { describe, it, expect } from '@jest/globals';
|
|
4
|
-
import { getDotSymbolProps
|
|
4
|
+
import { getDotSymbolProps } from "./index.js";
|
|
5
5
|
describe('getDotSymbolProps', () => {
|
|
6
6
|
it('resolves mediaImage dot symbol props', () => {
|
|
7
7
|
expect(getDotSymbolProps('mediaImage', 12)).toEqual({
|
|
@@ -35,9 +35,6 @@ describe('getDotSymbolProps', () => {
|
|
|
35
35
|
size: 32
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
|
-
it('exports mediaImageDotSizeMap shim', () => {
|
|
39
|
-
expect(mediaImageDotSizeMap[48]).toBe(20);
|
|
40
|
-
});
|
|
41
38
|
it('resolves spot dot symbol props', () => {
|
|
42
39
|
expect(getDotSymbolProps('spot', 32)).toEqual({
|
|
43
40
|
size: 12
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["describe","it","expect","getDotSymbolProps","
|
|
1
|
+
{"version":3,"names":["describe","it","expect","getDotSymbolProps","toEqual","size"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/DotSymbol/getDotSymbolProps.test.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,QAAQ,eAAe;AACpD,SAASC,iBAAiB,QAAQ,YAAS;AAE3CH,QAAQ,CAAC,mBAAmB,EAAE,MAAM;EAClCC,EAAE,CAAC,sCAAsC,EAAE,MAAM;IAC/CC,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAE,CAAC,CAAC;IAChEH,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAE,CAAC,CAAC;IAChEH,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAE,CAAC,CAAC;IAChEH,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAG,CAAC,CAAC;IACjEH,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAG,CAAC,CAAC;IACjEH,MAAM,CAACC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;MAAEC,IAAI,EAAE;IAAG,CAAC,CAAC;IACjEH,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otSymbol.js";
|
|
4
4
|
export * from "./getDotSymbolProps.js";
|
|
5
5
|
export * from "./types.js";
|
|
6
|
-
|
|
7
|
-
// shim: @ledgerhq/crypto-icons imports this
|
|
8
|
-
// remove once the package drops the dependency
|
|
9
|
-
export const mediaImageDotSizeMap = {
|
|
10
|
-
12: 8,
|
|
11
|
-
16: 8,
|
|
12
|
-
20: 8,
|
|
13
|
-
24: 10,
|
|
14
|
-
32: 12,
|
|
15
|
-
40: 16,
|
|
16
|
-
48: 20,
|
|
17
|
-
56: 24,
|
|
18
|
-
64: 24,
|
|
19
|
-
72: 32
|
|
20
|
-
};
|
|
21
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DotSymbol"
|
|
1
|
+
{"version":3,"names":["DotSymbol"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/DotSymbol/index.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,gBAAa;AACvC,cAAc,wBAAqB;AACnC,cAAc,YAAS","ignoreList":[]}
|
|
@@ -96,10 +96,10 @@ const useStyles = ({
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Media button for
|
|
99
|
+
* Media button for select list/dropdown components. Displays a label with an optional
|
|
100
100
|
* leading content and a trailing chevron indicator.
|
|
101
101
|
*
|
|
102
|
-
* This component is intended to be used exclusively as the trigger inside
|
|
102
|
+
* This component is intended to be used exclusively as the trigger inside a SelectList or
|
|
103
103
|
* dropdown pattern. It should not be used as a standalone action button — use `Button`
|
|
104
104
|
* or `IconButton` instead.
|
|
105
105
|
*
|
|
@@ -11,11 +11,11 @@ import * as MediaButtonStories from './MediaButton.stories';
|
|
|
11
11
|
|
|
12
12
|
## Introduction
|
|
13
13
|
|
|
14
|
-
A specialized media button designed exclusively for
|
|
14
|
+
A specialized media button designed exclusively for select list and dropdown patterns. It displays a label with an optional leading icon and a permanent trailing chevron indicator.
|
|
15
15
|
|
|
16
16
|
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=6389-45680&m=dev).
|
|
17
17
|
|
|
18
|
-
> **Important**: This component should only be used as a trigger inside
|
|
18
|
+
> **Important**: This component should only be used as a trigger inside a SelectList or dropdown. For standalone actions, use [Button](/docs/rnative-button--docs) or [IconButton](/docs/rnative-iconbutton--docs) instead.
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import figma from '@figma/code-connect';
|
|
4
|
+
import { MenuList, MenuListItem } from "./MenuList.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
figma.connect(MenuListItem, 'https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7?node-id=7897-7037', {
|
|
7
|
+
imports: ["import { MenuList, MenuListItem } from '@ledgerhq/lumen-ui-rnative'"],
|
|
8
|
+
props: {
|
|
9
|
+
label: figma.string('title'),
|
|
10
|
+
disabled: figma.enum('state', {
|
|
11
|
+
disabled: true
|
|
12
|
+
})
|
|
13
|
+
},
|
|
14
|
+
example: props => /*#__PURE__*/_jsx(MenuList, {
|
|
15
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
16
|
+
label: props.label,
|
|
17
|
+
disabled: props.disabled
|
|
18
|
+
})
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=MenuList.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["figma","MenuList","MenuListItem","jsx","_jsx","connect","imports","props","label","string","disabled","enum","example","children"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MenuList/MenuList.figma.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,qBAAqB;AACvC,SAASC,QAAQ,EAAEC,YAAY,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpDJ,KAAK,CAACK,OAAO,CACXH,YAAY,EACZ,uEAAuE,EACvE;EACEI,OAAO,EAAE,CACP,qEAAqE,CACtE;EACDC,KAAK,EAAE;IACLC,KAAK,EAAER,KAAK,CAACS,MAAM,CAAC,OAAO,CAAC;IAC5BC,QAAQ,EAAEV,KAAK,CAACW,IAAI,CAAC,OAAO,EAAE;MAC5BD,QAAQ,EAAE;IACZ,CAAC;EACH,CAAC;EACDE,OAAO,EAAGL,KAAK,iBACbH,IAAA,CAACH,QAAQ;IAAAY,QAAA,eACPT,IAAA,CAACF,YAAY;MAACM,KAAK,EAAED,KAAK,CAACC,KAAM;MAACE,QAAQ,EAAEH,KAAK,CAACG;IAAS,CAAE;EAAC,CACtD;AAEd,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import { useStyleSheet } from "../../../../styles/index.js";
|
|
6
|
+
import { Box, Pressable, Text } from "../../primitives/index.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const resolveContentColor = (disabled, appearance) => {
|
|
9
|
+
if (disabled) {
|
|
10
|
+
return 'disabled';
|
|
11
|
+
}
|
|
12
|
+
if (appearance === 'red') {
|
|
13
|
+
return 'error';
|
|
14
|
+
}
|
|
15
|
+
return 'base';
|
|
16
|
+
};
|
|
17
|
+
const useItemStyles = ({
|
|
18
|
+
pressed,
|
|
19
|
+
disabled,
|
|
20
|
+
appearance
|
|
21
|
+
}) => useStyleSheet(t => ({
|
|
22
|
+
container: StyleSheet.flatten([{
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
paddingVertical: t.spacings.s12,
|
|
26
|
+
paddingHorizontal: t.spacings.s8,
|
|
27
|
+
gap: t.spacings.s12,
|
|
28
|
+
borderRadius: t.borderRadius.sm,
|
|
29
|
+
backgroundColor: t.colors.bg.baseTransparent
|
|
30
|
+
}, pressed && {
|
|
31
|
+
backgroundColor: t.colors.bg.baseTransparentPressed
|
|
32
|
+
}]),
|
|
33
|
+
label: StyleSheet.flatten([t.typographies.body2SemiBold, {
|
|
34
|
+
flex: 1,
|
|
35
|
+
color: t.colors.text[resolveContentColor(disabled, appearance)]
|
|
36
|
+
}])
|
|
37
|
+
}), [pressed, disabled, appearance]);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A container for a set of tappable actions, rendered as `MenuListItem`s.
|
|
41
|
+
*
|
|
42
|
+
* `MenuList` is a content primitive: it owns no open/close state, so compose it
|
|
43
|
+
* inside a `BottomSheet` (or any other surface) to build a menu experience.
|
|
44
|
+
*
|
|
45
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-menulist--docs Storybook}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* <MenuList>
|
|
49
|
+
* <MenuListItem icon={Unlink} label="Unlink" onPress={handleUnlink} />
|
|
50
|
+
* <MenuListItem icon={Trash} label="Remove" appearance="red" onPress={handleRemove} />
|
|
51
|
+
* </MenuList>
|
|
52
|
+
*/
|
|
53
|
+
export const MenuList = ({
|
|
54
|
+
children,
|
|
55
|
+
lx,
|
|
56
|
+
style,
|
|
57
|
+
ref,
|
|
58
|
+
...props
|
|
59
|
+
}) => /*#__PURE__*/_jsx(Box, {
|
|
60
|
+
lx: lx,
|
|
61
|
+
style: style,
|
|
62
|
+
ref: ref,
|
|
63
|
+
...props,
|
|
64
|
+
children: children
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A single action inside a `MenuList`: a label, an optional leading icon and a
|
|
69
|
+
* press handler.
|
|
70
|
+
*
|
|
71
|
+
* Place destructive (`appearance="red"`) items last, per platform convention.
|
|
72
|
+
*
|
|
73
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-menulist--docs Storybook}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* <MenuListItem icon={Trash} label="Remove" appearance="red" onPress={handleRemove} />
|
|
77
|
+
*/
|
|
78
|
+
export const MenuListItem = ({
|
|
79
|
+
label,
|
|
80
|
+
icon: Icon,
|
|
81
|
+
appearance = 'base',
|
|
82
|
+
disabled: disabledProp = false,
|
|
83
|
+
onPress,
|
|
84
|
+
accessibilityState,
|
|
85
|
+
lx,
|
|
86
|
+
style,
|
|
87
|
+
ref,
|
|
88
|
+
...props
|
|
89
|
+
}) => {
|
|
90
|
+
const disabled = useDisabledContext({
|
|
91
|
+
consumerName: 'MenuListItem',
|
|
92
|
+
mergeWith: {
|
|
93
|
+
disabled: disabledProp
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
97
|
+
ref: ref,
|
|
98
|
+
lx: lx,
|
|
99
|
+
style: style,
|
|
100
|
+
onPress: onPress,
|
|
101
|
+
disabled: disabled,
|
|
102
|
+
accessibilityRole: "button",
|
|
103
|
+
accessibilityState: {
|
|
104
|
+
...accessibilityState,
|
|
105
|
+
disabled
|
|
106
|
+
},
|
|
107
|
+
...props,
|
|
108
|
+
children: ({
|
|
109
|
+
pressed
|
|
110
|
+
}) => /*#__PURE__*/_jsx(MenuListItemInner, {
|
|
111
|
+
label: label,
|
|
112
|
+
icon: Icon,
|
|
113
|
+
appearance: appearance,
|
|
114
|
+
pressed: pressed,
|
|
115
|
+
disabled: disabled
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
const MenuListItemInner = ({
|
|
120
|
+
label,
|
|
121
|
+
icon: Icon,
|
|
122
|
+
appearance,
|
|
123
|
+
pressed,
|
|
124
|
+
disabled
|
|
125
|
+
}) => {
|
|
126
|
+
const styles = useItemStyles({
|
|
127
|
+
pressed,
|
|
128
|
+
disabled,
|
|
129
|
+
appearance
|
|
130
|
+
});
|
|
131
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
132
|
+
style: styles.container,
|
|
133
|
+
children: [Icon && /*#__PURE__*/_jsx(Icon, {
|
|
134
|
+
size: 24,
|
|
135
|
+
color: resolveContentColor(disabled, appearance)
|
|
136
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
137
|
+
style: styles.label,
|
|
138
|
+
numberOfLines: 1,
|
|
139
|
+
children: label
|
|
140
|
+
})]
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=MenuList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useDisabledContext","StyleSheet","useStyleSheet","Box","Pressable","Text","jsx","_jsx","jsxs","_jsxs","resolveContentColor","disabled","appearance","useItemStyles","pressed","t","container","flatten","flexDirection","alignItems","paddingVertical","spacings","s12","paddingHorizontal","s8","gap","borderRadius","sm","backgroundColor","colors","bg","baseTransparent","baseTransparentPressed","label","typographies","body2SemiBold","flex","color","text","MenuList","children","lx","style","ref","props","MenuListItem","icon","Icon","disabledProp","onPress","accessibilityState","consumerName","mergeWith","accessibilityRole","MenuListItemInner","styles","size","numberOfLines"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MenuList/MenuList.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,aAAa,QAAQ,6BAAoB;AAClD,SAASC,GAAG,EAAEC,SAAS,EAAEC,IAAI,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOxD,MAAMC,mBAAmB,GAAGA,CAC1BC,QAAiB,EACjBC,UAAkC,KACO;EACzC,IAAID,QAAQ,EAAE;IACZ,OAAO,UAAU;EACnB;EACA,IAAIC,UAAU,KAAK,KAAK,EAAE;IACxB,OAAO,OAAO;EAChB;EACA,OAAO,MAAM;AACf,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAC;EACrBC,O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,GAC1BO,IAAI,iBACHxC,IAAA,CAACwC,IAAI;MAACS,IAAI,EAAE,EAAG;MAACnB,KAAK,EAAE3B,mBAAmB,CAACC,QAAQ,EAAEC,UAAU;IAAE,CAAE,CACpE,eACDL,IAAA,CAACF,IAAI;MAACqC,KAAK,EAAEa,MAAM,CAACtB,KAAM;MAACwB,aAAa,EAAE,CAAE;MAAAjB,QAAA,EACzCP;IAAK,CACF,CAAC;EAAA,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls, Source } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as MenuListStories from './MenuList.stories';
|
|
3
|
+
import {
|
|
4
|
+
CustomTabs,
|
|
5
|
+
Tab,
|
|
6
|
+
SetupNote,
|
|
7
|
+
} from '../../../../../.storybook/components';
|
|
8
|
+
|
|
9
|
+
<Meta title='Core/MenuList' of={MenuListStories} />
|
|
10
|
+
|
|
11
|
+
# MenuList
|
|
12
|
+
|
|
13
|
+
<CustomTabs>
|
|
14
|
+
<Tab label='Overview'>
|
|
15
|
+
|
|
16
|
+
## Introduction
|
|
17
|
+
|
|
18
|
+
`MenuList` is a container for a set of tappable actions. Each `MenuListItem` displays a label, an optional leading icon, and supports `base` and `red` appearances.
|
|
19
|
+
|
|
20
|
+
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=7897-7037&m=dev).
|
|
21
|
+
|
|
22
|
+
## Anatomy
|
|
23
|
+
|
|
24
|
+
<Canvas of={MenuListStories.Base} />
|
|
25
|
+
<Controls of={MenuListStories.ItemShowcase} />
|
|
26
|
+
|
|
27
|
+
## Properties
|
|
28
|
+
|
|
29
|
+
### Appearance
|
|
30
|
+
|
|
31
|
+
`MenuListItem` supports two appearances: `base` (default) for standard actions and `red` for irreversible or dangerous operations such as deleting or unlinking. The red appearance renders the label and icon in the error colour.
|
|
32
|
+
|
|
33
|
+
Place `red` items **last** in the list. Both the Apple HIG and Material guidelines put destructive actions at the bottom, away from the items a user reaches for by habit. `MenuList` does not enforce the order.
|
|
34
|
+
|
|
35
|
+
<Canvas of={MenuListStories.AppearanceShowcase} />
|
|
36
|
+
|
|
37
|
+
### Disabled
|
|
38
|
+
|
|
39
|
+
Set `disabled` on individual `MenuListItem`s to prevent interaction. The label and icon are rendered in the disabled colour and the press handler is suppressed.
|
|
40
|
+
|
|
41
|
+
<Canvas of={MenuListStories.DisabledShowcase} />
|
|
42
|
+
|
|
43
|
+
## Accessibility
|
|
44
|
+
|
|
45
|
+
Each `MenuListItem` has `accessibilityRole='button'` and sets `accessibilityState={{ disabled }}` to reflect its interaction state to assistive technologies.
|
|
46
|
+
|
|
47
|
+
</Tab>
|
|
48
|
+
|
|
49
|
+
<Tab label='Implementation'>
|
|
50
|
+
|
|
51
|
+
<SetupNote />
|
|
52
|
+
|
|
53
|
+
### Basic Usage
|
|
54
|
+
|
|
55
|
+
<Source of={MenuListStories.Base} />
|
|
56
|
+
|
|
57
|
+
### Appearances
|
|
58
|
+
|
|
59
|
+
<Source of={MenuListStories.AppearanceShowcase} />
|
|
60
|
+
|
|
61
|
+
### Disabled Items
|
|
62
|
+
|
|
63
|
+
<Source of={MenuListStories.DisabledShowcase} />
|
|
64
|
+
|
|
65
|
+
</Tab>
|
|
66
|
+
</CustomTabs>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Box } from "../../primitives/index.js";
|
|
4
|
+
import { Settings, Trash, Unlink } from "../../symbols/index.js";
|
|
5
|
+
import { MenuList, MenuListItem } from "./MenuList.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const iconMap = {
|
|
8
|
+
None: undefined,
|
|
9
|
+
Settings,
|
|
10
|
+
Unlink,
|
|
11
|
+
Trash
|
|
12
|
+
};
|
|
13
|
+
const meta = {
|
|
14
|
+
id: 'rnative-menulist',
|
|
15
|
+
title: 'Core/MenuList',
|
|
16
|
+
component: MenuList,
|
|
17
|
+
subcomponents: {
|
|
18
|
+
MenuListItem
|
|
19
|
+
},
|
|
20
|
+
parameters: {
|
|
21
|
+
docs: {
|
|
22
|
+
source: {
|
|
23
|
+
language: 'tsx',
|
|
24
|
+
format: true,
|
|
25
|
+
type: 'dynamic'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
export const Base = {
|
|
32
|
+
parameters: {
|
|
33
|
+
layout: 'centered',
|
|
34
|
+
backgrounds: {
|
|
35
|
+
default: 'light'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
render: () => /*#__PURE__*/_jsx(Box, {
|
|
39
|
+
lx: {
|
|
40
|
+
width: 's320'
|
|
41
|
+
},
|
|
42
|
+
children: /*#__PURE__*/_jsx(MenuList, {
|
|
43
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
44
|
+
label: "Unlink device",
|
|
45
|
+
appearance: "base",
|
|
46
|
+
icon: Unlink
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
};
|
|
51
|
+
export const ItemShowcase = {
|
|
52
|
+
parameters: {
|
|
53
|
+
layout: 'centered',
|
|
54
|
+
backgrounds: {
|
|
55
|
+
default: 'light'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
argTypes: {
|
|
59
|
+
icon: {
|
|
60
|
+
options: Object.keys(iconMap),
|
|
61
|
+
mapping: iconMap,
|
|
62
|
+
control: {
|
|
63
|
+
type: 'select'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
onPress: {
|
|
67
|
+
action: 'pressed'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
args: {
|
|
71
|
+
label: 'Unlink device',
|
|
72
|
+
appearance: 'base',
|
|
73
|
+
disabled: false,
|
|
74
|
+
icon: Unlink
|
|
75
|
+
},
|
|
76
|
+
render: args => /*#__PURE__*/_jsx(Box, {
|
|
77
|
+
lx: {
|
|
78
|
+
width: 's320'
|
|
79
|
+
},
|
|
80
|
+
children: /*#__PURE__*/_jsx(MenuList, {
|
|
81
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
82
|
+
...args
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
export const AppearanceShowcase = {
|
|
88
|
+
parameters: {
|
|
89
|
+
layout: 'centered',
|
|
90
|
+
backgrounds: {
|
|
91
|
+
default: 'light'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
render: () => /*#__PURE__*/_jsx(Box, {
|
|
95
|
+
lx: {
|
|
96
|
+
width: 's320'
|
|
97
|
+
},
|
|
98
|
+
children: /*#__PURE__*/_jsxs(MenuList, {
|
|
99
|
+
children: [/*#__PURE__*/_jsx(MenuListItem, {
|
|
100
|
+
label: "Unlink device",
|
|
101
|
+
icon: Unlink,
|
|
102
|
+
onPress: () => {}
|
|
103
|
+
}), /*#__PURE__*/_jsx(MenuListItem, {
|
|
104
|
+
label: "Remove device",
|
|
105
|
+
icon: Trash,
|
|
106
|
+
appearance: "red",
|
|
107
|
+
onPress: () => {}
|
|
108
|
+
})]
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
};
|
|
112
|
+
export const DisabledShowcase = {
|
|
113
|
+
parameters: {
|
|
114
|
+
layout: 'centered',
|
|
115
|
+
backgrounds: {
|
|
116
|
+
default: 'light'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
render: () => /*#__PURE__*/_jsx(Box, {
|
|
120
|
+
lx: {
|
|
121
|
+
width: 's320'
|
|
122
|
+
},
|
|
123
|
+
children: /*#__PURE__*/_jsxs(MenuList, {
|
|
124
|
+
children: [/*#__PURE__*/_jsx(MenuListItem, {
|
|
125
|
+
label: "Unlink device",
|
|
126
|
+
icon: Unlink,
|
|
127
|
+
disabled: true,
|
|
128
|
+
onPress: () => {}
|
|
129
|
+
}), /*#__PURE__*/_jsx(MenuListItem, {
|
|
130
|
+
label: "Remove device",
|
|
131
|
+
icon: Trash,
|
|
132
|
+
appearance: "red",
|
|
133
|
+
disabled: true,
|
|
134
|
+
onPress: () => {}
|
|
135
|
+
})]
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=MenuList.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Box","Settings","Trash","Unlink","MenuList","MenuListItem","jsx","_jsx","jsxs","_jsxs","iconMap","None","undefined","meta","id","title","component","subcomponents","parameters","docs","source","language","format","type","Base","layout","backgrounds","default","render","lx","width","children","label","appearance","icon","ItemShowcase","argTypes","options","Object","keys","mapping","control","onPress","action","args","disabled","AppearanceShowcase","DisabledShowcase"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MenuList/MenuList.stories.tsx"],"mappings":";;AACA,SAASA,GAAG,QAAQ,2BAAkB;AACtC,SAASC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,QAAQ,wBAAe;AACvD,SAASC,QAAQ,EAAEC,YAAY,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpD,MAAMC,OAAO,GAAG;EACdC,IAAI,EAAEC,SAAS;EACfX,QAAQ;EACRE,MAAM;EACND;AACF,CAAU;AAEV,MAAMW,IAAI,GAAG;EACXC,EAAE,EAAE,kBAAkB;EACtBC,KAAK,EAAE,eAAe;EACtBC,SAAS,EAAEZ,QAAQ;EACnBa,aAAa,EAAE;IAAEZ;EAAa,CAAC;EAC/Ba,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,MAAM,EAAE;QAAEC,QAAQ,EAAE,KAAK;QAAEC,MAAM,EAAE,IAAI;QAAEC,IAAI,EAAE;MAAU;IAC3D;EACF;AACF,CAAiC;AAEjC,eAAeV,IAAI;AAGnB,OAAO,MAAMW,I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1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { describe, it, expect, jest } from '@jest/globals';
|
|
4
|
+
import { ledgerLiveThemes } from '@ledgerhq/lumen-design-core';
|
|
5
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
6
|
+
import { View } from 'react-native';
|
|
7
|
+
import { ThemeProvider } from "../ThemeProvider/ThemeProvider.js";
|
|
8
|
+
import { MenuList, MenuListItem } from "./MenuList.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const TestIcon = ({
|
|
11
|
+
size,
|
|
12
|
+
color
|
|
13
|
+
}) => /*#__PURE__*/_jsx(View, {
|
|
14
|
+
testID: "icon",
|
|
15
|
+
style: {
|
|
16
|
+
width: size,
|
|
17
|
+
height: size
|
|
18
|
+
},
|
|
19
|
+
accessibilityLabel: String(color)
|
|
20
|
+
});
|
|
21
|
+
const TestWrapper = ({
|
|
22
|
+
children
|
|
23
|
+
}) => /*#__PURE__*/_jsx(ThemeProvider, {
|
|
24
|
+
themes: ledgerLiveThemes,
|
|
25
|
+
colorScheme: "dark",
|
|
26
|
+
locale: "en",
|
|
27
|
+
children: children
|
|
28
|
+
});
|
|
29
|
+
describe('MenuList', () => {
|
|
30
|
+
it('renders children', () => {
|
|
31
|
+
const {
|
|
32
|
+
getByText
|
|
33
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
34
|
+
children: /*#__PURE__*/_jsx(MenuList, {
|
|
35
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
36
|
+
label: "Item A",
|
|
37
|
+
onPress: jest.fn()
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
}));
|
|
41
|
+
expect(getByText('Item A')).toBeTruthy();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
describe('MenuListItem', () => {
|
|
45
|
+
it('renders the label', () => {
|
|
46
|
+
const {
|
|
47
|
+
getByText
|
|
48
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
49
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
50
|
+
label: "Settings",
|
|
51
|
+
onPress: jest.fn()
|
|
52
|
+
})
|
|
53
|
+
}));
|
|
54
|
+
expect(getByText('Settings')).toBeTruthy();
|
|
55
|
+
});
|
|
56
|
+
it('calls onPress when pressed', () => {
|
|
57
|
+
const onPress = jest.fn();
|
|
58
|
+
const {
|
|
59
|
+
getByRole
|
|
60
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
61
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
62
|
+
label: "Action",
|
|
63
|
+
onPress: onPress
|
|
64
|
+
})
|
|
65
|
+
}));
|
|
66
|
+
fireEvent.press(getByRole('button'));
|
|
67
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
68
|
+
});
|
|
69
|
+
it('does not call onPress when disabled', () => {
|
|
70
|
+
const onPress = jest.fn();
|
|
71
|
+
const {
|
|
72
|
+
getByRole
|
|
73
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
74
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
75
|
+
label: "Disabled action",
|
|
76
|
+
onPress: onPress,
|
|
77
|
+
disabled: true
|
|
78
|
+
})
|
|
79
|
+
}));
|
|
80
|
+
fireEvent.press(getByRole('button'));
|
|
81
|
+
expect(onPress).not.toHaveBeenCalled();
|
|
82
|
+
});
|
|
83
|
+
it('sets accessibilityState disabled when disabled', () => {
|
|
84
|
+
const {
|
|
85
|
+
getByRole
|
|
86
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
87
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
88
|
+
label: "Disabled",
|
|
89
|
+
onPress: jest.fn(),
|
|
90
|
+
disabled: true
|
|
91
|
+
})
|
|
92
|
+
}));
|
|
93
|
+
expect(getByRole('button').props.accessibilityState?.disabled).toBe(true);
|
|
94
|
+
});
|
|
95
|
+
it('renders with red appearance', () => {
|
|
96
|
+
const {
|
|
97
|
+
getByText
|
|
98
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
99
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
100
|
+
label: "Delete",
|
|
101
|
+
appearance: "red",
|
|
102
|
+
onPress: jest.fn()
|
|
103
|
+
})
|
|
104
|
+
}));
|
|
105
|
+
expect(getByText('Delete').props.style.color).toBe(ledgerLiveThemes.dark.colors.text.error);
|
|
106
|
+
});
|
|
107
|
+
it('renders the icon with base color by default', () => {
|
|
108
|
+
const {
|
|
109
|
+
getByTestId
|
|
110
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
111
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
112
|
+
label: "With Icon",
|
|
113
|
+
icon: TestIcon,
|
|
114
|
+
onPress: jest.fn()
|
|
115
|
+
})
|
|
116
|
+
}));
|
|
117
|
+
expect(getByTestId('icon').props.accessibilityLabel).toBe('base');
|
|
118
|
+
});
|
|
119
|
+
it('renders icon with disabled color when disabled', () => {
|
|
120
|
+
const {
|
|
121
|
+
getByTestId
|
|
122
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
123
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
124
|
+
label: "With Icon",
|
|
125
|
+
icon: TestIcon,
|
|
126
|
+
onPress: jest.fn(),
|
|
127
|
+
disabled: true
|
|
128
|
+
})
|
|
129
|
+
}));
|
|
130
|
+
expect(getByTestId('icon').props.accessibilityLabel).toBe('disabled');
|
|
131
|
+
});
|
|
132
|
+
it('renders icon with error color when appearance is red', () => {
|
|
133
|
+
const {
|
|
134
|
+
getByTestId
|
|
135
|
+
} = render(/*#__PURE__*/_jsx(TestWrapper, {
|
|
136
|
+
children: /*#__PURE__*/_jsx(MenuListItem, {
|
|
137
|
+
label: "Delete",
|
|
138
|
+
icon: TestIcon,
|
|
139
|
+
appearance: "red",
|
|
140
|
+
onPress: jest.fn()
|
|
141
|
+
})
|
|
142
|
+
}));
|
|
143
|
+
expect(getByTestId('icon').props.accessibilityLabel).toBe('error');
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=MenuList.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["describe","it","expect","jest","ledgerLiveThemes","render","fireEvent","View","ThemeProvider","MenuList","MenuListItem","jsx","_jsx","TestIcon","size","color","testID","style","width","height","accessibilityLabel","String","TestWrapper","children","themes","colorScheme","locale","getByText","label","onPress","fn","toBeTruthy","getByRole","press","toHaveBeenCalledTimes","disabled","not","toHaveBeenCalled","props","accessibilityState","toBe","appearance","dark","colors","text","error","getByTestId","icon"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/MenuList/MenuList.test.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,EAAE,EAAEC,MAAM,EAAEC,IAAI,QAAQ,eAAe;AAC1D,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,MAAM,EAAEC,SAAS,QAAQ,+BAA+B;AACjE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,QAAQ,mCAAgC;AAC9D,SAASC,QAAQ,EAAEC,YAAY,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpD,MAAMC,QAAuB,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAAM,CAAC,kBAC9CH,IAAA,CAACL,IAAI;EACHS,MAAM,EAAC,MAAM;EACbC,KAAK,EAAE;IAAEC,KAAK,EAAEJ,IAAI;IAAEK,MAAM,EAAEL;EAAK,CAAE;EACrCM,kBAAkB,EAAEC,MAAM,CAACN,KAAK;AAAE,CACnC,CACF;AAED,MAAMO,WAAW,GAAGA,CAAC;EAAEC;AAAwC,CAAC,kBAC9DX,IAAA,CAACJ,aAAa;EAACgB,MAAM,EAAEpB,gBAAiB;EAACqB,WAAW,EAAC,MAAM;EAACC,MAAM,EAAC,IAAI;EAAA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