@fluidattacks/design 2.3.0 → 2.5.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/dist/index.js +267 -197
- package/dist/index.mjs +9970 -9346
- package/dist/types/components/card/card-header/index.d.ts +3 -0
- package/dist/types/components/card/card-with-image/index.d.ts +4 -0
- package/dist/types/components/card/card-with-selector/index.d.ts +3 -0
- package/dist/types/components/card/card-with-switch/index.d.ts +3 -0
- package/dist/types/components/card/index.d.ts +5 -0
- package/dist/types/components/card/types.d.ts +93 -0
- package/dist/types/components/confirm-dialog/index.d.ts +11 -0
- package/dist/types/components/confirm-dialog/types.d.ts +13 -0
- package/dist/types/components/empty-state/empty-button/index.d.ts +8 -0
- package/dist/types/components/empty-state/index.d.ts +3 -0
- package/dist/types/components/empty-state/styles.d.ts +8 -0
- package/dist/types/components/empty-state/types.d.ts +35 -0
- package/dist/types/components/file-preview/types.d.ts +1 -1
- package/dist/types/components/grid-container/index.d.ts +4 -0
- package/dist/types/components/grid-container/styles.d.ts +12 -0
- package/dist/types/components/grid-container/types.d.ts +17 -0
- package/dist/types/components/group-selector/index.d.ts +3 -0
- package/dist/types/components/group-selector/option-container/index.d.ts +4 -0
- package/dist/types/components/group-selector/styles.d.ts +7 -0
- package/dist/types/components/group-selector/types.d.ts +44 -0
- package/dist/types/components/indicator-card/index.d.ts +5 -0
- package/dist/types/components/indicator-card/types.d.ts +30 -0
- package/dist/types/components/modal/index.d.ts +5 -0
- package/dist/types/components/modal/modal-confirm/index.d.ts +3 -0
- package/dist/types/components/modal/modal-footer/index.d.ts +3 -0
- package/dist/types/components/modal/modal-header/index.d.ts +3 -0
- package/dist/types/components/modal/styles.d.ts +16 -0
- package/dist/types/components/modal/types.d.ts +87 -0
- package/dist/types/components/oauth-selector/index.d.ts +5 -0
- package/dist/types/components/oauth-selector/option-container/index.d.ts +3 -0
- package/dist/types/components/oauth-selector/types.d.ts +45 -0
- package/dist/types/components/pop-up/description/index.d.ts +5 -0
- package/dist/types/components/pop-up/index.d.ts +4 -0
- package/dist/types/components/pop-up/types.d.ts +58 -0
- package/dist/types/components/search/styles.d.ts +1 -3
- package/dist/types/components/typography/index.d.ts +2 -1
- package/dist/types/components/typography/span/index.d.ts +3 -0
- package/dist/types/components/typography/styles.d.ts +3 -1
- package/dist/types/components/typography/types.d.ts +4 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/use-modal.d.ts +11 -0
- package/dist/types/index.d.ts +10 -0
- package/package.json +14 -14
|
@@ -2,6 +2,7 @@ import type { TTextProps } from "./types";
|
|
|
2
2
|
interface IStyledTextProps {
|
|
3
3
|
$bgGradient?: TTextProps["bgGradient"];
|
|
4
4
|
$color?: TTextProps["color"];
|
|
5
|
+
$content?: TTextProps["content"];
|
|
5
6
|
$display?: TTextProps["display"];
|
|
6
7
|
$fontFamily?: TTextProps["fontFamily"];
|
|
7
8
|
$fontWeight?: TTextProps["fontWeight"];
|
|
@@ -20,4 +21,5 @@ declare const StyledHeading: import("styled-components/dist/types").IStyledCompo
|
|
|
20
21
|
declare const StyledText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("components/@core").IPaddingModifiable | keyof import("components/@core").IMarginModifiable | keyof import("components/@core").IPositionModifiable | keyof import("components/@core").IBorderModifiable | keyof import("components/@core").IDisplayModifiable | keyof import("components/@core").ITextModifiable | keyof import("components/@core").IInteractionModifiable> & import("components/@core").IBorderModifiable & import("components/@core").IDisplayModifiable & import("components/@core").IInteractionModifiable & import("components/@core").IMarginModifiable & import("components/@core").IPaddingModifiable & import("components/@core").IPositionModifiable & import("components/@core").ITextModifiable, "ref"> & {
|
|
21
22
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
22
23
|
}, IStyledTextProps>> & string;
|
|
23
|
-
|
|
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 { StyledHeading, StyledText, StyledSpan };
|
|
@@ -7,13 +7,17 @@ import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable
|
|
|
7
7
|
* @extends IPaddingModifiable
|
|
8
8
|
* @extends ISizeModifiable
|
|
9
9
|
* @extends ITextModifiable
|
|
10
|
+
* @property {Property.Background} [bgGradient] - Background gradient.
|
|
10
11
|
* @property {string} [className] - Additional class names.
|
|
12
|
+
* @property {string} [content] - Text content.
|
|
11
13
|
* @property {Display} [display] - Text display layout.
|
|
12
14
|
* @property {LineHeight<number | string>} - Line height in mobile resolution.
|
|
15
|
+
* @property {Property.WebkitTextFillColor} [textFill] - Text fill color.
|
|
13
16
|
*/
|
|
14
17
|
interface ITypographyProps extends IMarginModifiable, ISizeModifiable, IPaddingModifiable, Omit<ITextModifiable, "fontSize"> {
|
|
15
18
|
bgGradient?: Property.Background;
|
|
16
19
|
className?: string;
|
|
20
|
+
content?: string;
|
|
17
21
|
display?: Property.Display;
|
|
18
22
|
lineSpacingSm?: Property.LineHeight<number | string>;
|
|
19
23
|
textFill?: Property.WebkitTextFillColor;
|
|
@@ -2,5 +2,7 @@ import { useCarousel } from "./use-carousel";
|
|
|
2
2
|
import { useClickOutside } from "./use-click-outside";
|
|
3
3
|
import { useCloudinaryImage } from "./use-cloudinary-image";
|
|
4
4
|
import { useDebouncedCallback } from "./use-debounced-callback";
|
|
5
|
+
import { type IUseModal, useModal } from "./use-modal";
|
|
5
6
|
import { useSearch } from "./use-search";
|
|
6
|
-
export {
|
|
7
|
+
export type { IUseModal };
|
|
8
|
+
export { useCarousel, useCloudinaryImage, useClickOutside, useDebouncedCallback, useModal, useSearch, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IUseModal {
|
|
2
|
+
open: () => void;
|
|
3
|
+
close: () => void;
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
setIsOpen: (value: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const useModal: (name: string) => IUseModal;
|
|
10
|
+
export type { IUseModal };
|
|
11
|
+
export { useModal };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,19 +3,25 @@ export * from "components/@core";
|
|
|
3
3
|
export * from "components/accordion";
|
|
4
4
|
export * from "components/alert";
|
|
5
5
|
export * from "components/button";
|
|
6
|
+
export * from "components/card";
|
|
6
7
|
export * from "components/carousel";
|
|
7
8
|
export * from "components/checkbox";
|
|
8
9
|
export * from "components/cloud-image";
|
|
9
10
|
export * from "components/code-snippet";
|
|
10
11
|
export * from "components/colors";
|
|
12
|
+
export * from "components/confirm-dialog";
|
|
11
13
|
export * from "components/container";
|
|
12
14
|
export * from "components/content-card";
|
|
13
15
|
export * from "components/content-card-carousel";
|
|
14
16
|
export * from "components/divider";
|
|
17
|
+
export * from "components/empty-state";
|
|
15
18
|
export * from "components/file-preview";
|
|
16
19
|
export * from "components/form";
|
|
20
|
+
export * from "components/grid-container";
|
|
21
|
+
export * from "components/group-selector";
|
|
17
22
|
export * from "components/icon";
|
|
18
23
|
export * from "components/icon-button";
|
|
24
|
+
export * from "components/indicator-card";
|
|
19
25
|
export * from "components/inputs";
|
|
20
26
|
export * from "components/interactive-card";
|
|
21
27
|
export * from "components/language-selector";
|
|
@@ -28,13 +34,17 @@ export * from "components/logo-carousel";
|
|
|
28
34
|
export * from "components/lottie";
|
|
29
35
|
export * from "components/menu";
|
|
30
36
|
export * from "components/message-banner";
|
|
37
|
+
export * from "components/modal";
|
|
31
38
|
export * from "components/notification";
|
|
32
39
|
export * from "components/notification-sign";
|
|
33
40
|
export * from "components/number-input";
|
|
41
|
+
export * from "components/oauth-selector";
|
|
34
42
|
export * from "components/premium-feature";
|
|
35
43
|
export * from "components/progress";
|
|
44
|
+
export * from "components/pop-up";
|
|
36
45
|
export * from "components/radio-button";
|
|
37
46
|
export * from "components/scroll-button";
|
|
47
|
+
export * from "components/search";
|
|
38
48
|
export * from "components/search-bar";
|
|
39
49
|
export * from "components/severity-badge";
|
|
40
50
|
export * from "components/severity-overview";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://gitlab.com/fluidattacks/universe/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@cloudinary/react": "1.13.
|
|
7
|
+
"@cloudinary/react": "1.13.1",
|
|
8
8
|
"@cloudinary/url-gen": "1.21.0",
|
|
9
9
|
"@fortawesome/free-solid-svg-icons": "6.7.1",
|
|
10
10
|
"@fortawesome/react-fontawesome": "0.2.2",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"description": "Fluidattacks core components library",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@rollup/plugin-terser": "0.4.4",
|
|
24
|
-
"@storybook/addon-a11y": "8.4.
|
|
25
|
-
"@storybook/addon-essentials": "8.4.
|
|
26
|
-
"@storybook/addon-interactions": "8.4.
|
|
27
|
-
"@storybook/addon-links": "8.4.
|
|
28
|
-
"@storybook/addon-viewport": "8.4.
|
|
29
|
-
"@storybook/blocks": "8.4.
|
|
30
|
-
"@storybook/react": "8.4.
|
|
31
|
-
"@storybook/react-vite": "8.4.
|
|
32
|
-
"@storybook/test": "8.4.
|
|
24
|
+
"@storybook/addon-a11y": "8.4.7",
|
|
25
|
+
"@storybook/addon-essentials": "8.4.7",
|
|
26
|
+
"@storybook/addon-interactions": "8.4.7",
|
|
27
|
+
"@storybook/addon-links": "8.4.7",
|
|
28
|
+
"@storybook/addon-viewport": "8.4.7",
|
|
29
|
+
"@storybook/blocks": "8.4.7",
|
|
30
|
+
"@storybook/react": "8.4.7",
|
|
31
|
+
"@storybook/react-vite": "8.4.7",
|
|
32
|
+
"@storybook/test": "8.4.7",
|
|
33
33
|
"@storybook/test-runner": "0.20.1",
|
|
34
34
|
"@types/prismjs": "1.26.5",
|
|
35
35
|
"@types/react": "18.2.0",
|
|
36
36
|
"@types/react-dom": "18.2.0",
|
|
37
|
-
"@vitejs/plugin-react-swc": "3.7.
|
|
37
|
+
"@vitejs/plugin-react-swc": "3.7.2",
|
|
38
38
|
"autoprefixer": "10.4.20",
|
|
39
39
|
"eslint": "9.14.0",
|
|
40
40
|
"eslint-config-prettier": "9.1.0",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"postcss-styled-syntax": "0.7.0",
|
|
52
52
|
"remark-gfm": "4.0.0",
|
|
53
53
|
"rollup-plugin-visualizer": "5.12.0",
|
|
54
|
-
"storybook": "8.4.
|
|
54
|
+
"storybook": "8.4.7",
|
|
55
55
|
"stylelint": "16.11.0",
|
|
56
56
|
"stylelint-config-standard": "36.0.1",
|
|
57
57
|
"tailwindcss": "3.4.16",
|
|
58
58
|
"typescript": "5.7.2",
|
|
59
59
|
"typescript-eslint": "8.16.0",
|
|
60
|
-
"vite": "
|
|
60
|
+
"vite": "6.0.3",
|
|
61
61
|
"vite-plugin-css-injected-by-js": "3.5.2"
|
|
62
62
|
},
|
|
63
63
|
"eslintConfig": {
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"test-storybook": "test-storybook"
|
|
101
101
|
},
|
|
102
102
|
"types": "dist/types/index.d.ts",
|
|
103
|
-
"version": "2.
|
|
103
|
+
"version": "2.5.0"
|
|
104
104
|
}
|