@fluidattacks/design 2.2.0 → 2.4.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 +182 -132
- package/dist/index.mjs +8594 -8107
- 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/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/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/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 +4 -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/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 +4 -1
- package/dist/types/hooks/use-debounced-callback.d.ts +4 -0
- package/dist/types/hooks/use-modal.d.ts +11 -0
- package/dist/types/hooks/use-search.d.ts +5 -0
- package/dist/types/index.d.ts +9 -1
- package/package.json +15 -15
- /package/dist/types/components/{progress-bar → progress}/utils.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const StyledGroupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$itemsLength: number;
|
|
3
|
+
}>> & string;
|
|
4
|
+
declare const OptionBoxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$isSelected?: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export { StyledGroupContainer, OptionBoxContainer };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
type TVariant = "organization-selector";
|
|
2
|
+
/**
|
|
3
|
+
* Item handlers.
|
|
4
|
+
* @interface IItemHandlers
|
|
5
|
+
* @property { Function } [handleNewOrganization] - Handle new organization.
|
|
6
|
+
* @property { Function } [onSelect] - Handle select item.
|
|
7
|
+
* @property { Function } [onClose] - Handle close.
|
|
8
|
+
*/
|
|
9
|
+
interface IItemHandlers {
|
|
10
|
+
handleNewOrganization?: () => void;
|
|
11
|
+
onSelect?: (itemName: string) => void;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Group selector component props.
|
|
16
|
+
* @interface IGroupSelectorProps
|
|
17
|
+
* @extends IItemHandlers
|
|
18
|
+
* @property { boolean } [isOpen] - Group selector is open.
|
|
19
|
+
* @property { {name: string}[] } items - Items to display.
|
|
20
|
+
* @property { string } [selectedItem] - Selected item.
|
|
21
|
+
* @property { string } title - Group selector title.
|
|
22
|
+
* @property { TVariant } [variant] - Group selector variant.
|
|
23
|
+
*/
|
|
24
|
+
interface IGroupSelectorProps extends IItemHandlers {
|
|
25
|
+
isOpen?: boolean;
|
|
26
|
+
items: {
|
|
27
|
+
name: string;
|
|
28
|
+
}[];
|
|
29
|
+
selectedItem: string;
|
|
30
|
+
title: string;
|
|
31
|
+
variant?: TVariant;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Option component props.
|
|
35
|
+
* @interface IOptionProps
|
|
36
|
+
* @extends IItemHandlers
|
|
37
|
+
* @property { boolean } [isSelected] - Option is selected.
|
|
38
|
+
* @property { string } label - Option label.
|
|
39
|
+
*/
|
|
40
|
+
interface IOptionProps extends IItemHandlers {
|
|
41
|
+
isSelected?: boolean;
|
|
42
|
+
label: string;
|
|
43
|
+
}
|
|
44
|
+
export type { IGroupSelectorProps, IOptionProps, TVariant };
|
|
@@ -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,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { OptionContainer } from "./option-container";
|
|
3
|
+
import type { IOAuthSelectorProps } from "./types";
|
|
4
|
+
declare const OAuthSelector: ({ align, buttonLabel, children, id, manualOption, providers, }: Readonly<PropsWithChildren<IOAuthSelectorProps>>) => JSX.Element;
|
|
5
|
+
export { OAuthSelector, OptionContainer };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Property } from "csstype";
|
|
2
|
+
import type { MouseEventHandler } from "react";
|
|
3
|
+
import { IIconModifiable } from "components/@core";
|
|
4
|
+
type TOAuthProvider = "Azure" | "Bitbucket" | "GitHub" | "GitLab";
|
|
5
|
+
/**
|
|
6
|
+
* Shared props for OAuth selector.
|
|
7
|
+
* @interface ISharedProps
|
|
8
|
+
* @property {string} [label] - Label to display on the button.
|
|
9
|
+
* @property {Function} onClick - Function to be called when the button is clicked.
|
|
10
|
+
*/
|
|
11
|
+
interface ISharedProps {
|
|
12
|
+
label?: string;
|
|
13
|
+
onClick: MouseEventHandler<HTMLOrSVGElement>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Oauth selector component props.
|
|
17
|
+
* @interface IOAuthSelectorProps
|
|
18
|
+
* @property {string} [align] - Alignment of the button.
|
|
19
|
+
* @property {string} [buttonLabel] - Label to display on the button.
|
|
20
|
+
* @property {string} [id] - Id to be used on the button.
|
|
21
|
+
* @property {ISharedProps} [manualOption] - Object with the label and onClick function for the manual option.
|
|
22
|
+
* @property {Record} [providers] - Object with the providers and their onClick function.
|
|
23
|
+
*/
|
|
24
|
+
interface IOAuthSelectorProps {
|
|
25
|
+
align?: Property.AlignItems;
|
|
26
|
+
buttonLabel?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
manualOption?: ISharedProps;
|
|
29
|
+
providers: Partial<Record<TOAuthProvider, {
|
|
30
|
+
onClick: MouseEventHandler<HTMLOrSVGElement>;
|
|
31
|
+
}>>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Option container component props.
|
|
35
|
+
* @interface IOptionContainerProps
|
|
36
|
+
* @extends IIconModifiable
|
|
37
|
+
* @extends ISharedProps
|
|
38
|
+
* @property {boolean} [onlyLabel] - Whether to only display the label.
|
|
39
|
+
* @property {TOAuthProvider} [provider] - Provider to display.
|
|
40
|
+
*/
|
|
41
|
+
interface IOptionContainerProps extends Partial<Pick<IIconModifiable, "icon">>, ISharedProps {
|
|
42
|
+
onlyLabel?: boolean;
|
|
43
|
+
provider?: TOAuthProvider;
|
|
44
|
+
}
|
|
45
|
+
export type { IOAuthSelectorProps, IOptionContainerProps, TOAuthProvider };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { IPopUpProps } from "./types";
|
|
3
|
+
declare const PopUp: ({ _portal, cancelButton, darkBackground, children, confirmButton, container, description, highlightDescription, image, maxWidth, title, titleColor, }: Readonly<PropsWithChildren<IPopUpProps>>) => JSX.Element;
|
|
4
|
+
export { PopUp };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TVariant } from "components/button/types";
|
|
2
|
+
/**
|
|
3
|
+
* Pop up button props.
|
|
4
|
+
* @interface IButtonProps
|
|
5
|
+
* @property { string } [key] - The name of the button.
|
|
6
|
+
* @property { Function } onClick - The function to call when the button is clicked
|
|
7
|
+
* @property { string } text - The text of the button.
|
|
8
|
+
* @property { TVariant } [variant] - The variant of the button.
|
|
9
|
+
*/
|
|
10
|
+
interface IButtonProps {
|
|
11
|
+
key?: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
text: string;
|
|
14
|
+
variant?: TVariant;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Pop up image props.
|
|
18
|
+
* @interface IImageProps
|
|
19
|
+
* @property { string } alt - The alt of the image.
|
|
20
|
+
* @property { string } src - The URL of the image.
|
|
21
|
+
* @property { string } [height] - The height of the image.
|
|
22
|
+
* @property { string } [width] - The weight of the image.
|
|
23
|
+
*/
|
|
24
|
+
interface IImageProps {
|
|
25
|
+
alt: string;
|
|
26
|
+
src: string;
|
|
27
|
+
height?: string;
|
|
28
|
+
width?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Pop up component props.
|
|
32
|
+
* @interface IPopUpProps
|
|
33
|
+
* @property { boolean } [_portal] - Whether the pop up should be rendered in a portal.
|
|
34
|
+
* @property { boolean } [darkBackground] - Whether the pop up should have a dark background.
|
|
35
|
+
* @property { IButtonProps } [cancelButton] - The cancel button of the pop up.
|
|
36
|
+
* @property { IButtonProps } [confirmButton] - The confirm button of the pop up.
|
|
37
|
+
* @property { HTMLElement | null } [container] - The container of the pop up.
|
|
38
|
+
* @property { IImageProps } image - The image of the pop up.
|
|
39
|
+
* @property { string } title - The title of the pop up.
|
|
40
|
+
* @property { string } [titleColor] - The color of the title.
|
|
41
|
+
* @property { string } description - The description of the pop up.
|
|
42
|
+
* @property { string[] | string } [highlightDescription] - The highlight description of the pop up.
|
|
43
|
+
* @property { string } [maxWidth] - The max width of the pop up.
|
|
44
|
+
*/
|
|
45
|
+
interface IPopUpProps {
|
|
46
|
+
_portal?: boolean;
|
|
47
|
+
darkBackground?: boolean;
|
|
48
|
+
cancelButton?: IButtonProps;
|
|
49
|
+
confirmButton?: IButtonProps;
|
|
50
|
+
container?: HTMLElement | null;
|
|
51
|
+
image: IImageProps;
|
|
52
|
+
title: string;
|
|
53
|
+
titleColor?: string;
|
|
54
|
+
description: string;
|
|
55
|
+
highlightDescription?: string[] | string;
|
|
56
|
+
maxWidth?: string;
|
|
57
|
+
}
|
|
58
|
+
export type { IPopUpProps };
|
|
@@ -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,4 @@
|
|
|
1
|
+
declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
2
|
+
declare const OutlineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const OutlineDropdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
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 };
|
|
@@ -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;
|
|
@@ -1,4 +1,7 @@
|
|
|
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 { useModal } from "./use-modal";
|
|
6
|
+
import { useSearch } from "./use-search";
|
|
7
|
+
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
|
@@ -14,6 +14,7 @@ export * from "components/content-card-carousel";
|
|
|
14
14
|
export * from "components/divider";
|
|
15
15
|
export * from "components/file-preview";
|
|
16
16
|
export * from "components/form";
|
|
17
|
+
export * from "components/group-selector";
|
|
17
18
|
export * from "components/icon";
|
|
18
19
|
export * from "components/icon-button";
|
|
19
20
|
export * from "components/inputs";
|
|
@@ -22,19 +23,26 @@ export * from "components/language-selector";
|
|
|
22
23
|
export * from "components/link";
|
|
23
24
|
export * from "components/list-item";
|
|
24
25
|
export * from "components/little-flag";
|
|
26
|
+
export * from "components/loading";
|
|
25
27
|
export * from "components/logo";
|
|
26
28
|
export * from "components/logo-carousel";
|
|
27
29
|
export * from "components/lottie";
|
|
30
|
+
export * from "components/menu";
|
|
28
31
|
export * from "components/message-banner";
|
|
29
32
|
export * from "components/notification";
|
|
30
33
|
export * from "components/notification-sign";
|
|
31
34
|
export * from "components/number-input";
|
|
35
|
+
export * from "components/oauth-selector";
|
|
32
36
|
export * from "components/premium-feature";
|
|
33
|
-
export * from "components/progress
|
|
37
|
+
export * from "components/progress";
|
|
38
|
+
export * from "components/pop-up";
|
|
34
39
|
export * from "components/radio-button";
|
|
40
|
+
export * from "components/scroll-button";
|
|
41
|
+
export * from "components/search";
|
|
35
42
|
export * from "components/search-bar";
|
|
36
43
|
export * from "components/severity-badge";
|
|
37
44
|
export * from "components/severity-overview";
|
|
45
|
+
export * from "components/show-on-hover";
|
|
38
46
|
export * from "components/slide-out-menu";
|
|
39
47
|
export * from "components/step-lapse";
|
|
40
48
|
export * from "components/table-button";
|
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
|
-
"tailwindcss": "3.4.
|
|
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.4.0"
|
|
104
104
|
}
|
|
File without changes
|