@ledgerhq/lumen-ui-rnative 0.1.13 → 0.1.15
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/i18n/i18n.js +2 -0
- package/dist/module/i18n/i18n.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/Animations/Spin/Spin.js +3 -1
- package/dist/module/lib/Animations/Spin/Spin.js.map +1 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.test.js +0 -1
- package/dist/module/lib/Components/AmountDisplay/AmountDisplay.test.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.figma.js +26 -0
- package/dist/module/lib/Components/Avatar/Avatar.figma.js.map +1 -0
- package/dist/module/lib/Components/Avatar/Avatar.stories.js +0 -1
- package/dist/module/lib/Components/Avatar/Avatar.stories.js.map +1 -1
- package/dist/module/lib/Components/Avatar/Avatar.test.js +0 -1
- package/dist/module/lib/Components/Avatar/Avatar.test.js.map +1 -1
- package/dist/module/lib/Components/Banner/Banner.stories.js +3 -3
- package/dist/module/lib/Components/Banner/Banner.stories.js.map +1 -1
- package/dist/module/lib/Components/Banner/Banner.test.js +0 -1
- package/dist/module/lib/Components/Banner/Banner.test.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.js +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.test.js +0 -1
- package/dist/module/lib/Components/BottomSheet/BottomSheet.test.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/CustomBackdrop.js +0 -2
- package/dist/module/lib/Components/BottomSheet/CustomBackdrop.js.map +1 -1
- package/dist/module/lib/Components/BottomSheet/CustomHandle.js +0 -1
- package/dist/module/lib/Components/BottomSheet/CustomHandle.js.map +1 -1
- package/dist/module/lib/Components/Button/BaseButton.test.js +0 -1
- package/dist/module/lib/Components/Button/BaseButton.test.js.map +1 -1
- package/dist/module/lib/Components/Button/Button.stories.js +2 -2
- package/dist/module/lib/Components/Button/Button.stories.js.map +1 -1
- package/dist/module/lib/Components/Card/Card.js +3 -3
- package/dist/module/lib/Components/Card/Card.js.map +1 -1
- package/dist/module/lib/Components/Card/Card.test.js +0 -1
- package/dist/module/lib/Components/Card/Card.test.js.map +1 -1
- package/dist/module/lib/Components/CardButton/CardButton.test.js +0 -1
- package/dist/module/lib/Components/CardButton/CardButton.test.js.map +1 -1
- package/dist/module/lib/Components/Checkbox/BaseCheckbox.js +1 -1
- package/dist/module/lib/Components/Checkbox/BaseCheckbox.js.map +1 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.test.js +0 -1
- package/dist/module/lib/Components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.stories.js +2 -2
- package/dist/module/lib/Components/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.test.js +0 -1
- package/dist/module/lib/Components/ContentBanner/ContentBanner.test.js.map +1 -1
- package/dist/module/lib/Components/Divider/Divider.test.js +0 -1
- package/dist/module/lib/Components/Divider/Divider.test.js.map +1 -1
- package/dist/module/lib/Components/Icon/Icon.js +2 -1
- package/dist/module/lib/Components/Icon/Icon.js.map +1 -1
- package/dist/module/lib/Components/Icon/Icon.test.js +0 -1
- package/dist/module/lib/Components/Icon/Icon.test.js.map +1 -1
- package/dist/module/lib/Components/Icon/createIcon.js +4 -2
- package/dist/module/lib/Components/Icon/createIcon.js.map +1 -1
- package/dist/module/lib/Components/IconButton/IconButton.test.js +0 -1
- package/dist/module/lib/Components/IconButton/IconButton.test.js.map +1 -1
- package/dist/module/lib/Components/Link/Link.test.js +3 -3
- package/dist/module/lib/Components/Link/Link.test.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.js +64 -179
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.mdx +53 -49
- package/dist/module/lib/Components/ListItem/ListItem.stories.js +65 -59
- package/dist/module/lib/Components/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/NavBar/NavBar.js +3 -3
- package/dist/module/lib/Components/NavBar/NavBar.js.map +1 -1
- package/dist/module/lib/Components/NavBar/NavBar.test.js +0 -1
- package/dist/module/lib/Components/NavBar/NavBar.test.js.map +1 -1
- package/dist/module/lib/Components/PageIndicator/PageIndicator.test.js +2 -2
- package/dist/module/lib/Components/PageIndicator/PageIndicator.test.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.js +46 -14
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js +90 -64
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.test.js +0 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControl.test.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/SegmentedControlContext.js.map +1 -1
- package/dist/module/lib/Components/SegmentedControl/usePillLayout.js +40 -16
- package/dist/module/lib/Components/SegmentedControl/usePillLayout.js.map +1 -1
- package/dist/module/lib/Components/Select/GlobalSelectBottomSheet.js +1 -1
- package/dist/module/lib/Components/Select/GlobalSelectBottomSheet.js.map +1 -1
- package/dist/module/lib/Components/Select/GlobalSelectContext.js +1 -1
- package/dist/module/lib/Components/Select/GlobalSelectContext.js.map +1 -1
- package/dist/module/lib/Components/Select/Select.js +3 -3
- package/dist/module/lib/Components/Select/Select.js.map +1 -1
- package/dist/module/lib/Components/Select/Select.test.js +0 -1
- package/dist/module/lib/Components/Select/Select.test.js.map +1 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.test.js +0 -1
- package/dist/module/lib/Components/Skeleton/Skeleton.test.js.map +1 -1
- package/dist/module/lib/Components/Slot/Slot.js +4 -0
- package/dist/module/lib/Components/Slot/Slot.js.map +1 -1
- package/dist/module/lib/Components/Spinner/Spinner.mdx +1 -3
- package/dist/module/lib/Components/Spot/Spot.stories.js +0 -1
- package/dist/module/lib/Components/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/Stepper/Stepper.mdx +1 -3
- package/dist/module/lib/Components/Stepper/Stepper.test.js +0 -1
- package/dist/module/lib/Components/Stepper/Stepper.test.js.map +1 -1
- package/dist/module/lib/Components/Subheader/Subheader.stories.js +0 -1
- package/dist/module/lib/Components/Subheader/Subheader.stories.js.map +1 -1
- package/dist/module/lib/Components/Subheader/Subheader.test.js +0 -1
- package/dist/module/lib/Components/Subheader/Subheader.test.js.map +1 -1
- package/dist/module/lib/Components/Switch/BaseSwitch.js +1 -1
- package/dist/module/lib/Components/Switch/BaseSwitch.js.map +1 -1
- package/dist/module/lib/Components/Switch/Switch.test.js +0 -1
- package/dist/module/lib/Components/Switch/Switch.test.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.js +8 -8
- package/dist/module/lib/Components/TabBar/TabBar.js.map +1 -1
- package/dist/module/lib/Components/TabBar/TabBar.test.js +0 -1
- package/dist/module/lib/Components/TabBar/TabBar.test.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.js +1 -0
- package/dist/module/lib/Components/Tag/Tag.js.map +1 -1
- package/dist/module/lib/Components/Tag/Tag.mdx +6 -0
- package/dist/module/lib/Components/Tag/Tag.stories.js +10 -0
- package/dist/module/lib/Components/Tag/Tag.stories.js.map +1 -1
- package/dist/module/lib/Components/Tile/Tile.stories.js +0 -1
- package/dist/module/lib/Components/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/Tile/Tile.test.js +0 -1
- package/dist/module/lib/Components/Tile/Tile.test.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.test.js +0 -1
- package/dist/module/lib/Components/TileButton/TileButton.test.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipBottomSheet.js +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipBottomSheet.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipContext.js +1 -1
- package/dist/module/lib/Components/Tooltip/GlobalTooltipContext.js.map +1 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.test.js +0 -1
- package/dist/module/lib/Components/Tooltip/Tooltip.test.js.map +1 -1
- package/dist/module/lib/Components/TriggerButton/TriggerButton.test.js +1 -1
- package/dist/module/lib/Components/TriggerButton/TriggerButton.test.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.test.js +1 -1
- package/dist/module/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.test.js.map +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.test.js +1 -1
- package/dist/module/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.test.js.map +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.test.js +1 -1
- package/dist/module/lib/Components/Utility/Pressable/Pressable.test.js.map +1 -1
- package/dist/module/lib/Symbols/Icons/Csv.js +1 -1
- package/dist/module/lib/Symbols/Icons/Csv.js.map +1 -1
- package/dist/module/lib/Symbols/Icons/TriangleDown.js +47 -0
- package/dist/module/lib/Symbols/Icons/TriangleDown.js.map +1 -0
- package/dist/module/lib/Symbols/Icons/TriangleUp.js +47 -0
- package/dist/module/lib/Symbols/Icons/TriangleUp.js.map +1 -0
- package/dist/module/lib/Symbols/index.js +2 -0
- package/dist/module/lib/Symbols/index.js.map +1 -1
- package/dist/module/lib/utils/react/extractTextFromChildren.js +3 -3
- package/dist/module/lib/utils/react/extractTextFromChildren.js.map +1 -1
- package/dist/module/lib/utils/useControllableState/useControllableState.js +5 -5
- package/dist/module/lib/utils/useControllableState/useControllableState.js.map +1 -1
- package/dist/module/lib/utils/useEvent/useGet.js +3 -3
- package/dist/module/lib/utils/useEvent/useGet.js.map +1 -1
- package/dist/module/styles/hooks/useStyleSheet.test.js +1 -1
- package/dist/module/styles/hooks/useStyleSheet.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledPressable.test.js +1 -1
- package/dist/module/styles/lx/createStyledPressable.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledText.test.js +1 -1
- package/dist/module/styles/lx/createStyledText.test.js.map +1 -1
- package/dist/module/styles/lx/createStyledView.test.js +1 -1
- package/dist/module/styles/lx/createStyledView.test.js.map +1 -1
- package/dist/module/styles/lx/resolveStyle.test.js +0 -1
- package/dist/module/styles/lx/resolveStyle.test.js.map +1 -1
- package/dist/module/styles/provider/LumenStyleSheetProvider.test.js +2 -4
- package/dist/module/styles/provider/LumenStyleSheetProvider.test.js.map +1 -1
- package/dist/module/utils/icon-template.js +3 -0
- package/dist/module/utils/icon-template.js.map +1 -1
- package/dist/typescript/src/i18n/i18n.d.ts.map +1 -1
- package/dist/typescript/src/index.d.ts +0 -1
- package/dist/typescript/src/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Animations/Spin/Spin.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts +2 -0
- package/dist/typescript/src/lib/Components/Avatar/Avatar.figma.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/BottomSheet/CustomBackdrop.d.ts +0 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomBackdrop.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BottomSheet/CustomHandle.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/CardButton/types.d.ts +0 -1
- package/dist/typescript/src/lib/Components/CardButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ContentBanner/types.d.ts +0 -1
- package/dist/typescript/src/lib/Components/ContentBanner/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Icon/createIcon.d.ts +1 -2
- package/dist/typescript/src/lib/Components/Icon/createIcon.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +21 -40
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts +10 -37
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControlContext.d.ts +6 -0
- package/dist/typescript/src/lib/Components/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/types.d.ts +7 -0
- package/dist/typescript/src/lib/Components/SegmentedControl/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SegmentedControl/usePillLayout.d.ts +7 -3
- package/dist/typescript/src/lib/Components/SegmentedControl/usePillLayout.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/GlobalSelectBottomSheet.d.ts +0 -1
- package/dist/typescript/src/lib/Components/Select/GlobalSelectBottomSheet.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/GlobalSelectContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Select/GlobalSelectContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Slot/Slot.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Spot/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Switch/BaseSwitch.d.ts +0 -1
- package/dist/typescript/src/lib/Components/Switch/BaseSwitch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipBottomSheet.d.ts +0 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipBottomSheet.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipContext.d.ts +1 -1
- package/dist/typescript/src/lib/Components/Tooltip/GlobalTooltipContext.d.ts.map +1 -1
- package/dist/typescript/src/lib/Symbols/Icons/TriangleDown.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/TriangleDown.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/Icons/TriangleUp.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/TriangleUp.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts +2 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/types/index.d.ts +6 -6
- package/dist/typescript/src/lib/types/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts +2 -2
- package/dist/typescript/src/lib/utils/react/extractTextFromChildren.d.ts.map +1 -1
- package/dist/typescript/src/lib/utils/useControllableState/useControllableState.d.ts +3 -3
- package/dist/typescript/src/lib/utils/useControllableState/useControllableState.d.ts.map +1 -1
- package/dist/typescript/src/utils/icon-template.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/i18n/i18n.ts +2 -0
- package/src/index.ts +0 -1
- package/src/lib/Animations/Spin/Spin.tsx +5 -1
- package/src/lib/Components/AmountDisplay/AmountDisplay.test.tsx +0 -1
- package/src/lib/Components/Avatar/Avatar.figma.tsx +29 -0
- package/src/lib/Components/Avatar/Avatar.stories.tsx +0 -1
- package/src/lib/Components/Avatar/Avatar.test.tsx +0 -1
- package/src/lib/Components/Banner/Banner.stories.tsx +3 -3
- package/src/lib/Components/Banner/Banner.test.tsx +0 -1
- package/src/lib/Components/BottomSheet/BottomSheet.test.tsx +0 -1
- package/src/lib/Components/BottomSheet/BottomSheet.tsx +1 -1
- package/src/lib/Components/BottomSheet/CustomBackdrop.tsx +0 -2
- package/src/lib/Components/BottomSheet/CustomHandle.tsx +1 -1
- package/src/lib/Components/Button/BaseButton.test.tsx +0 -1
- package/src/lib/Components/Button/Button.stories.tsx +2 -2
- package/src/lib/Components/Card/Card.test.tsx +0 -1
- package/src/lib/Components/Card/Card.tsx +3 -2
- package/src/lib/Components/CardButton/CardButton.test.tsx +0 -1
- package/src/lib/Components/CardButton/types.ts +0 -1
- package/src/lib/Components/Checkbox/BaseCheckbox.tsx +1 -1
- package/src/lib/Components/Checkbox/Checkbox.test.tsx +0 -1
- package/src/lib/Components/ContentBanner/ContentBanner.stories.tsx +2 -2
- package/src/lib/Components/ContentBanner/ContentBanner.test.tsx +0 -1
- package/src/lib/Components/ContentBanner/types.ts +0 -1
- package/src/lib/Components/Divider/Divider.test.tsx +0 -1
- package/src/lib/Components/Icon/Icon.test.tsx +0 -1
- package/src/lib/Components/Icon/Icon.tsx +1 -1
- package/src/lib/Components/Icon/createIcon.ts +3 -2
- package/src/lib/Components/IconButton/IconButton.test.tsx +0 -1
- package/src/lib/Components/Link/Link.test.tsx +3 -3
- package/src/lib/Components/ListItem/ListItem.mdx +53 -49
- package/src/lib/Components/ListItem/ListItem.stories.tsx +51 -54
- package/src/lib/Components/ListItem/ListItem.tsx +80 -210
- package/src/lib/Components/ListItem/types.ts +10 -41
- package/src/lib/Components/NavBar/NavBar.test.tsx +0 -1
- package/src/lib/Components/NavBar/NavBar.tsx +3 -3
- package/src/lib/Components/PageIndicator/PageIndicator.test.tsx +2 -2
- package/src/lib/Components/SegmentedControl/SegmentedControl.mdx +0 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.stories.tsx +77 -51
- package/src/lib/Components/SegmentedControl/SegmentedControl.test.tsx +0 -1
- package/src/lib/Components/SegmentedControl/SegmentedControl.tsx +42 -9
- package/src/lib/Components/SegmentedControl/SegmentedControlContext.tsx +4 -0
- package/src/lib/Components/SegmentedControl/types.ts +7 -0
- package/src/lib/Components/SegmentedControl/usePillLayout.ts +66 -19
- package/src/lib/Components/Select/GlobalSelectBottomSheet.tsx +1 -1
- package/src/lib/Components/Select/GlobalSelectContext.tsx +1 -1
- package/src/lib/Components/Select/Select.test.tsx +0 -1
- package/src/lib/Components/Select/Select.tsx +16 -14
- package/src/lib/Components/Skeleton/Skeleton.test.tsx +0 -1
- package/src/lib/Components/Slot/Slot.tsx +4 -0
- package/src/lib/Components/Spinner/Spinner.mdx +1 -3
- package/src/lib/Components/Spot/Spot.stories.tsx +0 -1
- package/src/lib/Components/Spot/types.ts +2 -2
- package/src/lib/Components/Stepper/Stepper.mdx +1 -3
- package/src/lib/Components/Stepper/Stepper.test.tsx +0 -1
- package/src/lib/Components/Subheader/Subheader.stories.tsx +0 -1
- package/src/lib/Components/Subheader/Subheader.test.tsx +0 -1
- package/src/lib/Components/Switch/BaseSwitch.tsx +1 -1
- package/src/lib/Components/Switch/Switch.test.tsx +0 -1
- package/src/lib/Components/TabBar/TabBar.test.tsx +0 -1
- package/src/lib/Components/TabBar/TabBar.tsx +12 -5
- package/src/lib/Components/Tag/Tag.mdx +6 -0
- package/src/lib/Components/Tag/Tag.stories.tsx +8 -0
- package/src/lib/Components/Tag/Tag.tsx +3 -1
- package/src/lib/Components/Tile/Tile.stories.tsx +0 -1
- package/src/lib/Components/Tile/Tile.test.tsx +0 -1
- package/src/lib/Components/TileButton/TileButton.test.tsx +0 -1
- package/src/lib/Components/Tooltip/GlobalTooltipBottomSheet.tsx +1 -1
- package/src/lib/Components/Tooltip/GlobalTooltipContext.tsx +1 -7
- package/src/lib/Components/Tooltip/Tooltip.test.tsx +0 -1
- package/src/lib/Components/TriggerButton/TriggerButton.test.tsx +1 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.stories.tsx +1 -1
- package/src/lib/Components/Utility/Gradient/LinearGradient/LinearGradient.test.tsx +1 -1
- package/src/lib/Components/Utility/Gradient/RadialGradient/RadialGradient.test.tsx +1 -1
- package/src/lib/Components/Utility/Pressable/Pressable.test.tsx +1 -1
- package/src/lib/Symbols/Icons/Csv.tsx +1 -1
- package/src/lib/Symbols/Icons/TriangleDown.tsx +42 -0
- package/src/lib/Symbols/Icons/TriangleUp.tsx +42 -0
- package/src/lib/Symbols/index.ts +2 -0
- package/src/lib/types/index.ts +7 -7
- package/src/lib/utils/react/extractTextFromChildren.ts +4 -4
- package/src/lib/utils/useControllableState/useControllableState.ts +7 -9
- package/src/lib/utils/useEvent/useGet.ts +3 -3
- package/src/styles/hooks/useStyleSheet.test.tsx +1 -1
- package/src/styles/lx/createStyledPressable.test.tsx +1 -1
- package/src/styles/lx/createStyledText.test.tsx +1 -1
- package/src/styles/lx/createStyledView.test.tsx +1 -1
- package/src/styles/lx/resolveStyle.test.tsx +0 -1
- package/src/styles/provider/LumenStyleSheetProvider.test.tsx +2 -2
- package/src/utils/icon-template.ts +2 -0
- package/dist/module/lib/Patterns/index.js +0 -4
- package/dist/module/lib/Patterns/index.js.map +0 -1
- package/dist/typescript/src/lib/Patterns/index.d.ts +0 -3
- package/dist/typescript/src/lib/Patterns/index.d.ts.map +0 -1
- package/src/lib/Patterns/index.ts +0 -1
|
@@ -5,11 +5,10 @@ import {
|
|
|
5
5
|
ListItem,
|
|
6
6
|
ListItemLeading,
|
|
7
7
|
ListItemContent,
|
|
8
|
+
ListItemContentRow,
|
|
8
9
|
ListItemTitle,
|
|
9
10
|
ListItemDescription,
|
|
10
11
|
ListItemTrailing,
|
|
11
|
-
ListItemSpot,
|
|
12
|
-
ListItemTruncate,
|
|
13
12
|
} from './ListItem';
|
|
14
13
|
import {
|
|
15
14
|
CustomTabs,
|
|
@@ -39,10 +38,10 @@ ListItems are flexible interactive elements designed for lists. They use a compo
|
|
|
39
38
|
|
|
40
39
|
- **ListItem**: Root interactive container (Pressable)
|
|
41
40
|
- **ListItemLeading**: Left section containing visual element and content
|
|
42
|
-
- **ListItemSpot**: Spot adapter that inherits disabled state from parent ListItem
|
|
43
41
|
- **ListItemContent**: Container for title and description
|
|
42
|
+
- **ListItemContentRow**: Horizontal row within ListItemContent for placing a title or description alongside inline elements like Tag
|
|
44
43
|
- **ListItemTitle**: The main label of the item (required)
|
|
45
|
-
- **ListItemDescription**: Provides additional context
|
|
44
|
+
- **ListItemDescription**: Provides additional context
|
|
46
45
|
- **ListItemTrailing**: Right section for trailing content (chevron, switch, value, etc.)
|
|
47
46
|
|
|
48
47
|
## Properties
|
|
@@ -60,7 +59,7 @@ ListItems follow composite component pattern to allow for maximum flexibility ov
|
|
|
60
59
|
|
|
61
60
|
### Disabled State
|
|
62
61
|
|
|
63
|
-
When disabled, the ListItem becomes non-interactive. The disabled state is automatically propagated to
|
|
62
|
+
When disabled, the ListItem becomes non-interactive. The disabled state is automatically propagated to sub-components via context.
|
|
64
63
|
|
|
65
64
|
<Canvas of={ListItemStories.DisabledState} />
|
|
66
65
|
|
|
@@ -154,7 +153,7 @@ function MyComponent() {
|
|
|
154
153
|
|
|
155
154
|
### With Leading Content
|
|
156
155
|
|
|
157
|
-
|
|
156
|
+
Use a `Spot` component as leading visual element for identification:
|
|
158
157
|
|
|
159
158
|
```tsx
|
|
160
159
|
import {
|
|
@@ -164,7 +163,7 @@ import {
|
|
|
164
163
|
ListItemTitle,
|
|
165
164
|
ListItemDescription,
|
|
166
165
|
ListItemTrailing,
|
|
167
|
-
|
|
166
|
+
Spot,
|
|
168
167
|
} from '@ledgerhq/lumen-ui-rnative';
|
|
169
168
|
import { Settings, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
170
169
|
|
|
@@ -172,7 +171,7 @@ function MyComponent() {
|
|
|
172
171
|
return (
|
|
173
172
|
<ListItem>
|
|
174
173
|
<ListItemLeading>
|
|
175
|
-
<
|
|
174
|
+
<Spot appearance='icon' icon={Settings} />
|
|
176
175
|
<ListItemContent>
|
|
177
176
|
<ListItemTitle>Settings</ListItemTitle>
|
|
178
177
|
<ListItemDescription>
|
|
@@ -201,7 +200,7 @@ import {
|
|
|
201
200
|
ListItemTitle,
|
|
202
201
|
ListItemDescription,
|
|
203
202
|
ListItemTrailing,
|
|
204
|
-
|
|
203
|
+
Spot,
|
|
205
204
|
Switch,
|
|
206
205
|
Tag,
|
|
207
206
|
Box,
|
|
@@ -216,7 +215,7 @@ function ListVariants() {
|
|
|
216
215
|
{/* Chevron - For navigation items */}
|
|
217
216
|
<ListItem>
|
|
218
217
|
<ListItemLeading>
|
|
219
|
-
<
|
|
218
|
+
<Spot appearance='icon' icon={User} />
|
|
220
219
|
<ListItemContent>
|
|
221
220
|
<ListItemTitle>Chevron Variant</ListItemTitle>
|
|
222
221
|
<ListItemDescription>With description</ListItemDescription>
|
|
@@ -230,7 +229,7 @@ function ListVariants() {
|
|
|
230
229
|
{/* Switch - For switchable options */}
|
|
231
230
|
<ListItem onPress={() => setSelected(!selected)}>
|
|
232
231
|
<ListItemLeading>
|
|
233
|
-
<
|
|
232
|
+
<Spot appearance='icon' icon={User} />
|
|
234
233
|
<ListItemContent>
|
|
235
234
|
<ListItemTitle>Enable Feature</ListItemTitle>
|
|
236
235
|
<ListItemDescription>Toggle this setting on/off</ListItemDescription>
|
|
@@ -244,14 +243,14 @@ function ListVariants() {
|
|
|
244
243
|
{/* Value - For displaying values */}
|
|
245
244
|
<ListItem>
|
|
246
245
|
<ListItemLeading>
|
|
247
|
-
<
|
|
246
|
+
<Spot appearance='icon' icon={User} />
|
|
248
247
|
<ListItemContent>
|
|
249
248
|
<ListItemTitle>Account Balance</ListItemTitle>
|
|
250
249
|
<ListItemDescription>Current available funds</ListItemDescription>
|
|
251
250
|
</ListItemContent>
|
|
252
251
|
</ListItemLeading>
|
|
253
252
|
<ListItemTrailing>
|
|
254
|
-
<ListItemContent
|
|
253
|
+
<ListItemContent>
|
|
255
254
|
<ListItemTitle>42.00</ListItemTitle>
|
|
256
255
|
<ListItemDescription>USD</ListItemDescription>
|
|
257
256
|
</ListItemContent>
|
|
@@ -261,7 +260,7 @@ function ListVariants() {
|
|
|
261
260
|
{/* Tag - For status indicators */}
|
|
262
261
|
<ListItem>
|
|
263
262
|
<ListItemLeading>
|
|
264
|
-
<
|
|
263
|
+
<Spot appearance='icon' icon={User} />
|
|
265
264
|
<ListItemContent>
|
|
266
265
|
<ListItemTitle>New Feature</ListItemTitle>
|
|
267
266
|
<ListItemDescription>Recently added functionality</ListItemDescription>
|
|
@@ -275,7 +274,7 @@ function ListVariants() {
|
|
|
275
274
|
{/* Icon - For trailing icons */}
|
|
276
275
|
<ListItem>
|
|
277
276
|
<ListItemLeading>
|
|
278
|
-
<
|
|
277
|
+
<Spot appearance='icon' icon={User} />
|
|
279
278
|
<ListItemContent>
|
|
280
279
|
<ListItemTitle>Edit Profile</ListItemTitle>
|
|
281
280
|
<ListItemDescription>Modify your information</ListItemDescription>
|
|
@@ -289,7 +288,7 @@ function ListVariants() {
|
|
|
289
288
|
{/* None - No trailing content */}
|
|
290
289
|
<ListItem>
|
|
291
290
|
<ListItemLeading>
|
|
292
|
-
<
|
|
291
|
+
<Spot appearance='icon' icon={User} />
|
|
293
292
|
<ListItemContent>
|
|
294
293
|
<ListItemTitle>Simple Item</ListItemTitle>
|
|
295
294
|
<ListItemDescription>No trailing elements</ListItemDescription>
|
|
@@ -301,33 +300,38 @@ function ListVariants() {
|
|
|
301
300
|
}
|
|
302
301
|
```
|
|
303
302
|
|
|
304
|
-
### With
|
|
303
|
+
### With Inline Tag
|
|
305
304
|
|
|
306
|
-
|
|
305
|
+
Use `ListItemContentRow` to place a Tag alongside a title or description. The row layout ensures the Tag keeps its natural size while the text truncates:
|
|
307
306
|
|
|
308
307
|
```tsx
|
|
309
308
|
import {
|
|
310
309
|
ListItem,
|
|
311
310
|
ListItemLeading,
|
|
312
311
|
ListItemContent,
|
|
312
|
+
ListItemContentRow,
|
|
313
313
|
ListItemTitle,
|
|
314
314
|
ListItemDescription,
|
|
315
|
-
ListItemTruncate,
|
|
316
315
|
ListItemTrailing,
|
|
316
|
+
Spot,
|
|
317
317
|
Tag,
|
|
318
318
|
} from '@ledgerhq/lumen-ui-rnative';
|
|
319
|
-
import {
|
|
319
|
+
import { Wallet, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
320
320
|
|
|
321
321
|
function MyComponent() {
|
|
322
322
|
return (
|
|
323
323
|
<ListItem>
|
|
324
324
|
<ListItemLeading>
|
|
325
|
+
<Spot appearance='icon' icon={Wallet} />
|
|
325
326
|
<ListItemContent>
|
|
326
|
-
<
|
|
327
|
-
|
|
328
|
-
<
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
<ListItemContentRow>
|
|
328
|
+
<ListItemTitle>New Item</ListItemTitle>
|
|
329
|
+
<Tag label='New' appearance='base' size='sm' />
|
|
330
|
+
</ListItemContentRow>
|
|
331
|
+
<ListItemContentRow>
|
|
332
|
+
<ListItemDescription>Recently added</ListItemDescription>
|
|
333
|
+
<Tag label='Status' appearance='gray' size='sm' />
|
|
334
|
+
</ListItemContentRow>
|
|
331
335
|
</ListItemContent>
|
|
332
336
|
</ListItemLeading>
|
|
333
337
|
<ListItemTrailing>
|
|
@@ -340,7 +344,7 @@ function MyComponent() {
|
|
|
340
344
|
|
|
341
345
|
### Disabled State
|
|
342
346
|
|
|
343
|
-
Disable the ListItem to prevent interaction. The disabled state is automatically propagated to
|
|
347
|
+
Disable the ListItem to prevent interaction. The disabled state is automatically propagated to sub-components via context:
|
|
344
348
|
|
|
345
349
|
```tsx
|
|
346
350
|
import {
|
|
@@ -350,14 +354,14 @@ import {
|
|
|
350
354
|
ListItemTitle,
|
|
351
355
|
ListItemDescription,
|
|
352
356
|
ListItemTrailing,
|
|
353
|
-
|
|
357
|
+
Spot,
|
|
354
358
|
Switch,
|
|
355
359
|
} from '@ledgerhq/lumen-ui-rnative';
|
|
356
360
|
import { Settings } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
357
361
|
|
|
358
362
|
<ListItem disabled>
|
|
359
363
|
<ListItemLeading>
|
|
360
|
-
<
|
|
364
|
+
<Spot appearance='icon' icon={Settings} />
|
|
361
365
|
<ListItemContent>
|
|
362
366
|
<ListItemTitle>Disabled Option</ListItemTitle>
|
|
363
367
|
<ListItemDescription>Cannot be changed</ListItemDescription>
|
|
@@ -381,13 +385,13 @@ import {
|
|
|
381
385
|
ListItemTitle,
|
|
382
386
|
ListItemDescription,
|
|
383
387
|
ListItemTrailing,
|
|
384
|
-
|
|
388
|
+
Spot,
|
|
385
389
|
} from '@ledgerhq/lumen-ui-rnative';
|
|
386
390
|
import { User, ChevronRight } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
387
391
|
|
|
388
392
|
<ListItem lx={{ maxWidth: 's256' }}>
|
|
389
393
|
<ListItemLeading>
|
|
390
|
-
<
|
|
394
|
+
<Spot appearance='icon' icon={User} />
|
|
391
395
|
<ListItemContent>
|
|
392
396
|
<ListItemTitle>Very Long Title That Will Truncate</ListItemTitle>
|
|
393
397
|
<ListItemDescription>
|
|
@@ -446,7 +450,7 @@ The following guidelines ensure consistent usage of the ListItem component and m
|
|
|
446
450
|
```tsx
|
|
447
451
|
<ListItem>
|
|
448
452
|
<ListItemLeading>
|
|
449
|
-
<
|
|
453
|
+
<Spot appearance='icon' icon={Settings} />
|
|
450
454
|
<ListItemContent>
|
|
451
455
|
<ListItemTitle>Settings</ListItemTitle>
|
|
452
456
|
<ListItemDescription>Manage preferences</ListItemDescription>
|
|
@@ -469,7 +473,7 @@ The following guidelines ensure consistent usage of the ListItem component and m
|
|
|
469
473
|
// DON'T - ListItemContent outside ListItemLeading
|
|
470
474
|
<ListItem>
|
|
471
475
|
<ListItemLeading>
|
|
472
|
-
<
|
|
476
|
+
<Spot appearance='icon' icon={Settings} />
|
|
473
477
|
</ListItemLeading>
|
|
474
478
|
<ListItemContent>
|
|
475
479
|
<ListItemTitle>Settings</ListItemTitle>
|
|
@@ -483,35 +487,35 @@ The following guidelines ensure consistent usage of the ListItem component and m
|
|
|
483
487
|
|
|
484
488
|
<DoVsDontRow>
|
|
485
489
|
<DoBlockItem
|
|
486
|
-
title='Use
|
|
487
|
-
description='Wrap
|
|
490
|
+
title='Use ListItemContentRow for inline Tags'
|
|
491
|
+
description='Wrap title or description with a Tag inside ListItemContentRow for proper layout'
|
|
488
492
|
>
|
|
489
493
|
|
|
490
494
|
{/* prettier-ignore */}
|
|
491
495
|
```tsx
|
|
492
|
-
<
|
|
493
|
-
<
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
<
|
|
498
|
-
|
|
499
|
-
</ListItemDescription>
|
|
496
|
+
<ListItemContent>
|
|
497
|
+
<ListItemContentRow>
|
|
498
|
+
<ListItemTitle>New Item</ListItemTitle>
|
|
499
|
+
<Tag label='New' appearance='base' size='sm' />
|
|
500
|
+
</ListItemContentRow>
|
|
501
|
+
<ListItemDescription>Recently added</ListItemDescription>
|
|
502
|
+
</ListItemContent>
|
|
500
503
|
```
|
|
501
504
|
|
|
502
505
|
</DoBlockItem>
|
|
503
506
|
<DontBlockItem
|
|
504
|
-
title="Don't
|
|
505
|
-
description='
|
|
507
|
+
title="Don't place Tags outside ListItemContentRow"
|
|
508
|
+
description='Tags placed directly inside ListItemContent break the layout'
|
|
506
509
|
>
|
|
507
510
|
|
|
508
511
|
{/* prettier-ignore */}
|
|
509
512
|
```tsx
|
|
510
|
-
// DON'T -
|
|
511
|
-
<
|
|
512
|
-
|
|
513
|
-
<
|
|
514
|
-
|
|
513
|
+
// DON'T - Tag outside ListItemContentRow
|
|
514
|
+
<ListItemContent>
|
|
515
|
+
<ListItemTitle>New Item</ListItemTitle>
|
|
516
|
+
<ListItemDescription>Recently added</ListItemDescription>
|
|
517
|
+
<Tag label='New' appearance='base' size='sm' />
|
|
518
|
+
</ListItemContent>
|
|
515
519
|
```
|
|
516
520
|
|
|
517
521
|
</DontBlockItem>
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { Settings, ChevronRight, Wallet } from "../../Symbols/index.js";
|
|
5
|
+
import { Spot } from "../Spot/index.js";
|
|
5
6
|
import { Switch } from "../Switch/Switch.js";
|
|
6
7
|
import { Tag } from "../Tag/Tag.js";
|
|
7
8
|
import { Box } from "../Utility/index.js";
|
|
8
|
-
import { ListItem, ListItemLeading, ListItemContent, ListItemTitle, ListItemDescription, ListItemTrailing,
|
|
9
|
+
import { ListItem, ListItemLeading, ListItemContent, ListItemTitle, ListItemDescription, ListItemTrailing, ListItemContentRow } from "./ListItem.js";
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
const meta = {
|
|
11
12
|
component: ListItem,
|
|
@@ -16,12 +17,10 @@ const meta = {
|
|
|
16
17
|
ListItemTitle,
|
|
17
18
|
ListItemDescription,
|
|
18
19
|
ListItemTrailing,
|
|
19
|
-
|
|
20
|
-
ListItemIcon,
|
|
21
|
-
ListItemTruncate
|
|
20
|
+
ListItemContentRow
|
|
22
21
|
},
|
|
23
22
|
parameters: {
|
|
24
|
-
layout: '
|
|
23
|
+
layout: 'centered',
|
|
25
24
|
backgrounds: {
|
|
26
25
|
default: 'light'
|
|
27
26
|
},
|
|
@@ -54,7 +53,7 @@ export const Base = {
|
|
|
54
53
|
render: args => /*#__PURE__*/_jsx(ListItem, {
|
|
55
54
|
...args,
|
|
56
55
|
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
57
|
-
children: [/*#__PURE__*/_jsx(
|
|
56
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
58
57
|
appearance: "icon",
|
|
59
58
|
icon: Settings
|
|
60
59
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -72,7 +71,7 @@ export const Base = {
|
|
|
72
71
|
code: `
|
|
73
72
|
<ListItem>
|
|
74
73
|
<ListItemLeading>
|
|
75
|
-
<
|
|
74
|
+
<Spot appearance="icon" icon={Settings} />
|
|
76
75
|
<ListItemContent>
|
|
77
76
|
<ListItemTitle>Item with Icon and Description</ListItemTitle>
|
|
78
77
|
<ListItemDescription>Additional information</ListItemDescription>
|
|
@@ -95,7 +94,8 @@ export const VariantsShowcase = {
|
|
|
95
94
|
},
|
|
96
95
|
children: [/*#__PURE__*/_jsx(ListItem, {
|
|
97
96
|
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
98
|
-
children: [/*#__PURE__*/_jsx(
|
|
97
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
98
|
+
size: 48,
|
|
99
99
|
appearance: "icon",
|
|
100
100
|
icon: Settings
|
|
101
101
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -109,7 +109,8 @@ export const VariantsShowcase = {
|
|
|
109
109
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
110
110
|
onPress: () => setSelected(!selected),
|
|
111
111
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
112
|
-
children: [/*#__PURE__*/_jsx(
|
|
112
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
113
|
+
size: 48,
|
|
113
114
|
appearance: "icon",
|
|
114
115
|
icon: Wallet
|
|
115
116
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -127,7 +128,8 @@ export const VariantsShowcase = {
|
|
|
127
128
|
})]
|
|
128
129
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
129
130
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
130
|
-
children: [/*#__PURE__*/_jsx(
|
|
131
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
132
|
+
size: 48,
|
|
131
133
|
appearance: "icon",
|
|
132
134
|
icon: Wallet
|
|
133
135
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -148,7 +150,8 @@ export const VariantsShowcase = {
|
|
|
148
150
|
})]
|
|
149
151
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
150
152
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
151
|
-
children: [/*#__PURE__*/_jsx(
|
|
153
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
154
|
+
size: 48,
|
|
152
155
|
appearance: "icon",
|
|
153
156
|
icon: Wallet
|
|
154
157
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -172,7 +175,8 @@ export const VariantsShowcase = {
|
|
|
172
175
|
})]
|
|
173
176
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
174
177
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
175
|
-
children: [/*#__PURE__*/_jsx(
|
|
178
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
179
|
+
size: 48,
|
|
176
180
|
appearance: "icon",
|
|
177
181
|
icon: Wallet
|
|
178
182
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -196,14 +200,15 @@ export const VariantsShowcase = {
|
|
|
196
200
|
})]
|
|
197
201
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
198
202
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
199
|
-
children: [/*#__PURE__*/_jsx(
|
|
203
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
204
|
+
size: 48,
|
|
200
205
|
appearance: "icon",
|
|
201
206
|
icon: Settings
|
|
202
207
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
203
208
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
204
209
|
children: "Tag Variant"
|
|
205
210
|
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
206
|
-
children: "
|
|
211
|
+
children: "With description"
|
|
207
212
|
})]
|
|
208
213
|
})]
|
|
209
214
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
@@ -215,7 +220,8 @@ export const VariantsShowcase = {
|
|
|
215
220
|
})]
|
|
216
221
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
217
222
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
218
|
-
children: [/*#__PURE__*/_jsx(
|
|
223
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
224
|
+
size: 48,
|
|
219
225
|
appearance: "icon",
|
|
220
226
|
icon: Settings
|
|
221
227
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -226,45 +232,43 @@ export const VariantsShowcase = {
|
|
|
226
232
|
})]
|
|
227
233
|
})]
|
|
228
234
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
229
|
-
children: /*#__PURE__*/_jsx(
|
|
230
|
-
|
|
231
|
-
icon: ChevronRight
|
|
235
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
236
|
+
size: 24
|
|
232
237
|
})
|
|
233
238
|
})]
|
|
234
239
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
235
240
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
236
|
-
children: [/*#__PURE__*/_jsx(
|
|
237
|
-
|
|
241
|
+
children: [/*#__PURE__*/_jsx(Wallet, {
|
|
242
|
+
size: 24
|
|
238
243
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
239
244
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
240
245
|
children: "Icon without Spot"
|
|
241
246
|
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
242
|
-
children: "
|
|
247
|
+
children: "With icon"
|
|
243
248
|
})]
|
|
244
249
|
})]
|
|
245
250
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
246
|
-
children: /*#__PURE__*/_jsx(
|
|
247
|
-
|
|
248
|
-
icon: ChevronRight
|
|
251
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
252
|
+
size: 24
|
|
249
253
|
})
|
|
250
254
|
})]
|
|
251
255
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
252
256
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
253
|
-
children: [/*#__PURE__*/_jsx(
|
|
257
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
258
|
+
size: 48,
|
|
254
259
|
appearance: "icon",
|
|
255
260
|
icon: Wallet
|
|
256
261
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
257
|
-
children: [/*#__PURE__*/_jsxs(
|
|
258
|
-
children: [/*#__PURE__*/_jsx(
|
|
259
|
-
variant: "title",
|
|
262
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
263
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
260
264
|
children: "Complex 1"
|
|
261
265
|
}), /*#__PURE__*/_jsx(Tag, {
|
|
262
266
|
size: "sm",
|
|
263
267
|
label: "New",
|
|
264
268
|
appearance: "base"
|
|
265
269
|
})]
|
|
266
|
-
}), /*#__PURE__*/_jsxs(
|
|
267
|
-
children: [/*#__PURE__*/_jsx(
|
|
270
|
+
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
271
|
+
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
268
272
|
children: "With description"
|
|
269
273
|
}), /*#__PURE__*/_jsx(Tag, {
|
|
270
274
|
size: "sm",
|
|
@@ -284,7 +288,8 @@ export const VariantsShowcase = {
|
|
|
284
288
|
})]
|
|
285
289
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
286
290
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
287
|
-
children: [/*#__PURE__*/_jsx(
|
|
291
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
292
|
+
size: 48,
|
|
288
293
|
appearance: "icon",
|
|
289
294
|
icon: Wallet
|
|
290
295
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -296,16 +301,15 @@ export const VariantsShowcase = {
|
|
|
296
301
|
})]
|
|
297
302
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
298
303
|
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
299
|
-
children: [/*#__PURE__*/_jsxs(
|
|
304
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
300
305
|
children: [/*#__PURE__*/_jsx(Tag, {
|
|
301
306
|
size: "sm",
|
|
302
307
|
label: "New",
|
|
303
308
|
appearance: "base"
|
|
304
|
-
}), /*#__PURE__*/_jsx(
|
|
305
|
-
variant: "title",
|
|
309
|
+
}), /*#__PURE__*/_jsx(ListItemTitle, {
|
|
306
310
|
children: "1200.12"
|
|
307
311
|
})]
|
|
308
|
-
}), /*#__PURE__*/_jsx(
|
|
312
|
+
}), /*#__PURE__*/_jsx(ListItemContentRow, {
|
|
309
313
|
children: /*#__PURE__*/_jsx(Tag, {
|
|
310
314
|
size: "sm",
|
|
311
315
|
label: "BTC",
|
|
@@ -330,7 +334,8 @@ export const DisabledState = {
|
|
|
330
334
|
children: [/*#__PURE__*/_jsxs(ListItem, {
|
|
331
335
|
...args,
|
|
332
336
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
333
|
-
children: [/*#__PURE__*/_jsx(
|
|
337
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
338
|
+
size: 48,
|
|
334
339
|
appearance: "icon",
|
|
335
340
|
icon: Settings
|
|
336
341
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -349,7 +354,8 @@ export const DisabledState = {
|
|
|
349
354
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
350
355
|
...args,
|
|
351
356
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
352
|
-
children: [/*#__PURE__*/_jsx(
|
|
357
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
358
|
+
size: 48,
|
|
353
359
|
appearance: "icon",
|
|
354
360
|
icon: Settings
|
|
355
361
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -360,15 +366,15 @@ export const DisabledState = {
|
|
|
360
366
|
})]
|
|
361
367
|
})]
|
|
362
368
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
363
|
-
children: /*#__PURE__*/_jsx(
|
|
364
|
-
|
|
365
|
-
icon: ChevronRight
|
|
369
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
370
|
+
size: 24
|
|
366
371
|
})
|
|
367
372
|
})]
|
|
368
373
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
369
374
|
...args,
|
|
370
375
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
371
|
-
children: [/*#__PURE__*/_jsx(
|
|
376
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
377
|
+
size: 48,
|
|
372
378
|
appearance: "icon",
|
|
373
379
|
icon: Wallet
|
|
374
380
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -390,13 +396,13 @@ export const DisabledState = {
|
|
|
390
396
|
}), /*#__PURE__*/_jsx(ListItem, {
|
|
391
397
|
...args,
|
|
392
398
|
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
393
|
-
children: [/*#__PURE__*/_jsx(
|
|
394
|
-
|
|
399
|
+
children: [/*#__PURE__*/_jsx(Wallet, {
|
|
400
|
+
size: 24
|
|
395
401
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
396
402
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
397
403
|
children: "Icon without Spot"
|
|
398
404
|
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
399
|
-
children: "
|
|
405
|
+
children: "With icon"
|
|
400
406
|
})]
|
|
401
407
|
})]
|
|
402
408
|
})
|
|
@@ -408,7 +414,7 @@ export const DisabledState = {
|
|
|
408
414
|
code: `
|
|
409
415
|
<ListItem disabled>
|
|
410
416
|
<ListItemLeading>
|
|
411
|
-
<
|
|
417
|
+
<Spot appearance="icon" icon={Settings} />
|
|
412
418
|
<ListItemContent>
|
|
413
419
|
<ListItemTitle>Disabled Item</ListItemTitle>
|
|
414
420
|
<ListItemDescription>This item is disabled</ListItemDescription>
|
|
@@ -437,7 +443,8 @@ export const ResponsiveLayout = {
|
|
|
437
443
|
},
|
|
438
444
|
children: [/*#__PURE__*/_jsxs(ListItem, {
|
|
439
445
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
440
|
-
children: [/*#__PURE__*/_jsx(
|
|
446
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
447
|
+
size: 48,
|
|
441
448
|
appearance: "icon",
|
|
442
449
|
icon: Settings
|
|
443
450
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -448,14 +455,14 @@ export const ResponsiveLayout = {
|
|
|
448
455
|
})]
|
|
449
456
|
})]
|
|
450
457
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
451
|
-
children: /*#__PURE__*/_jsx(
|
|
452
|
-
|
|
453
|
-
icon: ChevronRight
|
|
458
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
459
|
+
size: 24
|
|
454
460
|
})
|
|
455
461
|
})]
|
|
456
462
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
457
463
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
458
|
-
children: [/*#__PURE__*/_jsx(
|
|
464
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
465
|
+
size: 48,
|
|
459
466
|
appearance: "icon",
|
|
460
467
|
icon: Settings
|
|
461
468
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
@@ -466,28 +473,27 @@ export const ResponsiveLayout = {
|
|
|
466
473
|
})]
|
|
467
474
|
})]
|
|
468
475
|
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
469
|
-
children: /*#__PURE__*/_jsx(
|
|
470
|
-
|
|
471
|
-
icon: ChevronRight
|
|
476
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
477
|
+
size: 24
|
|
472
478
|
})
|
|
473
479
|
})]
|
|
474
480
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
475
481
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
476
|
-
children: [/*#__PURE__*/_jsx(
|
|
482
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
483
|
+
size: 48,
|
|
477
484
|
appearance: "icon",
|
|
478
485
|
icon: Wallet
|
|
479
486
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
480
|
-
children: [/*#__PURE__*/_jsxs(
|
|
481
|
-
children: [/*#__PURE__*/_jsx(
|
|
482
|
-
variant: "title",
|
|
487
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
488
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
483
489
|
children: "Long Title that should truncate appropriately"
|
|
484
490
|
}), /*#__PURE__*/_jsx(Tag, {
|
|
485
491
|
size: "sm",
|
|
486
492
|
label: "New",
|
|
487
493
|
appearance: "base"
|
|
488
494
|
})]
|
|
489
|
-
}), /*#__PURE__*/_jsxs(
|
|
490
|
-
children: [/*#__PURE__*/_jsx(
|
|
495
|
+
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
496
|
+
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
491
497
|
children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos."
|
|
492
498
|
}), /*#__PURE__*/_jsx(Tag, {
|
|
493
499
|
size: "sm",
|