@itcase/ui 1.8.102 → 1.8.104

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 (37) hide show
  1. package/dist/{Overlay_cjs_CFD8KUWi.js → Overlay_cjs_CcfJYN5o.js} +4 -3
  2. package/dist/{Overlay_es_RszsWopa.js → Overlay_es_DF3DAdxS.js} +4 -3
  3. package/dist/cjs/components/Modal.js +1 -1
  4. package/dist/cjs/components/Overlay.js +1 -1
  5. package/dist/cjs/components/Search.js +10 -0
  6. package/dist/cjs/components/Tab.js +27 -7
  7. package/dist/components/Modal.js +1 -1
  8. package/dist/components/Overlay.js +1 -1
  9. package/dist/components/Search.js +10 -0
  10. package/dist/components/Tab.js +27 -7
  11. package/dist/css/components/Button/Button.css +1 -1
  12. package/dist/css/components/Group/Group.css +2 -2
  13. package/dist/css/components/Icon/Icon.css +8 -8
  14. package/dist/css/components/Tab/Tab.css +7 -13
  15. package/dist/css/styles/blur/blur.css +2 -2
  16. package/dist/css/styles/border-color/border-color.css +4 -3
  17. package/dist/css/styles/border-color/border-color_active.css +9 -3
  18. package/dist/css/styles/border-color/border-color_active_hover.css +47 -0
  19. package/dist/css/styles/border-color/border-color_focus.css +9 -3
  20. package/dist/css/styles/border-color/border-color_hover.css +6 -3
  21. package/dist/css/styles/bundle.css +1589 -0
  22. package/dist/css/styles/fill/fill.css +2 -2
  23. package/dist/css/styles/fill/fill_active.css +5 -2
  24. package/dist/css/styles/fill/fill_active_hover.css +5 -2
  25. package/dist/css/styles/fill/fill_hover.css +5 -2
  26. package/dist/css/styles/text-color/text-color.css +5 -2
  27. package/dist/css/styles/text-color/text-color_active.css +5 -2
  28. package/dist/css/styles/text-color/text-color_active_hover.css +5 -2
  29. package/dist/css/styles/text-color/text-color_hover.css +3 -0
  30. package/dist/types/components/Overlay/Overlay.appearance.d.ts +12 -2
  31. package/dist/types/components/Overlay/Overlay.interface.d.ts +23 -21
  32. package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +2 -10
  33. package/dist/types/components/Search/appearance/searchDefault.d.ts +10 -0
  34. package/dist/types/components/Tab/appearance/tabSize.d.ts +7 -0
  35. package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -0
  36. package/dist/types/components/Tab/appearance/tabSurface.d.ts +8 -1
  37. package/package.json +4 -4
@@ -29,11 +29,11 @@
29
29
  }
30
30
  }
31
31
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
32
- pomagranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
32
+ pomegranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
33
33
  apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
34
34
  pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
35
35
  pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
36
- beryl, sea-foam, turquoise, blue, light-blue, cerulian, surf-blue,
36
+ beryl, sea-foam, turquoise, blue, light-blue, cerulean, surf-blue,
37
37
  pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
38
38
  deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
39
39
  delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
@@ -1,5 +1,8 @@
1
1
  .fill {
2
2
  &_active {
3
+ &_none {
4
+ background-color: transparent;
5
+ }
3
6
  @each $type in accent, primary, secondary, surface, error, warning, success,
4
7
  danger, info, disabled {
5
8
  @each $color in primary, secondary, tertiary, quaternary {
@@ -19,11 +22,11 @@
19
22
  }
20
23
  }
21
24
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
22
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
25
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
23
26
  clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
24
27
  rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
25
28
  canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
26
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
29
+ spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
27
30
  surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
28
31
  denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
29
32
  lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
@@ -1,6 +1,9 @@
1
1
  .fill {
2
2
  &_active {
3
3
  &_hover {
4
+ &_none {
5
+ background-color: transparent;
6
+ }
4
7
  @each $type in accent, primary, secondary, surface, error, warning,
5
8
  success, danger, info, disabled {
6
9
  @each $color in primary, secondary, tertiary, quaternary {
@@ -80,12 +83,12 @@
80
83
  }
81
84
  }
82
85
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
83
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum,
86
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
84
87
  orange, clementine, apricot, papaya, kumquat, light-orange, peach,
85
88
  flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
86
89
  mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
87
90
  dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
88
- light-blue, cerulian, surf-blue, pacific-green, blue-cobalt, dark-teal,
91
+ light-blue, cerulean, surf-blue, pacific-green, blue-cobalt, dark-teal,
89
92
  blue-horizon, denim-blue, linen-blue, deep-navy, midnight-blue, purple,
90
93
  ultra-violet, lilac, ocean-blue, delft-blue, indigo, lavender-gray,
91
94
  lavender, mist-blue, storm-gray, cactus, pine-green, cyprus-green,
@@ -1,5 +1,8 @@
1
1
  .fill {
2
2
  &_hover {
3
+ &_none {
4
+ background-color: transparent;
5
+ }
3
6
  @each $type in accent, primary, secondary, surface, error, warning, success,
4
7
  danger, info, disabled {
5
8
  @each $color in primary, secondary, tertiary, quaternary {
@@ -54,11 +57,11 @@
54
57
  }
55
58
  }
56
59
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
57
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
60
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
58
61
  clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
59
62
  rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
60
63
  canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
61
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
64
+ spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
62
65
  surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
63
66
  denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
64
67
  lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
@@ -1,5 +1,8 @@
1
1
  .text {
2
2
  &&-color {
3
+ &_none {
4
+ color: transparent;
5
+ }
3
6
  @each $type in accent, primary, secondary, surface, error, warning, success,
4
7
  danger, info, disabled {
5
8
  @each $color in primary, secondary, tertiary, quaternary {
@@ -13,11 +16,11 @@
13
16
  }
14
17
  }
15
18
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
16
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
19
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum, orange,
17
20
  clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
18
21
  rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
19
22
  canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
20
- spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
23
+ spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulean,
21
24
  surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
22
25
  denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
23
26
  lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
@@ -1,6 +1,9 @@
1
1
  .text {
2
2
  &&-color {
3
3
  &_active {
4
+ &_none {
5
+ color: transparent;
6
+ }
4
7
  @each $type in accent, primary, secondary, surface, error, warning,
5
8
  success, danger, info, disabled {
6
9
  @each $color in primary, secondary, tertiary, quaternary {
@@ -14,12 +17,12 @@
14
17
  }
15
18
  }
16
19
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
17
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum,
20
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
18
21
  orange, clementine, apricot, papaya, kumquat, light-orange, peach,
19
22
  flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
20
23
  mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
21
24
  dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
22
- light-blue, cerulian, surf-blue, pacific-green, blue-cobalt, dark-teal,
25
+ light-blue, cerulean, surf-blue, pacific-green, blue-cobalt, dark-teal,
23
26
  blue-horizon, denim-blue, linen-blue, deep-navy, midnight-blue, purple,
24
27
  ultra-violet, lilac, ocean-blue, delft-blue, indigo, lavender-gray,
25
28
  lavender, mist-blue, storm-gray, cactus, pine-green, cyprus-green,
@@ -2,6 +2,9 @@
2
2
  &&-color {
3
3
  &_active {
4
4
  &_hover {
5
+ &_none {
6
+ color: transparent;
7
+ }
5
8
  @each $type in accent, primary, secondary, surface, error, warning,
6
9
  success, danger, info, disabled {
7
10
  @each $color in primary, secondary, tertiary, quaternary {
@@ -17,12 +20,12 @@
17
20
  }
18
21
  }
19
22
  @each $palette in red, neon-pink, electric-pink, hibiscus, pink,
20
- pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum,
23
+ pink-citrus, pomegranate, dragon-fruit, camellia, red-rose, plum,
21
24
  orange, clementine, apricot, papaya, kumquat, light-orange, peach,
22
25
  flamingo, rose-gold, pink-sand, vintage-rose, grapefruit, cream,
23
26
  mellow-yellow, canary-yellow, pollen, flash-light, lemon-cream, flash,
24
27
  dark-green, green, spearmint, mint, beryl, sea-foam, turquoise, blue,
25
- light-blue, cerulian, surf-blue, pacific-green, blue-cobalt,
28
+ light-blue, cerulean, surf-blue, pacific-green, blue-cobalt,
26
29
  dark-teal, blue-horizon, denim-blue, linen-blue, deep-navy,
27
30
  midnight-blue, purple, ultra-violet, lilac, ocean-blue, delft-blue,
28
31
  indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
@@ -1,6 +1,9 @@
1
1
  .text {
2
2
  &&-color {
3
3
  &_hover {
4
+ &_none {
5
+ color: transparent;
6
+ }
4
7
  @each $type in accent, primary, secondary, surface, error, warning,
5
8
  success, danger, info, disabled {
6
9
  @each $color in primary, secondary, tertiary, quaternary {
@@ -1,2 +1,12 @@
1
- import { OverlayAppearanceType } from './Overlay.interface';
2
- export declare const overlayAppearance: OverlayAppearanceType;
1
+ export declare const overlayAppearance: {
2
+ blackout?: {
3
+ blur?: import("@itcase/types").BlurProps;
4
+ fill?: import("@itcase/types").FillProps;
5
+ opacity?: import("@itcase/types").OpacityProps;
6
+ } | undefined;
7
+ blur?: {
8
+ blur?: import("@itcase/types").BlurProps;
9
+ fill?: import("@itcase/types").FillProps;
10
+ opacity?: import("@itcase/types").OpacityProps;
11
+ } | undefined;
12
+ };
@@ -1,25 +1,27 @@
1
- import { MouseEventHandler } from 'react';
2
- import { AppearanceKeysDefault, OpacityProps, OverlayFillProps } from '@itcase/types';
3
- import type { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
- export interface OverlayThemeColor {
5
- }
6
- type AppearanceKeys = AppearanceKeysDefault & {};
7
- export type OverlayAppearanceType = {
8
- [key in AppearanceKeys]?: OverlayThemeColor;
1
+ import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
+ import { AppearanceOverlayKey, BlurProps, FillProps, OpacityProps } from '@itcase/types';
3
+ import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
+ type OverlayAppearanceProps = {
5
+ blur?: BlurProps;
6
+ fill?: FillProps;
7
+ opacity?: OpacityProps;
9
8
  };
10
- export interface OverlayConfig {
11
- [key: number | string | symbol]: any;
12
- appearance: OverlayAppearanceType | undefined;
13
- setAppearance: (newComponent: OverlayAppearanceType) => void;
14
- }
15
- interface OverlayProps extends OverlayThemeColor, StyleAttributes {
16
- [key: number | string | symbol]: any;
17
- appearance?: AppearanceKeys;
9
+ type OverlayProps = OverlayAppearanceProps & StyleAttributes & {
10
+ appearance?: AppearanceOverlayKey;
11
+ children?: ReactNode;
18
12
  className?: string;
19
- fill?: OverlayFillProps;
20
- opacity?: OpacityProps;
21
- type?: string;
13
+ dataTestId?: string;
14
+ dataTour?: string;
22
15
  isOverlay?: boolean;
23
16
  onClick?: MouseEventHandler<HTMLDivElement>;
24
- }
25
- export type { OverlayProps };
17
+ style?: CSSProperties;
18
+ };
19
+ type OverlayAppearanceKey = AppearanceOverlayKey;
20
+ type OverlayAppearance = {
21
+ [key in OverlayAppearanceKey]?: OverlayAppearanceProps;
22
+ };
23
+ type OverlayConfig = {
24
+ appearance: OverlayAppearance;
25
+ setAppearance: (appearanceConfig: OverlayAppearance) => void;
26
+ };
27
+ export type { OverlayAppearance, OverlayConfig, OverlayProps };
@@ -1,11 +1,3 @@
1
- declare const overlayAppearanceDefault: {
2
- blackout: {
3
- fill: string;
4
- opacity: number;
5
- };
6
- blur: {
7
- fill: string;
8
- blur: number;
9
- };
10
- };
1
+ import { OverlayAppearance } from '../Overlay.interface';
2
+ declare const overlayAppearanceDefault: OverlayAppearance;
11
3
  export { overlayAppearanceDefault };
@@ -9,5 +9,15 @@ declare const searchAppearanceDefault: {
9
9
  inputTextColor: string;
10
10
  placeholderTextColor: string;
11
11
  };
12
+ defaultSecondary: {
13
+ fill: string;
14
+ borderColor: string;
15
+ borderColorHover: string;
16
+ iconAfterFill: string;
17
+ iconBeforeFill: string;
18
+ iconClearFill: string;
19
+ inputTextColor: string;
20
+ placeholderTextColor: string;
21
+ };
12
22
  };
13
23
  export { searchAppearanceDefault };
@@ -2,6 +2,7 @@ declare const tabAppearanceSize: {
2
2
  sizeXXL: {
3
3
  size: string;
4
4
  labelTextSize: string;
5
+ badgeAppearanceSize: string;
5
6
  badgeSize: string;
6
7
  badgeTextSize: string;
7
8
  dividerSize: string;
@@ -9,6 +10,7 @@ declare const tabAppearanceSize: {
9
10
  sizeXL: {
10
11
  size: string;
11
12
  labelTextSize: string;
13
+ badgeAppearanceSize: string;
12
14
  badgeSize: string;
13
15
  badgeTextSize: string;
14
16
  dividerSize: string;
@@ -16,6 +18,7 @@ declare const tabAppearanceSize: {
16
18
  sizeL: {
17
19
  size: string;
18
20
  labelTextSize: string;
21
+ badgeAppearanceSize: string;
19
22
  badgeSize: string;
20
23
  badgeTextSize: string;
21
24
  dividerSize: string;
@@ -23,6 +26,7 @@ declare const tabAppearanceSize: {
23
26
  sizeM: {
24
27
  size: string;
25
28
  labelTextSize: string;
29
+ badgeAppearanceSize: string;
26
30
  badgeSize: string;
27
31
  badgeTextSize: string;
28
32
  dividerSize: string;
@@ -30,6 +34,7 @@ declare const tabAppearanceSize: {
30
34
  sizeS: {
31
35
  size: string;
32
36
  labelTextSize: string;
37
+ badgeAppearanceSize: string;
33
38
  badgeSize: string;
34
39
  badgeTextSize: string;
35
40
  dividerSize: string;
@@ -37,12 +42,14 @@ declare const tabAppearanceSize: {
37
42
  sizeXS: {
38
43
  size: string;
39
44
  labelTextSize: string;
45
+ badgeAppearanceSize: string;
40
46
  badgeSize: string;
41
47
  badgeTextSize: string;
42
48
  };
43
49
  sizeXXS: {
44
50
  size: string;
45
51
  labelTextSize: string;
52
+ badgeAppearanceSize: string;
46
53
  badgeSize: string;
47
54
  badgeTextSize: string;
48
55
  dividerSize: string;
@@ -1,6 +1,7 @@
1
1
  declare const tabAppearanceStyle: {
2
2
  solid: {
3
3
  borderColor: string;
4
+ borderColorActive: string;
4
5
  };
5
6
  outlined: {
6
7
  fill: string;
@@ -9,6 +10,7 @@ declare const tabAppearanceStyle: {
9
10
  ghost: {
10
11
  fill: string;
11
12
  borderColor: string;
13
+ borderColorActive: string;
12
14
  };
13
15
  };
14
16
  export { tabAppearanceStyle };
@@ -7,8 +7,9 @@ declare const tabAppearanceSurface: {
7
7
  fillHover: string;
8
8
  labelTextColor: string;
9
9
  labelTextColorActive: string;
10
- borderColor: string;
11
10
  dividerFillDisabled: string;
11
+ borderColor: string;
12
+ borderColorActive: string;
12
13
  badgeAppearance: string;
13
14
  dividerFillActive: string;
14
15
  iconFillIcon: string;
@@ -22,6 +23,8 @@ declare const tabAppearanceSurface: {
22
23
  labelTextColor: string;
23
24
  labelTextColorActive: string;
24
25
  dividerFillDisabled: string;
26
+ borderColor: string;
27
+ borderColorActive: string;
25
28
  badgeAppearance: string;
26
29
  dividerFillActive: string;
27
30
  iconFillIcon: string;
@@ -35,6 +38,8 @@ declare const tabAppearanceSurface: {
35
38
  labelTextColor: string;
36
39
  labelTextColorActive: string;
37
40
  dividerFillDisabled: string;
41
+ borderColor: string;
42
+ borderColorActive: string;
38
43
  badgeAppearance: string;
39
44
  dividerFillActive: string;
40
45
  iconFillIcon: string;
@@ -48,6 +53,8 @@ declare const tabAppearanceSurface: {
48
53
  labelTextColor: string;
49
54
  labelTextColorActive: string;
50
55
  dividerFillDisabled: string;
56
+ borderColor: string;
57
+ borderColorActive: string;
51
58
  badgeAppearance: string;
52
59
  dividerFillActive: string;
53
60
  iconFillIcon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.102",
3
+ "version": "1.8.104",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -72,9 +72,9 @@
72
72
  "scripts": {
73
73
  "build": "npm run build-js && npm run build-css",
74
74
  "build-js": "rm -rf dist && NODE_ENV=production rollup -c",
75
- "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production",
75
+ "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' 'src/styles/bundle.css' --base src --dir dist/css/ --env production",
76
76
  "dev-js": "rollup -c -w",
77
- "dev-css": "postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production -w --verbose",
77
+ "dev-css": "postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' 'src/styles/bundle.css' --base src --dir dist/css/ --env production -w --verbose",
78
78
  "prepare": "husky",
79
79
  "prepack": "npm run build",
80
80
  "semantic-release": "semantic-release",
@@ -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.30",
144
+ "@itcase/types": "^1.0.33",
145
145
  "@rollup/plugin-alias": "^5.1.1",
146
146
  "@rollup/plugin-babel": "^6.0.4",
147
147
  "@rollup/plugin-commonjs": "^28.0.6",