@fluidattacks/design 1.2.26 → 1.2.27

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.
@@ -1,5 +1,7 @@
1
1
  interface IStyledContainerProps {
2
2
  $center?: boolean;
3
+ $styleMd?: string;
4
+ $styleSm?: string;
3
5
  }
4
6
  declare const StyledContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('../@core').IPaddingModifiable | keyof import('../@core').IMarginModifiable | keyof import('../@core').IPositionModifiable | keyof import('../@core').IBorderModifiable | keyof import('../@core').IDisplayModifiable | keyof import('../@core').ITextModifiable | keyof import('../@core').IInteractionModifiable> & import('../@core').IBorderModifiable & import('../@core').IDisplayModifiable & import('../@core').IInteractionModifiable & import('../@core').IMarginModifiable & import('../@core').IPaddingModifiable & import('../@core').IPositionModifiable & import('../@core').ITextModifiable, "ref"> & {
5
7
  ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
@@ -16,5 +16,7 @@ interface IContainerProps extends TModifiable, HTMLAttributes<HTMLDivElement> {
16
16
  center?: boolean;
17
17
  onHover?: () => void;
18
18
  onLeave?: () => void;
19
+ styleMd?: string;
20
+ styleSm?: string;
19
21
  }
20
22
  export type { IContainerProps };
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { FormItem } from './styles';
3
+ import { IFormProps } from './types';
4
+ declare const Form: ({ children, name, onSubmit, submitDisabled, submitLabel, }: Readonly<PropsWithChildren<IFormProps>>) => JSX.Element;
5
+ export { Form, FormItem };
@@ -0,0 +1,4 @@
1
+ declare const StyledForm: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
2
+ declare const StyledInnerContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ declare const FormItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export { FormItem, StyledForm, StyledInnerContainer };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Form component props.
3
+ * @interface IFormProps
4
+ * @property {string} name The name of the form.
5
+ * @property {Function} [onSubmit] Callback to be executed when form is submitted.
6
+ * @property {boolean} [submitDisabled] Whether the submit button should be disabled.
7
+ * @property {string} [submitLabel] The label to show on submit.
8
+ */
9
+ interface IFormProps {
10
+ name: string;
11
+ onSubmit?: React.FormEventHandler<HTMLFormElement>;
12
+ submitDisabled?: boolean;
13
+ submitLabel?: string;
14
+ }
15
+ export type { IFormProps };
@@ -1,3 +1,3 @@
1
1
  import { IInputProps } from '../../types';
2
- declare const PhoneInput: import('react').ForwardRefExoticComponent<Readonly<IInputProps> & import('react').RefAttributes<unknown>>;
2
+ declare const PhoneInput: ({ disabled, error, id, label, mode, name, required, tooltip, value, ...props }: Readonly<IInputProps>) => JSX.Element;
3
3
  export { PhoneInput };
@@ -1,4 +1,4 @@
1
1
  import { PhoneInput } from './fields/phone';
2
2
  import { TextInput } from './fields/text-input';
3
- import { Label } from './label';
4
- export { Label, PhoneInput, TextInput };
3
+ import { OutlineContainer } from './outline-container';
4
+ export { OutlineContainer, PhoneInput, TextInput };
@@ -5,6 +5,7 @@ export * from './components/checkbox';
5
5
  export * from './components/cloud-image';
6
6
  export * from './components/colors';
7
7
  export * from './components/container';
8
+ export * from './components/form';
8
9
  export * from './components/icon';
9
10
  export * from './components/inputs';
10
11
  export * from './components/language-selector';
package/package.json CHANGED
@@ -16,15 +16,15 @@
16
16
  },
17
17
  "description": "Fluidattacks core components library",
18
18
  "devDependencies": {
19
- "@storybook/addon-a11y": "8.4.3",
20
- "@storybook/addon-essentials": "8.4.3",
21
- "@storybook/addon-interactions": "8.4.3",
22
- "@storybook/addon-links": "8.4.3",
23
- "@storybook/addon-viewport": "8.4.3",
24
- "@storybook/blocks": "8.4.3",
25
- "@storybook/react": "8.4.3",
26
- "@storybook/react-vite": "8.4.3",
27
- "@storybook/test": "8.4.3",
19
+ "@storybook/addon-a11y": "8.4.5",
20
+ "@storybook/addon-essentials": "8.4.5",
21
+ "@storybook/addon-interactions": "8.4.5",
22
+ "@storybook/addon-links": "8.4.5",
23
+ "@storybook/addon-viewport": "8.4.5",
24
+ "@storybook/blocks": "8.4.5",
25
+ "@storybook/react": "8.4.5",
26
+ "@storybook/react-vite": "8.4.5",
27
+ "@storybook/test": "8.4.5",
28
28
  "@types/react": "18.2.0",
29
29
  "@types/react-dom": "18.2.0",
30
30
  "@vitejs/plugin-react-swc": "3.7.1",
@@ -43,7 +43,7 @@
43
43
  "postcss": "8.4.49",
44
44
  "postcss-styled-syntax": "0.7.0",
45
45
  "remark-gfm": "4.0.0",
46
- "storybook": "8.4.3",
46
+ "storybook": "8.4.5",
47
47
  "stylelint": "16.10.0",
48
48
  "stylelint-config-standard": "36.0.1",
49
49
  "tailwindcss": "3.4.15",
@@ -74,6 +74,7 @@
74
74
  "name": "@fluidattacks/design",
75
75
  "optionalDependencies": {
76
76
  "@floating-ui/react-dom": "2.1.2",
77
+ "react-hook-form": "7.53.2",
77
78
  "react-router-dom": "6.28.0"
78
79
  },
79
80
  "publishConfig": {
@@ -91,5 +92,5 @@
91
92
  "storybook": "storybook dev"
92
93
  },
93
94
  "types": "dist/src/index.d.ts",
94
- "version": "1.2.26"
95
+ "version": "1.2.27"
95
96
  }