@ultraviolet/ui 1.73.1 → 1.73.2
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/dist/components/Checkbox/index.cjs +9 -9
- package/dist/components/Checkbox/index.d.ts +8 -12
- package/dist/components/Checkbox/index.js +9 -9
- package/dist/components/Radio/index.cjs +9 -9
- package/dist/components/Radio/index.d.ts +2 -7
- package/dist/components/Radio/index.js +9 -9
- package/dist/components/SelectableCard/index.cjs +20 -10
- package/dist/components/SelectableCard/index.d.ts +2 -3
- package/dist/components/SelectableCard/index.js +20 -10
- package/dist/components/TagInput/index.cjs +6 -5
- package/dist/components/TagInput/index.d.ts +2 -1
- package/dist/components/TagInput/index.js +6 -5
- package/dist/components/Toggle/index.cjs +6 -5
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.js +6 -5
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ProductIcon from '@ultraviolet/icons/product';
|
|
2
2
|
import type { ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
|
|
3
|
-
import type { PascalToCamelCaseWithoutSuffix } from '../../types';
|
|
3
|
+
import type { LabelProp, PascalToCamelCaseWithoutSuffix } from '../../types';
|
|
4
4
|
export type SelectableCardProps = {
|
|
5
5
|
name?: string;
|
|
6
6
|
children?: (({ disabled, checked, }: Pick<SelectableCardProps, 'checked' | 'disabled'>) => ReactNode) | ReactNode;
|
|
@@ -16,7 +16,6 @@ export type SelectableCardProps = {
|
|
|
16
16
|
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
17
17
|
id?: string;
|
|
18
18
|
tooltip?: string;
|
|
19
|
-
label?: ReactNode;
|
|
20
19
|
'data-testid'?: string;
|
|
21
20
|
} & ({
|
|
22
21
|
illustration?: string;
|
|
@@ -24,7 +23,7 @@ export type SelectableCardProps = {
|
|
|
24
23
|
} | {
|
|
25
24
|
productIcon?: PascalToCamelCaseWithoutSuffix<keyof typeof ProductIcon, 'ProductIcon'>;
|
|
26
25
|
illustration?: never;
|
|
27
|
-
});
|
|
26
|
+
}) & LabelProp;
|
|
28
27
|
/**
|
|
29
28
|
* SelectableCard is a component that can be used to create a radio or checkbox card.
|
|
30
29
|
* It can be used to create a list of selectable items or a single selectable item.
|