@ledgerhq/lumen-ui-rnative 0.1.4 → 0.1.6

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 (147) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
  3. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.js +5 -1
  4. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
  5. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  6. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.js +34 -61
  7. package/dist/src/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +1 -0
  8. package/dist/src/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  9. package/dist/src/lib/Components/SegmentedControl/types.d.ts +12 -2
  10. package/dist/src/lib/Components/SegmentedControl/types.d.ts.map +1 -1
  11. package/dist/src/lib/Components/SegmentedControl/usePillLayout.d.ts +19 -0
  12. package/dist/src/lib/Components/SegmentedControl/usePillLayout.d.ts.map +1 -0
  13. package/dist/src/lib/Components/SegmentedControl/usePillLayout.js +46 -0
  14. package/dist/src/lib/Components/TileButton/TileButton.js +2 -2
  15. package/jest.config.ts +0 -1
  16. package/package.json +1 -1
  17. package/src/lib/Components/AmountDisplay/AmountDisplay.tsx +8 -1
  18. package/src/lib/Components/SegmentedControl/SegmentedControl.mdx +1 -38
  19. package/src/lib/Components/SegmentedControl/SegmentedControl.stories.tsx +35 -19
  20. package/src/lib/Components/SegmentedControl/SegmentedControl.tsx +61 -77
  21. package/src/lib/Components/SegmentedControl/SegmentedControlContext.tsx +1 -0
  22. package/src/lib/Components/SegmentedControl/types.ts +12 -2
  23. package/src/lib/Components/SegmentedControl/usePillLayout.ts +76 -0
  24. package/src/lib/Components/TileButton/TileButton.tsx +2 -2
  25. package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx +1 -1
  26. package/tsconfig.json +3 -16
  27. package/tsconfig.lib.json +5 -0
  28. package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts +0 -9
  29. package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts.map +0 -1
  30. package/dist/src/lib/Animations/Pulse/Pulse.stories.js +0 -38
  31. package/dist/src/lib/Animations/Spin/Spin.stories.d.ts +0 -9
  32. package/dist/src/lib/Animations/Spin/Spin.stories.d.ts.map +0 -1
  33. package/dist/src/lib/Animations/Spin/Spin.stories.js +0 -27
  34. package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts +0 -13
  35. package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts.map +0 -1
  36. package/dist/src/lib/Components/AddressInput/AddressInput.stories.js +0 -128
  37. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts +0 -10
  38. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts.map +0 -1
  39. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.js +0 -127
  40. package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts +0 -16
  41. package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts.map +0 -1
  42. package/dist/src/lib/Components/AmountInput/AmountInput.stories.js +0 -186
  43. package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts +0 -22
  44. package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts.map +0 -1
  45. package/dist/src/lib/Components/Avatar/Avatar.stories.js +0 -72
  46. package/dist/src/lib/Components/Banner/Banner.stories.d.ts +0 -16
  47. package/dist/src/lib/Components/Banner/Banner.stories.d.ts.map +0 -1
  48. package/dist/src/lib/Components/Banner/Banner.stories.js +0 -268
  49. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts +0 -87
  50. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts.map +0 -1
  51. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.js +0 -266
  52. package/dist/src/lib/Components/Button/Button.stories.d.ts +0 -16
  53. package/dist/src/lib/Components/Button/Button.stories.d.ts.map +0 -1
  54. package/dist/src/lib/Components/Button/Button.stories.js +0 -143
  55. package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts +0 -16
  56. package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts.map +0 -1
  57. package/dist/src/lib/Components/CardButton/CardButton.stories.js +0 -208
  58. package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts +0 -14
  59. package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  60. package/dist/src/lib/Components/Checkbox/Checkbox.stories.js +0 -72
  61. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts +0 -11
  62. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts.map +0 -1
  63. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.js +0 -91
  64. package/dist/src/lib/Components/Divider/Divider.stories.d.ts +0 -9
  65. package/dist/src/lib/Components/Divider/Divider.stories.d.ts.map +0 -1
  66. package/dist/src/lib/Components/Divider/Divider.stories.js +0 -51
  67. package/dist/src/lib/Components/Icon/Icon.stories.d.ts +0 -15
  68. package/dist/src/lib/Components/Icon/Icon.stories.d.ts.map +0 -1
  69. package/dist/src/lib/Components/Icon/Icon.stories.js +0 -137
  70. package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts +0 -10
  71. package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts.map +0 -1
  72. package/dist/src/lib/Components/IconButton/IconButton.stories.js +0 -74
  73. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts +0 -11
  74. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts.map +0 -1
  75. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.js +0 -90
  76. package/dist/src/lib/Components/Link/Link.stories.d.ts +0 -17
  77. package/dist/src/lib/Components/Link/Link.stories.d.ts.map +0 -1
  78. package/dist/src/lib/Components/Link/Link.stories.js +0 -275
  79. package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts +0 -10
  80. package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts.map +0 -1
  81. package/dist/src/lib/Components/ListItem/ListItem.stories.js +0 -106
  82. package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts +0 -10
  83. package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts.map +0 -1
  84. package/dist/src/lib/Components/NavBar/NavBar.stories.js +0 -72
  85. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts +0 -27
  86. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts.map +0 -1
  87. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.js +0 -42
  88. package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts +0 -12
  89. package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts.map +0 -1
  90. package/dist/src/lib/Components/SearchInput/SearchInput.stories.js +0 -98
  91. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts +0 -58
  92. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts.map +0 -1
  93. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.js +0 -61
  94. package/dist/src/lib/Components/Select/Select.stories.d.ts +0 -11
  95. package/dist/src/lib/Components/Select/Select.stories.d.ts.map +0 -1
  96. package/dist/src/lib/Components/Select/Select.stories.js +0 -83
  97. package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts +0 -11
  98. package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts.map +0 -1
  99. package/dist/src/lib/Components/Skeleton/Skeleton.stories.js +0 -49
  100. package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts +0 -9
  101. package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts.map +0 -1
  102. package/dist/src/lib/Components/Spinner/Spinner.stories.js +0 -50
  103. package/dist/src/lib/Components/Spot/Spot.stories.d.ts +0 -12
  104. package/dist/src/lib/Components/Spot/Spot.stories.d.ts.map +0 -1
  105. package/dist/src/lib/Components/Spot/Spot.stories.js +0 -156
  106. package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts +0 -9
  107. package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts.map +0 -1
  108. package/dist/src/lib/Components/Stepper/Stepper.stories.js +0 -35
  109. package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts +0 -10
  110. package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts.map +0 -1
  111. package/dist/src/lib/Components/Subheader/Subheader.stories.js +0 -34
  112. package/dist/src/lib/Components/Switch/Switch.stories.d.ts +0 -14
  113. package/dist/src/lib/Components/Switch/Switch.stories.d.ts.map +0 -1
  114. package/dist/src/lib/Components/Switch/Switch.stories.js +0 -65
  115. package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts +0 -50
  116. package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts.map +0 -1
  117. package/dist/src/lib/Components/TabBar/TabBar.stories.js +0 -60
  118. package/dist/src/lib/Components/Tag/Tag.stories.d.ts +0 -10
  119. package/dist/src/lib/Components/Tag/Tag.stories.d.ts.map +0 -1
  120. package/dist/src/lib/Components/Tag/Tag.stories.js +0 -45
  121. package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts +0 -14
  122. package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts.map +0 -1
  123. package/dist/src/lib/Components/TextInput/TextInput.stories.js +0 -128
  124. package/dist/src/lib/Components/Tile/Tile.stories.d.ts +0 -14
  125. package/dist/src/lib/Components/Tile/Tile.stories.d.ts.map +0 -1
  126. package/dist/src/lib/Components/Tile/Tile.stories.js +0 -117
  127. package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts +0 -12
  128. package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts.map +0 -1
  129. package/dist/src/lib/Components/TileButton/TileButton.stories.js +0 -63
  130. package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts +0 -10
  131. package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts.map +0 -1
  132. package/dist/src/lib/Components/Tooltip/Tooltip.stories.js +0 -50
  133. package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts +0 -7
  134. package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts.map +0 -1
  135. package/dist/src/lib/Components/Utility/Box/Box.stories.js +0 -42
  136. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts +0 -11
  137. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts.map +0 -1
  138. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js +0 -105
  139. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts +0 -10
  140. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts.map +0 -1
  141. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.js +0 -101
  142. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts +0 -7
  143. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts.map +0 -1
  144. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.js +0 -47
  145. package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts +0 -7
  146. package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts.map +0 -1
  147. package/dist/src/lib/Components/Utility/Text/Text.stories.js +0 -33
@@ -1,45 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Check } from '../../Symbols/Icons/Check';
3
- import { Box } from '../Utility/Box';
4
- import { Tag } from './Tag';
5
- const meta = {
6
- component: Tag,
7
- title: 'Communication/Tag',
8
- argTypes: {
9
- appearance: {
10
- control: 'select',
11
- options: ['base', 'gray', 'accent', 'success', 'error', 'warning'],
12
- },
13
- size: {
14
- control: 'radio',
15
- options: ['sm', 'md'],
16
- },
17
- label: {
18
- control: 'text',
19
- },
20
- icon: {
21
- control: {
22
- type: 'boolean',
23
- },
24
- description: 'Show icon',
25
- },
26
- },
27
- };
28
- export default meta;
29
- export const Base = {
30
- args: {
31
- label: 'Label',
32
- appearance: 'accent',
33
- size: 'md',
34
- },
35
- render: (args) => _jsx(Tag, { ...args, icon: args.icon ? Check : undefined }),
36
- };
37
- export const AppearanceShowcase = {
38
- render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's16' }, children: [_jsxs(Box, { lx: { flexDirection: 'row', gap: 's4' }, children: [_jsx(Tag, { appearance: 'base', label: 'Base' }), _jsx(Tag, { appearance: 'gray', label: 'Gray' }), _jsx(Tag, { appearance: 'accent', label: 'Accent' }), _jsx(Tag, { appearance: 'success', label: 'Success' }), _jsx(Tag, { appearance: 'error', label: 'Error' }), _jsx(Tag, { appearance: 'warning', label: 'Warning' }), _jsx(Tag, { label: 'Disabled', disabled: true })] }), _jsxs(Box, { lx: { flexDirection: 'row', gap: 's4' }, children: [_jsx(Tag, { appearance: 'base', label: 'Base', icon: Check }), _jsx(Tag, { appearance: 'gray', label: 'Gray', icon: Check }), _jsx(Tag, { appearance: 'accent', label: 'Accent', icon: Check }), _jsx(Tag, { appearance: 'success', label: 'Success', icon: Check }), _jsx(Tag, { appearance: 'error', label: 'Error', icon: Check }), _jsx(Tag, { appearance: 'warning', label: 'Warning', icon: Check }), _jsx(Tag, { label: 'Disabled', icon: Check, disabled: true })] })] })),
39
- };
40
- export const SizeShowcase = {
41
- render: () => (_jsxs(Box, { lx: { flexDirection: 'row', alignItems: 'center', gap: 's4' }, children: [_jsx(Tag, { size: 'md', label: 'Large Tag' }), _jsx(Tag, { size: 'sm', label: 'Small Tag' })] })),
42
- };
43
- export const ContentTypeShowcase = {
44
- render: () => (_jsxs(Box, { lx: { flexDirection: 'row', alignItems: 'center', gap: 's4' }, children: [_jsx(Tag, { label: 'Label only' }), _jsx(Tag, { icon: Check, label: 'Icon and Label' })] })),
45
- };
@@ -1,14 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { TextInput } from './TextInput';
3
- declare const meta: Meta<typeof TextInput>;
4
- export default meta;
5
- type Story = StoryObj<typeof TextInput>;
6
- export declare const Base: Story;
7
- export declare const WithContent: Story;
8
- export declare const WithError: Story;
9
- export declare const DisabledTextInput: Story;
10
- export declare const WithHiddenClearButton: Story;
11
- export declare const WithClearCallback: Story;
12
- export declare const EmailKeyboard: Story;
13
- export declare const PhoneKeyboard: Story;
14
- //# sourceMappingURL=TextInput.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/TextInput/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAuChC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AA2BxC,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAQ/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAUnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAc/B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC"}
@@ -1,128 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { View } from 'react-native';
4
- import { TextInput } from './TextInput';
5
- const meta = {
6
- component: TextInput,
7
- title: 'Input/TextInput',
8
- parameters: {
9
- docs: {
10
- source: {
11
- language: 'tsx',
12
- format: true,
13
- type: 'code',
14
- },
15
- },
16
- },
17
- argTypes: {
18
- label: {
19
- control: 'text',
20
- description: 'Floating label text',
21
- },
22
- placeholder: {
23
- control: 'text',
24
- description: 'Placeholder text when input is empty',
25
- },
26
- errorMessage: {
27
- control: 'text',
28
- description: 'Error message to display below input',
29
- },
30
- editable: {
31
- control: 'boolean',
32
- description: 'Whether the input is editable',
33
- },
34
- hideClearButton: {
35
- control: 'boolean',
36
- description: 'Hide the clear button',
37
- },
38
- keyboardType: {
39
- control: 'select',
40
- options: ['default', 'email-address', 'numeric', 'phone-pad', 'url'],
41
- description: 'Keyboard type for input',
42
- },
43
- },
44
- };
45
- export default meta;
46
- const TextInputStory = (args) => {
47
- const [value, setValue] = useState(args.initialValue ?? '');
48
- return (_jsx(View, { style: {
49
- flex: 1,
50
- minHeight: 96,
51
- alignItems: 'center',
52
- justifyContent: 'center',
53
- padding: 24,
54
- }, children: _jsx(View, { style: { width: '100%', maxWidth: 400 }, children: _jsx(TextInput, { ...args, value: value, onChangeText: setValue, onClear: args.onClear }) }) }));
55
- };
56
- export const Base = {
57
- render: (args) => _jsx(TextInputStory, { ...args }),
58
- args: {
59
- label: 'Username',
60
- editable: true,
61
- hideClearButton: false,
62
- keyboardType: 'default',
63
- },
64
- };
65
- export const WithContent = {
66
- render: (args) => _jsx(TextInputStory, { ...args, initialValue: 'johndoe' }),
67
- args: {
68
- label: 'Username',
69
- editable: true,
70
- hideClearButton: false,
71
- keyboardType: 'default',
72
- },
73
- };
74
- export const WithError = {
75
- render: (args) => _jsx(TextInputStory, { ...args, initialValue: 'ab' }),
76
- args: {
77
- label: 'Username',
78
- errorMessage: 'Username must be at least 3 characters',
79
- editable: true,
80
- hideClearButton: false,
81
- keyboardType: 'default',
82
- },
83
- };
84
- export const DisabledTextInput = {
85
- render: (args) => _jsx(TextInputStory, { ...args, initialValue: 'johndoe' }),
86
- args: {
87
- label: 'Username',
88
- editable: false,
89
- hideClearButton: false,
90
- keyboardType: 'default',
91
- },
92
- };
93
- export const WithHiddenClearButton = {
94
- render: (args) => (_jsx(TextInputStory, { ...args, initialValue: 'Content with hidden clear' })),
95
- args: {
96
- label: 'Label',
97
- editable: true,
98
- hideClearButton: true,
99
- keyboardType: 'default',
100
- },
101
- };
102
- export const WithClearCallback = {
103
- render: (args) => (_jsx(TextInputStory, { ...args, initialValue: 'Click clear to see callback', onClear: () => alert('Input cleared!') })),
104
- args: {
105
- label: 'Label',
106
- editable: true,
107
- hideClearButton: false,
108
- keyboardType: 'default',
109
- },
110
- };
111
- export const EmailKeyboard = {
112
- render: (args) => _jsx(TextInputStory, { ...args }),
113
- args: {
114
- label: 'Email',
115
- editable: true,
116
- hideClearButton: false,
117
- keyboardType: 'email-address',
118
- },
119
- };
120
- export const PhoneKeyboard = {
121
- render: (args) => _jsx(TextInputStory, { ...args }),
122
- args: {
123
- label: 'Phone Number',
124
- editable: true,
125
- hideClearButton: false,
126
- keyboardType: 'phone-pad',
127
- },
128
- };
@@ -1,14 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { Tile } from './Tile';
3
- declare const meta: Meta<typeof Tile>;
4
- export default meta;
5
- type Story = StoryObj<typeof Tile>;
6
- export declare const Base: Story;
7
- export declare const VariantsShowcase: Story;
8
- export declare const WithSecondaryAction: Story;
9
- export declare const HorizontalList: Story;
10
- export declare const ResponsiveLayout: Story;
11
- export declare const AppearanceShowcase: Story;
12
- export declare const CenteredShowcase: Story;
13
- export declare const SizeShowcase: Story;
14
- //# sourceMappingURL=Tile.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tile.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Tile/Tile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,EACL,IAAI,EAML,MAAM,QAAQ,CAAC;AAEhB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAqC3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KA8BlB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAwC9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KA+BjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4C5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KA+ChC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAyC9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA+C1B,CAAC"}
@@ -1,117 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Settings, Plus, User, Apps, ChevronRight } from '../../Symbols';
3
- import { Tag } from '../Tag/Tag';
4
- import { Box, Text } from '../Utility';
5
- import { Tile, TileSpot, TileContent, TileTitle, TileDescription, TileTrailingContent, } from './Tile';
6
- const meta = {
7
- component: Tile,
8
- subcomponents: {
9
- TileSpot,
10
- TileContent,
11
- TileTitle,
12
- TileDescription,
13
- TileTrailingContent,
14
- },
15
- title: 'Containment/Tile',
16
- parameters: {
17
- docs: {
18
- source: {
19
- language: 'tsx',
20
- format: true,
21
- type: 'code',
22
- },
23
- },
24
- },
25
- argTypes: {
26
- onPress: {
27
- action: 'pressed',
28
- },
29
- onLongPress: {
30
- action: 'long pressed',
31
- },
32
- appearance: {
33
- control: 'select',
34
- options: ['no-background', 'card'],
35
- },
36
- disabled: {
37
- control: 'boolean',
38
- },
39
- centered: {
40
- control: 'boolean',
41
- },
42
- },
43
- };
44
- export default meta;
45
- export const Base = {
46
- args: {
47
- appearance: 'no-background',
48
- disabled: false,
49
- centered: false,
50
- },
51
- render: (args) => (_jsxs(Tile, { ...args, lx: { maxWidth: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Item with Spot and Description" }), _jsx(TileDescription, { children: "Additional information" })] })] })),
52
- parameters: {
53
- docs: {
54
- source: {
55
- code: `
56
- <Tile lx={{ maxWidth: 's112' }}>
57
- <TileSpot appearance="icon" icon={Settings} />
58
- <TileContent>
59
- <TileTitle>Item with Spot and Description</TileTitle>
60
- <TileDescription>Additional information</TileDescription>
61
- </TileContent>
62
- </Tile>
63
- `,
64
- },
65
- },
66
- },
67
- };
68
- export const VariantsShowcase = {
69
- render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's16' }, children: [_jsxs(Tile, { lx: { maxWidth: 's176' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: User }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "User" }), _jsx(TileDescription, { children: "With description" })] })] }), _jsxs(Tile, { lx: { maxWidth: 's176' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Plus }), _jsx(TileContent, { children: _jsx(TileTitle, { children: "Without Description" }) })] }), _jsxs(Tile, { lx: { maxWidth: 's176' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "With Trailing Content" }), _jsx(TileDescription, { children: "Additional information" }), _jsx(TileTrailingContent, { children: _jsx(Tag, { label: 'Custom', appearance: 'base' }) })] })] }), _jsxs(Tile, { lx: { maxWidth: 's176' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "With Trailing Content" }), _jsx(TileDescription, { children: "Additional information" }), _jsx(TileTrailingContent, { children: _jsx(Text, { typography: 'body2SemiBold', lx: { color: 'success' }, children: "+7.87%" }) })] })] })] })),
70
- };
71
- export const WithSecondaryAction = {
72
- render: () => (_jsxs(Tile, { onLongPress: () => alert('Long press - secondary action triggered!'), lx: { maxWidth: 's176' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Long Press Me" }), _jsx(TileDescription, { children: "Try long pressing this tile" })] })] })),
73
- parameters: {
74
- docs: {
75
- source: {
76
- code: `
77
- <Tile
78
- onLongPress={() => alert('Long press - secondary action triggered!')}
79
- lx={{ maxWidth: 's160' }}
80
- >
81
- <TileSpot appearance="icon" icon={Settings} />
82
- <TileContent>
83
- <TileTitle>Long Press Me</TileTitle>
84
- <TileDescription>Try long pressing this tile</TileDescription>
85
- </TileContent>
86
- </Tile>
87
- `,
88
- },
89
- },
90
- },
91
- };
92
- export const HorizontalList = {
93
- render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's16' }, children: [_jsx(Box, { lx: {
94
- position: 'relative',
95
- flexDirection: 'row',
96
- width: 's480',
97
- backgroundColor: 'base',
98
- }, children: Array.from({ length: 3 }).map((_, i) => (_jsxs(Tile, { children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsxs(TileTitle, { children: ["Item ", i + 1] }), _jsxs(TileDescription, { children: ["Description ", i + 1] })] })] }, `list-1-${i}`))) }), _jsx(Box, { lx: {
99
- flexDirection: 'row',
100
- width: 's480',
101
- position: 'relative',
102
- backgroundColor: 'base',
103
- overflow: 'scroll',
104
- }, children: Array.from({ length: 5 }).map((_, i) => (_jsxs(Tile, { lx: { width: 's128', flexShrink: 0 }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsxs(TileTitle, { children: ["Item ", i + 1] }), _jsx(TileDescription, { children: "Long description that should truncate appropriately" })] })] }, `list-2-${i}`))) })] })),
105
- };
106
- export const ResponsiveLayout = {
107
- render: () => (_jsxs(Box, { lx: { width: 'full', flexDirection: 'column', gap: 's16' }, children: [_jsx(Box, { children: _jsxs(Tile, { children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Item fill width" }), _jsx(TileDescription, { children: "Description fill width" })] })] }) }), _jsx(Box, { lx: { alignItems: 'center', justifyContent: 'center' }, children: _jsxs(Tile, { lx: { width: 's224' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Plus }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Long Item with fixed width" }), _jsx(TileDescription, { children: "lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos." })] })] }) })] })),
108
- };
109
- export const AppearanceShowcase = {
110
- render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's24' }, children: [_jsxs(Box, { children: [_jsx(Box, { lx: { marginBottom: 's8' }, children: _jsx(Text, { typography: 'body2SemiBold', children: "No Background" }) }), _jsxs(Box, { lx: { flexDirection: 'row', gap: 's16' }, children: [_jsxs(Tile, { appearance: 'no-background', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Press me" }), _jsx(TileDescription, { children: "Press state" })] })] }), _jsxs(Tile, { appearance: 'no-background', disabled: true, lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Disabled" }), _jsx(TileDescription, { children: "Disabled state" })] })] })] })] }), _jsxs(Box, { children: [_jsx(Box, { lx: { marginBottom: 's8' }, children: _jsx(Text, { typography: 'body2SemiBold', children: "Card" }) }), _jsxs(Box, { lx: { flexDirection: 'row', gap: 's16' }, children: [_jsxs(Tile, { appearance: 'card', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: User }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Press me" }), _jsx(TileDescription, { children: "Press state" })] })] }), _jsxs(Tile, { appearance: 'card', disabled: true, lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: User }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Disabled" }), _jsx(TileDescription, { children: "Disabled state" })] })] })] })] })] })),
111
- };
112
- export const CenteredShowcase = {
113
- render: () => (_jsxs(Box, { lx: { flexDirection: 'row', gap: 's8' }, children: [_jsxs(Tile, { appearance: 'card', lx: { width: 's128' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Title" }), _jsx(TileDescription, { children: "Description" }), _jsx(TileTrailingContent, { children: _jsx(Tag, { label: 'Label', appearance: 'base' }) })] })] }), _jsxs(Tile, { appearance: 'card', lx: { width: 's128' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Title" }), _jsx(TileDescription, { children: "Description" }), _jsx(TileTrailingContent, { children: _jsx(Tag, { label: 'Label', appearance: 'base' }) })] })] }), _jsxs(Tile, { appearance: 'card', lx: { width: 's128' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Apps }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Title" }), _jsx(TileDescription, { children: "Description" }), _jsx(TileTrailingContent, { children: _jsx(Tag, { label: 'Label', appearance: 'base' }) })] })] }), _jsxs(Tile, { appearance: 'card', centered: true, lx: { width: 's128' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: ChevronRight }), _jsx(TileContent, { children: _jsx(TileTitle, { children: "Show more" }) })] })] })),
114
- };
115
- export const SizeShowcase = {
116
- render: () => (_jsxs(Box, { lx: { flexDirection: 'column', gap: 's24' }, children: [_jsxs(Box, { children: [_jsx(Box, { lx: { marginBottom: 's8' }, children: _jsx(Text, { typography: 'body2SemiBold', children: "Size 48 (default)" }) }), _jsxs(Box, { lx: { flexDirection: 'row', gap: 's16' }, children: [_jsxs(Tile, { appearance: 'card', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings, size: 48 }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Settings" }), _jsx(TileDescription, { children: "Size 48" })] })] }), _jsxs(Tile, { appearance: 'card', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'check', size: 48 }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Check" }), _jsx(TileDescription, { children: "Size 48" })] })] })] })] }), _jsxs(Box, { children: [_jsx(Box, { lx: { marginBottom: 's8' }, children: _jsx(Text, { typography: 'body2SemiBold', children: "Size 40" }) }), _jsxs(Box, { lx: { flexDirection: 'row', gap: 's16' }, children: [_jsxs(Tile, { appearance: 'card', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'icon', icon: Settings, size: 40 }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Settings" }), _jsx(TileDescription, { children: "Size 40" })] })] }), _jsxs(Tile, { appearance: 'card', lx: { width: 's112' }, children: [_jsx(TileSpot, { appearance: 'check', size: 40 }), _jsxs(TileContent, { children: [_jsx(TileTitle, { children: "Check" }), _jsx(TileDescription, { children: "Size 40" })] })] })] })] })] })),
117
- };
@@ -1,12 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { TileButton } from './TileButton';
3
- declare const meta: Meta<typeof TileButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof TileButton>;
6
- export declare const Base: Story;
7
- export declare const DisabledShowcase: Story;
8
- export declare const IconsShowcase: Story;
9
- export declare const GridLayout: Story;
10
- export declare const WidthShowcase: Story;
11
- export declare const TruncationShowcase: Story;
12
- //# sourceMappingURL=TileButton.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TileButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/TileButton/TileButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAY1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAajC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,IAAI,EAAE,KAalB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAoCxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAUhC,CAAC"}
@@ -1,63 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { View } from 'react-native';
3
- import { Settings, Plus, User, Apps, Home, Bell, Cart } from '../../Symbols';
4
- import { TileButton } from './TileButton';
5
- const iconOptions = {
6
- Settings,
7
- Plus,
8
- User,
9
- Apps,
10
- Home,
11
- Bell,
12
- Cart,
13
- };
14
- const meta = {
15
- component: TileButton,
16
- title: 'Action/TileButton',
17
- argTypes: {
18
- icon: {
19
- options: Object.keys(iconOptions),
20
- mapping: iconOptions,
21
- control: { type: 'select' },
22
- },
23
- onPress: {
24
- action: 'pressed',
25
- },
26
- },
27
- };
28
- export default meta;
29
- export const Base = {
30
- args: {
31
- icon: Settings,
32
- children: 'Settings',
33
- },
34
- render: (args) => _jsx(TileButton, { ...args }),
35
- parameters: {
36
- docs: {
37
- source: {
38
- code: `<TileButton icon={Settings} onPress={() => {}}>Settings</TileButton>`,
39
- },
40
- },
41
- },
42
- };
43
- export const DisabledShowcase = {
44
- render: (args) => (_jsxs(View, { style: { flexDirection: 'row', gap: 16 }, children: [_jsx(TileButton, { icon: Settings, onPress: args.onPress, children: "Enabled" }), _jsx(TileButton, { icon: Settings, onPress: args.onPress, disabled: true, children: "Disabled" })] })),
45
- };
46
- export const IconsShowcase = {
47
- render: (args) => (_jsxs(View, { style: { flexDirection: 'row', gap: 16 }, children: [_jsx(TileButton, { icon: Settings, onPress: args.onPress, children: "Settings" }), _jsx(TileButton, { icon: User, onPress: args.onPress, children: "Profile" }), _jsx(TileButton, { icon: Plus, onPress: args.onPress, children: "Add" }), _jsx(TileButton, { icon: Apps, onPress: args.onPress, children: "Apps" })] })),
48
- };
49
- export const GridLayout = {
50
- render: (args) => (_jsxs(View, { style: { width: 343, gap: 8 }, children: [_jsxs(View, { style: { flexDirection: 'row', gap: 8 }, children: [_jsx(View, { style: { flex: 1 }, children: _jsx(TileButton, { icon: Plus, isFull: true, onPress: args.onPress, children: "Buy" }) }), _jsx(View, { style: { flex: 1 }, children: _jsx(TileButton, { icon: Settings, isFull: true, onPress: args.onPress, children: "Settings" }) })] }), _jsxs(View, { style: { flexDirection: 'row', gap: 8 }, children: [_jsx(View, { style: { flex: 1 }, children: _jsx(TileButton, { icon: User, isFull: true, onPress: args.onPress, children: "Profile" }) }), _jsx(View, { style: { flex: 1 }, children: _jsx(TileButton, { icon: Apps, isFull: true, onPress: args.onPress, children: "Apps" }) }), _jsx(View, { style: { flex: 1 }, children: _jsx(TileButton, { icon: Home, isFull: true, onPress: args.onPress, children: "Home" }) })] })] })),
51
- };
52
- export const WidthShowcase = {
53
- render: (args) => (_jsxs(View, { style: {
54
- width: 320,
55
- gap: 8,
56
- display: 'flex',
57
- flexDirection: 'column',
58
- alignItems: 'flex-start',
59
- }, children: [_jsx(TileButton, { icon: Settings, onPress: args.onPress, children: "Default width" }), _jsx(TileButton, { icon: Settings, isFull: true, onPress: args.onPress, children: "Full width (isFull)" })] })),
60
- };
61
- export const TruncationShowcase = {
62
- render: (args) => (_jsx(View, { style: { flexDirection: 'row', gap: 16 }, children: _jsx(View, { style: { width: 80 }, children: _jsx(TileButton, { icon: Settings, isFull: true, onPress: args.onPress, children: "Very long label text" }) }) })),
63
- };
@@ -1,10 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { Tooltip } from './Tooltip';
3
- declare const meta: Meta<typeof Tooltip>;
4
- export default meta;
5
- type Story = StoryObj<typeof Tooltip>;
6
- export declare const Base: Story;
7
- export declare const WithCustomContent: Story;
8
- export declare const WithMultipleTooltips: Story;
9
- export declare const WithChangeCallback: Story;
10
- //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EAAE,OAAO,EAAkC,MAAM,WAAW,CAAC;AAEpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAI9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,IAAI,EAAE,KAwBlB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAoC/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAgDlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KA8BhC,CAAC"}
@@ -1,50 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Information } from '../../Symbols';
3
- import { Button } from '../Button';
4
- import { InteractiveIcon } from '../InteractiveIcon';
5
- import { Box } from '../Utility/Box';
6
- import { Text } from '../Utility/Text';
7
- import { GlobalTooltipBottomSheet } from './GlobalTooltipBottomSheet';
8
- import { Tooltip, TooltipTrigger, TooltipContent } from './Tooltip';
9
- const meta = {
10
- component: Tooltip,
11
- subcomponents: { TooltipTrigger, TooltipContent },
12
- title: 'Communication/Tooltip',
13
- };
14
- export default meta;
15
- export const Base = {
16
- render: () => (_jsxs(_Fragment, { children: [_jsx(Box, { lx: {
17
- minHeight: 's400',
18
- alignItems: 'center',
19
- justifyContent: 'center',
20
- padding: 's24',
21
- }, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { children: "Press me" }) }), _jsx(TooltipContent, { title: 'My tooltip title', content: _jsx(Text, { typography: 'body2', children: "This is a helpful tooltip" }) })] }) }), _jsx(GlobalTooltipBottomSheet, {})] })),
22
- };
23
- export const WithCustomContent = {
24
- render: () => (_jsxs(_Fragment, { children: [_jsx(Box, { lx: {
25
- minHeight: 's400',
26
- alignItems: 'center',
27
- justifyContent: 'center',
28
- padding: 's24',
29
- }, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { children: "Press me" }) }), _jsx(TooltipContent, { title: 'My tooltip title', content: _jsxs(Box, { lx: { alignItems: 'flex-start', gap: 's12' }, children: [_jsx(Text, { typography: 'body2', lx: { color: 'muted' }, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." }), _jsx(Button, { size: 'sm', appearance: 'accent', children: "Custom tooltip action" })] }) })] }) }), _jsx(GlobalTooltipBottomSheet, {})] })),
30
- };
31
- export const WithMultipleTooltips = {
32
- render: () => (_jsxs(_Fragment, { children: [_jsxs(Box, { lx: {
33
- minHeight: 's400',
34
- flexDirection: 'row',
35
- alignItems: 'center',
36
- justifyContent: 'center',
37
- gap: 's16',
38
- padding: 's24',
39
- }, children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { children: "Tooltip 1" }) }), _jsx(TooltipContent, { title: 'First', content: _jsx(Text, { typography: 'body2', children: "First tooltip content" }) })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { children: "Tooltip 2" }) }), _jsx(TooltipContent, { title: 'Second', content: _jsx(Text, { typography: 'body2', children: "Second tooltip content" }) })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(InteractiveIcon, { iconType: 'filled', accessibilityLabel: 'Info', children: _jsx(Information, {}) }) }), _jsx(TooltipContent, { title: 'Third', content: _jsx(Text, { typography: 'body2', children: "Third tooltip content" }) })] })] }), _jsx(GlobalTooltipBottomSheet, {})] })),
40
- };
41
- export const WithChangeCallback = {
42
- render: () => {
43
- return (_jsxs(_Fragment, { children: [_jsx(Box, { lx: {
44
- minHeight: 's400',
45
- alignItems: 'center',
46
- justifyContent: 'center',
47
- padding: 's24',
48
- }, children: _jsxs(Tooltip, { onOpenChange: (newOpen) => alert(`Opened changes to: ${newOpen}`), children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { children: "Press me" }) }), _jsx(TooltipContent, { title: 'My tooltip title', content: _jsx(Text, { typography: 'body2', children: "This is a helpful tooltip" }) })] }) }), _jsx(GlobalTooltipBottomSheet, {})] }));
49
- },
50
- };
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { Box } from './Box';
3
- declare const meta: Meta<typeof Box>;
4
- export default meta;
5
- type Story = StoryObj<typeof Box>;
6
- export declare const Base: Story;
7
- //# sourceMappingURL=Box.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Utility/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAY1B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAElC,eAAO,MAAM,IAAI,EAAE,KA0BlB,CAAC"}
@@ -1,42 +0,0 @@
1
- import { Box } from './Box';
2
- const meta = {
3
- component: Box,
4
- title: 'Utility/Box',
5
- parameters: {
6
- docs: {
7
- source: {
8
- language: 'tsx',
9
- format: true,
10
- type: 'code',
11
- },
12
- },
13
- },
14
- };
15
- export default meta;
16
- export const Base = {
17
- args: {
18
- lx: {
19
- height: 's48',
20
- width: 's48',
21
- backgroundColor: 'accent',
22
- borderRadius: 'md',
23
- },
24
- },
25
- parameters: {
26
- docs: {
27
- source: {
28
- code: `
29
- <Box
30
- lx={{
31
- height: 's48',
32
- width: 's48',
33
- backgroundColor: 'accent',
34
- borderRadius: 'md',
35
- alignSelf: 'center',
36
- }}
37
- />
38
- `,
39
- },
40
- },
41
- },
42
- };
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { LinearGradient } from './LinearGradient';
3
- declare const meta: Meta<typeof LinearGradient>;
4
- export default meta;
5
- type Story = StoryObj<typeof LinearGradient>;
6
- export declare const Base: Story;
7
- export declare const DirectionShowcase: Story;
8
- export declare const WithChildren: Story;
9
- export declare const WithMultipleStops: Story;
10
- export declare const CryptoGradients: Story;
11
- //# sourceMappingURL=LinearGradient.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinearGradient.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAcrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,IAAI,EAAE,KAUlB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAoC/B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAwB1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KA0B/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAyC7B,CAAC"}