@itcase/ui 1.9.69 → 1.9.72
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_Csg-sXFd.js → Avatar_cjs_RLDhG_yp.js} +2 -2
- package/dist/{Avatar_es_DL-WhLzX.js → Avatar_es_C3EWFMqx.js} +2 -2
- package/dist/{Button_cjs_Be04OG3x.js → Button_cjs_PkMuJ9DO.js} +2 -2
- package/dist/{Button_es_8PXB_37O.js → Button_es_Bc-ZxgQj.js} +2 -2
- package/dist/{ChipsGroup_cjs_9GWtm58s.js → ChipsGroup_cjs_B2ZlA6eW.js} +1 -1
- package/dist/{ChipsGroup_es_PioCtqyW.js → ChipsGroup_es_RmxQO3xO.js} +1 -1
- package/dist/{DatePicker_cjs_BlaU0YLk.js → DatePicker_cjs_BICCxCBy.js} +4 -4
- package/dist/{DatePicker_es_CtVayJlP.js → DatePicker_es_CjMN5FY_.js} +4 -4
- package/dist/{Group_cjs_DOxxxshR.js → Group_cjs_DnhjMBbG.js} +1 -1
- package/dist/{Group_es_DDZnHcqu.js → Group_es_xcelocLg.js} +1 -1
- package/dist/{Image_cjs_DfFBnuAs.js → Image_cjs_DWpR9AaJ.js} +1 -1
- package/dist/{Image_es_DkQPBacV.js → Image_es_mAIAmL6i.js} +1 -1
- package/dist/{Input_cjs_Cy96sAk3.js → Input_cjs_BFNo6gwu.js} +1 -1
- package/dist/{Input_es_xLzFw05Z.js → Input_es_CWDd4ALJ.js} +1 -1
- package/dist/{Label_cjs_CBw_6dpB.js → Label_cjs_DTzXRcqq.js} +1 -1
- package/dist/{Label_es_CXN6OA6J.js → Label_es_DaOAzZqj.js} +1 -1
- package/dist/{Loader_cjs_DezOt9Q6.js → Loader_cjs_rE9OZ75z.js} +1 -1
- package/dist/{Loader_es_Cy7YeNYi.js → Loader_es_VyygDcXJ.js} +1 -1
- package/dist/{Overlay_cjs_C0GJUr0q.js → Overlay_cjs_30v9WTGR.js} +1 -1
- package/dist/{Overlay_es_CS-afQoz.js → Overlay_es_CnYxRbhB.js} +1 -1
- package/dist/{SelectContainer_cjs_kVfpR_IQ.js → SelectContainer_cjs_FvhilokK.js} +3 -3
- package/dist/{SelectContainer_es_DLaJIthi.js → SelectContainer_es_DFy6rr8f.js} +3 -3
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Checkmark.js +1 -1
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/Dadata.js +2 -2
- package/dist/cjs/components/DatePeriod.js +9 -9
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dot.js +1 -1
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Dropzone.js +3 -3
- package/dist/cjs/components/Flex.js +1 -1
- package/dist/cjs/components/Grid.js +1 -1
- package/dist/cjs/components/Group.js +2 -2
- package/dist/cjs/components/HTMLContent.js +1 -1
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/Input.js +2 -2
- package/dist/cjs/components/InputNumber.js +4 -4
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- 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 +1 -1
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Overlay.js +2 -2
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/RangeSlider.js +1 -1
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/SVGContent.js +1 -1
- package/dist/cjs/components/ScrollOnDrag.js +1 -1
- package/dist/cjs/components/ScrollToView.js +1 -1
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +3 -3
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Video.js +3 -3
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/cjs/context/Notifications.js +1 -1
- package/dist/cjs/context/UIContext.js +1 -1
- package/dist/cjs/context/UrlAssetPrefix.js +1 -1
- package/dist/cjs/hoc/urlWithAssetPrefix.js +1 -1
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +1 -1
- package/dist/cjs/hooks/useAppearanceConfig.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator.js +1 -1
- package/dist/cjs/hooks/useDeviceTargetClass.js +1 -1
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +1 -1
- package/dist/cjs/hooks/useMediaQueries.js +1 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +1 -1
- package/dist/cjs/hooks/useStyles.js +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/utils/mergeAppearanceKeys.js +1 -1
- package/dist/cjs/utils/setViewportProperty.js +1 -1
- package/dist/cjs/utils.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkmark.js +1 -1
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/Dadata.js +2 -2
- package/dist/components/DatePeriod.js +9 -9
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dot.js +1 -1
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Dropzone.js +3 -3
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Group.js +2 -2
- package/dist/components/HTMLContent.js +1 -1
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Image.js +2 -2
- package/dist/components/Input.js +2 -2
- package/dist/components/InputNumber.js +4 -4
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- 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 +1 -1
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +3 -3
- package/dist/components/Overlay.js +2 -2
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RangeSlider.js +1 -1
- package/dist/components/Response.js +5 -5
- package/dist/components/SVGContent.js +1 -1
- package/dist/components/ScrollOnDrag.js +1 -1
- package/dist/components/ScrollToView.js +1 -1
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +3 -3
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Video.js +3 -3
- package/dist/components/Warning.js +1 -1
- package/dist/context/Notifications.js +1 -1
- package/dist/context/UIContext.js +1 -1
- package/dist/context/UrlAssetPrefix.js +1 -1
- package/dist/css/styles/bundles.css +14 -14
- package/dist/hoc/urlWithAssetPrefix.js +1 -1
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +1 -1
- package/dist/hooks/useAppearanceConfig.js +1 -1
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -1
- package/dist/hooks/useDevicePropsGenerator.js +1 -1
- package/dist/hooks/useDeviceTargetClass.js +1 -1
- package/dist/hooks/useMediaQueries/useMediaQueries.js +1 -1
- package/dist/hooks/useMediaQueries.js +1 -1
- package/dist/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/hooks/useStyles/useStyles.js +1 -1
- package/dist/hooks/useStyles.js +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{primitives_cjs_BM6q7o8p.js → primitives_cjs_D8cRUOUa.js} +8 -4
- package/dist/{primitives_es_C7NgMhaK.js → primitives_es_gY0Wzlk_.js} +8 -4
- package/dist/types/components/Accordion/Accordion.interface.d.ts +2 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +4 -4
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +1 -1
- package/dist/types/components/Badge/Badge.interface.d.ts +3 -3
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +4 -4
- package/dist/types/components/Button/Button.interface.d.ts +1 -1
- package/dist/types/components/Cell/Cell.interface.d.ts +5 -4
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +3 -3
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +2 -2
- package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
- package/dist/types/components/Chips/index.d.ts +1 -1
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -1
- package/dist/types/components/Code/Code.interface.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +1 -1
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +2 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +2 -2
- package/dist/types/components/Drawer/Drawer.interface.d.ts +2 -2
- package/dist/types/components/Dropzone/Dropzone.interface.d.ts +2 -2
- package/dist/types/components/Group/Group.d.ts +1 -1
- package/dist/types/components/Group/Group.interface.d.ts +2 -2
- package/dist/types/components/Icon/Icon.d.ts +2 -2
- package/dist/types/components/Icon/Icon.interface.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Input/Input.interface.d.ts +2 -2
- package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +1 -1
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +2 -2
- package/dist/types/components/Link/Link.interface.d.ts +2 -2
- package/dist/types/components/List/List.interface.d.ts +2 -2
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +3 -3
- package/dist/types/components/Notification/Notification.interface.d.ts +4 -4
- package/dist/types/components/Radio/Radio.interface.d.ts +2 -2
- package/dist/types/components/Response/Response.d.ts +2 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/SVGContent/SVGContent.d.ts +1 -1
- package/dist/types/components/SVGContent/SVGContent.interface.d.ts +2 -1
- package/dist/types/components/Search/Search.interface.d.ts +3 -3
- package/dist/types/components/Search/SearchInput.d.ts +1 -1
- package/dist/types/components/Segmented/Segmented.interface.d.ts +2 -2
- package/dist/types/components/Select/Select.interface.d.ts +2 -2
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/types/components/Tab/Tab.interface.d.ts +2 -2
- package/dist/types/components/Text/Text.interface.d.ts +2 -2
- package/dist/types/components/Textarea/Textarea.interface.d.ts +4 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +2 -2
- package/dist/types/components/Video/Video.interface.d.ts +1 -0
- package/dist/utils/mergeAppearanceKeys.js +1 -1
- package/dist/utils/setViewportProperty.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +9 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps,
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, SvgFillItemProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -21,7 +21,7 @@ type BadgeAppearanceProps = {
|
|
|
21
21
|
textSize?: TextProps['size'];
|
|
22
22
|
};
|
|
23
23
|
type BadgeProps = BadgeAppearanceProps & StyleAttributes & {
|
|
24
|
-
appearance?:
|
|
24
|
+
appearance?: CompositeAppearanceKey;
|
|
25
25
|
children?: ReactNode;
|
|
26
26
|
className?: string;
|
|
27
27
|
dataTestId?: string;
|
|
@@ -33,7 +33,7 @@ type BadgeProps = BadgeAppearanceProps & StyleAttributes & {
|
|
|
33
33
|
style?: CSSProperties;
|
|
34
34
|
text?: string;
|
|
35
35
|
type?: 'counter' | 'dot' | 'dot-icon-counter' | 'fill' | 'icon' | 'icon-counter';
|
|
36
|
-
value?: string;
|
|
36
|
+
value?: number | string;
|
|
37
37
|
};
|
|
38
38
|
type BadgeAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
39
39
|
type BadgeAppearance = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps,
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, AppearanceShapeKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillProps, ShapeProps, SizeProps, UnderlineProps, WidthProps } from '@itcase/types-ui';
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
4
5
|
import { TextProps } from '../Text/Text.interface';
|
|
5
|
-
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
6
6
|
type BreadcrumbsItemAppearanceProps = {
|
|
7
7
|
borderColor?: BorderColorProps;
|
|
8
8
|
fill?: FillProps;
|
|
@@ -23,7 +23,7 @@ type BreadcrumbsItemAppearanceProps = {
|
|
|
23
23
|
};
|
|
24
24
|
type BreadcrumbsItemProps = BreadcrumbsItemAppearanceProps & StyleAttributes & {
|
|
25
25
|
id?: string;
|
|
26
|
-
appearance?:
|
|
26
|
+
appearance?: CompositeAppearanceKey;
|
|
27
27
|
children?: ReactNode;
|
|
28
28
|
className?: string;
|
|
29
29
|
dataTestId?: string;
|
|
@@ -68,7 +68,7 @@ type BreadcrumbsProps = BreadcrumbsAppearanceProps & StyleAttributes & {
|
|
|
68
68
|
className?: string;
|
|
69
69
|
isSkeleton?: boolean;
|
|
70
70
|
};
|
|
71
|
-
type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeKey | AppearanceStyleKey;
|
|
71
|
+
type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeKey | AppearanceStyleKey | AppearanceShapeKey;
|
|
72
72
|
type BreadcrumbsAppearance = {
|
|
73
73
|
[key in AppearanceKeys]?: BreadcrumbsAppearanceProps;
|
|
74
74
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AlignProps, AppearanceIconSizeKey, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types-ui';
|
|
3
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
4
5
|
import { LinkWrapperProps } from '../Link/Link.interface';
|
|
5
6
|
import { LoaderProps } from '../Loader/Loader.interface';
|
|
6
7
|
import { TextProps } from '../Text/Text.interface';
|
|
7
|
-
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
8
8
|
type ButtonAppearanceProps = {
|
|
9
9
|
align?: AlignProps;
|
|
10
10
|
borderColor?: BorderColorProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceKeysDefault,
|
|
1
|
+
import { AppearanceKeysDefault, AppearanceSizeOrEqualKey, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorActiveProps, BorderColorProps, CompositeAppearanceKey, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, SizeProps, TextColorProps } from '@itcase/types-ui';
|
|
2
2
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
import { IconProps } from '../Icon/Icon.interface';
|
|
4
4
|
import { LabelProps } from '../Label/Label.interface';
|
|
@@ -8,7 +8,7 @@ type CellAppearanceProps = {
|
|
|
8
8
|
borderColorActive?: BorderColorActiveProps;
|
|
9
9
|
borderColorActiveHover?: BorderColorProps;
|
|
10
10
|
borderColorHover?: BorderColorProps;
|
|
11
|
-
direction?:
|
|
11
|
+
direction?: 'horizontal' | 'horizontalReverse' | 'vertical' | 'verticalReverse';
|
|
12
12
|
fill?: FillProps;
|
|
13
13
|
fillActive?: FillActiveProps;
|
|
14
14
|
fillActiveHover?: FillActiveHoverProps;
|
|
@@ -55,7 +55,7 @@ type CellAppearanceProps = {
|
|
|
55
55
|
};
|
|
56
56
|
type CellProps = CellAppearanceProps & StyleAttributes & {
|
|
57
57
|
after?: string;
|
|
58
|
-
appearance?:
|
|
58
|
+
appearance?: CompositeAppearanceKey;
|
|
59
59
|
before?: string;
|
|
60
60
|
className?: string;
|
|
61
61
|
dataTestId?: string;
|
|
@@ -63,6 +63,7 @@ type CellProps = CellAppearanceProps & StyleAttributes & {
|
|
|
63
63
|
isActive?: boolean;
|
|
64
64
|
isEqual?: boolean;
|
|
65
65
|
isSameWidth?: boolean;
|
|
66
|
+
isSkeleton?: boolean;
|
|
66
67
|
onClick?: () => void;
|
|
67
68
|
onMouseEnter?: () => void;
|
|
68
69
|
reverse?: boolean;
|
|
@@ -76,7 +77,7 @@ type CellProps = CellAppearanceProps & StyleAttributes & {
|
|
|
76
77
|
valueIcon?: IconProps['SvgImage'];
|
|
77
78
|
valueTag?: TextProps['tag'];
|
|
78
79
|
};
|
|
79
|
-
type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeOrEqualKey | AppearanceStyleKey;
|
|
80
|
+
type AppearanceKeys = AppearanceKeysDefault | AppearanceSizeOrEqualKey | AppearanceStyleKey | AppearanceShapeKey;
|
|
80
81
|
type CellAppearance = {
|
|
81
82
|
[key in AppearanceKeys]?: CellAppearanceProps;
|
|
82
83
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ElementType, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps,
|
|
3
|
-
import { TextProps } from '../Text/Text.interface';
|
|
2
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
4
3
|
import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
|
+
import { TextProps } from '../Text/Text.interface';
|
|
5
5
|
type CheckboxAppearanceProps = {
|
|
6
6
|
borderColor?: BorderColorProps;
|
|
7
7
|
borderColorCheckbox?: BorderColorProps;
|
|
@@ -35,7 +35,7 @@ type CheckboxAppearanceProps = {
|
|
|
35
35
|
type CheckboxProps = CheckboxAppearanceProps & StyleAttributes & {
|
|
36
36
|
id?: string;
|
|
37
37
|
after?: ReactNode;
|
|
38
|
-
appearance?:
|
|
38
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
39
39
|
before?: ReactNode;
|
|
40
40
|
checked?: boolean;
|
|
41
41
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceKey, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, SizeProps } from '@itcase/types-ui';
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceKey, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, SizeProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
type CheckmarkAppearanceProps = {
|
|
@@ -21,7 +21,7 @@ type CheckmarkAppearanceProps = {
|
|
|
21
21
|
size?: SizeProps;
|
|
22
22
|
};
|
|
23
23
|
type CheckmarkProps = CheckmarkAppearanceProps & StyleAttributes & {
|
|
24
|
-
appearance?: CompositeAppearanceKey;
|
|
24
|
+
appearance?: CompositeAppearanceKey | CompositeAppearanceStateDefault;
|
|
25
25
|
className?: string;
|
|
26
26
|
dataTestId?: string;
|
|
27
27
|
dataTour?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, WrapProps } from '@itcase/types-ui';
|
|
2
|
+
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, CompositeAppearanceStateDefault, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, WrapProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { BadgeProps } from '../Badge/Badge.interface';
|
|
5
5
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -55,7 +55,7 @@ type ChipsAppearanceProps = {
|
|
|
55
55
|
size?: SizeProps;
|
|
56
56
|
};
|
|
57
57
|
type ChipsProps = ChipsAppearanceProps & StyleAttributes & {
|
|
58
|
-
appearance?: CompositeAppearanceKey;
|
|
58
|
+
appearance?: CompositeAppearanceKey | CompositeAppearanceStateDefault;
|
|
59
59
|
children?: ReactNode;
|
|
60
60
|
className?: string;
|
|
61
61
|
cursor?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Chips, chipsConfig } from './Chips';
|
|
2
|
-
export type { ChipsProps, ChipsGroupProps, ChipsConfig, ChipsAppearance } from './Chips.interface';
|
|
3
2
|
export { chipsAppearance } from './Chips.appearance';
|
|
3
|
+
export type { ChipsAppearance, ChipsConfig, ChipsGroupProps, ChipsProps, } from './Chips.interface';
|
|
4
4
|
export { ChipsGroup } from './ChipsGroup';
|
|
@@ -80,7 +80,7 @@ type ChoiceProps = ChoiceAppearanceProps & StyleAttributes & {
|
|
|
80
80
|
options: ChoiceOptionsItem[];
|
|
81
81
|
setActiveSegment?: (item: ChoiceOptionsItem, isChecked?: boolean) => void;
|
|
82
82
|
};
|
|
83
|
-
type ChoiceAppearanceKey = AppearanceShapeKey | AppearanceSizeKey |
|
|
83
|
+
type ChoiceAppearanceKey = AppearanceShapeKey | AppearanceSizeKey | AppearanceStateKeysDefault | AppearanceStyleKey;
|
|
84
84
|
type ChoiceAppearance = {
|
|
85
85
|
[key in ChoiceAppearanceKey]?: ChoiceAppearanceProps;
|
|
86
86
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusEvent, ReactNode } from 'react';
|
|
2
2
|
import { AllowedInputTypes } from 'react-otp-input';
|
|
3
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, FillHoverProps, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
3
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
4
4
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
import { LabelProps } from '../Label/Label.interface';
|
|
6
6
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -30,7 +30,7 @@ type CodeAppearanceProps = {
|
|
|
30
30
|
};
|
|
31
31
|
type CodeProps = CodeAppearanceProps & StyleAttributes & {
|
|
32
32
|
after?: ReactNode;
|
|
33
|
-
appearance?:
|
|
33
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
34
34
|
before?: ReactNode;
|
|
35
35
|
className?: string;
|
|
36
36
|
dataTestId?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DatePeriodItem } from '@itcase/common/types';
|
|
2
2
|
import { Option as SelectOption } from '@itcase/types-core';
|
|
3
3
|
import type { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, CompositeAppearanceDefaultSizeShapeKey, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
|
|
4
|
+
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
5
|
import { ChipsProps } from '../Chips/Chips.interface';
|
|
5
6
|
import { DatePickerInputProps } from '../DatePicker/DatePicker.interface';
|
|
6
7
|
import { SelectAppearanceProps, SelectProps } from '../Select/Select.interface';
|
|
7
|
-
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
8
8
|
type DatePeriodAppearanceProps<Option> = {
|
|
9
9
|
chipsAppearance?: ChipsProps['appearance'];
|
|
10
10
|
chipsAppearanceSize?: AppearanceSizeKey;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import DatePicker, { DatePickerProps } from 'react-datepicker';
|
|
3
3
|
import { DateIso } from '@itcase/types-core';
|
|
4
|
-
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey,
|
|
4
|
+
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, CompositeAppearanceStateDefault, SizeProps, TextSizeProps, WidthProps } from '@itcase/types-ui';
|
|
5
5
|
import { ButtonProps } from '../Button/Button.interface';
|
|
6
6
|
import { IconProps } from '../Icon/Icon.interface';
|
|
7
7
|
import { InputProps } from '../Input/Input.interface';
|
|
@@ -16,7 +16,7 @@ type DatePickerConfig = {
|
|
|
16
16
|
setAppearance: (appearanceConfig: DatePickerAppearance) => void;
|
|
17
17
|
};
|
|
18
18
|
type DatePickerInputAppearanceProps = {
|
|
19
|
-
appearance?: AppearanceKeysDefault |
|
|
19
|
+
appearance?: AppearanceKeysDefault | CompositeAppearanceStateDefault;
|
|
20
20
|
clearLabel?: LabelProps['label'];
|
|
21
21
|
clearLabelTextColor?: LabelProps['labelTextColor'];
|
|
22
22
|
clearLabelTextColorHover?: LabelProps['labelTextColorHover'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceSizeKey, BorderColorProps,
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceSizeKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
5
5
|
type DividerAppearanceProps = {
|
|
@@ -17,7 +17,7 @@ type DividerAppearanceProps = {
|
|
|
17
17
|
textSize?: TextProps['size'];
|
|
18
18
|
};
|
|
19
19
|
type DividerProps = DividerAppearanceProps & StyleAttributes & {
|
|
20
|
-
appearance?:
|
|
20
|
+
appearance?: CompositeAppearanceKey;
|
|
21
21
|
className?: string;
|
|
22
22
|
dataTestId?: string;
|
|
23
23
|
dataTour?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { AppearanceHeadingSizeKey, AppearanceKeysDefault,
|
|
2
|
+
import { AppearanceHeadingSizeKey, AppearanceKeysDefault, CompositeAppearanceKey } from '@itcase/types-ui';
|
|
3
3
|
import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { DividerProps } from '../Divider/Divider.interface';
|
|
5
5
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -34,7 +34,7 @@ type DrawerConfig = {
|
|
|
34
34
|
};
|
|
35
35
|
type DrawerProps = DrawerAppearanceProps & StyleAttributes & {
|
|
36
36
|
after?: ReactNode;
|
|
37
|
-
appearance?:
|
|
37
|
+
appearance?: CompositeAppearanceKey;
|
|
38
38
|
before?: ReactNode;
|
|
39
39
|
children?: ReactNode;
|
|
40
40
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps,
|
|
1
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, DirectionProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps } from '@itcase/types-ui';
|
|
2
2
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
import { ButtonProps } from '../Button/Button.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -53,7 +53,7 @@ type FileItem = {
|
|
|
53
53
|
preview: string;
|
|
54
54
|
};
|
|
55
55
|
type DropzoneProps = DropzoneAppearanceProps & StyleAttributes & {
|
|
56
|
-
appearance?:
|
|
56
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
57
57
|
dropzoneProps?: Record<string, unknown>;
|
|
58
58
|
fieldValuesList?: FileItem[] | null;
|
|
59
59
|
fileErrorText?: React.ReactNode;
|
|
@@ -35,7 +35,7 @@ declare const Group: React.ForwardRefExoticComponent<{
|
|
|
35
35
|
wrap?: import("@itcase/types-ui").WrapProps;
|
|
36
36
|
} & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
37
37
|
id?: number | string;
|
|
38
|
-
appearance?: import("@itcase/types-ui").
|
|
38
|
+
appearance?: import("@itcase/types-ui").CompositeAppearanceKey;
|
|
39
39
|
children?: React.ReactNode;
|
|
40
40
|
className?: string;
|
|
41
41
|
dataId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { AlignProps, AppearanceKeysDefault,
|
|
2
|
+
import { AlignProps, AppearanceKeysDefault, BorderColorActiveProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, DirectionProps, ElevationProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, HeightProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, StackingProps, WidthProps, WrapProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { LabelProps } from '../Label/Label.interface';
|
|
@@ -39,7 +39,7 @@ type GroupAppearanceProps = {
|
|
|
39
39
|
};
|
|
40
40
|
type GroupProps = GroupAppearanceProps & StyleAttributes & {
|
|
41
41
|
id?: number | string;
|
|
42
|
-
appearance?:
|
|
42
|
+
appearance?: CompositeAppearanceKey;
|
|
43
43
|
children?: ReactNode;
|
|
44
44
|
className?: string;
|
|
45
45
|
dataId?: string;
|
|
@@ -5,9 +5,9 @@ declare const Icon: React.ForwardRefExoticComponent<Omit<import("src/components/
|
|
|
5
5
|
id?: string;
|
|
6
6
|
after?: React.ReactNode;
|
|
7
7
|
align?: import("@itcase/types-ui").AlignProps;
|
|
8
|
-
appearance?: import("@itcase/types-ui").
|
|
8
|
+
appearance?: import("@itcase/types-ui").CompositeAppearanceIconKeys;
|
|
9
9
|
badgeClass?: string;
|
|
10
|
-
badgeValue?: string;
|
|
10
|
+
badgeValue?: number | string;
|
|
11
11
|
before?: React.ReactNode;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, SVGProps } from 'react';
|
|
2
|
-
import { AlignmentProps, AlignProps, AppearanceIconSizeKey, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps,
|
|
2
|
+
import { AlignmentProps, AlignProps, AppearanceIconSizeKey, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps, CompositeAppearanceIconKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillDisabledProps, FillHoverProps, FillProps, FillSizeProps, IconFillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizePXProps, TextColorProps, TextSizeProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { BadgeProps } from '../Badge/Badge.interface';
|
|
5
5
|
import { LinkWrapperProps } from '../Link/Link.interface';
|
|
@@ -48,9 +48,9 @@ type IconProps = IconAppearanceProps & StyleAttributes & {
|
|
|
48
48
|
id?: string;
|
|
49
49
|
after?: ReactNode;
|
|
50
50
|
align?: AlignProps;
|
|
51
|
-
appearance?:
|
|
51
|
+
appearance?: CompositeAppearanceIconKeys;
|
|
52
52
|
badgeClass?: string;
|
|
53
|
-
badgeValue?: string;
|
|
53
|
+
badgeValue?: number | string;
|
|
54
54
|
before?: ReactNode;
|
|
55
55
|
children?: ReactNode;
|
|
56
56
|
className?: string;
|
|
@@ -3,7 +3,7 @@ import type { InputConfig } from './Input.interface';
|
|
|
3
3
|
declare const inputConfig: InputConfig;
|
|
4
4
|
declare const Input: React.ForwardRefExoticComponent<import("./Input.interface").InputAppearanceProps & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
5
5
|
id?: string;
|
|
6
|
-
appearance?: import("@itcase/types-ui").
|
|
6
|
+
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
7
7
|
autocomplete?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
dataTestId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps,
|
|
1
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
2
2
|
import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
import { TextProps } from '../Text/Text.interface';
|
|
4
4
|
type InputAppearanceProps = {
|
|
@@ -23,7 +23,7 @@ type InputAppearanceProps = {
|
|
|
23
23
|
};
|
|
24
24
|
type InputProps = InputAppearanceProps & StyleAttributes & {
|
|
25
25
|
id?: string;
|
|
26
|
-
appearance?:
|
|
26
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
27
27
|
autocomplete?: string;
|
|
28
28
|
className?: string;
|
|
29
29
|
dataTestId?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, SvgFillHoverProps, SvgFillProps } from '@itcase/types-ui';
|
|
3
|
-
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
3
|
import { ButtonProps } from 'src/components/Button/Button.interface';
|
|
5
4
|
import { IconProps } from 'src/components/Icon/Icon.interface';
|
|
6
5
|
import { TextProps } from 'src/components/Text/Text.interface';
|
|
6
|
+
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
7
7
|
type InputNumberAppearanceProps = {
|
|
8
8
|
borderColor?: BorderColorProps;
|
|
9
9
|
borderColorHover?: BorderColorHoverProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps,
|
|
1
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceStateDefault, FillHoverProps, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
2
2
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
3
|
import { IconProps } from '../Icon/Icon.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -37,7 +37,7 @@ type InputPasswordConfig = {
|
|
|
37
37
|
};
|
|
38
38
|
type InputPasswordProps = InputAppearanceProps & StyleAttributes & {
|
|
39
39
|
id?: string;
|
|
40
|
-
appearance?:
|
|
40
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
41
41
|
className?: string;
|
|
42
42
|
dataTestId?: string;
|
|
43
43
|
dataTour?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps,
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, DirectionProps, FillHoverProps, FillProps, ShapeProps, SizeProps, TextWeightProps, UnderlineProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -43,7 +43,7 @@ type LinkAppearanceProps = {
|
|
|
43
43
|
};
|
|
44
44
|
type LinkProps = LinkAppearanceProps & StyleAttributes & {
|
|
45
45
|
after?: ReactNode;
|
|
46
|
-
appearance?:
|
|
46
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
47
47
|
before?: ReactNode;
|
|
48
48
|
children?: ReactNode;
|
|
49
49
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { LinkProps } from 'react-scroll';
|
|
3
|
-
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps,
|
|
3
|
+
import { AppearanceKeysDefault, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceStateDefault, DirectionProps, FillHoverProps, FillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
4
4
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
6
6
|
type ListAppearanceProps = {
|
|
@@ -12,7 +12,7 @@ type ListAppearanceProps = {
|
|
|
12
12
|
width?: WidthProps;
|
|
13
13
|
};
|
|
14
14
|
type ListProps = ListAppearanceProps & StyleAttributes & {
|
|
15
|
-
appearance?:
|
|
15
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
16
16
|
bulletFill?: FillProps;
|
|
17
17
|
bulletSize?: TextProps['size'];
|
|
18
18
|
bulletTextColor?: TextProps['textColor'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { LinkProps } from 'react-scroll';
|
|
3
|
-
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps,
|
|
3
|
+
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, TextSizeProps, UnderlineProps } from '@itcase/types-ui';
|
|
4
4
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
import { IconProps } from '../Icon/Icon.interface';
|
|
6
6
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -62,7 +62,7 @@ type MenuItemAppearanceProps = {
|
|
|
62
62
|
};
|
|
63
63
|
type MenuItemProps = MenuItemAppearanceProps & StyleAttributes & {
|
|
64
64
|
after?: string;
|
|
65
|
-
appearance?:
|
|
65
|
+
appearance?: CompositeAppearanceKey;
|
|
66
66
|
before?: string;
|
|
67
67
|
children?: ReactNode;
|
|
68
68
|
className?: string;
|
|
@@ -71,7 +71,7 @@ type MenuItemProps = MenuItemAppearanceProps & StyleAttributes & {
|
|
|
71
71
|
easing?: string;
|
|
72
72
|
href?: LinkProps['href'];
|
|
73
73
|
htmlFor?: string;
|
|
74
|
-
isActive
|
|
74
|
+
isActive?: boolean;
|
|
75
75
|
isDisabled?: boolean;
|
|
76
76
|
label?: string;
|
|
77
77
|
link?: LinkProps['href'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { GeneratedId } from '@itcase/types-core';
|
|
3
|
-
import { AppearanceIconSizeKey,
|
|
3
|
+
import { AppearanceIconSizeKey, AppearanceNotificationKeys, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceNotificationKeys, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
4
4
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
5
|
import { ButtonProps } from '../Button/Button.interface';
|
|
6
6
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -40,14 +40,14 @@ type NotificationAppearanceProps = {
|
|
|
40
40
|
type NotificationProps = NotificationAppearanceProps & StyleAttributes & {
|
|
41
41
|
id?: GeneratedId;
|
|
42
42
|
after?: ReactNode;
|
|
43
|
-
appearance?:
|
|
43
|
+
appearance?: CompositeAppearanceNotificationKeys;
|
|
44
44
|
before?: ReactNode;
|
|
45
45
|
className?: string;
|
|
46
46
|
dataTestId?: string;
|
|
47
47
|
dataTour?: string;
|
|
48
48
|
isLoading?: boolean;
|
|
49
49
|
isSkeleton?: boolean;
|
|
50
|
-
onClickButton
|
|
50
|
+
onClickButton?: ButtonProps['onClick'];
|
|
51
51
|
onClickClose?: (targetId?: GeneratedId) => void;
|
|
52
52
|
style?: CSSProperties;
|
|
53
53
|
title?: string;
|
|
@@ -62,7 +62,7 @@ type NotificationWrapperProps = {
|
|
|
62
62
|
size?: SizeProps;
|
|
63
63
|
type?: string;
|
|
64
64
|
};
|
|
65
|
-
type NotificationAppearanceKeys =
|
|
65
|
+
type NotificationAppearanceKeys = AppearanceNotificationKeys | AppearanceSizeKey | AppearanceStyleKey | AppearanceShapeKey;
|
|
66
66
|
type NotificationAppearance = {
|
|
67
67
|
[key in NotificationAppearanceKeys]?: NotificationAppearanceProps;
|
|
68
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps,
|
|
2
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
5
5
|
type RadioAppearanceProps = {
|
|
@@ -28,7 +28,7 @@ type RadioAppearanceProps = {
|
|
|
28
28
|
};
|
|
29
29
|
type RadioProps = RadioAppearanceProps & StyleAttributes & {
|
|
30
30
|
id?: string;
|
|
31
|
-
appearance?:
|
|
31
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
32
32
|
checked?: boolean;
|
|
33
33
|
className?: string;
|
|
34
34
|
dataTestId?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentType, SVGProps } from 'react';
|
|
1
2
|
import type { ResponseConfig } from './Response.interface';
|
|
2
3
|
declare const responseConfig: ResponseConfig;
|
|
3
4
|
declare const Response: import("react").ForwardRefExoticComponent<Omit<{
|
|
@@ -36,7 +37,7 @@ declare const Response: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
36
37
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
37
38
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
38
39
|
svgFill?: import("@itcase/types-ui").SvgFillProps;
|
|
39
|
-
SvgImage?: import("../Icon").IconProps["SvgImage"];
|
|
40
|
+
SvgImage?: ComponentType<SVGProps<SVGSVGElement>> | import("../Icon").IconProps["SvgImage"];
|
|
40
41
|
svgPathFill?: import("@itcase/types-ui").SvgFillProps;
|
|
41
42
|
svgSrc?: import("../Icon").IconProps["imageSrc"];
|
|
42
43
|
titleTextColor?: import("src/components/Text").TextProps["textColor"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentType, CSSProperties, ReactNode, SVGProps } from 'react';
|
|
2
|
+
import { AppearanceResponseKeys, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceResponseKeys, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SvgFillProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { ButtonProps } from '../Button/Button.interface';
|
|
5
5
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -40,14 +40,14 @@ type ResponseAppearanceProps = {
|
|
|
40
40
|
shape?: ShapeProps;
|
|
41
41
|
shapeStrength?: ShapeStrengthProps;
|
|
42
42
|
svgFill?: SvgFillProps;
|
|
43
|
-
SvgImage?: IconProps['SvgImage'];
|
|
43
|
+
SvgImage?: ComponentType<SVGProps<SVGSVGElement>> | IconProps['SvgImage'];
|
|
44
44
|
svgPathFill?: SvgFillProps;
|
|
45
45
|
svgSrc?: IconProps['imageSrc'];
|
|
46
46
|
titleTextColor?: TextProps['textColor'];
|
|
47
47
|
titleTextSize?: TextProps['size'];
|
|
48
48
|
titleTextWeight?: TextProps['textWeight'];
|
|
49
49
|
};
|
|
50
|
-
type AppearanceKeys =
|
|
50
|
+
type AppearanceKeys = AppearanceResponseKeys | AppearanceStyleKey;
|
|
51
51
|
type ResponseAppearance = {
|
|
52
52
|
[key in AppearanceKeys]?: ResponseAppearanceProps;
|
|
53
53
|
};
|
|
@@ -6,6 +6,6 @@ declare const SVGContent: import("react").ForwardRefExoticComponent<Omit<import(
|
|
|
6
6
|
dataTestId?: string;
|
|
7
7
|
dataTour?: string;
|
|
8
8
|
src?: string;
|
|
9
|
-
SvgImage?: import("../Icon").IconProps["SvgImage"];
|
|
9
|
+
SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../Icon").IconProps["SvgImage"];
|
|
10
10
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export { SVGContent };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentType, SVGProps } from 'react';
|
|
1
2
|
import { SvgFillProps } from '@itcase/types-ui';
|
|
2
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
3
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -10,6 +11,6 @@ type SVGContentProps = StyleAttributes & SVGContentAppearanceProps & {
|
|
|
10
11
|
dataTestId?: string;
|
|
11
12
|
dataTour?: string;
|
|
12
13
|
src?: string;
|
|
13
|
-
SvgImage?: IconProps['SvgImage'];
|
|
14
|
+
SvgImage?: ComponentType<SVGProps<SVGSVGElement>> | IconProps['SvgImage'];
|
|
14
15
|
};
|
|
15
16
|
export type { SVGContentProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps,
|
|
3
|
-
import { IconProps } from '../Icon/Icon.interface';
|
|
2
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextWeightProps, WidthProps } from '@itcase/types-ui';
|
|
4
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
|
+
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
6
6
|
type SearchAppearanceProps = {
|
|
7
7
|
borderColor?: BorderColorProps;
|
|
@@ -38,7 +38,7 @@ type SearchAppearanceProps = {
|
|
|
38
38
|
};
|
|
39
39
|
type SearchProps = SearchAppearanceProps & StyleAttributes & {
|
|
40
40
|
after?: ReactNode;
|
|
41
|
-
appearance?:
|
|
41
|
+
appearance?: CompositeAppearanceStateDefault;
|
|
42
42
|
before?: ReactNode;
|
|
43
43
|
className?: string;
|
|
44
44
|
dataTestId?: string;
|
|
@@ -35,7 +35,7 @@ declare const SearchInput: React.ForwardRefExoticComponent<{
|
|
|
35
35
|
width?: import("@itcase/types-ui").WidthProps;
|
|
36
36
|
} & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
37
37
|
after?: React.ReactNode;
|
|
38
|
-
appearance?: import("@itcase/types-ui").
|
|
38
|
+
appearance?: import("@itcase/types-ui").CompositeAppearanceStateDefault;
|
|
39
39
|
before?: React.ReactNode;
|
|
40
40
|
className?: string;
|
|
41
41
|
dataTestId?: string;
|