@kvell-group/ui 1.18.2 → 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.2",
5
+ "version": "1.18.3",
6
6
  "type": "module",
7
7
  "main": "src/index.ts",
8
8
  "types": "src/index.ts",
@@ -22,6 +22,7 @@
22
22
  "dependencies": {
23
23
  "@mantine/carousel": "^8.1.3",
24
24
  "@mantine/core": "^8.1.3",
25
+ "@mantine/form": "^8.1.3",
25
26
  "@mantine/hooks": "^8.1.3"
26
27
  },
27
28
  "peerDependencies": {
@@ -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'
package/src/index.ts CHANGED
@@ -21,6 +21,7 @@ export { Modal } from './components/Modal'
21
21
  export { Text } from './components/Text'
22
22
  export { Badge } from './components/Badge'
23
23
  export { Carousel } from './components/Carousel'
24
+ export { Card } from './components/Card'
24
25
 
25
26
  // core-components ------------------------------------------------------
26
27
 
@@ -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