@ledgerhq/lumen-ui-rnative 0.1.3 → 0.1.5
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/package.json +1 -1
- package/dist/src/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/src/lib/Components/AmountDisplay/AmountDisplay.js +5 -1
- package/dist/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/src/lib/Components/TabBar/TabBar.js +9 -4
- package/jest.config.ts +0 -1
- package/package.json +1 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.tsx +8 -1
- package/src/lib/Components/TabBar/TabBar.tsx +27 -12
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx +1 -1
- package/tsconfig.json +3 -16
- package/tsconfig.lib.json +5 -0
- package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts +0 -9
- package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts.map +0 -1
- package/dist/src/lib/Animations/Pulse/Pulse.stories.js +0 -38
- package/dist/src/lib/Animations/Spin/Spin.stories.d.ts +0 -9
- package/dist/src/lib/Animations/Spin/Spin.stories.d.ts.map +0 -1
- package/dist/src/lib/Animations/Spin/Spin.stories.js +0 -27
- package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts +0 -13
- package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/AddressInput/AddressInput.stories.js +0 -128
- package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts +0 -10
- package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.js +0 -127
- package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts +0 -16
- package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/AmountInput/AmountInput.stories.js +0 -186
- package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts +0 -22
- package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Avatar/Avatar.stories.js +0 -72
- package/dist/src/lib/Components/Banner/Banner.stories.d.ts +0 -16
- package/dist/src/lib/Components/Banner/Banner.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Banner/Banner.stories.js +0 -268
- package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts +0 -87
- package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.js +0 -266
- package/dist/src/lib/Components/Button/Button.stories.d.ts +0 -16
- package/dist/src/lib/Components/Button/Button.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Button/Button.stories.js +0 -143
- package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts +0 -16
- package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/CardButton/CardButton.stories.js +0 -208
- package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts +0 -14
- package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Checkbox/Checkbox.stories.js +0 -72
- package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts +0 -11
- package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.js +0 -91
- package/dist/src/lib/Components/Divider/Divider.stories.d.ts +0 -9
- package/dist/src/lib/Components/Divider/Divider.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Divider/Divider.stories.js +0 -51
- package/dist/src/lib/Components/Icon/Icon.stories.d.ts +0 -15
- package/dist/src/lib/Components/Icon/Icon.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Icon/Icon.stories.js +0 -137
- package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts +0 -10
- package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/IconButton/IconButton.stories.js +0 -74
- package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts +0 -11
- package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.js +0 -90
- package/dist/src/lib/Components/Link/Link.stories.d.ts +0 -17
- package/dist/src/lib/Components/Link/Link.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Link/Link.stories.js +0 -275
- package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts +0 -10
- package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/ListItem/ListItem.stories.js +0 -106
- package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts +0 -10
- package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/NavBar/NavBar.stories.js +0 -72
- package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts +0 -27
- package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.js +0 -42
- package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts +0 -12
- package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/SearchInput/SearchInput.stories.js +0 -98
- package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts +0 -58
- package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.js +0 -61
- package/dist/src/lib/Components/Select/Select.stories.d.ts +0 -11
- package/dist/src/lib/Components/Select/Select.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Select/Select.stories.js +0 -83
- package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts +0 -11
- package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Skeleton/Skeleton.stories.js +0 -49
- package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts +0 -9
- package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Spinner/Spinner.stories.js +0 -50
- package/dist/src/lib/Components/Spot/Spot.stories.d.ts +0 -12
- package/dist/src/lib/Components/Spot/Spot.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Spot/Spot.stories.js +0 -156
- package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts +0 -9
- package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Stepper/Stepper.stories.js +0 -35
- package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts +0 -10
- package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Subheader/Subheader.stories.js +0 -34
- package/dist/src/lib/Components/Switch/Switch.stories.d.ts +0 -14
- package/dist/src/lib/Components/Switch/Switch.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Switch/Switch.stories.js +0 -65
- package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts +0 -50
- package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/TabBar/TabBar.stories.js +0 -60
- package/dist/src/lib/Components/Tag/Tag.stories.d.ts +0 -10
- package/dist/src/lib/Components/Tag/Tag.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Tag/Tag.stories.js +0 -45
- package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts +0 -14
- package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/TextInput/TextInput.stories.js +0 -128
- package/dist/src/lib/Components/Tile/Tile.stories.d.ts +0 -14
- package/dist/src/lib/Components/Tile/Tile.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Tile/Tile.stories.js +0 -117
- package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts +0 -12
- package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/TileButton/TileButton.stories.js +0 -63
- package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts +0 -10
- package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Tooltip/Tooltip.stories.js +0 -50
- package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts +0 -7
- package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Utility/Box/Box.stories.js +0 -42
- package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts +0 -11
- package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js +0 -105
- package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts +0 -10
- package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.js +0 -101
- package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts +0 -7
- package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.js +0 -47
- package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts +0 -7
- package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts.map +0 -1
- package/dist/src/lib/Components/Utility/Text/Text.stories.js +0 -33
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
import { AmountInput } from './AmountInput';
|
|
5
|
-
const meta = {
|
|
6
|
-
component: AmountInput,
|
|
7
|
-
title: 'Input/AmountInput',
|
|
8
|
-
parameters: {
|
|
9
|
-
docs: {
|
|
10
|
-
source: {
|
|
11
|
-
language: 'tsx',
|
|
12
|
-
format: true,
|
|
13
|
-
type: 'code',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
argTypes: {
|
|
18
|
-
currencyText: {
|
|
19
|
-
control: 'text',
|
|
20
|
-
description: 'Currency text to display (e.g. USD, EUR, $)',
|
|
21
|
-
},
|
|
22
|
-
currencyPosition: {
|
|
23
|
-
control: 'radio',
|
|
24
|
-
options: ['left', 'right'],
|
|
25
|
-
description: 'Position of the currency text',
|
|
26
|
-
},
|
|
27
|
-
allowDecimals: {
|
|
28
|
-
control: 'boolean',
|
|
29
|
-
description: 'Whether to allow decimal values',
|
|
30
|
-
},
|
|
31
|
-
thousandsSeparator: {
|
|
32
|
-
control: 'boolean',
|
|
33
|
-
description: 'Whether to display thousands separator',
|
|
34
|
-
},
|
|
35
|
-
maxIntegerLength: {
|
|
36
|
-
control: 'number',
|
|
37
|
-
description: 'Maximum digits for integer part',
|
|
38
|
-
},
|
|
39
|
-
maxDecimalLength: {
|
|
40
|
-
control: 'number',
|
|
41
|
-
description: 'Maximum digits for decimal part',
|
|
42
|
-
},
|
|
43
|
-
isInvalid: {
|
|
44
|
-
control: 'boolean',
|
|
45
|
-
description: 'Whether the input is in error state',
|
|
46
|
-
},
|
|
47
|
-
editable: {
|
|
48
|
-
control: 'boolean',
|
|
49
|
-
description: 'Whether the input is editable',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
export default meta;
|
|
54
|
-
const AmountInputStory = (args) => {
|
|
55
|
-
const [value, setValue] = useState(args.value?.toString() ?? '');
|
|
56
|
-
return (_jsx(View, { style: {
|
|
57
|
-
flex: 1,
|
|
58
|
-
minHeight: 96,
|
|
59
|
-
alignItems: 'center',
|
|
60
|
-
justifyContent: 'center',
|
|
61
|
-
padding: 24,
|
|
62
|
-
}, children: _jsx(View, { style: { width: '100%', maxWidth: 320 }, children: _jsx(AmountInput, { ...args, value: value, onChangeText: setValue }) }) }));
|
|
63
|
-
};
|
|
64
|
-
export const Base = {
|
|
65
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
66
|
-
args: {
|
|
67
|
-
currencyText: 'USD',
|
|
68
|
-
currencyPosition: 'left',
|
|
69
|
-
allowDecimals: true,
|
|
70
|
-
thousandsSeparator: true,
|
|
71
|
-
maxIntegerLength: 9,
|
|
72
|
-
maxDecimalLength: 9,
|
|
73
|
-
isInvalid: false,
|
|
74
|
-
editable: true,
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
export const WithValue = {
|
|
78
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
79
|
-
args: {
|
|
80
|
-
value: '1234.56',
|
|
81
|
-
currencyText: 'USD',
|
|
82
|
-
currencyPosition: 'left',
|
|
83
|
-
allowDecimals: true,
|
|
84
|
-
thousandsSeparator: true,
|
|
85
|
-
isInvalid: false,
|
|
86
|
-
editable: true,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
export const CurrencyPositionLeft = {
|
|
90
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
91
|
-
args: {
|
|
92
|
-
value: '1000',
|
|
93
|
-
currencyText: '$',
|
|
94
|
-
currencyPosition: 'left',
|
|
95
|
-
allowDecimals: true,
|
|
96
|
-
thousandsSeparator: true,
|
|
97
|
-
isInvalid: false,
|
|
98
|
-
editable: true,
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
export const CurrencyPositionRight = {
|
|
102
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
103
|
-
args: {
|
|
104
|
-
value: '1000',
|
|
105
|
-
currencyText: 'ETH',
|
|
106
|
-
currencyPosition: 'right',
|
|
107
|
-
allowDecimals: true,
|
|
108
|
-
thousandsSeparator: true,
|
|
109
|
-
isInvalid: false,
|
|
110
|
-
editable: true,
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
export const IntegerOnly = {
|
|
114
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
115
|
-
args: {
|
|
116
|
-
value: '1234',
|
|
117
|
-
currencyText: 'items',
|
|
118
|
-
currencyPosition: 'right',
|
|
119
|
-
allowDecimals: false,
|
|
120
|
-
thousandsSeparator: true,
|
|
121
|
-
isInvalid: false,
|
|
122
|
-
editable: true,
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
export const WithThousandsSeparator = {
|
|
126
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
127
|
-
args: {
|
|
128
|
-
value: '1000000',
|
|
129
|
-
currencyText: 'USD',
|
|
130
|
-
currencyPosition: 'left',
|
|
131
|
-
allowDecimals: true,
|
|
132
|
-
thousandsSeparator: true,
|
|
133
|
-
isInvalid: false,
|
|
134
|
-
editable: true,
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
export const WithoutThousandsSeparator = {
|
|
138
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
139
|
-
args: {
|
|
140
|
-
value: '1000000',
|
|
141
|
-
currencyText: 'USD',
|
|
142
|
-
currencyPosition: 'left',
|
|
143
|
-
allowDecimals: true,
|
|
144
|
-
thousandsSeparator: false,
|
|
145
|
-
isInvalid: false,
|
|
146
|
-
editable: true,
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
export const ErrorState = {
|
|
150
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
151
|
-
args: {
|
|
152
|
-
value: '1234.56',
|
|
153
|
-
currencyText: 'USD',
|
|
154
|
-
currencyPosition: 'left',
|
|
155
|
-
allowDecimals: true,
|
|
156
|
-
thousandsSeparator: true,
|
|
157
|
-
isInvalid: true,
|
|
158
|
-
editable: true,
|
|
159
|
-
},
|
|
160
|
-
};
|
|
161
|
-
export const DisabledAmountInput = {
|
|
162
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
163
|
-
args: {
|
|
164
|
-
value: '1234.56',
|
|
165
|
-
currencyText: 'USD',
|
|
166
|
-
currencyPosition: 'left',
|
|
167
|
-
allowDecimals: true,
|
|
168
|
-
thousandsSeparator: true,
|
|
169
|
-
isInvalid: false,
|
|
170
|
-
editable: false,
|
|
171
|
-
},
|
|
172
|
-
};
|
|
173
|
-
export const CustomLengthLimits = {
|
|
174
|
-
render: (args) => _jsx(AmountInputStory, { ...args }),
|
|
175
|
-
args: {
|
|
176
|
-
value: '123',
|
|
177
|
-
currencyText: '$',
|
|
178
|
-
currencyPosition: 'left',
|
|
179
|
-
allowDecimals: true,
|
|
180
|
-
thousandsSeparator: true,
|
|
181
|
-
maxIntegerLength: 6,
|
|
182
|
-
maxDecimalLength: 2,
|
|
183
|
-
isInvalid: false,
|
|
184
|
-
editable: true,
|
|
185
|
-
},
|
|
186
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-native-web-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
component: ({ lx, style, src, alt, size, showNotification, ref, ...props }: import("./types").AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
title: string;
|
|
5
|
-
parameters: {
|
|
6
|
-
docs: {
|
|
7
|
-
source: {
|
|
8
|
-
language: string;
|
|
9
|
-
format: boolean;
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof meta>;
|
|
17
|
-
export declare const Base: Story;
|
|
18
|
-
export declare const SizeShowcase: Story;
|
|
19
|
-
export declare const FallbackShowcase: Story;
|
|
20
|
-
export declare const NotificationShowcase: Story;
|
|
21
|
-
export declare const InteractiveShowcase: Story;
|
|
22
|
-
//# sourceMappingURL=Avatar.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAMlE,QAAA,MAAM,IAAI;;;;;;;;;;;;CAYqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAKnC,eAAO,MAAM,IAAI,EAAE,KAelB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA6B1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAiBlC,CAAC;AAKF,eAAO,MAAM,mBAAmB,EAAE,KAajC,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { View, Text, Pressable, Linking } from 'react-native';
|
|
3
|
-
import { Box } from '../Utility';
|
|
4
|
-
import { Avatar } from './Avatar';
|
|
5
|
-
const meta = {
|
|
6
|
-
component: Avatar,
|
|
7
|
-
title: 'Communication/Avatar',
|
|
8
|
-
parameters: {
|
|
9
|
-
docs: {
|
|
10
|
-
source: {
|
|
11
|
-
language: 'tsx',
|
|
12
|
-
format: true,
|
|
13
|
-
type: 'code',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
const exampleSrc = 'https://plus.unsplash.com/premium_photo-1689551670902-19b441a6afde?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
|
|
20
|
-
export const Base = {
|
|
21
|
-
args: {
|
|
22
|
-
src: exampleSrc,
|
|
23
|
-
alt: 'avatar',
|
|
24
|
-
size: 'md',
|
|
25
|
-
showNotification: false,
|
|
26
|
-
},
|
|
27
|
-
render: (args) => _jsx(Avatar, { ...args }),
|
|
28
|
-
parameters: {
|
|
29
|
-
docs: {
|
|
30
|
-
source: {
|
|
31
|
-
code: `<Avatar src="https://example.com" size="md" alt="avatar" showNotification={false} />`,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export const SizeShowcase = {
|
|
37
|
-
render: () => (_jsxs(Box, { lx: {
|
|
38
|
-
alignItems: 'stretch',
|
|
39
|
-
flexDirection: 'row',
|
|
40
|
-
gap: 's16',
|
|
41
|
-
}, children: [_jsxs(View, { style: { alignItems: 'center', justifyContent: 'flex-end' }, children: [_jsx(Avatar, { src: exampleSrc, alt: 'avatar', size: 'sm', showNotification: false }), _jsx(Text, { style: { marginTop: 4 }, children: "sm" })] }), _jsxs(View, { style: { alignItems: 'center', justifyContent: 'flex-end' }, children: [_jsx(Avatar, { src: exampleSrc, alt: 'avatar', size: 'md', showNotification: false }), _jsx(Text, { style: { marginTop: 4 }, children: "md" })] })] })),
|
|
42
|
-
};
|
|
43
|
-
export const FallbackShowcase = {
|
|
44
|
-
args: {
|
|
45
|
-
src: 'https://brokenLink.random',
|
|
46
|
-
size: 'md',
|
|
47
|
-
alt: 'Fallback example',
|
|
48
|
-
showNotification: false,
|
|
49
|
-
},
|
|
50
|
-
render: (args) => _jsx(Avatar, { ...args }),
|
|
51
|
-
parameters: {
|
|
52
|
-
docs: {
|
|
53
|
-
source: {
|
|
54
|
-
code: `<Avatar src="https://brokenLink.random" size="md" alt="Fallback example" showNotification={false} />`,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
export const NotificationShowcase = {
|
|
60
|
-
render: () => (_jsxs(Box, { lx: {
|
|
61
|
-
flexDirection: 'row',
|
|
62
|
-
gap: 's16',
|
|
63
|
-
}, children: [_jsx(Avatar, { src: exampleSrc, alt: 'avatar', size: 'md', showNotification: false }), _jsx(Avatar, { src: exampleSrc, alt: 'avatar', size: 'md', showNotification: true })] })),
|
|
64
|
-
};
|
|
65
|
-
const onPressRedirect = () => Linking.openURL('https://shop.ledger.com/pages/ledger-nano-gen5');
|
|
66
|
-
export const InteractiveShowcase = {
|
|
67
|
-
render: () => (_jsx(Pressable, { onPress: onPressRedirect, style: ({ pressed }) => ({
|
|
68
|
-
borderRadius: 9999,
|
|
69
|
-
opacity: pressed ? 0.7 : 1,
|
|
70
|
-
backgroundColor: pressed ? 'rgba(0, 0, 0, 0.05)' : 'transparent',
|
|
71
|
-
}), children: _jsx(Avatar, { src: exampleSrc, size: 'md', showNotification: true }) })),
|
|
72
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
2
|
-
import { Banner } from './Banner';
|
|
3
|
-
declare const meta: Meta<typeof Banner>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Banner>;
|
|
6
|
-
export declare const Base: Story;
|
|
7
|
-
export declare const WithDescription: Story;
|
|
8
|
-
export declare const WithActions: Story;
|
|
9
|
-
export declare const WithFullFeatures: Story;
|
|
10
|
-
export declare const AppearanceShowcase: Story;
|
|
11
|
-
export declare const ContentVariations: Story;
|
|
12
|
-
export declare const NaturalWidth: Story;
|
|
13
|
-
export declare const ResponsiveLayout: Story;
|
|
14
|
-
export declare const InteractiveDismiss: Story;
|
|
15
|
-
export declare const InteractiveActions: Story;
|
|
16
|
-
//# sourceMappingURL=Banner.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Banner/Banner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA4E7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,KA8BlB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA0B7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA6CzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAgE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAgChC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAgF/B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAuB1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAkC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAiBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAsDhC,CAAC"}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Button } from '../Button';
|
|
4
|
-
import { Box, Text } from '../Utility';
|
|
5
|
-
import { Banner } from './Banner';
|
|
6
|
-
const meta = {
|
|
7
|
-
component: Banner,
|
|
8
|
-
title: 'Communication/Banner',
|
|
9
|
-
parameters: {
|
|
10
|
-
docs: {
|
|
11
|
-
source: {
|
|
12
|
-
language: 'tsx',
|
|
13
|
-
format: true,
|
|
14
|
-
type: 'code',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
argTypes: {
|
|
19
|
-
appearance: {
|
|
20
|
-
control: 'select',
|
|
21
|
-
options: ['info', 'success', 'warning', 'error'],
|
|
22
|
-
description: 'The visual style appearance of the banner',
|
|
23
|
-
},
|
|
24
|
-
title: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
description: 'The title of the banner',
|
|
27
|
-
},
|
|
28
|
-
description: {
|
|
29
|
-
control: 'text',
|
|
30
|
-
description: 'Optional description text',
|
|
31
|
-
},
|
|
32
|
-
primaryAction: {
|
|
33
|
-
control: 'select',
|
|
34
|
-
description: 'Primary action Button',
|
|
35
|
-
options: ['Button', 'None'],
|
|
36
|
-
mapping: {
|
|
37
|
-
Button: (_jsx(Button, { appearance: 'transparent', size: 'sm', onPress: () => console.log('Primary clicked'), children: "Primary" })),
|
|
38
|
-
None: undefined,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
secondaryAction: {
|
|
42
|
-
control: 'select',
|
|
43
|
-
description: 'Secondary action Button',
|
|
44
|
-
options: ['Button', 'None'],
|
|
45
|
-
mapping: {
|
|
46
|
-
Button: (_jsx(Button, { appearance: 'no-background', size: 'sm', onPress: () => console.log('Secondary clicked'), children: "Secondary" })),
|
|
47
|
-
None: undefined,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
onClose: {
|
|
51
|
-
control: 'select',
|
|
52
|
-
description: 'Close action Button',
|
|
53
|
-
options: ['With Close', 'None'],
|
|
54
|
-
mapping: {
|
|
55
|
-
'With Close': () => {
|
|
56
|
-
console.log('Close clicked');
|
|
57
|
-
},
|
|
58
|
-
None: undefined,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
closeAriaLabel: {
|
|
62
|
-
control: 'text',
|
|
63
|
-
description: 'Close action with onClick and ariaLabel',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
export default meta;
|
|
68
|
-
export const Base = {
|
|
69
|
-
args: {
|
|
70
|
-
appearance: 'info',
|
|
71
|
-
title: 'Information Banner',
|
|
72
|
-
primaryAction: 'None',
|
|
73
|
-
secondaryAction: 'None',
|
|
74
|
-
},
|
|
75
|
-
render: (args) => (
|
|
76
|
-
// maxWidth container for visual presentation - not required for Banner component
|
|
77
|
-
_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args, description: 'This is additional information about the banner.' }) })),
|
|
78
|
-
parameters: {
|
|
79
|
-
docs: {
|
|
80
|
-
source: {
|
|
81
|
-
code: `
|
|
82
|
-
<Banner
|
|
83
|
-
appearance="info"
|
|
84
|
-
title="Information Banner"
|
|
85
|
-
onClose={() => console.log('Closed')}
|
|
86
|
-
description="This is additional information about the banner."
|
|
87
|
-
/>
|
|
88
|
-
`,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
export const WithDescription = {
|
|
94
|
-
args: {
|
|
95
|
-
appearance: 'info',
|
|
96
|
-
title: 'Banner with Description',
|
|
97
|
-
description: 'This is additional information about the banner.',
|
|
98
|
-
},
|
|
99
|
-
render: (args) => (_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args }) })),
|
|
100
|
-
parameters: {
|
|
101
|
-
docs: {
|
|
102
|
-
source: {
|
|
103
|
-
code: `
|
|
104
|
-
<Banner
|
|
105
|
-
appearance="info"
|
|
106
|
-
title="Banner with Description"
|
|
107
|
-
description="This is additional information about the banner."
|
|
108
|
-
onClose={() => console.log('Closed')}
|
|
109
|
-
closeAriaLabel="Close banner"
|
|
110
|
-
/>
|
|
111
|
-
`,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
export const WithActions = {
|
|
117
|
-
args: {
|
|
118
|
-
appearance: 'info',
|
|
119
|
-
title: 'Banner with Actions',
|
|
120
|
-
primaryAction: 'Button',
|
|
121
|
-
secondaryAction: 'Button',
|
|
122
|
-
},
|
|
123
|
-
render: (args) => (_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args }) })),
|
|
124
|
-
parameters: {
|
|
125
|
-
docs: {
|
|
126
|
-
source: {
|
|
127
|
-
code: `
|
|
128
|
-
<Banner
|
|
129
|
-
appearance="info"
|
|
130
|
-
title="Banner with Full Features"
|
|
131
|
-
description="This is additional information about the banner."
|
|
132
|
-
primaryAction={(
|
|
133
|
-
<Button
|
|
134
|
-
appearance="gray"
|
|
135
|
-
size="sm"
|
|
136
|
-
onPress={() => console.log('Primary clicked')}
|
|
137
|
-
>
|
|
138
|
-
Primary
|
|
139
|
-
</Button>
|
|
140
|
-
)}
|
|
141
|
-
secondaryAction={(
|
|
142
|
-
<Button
|
|
143
|
-
appearance="no-background"
|
|
144
|
-
size="sm"
|
|
145
|
-
onPress={() => console.log('Secondary clicked')}
|
|
146
|
-
>
|
|
147
|
-
Secondary
|
|
148
|
-
</Button>
|
|
149
|
-
)}
|
|
150
|
-
onClose={() => console.log('Closed')}
|
|
151
|
-
closeAriaLabel="Close banner"
|
|
152
|
-
/>
|
|
153
|
-
`,
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
export const WithFullFeatures = {
|
|
159
|
-
args: {
|
|
160
|
-
appearance: 'info',
|
|
161
|
-
title: 'Banner with Full Features',
|
|
162
|
-
description: 'This is additional information about the banner.',
|
|
163
|
-
primaryAction: (_jsx(Button, { appearance: 'gray', size: 'sm', onPress: () => console.log('Primary clicked'), children: "Primary" })),
|
|
164
|
-
secondaryAction: (_jsx(Button, { appearance: 'no-background', size: 'sm', onPress: () => console.log('Secondary clicked'), children: "Secondary" })),
|
|
165
|
-
onClose: () => console.log('Closed'),
|
|
166
|
-
closeAriaLabel: 'Close banner',
|
|
167
|
-
},
|
|
168
|
-
render: (args) => (_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args }) })),
|
|
169
|
-
parameters: {
|
|
170
|
-
docs: {
|
|
171
|
-
source: {
|
|
172
|
-
code: `
|
|
173
|
-
<Banner
|
|
174
|
-
appearance="info"
|
|
175
|
-
title="Banner with Full Features"
|
|
176
|
-
description="This is additional information about the banner."
|
|
177
|
-
primaryAction={(
|
|
178
|
-
<Button
|
|
179
|
-
appearance="gray"
|
|
180
|
-
size="sm"
|
|
181
|
-
onPress={() => console.log('Primary clicked')}
|
|
182
|
-
>
|
|
183
|
-
Primary
|
|
184
|
-
</Button>
|
|
185
|
-
)}
|
|
186
|
-
secondaryAction={(
|
|
187
|
-
<Button
|
|
188
|
-
appearance="no-background"
|
|
189
|
-
size="sm"
|
|
190
|
-
onPress={() => console.log('Secondary clicked')}
|
|
191
|
-
>
|
|
192
|
-
Secondary
|
|
193
|
-
</Button>
|
|
194
|
-
)}
|
|
195
|
-
onClose={() => console.log('Closed')}
|
|
196
|
-
closeAriaLabel="Close banner"
|
|
197
|
-
/>
|
|
198
|
-
`,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
};
|
|
203
|
-
export const AppearanceShowcase = {
|
|
204
|
-
render: () => {
|
|
205
|
-
const appearances = [
|
|
206
|
-
{ name: 'Info', appearance: 'info' },
|
|
207
|
-
{ name: 'Success', appearance: 'success' },
|
|
208
|
-
{ name: 'Warning', appearance: 'warning' },
|
|
209
|
-
{ name: 'Error', appearance: 'error' },
|
|
210
|
-
];
|
|
211
|
-
return (
|
|
212
|
-
// maxWidth container for visual presentation - not required for Banner component
|
|
213
|
-
_jsx(Box, { lx: {
|
|
214
|
-
flexDirection: 'column',
|
|
215
|
-
maxWidth: 's400',
|
|
216
|
-
gap: 's16',
|
|
217
|
-
padding: 's8',
|
|
218
|
-
}, children: appearances.map(({ name, appearance }) => (_jsx(Banner, { appearance: appearance, title: `${name} Banner`, description: `${name} Banner Description`, onClose: () => console.log('Closed'), closeAriaLabel: `Close ${name} banner` }, appearance))) }));
|
|
219
|
-
},
|
|
220
|
-
};
|
|
221
|
-
export const ContentVariations = {
|
|
222
|
-
render: () => (_jsxs(Box, { lx: {
|
|
223
|
-
flexDirection: 'column',
|
|
224
|
-
maxWidth: 's400',
|
|
225
|
-
gap: 's16',
|
|
226
|
-
padding: 's8',
|
|
227
|
-
}, children: [_jsx(Banner, { title: 'Title Only' }), _jsx(Banner, { description: 'Description only without title' }), _jsx(Banner, { title: 'With Description', description: 'Additional details here.' }), _jsx(Banner, { title: 'With Primary Action', primaryAction: _jsx(Button, { appearance: 'gray', size: 'sm', onPress: () => console.log('Primary clicked'), children: "Primary" }) }), _jsx(Banner, { title: 'With Close', description: 'Can be dismissed', onClose: () => console.log('Closed'), closeAriaLabel: 'Close banner' }), _jsx(Banner, { title: 'With Actions and Description', description: 'Details', primaryAction: _jsx(Button, { appearance: 'gray', size: 'sm', onPress: () => console.log('Primary clicked'), children: "Primary" }), secondaryAction: _jsx(Button, { appearance: 'no-background', size: 'sm', onPress: () => console.log('Secondary clicked'), children: "Secondary" }) }), _jsx(Banner, { appearance: 'info', title: 'Banner with Full Features', description: 'This is additional information about the banner.', primaryAction: _jsx(Button, { appearance: 'gray', size: 'sm', onPress: () => console.log('Primary clicked'), children: "Primary" }), secondaryAction: _jsx(Button, { appearance: 'no-background', size: 'sm', onPress: () => console.log('Secondary clicked'), children: "Secondary" }), onClose: () => console.log('Closed'), closeAriaLabel: 'Close banner' })] })),
|
|
228
|
-
};
|
|
229
|
-
export const NaturalWidth = {
|
|
230
|
-
render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's16' }, children: [_jsx(Text, { typography: 'body3', lx: { color: 'muted' }, children: "Banner without container constraints - takes full parent width:" }), _jsx(Banner, { title: 'Full Width Banner', description: 'This banner demonstrates natural width behavior - it fills the full width of its parent container.', primaryAction: _jsx(Button, { appearance: 'transparent', size: 'sm', onPress: () => console.log('Action clicked'), children: "Action" }), onClose: () => console.log('Closed'), closeAriaLabel: 'Close full width banner' })] })),
|
|
231
|
-
};
|
|
232
|
-
export const ResponsiveLayout = {
|
|
233
|
-
render: () => (_jsxs(Box, { lx: {
|
|
234
|
-
width: 's400',
|
|
235
|
-
flexDirection: 'column',
|
|
236
|
-
gap: 's16',
|
|
237
|
-
backgroundColor: 'mutedPressed',
|
|
238
|
-
padding: 's16',
|
|
239
|
-
}, children: [_jsx(Text, { typography: 'body4SemiBold', lx: { color: 'muted' }, children: "Container with a fixed width" }), _jsx(Banner, { title: 'Short Title', description: 'Short description', onClose: () => console.log('Closed'), closeAriaLabel: 'Close short banner' }), _jsx(Banner, { title: 'Constrained Width', description: 'Banner width is controlled by a fixed width container', onClose: () => console.log('Closed'), closeAriaLabel: 'Close constrained width banner' }), _jsx(Banner, { title: 'Longer Title That Might Overflow When Container is Smaller', description: 'This is a longer description that demonstrates how the banner handles longer content within its constraints. It should be truncated at 5 lines with an ellipsis, so this line should not be visible.', onClose: () => console.log('Closed'), closeAriaLabel: 'Close overflow banner' })] })),
|
|
240
|
-
};
|
|
241
|
-
export const InteractiveDismiss = {
|
|
242
|
-
render: (args) => {
|
|
243
|
-
const [visible, setVisible] = React.useState(true);
|
|
244
|
-
if (!visible)
|
|
245
|
-
return _jsx(Text, { typography: 'body2', children: "Banner dismissed" });
|
|
246
|
-
return (_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args, title: 'Click close to dismiss', onClose: () => setVisible(false), closeAriaLabel: 'Dismiss interactive banner' }) }));
|
|
247
|
-
},
|
|
248
|
-
};
|
|
249
|
-
export const InteractiveActions = {
|
|
250
|
-
render: (args) => {
|
|
251
|
-
const [state, setState] = React.useState('idle');
|
|
252
|
-
const handleAccept = () => {
|
|
253
|
-
setState('success');
|
|
254
|
-
};
|
|
255
|
-
const handleReject = () => {
|
|
256
|
-
setState('error');
|
|
257
|
-
};
|
|
258
|
-
return (_jsx(Box, { lx: { maxWidth: 's400' }, children: _jsx(Banner, { ...args, appearance: state === 'success'
|
|
259
|
-
? 'success'
|
|
260
|
-
: state === 'error'
|
|
261
|
-
? 'error'
|
|
262
|
-
: 'info', title: state === 'success'
|
|
263
|
-
? 'Accepted!'
|
|
264
|
-
: state === 'error'
|
|
265
|
-
? 'Rejected!'
|
|
266
|
-
: 'Banner with Action', primaryAction: state === 'idle' ? (_jsx(Button, { appearance: 'transparent', size: 'sm', onPress: handleAccept, children: "Accept" })) : undefined, secondaryAction: state === 'idle' ? (_jsx(Button, { appearance: 'no-background', size: 'sm', onPress: handleReject, children: "Reject" })) : undefined, onClose: () => setState('idle'), closeAriaLabel: 'Reset banner state' }) }));
|
|
267
|
-
},
|
|
268
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { BottomSheet } from './BottomSheet';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
component: {
|
|
5
|
-
({ onOpen, onClose, onDismiss, onBack, onAnimate, children, hideCloseButton, enablePanDownToClose, enableDynamicSizing, enableBlurKeyboardOnGesture, enableHandlePanningGesture, maxDynamicContentSize, detached, hideBackdrop, backdropPressBehavior, onBackdropPress, onChange, snapPoints, ref, ...props }: import("./types").BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
subcomponents: {
|
|
9
|
-
BottomSheetHeader: {
|
|
10
|
-
({ lx, style, title, description, appearance, spacing, ...props }: import("./types").BottomSheetHeaderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
title: string;
|
|
15
|
-
parameters: {
|
|
16
|
-
docs: {
|
|
17
|
-
source: {
|
|
18
|
-
language: string;
|
|
19
|
-
format: boolean;
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
story: {
|
|
23
|
-
inline: boolean;
|
|
24
|
-
iframeHeight: number;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
argTypes: {
|
|
29
|
-
snapPoints: {
|
|
30
|
-
control: "select";
|
|
31
|
-
options: (string | undefined)[];
|
|
32
|
-
mapping: {
|
|
33
|
-
undefined: undefined;
|
|
34
|
-
full: string;
|
|
35
|
-
medium: string;
|
|
36
|
-
small: string;
|
|
37
|
-
'[150, 300]': number[];
|
|
38
|
-
'["25%", "50%"]': string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
onBack: {
|
|
42
|
-
control: "select";
|
|
43
|
-
options: string[];
|
|
44
|
-
mapping: {
|
|
45
|
-
'() => {}': () => null;
|
|
46
|
-
undefined: undefined;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
onClose: {
|
|
50
|
-
control: "select";
|
|
51
|
-
options: string[];
|
|
52
|
-
mapping: {
|
|
53
|
-
'() => {}': () => null;
|
|
54
|
-
undefined: undefined;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
onDismiss: {
|
|
58
|
-
control: "select";
|
|
59
|
-
options: string[];
|
|
60
|
-
mapping: {
|
|
61
|
-
'() => {}': () => null;
|
|
62
|
-
undefined: undefined;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
backdropPressBehavior: {
|
|
66
|
-
control: "select";
|
|
67
|
-
options: (string | number)[];
|
|
68
|
-
mapping: {
|
|
69
|
-
none: string;
|
|
70
|
-
close: string;
|
|
71
|
-
collapse: string;
|
|
72
|
-
1: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export default meta;
|
|
78
|
-
type Story = StoryObj<typeof BottomSheet>;
|
|
79
|
-
export declare const Base: Story;
|
|
80
|
-
export declare const TitleExpanded: Story;
|
|
81
|
-
export declare const DynamicSizingWithoutSnapPoints: Story;
|
|
82
|
-
export declare const DynamicSizingWithSnapPoints: Story;
|
|
83
|
-
export declare const PreventClose: Story;
|
|
84
|
-
export declare const ScrollView: Story;
|
|
85
|
-
export declare const VirtualList: Story;
|
|
86
|
-
export declare const VirtualizedList: Story;
|
|
87
|
-
//# sourceMappingURL=BottomSheet.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/BottomSheet/BottomSheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8E0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,IAAI,EAAE,KAmDlB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAiD3B,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAwC5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,KAwCzC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA4C1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA2CxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAoEzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkF7B,CAAC"}
|