@kvell-group/ui 1.16.17 → 1.16.19
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/Inputs/CardExpireDateInput/CardExpireDateInput.tsx +1 -1
- package/src/components/Inputs/Checkbox/Checkbox.stories.tsx +3 -5
- package/src/components/Inputs/CvvInput/CvvInput.tsx +2 -1
- package/src/components/Inputs/{Input.module.css → Input/Input.module.css} +1 -1
- package/src/components/Inputs/{Input.stories.tsx → Input/Input.stories.tsx} +1 -1
- package/src/components/Inputs/{Input.tsx → Input/Input.tsx} +2 -2
- package/src/components/Inputs/MaskedInput/MaskedInput.tsx +1 -1
- package/src/components/Inputs/PasswordInput/PasswordInput.tsx +1 -1
- package/src/components/{Switch → Inputs/Switch}/Switch.module.css +1 -1
- package/src/components/{Switch → Inputs/Switch}/Switch.stories.tsx +1 -1
- package/src/components/{Switch → Inputs/Switch}/Switch.tsx +2 -2
- package/src/index.ts +2 -2
- /package/src/components/Inputs/{index.ts → Input/index.ts} +0 -0
- /package/src/components/{Switch → Inputs/Switch}/index.tsx +0 -0
package/package.json
CHANGED
|
@@ -18,9 +18,9 @@ export const CardExpireDateInput = forwardRef<HTMLInputElement, MaskedInputProps
|
|
|
18
18
|
ref={ref}
|
|
19
19
|
autoComplete='cc-exp'
|
|
20
20
|
inputMode='numeric'
|
|
21
|
+
placeholder='12/25'
|
|
21
22
|
{...props}
|
|
22
23
|
mask={mask}
|
|
23
|
-
placeholder='____ ____ ____ ____'
|
|
24
24
|
leftSection={<CalendarSVG size={20} />}
|
|
25
25
|
/>
|
|
26
26
|
)
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
2
|
|
|
3
|
-
import { MantineProvider } from '@/components/MainProvider'
|
|
4
|
-
|
|
5
|
-
import '@mantine/core/styles.css'
|
|
6
3
|
import { theme } from '@/components/theme'
|
|
7
4
|
import { Checkbox as CheckboxComponent } from '@/components/Inputs/Checkbox'
|
|
8
5
|
import { Text } from '@/components/Text'
|
|
9
6
|
import { Anchor } from '@mantine/core'
|
|
7
|
+
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
10
8
|
|
|
11
9
|
// ----------------------------------------------------------------------
|
|
12
10
|
|
|
@@ -14,11 +12,11 @@ const meta = {
|
|
|
14
12
|
title: 'Components/Inputs/Checkbox',
|
|
15
13
|
component: CheckboxComponent,
|
|
16
14
|
decorators: (Story) => (
|
|
17
|
-
<
|
|
15
|
+
<KvellUiProvider theme={theme}>
|
|
18
16
|
<div style={{ maxWidth: '465px' }}>
|
|
19
17
|
<Story />
|
|
20
18
|
</div>
|
|
21
|
-
</
|
|
19
|
+
</KvellUiProvider>
|
|
22
20
|
),
|
|
23
21
|
} satisfies Meta<typeof CheckboxComponent>
|
|
24
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaskedInput } from '../MaskedInput'
|
|
2
2
|
import passwordClassNames from './CvvInput.module.css'
|
|
3
|
-
import baseInputClassNames from '../Input.module.css'
|
|
3
|
+
import baseInputClassNames from '../Input/Input.module.css'
|
|
4
4
|
import clsx from 'clsx'
|
|
5
5
|
import type { MaskedInputProps } from '../types'
|
|
6
6
|
import { forwardRef } from 'react'
|
|
@@ -22,6 +22,7 @@ export const CvvInput = forwardRef<HTMLInputElement, MaskedInputProps>((props, r
|
|
|
22
22
|
ref={ref}
|
|
23
23
|
inputMode='numeric'
|
|
24
24
|
autoComplete='cc-csc'
|
|
25
|
+
placeholder='123'
|
|
25
26
|
{...props}
|
|
26
27
|
mask={mask}
|
|
27
28
|
classNames={{ ...restClassNames, input: classNames }}
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
5
|
import { theme } from '@/components/theme'
|
|
6
|
-
import { Input as InputComponent } from '@/components/Inputs/Input'
|
|
6
|
+
import { Input as InputComponent } from '@/components/Inputs/Input/Input'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@mantine/core/styles/Input.layer.css'
|
|
2
2
|
import { TextInput } from '@mantine/core'
|
|
3
3
|
import classNames from './Input.module.css'
|
|
4
|
-
import textClassNames from '
|
|
4
|
+
import textClassNames from '../../../styles/typography.module.css'
|
|
5
5
|
import clsx from 'clsx'
|
|
6
|
-
import { CAPTION_L_REGULAR_FONT_VARIANT } from '
|
|
6
|
+
import { CAPTION_L_REGULAR_FONT_VARIANT } from '../../../constants/font-variants'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordInput as PasswordInputBase } from '@mantine/core'
|
|
2
|
-
import classNames from '../Input.module.css'
|
|
2
|
+
import classNames from '../Input/Input.module.css'
|
|
3
3
|
import sectionClassNames from './PasswordInput.module.css'
|
|
4
4
|
import textClassNames from '../../../styles/typography.module.css'
|
|
5
5
|
import clsx from 'clsx'
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
3
3
|
import { KvellUiProvider } from '@/components/KvellUiProvider'
|
|
4
4
|
|
|
5
5
|
import { theme } from '@/components/theme'
|
|
6
|
-
import { Switch } from '@/components/Switch'
|
|
6
|
+
import { Switch } from '@/components/Inputs/Switch'
|
|
7
7
|
|
|
8
8
|
// ----------------------------------------------------------------------
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Switch as SwitchBase } from '@mantine/core'
|
|
2
2
|
import classes from './Switch.module.css'
|
|
3
|
-
import textClassNames from '
|
|
3
|
+
import textClassNames from '../../../styles/typography.module.css'
|
|
4
4
|
import clsx from 'clsx'
|
|
5
|
-
import { CAPTION_L_MEDIUM_FONT_VARIANT } from '
|
|
5
|
+
import { CAPTION_L_MEDIUM_FONT_VARIANT } from '../../../constants/font-variants'
|
|
6
6
|
|
|
7
7
|
// ----------------------------------------------------------------------
|
|
8
8
|
|
package/src/index.ts
CHANGED
|
@@ -5,16 +5,16 @@ export { Button } from './components/Button'
|
|
|
5
5
|
export { theme } from './components/theme'
|
|
6
6
|
|
|
7
7
|
//inputs
|
|
8
|
-
export { Input } from './components/Inputs'
|
|
8
|
+
export { Input } from './components/Inputs/Input'
|
|
9
9
|
export { CardInput } from './components/Inputs/CardInput'
|
|
10
10
|
export { MaskedInput } from './components/Inputs/MaskedInput'
|
|
11
11
|
export { PasswordInput } from './components/Inputs/PasswordInput'
|
|
12
12
|
export { CvvInput } from './components/Inputs/CvvInput'
|
|
13
13
|
export { Checkbox } from './components/Inputs/Checkbox'
|
|
14
|
+
export { Switch } from './components/Inputs/Switch'
|
|
14
15
|
|
|
15
16
|
export { Loader } from './components/Loader'
|
|
16
17
|
export { Modal } from './components/Modal'
|
|
17
|
-
export { Switch } from './components/Switch'
|
|
18
18
|
export { Text } from './components/Text'
|
|
19
19
|
|
|
20
20
|
//providers
|
|
File without changes
|
|
File without changes
|