@okam/stack-ui 1.18.1 → 1.19.1

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.
@@ -0,0 +1,3 @@
1
+ import type { TCheckboxGroupItemProps } from '../../interface';
2
+ declare const CheckboxGroupItem: (props: TCheckboxGroupItemProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default CheckboxGroupItem;
@@ -0,0 +1,3 @@
1
+ import type { TCheckboxGroupProps } from './interface';
2
+ declare const CheckboxGroup: (props: TCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CheckboxGroup;
@@ -0,0 +1,13 @@
1
+ import type React from 'react';
2
+ import type { AriaCheckboxGroupItemProps } from 'react-aria';
3
+ import type { CheckboxGroupProps } from 'react-stately';
4
+ import type { TDefaultComponent } from '../../../types/components';
5
+ import type { TCheckboxProps } from '../Checkbox/Checkbox.interface';
6
+ export interface TCheckboxGroupProps extends TDefaultComponent, CheckboxGroupProps {
7
+ children: React.ReactNode;
8
+ isError?: boolean;
9
+ isDisabled?: boolean;
10
+ errorMessage?: string;
11
+ label?: string;
12
+ }
13
+ export type TCheckboxGroupItemProps = TDefaultComponent & Omit<AriaCheckboxGroupItemProps, 'children'> & Omit<TCheckboxProps, 'children'>;
@@ -1,3 +1,3 @@
1
- import type { TRadioGroupProps } from './RadioGroup.interface';
1
+ import type { TRadioGroupProps } from './interface';
2
2
  declare const RadioGroup: (props: TRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default RadioGroup;
package/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export { default as Icon } from './components/Icon';
11
11
  export { default as Date } from './components/Date';
12
12
  export { default as Select, ReactHookFormSelect } from './components/fields/Select/Select';
13
13
  export { default as Checkbox } from './components/fields/Checkbox';
14
+ export { default as CheckboxGroup } from './components/fields/CheckboxGroup';
15
+ export { default as CheckboxGroupItem } from './components/fields/CheckboxGroup/components/CheckboxGroupItem';
14
16
  export { default as TextArea, ReactHookFormTextArea } from './components/fields/TextArea';
15
17
  export { default as TextInputField, ReactHookFormInput } from './components/fields/TextInputField';
16
18
  export { default as DatePicker } from './components/fields/DatePicker';