@ctlyst.id/internal-ui 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
@@ -2872,7 +2872,16 @@ var Tooltip = (props) => {
|
|
2872
2872
|
|
2873
2873
|
// src/components/header/components/profile.tsx
|
2874
2874
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2875
|
-
var Profile = ({
|
2875
|
+
var Profile = ({
|
2876
|
+
color,
|
2877
|
+
brandColor,
|
2878
|
+
data,
|
2879
|
+
badgeStyle,
|
2880
|
+
children,
|
2881
|
+
onLogout,
|
2882
|
+
officeContainer,
|
2883
|
+
...props
|
2884
|
+
}) => {
|
2876
2885
|
var _a, _b;
|
2877
2886
|
const { isOpen, onToggle, onClose } = (0, import_react45.useDisclosure)();
|
2878
2887
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
@@ -2928,6 +2937,7 @@ var Profile = ({ color, brandColor, data, badgeStyle, children, onLogout, ...pro
|
|
2928
2937
|
offset: [10, 8]
|
2929
2938
|
},
|
2930
2939
|
width: 186,
|
2940
|
+
...officeContainer,
|
2931
2941
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2932
2942
|
badge_default,
|
2933
2943
|
{
|