@ctlyst.id/internal-ui 2.1.2 → 2.1.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.
@@ -12,6 +12,7 @@ export declare type HeaderProps = BoxProps & {
12
12
  centerLogo?: string;
13
13
  centerLogoSize?: BoxProps['h'];
14
14
  hideEnv?: boolean;
15
+ urlLogo?: string;
15
16
  };
16
17
  declare const Header: React.FC<HeaderProps>;
17
18
  export default Header;
@@ -1,6 +1,7 @@
1
1
  import type { BoxProps } from '@chakra-ui/react';
2
2
  import React from 'react';
3
3
  export interface LogoProps {
4
+ url?: string;
4
5
  imageUrl: string;
5
6
  height?: BoxProps['h'];
6
7
  }
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  export default _default;
10
10
  export declare const Color: () => JSX.Element;
11
11
  export declare const Typography: () => JSX.Element;
12
+ export declare const Radius: () => JSX.Element;
12
13
  export declare const Shadow: () => JSX.Element;
13
14
  export declare const Spacing: () => JSX.Element;
14
15
  export declare const Sizes: () => JSX.Element;
@@ -77,7 +77,7 @@ declare const LoaderStyle: {
77
77
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
78
78
  } | undefined;
79
79
  defaultProps?: {
80
- size?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | undefined;
80
+ size?: "lg" | "xs" | "sm" | "md" | "xl" | "xxl" | undefined;
81
81
  variant?: string | number | undefined;
82
82
  colorScheme?: string | undefined;
83
83
  } | undefined;
@@ -1954,16 +1954,32 @@ TextareaField.defaultProps = {
1954
1954
  };
1955
1955
 
1956
1956
  const Logo = ({
1957
+ url,
1957
1958
  imageUrl,
1958
1959
  height
1959
- }) => /*#__PURE__*/React__default.createElement(react.Image, {
1960
- w: "100%",
1961
- h: height !== null && height !== void 0 ? height : 9,
1962
- maxH: height !== null && height !== void 0 ? height : 9,
1963
- src: imageUrl,
1964
- alt: imageUrl
1965
- });
1960
+ }) => {
1961
+ if (url) return /*#__PURE__*/React__default.createElement(react.Box, {
1962
+ as: "a",
1963
+ href: url,
1964
+ cursor: "pointer",
1965
+ target: "_self"
1966
+ }, /*#__PURE__*/React__default.createElement(react.Image, {
1967
+ w: "100%",
1968
+ h: height !== null && height !== void 0 ? height : 9,
1969
+ maxH: height !== null && height !== void 0 ? height : 9,
1970
+ src: imageUrl,
1971
+ alt: imageUrl
1972
+ }));
1973
+ return /*#__PURE__*/React__default.createElement(react.Image, {
1974
+ w: "100%",
1975
+ h: height !== null && height !== void 0 ? height : 9,
1976
+ maxH: height !== null && height !== void 0 ? height : 9,
1977
+ src: imageUrl,
1978
+ alt: imageUrl
1979
+ });
1980
+ };
1966
1981
  Logo.defaultProps = {
1982
+ url: undefined,
1967
1983
  height: undefined
1968
1984
  };
1969
1985
 
@@ -2124,6 +2140,7 @@ const Header = ({
2124
2140
  mainLogoSize,
2125
2141
  centerLogoSize = 4,
2126
2142
  hideEnv = false,
2143
+ urlLogo,
2127
2144
  children,
2128
2145
  ...props
2129
2146
  }) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
@@ -2140,6 +2157,7 @@ const Header = ({
2140
2157
  }, /*#__PURE__*/React.createElement(react.Flex, {
2141
2158
  alignItems: "center"
2142
2159
  }, /*#__PURE__*/React.createElement(Logo, {
2160
+ url: urlLogo,
2143
2161
  imageUrl: mainLogo,
2144
2162
  height: mainLogoSize
2145
2163
  }), children && children), /*#__PURE__*/React.createElement(react.HStack, {
@@ -2150,6 +2168,7 @@ const Header = ({
2150
2168
  left: "50%",
2151
2169
  transform: "translate(-50%,0)"
2152
2170
  }, /*#__PURE__*/React.createElement(Logo, {
2171
+ url: urlLogo,
2153
2172
  imageUrl: centerLogo,
2154
2173
  height: centerLogoSize
2155
2174
  }), /*#__PURE__*/React.createElement(Version, {
@@ -2174,7 +2193,8 @@ Header.defaultProps = {
2174
2193
  mainLogoSize: undefined,
2175
2194
  centerLogo: undefined,
2176
2195
  centerLogoSize: undefined,
2177
- hideEnv: false
2196
+ hideEnv: false,
2197
+ urlLogo: undefined
2178
2198
  };
2179
2199
 
2180
2200
  const ModalBody = /*#__PURE__*/React__default.forwardRef(({
@@ -3154,7 +3174,13 @@ const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
3154
3174
  _selected: {
3155
3175
  borderColor: 'primary.400',
3156
3176
  color: 'primary.500',
3157
- transform: 'translateY(-2px)'
3177
+ transform: 'translateY(-2px)',
3178
+ _hover: {
3179
+ '& .chakra-badge': {
3180
+ bg: 'primary.500'
3181
+ },
3182
+ color: 'primary.500'
3183
+ }
3158
3184
  },
3159
3185
  color: "black.medium",
3160
3186
  _focus: {
@@ -3729,7 +3755,7 @@ const {
3729
3755
  } = /*#__PURE__*/react.createMultiStyleConfigHelpers(anatomy.checkboxAnatomy.keys);
3730
3756
  const baseStyle$1 = /*#__PURE__*/definePartsStyle$1({
3731
3757
  control: {
3732
- borderRadius: '4px',
3758
+ borderRadius: 'sm',
3733
3759
  w: 4,
3734
3760
  h: 4,
3735
3761
  border: '1px solid'
@@ -3833,7 +3859,7 @@ const Chips$1 = /*#__PURE__*/styledSystem.defineStyleConfig({
3833
3859
  const defaultProps = {
3834
3860
  color: 'primary.500',
3835
3861
  textStyle: 'text.sm',
3836
- borderRadius: '24px',
3862
+ borderRadius: '2xl',
3837
3863
  borderWidth: '1px',
3838
3864
  borderColor: 'primary.500',
3839
3865
  bg: 'white.high',