@kvell-group/ui 1.18.21 → 1.18.23
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 +1 -1
- package/src/components/CloseButton/CloseButton.module.css +14 -0
- package/src/components/CloseButton/CloseButton.tsx +8 -0
- package/src/components/CloseButton/index.ts +1 -0
- package/src/components/Inputs/DatePickerInput/DatePickerInput.tsx +1 -0
- package/src/components/Inputs/Input/Input.module.css +1 -1
- package/src/components/Inputs/Select/Select.tsx +1 -2
- package/src/components/KvellUiProvider/KvellUiProvider.css +2 -2
- package/src/components/Modal/Modal.module.css +0 -10
- package/src/components/Notifications/Notifications.module.css +6 -0
- package/src/index.ts +3 -3
- package/src/theme/index.ts +14 -1
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--cb-size: rem(24px);
|
|
3
|
+
border: rem(1px) solid transparent;
|
|
4
|
+
color: var(--color-icon-base-secondary);
|
|
5
|
+
|
|
6
|
+
@mixin hover {
|
|
7
|
+
background-color: var(--color-background-button-tertiary-hover);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:focus-visible {
|
|
11
|
+
border-color: var(--color-border-action-focus-light);
|
|
12
|
+
box-shadow: var(--shadow-focus-ring-light);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CloseButton as MantineCloseButton } from '@mantine/core'
|
|
2
|
+
import { RiCloseFill } from '@remixicon/react'
|
|
3
|
+
import classNames from './CloseButton.module.css'
|
|
4
|
+
|
|
5
|
+
export const CloseButton = MantineCloseButton.extend({
|
|
6
|
+
classNames,
|
|
7
|
+
defaultProps: { icon: <RiCloseFill size={14} /> },
|
|
8
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CloseButton'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Select as MantineSelect } from '@mantine/core'
|
|
2
|
-
import { RiArrowDownSLine as ArrowDownSVG } from '@remixicon/react'
|
|
3
2
|
import clsx from 'clsx'
|
|
4
3
|
import inputClassNames from '../Input/Input.module.css'
|
|
5
4
|
import selectClassNames from './Select.module.css'
|
|
@@ -17,5 +16,5 @@ const classNames = {
|
|
|
17
16
|
export const Select = MantineSelect.withProps({
|
|
18
17
|
classNames,
|
|
19
18
|
inputWrapperOrder: ['label', 'input', 'error', 'description'],
|
|
20
|
-
|
|
19
|
+
comboboxProps: { floatingStrategy: 'fixed' },
|
|
21
20
|
})
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
--color-background-badge-purple: #ecdffb;
|
|
55
55
|
--color-background-badge-red: #fce5e4;
|
|
56
56
|
--color-background-badge-white: #ffffff;
|
|
57
|
-
--color-background-button-primary:
|
|
58
|
-
--color-background-button-primary-hover:
|
|
57
|
+
--color-background-button-primary: var(--mantine-color-primary-filled);
|
|
58
|
+
--color-background-button-primary-hover: var(--mantine-color-primary-filled-hover);
|
|
59
59
|
--color-background-button-primary-disabled: #e9eaec;
|
|
60
60
|
--color-background-button-secondary: #ffffff;
|
|
61
61
|
--color-background-button-secondary-hover: #f7f7f8;
|
|
@@ -32,17 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.close {
|
|
35
|
-
--cb-size: rem(24px);
|
|
36
35
|
margin-top: rem(-4px);
|
|
37
36
|
margin-right: rem(1px);
|
|
38
37
|
background-color: var(--color-background-button-tertiary);
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
background-color: var(--color-background-button-tertiary-hover);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
svg {
|
|
45
|
-
color: var(--color-icon-base-secondary);
|
|
46
|
-
scale: 0.75;
|
|
47
|
-
}
|
|
48
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
//providers
|
|
2
|
+
export { KvellUiProvider } from './components/KvellUiProvider'
|
|
3
|
+
|
|
1
4
|
// constants
|
|
2
5
|
export { theme } from './theme'
|
|
3
6
|
|
|
@@ -16,9 +19,6 @@ export * from './components/Inputs/DatePickerInput'
|
|
|
16
19
|
export { PinInput } from './components/Inputs/PinInput'
|
|
17
20
|
export * from './components/Notifications'
|
|
18
21
|
|
|
19
|
-
//providers
|
|
20
|
-
export { KvellUiProvider } from './components/KvellUiProvider'
|
|
21
|
-
|
|
22
22
|
//components
|
|
23
23
|
export * from './components/Button'
|
|
24
24
|
export { CardLogoByPan } from './components/CardLogoByPan'
|
package/src/theme/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { colorsTuple, type MantineThemeOverride } from '@mantine/core'
|
|
2
2
|
import { Notification } from '../components/Notifications/Notification'
|
|
3
|
+
import { CloseButton } from '../components/CloseButton'
|
|
3
4
|
|
|
4
5
|
// ----------------------------------------------------------------------
|
|
5
6
|
|
|
@@ -10,7 +11,18 @@ export const theme: MantineThemeOverride = {
|
|
|
10
11
|
// white: 'ffffff',
|
|
11
12
|
black: '#14151a',
|
|
12
13
|
colors: {
|
|
13
|
-
primary: colorsTuple(
|
|
14
|
+
primary: colorsTuple([
|
|
15
|
+
'#14151a',
|
|
16
|
+
'#14151a',
|
|
17
|
+
'#14151a',
|
|
18
|
+
'#14151a',
|
|
19
|
+
'#14151a',
|
|
20
|
+
'#14151a',
|
|
21
|
+
'#14151a',
|
|
22
|
+
'#1f2228',
|
|
23
|
+
'#14151a',
|
|
24
|
+
'#14151a',
|
|
25
|
+
]),
|
|
14
26
|
secondary: colorsTuple('#ffffff'),
|
|
15
27
|
tertiary: colorsTuple('#0a0f290a'),
|
|
16
28
|
|
|
@@ -151,6 +163,7 @@ export const theme: MantineThemeOverride = {
|
|
|
151
163
|
// activeClassName: 'class-name', //for example
|
|
152
164
|
// focusClassName: 'class-name', //for example
|
|
153
165
|
components: {
|
|
166
|
+
CloseButton,
|
|
154
167
|
Notification,
|
|
155
168
|
},
|
|
156
169
|
other: {
|