@kvell-group/ui 1.18.4 → 1.18.5

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kvell-group/ui",
3
3
  "author": "Kvell Group",
4
4
  "private": false,
5
- "version": "1.18.4",
5
+ "version": "1.18.5",
6
6
  "type": "module",
7
7
  "main": "src/index.ts",
8
8
  "types": "src/index.ts",
@@ -63,7 +63,9 @@
63
63
  --color-border-action-destructive: #f7c3c0;
64
64
  --color-border-action-destructive-hover: #f5b2ad;
65
65
  --color-border-action-focus-destructive-light: #f08b85;
66
+ --color-border-base-alpha: #0a0f2914;
66
67
  --color-text-accent-blue-accent: #4778f5;
68
+ --color-text-base-secondary: #0f132499;
67
69
  --color-text-base-tertiary: #0d112666;
68
70
  --color-text-base-quaternary: #0a0f2940;
69
71
  --color-text-status-destructive: #e6483d;
@@ -71,5 +73,7 @@
71
73
  --color-icon-base-tertiary: #0d112666;
72
74
  --color-icon-base-quaternary: #0a0f2940;
73
75
  --color-icon-base-inverted: #ffffff;
76
+ --color-icon-status-success: #26bd6c;
77
+ --color-icon-status-warning: #f48e2f;
74
78
  --shadow-focus-ring-light: 0px 0px 0px 2px #c8b2ff80;
75
79
  }
@@ -1,43 +1,48 @@
1
1
  .root {
2
- box-shadow: var(--mantine-shadows-lg);
3
- width: 100%;
2
+ --mb-shadow: var(--mantine-shadows-lg);
3
+ --mb-padding: rem(20px);
4
+ }
5
+
6
+ @media (max-width: $mantine-breakpoint-xs) {
7
+ .inner {
8
+ align-items: end;
9
+ padding: 0;
10
+ }
4
11
  }
5
12
 
6
13
  .content {
7
- border-radius: var(--mantine-radius-xl);
8
- border: 1px solid var(--mantine-color-border-action-normal-0);
9
- white-space: pre-wrap;
10
- padding: 0.5rem;
14
+ border: rem(1px) solid var(--color-border-base-alpha);
15
+ border-radius: var(--mantine-radius-xxl);
11
16
 
12
17
  @media (max-width: $mantine-breakpoint-xs) {
13
- width: 100%;
14
- border-radius: var(--mantine-radius-xl) var(--mantine-radius-xl) 0 0;
18
+ border-bottom-left-radius: 0;
19
+ border-bottom-right-radius: 0;
15
20
  }
16
21
  }
17
22
 
18
- .header {
19
- padding-bottom: 0.25rem;
23
+ .body {
24
+ padding-bottom: rem(32px);
20
25
  }
21
26
 
22
- .inner {
23
- @media (max-width: $mantine-breakpoint-xs) {
24
- align-items: end;
25
- padding: 0;
26
- width: 100%;
27
- }
27
+ .title {
28
+ font-weight: 600;
29
+ font-size: var(--mantine-font-size-body-s);
30
+ line-height: var(--mantine-line-height-body-s);
31
+ letter-spacing: var(--mantine-spacing-body-s);
28
32
  }
29
33
 
30
- button.close {
31
- position: absolute;
32
- right: 0.25rem;
33
- top: 0.4rem;
34
- display: flex;
34
+ .close {
35
+ --cb-size: rem(24px);
36
+ margin-top: rem(-4px);
37
+ margin-right: rem(1px);
35
38
  background-color: var(--color-background-button-tertiary);
36
- border-radius: 50%;
37
- --cb-size: 1.5rem;
38
39
 
39
- & > svg {
40
- color: var(--mantine-color-icon-base-secondary-0);
40
+ &:hover {
41
+ background-color: var(--color-background-button-tertiary-hover);
42
+ }
43
+
44
+ svg {
45
+ color: var(--color-icon-base-secondary);
41
46
  scale: 0.75;
42
47
  }
43
48
  }
@@ -1,11 +1,10 @@
1
1
  import { Modal as ModalBase } from '@mantine/core'
2
2
  import '@mantine/core/styles/Modal.layer.css'
3
3
  import classNames from './Modal.module.css'
4
- import textClassNames from '../../styles/typography.module.css'
5
- import { BODY_M_MEDIUM_FONT_VARIANT } from '../../constants/font-variants'
6
4
 
7
5
  // ----------------------------------------------------------------------
8
6
 
9
7
  export const Modal = ModalBase.withProps({
10
- classNames: { ...classNames, title: textClassNames[BODY_M_MEDIUM_FONT_VARIANT] },
8
+ classNames,
9
+ transitionProps: { transition: 'fade-up' },
11
10
  })
@@ -7,6 +7,7 @@ export const H6_BOLD_FONT_VARIANT = 'h6-bold' as const
7
7
  export const BODY_M_REGULAR_FONT_VARIANT = 'body-m-regular' as const
8
8
  export const BODY_M_MEDIUM_FONT_VARIANT = 'body-m-medium' as const
9
9
  export const BODY_M_BOLD_FONT_VARIANT = 'body-m-bold' as const
10
+ export const BODY_L_MEDIUM_FONT_VARIANT = 'body-l-medium' as const
10
11
  export const BODY_L_BOLD_FONT_VARIANT = 'body-l-bold' as const
11
12
  export const BODY_S_MEDIUM_FONT_VARIANT = 'body-s-medium' as const
12
13
  export const BODY_S_REGULAR_FONT_VARIANT = 'body-s-regular' as const
@@ -25,6 +26,7 @@ export const FontVariants = [
25
26
  H5_SEMIBOLD_FONT_VARIANT,
26
27
  H6_BOLD_FONT_VARIANT,
27
28
  //body
29
+ BODY_L_MEDIUM_FONT_VARIANT,
28
30
  BODY_L_BOLD_FONT_VARIANT,
29
31
  BODY_M_REGULAR_FONT_VARIANT,
30
32
  BODY_M_MEDIUM_FONT_VARIANT,
@@ -1,3 +1,4 @@
1
+ /* heading */
1
2
  .h5-medium {
2
3
  font-family: var(--mantine-font-family);
3
4
  font-weight: 500;
@@ -14,7 +15,14 @@
14
15
  letter-spacing: var(--mantine-spacing-h5);
15
16
  }
16
17
 
17
- /* heading */
18
+ .h6-medium {
19
+ font-family: var(--mantine-font-family);
20
+ font-weight: 500;
21
+ font-size: var(--mantine-font-size-h6);
22
+ line-height: var(--mantine-line-height-h6);
23
+ letter-spacing: var(--mantine-spacing-h6);
24
+ }
25
+
18
26
  .h6-bold {
19
27
  font-family: var(--mantine-font-family);
20
28
  font-weight: 700;