@fluidattacks/design 2.5.0 → 2.6.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 (34) hide show
  1. package/dist/index.js +123 -121
  2. package/dist/index.mjs +2285 -2284
  3. package/dist/types/components/form/index.d.ts +4 -5
  4. package/dist/types/components/form/styles.d.ts +1 -3
  5. package/dist/types/components/form/types.d.ts +14 -8
  6. package/dist/types/components/inputs/fields/editable/index.d.ts +5 -0
  7. package/dist/types/components/inputs/fields/editable/types.d.ts +19 -0
  8. package/dist/types/components/inputs/fields/input/index.d.ts +3 -0
  9. package/dist/types/components/inputs/fields/{text-input → input-file}/index.d.ts +2 -2
  10. package/dist/types/components/inputs/fields/input-file/styles.d.ts +6 -0
  11. package/dist/types/components/inputs/fields/input-tags/index.d.ts +3 -0
  12. package/dist/types/components/inputs/fields/input-tags/styles.d.ts +2 -0
  13. package/dist/types/components/inputs/fields/number/index.d.ts +3 -0
  14. package/dist/types/components/inputs/fields/text-area/index.d.ts +3 -0
  15. package/dist/types/components/inputs/index.d.ts +2 -2
  16. package/dist/types/components/inputs/label/index.d.ts +1 -1
  17. package/dist/types/components/inputs/outline-container/index.d.ts +1 -1
  18. package/dist/types/components/inputs/types.d.ts +48 -10
  19. package/dist/types/components/inputs/utils/action-button/index.d.ts +3 -0
  20. package/dist/types/components/inputs/utils/calendar-button/index.d.ts +8 -0
  21. package/dist/types/components/inputs/utils/dialog/index.d.ts +4 -0
  22. package/dist/types/components/inputs/utils/number-field/index.d.ts +6 -0
  23. package/dist/types/components/inputs/utils/popover/index.d.ts +4 -0
  24. package/dist/types/components/inputs/utils/styles.d.ts +13 -0
  25. package/dist/types/components/inputs/utils/types.d.ts +31 -0
  26. package/dist/types/components/inputs/utils.d.ts +3 -0
  27. package/dist/types/components/logo/types.d.ts +1 -1
  28. package/dist/types/components/slide-out-menu/styles.d.ts +1 -273
  29. package/dist/types/components/typography/styles.d.ts +3 -2
  30. package/dist/types/components/web-form/index.d.ts +5 -0
  31. package/dist/types/components/web-form/styles.d.ts +4 -0
  32. package/dist/types/components/web-form/types.d.ts +15 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/package.json +25 -14
@@ -10,8 +10,8 @@ interface IStyledTextProps {
10
10
  $lineSpacing?: TTextProps["lineSpacing"];
11
11
  $lineSpacingSm?: TTextProps["lineSpacingSm"];
12
12
  $size: TTextProps["size"];
13
- $sizeMd: TTextProps["sizeMd"];
14
- $sizeSm: TTextProps["sizeSm"];
13
+ $sizeMd?: TTextProps["sizeMd"];
14
+ $sizeSm?: TTextProps["sizeSm"];
15
15
  $textFill?: TTextProps["textFill"];
16
16
  $wordBreak?: TTextProps["wordBreak"];
17
17
  }
@@ -22,4 +22,5 @@ declare const StyledText: import("styled-components/dist/types").IStyledComponen
22
22
  ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
23
23
  }, IStyledTextProps>> & string;
24
24
  declare const StyledSpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IStyledTextProps>> & string;
25
+ export type { IStyledTextProps };
25
26
  export { StyledHeading, StyledText, StyledSpan };
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { FormItem } from "./styles";
3
+ import { IFormProps } from "./types";
4
+ declare const WebForm: ({ children, name, onSubmit, submitDisabled, submitLabel, }: Readonly<PropsWithChildren<IFormProps>>) => JSX.Element;
5
+ export { WebForm, 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 };
@@ -60,4 +60,5 @@ export * from "components/toggle-buttons";
60
60
  export * from "components/tooltip";
61
61
  export * from "components/tour";
62
62
  export * from "components/typography";
63
+ export * from "components/web-form";
63
64
  export * from "hooks";
package/package.json CHANGED
@@ -4,18 +4,8 @@
4
4
  "url": "https://gitlab.com/fluidattacks/universe/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@cloudinary/react": "1.13.1",
8
- "@cloudinary/url-gen": "1.21.0",
9
- "@fortawesome/free-solid-svg-icons": "6.7.1",
10
- "@fortawesome/react-fontawesome": "0.2.2",
11
- "lottie-light-react": "2.4.0",
12
- "motion": "11.13.1",
13
- "prismjs": "1.29.0",
14
7
  "react": "18.2.0",
15
8
  "react-dom": "18.2.0",
16
- "react-international-phone": "4.3.0",
17
- "react-joyride": "2.9.3",
18
- "react-tooltip": "5.28.0",
19
9
  "styled-components": "6.1.13"
20
10
  },
21
11
  "description": "Fluidattacks core components library",
@@ -56,7 +46,7 @@
56
46
  "stylelint-config-standard": "36.0.1",
57
47
  "tailwindcss": "3.4.16",
58
48
  "typescript": "5.7.2",
59
- "typescript-eslint": "8.16.0",
49
+ "typescript-eslint": "8.18.0",
60
50
  "vite": "6.0.3",
61
51
  "vite-plugin-css-injected-by-js": "3.5.2"
62
52
  },
@@ -79,10 +69,31 @@
79
69
  "main": "dist/index.mjs",
80
70
  "module": "dist/index.js",
81
71
  "name": "@fluidattacks/design",
82
- "optionalDependencies": {
72
+ "peerDependencies": {
73
+ "@cloudinary/react": "1.13.1",
74
+ "@cloudinary/url-gen": "1.21.0",
83
75
  "@floating-ui/react-dom": "2.1.2",
76
+ "@fortawesome/free-solid-svg-icons": "6.7.1",
77
+ "@fortawesome/react-fontawesome": "0.2.2",
78
+ "@internationalized/date": "3.6.0",
79
+ "@react-aria/button": "3.11.0",
80
+ "@react-aria/calendar": "3.6.0",
81
+ "@react-aria/datepicker": "3.12.0",
82
+ "@react-aria/dialog": "3.5.20",
83
+ "@react-aria/i18n": "3.12.4",
84
+ "@react-aria/overlays": "3.24.0",
85
+ "@react-stately/calendar": "3.6.0",
86
+ "@react-stately/datepicker": "3.11.0",
87
+ "@react-stately/overlays": "3.6.12",
88
+ "@react-types/shared": "3.26.0",
89
+ "lottie-light-react": "2.4.0",
90
+ "motion": "11.13.5",
91
+ "prismjs": "1.29.0",
84
92
  "react-hook-form": "7.53.2",
85
- "react-router-dom": "6.28.0"
93
+ "react-international-phone": "4.3.0",
94
+ "react-router-dom": "6.28.0",
95
+ "react-joyride": "2.9.3",
96
+ "react-tooltip": "5.28.0"
86
97
  },
87
98
  "publishConfig": {
88
99
  "access": "public"
@@ -100,5 +111,5 @@
100
111
  "test-storybook": "test-storybook"
101
112
  },
102
113
  "types": "dist/types/index.d.ts",
103
- "version": "2.5.0"
114
+ "version": "2.6.0"
104
115
  }