@carrier-dpx/air-react-library 0.4.0 → 0.6.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/README.md +3 -0
- package/package.json +10 -7
- package/src/components/Copyright/Copyright.figma.tsx +19 -0
- package/src/components/Copyright/Copyright.tsx +36 -0
- package/src/components/Copyright/index.ts +3 -0
- package/src/components/Copyright/styles.ts +8 -0
- package/src/components/Copyright/types.ts +8 -0
- package/src/components/Divider/Divider.horizontal.figma.tsx +50 -0
- package/src/components/Divider/Divider.tsx +57 -0
- package/src/components/Divider/Divider.vertical.figma.tsx +54 -0
- package/src/components/Divider/index.ts +3 -0
- package/src/components/Icon/ArrowLeftIcon.figma.tsx +32 -0
- package/src/components/Icon/ArrowRightIcon.figma.tsx +32 -0
- package/src/components/Icon/CheckIcon.figma.tsx +32 -0
- package/src/components/Icon/CloseIcon.figma.tsx +32 -0
- package/src/components/Icon/HomeIcon.figma.tsx +32 -0
- package/src/components/Icon/Icon.tsx +24 -0
- package/src/components/Icon/InfoIcon.figma.tsx +32 -0
- package/src/components/Icon/MenuIcon.figma.tsx +32 -0
- package/src/components/Icon/README.md +207 -0
- package/src/components/Icon/SearchIcon.figma.tsx +32 -0
- package/src/components/Icon/SettingsIcon.figma.tsx +61 -0
- package/src/components/Icon/UserIcon.figma.tsx +32 -0
- package/src/components/Icon/index.ts +3 -0
- package/src/components/Link/Link.figma.tsx +70 -0
- package/src/components/Link/Link.tsx +69 -0
- package/src/components/Link/index.ts +3 -0
- package/src/components/theme/FleetThemeProvider.tsx +50 -50
- package/src/components/theme/constants/fleetComponents.ts +873 -873
- package/src/components/theme/constants/styleTokens.ts +37 -1
- package/src/components/types/common.ts +5 -0
- package/src/components/types/props.ts +6 -0
- package/src/index.ts +8 -0
|
@@ -1,6 +1,42 @@
|
|
|
1
|
+
import { Theme } from "@mui/material";
|
|
2
|
+
|
|
1
3
|
export const styleTokens = {
|
|
2
4
|
borderRadius: {
|
|
5
|
+
small: "2px",
|
|
6
|
+
medium: "4px",
|
|
3
7
|
large: "8px",
|
|
4
|
-
|
|
8
|
+
xlarge: "10px",
|
|
9
|
+
none: "0px",
|
|
10
|
+
circular: "999px",
|
|
5
11
|
},
|
|
12
|
+
border: {
|
|
13
|
+
standard: (theme: Theme) =>
|
|
14
|
+
`1px solid ${theme.palette.base?.filledInput.outlinedBorder}`,
|
|
15
|
+
divider: (theme: Theme) => `1px solid ${theme.palette.base?.divider}`,
|
|
16
|
+
},
|
|
17
|
+
padding: {
|
|
18
|
+
none: "0px",
|
|
19
|
+
xsmall: "8px",
|
|
20
|
+
small: "10px",
|
|
21
|
+
medium: "12px",
|
|
22
|
+
large: "14px",
|
|
23
|
+
xlarge: "16px",
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
margin: {
|
|
27
|
+
none: "0px",
|
|
28
|
+
xsmall: "8px",
|
|
29
|
+
small: "10px",
|
|
30
|
+
medium: "12px",
|
|
31
|
+
large: "16px",
|
|
32
|
+
xlarge: "20px",
|
|
33
|
+
},
|
|
34
|
+
height: {
|
|
35
|
+
large: "20px",
|
|
36
|
+
xlarge: "24px",
|
|
37
|
+
},
|
|
38
|
+
paddingTop: {
|
|
39
|
+
large: "18px",
|
|
40
|
+
},
|
|
41
|
+
paddingItem: "4px",
|
|
6
42
|
};
|
package/src/index.ts
CHANGED
|
@@ -4,4 +4,12 @@ export { default as Typography } from "./components/Typography";
|
|
|
4
4
|
export type { TypographyProps } from "./components/Typography";
|
|
5
5
|
export { default as TextField } from "./components/TextField";
|
|
6
6
|
export type { TextFieldProps, TextFieldInputProps } from "./components/TextField";
|
|
7
|
+
export { default as Link } from "./components/Link";
|
|
8
|
+
export type { LinkProps } from "./components/Link";
|
|
9
|
+
export { default as Divider } from "./components/Divider";
|
|
10
|
+
export type { DividerProps } from "./components/Divider";
|
|
11
|
+
export { default as Copyright } from "./components/Copyright";
|
|
12
|
+
export type { CopyrightProps } from "./components/Copyright";
|
|
13
|
+
export { default as Icon } from "./components/Icon";
|
|
14
|
+
export type { IconProps } from "./components/Icon";
|
|
7
15
|
export * from "./components/theme";
|