@fluidattacks/design 1.2.23 → 1.2.25
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/design.js +130 -83
- package/dist/design.mjs +1616 -1533
- package/dist/src/components/accordion/types.d.ts +11 -11
- package/dist/src/components/button/types.d.ts +6 -6
- package/dist/src/components/checkbox/types.d.ts +5 -5
- package/dist/src/components/cloud-image/types.d.ts +5 -5
- package/dist/src/components/container/types.d.ts +4 -4
- package/dist/src/components/content-card/event-date/index.d.ts +5 -0
- package/dist/src/components/content-card/index.d.ts +3 -0
- package/dist/src/components/content-card/styles.d.ts +2 -0
- package/dist/src/components/content-card/types.d.ts +37 -0
- package/dist/src/components/icon/types.d.ts +9 -9
- package/dist/src/components/language-selector/types.d.ts +9 -9
- package/dist/src/components/logo/types.d.ts +2 -2
- package/dist/src/components/logo-carousel/index.d.ts +3 -0
- package/dist/src/components/logo-carousel/styles.d.ts +4 -0
- package/dist/src/components/logo-carousel/types.d.ts +11 -0
- package/dist/src/components/logo-carousel/utils.d.ts +2 -0
- package/dist/src/components/message-banner/types.d.ts +7 -7
- package/dist/src/components/notification-sign/types.d.ts +3 -3
- package/dist/src/components/progress-bar/types.d.ts +2 -2
- package/dist/src/components/radio-button/types.d.ts +3 -3
- package/dist/src/components/search-bar/types.d.ts +7 -7
- package/dist/src/components/tabs/types.d.ts +11 -11
- package/dist/src/components/toggle-buttons/types.d.ts +3 -3
- package/dist/src/components/tooltip/types.d.ts +8 -8
- package/dist/src/components/typography/types.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/package.json +26 -26
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
type TVariant = "progress" | "simple" | "platform";
|
|
2
2
|
type TAligned = "end" | "start";
|
|
3
3
|
/**
|
|
4
|
-
* Accordion item
|
|
4
|
+
* Accordion item properties.
|
|
5
5
|
* @interface IAccordionItemProps
|
|
6
|
-
* @property {string} title Accordion title.
|
|
7
|
-
* @property {string} [description] Accordion description.
|
|
8
|
-
* @property {JSX.Element} [extraElement]
|
|
6
|
+
* @property {string} title - Accordion title.
|
|
7
|
+
* @property {string} [description] - Accordion description.
|
|
8
|
+
* @property {JSX.Element} [extraElement] - Additional elements for the accordion.
|
|
9
9
|
*/
|
|
10
10
|
interface IAccordionItemProps {
|
|
11
11
|
title: string;
|
|
@@ -13,15 +13,15 @@ interface IAccordionItemProps {
|
|
|
13
13
|
extraElement?: JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Pass more than 1 item to activate progress variant
|
|
16
|
+
* Pass more than 1 item to activate the progress variant.
|
|
17
17
|
*
|
|
18
|
-
* Accordion component
|
|
18
|
+
* Accordion component properties.
|
|
19
19
|
* @interface IAccordionProps
|
|
20
|
-
* @property {TAligned} [aligned]
|
|
21
|
-
* @property {IAccordionItemProps} items A list of accordion items.
|
|
22
|
-
* @property {number} [progressTime] Time remaining until the next item (in seconds).
|
|
23
|
-
* @property {string} [bgColor]
|
|
24
|
-
* @property {TVariant} [variant] Type of accordion.
|
|
20
|
+
* @property {TAligned} [aligned] - Alignment of the accordion title.
|
|
21
|
+
* @property {IAccordionItemProps[]} items - A list of accordion items.
|
|
22
|
+
* @property {number} [progressTime] - Time remaining until the next item (in seconds).
|
|
23
|
+
* @property {string} [bgColor] - Background color of the accordion.
|
|
24
|
+
* @property {TVariant} [variant] - Type of accordion variant.
|
|
25
25
|
*/
|
|
26
26
|
interface IAccordionProps {
|
|
27
27
|
aligned?: TAligned;
|
|
@@ -11,12 +11,12 @@ type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "terti
|
|
|
11
11
|
* @extends IPaddingModifiable
|
|
12
12
|
* @extends IIconModifiable
|
|
13
13
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
14
|
-
* @property {boolean} [bold] Text bold for link variant.
|
|
15
|
-
* @property {TMode} [mode] The background theme: dark or light.
|
|
16
|
-
* @property {string} [tooltip] Tooltip message.
|
|
17
|
-
* @property {TPlace} [tooltipPlace] Tooltip message relative place.
|
|
18
|
-
* @property {boolean} [underline] Text underlined for link variant.
|
|
19
|
-
* @property {TVariant} [variant] The button variant type.
|
|
14
|
+
* @property {boolean} [bold] - Text bold for link variant.
|
|
15
|
+
* @property {TMode} [mode] - The background theme: dark or light.
|
|
16
|
+
* @property {string} [tooltip] - Tooltip message.
|
|
17
|
+
* @property {TPlace} [tooltipPlace] - Tooltip message relative place.
|
|
18
|
+
* @property {boolean} [underline] - Text underlined for link variant.
|
|
19
|
+
* @property {TVariant} [variant] - The button variant type.
|
|
20
20
|
*/
|
|
21
21
|
interface IButtonProps extends IBorderModifiable, IDisplayModifiable, IMarginModifiable, IPaddingModifiable, Partial<IIconModifiable>, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
22
|
bold?: boolean;
|
|
@@ -4,11 +4,11 @@ type TVariant = "web" | "platform";
|
|
|
4
4
|
* Checkbox props.
|
|
5
5
|
* @interface ICheckboxProps
|
|
6
6
|
* @extends HTMLAttributes<HTMLInputElement>
|
|
7
|
-
* @property {boolean} [disabled] Disable checkbox.
|
|
8
|
-
* @property {string} name Input name.
|
|
9
|
-
* @property {string} [label] Checkbox label.
|
|
10
|
-
* @property {string} [value] Checkbox value.
|
|
11
|
-
* @property {Function} [variant] Checkbox variant type.
|
|
7
|
+
* @property {boolean} [disabled] - Disable checkbox.
|
|
8
|
+
* @property {string} name - Input name.
|
|
9
|
+
* @property {string} [label] - Checkbox label.
|
|
10
|
+
* @property {string} [value] - Checkbox value.
|
|
11
|
+
* @property {Function} [variant] - Checkbox variant type.
|
|
12
12
|
*/
|
|
13
13
|
interface ICheckboxProps extends HTMLAttributes<HTMLInputElement> {
|
|
14
14
|
disabled?: boolean;
|
|
@@ -2,11 +2,11 @@ import { Plugins } from '@cloudinary/html';
|
|
|
2
2
|
/**
|
|
3
3
|
* Cloud image component props.
|
|
4
4
|
* @interface ICloudImageProps
|
|
5
|
-
* @property {string} [alt] The alternate text for an image.
|
|
6
|
-
* @property {number | string} [height] The height of the image.
|
|
7
|
-
* @property {number | string} [width] The width of the image.
|
|
8
|
-
* @property {Plugins} [plugins] A list of cloudinary plugins.
|
|
9
|
-
* @property {string} publicId The publicId location in cloudinary.
|
|
5
|
+
* @property {string} [alt] - The alternate text for an image.
|
|
6
|
+
* @property {number | string} [height] - The height of the image.
|
|
7
|
+
* @property {number | string} [width] - The width of the image.
|
|
8
|
+
* @property {Plugins} [plugins] - A list of cloudinary plugins.
|
|
9
|
+
* @property {string} publicId - The publicId location in cloudinary.
|
|
10
10
|
*/
|
|
11
11
|
interface ICloudImageProps {
|
|
12
12
|
alt?: string;
|
|
@@ -6,10 +6,10 @@ type THtmlTag = keyof ReactHTML;
|
|
|
6
6
|
* @interface IContainerProps
|
|
7
7
|
* @extends TModifiable
|
|
8
8
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
9
|
-
* @property {THtmlTag} [as] The react html tag to represent.
|
|
10
|
-
* @property {boolean} [center] Whether to center the content.
|
|
11
|
-
* @property {Function} [onHover] Function handler for hover event.
|
|
12
|
-
* @property {Function} [onLeave] Function handler for leave event.
|
|
9
|
+
* @property {THtmlTag} [as] - The react html tag to represent.
|
|
10
|
+
* @property {boolean} [center] - Whether to center the content.
|
|
11
|
+
* @property {Function} [onHover] - Function handler for hover event.
|
|
12
|
+
* @property {Function} [onLeave] - Function handler for leave event.
|
|
13
13
|
*/
|
|
14
14
|
interface IContainerProps extends TModifiable, HTMLAttributes<HTMLDivElement> {
|
|
15
15
|
as?: THtmlTag;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const CardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Readonly<import('react').PropsWithChildren<import('../container/types').IContainerProps>> & import('react').RefAttributes<HTMLDivElement>, never>> & string & Omit<import('react').ForwardRefExoticComponent<Readonly<import('react').PropsWithChildren<import('../container/types').IContainerProps>> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
2
|
+
export { CardContainer };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a date for an event.
|
|
3
|
+
* @interface IEventDate
|
|
4
|
+
* @property {string} day - The day of the event.
|
|
5
|
+
* @property {string} month - The month of the event.
|
|
6
|
+
*/
|
|
7
|
+
interface IEventDate {
|
|
8
|
+
day: string;
|
|
9
|
+
month: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Properties for the Content Card component.
|
|
13
|
+
* @interface IContentCardProps
|
|
14
|
+
* @property {string} imageId - ID of the image.
|
|
15
|
+
* @property {string} [tag] - Optional tag or category label.
|
|
16
|
+
* @property {IEventDate} [eventDate] - Optional date related to the event.
|
|
17
|
+
* @property {string} [author] - Optional author.
|
|
18
|
+
* @property {string} [publishDate] - Optional publish date.
|
|
19
|
+
* @property {string} readingTime - Estimated reading time.
|
|
20
|
+
* @property {string} title - Title of the card.
|
|
21
|
+
* @property {string} description - Brief description.
|
|
22
|
+
* @property {string} [buttonText] - Optional text for the action button.
|
|
23
|
+
* @property {string} [href] - Optional URL for the action button link.
|
|
24
|
+
*/
|
|
25
|
+
interface IContentCardProps {
|
|
26
|
+
imageId: string;
|
|
27
|
+
tag?: string;
|
|
28
|
+
eventDate?: IEventDate;
|
|
29
|
+
author?: string;
|
|
30
|
+
publishDate?: string;
|
|
31
|
+
readingTime: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
buttonText?: string;
|
|
35
|
+
href?: string;
|
|
36
|
+
}
|
|
37
|
+
export type { IContentCardProps, IEventDate };
|
|
@@ -6,11 +6,11 @@ type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
|
|
|
6
6
|
* @interface IIconWrapProps
|
|
7
7
|
* @extends IMarginModifiable
|
|
8
8
|
* @extends IIconModifiable
|
|
9
|
-
* @property {boolean} [clickable] Defines the cursor to show on icon hover.
|
|
10
|
-
* @property {string} [hoverColor] The icon color onn hover.
|
|
11
|
-
* @property {Function} [onClick] Function handler for click event.
|
|
12
|
-
* @property {boolean} [disabled] Show disabled icon state.
|
|
13
|
-
* @property {number} [rotation] Rotation degrees to modify icon style.
|
|
9
|
+
* @property {boolean} [clickable] - Defines the cursor to show on icon hover.
|
|
10
|
+
* @property {string} [hoverColor] - The icon color onn hover.
|
|
11
|
+
* @property {Function} [onClick] - Function handler for click event.
|
|
12
|
+
* @property {boolean} [disabled] - Show disabled icon state.
|
|
13
|
+
* @property {number} [rotation] - Rotation degrees to modify icon style.
|
|
14
14
|
*/
|
|
15
15
|
interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
|
|
16
16
|
clickable?: boolean;
|
|
@@ -23,10 +23,10 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
|
|
|
23
23
|
* Icon component props.
|
|
24
24
|
* @interface IIconProps
|
|
25
25
|
* @extends IIconWrapProps
|
|
26
|
-
* @property {string} [iconClass] The icon class from fontawesome.
|
|
27
|
-
* @property {string} [iconMask] The data-fa-mask prop of icon.
|
|
28
|
-
* @property {string} [iconTransform] The data-fa-transform prop of icon.
|
|
29
|
-
* @property {TIconType} [iconType] The icon type.
|
|
26
|
+
* @property {string} [iconClass] - The icon class from fontawesome.
|
|
27
|
+
* @property {string} [iconMask] - The data-fa-mask prop of icon.
|
|
28
|
+
* @property {string} [iconTransform] - The data-fa-transform prop of icon.
|
|
29
|
+
* @property {TIconType} [iconType] - The icon type.
|
|
30
30
|
*/
|
|
31
31
|
interface IIconProps extends IIconWrapProps {
|
|
32
32
|
iconClass?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TMode } from '../@core';
|
|
2
2
|
/**
|
|
3
3
|
* Item list props
|
|
4
|
-
* @property {boolean} [disabled] Show the item as disabled.
|
|
5
|
-
* @property {string} text Item list text
|
|
4
|
+
* @property {boolean} [disabled] - Show the item as disabled.
|
|
5
|
+
* @property {string} text - Item list text
|
|
6
6
|
*/
|
|
7
7
|
interface IItem {
|
|
8
8
|
disabled?: boolean;
|
|
@@ -11,10 +11,10 @@ interface IItem {
|
|
|
11
11
|
/**
|
|
12
12
|
* Item list for language selector props
|
|
13
13
|
* @interface IItemList
|
|
14
|
-
* @property {boolean} [disabled] Show the item as disabled.
|
|
15
|
-
* @property {TMode} [mode] The background theme: dark or light.
|
|
16
|
-
* @property {Function} onClick Function handler for click event.
|
|
17
|
-
* @property {string} text Item list text
|
|
14
|
+
* @property {boolean} [disabled] - Show the item as disabled.
|
|
15
|
+
* @property {TMode} [mode] - The background theme: dark or light.
|
|
16
|
+
* @property {Function} onClick - Function handler for click event.
|
|
17
|
+
* @property {string} text - Item list text
|
|
18
18
|
*/
|
|
19
19
|
interface IItemList {
|
|
20
20
|
disabled?: boolean;
|
|
@@ -25,9 +25,9 @@ interface IItemList {
|
|
|
25
25
|
/**
|
|
26
26
|
* Language selector component props
|
|
27
27
|
* @interface ILangSelectorProps
|
|
28
|
-
* @property {IItem} [items] The custom items to make selection.
|
|
29
|
-
* @property {Function} handleClick Function handler for click event.
|
|
30
|
-
* @property {TMode} [mode] The background theme: dark or light.
|
|
28
|
+
* @property {IItem} [items] - The custom items to make selection.
|
|
29
|
+
* @property {Function} handleClick - Function handler for click event.
|
|
30
|
+
* @property {TMode} [mode] - The background theme: dark or light.
|
|
31
31
|
*/
|
|
32
32
|
interface ILangSelectorProps {
|
|
33
33
|
items?: IItem[];
|
|
@@ -2,8 +2,8 @@ type TLogoVariant = "company" | "footer" | "header" | "icon";
|
|
|
2
2
|
/**
|
|
3
3
|
* Logo component props.
|
|
4
4
|
* @interface ILogoProps
|
|
5
|
-
* @property {string} publicId The publicId location in cloudinary.
|
|
6
|
-
* @property {TLogoVariant} variant The different types of logo used.
|
|
5
|
+
* @property {string} publicId - The publicId location in cloudinary.
|
|
6
|
+
* @property {TLogoVariant} variant - The different types of logo used.
|
|
7
7
|
*/
|
|
8
8
|
interface ILogoProps {
|
|
9
9
|
publicId: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
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
|
+
export { ClientsContainer, Rectangle, SlideShow };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logo carousel component props.
|
|
3
|
+
* @interface ILogoCarouselProps
|
|
4
|
+
* @property {boolean} [fusion] - Define the fusion style in carousel.
|
|
5
|
+
* @property {string[]} [logos] - The list of image logos to show.
|
|
6
|
+
*/
|
|
7
|
+
interface ILogoCarouselProps {
|
|
8
|
+
fusion?: boolean;
|
|
9
|
+
logos?: string[];
|
|
10
|
+
}
|
|
11
|
+
export type { ILogoCarouselProps };
|
|
@@ -6,13 +6,13 @@ type TVariant = "web" | "platform";
|
|
|
6
6
|
* Message banner props.
|
|
7
7
|
* @interface IMessageBannerProps
|
|
8
8
|
* @extends IMessageBannerProps
|
|
9
|
-
* @property {JSX.Element | string} message Banner text.
|
|
10
|
-
* @property {string} [buttonText] Text for action button.
|
|
11
|
-
* @property {FontWeight} [buttonFontWeight] Weight for button text.
|
|
12
|
-
* @property {IconName} [icon] Icon for action button.
|
|
13
|
-
* @property {Function} [onClickButton] Action for action button.
|
|
14
|
-
* @property {Function} [onClose] Extra action when banner close.
|
|
15
|
-
* @property {TVariant} [variant] Variant to use: platform or web.
|
|
9
|
+
* @property {JSX.Element | string} message - Banner text.
|
|
10
|
+
* @property {string} [buttonText] - Text for action button.
|
|
11
|
+
* @property {FontWeight} [buttonFontWeight] - Weight for button text.
|
|
12
|
+
* @property {IconName} [icon] - Icon for action button.
|
|
13
|
+
* @property {Function} [onClickButton] - Action for action button.
|
|
14
|
+
* @property {Function} [onClose] - Extra action when banner close.
|
|
15
|
+
* @property {TVariant} [variant] - Variant to use: platform or web.
|
|
16
16
|
*/
|
|
17
17
|
interface IMessageBannerProps {
|
|
18
18
|
message: JSX.Element | string;
|
|
@@ -4,9 +4,9 @@ type TVariant = "error" | "warning";
|
|
|
4
4
|
* Notification sign component props.
|
|
5
5
|
* @interface INotificationSignProps
|
|
6
6
|
* @extends IPositionModifiable
|
|
7
|
-
* @property {number} [numberIndicator] The number of notifications.
|
|
8
|
-
* @property {boolean} [show] The visibility of notification sign.
|
|
9
|
-
* @property {TVariant} [variant] The notification custom variant.
|
|
7
|
+
* @property {number} [numberIndicator] - The number of notifications.
|
|
8
|
+
* @property {boolean} [show] - The visibility of notification sign.
|
|
9
|
+
* @property {TVariant} [variant] - The notification custom variant.
|
|
10
10
|
*/
|
|
11
11
|
interface INotificationSignProps extends Pick<IPositionModifiable, "left" | "top"> {
|
|
12
12
|
numberIndicator?: number;
|
|
@@ -2,8 +2,8 @@ import { IDisplayModifiable } from '../@core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Progress bar component props
|
|
4
4
|
* @interface IProgressBarProps
|
|
5
|
-
* @property {number} [progressTime] Time to complete.
|
|
6
|
-
* @property {Function} [onComplete] Action when progress complete.
|
|
5
|
+
* @property {number} [progressTime] - Time to complete.
|
|
6
|
+
* @property {Function} [onComplete] - Action when progress complete.
|
|
7
7
|
*/
|
|
8
8
|
interface IProgressBarProps extends IDisplayModifiable {
|
|
9
9
|
progressTime?: number;
|
|
@@ -5,9 +5,9 @@ type TVariant = "web" | "platform";
|
|
|
5
5
|
* @interface IRadioButtonProps
|
|
6
6
|
* @extends HTMLAttributes<HTMLInputElement>
|
|
7
7
|
* @extends HTMLProps<HTMLInputElement>
|
|
8
|
-
* @property {string} name Input name.
|
|
9
|
-
* @property {string} value Radio button value.
|
|
10
|
-
* @property {Function} [variant] Radio button variant type.
|
|
8
|
+
* @property {string} name - Input name.
|
|
9
|
+
* @property {string} value - Radio button value.
|
|
10
|
+
* @property {Function} [variant] - Radio button variant type.
|
|
11
11
|
*/
|
|
12
12
|
interface IRadioButtonProps extends HTMLAttributes<HTMLInputElement>, HTMLProps<HTMLInputElement> {
|
|
13
13
|
name: string;
|
|
@@ -3,9 +3,9 @@ type THit = Record<string, unknown>;
|
|
|
3
3
|
/**
|
|
4
4
|
* Item searching component props.
|
|
5
5
|
* @interface IItemSearchingProps
|
|
6
|
-
* @property {THit} hit The matched item of the search query.
|
|
7
|
-
* @property {IconName} [icon] Icon to show with item.
|
|
8
|
-
* @property {boolean} [showIcon] True if the item includes an icon.
|
|
6
|
+
* @property {THit} hit - The matched item of the search query.
|
|
7
|
+
* @property {IconName} [icon] - Icon to show with item.
|
|
8
|
+
* @property {boolean} [showIcon] - True if the item includes an icon.
|
|
9
9
|
*/
|
|
10
10
|
interface IItemSearchingProps {
|
|
11
11
|
hit: THit;
|
|
@@ -15,10 +15,10 @@ interface IItemSearchingProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* Search bar component props.
|
|
17
17
|
* @interface ISearchBarProps
|
|
18
|
-
* @property {THit[]} items The matched items returned from Algolia.
|
|
19
|
-
* @property {string} [placeholder] The search bar placeholder.
|
|
20
|
-
* @property {Function} refine A function to set a new query and searches.
|
|
21
|
-
* @property {string} query The query from the last search.
|
|
18
|
+
* @property {THit[]} items - The matched items returned from Algolia.
|
|
19
|
+
* @property {string} [placeholder] - The search bar placeholder.
|
|
20
|
+
* @property {Function} refine - A function to set a new query and searches.
|
|
21
|
+
* @property {string} query - The query from the last search.
|
|
22
22
|
*/
|
|
23
23
|
interface ISearchBarProps {
|
|
24
24
|
items: THit[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { INotificationSignProps } from '../notification-sign/types';
|
|
2
2
|
/**
|
|
3
3
|
* Individual tab props.
|
|
4
|
-
* @property {boolean} [isActive] Set the current tab active.
|
|
5
|
-
* @property {Function} [onClick] The handler event on tab click.
|
|
6
|
-
* @property {string | JSX.Element} label The tab title.
|
|
4
|
+
* @property {boolean} [isActive] - Set the current tab active.
|
|
5
|
+
* @property {Function} [onClick] - The handler event on tab click.
|
|
6
|
+
* @property {string | JSX.Element} label - The tab title.
|
|
7
7
|
*/
|
|
8
8
|
interface IFixedTabProps {
|
|
9
9
|
isActive?: boolean;
|
|
@@ -13,7 +13,7 @@ interface IFixedTabProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Fixed tabs component props.
|
|
15
15
|
* ** Note: A maximum of 5 tabs is allowed. **
|
|
16
|
-
* @property {ITabProps[]} items The list of tabs to display.
|
|
16
|
+
* @property {ITabProps[]} items - The list of tabs to display.
|
|
17
17
|
*/
|
|
18
18
|
interface IFixedTabsProps {
|
|
19
19
|
items: IFixedTabProps[];
|
|
@@ -22,10 +22,10 @@ interface IFixedTabsProps {
|
|
|
22
22
|
* Tab component props.
|
|
23
23
|
* @interface ITabProps
|
|
24
24
|
* @extends IFixedTabProps
|
|
25
|
-
* @property {string} id The id related to the tab.
|
|
26
|
-
* @property {string} link The link to redirect on tab click.
|
|
27
|
-
* @property {INotificationSignProps} [notificationSign] Notification tab details.
|
|
28
|
-
* @property {string} [tooltip] The tooltip text to add.
|
|
25
|
+
* @property {string} id - The id related to the tab.
|
|
26
|
+
* @property {string} link - The link to redirect on tab click.
|
|
27
|
+
* @property {INotificationSignProps} [notificationSign] - Notification tab details.
|
|
28
|
+
* @property {string} [tooltip] - The tooltip text to add.
|
|
29
29
|
*/
|
|
30
30
|
interface ITabProps extends IFixedTabProps {
|
|
31
31
|
id: string;
|
|
@@ -36,9 +36,9 @@ interface ITabProps extends IFixedTabProps {
|
|
|
36
36
|
/**
|
|
37
37
|
* Tabs component props.
|
|
38
38
|
* @interface ITabsProps
|
|
39
|
-
* @property {ITabProps[]} items The lists of tabs to display.
|
|
40
|
-
* @property {boolean} [borders] Whether to add borders to set of tabs.
|
|
41
|
-
* @property {boolean} [box] Whether to add box container to set of tabs.
|
|
39
|
+
* @property {ITabProps[]} items - The lists of tabs to display.
|
|
40
|
+
* @property {boolean} [borders] - Whether to add borders to set of tabs.
|
|
41
|
+
* @property {boolean} [box] - Whether to add box container to set of tabs.
|
|
42
42
|
*/
|
|
43
43
|
interface ITabsProps {
|
|
44
44
|
items: ITabProps[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Toggle button component props.
|
|
3
3
|
* @interface IToggleButtonProps
|
|
4
|
-
* @property {string} [defaultSelection] The option selected by default.
|
|
5
|
-
* @property {string[]} options The list options label.
|
|
6
|
-
* @property {Function} handleClick The function to handle the click event.
|
|
4
|
+
* @property {string} [defaultSelection] - The option selected by default.
|
|
5
|
+
* @property {string[]} options - The list options label.
|
|
6
|
+
* @property {Function} handleClick - The function to handle the click event.
|
|
7
7
|
*/
|
|
8
8
|
interface IToggleButtonProps {
|
|
9
9
|
defaultSelection?: string;
|
|
@@ -7,14 +7,14 @@ type TEffect = "float" | "solid";
|
|
|
7
7
|
* @interface ITooltipProps
|
|
8
8
|
* @extends IIconModifiable
|
|
9
9
|
* @extends IDisplayModifiable
|
|
10
|
-
* @property {boolean} [disabled] If the tooltip icon is disabled.
|
|
11
|
-
* @property {TEffect} [effect] Tooltip visual effect.
|
|
12
|
-
* @property {boolean} [hide] If the tooltip has a hideout event.
|
|
13
|
-
* @property {string} [id] The tooltip id, required for it to work.
|
|
14
|
-
* @property {ReactNode} [nodeTip] The tooltip content when is not plain text.
|
|
15
|
-
* @property {TPlace} [place] Where to locate the tooltip from parent node.
|
|
16
|
-
* @property {string} [tip] The tooltip content, only as string.
|
|
17
|
-
* @property {title} [title] The tooltip title.
|
|
10
|
+
* @property {boolean} [disabled] - If the tooltip icon is disabled.
|
|
11
|
+
* @property {TEffect} [effect] - Tooltip visual effect.
|
|
12
|
+
* @property {boolean} [hide] - If the tooltip has a hideout event.
|
|
13
|
+
* @property {string} [id] - The tooltip id, required for it to work.
|
|
14
|
+
* @property {ReactNode} [nodeTip] - The tooltip content when is not plain text.
|
|
15
|
+
* @property {TPlace} [place] - Where to locate the tooltip from parent node.
|
|
16
|
+
* @property {string} [tip] - The tooltip content, only as string.
|
|
17
|
+
* @property {title} [title] - The tooltip title.
|
|
18
18
|
*/
|
|
19
19
|
interface ITooltipProps extends Partial<IIconModifiable>, Pick<IDisplayModifiable, "display" | "height" | "maxWidth" | "width"> {
|
|
20
20
|
disabled?: boolean;
|
|
@@ -7,7 +7,7 @@ import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable
|
|
|
7
7
|
* @extends IPaddingModifiable
|
|
8
8
|
* @extends ISizeModifiable
|
|
9
9
|
* @extends ITextModifiable
|
|
10
|
-
* @property {Display} [display] Text display layout.
|
|
10
|
+
* @property {Display} [display] - Text display layout.
|
|
11
11
|
*/
|
|
12
12
|
interface ITypographyProps extends IMarginModifiable, ISizeModifiable, IPaddingModifiable, Omit<ITextModifiable, "fontSize"> {
|
|
13
13
|
display?: Property.Display;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './components/container';
|
|
|
8
8
|
export * from './components/icon';
|
|
9
9
|
export * from './components/language-selector';
|
|
10
10
|
export * from './components/logo';
|
|
11
|
+
export * from './components/logo-carousel';
|
|
11
12
|
export * from './components/message-banner';
|
|
12
13
|
export * from './components/notification-sign';
|
|
13
14
|
export * from './components/progress-bar';
|
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"bugs": {
|
|
4
4
|
"url": "https://gitlab.com/fluidattacks/universe/issues"
|
|
5
5
|
},
|
|
6
|
-
"description": "Fluidattacks core components library",
|
|
7
6
|
"dependencies": {
|
|
8
7
|
"@cloudinary/react": "1.13.0",
|
|
9
8
|
"@cloudinary/url-gen": "1.21.0",
|
|
@@ -14,25 +13,22 @@
|
|
|
14
13
|
"react-tooltip": "5.28.0",
|
|
15
14
|
"styled-components": "6.1.13"
|
|
16
15
|
},
|
|
17
|
-
"
|
|
18
|
-
"@floating-ui/react-dom": "2.1.2",
|
|
19
|
-
"react-router-dom": "6.27.0"
|
|
20
|
-
},
|
|
16
|
+
"description": "Fluidattacks core components library",
|
|
21
17
|
"devDependencies": {
|
|
22
|
-
"@storybook/addon-a11y": "8.3
|
|
23
|
-
"@storybook/addon-essentials": "8.3
|
|
24
|
-
"@storybook/addon-interactions": "8.3
|
|
25
|
-
"@storybook/addon-links": "8.3
|
|
26
|
-
"@storybook/addon-viewport": "8.3
|
|
27
|
-
"@storybook/blocks": "8.3
|
|
28
|
-
"@storybook/react": "8.3
|
|
29
|
-
"@storybook/react-vite": "8.3
|
|
30
|
-
"@storybook/test": "8.3
|
|
18
|
+
"@storybook/addon-a11y": "8.4.3",
|
|
19
|
+
"@storybook/addon-essentials": "8.4.3",
|
|
20
|
+
"@storybook/addon-interactions": "8.4.3",
|
|
21
|
+
"@storybook/addon-links": "8.4.3",
|
|
22
|
+
"@storybook/addon-viewport": "8.4.3",
|
|
23
|
+
"@storybook/blocks": "8.4.3",
|
|
24
|
+
"@storybook/react": "8.4.3",
|
|
25
|
+
"@storybook/react-vite": "8.4.3",
|
|
26
|
+
"@storybook/test": "8.4.3",
|
|
31
27
|
"@types/react": "18.2.0",
|
|
32
28
|
"@types/react-dom": "18.2.0",
|
|
33
29
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
34
30
|
"autoprefixer": "10.4.20",
|
|
35
|
-
"eslint": "9.
|
|
31
|
+
"eslint": "9.13.0",
|
|
36
32
|
"eslint-config-prettier": "9.1.0",
|
|
37
33
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
38
34
|
"eslint-plugin-functional": "7.0.2",
|
|
@@ -44,18 +40,23 @@
|
|
|
44
40
|
"eslint-plugin-react": "7.37.0",
|
|
45
41
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
46
42
|
"postcss": "8.4.47",
|
|
47
|
-
"postcss-styled-syntax": "0.
|
|
43
|
+
"postcss-styled-syntax": "0.7.0",
|
|
48
44
|
"remark-gfm": "4.0.0",
|
|
49
|
-
"storybook": "8.3
|
|
45
|
+
"storybook": "8.4.3",
|
|
50
46
|
"stylelint": "16.10.0",
|
|
51
47
|
"stylelint-config-standard": "36.0.1",
|
|
52
|
-
"tailwindcss": "3.4.
|
|
48
|
+
"tailwindcss": "3.4.14",
|
|
53
49
|
"typescript": "5.6.3",
|
|
54
|
-
"typescript-eslint": "8.
|
|
50
|
+
"typescript-eslint": "8.12.2",
|
|
55
51
|
"vite": "5.4.10",
|
|
56
52
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
57
53
|
"vite-plugin-dts": "4.3.0"
|
|
58
54
|
},
|
|
55
|
+
"eslintConfig": {
|
|
56
|
+
"extends": [
|
|
57
|
+
"plugin:storybook/recommended"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
59
60
|
"files": [
|
|
60
61
|
"README.md",
|
|
61
62
|
"dist"
|
|
@@ -69,8 +70,11 @@
|
|
|
69
70
|
"license": "MPL-2.0",
|
|
70
71
|
"main": "dist/design.js",
|
|
71
72
|
"module": "dist/design.mjs",
|
|
72
|
-
"types": "dist/src/index.d.ts",
|
|
73
73
|
"name": "@fluidattacks/design",
|
|
74
|
+
"optionalDependencies": {
|
|
75
|
+
"@floating-ui/react-dom": "2.1.2",
|
|
76
|
+
"react-router-dom": "6.28.0"
|
|
77
|
+
},
|
|
74
78
|
"publishConfig": {
|
|
75
79
|
"access": "public"
|
|
76
80
|
},
|
|
@@ -85,10 +89,6 @@
|
|
|
85
89
|
"preview": "vite preview",
|
|
86
90
|
"storybook": "storybook dev"
|
|
87
91
|
},
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"extends": [
|
|
91
|
-
"plugin:storybook/recommended"
|
|
92
|
-
]
|
|
93
|
-
}
|
|
92
|
+
"types": "dist/src/index.d.ts",
|
|
93
|
+
"version": "1.2.25"
|
|
94
94
|
}
|