@4alldigital/foundation-ui--gamma 1.22.1 → 1.24.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.
Files changed (73) hide show
  1. package/dist/foundation-ui.css +1 -1
  2. package/dist/index.esm.js +307 -102
  3. package/dist/index.js +308 -101
  4. package/dist/types/fui/components/Blockquote/Blockquote.d.ts +2 -3
  5. package/dist/types/fui/components/Button/Button.d.ts +3 -2
  6. package/dist/types/fui/components/Button/Button.types.d.ts +20 -4
  7. package/dist/types/fui/components/Checkbox/Checkbox.d.ts +5 -0
  8. package/dist/types/fui/components/Checkbox/Checkbox.stories.d.ts +6 -0
  9. package/dist/types/fui/components/Checkbox/Checkbox.test.d.ts +1 -0
  10. package/dist/types/fui/components/Checkbox/Checkbox.types.d.ts +12 -0
  11. package/dist/types/fui/components/Checkbox/index.d.ts +1 -0
  12. package/dist/types/fui/components/Container/Container.d.ts +3 -2
  13. package/dist/types/fui/components/Container/Container.types.d.ts +1 -0
  14. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.d.ts +5 -1
  15. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.d.ts +3 -4
  16. package/dist/types/fui/components/Copy/Copy.d.ts +4 -8
  17. package/dist/types/fui/components/Copy/Copy.types.d.ts +11 -10
  18. package/dist/types/fui/components/FileUpload/FileUpload.d.ts +5 -0
  19. package/dist/types/fui/components/FileUpload/FileUpload.stories.d.ts +6 -0
  20. package/dist/types/fui/components/FileUpload/FileUpload.test.d.ts +1 -0
  21. package/dist/types/fui/components/FileUpload/FileUpload.types.d.ts +7 -0
  22. package/dist/types/fui/components/FileUpload/index.d.ts +1 -0
  23. package/dist/types/fui/components/Form/Form.d.ts +8 -0
  24. package/dist/types/fui/components/Form/Form.stories.d.ts +7 -0
  25. package/dist/types/fui/components/Form/Form.test.d.ts +1 -0
  26. package/dist/types/fui/components/Form/Form.types.d.ts +27 -0
  27. package/dist/types/fui/components/Form/index.d.ts +1 -0
  28. package/dist/types/fui/components/FormField/FormField.d.ts +8 -0
  29. package/dist/types/fui/components/FormField/FormField.stories.d.ts +7 -0
  30. package/dist/types/fui/components/FormField/FormField.test.d.ts +1 -0
  31. package/dist/types/fui/components/FormField/FormField.types.d.ts +34 -0
  32. package/dist/types/fui/components/FormField/index.d.ts +1 -0
  33. package/dist/types/fui/components/FormSelect/FormSelect.d.ts +8 -0
  34. package/dist/types/fui/components/FormSelect/FormSelect.stories.d.ts +6 -0
  35. package/dist/types/fui/components/FormSelect/FormSelect.test.d.ts +1 -0
  36. package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +41 -0
  37. package/dist/types/fui/components/FormSelect/index.d.ts +1 -0
  38. package/dist/types/fui/components/Heading/Heading.d.ts +3 -4
  39. package/dist/types/fui/components/Hr/Hr.d.ts +4 -1
  40. package/dist/types/fui/components/Icon/Icon.d.ts +3 -4
  41. package/dist/types/fui/components/Icon/Icon.types.d.ts +2 -1
  42. package/dist/types/fui/components/Image/Image.d.ts +5 -1
  43. package/dist/types/fui/components/Label/Label.d.ts +8 -0
  44. package/dist/types/fui/components/Label/Label.stories.d.ts +6 -0
  45. package/dist/types/fui/components/Label/Label.test.d.ts +1 -0
  46. package/dist/types/fui/components/Label/Label.types.d.ts +4 -0
  47. package/dist/types/fui/components/Label/index.d.ts +1 -0
  48. package/dist/types/fui/components/Link/Link.d.ts +2 -6
  49. package/dist/types/fui/components/List/List.d.ts +4 -5
  50. package/dist/types/fui/components/List/List.types.d.ts +1 -0
  51. package/dist/types/fui/components/ListItem/ListItem.d.ts +3 -4
  52. package/dist/types/fui/components/ListItem/ListItem.types.d.ts +1 -0
  53. package/dist/types/fui/components/Loader/Loader.d.ts +3 -4
  54. package/dist/types/fui/components/Loader/Loader.types.d.ts +1 -0
  55. package/dist/types/fui/components/Notice/Notice.d.ts +5 -1
  56. package/dist/types/fui/components/Radio/Radio.d.ts +5 -0
  57. package/dist/types/fui/components/Radio/Radio.stories.d.ts +6 -0
  58. package/dist/types/fui/components/Radio/Radio.test.d.ts +1 -0
  59. package/dist/types/fui/components/Radio/Radio.types.d.ts +13 -0
  60. package/dist/types/fui/components/Radio/index.d.ts +1 -0
  61. package/dist/types/fui/components/Switch/Switch.d.ts +5 -0
  62. package/dist/types/fui/components/Switch/Switch.stories.d.ts +6 -0
  63. package/dist/types/fui/components/Switch/Switch.test.d.ts +1 -0
  64. package/dist/types/fui/components/Switch/Switch.types.d.ts +7 -0
  65. package/dist/types/fui/components/Switch/index.d.ts +1 -0
  66. package/dist/types/fui/components/TextInput/TextInput.d.ts +5 -0
  67. package/dist/types/fui/components/TextInput/TextInput.stories.d.ts +6 -0
  68. package/dist/types/fui/components/TextInput/TextInput.test.d.ts +1 -0
  69. package/dist/types/fui/components/TextInput/TextInput.types.d.ts +35 -0
  70. package/dist/types/fui/components/TextInput/index.d.ts +1 -0
  71. package/dist/types/fui/components/index.d.ts +2 -0
  72. package/dist/types/fui/hooks/useTheme.d.ts +1 -0
  73. package/package.json +2 -4
@@ -0,0 +1 @@
1
+ export { default } from './Checkbox';
@@ -1,6 +1,7 @@
1
1
  import { Props } from './Container.types';
2
2
  declare const Container: {
3
- ({ children, className, spacing }: Props): React.ReactElement;
4
- defaultProps: {};
3
+ ({ children, className, spacing, padded }: Props): React.ReactElement;
4
+ displayName: string;
5
5
  };
6
6
  export default Container;
7
+ export type { Props };
@@ -3,4 +3,5 @@ export interface Props {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  spacing?: 'feature' | 'component' | 'module' | 'element' | 'atom' | 'none';
6
+ padded?: boolean;
6
7
  }
@@ -1,3 +1,7 @@
1
1
  import { Props } from './ContentPageLayout.types';
2
- declare const ContentPageLayout: ({ children, spacing, narrow, flush, className }: Props) => React.ReactElement;
2
+ declare const ContentPageLayout: {
3
+ ({ spacing, children, narrow, flush, className, }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
3
6
  export default ContentPageLayout;
7
+ export type { Props };
@@ -1,8 +1,7 @@
1
- import { Props, SIZE } from './ContentRowsLayout.types';
1
+ import { Props } from './ContentRowsLayout.types';
2
2
  declare const ContentRowsLayout: {
3
3
  ({ className, children, size }: Props): React.ReactElement;
4
- defaultProps: {
5
- size: SIZE;
6
- };
4
+ displayName: string;
7
5
  };
8
6
  export default ContentRowsLayout;
7
+ export type { Props };
@@ -1,11 +1,7 @@
1
- import { Align, Props, Tag } from './Copy.types';
1
+ import { Props } from './Copy.types';
2
2
  declare const Copy: {
3
- ({ children, tag: Tag, size, align, transform, id, testID }: Props): React.ReactElement;
4
- defaultProps: {
5
- inverted: boolean;
6
- maxLength: boolean;
7
- tag: Tag;
8
- align: Align;
9
- };
3
+ ({ children, as: Tag, size, align, transform, id, testID, }: Props): React.ReactElement;
4
+ displayName: string;
10
5
  };
11
6
  export default Copy;
7
+ export type { Props };
@@ -1,40 +1,41 @@
1
1
  /// <reference types="react" />
2
- export declare enum Align {
2
+ export declare enum ALIGN {
3
3
  LEFT = "left",
4
4
  CENTER = "center",
5
5
  RIGHT = "right",
6
6
  JUSTIFY = "justify",
7
7
  NOWRAP = "nowrap"
8
8
  }
9
- export declare enum Transform {
9
+ export declare enum TRANSFORM {
10
10
  LOWERCASE = "lowercase",
11
11
  UPPERCASE = "uppercase",
12
12
  CAPITALIZE = "capitalize",
13
13
  NORMALCASE = "normal-case"
14
14
  }
15
- export declare enum Contextual {
15
+ export declare enum CONTEXTUAL {
16
16
  INVERTED = "inverted",
17
17
  MUTED = "muted"
18
18
  }
19
- export declare enum Size {
19
+ export declare enum SIZE {
20
20
  SMALL = "small",
21
21
  LARGE = "large",
22
22
  INTRO = "intro"
23
23
  }
24
- export declare enum Tag {
24
+ export declare enum TAG {
25
25
  P = "p",
26
+ SPAN = "span",
26
27
  DIV = "div",
27
28
  SMALL = "small"
28
29
  }
29
30
  export interface Props {
30
31
  children: string | Array<React.ReactNode> | React.ReactNode;
31
- align?: Align;
32
- size?: Size;
33
- transform?: Transform;
34
- contextual?: Contextual;
32
+ align?: ALIGN;
33
+ size?: SIZE;
34
+ transform?: TRANSFORM;
35
+ contextual?: CONTEXTUAL;
35
36
  inverted?: boolean;
36
37
  maxLength?: boolean;
37
- tag: Tag;
38
+ as?: TAG;
38
39
  id?: string;
39
40
  testID?: string;
40
41
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props } from './FileUpload.types';
3
+ declare const FileUpload: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
4
+ export default FileUpload;
5
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import FileUpload from '.';
3
+ declare const meta: Meta<typeof FileUpload>;
4
+ type Story = StoryObj<typeof FileUpload>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ id: string;
3
+ name: string;
4
+ disabled?: boolean;
5
+ required?: boolean;
6
+ className?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './FileUpload';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Form.types';
3
+ declare const Form: {
4
+ ({ children, className, submit, onSubmit, hideSubmit, ariaSubmitLabel, submitID, initialValues, submitVariant, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Form;
8
+ export type { Props };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Form from '.';
3
+ declare const meta: Meta<typeof Form>;
4
+ type Story = StoryObj<typeof Form>;
5
+ export declare const Default: Story;
6
+ export declare const Example: Story;
7
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { BTN_VARIANTS } from "../Button/Button.types";
3
+ export interface Props {
4
+ /** The form inputs and content. */
5
+ children: React.ReactNode;
6
+ /** Additional classes. */
7
+ className?: string;
8
+ /** Disable form inputs validation. */
9
+ noValidate?: boolean;
10
+ /** The submit handler that will fire once the form is submitted. */
11
+ onSubmit: (values: {
12
+ [k: string]: FormDataEntryValue;
13
+ }) => void;
14
+ /** The label for the submit button. */
15
+ submit?: string;
16
+ /** Hide submit button. */
17
+ hideSubmit?: boolean;
18
+ /** The aria-label attribute value for the submit button. */
19
+ ariaSubmitLabel?: string;
20
+ /** Unique form submit button id. */
21
+ submitID?: string;
22
+ /** Initial form values. */
23
+ initialValues?: {
24
+ [k: string]: FormDataEntryValue;
25
+ };
26
+ submitVariant?: BTN_VARIANTS;
27
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Form';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './FormField.types';
3
+ declare const FormField: {
4
+ ({ name, type, label, required, className, icon, options, disabled, description, showPasswordLabel, hidePasswordLabel, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default FormField;
8
+ export type { Props };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import FormField from '.';
3
+ declare const meta: Meta<typeof FormField>;
4
+ type Story = StoryObj<typeof FormField>;
5
+ export declare const Default: Story;
6
+ export declare const Example: Story;
7
+ export default meta;
@@ -0,0 +1,34 @@
1
+ export declare enum FieldTypes {
2
+ TEXT = "text",
3
+ TEXTAREA = "textarea",
4
+ SELECT = "select",
5
+ CHECKBOX = "checkbox",
6
+ RADIO = "radio",
7
+ SWITCH = "switch",
8
+ DATE = "date",
9
+ TIME = "time",
10
+ DATETIME = "datetime",
11
+ FILE = "file",
12
+ PASSWORD = "password",
13
+ EMAIL = "email",
14
+ NUMBER = "number",
15
+ TEL = "tel",
16
+ URL = "url",
17
+ SEARCH = "search"
18
+ }
19
+ export interface Props {
20
+ type: FieldTypes;
21
+ name: string;
22
+ className?: string;
23
+ label?: string;
24
+ required?: boolean;
25
+ icon?: string;
26
+ options?: {
27
+ value: string;
28
+ label: string;
29
+ }[];
30
+ disabled?: boolean;
31
+ description?: string;
32
+ showPasswordLabel?: string;
33
+ hidePasswordLabel?: string;
34
+ }
@@ -0,0 +1 @@
1
+ export { default } from './FormField';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './FormSelect.types';
3
+ declare const FormSelect: {
4
+ ({ id, name, options, required, className, disabled }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default FormSelect;
8
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import FormSelect from '.';
3
+ declare const meta: Meta<typeof FormSelect>;
4
+ type Story = StoryObj<typeof FormSelect>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ type OptionsType = {
3
+ value: string;
4
+ label: string;
5
+ /** The selected option's value. */
6
+ defaultValue?: string;
7
+ disabled?: boolean;
8
+ };
9
+ export interface Props {
10
+ /** The selected option's value. */
11
+ options: Array<OptionsType>;
12
+ /** Unique id for the field, required for a11y. */
13
+ id: string;
14
+ /** The select visible default label value. */
15
+ label?: string;
16
+ /** Is field required. */
17
+ required?: boolean;
18
+ /** Additional classes. */
19
+ className?: string;
20
+ /** Dropdown icon color. */
21
+ iconColor?: string;
22
+ /** Dropdown icon color. */
23
+ itemIcon?: string;
24
+ /** Additional wrapper CSS classes. */
25
+ wrapperStyles?: string;
26
+ /** Select Up Icon. */
27
+ selectIconUp?: string;
28
+ /** Select Down Icon. */
29
+ selectIconDown?: string;
30
+ /** Select Form Item Name. */
31
+ name?: string;
32
+ /** Is field disabled. */
33
+ disabled?: boolean;
34
+ }
35
+ export interface ItemProps {
36
+ children: React.ReactNode;
37
+ value: string;
38
+ itemIcon: string;
39
+ iconColor?: string;
40
+ }
41
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './FormSelect';
@@ -1,8 +1,7 @@
1
- import { HeadingTag, Props } from './Heading.types';
1
+ import { Props } from './Heading.types';
2
2
  declare const Heading: {
3
3
  ({ children, tag, transform, align, id, testID, flush, className }: Props): React.ReactElement;
4
- defaultProps: {
5
- tag: HeadingTag;
6
- };
4
+ displayName: string;
7
5
  };
8
6
  export default Heading;
7
+ export type { Props };
@@ -1,2 +1,5 @@
1
- declare const Hr: () => React.ReactElement;
1
+ declare const Hr: {
2
+ (): React.ReactElement;
3
+ displayName: string;
4
+ };
2
5
  export default Hr;
@@ -4,9 +4,8 @@ import { Props } from './Icon.types';
4
4
  * List of supported icons can be found at https://icon-sets.iconify.design.
5
5
  */
6
6
  declare const Icon: {
7
- ({ name, size, color, id, testID }: Props): React.ReactElement;
8
- defaultProps: {
9
- size: number;
10
- };
7
+ ({ name, size, color, id, className, testID }: Props): React.ReactElement;
8
+ displayName: string;
11
9
  };
12
10
  export default Icon;
11
+ export type { Props };
@@ -1,7 +1,8 @@
1
1
  export interface Props {
2
2
  name: string;
3
- size: number;
3
+ size?: number;
4
4
  color?: string;
5
5
  id?: string;
6
6
  testID?: string;
7
+ className?: string;
7
8
  }
@@ -1,3 +1,7 @@
1
1
  import { Props } from './Image.types';
2
- declare const Image: ({ src, alt, title, caption, figure, onLoad, id, className, testID, }: Props) => React.ReactElement;
2
+ declare const Image: {
3
+ ({ src, alt, title, caption, figure, onLoad, id, className, testID, }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
3
6
  export default Image;
7
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Label.types';
3
+ declare const Label: {
4
+ ({ label, id }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Label;
8
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Label from '.';
3
+ declare const meta: Meta<typeof Label>;
4
+ type Story = StoryObj<typeof Label>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface Props {
2
+ label: string;
3
+ id: string;
4
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Label';
@@ -1,11 +1,7 @@
1
1
  import { Props } from './Link.types';
2
2
  declare const Link: {
3
3
  ({ href, children, onClick, history, target, id, testID, className }: Props): React.ReactElement;
4
- defaultProps: {
5
- href: undefined;
6
- onClick: () => void;
7
- history: undefined;
8
- target: undefined;
9
- };
4
+ displayName: string;
10
5
  };
11
6
  export default Link;
7
+ export type { Props };
@@ -1,8 +1,7 @@
1
- import { ListTag, Props } from './List.types';
1
+ import { Props } from './List.types';
2
2
  declare const List: {
3
- ({ variants, children, as, id, testID, }: Props): React.ReactElement;
4
- defaultProps: {
5
- as: ListTag;
6
- };
3
+ ({ variants, children, as, id, testID, className }: Props): React.ReactElement;
4
+ displayName: string;
7
5
  };
8
6
  export default List;
7
+ export type { Props };
@@ -21,4 +21,5 @@ export type Props = {
21
21
  as: ListTag;
22
22
  id?: string;
23
23
  testID?: string;
24
+ className?: string;
24
25
  };
@@ -1,8 +1,7 @@
1
1
  import { Props } from './ListItem.types';
2
2
  declare const ListItem: {
3
- ({ children, as: Tag, id, testID }: Props): React.ReactElement;
4
- defaultProps: {
5
- as: string;
6
- };
3
+ ({ children, as: Tag, id, testID, className }: Props): React.ReactElement;
4
+ displayName: string;
7
5
  };
8
6
  export default ListItem;
7
+ export type { Props };
@@ -4,4 +4,5 @@ export type Props = {
4
4
  as: 'li' | 'dt' | 'dd';
5
5
  id?: string;
6
6
  testID?: string;
7
+ className?: string;
7
8
  };
@@ -1,8 +1,7 @@
1
1
  import { Props } from './Loader.types';
2
2
  declare const Loader: {
3
- ({ size }: Props): React.ReactElement;
4
- defaultProps: {
5
- size: number;
6
- };
3
+ ({ color, size, thickness }: Props): React.ReactElement;
4
+ displayName: string;
7
5
  };
8
6
  export default Loader;
7
+ export type { Props };
@@ -1,4 +1,5 @@
1
1
  export interface Props {
2
2
  color?: string;
3
3
  size?: number;
4
+ thickness?: number;
4
5
  }
@@ -1,3 +1,7 @@
1
1
  import { Props } from './Notice.types';
2
- declare const Notice: ({ foo, id, testID }: Props) => React.ReactElement;
2
+ declare const Notice: {
3
+ ({ foo, id, testID }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
3
6
  export default Notice;
7
+ export type { Props };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props } from './Radio.types';
3
+ declare const Radio: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
4
+ export default Radio;
5
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Radio from '.';
3
+ declare const meta: Meta<typeof Radio>;
4
+ type Story = StoryObj<typeof Radio>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface Props {
2
+ id: string;
3
+ name: string;
4
+ icon?: string;
5
+ label?: string;
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ options?: {
10
+ value: string;
11
+ label: string;
12
+ }[];
13
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Radio';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props } from './Switch.types';
3
+ declare const Switch: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
4
+ export default Switch;
5
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Switch from '.';
3
+ declare const meta: Meta<typeof Switch>;
4
+ type Story = StoryObj<typeof Switch>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ id: string;
3
+ name: string;
4
+ disabled?: boolean;
5
+ required?: boolean;
6
+ className?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Switch';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Props } from './TextInput.types';
3
+ declare const TextInput: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
4
+ export default TextInput;
5
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TextInput from '.';
3
+ declare const meta: Meta<typeof TextInput>;
4
+ type Story = StoryObj<typeof TextInput>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ export declare enum InputType {
3
+ TEXT = "text",
4
+ PASSWORD = "password",
5
+ EMAIL = "email",
6
+ NUMBER = "number",
7
+ TEL = "tel",
8
+ URL = "url",
9
+ SEARCH = "search",
10
+ DATE = "date",
11
+ TIME = "time",
12
+ DATETIME = "datetime-local",
13
+ MONTH = "month",
14
+ WEEK = "week",
15
+ FILE = "file",
16
+ TEXTAREA = "textarea"
17
+ }
18
+ export interface Props {
19
+ /** Input type. */
20
+ type?: InputType;
21
+ /** Specify if input is required. */
22
+ required?: boolean;
23
+ /** Custom style attributes. */
24
+ className?: string;
25
+ /** OnChange function handler. */
26
+ onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
27
+ /** Placeholder text. */
28
+ placeholder?: string;
29
+ /** Input name attribute. */
30
+ name?: string;
31
+ /** Input icon value. */
32
+ icon?: string;
33
+ /** Input status. */
34
+ disabled?: boolean;
35
+ }
@@ -0,0 +1 @@
1
+ export { default } from './TextInput';
@@ -13,3 +13,5 @@ export { default as Loader } from './Loader';
13
13
  export { default as Container } from './Container';
14
14
  export { default as ContentPageLayout } from './ContentPageLayout';
15
15
  export { default as ContentRowsLayout } from './ContentRowsLayout';
16
+ export { default as Form } from './Form';
17
+ export { default as FormField } from './FormField';
@@ -0,0 +1 @@
1
+ export default function useTheme(): any;