@4alldigital/foundation-ui--gamma 1.22.0 → 1.23.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 (105) hide show
  1. package/dist/foundation-ui.css +1 -1
  2. package/dist/index.esm.js +121 -99
  3. package/dist/index.js +121 -98
  4. package/dist/types/fui/components/Blockquote/Blockquote.d.ts +7 -0
  5. package/dist/types/fui/components/Blockquote/Blockquote.stories.d.ts +6 -0
  6. package/dist/types/fui/components/Blockquote/Blockquote.test.d.ts +1 -0
  7. package/dist/types/fui/components/Blockquote/Blockquote.types.d.ts +7 -0
  8. package/dist/types/fui/components/Blockquote/index.d.ts +1 -0
  9. package/dist/types/fui/components/Button/Button.d.ts +7 -0
  10. package/dist/types/fui/components/Button/Button.stories.d.ts +8 -0
  11. package/dist/types/fui/components/Button/Button.test.d.ts +1 -0
  12. package/dist/types/fui/components/Button/Button.types.d.ts +36 -0
  13. package/dist/types/fui/components/Button/index.d.ts +1 -0
  14. package/dist/types/fui/components/Container/Container.d.ts +7 -0
  15. package/dist/types/fui/components/Container/Container.stories.d.ts +6 -0
  16. package/dist/types/fui/components/Container/Container.test.d.ts +1 -0
  17. package/dist/types/fui/components/Container/Container.types.d.ts +7 -0
  18. package/dist/types/fui/components/Container/index.d.ts +1 -0
  19. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.d.ts +7 -0
  20. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.stories.d.ts +6 -0
  21. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.test.d.ts +1 -0
  22. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.types.d.ts +17 -0
  23. package/dist/types/fui/components/ContentPageLayout/index.d.ts +1 -0
  24. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.d.ts +7 -0
  25. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.stories.d.ts +6 -0
  26. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.test.d.ts +1 -0
  27. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.types.d.ts +15 -0
  28. package/dist/types/fui/components/ContentRowsLayout/index.d.ts +1 -0
  29. package/dist/types/fui/components/Copy/Copy.d.ts +7 -0
  30. package/dist/types/fui/components/Copy/Copy.stories.d.ts +6 -0
  31. package/dist/types/fui/components/Copy/Copy.test.d.ts +1 -0
  32. package/dist/types/fui/components/Copy/Copy.types.d.ts +41 -0
  33. package/dist/types/fui/components/Copy/index.d.ts +1 -0
  34. package/dist/types/fui/components/Form/Form.d.ts +8 -0
  35. package/dist/types/fui/components/Form/Form.stories.d.ts +7 -0
  36. package/dist/types/fui/components/Form/Form.test.d.ts +1 -0
  37. package/dist/types/fui/components/Form/Form.types.d.ts +21 -0
  38. package/dist/types/fui/components/Form/index.d.ts +1 -0
  39. package/dist/types/fui/components/FormField/FormField.d.ts +8 -0
  40. package/dist/types/fui/components/FormField/FormField.stories.d.ts +7 -0
  41. package/dist/types/fui/components/FormField/FormField.test.d.ts +1 -0
  42. package/dist/types/fui/components/FormField/FormField.types.d.ts +25 -0
  43. package/dist/types/fui/components/FormField/index.d.ts +1 -0
  44. package/dist/types/fui/components/FormSelect/FormSelect.d.ts +4 -0
  45. package/dist/types/fui/components/FormSelect/FormSelect.stories.d.ts +6 -0
  46. package/dist/types/fui/components/FormSelect/FormSelect.test.d.ts +1 -0
  47. package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +39 -0
  48. package/dist/types/fui/components/FormSelect/index.d.ts +1 -0
  49. package/dist/types/fui/components/Heading/Heading.d.ts +7 -0
  50. package/dist/types/fui/components/Heading/Heading.stories.d.ts +7 -0
  51. package/dist/types/fui/components/Heading/Heading.test.d.ts +1 -0
  52. package/dist/types/fui/components/Heading/Heading.types.d.ts +31 -0
  53. package/dist/types/fui/components/Heading/index.d.ts +1 -0
  54. package/dist/types/fui/components/Hr/Hr.d.ts +5 -0
  55. package/dist/types/fui/components/Hr/Hr.stories.d.ts +6 -0
  56. package/dist/types/fui/components/Hr/Hr.test.d.ts +1 -0
  57. package/dist/types/fui/components/Hr/index.d.ts +1 -0
  58. package/dist/types/fui/components/Icon/Icon.d.ts +11 -0
  59. package/dist/types/fui/components/Icon/Icon.stories.d.ts +6 -0
  60. package/dist/types/fui/components/Icon/Icon.test.d.ts +1 -0
  61. package/dist/types/fui/components/Icon/Icon.types.d.ts +7 -0
  62. package/dist/types/fui/components/Icon/index.d.ts +1 -0
  63. package/dist/types/fui/components/Image/Image.d.ts +7 -0
  64. package/dist/types/fui/components/Image/Image.stories.d.ts +6 -0
  65. package/dist/types/fui/components/Image/Image.test.d.ts +1 -0
  66. package/dist/types/fui/components/Image/Image.types.d.ts +16 -0
  67. package/dist/types/fui/components/Image/index.d.ts +1 -0
  68. package/dist/types/fui/components/Link/Link.d.ts +7 -0
  69. package/dist/types/fui/components/Link/Link.stories.d.ts +6 -0
  70. package/dist/types/fui/components/Link/Link.test.d.ts +1 -0
  71. package/dist/types/fui/components/Link/Link.types.d.ts +12 -0
  72. package/dist/types/fui/components/Link/index.d.ts +1 -0
  73. package/dist/types/fui/components/List/List.d.ts +7 -0
  74. package/dist/types/fui/components/List/List.stories.d.ts +6 -0
  75. package/dist/types/fui/components/List/List.test.d.ts +1 -0
  76. package/dist/types/fui/components/List/List.types.d.ts +25 -0
  77. package/dist/types/fui/components/List/index.d.ts +1 -0
  78. package/dist/types/fui/components/ListItem/ListItem.d.ts +7 -0
  79. package/dist/types/fui/components/ListItem/ListItem.test.d.ts +1 -0
  80. package/dist/types/fui/components/ListItem/ListItem.types.d.ts +8 -0
  81. package/dist/types/fui/components/ListItem/index.d.ts +1 -0
  82. package/dist/types/fui/components/Loader/Loader.d.ts +7 -0
  83. package/dist/types/fui/components/Loader/Loader.stories.d.ts +6 -0
  84. package/dist/types/fui/components/Loader/Loader.test.d.ts +1 -0
  85. package/dist/types/fui/components/Loader/Loader.types.d.ts +4 -0
  86. package/dist/types/fui/components/Loader/index.d.ts +1 -0
  87. package/dist/types/fui/components/Notice/Notice.d.ts +7 -0
  88. package/dist/types/fui/components/Notice/Notice.stories.d.ts +6 -0
  89. package/dist/types/fui/components/Notice/Notice.test.d.ts +1 -0
  90. package/dist/types/fui/components/Notice/Notice.types.d.ts +5 -0
  91. package/dist/types/fui/components/Notice/index.d.ts +1 -0
  92. package/dist/types/fui/components/TextInput/TextInput.d.ts +5 -0
  93. package/dist/types/fui/components/TextInput/TextInput.stories.d.ts +6 -0
  94. package/dist/types/fui/components/TextInput/TextInput.test.d.ts +1 -0
  95. package/dist/types/fui/components/TextInput/TextInput.types.d.ts +31 -0
  96. package/dist/types/fui/components/TextInput/index.d.ts +1 -0
  97. package/dist/types/fui/components/index.d.ts +15 -0
  98. package/dist/types/fui/context/ThemeContext.d.ts +18 -0
  99. package/dist/types/fui/index.d.ts +1 -0
  100. package/dist/types/fui/setupTests.d.ts +1 -0
  101. package/dist/types/fui/stories/Header.d.ts +11 -0
  102. package/dist/types/fui/stories/Header.stories.d.ts +8 -0
  103. package/dist/types/fui/stories/Page.d.ts +2 -0
  104. package/dist/types/fui/stories/Page.stories.d.ts +8 -0
  105. package/package.json +2 -4
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ /** The form inputs and content. */
4
+ children: React.ReactNode;
5
+ /** Additional classes. */
6
+ className?: string;
7
+ /** Disable form inputs validation. */
8
+ noValidate?: boolean;
9
+ /** The submit handler that will fire once the form is submitted. */
10
+ onSubmit: (values: {
11
+ [k: string]: FormDataEntryValue;
12
+ }) => void;
13
+ /** The label for the submit button. */
14
+ submit: string;
15
+ /** Hide submit button. */
16
+ hideSubmit?: boolean;
17
+ /** The aria-label attribute value for the submit button. */
18
+ ariaSubmitLabel?: string;
19
+ /** Unique form submit button id. */
20
+ submitID?: string;
21
+ }
@@ -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, className, label, required, ...rest }: 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,25 @@
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
+ }
@@ -0,0 +1 @@
1
+ export { default } from './FormField';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Props } from './FormSelect.types';
3
+ declare const FormSelect: ({ id, name, options, required, className, iconColor, label, itemIcon, selectIconDown, selectIconUp, }: Props) => React.ReactElement;
4
+ export default FormSelect;
@@ -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,39 @@
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 select visible default label value. */
11
+ label?: string;
12
+ /** The selected option's value. */
13
+ options: Array<OptionsType>;
14
+ /** Unique id for the field, required for a11y. */
15
+ id: 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
+ }
33
+ export interface ItemProps {
34
+ children: React.ReactNode;
35
+ value: string;
36
+ itemIcon: string;
37
+ iconColor?: string;
38
+ }
39
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './FormSelect';
@@ -0,0 +1,7 @@
1
+ import { Props } from './Heading.types';
2
+ declare const Heading: {
3
+ ({ children, tag, transform, align, id, testID, flush, className }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default Heading;
7
+ export type { Props };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Heading from '.';
3
+ declare const meta: Meta<typeof Heading>;
4
+ type Story = StoryObj<typeof Heading>;
5
+ export declare const Default: Story;
6
+ export declare const Examples: Story;
7
+ export default meta;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export declare enum HeadingTag {
3
+ H1 = "h1",
4
+ H2 = "h2",
5
+ H3 = "h3",
6
+ H4 = "h4",
7
+ H5 = "h5"
8
+ }
9
+ export declare enum HeadingAlign {
10
+ LEFT = "left",
11
+ CENTER = "center",
12
+ RIGHT = "right",
13
+ JUSTIFY = "justify",
14
+ NOWRAP = "nowrap"
15
+ }
16
+ export declare enum HeadingTransform {
17
+ LOWERCASE = "lowercase",
18
+ UPPERCASE = "uppercase",
19
+ CAPITALIZE = "capitalize",
20
+ NORMAL_CASE = "normal-case"
21
+ }
22
+ export interface Props {
23
+ children: string | React.ReactNode;
24
+ tag: HeadingTag;
25
+ align?: HeadingAlign;
26
+ transform?: HeadingTransform;
27
+ id?: string;
28
+ testID?: string;
29
+ flush?: boolean;
30
+ className?: string;
31
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Heading';
@@ -0,0 +1,5 @@
1
+ declare const Hr: {
2
+ (): React.ReactElement;
3
+ displayName: string;
4
+ };
5
+ export default Hr;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Hr from '.';
3
+ declare const meta: Meta<typeof Hr>;
4
+ type Story = StoryObj<typeof Hr>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Hr';
@@ -0,0 +1,11 @@
1
+ import { Props } from './Icon.types';
2
+ /**
3
+ * Icon component
4
+ * List of supported icons can be found at https://icon-sets.iconify.design.
5
+ */
6
+ declare const Icon: {
7
+ ({ name, size, color, id, testID }: Props): React.ReactElement;
8
+ displayName: string;
9
+ };
10
+ export default Icon;
11
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Icon from '.';
3
+ declare const meta: Meta<typeof Icon>;
4
+ type Story = StoryObj<typeof Icon>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ name: string;
3
+ size: number;
4
+ color?: string;
5
+ id?: string;
6
+ testID?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Icon';
@@ -0,0 +1,7 @@
1
+ import { Props } from './Image.types';
2
+ declare const Image: {
3
+ ({ src, alt, title, caption, figure, onLoad, id, className, testID, }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default Image;
7
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Image from '.';
3
+ declare const meta: Meta<typeof Image>;
4
+ type Story = StoryObj<typeof Image>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export type Props = {
2
+ src: string;
3
+ alt: string;
4
+ title?: string;
5
+ onLoad?: () => void;
6
+ /** Image caption, will display as a `figure` if set. */
7
+ caption?: string;
8
+ /** Display within a `figure`. */
9
+ figure?: boolean;
10
+ /** The image will take up the entire width of the container. */
11
+ fluid?: boolean;
12
+ crossOrigin?: 'anonymous' | 'use-credentials';
13
+ id?: string;
14
+ testID?: string;
15
+ className?: string;
16
+ };
@@ -0,0 +1 @@
1
+ export { default } from './Image';
@@ -0,0 +1,7 @@
1
+ import { Props } from './Link.types';
2
+ declare const Link: {
3
+ ({ href, children, onClick, history, target, id, testID, className }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default Link;
7
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Link from '.';
3
+ declare const meta: Meta<typeof Link>;
4
+ type Story = StoryObj<typeof Link>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { History } from 'history';
3
+ export interface Props {
4
+ href: string;
5
+ children: React.ReactNode;
6
+ history?: History;
7
+ target?: '_self' | '_blank' | '_parent' | '_top';
8
+ onClick?: React.MouseEventHandler;
9
+ id?: string;
10
+ testID?: string;
11
+ className?: string;
12
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Link';
@@ -0,0 +1,7 @@
1
+ import { Props } from './List.types';
2
+ declare const List: {
3
+ ({ variants, children, as, id, testID, className }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default List;
7
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import List from '.';
3
+ declare const meta: Meta<typeof List>;
4
+ type Story = StoryObj<typeof List>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export type VariantsTypes = 'unstyled' | 'inline' | 'small' | 'large';
3
+ export declare enum Variants {
4
+ UNSTYLED = "unstyled",
5
+ INLINE = "inline",
6
+ SMALL = "small",
7
+ LARGE = "large"
8
+ }
9
+ export declare enum ListTag {
10
+ OL = "ol",
11
+ UL = "ul",
12
+ DL = "dl",
13
+ DIV = "div",
14
+ DT = "dt",
15
+ DD = "dd",
16
+ LI = "li"
17
+ }
18
+ export type Props = {
19
+ variants?: Array<Variants>;
20
+ children: string | React.ReactNode | Array<React.ReactNode>;
21
+ as: ListTag;
22
+ id?: string;
23
+ testID?: string;
24
+ className?: string;
25
+ };
@@ -0,0 +1 @@
1
+ export { default } from './List';
@@ -0,0 +1,7 @@
1
+ import { Props } from './ListItem.types';
2
+ declare const ListItem: {
3
+ ({ children, as: Tag, id, testID, className }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default ListItem;
7
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ children: string | Array<React.ReactNode> | React.ReactNode | Array<any> | any;
4
+ as: 'li' | 'dt' | 'dd';
5
+ id?: string;
6
+ testID?: string;
7
+ className?: string;
8
+ };
@@ -0,0 +1 @@
1
+ export { default } from './ListItem';
@@ -0,0 +1,7 @@
1
+ import { Props } from './Loader.types';
2
+ declare const Loader: {
3
+ ({ size }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default Loader;
7
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Loader from '.';
3
+ declare const meta: Meta<typeof Loader>;
4
+ type Story = StoryObj<typeof Loader>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface Props {
2
+ color?: string;
3
+ size?: number;
4
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Loader';
@@ -0,0 +1,7 @@
1
+ import { Props } from './Notice.types';
2
+ declare const Notice: {
3
+ ({ foo, id, testID }: Props): React.ReactElement;
4
+ displayName: string;
5
+ };
6
+ export default Notice;
7
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Notice from '.';
3
+ declare const meta: Meta<typeof Notice>;
4
+ type Story = StoryObj<typeof Notice>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface Props {
2
+ foo: string;
3
+ id?: string;
4
+ testID?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Notice';
@@ -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,31 @@
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_LOCAL = "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
+ }
@@ -0,0 +1 @@
1
+ export { default } from './TextInput';
@@ -0,0 +1,15 @@
1
+ export { default as Blockquote } from './Blockquote';
2
+ export { default as Button } from './Button';
3
+ export { default as Copy } from './Copy';
4
+ export { default as Hr } from './Hr';
5
+ export { default as Heading } from './Heading';
6
+ export { default as Icon } from './Icon';
7
+ export { default as Image } from './Image';
8
+ export { default as Link } from './Link';
9
+ export { default as List } from './List';
10
+ export { default as ListItem } from './ListItem';
11
+ export { default as Notice } from './Notice';
12
+ export { default as Loader } from './Loader';
13
+ export { default as Container } from './Container';
14
+ export { default as ContentPageLayout } from './ContentPageLayout';
15
+ export { default as ContentRowsLayout } from './ContentRowsLayout';
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ interface Brand {
3
+ logo: string;
4
+ name: string;
5
+ }
6
+ interface ThemeContextProps {
7
+ isDarkTheme: boolean;
8
+ toggleTheme: () => void;
9
+ brand?: Brand;
10
+ }
11
+ export declare const defaultTheme: ThemeContextProps;
12
+ export declare const ThemeContext: React.Context<ThemeContextProps>;
13
+ interface ThemeProviderProps {
14
+ children: React.ReactNode;
15
+ theme: ThemeContextProps;
16
+ }
17
+ declare const ThemeProvider: ({ children, theme }: ThemeProviderProps) => React.ReactElement;
18
+ export default ThemeProvider;
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,11 @@
1
+ type User = {
2
+ name: string;
3
+ };
4
+ interface HeaderProps {
5
+ user?: User;
6
+ onLogin: () => void;
7
+ onLogout: () => void;
8
+ onCreateAccount: () => void;
9
+ }
10
+ export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Header } from './Header';
3
+ declare const meta: Meta<typeof Header>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Header>;
6
+ export declare const Default: Story;
7
+ export declare const LoggedIn: Story;
8
+ export declare const LoggedOut: Story;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Page: React.FC;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Page } from './Page';
3
+ declare const meta: Meta<typeof Page>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Page>;
6
+ export declare const Default: Story;
7
+ export declare const LoggedOut: Story;
8
+ export declare const LoggedIn: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,7 +24,7 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "447d74b2f86e4116720ad372d13751eb4fbc1fa7",
27
+ "gitHead": "07799f8e3c5c4ff651953516dc903d493073a2a9",
28
28
  "dependencies": {
29
29
  "@headlessui/react": "^1.7.8",
30
30
  "@heroicons/react": "^2.0.14",
@@ -58,13 +58,11 @@
58
58
  "@radix-ui/react-tooltip": "^1.0.0",
59
59
  "@tailwindcss/forms": "^0.5.2",
60
60
  "classnames": "^2.5.1",
61
- "final-form": "^4.20.10",
62
61
  "history": "^5.3.0",
63
62
  "react": "^18.2.0",
64
63
  "react-content-loader": "^6.2.1",
65
64
  "react-device-detect": "^2.2.3",
66
65
  "react-dom": "^18.2.0",
67
- "react-final-form": "^6.5.9",
68
66
  "react-scripts": "^5.0.1",
69
67
  "tailwindcss": "^3.4.1",
70
68
  "tailwindcss-radix": "^2.8.0",