From 1c55dc92c627120c4bf2e9ba961d5265baee935a Mon Sep 17 00:00:00 2001 From: Neretin Artem Date: Thu, 14 Nov 2024 18:34:36 +0500 Subject: [PATCH] feat(plasma-b2c,star-ds): Add icons using to stories --- .../plasma-b2c/platforms/mobile/package.json | 1 + .../plasma-b2c/platforms/tv/package.json | 1 + .../src/components/Button/Button.stories.tsx | 6 +-- .../src/components/Cell/Cell.stories.tsx | 40 ++++---------- .../Focusable/Focusable.stories.tsx | 50 +++++------------- .../IconButton/IconButton.stories.tsx | 21 +------- .../src/components/List/List.stories.tsx | 52 ++++--------------- .../TextField/TextField.stories.tsx | 16 ++---- .../star-ds/platforms/mobile/package.json | 1 + libraries/star-ds/platforms/tv/package.json | 1 + .../src/components/Button/Button.stories.tsx | 6 +-- .../src/components/Cell/Cell.stories.tsx | 40 ++++---------- .../Focusable/Focusable.stories.tsx | 50 +++++------------- .../IconButton/IconButton.stories.tsx | 21 +------- .../src/components/List/List.stories.tsx | 52 ++++--------------- .../TextField/TextField.stories.tsx | 16 ++---- 16 files changed, 88 insertions(+), 286 deletions(-) diff --git a/libraries/plasma-b2c/platforms/mobile/package.json b/libraries/plasma-b2c/platforms/mobile/package.json index 0ff383b9..153b70df 100644 --- a/libraries/plasma-b2c/platforms/mobile/package.json +++ b/libraries/plasma-b2c/platforms/mobile/package.json @@ -50,6 +50,7 @@ "@react-native-community/datetimepicker": "8.0.1", "@react-native-community/slider": "4.5.2", "@react-native-tvos/config-tv": "^0.0.10", + "@salutejs/plasma-icons-native": "0.1.0", "@storybook/addon-ondevice-actions": "^7.6.16", "@storybook/addon-ondevice-controls": "^7.6.16", "@storybook/addon-ondevice-notes": "^7.6.19", diff --git a/libraries/plasma-b2c/platforms/tv/package.json b/libraries/plasma-b2c/platforms/tv/package.json index 9db320e3..70c958f7 100644 --- a/libraries/plasma-b2c/platforms/tv/package.json +++ b/libraries/plasma-b2c/platforms/tv/package.json @@ -56,6 +56,7 @@ "@react-native-community/datetimepicker": "8.0.1", "@react-native-community/slider": "4.5.2", "@react-native-tvos/config-tv": "^0.0.10", + "@salutejs/plasma-icons-native": "0.1.0", "@storybook/addon-ondevice-actions": "^7.6.16", "@storybook/addon-ondevice-controls": "^7.6.16", "@storybook/addon-ondevice-notes": "^7.6.19", diff --git a/libraries/plasma-b2c/src/components/Button/Button.stories.tsx b/libraries/plasma-b2c/src/components/Button/Button.stories.tsx index 74ec7d6c..8af8fe3c 100644 --- a/libraries/plasma-b2c/src/components/Button/Button.stories.tsx +++ b/libraries/plasma-b2c/src/components/Button/Button.stories.tsx @@ -1,6 +1,6 @@ import type { ComponentProps } from 'react'; import type { StoryObj, Meta } from '@storybook/react'; -import { Text } from 'react-native'; +import { IconPlasma } from '@salutejs/plasma-icons-native'; import { Button } from './Button'; @@ -110,8 +110,8 @@ const StoryDefault = (props: StoryButtonProps) => {