@ctlyst.id/internal-ui 3.1.3 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -389,9 +389,10 @@ interface ProfileProps extends BoxProps {
389
389
  data?: HeaderDataProps;
390
390
  onLogout?: () => void;
391
391
  badgeStyle?: BadgeProps;
392
+ officeContainer?: Omit<HTMLChakraProps$1<'div'>, 'color'>;
392
393
  }
393
394
  declare const Profile: {
394
- ({ color, brandColor, data, badgeStyle, children, onLogout, ...props }: ProfileProps): react_jsx_runtime.JSX.Element;
395
+ ({ color, brandColor, data, badgeStyle, children, onLogout, officeContainer, ...props }: ProfileProps): react_jsx_runtime.JSX.Element;
395
396
  defaultProps: {
396
397
  brandColor: string;
397
398
  data: undefined;
package/dist/index.d.ts CHANGED
@@ -389,9 +389,10 @@ interface ProfileProps extends BoxProps {
389
389
  data?: HeaderDataProps;
390
390
  onLogout?: () => void;
391
391
  badgeStyle?: BadgeProps;
392
+ officeContainer?: Omit<HTMLChakraProps$1<'div'>, 'color'>;
392
393
  }
393
394
  declare const Profile: {
394
- ({ color, brandColor, data, badgeStyle, children, onLogout, ...props }: ProfileProps): react_jsx_runtime.JSX.Element;
395
+ ({ color, brandColor, data, badgeStyle, children, onLogout, officeContainer, ...props }: ProfileProps): react_jsx_runtime.JSX.Element;
395
396
  defaultProps: {
396
397
  brandColor: string;
397
398
  data: undefined;
package/dist/index.js CHANGED
@@ -2847,17 +2847,20 @@ NavItem.defaultProps = {
2847
2847
  var import_react44 = require("@chakra-ui/react");
2848
2848
  var import_jsx_runtime35 = require("react/jsx-runtime");
2849
2849
  var Tooltip = (props) => {
2850
- const { children, bg = "neutral.700", textStyle = "text.sm", color = "white", width } = props;
2850
+ const { children, bg = "neutral.700", textStyle = "text.sm", color = "white", width, rounded = 4 } = props;
2851
2851
  const content = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2852
2852
  import_react44.PopoverContent,
2853
2853
  {
2854
+ "data-test-id": "",
2854
2855
  border: "none",
2855
2856
  bg,
2857
+ rounded,
2858
+ ml: 1,
2856
2859
  textStyle,
2857
2860
  width,
2858
- ml: 1,
2859
2861
  placeItems: "center",
2860
2862
  borderRadius: props.borderRadius,
2863
+ onClick: (e) => e.stopPropagation(),
2861
2864
  children: [
2862
2865
  props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverArrow, { color, bg, shadow: "none" }),
2863
2866
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverBody, { color, ...props, children: props.label })
@@ -2872,7 +2875,16 @@ var Tooltip = (props) => {
2872
2875
 
2873
2876
  // src/components/header/components/profile.tsx
2874
2877
  var import_jsx_runtime36 = require("react/jsx-runtime");
2875
- var Profile = ({ color, brandColor, data, badgeStyle, children, onLogout, ...props }) => {
2878
+ var Profile = ({
2879
+ color,
2880
+ brandColor,
2881
+ data,
2882
+ badgeStyle,
2883
+ children,
2884
+ onLogout,
2885
+ officeContainer,
2886
+ ...props
2887
+ }) => {
2876
2888
  var _a, _b;
2877
2889
  const { isOpen, onToggle, onClose } = (0, import_react45.useDisclosure)();
2878
2890
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Popover, { placement: "bottom-end", isOpen, onClose, children: [
@@ -2927,7 +2939,8 @@ var Profile = ({ color, brandColor, data, badgeStyle, children, onLogout, ...pro
2927
2939
  popoverProps: {
2928
2940
  offset: [10, 8]
2929
2941
  },
2930
- width: 186,
2942
+ width: 300,
2943
+ ...officeContainer,
2931
2944
  children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2932
2945
  badge_default,
2933
2946
  {