@kvell-group/ui 1.18.12 → 1.18.14
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
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createPolymorphicComponent, ActionIcon as MantineActionIcon } from '@mantine/core'
|
|
2
2
|
import type { ActionIconProps as BaseActionIconProps } from '@mantine/core'
|
|
3
|
-
import '@mantine/core/styles/UnstyledButton.layer.css'
|
|
4
|
-
import '@mantine/core/styles/Button.layer.css'
|
|
5
3
|
import classNames from './ActionIcon.module.css'
|
|
6
4
|
import { forwardRef } from 'react'
|
|
7
5
|
import type { ExtendedActionIconVariant } from './types'
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createPolymorphicComponent, Button as MantineButton } from '@mantine/core'
|
|
2
2
|
import type { ButtonProps as BaseButtonProps } from '@mantine/core'
|
|
3
|
-
import '@mantine/core/styles/UnstyledButton.layer.css'
|
|
4
|
-
import '@mantine/core/styles/Button.layer.css'
|
|
5
3
|
import classNames from './Button.module.css'
|
|
6
4
|
import { forwardRef } from 'react'
|
|
7
5
|
import type { ExtendedButtonVariant } from './types'
|
|
@@ -10,7 +10,7 @@ import { CardLogoByPan } from '../../CardLogoByPan'
|
|
|
10
10
|
|
|
11
11
|
const mask = IMask.createMask({ mask: CARD_NUMBER_MASK })
|
|
12
12
|
|
|
13
|
-
type CardInputProps = Omit<MaskedInputProps, 'value'> & { value
|
|
13
|
+
type CardInputProps = Omit<MaskedInputProps, 'value'> & { value?: string }
|
|
14
14
|
|
|
15
15
|
// ----------------------------------------------------------------------
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ export const CardInput = forwardRef<HTMLInputElement, CardInputProps>((props, re
|
|
|
22
22
|
autoComplete='cc-number'
|
|
23
23
|
{...props}
|
|
24
24
|
mask={mask}
|
|
25
|
-
rightSection={<CardLogoByPan value={props
|
|
25
|
+
rightSection={<CardLogoByPan value={props?.value || ''} />}
|
|
26
26
|
leftSection={<CardSVG size={20} />}
|
|
27
27
|
placeholder='____ ____ ____ ____'
|
|
28
28
|
/>
|