@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.
@@ -29,7 +29,7 @@ const BreadCrumb = props => {
29
29
  disableHome,
30
30
  spacing = 2
31
31
  } = props;
32
- const [neutral7, dark5] = useToken('colors', ['neutral.700', 'dark.500']);
32
+ const [neutral6, dark5] = useToken('colors', ['neutral.600', 'dark.500']);
33
33
  return /*#__PURE__*/createElement(Box, {
34
34
  "data-test-id": "CT_component_breadcrumb_breadcrumb",
35
35
  className: className,
@@ -42,16 +42,16 @@ const BreadCrumb = props => {
42
42
  alignItems: "center"
43
43
  }, /*#__PURE__*/createElement(Text, {
44
44
  pr: 2,
45
- fontWeight: 500,
46
- textStyle: "heading.3",
45
+ fontWeight: 600,
46
+ textStyle: "heading.4",
47
47
  color: useColorModeValue('neutral.700', 'white')
48
48
  }, title), /*#__PURE__*/createElement(Box, {
49
49
  h: "22px",
50
50
  borderLeft: "1px solid",
51
- borderColor: useColorModeValue('neutral.700', 'white')
51
+ borderColor: useColorModeValue(neutral6, 'white')
52
52
  }), /*#__PURE__*/createElement(Breadcrumb, {
53
53
  separator: /*#__PURE__*/createElement(FiChevronsRight, {
54
- color: useColorModeValue(neutral7, dark5),
54
+ color: useColorModeValue(neutral6, dark5),
55
55
  size: 14
56
56
  }),
57
57
  pl: 2.5,
@@ -101,7 +101,7 @@ const BreadCrumb = props => {
101
101
  cursor: 'default'
102
102
  }
103
103
  }, /*#__PURE__*/createElement(Text, {
104
- color: useColorModeValue('dark.700', 'white'),
104
+ color: useColorModeValue(neutral6, 'white'),
105
105
  fontSize: "text.sm",
106
106
  fontWeight: 400
107
107
  }, title))))), children && /*#__PURE__*/createElement(Box, null, children));
@@ -1928,6 +1928,7 @@ const Header = ({
1928
1928
  data,
1929
1929
  onLogout,
1930
1930
  onOpenModalRelease,
1931
+ hideSwitchMode,
1931
1932
  ...props
1932
1933
  }) => /*#__PURE__*/createElement(Box, Object.assign({
1933
1934
  minH: 14,
@@ -1948,14 +1949,15 @@ const Header = ({
1948
1949
  onOpenModalRelease: onOpenModalRelease
1949
1950
  })), /*#__PURE__*/createElement(Flex, {
1950
1951
  alignItems: "center"
1951
- }, /*#__PURE__*/createElement(SwitchMode, null), /*#__PURE__*/createElement(Profile, {
1952
+ }, !hideSwitchMode && /*#__PURE__*/createElement(SwitchMode, null), /*#__PURE__*/createElement(Profile, {
1952
1953
  data: data,
1953
1954
  onLogout: onLogout
1954
1955
  }))));
1955
1956
  Header.defaultProps = {
1956
1957
  data: undefined,
1957
1958
  onLogout: undefined,
1958
- onOpenModalRelease: undefined
1959
+ onOpenModalRelease: undefined,
1960
+ hideSwitchMode: false
1959
1961
  };
1960
1962
 
1961
1963
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({