@carrier-dpx/air-react-library 0.7.1 → 0.7.3
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/package.json +1 -1
- package/src/components/Navbar/NavbarFooter/NavbarFooter.tsx +1 -1
- package/src/components/Navbar/NavbarLogo/NavbarLogo.tsx +1 -1
- package/src/components/Navbar/styles.tsx +1 -1
- package/src/components/Tooltip/Tooltip.figma.tsx +3 -3
- package/src/index.ts +20 -0
- /package/src/components/Icon/icons/demo/{iconRegistry.ts → iconRegistry.tsx} +0 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { styled } from "@mui/material/styles";
|
|
|
3
3
|
import { NavbarFooterProps } from "./types";
|
|
4
4
|
import footerStyles from "./styles";
|
|
5
5
|
import Box from "../../Box";
|
|
6
|
-
import SvgIcon from "
|
|
6
|
+
import SvgIcon from "../../Icon/icons/demo/SvgIcon";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The NavbarFooter component allows adding buttons to the footer.
|
|
@@ -6,7 +6,7 @@ import { NavbarLogoProps } from "./types";
|
|
|
6
6
|
import { useNavbarContext } from "../hooks/useNavbarContext";
|
|
7
7
|
import Box from "../../Box";
|
|
8
8
|
import Button from "../../Button";
|
|
9
|
-
import Zoom from "
|
|
9
|
+
import { Zoom } from "@mui/material";
|
|
10
10
|
import { NavbarTooltip } from "../NavbarButtons";
|
|
11
11
|
import { NavbarButtonClasses } from "../NavbarButtons/types";
|
|
12
12
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
navBorder,
|
|
10
10
|
} from "./constants";
|
|
11
11
|
import { StyledComponentDefaultProps } from "../types/common";
|
|
12
|
-
import { styleTokens } from "
|
|
12
|
+
import { styleTokens } from "../theme/constants/styleTokens";
|
|
13
13
|
import { NavbarProps } from "./types";
|
|
14
14
|
|
|
15
15
|
export default {
|
|
@@ -71,11 +71,11 @@ figma.connect(
|
|
|
71
71
|
/**
|
|
72
72
|
* EXAMPLE CODE TEMPLATE
|
|
73
73
|
* Shows how Tooltip should be used
|
|
74
|
-
* Note: Tooltip wraps children
|
|
74
|
+
* Note: Tooltip wraps children - in actual usage, wrap the target element
|
|
75
75
|
*/
|
|
76
|
-
example: ({ title, color, placement, arrow
|
|
76
|
+
example: ({ title, color, placement, arrow }) => (
|
|
77
77
|
<Tooltip title={title.label} color={color} placement={placement} arrow={arrow}>
|
|
78
|
-
|
|
78
|
+
<span>Hover me</span>
|
|
79
79
|
</Tooltip>
|
|
80
80
|
),
|
|
81
81
|
}
|
package/src/index.ts
CHANGED
|
@@ -23,3 +23,23 @@ export { default as BottomNavigationAction } from "./components/BottomNavigation
|
|
|
23
23
|
export type { BottomNavigationProps } from "./components/BottomNavigation";
|
|
24
24
|
export type { BottomNavigationActionProps } from "./components/BottomNavigation/BottomNavigationAction";
|
|
25
25
|
export * from "./components/theme";
|
|
26
|
+
|
|
27
|
+
// Demo Icons - exported from main index to avoid deep-path imports
|
|
28
|
+
export {
|
|
29
|
+
HomeIcon,
|
|
30
|
+
DeviceManagerIcon,
|
|
31
|
+
SiteIcon,
|
|
32
|
+
WarningTriangle,
|
|
33
|
+
SvgIcon,
|
|
34
|
+
iconRegistry,
|
|
35
|
+
getIcon,
|
|
36
|
+
getIconNames,
|
|
37
|
+
} from "./components/Icon/icons/demo";
|
|
38
|
+
export type {
|
|
39
|
+
HomeIconProps,
|
|
40
|
+
DeviceManagerIconProps,
|
|
41
|
+
SiteIconProps,
|
|
42
|
+
WarningTriangleProps,
|
|
43
|
+
SvgIconProps,
|
|
44
|
+
IconInfo,
|
|
45
|
+
} from "./components/Icon/icons/demo";
|
|
File without changes
|