@fluidattacks/design 1.2.22 → 1.2.24
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 +310 -98
- package/dist/design.mjs +3147 -2746
- package/dist/src/components/accordion/accordion-content/types.d.ts +5 -4
- package/dist/src/components/accordion/types.d.ts +4 -2
- package/dist/src/components/button/types.d.ts +1 -0
- package/dist/src/components/checkbox/index.d.ts +3 -0
- package/dist/src/components/checkbox/styles.d.ts +7 -0
- package/dist/src/components/checkbox/types.d.ts +20 -0
- package/dist/src/components/cloud-image/types.d.ts +1 -0
- package/dist/src/components/container/types.d.ts +1 -0
- package/dist/src/components/icon/types.d.ts +4 -4
- package/dist/src/components/language-selector/types.d.ts +4 -2
- package/dist/src/components/logo/types.d.ts +1 -0
- 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 +3 -1
- package/dist/src/components/notification-sign/types.d.ts +1 -0
- package/dist/src/components/progress-bar/types.d.ts +1 -0
- package/dist/src/components/radio-button/index.d.ts +3 -0
- package/dist/src/components/radio-button/styles.d.ts +9 -0
- package/dist/src/components/radio-button/types.d.ts +17 -0
- package/dist/src/components/search-bar/types.d.ts +2 -0
- package/dist/src/components/tabs/types.d.ts +2 -0
- package/dist/src/components/toggle-buttons/types.d.ts +1 -0
- package/dist/src/components/tooltip/types.d.ts +1 -0
- package/dist/src/components/typography/types.d.ts +1 -0
- package/dist/src/hooks/use-cloudinary-image.d.ts +1 -0
- package/dist/src/index.d.ts +5 -0
- package/package.json +4 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IAccordionItemProps, TVariant } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Accordion Content props
|
|
4
|
-
* @
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {
|
|
7
|
-
* @property {
|
|
4
|
+
* @interface IAccordionContentProps
|
|
5
|
+
* @property {boolean} isSelectedAndOpen If item in accordion is selected and open.
|
|
6
|
+
* @property {IAccordionItemProps} item Accordion item.
|
|
7
|
+
* @property {TVariant} variant Type of accordion.
|
|
8
|
+
* @property {boolean} render Render condition.
|
|
8
9
|
*/
|
|
9
10
|
interface IAccordionContentProps {
|
|
10
11
|
isSelectedAndOpen: boolean;
|
|
@@ -2,7 +2,8 @@ type TVariant = "progress" | "simple" | "platform";
|
|
|
2
2
|
type TAligned = "end" | "start";
|
|
3
3
|
/**
|
|
4
4
|
* Accordion item props
|
|
5
|
-
* @
|
|
5
|
+
* @interface IAccordionItemProps
|
|
6
|
+
* @property {string} title Accordion title.
|
|
6
7
|
* @property {string} [description] Accordion description.
|
|
7
8
|
* @property {JSX.Element} [extraElement] Accordion extra components.
|
|
8
9
|
*/
|
|
@@ -15,8 +16,9 @@ interface IAccordionItemProps {
|
|
|
15
16
|
* Pass more than 1 item to activate progress variant
|
|
16
17
|
*
|
|
17
18
|
* Accordion component props
|
|
19
|
+
* @interface IAccordionProps
|
|
18
20
|
* @property {TAligned} [aligned] Align title.
|
|
19
|
-
* @property {IAccordionItemProps}
|
|
21
|
+
* @property {IAccordionItemProps} items A list of accordion items.
|
|
20
22
|
* @property {number} [progressTime] Time remaining until the next item (in seconds).
|
|
21
23
|
* @property {string} [bgColor] Accordion background color.
|
|
22
24
|
* @property {TVariant} [variant] Type of accordion.
|
|
@@ -4,6 +4,7 @@ import { TPlace } from '../tooltip/types';
|
|
|
4
4
|
type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "tertiary" | "ghost" | "ghostWeb" | "link";
|
|
5
5
|
/**
|
|
6
6
|
* Button component props.
|
|
7
|
+
* @interface IButtonProps
|
|
7
8
|
* @extends IBorderModifiable
|
|
8
9
|
* @extends IDisplayModifiable
|
|
9
10
|
* @extends IMarginModifiable
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TVariant } from './types';
|
|
2
|
+
declare const InputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
3
|
+
$alert?: boolean;
|
|
4
|
+
$disabled: boolean;
|
|
5
|
+
$variant: TVariant;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export { InputContainer };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type TVariant = "web" | "platform";
|
|
3
|
+
/**
|
|
4
|
+
* Checkbox props.
|
|
5
|
+
* @interface ICheckboxProps
|
|
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.
|
|
12
|
+
*/
|
|
13
|
+
interface ICheckboxProps extends HTMLAttributes<HTMLInputElement> {
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
variant?: TVariant;
|
|
19
|
+
}
|
|
20
|
+
export type { ICheckboxProps, TVariant };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Plugins } from '@cloudinary/html';
|
|
2
2
|
/**
|
|
3
3
|
* Cloud image component props.
|
|
4
|
+
* @interface ICloudImageProps
|
|
4
5
|
* @property {string} [alt] The alternate text for an image.
|
|
5
6
|
* @property {number | string} [height] The height of the image.
|
|
6
7
|
* @property {number | string} [width] The width of the image.
|
|
@@ -3,6 +3,7 @@ import { TModifiable } from '../@core';
|
|
|
3
3
|
type THtmlTag = keyof ReactHTML;
|
|
4
4
|
/**
|
|
5
5
|
* Container component props.
|
|
6
|
+
* @interface IContainerProps
|
|
6
7
|
* @extends TModifiable
|
|
7
8
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
8
9
|
* @property {THtmlTag} [as] The react html tag to represent.
|
|
@@ -3,14 +3,14 @@ import { IIconModifiable, IMarginModifiable } from '../@core';
|
|
|
3
3
|
type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
|
|
4
4
|
/**
|
|
5
5
|
* Icon Wrapper component props.
|
|
6
|
+
* @interface IIconWrapProps
|
|
6
7
|
* @extends IMarginModifiable
|
|
8
|
+
* @extends IIconModifiable
|
|
7
9
|
* @property {boolean} [clickable] Defines the cursor to show on icon hover.
|
|
8
|
-
* @property {string} [color] The icon color.
|
|
9
10
|
* @property {string} [hoverColor] The icon color onn hover.
|
|
10
11
|
* @property {Function} [onClick] Function handler for click event.
|
|
11
12
|
* @property {boolean} [disabled] Show disabled icon state.
|
|
12
13
|
* @property {number} [rotation] Rotation degrees to modify icon style.
|
|
13
|
-
* @property {TSize} size The icon size.
|
|
14
14
|
*/
|
|
15
15
|
interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
|
|
16
16
|
clickable?: boolean;
|
|
@@ -21,12 +21,12 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Icon component props.
|
|
24
|
+
* @interface IIconProps
|
|
24
25
|
* @extends IIconWrapProps
|
|
25
26
|
* @property {string} [iconClass] The icon class from fontawesome.
|
|
26
27
|
* @property {string} [iconMask] The data-fa-mask prop of icon.
|
|
27
28
|
* @property {string} [iconTransform] The data-fa-transform prop of icon.
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {TIconType} iconType The icon type.
|
|
29
|
+
* @property {TIconType} [iconType] The icon type.
|
|
30
30
|
*/
|
|
31
31
|
interface IIconProps extends IIconWrapProps {
|
|
32
32
|
iconClass?: string;
|
|
@@ -10,10 +10,11 @@ interface IItem {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Item list for language selector props
|
|
13
|
+
* @interface IItemList
|
|
13
14
|
* @property {boolean} [disabled] Show the item as disabled.
|
|
14
15
|
* @property {TMode} [mode] The background theme: dark or light.
|
|
15
|
-
* @property {Function}
|
|
16
|
-
* @property {string}
|
|
16
|
+
* @property {Function} onClick Function handler for click event.
|
|
17
|
+
* @property {string} text Item list text
|
|
17
18
|
*/
|
|
18
19
|
interface IItemList {
|
|
19
20
|
disabled?: boolean;
|
|
@@ -23,6 +24,7 @@ interface IItemList {
|
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Language selector component props
|
|
27
|
+
* @interface ILangSelectorProps
|
|
26
28
|
* @property {IItem} [items] The custom items to make selection.
|
|
27
29
|
* @property {Function} handleClick Function handler for click event.
|
|
28
30
|
* @property {TMode} [mode] The background theme: dark or light.
|
|
@@ -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 };
|
|
@@ -4,13 +4,15 @@ import { MouseEventHandler } from 'react';
|
|
|
4
4
|
type TVariant = "web" | "platform";
|
|
5
5
|
/**
|
|
6
6
|
* Message banner props.
|
|
7
|
+
* @interface IMessageBannerProps
|
|
7
8
|
* @extends IMessageBannerProps
|
|
8
|
-
* @property {JSX.Element | string}
|
|
9
|
+
* @property {JSX.Element | string} message Banner text.
|
|
9
10
|
* @property {string} [buttonText] Text for action button.
|
|
10
11
|
* @property {FontWeight} [buttonFontWeight] Weight for button text.
|
|
11
12
|
* @property {IconName} [icon] Icon for action button.
|
|
12
13
|
* @property {Function} [onClickButton] Action for action button.
|
|
13
14
|
* @property {Function} [onClose] Extra action when banner close.
|
|
15
|
+
* @property {TVariant} [variant] Variant to use: platform or web.
|
|
14
16
|
*/
|
|
15
17
|
interface IMessageBannerProps {
|
|
16
18
|
message: JSX.Element | string;
|
|
@@ -2,6 +2,7 @@ import { IPositionModifiable } from '../@core';
|
|
|
2
2
|
type TVariant = "error" | "warning";
|
|
3
3
|
/**
|
|
4
4
|
* Notification sign component props.
|
|
5
|
+
* @interface INotificationSignProps
|
|
5
6
|
* @extends IPositionModifiable
|
|
6
7
|
* @property {number} [numberIndicator] The number of notifications.
|
|
7
8
|
* @property {boolean} [show] The visibility of notification sign.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TVariant } from './types';
|
|
2
|
+
declare const LabelContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
3
|
+
$disabled: boolean;
|
|
4
|
+
$variant: TVariant;
|
|
5
|
+
}>> & string;
|
|
6
|
+
declare const CheckMark: 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<HTMLSpanElement>, HTMLSpanElement>, Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
8
|
+
}>, never>, never>> & string;
|
|
9
|
+
export { CheckMark, LabelContainer };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes, HTMLProps } from 'react';
|
|
2
|
+
type TVariant = "web" | "platform";
|
|
3
|
+
/**
|
|
4
|
+
* Radio button props.
|
|
5
|
+
* @interface IRadioButtonProps
|
|
6
|
+
* @extends HTMLAttributes<HTMLInputElement>
|
|
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.
|
|
11
|
+
*/
|
|
12
|
+
interface IRadioButtonProps extends HTMLAttributes<HTMLInputElement>, HTMLProps<HTMLInputElement> {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
variant?: TVariant;
|
|
16
|
+
}
|
|
17
|
+
export type { IRadioButtonProps, TVariant };
|
|
@@ -2,6 +2,7 @@ import { IIconModifiable } from '../@core';
|
|
|
2
2
|
type THit = Record<string, unknown>;
|
|
3
3
|
/**
|
|
4
4
|
* Item searching component props.
|
|
5
|
+
* @interface IItemSearchingProps
|
|
5
6
|
* @property {THit} hit The matched item of the search query.
|
|
6
7
|
* @property {IconName} [icon] Icon to show with item.
|
|
7
8
|
* @property {boolean} [showIcon] True if the item includes an icon.
|
|
@@ -13,6 +14,7 @@ interface IItemSearchingProps {
|
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Search bar component props.
|
|
17
|
+
* @interface ISearchBarProps
|
|
16
18
|
* @property {THit[]} items The matched items returned from Algolia.
|
|
17
19
|
* @property {string} [placeholder] The search bar placeholder.
|
|
18
20
|
* @property {Function} refine A function to set a new query and searches.
|
|
@@ -20,6 +20,7 @@ interface IFixedTabsProps {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Tab component props.
|
|
23
|
+
* @interface ITabProps
|
|
23
24
|
* @extends IFixedTabProps
|
|
24
25
|
* @property {string} id The id related to the tab.
|
|
25
26
|
* @property {string} link The link to redirect on tab click.
|
|
@@ -34,6 +35,7 @@ interface ITabProps extends IFixedTabProps {
|
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* Tabs component props.
|
|
38
|
+
* @interface ITabsProps
|
|
37
39
|
* @property {ITabProps[]} items The lists of tabs to display.
|
|
38
40
|
* @property {boolean} [borders] Whether to add borders to set of tabs.
|
|
39
41
|
* @property {boolean} [box] Whether to add box container to set of tabs.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Toggle button component props.
|
|
3
|
+
* @interface IToggleButtonProps
|
|
3
4
|
* @property {string} [defaultSelection] The option selected by default.
|
|
4
5
|
* @property {string[]} options The list options label.
|
|
5
6
|
* @property {Function} handleClick The function to handle the click event.
|
|
@@ -4,6 +4,7 @@ type TPlace = "bottom" | "left" | "right" | "top";
|
|
|
4
4
|
type TEffect = "float" | "solid";
|
|
5
5
|
/**
|
|
6
6
|
* Tooltip component props
|
|
7
|
+
* @interface ITooltipProps
|
|
7
8
|
* @extends IIconModifiable
|
|
8
9
|
* @extends IDisplayModifiable
|
|
9
10
|
* @property {boolean} [disabled] If the tooltip icon is disabled.
|
|
@@ -2,6 +2,7 @@ import { Property } from 'csstype';
|
|
|
2
2
|
import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable } from '../@core';
|
|
3
3
|
/**
|
|
4
4
|
* Typography component props.
|
|
5
|
+
* @interface ITypographyProps
|
|
5
6
|
* @extends IMarginModifiable
|
|
6
7
|
* @extends IPaddingModifiable
|
|
7
8
|
* @extends ISizeModifiable
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CloudinaryImage } from '@cloudinary/url-gen';
|
|
2
2
|
/**
|
|
3
3
|
* Cloudinary image hook props.
|
|
4
|
+
* @interface IUseCloudinaryImageProps
|
|
4
5
|
* @property {string} publicId The publicId location in cloudinary.
|
|
5
6
|
* @property {string} [format] The image format desired (e.g., png, jpg).
|
|
6
7
|
*/
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
export * from './components/@core';
|
|
2
2
|
export * from './components/accordion';
|
|
3
3
|
export * from './components/button';
|
|
4
|
+
export * from './components/checkbox';
|
|
4
5
|
export * from './components/cloud-image';
|
|
5
6
|
export * from './components/colors';
|
|
6
7
|
export * from './components/container';
|
|
7
8
|
export * from './components/icon';
|
|
8
9
|
export * from './components/language-selector';
|
|
9
10
|
export * from './components/logo';
|
|
11
|
+
export * from './components/logo-carousel';
|
|
12
|
+
export * from './components/message-banner';
|
|
10
13
|
export * from './components/notification-sign';
|
|
14
|
+
export * from './components/progress-bar';
|
|
15
|
+
export * from './components/radio-button';
|
|
11
16
|
export * from './components/search-bar';
|
|
12
17
|
export * from './components/tabs';
|
|
13
18
|
export * from './components/toggle-buttons';
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/react-dom": "18.2.0",
|
|
33
33
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
34
34
|
"autoprefixer": "10.4.20",
|
|
35
|
-
"eslint": "9.
|
|
35
|
+
"eslint": "9.13.0",
|
|
36
36
|
"eslint-config-prettier": "9.1.0",
|
|
37
37
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
38
38
|
"eslint-plugin-functional": "7.0.2",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"storybook": "8.3.6",
|
|
50
50
|
"stylelint": "16.10.0",
|
|
51
51
|
"stylelint-config-standard": "36.0.1",
|
|
52
|
-
"tailwindcss": "3.4.
|
|
52
|
+
"tailwindcss": "3.4.14",
|
|
53
53
|
"typescript": "5.6.3",
|
|
54
|
-
"typescript-eslint": "8.
|
|
54
|
+
"typescript-eslint": "8.12.2",
|
|
55
55
|
"vite": "5.4.10",
|
|
56
56
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
57
57
|
"vite-plugin-dts": "4.3.0"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"preview": "vite preview",
|
|
86
86
|
"storybook": "storybook dev"
|
|
87
87
|
},
|
|
88
|
-
"version": "1.2.
|
|
88
|
+
"version": "1.2.24",
|
|
89
89
|
"eslintConfig": {
|
|
90
90
|
"extends": [
|
|
91
91
|
"plugin:storybook/recommended"
|