@itcase/ui 1.4.6 → 1.4.7
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/{Badge-C68XnlcL.js → Badge-BxT2_kz_.js} +1 -1
- package/dist/{Badge-C6SNRExV.js → Badge-DnWTbwXq.js} +1 -1
- package/dist/{Button-WZZpsxTk.js → Button-BiJZz4Bx.js} +9 -9
- package/dist/{Button-Bsrw4D7p.js → Button-xYLCmT3D.js} +9 -9
- package/dist/{DropdownItem-BiiEhR49.js → DropdownItem-NllzSt5M.js} +3 -3
- package/dist/{DropdownItem-g5jWbyJy.js → DropdownItem-mr__S8vt.js} +3 -3
- package/dist/{Group-Dz8xytje.js → Group-BICb8bYQ.js} +2 -2
- package/dist/{Group-Cq4AQPqb.js → Group-qq4Iisll.js} +2 -2
- package/dist/{Icon-GVGrUu_Z.js → Icon-BcBOnVKH.js} +4 -4
- package/dist/{Icon-htF_V35Y.js → Icon-OJ_3E3eM.js} +4 -4
- package/dist/{Input-COFdaiTe.js → Input-DHJIVk1z.js} +2 -2
- package/dist/{Input-Dwvk-poq.js → Input-DiFnIFT7.js} +2 -2
- package/dist/{Label-DF2a2Mlx.js → Label-D-LcvthP.js} +1 -1
- package/dist/{Label-I9WNpCXa.js → Label-y2hx5Q81.js} +1 -1
- package/dist/{Link-B38Hn4G2.js → Link-BnqN6ysn.js} +2 -2
- package/dist/{Link-BhJ5BdyS.js → Link-DaKqf1pb.js} +2 -2
- package/dist/{Loader-DpYaDhe9.js → Loader-DdKHrLnw.js} +3 -3
- package/dist/{Loader-D4_r7LML.js → Loader-VK3q7PBN.js} +3 -3
- package/dist/{Overlay-BKh07Vb2.js → Overlay-CZixnXZ6.js} +2 -2
- package/dist/{Overlay-DiCjwUv4.js → Overlay-Myen2mqz.js} +2 -2
- package/dist/Title-BLGDdlnX.js +55 -0
- package/dist/Title-Byi9vhDt.js +51 -0
- package/dist/{Tooltip-BYgzNVYI.js → Tooltip-5lQyt5-Y.js} +1 -1
- package/dist/{Tooltip-DpBQQoNo.js → Tooltip-DRta8lK_.js} +1 -1
- package/dist/cjs/components/Accordion.js +8 -8
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/Badge.js +5 -5
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +7 -7
- package/dist/cjs/components/Cell.js +5 -5
- package/dist/cjs/components/Chips.js +60 -19
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +8 -8
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +36 -11
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +4 -4
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +2 -2
- package/dist/cjs/components/InputPassword.js +6 -6
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +7 -7
- package/dist/cjs/components/Panel.js +3 -3
- package/dist/cjs/components/Radio.js +2 -2
- package/dist/cjs/components/Response.js +7 -7
- package/dist/cjs/components/Search.js +6 -6
- package/dist/cjs/components/Segmented.js +13 -3
- package/dist/cjs/components/Select.js +8 -8
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +2 -2
- package/dist/cjs/components/Tab.js +5 -5
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +5 -5
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Video.js +5 -5
- package/dist/components/Accordion.js +8 -8
- package/dist/components/Avatar.js +4 -4
- package/dist/components/Badge.js +5 -5
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +7 -7
- package/dist/components/Cell.js +5 -5
- package/dist/components/Chips.js +60 -19
- package/dist/components/Choice.js +7 -7
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +8 -8
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +36 -11
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +4 -4
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +2 -2
- package/dist/components/InputPassword.js +6 -6
- package/dist/components/Label.js +3 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification.js +2 -2
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +7 -7
- package/dist/components/Panel.js +3 -3
- package/dist/components/Radio.js +2 -2
- package/dist/components/Response.js +7 -7
- package/dist/components/Search.js +6 -6
- package/dist/components/Segmented.js +13 -3
- package/dist/components/Select.js +8 -8
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +2 -2
- package/dist/components/Tab.js +5 -5
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +5 -5
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Video.js +5 -5
- package/dist/css/components/Cell/Cell.css +14 -34
- package/dist/css/components/HeroTitle/HeroTitle.css +11 -13
- package/dist/css/components/Image/Image.css +11 -13
- package/dist/css/components/Loader/Loader.css +19 -0
- package/dist/css/components/Title/Title.css +11 -13
- package/dist/css/components/Tooltip/Tooltip.css +4 -4
- package/dist/css/styles/fill/fill.css +6 -6
- package/dist/css/styles/fill/fill_active.css +1 -1
- package/dist/css/styles/fill/fill_active_hover.css +4 -4
- package/dist/css/styles/fill/fill_disabled.css +8 -0
- package/dist/css/styles/text-color/text-color.css +4 -4
- package/dist/css/styles/text-color/text-color_disabled.css +13 -0
- package/dist/stories/Accordion.mdx +1 -1
- package/dist/stories/AccordionItem.mdx +1 -1
- package/dist/stories/Avatar.mdx +1 -1
- package/dist/stories/Badge.mdx +13 -0
- package/dist/stories/Button.mdx +12 -0
- package/dist/stories/Checkbox.mdx +12 -0
- package/dist/stories/Checkmark.mdx +10 -0
- package/dist/stories/Chips.mdx +37 -0
- package/dist/stories/Dev.mdx +3 -3
- package/dist/stories/Elevation.mdx +3 -3
- package/dist/stories/Label.mdx +11 -0
- package/dist/stories/Loader.mdx +11 -0
- package/dist/stories/Logo.mdx +10 -5
- package/dist/stories/Modal.mdx +15 -0
- package/dist/stories/Response.mdx +11 -0
- package/dist/stories/Tab.mdx +27 -0
- package/dist/stories/Tile.mdx +11 -0
- package/dist/stories/Title.mdx +1 -1
- package/dist/types/appearance/default/defaultAccent.d.ts +33 -0
- package/dist/types/appearance/default/defaultDanger.d.ts +33 -0
- package/dist/types/appearance/default/defaultDisabled.d.ts +33 -0
- package/dist/types/appearance/default/defaultError.d.ts +33 -0
- package/dist/types/appearance/default/defaultInfo.d.ts +33 -0
- package/dist/types/appearance/default/defaultPrimary.d.ts +33 -0
- package/dist/types/appearance/default/defaultSecondary.d.ts +33 -0
- package/dist/types/appearance/default/defaultSuccess.d.ts +33 -0
- package/dist/types/appearance/default/defaultSurface.d.ts +33 -0
- package/dist/types/appearance/default/defaultWarning.d.ts +33 -0
- package/dist/types/appearance/index.d.ts +11 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -1
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +2 -2
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +8 -0
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +21 -0
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -0
- package/dist/types/components/Grid/stories/args.d.ts +5 -5
- package/dist/types/components/Group/stories/args.d.ts +5 -5
- package/dist/types/components/Tab/stories/args.d.ts +17 -17
- package/dist/types/types/componentProps/align.d.ts +1 -1
- package/dist/types/types/componentProps/alignDirection.d.ts +1 -1
- package/dist/types/types/componentProps/alignment.d.ts +1 -1
- package/dist/types/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/types/componentProps/borderColorHover.d.ts +1 -1
- package/dist/types/types/componentProps/borderType.d.ts +1 -1
- package/dist/types/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/types/types/componentProps/direction.d.ts +1 -1
- package/dist/types/types/componentProps/elevation.d.ts +1 -1
- package/dist/types/types/componentProps/fill.d.ts +1 -1
- package/dist/types/types/componentProps/fillGradient.d.ts +1 -1
- package/dist/types/types/componentProps/fillHover.d.ts +1 -1
- package/dist/types/types/componentProps/fillType.d.ts +1 -1
- package/dist/types/types/componentProps/flexAlign.d.ts +1 -1
- package/dist/types/types/componentProps/flexGrow.d.ts +1 -1
- package/dist/types/types/componentProps/flexJustifyContent.d.ts +1 -1
- package/dist/types/types/componentProps/flexWrap.d.ts +1 -1
- package/dist/types/types/componentProps/gridAlign.d.ts +1 -1
- package/dist/types/types/componentProps/gridAlignSelf.d.ts +1 -1
- package/dist/types/types/componentProps/gridJustifyItems.d.ts +1 -1
- package/dist/types/types/componentProps/gridJustifySelf.d.ts +1 -1
- package/dist/types/types/componentProps/height.d.ts +1 -1
- package/dist/types/types/componentProps/horizontalResizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/iconFillSize.d.ts +1 -1
- package/dist/types/types/componentProps/iconSize.d.ts +1 -1
- package/dist/types/types/componentProps/itemColor.d.ts +1 -1
- package/dist/types/types/componentProps/justifyContent.d.ts +1 -1
- package/dist/types/types/componentProps/overflow.d.ts +1 -1
- package/dist/types/types/componentProps/position.d.ts +1 -1
- package/dist/types/types/componentProps/resizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/shape.d.ts +1 -1
- package/dist/types/types/componentProps/size.d.ts +1 -1
- package/dist/types/types/componentProps/sizeOption.d.ts +1 -1
- package/dist/types/types/componentProps/sizePX.d.ts +1 -1
- package/dist/types/types/componentProps/state.d.ts +1 -1
- package/dist/types/types/componentProps/svgFill.d.ts +1 -1
- package/dist/types/types/componentProps/textAlign.d.ts +1 -1
- package/dist/types/types/componentProps/textColor.d.ts +1 -1
- package/dist/types/types/componentProps/textColorActive.d.ts +1 -1
- package/dist/types/types/componentProps/textColorHover.d.ts +1 -1
- package/dist/types/types/componentProps/textGradient.d.ts +1 -1
- package/dist/types/types/componentProps/textSize.d.ts +1 -1
- package/dist/types/types/componentProps/textStyle.d.ts +1 -1
- package/dist/types/types/componentProps/textTag.d.ts +1 -1
- package/dist/types/types/componentProps/textWeight.d.ts +1 -1
- package/dist/types/types/componentProps/textWrap.d.ts +1 -1
- package/dist/types/types/componentProps/titleSize.d.ts +2 -2
- package/dist/types/types/componentProps/type.d.ts +1 -1
- package/dist/types/types/componentProps/underline.d.ts +1 -1
- package/dist/types/types/componentProps/verticalContentAlign.d.ts +1 -1
- package/dist/types/types/componentProps/verticalResizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/width.d.ts +1 -1
- package/dist/types/types/componentProps/wrap.d.ts +1 -1
- package/package.json +17 -12
- package/dist/Title-BWWyRwLY.js +0 -52
- package/dist/Title-Dck3eHNM.js +0 -48
- package/dist/cjs/components/Card.js +0 -28
- package/dist/components/Card.js +0 -26
- package/dist/css/components/Card/Card.css +0 -18
- package/dist/css/tokens/colors.css +0 -126
- package/dist/css/tokens/elevation.css +0 -10
- package/dist/css/tokens/settings.css +0 -31
- package/dist/css/tokens/typography.css +0 -130
- package/dist/stories/Appearance.mdx +0 -35
- package/dist/stories/Group.mdx +0 -9
- package/dist/stories/Size.mdx +0 -35
- package/dist/stories/Skeleton.mdx +0 -9
- package/dist/stories/State.mdx +0 -19
- package/dist/types/components/Card/Card.d.ts +0 -3
- package/dist/types/components/Card/Card.interface.d.ts +0 -30
- package/dist/types/components/Card/index.d.ts +0 -1
- package/dist/types/components/Flex/stories/args.d.ts +0 -80
- /package/dist/stories/{mixin_animation.mdx → MixinAnimation.mdx} +0 -0
- /package/dist/stories/{mixin_dark-light.mdx → MixinDarkLight.mdx} +0 -0
- /package/dist/stories/{mixin_elevation.mdx → MixinElevation.mdx} +0 -0
- /package/dist/stories/{mixin_fill-gradient.mdx → MixinFillGradient.mdx} +0 -0
- /package/dist/stories/{mixin_typography.mdx → MixinTypography.mdx} +0 -0
- /package/dist/stories/{mixin_utils.mdx → MixinUtils.mdx} +0 -0
- /package/dist/types/appearance/{defaultAppearance.d.ts → default/defaultAppearance.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as CheckboxStories from '../stories/Demo.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Atoms / Checkbox" />
|
|
6
|
+
|
|
7
|
+
# Checkbox
|
|
8
|
+
|
|
9
|
+
`Checkbox` позволяет выбрать несколько пунктов из списка вариантов или сделать выбор между двумя противоположными состояниями или свойствами.
|
|
10
|
+
Клик по тексту или чекбоксу приводит к выбору пункта. Повторный клик приводит к отмене выбора.
|
|
11
|
+
|
|
12
|
+
<Story of={CheckboxStories.Demo} />
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Meta, Story, Canvas } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as ChipsStories from '../stories/Appearance.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Atoms / Chips" />
|
|
6
|
+
|
|
7
|
+
# Chips
|
|
8
|
+
|
|
9
|
+
`Chips` — это компактная альтернатива чекбоксам. Они позволяют пользователям выбирать несколько вариантов одновременно и в основном применяются на мобильных устройствах для переключений фильтров.
|
|
10
|
+
Данный компонент может быть использован в компоненте множественного выбора (SelectMulti).
|
|
11
|
+
|
|
12
|
+
<Canvas sourceState="shown"of={ChipsStories.Accent} />
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Accent
|
|
16
|
+
|
|
17
|
+
<Canvas sourceState="shown" of={ChipsStories.Accent} />
|
|
18
|
+
|
|
19
|
+
## Primary
|
|
20
|
+
|
|
21
|
+
<Canvas sourceState="shown" of={ChipsStories.Primary} />
|
|
22
|
+
|
|
23
|
+
## Secondary
|
|
24
|
+
|
|
25
|
+
<Canvas sourceState="shown" of={ChipsStories.Secondary} />
|
|
26
|
+
|
|
27
|
+
## SurfacePrimary
|
|
28
|
+
|
|
29
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfacePrimary} />
|
|
30
|
+
|
|
31
|
+
## SurfaceSecondary
|
|
32
|
+
|
|
33
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfaceSecondary} />
|
|
34
|
+
|
|
35
|
+
## SurfaceTertiary
|
|
36
|
+
|
|
37
|
+
<Canvas sourceState="shown" of={ChipsStories.SurfaceTertiary} />
|
package/dist/stories/Dev.mdx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Canvas, Meta } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as SearchInputStories from './SearchInput.stories.tsx'
|
|
4
4
|
|
|
5
|
-
<Meta title="
|
|
5
|
+
<Meta title="Molecules / Search / Dev Mode" />
|
|
6
6
|
|
|
7
7
|
# Dev
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={
|
|
9
|
+
<Canvas sourceState="shown" of={SearchInputStories.Dev} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, Typeset } from '@storybook/blocks'
|
|
2
|
-
import { Divider } from '
|
|
3
|
-
import { Group } from '
|
|
4
|
-
import { Text } from '
|
|
2
|
+
import { Divider } from '../components/Divider'
|
|
3
|
+
import { Group } from '../components/Group'
|
|
4
|
+
import { Text } from '../components/Text'
|
|
5
5
|
|
|
6
6
|
<Meta title="Tokens / Elevation" />
|
|
7
7
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as LabelStories from '../stories/Label.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Atoms / Label" />
|
|
6
|
+
|
|
7
|
+
# Label
|
|
8
|
+
|
|
9
|
+
`Label` - это маленький компонент, который позволяет дополнить ваш компонент лейблом с описанием.
|
|
10
|
+
|
|
11
|
+
<Story of={LabelStories.Demo} />
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Canvas, Controls, Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as LoaderStories from '../stories/Loader.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Atoms / Loader" />
|
|
6
|
+
|
|
7
|
+
# Loader
|
|
8
|
+
|
|
9
|
+
`Loader` - это компонент для визуального отображения состояния загрузки. Используется при загрузке данных, медленной обработке запроса или выполнения действия с задержкой.
|
|
10
|
+
|
|
11
|
+
<Story of={LoaderStories.Demo} />
|
package/dist/stories/Logo.mdx
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { Canvas, Meta } from '@storybook/blocks'
|
|
1
|
+
import { Canvas, Controls, Meta, Story } from '@storybook/blocks'
|
|
2
2
|
|
|
3
3
|
import * as LogoStories from '../stories/Logo.stories.tsx'
|
|
4
|
+
import * as LogoSizeStories from '../stories/LogoSize.stories.tsx'
|
|
4
5
|
|
|
5
|
-
<Meta
|
|
6
|
+
<Meta title="Atoms / Logo" />
|
|
6
7
|
|
|
7
8
|
# Logo
|
|
8
9
|
|
|
10
|
+
`Logo` - отображает логотип компании, и зачастую явлется ссылкой на главную страницу.
|
|
11
|
+
|
|
12
|
+
<Canvas sourceState="shown" of={LogoStories.Default} />
|
|
13
|
+
|
|
9
14
|
## SizeS
|
|
10
15
|
|
|
11
|
-
<Canvas sourceState="shown" of={
|
|
16
|
+
<Canvas sourceState="shown" of={LogoSizeStories.S} />
|
|
12
17
|
|
|
13
18
|
## SizeM
|
|
14
19
|
|
|
15
|
-
<Canvas sourceState="shown" of={
|
|
20
|
+
<Canvas sourceState="shown" of={LogoSizeStories.M} />
|
|
16
21
|
|
|
17
22
|
## SizeL
|
|
18
23
|
|
|
19
|
-
<Canvas sourceState="shown" of={
|
|
24
|
+
<Canvas sourceState="shown" of={LogoSizeStories.L} />
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Canvas } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as ModalStories from '../stories/Modal.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Molecules / Modal" />
|
|
6
|
+
|
|
7
|
+
# Modal
|
|
8
|
+
|
|
9
|
+
`Modal` - это карточка, на которой находится вся ключевая информация, более детальная отобразится при клике на нее.
|
|
10
|
+
|
|
11
|
+
## Demo
|
|
12
|
+
<Canvas sourceState="shown" of={ModalStories.Demo} />
|
|
13
|
+
|
|
14
|
+
## Skeleton
|
|
15
|
+
<Canvas sourceState="shown" of={ModalStories.Skeleton} />
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Canvas, Controls, Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as ResponseStories from '../stories/Default.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Molecules / Response" />
|
|
6
|
+
|
|
7
|
+
# Response
|
|
8
|
+
|
|
9
|
+
`Response` отображает статус, например, предупреждения или ошибки, напрямую влияющих на возможности пользователей выполнять определенные задачи.
|
|
10
|
+
|
|
11
|
+
<Story of={ResponseStories.Demo} />
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as TabStories from '../stories/Appearance.stories.tsx'
|
|
4
|
+
import * as TabGroupStories from '../stories/Group.stories.tsx'
|
|
5
|
+
|
|
6
|
+
<Meta title="Atoms / Tab" />
|
|
7
|
+
|
|
8
|
+
# Tab
|
|
9
|
+
|
|
10
|
+
`Tab` - это элемент быстрой навигации между сгруппированным контентом без перезагрузки страницы.
|
|
11
|
+
Отображает в общем контейнере выбранный раздел контента, скрывая остальные разделы.
|
|
12
|
+
|
|
13
|
+
Табы образуют группу. Группа табов отделяется от контента линией или
|
|
14
|
+
границей блоков. Один таб всегда выбран, по умолчанию первый. Может быть выбран только один таб
|
|
15
|
+
из всей группы. Клик по неактивному табу скрывает текущий контент и отображает контент выбранного таба.
|
|
16
|
+
Используйте табы для второстепенной навигации, группировки и фильтрации связанного контента.
|
|
17
|
+
|
|
18
|
+
<Story of={TabStories.Accent} />
|
|
19
|
+
|
|
20
|
+
# TabGroup
|
|
21
|
+
|
|
22
|
+
`TabGroup` состоит из табов, которые образуют группу. Группа табов отделяется от контента линией или
|
|
23
|
+
границей блоков. Один таб всегда выбран, по умолчанию первый. Может быть выбран только один таб
|
|
24
|
+
из всей группы. Клик по неактивному табу скрывает текущий контент и отображает контент выбранного таба.
|
|
25
|
+
Используйте табы для второстепенной навигации, группировки и фильтрации связанного контента.
|
|
26
|
+
|
|
27
|
+
<Story of={TabGroupStories.Default} />
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
import * as TileStories from '../stories/Tile.stories.tsx'
|
|
4
|
+
|
|
5
|
+
<Meta title="Molecules / Tile" />
|
|
6
|
+
|
|
7
|
+
# Tile
|
|
8
|
+
|
|
9
|
+
`Tile` - это карточка, на которой находится вся ключевая информация, более детальная отобразится при клике на нее.
|
|
10
|
+
|
|
11
|
+
<Story of={TileStories.Normal} />
|
package/dist/stories/Title.mdx
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultAccentAppearance: {
|
|
2
|
+
accent: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
accentPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
accentSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
accentTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
accentQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultAccentAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultDangerAppearance: {
|
|
2
|
+
danger: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
dangerPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
dangerSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
dangerTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
dangerQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultDangerAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultDisabledAppearance: {
|
|
2
|
+
disabled: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
disabledPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
disabledSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
disabledTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
disabledQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultDisabledAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultErrorAppearance: {
|
|
2
|
+
error: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
errorPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
errorSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
errorTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
errorQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultErrorAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultInfoAppearance: {
|
|
2
|
+
info: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
infoPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
infoSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
infoTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
infoQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultInfoAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultPrimaryAppearance: {
|
|
2
|
+
primary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
primaryPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
primarySecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
primaryTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
primaryQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultPrimaryAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultSecondaryAppearance: {
|
|
2
|
+
secondary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
secondaryPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
secondarySecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
secondaryTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
secondaryQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultSecondaryAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultSuccessAppearance: {
|
|
2
|
+
success: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
successPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
successSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
successTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
successQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultSuccessAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultSurfaceAppearance: {
|
|
2
|
+
surface: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
surfacePrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
surfaceSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
surfaceTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
surfaceQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultSurfaceAppearance };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const defaultWarningAppearance: {
|
|
2
|
+
warning: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
};
|
|
8
|
+
warningPrimary: {
|
|
9
|
+
fill: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
14
|
+
warningSecondary: {
|
|
15
|
+
fill: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
iconFill: string;
|
|
19
|
+
};
|
|
20
|
+
warningTertiary: {
|
|
21
|
+
fill: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconFill: string;
|
|
25
|
+
};
|
|
26
|
+
warningQuaternary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
iconFill: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export { defaultWarningAppearance };
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defaultAccentAppearance } from './default/defaultAccent';
|
|
2
|
+
import { defaultAppearance } from './default/defaultAppearance';
|
|
3
|
+
import { defaultDangerAppearance } from './default/defaultDanger';
|
|
4
|
+
import { defaultDisabledAppearance } from './default/defaultDisabled';
|
|
5
|
+
import { defaultErrorAppearance } from './default/defaultError';
|
|
6
|
+
import { defaultInfoAppearance } from './default/defaultInfo';
|
|
7
|
+
import { defaultPrimaryAppearance } from './default/defaultPrimary';
|
|
8
|
+
import { defaultSuccessAppearance } from './default/defaultSuccess';
|
|
9
|
+
import { defaultSurfaceAppearance } from './default/defaultSurface';
|
|
10
|
+
import { defaultWarningAppearance } from './default/defaultWarning';
|
|
2
11
|
import { styleAppearance } from './styleAppearance';
|
|
3
|
-
export { defaultAppearance, styleAppearance };
|
|
12
|
+
export { defaultAppearance, defaultAccentAppearance, defaultDangerAppearance, defaultDisabledAppearance, defaultErrorAppearance, defaultInfoAppearance, defaultPrimaryAppearance, defaultSuccessAppearance, defaultSurfaceAppearance, defaultWarningAppearance, styleAppearance, };
|
|
@@ -26,7 +26,7 @@ export type avatarAppearanceType = {
|
|
|
26
26
|
export interface iAvatarConfig {
|
|
27
27
|
[key: number | string | symbol]: any;
|
|
28
28
|
appearance: avatarAppearanceType | undefined;
|
|
29
|
-
setAppearance: (
|
|
29
|
+
setAppearance: (appearanceConfig: avatarAppearanceType) => void;
|
|
30
30
|
}
|
|
31
31
|
export interface iAvatarProps extends iAvatarThemeColor, iStyleAttributes {
|
|
32
32
|
[key: number | string | symbol]: any;
|
|
@@ -2,18 +2,18 @@ declare const buttonAppearanceInfo: {
|
|
|
2
2
|
info: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
borderColor: string;
|
|
6
5
|
labelTextColor: string;
|
|
7
6
|
labelTextColorHover: string;
|
|
7
|
+
borderColor: string;
|
|
8
8
|
loaderFill: string;
|
|
9
9
|
loaderItemFill: string;
|
|
10
10
|
};
|
|
11
11
|
infoSecondary: {
|
|
12
12
|
fill: string;
|
|
13
13
|
fillHover: string;
|
|
14
|
-
borderColor: string;
|
|
15
14
|
labelTextColor: string;
|
|
16
15
|
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
17
|
loaderFill: string;
|
|
18
18
|
loaderItemFill: string;
|
|
19
19
|
};
|