@delightui/components 0.1.74 → 0.1.75
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/cjs/components/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/dist/cjs/components/atoms/Checkbox/Checkbox.types.d.ts +6 -0
- package/dist/cjs/components/molecules/ChipInput/ChipInput.utils.d.ts +2 -0
- package/dist/cjs/library.css +2033 -62
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +6 -0
- package/dist/esm/components/molecules/ChipInput/ChipInput.utils.d.ts +2 -0
- package/dist/esm/library.css +2033 -62
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type" | "size"> & {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
size?: import("./Checkbox.types").CheckboxSizeEnum;
|
|
5
|
+
type?: import("./Checkbox.types").CheckboxTypeEnum;
|
|
5
6
|
checked?: boolean;
|
|
6
7
|
onValueChanged?: (value: boolean) => void;
|
|
7
8
|
defaultChecked?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
2
|
export type CheckboxSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
3
3
|
export type CheckboxLabelAlignmentEnum = 'Left' | 'Right';
|
|
4
|
+
export type CheckboxTypeEnum = 'Default' | 'Inverse';
|
|
4
5
|
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value' | 'size'> & {
|
|
5
6
|
/**
|
|
6
7
|
* The label of the checkbox.
|
|
@@ -11,6 +12,11 @@ export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' |
|
|
|
11
12
|
* @default 'Medium'
|
|
12
13
|
*/
|
|
13
14
|
size?: CheckboxSizeEnum;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the checkbox for inverse colors
|
|
17
|
+
* @default 'Default'
|
|
18
|
+
*/
|
|
19
|
+
type?: CheckboxTypeEnum;
|
|
14
20
|
/**
|
|
15
21
|
* The checked state of the checkbox.
|
|
16
22
|
*/
|