@fluidattacks/design 2.2.0 → 2.3.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 +141 -93
- package/dist/index.mjs +3245 -3136
- package/dist/types/components/loading/index.d.ts +4 -0
- package/dist/types/components/loading/styles.d.ts +9 -0
- package/dist/types/components/loading/types.d.ts +15 -0
- package/dist/types/components/progress/index.d.ts +4 -0
- package/dist/types/components/progress/styles.d.ts +6 -0
- package/dist/types/components/progress/types.d.ts +12 -0
- package/dist/types/components/progress-bar/index.d.ts +1 -2
- package/dist/types/components/progress-bar/styles.d.ts +12 -5
- package/dist/types/components/progress-bar/types.d.ts +20 -8
- package/dist/types/components/scroll-button/index.d.ts +4 -0
- package/dist/types/components/scroll-button/styles.d.ts +4 -0
- package/dist/types/components/scroll-button/types.d.ts +11 -0
- package/dist/types/components/search/index.d.ts +3 -0
- package/dist/types/components/search/styles.d.ts +6 -0
- package/dist/types/components/search/types.d.ts +10 -0
- package/dist/types/components/show-on-hover/index.d.ts +3 -0
- package/dist/types/components/show-on-hover/styles.d.ts +2 -0
- package/dist/types/components/show-on-hover/types.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/use-debounced-callback.d.ts +4 -0
- package/dist/types/hooks/use-search.d.ts +5 -0
- package/dist/types/index.d.ts +5 -1
- package/package.json +2 -2
- /package/dist/types/components/{progress-bar → progress}/utils.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TColor, TSize } from "./types";
|
|
2
|
+
interface IStyledLoadingProps {
|
|
3
|
+
$color?: TColor;
|
|
4
|
+
$size?: TSize;
|
|
5
|
+
}
|
|
6
|
+
declare const LoadingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGSVGElement>, IStyledLoadingProps>> & string;
|
|
7
|
+
declare const Circle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, IStyledLoadingProps>> & string;
|
|
8
|
+
declare const CircleBg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, IStyledLoadingProps>> & string;
|
|
9
|
+
export { Circle, CircleBg, LoadingContainer };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type TSize = "lg" | "md" | "sm";
|
|
2
|
+
type TColor = "red" | "white";
|
|
3
|
+
/**
|
|
4
|
+
* Loading component props.
|
|
5
|
+
* @interface ILoadingProps
|
|
6
|
+
* @property { TColor } [color] - Color of the loading circle.
|
|
7
|
+
* @property { string } [label] - Label to display inside the loading circle.
|
|
8
|
+
* @property { TSize } [size] - Size of the loading circle
|
|
9
|
+
*/
|
|
10
|
+
interface ILoadingProps {
|
|
11
|
+
color?: TColor;
|
|
12
|
+
label?: string;
|
|
13
|
+
size?: TSize;
|
|
14
|
+
}
|
|
15
|
+
export type { ILoadingProps, TColor, TSize };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const ProgressLine: 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("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"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
$animationTime: number;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export { ProgressLine };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDisplayModifiable } from "components/@core";
|
|
2
|
+
/**
|
|
3
|
+
* Progress bar component props
|
|
4
|
+
* @interface IProgressBarProps
|
|
5
|
+
* @property {number} [progressTime] - Time to complete.
|
|
6
|
+
* @property {Function} [onComplete] - Action when progress complete.
|
|
7
|
+
*/
|
|
8
|
+
interface IProgressBarProps extends IDisplayModifiable {
|
|
9
|
+
progressTime?: number;
|
|
10
|
+
onComplete?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export type { IProgressBarProps };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { IProgressBarProps } from "./types";
|
|
2
|
-
declare const ProgressBar: ({
|
|
2
|
+
declare const ProgressBar: ({ minWidth, percentage, percentageLocation, showPercentage, orientation, rounded, variant, }: Readonly<IProgressBarProps>) => JSX.Element;
|
|
3
3
|
export { ProgressBar };
|
|
4
|
-
export type { IProgressBarProps };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$
|
|
1
|
+
import type { TOrientation, TProgressVariant } from "./types";
|
|
2
|
+
declare const Bar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$minWidth: number;
|
|
4
|
+
$orientation: TOrientation;
|
|
5
|
+
$rounded: boolean;
|
|
6
|
+
$variant: TProgressVariant;
|
|
5
7
|
}>> & string;
|
|
6
|
-
|
|
8
|
+
declare const StyledProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$percentage: number;
|
|
10
|
+
$rounded: boolean;
|
|
11
|
+
$variant: TProgressVariant;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export { Bar, StyledProgressBar };
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
type TOrientation = "horizontal" | "vertical";
|
|
2
|
+
type TPercentageLocation = "left" | "right";
|
|
3
|
+
type TProgressVariant = "compliance" | "default" | "progressIndicator" | "progressIndicatorError" | "small";
|
|
2
4
|
/**
|
|
3
|
-
* Progress bar component props
|
|
5
|
+
* Progress bar component props.
|
|
4
6
|
* @interface IProgressBarProps
|
|
5
|
-
* @property {number} [
|
|
6
|
-
* @property {
|
|
7
|
+
* @property { number } [minWidth] - Minimum width of the progress bar.
|
|
8
|
+
* @property { number } percentage - Percentage of the progress bar.
|
|
9
|
+
* @property { TPercentageLocation } [percentageLocation] - Location of the percentage text.
|
|
10
|
+
* @property { boolean } [rounded] - Whether to round the progress bar corners.
|
|
11
|
+
* @property { boolean } [showPercentage] - Whether to show the percentage text.
|
|
12
|
+
* @property { TOrientation } [orientation] - Orientation of the progress bar.
|
|
13
|
+
* @property { TProgressVariant } [variant] - Progress bar variant.
|
|
7
14
|
*/
|
|
8
|
-
interface IProgressBarProps
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
interface IProgressBarProps {
|
|
16
|
+
minWidth?: number;
|
|
17
|
+
percentage: number;
|
|
18
|
+
percentageLocation?: TPercentageLocation;
|
|
19
|
+
rounded?: boolean;
|
|
20
|
+
showPercentage?: boolean;
|
|
21
|
+
orientation?: TOrientation;
|
|
22
|
+
variant?: TProgressVariant;
|
|
11
23
|
}
|
|
12
|
-
export type { IProgressBarProps };
|
|
24
|
+
export type { IProgressBarProps, TProgressVariant, TOrientation };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const FloatButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}>, never>, never>> & string;
|
|
4
|
+
export { FloatButton };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll up button component props.
|
|
3
|
+
* @interface IScrollUpButtonProps
|
|
4
|
+
* @property { string } [scrollerId] - The ID of the scrollable element.
|
|
5
|
+
* @property { number } [visibleAt] - The pixel value at which the scroll up button should become visible.
|
|
6
|
+
*/
|
|
7
|
+
interface IScrollUpButtonProps {
|
|
8
|
+
scrollerId?: string;
|
|
9
|
+
visibleAt?: number;
|
|
10
|
+
}
|
|
11
|
+
export type { IScrollUpButtonProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
2
|
+
$isEmpty: boolean;
|
|
3
|
+
}>> & string;
|
|
4
|
+
declare const OutlineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const OutlineDropdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export { StyledInput, OutlineContainer, OutlineDropdown };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Search component props interface.
|
|
4
|
+
* @interface ISearchProps
|
|
5
|
+
* @property { boolean } [smallSearch] - Use smaller search bar size.
|
|
6
|
+
*/
|
|
7
|
+
interface ISearchProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
+
smallSearch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type { ISearchProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const ParentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export { ParentContainer };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Show on hover component props.
|
|
4
|
+
* @interface IShowOnHoverProps
|
|
5
|
+
* @property { ReactNode } visibleElement - The element to show by default.
|
|
6
|
+
* @property { ReactNode } hiddenElement - The element to show when hovering.
|
|
7
|
+
*/
|
|
8
|
+
interface IShowOnHoverProps {
|
|
9
|
+
visibleElement: ReactNode;
|
|
10
|
+
hiddenElement: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export type { IShowOnHoverProps };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
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 { useSearch } from "./use-search";
|
|
6
|
+
export { useCarousel, useCloudinaryImage, useClickOutside, useDebouncedCallback, useSearch, };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,19 +22,23 @@ export * from "components/language-selector";
|
|
|
22
22
|
export * from "components/link";
|
|
23
23
|
export * from "components/list-item";
|
|
24
24
|
export * from "components/little-flag";
|
|
25
|
+
export * from "components/loading";
|
|
25
26
|
export * from "components/logo";
|
|
26
27
|
export * from "components/logo-carousel";
|
|
27
28
|
export * from "components/lottie";
|
|
29
|
+
export * from "components/menu";
|
|
28
30
|
export * from "components/message-banner";
|
|
29
31
|
export * from "components/notification";
|
|
30
32
|
export * from "components/notification-sign";
|
|
31
33
|
export * from "components/number-input";
|
|
32
34
|
export * from "components/premium-feature";
|
|
33
|
-
export * from "components/progress
|
|
35
|
+
export * from "components/progress";
|
|
34
36
|
export * from "components/radio-button";
|
|
37
|
+
export * from "components/scroll-button";
|
|
35
38
|
export * from "components/search-bar";
|
|
36
39
|
export * from "components/severity-badge";
|
|
37
40
|
export * from "components/severity-overview";
|
|
41
|
+
export * from "components/show-on-hover";
|
|
38
42
|
export * from "components/slide-out-menu";
|
|
39
43
|
export * from "components/step-lapse";
|
|
40
44
|
export * from "components/table-button";
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"storybook": "8.4.6",
|
|
55
55
|
"stylelint": "16.11.0",
|
|
56
56
|
"stylelint-config-standard": "36.0.1",
|
|
57
|
-
"tailwindcss": "3.4.
|
|
57
|
+
"tailwindcss": "3.4.16",
|
|
58
58
|
"typescript": "5.7.2",
|
|
59
59
|
"typescript-eslint": "8.16.0",
|
|
60
60
|
"vite": "5.4.11",
|
|
@@ -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.3.0"
|
|
104
104
|
}
|
|
File without changes
|