@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.
@@ -1,11 +1,18 @@
1
- import { Checkbox as ArkCheckbox, CheckboxRootProps } from '@ark-ui/react';
2
- import { ComponentProps, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
3
- import { CheckboxVariantProps, CheckboxGroupVariantProps } from '@stokelp/styled-system/recipes';
4
- import { Assign, JsxStyleProps, StyledComponent } from '@stokelp/styled-system/types';
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
- export interface CheckboxProps extends Assign<JsxStyleProps, CheckboxRootProps>, CheckboxVariantProps {
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 declare const CheckboxGroup: StyledComponent<ForwardRefExoticComponent<ArkCheckbox.GroupProps & RefAttributes<HTMLDivElement>>, CheckboxGroupVariantProps>;
11
- export type CheckboxGroupProps = ComponentProps<typeof CheckboxGroup>;
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
- export interface CheckboxCardProps extends Assign<JsxStyleProps, CheckboxRootProps>, CheckboxCardVariantProps {
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 {};