@itcase/ui 1.8.94 → 1.8.95
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_Dh7c9RmS.js → Avatar_cjs_BcGACdXb.js} +1 -1
- package/dist/{Avatar_es_D4xUwAOB.js → Avatar_es_CRe2Om1a.js} +1 -1
- package/dist/{Button_cjs_DuAAQvct.js → Button_cjs_DojNe74O.js} +2 -2
- package/dist/{Button_es_DgLivwXd.js → Button_es_DCM3C_2S.js} +2 -2
- package/dist/{ChipsGroup_cjs_7mHtHzNh.js → ChipsGroup_cjs_DFdZuX6w.js} +1 -1
- package/dist/{ChipsGroup_es_Cz_gDYsw.js → ChipsGroup_es_Dm-iGTBi.js} +1 -1
- package/dist/{DatePicker_cjs_Ca9M-Ks1.js → DatePicker_cjs_mrV_Qly2.js} +3 -3
- package/dist/{DatePicker_es_DU2ZE7vb.js → DatePicker_es_Di_4I2Xv.js} +3 -3
- package/dist/{Divider_cjs_rxMMBfLC.js → Divider_cjs_DUYtmwn2.js} +3 -3
- package/dist/{Divider_es_CiRU0sTz.js → Divider_es_CCLBFIx6.js} +3 -3
- package/dist/{DropdownItem_cjs_DrMFaKh6.js → DropdownItem_cjs_DNSMwZdV.js} +2 -2
- package/dist/{DropdownItem_es_Dp7-DGkV.js → DropdownItem_es_DURwA4mR.js} +2 -2
- package/dist/{Icon_cjs_CDMtlf1A.js → Icon_cjs_B-nskaAO.js} +25 -29
- package/dist/{Icon_es_MOmiy9nF.js → Icon_es_CTKPPrrC.js} +25 -29
- package/dist/{Label_cjs_BTLhlnJW.js → Label_cjs_B1fNYJak.js} +1 -1
- package/dist/{Label_es_DBPp2ots.js → Label_es_d9RioNNf.js} +1 -1
- package/dist/{Loader_cjs_jCYE0aEd.js → Loader_cjs_CMvh28cF.js} +1 -3
- package/dist/{Loader_es_tNV0bjm_.js → Loader_es_DGMpRDMk.js} +1 -3
- package/dist/cjs/components/Accordion.js +6 -7
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- 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 +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +8 -7
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Tile.js +13 -13
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
- package/dist/components/Accordion.js +6 -7
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- 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 +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +8 -7
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +2 -2
- package/dist/components/Tile.js +13 -13
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +12 -36
- package/dist/css/components/Loader/Loader.css +0 -6
- package/dist/css/styles/align/align_horizontal.css +22 -40
- package/dist/css/styles/align/align_vertical.css +7 -25
- package/dist/css/styles/alignment/alignment.css +0 -8
- package/dist/css/styles/border-color/border-color.css +2 -3
- package/dist/css/styles/border-color/border-color_active.css +2 -3
- package/dist/css/styles/border-color/border-color_focus.css +2 -3
- package/dist/css/styles/border-color/border-color_hover.css +2 -3
- package/dist/css/styles/fill/fill_active.css +2 -4
- package/dist/css/styles/fill/fill_active_hover.css +2 -4
- package/dist/css/styles/fill/fill_hover.css +2 -3
- package/dist/css/styles/text-color/text-color_active.css +2 -4
- package/dist/css/styles/text-color/text-color_active_hover.css +2 -4
- package/dist/css/styles/text-color/text-color_hover.css +2 -4
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
- package/dist/types/components/Accordion/Accordion.interface.d.ts +21 -39
- package/dist/types/components/Badge/Badge.appearance.d.ts +230 -2
- package/dist/types/components/Badge/Badge.interface.d.ts +26 -19
- package/dist/types/components/Badge/appearance/badgeShape.d.ts +4 -4
- package/dist/types/components/Divider/Divider.appearance.d.ts +814 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +24 -36
- package/dist/types/components/Divider/appearance/dividerAccent.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerError.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSize.d.ts +2 -11
- package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSurface.d.ts +2 -14
- package/dist/types/components/Divider/appearance/dividerWarning.d.ts +2 -5
- package/dist/types/components/Icon/Icon.appearance.d.ts +41 -2
- package/dist/types/components/Icon/Icon.d.ts +1 -0
- package/dist/types/components/Icon/Icon.interface.d.ts +59 -73
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -22
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +2 -12
- package/dist/types/components/Icon/appearance/iconError.d.ts +2 -15
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +2 -18
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +2 -15
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconShape.d.ts +2 -24
- package/dist/types/components/Icon/appearance/iconSize.d.ts +2 -142
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +2 -27
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +2 -15
- package/dist/types/components/Image/Image.d.ts +2 -5
- package/dist/types/components/Loader/Loader.appearance.d.ts +466 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +12 -14
- package/dist/types/components/Logo/Logo.d.ts +2 -6
- package/dist/types/components/Response/Response.d.ts +2 -6
- package/dist/types/components/SVGContent/SVGContent.d.ts +2 -5
- package/dist/types/components/Tile/Tile.appearance.d.ts +60 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +46 -28
- package/dist/types/components/Tile/appearance/tileShape.d.ts +2 -24
- package/dist/types/components/Tile/appearance/tileSize.d.ts +2 -50
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +2 -13
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +2 -38
- package/dist/types/hoc/urlWithAssetPrefix.d.ts +3 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +7 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +1 -10
- package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +78 -102
- package/dist/types/types/utils.d.ts +4 -0
- package/package.json +6 -8
|
@@ -1,46 +1,34 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, DirectionProps, FillHoverProps, FillProps, SizeProps,
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, TextSizeProps } from '@itcase/types';
|
|
3
3
|
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
className?: string;
|
|
4
|
+
type DividerAppearanceProps = {
|
|
5
|
+
borderColor?: BorderColorProps;
|
|
7
6
|
direction?: DirectionProps;
|
|
8
|
-
directionDesktop?: DirectionProps;
|
|
9
|
-
directionMobile?: DirectionProps;
|
|
10
|
-
directionTablet?: DirectionProps;
|
|
11
7
|
fill?: FillProps;
|
|
12
|
-
fillActive?:
|
|
13
|
-
|
|
14
|
-
fillActiveHover?: FillHoverProps;
|
|
15
|
-
fillDesktop?: FillProps;
|
|
8
|
+
fillActive?: FillActiveProps;
|
|
9
|
+
fillActiveHover?: FillActiveHoverProps;
|
|
16
10
|
fillDisabled?: FillProps;
|
|
17
11
|
fillHover?: FillHoverProps;
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
shape?: ShapeProps;
|
|
13
|
+
shapeStrength?: ShapeStrengthProps;
|
|
20
14
|
size?: SizeProps;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
sizeTablet?: SizeProps;
|
|
24
|
-
width?: WidthProps;
|
|
25
|
-
widthDesktop?: WidthProps;
|
|
26
|
-
widthMobile?: WidthProps;
|
|
27
|
-
widthTablet?: WidthProps;
|
|
28
|
-
}
|
|
29
|
-
type AppearanceKeys = AppearanceKeysDefault & {};
|
|
30
|
-
export type DividerAppearanceType = {
|
|
31
|
-
[key in AppearanceKeys]?: DividerThemeColor;
|
|
15
|
+
textColor?: TextColorProps;
|
|
16
|
+
textSize?: TextSizeProps;
|
|
32
17
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
appearance: DividerAppearanceType | undefined;
|
|
36
|
-
setAppearance: (newComponent: DividerAppearanceType) => void;
|
|
37
|
-
}
|
|
38
|
-
export interface DividerProps extends DividerThemeColor, StyleAttributes {
|
|
39
|
-
[key: number | string | symbol]: any;
|
|
40
|
-
appearance?: AppearanceKeys;
|
|
18
|
+
type DividerProps = DividerAppearanceProps & StyleAttributes & {
|
|
19
|
+
appearance?: CompositeAppearanceKey;
|
|
41
20
|
className?: string;
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
isDisabled?: boolean;
|
|
44
23
|
isSkeleton?: boolean;
|
|
45
|
-
|
|
46
|
-
|
|
24
|
+
style?: CSSProperties;
|
|
25
|
+
};
|
|
26
|
+
type DividerAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
27
|
+
type DividerAppearance = {
|
|
28
|
+
[key in DividerAppearanceKey]?: DividerAppearanceProps;
|
|
29
|
+
};
|
|
30
|
+
type DividerConfig = {
|
|
31
|
+
appearance: DividerAppearance;
|
|
32
|
+
setAppearance: (appearanceConfig: DividerAppearance) => void;
|
|
33
|
+
};
|
|
34
|
+
export type { DividerAppearance, DividerConfig, DividerProps };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
size: string;
|
|
4
|
-
};
|
|
5
|
-
sizeM: {
|
|
6
|
-
size: string;
|
|
7
|
-
};
|
|
8
|
-
sizeS: {
|
|
9
|
-
size: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
import type { DividerAppearance } from '../Divider.interface';
|
|
2
|
+
declare const dividerAppearanceSize: DividerAppearance;
|
|
12
3
|
export { dividerAppearanceSize };
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
};
|
|
5
|
-
surfaceSecondary: {
|
|
6
|
-
fill: string;
|
|
7
|
-
};
|
|
8
|
-
surfaceTertiary: {
|
|
9
|
-
fill: string;
|
|
10
|
-
};
|
|
11
|
-
surfaceQuaternary: {
|
|
12
|
-
fill: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
1
|
+
import type { DividerAppearance } from '../Divider.interface';
|
|
2
|
+
declare const dividerAppearanceSurface: DividerAppearance;
|
|
15
3
|
export { dividerAppearanceSurface };
|
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const iconAppearance: {
|
|
2
|
+
alignment?: import("@itcase/types").AlignmentProps;
|
|
3
|
+
badgeAppearance?: import("@itcase/types").AppearanceKeysDefault;
|
|
4
|
+
badgeAppearanceSize?: import("@itcase/types").AppearanceSizeKey;
|
|
5
|
+
badgeShape?: import("@itcase/types").ShapeProps;
|
|
6
|
+
badgeSize?: import("@itcase/types").SizeProps;
|
|
7
|
+
badgeTextColor?: import("@itcase/types").TextColorProps;
|
|
8
|
+
badgeTextSize?: import("@itcase/types").TextSizeProps;
|
|
9
|
+
borderColor?: import("@itcase/types").BorderColorProps;
|
|
10
|
+
borderColorHover?: import("@itcase/types").BorderColorHoverProps;
|
|
11
|
+
borderType?: import("@itcase/types").BorderTypeProps;
|
|
12
|
+
borderWidth?: import("@itcase/types").BorderWidthProps;
|
|
13
|
+
centering?: import("@itcase/types").CenteringProps;
|
|
14
|
+
direction?: import("@itcase/types").DirectionProps;
|
|
15
|
+
fill?: import("@itcase/types").FillProps;
|
|
16
|
+
fillActive?: import("@itcase/types").FillActiveProps;
|
|
17
|
+
fillActiveHover?: import("@itcase/types").FillActiveHoverProps;
|
|
18
|
+
fillDisabled?: import("@itcase/types").FillDisabledProps;
|
|
19
|
+
fillHover?: import("@itcase/types").FillHoverProps;
|
|
20
|
+
fillSize?: import("@itcase/types").FillSizeProps;
|
|
21
|
+
iconAppearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
22
|
+
iconFill?: import("@itcase/types").FillProps;
|
|
23
|
+
iconFillActive?: import("@itcase/types").FillActiveProps;
|
|
24
|
+
iconFillActiveHover?: import("@itcase/types").FillActiveHoverProps;
|
|
25
|
+
iconFillDisabled?: import("@itcase/types").FillDisabledProps;
|
|
26
|
+
iconFillHover?: import("@itcase/types").FillHoverProps;
|
|
27
|
+
iconFillIcon?: import("@itcase/types").ItemFillProps;
|
|
28
|
+
iconFillSize?: import("@itcase/types").FillSizeProps;
|
|
29
|
+
iconShape?: import("@itcase/types").ShapeProps;
|
|
30
|
+
iconSize?: import("@itcase/types").IconSizeProps;
|
|
31
|
+
shape?: import("@itcase/types").ShapeProps;
|
|
32
|
+
shapeStrength?: import("@itcase/types").ShapeStrengthProps;
|
|
33
|
+
size?: import("@itcase/types").SizeProps;
|
|
34
|
+
textColor?: import("@itcase/types").TextColorProps;
|
|
35
|
+
textSize?: import("@itcase/types").TextSizeProps;
|
|
36
|
+
titleTextColor?: import("@itcase/types").TextColorProps;
|
|
37
|
+
titleTextSize?: import("@itcase/types").TitleSizeProps;
|
|
38
|
+
tooltipAppearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
39
|
+
tooltipTextSize?: import("@itcase/types").TitleSizeProps;
|
|
40
|
+
tooltipTitleSize?: import("@itcase/types").TextSizeProps;
|
|
41
|
+
};
|
|
@@ -3,6 +3,7 @@ import type { IconConfig } from '../Icon/Icon.interface';
|
|
|
3
3
|
declare const iconConfig: IconConfig;
|
|
4
4
|
declare const Icon: React.ForwardRefExoticComponent<{
|
|
5
5
|
imageSrc?: string;
|
|
6
|
+
placeholderUrl?: string;
|
|
6
7
|
src?: string;
|
|
7
8
|
svgSrc?: string;
|
|
8
9
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,95 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AlignmentProps, AppearanceKeysDefault, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, FillHoverProps, FillProps,
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { AlignmentProps, AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillDisabledProps, FillHoverProps, FillProps, FillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorProps, TextSizeProps, TitleSizeProps } from '@itcase/types';
|
|
3
|
+
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
|
+
type IconAppearanceProps = {
|
|
5
5
|
alignment?: AlignmentProps;
|
|
6
|
-
|
|
6
|
+
badgeAppearance?: AppearanceKeysDefault;
|
|
7
|
+
badgeAppearanceSize?: AppearanceSizeKey;
|
|
8
|
+
badgeShape?: ShapeProps;
|
|
9
|
+
badgeSize?: SizeProps;
|
|
10
|
+
badgeTextColor?: TextColorProps;
|
|
11
|
+
badgeTextSize?: TextSizeProps;
|
|
7
12
|
borderColor?: BorderColorProps;
|
|
8
13
|
borderColorHover?: BorderColorHoverProps;
|
|
9
14
|
borderType?: BorderTypeProps;
|
|
10
15
|
borderWidth?: BorderWidthProps;
|
|
11
|
-
|
|
16
|
+
centering?: CenteringProps;
|
|
17
|
+
direction?: DirectionProps;
|
|
12
18
|
fill?: FillProps;
|
|
13
|
-
|
|
19
|
+
fillActive?: FillActiveProps;
|
|
20
|
+
fillActiveHover?: FillActiveHoverProps;
|
|
21
|
+
fillDisabled?: FillDisabledProps;
|
|
14
22
|
fillHover?: FillHoverProps;
|
|
15
|
-
fillSize?:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
iconFillHover?: ItemColorProps;
|
|
25
|
-
iconFillSize?: IconFillSizeProps;
|
|
23
|
+
fillSize?: FillSizeProps;
|
|
24
|
+
iconAppearance?: CompositeAppearanceKey;
|
|
25
|
+
iconFill?: FillProps;
|
|
26
|
+
iconFillActive?: FillActiveProps;
|
|
27
|
+
iconFillActiveHover?: FillActiveHoverProps;
|
|
28
|
+
iconFillDisabled?: FillDisabledProps;
|
|
29
|
+
iconFillHover?: FillHoverProps;
|
|
30
|
+
iconFillIcon?: ItemFillProps;
|
|
31
|
+
iconFillSize?: FillSizeProps;
|
|
26
32
|
iconShape?: ShapeProps;
|
|
27
33
|
iconSize?: IconSizeProps;
|
|
28
|
-
label?: string;
|
|
29
|
-
labelTextColor?: TextColorProps;
|
|
30
|
-
labelTextColorHover?: TextColorHoverProps;
|
|
31
|
-
labelTextSize?: TextSizeProps;
|
|
32
|
-
loaderFill?: string;
|
|
33
|
-
loaderItemFill?: string;
|
|
34
34
|
shape?: ShapeProps;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
shapeStrength?: ShapeStrengthProps;
|
|
36
|
+
size?: SizeProps;
|
|
37
|
+
textColor?: TextColorProps;
|
|
38
|
+
textSize?: TextSizeProps;
|
|
39
|
+
titleTextColor?: TextColorProps;
|
|
40
|
+
titleTextSize?: TitleSizeProps;
|
|
41
|
+
tooltipAppearance?: CompositeAppearanceKey;
|
|
42
|
+
tooltipTextSize?: TitleSizeProps;
|
|
43
|
+
tooltipTitleSize?: TextSizeProps;
|
|
39
44
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
setAppearance: (newComponent: IconAppearance) => void;
|
|
43
|
-
}
|
|
44
|
-
interface IconProps extends IconThemeColor, StyleAttributes {
|
|
45
|
-
id?: number | string;
|
|
46
|
-
[key: number | string | symbol]: any;
|
|
45
|
+
type IconProps = IconAppearanceProps & StyleAttributes & {
|
|
46
|
+
id?: string;
|
|
47
47
|
after?: ReactNode;
|
|
48
|
-
|
|
48
|
+
align?: AlignProps;
|
|
49
|
+
appearance?: CompositeAppearanceKey;
|
|
50
|
+
badgeClass?: string;
|
|
51
|
+
badgeValue?: string;
|
|
49
52
|
before?: ReactNode;
|
|
53
|
+
children?: ReactNode;
|
|
50
54
|
className?: string;
|
|
55
|
+
dataTestId?: string;
|
|
51
56
|
dataTour?: string;
|
|
52
|
-
fillDesktop?: FillProps;
|
|
53
|
-
fillMobile?: FillProps;
|
|
54
|
-
fillSizeDesktop?: string;
|
|
55
|
-
fillSizeMobile?: string;
|
|
56
|
-
fillSizeTablet?: string;
|
|
57
|
-
fillTablet?: FillProps;
|
|
58
|
-
height?: string;
|
|
59
|
-
href?: string;
|
|
60
|
-
htmlType?: string;
|
|
61
57
|
icon?: string;
|
|
62
|
-
iconAfterSrc?: string;
|
|
63
|
-
iconBeforeSrc?: string;
|
|
64
58
|
iconSrc?: string;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
rel?: string;
|
|
72
|
-
shapeDesktop?: ShapeProps;
|
|
73
|
-
shapeMobile?: ShapeProps;
|
|
74
|
-
shapeTablet?: ShapeProps;
|
|
59
|
+
isActive?: boolean;
|
|
60
|
+
isDisabled?: boolean;
|
|
61
|
+
isSkeleton?: boolean;
|
|
62
|
+
onClick?: () => void;
|
|
63
|
+
onMouseEnter?: () => void;
|
|
64
|
+
onMouseLeave?: () => void;
|
|
75
65
|
showTooltip?: boolean;
|
|
76
|
-
sizeDesktop?: IconSizeProps;
|
|
77
|
-
sizeMobile?: IconSizeProps;
|
|
78
|
-
sizeTablet?: IconSizeProps;
|
|
79
66
|
style?: CSSProperties;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
tooltipAppearance?: AppearanceKeysDefault;
|
|
83
|
-
tooltipContent?: ReactNode;
|
|
67
|
+
text?: string;
|
|
68
|
+
title?: string;
|
|
84
69
|
tooltipText?: string;
|
|
85
|
-
tooltipTextSize?: TextSizeProps;
|
|
86
70
|
tooltipTitle?: string;
|
|
87
|
-
tooltipTitleSize?: TitleSizeProps;
|
|
88
71
|
type?: string;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
72
|
+
};
|
|
73
|
+
type IconAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
74
|
+
type IconAppearance = {
|
|
75
|
+
[key in IconAppearanceKey]?: IconAppearanceProps;
|
|
76
|
+
};
|
|
77
|
+
type IconConfig = {
|
|
78
|
+
appearance: IconAppearance;
|
|
79
|
+
setAppearance: (appearanceConfig: IconAppearance) => void;
|
|
80
|
+
};
|
|
81
|
+
export type { IconAppearanceProps, IconAppearance, IconConfig, IconProps };
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
badgeAppearance: string;
|
|
7
|
-
iconFill: string;
|
|
8
|
-
};
|
|
9
|
-
accentPrimary: {
|
|
10
|
-
fill: string;
|
|
11
|
-
fillHover: string;
|
|
12
|
-
borderColor: string;
|
|
13
|
-
badgeAppearance: string;
|
|
14
|
-
iconFill: string;
|
|
15
|
-
};
|
|
16
|
-
accentSecondary: {
|
|
17
|
-
fill: string;
|
|
18
|
-
fillHover: string;
|
|
19
|
-
borderColor: string;
|
|
20
|
-
iconFill: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceAccent: IconAppearanceProps;
|
|
23
3
|
export { iconAppearanceAccent };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
};
|
|
6
|
-
dangerPrimary: {
|
|
7
|
-
fill: string;
|
|
8
|
-
fillHover: string;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
badgeAppearance: string;
|
|
11
|
-
iconFill: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceDanger: IconAppearanceProps;
|
|
14
3
|
export { iconAppearanceDanger };
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
};
|
|
6
|
-
disabledPrimary: {
|
|
7
|
-
fill: string;
|
|
8
|
-
borderColor: string;
|
|
9
|
-
badgeAppearance: string;
|
|
10
|
-
iconFill: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceDisabled: IconAppearanceProps;
|
|
13
3
|
export { iconAppearanceDisabled };
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
badgeAppearance: string;
|
|
6
|
-
iconFill: string;
|
|
7
|
-
};
|
|
8
|
-
errorPrimary: {
|
|
9
|
-
fill: string;
|
|
10
|
-
fillHover: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
badgeAppearance: string;
|
|
13
|
-
iconFill: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceError: IconAppearanceProps;
|
|
16
3
|
export { iconAppearanceError };
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
};
|
|
7
|
-
infoPrimary: {
|
|
8
|
-
fill: string;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
badgeAppearance: string;
|
|
11
|
-
iconFill: string;
|
|
12
|
-
};
|
|
13
|
-
infoSecondary: {
|
|
14
|
-
fill: string;
|
|
15
|
-
fillHover: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceInfo: IconAppearanceProps;
|
|
19
3
|
export { iconAppearanceInfo };
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
badgeAppearance: string;
|
|
6
|
-
iconFill: string;
|
|
7
|
-
};
|
|
8
|
-
primaryPrimary: {
|
|
9
|
-
fill: string;
|
|
10
|
-
fillHover: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
badgeAppearance: string;
|
|
13
|
-
iconFill: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearancePrimary: IconAppearanceProps;
|
|
16
3
|
export { iconAppearancePrimary };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
};
|
|
6
|
-
secondaryPrimary: {
|
|
7
|
-
fill: string;
|
|
8
|
-
fillHover: string;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
badgeAppearance: string;
|
|
11
|
-
iconFill: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceSecondary: IconAppearanceProps;
|
|
14
3
|
export { iconAppearanceSecondary };
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
shape: string;
|
|
4
|
-
};
|
|
5
|
-
rounded: {
|
|
6
|
-
shape: string;
|
|
7
|
-
};
|
|
8
|
-
roundedS: {
|
|
9
|
-
shape: string;
|
|
10
|
-
shapeStrength: string;
|
|
11
|
-
};
|
|
12
|
-
roundedM: {
|
|
13
|
-
shape: string;
|
|
14
|
-
shapeStrength: string;
|
|
15
|
-
};
|
|
16
|
-
roundedL: {
|
|
17
|
-
shape: string;
|
|
18
|
-
shapeStrength: string;
|
|
19
|
-
};
|
|
20
|
-
roundedXL: {
|
|
21
|
-
shape: string;
|
|
22
|
-
shapeStrength: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
1
|
+
import { IconAppearanceProps } from '../Icon.interface';
|
|
2
|
+
declare const iconAppearanceShape: IconAppearanceProps;
|
|
25
3
|
export { iconAppearanceShape };
|