@itcase/ui 1.8.19 → 1.8.21
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/Avatar_cjs_CiQ14ufF.js +240 -0
- package/dist/Avatar_es_No9vSqji.js +236 -0
- package/dist/{Button_cjs_DjCsrrlr.js → Button_cjs_CnStmeGt.js} +12 -4
- package/dist/{Button_es_CHDT0-8K.js → Button_es_BV1bepl1.js} +12 -4
- package/dist/{ChipsGroup_cjs_CTpMiyQb.js → ChipsGroup_cjs_CL00pWKy.js} +2 -2
- package/dist/{ChipsGroup_es_CP_xm25C.js → ChipsGroup_es_Ciln2otW.js} +2 -2
- package/dist/{DatePicker_cjs_DPtOL1eW.js → DatePicker_cjs_DGgkpGbI.js} +4 -4
- package/dist/{DatePicker_es_DCuzMD0T.js → DatePicker_es_BIOyGm22.js} +4 -4
- package/dist/{DropdownItem_cjs_DW0UXopm.js → DropdownItem_cjs_DT-zspEr.js} +15 -15
- package/dist/{DropdownItem_es_vuNthDPa.js → DropdownItem_es_BJLFqVuH.js} +15 -15
- package/dist/{Group_cjs_B0oM0pjF.js → Group_cjs_Cwt0gWk4.js} +9 -2
- package/dist/{Group_es_B8pQHYsC.js → Group_es_CYW2Hquh.js} +9 -2
- package/dist/{Image_cjs_DuIBtUq5.js → Image_cjs_CCWqbNn4.js} +11 -3
- package/dist/{Image_es_CSzHhlA1.js → Image_es_DZUVp0FS.js} +11 -3
- package/dist/{Label_cjs_mw4pHZR1.js → Label_cjs_Cqcf6ffp.js} +2 -2
- package/dist/{Label_es_CiPEDFcR.js → Label_es_CeNdA70T.js} +2 -2
- package/dist/Link_cjs_BlXrJ15R.js +303 -0
- package/dist/Link_es_CyJn7NFb.js +298 -0
- package/dist/{Loader_cjs_DZbIy6Ko.js → Loader_cjs_3VRzFLI2.js} +14 -2
- package/dist/{Loader_es_SHdP0IkA.js → Loader_es_DEYowVdU.js} +14 -2
- package/dist/Text_cjs_DPhKj3wf.js +68 -0
- package/dist/{Text_es_D012qJ8s.js → Text_es_BRb3qqKM.js} +8 -3
- package/dist/{Tooltip_cjs_BKOjNMkt.js → Tooltip_cjs_Cq5kuaIK.js} +480 -17
- package/dist/{Tooltip_es_C7zstTA2.js → Tooltip_es_D0PSqI2c.js} +480 -17
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +13 -236
- package/dist/cjs/components/AvatarStack.js +35 -0
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +6 -6
- package/dist/cjs/components/CookiesWarning.js +13 -6
- package/dist/cjs/components/DatePeriod.js +8 -8
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Drawer.js +26 -2
- package/dist/cjs/components/Dropdown.js +5 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/InputPassword.js +226 -46
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/ModalSheetBottom.js +7 -0
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +11 -9
- package/dist/cjs/components/Panel.js +2 -2
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +227 -183
- package/dist/cjs/components/Search.js +126 -13
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +238 -3
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +240 -5
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +10 -237
- package/dist/components/AvatarStack.js +33 -0
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +6 -6
- package/dist/components/CookiesWarning.js +13 -7
- package/dist/components/DatePeriod.js +8 -8
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Drawer.js +26 -2
- package/dist/components/Dropdown.js +5 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/Image.js +2 -2
- package/dist/components/InputPassword.js +226 -45
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalSheetBottom.js +7 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +11 -9
- package/dist/components/Panel.js +2 -2
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +227 -183
- package/dist/components/Search.js +126 -13
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +238 -3
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +240 -5
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/AvatarStack/AvatarStack.css +67 -0
- package/dist/css/components/Icon/Icon.css +128 -4
- package/dist/css/components/Text/Text.css +0 -9
- package/dist/css/styles/border-color/border-color_hover.css +6 -8
- package/dist/css/styles/fill/fill_active.css +19 -9
- package/dist/css/styles/fill/fill_active_hover.css +19 -0
- package/dist/css/styles/fill/fill_hover.css +19 -0
- package/dist/css/styles/text-color/text-color_active.css +17 -0
- package/dist/css/styles/text-color/text-color_active_hover.css +40 -0
- package/dist/stories/index.stories.js +49 -0
- package/dist/stories/useDevicePropsGenerator.mdx +76 -102
- package/dist/stories/useMediaQueries.mdx +32 -7
- package/dist/stories/useStyles.mdx +50 -2
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +3 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -0
- package/dist/types/components/AvatarStack/index.d.ts +2 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +5 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +25 -0
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +0 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +5 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +2 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -11
- package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +7 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +11 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +21 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +8 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +8 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +59 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +16 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +11 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +25 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +11 -0
- package/dist/types/components/InputPassword/index.d.ts +1 -1
- package/dist/types/components/Link/appearance/linkAccent.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkDanger.d.ts +7 -0
- package/dist/types/components/Link/appearance/linkDisabled.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkError.d.ts +11 -0
- package/dist/types/components/Link/appearance/linkInfo.d.ts +21 -0
- package/dist/types/components/Link/appearance/linkPrimary.d.ts +8 -0
- package/dist/types/components/Link/appearance/linkRequire.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkSecondary.d.ts +8 -0
- package/dist/types/components/Link/appearance/linkSize.d.ts +59 -0
- package/dist/types/components/Link/appearance/linkStyle.d.ts +16 -0
- package/dist/types/components/Link/appearance/linkSuccess.d.ts +11 -0
- package/dist/types/components/Link/appearance/linkSurface.d.ts +25 -0
- package/dist/types/components/Link/appearance/linkWarning.d.ts +11 -0
- package/dist/types/components/Loader/Loader.appearance.d.ts +3 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +16 -17
- package/dist/types/components/Loader/appearance/loaderSize.d.ts +12 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +5 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Response/Response.appearance.d.ts +2 -2
- package/dist/types/components/Response/appearance/responseAccent.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseDanger.d.ts +7 -0
- package/dist/types/components/Response/appearance/responseDisabled.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +11 -0
- package/dist/types/components/Response/appearance/responseInfo.d.ts +21 -0
- package/dist/types/components/Response/appearance/responsePrimary.d.ts +8 -0
- package/dist/types/components/Response/appearance/responseRequire.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseSecondary.d.ts +8 -0
- package/dist/types/components/Response/appearance/responseSize.d.ts +59 -0
- package/dist/types/components/Response/appearance/responseStyle.d.ts +16 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +11 -0
- package/dist/types/components/Response/appearance/responseSurface.d.ts +25 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +11 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +24 -0
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchError.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchRequire.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchSize.d.ts +18 -8
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +20 -0
- package/dist/types/components/Switch/Switch.appearance.d.ts +1 -1
- package/dist/types/components/Switch/appearance/switchAccent.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchDanger.d.ts +7 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchError.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchInfo.d.ts +21 -0
- package/dist/types/components/Switch/appearance/switchPrimary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchSecondary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchSize.d.ts +59 -0
- package/dist/types/components/Switch/appearance/switchStyle.d.ts +16 -0
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchSurface.d.ts +25 -0
- package/dist/types/components/Switch/appearance/switchWarning.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileAccent.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileDanger.d.ts +7 -0
- package/dist/types/components/Tile/appearance/tileDisabled.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileError.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileInfo.d.ts +21 -0
- package/dist/types/components/Tile/appearance/tilePrimary.d.ts +8 -0
- package/dist/types/components/Tile/appearance/tileRequire.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileSecondary.d.ts +8 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +59 -0
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +16 -0
- package/dist/types/components/Tile/appearance/tileSuccess.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileWarning.d.ts +11 -0
- package/dist/types/components/Title/Title.appearance.d.ts +2 -2
- package/dist/types/components/Title/Title.interface.d.ts +3 -3
- package/dist/types/components/Title/appearance/titleAccent.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleDanger.d.ts +7 -0
- package/dist/types/components/Title/appearance/titleDisabled.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleError.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleInfo.d.ts +21 -0
- package/dist/types/components/Title/appearance/titlePrimary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleRequire.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleSecondary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleSize.d.ts +59 -0
- package/dist/types/components/Title/appearance/titleStyle.d.ts +16 -0
- package/dist/types/components/Title/appearance/titleSuccess.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleSurface.d.ts +25 -0
- package/dist/types/components/Title/appearance/titleWarning.d.ts +11 -0
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +1 -1
- package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +7 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +21 -0
- package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +59 -0
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +16 -0
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +25 -0
- package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +11 -0
- package/package.json +7 -7
- package/dist/Link_cjs_yht44xJv.js +0 -68
- package/dist/Link_es_DkW06IM-.js +0 -63
- package/dist/Text_cjs_iL1l_7V1.js +0 -63
- package/dist/stories/Pagination.mdx +0 -11
- package/dist/stories/Tile.mdx +0 -11
|
@@ -23,20 +23,45 @@ import { Meta } from '@storybook/blocks'
|
|
|
23
23
|
<td>userDevice</td>
|
|
24
24
|
<td>UserDeviceState</td>
|
|
25
25
|
<td>`{}`</td>
|
|
26
|
-
<td
|
|
26
|
+
<td>`Boolean` флаги устройства пользователя</td>
|
|
27
27
|
</tr>
|
|
28
28
|
</tbody>
|
|
29
29
|
</table>
|
|
30
30
|
|
|
31
31
|
### Возвращает объект
|
|
32
32
|
|
|
33
|
-
`deviceTypes` - который является объектом в котором находятся все флаги
|
|
33
|
+
`deviceTypes` - который является объектом в котором находятся все `boolean` флаги
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
<table>
|
|
36
|
+
<thead>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>Флаг</th>
|
|
39
|
+
<th>Диапазон(px)</th>
|
|
40
|
+
</tr>
|
|
41
|
+
</thead>
|
|
42
|
+
<tbody>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>`isMobile`</td>
|
|
45
|
+
<td>`≥ 240px и ≤ 768px`</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td>`isMobileHuge`</td>
|
|
49
|
+
<td>`≥ 640px и ≤ 768px`</td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>`isTablet`</td>
|
|
53
|
+
<td>`≥ 768px и ≤ 960px`</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>`isDesktop`</td>
|
|
57
|
+
<td>`≥ 960px и ≤ 1920px`</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>`isDesktopMega`</td>
|
|
61
|
+
<td>`≥ 2560px`</td>
|
|
62
|
+
</tr>
|
|
63
|
+
</tbody>
|
|
64
|
+
</table>
|
|
40
65
|
|
|
41
66
|
### Использование
|
|
42
67
|
|
|
@@ -4,15 +4,63 @@ import { Meta } from '@storybook/blocks'
|
|
|
4
4
|
|
|
5
5
|
# `useStyles`
|
|
6
6
|
|
|
7
|
-
Хук конвертирует
|
|
7
|
+
Хук конвертирует props компонента в inline стили.
|
|
8
8
|
|
|
9
9
|
Важно учитывать приоритет при котором будут применяться стили:
|
|
10
10
|
|
|
11
|
-
1. Сначала используется значение из props, соответствующее текущему устройству
|
|
11
|
+
1. Сначала используется значение из props, соответствующее текущему устройству
|
|
12
|
+
- Передали
|
|
13
|
+
|
|
14
|
+
```jsx
|
|
15
|
+
<Component textAlignMobile="center" />
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- Получили
|
|
19
|
+
```jsx
|
|
20
|
+
<Component style={{ textAlign: 'center' }} />
|
|
21
|
+
```
|
|
22
|
+
|
|
12
23
|
2. Если такого нет — используется значение из props без учёта устройства
|
|
24
|
+
- Передали
|
|
25
|
+
|
|
26
|
+
```jsx
|
|
27
|
+
<Component textAlign="right" />
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- Получили
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
<Component style={{ textAlign: 'right' }} />
|
|
34
|
+
```
|
|
35
|
+
|
|
13
36
|
3. Если и его нет — берётся значение из appearance-конфига для текущего устройства
|
|
37
|
+
|
|
38
|
+
- Передали
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
{
|
|
42
|
+
textAlignMobile: 'left'
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- Получили
|
|
47
|
+
|
|
48
|
+
```jsx
|
|
49
|
+
<Component style={{ textAlign: 'left' }} />
|
|
50
|
+
```
|
|
51
|
+
|
|
14
52
|
4. И в последнюю очередь — значение из appearance-конфига без учёта устройства
|
|
15
53
|
|
|
54
|
+
- Передали
|
|
55
|
+
```jsx
|
|
56
|
+
textAlign: 'justify'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- Получили
|
|
60
|
+
```jsx
|
|
61
|
+
<Component style={{ textAlign: 'justify' }} />
|
|
62
|
+
```
|
|
63
|
+
|
|
16
64
|
## API
|
|
17
65
|
|
|
18
66
|
### Параметры
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SizePXProps, TextSizeProps } from '@itcase/ui/types';
|
|
2
|
+
interface AvatarStackProps {
|
|
3
|
+
avatarSize: SizePXProps;
|
|
4
|
+
showCountUsers?: number;
|
|
5
|
+
textSize?: TextSizeProps;
|
|
6
|
+
userFirstName?: string;
|
|
7
|
+
userLastName?: string;
|
|
8
|
+
}
|
|
9
|
+
export type { AvatarStackProps };
|
|
@@ -7,5 +7,13 @@ declare const buttonAppearanceDanger: {
|
|
|
7
7
|
loaderFill: string;
|
|
8
8
|
loaderItemFill: string;
|
|
9
9
|
};
|
|
10
|
+
dangerPrimary: {
|
|
11
|
+
fill: string;
|
|
12
|
+
fillHover: string;
|
|
13
|
+
labelTextColor: string;
|
|
14
|
+
labelTextColorHover: string;
|
|
15
|
+
loaderFill: string;
|
|
16
|
+
loaderItemFill: string;
|
|
17
|
+
};
|
|
10
18
|
};
|
|
11
19
|
export { buttonAppearanceDanger };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const drawerAppearanceSurface: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
};
|
|
7
|
+
surfaceQuaternary: {
|
|
8
|
+
fill: string;
|
|
9
|
+
fillHover: string;
|
|
10
|
+
labelTextColor: string;
|
|
11
|
+
};
|
|
12
|
+
surfaceSecondary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillHover: string;
|
|
15
|
+
labelTextColor: string;
|
|
16
|
+
loaderFill: string;
|
|
17
|
+
loaderItemFill: string;
|
|
18
|
+
};
|
|
19
|
+
surfaceTertiary: {
|
|
20
|
+
fill: string;
|
|
21
|
+
fillHover: string;
|
|
22
|
+
labelTextColor: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { drawerAppearanceSurface };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
declare const dropdownAppearanceAccent: {
|
|
2
|
-
accent: {
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
};
|
|
6
2
|
accentPrimary: {
|
|
7
3
|
fill: string;
|
|
8
4
|
fillHover: string;
|
|
@@ -14,8 +10,6 @@ declare const dropdownAppearanceAccent: {
|
|
|
14
10
|
labelTextColor: string;
|
|
15
11
|
labelTextColorHover: string;
|
|
16
12
|
borderColor: string;
|
|
17
|
-
loaderFill: string;
|
|
18
|
-
loaderItemFill: string;
|
|
19
13
|
};
|
|
20
14
|
};
|
|
21
15
|
export { dropdownAppearanceAccent };
|
|
@@ -3,6 +3,11 @@ declare const dropdownAppearanceSurface: {
|
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
5
|
labelTextColor: string;
|
|
6
|
+
labelTextColorActive: string;
|
|
7
|
+
labelTextColorActiveHover: string;
|
|
8
|
+
labelTextColorHover: string;
|
|
9
|
+
iconAfterFillIcon: string;
|
|
10
|
+
iconBeforeFillIcon: string;
|
|
6
11
|
};
|
|
7
12
|
surfaceQuaternary: {
|
|
8
13
|
fill: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const InputPasswordState: InputState;
|
|
1
|
+
import { InputPasswordAppearanceType } from './InputPassword.interface';
|
|
2
|
+
export declare const inputPasswordAppearance: InputPasswordAppearanceType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceKeysDefault, BorderColorProps, BorderWidthProps, FillProps, IconSizeProps, ItemColorProps, ShapeProps, SizeProps,
|
|
1
|
+
import { AppearanceKeysDefault, BorderColorProps, BorderWidthProps, FillProps, IconSizeProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, WidthProps } from '@itcase/types';
|
|
2
2
|
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface InputThemeColor {
|
|
4
4
|
[key: number | string | symbol]: any;
|
|
@@ -15,19 +15,13 @@ export interface InputThemeColor {
|
|
|
15
15
|
width?: WidthProps;
|
|
16
16
|
}
|
|
17
17
|
type AppearanceKeys = AppearanceKeysDefault & {};
|
|
18
|
-
type
|
|
19
|
-
export type InputState = {
|
|
20
|
-
[key in stateKeysType]?: InputThemeColor;
|
|
21
|
-
};
|
|
22
|
-
export type InputAppearance = {
|
|
18
|
+
export type InputPasswordAppearanceType = {
|
|
23
19
|
[key in AppearanceKeys]?: InputThemeColor;
|
|
24
20
|
};
|
|
25
21
|
export interface InputPasswordConfig {
|
|
26
22
|
[key: number | string | symbol]: any;
|
|
27
|
-
appearance:
|
|
28
|
-
|
|
29
|
-
setAppearance: (newComponent: InputAppearance) => void;
|
|
30
|
-
setState: (newComponent: InputState) => void;
|
|
23
|
+
appearance: InputPasswordAppearanceType | undefined;
|
|
24
|
+
setAppearance: (newComponent: InputPasswordAppearanceType) => void;
|
|
31
25
|
}
|
|
32
26
|
export interface InputPasswordProps extends InputThemeColor, StyleAttributes {
|
|
33
27
|
id?: number | string;
|
|
@@ -44,7 +38,6 @@ export interface InputPasswordProps extends InputThemeColor, StyleAttributes {
|
|
|
44
38
|
imageRevealableHide?: string;
|
|
45
39
|
imageRevealableShow?: string;
|
|
46
40
|
placeholder?: string;
|
|
47
|
-
state?: stateKeysType;
|
|
48
41
|
value?: string;
|
|
49
42
|
isRevealable?: boolean;
|
|
50
43
|
onBlur?: () => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceAccent: {
|
|
2
|
+
accent: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
};
|
|
6
|
+
accentPrimary: {
|
|
7
|
+
fill: string;
|
|
8
|
+
fillHover: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
};
|
|
11
|
+
accentSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
loaderItemFill: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { inputPasswordAppearanceAccent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceDisabled: {
|
|
2
|
+
disabledPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderHover: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
iconBeforeFill: string;
|
|
8
|
+
iconClearFill: string;
|
|
9
|
+
placeholderTextColor: string;
|
|
10
|
+
};
|
|
11
|
+
disabledSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHover: string;
|
|
15
|
+
iconBeforeFill: string;
|
|
16
|
+
iconClearFill: string;
|
|
17
|
+
placeholderTextColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { inputPasswordAppearanceDisabled };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceInfo: {
|
|
2
|
+
info: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
loaderFill: string;
|
|
9
|
+
loaderItemFill: string;
|
|
10
|
+
};
|
|
11
|
+
infoSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
loaderFill: string;
|
|
18
|
+
loaderItemFill: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export { inputPasswordAppearanceInfo };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceRequire: {
|
|
2
|
+
requirePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderHover: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
iconBeforeFill: string;
|
|
8
|
+
iconClearFill: string;
|
|
9
|
+
placeholderTextColor: string;
|
|
10
|
+
};
|
|
11
|
+
requireSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHover: string;
|
|
15
|
+
iconBeforeFill: string;
|
|
16
|
+
iconClearFill: string;
|
|
17
|
+
placeholderTextColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { inputPasswordAppearanceRequire };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceSize: {
|
|
2
|
+
sizeXXL: {
|
|
3
|
+
size: string;
|
|
4
|
+
labelTextSize: string;
|
|
5
|
+
iconAfterFillSize: string;
|
|
6
|
+
iconAfterSize: string;
|
|
7
|
+
iconBeforeFillSize: string;
|
|
8
|
+
iconBeforeSize: string;
|
|
9
|
+
};
|
|
10
|
+
sizeXL: {
|
|
11
|
+
size: string;
|
|
12
|
+
labelTextSize: string;
|
|
13
|
+
iconAfterFillSize: string;
|
|
14
|
+
iconAfterSize: string;
|
|
15
|
+
iconBeforeFillSize: string;
|
|
16
|
+
iconBeforeSize: string;
|
|
17
|
+
};
|
|
18
|
+
sizeL: {
|
|
19
|
+
size: string;
|
|
20
|
+
labelTextSize: string;
|
|
21
|
+
iconAfterFillSize: string;
|
|
22
|
+
iconAfterSize: string;
|
|
23
|
+
iconBeforeFillSize: string;
|
|
24
|
+
iconBeforeSize: string;
|
|
25
|
+
};
|
|
26
|
+
sizeM: {
|
|
27
|
+
size: string;
|
|
28
|
+
labelTextSize: string;
|
|
29
|
+
iconAfterFillSize: string;
|
|
30
|
+
iconAfterSize: string;
|
|
31
|
+
iconBeforeFillSize: string;
|
|
32
|
+
iconBeforeSize: string;
|
|
33
|
+
};
|
|
34
|
+
sizeS: {
|
|
35
|
+
size: string;
|
|
36
|
+
labelTextSize: string;
|
|
37
|
+
iconAfterFillSize: string;
|
|
38
|
+
iconAfterSize: string;
|
|
39
|
+
iconBeforeFillSize: string;
|
|
40
|
+
iconBeforeSize: string;
|
|
41
|
+
};
|
|
42
|
+
sizeXS: {
|
|
43
|
+
size: string;
|
|
44
|
+
labelTextSize: string;
|
|
45
|
+
iconAfterFillSize: string;
|
|
46
|
+
iconAfterSize: string;
|
|
47
|
+
iconBeforeFillSize: string;
|
|
48
|
+
iconBeforeSize: string;
|
|
49
|
+
};
|
|
50
|
+
sizeXXS: {
|
|
51
|
+
size: string;
|
|
52
|
+
labelTextSize: string;
|
|
53
|
+
iconAfterFillSize: string;
|
|
54
|
+
iconAfterSize: string;
|
|
55
|
+
iconBeforeFillSize: string;
|
|
56
|
+
iconBeforeSize: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export { inputPasswordAppearanceSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceStyle: {
|
|
2
|
+
full: {
|
|
3
|
+
borderColor: string;
|
|
4
|
+
};
|
|
5
|
+
ghost: {
|
|
6
|
+
fill: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
};
|
|
9
|
+
outlined: {
|
|
10
|
+
fill: string;
|
|
11
|
+
};
|
|
12
|
+
solid: {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export { inputPasswordAppearanceStyle };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceSuccess: {
|
|
2
|
+
success: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
loaderFill: string;
|
|
8
|
+
loaderItemFill: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export { inputPasswordAppearanceSuccess };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceSurface: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
};
|
|
7
|
+
surfaceQuaternary: {
|
|
8
|
+
fill: string;
|
|
9
|
+
fillHover: string;
|
|
10
|
+
labelTextColor: string;
|
|
11
|
+
};
|
|
12
|
+
surfaceSecondary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillHover: string;
|
|
15
|
+
labelTextColor: string;
|
|
16
|
+
loaderFill: string;
|
|
17
|
+
loaderItemFill: string;
|
|
18
|
+
};
|
|
19
|
+
surfaceTertiary: {
|
|
20
|
+
fill: string;
|
|
21
|
+
fillHover: string;
|
|
22
|
+
labelTextColor: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { inputPasswordAppearanceSurface };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const inputPasswordAppearanceWarning: {
|
|
2
|
+
warning: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
loaderFill: string;
|
|
8
|
+
loaderItemFill: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export { inputPasswordAppearanceWarning };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { inputPasswordAppearance } from './InputPassword.appearance';
|
|
2
2
|
export { InputPassword, inputPasswordConfig } from './InputPassword';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const linkAppearanceAccent: {
|
|
2
|
+
accent: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
};
|
|
6
|
+
accentPrimary: {
|
|
7
|
+
fill: string;
|
|
8
|
+
fillHover: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
};
|
|
11
|
+
accentSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
loaderItemFill: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { linkAppearanceAccent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const linkAppearanceDisabled: {
|
|
2
|
+
disabledPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderHover: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
iconBeforeFill: string;
|
|
8
|
+
iconClearFill: string;
|
|
9
|
+
placeholderTextColor: string;
|
|
10
|
+
};
|
|
11
|
+
disabledSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHover: string;
|
|
15
|
+
iconBeforeFill: string;
|
|
16
|
+
iconClearFill: string;
|
|
17
|
+
placeholderTextColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { linkAppearanceDisabled };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const linkAppearanceInfo: {
|
|
2
|
+
info: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
loaderFill: string;
|
|
9
|
+
loaderItemFill: string;
|
|
10
|
+
};
|
|
11
|
+
infoSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
loaderFill: string;
|
|
18
|
+
loaderItemFill: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export { linkAppearanceInfo };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const linkAppearanceRequire: {
|
|
2
|
+
requirePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderHover: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
iconBeforeFill: string;
|
|
8
|
+
iconClearFill: string;
|
|
9
|
+
placeholderTextColor: string;
|
|
10
|
+
};
|
|
11
|
+
requireSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHover: string;
|
|
15
|
+
iconBeforeFill: string;
|
|
16
|
+
iconClearFill: string;
|
|
17
|
+
placeholderTextColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { linkAppearanceRequire };
|