@kvell-group/ui 1.16.25 → 1.18.0
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/assets/fonts/onest-cyr-ext.woff2 +0 -0
- package/src/assets/fonts/onest-cyr.woff2 +0 -0
- package/src/assets/fonts/onest-lat-ext.woff2 +0 -0
- package/src/assets/fonts/onest-lat.woff2 +0 -0
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/types.ts +1 -1
- package/src/components/CardLogoByPan/CardLogoByPan.stories.tsx +1 -1
- package/src/components/Inputs/CardExpireDateInput/CardExpireDateInput.stories.tsx +1 -1
- package/src/components/Inputs/CardInput/CardInput.stories.tsx +1 -1
- package/src/components/Inputs/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/Inputs/CvvInput/CvvInput.stories.tsx +1 -1
- package/src/components/Inputs/Input/Input.module.css +1 -0
- package/src/components/Inputs/Input/Input.stories.tsx +1 -1
- package/src/components/Inputs/MaskedInput/MaskedInput.stories.tsx +1 -1
- package/src/components/Inputs/PasswordInput/PasswordInput.stories.tsx +1 -1
- package/src/components/Inputs/Switch/Switch.stories.tsx +1 -1
- package/src/components/KvellUiProvider/KvellUiProvider.module.css +41 -2
- package/src/components/Loader/Loader.stories.tsx +1 -1
- package/src/components/Modal/Modal.stories.tsx +1 -1
- package/src/components/Text/Text.stories.tsx +1 -1
- package/src/components/Text/Text.tsx +1 -1
- package/src/index.ts +9 -10
- package/src/{components/theme.ts → theme/index.ts} +3 -3
- package/src/assets/fonts/inter.woff2 +0 -0
- /package/src/{core-components → components/@core}/Divider.tsx +0 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
|
4
4
|
|
|
5
5
|
import { RiArrowLeftLine as ArrowLeftSVG, RiLockLine as LockSVG } from '@remixicon/react'
|
|
6
6
|
|
|
7
|
-
import { theme } from '@/
|
|
7
|
+
import { theme } from '@/theme'
|
|
8
8
|
import { Button } from '@/components/Button'
|
|
9
9
|
import { Text } from '@/components/Text/Text'
|
|
10
10
|
import {
|
|
@@ -4,7 +4,7 @@ import '@mantine/core/styles/UnstyledButton.layer.css'
|
|
|
4
4
|
import '@mantine/core/styles/Button.layer.css'
|
|
5
5
|
import classNames from './Button.module.css'
|
|
6
6
|
import { forwardRef } from 'react'
|
|
7
|
-
import { ExtendedButtonVariant } from './types'
|
|
7
|
+
import type { ExtendedButtonVariant } from './types'
|
|
8
8
|
|
|
9
9
|
// ----------------------------------------------------------------------
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
|
|
7
7
|
import { CardLogoByPan as CardLogoByPanComponent } from '@/components/CardLogoByPan/CardLogoByPan'
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { CardExpireDateInput as CardExpireDateInputComponent } from '@/components/Inputs/CardExpireDateInput'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
|
|
7
7
|
import { CardInput as CardInputComponent } from '@/components/Inputs/CardInput'
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
2
|
|
|
3
|
-
import { theme } from '@/
|
|
3
|
+
import { theme } from '@/theme'
|
|
4
4
|
import { Checkbox as CheckboxComponent } from '@/components/Inputs/Checkbox'
|
|
5
5
|
import { Text } from '@/components/Text'
|
|
6
6
|
import { Anchor } from '@mantine/core'
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { CvvInput as CvvInputComponent } from '@/components/Inputs/CvvInput'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { Input as InputComponent } from '@/components/Inputs/Input/Input'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { MaskedInput as MaskedInputComponent } from '@/components/Inputs/MaskedInput'
|
|
7
7
|
|
|
8
8
|
import { PHONE_MASK } from '@/constants/masks'
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { PasswordInput as PasswordInputComponent } from '@/components/Inputs/PasswordInput/PasswordInput'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { Switch } from '@/components/Inputs/Switch'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
@@ -1,5 +1,44 @@
|
|
|
1
|
+
/* cyrillic-ext */
|
|
1
2
|
@font-face {
|
|
2
|
-
font-family:
|
|
3
|
-
|
|
3
|
+
font-family: Onest;
|
|
4
|
+
font-style: normal;
|
|
4
5
|
font-weight: 100 900;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url('./../../assets/fonts/onest-cyr-ext.woff2') format('woff2');
|
|
8
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* cyrillic */
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: Onest;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 100 900;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
src: url('./../../assets/fonts/onest-cyr.woff2') format('woff2');
|
|
18
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* latin-ext */
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: Onest;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 100 900;
|
|
26
|
+
font-display: swap;
|
|
27
|
+
src: url('./../../assets/fonts/onest-lat-ext.woff2') format('woff2');
|
|
28
|
+
unicode-range:
|
|
29
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
|
|
30
|
+
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
|
|
31
|
+
U+A720-A7FF;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* latin */
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: Onest;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 100 900;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
src: url('./../../assets/fonts/onest-lat.woff2') format('woff2');
|
|
41
|
+
unicode-range:
|
|
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
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
5
44
|
}
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { Loader } from '@/components/Loader'
|
|
7
7
|
import { LoaderSizes } from '@/components/Loader/constants'
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
import { Text } from '@/components/Text'
|
|
5
5
|
|
|
6
|
-
import { theme } from '@/
|
|
6
|
+
import { theme } from '@/theme'
|
|
7
7
|
import { Modal } from '@/components/Modal'
|
|
8
8
|
import { Button } from '@/components/Button'
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
2
2
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
|
-
import { theme } from '@/
|
|
5
|
+
import { theme } from '@/theme'
|
|
6
6
|
import { Text } from '@/components/Text/Text'
|
|
7
7
|
import { FontVariants } from '@/constants/font-variants'
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TextProps as TextBaseProps } from '@mantine/core'
|
|
2
2
|
import { Text as TextBase } from '@mantine/core'
|
|
3
|
-
import { forwardRef, ReactNode, Ref } from 'react'
|
|
3
|
+
import { forwardRef, type ReactNode, type Ref } from 'react'
|
|
4
4
|
|
|
5
5
|
import classesNames from '../../styles/typography.module.css'
|
|
6
6
|
import type { TextVariants } from './types'
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
// components
|
|
2
|
-
export { Button } from './components/Button'
|
|
3
|
-
export { CardLogoByPan } from './components/CardLogoByPan'
|
|
4
|
-
|
|
5
1
|
// constants
|
|
6
|
-
export { theme } from './
|
|
2
|
+
export { theme } from './theme'
|
|
7
3
|
|
|
8
4
|
//inputs
|
|
9
5
|
export { Input } from './components/Inputs/Input'
|
|
@@ -14,14 +10,17 @@ export { CvvInput } from './components/Inputs/CvvInput'
|
|
|
14
10
|
export { Checkbox } from './components/Inputs/Checkbox'
|
|
15
11
|
export { Switch } from './components/Inputs/Switch'
|
|
16
12
|
|
|
13
|
+
//providers
|
|
14
|
+
export { KvellUiProvider } from './components/KvellUiProvider'
|
|
15
|
+
|
|
16
|
+
//components
|
|
17
|
+
export { Button } from './components/Button'
|
|
18
|
+
export { CardLogoByPan } from './components/CardLogoByPan'
|
|
17
19
|
export { Loader } from './components/Loader'
|
|
18
20
|
export { Modal } from './components/Modal'
|
|
19
21
|
export { Text } from './components/Text'
|
|
20
22
|
|
|
21
|
-
//
|
|
22
|
-
export { KvellUiProvider } from './components/KvellUiProvider'
|
|
23
|
+
// core-components ------------------------------------------------------
|
|
23
24
|
|
|
24
|
-
//core-components
|
|
25
|
-
// ----------------------------------------------------------------------
|
|
26
25
|
//Miscellaneous
|
|
27
|
-
export { Divider } from './core
|
|
26
|
+
export { Divider } from './components/@core/Divider'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorsTuple, MantineThemeOverride } from '@mantine/core'
|
|
1
|
+
import { colorsTuple, type MantineThemeOverride } from '@mantine/core'
|
|
2
2
|
|
|
3
3
|
// ----------------------------------------------------------------------
|
|
4
4
|
|
|
@@ -70,9 +70,9 @@ export const theme: MantineThemeOverride = {
|
|
|
70
70
|
}, //color by variant */
|
|
71
71
|
autoContrast: false, //default value
|
|
72
72
|
luminanceThreshold: 0.3, //default value
|
|
73
|
-
fontFamily: '
|
|
73
|
+
fontFamily: 'Onest, Arial, Helvetica, sans-serif',
|
|
74
74
|
/* headings: {
|
|
75
|
-
fontFamily: '
|
|
75
|
+
fontFamily: 'Onest',
|
|
76
76
|
fontWeight: '600',
|
|
77
77
|
textWrap: 'wrap', // 'nowrap', 'balance', 'pretty', 'stable',
|
|
78
78
|
sizes: {
|
|
Binary file
|
|
File without changes
|