@fluidattacks/design 1.3.0 → 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.
- package/dist/design.js +344 -208
- package/dist/design.mjs +4478 -4211
- package/dist/src/components/code-snippet/index.d.ts +3 -0
- package/dist/src/components/code-snippet/location-code/index.d.ts +3 -0
- package/dist/src/components/code-snippet/styles.d.ts +3 -0
- package/dist/src/components/code-snippet/types.d.ts +22 -0
- package/dist/src/components/divider/index.d.ts +3 -0
- package/dist/src/components/divider/types.d.ts +11 -0
- package/dist/src/components/list-item/index.d.ts +4 -0
- package/dist/src/components/list-item/styles.d.ts +3 -0
- package/dist/src/components/list-item/types.d.ts +28 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +3 -1
|
@@ -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,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,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 };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,10 +5,12 @@ export * from './components/button';
|
|
|
5
5
|
export * from './components/carousel';
|
|
6
6
|
export * from './components/checkbox';
|
|
7
7
|
export * from './components/cloud-image';
|
|
8
|
+
export * from './components/code-snippet';
|
|
8
9
|
export * from './components/colors';
|
|
9
10
|
export * from './components/container';
|
|
10
11
|
export * from './components/content-card';
|
|
11
12
|
export * from './components/content-card-carousel';
|
|
13
|
+
export * from './components/divider';
|
|
12
14
|
export * from './components/file-preview';
|
|
13
15
|
export * from './components/form';
|
|
14
16
|
export * from './components/icon';
|
|
@@ -17,6 +19,7 @@ export * from './components/inputs';
|
|
|
17
19
|
export * from './components/interactive-card';
|
|
18
20
|
export * from './components/language-selector';
|
|
19
21
|
export * from './components/link';
|
|
22
|
+
export * from './components/list-item';
|
|
20
23
|
export * from './components/logo';
|
|
21
24
|
export * from './components/logo-carousel';
|
|
22
25
|
export * from './components/message-banner';
|
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",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"@storybook/react-vite": "8.4.6",
|
|
27
28
|
"@storybook/test": "8.4.6",
|
|
28
29
|
"@storybook/test-runner": "0.20.1",
|
|
30
|
+
"@types/prismjs": "1.26.5",
|
|
29
31
|
"@types/react": "18.2.0",
|
|
30
32
|
"@types/react-dom": "18.2.0",
|
|
31
33
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
@@ -94,5 +96,5 @@
|
|
|
94
96
|
"test-storybook": "test-storybook"
|
|
95
97
|
},
|
|
96
98
|
"types": "dist/src/index.d.ts",
|
|
97
|
-
"version": "1.
|
|
99
|
+
"version": "1.4.0"
|
|
98
100
|
}
|