@itcase/ui 1.8.100 → 1.8.102

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.
Files changed (128) hide show
  1. package/dist/{Avatar_cjs_BcGACdXb.js → Avatar_cjs_bOSuIjlv.js} +2 -2
  2. package/dist/{Avatar_es_CRe2Om1a.js → Avatar_es_CEiiRkAd.js} +2 -2
  3. package/dist/{Button_cjs_DojNe74O.js → Button_cjs_eGfgY2Dz.js} +3 -3
  4. package/dist/{Button_es_DCM3C_2S.js → Button_es_CEXL2diU.js} +3 -3
  5. package/dist/{ChipsGroup_cjs_DFdZuX6w.js → ChipsGroup_cjs_BgSbk26L.js} +2 -2
  6. package/dist/{ChipsGroup_es_Dm-iGTBi.js → ChipsGroup_es_C1U2hygj.js} +2 -2
  7. package/dist/{DatePicker_cjs_C8r1qPxL.js → DatePicker_cjs_T63y9kcH.js} +4 -4
  8. package/dist/{DatePicker_es_Dq0JuDDZ.js → DatePicker_es_B87jj8h6.js} +4 -4
  9. package/dist/{DropdownItem_cjs_DNSMwZdV.js → DropdownItem_cjs_BGp4XAme.js} +2 -2
  10. package/dist/{DropdownItem_es_DURwA4mR.js → DropdownItem_es_BwdenrJx.js} +2 -2
  11. package/dist/{Icon_cjs_B-nskaAO.js → Icon_cjs_LSfBwmrG.js} +1 -1
  12. package/dist/{Icon_es_CTKPPrrC.js → Icon_es_BYO1LdXJ.js} +1 -1
  13. package/dist/{Label_cjs_COR0vD25.js → Label_cjs_Df_mrKBf.js} +5 -5
  14. package/dist/{Label_es_LsHqmj27.js → Label_es_Dl5zb0RD.js} +5 -5
  15. package/dist/{Loader_cjs_CMvh28cF.js → Loader_cjs_Db9diKuF.js} +1 -1
  16. package/dist/{Loader_es_DGMpRDMk.js → Loader_es_AhHU-s7_.js} +1 -1
  17. package/dist/{Overlay_cjs_B2KA85nC.js → Overlay_cjs_CFD8KUWi.js} +2 -2
  18. package/dist/{Overlay_es_BvehRqIP.js → Overlay_es_RszsWopa.js} +2 -2
  19. package/dist/{Text_cjs_DmuzuKFj.js → Text_cjs_CeJHeRfI.js} +7 -7
  20. package/dist/{Text_es_DIU5ySvf.js → Text_es_BXh9Y3hR.js} +7 -7
  21. package/dist/cjs/components/Accordion.js +2 -2
  22. package/dist/cjs/components/Avatar.js +3 -3
  23. package/dist/cjs/components/AvatarStack.js +3 -3
  24. package/dist/cjs/components/Badge.js +2 -2
  25. package/dist/cjs/components/Breadcrumbs.js +2 -2
  26. package/dist/cjs/components/Button.js +4 -4
  27. package/dist/cjs/components/Cell.js +3 -3
  28. package/dist/cjs/components/Checkbox.js +1 -1
  29. package/dist/cjs/components/Chips.js +3 -3
  30. package/dist/cjs/components/Choice.js +3 -3
  31. package/dist/cjs/components/CookiesWarning.js +4 -4
  32. package/dist/cjs/components/DatePeriod.js +7 -7
  33. package/dist/cjs/components/DatePicker.js +6 -6
  34. package/dist/cjs/components/Drawer.js +2 -2
  35. package/dist/cjs/components/Dropdown.js +3 -3
  36. package/dist/cjs/components/HeroTitle.js +2 -2
  37. package/dist/cjs/components/Icon.js +2 -2
  38. package/dist/cjs/components/InputPassword.js +2 -2
  39. package/dist/cjs/components/Label.js +3 -3
  40. package/dist/cjs/components/Loader.js +2 -2
  41. package/dist/cjs/components/MenuItem.js +6 -4
  42. package/dist/cjs/components/Modal.js +34 -34
  43. package/dist/cjs/components/ModalSheetBottom.js +2 -2
  44. package/dist/cjs/components/Notification.js +2 -2
  45. package/dist/cjs/components/Overlay.js +1 -1
  46. package/dist/cjs/components/Pagination.js +3 -3
  47. package/dist/cjs/components/Radio.js +1 -1
  48. package/dist/cjs/components/Response.js +4 -4
  49. package/dist/cjs/components/Search.js +2 -2
  50. package/dist/cjs/components/Segmented.js +2 -2
  51. package/dist/cjs/components/Select.js +3 -3
  52. package/dist/cjs/components/Swiper.js +2 -2
  53. package/dist/cjs/components/Switch.js +1 -1
  54. package/dist/cjs/components/Tab.js +2 -2
  55. package/dist/cjs/components/Text.js +1 -1
  56. package/dist/cjs/components/Tile.js +2 -2
  57. package/dist/cjs/components/Title.js +2 -2
  58. package/dist/cjs/components/Tooltip.js +2 -2
  59. package/dist/cjs/components/Warning.js +2 -2
  60. package/dist/components/Accordion.js +2 -2
  61. package/dist/components/Avatar.js +3 -3
  62. package/dist/components/AvatarStack.js +3 -3
  63. package/dist/components/Badge.js +2 -2
  64. package/dist/components/Breadcrumbs.js +2 -2
  65. package/dist/components/Button.js +4 -4
  66. package/dist/components/Cell.js +3 -3
  67. package/dist/components/Checkbox.js +1 -1
  68. package/dist/components/Chips.js +3 -3
  69. package/dist/components/Choice.js +3 -3
  70. package/dist/components/CookiesWarning.js +4 -4
  71. package/dist/components/DatePeriod.js +7 -7
  72. package/dist/components/DatePicker.js +6 -6
  73. package/dist/components/Drawer.js +2 -2
  74. package/dist/components/Dropdown.js +3 -3
  75. package/dist/components/HeroTitle.js +2 -2
  76. package/dist/components/Icon.js +2 -2
  77. package/dist/components/InputPassword.js +2 -2
  78. package/dist/components/Label.js +3 -3
  79. package/dist/components/Loader.js +2 -2
  80. package/dist/components/MenuItem.js +6 -4
  81. package/dist/components/Modal.js +35 -35
  82. package/dist/components/ModalSheetBottom.js +2 -2
  83. package/dist/components/Notification.js +2 -2
  84. package/dist/components/Overlay.js +1 -1
  85. package/dist/components/Pagination.js +3 -3
  86. package/dist/components/Radio.js +1 -1
  87. package/dist/components/Response.js +4 -4
  88. package/dist/components/Search.js +2 -2
  89. package/dist/components/Segmented.js +2 -2
  90. package/dist/components/Select.js +3 -3
  91. package/dist/components/Swiper.js +2 -2
  92. package/dist/components/Switch.js +1 -1
  93. package/dist/components/Tab.js +2 -2
  94. package/dist/components/Text.js +1 -1
  95. package/dist/components/Tile.js +2 -2
  96. package/dist/components/Title.js +2 -2
  97. package/dist/components/Tooltip.js +2 -2
  98. package/dist/components/Warning.js +2 -2
  99. package/dist/css/components/Modal/Modal.css +2 -0
  100. package/dist/css/styles/border-color/border-color.css +2 -2
  101. package/dist/css/styles/border-color/border-color_active.css +2 -2
  102. package/dist/css/styles/border-color/border-color_focus.css +2 -2
  103. package/dist/css/styles/border-color/border-color_hover.css +2 -2
  104. package/dist/css/styles/caret-color/caret-color.css +3 -4
  105. package/dist/css/styles/fill/fill.css +8 -5
  106. package/dist/css/styles/fill/fill_active.css +7 -2
  107. package/dist/css/styles/fill/fill_active_hover.css +9 -2
  108. package/dist/css/styles/fill/fill_hover.css +9 -4
  109. package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +4 -5
  110. package/dist/css/styles/svg-color/svg_fill.css +5 -4
  111. package/dist/css/styles/svg-color/svg_fill_hover.css +3 -4
  112. package/dist/css/styles/svg-color/svg_path_fill.css +3 -4
  113. package/dist/css/styles/text-color/text-color.css +3 -4
  114. package/dist/css/styles/text-color/text-color_active.css +2 -2
  115. package/dist/css/styles/text-color/text-color_active_hover.css +8 -4
  116. package/dist/css/styles/text-color/text-color_hover.css +2 -2
  117. package/dist/types/components/Label/Label.appearance.d.ts +261 -2
  118. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -1
  119. package/dist/types/components/Modal/Modal.appearance.d.ts +1626 -2
  120. package/dist/types/components/Modal/Modal.d.ts +50 -2
  121. package/dist/types/components/Modal/Modal.interface.d.ts +56 -38
  122. package/dist/types/components/Modal/appearance/modalShape.d.ts +2 -24
  123. package/dist/types/components/Modal/appearance/modalSize.d.ts +2 -26
  124. package/dist/types/components/Modal/appearance/modalStyle.d.ts +2 -13
  125. package/dist/types/components/Modal/appearance/modalSurface.d.ts +2 -7
  126. package/dist/types/components/Overlay/Overlay.interface.d.ts +5 -5
  127. package/dist/types/components/Title/Title.interface.d.ts +1 -1
  128. package/package.json +3 -3
@@ -1,5 +1,53 @@
1
1
  import React from 'react';
2
- import type { ModalConfig } from './Modal.interface';
2
+ import type { ModalConfig, ModalRef } from './Modal.interface';
3
3
  declare const modalConfig: ModalConfig;
4
- declare const Modal: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ declare const Modal: React.ForwardRefExoticComponent<{
5
+ borderColor?: import("@itcase/types").BorderColorProps;
6
+ borderType?: import("@itcase/types").BorderTypeProps;
7
+ borderWidth?: import("@itcase/types").BorderWidthProps;
8
+ closeIconAppearance?: import("@itcase/types").CompositeAppearanceIconKeys;
9
+ closeIconAppearanceSize?: import("@itcase/types").CompositeAppearanceIconKeys;
10
+ closeIconFillSize?: import("@itcase/types").IconFillSizeProps;
11
+ closeIconImage?: string;
12
+ closeIconShape?: import("@itcase/types").ShapeProps;
13
+ closeIconSize?: import("@itcase/types").IconSizeProps;
14
+ elevation?: import("@itcase/types").ElevationProps;
15
+ fill?: import("@itcase/types").FillProps;
16
+ itemFill?: import("@itcase/types").ItemFillProps;
17
+ overlayFill?: import("../Overlay/Overlay.interface").OverlayProps["fill"];
18
+ overlayOpacity?: import("../Overlay/Overlay.interface").OverlayProps["opacity"];
19
+ shape?: import("@itcase/types").ShapeProps;
20
+ shapeStrength?: import("@itcase/types").ShapeStrengthProps;
21
+ size?: import("@itcase/types").SizeProps;
22
+ textColor?: import("@itcase/types").TextColorProps;
23
+ textSize?: import("@itcase/types").TextSizeProps;
24
+ titleTextColor?: import("@itcase/types").TextColorProps;
25
+ titleTextColorHover?: import("@itcase/types").TextColorHoverProps;
26
+ titleTextSize?: import("@itcase/types").TitleSizeProps;
27
+ titleTextTruncate?: boolean;
28
+ titleTextWeight?: import("@itcase/types").TextWeightProps;
29
+ titleTextWidth?: import("@itcase/types").TextWeightProps;
30
+ titleTextWrap?: import("@itcase/types").TextWrapProps;
31
+ } & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
32
+ id?: string;
33
+ appearance?: import("@itcase/types").CompositeAppearanceKey;
34
+ children?: React.ReactNode;
35
+ className?: string;
36
+ contentClassName?: string;
37
+ dataTestId?: string;
38
+ dataTour?: string;
39
+ isCloseOnBlur?: boolean;
40
+ isOverlay?: boolean;
41
+ isScrollOnOpen?: boolean;
42
+ isSetFocusOnOpen?: boolean;
43
+ isSkeleton?: boolean;
44
+ modalQuerySelector?: string;
45
+ onClickOverlay: import("../Overlay/Overlay.interface").OverlayProps["onClick"];
46
+ onCloseModal?: () => void;
47
+ onOpenModal?: () => void;
48
+ scroll?: boolean;
49
+ stickyHeader?: boolean;
50
+ style?: React.CSSProperties;
51
+ title?: string;
52
+ } & React.RefAttributes<ModalRef>>;
5
53
  export { Modal, modalConfig };
@@ -1,51 +1,69 @@
1
- import type { FocusEvent, MouseEvent, MouseEventHandler, ReactNode } from 'react';
2
- import { AppearanceKeysDefault, BorderColorProps, ElevationProps, FillGradientProps, FillProps, ShapeProps } from '@itcase/types';
3
- import type { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
- export interface ModalThemeColor {
5
- [key: number | string | symbol]: any;
1
+ import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceIconKeys, CompositeAppearanceKey, ElevationProps, FillProps, IconFillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextColorHoverProps, TextColorProps, TextSizeProps, TextWeightProps, TextWrapProps, TitleSizeProps } from '@itcase/types';
3
+ import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
+ import { OverlayProps } from '../Overlay/Overlay.interface';
5
+ type ModalAppearanceProps = {
6
6
  borderColor?: BorderColorProps;
7
+ borderType?: BorderTypeProps;
8
+ borderWidth?: BorderWidthProps;
9
+ closeIconAppearance?: CompositeAppearanceIconKeys;
10
+ closeIconAppearanceSize?: CompositeAppearanceIconKeys;
11
+ closeIconFillSize?: IconFillSizeProps;
12
+ closeIconImage?: string;
13
+ closeIconShape?: ShapeProps;
14
+ closeIconSize?: IconSizeProps;
7
15
  elevation?: ElevationProps;
8
16
  fill?: FillProps;
9
- overlayFill?: FillProps;
10
- overlayFillGradient?: FillGradientProps;
11
- overlayOpacity?: string;
17
+ itemFill?: ItemFillProps;
18
+ overlayFill?: OverlayProps['fill'];
19
+ overlayOpacity?: OverlayProps['opacity'];
12
20
  shape?: ShapeProps;
13
- isOverlay?: boolean;
14
- }
15
- type AppearanceKeys = AppearanceKeysDefault & {};
16
- export type ModalAppearance = {
17
- [key in AppearanceKeys]?: ModalThemeColor;
21
+ shapeStrength?: ShapeStrengthProps;
22
+ size?: SizeProps;
23
+ textColor?: TextColorProps;
24
+ textSize?: TextSizeProps;
25
+ titleTextColor?: TextColorProps;
26
+ titleTextColorHover?: TextColorHoverProps;
27
+ titleTextSize?: TitleSizeProps;
28
+ titleTextTruncate?: boolean;
29
+ titleTextWeight?: TextWeightProps;
30
+ titleTextWidth?: TextWeightProps;
31
+ titleTextWrap?: TextWrapProps;
18
32
  };
19
- export interface ModalConfig {
20
- [key: number | string | symbol]: any;
21
- appearance: ModalAppearance | undefined;
22
- setAppearance: (newComponent: ModalAppearance) => void;
23
- }
24
- interface ModalLoaderProps {
25
- }
26
- interface ModalRef {
27
- closeModal: MouseEventHandler<HTMLDivElement>;
28
- modalElement: Element | HTMLDivElement | null;
29
- openModal: () => void;
30
- isOpen: boolean;
31
- }
32
- interface ModalProps extends ModalThemeColor, StyleAttributes {
33
+ type ModalProps = ModalAppearanceProps & StyleAttributes & {
33
34
  id?: string;
34
- [key: number | string | symbol]: any;
35
- appearance?: AppearanceKeys;
35
+ appearance?: CompositeAppearanceKey;
36
36
  children?: ReactNode;
37
37
  className?: string;
38
- closeButton?: ReactNode;
39
38
  contentClassName?: string;
40
- debug?: boolean;
41
- modalQuerySelector?: string;
42
- overlayClassName?: string;
39
+ dataTestId?: string;
40
+ dataTour?: string;
43
41
  isCloseOnBlur?: boolean;
44
- isOpen: boolean;
42
+ isOverlay?: boolean;
45
43
  isScrollOnOpen?: boolean;
46
44
  isSetFocusOnOpen?: boolean;
47
- onClickOverlay?: () => void;
48
- onCloseModal?: (event?: FocusEvent<HTMLDivElement> | MouseEvent<HTMLDivElement>) => void;
45
+ isSkeleton?: boolean;
46
+ modalQuerySelector?: string;
47
+ onClickOverlay: OverlayProps['onClick'];
48
+ onCloseModal?: () => void;
49
49
  onOpenModal?: () => void;
50
- }
51
- export type { ModalLoaderProps, ModalRef, ModalProps };
50
+ scroll?: boolean;
51
+ stickyHeader?: boolean;
52
+ style?: CSSProperties;
53
+ title?: string;
54
+ };
55
+ type ModalRef = {
56
+ closeModal: MouseEventHandler<HTMLDivElement>;
57
+ isOpen: boolean;
58
+ modalElement: Element | HTMLDivElement | null;
59
+ openModal: () => void;
60
+ };
61
+ type ModalAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
62
+ type ModalAppearance = {
63
+ [key in ModalAppearanceKey]?: ModalAppearanceProps;
64
+ };
65
+ type ModalConfig = {
66
+ appearance: ModalAppearance;
67
+ setAppearance: (appearanceConfig: ModalAppearance) => void;
68
+ };
69
+ export type { ModalAppearance, ModalConfig, ModalProps, ModalRef };
@@ -1,25 +1,3 @@
1
- declare const modalAppearanceShape: {
2
- circular: {
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 { ModalAppearance } from '../Modal.interface';
2
+ declare const modalAppearanceShape: ModalAppearance;
25
3
  export { modalAppearanceShape };
@@ -1,27 +1,3 @@
1
- declare const modalAppearanceSize: {
2
- sizeXL: {
3
- size: string;
4
- titleTextSize: string;
5
- closeIconImage: string;
6
- closeIconSize: string;
7
- };
8
- sizeL: {
9
- size: string;
10
- titleTextSize: string;
11
- closeIconImage: string;
12
- closeIconSize: string;
13
- };
14
- sizeM: {
15
- size: string;
16
- titleTextSize: string;
17
- closeIconImage: string;
18
- closeIconSize: string;
19
- };
20
- sizeS: {
21
- size: string;
22
- titleTextSize: string;
23
- closeIconImage: string;
24
- closeIconSize: string;
25
- };
26
- };
1
+ import { ModalAppearance } from '../Modal.interface';
2
+ declare const modalAppearanceSize: ModalAppearance;
27
3
  export { modalAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const modalAppearanceStyle: {
2
- solid: {
3
- borderColor: string;
4
- };
5
- outlined: {
6
- fill: string;
7
- };
8
- full: {};
9
- ghost: {
10
- fill: string;
11
- borderColor: string;
12
- };
13
- };
1
+ import { ModalAppearance } from '../Modal.interface';
2
+ declare const modalAppearanceStyle: ModalAppearance;
14
3
  export { modalAppearanceStyle };
@@ -1,8 +1,3 @@
1
- declare const modalAppearanceSurface: {
2
- surfacePrimary: {
3
- fill: string;
4
- borderColor: string;
5
- closeIconAppearance: string;
6
- };
7
- };
1
+ import { ModalAppearance } from '../Modal.interface';
2
+ declare const modalAppearanceSurface: ModalAppearance;
8
3
  export { modalAppearanceSurface };
@@ -1,4 +1,5 @@
1
- import { AppearanceKeysDefault, FillGradientProps, FillProps } from '@itcase/types';
1
+ import { MouseEventHandler } from 'react';
2
+ import { AppearanceKeysDefault, OpacityProps, OverlayFillProps } from '@itcase/types';
2
3
  import type { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
3
4
  export interface OverlayThemeColor {
4
5
  }
@@ -15,11 +16,10 @@ interface OverlayProps extends OverlayThemeColor, StyleAttributes {
15
16
  [key: number | string | symbol]: any;
16
17
  appearance?: AppearanceKeys;
17
18
  className?: string;
18
- fill?: FillProps;
19
- fillGradient?: FillGradientProps;
20
- opacity?: string;
19
+ fill?: OverlayFillProps;
20
+ opacity?: OpacityProps;
21
21
  type?: string;
22
22
  isOverlay?: boolean;
23
- onClick?: () => void;
23
+ onClick?: MouseEventHandler<HTMLDivElement>;
24
24
  }
25
25
  export type { OverlayProps };
@@ -45,7 +45,7 @@ export interface TitleProps extends TitleThemeColor, StyleAttributes {
45
45
  tag?: ElementType;
46
46
  text?: string;
47
47
  textAlign?: TextAlignProps;
48
- textTruncate?: string;
48
+ textTruncate?: boolean;
49
49
  type?: string;
50
50
  onClick?: () => void;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.100",
3
+ "version": "1.8.102",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -141,7 +141,7 @@
141
141
  "@commitlint/config-conventional": "^19.8.1",
142
142
  "@itcase/config": "^1.0.55",
143
143
  "@itcase/lint": "^1.1.37",
144
- "@itcase/types": "^1.0.27",
144
+ "@itcase/types": "^1.0.30",
145
145
  "@rollup/plugin-alias": "^5.1.1",
146
146
  "@rollup/plugin-babel": "^6.0.4",
147
147
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -171,7 +171,7 @@
171
171
  "lint-staged": "^16.1.5",
172
172
  "prettier": "^3.6.2",
173
173
  "react-docgen-typescript": "^2.4.0",
174
- "rollup": "^4.46.4",
174
+ "rollup": "^4.47.0",
175
175
  "rollup-plugin-copy": "^3.5.0",
176
176
  "rollup-plugin-dts": "^6.2.3",
177
177
  "rollup-plugin-peer-deps-external": "^2.2.4",