rte-utils 1.2.307 → 1.2.308

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,28 @@
1
+ import './OptionItem.css';
2
+ export interface OptionItemProps {
3
+ /**
4
+ * The type of the tickbox
5
+ */
6
+ type: 'radio' | 'checkbox';
7
+ /**
8
+ * The text content to display next to the tickbox
9
+ */
10
+ content: string;
11
+ /**
12
+ * The icon to display next to the tickbox
13
+ */
14
+ icon?: React.ReactNode;
15
+ /**
16
+ * The checked state of the tickbox
17
+ */
18
+ checked?: boolean;
19
+ /**
20
+ * The disabled state of the tickbox
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * The on change handler of the tickbox
25
+ */
26
+ onChange: (checked: boolean) => void;
27
+ }
28
+ export declare const OptionItem: ({ type, content, icon, checked, disabled, onChange, }: OptionItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { OptionItem } from './OptionItem';
3
+ declare const meta: Meta<typeof OptionItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const CheckboxDefault: Story;
7
+ export declare const CheckboxChecked: Story;
8
+ export declare const CheckboxDisabled: Story;
9
+ export declare const CheckboxDisabledChecked: Story;
10
+ export declare const RadioDefault: Story;
11
+ export declare const RadioChecked: Story;
12
+ export declare const RadioDisabled: Story;
13
+ export declare const RadioDisabledChecked: Story;
14
+ export declare const WithIcon: Story;
15
+ export declare const WithIconChecked: Story;
16
+ export declare const RadioGroup: Story;
17
+ export declare const CheckboxGroup: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rte-utils",
3
- "version": "1.2.307",
3
+ "version": "1.2.308",
4
4
  "description": "React components library in TypeScript for agigox projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",