@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.
Files changed (33) hide show
  1. package/README.md +3 -0
  2. package/package.json +10 -7
  3. package/src/components/Copyright/Copyright.figma.tsx +19 -0
  4. package/src/components/Copyright/Copyright.tsx +36 -0
  5. package/src/components/Copyright/index.ts +3 -0
  6. package/src/components/Copyright/styles.ts +8 -0
  7. package/src/components/Copyright/types.ts +8 -0
  8. package/src/components/Divider/Divider.horizontal.figma.tsx +50 -0
  9. package/src/components/Divider/Divider.tsx +57 -0
  10. package/src/components/Divider/Divider.vertical.figma.tsx +54 -0
  11. package/src/components/Divider/index.ts +3 -0
  12. package/src/components/Icon/ArrowLeftIcon.figma.tsx +32 -0
  13. package/src/components/Icon/ArrowRightIcon.figma.tsx +32 -0
  14. package/src/components/Icon/CheckIcon.figma.tsx +32 -0
  15. package/src/components/Icon/CloseIcon.figma.tsx +32 -0
  16. package/src/components/Icon/HomeIcon.figma.tsx +32 -0
  17. package/src/components/Icon/Icon.tsx +24 -0
  18. package/src/components/Icon/InfoIcon.figma.tsx +32 -0
  19. package/src/components/Icon/MenuIcon.figma.tsx +32 -0
  20. package/src/components/Icon/README.md +207 -0
  21. package/src/components/Icon/SearchIcon.figma.tsx +32 -0
  22. package/src/components/Icon/SettingsIcon.figma.tsx +61 -0
  23. package/src/components/Icon/UserIcon.figma.tsx +32 -0
  24. package/src/components/Icon/index.ts +3 -0
  25. package/src/components/Link/Link.figma.tsx +70 -0
  26. package/src/components/Link/Link.tsx +69 -0
  27. package/src/components/Link/index.ts +3 -0
  28. package/src/components/theme/FleetThemeProvider.tsx +50 -50
  29. package/src/components/theme/constants/fleetComponents.ts +873 -873
  30. package/src/components/theme/constants/styleTokens.ts +37 -1
  31. package/src/components/types/common.ts +5 -0
  32. package/src/components/types/props.ts +6 -0
  33. 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
- circular: "50%",
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
  };
@@ -0,0 +1,5 @@
1
+ import { Theme } from "@mui/material/styles";
2
+
3
+ export interface StyledComponentDefaultProps {
4
+ theme: Theme;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { SxProps, Theme } from "@mui/material/styles";
2
+
3
+ export interface StylesExtendable {
4
+ sx?: SxProps<Theme>;
5
+ className?: string;
6
+ }
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";