@kvell-group/ui 1.18.4 → 1.18.6
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 +2 -1
- package/src/components/Badge/Badge.module.css +34 -8
- package/src/components/Badge/Badge.tsx +1 -1
- package/src/components/Button/Button.module.css +97 -54
- package/src/components/Inputs/DatePickerInput/DatePickerInput.tsx +9 -0
- package/src/components/Inputs/DatePickerInput/index.ts +1 -0
- package/src/components/Inputs/Input/Input.module.css +34 -14
- package/src/components/KvellUiProvider/KvellUiProvider.module.css +17 -0
- package/src/components/KvellUiProvider/KvellUiProvider.tsx +1 -0
- package/src/components/Modal/Modal.module.css +30 -25
- package/src/components/Modal/Modal.tsx +2 -3
- package/src/constants/font-variants.ts +4 -0
- package/src/index.ts +2 -0
- package/src/styles/typography.module.css +17 -1
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.
|
|
5
|
+
"version": "1.18.6",
|
|
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/dates": "^8.1.3",
|
|
25
26
|
"@mantine/form": "^8.1.3",
|
|
26
27
|
"@mantine/hooks": "^8.1.3"
|
|
27
28
|
},
|
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
.root {
|
|
2
|
+
--badge-height-xs: rem(16px);
|
|
3
|
+
--badge-height-sm: rem(20px);
|
|
4
|
+
--badge-height-md: rem(24px);
|
|
2
5
|
--badge-height-lg: rem(28px);
|
|
3
|
-
--badge-
|
|
6
|
+
--badge-fz-xs: var(--mantine-font-size-caption-m);
|
|
7
|
+
--badge-fz-sm: var(--mantine-font-size-caption-m);
|
|
8
|
+
--badge-fz-md: var(--mantine-font-size-caption-l);
|
|
4
9
|
--badge-fz-lg: var(--mantine-font-size-caption-l);
|
|
10
|
+
--badge-padding-x-xs: rem(2px);
|
|
11
|
+
--badge-padding-x-sm: rem(3px);
|
|
12
|
+
--badge-padding-x-md: rem(4px);
|
|
13
|
+
--badge-padding-x-lg: rem(6px);
|
|
5
14
|
|
|
6
|
-
font-family: var(--mantine-font-family);
|
|
7
15
|
text-transform: none;
|
|
8
16
|
font-weight: 500;
|
|
17
|
+
letter-spacing: var(--badge-ls);
|
|
18
|
+
|
|
19
|
+
&[data-size='xs'] {
|
|
20
|
+
--badge-radius: var(--mantine-radius-xs);
|
|
21
|
+
--badge-label-padding-x: rem(2px);
|
|
22
|
+
--badge-lh: var(--mantine-line-height-caption-m);
|
|
23
|
+
--badge-ls: var(--mantine-spacing-caption-m);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-size='sm'] {
|
|
27
|
+
--badge-radius: var(--mantine-radius-sm);
|
|
28
|
+
--badge-label-padding-x: rem(3px);
|
|
29
|
+
--badge-lh: var(--mantine-line-height-caption-m);
|
|
30
|
+
--badge-ls: var(--mantine-spacing-caption-m);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-size='md'],
|
|
34
|
+
&[data-size='lg'] {
|
|
35
|
+
--badge-radius: var(--mantine-radius-md);
|
|
36
|
+
--badge-label-padding-x: rem(4px);
|
|
37
|
+
--badge-lh: var(--mantine-line-height-caption-l);
|
|
38
|
+
--badge-ls: var(--mantine-spacing-caption-l);
|
|
39
|
+
}
|
|
9
40
|
}
|
|
10
41
|
|
|
11
42
|
.section {
|
|
@@ -14,10 +45,5 @@
|
|
|
14
45
|
|
|
15
46
|
.label {
|
|
16
47
|
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);
|
|
48
|
+
padding-inline: var(--badge-label-padding-x);
|
|
23
49
|
}
|
|
@@ -2,4 +2,4 @@ import { Badge as MantineBadge } from '@mantine/core'
|
|
|
2
2
|
import '@mantine/core/styles/Badge.layer.css'
|
|
3
3
|
import classNames from './Badge.module.css'
|
|
4
4
|
|
|
5
|
-
export const Badge = MantineBadge.withProps({ classNames })
|
|
5
|
+
export const Badge = MantineBadge.withProps({ classNames, bd: 0 })
|
|
@@ -1,107 +1,150 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
--button-height-
|
|
3
|
-
--button-height-
|
|
4
|
-
--button-height-
|
|
2
|
+
--button-height-xs: rem(24px);
|
|
3
|
+
--button-height-sm: rem(32px);
|
|
4
|
+
--button-height-md: rem(40px);
|
|
5
|
+
--button-height-lg: rem(48px);
|
|
5
6
|
|
|
6
|
-
--button-padding-x-
|
|
7
|
-
--button-padding-x-
|
|
8
|
-
--button-padding-x-
|
|
7
|
+
--button-padding-x-xs: rem(8px);
|
|
8
|
+
--button-padding-x-sm: rem(10px);
|
|
9
|
+
--button-padding-x-md: rem(12px);
|
|
10
|
+
--button-padding-x-lg: rem(16px);
|
|
9
11
|
|
|
10
|
-
font-family: var(--mantine-font-family);
|
|
11
12
|
font-weight: 500;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
border: rem(1px) solid transparent;
|
|
14
|
+
|
|
15
|
+
&[data-size='xs'] {
|
|
16
|
+
--button-radius: var(--mantine-radius-md);
|
|
17
|
+
font-size: var(--mantine-font-size-caption-m);
|
|
18
|
+
line-height: var(--mantine-line-height-caption-m);
|
|
19
|
+
letter-spacing: var(--mantine-spacing-caption-m);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[data-size='sm'] {
|
|
23
|
+
--button-radius: var(--mantine-radius-lg);
|
|
24
|
+
font-size: var(--mantine-font-size-caption-l);
|
|
25
|
+
line-height: var(--mantine-line-height-caption-l);
|
|
26
|
+
letter-spacing: var(--mantine-spacing-caption-l);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-size='md'] {
|
|
30
|
+
--button-radius: var(--mantine-radius-xl);
|
|
31
|
+
font-size: var(--mantine-font-size-caption-l);
|
|
32
|
+
line-height: var(--mantine-line-height-caption-l);
|
|
33
|
+
letter-spacing: var(--mantine-spacing-caption-l);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-size='lg'] {
|
|
37
|
+
--button-radius: var(--mantine-radius-xl);
|
|
38
|
+
font-size: var(--mantine-font-size-body-s);
|
|
39
|
+
line-height: var(--mantine-line-height-body-s);
|
|
40
|
+
letter-spacing: var(--mantine-spacing-body-s);
|
|
41
|
+
}
|
|
15
42
|
|
|
16
43
|
&[data-variant='primary'] {
|
|
17
|
-
|
|
18
|
-
|
|
44
|
+
--button-bg: var(--color-background-button-primary);
|
|
45
|
+
--button-hover: var(--color-background-button-primary-hover);
|
|
46
|
+
--button-color: var(--color-text-base-inverted);
|
|
19
47
|
box-shadow: var(--mantine-shadow-xs);
|
|
20
48
|
|
|
21
49
|
&:focus-visible {
|
|
22
|
-
border:
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: var(--color-background-button-primary-hover);
|
|
50
|
+
border-color: transparent;
|
|
27
51
|
}
|
|
28
52
|
|
|
29
|
-
&:disabled,
|
|
30
|
-
&[data-disabled] {
|
|
53
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
31
54
|
background-color: var(--color-background-button-primary-disabled);
|
|
55
|
+
box-shadow: none;
|
|
32
56
|
}
|
|
33
57
|
}
|
|
34
58
|
|
|
35
59
|
&[data-variant='secondary'] {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
60
|
+
--button-bg: var(--color-background-button-secondary);
|
|
61
|
+
--button-hover: var(--color-background-button-secondary-hover);
|
|
62
|
+
--button-color: var(--color-text-base-primary);
|
|
63
|
+
border-color: var(--color-border-action-normal);
|
|
39
64
|
box-shadow: var(--mantine-shadow-xs);
|
|
40
65
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
66
|
+
@media (hover: hover) {
|
|
67
|
+
&:hover:where(:not([data-loading], :disabled, [data-disabled])) {
|
|
68
|
+
border-color: var(--color-border-action-hover);
|
|
69
|
+
}
|
|
44
70
|
}
|
|
45
71
|
|
|
46
|
-
&:disabled,
|
|
47
|
-
&[data-disabled] {
|
|
72
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
48
73
|
background-color: var(--color-background-button-secondary-disabled);
|
|
49
|
-
border:
|
|
74
|
+
border-color: var(--color-border-action-disabled);
|
|
75
|
+
box-shadow: none;
|
|
50
76
|
}
|
|
51
77
|
|
|
52
|
-
|
|
53
|
-
|
|
78
|
+
&::before {
|
|
79
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
54
80
|
}
|
|
55
81
|
}
|
|
56
82
|
|
|
57
83
|
&[data-variant='tertiary'] {
|
|
58
|
-
|
|
59
|
-
|
|
84
|
+
--button-bg: var(--color-background-button-tertiary);
|
|
85
|
+
--button-hover: var(--color-background-button-tertiary-hover);
|
|
86
|
+
--button-color: var(--color-text-base-primary);
|
|
60
87
|
|
|
61
|
-
&:
|
|
62
|
-
background-color: var(--color-background-button-tertiary-hover);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:disabled,
|
|
66
|
-
&[data-disabled] {
|
|
88
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
67
89
|
background-color: var(--color-background-button-tertiary);
|
|
68
90
|
}
|
|
69
91
|
|
|
70
|
-
|
|
71
|
-
|
|
92
|
+
&::before {
|
|
93
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
96
|
|
|
75
97
|
&[data-variant='ghost'] {
|
|
76
|
-
|
|
77
|
-
|
|
98
|
+
--button-bg: transparent;
|
|
99
|
+
--button-hover: var(--color-background-button-ghost-hover);
|
|
100
|
+
--button-color: var(--color-text-base-secondary);
|
|
78
101
|
box-shadow: none;
|
|
79
102
|
|
|
80
|
-
&:
|
|
81
|
-
background-color: var(--color-background-button-ghost-hover);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:disabled,
|
|
85
|
-
&[data-disabled] {
|
|
103
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
86
104
|
background-color: transparent;
|
|
87
105
|
}
|
|
88
106
|
|
|
89
|
-
|
|
90
|
-
|
|
107
|
+
&::before {
|
|
108
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
91
109
|
}
|
|
92
110
|
}
|
|
93
111
|
|
|
94
|
-
&:disabled,
|
|
95
|
-
&[data-disabled] {
|
|
112
|
+
&:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
|
|
96
113
|
color: var(--color-text-base-quaternary);
|
|
97
114
|
}
|
|
98
115
|
|
|
99
116
|
&:focus-visible {
|
|
100
|
-
border:
|
|
117
|
+
border-color: var(--color-border-action-focus-light);
|
|
101
118
|
box-shadow: var(--shadow-focus-ring-light);
|
|
102
119
|
}
|
|
120
|
+
|
|
121
|
+
&:where([data-with-left-section]) {
|
|
122
|
+
padding-inline-start: var(--button-padding-x);
|
|
123
|
+
}
|
|
103
124
|
}
|
|
104
125
|
|
|
105
126
|
.section {
|
|
106
|
-
|
|
127
|
+
&:where([data-position='left']) {
|
|
128
|
+
margin-inline-end: rem(4px);
|
|
129
|
+
|
|
130
|
+
.root[data-size='sm'] & {
|
|
131
|
+
margin-inline-end: rem(2px);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:where([data-position='right']) {
|
|
136
|
+
margin-inline-start: rem(4px);
|
|
137
|
+
|
|
138
|
+
.root[data-size='sm'] & {
|
|
139
|
+
margin-inline-start: rem(2px);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.label {
|
|
145
|
+
.root[data-size='sm'] &,
|
|
146
|
+
.root[data-size='md'] &,
|
|
147
|
+
.root[data-size='lg'] & {
|
|
148
|
+
padding-inline: rem(4px);
|
|
149
|
+
}
|
|
107
150
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DatePickerInput as MantineDatePickerInput } from '@mantine/dates'
|
|
2
|
+
import classNames from '../Input/Input.module.css'
|
|
3
|
+
|
|
4
|
+
// ----------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
export const DatePickerInput = MantineDatePickerInput.withProps({
|
|
7
|
+
classNames,
|
|
8
|
+
inputWrapperOrder: ['label', 'input', 'error', 'description'],
|
|
9
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePickerInput'
|
|
@@ -6,36 +6,50 @@
|
|
|
6
6
|
|
|
7
7
|
.input {
|
|
8
8
|
--input-height: 2.5rem;
|
|
9
|
+
--input-color: var(--color-text-base-primary);
|
|
10
|
+
--input-disabled-bg: var(--color-background-input-disabled);
|
|
11
|
+
--input-disabled-color: var(--color-text-base-quaternary);
|
|
12
|
+
--input-radius: var(--mantine-radius-xl);
|
|
13
|
+
--input-bd: var(--color-border-action-normal);
|
|
9
14
|
|
|
10
|
-
border-radius: var(--mantine-radius-xl);
|
|
11
|
-
border: 1px solid var(--mantine-color-border-action-normal-0);
|
|
12
15
|
box-shadow: var(--mantine-shadow-xs);
|
|
13
|
-
color: var(--mantine-color-text-base-primary-0);
|
|
14
16
|
|
|
15
17
|
[data-position='left'] ~ & {
|
|
16
18
|
--input-padding-inline-start: 2.5rem;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
@media (hover: hover) {
|
|
22
|
+
&:hover:where(:not([data-loading], :disabled, [data-disabled])) {
|
|
23
|
+
--input-bd: var(--color-border-action-hover);
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
&:focus-within {
|
|
24
|
-
|
|
28
|
+
--input-bd: var(--color-border-action-focus-light);
|
|
29
|
+
box-shadow: var(--shadow-focus-ring-light);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
&[data-error] {
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
--input-color: var(--color-text-status-destructive);
|
|
34
|
+
--input-bd: var(--color-border-action-destructive);
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
@media (hover: hover) {
|
|
37
|
+
&:hover:where(:not([data-loading], :disabled, [data-disabled])) {
|
|
38
|
+
--input-bd: var(--color-border-action-destructive-hover);
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
&:focus-within {
|
|
36
|
-
|
|
43
|
+
--input-bd: var(--color-border-action-focus-destructive-light);
|
|
44
|
+
box-shadow: var(--shadow-focus-ring-light-destructive);
|
|
37
45
|
}
|
|
38
46
|
}
|
|
47
|
+
|
|
48
|
+
&:disabled,
|
|
49
|
+
[data-disabled] {
|
|
50
|
+
--input-bd: var(--color-border-action-disabled);
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
.wrapper {
|
|
@@ -43,8 +57,13 @@
|
|
|
43
57
|
}
|
|
44
58
|
|
|
45
59
|
.section {
|
|
60
|
+
--input-section-color: var(--color-icon-base-tertiary);
|
|
46
61
|
--right-section-end: 0.75rem;
|
|
47
62
|
--left-section-start: 0.25rem;
|
|
63
|
+
|
|
64
|
+
.wrapper[data-disabled] & {
|
|
65
|
+
--input-section-color: var(--color-icon-base-quaternary);
|
|
66
|
+
}
|
|
48
67
|
}
|
|
49
68
|
|
|
50
69
|
.description,
|
|
@@ -53,16 +72,17 @@
|
|
|
53
72
|
font-size: var(--mantine-font-size-caption-l);
|
|
54
73
|
line-height: var(--mantine-line-height-caption-l);
|
|
55
74
|
letter-spacing: var(--mantine-spacing-caption-l);
|
|
75
|
+
display: flex;
|
|
56
76
|
|
|
57
77
|
&::before {
|
|
58
78
|
content: '';
|
|
59
|
-
display: inline-block;
|
|
60
79
|
width: rem(16px);
|
|
61
80
|
height: rem(16px);
|
|
62
81
|
background: currentColor;
|
|
63
|
-
mask: url('../../../assets/error.svg');
|
|
82
|
+
mask: url('../../../assets/error.svg') no-repeat;
|
|
83
|
+
margin-top: rem(2px);
|
|
64
84
|
margin-right: rem(4px);
|
|
65
|
-
|
|
85
|
+
flex-shrink: 0;
|
|
66
86
|
}
|
|
67
87
|
}
|
|
68
88
|
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
--color-background-accent-gray-accent: #717684;
|
|
48
48
|
--color-background-accent-gray-subtle: #e9eaec;
|
|
49
49
|
--color-background-accent-green-accent: #26bd6c;
|
|
50
|
+
--color-background-badge-gray: #e9eaec;
|
|
51
|
+
--color-background-badge-green: #d1fae4;
|
|
52
|
+
--color-background-badge-orange: #fdead8;
|
|
50
53
|
--color-background-button-primary: #14151a;
|
|
51
54
|
--color-background-button-primary-hover: #1f2228;
|
|
52
55
|
--color-background-button-primary-disabled: #e9eaec;
|
|
@@ -56,6 +59,10 @@
|
|
|
56
59
|
--color-background-button-tertiary: #0a0f290a;
|
|
57
60
|
--color-background-button-tertiary-hover: #0a0f2914;
|
|
58
61
|
--color-background-button-ghost-hover: #0a0f290a;
|
|
62
|
+
--color-background-button-destructive-tertiary: #e6483d1a;
|
|
63
|
+
--color-background-input-disabled: #fff;
|
|
64
|
+
--color-background-surface-neutral: #f7f7f8;
|
|
65
|
+
--color-background-surface-warning-subtle: #fdead8;
|
|
59
66
|
--color-border-action-normal: #dee0e3;
|
|
60
67
|
--color-border-action-hover: #c8cad0;
|
|
61
68
|
--color-border-action-disabled: #e9eaec;
|
|
@@ -63,13 +70,23 @@
|
|
|
63
70
|
--color-border-action-destructive: #f7c3c0;
|
|
64
71
|
--color-border-action-destructive-hover: #f5b2ad;
|
|
65
72
|
--color-border-action-focus-destructive-light: #f08b85;
|
|
73
|
+
--color-border-base-alpha: #0a0f2914;
|
|
66
74
|
--color-text-accent-blue-accent: #4778f5;
|
|
75
|
+
--color-text-accent-green-inverted: #166e3f;
|
|
76
|
+
--color-text-accent-orange-inverted: #ae590a;
|
|
77
|
+
--color-text-base-primary: #14151a;
|
|
78
|
+
--color-text-base-secondary: #0f132499;
|
|
67
79
|
--color-text-base-tertiary: #0d112666;
|
|
68
80
|
--color-text-base-quaternary: #0a0f2940;
|
|
81
|
+
--color-text-base-inverted: #ffffff;
|
|
69
82
|
--color-text-status-destructive: #e6483d;
|
|
70
83
|
--color-icon-base-secondary: #0f132499;
|
|
71
84
|
--color-icon-base-tertiary: #0d112666;
|
|
72
85
|
--color-icon-base-quaternary: #0a0f2940;
|
|
73
86
|
--color-icon-base-inverted: #ffffff;
|
|
87
|
+
--color-icon-status-success: #26bd6c;
|
|
88
|
+
--color-icon-status-warning: #f48e2f;
|
|
89
|
+
--color-icon-status-destructive-secondary: #e6483db2;
|
|
74
90
|
--shadow-focus-ring-light: 0px 0px 0px 2px #c8b2ff80;
|
|
91
|
+
--shadow-focus-ring-light-destructive: 0px 0px 0px 2px #ffb2b299;
|
|
75
92
|
}
|
|
@@ -2,6 +2,7 @@ import { MantineProvider as MantineProviderCore } from '@mantine/core'
|
|
|
2
2
|
import type { MantineProviderProps } from '@mantine/core'
|
|
3
3
|
|
|
4
4
|
import '@mantine/core/styles.layer.css'
|
|
5
|
+
import '@mantine/dates/styles.layer.css'
|
|
5
6
|
import './KvellUiProvider.module.css'
|
|
6
7
|
|
|
7
8
|
// ----------------------------------------------------------------------
|
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
8
|
-
border:
|
|
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
|
-
|
|
14
|
-
border-
|
|
18
|
+
border-bottom-left-radius: 0;
|
|
19
|
+
border-bottom-right-radius: 0;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
.
|
|
19
|
-
padding-bottom:
|
|
23
|
+
.body {
|
|
24
|
+
padding-bottom: rem(32px);
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
40
|
-
color: var(--
|
|
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
|
|
8
|
+
classNames,
|
|
9
|
+
transitionProps: { transition: 'fade-up' },
|
|
11
10
|
})
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
//heading
|
|
2
2
|
export const H5_MEDIUM_FONT_VARIANT = 'h5-medium' as const
|
|
3
3
|
export const H5_SEMIBOLD_FONT_VARIANT = 'h5-semibold' as const
|
|
4
|
+
export const H5_BOLD_FONT_VARIANT = 'h5-bold' as const
|
|
4
5
|
export const H6_BOLD_FONT_VARIANT = 'h6-bold' as const
|
|
5
6
|
|
|
6
7
|
//body
|
|
7
8
|
export const BODY_M_REGULAR_FONT_VARIANT = 'body-m-regular' as const
|
|
8
9
|
export const BODY_M_MEDIUM_FONT_VARIANT = 'body-m-medium' as const
|
|
9
10
|
export const BODY_M_BOLD_FONT_VARIANT = 'body-m-bold' as const
|
|
11
|
+
export const BODY_L_MEDIUM_FONT_VARIANT = 'body-l-medium' as const
|
|
10
12
|
export const BODY_L_BOLD_FONT_VARIANT = 'body-l-bold' as const
|
|
11
13
|
export const BODY_S_MEDIUM_FONT_VARIANT = 'body-s-medium' as const
|
|
12
14
|
export const BODY_S_REGULAR_FONT_VARIANT = 'body-s-regular' as const
|
|
@@ -23,8 +25,10 @@ export const FontVariants = [
|
|
|
23
25
|
//heading
|
|
24
26
|
H5_MEDIUM_FONT_VARIANT,
|
|
25
27
|
H5_SEMIBOLD_FONT_VARIANT,
|
|
28
|
+
H5_BOLD_FONT_VARIANT,
|
|
26
29
|
H6_BOLD_FONT_VARIANT,
|
|
27
30
|
//body
|
|
31
|
+
BODY_L_MEDIUM_FONT_VARIANT,
|
|
28
32
|
BODY_L_BOLD_FONT_VARIANT,
|
|
29
33
|
BODY_M_REGULAR_FONT_VARIANT,
|
|
30
34
|
BODY_M_MEDIUM_FONT_VARIANT,
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,8 @@ export { Checkbox } from './components/Inputs/Checkbox'
|
|
|
11
11
|
export { Switch } from './components/Inputs/Switch'
|
|
12
12
|
export { Select } from './components/Inputs/Select'
|
|
13
13
|
export { Textarea } from './components/Inputs/Textarea'
|
|
14
|
+
export { DatesProvider } from '@mantine/dates'
|
|
15
|
+
export * from './components/Inputs/DatePickerInput'
|
|
14
16
|
|
|
15
17
|
//providers
|
|
16
18
|
export { KvellUiProvider } from './components/KvellUiProvider'
|
|
@@ -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,22 @@
|
|
|
14
15
|
letter-spacing: var(--mantine-spacing-h5);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
.h5-bold {
|
|
19
|
+
font-family: var(--mantine-font-family);
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
font-size: var(--mantine-font-size-h5);
|
|
22
|
+
line-height: var(--mantine-line-height-h5);
|
|
23
|
+
letter-spacing: var(--mantine-spacing-h5);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.h6-medium {
|
|
27
|
+
font-family: var(--mantine-font-family);
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
font-size: var(--mantine-font-size-h6);
|
|
30
|
+
line-height: var(--mantine-line-height-h6);
|
|
31
|
+
letter-spacing: var(--mantine-spacing-h6);
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
.h6-bold {
|
|
19
35
|
font-family: var(--mantine-font-family);
|
|
20
36
|
font-weight: 700;
|