@itcase/ui 1.8.179 → 1.9.0
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/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/DatePeriod.js +2 -2
- package/dist/cjs/components/Drawer.js +5 -5
- package/dist/cjs/components/Select.js +2 -2
- package/dist/components/Chips.js +3 -3
- package/dist/components/DatePeriod.js +2 -2
- package/dist/components/Drawer.js +5 -5
- package/dist/components/Select.js +2 -2
- package/dist/css/styles/bundles.css +1 -1
- package/dist/stories/useAppearanceConfig.mdx +1 -1
- package/dist/stories/useDevicePropsGenerator.mdx +2 -2
- package/dist/stories/useMediaQueries.mdx +1 -1
- package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -1
- package/dist/types/components/Badge/Badge.interface.d.ts +1 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +1 -1
- package/dist/types/components/Button/Button.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.interface.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -1
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +1 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -1
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -1
- package/dist/types/components/Code/Code.interface.d.ts +1 -1
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +1 -1
- package/dist/types/components/Dadata/Dadata.interface.d.ts +1 -1
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +1 -1
- package/dist/types/components/Divider/Divider.interface.d.ts +1 -1
- package/dist/types/components/Dot/Dot.interface.d.ts +1 -1
- package/dist/types/components/Drawer/Drawer.interface.d.ts +1 -1
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -1
- package/dist/types/components/Flex/Flex.interface.d.ts +1 -1
- package/dist/types/components/Grid/Grid.interface.d.ts +1 -1
- package/dist/types/components/Group/Group.interface.d.ts +1 -1
- package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -1
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -1
- package/dist/types/components/Icon/Icon.interface.d.ts +1 -1
- package/dist/types/components/Image/Image.interface.d.ts +1 -1
- package/dist/types/components/Input/Input.interface.d.ts +1 -1
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +1 -1
- package/dist/types/components/Label/Label.interface.d.ts +1 -1
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/List/List.interface.d.ts +1 -1
- package/dist/types/components/Loader/Loader.interface.d.ts +1 -1
- package/dist/types/components/Logo/Logo.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
- package/dist/types/components/Modal/Modal.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +1 -1
- package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +1 -1
- package/dist/types/components/Radio/Radio.interface.d.ts +1 -1
- package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +1 -1
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +1 -1
- package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +1 -1
- package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +1 -1
- package/dist/types/components/Search/Search.interface.d.ts +1 -1
- package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +6 -21
- package/dist/types/components/Swiper/Swiper.interface.d.ts +1 -1
- package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -1
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Textarea/Textarea.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -1
- package/dist/types/components/Title/Title.interface.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +1 -1
- package/dist/types/components/Video/Video.interface.d.ts +1 -1
- package/dist/types/hoc/urlWithAssetPrefix.d.ts +1 -1
- package/dist/types/hooks/index.helpers.d.ts +2 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +1 -1
- package/package.json +4 -7
- package/dist/css/components/Accordion/Accordion.css +0 -197
- package/dist/css/components/Avatar/Avatar.css +0 -326
- package/dist/css/components/AvatarStack/AvatarStack.css +0 -135
- package/dist/css/components/Badge/Badge.css +0 -1235
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +0 -77
- package/dist/css/components/Button/Button.css +0 -630
- package/dist/css/components/Cell/Cell.css +0 -158
- package/dist/css/components/Checkbox/Checkbox.css +0 -11133
- package/dist/css/components/Checkmark/Checkmark.css +0 -103
- package/dist/css/components/Chips/Chips.css +0 -139
- package/dist/css/components/Choice/Choice.css +0 -288
- package/dist/css/components/Choice/css/__item/choice__item.css +0 -32
- package/dist/css/components/Choice/css/__item/choice__item_shape.css +0 -11
- package/dist/css/components/Choice/css/__item/choice__item_size.css +0 -88
- package/dist/css/components/Code/Code.css +0 -123
- package/dist/css/components/CookiesWarning/CookiesWarning.css +0 -40
- package/dist/css/components/CookiesWarning/CookiesWarning.token.css +0 -2
- package/dist/css/components/Dadata/Dadata.css +0 -21
- package/dist/css/components/DatePeriod/DatePeriod.css +0 -101
- package/dist/css/components/DatePicker/DatePicker.css +0 -1377
- package/dist/css/components/Divider/Divider.css +0 -105
- package/dist/css/components/Dot/Dot.css +0 -72
- package/dist/css/components/Drawer/Drawer.css +0 -80
- package/dist/css/components/Dropdown/Dropdown.css +0 -221
- package/dist/css/components/Flex/Flex.css +0 -379
- package/dist/css/components/Flex/css/__item/flex__item.css +0 -5
- package/dist/css/components/Flex/css/__item/flex__item_align.css +0 -58
- package/dist/css/components/Flex/css/__item/flex__item_direction.css +0 -24
- package/dist/css/components/Flex/css/__item/flex__item_grow.css +0 -10
- package/dist/css/components/Flex/css/__item/flex__item_justify-content.css +0 -22
- package/dist/css/components/Flex/css/__item/flex__item_shape.css +0 -12
- package/dist/css/components/Flex/css/__item/flex__item_wrap.css +0 -9
- package/dist/css/components/Grid/Grid.css +0 -2303
- package/dist/css/components/Grid/css/__item/grid__item.css +0 -5
- package/dist/css/components/Grid/css/__item/grid__item_align-self.css +0 -58
- package/dist/css/components/Grid/css/__item/grid__item_column.css +0 -279
- package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +0 -70
- package/dist/css/components/Grid/css/__item/grid__item_row.css +0 -279
- package/dist/css/components/Grid/css/__row/grid__row.css +0 -6
- package/dist/css/components/Group/Group.css +0 -5317
- package/dist/css/components/HTMLContent/HTMLContent.css +0 -166
- package/dist/css/components/HeroTitle/HeroTitle.css +0 -87
- package/dist/css/components/Icon/Icon.css +0 -7774
- package/dist/css/components/Image/Image.css +0 -163
- package/dist/css/components/Input/Input.css +0 -135
- package/dist/css/components/InputPassword/InputPassword.css +0 -115
- package/dist/css/components/Label/Label.css +0 -118
- package/dist/css/components/Link/Link.css +0 -58
- package/dist/css/components/List/List.css +0 -515
- package/dist/css/components/Loader/Loader.css +0 -212
- package/dist/css/components/Logo/Logo.css +0 -96
- package/dist/css/components/MenuItem/MenuItem.css +0 -251
- package/dist/css/components/Modal/Modal.css +0 -232
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +0 -45
- package/dist/css/components/Notification/Notification.css +0 -182
- package/dist/css/components/Notification/css/__item/notification__item.css +0 -26
- package/dist/css/components/Notification/css/__item/notification__item_size.css +0 -44
- package/dist/css/components/Notification/css/__item/notification__item_skeleton.css +0 -25
- package/dist/css/components/Notification/css/__item/notification__item_type.css +0 -23
- package/dist/css/components/Overlay/Overlay.css +0 -42
- package/dist/css/components/Pagination/Pagination.css +0 -279
- package/dist/css/components/Pagination/css/__item/pagination__item.css +0 -44
- package/dist/css/components/Pagination/css/__item/pagination__item_size.css +0 -18
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +0 -16
- package/dist/css/components/Pagination/css/__item/pagination__item_state_disabled.css +0 -20
- package/dist/css/components/Radio/Radio.css +0 -11226
- package/dist/css/components/RangeSlider/RangeSlider.css +0 -2944
- package/dist/css/components/Response/Response.css +0 -69
- package/dist/css/components/SVGContent/SVGContent.css +0 -2
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +0 -257
- package/dist/css/components/ScrollToView/ScrollToView.css +0 -1998
- package/dist/css/components/Scrollbar/Scrollbar.css +0 -58
- package/dist/css/components/Search/Search.css +0 -162
- package/dist/css/components/Search/css/search-input/search-input.css +0 -61
- package/dist/css/components/Search/css/search-input/search-input_size.css +0 -39
- package/dist/css/components/Search/css/search-input/search-input_skeleton.css +0 -25
- package/dist/css/components/Search/css/search-result/search-result.css +0 -6
- package/dist/css/components/Segmented/Segmented.css +0 -244
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +0 -92
- package/dist/css/components/Select/Select.css +0 -768
- package/dist/css/components/Select/css/__control/select__control.css +0 -16
- package/dist/css/components/Select/css/__indicators/select__indicators.css +0 -21
- package/dist/css/components/Select/css/__input-container/select__input-container.css +0 -383
- package/dist/css/components/Select/css/__menu/select__menu-list-item_size.css +0 -31
- package/dist/css/components/Select/css/__menu/select__menu-notice.css +0 -6
- package/dist/css/components/Select/css/__menu/select__menu.css +0 -56
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +0 -7
- package/dist/css/components/Select/css/__option/select__option.css +0 -6
- package/dist/css/components/Select/css/__placeholder/select__placeholder.css +0 -9
- package/dist/css/components/Select/css/__single-value/select__single-value.css +0 -10
- package/dist/css/components/Select/css/__value-container/select__value-container.css +0 -21
- package/dist/css/components/Swiper/Swiper.css +0 -997
- package/dist/css/components/Swiper/css/__item/swiper-block__item.css +0 -6
- package/dist/css/components/Switch/Switch.css +0 -154
- package/dist/css/components/Tab/Tab.css +0 -180
- package/dist/css/components/Text/Text.css +0 -103
- package/dist/css/components/Textarea/Textarea.css +0 -86
- package/dist/css/components/Tile/Tile.css +0 -141
- package/dist/css/components/Title/Title.css +0 -125
- package/dist/css/components/Tooltip/Tooltip.css +0 -236
- package/dist/css/components/Video/Video.css +0 -23
- package/dist/css/components/Warning/Warning.css +0 -50
- package/dist/css/mediaqueries/mediaqueries.css +0 -78
- package/dist/css/mixins/mixin_animation.css +0 -8
- package/dist/css/mixins/mixin_dark-light.css +0 -16
- package/dist/css/mixins/mixin_elevation.css +0 -31
- package/dist/css/mixins/mixin_fill-gradient.css +0 -47
- package/dist/css/mixins/mixin_typography.css +0 -237
- package/dist/css/mixins/mixin_utils.css +0 -54
- package/dist/css/styles/align/align.css +0 -25
- package/dist/css/styles/align/align_horizontal-reverse.css +0 -252
- package/dist/css/styles/align/align_horizontal.css +0 -252
- package/dist/css/styles/align/align_vertical-reverse.css +0 -236
- package/dist/css/styles/align/align_vertical.css +0 -236
- package/dist/css/styles/align-items/align-items.css +0 -20
- package/dist/css/styles/align-self/align-self.css +0 -20
- package/dist/css/styles/alignment/alignment.css +0 -51
- package/dist/css/styles/blur/blur.css +0 -82
- package/dist/css/styles/border/border.css +0 -244
- package/dist/css/styles/border-color/border-color.css +0 -24405
- package/dist/css/styles/border-type/border-type.css +0 -13
- package/dist/css/styles/border-width/border-width.css +0 -57
- package/dist/css/styles/caret-color/caret-color.css +0 -282
- package/dist/css/styles/centering/centering.css +0 -17
- package/dist/css/styles/constraints/constraints.css +0 -72
- package/dist/css/styles/cursor/cursor.css +0 -28
- package/dist/css/styles/direction/direction.css +0 -18
- package/dist/css/styles/easing/easing.css +0 -104
- package/dist/css/styles/elevation/elevation.css +0 -26
- package/dist/css/styles/elevation/elevation_hover.css +0 -44
- package/dist/css/styles/fill/fill.css +0 -7750
- package/dist/css/styles/fill/fill_gradient.css +0 -525
- package/dist/css/styles/flex/flex-grow.css +0 -8
- package/dist/css/styles/height/height.css +0 -11
- package/dist/css/styles/hover/hover-fill-color.css +0 -842
- package/dist/css/styles/hover/hover-item-color.css +0 -1082
- package/dist/css/styles/hover/hover-text-color.css +0 -1082
- package/dist/css/styles/justify-content/justify-content.css +0 -35
- package/dist/css/styles/opacity/opacity.css +0 -74
- package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +0 -362
- package/dist/css/styles/position/position.css +0 -14
- package/dist/css/styles/print/print.css +0 -12
- package/dist/css/styles/resize-horizontal/resize-horizontal.css +0 -12
- package/dist/css/styles/resize-vertical/resize-vertical.css +0 -10
- package/dist/css/styles/shape/shape.css +0 -8
- package/dist/css/styles/shape-strength/shape-strength.css +0 -15
- package/dist/css/styles/svg-color/svg_fill.css +0 -1044
- package/dist/css/styles/svg-color/svg_fill_hover.css +0 -484
- package/dist/css/styles/svg-color/svg_path_fill.css +0 -364
- package/dist/css/styles/text-align/text-align.css +0 -11
- package/dist/css/styles/text-color/text-color.css +0 -3617
- package/dist/css/styles/text-decoration/text-decoration.css +0 -10
- package/dist/css/styles/text-gradient/text-gradient.css +0 -1195
- package/dist/css/styles/text-style/text-style.css +0 -10
- package/dist/css/styles/text-truncate/text-truncate.css +0 -7
- package/dist/css/styles/text-weight/text-weight.css +0 -181
- package/dist/css/styles/width/width.css +0 -11
- package/dist/css/styles/word-wrap/word-wrap.css +0 -8
- package/dist/{ChipsGroup_cjs_B182e4c8.js → ChipsGroup_cjs_C-CP64k4.js} +1 -1
- package/dist/{ChipsGroup_es_BflE-5Q3.js → ChipsGroup_es_BfN_kCqj.js} +1 -1
- package/dist/{SelectContainer_cjs_BOMkYSVf.js → SelectContainer_cjs_NkNDS17H.js} +2 -2
- package/dist/{SelectContainer_es_gcm20n4I.js → SelectContainer_es_BpYwQ-do.js} +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, FillHoverProps, FillProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, TitleSizeProps, WidthProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
export interface ResponseAppearance {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
6
6
|
borderColor?: BorderColorProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SvgFillProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
export interface SVGContentProps extends StyleAttributes {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
6
6
|
children?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { ScrollContainer } from 'react-indiana-drag-scroll';
|
|
3
3
|
import { BorderColorProps, BorderTypeProps, BorderWidthProps, ElevationProps, FillHoverProps, FillProps, HeightProps, WidthProps } from '@itcase/types';
|
|
4
|
-
import { StyleAttributes } from '
|
|
4
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
export interface ScrollOnDragProps extends StyleAttributes {
|
|
6
6
|
[key: number | string | symbol]: any;
|
|
7
7
|
borderColor?: BorderColorProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleAttributes } from '
|
|
2
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface ScrollbarProps extends StyleAttributes {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, FillProps, IconSizeProps, ItemColorProps, ShapeProps, TextColorProps, TextSizeProps, TextStyleProps, TextWeightProps, WidthProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
export interface SearchThemeColor {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
6
6
|
borderColor?: BorderColorProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, FillHoverProps, FillProps, ItemColorProps, ShapeProps, TextColorActiveProps, TextColorProps, TextSizeProps, TextWrapProps, WidthProps } from '@itcase/types';
|
|
2
|
-
import { StyleAttributes } from '
|
|
2
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface SegmentedThemeColor {
|
|
4
4
|
[key: number | string | symbol]: any;
|
|
5
5
|
borderType?: BorderTypeProps;
|
|
@@ -10,30 +10,15 @@ declare const segmentedMock: {
|
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
12
|
declare const segmentedLabelMock: {
|
|
13
|
-
label:
|
|
14
|
-
value:
|
|
13
|
+
label: any;
|
|
14
|
+
value: any;
|
|
15
15
|
}[];
|
|
16
16
|
declare const segmentedIconMock: {
|
|
17
|
-
iconBefore:
|
|
17
|
+
iconBefore: any;
|
|
18
18
|
}[];
|
|
19
19
|
declare const segmentedMockSize: {
|
|
20
|
-
14:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
label: string;
|
|
24
|
-
value: number;
|
|
25
|
-
}[];
|
|
26
|
-
16: {
|
|
27
|
-
iconAfter: string;
|
|
28
|
-
iconBefore: string;
|
|
29
|
-
label: string;
|
|
30
|
-
value: number;
|
|
31
|
-
}[];
|
|
32
|
-
20: {
|
|
33
|
-
iconAfter: string;
|
|
34
|
-
iconBefore: string;
|
|
35
|
-
label: string;
|
|
36
|
-
value: number;
|
|
37
|
-
}[];
|
|
20
|
+
14: any[];
|
|
21
|
+
16: any[];
|
|
22
|
+
20: any[];
|
|
38
23
|
};
|
|
39
24
|
export { segmentedMock, segmentedLabelMock, segmentedMockSize, segmentedIconMock, };
|
|
@@ -2,7 +2,7 @@ import { CSSProperties, ReactNode, type Ref } from 'react';
|
|
|
2
2
|
import { SwiperClass, type SwiperRef } from 'swiper/react';
|
|
3
3
|
import { SwiperModule, SwiperOptions } from 'swiper/types';
|
|
4
4
|
import { AlignDirectionProps, AlignProps, FillProps, ShapeProps, TextColorProps, TextWeightProps, TitleSizeProps } from '@itcase/types';
|
|
5
|
-
import { StyleAttributes } from '
|
|
5
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
6
6
|
export interface SwiperProps extends StyleAttributes {
|
|
7
7
|
id?: string;
|
|
8
8
|
[key: number | string | symbol]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppearanceKeysDefault } from '@itcase/types';
|
|
2
|
-
import { StyleAttributes } from '
|
|
2
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface SwitchThemeColor {
|
|
4
4
|
size?: string;
|
|
5
5
|
set?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, DirectionProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps, TextAlignProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextSizeProps, TextStyleProps, TextWeightProps, TextWrapProps, WidthProps, WrapProps } from '@itcase/types';
|
|
3
|
-
import type { StyleAttributes } from '
|
|
3
|
+
import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
interface TabThemeColor {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
6
6
|
align?: AlignProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, CompositeAppearanceSizePxKey, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextSizeProps, TextTagProps, TextWeightProps, TextWrapProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
type TextAppearanceProps = {
|
|
5
5
|
cursor?: string;
|
|
6
6
|
size?: TextSizeProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, FillProps, ItemColorProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, WidthProps } from '@itcase/types';
|
|
2
|
-
import { StyleAttributes } from '
|
|
2
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
export interface TextareaThemeColor {
|
|
4
4
|
[key: number | string | symbol]: any;
|
|
5
5
|
borderColor?: BorderColorProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, FillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextAlignProps, TextColorProps, TextSizeProps, TextWeightProps, TextWrapProps, TitleSizeProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
type TileAppearanceProps = {
|
|
5
5
|
badgeAppearanceSize?: AppearanceSizeKey;
|
|
6
6
|
badgeShape?: ShapeProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceStyleKey, AppearanceTitleSizeKey, CompositeAppearanceTitleKey, DirectionHVProps, FillHoverProps, FillProps, SvgFillHoverProps, SvgFillProps, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextSizeProps, TextTagProps, TextWeightProps, TextWrapProps, TitleSizeProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
type TitleAppearanceProps = {
|
|
6
6
|
direction?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateKeys, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types';
|
|
3
|
-
import { StyleAttributes } from '
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
5
5
|
import { TitleProps } from '../Title/Title.interface';
|
|
6
6
|
type TooltipAppearanceProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { StyleAttributes } from '
|
|
2
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
type Codecs = 'mp4' | 'ogv' | 'webm';
|
|
4
4
|
export interface VideoProps extends StyleAttributes {
|
|
5
5
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
3
|
-
import { RequireAtLeastOneProp, RequireAtLeastOnePropError } from '
|
|
3
|
+
import { RequireAtLeastOneProp, RequireAtLeastOnePropError } from '../types';
|
|
4
4
|
type UrlPropKeys = (typeof urlPropsList)[number];
|
|
5
5
|
type OnePropCheckError = [
|
|
6
6
|
'urlWithAssetPrefix: компонент должен содержать хотя бы один из пропсов',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StyleAttributeOrValidator } from '
|
|
2
|
-
declare const getStyleAttributeKey: (targetStyleAttribute: StyleAttributeOrValidator) =>
|
|
1
|
+
import { StyleAttributeOrValidator } from '../../hooks/useStyles/styleAttributes.interface';
|
|
2
|
+
declare const getStyleAttributeKey: (targetStyleAttribute: StyleAttributeOrValidator) => any;
|
|
3
3
|
export { getStyleAttributeKey };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KebabCase, WithClassKeys } from '
|
|
1
|
+
import { KebabCase, WithClassKeys } from '../../types';
|
|
2
2
|
import type { AppearanceConfig, ComponentProps, GeneratorGetClassParams as GP } from './useDevicePropsGenerator.interface';
|
|
3
3
|
declare function useDevicePropsGenerator<Props extends ComponentProps>(componentProps: Props, appearanceConfig?: AppearanceConfig): Props & {
|
|
4
4
|
getProp(propKey: string): number | string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "npm run build-js && npm run build-css",
|
|
74
74
|
"build-js": "rm -rf dist && NODE_ENV=production rollup -c",
|
|
75
|
-
"build-css": "rm -rf dist/css && postcss 'src/
|
|
75
|
+
"build-css": "rm -rf dist/css && postcss 'src/styles/bundles.css' --base src --dir dist/css/ --env production",
|
|
76
76
|
"dev-js": "rollup -c -w",
|
|
77
|
-
"dev-css": "postcss 'src/
|
|
77
|
+
"dev-css": "postcss 'src/styles/bundles.css' --base src --dir dist/css/ --env production -w --verbose",
|
|
78
78
|
"prepare": "husky",
|
|
79
79
|
"prepack": "npm run build",
|
|
80
80
|
"semantic-release": "semantic-release",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"@rollup/plugin-terser": "^0.4.4",
|
|
152
152
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
153
153
|
"@semantic-release/changelog": "^6.0.3",
|
|
154
|
-
"@semantic-release/git": "^10.0.1",
|
|
155
154
|
"@semantic-release/release-notes-generator": "14.1.0",
|
|
155
|
+
"@semantic-release/git": "^10.0.1",
|
|
156
156
|
"@types/js-cookie": "^3.0.6",
|
|
157
157
|
"@types/lodash": "^4.17.20",
|
|
158
158
|
"@types/luxon": "^3.7.1",
|
|
@@ -163,14 +163,11 @@
|
|
|
163
163
|
"@types/uuid": "^11.0.0",
|
|
164
164
|
"babel-loader": "^10.0.0",
|
|
165
165
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
166
|
-
"babel-plugin-react-docgen": "^4.2.1",
|
|
167
|
-
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
168
166
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
169
167
|
"eslint": "9.39.1",
|
|
170
168
|
"husky": "^9.1.7",
|
|
171
169
|
"lint-staged": "^16.2.6",
|
|
172
170
|
"prettier": "^3.6.2",
|
|
173
|
-
"react-docgen-typescript": "^2.4.0",
|
|
174
171
|
"rollup": "^4.52.5",
|
|
175
172
|
"rollup-plugin-copy": "^3.5.0",
|
|
176
173
|
"rollup-plugin-dts": "^6.2.3",
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
.accordion {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
.accordion {
|
|
5
|
-
&_direction {
|
|
6
|
-
&_horizontal {
|
|
7
|
-
^^&__wrapper {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
&_vertical {
|
|
13
|
-
^^&__wrapper {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
&_row {
|
|
19
|
-
^^&__wrapper {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
&_row-reverse {
|
|
25
|
-
^^&__wrapper {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: row-reverse;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&_column {
|
|
31
|
-
^^&__wrapper {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
&_column-reverse {
|
|
37
|
-
^^&__wrapper {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column-reverse;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
.accordion-item {
|
|
45
|
-
width: 100%;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-flow: row wrap;
|
|
48
|
-
align-items: center;
|
|
49
|
-
&__header {
|
|
50
|
-
width: 100%;
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
^&__title {
|
|
54
|
-
position: relative;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
&__action {
|
|
58
|
-
display: flex;
|
|
59
|
-
gap: 12px;
|
|
60
|
-
^&__badge {
|
|
61
|
-
position: relative;
|
|
62
|
-
}
|
|
63
|
-
^&__icon {
|
|
64
|
-
align-self: flex-start;
|
|
65
|
-
transform-origin: 50% 50%;
|
|
66
|
-
transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
&__content {
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
.accordion-item {
|
|
74
|
-
&_size {
|
|
75
|
-
&_xxl {
|
|
76
|
-
^^&__header {
|
|
77
|
-
padding: var(--accordion-item-header-xxl-padding);
|
|
78
|
-
gap: var(--accordion-item-header-xxl-gap);
|
|
79
|
-
}
|
|
80
|
-
^^&__content {
|
|
81
|
-
&-inner {
|
|
82
|
-
padding: var(--accordion-item-content-xxl-padding);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
&_xl {
|
|
87
|
-
^^&__header {
|
|
88
|
-
padding: var(--accordion-item-header-xl-padding);
|
|
89
|
-
gap: var(--accordion-item-header-xl-gap);
|
|
90
|
-
}
|
|
91
|
-
^^&__content {
|
|
92
|
-
&-inner {
|
|
93
|
-
padding: var(--accordion-item-content-xl-padding);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&_l {
|
|
98
|
-
^^&__header {
|
|
99
|
-
padding: var(--accordion-item-header-l-padding);
|
|
100
|
-
gap: var(--accordion-item-header-l-gap);
|
|
101
|
-
}
|
|
102
|
-
^^&__content {
|
|
103
|
-
&-inner {
|
|
104
|
-
padding: var(--accordion-item-content-l-padding);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
&_m {
|
|
109
|
-
^^&__header {
|
|
110
|
-
padding: var(--accordion-item-header-m-padding);
|
|
111
|
-
gap: var(--accordion-item-header-m-gap);
|
|
112
|
-
}
|
|
113
|
-
^^&__content {
|
|
114
|
-
&-inner {
|
|
115
|
-
padding: var(--accordion-item-content-m-padding);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
&_s {
|
|
120
|
-
^^&__header {
|
|
121
|
-
padding: var(--accordion-item-header-s-padding);
|
|
122
|
-
gap: var(--accordion-item-header-s-gap);
|
|
123
|
-
}
|
|
124
|
-
^^&__content {
|
|
125
|
-
&-inner {
|
|
126
|
-
padding: var(--accordion-item-content-s-padding);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
&_xs {
|
|
131
|
-
^^&__header {
|
|
132
|
-
padding: var(--accordion-item-header-xs-padding);
|
|
133
|
-
gap: var(--accordion-item-header-xs-gap);
|
|
134
|
-
}
|
|
135
|
-
^^&__content {
|
|
136
|
-
&-inner {
|
|
137
|
-
padding: var(--accordion-item-content-xs-padding);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
&_xxs {
|
|
142
|
-
^^&__header {
|
|
143
|
-
padding: var(--accordion-item-header-xxs-padding);
|
|
144
|
-
gap: var(--accordion-item-header-xxs-gap);
|
|
145
|
-
}
|
|
146
|
-
^^&__content {
|
|
147
|
-
&-inner {
|
|
148
|
-
padding: var(--accordion-item-content-xxs-padding);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
.accordion-item {
|
|
155
|
-
&&_state_open {
|
|
156
|
-
^&__icon {
|
|
157
|
-
transform: rotate(180deg);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
.accordion-item {
|
|
162
|
-
&&_zero-padding {
|
|
163
|
-
^&__header {
|
|
164
|
-
padding: 0;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
&&_zero-gap {
|
|
168
|
-
^&__wrapper {
|
|
169
|
-
padding: 0;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
:root {
|
|
174
|
-
--accordion-item-header-xxl-padding: 14px 12px;
|
|
175
|
-
--accordion-item-header-xl-padding: 14px 12px;
|
|
176
|
-
--accordion-item-header-l-padding: 14px 12px;
|
|
177
|
-
--accordion-item-header-m-padding: 12px;
|
|
178
|
-
--accordion-item-header-s-padding: 12px;
|
|
179
|
-
--accordion-item-header-xs-padding: 10px 8px;
|
|
180
|
-
--accordion-item-header-xxs-padding: 12px;
|
|
181
|
-
|
|
182
|
-
--accordion-item-header-xxl-gap: 8px;
|
|
183
|
-
--accordion-item-header-xl-gap: 8px;
|
|
184
|
-
--accordion-item-header-l-gap: 8px;
|
|
185
|
-
--accordion-item-header-m-gap: 8px;
|
|
186
|
-
--accordion-item-header-s-gap: 8px;
|
|
187
|
-
--accordion-item-header-xs-gap: 8px;
|
|
188
|
-
--accordion-item-header-xxs-gap: 8px;
|
|
189
|
-
|
|
190
|
-
--accordion-item-content-xxl-padding: 14px 12px;
|
|
191
|
-
--accordion-item-content-xl-padding: 14px 12px;
|
|
192
|
-
--accordion-item-content-l-padding: 14px 12px;
|
|
193
|
-
--accordion-item-content-m-padding: 12px;
|
|
194
|
-
--accordion-item-content-s-padding: 12px;
|
|
195
|
-
--accordion-item-content-xs-padding: 10px 8px;
|
|
196
|
-
--accordion-item-content-xxs-padding: 12px;
|
|
197
|
-
}
|