@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
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
CardFooterActions,
|
|
20
20
|
} from './Card';
|
|
21
21
|
|
|
22
|
-
const meta
|
|
22
|
+
const meta = {
|
|
23
23
|
component: Card,
|
|
24
24
|
id: 'rnative-card',
|
|
25
25
|
title: 'Core/Card',
|
|
@@ -59,7 +59,7 @@ const meta: Meta<typeof Card> = {
|
|
|
59
59
|
description: 'The function to be called when the card is pressed',
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
|
-
}
|
|
62
|
+
} satisfies Meta<typeof Card>;
|
|
63
63
|
|
|
64
64
|
export default meta;
|
|
65
65
|
type Story = StoryObj<typeof Card>;
|
|
@@ -67,6 +67,7 @@ type Story = StoryObj<typeof Card>;
|
|
|
67
67
|
export const Base: Story = {
|
|
68
68
|
args: {
|
|
69
69
|
lx: { width: 's320' },
|
|
70
|
+
children: null,
|
|
70
71
|
},
|
|
71
72
|
render: (args) => (
|
|
72
73
|
<Card {...args}>
|
|
@@ -121,6 +122,9 @@ export const Base: Story = {
|
|
|
121
122
|
};
|
|
122
123
|
|
|
123
124
|
export const StatesShowcase: Story = {
|
|
125
|
+
args: {
|
|
126
|
+
children: null,
|
|
127
|
+
},
|
|
124
128
|
render: (args) => (
|
|
125
129
|
<Box lx={{ flexDirection: 'column', gap: 's16' }}>
|
|
126
130
|
<Card {...args} lx={{ width: 's320' }}>
|
|
@@ -243,10 +247,58 @@ export const StatesShowcase: Story = {
|
|
|
243
247
|
),
|
|
244
248
|
};
|
|
245
249
|
|
|
250
|
+
export const FooterAppearance: Story = {
|
|
251
|
+
args: {
|
|
252
|
+
children: null,
|
|
253
|
+
},
|
|
254
|
+
render: () => (
|
|
255
|
+
<Box lx={{ flexDirection: 'column', gap: 's16' }}>
|
|
256
|
+
<Card type='info' lx={{ width: 's320' }}>
|
|
257
|
+
<CardHeader>
|
|
258
|
+
<CardLeading>
|
|
259
|
+
<CryptoIcon ledgerId='bitcoin' ticker='BTC' size={48} />
|
|
260
|
+
<CardContent>
|
|
261
|
+
<CardContentTitle>Plain</CardContentTitle>
|
|
262
|
+
<CardContentDescription>
|
|
263
|
+
Muted footer background
|
|
264
|
+
</CardContentDescription>
|
|
265
|
+
</CardContent>
|
|
266
|
+
</CardLeading>
|
|
267
|
+
</CardHeader>
|
|
268
|
+
<CardFooter appearance='plain'>
|
|
269
|
+
<CardContentDescription>
|
|
270
|
+
3 assets on 2 networks
|
|
271
|
+
</CardContentDescription>
|
|
272
|
+
</CardFooter>
|
|
273
|
+
</Card>
|
|
274
|
+
|
|
275
|
+
<Card type='info' lx={{ width: 's320' }}>
|
|
276
|
+
<CardHeader>
|
|
277
|
+
<CardLeading>
|
|
278
|
+
<CryptoIcon ledgerId='bitcoin' ticker='BTC' size={48} />
|
|
279
|
+
<CardContent>
|
|
280
|
+
<CardContentTitle>No background</CardContentTitle>
|
|
281
|
+
<CardContentDescription>
|
|
282
|
+
Blends with the card surface
|
|
283
|
+
</CardContentDescription>
|
|
284
|
+
</CardContent>
|
|
285
|
+
</CardLeading>
|
|
286
|
+
</CardHeader>
|
|
287
|
+
<CardFooter appearance='no-background'>
|
|
288
|
+
<CardContentDescription>
|
|
289
|
+
3 assets on 2 networks
|
|
290
|
+
</CardContentDescription>
|
|
291
|
+
</CardFooter>
|
|
292
|
+
</Card>
|
|
293
|
+
</Box>
|
|
294
|
+
),
|
|
295
|
+
};
|
|
296
|
+
|
|
246
297
|
export const DisabledWithSpot: Story = {
|
|
247
298
|
args: {
|
|
248
299
|
lx: { width: 's320' },
|
|
249
300
|
disabled: true,
|
|
301
|
+
children: null,
|
|
250
302
|
},
|
|
251
303
|
render: (args) => (
|
|
252
304
|
<Card {...args}>
|
|
@@ -273,6 +325,9 @@ export const DisabledWithSpot: Story = {
|
|
|
273
325
|
};
|
|
274
326
|
|
|
275
327
|
export const ExpandableShowcase: Story = {
|
|
328
|
+
args: {
|
|
329
|
+
children: null,
|
|
330
|
+
},
|
|
276
331
|
render: () => {
|
|
277
332
|
const [expanded, setExpanded] = useState(false);
|
|
278
333
|
|
|
@@ -319,6 +374,9 @@ export const ExpandableShowcase: Story = {
|
|
|
319
374
|
};
|
|
320
375
|
|
|
321
376
|
export const LayoutShowcase: Story = {
|
|
377
|
+
args: {
|
|
378
|
+
children: null,
|
|
379
|
+
},
|
|
322
380
|
render: (args) => (
|
|
323
381
|
<Box
|
|
324
382
|
lx={{
|
|
@@ -424,6 +482,9 @@ export const LayoutShowcase: Story = {
|
|
|
424
482
|
};
|
|
425
483
|
|
|
426
484
|
export const CompositionsShowcase: Story = {
|
|
485
|
+
args: {
|
|
486
|
+
children: null,
|
|
487
|
+
},
|
|
427
488
|
render: () => {
|
|
428
489
|
const [expanded, setExpanded] = useState(false);
|
|
429
490
|
|
|
@@ -99,14 +99,21 @@ describe('Card', () => {
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
describe('outlined', () => {
|
|
102
|
-
it('
|
|
102
|
+
it('draws the selection outline as an absolutely positioned overlay', () => {
|
|
103
103
|
renderCard({ outlined: true });
|
|
104
|
-
|
|
104
|
+
|
|
105
|
+
const outline = screen.getByTestId('card-outline');
|
|
106
|
+
expect(outline.props.style).toMatchObject({
|
|
107
|
+
position: 'absolute',
|
|
108
|
+
borderWidth: 2,
|
|
109
|
+
});
|
|
105
110
|
});
|
|
106
111
|
|
|
107
|
-
it('
|
|
112
|
+
it('does not draw an outline by default', () => {
|
|
108
113
|
renderCard({ outlined: false });
|
|
114
|
+
|
|
109
115
|
expect(screen.getByTestId('card')).toBeTruthy();
|
|
116
|
+
expect(screen.queryByTestId('card-outline')).toBeNull();
|
|
110
117
|
});
|
|
111
118
|
});
|
|
112
119
|
|
|
@@ -165,6 +172,31 @@ describe('Card', () => {
|
|
|
165
172
|
});
|
|
166
173
|
});
|
|
167
174
|
|
|
175
|
+
describe('CardFooter appearance', () => {
|
|
176
|
+
it.each(['plain', 'no-background'] as const)(
|
|
177
|
+
'renders with %s appearance',
|
|
178
|
+
(appearance) => {
|
|
179
|
+
render(
|
|
180
|
+
<TestWrapper>
|
|
181
|
+
<Card>
|
|
182
|
+
<CardHeader>
|
|
183
|
+
<CardLeading>
|
|
184
|
+
<CardContentTitle>Title</CardContentTitle>
|
|
185
|
+
</CardLeading>
|
|
186
|
+
</CardHeader>
|
|
187
|
+
<CardFooter appearance={appearance} testID='card-footer'>
|
|
188
|
+
<CardContentDescription>Footer text</CardContentDescription>
|
|
189
|
+
</CardFooter>
|
|
190
|
+
</Card>
|
|
191
|
+
</TestWrapper>,
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
expect(screen.getByTestId('card-footer')).toBeTruthy();
|
|
195
|
+
expect(screen.getByText('Footer text')).toBeTruthy();
|
|
196
|
+
},
|
|
197
|
+
);
|
|
198
|
+
});
|
|
199
|
+
|
|
168
200
|
describe('CardContentRow', () => {
|
|
169
201
|
it('renders title alongside additional content in a row', () => {
|
|
170
202
|
render(
|
|
@@ -25,6 +25,7 @@ import type {
|
|
|
25
25
|
CardContentTitleProps,
|
|
26
26
|
CardContextValue,
|
|
27
27
|
CardFooterActionsProps,
|
|
28
|
+
CardFooterAppearance,
|
|
28
29
|
CardFooterProps,
|
|
29
30
|
CardHeaderProps,
|
|
30
31
|
CardLeadingProps,
|
|
@@ -88,12 +89,10 @@ const [CardContentAlignProvider, useCardContentAlignContext] =
|
|
|
88
89
|
});
|
|
89
90
|
|
|
90
91
|
const useCardStyles = ({
|
|
91
|
-
outlined,
|
|
92
92
|
pressed,
|
|
93
93
|
disabled,
|
|
94
94
|
interactive,
|
|
95
95
|
}: {
|
|
96
|
-
outlined: boolean;
|
|
97
96
|
pressed: boolean;
|
|
98
97
|
disabled: boolean;
|
|
99
98
|
interactive: boolean;
|
|
@@ -108,18 +107,20 @@ const useCardStyles = ({
|
|
|
108
107
|
borderRadius: t.borderRadius.lg,
|
|
109
108
|
backgroundColor: t.colors.bg.surface,
|
|
110
109
|
},
|
|
111
|
-
outlined && {
|
|
112
|
-
borderWidth: t.borderWidth.s2,
|
|
113
|
-
borderColor: t.colors.border.active,
|
|
114
|
-
},
|
|
115
110
|
interactive &&
|
|
116
111
|
pressed &&
|
|
117
112
|
!disabled && {
|
|
118
113
|
backgroundColor: t.colors.bg.surfacePressed,
|
|
119
114
|
},
|
|
120
115
|
]),
|
|
116
|
+
outline: {
|
|
117
|
+
...StyleSheet.absoluteFillObject,
|
|
118
|
+
borderRadius: t.borderRadius.lg,
|
|
119
|
+
borderWidth: t.borderWidth.s2,
|
|
120
|
+
borderColor: t.colors.border.active,
|
|
121
|
+
},
|
|
121
122
|
}),
|
|
122
|
-
[
|
|
123
|
+
[pressed, disabled, interactive],
|
|
123
124
|
);
|
|
124
125
|
};
|
|
125
126
|
|
|
@@ -226,8 +227,19 @@ const CardInner = ({
|
|
|
226
227
|
interactive: boolean;
|
|
227
228
|
children: ReactNode;
|
|
228
229
|
}) => {
|
|
229
|
-
const styles = useCardStyles({
|
|
230
|
-
return
|
|
230
|
+
const styles = useCardStyles({ pressed, disabled, interactive });
|
|
231
|
+
return (
|
|
232
|
+
<View style={styles.container}>
|
|
233
|
+
{children}
|
|
234
|
+
{outlined && (
|
|
235
|
+
<View
|
|
236
|
+
testID='card-outline'
|
|
237
|
+
style={styles.outline}
|
|
238
|
+
pointerEvents='none'
|
|
239
|
+
/>
|
|
240
|
+
)}
|
|
241
|
+
</View>
|
|
242
|
+
);
|
|
231
243
|
};
|
|
232
244
|
|
|
233
245
|
const useHeaderStyles = ({ pressed }: { pressed: boolean }) => {
|
|
@@ -661,6 +673,7 @@ const useCardFooterAnimation = ({
|
|
|
661
673
|
export const CardFooter = ({
|
|
662
674
|
ref,
|
|
663
675
|
children,
|
|
676
|
+
appearance = 'plain',
|
|
664
677
|
lx = {},
|
|
665
678
|
style,
|
|
666
679
|
...props
|
|
@@ -675,24 +688,31 @@ export const CardFooter = ({
|
|
|
675
688
|
});
|
|
676
689
|
|
|
677
690
|
const footerStyles = useStyleSheet(
|
|
678
|
-
(t) =>
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
content: StyleSheet.flatten([
|
|
683
|
-
{
|
|
684
|
-
width: t.sizes.full,
|
|
685
|
-
flexDirection: 'column',
|
|
686
|
-
gap: t.spacings.s8,
|
|
687
|
-
paddingHorizontal: t.spacings.s12,
|
|
688
|
-
paddingVertical: t.spacings.s10,
|
|
689
|
-
},
|
|
690
|
-
disabled && {
|
|
691
|
-
opacity: 0.5,
|
|
691
|
+
(t) => {
|
|
692
|
+
const appearanceStyles = {
|
|
693
|
+
plain: {
|
|
694
|
+
backgroundColor: t.colors.bg.mutedTransparent,
|
|
692
695
|
},
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
+
'no-background': {},
|
|
697
|
+
} satisfies Record<CardFooterAppearance, ViewStyle>;
|
|
698
|
+
|
|
699
|
+
return {
|
|
700
|
+
wrapper: appearanceStyles[appearance],
|
|
701
|
+
content: StyleSheet.flatten([
|
|
702
|
+
{
|
|
703
|
+
width: t.sizes.full,
|
|
704
|
+
flexDirection: 'column',
|
|
705
|
+
gap: t.spacings.s8,
|
|
706
|
+
paddingHorizontal: t.spacings.s12,
|
|
707
|
+
paddingVertical: t.spacings.s10,
|
|
708
|
+
},
|
|
709
|
+
disabled && {
|
|
710
|
+
opacity: 0.5,
|
|
711
|
+
},
|
|
712
|
+
]),
|
|
713
|
+
};
|
|
714
|
+
},
|
|
715
|
+
[disabled, appearance],
|
|
696
716
|
);
|
|
697
717
|
|
|
698
718
|
return (
|
|
@@ -103,7 +103,14 @@ export type CardTrailingProps = {
|
|
|
103
103
|
children: ReactNode;
|
|
104
104
|
} & Omit<StyledViewProps, 'children'>;
|
|
105
105
|
|
|
106
|
+
export type CardFooterAppearance = 'plain' | 'no-background';
|
|
107
|
+
|
|
106
108
|
export type CardFooterProps = {
|
|
109
|
+
/**
|
|
110
|
+
* The visual appearance of the footer background.
|
|
111
|
+
* @default 'plain'
|
|
112
|
+
*/
|
|
113
|
+
appearance?: CardFooterAppearance;
|
|
107
114
|
/**
|
|
108
115
|
* The footer content (DescriptionList, Button, etc.).
|
|
109
116
|
*/
|
|
@@ -3,7 +3,7 @@ import { Box, Text } from '../../primitives';
|
|
|
3
3
|
import { Settings, Plus, Coins, CreditCard, Bank } from '../../symbols';
|
|
4
4
|
import { CardButton } from './CardButton';
|
|
5
5
|
|
|
6
|
-
const meta
|
|
6
|
+
const meta = {
|
|
7
7
|
component: CardButton,
|
|
8
8
|
id: 'rnative-cardbutton',
|
|
9
9
|
title: 'Core/CardButton',
|
|
@@ -49,7 +49,7 @@ const meta: Meta<typeof CardButton> = {
|
|
|
49
49
|
description: 'Whether the card button is disabled',
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
|
-
}
|
|
52
|
+
} satisfies Meta<typeof CardButton>;
|
|
53
53
|
|
|
54
54
|
export default meta;
|
|
55
55
|
type Story = StoryObj<typeof CardButton>;
|
|
@@ -162,6 +162,9 @@ export const FullFeatures: Story = {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
export const NaturalWidth: Story = {
|
|
165
|
+
args: {
|
|
166
|
+
title: 'Basic Card Button',
|
|
167
|
+
},
|
|
165
168
|
render: () => (
|
|
166
169
|
<Box lx={{ backgroundColor: 'mutedPressed', padding: 's16' }}>
|
|
167
170
|
<Text
|
|
@@ -195,6 +198,9 @@ export const NaturalWidth: Story = {
|
|
|
195
198
|
};
|
|
196
199
|
|
|
197
200
|
export const AppearanceShowcase: Story = {
|
|
201
|
+
args: {
|
|
202
|
+
title: 'Basic Card Button',
|
|
203
|
+
},
|
|
198
204
|
render: () => {
|
|
199
205
|
const appearances: {
|
|
200
206
|
name: string;
|
|
@@ -228,6 +234,9 @@ export const AppearanceShowcase: Story = {
|
|
|
228
234
|
};
|
|
229
235
|
|
|
230
236
|
export const ContentVariations: Story = {
|
|
237
|
+
args: {
|
|
238
|
+
title: 'Basic Card Button',
|
|
239
|
+
},
|
|
231
240
|
render: () => (
|
|
232
241
|
<Box
|
|
233
242
|
lx={{
|
|
@@ -268,6 +277,9 @@ export const ContentVariations: Story = {
|
|
|
268
277
|
};
|
|
269
278
|
|
|
270
279
|
export const StatesShowcase: Story = {
|
|
280
|
+
args: {
|
|
281
|
+
title: 'Basic Card Button',
|
|
282
|
+
},
|
|
271
283
|
render: () => (
|
|
272
284
|
<Box
|
|
273
285
|
lx={{
|
|
@@ -308,6 +320,9 @@ export const StatesShowcase: Story = {
|
|
|
308
320
|
};
|
|
309
321
|
|
|
310
322
|
export const ResponsiveLayout: Story = {
|
|
323
|
+
args: {
|
|
324
|
+
title: 'Basic Card Button',
|
|
325
|
+
},
|
|
311
326
|
render: () => (
|
|
312
327
|
<Box
|
|
313
328
|
lx={{
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
|
|
|
2
2
|
import { Box, Text } from '../../primitives';
|
|
3
3
|
import { Checkbox } from './Checkbox';
|
|
4
4
|
|
|
5
|
-
const meta
|
|
5
|
+
const meta = {
|
|
6
6
|
id: 'rnative-checkbox',
|
|
7
7
|
title: 'Core/Checkbox',
|
|
8
8
|
component: Checkbox,
|
|
@@ -41,10 +41,10 @@ const meta: Meta<typeof Checkbox> = {
|
|
|
41
41
|
description: 'The label text of the checkbox',
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
|
-
}
|
|
44
|
+
} satisfies Meta<typeof Checkbox>;
|
|
45
45
|
|
|
46
46
|
export default meta;
|
|
47
|
-
type Story = StoryObj<typeof
|
|
47
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* The base checkbox in its normal state.
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ContentBannerTitle,
|
|
13
13
|
} from './ContentBanner';
|
|
14
14
|
|
|
15
|
-
const meta
|
|
15
|
+
const meta = {
|
|
16
16
|
component: ContentBanner,
|
|
17
17
|
id: 'rnative-contentbanner',
|
|
18
18
|
title: 'Core/ContentBanner',
|
|
@@ -42,13 +42,14 @@ const meta: Meta<typeof ContentBanner> = {
|
|
|
42
42
|
description: 'Accessibility label for the close button',
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
|
-
}
|
|
45
|
+
} satisfies Meta<typeof ContentBanner>;
|
|
46
46
|
|
|
47
47
|
export default meta;
|
|
48
48
|
type Story = StoryObj<typeof ContentBanner>;
|
|
49
49
|
|
|
50
50
|
export const Base: Story = {
|
|
51
51
|
args: {
|
|
52
|
+
children: null,
|
|
52
53
|
closeAccessibilityLabel: 'Close content banner',
|
|
53
54
|
},
|
|
54
55
|
render: (args) => (
|
|
@@ -84,6 +85,9 @@ export const Base: Story = {
|
|
|
84
85
|
};
|
|
85
86
|
|
|
86
87
|
export const WithClose: Story = {
|
|
88
|
+
args: {
|
|
89
|
+
children: null,
|
|
90
|
+
},
|
|
87
91
|
render: () => {
|
|
88
92
|
const [visible, setVisible] = useState(true);
|
|
89
93
|
|
|
@@ -119,6 +123,9 @@ export const WithClose: Story = {
|
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
export const ContentVariationsShowcase: Story = {
|
|
126
|
+
args: {
|
|
127
|
+
children: null,
|
|
128
|
+
},
|
|
122
129
|
render: () => (
|
|
123
130
|
<Box
|
|
124
131
|
lx={{
|
|
@@ -173,6 +180,9 @@ export const ContentVariationsShowcase: Story = {
|
|
|
173
180
|
};
|
|
174
181
|
|
|
175
182
|
export const WithStepper: Story = {
|
|
183
|
+
args: {
|
|
184
|
+
children: null,
|
|
185
|
+
},
|
|
176
186
|
render: () => (
|
|
177
187
|
<Box lx={{ maxWidth: 's400' }}>
|
|
178
188
|
<ContentBanner onClose={() => console.log('close')}>
|
|
@@ -189,6 +199,9 @@ export const WithStepper: Story = {
|
|
|
189
199
|
};
|
|
190
200
|
|
|
191
201
|
export const ResponsiveLayout: Story = {
|
|
202
|
+
args: {
|
|
203
|
+
children: null,
|
|
204
|
+
},
|
|
192
205
|
render: () => (
|
|
193
206
|
<Box
|
|
194
207
|
lx={{
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DescriptionItemValue,
|
|
13
13
|
} from './DescriptionItem';
|
|
14
14
|
|
|
15
|
-
const meta
|
|
15
|
+
const meta = {
|
|
16
16
|
component: DescriptionItem,
|
|
17
17
|
id: 'rnative-descriptionitem',
|
|
18
18
|
title: 'Core/DescriptionItem',
|
|
@@ -40,13 +40,14 @@ const meta: Meta<typeof DescriptionItem> = {
|
|
|
40
40
|
</Box>
|
|
41
41
|
),
|
|
42
42
|
],
|
|
43
|
-
}
|
|
43
|
+
} satisfies Meta<typeof DescriptionItem>;
|
|
44
44
|
|
|
45
45
|
export default meta;
|
|
46
46
|
type Story = StoryObj<typeof DescriptionItem>;
|
|
47
47
|
|
|
48
48
|
export const Base: Story = {
|
|
49
49
|
args: {
|
|
50
|
+
children: null,
|
|
50
51
|
size: 'md',
|
|
51
52
|
},
|
|
52
53
|
render: (args) => (
|
|
@@ -63,6 +64,7 @@ export const Base: Story = {
|
|
|
63
64
|
|
|
64
65
|
export const SizeShowcase: Story = {
|
|
65
66
|
args: {
|
|
67
|
+
children: null,
|
|
66
68
|
size: 'md',
|
|
67
69
|
},
|
|
68
70
|
render: () => (
|
|
@@ -107,6 +109,9 @@ export const SizeShowcase: Story = {
|
|
|
107
109
|
};
|
|
108
110
|
|
|
109
111
|
export const TrailingVariants: Story = {
|
|
112
|
+
args: {
|
|
113
|
+
children: null,
|
|
114
|
+
},
|
|
110
115
|
render: () => (
|
|
111
116
|
<Box lx={{ gap: 's16' }}>
|
|
112
117
|
<DescriptionItem>
|
|
@@ -141,6 +146,9 @@ export const TrailingVariants: Story = {
|
|
|
141
146
|
};
|
|
142
147
|
|
|
143
148
|
export const WithInfoIcon: Story = {
|
|
149
|
+
args: {
|
|
150
|
+
children: null,
|
|
151
|
+
},
|
|
144
152
|
render: () => (
|
|
145
153
|
<Box lx={{ gap: 's16' }}>
|
|
146
154
|
<DescriptionItem>
|
|
@@ -189,6 +197,9 @@ export const WithInfoIcon: Story = {
|
|
|
189
197
|
};
|
|
190
198
|
|
|
191
199
|
export const PriorityShowcase: Story = {
|
|
200
|
+
args: {
|
|
201
|
+
children: null,
|
|
202
|
+
},
|
|
192
203
|
render: () => (
|
|
193
204
|
<Box lx={{ gap: 's16' }}>
|
|
194
205
|
<DescriptionItem priority='end'>
|
|
@@ -3,14 +3,14 @@ import { Box } from '../../primitives/Box';
|
|
|
3
3
|
import { Text } from '../../primitives/Text';
|
|
4
4
|
import { Divider } from './Divider';
|
|
5
5
|
|
|
6
|
-
const meta
|
|
6
|
+
const meta = {
|
|
7
7
|
component: Divider,
|
|
8
8
|
id: 'rnative-divider',
|
|
9
9
|
title: 'Core/Divider',
|
|
10
10
|
parameters: {
|
|
11
11
|
actions: { disable: true },
|
|
12
12
|
},
|
|
13
|
-
}
|
|
13
|
+
} satisfies Meta<typeof Divider>;
|
|
14
14
|
|
|
15
15
|
export default meta;
|
|
16
16
|
type Story = StoryObj<typeof Divider>;
|
|
@@ -21,7 +21,7 @@ const meta = {
|
|
|
21
21
|
} satisfies Meta<typeof DotSymbol>;
|
|
22
22
|
|
|
23
23
|
export default meta;
|
|
24
|
-
type Story = StoryObj<typeof
|
|
24
|
+
type Story = StoryObj<typeof DotSymbol>;
|
|
25
25
|
|
|
26
26
|
const parentSrc = 'https://crypto-icons.ledger.com/ADA.png';
|
|
27
27
|
const dotSrc = 'https://crypto-icons.ledger.com/BTC.png';
|
|
@@ -11,7 +11,7 @@ const iconMap = {
|
|
|
11
11
|
Close,
|
|
12
12
|
} as const;
|
|
13
13
|
|
|
14
|
-
const meta
|
|
14
|
+
const meta = {
|
|
15
15
|
id: 'rnative-iconbutton',
|
|
16
16
|
title: 'Core/IconButton',
|
|
17
17
|
component: IconButton,
|
|
@@ -53,7 +53,7 @@ const meta: Meta<typeof IconButton> = {
|
|
|
53
53
|
control: 'boolean',
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
-
}
|
|
56
|
+
} satisfies Meta<typeof IconButton>;
|
|
57
57
|
|
|
58
58
|
export default meta;
|
|
59
59
|
type Story = StoryObj<typeof IconButton>;
|
|
@@ -68,6 +68,10 @@ export const Base: Story = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export const AppearanceShowcase: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
accessibilityLabel: 'Settings',
|
|
73
|
+
icon: Settings,
|
|
74
|
+
},
|
|
71
75
|
render: () => (
|
|
72
76
|
<Box lx={{ flexDirection: 'row', gap: 's8' }}>
|
|
73
77
|
<IconButton accessibilityLabel='Add' icon={Plus} appearance='accent' />
|
|
@@ -89,6 +93,10 @@ export const AppearanceShowcase: Story = {
|
|
|
89
93
|
};
|
|
90
94
|
|
|
91
95
|
export const SizesShowcase: Story = {
|
|
96
|
+
args: {
|
|
97
|
+
accessibilityLabel: 'Settings',
|
|
98
|
+
icon: Settings,
|
|
99
|
+
},
|
|
92
100
|
render: () => (
|
|
93
101
|
<Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's8' }}>
|
|
94
102
|
<IconButton
|
|
@@ -117,6 +125,8 @@ export const SizesShowcase: Story = {
|
|
|
117
125
|
|
|
118
126
|
export const StatesShowcase: Story = {
|
|
119
127
|
args: {
|
|
128
|
+
accessibilityLabel: 'Settings',
|
|
129
|
+
icon: Settings,
|
|
120
130
|
appearance: 'base',
|
|
121
131
|
},
|
|
122
132
|
render: ({ appearance }) => (
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../../symbols';
|
|
9
9
|
import { InteractiveIcon } from './InteractiveIcon';
|
|
10
10
|
|
|
11
|
-
const meta
|
|
11
|
+
const meta = {
|
|
12
12
|
component: InteractiveIcon,
|
|
13
13
|
id: 'rnative-interactiveicon',
|
|
14
14
|
title: 'Core/InteractiveIcon',
|
|
@@ -32,7 +32,7 @@ const meta: Meta<typeof InteractiveIcon> = {
|
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
|
-
}
|
|
35
|
+
} satisfies Meta<typeof InteractiveIcon>;
|
|
36
36
|
|
|
37
37
|
export default meta;
|
|
38
38
|
type Story = StoryObj<typeof InteractiveIcon>;
|
|
@@ -72,6 +72,10 @@ export const Stroked: Story = {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
export const IconTypeShowcase: Story = {
|
|
75
|
+
args: {
|
|
76
|
+
iconType: 'filled',
|
|
77
|
+
icon: DeleteCircleFill,
|
|
78
|
+
},
|
|
75
79
|
render: () => {
|
|
76
80
|
return (
|
|
77
81
|
<Box lx={{ flexDirection: 'row', gap: 's16', padding: 's8' }}>
|
|
@@ -101,6 +105,10 @@ export const IconTypeShowcase: Story = {
|
|
|
101
105
|
};
|
|
102
106
|
|
|
103
107
|
export const SizesShowcase: Story = {
|
|
108
|
+
args: {
|
|
109
|
+
iconType: 'filled',
|
|
110
|
+
icon: DeleteCircleFill,
|
|
111
|
+
},
|
|
104
112
|
render: () => {
|
|
105
113
|
const iconSizes = [16, 20, 24, 40] as const;
|
|
106
114
|
return (
|
|
@@ -132,6 +140,10 @@ export const SizesShowcase: Story = {
|
|
|
132
140
|
};
|
|
133
141
|
|
|
134
142
|
export const StatesShowcase: Story = {
|
|
143
|
+
args: {
|
|
144
|
+
iconType: 'filled',
|
|
145
|
+
icon: DeleteCircleFill,
|
|
146
|
+
},
|
|
135
147
|
render: () => {
|
|
136
148
|
return (
|
|
137
149
|
<Box
|