@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.
Files changed (132) 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/TabBar/TabBar.d.ts.map +1 -1
  5. package/dist/src/lib/Components/TabBar/TabBar.js +9 -4
  6. package/jest.config.ts +0 -1
  7. package/package.json +1 -1
  8. package/src/lib/Components/AmountDisplay/AmountDisplay.tsx +8 -1
  9. package/src/lib/Components/TabBar/TabBar.tsx +27 -12
  10. package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx +1 -1
  11. package/tsconfig.json +3 -16
  12. package/tsconfig.lib.json +5 -0
  13. package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts +0 -9
  14. package/dist/src/lib/Animations/Pulse/Pulse.stories.d.ts.map +0 -1
  15. package/dist/src/lib/Animations/Pulse/Pulse.stories.js +0 -38
  16. package/dist/src/lib/Animations/Spin/Spin.stories.d.ts +0 -9
  17. package/dist/src/lib/Animations/Spin/Spin.stories.d.ts.map +0 -1
  18. package/dist/src/lib/Animations/Spin/Spin.stories.js +0 -27
  19. package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts +0 -13
  20. package/dist/src/lib/Components/AddressInput/AddressInput.stories.d.ts.map +0 -1
  21. package/dist/src/lib/Components/AddressInput/AddressInput.stories.js +0 -128
  22. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts +0 -10
  23. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.d.ts.map +0 -1
  24. package/dist/src/lib/Components/AmountDisplay/AmountDisplay.stories.js +0 -127
  25. package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts +0 -16
  26. package/dist/src/lib/Components/AmountInput/AmountInput.stories.d.ts.map +0 -1
  27. package/dist/src/lib/Components/AmountInput/AmountInput.stories.js +0 -186
  28. package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts +0 -22
  29. package/dist/src/lib/Components/Avatar/Avatar.stories.d.ts.map +0 -1
  30. package/dist/src/lib/Components/Avatar/Avatar.stories.js +0 -72
  31. package/dist/src/lib/Components/Banner/Banner.stories.d.ts +0 -16
  32. package/dist/src/lib/Components/Banner/Banner.stories.d.ts.map +0 -1
  33. package/dist/src/lib/Components/Banner/Banner.stories.js +0 -268
  34. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts +0 -87
  35. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.d.ts.map +0 -1
  36. package/dist/src/lib/Components/BottomSheet/BottomSheet.stories.js +0 -266
  37. package/dist/src/lib/Components/Button/Button.stories.d.ts +0 -16
  38. package/dist/src/lib/Components/Button/Button.stories.d.ts.map +0 -1
  39. package/dist/src/lib/Components/Button/Button.stories.js +0 -143
  40. package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts +0 -16
  41. package/dist/src/lib/Components/CardButton/CardButton.stories.d.ts.map +0 -1
  42. package/dist/src/lib/Components/CardButton/CardButton.stories.js +0 -208
  43. package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts +0 -14
  44. package/dist/src/lib/Components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  45. package/dist/src/lib/Components/Checkbox/Checkbox.stories.js +0 -72
  46. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts +0 -11
  47. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.d.ts.map +0 -1
  48. package/dist/src/lib/Components/ContentBanner/ContentBanner.stories.js +0 -91
  49. package/dist/src/lib/Components/Divider/Divider.stories.d.ts +0 -9
  50. package/dist/src/lib/Components/Divider/Divider.stories.d.ts.map +0 -1
  51. package/dist/src/lib/Components/Divider/Divider.stories.js +0 -51
  52. package/dist/src/lib/Components/Icon/Icon.stories.d.ts +0 -15
  53. package/dist/src/lib/Components/Icon/Icon.stories.d.ts.map +0 -1
  54. package/dist/src/lib/Components/Icon/Icon.stories.js +0 -137
  55. package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts +0 -10
  56. package/dist/src/lib/Components/IconButton/IconButton.stories.d.ts.map +0 -1
  57. package/dist/src/lib/Components/IconButton/IconButton.stories.js +0 -74
  58. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts +0 -11
  59. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.d.ts.map +0 -1
  60. package/dist/src/lib/Components/InteractiveIcon/InteractiveIcon.stories.js +0 -90
  61. package/dist/src/lib/Components/Link/Link.stories.d.ts +0 -17
  62. package/dist/src/lib/Components/Link/Link.stories.d.ts.map +0 -1
  63. package/dist/src/lib/Components/Link/Link.stories.js +0 -275
  64. package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts +0 -10
  65. package/dist/src/lib/Components/ListItem/ListItem.stories.d.ts.map +0 -1
  66. package/dist/src/lib/Components/ListItem/ListItem.stories.js +0 -106
  67. package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts +0 -10
  68. package/dist/src/lib/Components/NavBar/NavBar.stories.d.ts.map +0 -1
  69. package/dist/src/lib/Components/NavBar/NavBar.stories.js +0 -72
  70. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts +0 -27
  71. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.d.ts.map +0 -1
  72. package/dist/src/lib/Components/PageIndicator/PageIndicator.stories.js +0 -42
  73. package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts +0 -12
  74. package/dist/src/lib/Components/SearchInput/SearchInput.stories.d.ts.map +0 -1
  75. package/dist/src/lib/Components/SearchInput/SearchInput.stories.js +0 -98
  76. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts +0 -58
  77. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.d.ts.map +0 -1
  78. package/dist/src/lib/Components/SegmentedControl/SegmentedControl.stories.js +0 -61
  79. package/dist/src/lib/Components/Select/Select.stories.d.ts +0 -11
  80. package/dist/src/lib/Components/Select/Select.stories.d.ts.map +0 -1
  81. package/dist/src/lib/Components/Select/Select.stories.js +0 -83
  82. package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts +0 -11
  83. package/dist/src/lib/Components/Skeleton/Skeleton.stories.d.ts.map +0 -1
  84. package/dist/src/lib/Components/Skeleton/Skeleton.stories.js +0 -49
  85. package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts +0 -9
  86. package/dist/src/lib/Components/Spinner/Spinner.stories.d.ts.map +0 -1
  87. package/dist/src/lib/Components/Spinner/Spinner.stories.js +0 -50
  88. package/dist/src/lib/Components/Spot/Spot.stories.d.ts +0 -12
  89. package/dist/src/lib/Components/Spot/Spot.stories.d.ts.map +0 -1
  90. package/dist/src/lib/Components/Spot/Spot.stories.js +0 -156
  91. package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts +0 -9
  92. package/dist/src/lib/Components/Stepper/Stepper.stories.d.ts.map +0 -1
  93. package/dist/src/lib/Components/Stepper/Stepper.stories.js +0 -35
  94. package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts +0 -10
  95. package/dist/src/lib/Components/Subheader/Subheader.stories.d.ts.map +0 -1
  96. package/dist/src/lib/Components/Subheader/Subheader.stories.js +0 -34
  97. package/dist/src/lib/Components/Switch/Switch.stories.d.ts +0 -14
  98. package/dist/src/lib/Components/Switch/Switch.stories.d.ts.map +0 -1
  99. package/dist/src/lib/Components/Switch/Switch.stories.js +0 -65
  100. package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts +0 -50
  101. package/dist/src/lib/Components/TabBar/TabBar.stories.d.ts.map +0 -1
  102. package/dist/src/lib/Components/TabBar/TabBar.stories.js +0 -60
  103. package/dist/src/lib/Components/Tag/Tag.stories.d.ts +0 -10
  104. package/dist/src/lib/Components/Tag/Tag.stories.d.ts.map +0 -1
  105. package/dist/src/lib/Components/Tag/Tag.stories.js +0 -45
  106. package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts +0 -14
  107. package/dist/src/lib/Components/TextInput/TextInput.stories.d.ts.map +0 -1
  108. package/dist/src/lib/Components/TextInput/TextInput.stories.js +0 -128
  109. package/dist/src/lib/Components/Tile/Tile.stories.d.ts +0 -14
  110. package/dist/src/lib/Components/Tile/Tile.stories.d.ts.map +0 -1
  111. package/dist/src/lib/Components/Tile/Tile.stories.js +0 -117
  112. package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts +0 -12
  113. package/dist/src/lib/Components/TileButton/TileButton.stories.d.ts.map +0 -1
  114. package/dist/src/lib/Components/TileButton/TileButton.stories.js +0 -63
  115. package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts +0 -10
  116. package/dist/src/lib/Components/Tooltip/Tooltip.stories.d.ts.map +0 -1
  117. package/dist/src/lib/Components/Tooltip/Tooltip.stories.js +0 -50
  118. package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts +0 -7
  119. package/dist/src/lib/Components/Utility/Box/Box.stories.d.ts.map +0 -1
  120. package/dist/src/lib/Components/Utility/Box/Box.stories.js +0 -42
  121. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts +0 -11
  122. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.d.ts.map +0 -1
  123. package/dist/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js +0 -105
  124. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts +0 -10
  125. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.d.ts.map +0 -1
  126. package/dist/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.stories.js +0 -101
  127. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts +0 -7
  128. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.d.ts.map +0 -1
  129. package/dist/src/lib/Components/Utility/Pressable/Pressable.stories.js +0 -47
  130. package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts +0 -7
  131. package/dist/src/lib/Components/Utility/Text/Text.stories.d.ts.map +0 -1
  132. package/dist/src/lib/Components/Utility/Text/Text.stories.js +0 -33
@@ -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"}
@@ -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
- };