@kvell-group/ui 1.18.1 → 1.18.3

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/mantine/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from '@mantine/core'
2
2
  export * from '@mantine/hooks'
3
+ export * from '@mantine/form'
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.1",
5
+ "version": "1.18.3",
6
6
  "type": "module",
7
7
  "main": "src/index.ts",
8
8
  "types": "src/index.ts",
@@ -20,11 +20,15 @@
20
20
  "build-storybook": "storybook build"
21
21
  },
22
22
  "dependencies": {
23
+ "@mantine/carousel": "^8.1.3",
23
24
  "@mantine/core": "^8.1.3",
25
+ "@mantine/form": "^8.1.3",
24
26
  "@mantine/hooks": "^8.1.3"
25
27
  },
26
28
  "peerDependencies": {
27
29
  "@remixicon/react": "^4.6.0",
30
+ "embla-carousel": "^8.5.2",
31
+ "embla-carousel-react": "^8.5.2",
28
32
  "react": "^18.x || ^19.x",
29
33
  "react-dom": "^18.x || ^19.x",
30
34
  "react-imask": "^7.6.1"
@@ -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'
@@ -38,6 +38,20 @@
38
38
  }
39
39
  }
40
40
 
41
+ &[data-variant='ghost'] {
42
+ background-color: transparent;
43
+ color: var(--mantine-color-text-base-secondary-0);
44
+ box-shadow: none;
45
+
46
+ &:hover {
47
+ background-color: var(--mantine-color-background-button-ghost-hover-0);
48
+ }
49
+
50
+ .loader {
51
+ --button-color: var(--mantine-color-gray-5);
52
+ }
53
+ }
54
+
41
55
  &:disabled,
42
56
  &[data-disabled] {
43
57
  background-color: var(--mantine-color-background-button-primary-disabled-0);
@@ -1,11 +1,13 @@
1
1
  export const PRIMARY_BUTTON_VARIANT = 'primary' as const
2
2
  export const SECONDARY_BUTTON_VARIANT = 'secondary' as const
3
3
  export const TERTIARY_BUTTON_VARIANT = 'tertiary' as const
4
+ export const GHOST_BUTTON_VARIANT = 'ghost' as const
4
5
 
5
6
  export const ButtonVariants = [
6
7
  PRIMARY_BUTTON_VARIANT,
7
8
  SECONDARY_BUTTON_VARIANT,
8
9
  TERTIARY_BUTTON_VARIANT,
10
+ GHOST_BUTTON_VARIANT,
9
11
  ]
10
12
 
11
13
  // ----------------------------------------------------------------------
@@ -0,0 +1,16 @@
1
+ .root:where([data-with-border]) {
2
+ position: relative;
3
+ border: none;
4
+ }
5
+
6
+ .root:where([data-with-border])::after {
7
+ content: '';
8
+ position: absolute;
9
+ top: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ pointer-events: none;
14
+ border: calc(0.0625rem * var(--mantine-scale)) solid #0a0f2914;
15
+ border-radius: inherit;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { Card as MantineCard } from '@mantine/core'
2
+ import '@mantine/core/styles/Card.layer.css'
3
+ import classNames from './Card.module.css'
4
+
5
+ export const Card = MantineCard.withProps({ classNames })
@@ -0,0 +1 @@
1
+ export { Card } from './Card'
@@ -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,9 @@ 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'
24
+ export { Card } from './components/Card'
22
25
 
23
26
  // core-components ------------------------------------------------------
24
27
 
@@ -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);
@@ -26,10 +26,12 @@ export const theme: MantineThemeOverride = {
26
26
  //buttons
27
27
  'background-button-tertiary': colorsTuple('#0a0f290a'),
28
28
  'background-button-primary-disabled': colorsTuple('#e9eaec'),
29
+ 'background-button-ghost-hover': colorsTuple('#0A0F290A'),
29
30
 
30
31
  //icons
31
32
  'icon-base-secondary': colorsTuple('#0f132499'),
32
33
  'icon-base-tertiary': colorsTuple('#0D112666'),
34
+ 'icon-base-quaternary': colorsTuple('#0A0F2940'),
33
35
  'icon-status-success': colorsTuple('#26BD6C'),
34
36
  // icon/base/secondary
35
37
 
@@ -82,15 +84,17 @@ export const theme: MantineThemeOverride = {
82
84
  }, */
83
85
  radius: {
84
86
  // same name from blank and mantine
85
- xl: '0.75rem',
86
87
  xs: '0.25rem',
87
88
  sm: '0.375rem',
88
89
  md: '0.5rem',
89
90
  lg: '0.625rem',
91
+ xl: '0.75rem',
92
+ xxl: '1rem',
90
93
  },
91
94
  defaultRadius: 'xl',
92
95
  spacing: {
93
96
  //blank variables
97
+ h5: '-0.5px',
94
98
  h6: '-0.30000001192092896px',
95
99
  'body-m': '-0.20000000298023224px',
96
100
  'body-s': '-0.20000000298023224px',
@@ -106,6 +110,7 @@ export const theme: MantineThemeOverride = {
106
110
  }, //for example
107
111
  fontSizes: {
108
112
  //blank variables
113
+ h5: '30px',
109
114
  h6: '24px',
110
115
  'body-m': '18px',
111
116
  'body-l': '20px',
@@ -121,6 +126,7 @@ export const theme: MantineThemeOverride = {
121
126
  }, //for example
122
127
  lineHeights: {
123
128
  //blank variables
129
+ h5: '36px',
124
130
  h6: '32px',
125
131
  'body-m': '26px',
126
132
  'body-s': '24px',