@ctlyst.id/internal-ui 1.0.4-canary.5 → 1.0.4-canary.7

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.
@@ -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));
@@ -2367,7 +2367,7 @@ const SelectWrapper = ({
2367
2367
  return /*#__PURE__*/React__default.createElement(Box, {
2368
2368
  css: css`
2369
2369
  .react-select__control {
2370
- border-color: ${isError ? colors.danger['500'] : colors.neutral['400']} !important;
2370
+ border-color: ${isError ? colors.danger['500'] : colors.neutral['500']} !important;
2371
2371
  }
2372
2372
 
2373
2373
  .react-select__control:hover {
@@ -2386,8 +2386,7 @@ const selectStyle = {
2386
2386
  lineHeight: styleMd.lineHeight,
2387
2387
  letterSpacing: 0
2388
2388
  };
2389
- function selectStyles(colorMode, isError) {
2390
- const boxShadowStyle = isError ? `0 0 0 1px ${colors.danger['500']}` : `0 0 0 1px ${colors.primary['500']}`;
2389
+ function selectStyles(colorMode, _isError) {
2391
2390
  return {
2392
2391
  control: (base, state) => colorMode === 'dark' ? {
2393
2392
  ...base,
@@ -2395,11 +2394,11 @@ function selectStyles(colorMode, isError) {
2395
2394
  background: 'transparent',
2396
2395
  color: colors.primary['300'],
2397
2396
  borderColor: colors.secondary['500'],
2398
- boxShadow: state.isFocused ? boxShadowStyle : `inherit`
2397
+ boxShadow: state.isFocused ? 'none' : `inherit`
2399
2398
  } : {
2400
2399
  ...base,
2401
2400
  ...selectStyle,
2402
- boxShadow: state.isFocused ? boxShadowStyle : colors.neutral['500']
2401
+ boxShadow: state.isFocused ? 'none' : colors.neutral['500']
2403
2402
  },
2404
2403
  option: (base, {
2405
2404
  isSelected
@@ -2484,7 +2483,7 @@ function Select({
2484
2483
  classNamePrefix: "react-select"
2485
2484
  }, rest, {
2486
2485
  styles: {
2487
- ...selectStyles(colorMode, isError)
2486
+ ...selectStyles(colorMode)
2488
2487
  },
2489
2488
  theme: themeSelect
2490
2489
  })));
@@ -2504,7 +2503,7 @@ function SelectAsync({
2504
2503
  classNamePrefix: "react-select"
2505
2504
  }, rest, {
2506
2505
  styles: {
2507
- ...selectStyles(colorMode, isError),
2506
+ ...selectStyles(colorMode),
2508
2507
  ...styles
2509
2508
  },
2510
2509
  theme: themeSelect
@@ -2525,7 +2524,7 @@ function SelectAsyncCreatable({
2525
2524
  classNamePrefix: "react-select"
2526
2525
  }, rest, {
2527
2526
  styles: {
2528
- ...selectStyles(colorMode, isError),
2527
+ ...selectStyles(colorMode),
2529
2528
  ...styles
2530
2529
  },
2531
2530
  theme: themeSelect
@@ -2546,7 +2545,7 @@ function SelectCreatable({
2546
2545
  classNamePrefix: "react-select"
2547
2546
  }, rest, {
2548
2547
  styles: {
2549
- ...selectStyles(colorMode, isError),
2548
+ ...selectStyles(colorMode),
2550
2549
  ...styles
2551
2550
  },
2552
2551
  theme: themeSelect