@fluidattacks/design 1.2.27 → 1.2.28
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 +251 -180
- package/dist/design.mjs +3823 -3475
- package/dist/src/components/@core/types.d.ts +3 -1
- package/dist/src/components/button/types.d.ts +2 -0
- package/dist/src/components/content-card/category-tag/index.d.ts +5 -0
- package/dist/src/components/content-card/event-date/index.d.ts +1 -2
- package/dist/src/components/content-card/index.d.ts +1 -1
- package/dist/src/components/content-card/styles.d.ts +1 -1
- package/dist/src/components/content-card/types.d.ts +21 -25
- package/dist/src/components/content-card-carousel/scroll-buttons/index.d.ts +2 -0
- package/dist/src/components/content-card-carousel/styles.d.ts +2 -0
- package/dist/src/components/content-card-carousel/types.d.ts +16 -0
- package/dist/src/components/icon/types.d.ts +1 -4
- package/dist/src/components/icon-button/index.d.ts +3 -0
- package/dist/src/components/icon-button/styles.d.ts +9 -0
- package/dist/src/components/icon-button/types.d.ts +22 -0
- package/dist/src/components/typography/styles.d.ts +3 -0
- package/dist/src/components/typography/types.d.ts +4 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/open-url.d.ts +1 -0
- package/package.json +4 -4
|
@@ -84,6 +84,7 @@ type TSize = keyof DefaultTheme["typography"]["heading"];
|
|
|
84
84
|
type TSpacing = keyof DefaultTheme["spacing"];
|
|
85
85
|
type TShadows = keyof DefaultTheme["shadows"];
|
|
86
86
|
type TIconSize = "xl" | "lg" | "md" | "sm" | "xs" | "xxs";
|
|
87
|
+
type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
|
|
87
88
|
type TMode = "dark" | "light";
|
|
88
89
|
interface IPaddingModifiable {
|
|
89
90
|
padding?: [TSpacing, TSpacing, TSpacing, TSpacing];
|
|
@@ -124,6 +125,7 @@ interface IIconModifiable {
|
|
|
124
125
|
icon: IconName;
|
|
125
126
|
iconColor?: string;
|
|
126
127
|
iconSize: TIconSize;
|
|
128
|
+
iconType?: TIconType;
|
|
127
129
|
}
|
|
128
130
|
interface ISizeModifiable {
|
|
129
131
|
size: TSize;
|
|
@@ -174,4 +176,4 @@ interface IInteractionModifiable {
|
|
|
174
176
|
shadowHover?: TShadows;
|
|
175
177
|
}
|
|
176
178
|
type TModifiable = IBorderModifiable & IDisplayModifiable & IInteractionModifiable & IMarginModifiable & IPaddingModifiable & IPositionModifiable & ITextModifiable;
|
|
177
|
-
export type { DefaultTheme as ThemeType, TSpacing, IPaddingModifiable, IMarginModifiable, IDisplayModifiable, IIconModifiable, ITextModifiable, IInteractionModifiable, IPositionModifiable, IBorderModifiable, ISizeModifiable, TIconSize, TModifiable, TMode, TSize, };
|
|
179
|
+
export type { DefaultTheme as ThemeType, TSpacing, IPaddingModifiable, IMarginModifiable, IDisplayModifiable, IIconModifiable, ITextModifiable, IInteractionModifiable, IPositionModifiable, IBorderModifiable, ISizeModifiable, TIconSize, TIconType, TModifiable, TMode, TSize, };
|
|
@@ -12,6 +12,7 @@ type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "terti
|
|
|
12
12
|
* @extends IIconModifiable
|
|
13
13
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
14
14
|
* @property {boolean} [bold] - Text bold for link variant.
|
|
15
|
+
* @property {string} [href] - Link URL for link variant.
|
|
15
16
|
* @property {TMode} [mode] - The background theme: dark or light.
|
|
16
17
|
* @property {string} [tooltip] - Tooltip message.
|
|
17
18
|
* @property {TPlace} [tooltipPlace] - Tooltip message relative place.
|
|
@@ -20,6 +21,7 @@ type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "terti
|
|
|
20
21
|
*/
|
|
21
22
|
interface IButtonProps extends IBorderModifiable, IDisplayModifiable, IMarginModifiable, IPaddingModifiable, Partial<IIconModifiable>, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
23
|
bold?: boolean;
|
|
24
|
+
href?: string;
|
|
23
25
|
mode?: TMode;
|
|
24
26
|
showArrow?: boolean;
|
|
25
27
|
tooltip?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IContentCardProps } from './types';
|
|
2
|
-
declare const ContentCard: ({ imageId, tag,
|
|
2
|
+
declare const ContentCard: ({ author, buttonText, description, eventDate, href, imageId, mode, publishDate, readingTime, tag, tagPosition, title, }: Readonly<IContentCardProps>) => JSX.Element;
|
|
3
3
|
export { ContentCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<
|
|
1
|
+
declare const CardContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export { CardContainer };
|
|
@@ -1,37 +1,33 @@
|
|
|
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
|
-
}
|
|
1
|
+
import { TMode } from '../@core';
|
|
11
2
|
/**
|
|
12
3
|
* Properties for the Content Card component.
|
|
4
|
+
* ** Note: All dates need to be provided in dayjs format.
|
|
13
5
|
* @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
6
|
* @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
7
|
* @property {string} [buttonText] - Optional text for the action button.
|
|
8
|
+
* @property {string} [description] - Brief description.
|
|
9
|
+
* @property {string} [eventDate] - Optional date related to the event (DD-MMM).
|
|
23
10
|
* @property {string} [href] - Optional URL for the action button link.
|
|
11
|
+
* @property {string} [imageId] - ID of the image.
|
|
12
|
+
* @property {string} [mode] - Optional mode (light, dark).
|
|
13
|
+
* @property {string} [publishDate] - Optional publish date (MMMM-D-YYYY).
|
|
14
|
+
* @property {string} [readingTime] - Estimated reading time.
|
|
15
|
+
* @property {string} [tag] - Optional tag or category label.
|
|
16
|
+
* @property {string} [tagPosition] - Optional position of the tag (top, bottom).
|
|
17
|
+
* @property {string} title - Title of the card.
|
|
24
18
|
*/
|
|
25
19
|
interface IContentCardProps {
|
|
26
|
-
imageId: string;
|
|
27
|
-
tag?: string;
|
|
28
|
-
eventDate?: IEventDate;
|
|
29
20
|
author?: string;
|
|
30
|
-
publishDate?: string;
|
|
31
|
-
readingTime: string;
|
|
32
|
-
title: string;
|
|
33
|
-
description: string;
|
|
34
21
|
buttonText?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
eventDate?: string;
|
|
35
24
|
href?: string;
|
|
25
|
+
imageId?: string;
|
|
26
|
+
mode?: TMode;
|
|
27
|
+
publishDate?: string;
|
|
28
|
+
readingTime?: string;
|
|
29
|
+
tag?: string;
|
|
30
|
+
tagPosition?: "top" | "bottom";
|
|
31
|
+
title: string;
|
|
36
32
|
}
|
|
37
|
-
export type { IContentCardProps
|
|
33
|
+
export type { IContentCardProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const StyledIconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export { StyledIconContainer };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IContentCardProps } from '../content-card/types';
|
|
2
|
+
/**
|
|
3
|
+
* Content card carousel properties.
|
|
4
|
+
* @interface IContentCardCarouselProps
|
|
5
|
+
* @property {string} description - Description of the carousel.
|
|
6
|
+
* @property {IContentCardProps[]} items - Array of content card items.
|
|
7
|
+
* @property {string} title - Title of the carousel.
|
|
8
|
+
* @property {string} titleHighlighted - Highlighted title of the carousel.
|
|
9
|
+
*/
|
|
10
|
+
interface IContentCardCarouselProps {
|
|
11
|
+
description: string;
|
|
12
|
+
items: IContentCardProps[];
|
|
13
|
+
title: string;
|
|
14
|
+
titleHighlighted: string;
|
|
15
|
+
}
|
|
16
|
+
export type { IContentCardCarouselProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
2
|
import { IIconModifiable, IMarginModifiable } from '../@core';
|
|
3
|
-
type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
|
|
4
3
|
/**
|
|
5
4
|
* Icon Wrapper component props.
|
|
6
5
|
* @interface IIconWrapProps
|
|
@@ -26,12 +25,10 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
|
|
|
26
25
|
* @property {string} [iconClass] - The icon class from fontawesome.
|
|
27
26
|
* @property {string} [iconMask] - The data-fa-mask prop of icon.
|
|
28
27
|
* @property {string} [iconTransform] - The data-fa-transform prop of icon.
|
|
29
|
-
* @property {TIconType} [iconType] - The icon type.
|
|
30
28
|
*/
|
|
31
29
|
interface IIconProps extends IIconWrapProps {
|
|
32
30
|
iconClass?: string;
|
|
33
31
|
iconMask?: string;
|
|
34
32
|
iconTransform?: string;
|
|
35
|
-
iconType?: TIconType;
|
|
36
33
|
}
|
|
37
|
-
export type { IIconProps, IIconWrapProps
|
|
34
|
+
export type { IIconProps, IIconWrapProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TSpacing } from '../@core';
|
|
2
|
+
declare const StyledIconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import('../@core').IPaddingModifiable | keyof import('../@core').IMarginModifiable | keyof import('../@core').IPositionModifiable | keyof import('../@core').IBorderModifiable | keyof import('../@core').IDisplayModifiable | keyof import('../@core').ITextModifiable | keyof import('../@core').IInteractionModifiable> & import('../@core').IBorderModifiable & import('../@core').IDisplayModifiable & import('../@core').IInteractionModifiable & import('../@core').IMarginModifiable & import('../@core').IPaddingModifiable & import('../@core').IPositionModifiable & import('../@core').ITextModifiable, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "$variant"> & import('../button/styles').IStyledButtonProps, {
|
|
5
|
+
$borderRadius?: string;
|
|
6
|
+
$px?: TSpacing;
|
|
7
|
+
$py?: TSpacing;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export { StyledIconButton };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { IBorderModifiable, IDisplayModifiable, IIconModifiable, IPaddingModifiable } from '../@core/types';
|
|
3
|
+
import { TVariant } from '../button/styles';
|
|
4
|
+
import { TPlace } from '../tooltip/types';
|
|
5
|
+
/**
|
|
6
|
+
* IconButton component props.
|
|
7
|
+
* @interface IIconButtonProps
|
|
8
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
9
|
+
* @extends IBorderModifiable
|
|
10
|
+
* @extends IDisplayModifiable
|
|
11
|
+
* @extends IIconModifiable
|
|
12
|
+
* @extends IPaddingModifiable
|
|
13
|
+
* @property {string} [tooltip] - Tooltip text.
|
|
14
|
+
* @property {string} [tooltipPlace] - Tooltip placement.
|
|
15
|
+
* @property {TVariant} [variant] - Variant
|
|
16
|
+
*/
|
|
17
|
+
interface IIconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pick<IDisplayModifiable, "height" | "justify" | "width">, Pick<IPaddingModifiable, "px" | "py">, IBorderModifiable, IIconModifiable {
|
|
18
|
+
tooltip?: string;
|
|
19
|
+
tooltipPlace?: TPlace;
|
|
20
|
+
variant?: TVariant;
|
|
21
|
+
}
|
|
22
|
+
export type { IIconButtonProps };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { TTextProps } from './types';
|
|
2
2
|
interface IStyledTextProps {
|
|
3
|
+
$bgGradient?: TTextProps["bgGradient"];
|
|
3
4
|
$color?: TTextProps["color"];
|
|
4
5
|
$display?: TTextProps["display"];
|
|
5
6
|
$fontFamily?: TTextProps["fontFamily"];
|
|
6
7
|
$fontWeight?: TTextProps["fontWeight"];
|
|
7
8
|
$letterSpacing?: TTextProps["letterSpacing"];
|
|
8
9
|
$lineSpacing?: TTextProps["lineSpacing"];
|
|
10
|
+
$lineSpacingSm?: TTextProps["lineSpacingSm"];
|
|
9
11
|
$size: TTextProps["size"];
|
|
10
12
|
$sizeMd: TTextProps["sizeMd"];
|
|
11
13
|
$sizeSm: TTextProps["sizeSm"];
|
|
14
|
+
$textFill?: TTextProps["textFill"];
|
|
12
15
|
$wordBreak?: TTextProps["wordBreak"];
|
|
13
16
|
}
|
|
14
17
|
declare const StyledHeading: 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('../@core').IPaddingModifiable | keyof import('../@core').IMarginModifiable | keyof import('../@core').IPositionModifiable | keyof import('../@core').IBorderModifiable | keyof import('../@core').IDisplayModifiable | keyof import('../@core').ITextModifiable | keyof import('../@core').IInteractionModifiable> & import('../@core').IBorderModifiable & import('../@core').IDisplayModifiable & import('../@core').IInteractionModifiable & import('../@core').IMarginModifiable & import('../@core').IPaddingModifiable & import('../@core').IPositionModifiable & import('../@core').ITextModifiable, "ref"> & {
|
|
@@ -9,10 +9,14 @@ import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable
|
|
|
9
9
|
* @extends ITextModifiable
|
|
10
10
|
* @property {string} [className] - Additional class names.
|
|
11
11
|
* @property {Display} [display] - Text display layout.
|
|
12
|
+
* @property {LineHeight<number | string>} - Line height in mobile resolution.
|
|
12
13
|
*/
|
|
13
14
|
interface ITypographyProps extends IMarginModifiable, ISizeModifiable, IPaddingModifiable, Omit<ITextModifiable, "fontSize"> {
|
|
15
|
+
bgGradient?: Property.Background;
|
|
14
16
|
className?: string;
|
|
15
17
|
display?: Property.Display;
|
|
18
|
+
lineSpacingSm?: Property.LineHeight<number | string>;
|
|
19
|
+
textFill?: Property.WebkitTextFillColor;
|
|
16
20
|
}
|
|
17
21
|
type THeadingProps = ITypographyProps;
|
|
18
22
|
type TTextProps = ITypographyProps;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export * from './components/checkbox';
|
|
|
5
5
|
export * from './components/cloud-image';
|
|
6
6
|
export * from './components/colors';
|
|
7
7
|
export * from './components/container';
|
|
8
|
+
export * from './components/content-card';
|
|
8
9
|
export * from './components/form';
|
|
9
10
|
export * from './components/icon';
|
|
11
|
+
export * from './components/icon-button';
|
|
10
12
|
export * from './components/inputs';
|
|
11
13
|
export * from './components/language-selector';
|
|
12
14
|
export * from './components/logo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const openUrl: (url: string, openANewTab?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"stylelint": "16.10.0",
|
|
48
48
|
"stylelint-config-standard": "36.0.1",
|
|
49
49
|
"tailwindcss": "3.4.15",
|
|
50
|
-
"typescript": "5.
|
|
51
|
-
"typescript-eslint": "8.
|
|
52
|
-
"vite": "5.4.
|
|
50
|
+
"typescript": "5.7.2",
|
|
51
|
+
"typescript-eslint": "8.16.0",
|
|
52
|
+
"vite": "5.4.11",
|
|
53
53
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
54
54
|
"vite-plugin-dts": "4.3.0"
|
|
55
55
|
},
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"storybook": "storybook dev"
|
|
93
93
|
},
|
|
94
94
|
"types": "dist/src/index.d.ts",
|
|
95
|
-
"version": "1.2.
|
|
95
|
+
"version": "1.2.28"
|
|
96
96
|
}
|