@itcase/ui 1.2.23 → 1.2.25
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/{Button-BLcVDStV.js → Button-C0M-Ap20.js} +1 -1
- package/dist/{Button-DawNa85U.js → Button-COsywjkv.js} +1 -1
- package/dist/{Icon-BeHO7N79.js → Icon-CkynFJm4.js} +3 -3
- package/dist/{Icon-DQWyj5EO.js → Icon-CliIEdbp.js} +3 -3
- package/dist/{Label-B0O9q0E4.js → Label-BPP0om7_.js} +1 -1
- package/dist/{Label-D8DRdqad.js → Label-ukXod6pv.js} +1 -1
- package/dist/{Title-zwP6c2U2.js → Title-B-N0qkn3.js} +9 -1
- package/dist/{Title-BfSFPJtJ.js → Title-CqwqEtm7.js} +9 -1
- package/dist/{Tooltip-aaDRYNWY.js → Tooltip-B2vv4OAX.js} +1 -1
- package/dist/{Tooltip-xGmgUzGr.js → Tooltip-DsTCGS6h.js} +1 -1
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/ContextMenu.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/InputPassword.js +3 -3
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/LanguageSelector.js +3 -3
- package/dist/cjs/components/Notification.js +13 -14
- package/dist/cjs/components/Pagination.js +47 -14
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +3 -3
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/SiteMenu.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +4 -4
- package/dist/components/Choice.js +3 -3
- package/dist/components/ContextMenu.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Icon.js +3 -3
- package/dist/components/InputPassword.js +3 -3
- package/dist/components/Label.js +3 -3
- package/dist/components/LanguageSelector.js +3 -3
- package/dist/components/Notification.js +13 -14
- package/dist/components/Pagination.js +47 -15
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +3 -3
- package/dist/components/SiteMenu.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +2 -2
- package/dist/css/components/DatePicker/DatePicker.css +1 -1
- package/dist/css/components/Icon/Icon.css +1 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/mixins/mixin_utils.css +18 -11
- package/dist/css/styles/mediaqueries.css +1 -1
- package/dist/css/tokens/typography.css +3 -0
- package/dist/stories/appearance.mdx +5 -0
- package/dist/stories/colors.mdx +239 -0
- package/dist/stories/elevation.mdx +80 -0
- package/dist/stories/mixins_animation.mdx +5 -0
- package/dist/stories/mixins_dark-light.mdx +54 -0
- package/dist/stories/mixins_elevation.mdx +5 -0
- package/dist/stories/mixins_fill-gradient.mdx +5 -0
- package/dist/stories/mixins_typography.mdx +133 -0
- package/dist/stories/mixins_utils.mdx +5 -0
- package/dist/stories/typography.mdx +82 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +2 -1
- package/dist/types/components/Notification/NotificationItem.d.ts +0 -6
- package/dist/types/components/Pagination/Pagination.d.ts +3 -2
- package/dist/types/components/Pagination/Pagination.interface.d.ts +30 -13
- package/dist/types/components/Pagination/index.d.ts +1 -1
- package/package.json +22 -21
- package/dist/stories/Configure.mdx +0 -364
- package/dist/stories/Header.stories.js +0 -29
- package/dist/stories/Page.stories.js +0 -28
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Meta } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title="Mixins / Dark-Light" />
|
|
4
|
+
|
|
5
|
+
# Dark/Light
|
|
6
|
+
|
|
7
|
+
Для работы с темами используются пакеты `postcss-dark-theme-class` и `postcss-mixins`
|
|
8
|
+
|
|
9
|
+
```css
|
|
10
|
+
:root {
|
|
11
|
+
@media (prefers-color-scheme: light) {
|
|
12
|
+
--color-test: hsla(51, 98%, 61%, 1);
|
|
13
|
+
}
|
|
14
|
+
@media (prefers-color-scheme: dark) {
|
|
15
|
+
--color-test: hsla(221, 95%, 40%, 1);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
# Миксины для указания `CSS`
|
|
21
|
+
|
|
22
|
+
```css
|
|
23
|
+
@define-mixin dark {
|
|
24
|
+
@media (prefers-color-scheme: dark) {
|
|
25
|
+
& {
|
|
26
|
+
@mixin-content;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@define-mixin light {
|
|
32
|
+
@media (prefers-color-scheme: light) {
|
|
33
|
+
& {
|
|
34
|
+
@mixin-content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@mixin-content;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
# Пример использования
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
.block {
|
|
45
|
+
width: 100px;
|
|
46
|
+
height: 100px;
|
|
47
|
+
@mixin dark {
|
|
48
|
+
background: #000;
|
|
49
|
+
}
|
|
50
|
+
@mixin light {
|
|
51
|
+
background: #fff;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Meta } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title="Mixins / Typography" />
|
|
4
|
+
|
|
5
|
+
# Typography
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Общие настройки для текста находятся в файле `fonts.css`
|
|
9
|
+
|
|
10
|
+
Название переменных для шрифтов задаются в формате порядковых числительных за исключение шрифта для писем.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
:root {
|
|
14
|
+
--font-primary: 'Inter', sans-serif;
|
|
15
|
+
--font-secondary: 'Roboto', sans-serif;
|
|
16
|
+
--font-email: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
# Миксин `@font`
|
|
21
|
+
|
|
22
|
+
В большинстве проектов используются отзывчивые шрифты с использованием миксина `@font` и пакетов: `postcss-mixins` и `postcss-responsive-type`
|
|
23
|
+
|
|
24
|
+
```css
|
|
25
|
+
@define-mixin font $fontWeight, $minFontSize, $minLineHeight, $minLetterSpacing, $maxFontSize, $maxLineHeight, $maxLetterSpacing, $fontFamily {
|
|
26
|
+
font-size: responsive $minFontSize $maxFontSize;
|
|
27
|
+
font-range: var(--min-max);
|
|
28
|
+
font-weight: $fontWeight;
|
|
29
|
+
font-family: $fontFamily;
|
|
30
|
+
line-height: responsive $minLineHeight $maxLineHeight;
|
|
31
|
+
line-height-range: var(--min-max);
|
|
32
|
+
letter-spacing: responsive $minLetterSpacing $maxLetterSpacing;
|
|
33
|
+
letter-spacing-range: var(--min-max);
|
|
34
|
+
@media (--desktop-super-huge) {
|
|
35
|
+
font-size: $maxFontSize;
|
|
36
|
+
line-height: $maxLineHeight;
|
|
37
|
+
letter-spacing: $maxLetterSpacing;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Параметры миксина `@font`
|
|
43
|
+
|
|
44
|
+
- `$fontWeight` — вес шрифта `default: normal`
|
|
45
|
+
- `$minFontSize` — минимальная высота строки
|
|
46
|
+
- `$minLineHeight` — максимальный высота строки
|
|
47
|
+
- `$maxFontSize` — минимальная ширина буквы
|
|
48
|
+
- `$minLetterSpacing` — максимальный размер шрифта `default: normal`
|
|
49
|
+
- `$maxLineHeight` — максимальная высота строки
|
|
50
|
+
- `$maxLetterSpacing` — максимальная ширина буквы `default: normal`
|
|
51
|
+
- `$fontFamily` — шрифт
|
|
52
|
+
|
|
53
|
+
## Использование миксина `@font`
|
|
54
|
+
|
|
55
|
+
Создание миксинов текстовых стилей с использование миксина `@font`
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
@define-mixin h1 $weight: normal, $minLetterSpacing: normal, $maxLetterSpacing: normal { {
|
|
59
|
+
@mixin font $fontWeight, 36px, 36px, $minLetterSpacing, 80px, 80px, $maxLetterSpacing, var(--font-primary);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@define-mixin h5 $weight: normal, $minLetterSpacing: normal, $maxLetterSpacing: normal { {
|
|
63
|
+
@mixin font $fontWeight, 24px, 28px, $minLetterSpacing, 48px, 48px, $maxLetterSpacing, var(--font-primary);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@define-mixin text-l $weight: normal, $minLetterSpacing: normal, $maxLetterSpacing: normal { {
|
|
67
|
+
@mixin font $fontWeight, 24px, 28px, $minLetterSpacing, 32px, 40px, $maxLetterSpacing, var(--font-secondary);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@define-mixin text-xs $weight: normal, $minLetterSpacing: normal, $maxLetterSpacing: normal { {
|
|
71
|
+
@mixin font $fontWeight, 16px, 20px, $minLetterSpacing, 16px, 20px, $maxLetterSpacing, var(--font-secondary);
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Пример использования миксинов текстовых стилей
|
|
76
|
+
|
|
77
|
+
```css
|
|
78
|
+
.title-block {
|
|
79
|
+
color: var(--color-surface-text-primary);
|
|
80
|
+
@mixin h1 bold;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
# Создание миксинов на основе `Text Styles`
|
|
85
|
+
в Figma
|
|
86
|
+
|
|
87
|
+
Например в Figma доступны следующий текстовые стили:
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## Пример созданных миксинов
|
|
92
|
+
|
|
93
|
+
```css
|
|
94
|
+
@define-mixin h1 $fontWeight: normal {
|
|
95
|
+
@mixin font $fontWeight, 24px, 28px, 24px, 28px, var(--font-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@define-mixin h3 $fontWeight: normal {
|
|
99
|
+
@mixin font $fontWeight, 17px, 22px, 17px, 22px, var(--font-primary);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@define-mixin p $fontWeight: normal {
|
|
103
|
+
@mixin font $fontWeight, 14px, 18px, 14px, 18px, var(--font-primary);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@define-mixin text-xs $fontWeight: normal {
|
|
107
|
+
@mixin font $fontWeight, 16px, 20px, 16px, 20px, var(--font-primary);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@define-mixin text-l $fontWeight: normal {
|
|
111
|
+
@mixin font $fontWeight, 10px, 12px, 10px, 12px, var(--font-primary);
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Использование в `CSS`
|
|
116
|
+
|
|
117
|
+
```css
|
|
118
|
+
.title-block-h1 {
|
|
119
|
+
@mixin h1 bold;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.title-block-3 {
|
|
123
|
+
@mixin h3 600;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
p {
|
|
127
|
+
@mixin p;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.desc {
|
|
131
|
+
@mixin text-l;
|
|
132
|
+
}
|
|
133
|
+
```
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Meta, Typeset } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title="Tokens / Typography" />
|
|
4
|
+
|
|
5
|
+
export const typography = {
|
|
6
|
+
type: {
|
|
7
|
+
primary: 'PF Din Display Pro Family, sans-serif',
|
|
8
|
+
},
|
|
9
|
+
weight: {
|
|
10
|
+
regular: '400',
|
|
11
|
+
bold: '700',
|
|
12
|
+
extrabold: '800',
|
|
13
|
+
black: '900',
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
h1: 64,
|
|
17
|
+
h2: 46,
|
|
18
|
+
h3: 32,
|
|
19
|
+
h4: 24,
|
|
20
|
+
h5: 18,
|
|
21
|
+
h6: 16,
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
|
26
|
+
|
|
27
|
+
# Typography
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
**Font:** PF Din Display Pro Family
|
|
31
|
+
|
|
32
|
+
**Title:** H1- H6
|
|
33
|
+
|
|
34
|
+
<Typeset
|
|
35
|
+
fontSizes={[
|
|
36
|
+
Number(typography.size.h1),
|
|
37
|
+
Number(typography.size.h2),
|
|
38
|
+
Number(typography.size.h3),
|
|
39
|
+
Number(typography.size.h4),
|
|
40
|
+
Number(typography.size.h5),
|
|
41
|
+
Number(typography.size.h6),
|
|
42
|
+
]}
|
|
43
|
+
fontWeight={typography.weight.regular}
|
|
44
|
+
sampleText={SampleText}
|
|
45
|
+
fontFamily={typography.type.primary}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
export const textography = {
|
|
49
|
+
type: {
|
|
50
|
+
primary: 'PF Din Display Pro Family, sans-serif',
|
|
51
|
+
},
|
|
52
|
+
weight: {
|
|
53
|
+
regular: '400',
|
|
54
|
+
semibold: '600',
|
|
55
|
+
},
|
|
56
|
+
size: {
|
|
57
|
+
xxl: 24,
|
|
58
|
+
xl: 22,
|
|
59
|
+
l: 20,
|
|
60
|
+
m: 16,
|
|
61
|
+
s: 14,
|
|
62
|
+
xs: 12,
|
|
63
|
+
xxs: 10,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
**Text:** xxl- xxs
|
|
68
|
+
|
|
69
|
+
<Typeset
|
|
70
|
+
fontSizes={[
|
|
71
|
+
Number(textography.size.xxl),
|
|
72
|
+
Number(textography.size.xl),
|
|
73
|
+
Number(textography.size.l),
|
|
74
|
+
Number(textography.size.m),
|
|
75
|
+
Number(textography.size.s),
|
|
76
|
+
Number(textography.size.xs),
|
|
77
|
+
Number(textography.size.xxs),
|
|
78
|
+
]}
|
|
79
|
+
fontWeight={textography.weight.regular}
|
|
80
|
+
sampleText={SampleText}
|
|
81
|
+
fontFamily={textography.type.primary}
|
|
82
|
+
/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
3
|
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps, titleSizePropsType } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
@@ -36,6 +36,7 @@ export interface INotificationItemProps extends iStyleAttributes {
|
|
|
36
36
|
titleTextColor?: tTextColorProps;
|
|
37
37
|
titleTextSize?: titleSizePropsType;
|
|
38
38
|
type?: string;
|
|
39
|
+
style?: CSSProperties;
|
|
39
40
|
onClickClose?: (id?: number | string) => void;
|
|
40
41
|
fill?: tFillProps;
|
|
41
42
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { INotificationItemConfig, INotificationItemProps } from './Notification.interface';
|
|
2
2
|
declare const notificationItemConfig: INotificationItemConfig;
|
|
3
3
|
declare function NotificationItem(props: INotificationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace NotificationItem {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
titleTextSize: string;
|
|
7
|
-
textSize: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
4
|
export { NotificationItem, notificationItemConfig };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { iPaginationProps } from './Pagination.interface';
|
|
1
|
+
import { IPaginationConfig, iPaginationProps } from './Pagination.interface';
|
|
2
|
+
declare const paginationConfig: IPaginationConfig;
|
|
2
3
|
declare function Pagination(props: iPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Pagination };
|
|
4
|
+
export { Pagination, paginationConfig };
|
|
@@ -1,45 +1,62 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
3
|
import { alignmentPropsType, elevationPropsType, iconFillSizePropsType, tDirectionProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorProps, tTextSizeProps, tTextWrapProps } from '../../types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface IPaginationThemeColor {
|
|
6
|
+
fill?: tFillProps;
|
|
7
|
+
fillHover?: tFillHoverProps;
|
|
8
|
+
gap?: string;
|
|
7
9
|
marginPagesDisplayed?: number;
|
|
8
|
-
nextLabel?: ReactNode;
|
|
9
|
-
pageCountArray?: number[];
|
|
10
10
|
pageCountDesc?: string;
|
|
11
|
-
pageCountDropdownItemLabelAlign?: tTextAlignProps;
|
|
12
|
-
pageCountDropdownItemWidth?: string;
|
|
13
11
|
pageCountDescTextColor?: tTextColorProps;
|
|
14
12
|
pageCountDescTextSize?: tTextSizeProps;
|
|
15
13
|
pageCountDropdownAlignment?: alignmentPropsType;
|
|
16
14
|
pageCountDropdownElevation?: elevationPropsType;
|
|
17
15
|
pageCountDropdownFill?: tFillProps;
|
|
18
|
-
pageCountDropdownItemDividerDirection?: tDirectionProps;
|
|
19
16
|
pageCountDropdownItemDividerFill?: tFillProps;
|
|
20
17
|
pageCountDropdownItemDividerSize?: tSizeProps;
|
|
21
18
|
pageCountDropdownItemFill?: tFillProps;
|
|
22
19
|
pageCountDropdownItemFillActive?: tFillProps;
|
|
23
20
|
pageCountDropdownItemFillActiveHover?: tFillHoverProps;
|
|
24
21
|
pageCountDropdownItemFillHover?: tFillHoverProps;
|
|
22
|
+
pageCountDropdownItemLabelAlign?: tTextAlignProps;
|
|
25
23
|
pageCountDropdownItemLabelColor?: tTextColorProps;
|
|
26
24
|
pageCountDropdownItemLabelColorActive?: tTextColorActiveProps;
|
|
27
25
|
pageCountDropdownItemLabelSize?: tTextSizeProps;
|
|
28
|
-
pageCountDropdownItemLabelWrap?: tTextWrapProps;
|
|
29
|
-
pageCountDropdownItemSize?: tSizeProps;
|
|
30
26
|
pageCountDropdownItemShowDivider?: boolean;
|
|
27
|
+
pageCountDropdownItemSize?: tSizeProps;
|
|
28
|
+
pageCountDropdownItemWidth?: string;
|
|
31
29
|
pageCountDropdownSet?: string;
|
|
32
30
|
pageCountDropdownShape?: tShapeProps;
|
|
33
|
-
pageCountInputIcon?: ReactNode;
|
|
34
31
|
pageCountInputIconColor?: tItemColorProps;
|
|
35
32
|
pageCountInputIconFillSize?: iconFillSizePropsType;
|
|
36
33
|
pageCountInputTextColor?: tTextColorProps;
|
|
37
34
|
pageCountInputTextSize?: tTextSizeProps;
|
|
38
|
-
|
|
35
|
+
pageRangeDisplayed?: number;
|
|
36
|
+
isPageCount?: boolean;
|
|
37
|
+
}
|
|
38
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
39
|
+
export type paginationAppearanceType = {
|
|
40
|
+
[key in appearanceKeysType]?: IPaginationThemeColor;
|
|
41
|
+
};
|
|
42
|
+
export interface IPaginationConfig {
|
|
43
|
+
appearance: paginationAppearanceType | undefined;
|
|
44
|
+
setAppearance: (newComponent: paginationAppearanceType) => void;
|
|
45
|
+
}
|
|
46
|
+
interface iPaginationProps extends IPaginationThemeColor, iStyleAttributes {
|
|
47
|
+
allItemsCount?: number;
|
|
48
|
+
appearance?: appearanceKeysType;
|
|
49
|
+
className?: string;
|
|
50
|
+
marginPagesDisplayed?: number;
|
|
51
|
+
nextLabel?: ReactNode;
|
|
52
|
+
pageCountArray?: number[];
|
|
53
|
+
pageCountDropdownItemDividerDirection?: tDirectionProps;
|
|
54
|
+
pageCountDropdownItemLabelWrap?: tTextWrapProps;
|
|
55
|
+
pageCountInputIcon?: ReactNode;
|
|
56
|
+
pageNumber: string | string;
|
|
39
57
|
pageRangeDisplayed?: number;
|
|
40
58
|
perPageCount?: number;
|
|
41
59
|
previousLabel?: ReactNode;
|
|
42
|
-
isPageCount?: boolean;
|
|
43
60
|
isPageCountDropdownReversed?: boolean;
|
|
44
61
|
onChangePage?: () => void;
|
|
45
62
|
onChangePerPageCount?: (perPageCount: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Pagination } from './Pagination';
|
|
1
|
+
export { Pagination, paginationConfig } from './Pagination';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -106,16 +106,16 @@
|
|
|
106
106
|
"react-datepicker": "^7.5.0",
|
|
107
107
|
"react-dom": "^18.3.1",
|
|
108
108
|
"react-indiana-drag-scroll": "^3.0.3-alpha",
|
|
109
|
-
"react-inlinesvg": "^4.1.
|
|
109
|
+
"react-inlinesvg": "^4.1.5",
|
|
110
110
|
"react-modern-drawer": "^1.4.0",
|
|
111
111
|
"react-otp-input": "^3.1.1",
|
|
112
112
|
"react-paginate": "^8.2.0",
|
|
113
113
|
"react-responsive": "^10.0.0",
|
|
114
114
|
"react-scroll": "^1.9.0",
|
|
115
115
|
"react-scrollbars-custom": "^4.1.1",
|
|
116
|
-
"react-select": "^5.8.
|
|
116
|
+
"react-select": "^5.8.3",
|
|
117
117
|
"swiper": "^11.1.14",
|
|
118
|
-
"uuid": "^11.0.
|
|
118
|
+
"uuid": "^11.0.3"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@babel/core": "^7.26.0",
|
|
@@ -126,7 +126,8 @@
|
|
|
126
126
|
"@chromatic-com/storybook": "^3.2.2",
|
|
127
127
|
"@commitlint/cli": "^19.5.0",
|
|
128
128
|
"@commitlint/config-conventional": "^19.5.0",
|
|
129
|
-
"@itcase/lint": "^1.0.
|
|
129
|
+
"@itcase/lint": "^1.0.16",
|
|
130
|
+
"@lehoczky/postcss-fluid": "^1.0.3",
|
|
130
131
|
"@rollup/plugin-babel": "^6.0.4",
|
|
131
132
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
132
133
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -136,17 +137,17 @@
|
|
|
136
137
|
"@semantic-release/changelog": "^6.0.3",
|
|
137
138
|
"@semantic-release/git": "^10.0.1",
|
|
138
139
|
"@semantic-release/release-notes-generator": "14.0.1",
|
|
139
|
-
"@storybook/addon-essentials": "^8.4.
|
|
140
|
-
"@storybook/addon-interactions": "^8.4.
|
|
141
|
-
"@storybook/addon-links": "^8.4.
|
|
142
|
-
"@storybook/addon-onboarding": "^8.4.
|
|
140
|
+
"@storybook/addon-essentials": "^8.4.4",
|
|
141
|
+
"@storybook/addon-interactions": "^8.4.4",
|
|
142
|
+
"@storybook/addon-links": "^8.4.4",
|
|
143
|
+
"@storybook/addon-onboarding": "^8.4.4",
|
|
143
144
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
144
|
-
"@storybook/addon-themes": "^8.4.
|
|
145
|
+
"@storybook/addon-themes": "^8.4.4",
|
|
145
146
|
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
146
|
-
"@storybook/blocks": "^8.4.
|
|
147
|
-
"@storybook/react": "^8.4.
|
|
148
|
-
"@storybook/react-webpack5": "^8.4.
|
|
149
|
-
"@storybook/test": "^8.4.
|
|
147
|
+
"@storybook/blocks": "^8.4.4",
|
|
148
|
+
"@storybook/react": "^8.4.4",
|
|
149
|
+
"@storybook/react-webpack5": "^8.4.4",
|
|
150
|
+
"@storybook/test": "^8.4.4",
|
|
150
151
|
"@types/js-cookie": "^3.0.6",
|
|
151
152
|
"@types/lodash": "^4.17.13",
|
|
152
153
|
"@types/react": "^18",
|
|
@@ -159,12 +160,12 @@
|
|
|
159
160
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
160
161
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
161
162
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
162
|
-
"eslint": "9.
|
|
163
|
+
"eslint": "9.15.0",
|
|
163
164
|
"eslint-plugin-storybook": "^0.11.0",
|
|
164
165
|
"husky": "^9.1.6",
|
|
165
166
|
"lint-staged": "^15.2.10",
|
|
166
167
|
"npm": "^10.9.0",
|
|
167
|
-
"postcss": "^8.4.
|
|
168
|
+
"postcss": "^8.4.49",
|
|
168
169
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
169
170
|
"postcss-cli": "^11.0.0",
|
|
170
171
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
@@ -182,19 +183,19 @@
|
|
|
182
183
|
"postcss-nested-ancestors": "^3.0.0",
|
|
183
184
|
"postcss-normalize": "^13.0.1",
|
|
184
185
|
"postcss-prepend-imports": "^1.0.1",
|
|
185
|
-
"postcss-preset-env": "^10.
|
|
186
|
+
"postcss-preset-env": "^10.1.1",
|
|
186
187
|
"postcss-pxtorem": "^6.1.0",
|
|
187
|
-
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
188
188
|
"postcss-sort-media-queries": "^5.2.0",
|
|
189
189
|
"prettier": "^3.3.3",
|
|
190
|
-
"rollup": "^4.
|
|
190
|
+
"rollup": "^4.27.2",
|
|
191
191
|
"rollup-plugin-copy": "^3.5.0",
|
|
192
192
|
"rollup-plugin-dts": "^6.1.1",
|
|
193
193
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
194
194
|
"rollup-preserve-directives": "^1.1.2",
|
|
195
195
|
"semantic-release": "^24.2.0",
|
|
196
|
-
"storybook": "^8.4.
|
|
196
|
+
"storybook": "^8.4.4",
|
|
197
197
|
"stylelint": "^16.10.0",
|
|
198
198
|
"typescript": "^5.6.3"
|
|
199
|
-
}
|
|
199
|
+
},
|
|
200
|
+
"packageManager": "pnpm@8.6.2+sha1.343879a68ea9ba1427ee1392072c8ad68537c534"
|
|
200
201
|
}
|