uikit-react-public 0.27.2 → 0.28.0

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,11 @@
1
+ import { BaseCheckboxProps } from '../BaseCheckbox';
2
+ import { MarginProps } from '../common/marginsStyle';
3
+ export declare const NAME = "ucl-uikit-chip";
4
+ export interface ChipBaseProps extends Omit<BaseCheckboxProps, 'renderVisual' | 'checkedComponent' | 'uncheckedComponent' | 'indeterminateComponent' | 'indeterminate'> {
5
+ label: string;
6
+ ariaLabel?: string;
7
+ }
8
+ export type ChipProps = ChipBaseProps & MarginProps;
9
+ export type Ref = HTMLInputElement;
10
+ declare const _default: import('react').NamedExoticComponent<Omit<ChipProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
11
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').NamedExoticComponent<Omit<import('./Chip').ChipProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
5
+ argTypes: {
6
+ label: {
7
+ control: {
8
+ type: "text";
9
+ };
10
+ };
11
+ checked: {
12
+ control: {
13
+ type: "boolean";
14
+ };
15
+ };
16
+ disabled: {
17
+ control: {
18
+ type: "boolean";
19
+ };
20
+ };
21
+ };
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default } from './Chip';
2
+ export type { ChipProps } from './Chip';
@@ -56,6 +56,8 @@ export { default as Checkbox, LabelledCheckbox } from './Checkbox';
56
56
  export type { CheckboxProps, LabelledCheckboxProps } from './Checkbox';
57
57
  export { default as Toggle } from './Toggle';
58
58
  export type { ToggleProps } from './Toggle';
59
+ export { default as Chip } from './Chip';
60
+ export type { ChipProps } from './Chip';
59
61
  export { default as AppMenu } from './AppMenu';
60
62
  export type { AppMenuProps } from './AppMenu';
61
63
  export { default as Menu } from './Menu';