From cf15ad525dfc4cc04bdc3c284bf15cefa3ffabc8 Mon Sep 17 00:00:00 2001 From: Timur Khakkiev Date: Fri, 8 Dec 2023 14:53:29 +0300 Subject: [PATCH 1/3] Update prop switch text variant (#148) --- src/components/SandboxBlock/SandboxBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SandboxBlock/SandboxBlock.tsx b/src/components/SandboxBlock/SandboxBlock.tsx index e02bfb22065d..38dac363cbec 100644 --- a/src/components/SandboxBlock/SandboxBlock.tsx +++ b/src/components/SandboxBlock/SandboxBlock.tsx @@ -86,7 +86,7 @@ const SandboxBlock: React.FC = ({libId, componentId, sandboxC
- {prop} + {prop} Date: Fri, 8 Dec 2023 14:53:37 +0300 Subject: [PATCH 2/3] add icon props to button component (#146) --- .../components/uikit/Button/ButtonWrapper.tsx | 25 +++++++++++++++++++ src/content/components/uikit/Button/index.ts | 14 ++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/content/components/uikit/Button/ButtonWrapper.tsx diff --git a/src/content/components/uikit/Button/ButtonWrapper.tsx b/src/content/components/uikit/Button/ButtonWrapper.tsx new file mode 100644 index 000000000000..82647d3882f6 --- /dev/null +++ b/src/content/components/uikit/Button/ButtonWrapper.tsx @@ -0,0 +1,25 @@ +import {Gear} from '@gravity-ui/icons'; +import {Button, ButtonProps, Icon} from '@gravity-ui/uikit'; +import {FC} from 'react'; + +export const ButtonWrapper: FC< + ButtonProps & { + startIcon?: boolean; + endIcon?: boolean; + onlyIcon?: boolean; + } +> = (props) => { + return ( +
+ +
+ ); +}; diff --git a/src/content/components/uikit/Button/index.ts b/src/content/components/uikit/Button/index.ts index 089f029cb6a9..efebb076b2d4 100644 --- a/src/content/components/uikit/Button/index.ts +++ b/src/content/components/uikit/Button/index.ts @@ -13,7 +13,7 @@ export const buttonConfig = { readmeUrl: getReadmeUrl(getterOptions), }, sandbox: { - component: dynamic(() => import('@gravity-ui/uikit').then((mod) => mod.Button)), + component: dynamic(() => import('./ButtonWrapper').then((mod) => mod.ButtonWrapper)), props: { view: { type: 'select', @@ -77,6 +77,18 @@ export const buttonConfig = { type: 'switch', defaultValue: false, }, + startIcon: { + type: 'switch', + defaultValue: false, + }, + endIcon: { + type: 'switch', + defaultValue: false, + }, + onlyIcon: { + type: 'switch', + defaultValue: false, + }, width: { type: 'radioButton', values: mappingOptions(['auto', 'max']), From 47e88f033337e7e501c8480916240f27db9081ef Mon Sep 17 00:00:00 2001 From: vvtimofeev <108340247+vvtimofeev@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:41:44 +0300 Subject: [PATCH 3/3] added news about iconify (#149) --- src/content/landing.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/landing.ts b/src/content/landing.ts index 163392304adc..9f8582fa02df 100644 --- a/src/content/landing.ts +++ b/src/content/landing.ts @@ -52,6 +52,11 @@ const typedLanding: CustomPageContent = { news: { title: 'Recent updates', items: [ + { + date: '2023-12-08T14:30:00.000Z', + content: + 'GravityUI icon set have been added to the iconify framework! ๐ŸŽ‰ This means that now itโ€™s even easier to use the beautiful icons from GravityUI in your projects.', + }, { date: '2023-10-06T00:00:00.000Z', content: @@ -62,11 +67,6 @@ const typedLanding: CustomPageContent = { content: 'Meet the new Components and Design sections with guidelines and component sandboxes.', }, - { - date: '2023-08-28T14:00:00.000Z', - content: - 'Our Figma library is finally released and available here. Currently it\'s in Beta so we\'d love for you to test it out and share your feedback with us.', - }, ], }, },