infinity-ui-elements 1.3.1 → 1.4.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/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/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/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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +501 -171
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +510 -171
- 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 +1 -1
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
|
|
@@ -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,wFAkNb,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,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"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const textVariants: (props?: ({
|
|
3
|
-
variant?: "heading" | "display" | "body" | "caption" | null | undefined;
|
|
4
|
-
size?: "xsmall" | "small" | "medium" | "large" | "2xlarge" | "xlarge" | null | undefined;
|
|
5
|
-
weight?: "medium" | "regular" | "semibold" | null | undefined;
|
|
6
|
-
color?: "default" | "primary" | "disabled" | "subtle" | "muted" | "onPrimary" | null | undefined;
|
|
7
|
-
as?: "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "div" | "label" | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
2
|
export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, "color"> {
|
|
10
3
|
children: React.ReactNode;
|
|
11
4
|
variant?: "display" | "heading" | "body" | "caption";
|
|
12
5
|
size?: "2xlarge" | "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
13
6
|
weight?: "regular" | "medium" | "semibold";
|
|
14
|
-
color?: "default" | "subtle" | "muted" | "disabled" | "primary" | "onPrimary";
|
|
7
|
+
color?: "default" | "subtle" | "muted" | "disabled" | "primary" | "onPrimary" | "positive" | "negative" | "notice" | "info" | "neutral";
|
|
15
8
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "label";
|
|
16
9
|
className?: string;
|
|
17
10
|
}
|
|
18
11
|
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
19
|
-
export { Text
|
|
12
|
+
export { Text };
|
|
20
13
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8C/B,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IACrD,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACtE,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C,KAAK,CAAC,EACF,SAAS,GACT,QAAQ,GACR,OAAO,GACP,UAAU,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,CAAC;IACd,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,+EA4BT,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const textAreaVariants: (props?: ({
|
|
3
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
4
|
+
validationState?: "positive" | "negative" | "none" | null | undefined;
|
|
5
|
+
isDisabled?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
8
|
+
label?: string;
|
|
9
|
+
helperText?: string;
|
|
10
|
+
errorText?: string;
|
|
11
|
+
successText?: string;
|
|
12
|
+
size?: "small" | "medium" | "large";
|
|
13
|
+
validationState?: "none" | "positive" | "negative";
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
isOptional?: boolean;
|
|
17
|
+
maxChar?: number;
|
|
18
|
+
showCharCount?: boolean;
|
|
19
|
+
containerClassName?: string;
|
|
20
|
+
labelClassName?: string;
|
|
21
|
+
textAreaClassName?: string;
|
|
22
|
+
infoHeading?: string;
|
|
23
|
+
infoDescription?: string;
|
|
24
|
+
linkText?: string;
|
|
25
|
+
linkHref?: string;
|
|
26
|
+
onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
27
|
+
rows?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
30
|
+
export { TextArea, textAreaVariants };
|
|
31
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,gBAAgB;;;;mFA2CrB,CAAC;AAEF,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,2FAoIb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { TextArea } from "./TextArea";
|
|
3
|
+
declare const meta: Meta<typeof TextArea>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextArea>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithValue: Story;
|
|
8
|
+
export declare const WithMaxCharLimit: Story;
|
|
9
|
+
export declare const NearCharLimit: Story;
|
|
10
|
+
export declare const Success: Story;
|
|
11
|
+
export declare const Error: Story;
|
|
12
|
+
export declare const Disabled: Story;
|
|
13
|
+
export declare const WithoutCharCount: Story;
|
|
14
|
+
export declare const Small: Story;
|
|
15
|
+
export declare const Medium: Story;
|
|
16
|
+
export declare const Large: Story;
|
|
17
|
+
export declare const TwoRows: Story;
|
|
18
|
+
export declare const SixRows: Story;
|
|
19
|
+
export declare const AllStates: Story;
|
|
20
|
+
export declare const SizeComparison: Story;
|
|
21
|
+
export declare const CompleteMatrix: Story;
|
|
22
|
+
export declare const MinimalWithoutLabel: Story;
|
|
23
|
+
export declare const MinimalWithoutMaxChar: Story;
|
|
24
|
+
export declare const CommentBox: Story;
|
|
25
|
+
export declare const BioField: Story;
|
|
26
|
+
export declare const FeedbackForm: Story;
|
|
27
|
+
//# sourceMappingURL=TextArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAgC/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGvC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAQ9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAQ9B,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAsGvB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KA6C5B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAsG5B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,KAKjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAS1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -13,6 +13,7 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
|
|
|
13
13
|
validationState?: "none" | "positive" | "negative";
|
|
14
14
|
isDisabled?: boolean;
|
|
15
15
|
isRequired?: boolean;
|
|
16
|
+
isOptional?: boolean;
|
|
16
17
|
prefix?: React.ReactNode;
|
|
17
18
|
suffix?: React.ReactNode;
|
|
18
19
|
showClearButton?: boolean;
|
|
@@ -22,6 +23,9 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
|
|
|
22
23
|
inputClassName?: string;
|
|
23
24
|
infoHeading?: string;
|
|
24
25
|
infoDescription?: string;
|
|
26
|
+
linkText?: string;
|
|
27
|
+
linkHref?: string;
|
|
28
|
+
onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
25
29
|
}
|
|
26
30
|
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
27
31
|
export { TextField, textFieldVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,iBAAiB;;;;
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,iBAAiB;;;;mFAyCtB,CAAC;AAEF,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,QAAA,MAAM,SAAS,yFAqMd,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC"}
|