@kvell-group/ui 1.18.0 → 1.18.2

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.0",
5
+ "version": "1.18.2",
6
6
  "type": "module",
7
7
  "main": "src/index.ts",
8
8
  "types": "src/index.ts",
@@ -20,13 +20,16 @@
20
20
  "build-storybook": "storybook build"
21
21
  },
22
22
  "dependencies": {
23
- "@mantine/core": "^8.0.2",
24
- "@mantine/hooks": "^8.0.2"
23
+ "@mantine/carousel": "^8.1.3",
24
+ "@mantine/core": "^8.1.3",
25
+ "@mantine/hooks": "^8.1.3"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "@remixicon/react": "^4.6.0",
28
- "react": "^18.0.0",
29
- "react-dom": "^18.0.0",
29
+ "embla-carousel": "^8.5.2",
30
+ "embla-carousel-react": "^8.5.2",
31
+ "react": "^18.x || ^19.x",
32
+ "react-dom": "^18.x || ^19.x",
30
33
  "react-imask": "^7.6.1"
31
34
  },
32
35
  "devDependencies": {
@@ -0,0 +1,23 @@
1
+ .root {
2
+ --badge-height-lg: rem(28px);
3
+ --badge-padding-x-lg: rem(6px);
4
+ --badge-fz-lg: var(--mantine-font-size-caption-l);
5
+
6
+ font-family: var(--mantine-font-family);
7
+ text-transform: none;
8
+ font-weight: 500;
9
+ }
10
+
11
+ .section {
12
+ margin-inline: 0;
13
+ }
14
+
15
+ .label {
16
+ margin-bottom: rem(-1px);
17
+ }
18
+
19
+ .root[data-size='lg'] > .label {
20
+ padding-inline: rem(4px);
21
+ letter-spacing: var(--mantine-spacing-caption-l);
22
+ line-height: var(--mantine-line-height-caption-l);
23
+ }
@@ -0,0 +1,5 @@
1
+ import { Badge as MantineBadge } from '@mantine/core'
2
+ import '@mantine/core/styles/Badge.layer.css'
3
+ import classNames from './Badge.module.css'
4
+
5
+ export const Badge = MantineBadge.withProps({ classNames })
@@ -0,0 +1 @@
1
+ export { Badge } from './Badge'
@@ -0,0 +1,2 @@
1
+ import '@mantine/carousel/styles.layer.css'
2
+ export * from '@mantine/carousel'
@@ -0,0 +1 @@
1
+ export * from './Carousel'
@@ -4,7 +4,7 @@
4
4
  font-style: normal;
5
5
  font-weight: 100 900;
6
6
  font-display: swap;
7
- src: url('./../../assets/fonts/onest-cyr-ext.woff2') format('woff2');
7
+ src: url('../../assets/fonts/onest-cyr-ext.woff2') format('woff2');
8
8
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
9
9
  }
10
10
 
@@ -14,7 +14,7 @@
14
14
  font-style: normal;
15
15
  font-weight: 100 900;
16
16
  font-display: swap;
17
- src: url('./../../assets/fonts/onest-cyr.woff2') format('woff2');
17
+ src: url('../../assets/fonts/onest-cyr.woff2') format('woff2');
18
18
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
19
19
  }
20
20
 
@@ -24,7 +24,7 @@
24
24
  font-style: normal;
25
25
  font-weight: 100 900;
26
26
  font-display: swap;
27
- src: url('./../../assets/fonts/onest-lat-ext.woff2') format('woff2');
27
+ src: url('../../assets/fonts/onest-lat-ext.woff2') format('woff2');
28
28
  unicode-range:
29
29
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
30
30
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 100 900;
39
39
  font-display: swap;
40
- src: url('./../../assets/fonts/onest-lat.woff2') format('woff2');
40
+ src: url('../../assets/fonts/onest-lat.woff2') format('woff2');
41
41
  unicode-range:
42
42
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
43
43
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
@@ -1,4 +1,5 @@
1
1
  //heading
2
+ export const H5_MEDIUM_FONT_VARIANT = 'h5-medium' as const
2
3
  export const H6_BOLD_FONT_VARIANT = 'h6-bold' as const
3
4
 
4
5
  //body
@@ -7,6 +8,7 @@ export const BODY_M_BOLD_FONT_VARIANT = 'body-m-bold' as const
7
8
  export const BODY_L_BOLD_FONT_VARIANT = 'body-l-bold' as const
8
9
  export const BODY_S_MEDIUM_FONT_VARIANT = 'body-s-medium' as const
9
10
  export const BODY_S_REGULAR_FONT_VARIANT = 'body-s-regular' as const
11
+ export const BODY_S_SEMIBOLD_FONT_VARIANT = 'body-s-semibold' as const
10
12
 
11
13
  //caption
12
14
  export const CAPTION_L_MEDIUM_FONT_VARIANT = 'caption-l-medium' as const
@@ -17,6 +19,7 @@ export const CAPTION_M_REGULAR_FONT_VARIANT = 'caption-m-regular' as const
17
19
 
18
20
  export const FontVariants = [
19
21
  //heading
22
+ H5_MEDIUM_FONT_VARIANT,
20
23
  H6_BOLD_FONT_VARIANT,
21
24
  //body
22
25
  BODY_L_BOLD_FONT_VARIANT,
@@ -24,6 +27,7 @@ export const FontVariants = [
24
27
  BODY_M_BOLD_FONT_VARIANT,
25
28
  BODY_S_MEDIUM_FONT_VARIANT,
26
29
  BODY_S_REGULAR_FONT_VARIANT,
30
+ BODY_S_SEMIBOLD_FONT_VARIANT,
27
31
  //caption
28
32
  CAPTION_L_MEDIUM_FONT_VARIANT,
29
33
  CAPTION_L_REGULAR_FONT_VARIANT,
package/src/index.ts CHANGED
@@ -19,6 +19,8 @@ export { CardLogoByPan } from './components/CardLogoByPan'
19
19
  export { Loader } from './components/Loader'
20
20
  export { Modal } from './components/Modal'
21
21
  export { Text } from './components/Text'
22
+ export { Badge } from './components/Badge'
23
+ export { Carousel } from './components/Carousel'
22
24
 
23
25
  // core-components ------------------------------------------------------
24
26
 
@@ -1,3 +1,11 @@
1
+ .h5-medium {
2
+ font-family: var(--mantine-font-family);
3
+ font-weight: 500;
4
+ font-size: var(--mantine-font-size-h5);
5
+ line-height: var(--mantine-line-height-h5);
6
+ letter-spacing: var(--mantine-spacing-h5);
7
+ }
8
+
1
9
  /* heading */
2
10
  .h6-bold {
3
11
  font-family: var(--mantine-font-family);
@@ -49,6 +57,14 @@ h2.body-m-medium,
49
57
  letter-spacing: var(--mantine-spacing-body-s);
50
58
  }
51
59
 
60
+ .body-s-semibold {
61
+ font-family: var(--mantine-font-family);
62
+ font-weight: 600;
63
+ font-size: var(--mantine-font-size-body-s);
64
+ line-height: var(--mantine-line-height-body-s);
65
+ letter-spacing: var(--mantine-spacing-body-s);
66
+ }
67
+
52
68
  /* caption */
53
69
  .caption-l-medium {
54
70
  font-family: var(--mantine-font-family);
@@ -82,15 +82,17 @@ export const theme: MantineThemeOverride = {
82
82
  }, */
83
83
  radius: {
84
84
  // same name from blank and mantine
85
- xl: '0.75rem',
86
85
  xs: '0.25rem',
87
86
  sm: '0.375rem',
88
87
  md: '0.5rem',
89
88
  lg: '0.625rem',
89
+ xl: '0.75rem',
90
+ xxl: '1rem',
90
91
  },
91
92
  defaultRadius: 'xl',
92
93
  spacing: {
93
94
  //blank variables
95
+ h5: '-0.5px',
94
96
  h6: '-0.30000001192092896px',
95
97
  'body-m': '-0.20000000298023224px',
96
98
  'body-s': '-0.20000000298023224px',
@@ -106,6 +108,7 @@ export const theme: MantineThemeOverride = {
106
108
  }, //for example
107
109
  fontSizes: {
108
110
  //blank variables
111
+ h5: '30px',
109
112
  h6: '24px',
110
113
  'body-m': '18px',
111
114
  'body-l': '20px',
@@ -121,6 +124,7 @@ export const theme: MantineThemeOverride = {
121
124
  }, //for example
122
125
  lineHeights: {
123
126
  //blank variables
127
+ h5: '36px',
124
128
  h6: '32px',
125
129
  'body-m': '26px',
126
130
  'body-s': '24px',