@fluidattacks/design 1.2.30 → 1.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.
Files changed (42) hide show
  1. package/dist/design.js +591 -266
  2. package/dist/design.mjs +12073 -7756
  3. package/dist/src/components/@core/types.d.ts +1 -1
  4. package/dist/src/components/alert/index.d.ts +4 -0
  5. package/dist/src/components/alert/styles.d.ts +9 -0
  6. package/dist/src/components/alert/types.d.ts +23 -0
  7. package/dist/src/components/carousel/index.d.ts +4 -0
  8. package/dist/src/components/carousel/styles.d.ts +10 -0
  9. package/dist/src/components/carousel/types.d.ts +19 -0
  10. package/dist/src/components/checkbox/index.d.ts +1 -1
  11. package/dist/src/components/code-snippet/index.d.ts +3 -0
  12. package/dist/src/components/code-snippet/location-code/index.d.ts +3 -0
  13. package/dist/src/components/code-snippet/styles.d.ts +3 -0
  14. package/dist/src/components/code-snippet/types.d.ts +22 -0
  15. package/dist/src/components/divider/index.d.ts +3 -0
  16. package/dist/src/components/divider/types.d.ts +11 -0
  17. package/dist/src/components/file-preview/index.d.ts +3 -0
  18. package/dist/src/components/file-preview/styles.d.ts +6 -0
  19. package/dist/src/components/file-preview/types.d.ts +20 -0
  20. package/dist/src/components/file-preview/utils.d.ts +5 -0
  21. package/dist/src/components/inputs/fields/phone/index.d.ts +1 -1
  22. package/dist/src/components/inputs/types.d.ts +1 -1
  23. package/dist/src/components/link/index.d.ts +5 -0
  24. package/dist/src/components/link/styles.d.ts +8 -0
  25. package/dist/src/components/link/types.d.ts +22 -0
  26. package/dist/src/components/list-item/index.d.ts +4 -0
  27. package/dist/src/components/list-item/styles.d.ts +3 -0
  28. package/dist/src/components/list-item/types.d.ts +28 -0
  29. package/dist/src/components/logo-carousel/styles.d.ts +1 -1
  30. package/dist/src/components/plan-card/index.d.ts +3 -0
  31. package/dist/src/components/plan-card/recommended-tag/index.d.ts +2 -0
  32. package/dist/src/components/plan-card/styles.d.ts +3 -0
  33. package/dist/src/components/plan-card/types.d.ts +47 -0
  34. package/dist/src/components/plan-card/utils.d.ts +5 -0
  35. package/dist/src/components/radio-button/index.d.ts +1 -1
  36. package/dist/src/hooks/index.d.ts +2 -1
  37. package/dist/src/hooks/use-carousel.d.ts +6 -0
  38. package/dist/src/index.d.ts +8 -0
  39. package/package.json +17 -13
  40. package/dist/src/components/icon-card/index.d.ts +0 -3
  41. package/dist/src/components/icon-card/styles.d.ts +0 -2
  42. package/dist/src/components/icon-card/types.d.ts +0 -10
@@ -83,7 +83,7 @@ interface DefaultTheme {
83
83
  type TSize = keyof DefaultTheme["typography"]["heading"];
84
84
  type TSpacing = keyof DefaultTheme["spacing"];
85
85
  type TShadows = keyof DefaultTheme["shadows"];
86
- type TIconSize = "xl" | "lg" | "md" | "sm" | "xs" | "xxs";
86
+ type TIconSize = "xl" | "lg" | "md" | "sm" | "xs" | "xxs" | "xxss";
87
87
  type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
88
88
  type TMode = "dark" | "light";
89
89
  interface IPaddingModifiable {
@@ -0,0 +1,4 @@
1
+ import { IAlertProps } from './types';
2
+ declare const Alert: import('react').ForwardRefExoticComponent<Readonly<IAlertProps> & import('react').RefAttributes<HTMLDivElement>>;
3
+ export type { IAlertProps };
4
+ export { Alert };
@@ -0,0 +1,9 @@
1
+ import { IconName } from '@fortawesome/free-solid-svg-icons';
2
+ import { TAlertAndNotifyVariant } from './types';
3
+ interface IStyledAlertAndNotifyProps {
4
+ $variant?: TAlertAndNotifyVariant;
5
+ }
6
+ declare const getIcon: (variant: TAlertAndNotifyVariant) => IconName;
7
+ declare const AlertContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IStyledAlertAndNotifyProps>> & string;
8
+ declare const MessageContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export { getIcon, AlertContainer, MessageContainer };
@@ -0,0 +1,23 @@
1
+ import { Dispatch, HTMLAttributes, SetStateAction } from 'react';
2
+ import { IMarginModifiable } from '../@core/types';
3
+ type TAlertAndNotifyVariant = "error" | "info" | "success" | "warning";
4
+ /**
5
+ * Alert component props.
6
+ * @interface IAlertProps
7
+ * @extends IMarginModifiable
8
+ * @property {boolean} [autoHide] - Automatically hide the alert after a certain time.
9
+ * @property {boolean} [closable] - Whether the alert should be closable.
10
+ * @property {boolean} [show] - Whether the alert should be visible.
11
+ * @property {number} [time] - The duration (in seconds) to show the alert.
12
+ * @property {Function} [onTimeOut] - Callback function to be executed when the alert timeout.
13
+ * @property {TAlertAndNotifyVariant} [variant] - The variant of the alert (error, info, success, warning).
14
+ */
15
+ interface IAlertProps extends IMarginModifiable, HTMLAttributes<HTMLDivElement> {
16
+ autoHide?: boolean;
17
+ closable?: boolean;
18
+ show?: boolean;
19
+ time?: 4 | 8 | 12;
20
+ onTimeOut?: Dispatch<SetStateAction<boolean>>;
21
+ variant?: TAlertAndNotifyVariant;
22
+ }
23
+ export type { IAlertProps, TAlertAndNotifyVariant };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ICarouselProps } from './types';
3
+ declare const Carousel: FC<ICarouselProps>;
4
+ export { Carousel };
@@ -0,0 +1,10 @@
1
+ declare const CarouselContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const CarouselWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $currentIndex: number;
4
+ }>> & string;
5
+ declare const CarouselSlide: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ declare const NavButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
7
+ $isActive: boolean;
8
+ }>> & string;
9
+ declare const NavContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export { CarouselContainer, CarouselWrapper, CarouselSlide, NavContainer, NavButton, };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Slide component props.
3
+ * @interface ISlide
4
+ * @property {JSX.Element} content - The content to be displayed in the slide.
5
+ */
6
+ interface ISlide {
7
+ content: JSX.Element;
8
+ }
9
+ /**
10
+ * Carousel component props.
11
+ * @interface ICarouselProps
12
+ * @property {ISlide[]} slides - The array of slides to be displayed in the carousel.
13
+ * @property {number} [interval] - The interval (in milliseconds) between slide transitions. Default is 300.
14
+ */
15
+ interface ICarouselProps {
16
+ slides: ISlide[];
17
+ interval?: number;
18
+ }
19
+ export type { ICarouselProps, ISlide };
@@ -1,3 +1,3 @@
1
1
  import { ICheckboxProps } from './types';
2
- declare const Checkbox: ({ defaultChecked, disabled, label, name, onChange, onClick, onFocus, onKeyDown, value, variant, }: Readonly<ICheckboxProps>) => JSX.Element;
2
+ declare const Checkbox: import('react').ForwardRefExoticComponent<Readonly<ICheckboxProps> & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export { Checkbox };
@@ -0,0 +1,3 @@
1
+ import { ICodeSnippetProps } from './types';
2
+ declare const CodeSnippet: ({ noCodeMessage, snippet, }: Readonly<ICodeSnippetProps>) => JSX.Element;
3
+ export { CodeSnippet };
@@ -0,0 +1,3 @@
1
+ import { ICodeSnippetProps } from '../types';
2
+ declare const Code: ({ noCodeMessage, snippet, specific, }: Readonly<ICodeSnippetProps>) => JSX.Element;
3
+ export { Code };
@@ -0,0 +1,3 @@
1
+ declare const CodeContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const ButtonsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export { ButtonsContainer, CodeContainer };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Snippet props.
3
+ * @interface ISnippet
4
+ * @property {string} content - The code snippet content.
5
+ * @property {number} offset - The offset of the code snippet in the source code.
6
+ */
7
+ interface ISnippet {
8
+ content: string;
9
+ offset: number;
10
+ }
11
+ /**
12
+ * Code snippet component props.
13
+ * @property {string} [noCodeMessage] - Message to display when no code snippet is provided.
14
+ * @property {ISnippet | string} snippet - The code snippet object.
15
+ * @property {string} [specific] - Additional information related to the code snippet.
16
+ */
17
+ interface ICodeSnippetProps {
18
+ noCodeMessage?: string;
19
+ snippet: ISnippet | string;
20
+ specific?: string;
21
+ }
22
+ export type { ICodeSnippetProps };
@@ -0,0 +1,3 @@
1
+ import { IDividerProps } from './types';
2
+ declare const Divider: import('react').ForwardRefExoticComponent<Readonly<IDividerProps> & import('react').RefAttributes<HTMLHRElement>>;
3
+ export { Divider };
@@ -0,0 +1,11 @@
1
+ import { IMarginModifiable } from '../@core/types';
2
+ /**
3
+ * Divider component props.
4
+ * @interface IDividerProps
5
+ * @extends IMarginModifiable
6
+ * @property {string} [color] - The divider color.
7
+ */
8
+ interface IDividerProps extends IMarginModifiable {
9
+ color?: string;
10
+ }
11
+ export type { IDividerProps };
@@ -0,0 +1,3 @@
1
+ import { IFilePreviewProps } from './types';
2
+ declare const FilePreview: ({ alt, fileType, width, opacity, src, height, }: Readonly<IFilePreviewProps>) => JSX.Element;
3
+ export { FilePreview };
@@ -0,0 +1,6 @@
1
+ import { IContainerProps } from '../container/types';
2
+ interface IPreviewContainer extends IContainerProps {
3
+ $opacity: number;
4
+ }
5
+ declare const PreviewContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<Readonly<import('react').PropsWithChildren<IContainerProps>> & import('react').RefAttributes<HTMLDivElement>, Readonly<import('react').PropsWithChildren<IContainerProps>> & import('react').RefAttributes<HTMLDivElement>>, IPreviewContainer>, never>> & string & Omit<import('react').ForwardRefExoticComponent<Readonly<import('react').PropsWithChildren<IContainerProps>> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
6
+ export { PreviewContainer };
@@ -0,0 +1,20 @@
1
+ type TFileType = "image" | "video";
2
+ /**
3
+ * File preview component props.
4
+ * @interface IFilePreviewProps
5
+ * @property { string } alt - The alt attribute for the image.
6
+ * @property { TFileType } fileType - The type of the file (image or video).
7
+ * @property { string } [height] - The height of the image or video.
8
+ * @property { number } [opacity] - The opacity of the file preview.
9
+ * @property { string } src - The source URL of the image or video.
10
+ * @property { string } [width] - The width of the image or video.
11
+ */
12
+ interface IFilePreviewProps {
13
+ alt: string;
14
+ fileType: TFileType;
15
+ height?: string;
16
+ opacity?: number;
17
+ src: string;
18
+ width?: string;
19
+ }
20
+ export type { IFilePreviewProps };
@@ -0,0 +1,5 @@
1
+ import { IFilePreviewProps } from './types';
2
+ declare const getFileExtension: (filename: string | undefined) => string;
3
+ declare const hasExtension: (allowedExtensions: Readonly<string[] | string>, filename?: string) => boolean;
4
+ declare const filesTypeMapper: Record<string, IFilePreviewProps["fileType"]>;
5
+ export { filesTypeMapper, getFileExtension, hasExtension };
@@ -1,3 +1,3 @@
1
1
  import { IInputProps } from '../../types';
2
- declare const PhoneInput: ({ disabled, error, id, label, mode, name, required, tooltip, value, ...props }: Readonly<IInputProps>) => JSX.Element;
2
+ declare const PhoneInput: import('react').ForwardRefExoticComponent<Readonly<IInputProps> & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export { PhoneInput };
@@ -43,6 +43,6 @@ interface IOutlineContainerProps extends ILabelProps {
43
43
  */
44
44
  interface IInputProps extends InputHTMLAttributes<HTMLInputElement>, Partial<ILabelProps> {
45
45
  error?: string;
46
- id: string;
46
+ name: string;
47
47
  }
48
48
  export type { IInputProps, ILabelProps, IOutlineContainerProps };
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ILinkProps } from './types';
3
+ declare const Link: ({ children, color, download, href, iconPosition, onClick, target, variant, }: Readonly<PropsWithChildren<ILinkProps>>) => JSX.Element;
4
+ export type { ILinkProps };
5
+ export { Link };
@@ -0,0 +1,8 @@
1
+ import { TVariant } from './types';
2
+ interface IStyledLinkProps {
3
+ $color?: string;
4
+ $variant: TVariant;
5
+ }
6
+ declare const StyledExternalLink: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, IStyledLinkProps>> & string;
7
+ declare const StyledInternalLink: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react-router-dom').LinkProps & import('react').RefAttributes<HTMLAnchorElement>, IStyledLinkProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('react-router-dom').LinkProps & import('react').RefAttributes<HTMLAnchorElement>>, keyof import('react').Component<any, {}, any>>;
8
+ export { StyledExternalLink, StyledInternalLink };
@@ -0,0 +1,22 @@
1
+ type TVariant = "highRelevance" | "lowRelevance";
2
+ type TIconPosition = "hidden" | "left" | "right";
3
+ /**
4
+ * Link component props.
5
+ * @interface ILinkProps
6
+ * @extends React.AnchorHTMLAttributes<HTMLAnchorElement>
7
+ * @property { string } [color] - The color of the link.
8
+ * @property { string } href - The URL of the link.
9
+ * @property { TIconPosition } [iconPosition] - The position of the icon.
10
+ * @property {Function} [onClick] - The callback function for when the link is clicked.
11
+ * @property {React.HTMLAttributeAnchorTarget} [target] - The target attribute for the link.
12
+ * @property { TVariant } [variant] - The variant of the link.
13
+ */
14
+ interface ILinkProps extends Partial<Pick<HTMLAnchorElement, "download">> {
15
+ color?: string;
16
+ href: string;
17
+ iconPosition?: TIconPosition;
18
+ onClick?: () => void;
19
+ target?: React.HTMLAttributeAnchorTarget;
20
+ variant?: TVariant;
21
+ }
22
+ export type { TVariant, ILinkProps };
@@ -0,0 +1,4 @@
1
+ import { ListItemsWrapper } from './styles';
2
+ import { IListItemProps } from './types';
3
+ declare const ListItem: ({ children, disabled, icon, iconType, href, onClick, onKeyDown, selected, value, ...props }: Readonly<IListItemProps>) => JSX.Element;
4
+ export { ListItem, ListItemsWrapper };
@@ -0,0 +1,3 @@
1
+ declare const Li: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
2
+ declare const ListItemsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
3
+ export { Li, ListItemsWrapper };
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes, HTMLProps } from 'react';
2
+ import { IIconModifiable } from '../@core';
3
+ /**
4
+ * Label component props.
5
+ * @interface ILabelProps
6
+ * @property { string } color - The color for the label.
7
+ * @property { string } [href] - The URL for the label.
8
+ */
9
+ interface ILabelProps {
10
+ color: string;
11
+ href?: string;
12
+ }
13
+ /**
14
+ * List item component props.
15
+ * @interface IListItemProps
16
+ * @extends IIconModifiable
17
+ * @extends HTMLAttributes<HTMLLIElement>
18
+ * @property { string } [header] - The header text for the list item.
19
+ * @property { string } [href] - The URL for the list item.
20
+ * @property { boolean } [selected] - Whether the list item is selected.
21
+ * @property { string } [value] - The value for the list item.
22
+ */
23
+ interface IListItemProps extends Partial<Pick<IIconModifiable, "icon" | "iconType">>, HTMLAttributes<HTMLLIElement>, HTMLProps<HTMLLIElement> {
24
+ href?: string;
25
+ selected?: boolean;
26
+ value?: string;
27
+ }
28
+ export type { IListItemProps, ILabelProps };
@@ -1,4 +1,4 @@
1
1
  declare const ClientsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- declare const Rectangle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGRectElement>, never>> & string;
2
+ declare const Rectangle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  declare const SlideShow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  export { ClientsContainer, Rectangle, SlideShow };
@@ -0,0 +1,3 @@
1
+ import { IPlanCardProps } from './types';
2
+ declare const PlanCard: ({ description: customDescription, onClick, plan, }: Readonly<IPlanCardProps>) => JSX.Element;
3
+ export { PlanCard };
@@ -0,0 +1,2 @@
1
+ declare const RecommendedTag: () => JSX.Element;
2
+ export { RecommendedTag };
@@ -0,0 +1,3 @@
1
+ declare const OverviewCardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const FullCardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export { OverviewCardContainer, FullCardContainer };
@@ -0,0 +1,47 @@
1
+ import { IconName } from '@fortawesome/free-solid-svg-icons';
2
+ type TPlan = "advanced" | "essential";
3
+ type TVersion = "full" | "overview";
4
+ /**
5
+ * Plan component props.
6
+ * @interface IPlanProps
7
+ * @property { string } benefits - Benefits of the plan.
8
+ * @property { string } buttonText - Text for the plan's button.
9
+ * @property { string } description - Description of the plan.
10
+ * @property { string } [priceAuthor] - Plan's price per group.
11
+ * @property { string } [priceGroup] - Plan's price per author.
12
+ */
13
+ interface IPlanProps {
14
+ benefits: string;
15
+ buttonText: string;
16
+ description: string;
17
+ priceAuthor?: string;
18
+ priceGroup?: string;
19
+ title: string;
20
+ }
21
+ /**
22
+ * Plan features component props.
23
+ * @interface IPlanFeaturesProps
24
+ * @property { string } description - Description of the plan feature.
25
+ * @property { IconName } icon - Icon for the plan feature.
26
+ * @property { string } title - Title of the plan feature.
27
+ */
28
+ interface IPlanFeatureProps {
29
+ description: string;
30
+ icon: IconName;
31
+ title: string;
32
+ }
33
+ /**
34
+ * Plan card component props.
35
+ * @interface IPlanCardProps
36
+ * @property { string } [description] - Description of the plan.
37
+ * @property { Function } onClick - Function to call when button is clicked.
38
+ * @property { TPlan } plan - Type of plan (advanced or essential).
39
+ * @property { TVersion } [version] - Version of the card (full or overview).
40
+ */
41
+ interface IPlanCardProps {
42
+ description?: string;
43
+ onClick: () => void;
44
+ plan: TPlan;
45
+ version?: TVersion;
46
+ }
47
+ export type { IPlanCardProps, IPlanFeatureProps, IPlanProps, TPlan };
@@ -0,0 +1,5 @@
1
+ import { IPlanFeatureProps, IPlanProps, TPlan } from './types';
2
+ declare const plans: Record<TPlan, IPlanProps>;
3
+ declare const advancedPlanFeatures: IPlanFeatureProps[];
4
+ declare const essentialPlanFeatures: IPlanFeatureProps[];
5
+ export { advancedPlanFeatures, essentialPlanFeatures, plans };
@@ -1,3 +1,3 @@
1
1
  import { IRadioButtonProps } from './types';
2
- declare const RadioButton: ({ defaultChecked, disabled, label, name, onChange, onClick, value, variant, }: Readonly<IRadioButtonProps>) => JSX.Element;
2
+ declare const RadioButton: import('react').ForwardRefExoticComponent<Omit<Readonly<IRadioButtonProps>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export { RadioButton };
@@ -1,3 +1,4 @@
1
+ import { useCarousel } from './use-carousel';
1
2
  import { useClickOutside } from './use-click-outside';
2
3
  import { useCloudinaryImage } from './use-cloudinary-image';
3
- export { useCloudinaryImage, useClickOutside };
4
+ export { useCarousel, useCloudinaryImage, useClickOutside };
@@ -0,0 +1,6 @@
1
+ export declare const useCarousel: (delay: number, numberOfCycles: number) => {
2
+ cycle: number;
3
+ progress: number;
4
+ setCycle: React.Dispatch<React.SetStateAction<number>>;
5
+ setProgress: React.Dispatch<React.SetStateAction<number>>;
6
+ };
@@ -1,18 +1,25 @@
1
1
  export * from './components/@core';
2
2
  export * from './components/accordion';
3
+ export * from './components/alert';
3
4
  export * from './components/button';
5
+ export * from './components/carousel';
4
6
  export * from './components/checkbox';
5
7
  export * from './components/cloud-image';
8
+ export * from './components/code-snippet';
6
9
  export * from './components/colors';
7
10
  export * from './components/container';
8
11
  export * from './components/content-card';
9
12
  export * from './components/content-card-carousel';
13
+ export * from './components/divider';
14
+ export * from './components/file-preview';
10
15
  export * from './components/form';
11
16
  export * from './components/icon';
12
17
  export * from './components/icon-button';
13
18
  export * from './components/inputs';
14
19
  export * from './components/interactive-card';
15
20
  export * from './components/language-selector';
21
+ export * from './components/link';
22
+ export * from './components/list-item';
16
23
  export * from './components/logo';
17
24
  export * from './components/logo-carousel';
18
25
  export * from './components/message-banner';
@@ -24,3 +31,4 @@ export * from './components/tabs';
24
31
  export * from './components/toggle-buttons';
25
32
  export * from './components/tooltip';
26
33
  export * from './components/typography';
34
+ export * from './hooks';
package/package.json CHANGED
@@ -8,6 +8,7 @@
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",
11
+ "prismjs": "1.29.0",
11
12
  "react": "18.2.0",
12
13
  "react-dom": "18.2.0",
13
14
  "react-international-phone": "4.3.0",
@@ -16,15 +17,17 @@
16
17
  },
17
18
  "description": "Fluidattacks core components library",
18
19
  "devDependencies": {
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",
20
+ "@storybook/addon-a11y": "8.4.6",
21
+ "@storybook/addon-essentials": "8.4.6",
22
+ "@storybook/addon-interactions": "8.4.6",
23
+ "@storybook/addon-links": "8.4.6",
24
+ "@storybook/addon-viewport": "8.4.6",
25
+ "@storybook/blocks": "8.4.6",
26
+ "@storybook/react": "8.4.6",
27
+ "@storybook/react-vite": "8.4.6",
28
+ "@storybook/test": "8.4.6",
29
+ "@storybook/test-runner": "0.20.1",
30
+ "@types/prismjs": "1.26.5",
28
31
  "@types/react": "18.2.0",
29
32
  "@types/react-dom": "18.2.0",
30
33
  "@vitejs/plugin-react-swc": "3.7.1",
@@ -43,8 +46,8 @@
43
46
  "postcss": "8.4.49",
44
47
  "postcss-styled-syntax": "0.7.0",
45
48
  "remark-gfm": "4.0.0",
46
- "storybook": "8.4.5",
47
- "stylelint": "16.10.0",
49
+ "storybook": "8.4.6",
50
+ "stylelint": "16.11.0",
48
51
  "stylelint-config-standard": "36.0.1",
49
52
  "tailwindcss": "3.4.15",
50
53
  "typescript": "5.7.2",
@@ -89,8 +92,9 @@
89
92
  "build-storybook": "storybook build",
90
93
  "dev": "vite",
91
94
  "preview": "vite preview",
92
- "storybook": "storybook dev"
95
+ "storybook": "storybook dev",
96
+ "test-storybook": "test-storybook"
93
97
  },
94
98
  "types": "dist/src/index.d.ts",
95
- "version": "1.2.30"
99
+ "version": "1.4.0"
96
100
  }
@@ -1,3 +0,0 @@
1
- import { IIconCardProps } from './types';
2
- declare const IconCard: ({ icon }: Readonly<IIconCardProps>) => JSX.Element;
3
- export { IconCard };
@@ -1,2 +0,0 @@
1
- declare const IconCardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export { IconCardContainer };
@@ -1,10 +0,0 @@
1
- type DefaultIconNames = "book-open" | "bullseye" | "briefcase" | "calendar-xmark" | "diagram-venn" | "file" | "headset" | "infinity" | "messages-question" | "radar" | "scanner-touchscreen" | "screwdriver-wrench" | "sidebar" | "user-robot";
2
- /**
3
- * Icon card props interface.
4
- * @interface IconCardProps
5
- * @property { DefaultIconNames } icon - Custom selection of FontAwesome icons.
6
- */
7
- interface IIconCardProps {
8
- icon: DefaultIconNames;
9
- }
10
- export type { IIconCardProps };