@stokelp/ui 2.49.0 → 2.49.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/Checkbox.d.ts +14 -7
- package/dist/components/checkbox-card/CheckboxCard.d.ts +4 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +102 -84
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CheckboxVariantProps
|
|
4
|
-
import { Assign, JsxStyleProps
|
|
1
|
+
import { CheckboxRootProps, CheckboxGroupProps as ArkCheckboxGroupProps } from '@ark-ui/react';
|
|
2
|
+
import { FC, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
+
import { CheckboxVariantProps } from '@stokelp/styled-system/recipes';
|
|
4
|
+
import { Assign, JsxStyleProps } from '@stokelp/styled-system/types';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>;
|
|
7
|
+
export interface CheckboxProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxVariantProps {
|
|
8
|
+
value?: string | number;
|
|
7
9
|
children?: ReactNode;
|
|
8
10
|
}
|
|
9
11
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>>;
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
+
export type CheckboxGroupProps = Omit<Assign<JsxStyleProps, ArkCheckboxGroupProps>, 'value' | 'defaultValue' | 'onValueChange'> & {
|
|
13
|
+
onValueChange?: (value: string[] | number[]) => void;
|
|
14
|
+
value?: string[] | number[];
|
|
15
|
+
defaultValue?: string[] | number[];
|
|
16
|
+
};
|
|
17
|
+
export declare const CheckboxGroup: FC<CheckboxGroupProps>;
|
|
18
|
+
export {};
|
|
@@ -4,7 +4,9 @@ import { Assign, JsxStyleProps, StyledComponent } from '@stokelp/styled-system/t
|
|
|
4
4
|
import { ComponentProps, ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, ImgHTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject } from 'react';
|
|
5
5
|
import { CheckboxProps } from '../checkbox';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>;
|
|
8
|
+
export interface CheckboxCardProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxCardVariantProps {
|
|
9
|
+
value?: string | number;
|
|
8
10
|
}
|
|
9
11
|
export declare const CheckboxCardTitle: StyledComponent<ForwardRefExoticComponent<ArkCheckbox.LabelProps & RefAttributes<HTMLSpanElement>>, {}>;
|
|
10
12
|
export declare const CheckboxCardContent: StyledComponent<"div", {}>;
|
|
@@ -17,3 +19,4 @@ export type CheckboxCardContentProps = ComponentProps<typeof CheckboxCardContent
|
|
|
17
19
|
export type CheckboxCardDescriptionProps = ComponentProps<typeof CheckboxCardDescription>;
|
|
18
20
|
export type CheckboxCardImageProps = ComponentProps<typeof CheckboxCardImage>;
|
|
19
21
|
export declare const CheckboxCard: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>>;
|
|
22
|
+
export {};
|