@fluidattacks/design 1.2.25 → 1.2.26
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 +414 -198
- package/dist/design.mjs +4960 -4009
- package/dist/src/components/inputs/fields/phone/index.d.ts +3 -0
- package/dist/src/components/inputs/fields/phone/styles.d.ts +6 -0
- package/dist/src/components/inputs/fields/text-input/index.d.ts +3 -0
- package/dist/src/components/inputs/index.d.ts +4 -0
- package/dist/src/components/inputs/label/index.d.ts +3 -0
- package/dist/src/components/inputs/outline-container/index.d.ts +4 -0
- package/dist/src/components/inputs/styles.d.ts +3 -0
- package/dist/src/components/inputs/types.d.ts +48 -0
- package/dist/src/components/typography/types.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const StyledPhoneInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const StyledCountrySelector: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
3
|
+
declare const StyledDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
4
|
+
declare const StyledCountryItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
5
|
+
declare const StyledCountryName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
6
|
+
export { StyledCountryName, StyledCountrySelector, StyledCountryItem, StyledDropdown, StyledPhoneInputContainer, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { IOutlineContainerProps } from '../types';
|
|
3
|
+
declare const OutlineContainer: ({ children, error, htmlFor, label, mode, required, tooltip, }: Readonly<PropsWithChildren<IOutlineContainerProps>>) => JSX.Element;
|
|
4
|
+
export { OutlineContainer };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const StyledOutlineContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const StyledTextInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export { StyledOutlineContainer, StyledTextInputContainer };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { TMode } from '../@core';
|
|
3
|
+
/**
|
|
4
|
+
* Label component props.
|
|
5
|
+
* @interface ILabelProps
|
|
6
|
+
* @property {string} htmlFor - The htmlFor of the input.
|
|
7
|
+
* @property {string | JSX.Element} [label] - The label of the input.
|
|
8
|
+
* @property {TMode} [mode] - The background theme: dark or light.
|
|
9
|
+
* @property {boolean} [required] - Whether the input is required.
|
|
10
|
+
* @property {string} [tooltip] - The tooltip of the input.
|
|
11
|
+
*/
|
|
12
|
+
interface ILabelProps {
|
|
13
|
+
htmlFor: string;
|
|
14
|
+
label?: string | JSX.Element;
|
|
15
|
+
mode?: TMode;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Outline container component props.
|
|
21
|
+
* @interface IOutlineContainerProps
|
|
22
|
+
* @extends ILabelProps
|
|
23
|
+
* @property {string} [error] - The error message of the input.
|
|
24
|
+
* @property {string} [helpLink] - The help link of the input.
|
|
25
|
+
* @property {string} [helpLinkText] - The help link text of the input.
|
|
26
|
+
* @property {string} [helpText] - The help text of the input.
|
|
27
|
+
* @property {number} [maxLength] - The max length of the input.
|
|
28
|
+
*/
|
|
29
|
+
interface IOutlineContainerProps extends ILabelProps {
|
|
30
|
+
error?: string;
|
|
31
|
+
helpLink?: string;
|
|
32
|
+
helpLinkText?: string;
|
|
33
|
+
helpText?: string;
|
|
34
|
+
maxLength?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Input text component props.
|
|
38
|
+
* @interface IInputProps
|
|
39
|
+
* @extends ILabelProps
|
|
40
|
+
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
41
|
+
* @property {string} [error] - The error message of the input.
|
|
42
|
+
* @property {string} id - The id of the input.
|
|
43
|
+
*/
|
|
44
|
+
interface IInputProps extends InputHTMLAttributes<HTMLInputElement>, Partial<ILabelProps> {
|
|
45
|
+
error?: string;
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
export type { IInputProps, ILabelProps, IOutlineContainerProps };
|
|
@@ -7,9 +7,11 @@ import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable
|
|
|
7
7
|
* @extends IPaddingModifiable
|
|
8
8
|
* @extends ISizeModifiable
|
|
9
9
|
* @extends ITextModifiable
|
|
10
|
+
* @property {string} [className] - Additional class names.
|
|
10
11
|
* @property {Display} [display] - Text display layout.
|
|
11
12
|
*/
|
|
12
13
|
interface ITypographyProps extends IMarginModifiable, ISizeModifiable, IPaddingModifiable, Omit<ITextModifiable, "fontSize"> {
|
|
14
|
+
className?: string;
|
|
13
15
|
display?: Property.Display;
|
|
14
16
|
}
|
|
15
17
|
type THeadingProps = ITypographyProps;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './components/cloud-image';
|
|
|
6
6
|
export * from './components/colors';
|
|
7
7
|
export * from './components/container';
|
|
8
8
|
export * from './components/icon';
|
|
9
|
+
export * from './components/inputs';
|
|
9
10
|
export * from './components/language-selector';
|
|
10
11
|
export * from './components/logo';
|
|
11
12
|
export * from './components/logo-carousel';
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"@fortawesome/react-fontawesome": "0.2.2",
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"react-dom": "18.2.0",
|
|
13
|
+
"react-international-phone": "4.3.0",
|
|
13
14
|
"react-tooltip": "5.28.0",
|
|
14
15
|
"styled-components": "6.1.13"
|
|
15
16
|
},
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"@types/react-dom": "18.2.0",
|
|
29
30
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
30
31
|
"autoprefixer": "10.4.20",
|
|
31
|
-
"eslint": "9.
|
|
32
|
+
"eslint": "9.14.0",
|
|
32
33
|
"eslint-config-prettier": "9.1.0",
|
|
33
34
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
34
35
|
"eslint-plugin-functional": "7.0.2",
|
|
@@ -39,15 +40,15 @@
|
|
|
39
40
|
"eslint-plugin-project-structure": "3.0.1",
|
|
40
41
|
"eslint-plugin-react": "7.37.0",
|
|
41
42
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
42
|
-
"postcss": "8.4.
|
|
43
|
+
"postcss": "8.4.49",
|
|
43
44
|
"postcss-styled-syntax": "0.7.0",
|
|
44
45
|
"remark-gfm": "4.0.0",
|
|
45
46
|
"storybook": "8.4.3",
|
|
46
47
|
"stylelint": "16.10.0",
|
|
47
48
|
"stylelint-config-standard": "36.0.1",
|
|
48
|
-
"tailwindcss": "3.4.
|
|
49
|
+
"tailwindcss": "3.4.15",
|
|
49
50
|
"typescript": "5.6.3",
|
|
50
|
-
"typescript-eslint": "8.
|
|
51
|
+
"typescript-eslint": "8.14.0",
|
|
51
52
|
"vite": "5.4.10",
|
|
52
53
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
53
54
|
"vite-plugin-dts": "4.3.0"
|
|
@@ -90,5 +91,5 @@
|
|
|
90
91
|
"storybook": "storybook dev"
|
|
91
92
|
},
|
|
92
93
|
"types": "dist/src/index.d.ts",
|
|
93
|
-
"version": "1.2.
|
|
94
|
+
"version": "1.2.26"
|
|
94
95
|
}
|