From c30fc19fd583221353a3d6e6e0329750962d88e7 Mon Sep 17 00:00:00 2001 From: Ira Date: Thu, 15 Apr 2021 16:00:30 +0300 Subject: [PATCH 1/6] fix: rewrite menulist --- src/lib/box-styles.tsx | 2 +- src/ui/atoms/header-panel/usage.mdx | 119 +++++++++++++++------------- src/ui/atoms/list/index.tsx | 68 ++++++---------- src/ui/atoms/list/usage.mdx | 12 ++- src/ui/atoms/text-area/index.tsx | 4 +- src/ui/atoms/text-area/usage.mdx | 34 ++++---- src/ui/molecules/field/index.tsx | 6 +- src/ui/molecules/field/usage.mdx | 60 +++++++------- src/ui/molecules/select/usage.mdx | 5 +- 9 files changed, 148 insertions(+), 162 deletions(-) diff --git a/src/lib/box-styles.tsx b/src/lib/box-styles.tsx index 537804ee..fb64532e 100644 --- a/src/lib/box-styles.tsx +++ b/src/lib/box-styles.tsx @@ -27,7 +27,7 @@ export const Global = styled.div` --woly-shape-text-hover: var(--palette-snow-0); --woly-shape-text-active: var(--palette-snow-0); --woly-canvas-default: transparent; - --woly-canvas-disabled: var(--palete-snow-100); + --woly-canvas-disabled: var(--palette-snow-100); --woly-canvas-hover: var(--palette-snow-500); --woly-canvas-active: var(--palette-snow-500); --woly-canvas-text-default: var(--palette-snow-1000); diff --git a/src/ui/atoms/header-panel/usage.mdx b/src/ui/atoms/header-panel/usage.mdx index e0186648..a21125df 100644 --- a/src/ui/atoms/header-panel/usage.mdx +++ b/src/ui/atoms/header-panel/usage.mdx @@ -11,64 +11,75 @@ import { CloseIcon } from 'icons'; `HeaderPanel` is a navigation component that displays information and actions relating to the current screen. -
- Hello! It`s a HeaderPanel -
+
+ Hello! It`s a HeaderPanel +
- ### Example - !i}> - {(value, change) => ( - - -
-
- -
-
- - - - console.info('On input change')} - placeholder="Ivan Ivanov" - type="text" - variant="base" - /> - - console.info('On input change')} - type="password" - variant="base" - /> -
-
- )} -
+ !i}> + {(value, change) => ( + + +
+
+ +
+
+ + + + console.info('On input change')} + placeholder="Ivan Ivanov" + type="text" + variant="base" + /> + + console.info('On input change')} + type="password" + variant="base" + /> +
+
+ )} +
### Kinds diff --git a/src/ui/atoms/list/index.tsx b/src/ui/atoms/list/index.tsx index 92544f7d..cf314ad9 100644 --- a/src/ui/atoms/list/index.tsx +++ b/src/ui/atoms/list/index.tsx @@ -1,20 +1,6 @@ import * as React from 'react'; import styled, { StyledComponent } from 'styled-components'; import { Variant } from 'lib/types'; - -/** - * --woly-list-padding - * --woly-list-color - * --woly-list-background - * --woly-rounding - * --woly-shadow - * --woly-canvas - * --woly-background-hover - * --woly-color - * --woly-color-hover - * --woly-line-height - */ - interface List { className?: string; list: Array<{ @@ -29,13 +15,8 @@ interface List { const ListBase: React.FC = ({ className, list, variant = 'default' }) => (