@ctlyst.id/internal-ui 3.1.3 → 3.1.5

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.
package/dist/index.mjs CHANGED
@@ -2559,17 +2559,20 @@ import {
2559
2559
  } from "@chakra-ui/react";
2560
2560
  import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
2561
2561
  var Tooltip = (props) => {
2562
- const { children, bg = "neutral.700", textStyle = "text.sm", color = "white", width } = props;
2562
+ const { children, bg = "neutral.700", textStyle = "text.sm", color = "white", width, rounded = 4 } = props;
2563
2563
  const content = /* @__PURE__ */ jsxs14(
2564
2564
  PopoverContent,
2565
2565
  {
2566
+ "data-test-id": "",
2566
2567
  border: "none",
2567
2568
  bg,
2569
+ rounded,
2570
+ ml: 1,
2568
2571
  textStyle,
2569
2572
  width,
2570
- ml: 1,
2571
2573
  placeItems: "center",
2572
2574
  borderRadius: props.borderRadius,
2575
+ onClick: (e) => e.stopPropagation(),
2573
2576
  children: [
2574
2577
  props.hasArrow && /* @__PURE__ */ jsx35(PopoverArrow, { color, bg, shadow: "none" }),
2575
2578
  /* @__PURE__ */ jsx35(PopoverBody, { color, ...props, children: props.label })
@@ -2584,7 +2587,16 @@ var Tooltip = (props) => {
2584
2587
 
2585
2588
  // src/components/header/components/profile.tsx
2586
2589
  import { Fragment as Fragment3, jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
2587
- var Profile = ({ color, brandColor, data, badgeStyle, children, onLogout, ...props }) => {
2590
+ var Profile = ({
2591
+ color,
2592
+ brandColor,
2593
+ data,
2594
+ badgeStyle,
2595
+ children,
2596
+ onLogout,
2597
+ officeContainer,
2598
+ ...props
2599
+ }) => {
2588
2600
  var _a, _b;
2589
2601
  const { isOpen, onToggle, onClose } = useDisclosure();
2590
2602
  return /* @__PURE__ */ jsxs15(Popover2, { placement: "bottom-end", isOpen, onClose, children: [
@@ -2639,7 +2651,8 @@ var Profile = ({ color, brandColor, data, badgeStyle, children, onLogout, ...pro
2639
2651
  popoverProps: {
2640
2652
  offset: [10, 8]
2641
2653
  },
2642
- width: 186,
2654
+ width: 300,
2655
+ ...officeContainer,
2643
2656
  children: /* @__PURE__ */ jsx36(Box16, { display: "flex", children: /* @__PURE__ */ jsxs15(
2644
2657
  badge_default,
2645
2658
  {