@delightui/components 0.1.74 → 0.1.76
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/components/utils/ConditionalView/ConditionalView.d.ts +3 -0
- package/dist/cjs/components/utils/ConditionalView/ConditionalView.types.d.ts +5 -0
- package/dist/cjs/components/utils/ConditionalView/index.d.ts +2 -0
- package/dist/cjs/components/utils/WrapTextNodes/WrapTextNodes.d.ts +6 -0
- package/dist/cjs/components/utils/WrapTextNodes/WrapTextNodes.types.d.ts +2 -0
- package/dist/cjs/components/utils/WrapTextNodes/index.d.ts +4 -0
- package/dist/cjs/components/utils/index.d.ts +5 -0
- package/dist/cjs/components/utils/utils.d.ts +16 -0
- package/dist/cjs/library.css +2343 -131
- 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/components/utils/ConditionalView/ConditionalView.d.ts +3 -0
- package/dist/esm/components/utils/ConditionalView/ConditionalView.types.d.ts +5 -0
- package/dist/esm/components/utils/ConditionalView/index.d.ts +2 -0
- package/dist/esm/components/utils/WrapTextNodes/WrapTextNodes.d.ts +6 -0
- package/dist/esm/components/utils/WrapTextNodes/WrapTextNodes.types.d.ts +2 -0
- package/dist/esm/components/utils/WrapTextNodes/index.d.ts +4 -0
- package/dist/esm/components/utils/index.d.ts +5 -0
- package/dist/esm/components/utils/utils.d.ts +16 -0
- package/dist/esm/library.css +2343 -131
- 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
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Clones valid React elements and applies additional props to them.
|
|
4
|
+
*
|
|
5
|
+
* @param children - The child nodes to process.
|
|
6
|
+
* @param extraProps - Additional props to be passed to valid React elements.
|
|
7
|
+
* @returns A ReactNode with extra props applied to valid elements, leaving others unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export declare const applyPropsToChildren: (children: ReactNode, extraProps?: Record<string, any>) => ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Utility function to merge multiple refs into a single ref callback function.
|
|
12
|
+
*
|
|
13
|
+
* @param refs - Refs to be merged.
|
|
14
|
+
* @returns A callback function that sets the value on all merged refs.
|
|
15
|
+
*/
|
|
16
|
+
export declare const mergeRefs: <T>(...refs: (Ref<T> | undefined)[]) => Ref<T>;
|