infinity-ui-elements 1.3.1 → 1.4.1-beta.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.
- package/README.md +62 -1
- package/dist/components/Badge/Badge.d.ts +28 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.stories.d.ts +16 -0
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +49 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +23 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Counter/Counter.d.ts +24 -0
- package/dist/components/Counter/Counter.d.ts.map +1 -0
- package/dist/components/Counter/Counter.stories.d.ts +14 -0
- package/dist/components/Counter/Counter.stories.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +3 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +37 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.stories.d.ts +12 -0
- package/dist/components/Divider/Divider.stories.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/FormFooter/FormFooter.d.ts +38 -0
- package/dist/components/FormFooter/FormFooter.d.ts.map +1 -0
- package/dist/components/FormFooter/FormFooter.stories.d.ts +50 -0
- package/dist/components/FormFooter/FormFooter.stories.d.ts.map +1 -0
- package/dist/components/FormFooter/index.d.ts +3 -0
- package/dist/components/FormFooter/index.d.ts.map +1 -0
- package/dist/components/FormHeader/FormHeader.d.ts +58 -0
- package/dist/components/FormHeader/FormHeader.d.ts.map +1 -0
- package/dist/components/FormHeader/FormHeader.stories.d.ts +65 -0
- package/dist/components/FormHeader/FormHeader.stories.d.ts.map +1 -0
- package/dist/components/FormHeader/index.d.ts +3 -0
- package/dist/components/FormHeader/index.d.ts.map +1 -0
- package/dist/components/ListItem/ListItem.d.ts +63 -0
- package/dist/components/ListItem/ListItem.d.ts.map +1 -0
- package/dist/components/ListItem/ListItem.stories.d.ts +66 -0
- package/dist/components/ListItem/ListItem.stories.d.ts.map +1 -0
- package/dist/components/ListItem/index.d.ts +3 -0
- package/dist/components/ListItem/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +45 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.stories.d.ts +23 -0
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +39 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.stories.d.ts +37 -0
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Text/Text.d.ts +2 -9
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +31 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.stories.d.ts +27 -0
- package/dist/components/TextArea/TextArea.stories.d.ts.map +1 -0
- package/dist/components/TextArea/index.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TextField/TextField.d.ts +4 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1208 -145
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1227 -144
- package/dist/index.js.map +1 -1
- package/dist/lib/icons.d.ts +96 -0
- package/dist/lib/icons.d.ts.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ yarn add infinity-ui-elements
|
|
|
21
21
|
### Basic Usage
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
|
-
import { Button } from 'infinity-ui-elements';
|
|
24
|
+
import { Button, Checkbox } from 'infinity-ui-elements';
|
|
25
25
|
|
|
26
26
|
function App() {
|
|
27
27
|
return (
|
|
@@ -32,6 +32,11 @@ function App() {
|
|
|
32
32
|
<Button variant="secondary">
|
|
33
33
|
Secondary Button
|
|
34
34
|
</Button>
|
|
35
|
+
|
|
36
|
+
<Checkbox
|
|
37
|
+
label="Accept terms and conditions"
|
|
38
|
+
onChange={(e) => console.log(e.target.checked)}
|
|
39
|
+
/>
|
|
35
40
|
</div>
|
|
36
41
|
);
|
|
37
42
|
}
|
|
@@ -165,6 +170,62 @@ A versatile button component with multiple variants.
|
|
|
165
170
|
</Button>
|
|
166
171
|
```
|
|
167
172
|
|
|
173
|
+
### Checkbox
|
|
174
|
+
|
|
175
|
+
A checkbox component for selecting options in forms with support for indeterminate states.
|
|
176
|
+
|
|
177
|
+
#### Props
|
|
178
|
+
|
|
179
|
+
| Prop | Type | Default | Description |
|
|
180
|
+
|------|------|---------|-------------|
|
|
181
|
+
| `label` | `string` | - | Label text for the checkbox |
|
|
182
|
+
| `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Checkbox size |
|
|
183
|
+
| `checked` | `boolean` | - | Controlled checked state |
|
|
184
|
+
| `isIndeterminate` | `boolean` | `false` | Indeterminate state (mixed selection) |
|
|
185
|
+
| `isDisabled` | `boolean` | `false` | Disabled state |
|
|
186
|
+
| `validationState` | `'none' \| 'error'` | `'none'` | Validation state |
|
|
187
|
+
| `helperText` | `string` | - | Helper text displayed below checkbox |
|
|
188
|
+
| `errorText` | `string` | - | Error text (overrides helperText) |
|
|
189
|
+
| `showErrorText` | `boolean` | `true` | Show/hide error text |
|
|
190
|
+
| `onChange` | `(e: React.ChangeEvent<HTMLInputElement>) => void` | - | Change handler |
|
|
191
|
+
|
|
192
|
+
#### Examples
|
|
193
|
+
|
|
194
|
+
```tsx
|
|
195
|
+
// Basic checkbox
|
|
196
|
+
<Checkbox label="Accept terms" />
|
|
197
|
+
|
|
198
|
+
// Controlled checkbox
|
|
199
|
+
<Checkbox
|
|
200
|
+
label="Subscribe to newsletter"
|
|
201
|
+
checked={isSubscribed}
|
|
202
|
+
onChange={(e) => setIsSubscribed(e.target.checked)}
|
|
203
|
+
/>
|
|
204
|
+
|
|
205
|
+
// With validation
|
|
206
|
+
<Checkbox
|
|
207
|
+
label="Required field"
|
|
208
|
+
validationState="error"
|
|
209
|
+
errorText="This field is required"
|
|
210
|
+
/>
|
|
211
|
+
|
|
212
|
+
// Indeterminate state (for "select all" scenarios)
|
|
213
|
+
<Checkbox
|
|
214
|
+
label="Select all"
|
|
215
|
+
isIndeterminate={someSelected && !allSelected}
|
|
216
|
+
checked={allSelected}
|
|
217
|
+
onChange={handleSelectAll}
|
|
218
|
+
/>
|
|
219
|
+
|
|
220
|
+
// Different sizes
|
|
221
|
+
<Checkbox size="small" label="Small" />
|
|
222
|
+
<Checkbox size="medium" label="Medium" />
|
|
223
|
+
<Checkbox size="large" label="Large" />
|
|
224
|
+
|
|
225
|
+
// Disabled
|
|
226
|
+
<Checkbox label="Can't change this" isDisabled checked />
|
|
227
|
+
```
|
|
228
|
+
|
|
168
229
|
## Publishing
|
|
169
230
|
|
|
170
231
|
### Automated Publishing Commands
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "light" | "filled" | null | undefined;
|
|
5
|
+
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | null | undefined;
|
|
6
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
9
|
+
/**
|
|
10
|
+
* Whether to show a dot indicator on the left side
|
|
11
|
+
*/
|
|
12
|
+
showDot?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Custom class name for the badge
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Badge label/content
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The color variant of the badge
|
|
23
|
+
*/
|
|
24
|
+
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral";
|
|
25
|
+
}
|
|
26
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export { Badge, badgeVariants };
|
|
28
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;;;mFAoGlB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7E;AAED,QAAA,MAAM,KAAK,mFAsDV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Badge } from "./Badge";
|
|
3
|
+
declare const meta: Meta<typeof Badge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Badge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDot: Story;
|
|
8
|
+
export declare const Filled: Story;
|
|
9
|
+
export declare const FilledWithDot: Story;
|
|
10
|
+
export declare const Small: Story;
|
|
11
|
+
export declare const Large: Story;
|
|
12
|
+
export declare const AllColorsLight: Story;
|
|
13
|
+
export declare const AllColorsFilled: Story;
|
|
14
|
+
export declare const AllVariants: Story;
|
|
15
|
+
export declare const CustomContent: Story;
|
|
16
|
+
//# sourceMappingURL=Badge.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAgC5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAGpC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,KAQpB,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAuB5B,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAuB7B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAiEzB,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,KAuB3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
declare const buttonVariants: (props?: ({
|
|
3
3
|
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
4
4
|
color?: "primary" | "positive" | "negative" | "notice" | "info" | "neutral" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "small" | "medium" | "large" | "xsmall" | null | undefined;
|
|
6
6
|
isIconOnly?: boolean | null | undefined;
|
|
7
7
|
isLoading?: boolean | null | undefined;
|
|
8
8
|
isDisabled?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,cAAc;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,cAAc;;;;;;;;mFAsRnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACpE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IAC5E,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,QAAA,MAAM,MAAM,uFAoEX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const checkboxVariants: (props?: ({
|
|
3
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
4
|
+
validationState?: "none" | "error" | null | undefined;
|
|
5
|
+
isChecked?: boolean | null | undefined;
|
|
6
|
+
isIndeterminate?: boolean | null | undefined;
|
|
7
|
+
isDisabled?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
10
|
+
/**
|
|
11
|
+
* Label text to display next to the checkbox
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Error text to display below the checkbox
|
|
16
|
+
*/
|
|
17
|
+
errorText?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Size of the checkbox
|
|
20
|
+
*/
|
|
21
|
+
size?: "small" | "medium" | "large";
|
|
22
|
+
/**
|
|
23
|
+
* Validation state of the checkbox
|
|
24
|
+
*/
|
|
25
|
+
validationState?: "none" | "error";
|
|
26
|
+
/**
|
|
27
|
+
* Whether the checkbox is disabled
|
|
28
|
+
*/
|
|
29
|
+
isDisabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the checkbox is in an indeterminate state
|
|
32
|
+
*/
|
|
33
|
+
isIndeterminate?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to show error text (defaults to true if errorText is provided)
|
|
36
|
+
*/
|
|
37
|
+
showErrorText?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Custom class name for the container
|
|
40
|
+
*/
|
|
41
|
+
containerClassName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Custom class name for the label
|
|
44
|
+
*/
|
|
45
|
+
labelClassName?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
48
|
+
export { Checkbox, checkboxVariants };
|
|
49
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,gBAAgB;;;;;;mFA6ErB,CAAC;AAEF,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,wFA0Nb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("./Checkbox").CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const Checked: Story;
|
|
14
|
+
export declare const Indeterminate: Story;
|
|
15
|
+
export declare const WithError: Story;
|
|
16
|
+
export declare const WithErrorChecked: Story;
|
|
17
|
+
export declare const Disabled: Story;
|
|
18
|
+
export declare const DisabledChecked: Story;
|
|
19
|
+
export declare const Sizes: Story;
|
|
20
|
+
export declare const ValidationStates: Story;
|
|
21
|
+
export declare const CheckboxBase: Story;
|
|
22
|
+
export declare const FullCheckboxComponent: Story;
|
|
23
|
+
//# sourceMappingURL=Checkbox.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;CAOuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAoBnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAmC9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAugB1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAkdnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const counterVariants: (props?: ({
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
|
+
color?: "primary" | "positive" | "negative" | "notice" | "neutral" | "information" | null | undefined;
|
|
6
|
+
emphasis?: "subtle" | "intense" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface CounterProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof counterVariants> {
|
|
9
|
+
/**
|
|
10
|
+
* The numerical value to display
|
|
11
|
+
*/
|
|
12
|
+
value: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum value to display before showing overflow indicator (e.g., "99+")
|
|
15
|
+
*/
|
|
16
|
+
max?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Custom class name for the counter
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const Counter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
export { Counter, counterVariants };
|
|
24
|
+
//# sourceMappingURL=Counter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Counter.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/Counter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,eAAe;;;;mFAkHpB,CAAC;AAEF,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC1D,YAAY,CAAC,OAAO,eAAe,CAAC;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,sFAsCZ,CAAC;AAIF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Counter } from "./Counter";
|
|
3
|
+
declare const meta: Meta<typeof Counter>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Counter>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithMaxValue: Story;
|
|
8
|
+
export declare const AllSizes: Story;
|
|
9
|
+
export declare const AllColorsSubtle: Story;
|
|
10
|
+
export declare const AllColorsIntense: Story;
|
|
11
|
+
export declare const CompleteMatrix: Story;
|
|
12
|
+
export declare const InlineUsage: Story;
|
|
13
|
+
export declare const OverflowIndicator: Story;
|
|
14
|
+
//# sourceMappingURL=Counter.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Counter.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/Counter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CA8C9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,KAwD9B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KA4K5B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAS/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const dividerVariants: (props?: ({
|
|
4
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
+
thickness?: "thick" | "thin" | "thinner" | "thicker" | null | undefined;
|
|
6
|
+
lineStyle?: "dashed" | "solid" | null | undefined;
|
|
7
|
+
variant?: "subtle" | "muted" | "normal" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
|
|
10
|
+
/**
|
|
11
|
+
* The orientation of the divider
|
|
12
|
+
* @default "horizontal"
|
|
13
|
+
*/
|
|
14
|
+
orientation?: "horizontal" | "vertical";
|
|
15
|
+
/**
|
|
16
|
+
* The thickness of the divider
|
|
17
|
+
* @default "thin"
|
|
18
|
+
*/
|
|
19
|
+
thickness?: "thinner" | "thin" | "thick" | "thicker";
|
|
20
|
+
/**
|
|
21
|
+
* The style of the divider line
|
|
22
|
+
* @default "solid"
|
|
23
|
+
*/
|
|
24
|
+
lineStyle?: "solid" | "dashed";
|
|
25
|
+
/**
|
|
26
|
+
* The color variant of the divider
|
|
27
|
+
* @default "normal"
|
|
28
|
+
*/
|
|
29
|
+
variant?: "normal" | "subtle" | "muted";
|
|
30
|
+
/**
|
|
31
|
+
* Custom class name for the divider
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export { Divider, dividerVariants };
|
|
37
|
+
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,eAAe;;;;;mFAuFnB,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,eAAe,CAAC;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACrD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,qFAyBZ,CAAC;AAIF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Divider } from "./Divider";
|
|
3
|
+
declare const meta: Meta<typeof Divider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Divider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Horizontal: Story;
|
|
8
|
+
export declare const Vertical: Story;
|
|
9
|
+
export declare const AllVariantsGrid: Story;
|
|
10
|
+
export declare const VerticalVariants: Story;
|
|
11
|
+
export declare const InContent: Story;
|
|
12
|
+
//# sourceMappingURL=Divider.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAyC9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAqBtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAgW7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA8O9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAwCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface FormFooterProps {
|
|
3
|
+
/**
|
|
4
|
+
* Helper text to display on the left side
|
|
5
|
+
*/
|
|
6
|
+
helperText?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Trailing text to display on the right side (e.g., character count)
|
|
9
|
+
*/
|
|
10
|
+
trailingText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Validation state that affects styling and icon display
|
|
13
|
+
*/
|
|
14
|
+
validationState?: "default" | "positive" | "negative";
|
|
15
|
+
/**
|
|
16
|
+
* Size variant that affects text size, icon size, and spacing
|
|
17
|
+
*/
|
|
18
|
+
size?: "small" | "medium" | "large";
|
|
19
|
+
/**
|
|
20
|
+
* Whether the footer is in a disabled state
|
|
21
|
+
*/
|
|
22
|
+
isDisabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Custom class name for the container
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Custom class name for the helper text
|
|
29
|
+
*/
|
|
30
|
+
helperTextClassName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom class name for the trailing text
|
|
33
|
+
*/
|
|
34
|
+
trailingTextClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const FormFooter: React.ForwardRefExoticComponent<FormFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export { FormFooter };
|
|
38
|
+
//# sourceMappingURL=FormFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFooter.d.ts","sourceRoot":"","sources":["../../../src/components/FormFooter/FormFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IACtD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,QAAA,MAAM,UAAU,wFAwIf,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("./FormFooter").FormFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
helperText: {
|
|
11
|
+
control: "text";
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
trailingText: {
|
|
15
|
+
control: "text";
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
validationState: {
|
|
19
|
+
control: "select";
|
|
20
|
+
options: string[];
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
control: "select";
|
|
25
|
+
options: string[];
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
isDisabled: {
|
|
29
|
+
control: "boolean";
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
export declare const Default: Story;
|
|
37
|
+
export declare const WithTrailingText: Story;
|
|
38
|
+
export declare const TrailingTextOnly: Story;
|
|
39
|
+
export declare const Positive: Story;
|
|
40
|
+
export declare const PositiveWithTrailing: Story;
|
|
41
|
+
export declare const Negative: Story;
|
|
42
|
+
export declare const NegativeWithTrailing: Story;
|
|
43
|
+
export declare const Disabled: Story;
|
|
44
|
+
export declare const Small: Story;
|
|
45
|
+
export declare const Medium: Story;
|
|
46
|
+
export declare const Large: Story;
|
|
47
|
+
export declare const SizeComparison: Story;
|
|
48
|
+
export declare const ValidationStateComparison: Story;
|
|
49
|
+
export declare const WithInputField: Story;
|
|
50
|
+
//# sourceMappingURL=FormFooter.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFooter.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FormFooter/FormFooter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCyB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAK9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAMlC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAMlC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAgC5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAwCvC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAyD5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface FormHeaderProps {
|
|
3
|
+
/**
|
|
4
|
+
* The label text to display
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Size variant that affects text size, icon size, and spacing
|
|
9
|
+
*/
|
|
10
|
+
size?: "small" | "medium" | "large";
|
|
11
|
+
/**
|
|
12
|
+
* Whether to show "(optional)" text after the label
|
|
13
|
+
*/
|
|
14
|
+
isOptional?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show "*" (required indicator) after the label
|
|
17
|
+
*/
|
|
18
|
+
isRequired?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Tooltip heading text
|
|
21
|
+
*/
|
|
22
|
+
infoHeading?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Tooltip description text - if provided, shows the info icon
|
|
25
|
+
*/
|
|
26
|
+
infoDescription?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Link text to display on the right side
|
|
29
|
+
*/
|
|
30
|
+
linkText?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Link href or onClick handler
|
|
33
|
+
*/
|
|
34
|
+
linkHref?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Link click handler
|
|
37
|
+
*/
|
|
38
|
+
onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
39
|
+
/**
|
|
40
|
+
* HTML for attribute to associate with form input
|
|
41
|
+
*/
|
|
42
|
+
htmlFor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Custom class name for the container
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Custom class name for the label
|
|
49
|
+
*/
|
|
50
|
+
labelClassName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Custom class name for the link
|
|
53
|
+
*/
|
|
54
|
+
linkClassName?: string;
|
|
55
|
+
}
|
|
56
|
+
declare const FormHeader: React.ForwardRefExoticComponent<FormHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
export { FormHeader };
|
|
58
|
+
//# sourceMappingURL=FormHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormHeader.d.ts","sourceRoot":"","sources":["../../../src/components/FormHeader/FormHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,UAAU,wFAoIf,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("./FormHeader").FormHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
label: {
|
|
11
|
+
control: "text";
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
control: "select";
|
|
16
|
+
options: string[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
isOptional: {
|
|
20
|
+
control: "boolean";
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
isRequired: {
|
|
24
|
+
control: "boolean";
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
infoHeading: {
|
|
28
|
+
control: "text";
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
infoDescription: {
|
|
32
|
+
control: "text";
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
linkText: {
|
|
36
|
+
control: "text";
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
linkHref: {
|
|
40
|
+
control: "text";
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
htmlFor: {
|
|
44
|
+
control: "text";
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default meta;
|
|
50
|
+
type Story = StoryObj<typeof meta>;
|
|
51
|
+
export declare const Default: Story;
|
|
52
|
+
export declare const WithOptional: Story;
|
|
53
|
+
export declare const WithRequired: Story;
|
|
54
|
+
export declare const WithInfo: Story;
|
|
55
|
+
export declare const WithInfoAndHeading: Story;
|
|
56
|
+
export declare const WithLink: Story;
|
|
57
|
+
export declare const OptionalWithInfoAndLink: Story;
|
|
58
|
+
export declare const RequiredWithInfoAndLink: Story;
|
|
59
|
+
export declare const CompleteExample: Story;
|
|
60
|
+
export declare const WithInputField: Story;
|
|
61
|
+
export declare const Small: Story;
|
|
62
|
+
export declare const Medium: Story;
|
|
63
|
+
export declare const Large: Story;
|
|
64
|
+
export declare const SizeComparison: Story;
|
|
65
|
+
//# sourceMappingURL=FormHeader.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FormHeader/FormHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDyB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KASrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KASrC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkC7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KASpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAyC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|