@ctlyst.id/internal-ui 1.0.4-canary.6 → 1.0.4-canary.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/header/components/header.d.ts +1 -0
- package/dist/internal-ui.cjs.development.js +10 -8
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +6 -6
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +10 -8
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
- /package/dist/components/breadcrumb/components/{BreadCrumb.d.ts → bread-crumb.d.ts} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
export { default as BreadCrumb } from './components/
|
2
|
-
export * from './components/
|
1
|
+
export { default as BreadCrumb } from './components/bread-crumb';
|
2
|
+
export * from './components/bread-crumb';
|
@@ -35,7 +35,7 @@ const BreadCrumb = props => {
|
|
35
35
|
disableHome,
|
36
36
|
spacing = 2
|
37
37
|
} = props;
|
38
|
-
const [
|
38
|
+
const [neutral6, dark5] = react.useToken('colors', ['neutral.600', 'dark.500']);
|
39
39
|
return /*#__PURE__*/React.createElement(react.Box, {
|
40
40
|
"data-test-id": "CT_component_breadcrumb_breadcrumb",
|
41
41
|
className: className,
|
@@ -48,16 +48,16 @@ const BreadCrumb = props => {
|
|
48
48
|
alignItems: "center"
|
49
49
|
}, /*#__PURE__*/React.createElement(react.Text, {
|
50
50
|
pr: 2,
|
51
|
-
fontWeight:
|
52
|
-
textStyle: "heading.
|
51
|
+
fontWeight: 600,
|
52
|
+
textStyle: "heading.4",
|
53
53
|
color: react.useColorModeValue('neutral.700', 'white')
|
54
54
|
}, title), /*#__PURE__*/React.createElement(react.Box, {
|
55
55
|
h: "22px",
|
56
56
|
borderLeft: "1px solid",
|
57
|
-
borderColor: react.useColorModeValue(
|
57
|
+
borderColor: react.useColorModeValue(neutral6, 'white')
|
58
58
|
}), /*#__PURE__*/React.createElement(react.Breadcrumb, {
|
59
59
|
separator: /*#__PURE__*/React.createElement(fi.FiChevronsRight, {
|
60
|
-
color: react.useColorModeValue(
|
60
|
+
color: react.useColorModeValue(neutral6, dark5),
|
61
61
|
size: 14
|
62
62
|
}),
|
63
63
|
pl: 2.5,
|
@@ -107,7 +107,7 @@ const BreadCrumb = props => {
|
|
107
107
|
cursor: 'default'
|
108
108
|
}
|
109
109
|
}, /*#__PURE__*/React.createElement(react.Text, {
|
110
|
-
color: react.useColorModeValue(
|
110
|
+
color: react.useColorModeValue(neutral6, 'white'),
|
111
111
|
fontSize: "text.sm",
|
112
112
|
fontWeight: 400
|
113
113
|
}, title))))), children && /*#__PURE__*/React.createElement(react.Box, null, children));
|
@@ -1934,6 +1934,7 @@ const Header = ({
|
|
1934
1934
|
data,
|
1935
1935
|
onLogout,
|
1936
1936
|
onOpenModalRelease,
|
1937
|
+
hideSwitchMode,
|
1937
1938
|
...props
|
1938
1939
|
}) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
|
1939
1940
|
minH: 14,
|
@@ -1954,14 +1955,15 @@ const Header = ({
|
|
1954
1955
|
onOpenModalRelease: onOpenModalRelease
|
1955
1956
|
})), /*#__PURE__*/React.createElement(react.Flex, {
|
1956
1957
|
alignItems: "center"
|
1957
|
-
}, /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
|
1958
|
+
}, !hideSwitchMode && /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
|
1958
1959
|
data: data,
|
1959
1960
|
onLogout: onLogout
|
1960
1961
|
}))));
|
1961
1962
|
Header.defaultProps = {
|
1962
1963
|
data: undefined,
|
1963
1964
|
onLogout: undefined,
|
1964
|
-
onOpenModalRelease: undefined
|
1965
|
+
onOpenModalRelease: undefined,
|
1966
|
+
hideSwitchMode: false
|
1965
1967
|
};
|
1966
1968
|
|
1967
1969
|
const ModalBody = /*#__PURE__*/React__default.forwardRef(({
|