@ledgerhq/lumen-ui-rnative 0.1.57 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +9 -0
- package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +1 -1
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js +3 -0
- package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js +4 -0
- package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.js +18 -6
- package/dist/module/lib/Components/core/AddressInput/AddressInput.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +30 -0
- package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +6 -0
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +64 -44
- package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Button/Button.stories.js +21 -0
- package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.figma.js +17 -1
- package/dist/module/lib/Components/core/Card/Card.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.js +36 -24
- package/dist/module/lib/Components/core/Card/Card.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.mdx +10 -1
- package/dist/module/lib/Components/core/Card/Card.stories.js +78 -2
- package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.test.js +31 -3
- package/dist/module/lib/Components/core/Card/Card.test.js.map +1 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +15 -0
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +13 -0
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +11 -0
- package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +10 -0
- package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +12 -0
- package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +21 -3
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +18 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +9 -0
- package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +13 -0
- package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +13 -0
- package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.stories.js.map +1 -1
- package/dist/module/lib/Components/core/OptionList/OptionList.stories.js +52 -0
- package/dist/module/lib/Components/core/OptionList/OptionList.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/SectionHeader/SectionHeader.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -0
- package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +4 -0
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Tag/Tag.stories.js +12 -0
- package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.figma.js +4 -0
- package/dist/module/lib/Components/core/TextInput/TextInput.figma.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.mdx +25 -0
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +29 -0
- package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js +125 -2
- package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tile/Tile.stories.js +23 -1
- package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +24 -0
- package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +12 -0
- package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.js +1 -2
- package/dist/module/lib/Components/core/Trend/Trend.js.map +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
- package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.test.js +5 -5
- package/dist/module/lib/Components/core/Trend/Trend.test.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +114 -201
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js +32 -0
- package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js.map +1 -0
- package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js +60 -0
- package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js.map +1 -0
- package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js +126 -0
- package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js.map +1 -0
- package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js +34 -0
- package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js.map +1 -0
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js +46 -0
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js.map +1 -0
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js +111 -0
- package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js.map +1 -0
- package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +14 -0
- package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +8 -0
- package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js +50 -0
- package/dist/module/lib/Components/symbols/icons/CalendarRefresh.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/CodeShield.js +50 -0
- package/dist/module/lib/Components/symbols/icons/CodeShield.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/CoinStacked.js +50 -0
- package/dist/module/lib/Components/symbols/icons/CoinStacked.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Craft.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Craft.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Equal.js +49 -0
- package/dist/module/lib/Components/symbols/icons/Equal.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/File.js +50 -0
- package/dist/module/lib/Components/symbols/icons/File.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/FileShield.js +50 -0
- package/dist/module/lib/Components/symbols/icons/FileShield.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Fire.js +51 -0
- package/dist/module/lib/Components/symbols/icons/Fire.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Handshake.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Handshake.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/MailShield.js +50 -0
- package/dist/module/lib/Components/symbols/icons/MailShield.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Merge.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Merge.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Minimize.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Minimize.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Nested.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Nested.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/NotEqual.js +49 -0
- package/dist/module/lib/Components/symbols/icons/NotEqual.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/PeopleShield.js +50 -0
- package/dist/module/lib/Components/symbols/icons/PeopleShield.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Pin.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Pin.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/PinFill.js +47 -0
- package/dist/module/lib/Components/symbols/icons/PinFill.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Receive.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Receive.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Retry.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Retry.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Send.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Send.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Servers.js +50 -0
- package/dist/module/lib/Components/symbols/icons/Servers.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/SubArrow.js +50 -0
- package/dist/module/lib/Components/symbols/icons/SubArrow.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js +52 -0
- package/dist/module/lib/Components/symbols/icons/UsbCircleFill.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js +47 -0
- package/dist/module/lib/Components/symbols/icons/WarningCircleFill.js.map +1 -0
- package/dist/module/lib/Components/symbols/index.js +24 -0
- package/dist/module/lib/Components/symbols/index.js.map +1 -1
- package/dist/module/lib/utils/index.js +0 -1
- package/dist/module/lib/utils/index.js.map +1 -1
- package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Card/Card.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Card/Card.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Card/types.d.ts +6 -0
- package/dist/typescript/src/lib/Components/core/Card/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Trend/Trend.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts +8 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts +8 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts +8 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts +27 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +48 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts +27 -0
- package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CalendarRefresh.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CodeShield.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/CoinStacked.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Craft.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Equal.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/File.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/FileShield.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Fire.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Handshake.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/MailShield.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Merge.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Minimize.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Nested.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/NotEqual.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/PeopleShield.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Pin.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/PinFill.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Receive.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Retry.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Send.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Servers.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/SubArrow.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/UsbCircleFill.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/WarningCircleFill.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts +24 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/index.d.ts +0 -1
- package/dist/typescript/src/lib/utils/index.d.ts.map +1 -1
- package/dist/typescript/src/styles/types/create.types.d.ts +1 -3
- package/dist/typescript/src/styles/types/create.types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +7 -2
- package/src/lib/Components/animations/Spin/Spin.stories.tsx +5 -2
- package/src/lib/Components/core/AddressInput/AddressInput.figma.tsx +4 -0
- package/src/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
- package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +30 -2
- package/src/lib/Components/core/AddressInput/AddressInput.tsx +24 -8
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +8 -2
- package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +33 -13
- package/src/lib/Components/core/Avatar/Avatar.stories.tsx +1 -1
- package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -1
- package/src/lib/Components/core/Banner/Banner.stories.tsx +2 -2
- package/src/lib/Components/core/Button/Button.stories.tsx +23 -2
- package/src/lib/Components/core/Card/Card.figma.tsx +20 -0
- package/src/lib/Components/core/Card/Card.mdx +10 -1
- package/src/lib/Components/core/Card/Card.stories.tsx +63 -2
- package/src/lib/Components/core/Card/Card.test.tsx +35 -3
- package/src/lib/Components/core/Card/Card.tsx +46 -26
- package/src/lib/Components/core/Card/types.ts +7 -0
- package/src/lib/Components/core/CardButton/CardButton.stories.tsx +17 -2
- package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +3 -3
- package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +15 -2
- package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +13 -2
- package/src/lib/Components/core/Divider/Divider.stories.tsx +2 -2
- package/src/lib/Components/core/DotCount/DotCount.stories.tsx +1 -1
- package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +1 -1
- package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +1 -1
- package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +1 -1
- package/src/lib/Components/core/IconButton/IconButton.stories.tsx +12 -2
- package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +14 -2
- package/src/lib/Components/core/Link/Link.stories.tsx +2 -2
- package/src/lib/Components/core/ListItem/ListItem.stories.tsx +18 -0
- package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +19 -2
- package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +11 -2
- package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +13 -0
- package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
- package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +15 -2
- package/src/lib/Components/core/NavBar/NavBar.stories.tsx +2 -2
- package/src/lib/Components/core/OptionList/OptionList.stories.tsx +52 -0
- package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +1 -1
- package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +2 -2
- package/src/lib/Components/core/SearchInput/types.ts +4 -1
- package/src/lib/Components/core/SectionHeader/SectionHeader.stories.tsx +2 -2
- package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +1 -1
- package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +2 -2
- package/src/lib/Components/core/Spinner/Spinner.stories.tsx +2 -2
- package/src/lib/Components/core/Spot/Spot.stories.tsx +22 -2
- package/src/lib/Components/core/Stepper/Stepper.stories.tsx +6 -2
- package/src/lib/Components/core/Subheader/Subheader.stories.tsx +2 -2
- package/src/lib/Components/core/Switch/Switch.stories.tsx +3 -3
- package/src/lib/Components/core/TabBar/TabBar.stories.tsx +1 -1
- package/src/lib/Components/core/Tag/Tag.stories.tsx +14 -2
- package/src/lib/Components/core/TextInput/TextInput.figma.tsx +4 -0
- package/src/lib/Components/core/TextInput/TextInput.mdx +25 -0
- package/src/lib/Components/core/TextInput/TextInput.stories.tsx +29 -2
- package/src/lib/Components/core/TextInput/TextInput.test.tsx +129 -2
- package/src/lib/Components/core/Tile/Tile.stories.tsx +24 -2
- package/src/lib/Components/core/TileButton/TileButton.stories.tsx +26 -2
- package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +14 -2
- package/src/lib/Components/core/Trend/Trend.stories.tsx +11 -2
- package/src/lib/Components/core/Trend/Trend.test.tsx +4 -5
- package/src/lib/Components/core/Trend/Trend.tsx +1 -3
- package/src/lib/Components/internal/BaseInput/BaseInput.tsx +123 -242
- package/src/lib/Components/internal/BaseInput/BaseInputCounter.tsx +35 -0
- package/src/lib/Components/internal/BaseInput/BaseInputHelperText.tsx +57 -0
- package/src/lib/Components/internal/BaseInput/BaseInputLabel.tsx +137 -0
- package/src/lib/Components/internal/BaseInput/multilineLayout.ts +49 -0
- package/src/lib/Components/internal/BaseInput/types.ts +49 -1
- package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.ts +110 -0
- package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.ts +72 -0
- package/src/lib/Components/primitives/Box/Box.stories.tsx +2 -2
- package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +6 -2
- package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +5 -2
- package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +2 -2
- package/src/lib/Components/primitives/Text/Text.stories.tsx +2 -2
- package/src/lib/Components/symbols/Icon/Icon.stories.tsx +2 -2
- package/src/lib/Components/symbols/icons/CalendarRefresh.tsx +45 -0
- package/src/lib/Components/symbols/icons/CodeShield.tsx +45 -0
- package/src/lib/Components/symbols/icons/CoinStacked.tsx +45 -0
- package/src/lib/Components/symbols/icons/Craft.tsx +45 -0
- package/src/lib/Components/symbols/icons/Equal.tsx +44 -0
- package/src/lib/Components/symbols/icons/File.tsx +45 -0
- package/src/lib/Components/symbols/icons/FileShield.tsx +45 -0
- package/src/lib/Components/symbols/icons/Fire.tsx +46 -0
- package/src/lib/Components/symbols/icons/Handshake.tsx +45 -0
- package/src/lib/Components/symbols/icons/MailShield.tsx +45 -0
- package/src/lib/Components/symbols/icons/Merge.tsx +45 -0
- package/src/lib/Components/symbols/icons/Minimize.tsx +45 -0
- package/src/lib/Components/symbols/icons/Nested.tsx +45 -0
- package/src/lib/Components/symbols/icons/NotEqual.tsx +44 -0
- package/src/lib/Components/symbols/icons/PeopleShield.tsx +45 -0
- package/src/lib/Components/symbols/icons/Pin.tsx +45 -0
- package/src/lib/Components/symbols/icons/PinFill.tsx +42 -0
- package/src/lib/Components/symbols/icons/Receive.tsx +45 -0
- package/src/lib/Components/symbols/icons/Retry.tsx +45 -0
- package/src/lib/Components/symbols/icons/Send.tsx +45 -0
- package/src/lib/Components/symbols/icons/Servers.tsx +45 -0
- package/src/lib/Components/symbols/icons/SubArrow.tsx +45 -0
- package/src/lib/Components/symbols/icons/UsbCircleFill.tsx +48 -0
- package/src/lib/Components/symbols/icons/WarningCircleFill.tsx +42 -0
- package/src/lib/Components/symbols/index.ts +24 -0
- package/src/lib/utils/index.ts +0 -1
- package/src/styles/types/create.types.ts +6 -6
- package/dist/module/lib/utils/react/extractTextFromChildren.js +0 -23
- package/dist/module/lib/utils/react/extractTextFromChildren.js.map +0 -1
- package/dist/module/lib/utils/react/index.js +0 -4
- package/dist/module/lib/utils/react/index.js.map +0 -1
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts +0 -8
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts.map +0 -1
- package/dist/typescript/src/lib/utils/react/index.d.ts +0 -2
- package/dist/typescript/src/lib/utils/react/index.d.ts.map +0 -1
- package/src/lib/utils/react/extractTextFromChildren.ts +0 -32
- package/src/lib/utils/react/index.ts +0 -1
|
@@ -3,7 +3,7 @@ import { Box, Text } from '../../primitives';
|
|
|
3
3
|
import { Settings, Information, ArrowRight } from '../../symbols';
|
|
4
4
|
import { Link } from './Link';
|
|
5
5
|
|
|
6
|
-
const meta
|
|
6
|
+
const meta = {
|
|
7
7
|
component: Link,
|
|
8
8
|
id: 'rnative-link',
|
|
9
9
|
title: 'Core/Link',
|
|
@@ -51,7 +51,7 @@ const meta: Meta<typeof Link> = {
|
|
|
51
51
|
description: 'The content to be displayed inside the link',
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
}
|
|
54
|
+
} satisfies Meta<typeof Link>;
|
|
55
55
|
|
|
56
56
|
export default meta;
|
|
57
57
|
type Story = StoryObj<typeof Link>;
|
|
@@ -59,6 +59,7 @@ export const Base: Story = {
|
|
|
59
59
|
args: {
|
|
60
60
|
density: 'expanded',
|
|
61
61
|
lx: { maxWidth: 's320' },
|
|
62
|
+
children: null,
|
|
62
63
|
},
|
|
63
64
|
render: (args) => (
|
|
64
65
|
<ListItem {...args}>
|
|
@@ -99,6 +100,9 @@ export const Base: Story = {
|
|
|
99
100
|
};
|
|
100
101
|
|
|
101
102
|
export const DensityShowcase: Story = {
|
|
103
|
+
args: {
|
|
104
|
+
children: null,
|
|
105
|
+
},
|
|
102
106
|
render: () => (
|
|
103
107
|
<Box lx={{ flexDirection: 'column', maxWidth: 's320', gap: 's8' }}>
|
|
104
108
|
<ListItem density='compact' onPress={() => {}}>
|
|
@@ -155,6 +159,9 @@ export const DensityShowcase: Story = {
|
|
|
155
159
|
};
|
|
156
160
|
|
|
157
161
|
export const InteractiveShowcase: Story = {
|
|
162
|
+
args: {
|
|
163
|
+
children: null,
|
|
164
|
+
},
|
|
158
165
|
render: () => {
|
|
159
166
|
const [selected, setSelected] = useState(false);
|
|
160
167
|
|
|
@@ -245,6 +252,7 @@ export const InteractiveShowcase: Story = {
|
|
|
245
252
|
export const DisabledState: Story = {
|
|
246
253
|
args: {
|
|
247
254
|
disabled: true,
|
|
255
|
+
children: null,
|
|
248
256
|
},
|
|
249
257
|
render: (args) => (
|
|
250
258
|
<Box lx={{ flexDirection: 'column', width: 's320' }}>
|
|
@@ -326,6 +334,7 @@ export const DisabledState: Story = {
|
|
|
326
334
|
export const ActiveState: Story = {
|
|
327
335
|
args: {
|
|
328
336
|
active: true,
|
|
337
|
+
children: null,
|
|
329
338
|
},
|
|
330
339
|
render: (args) => (
|
|
331
340
|
<Box lx={{ flexDirection: 'column', width: 's320', gap: 's8' }}>
|
|
@@ -368,6 +377,9 @@ export const ActiveState: Story = {
|
|
|
368
377
|
};
|
|
369
378
|
|
|
370
379
|
export const ResponsiveLayout: Story = {
|
|
380
|
+
args: {
|
|
381
|
+
children: null,
|
|
382
|
+
},
|
|
371
383
|
render: () => (
|
|
372
384
|
<Box lx={{ flexDirection: 'column', width: 's480', gap: 's32' }}>
|
|
373
385
|
<ListItem lx={{ alignSelf: 'flex-start' }} onPress={() => {}}>
|
|
@@ -447,6 +459,9 @@ export const ResponsiveLayout: Story = {
|
|
|
447
459
|
};
|
|
448
460
|
|
|
449
461
|
export const PriorityShowcase: Story = {
|
|
462
|
+
args: {
|
|
463
|
+
children: null,
|
|
464
|
+
},
|
|
450
465
|
render: () => (
|
|
451
466
|
<Box lx={{ flexDirection: 'column', width: 's320', gap: 's8' }}>
|
|
452
467
|
<Text typography='body4SemiBold' lx={{ color: 'muted' }}>
|
|
@@ -495,6 +510,9 @@ export const PriorityShowcase: Story = {
|
|
|
495
510
|
};
|
|
496
511
|
|
|
497
512
|
export const CompositionShowcase: Story = {
|
|
513
|
+
args: {
|
|
514
|
+
children: null,
|
|
515
|
+
},
|
|
498
516
|
render: () => (
|
|
499
517
|
<Box lx={{ flexDirection: 'column', maxWidth: 's320', gap: 's8' }}>
|
|
500
518
|
<ListItem>
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
const IMAGE_URL =
|
|
12
12
|
'https://images.unsplash.com/photo-1663741954108-d15d514529ef';
|
|
13
13
|
|
|
14
|
-
const meta
|
|
14
|
+
const meta = {
|
|
15
15
|
component: MediaBanner,
|
|
16
16
|
id: 'rnative-mediabanner',
|
|
17
17
|
title: 'Core/MediaBanner',
|
|
@@ -48,7 +48,7 @@ const meta: Meta<typeof MediaBanner> = {
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
}
|
|
51
|
+
} satisfies Meta<typeof MediaBanner>;
|
|
52
52
|
|
|
53
53
|
export default meta;
|
|
54
54
|
type Story = StoryObj<typeof MediaBanner>;
|
|
@@ -56,6 +56,7 @@ type Story = StoryObj<typeof MediaBanner>;
|
|
|
56
56
|
export const Base: Story = {
|
|
57
57
|
args: {
|
|
58
58
|
imageUrl: IMAGE_URL,
|
|
59
|
+
children: null,
|
|
59
60
|
},
|
|
60
61
|
render: (args) => (
|
|
61
62
|
<Box lx={{ width: 's400' }}>
|
|
@@ -82,6 +83,10 @@ export const Base: Story = {
|
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
export const Truncation: Story = {
|
|
86
|
+
args: {
|
|
87
|
+
imageUrl: IMAGE_URL,
|
|
88
|
+
children: null,
|
|
89
|
+
},
|
|
85
90
|
render: () => (
|
|
86
91
|
<Box lx={{ width: 's400' }}>
|
|
87
92
|
<MediaBanner imageUrl={IMAGE_URL} onClose={() => console.log('close')}>
|
|
@@ -99,6 +104,10 @@ export const Truncation: Story = {
|
|
|
99
104
|
};
|
|
100
105
|
|
|
101
106
|
export const WithBrokenImage: Story = {
|
|
107
|
+
args: {
|
|
108
|
+
imageUrl: IMAGE_URL,
|
|
109
|
+
children: null,
|
|
110
|
+
},
|
|
102
111
|
render: () => (
|
|
103
112
|
<Box lx={{ width: 's400' }}>
|
|
104
113
|
<MediaBanner
|
|
@@ -115,6 +124,10 @@ export const WithBrokenImage: Story = {
|
|
|
115
124
|
};
|
|
116
125
|
|
|
117
126
|
export const Clickable: Story = {
|
|
127
|
+
args: {
|
|
128
|
+
imageUrl: IMAGE_URL,
|
|
129
|
+
children: null,
|
|
130
|
+
},
|
|
118
131
|
render: () => {
|
|
119
132
|
const [count, setCount] = useState(0);
|
|
120
133
|
|
|
@@ -137,6 +150,10 @@ export const Clickable: Story = {
|
|
|
137
150
|
};
|
|
138
151
|
|
|
139
152
|
export const WithClose: Story = {
|
|
153
|
+
args: {
|
|
154
|
+
imageUrl: IMAGE_URL,
|
|
155
|
+
children: null,
|
|
156
|
+
},
|
|
140
157
|
render: () => {
|
|
141
158
|
const [visible, setVisible] = useState(true);
|
|
142
159
|
|
|
@@ -4,7 +4,7 @@ import { Box } from '../../primitives';
|
|
|
4
4
|
import { Settings, Star } from '../../symbols';
|
|
5
5
|
import { MediaButton } from './MediaButton';
|
|
6
6
|
|
|
7
|
-
const meta
|
|
7
|
+
const meta = {
|
|
8
8
|
component: MediaButton,
|
|
9
9
|
id: 'rnative-mediabutton',
|
|
10
10
|
title: 'Core/MediaButton',
|
|
@@ -18,7 +18,7 @@ const meta: Meta<typeof MediaButton> = {
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
|
-
}
|
|
21
|
+
} satisfies Meta<typeof MediaButton>;
|
|
22
22
|
|
|
23
23
|
export default meta;
|
|
24
24
|
type Story = StoryObj<typeof MediaButton>;
|
|
@@ -43,6 +43,9 @@ export const Base: Story = {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export const SizeShowcase: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
children: 'All accounts',
|
|
48
|
+
},
|
|
46
49
|
render: () => (
|
|
47
50
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's16' }}>
|
|
48
51
|
<MediaButton
|
|
@@ -64,6 +67,9 @@ export const SizeShowcase: Story = {
|
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
export const LeadingContentShapeShowcase: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
children: 'All accounts',
|
|
72
|
+
},
|
|
67
73
|
render: () => (
|
|
68
74
|
<Box lx={{ flexDirection: 'column', gap: 's16' }}>
|
|
69
75
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's16' }}>
|
|
@@ -113,6 +119,9 @@ export const LeadingContentShapeShowcase: Story = {
|
|
|
113
119
|
};
|
|
114
120
|
|
|
115
121
|
export const AppearanceShowcase: Story = {
|
|
122
|
+
args: {
|
|
123
|
+
children: 'All accounts',
|
|
124
|
+
},
|
|
116
125
|
render: () => {
|
|
117
126
|
const appearances = ['gray', 'transparent', 'no-background'] as const;
|
|
118
127
|
return (
|
|
@@ -32,6 +32,7 @@ const EXAMPLE_SRC =
|
|
|
32
32
|
|
|
33
33
|
const baseArgs = {
|
|
34
34
|
imageUrl: EXAMPLE_SRC,
|
|
35
|
+
children: null,
|
|
35
36
|
onPress: () => ({}),
|
|
36
37
|
onClose: () => ({}),
|
|
37
38
|
};
|
|
@@ -74,6 +75,10 @@ export const Base: Story = {
|
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
export const LayoutShowcase: Story = {
|
|
78
|
+
args: {
|
|
79
|
+
imageUrl: EXAMPLE_SRC,
|
|
80
|
+
children: null,
|
|
81
|
+
},
|
|
77
82
|
render: () => (
|
|
78
83
|
<Box
|
|
79
84
|
lx={{
|
|
@@ -103,6 +108,10 @@ export const LayoutShowcase: Story = {
|
|
|
103
108
|
};
|
|
104
109
|
|
|
105
110
|
export const CompositionShowcase: Story = {
|
|
111
|
+
args: {
|
|
112
|
+
imageUrl: EXAMPLE_SRC,
|
|
113
|
+
children: null,
|
|
114
|
+
},
|
|
106
115
|
render: () => (
|
|
107
116
|
<Box
|
|
108
117
|
lx={{
|
|
@@ -153,6 +162,10 @@ export const CompositionShowcase: Story = {
|
|
|
153
162
|
};
|
|
154
163
|
|
|
155
164
|
export const WithClose: Story = {
|
|
165
|
+
args: {
|
|
166
|
+
imageUrl: EXAMPLE_SRC,
|
|
167
|
+
children: null,
|
|
168
|
+
},
|
|
156
169
|
render: () => {
|
|
157
170
|
const [visible, setVisible] = useState(true);
|
|
158
171
|
|
|
@@ -12,7 +12,7 @@ const ETH_ICON = (
|
|
|
12
12
|
/>
|
|
13
13
|
);
|
|
14
14
|
|
|
15
|
-
const meta
|
|
15
|
+
const meta = {
|
|
16
16
|
component: MediaTag,
|
|
17
17
|
id: 'rnative-mediatag',
|
|
18
18
|
title: 'Core/MediaTag',
|
|
@@ -38,7 +38,7 @@ const meta: Meta<typeof MediaTag> = {
|
|
|
38
38
|
control: 'text',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
}
|
|
41
|
+
} satisfies Meta<typeof MediaTag>;
|
|
42
42
|
|
|
43
43
|
export default meta;
|
|
44
44
|
|
|
@@ -47,6 +47,7 @@ type Story = StoryObj<typeof MediaTag>;
|
|
|
47
47
|
export const Base: Story = {
|
|
48
48
|
args: {
|
|
49
49
|
label: 'Ethereum',
|
|
50
|
+
leadingContent: ETH_ICON,
|
|
50
51
|
appearance: 'accent',
|
|
51
52
|
size: 'md',
|
|
52
53
|
},
|
|
@@ -54,6 +55,10 @@ export const Base: Story = {
|
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
export const AppearanceShowcase: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
label: 'Ethereum',
|
|
60
|
+
leadingContent: ETH_ICON,
|
|
61
|
+
},
|
|
57
62
|
render: () => (
|
|
58
63
|
<Box lx={{ flexDirection: 'row', flexWrap: 'wrap', gap: 's4' }}>
|
|
59
64
|
<MediaTag appearance='base' label='Base' leadingContent={ETH_ICON} />
|
|
@@ -82,6 +87,10 @@ export const AppearanceShowcase: Story = {
|
|
|
82
87
|
};
|
|
83
88
|
|
|
84
89
|
export const SizeShowcase: Story = {
|
|
90
|
+
args: {
|
|
91
|
+
label: 'Ethereum',
|
|
92
|
+
leadingContent: ETH_ICON,
|
|
93
|
+
},
|
|
85
94
|
render: () => (
|
|
86
95
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}>
|
|
87
96
|
<MediaTag size='md' label='Medium' leadingContent={ETH_ICON} />
|
|
@@ -102,6 +111,10 @@ export const SizeShowcase: Story = {
|
|
|
102
111
|
};
|
|
103
112
|
|
|
104
113
|
export const TruncateShowcase: Story = {
|
|
114
|
+
args: {
|
|
115
|
+
label: 'Ethereum',
|
|
116
|
+
leadingContent: ETH_ICON,
|
|
117
|
+
},
|
|
105
118
|
render: () => (
|
|
106
119
|
<Box lx={{ width: 's176' }}>
|
|
107
120
|
<MediaTag
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
NavBarTrailing,
|
|
13
13
|
} from './NavBar';
|
|
14
14
|
|
|
15
|
-
const meta
|
|
15
|
+
const meta = {
|
|
16
16
|
component: NavBar,
|
|
17
17
|
id: 'rnative-navbar',
|
|
18
18
|
title: 'Core/NavBar',
|
|
@@ -42,7 +42,7 @@ const meta: Meta<typeof NavBar> = {
|
|
|
42
42
|
description: 'Controls the density/layout of the NavBar',
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
|
-
}
|
|
45
|
+
} satisfies Meta<typeof NavBar>;
|
|
46
46
|
|
|
47
47
|
export default meta;
|
|
48
48
|
type Story = StoryObj<typeof NavBar>;
|
|
@@ -100,6 +100,10 @@ const CURRENCIES: OptionListItemData[] = [
|
|
|
100
100
|
];
|
|
101
101
|
|
|
102
102
|
export const Base: Story = {
|
|
103
|
+
args: {
|
|
104
|
+
items: CURRENCIES,
|
|
105
|
+
children: null,
|
|
106
|
+
},
|
|
103
107
|
render: () => {
|
|
104
108
|
const [value, setValue] = useState<string | null>(null);
|
|
105
109
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -169,6 +173,10 @@ const FOODS: OptionListItemData[] = [
|
|
|
169
173
|
];
|
|
170
174
|
|
|
171
175
|
export const WithGroups: Story = {
|
|
176
|
+
args: {
|
|
177
|
+
items: FOODS,
|
|
178
|
+
children: null,
|
|
179
|
+
},
|
|
172
180
|
render: () => {
|
|
173
181
|
const [value, setValue] = useState<string | null>(null);
|
|
174
182
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -239,6 +247,10 @@ const NETWORKS: OptionListItemData[] = [
|
|
|
239
247
|
];
|
|
240
248
|
|
|
241
249
|
export const WithContentRow: Story = {
|
|
250
|
+
args: {
|
|
251
|
+
items: NETWORKS,
|
|
252
|
+
children: null,
|
|
253
|
+
},
|
|
242
254
|
render: () => {
|
|
243
255
|
const [value, setValue] = useState<string | null>(null);
|
|
244
256
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -327,6 +339,10 @@ const ACCOUNTS: OptionListItemData[] = [
|
|
|
327
339
|
];
|
|
328
340
|
|
|
329
341
|
export const WithDisabledItems: Story = {
|
|
342
|
+
args: {
|
|
343
|
+
items: ACCOUNTS,
|
|
344
|
+
children: null,
|
|
345
|
+
},
|
|
330
346
|
render: () => {
|
|
331
347
|
const [value, setValue] = useState<string | null>(null);
|
|
332
348
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -415,6 +431,10 @@ const GROUPED_NETWORKS: OptionListItemData[] = [
|
|
|
415
431
|
];
|
|
416
432
|
|
|
417
433
|
export const GroupedWithContentRow: Story = {
|
|
434
|
+
args: {
|
|
435
|
+
items: GROUPED_NETWORKS,
|
|
436
|
+
children: null,
|
|
437
|
+
},
|
|
418
438
|
render: () => {
|
|
419
439
|
const [value, setValue] = useState<string | null>(null);
|
|
420
440
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -482,6 +502,10 @@ export const GroupedWithContentRow: Story = {
|
|
|
482
502
|
};
|
|
483
503
|
|
|
484
504
|
export const WithSearch: Story = {
|
|
505
|
+
args: {
|
|
506
|
+
items: CURRENCIES,
|
|
507
|
+
children: null,
|
|
508
|
+
},
|
|
485
509
|
render: () => {
|
|
486
510
|
const [value, setValue] = useState<string | null>(null);
|
|
487
511
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -547,6 +571,10 @@ export const WithSearch: Story = {
|
|
|
547
571
|
};
|
|
548
572
|
|
|
549
573
|
export const WithSearchAndGroups: Story = {
|
|
574
|
+
args: {
|
|
575
|
+
items: GROUPED_NETWORKS,
|
|
576
|
+
children: null,
|
|
577
|
+
},
|
|
550
578
|
render: () => {
|
|
551
579
|
const [value, setValue] = useState<string | null>(null);
|
|
552
580
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -596,6 +624,10 @@ export const WithSearchAndGroups: Story = {
|
|
|
596
624
|
};
|
|
597
625
|
|
|
598
626
|
export const WithCustomSearchFilter: Story = {
|
|
627
|
+
args: {
|
|
628
|
+
items: CURRENCIES,
|
|
629
|
+
children: null,
|
|
630
|
+
},
|
|
599
631
|
render: () => {
|
|
600
632
|
const [value, setValue] = useState<string | null>(null);
|
|
601
633
|
const bottomSheetRef = useBottomSheetRef();
|
|
@@ -666,6 +698,10 @@ export const WithCustomSearchFilter: Story = {
|
|
|
666
698
|
};
|
|
667
699
|
|
|
668
700
|
export const WithControlledSearch: Story = {
|
|
701
|
+
args: {
|
|
702
|
+
items: CURRENCIES,
|
|
703
|
+
children: null,
|
|
704
|
+
},
|
|
669
705
|
render: () => {
|
|
670
706
|
const [value, setValue] = useState<string | null>(null);
|
|
671
707
|
const [searchValue, setSearchValue] = useState('');
|
|
@@ -734,6 +770,10 @@ export const WithControlledSearch: Story = {
|
|
|
734
770
|
};
|
|
735
771
|
|
|
736
772
|
export const EmptyState: Story = {
|
|
773
|
+
args: {
|
|
774
|
+
items: [],
|
|
775
|
+
children: null,
|
|
776
|
+
},
|
|
737
777
|
render: () => {
|
|
738
778
|
const bottomSheetRef = useBottomSheetRef();
|
|
739
779
|
|
|
@@ -831,6 +871,10 @@ const SimpleOptionListSheet = ({
|
|
|
831
871
|
);
|
|
832
872
|
|
|
833
873
|
export const TriggerShowcase: Story = {
|
|
874
|
+
args: {
|
|
875
|
+
items: SIMPLE_OPTIONS,
|
|
876
|
+
children: null,
|
|
877
|
+
},
|
|
834
878
|
render: () => {
|
|
835
879
|
const [buttonValue, setButtonValue] = useState<string | null>(null);
|
|
836
880
|
const [iconValue, setIconValue] = useState<string | null>(null);
|
|
@@ -980,6 +1024,10 @@ export const TriggerShowcase: Story = {
|
|
|
980
1024
|
};
|
|
981
1025
|
|
|
982
1026
|
export const WithDefaultValue: Story = {
|
|
1027
|
+
args: {
|
|
1028
|
+
items: CURRENCIES,
|
|
1029
|
+
children: null,
|
|
1030
|
+
},
|
|
983
1031
|
render: () => (
|
|
984
1032
|
<Box lx={{ width: 's320' }}>
|
|
985
1033
|
<OptionList items={CURRENCIES} defaultValue='eth'>
|
|
@@ -1033,6 +1081,10 @@ const TYPED_NETWORKS: OptionListItemData<TypedNetwork, TypedNetworkMeta>[] = [
|
|
|
1033
1081
|
];
|
|
1034
1082
|
|
|
1035
1083
|
export const TypesafeFactory: Story = {
|
|
1084
|
+
args: {
|
|
1085
|
+
items: TYPED_NETWORKS,
|
|
1086
|
+
children: null,
|
|
1087
|
+
},
|
|
1036
1088
|
render: () => {
|
|
1037
1089
|
const [value, setValue] = useState<TypedNetwork | null>('eth');
|
|
1038
1090
|
|
|
@@ -4,7 +4,7 @@ import { View } from 'react-native';
|
|
|
4
4
|
import { SearchInput } from './SearchInput';
|
|
5
5
|
import type { SearchInputProps } from './types';
|
|
6
6
|
|
|
7
|
-
const meta
|
|
7
|
+
const meta = {
|
|
8
8
|
component: SearchInput,
|
|
9
9
|
id: 'rnative-searchinput',
|
|
10
10
|
title: 'Core/SearchInput',
|
|
@@ -20,7 +20,7 @@ const meta: Meta<typeof SearchInput> = {
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
-
}
|
|
23
|
+
} satisfies Meta<typeof SearchInput>;
|
|
24
24
|
|
|
25
25
|
export default meta;
|
|
26
26
|
type Story = StoryObj<typeof SearchInput>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { BaseInputProps } from '../../internal/BaseInput';
|
|
2
2
|
import type { BoxProps } from '../../primitives';
|
|
3
3
|
|
|
4
|
-
export type SearchInputProps = Omit<
|
|
4
|
+
export type SearchInputProps = Omit<
|
|
5
|
+
BaseInputProps,
|
|
6
|
+
'prefix' | 'label' | 'multiline' | 'minLines' | 'maxLines'
|
|
7
|
+
> &
|
|
5
8
|
BoxProps & {
|
|
6
9
|
/**
|
|
7
10
|
* The visual appearance of the search input
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SectionHeaderTitle,
|
|
8
8
|
} from './SectionHeader';
|
|
9
9
|
|
|
10
|
-
const meta
|
|
10
|
+
const meta = {
|
|
11
11
|
component: SectionHeader,
|
|
12
12
|
id: 'rnative-sectionheader',
|
|
13
13
|
title: 'Core/SectionHeader',
|
|
@@ -39,7 +39,7 @@ const meta: Meta<typeof SectionHeader> = {
|
|
|
39
39
|
</Box>
|
|
40
40
|
),
|
|
41
41
|
],
|
|
42
|
-
}
|
|
42
|
+
} satisfies Meta<typeof SectionHeader>;
|
|
43
43
|
|
|
44
44
|
export default meta;
|
|
45
45
|
type Story = StoryObj<typeof SectionHeader>;
|
|
@@ -40,7 +40,7 @@ const meta = {
|
|
|
40
40
|
} satisfies Meta<typeof SegmentedControl>;
|
|
41
41
|
|
|
42
42
|
export default meta;
|
|
43
|
-
type Story = StoryObj<typeof
|
|
43
|
+
type Story = StoryObj<typeof SegmentedControl>;
|
|
44
44
|
|
|
45
45
|
export const Base: Story = {
|
|
46
46
|
args: {} as React.ComponentProps<typeof SegmentedControl>,
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
|
2
2
|
import { Box } from '../../primitives/Box';
|
|
3
3
|
import { Skeleton } from './Skeleton';
|
|
4
4
|
|
|
5
|
-
const meta
|
|
5
|
+
const meta = {
|
|
6
6
|
id: 'rnative-skeleton',
|
|
7
7
|
title: 'Core/Skeleton',
|
|
8
8
|
component: Skeleton,
|
|
@@ -16,7 +16,7 @@ const meta: Meta<typeof Skeleton> = {
|
|
|
16
16
|
description: 'Pre-built skeleton component variant',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
} satisfies Meta<typeof Skeleton>;
|
|
20
20
|
|
|
21
21
|
export default meta;
|
|
22
22
|
type Story = StoryObj<typeof Skeleton>;
|
|
@@ -3,7 +3,7 @@ import { Box } from '../../primitives/Box';
|
|
|
3
3
|
import { Text } from '../../primitives/Text';
|
|
4
4
|
import { Spinner } from './Spinner';
|
|
5
5
|
|
|
6
|
-
const meta
|
|
6
|
+
const meta = {
|
|
7
7
|
id: 'rnative-spinner',
|
|
8
8
|
title: 'Core/Spinner',
|
|
9
9
|
component: Spinner,
|
|
@@ -16,7 +16,7 @@ const meta: Meta<typeof Spinner> = {
|
|
|
16
16
|
options: [12, 16, 20, 24, 40, 48, 56],
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
} satisfies Meta<typeof Spinner>;
|
|
20
20
|
|
|
21
21
|
export default meta;
|
|
22
22
|
type Story = StoryObj<typeof Spinner>;
|
|
@@ -5,7 +5,7 @@ import type { IconProps } from '../../symbols/Icon';
|
|
|
5
5
|
import { Spot } from './Spot';
|
|
6
6
|
import type { SpotProps } from './types';
|
|
7
7
|
|
|
8
|
-
const meta
|
|
8
|
+
const meta = {
|
|
9
9
|
component: Spot,
|
|
10
10
|
id: 'rnative-spot',
|
|
11
11
|
title: 'Core/Spot',
|
|
@@ -60,7 +60,7 @@ const meta: Meta<typeof Spot> = {
|
|
|
60
60
|
description: 'Number to display (required for number appearance)',
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
|
-
}
|
|
63
|
+
} satisfies Meta<typeof Spot>;
|
|
64
64
|
|
|
65
65
|
export default meta;
|
|
66
66
|
type Story = StoryObj<typeof Spot>;
|
|
@@ -85,6 +85,10 @@ export const Base: Story = {
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
export const AppearanceShowcase: Story = {
|
|
88
|
+
args: {
|
|
89
|
+
appearance: 'icon',
|
|
90
|
+
icon: Settings,
|
|
91
|
+
},
|
|
88
92
|
render: () => {
|
|
89
93
|
const appearances: {
|
|
90
94
|
name: string;
|
|
@@ -137,6 +141,10 @@ export const AppearanceShowcase: Story = {
|
|
|
137
141
|
};
|
|
138
142
|
|
|
139
143
|
export const IconVariants: Story = {
|
|
144
|
+
args: {
|
|
145
|
+
appearance: 'icon',
|
|
146
|
+
icon: Settings,
|
|
147
|
+
},
|
|
140
148
|
render: () => {
|
|
141
149
|
const icons = [
|
|
142
150
|
{ name: 'Settings', component: Settings },
|
|
@@ -156,6 +164,10 @@ export const IconVariants: Story = {
|
|
|
156
164
|
};
|
|
157
165
|
|
|
158
166
|
export const NumberVariants: Story = {
|
|
167
|
+
args: {
|
|
168
|
+
appearance: 'icon',
|
|
169
|
+
icon: Settings,
|
|
170
|
+
},
|
|
159
171
|
render: () => {
|
|
160
172
|
const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const;
|
|
161
173
|
|
|
@@ -177,6 +189,10 @@ export const NumberVariants: Story = {
|
|
|
177
189
|
};
|
|
178
190
|
|
|
179
191
|
export const SizesShowcase: Story = {
|
|
192
|
+
args: {
|
|
193
|
+
appearance: 'icon',
|
|
194
|
+
icon: Settings,
|
|
195
|
+
},
|
|
180
196
|
render: () => {
|
|
181
197
|
const sizes = [32, 40, 48, 56, 72] as const;
|
|
182
198
|
|
|
@@ -198,6 +214,10 @@ export const SizesShowcase: Story = {
|
|
|
198
214
|
};
|
|
199
215
|
|
|
200
216
|
export const StatesShowcase: Story = {
|
|
217
|
+
args: {
|
|
218
|
+
appearance: 'icon',
|
|
219
|
+
icon: Settings,
|
|
220
|
+
},
|
|
201
221
|
render: () => {
|
|
202
222
|
return (
|
|
203
223
|
<Box lx={{ flexDirection: 'column', gap: 's16' }}>
|
|
@@ -3,7 +3,7 @@ import { Box } from '../../primitives/Box';
|
|
|
3
3
|
import { Text } from '../../primitives/Text';
|
|
4
4
|
import { Stepper } from './Stepper';
|
|
5
5
|
|
|
6
|
-
const meta
|
|
6
|
+
const meta = {
|
|
7
7
|
id: 'rnative-stepper',
|
|
8
8
|
title: 'Core/Stepper',
|
|
9
9
|
component: Stepper,
|
|
@@ -15,7 +15,7 @@ const meta: Meta<typeof Stepper> = {
|
|
|
15
15
|
totalSteps: { control: 'number' },
|
|
16
16
|
disabled: { control: 'boolean' },
|
|
17
17
|
},
|
|
18
|
-
}
|
|
18
|
+
} satisfies Meta<typeof Stepper>;
|
|
19
19
|
|
|
20
20
|
export default meta;
|
|
21
21
|
type Story = StoryObj<typeof Stepper>;
|
|
@@ -29,6 +29,10 @@ export const Base: Story = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const DisabledShowcase: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
currentStep: 2,
|
|
34
|
+
totalSteps: 4,
|
|
35
|
+
},
|
|
32
36
|
render: () => (
|
|
33
37
|
<Box lx={{ gap: 's32', alignItems: 'center' }}>
|
|
34
38
|
<Box lx={{ alignItems: 'center', gap: 's8' }}>
|
|
@@ -18,7 +18,7 @@ const Container = ({ children }: { children: React.ReactNode }) => (
|
|
|
18
18
|
</View>
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
-
const meta
|
|
21
|
+
const meta = {
|
|
22
22
|
component: Subheader,
|
|
23
23
|
id: 'rnative-subheader',
|
|
24
24
|
title: 'Core/Subheader',
|
|
@@ -37,7 +37,7 @@ const meta: Meta<typeof Subheader> = {
|
|
|
37
37
|
</Container>
|
|
38
38
|
),
|
|
39
39
|
],
|
|
40
|
-
}
|
|
40
|
+
} satisfies Meta<typeof Subheader>;
|
|
41
41
|
|
|
42
42
|
export default meta;
|
|
43
43
|
type Story = StoryObj<typeof Subheader>;
|