@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,105 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTheme } from 'src/styles';
3
- import { Box } from '../../Box';
4
- import { Text } from '../../Text';
5
- import { LinearGradient } from './LinearGradient';
6
- const meta = {
7
- component: LinearGradient,
8
- title: 'Utility/LinearGradient',
9
- parameters: {
10
- layout: 'centered',
11
- backgrounds: { default: 'light' },
12
- docs: {
13
- source: {
14
- language: 'tsx',
15
- format: true,
16
- type: 'code',
17
- },
18
- },
19
- },
20
- };
21
- export default meta;
22
- export const Base = {
23
- args: {
24
- direction: 'to-bottom',
25
- stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
26
- lx: {
27
- width: 's192',
28
- height: 's56',
29
- borderRadius: 'lg',
30
- },
31
- },
32
- };
33
- export const DirectionShowcase = {
34
- render: () => {
35
- const orientations = [
36
- 'to-bottom',
37
- 'to-right',
38
- 'to-top',
39
- 'to-left',
40
- 'to-bottomright',
41
- 'to-bottomleft',
42
- 'to-topright',
43
- 'to-topleft',
44
- 0,
45
- 90,
46
- 180,
47
- 270,
48
- ];
49
- return (_jsx(Box, { lx: { flexDirection: 'row', flexWrap: 'wrap', gap: 's20' }, children: orientations.map((orientation) => {
50
- return (_jsxs(Box, { lx: { gap: 's4' }, children: [_jsx(LinearGradient, { direction: orientation, stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }], lx: { height: 's40', width: 's176', borderRadius: 'md' } }), _jsx(Text, { typography: 'body4', lx: { color: 'base' }, children: orientation })] }, orientation));
51
- }) }));
52
- },
53
- };
54
- export const WithChildren = {
55
- args: {
56
- direction: 'to-bottomright',
57
- stops: [{ color: 'accent' }, { color: 'active', opacity: 0, offset: 0.75 }],
58
- lx: {
59
- padding: 's24',
60
- borderRadius: 'lg',
61
- width: 's288',
62
- },
63
- },
64
- render: (args) => (_jsxs(LinearGradient, { ...args, children: [_jsx(Text, { typography: 'heading2SemiBold', lx: { color: 'base' }, children: "With Children" }), _jsx(Text, { typography: 'body2', lx: { color: 'base', marginTop: 's8' }, children: "Adapt height based on content." }), _jsx(Text, { typography: 'body3', lx: { color: 'base', marginTop: 's8' }, children: "Lorem ipsum dolor sit amet consectetur adipisicing elit consectetur adipisicing elit adipisicing elit. Mas adename labin anet." })] })),
65
- };
66
- export const WithMultipleStops = {
67
- args: {
68
- direction: 'to-right',
69
- stops: [
70
- { color: 'accent', offset: 0, opacity: 1 },
71
- { color: 'warning', offset: 0.5, opacity: 1 },
72
- { color: 'errorStrong', offset: 1, opacity: 1 },
73
- ],
74
- lx: {
75
- borderRadius: 'md',
76
- height: 's56',
77
- width: 's288',
78
- },
79
- },
80
- render: (args) => {
81
- return (_jsxs(Box, { lx: { gap: 's12' }, children: [_jsx(LinearGradient, { ...args }), _jsxs(Box, { lx: { flexDirection: 'row', justifyContent: 'space-between' }, children: [_jsx(Text, { children: "accent" }), _jsx(Text, { children: "warning" }), _jsx(Text, { children: "errorStrong" })] })] }));
82
- },
83
- };
84
- export const CryptoGradients = {
85
- args: {
86
- direction: 'to-bottomright',
87
- lx: {
88
- borderRadius: 'md',
89
- height: 's56',
90
- width: 's288',
91
- },
92
- },
93
- render: (args) => {
94
- const { theme } = useTheme();
95
- return (_jsx(Box, { lx: {
96
- gap: 's20',
97
- flexDirection: 'row',
98
- flexWrap: 'wrap',
99
- }, children: Object.entries(theme.colors.gradients.crypto).map(([key, gradient]) => (_jsxs(Box, { lx: { gap: 's4' }, children: [_jsx(LinearGradient, { ...args, lx: {
100
- height: 's40',
101
- width: 's176',
102
- borderRadius: 'md',
103
- }, stops: gradient }), _jsx(Text, { typography: 'body4', lx: { color: 'base' }, children: key })] }, key))) }));
104
- },
105
- };
@@ -1,10 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { RadialGradient } from './RadialGradient';
3
- declare const meta: Meta<typeof RadialGradient>;
4
- export default meta;
5
- type Story = StoryObj<typeof RadialGradient>;
6
- export declare const Base: Story;
7
- export declare const CenterPositionShowcase: Story;
8
- export declare const WithChildren: Story;
9
- export declare const WithMultipleStops: Story;
10
- //# sourceMappingURL=RadialGradient.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadialGradient.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGvE,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,KASlB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAuEpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAwB1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAa/B,CAAC"}
@@ -1,101 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box } from '../../Box';
3
- import { Text } from '../../Text';
4
- import { RadialGradient } from './RadialGradient';
5
- const meta = {
6
- component: RadialGradient,
7
- title: 'Utility/RadialGradient',
8
- parameters: {
9
- layout: 'centered',
10
- backgrounds: { default: 'light' },
11
- docs: {
12
- source: {
13
- language: 'tsx',
14
- format: true,
15
- type: 'code',
16
- },
17
- },
18
- },
19
- };
20
- export default meta;
21
- export const Base = {
22
- args: {
23
- stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
24
- lx: {
25
- height: 's192',
26
- width: 's192',
27
- borderRadius: 'lg',
28
- },
29
- },
30
- };
31
- export const CenterPositionShowcase = {
32
- render: () => {
33
- const positions = [
34
- {
35
- title: 'Aspect ratio 1:1',
36
- isSquare: true,
37
- items: [
38
- {
39
- center: { x: 0.5, y: 0.5 },
40
- label: '{x: 0.5, y: 0.5} (default)',
41
- },
42
- { center: { x: 0.2, y: 0.2 }, label: '{x: 0.2, y: 0.2}' },
43
- { center: { x: 0.8, y: 0.8 }, label: '{x: 0.8, y: 0.8}' },
44
- { center: { x: 0.2, y: 0.8 }, label: '{x: 0.2, y: 0.8}' },
45
- { center: { x: 0.8, y: 0.2 }, label: '{x: 0.8, y: 0.2}' },
46
- ],
47
- },
48
- {
49
- title: 'Aspect ratio 1:2',
50
- isSquare: false,
51
- items: [
52
- {
53
- center: { x: 0.5, y: 0.5 },
54
- label: '{x: 0.5, y: 0.5} (default)',
55
- },
56
- { center: { x: 0.2, y: 0.2 }, label: '{x: 0.2, y: 0.2}' },
57
- { center: { x: 0.8, y: 0.8 }, label: '{x: 0.8, y: 0.8}' },
58
- { center: { x: 0.2, y: 0.8 }, label: '{x: 0.2, y: 0.8}' },
59
- { center: { x: 0.8, y: 0.2 }, label: '{x: 0.8, y: 0.2}' },
60
- ],
61
- },
62
- ];
63
- return (_jsx(Box, { lx: { flexDirection: 'column', gap: 's40' }, children: positions.map(({ title, isSquare, items }) => (_jsxs(Box, { children: [_jsx(Text, { typography: 'heading5SemiBold', lx: { color: 'base', marginBottom: 's16' }, children: title }), _jsx(Box, { lx: { flexDirection: 'row', flexWrap: 'wrap', gap: 's24' }, children: items.map(({ center, label }) => (_jsxs(Box, { lx: { gap: 's8', alignItems: 'center' }, children: [_jsx(RadialGradient, { center: center, stops: [
64
- { color: 'accent' },
65
- { color: 'active', opacity: 0 },
66
- ], lx: {
67
- height: 's72',
68
- width: isSquare ? 's72' : 's144',
69
- borderRadius: 'md',
70
- borderColor: 'active',
71
- borderWidth: 's1',
72
- } }), _jsx(Text, { typography: 'body4', lx: { color: 'base' }, children: label })] }, label))) })] }, title))) }));
73
- },
74
- };
75
- export const WithChildren = {
76
- args: {
77
- stops: [{ color: 'accent' }, { color: 'active', opacity: 0 }],
78
- lx: {
79
- padding: 's24',
80
- borderRadius: 'lg',
81
- width: 's288',
82
- borderColor: 'active',
83
- borderWidth: 's1',
84
- },
85
- },
86
- render: (args) => (_jsxs(RadialGradient, { ...args, children: [_jsx(Text, { typography: 'heading2SemiBold', lx: { color: 'base' }, children: "With Children" }), _jsx(Text, { typography: 'body2', lx: { color: 'base', marginTop: 's8' }, children: "Adapt height based on content." }), _jsx(Text, { typography: 'body3', lx: { color: 'base', marginTop: 's8' }, children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos" })] })),
87
- };
88
- export const WithMultipleStops = {
89
- args: {
90
- stops: [
91
- { color: 'warning', offset: 0, opacity: 1 },
92
- { color: 'accent', offset: 0.5, opacity: 1 },
93
- { color: 'error', offset: 1, opacity: 1 },
94
- ],
95
- lx: {
96
- height: 's80',
97
- width: 's80',
98
- borderRadius: 'full',
99
- },
100
- },
101
- };
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { Pressable } from './Pressable';
3
- declare const meta: Meta<typeof Pressable>;
4
- export default meta;
5
- type Story = StoryObj<typeof Pressable>;
6
- export declare const Base: Story;
7
- //# sourceMappingURL=Pressable.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pressable.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Utility/Pressable/Pressable.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAYhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,IAAI,EAAE,KA8BlB,CAAC"}
@@ -1,47 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Pressable } from './Pressable';
3
- const meta = {
4
- component: Pressable,
5
- title: 'Utility/Pressable',
6
- parameters: {
7
- docs: {
8
- source: {
9
- language: 'tsx',
10
- format: true,
11
- type: 'code',
12
- },
13
- },
14
- },
15
- };
16
- export default meta;
17
- export const Base = {
18
- args: {
19
- lx: {
20
- height: 's48',
21
- width: 's48',
22
- backgroundColor: 'accent',
23
- borderRadius: 'md',
24
- alignSelf: 'center',
25
- },
26
- style: ({ pressed }) => ({ opacity: pressed ? 0.5 : 1 }),
27
- },
28
- render: (args) => _jsx(Pressable, { ...args }),
29
- parameters: {
30
- docs: {
31
- source: {
32
- code: `
33
- <Pressable
34
- style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1 })}
35
- lx={{
36
- height: 's48',
37
- width: 's48',
38
- backgroundColor: 'accent',
39
- borderRadius: 'md',
40
- alignSelf: 'center',
41
- }}
42
- />
43
- `,
44
- },
45
- },
46
- },
47
- };
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
- import { TextProps } from './types';
3
- declare const meta: Meta<TextProps>;
4
- export default meta;
5
- type Story = StoryObj<TextProps>;
6
- export declare const Base: Story;
7
- //# sourceMappingURL=Text.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/Utility/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CAYzB,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAiBlB,CAAC"}
@@ -1,33 +0,0 @@
1
- import { Text } from './Text';
2
- const meta = {
3
- component: Text,
4
- title: 'Utility/Text',
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
- typography: 'body1',
19
- lx: { color: 'base' },
20
- children: 'Hello World',
21
- },
22
- parameters: {
23
- docs: {
24
- source: {
25
- code: `
26
- <Text typography='body1' lx={{ color: 'base' }}>
27
- Hello World
28
- </Text>
29
- `,
30
- },
31
- },
32
- },
33
- };