@kosdev-code/base-ui-components 0.1.0-dev.5195 → 0.1.0-dev.5198
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/components/atoms/tooltip/base-tooltip.d.ts +2 -1
- package/components/atoms/tooltip/base-tooltip.d.ts.map +1 -1
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.js +18 -20
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -20,6 +20,7 @@ export interface BaseTooltipProps {
|
|
|
20
20
|
className?: string;
|
|
21
21
|
placement?: Placement;
|
|
22
22
|
offset?: number;
|
|
23
|
+
disabled?: boolean;
|
|
23
24
|
}
|
|
24
|
-
export declare const BaseTooltip: ({ arrow: arrowProps, children, content, open, openDelay, className, placement, offset: _offset, }: BaseTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const BaseTooltip: ({ arrow: arrowProps, children, content, open, openDelay, className, placement, offset: _offset, disabled, }: BaseTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
26
|
//# sourceMappingURL=base-tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tooltip/base-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAC/D,OAAO,EAcL,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAY5B,MAAM,WAAW,KAAK;IACpB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"base-tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tooltip/base-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAC/D,OAAO,EAcL,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAY5B,MAAM,WAAW,KAAK;IACpB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,gHAUrB,gBAAgB,qDAwDlB,CAAC"}
|
package/index.cjs
CHANGED
|
@@ -1688,7 +1688,7 @@
|
|
|
1688
1688
|
line-height: 0;
|
|
1689
1689
|
`,lu=h.div`
|
|
1690
1690
|
z-index: 2;
|
|
1691
|
-
`,os=({arrow:e,children:t,content:o,open:n,openDelay:r=250,className:s,placement:l,offset:a})=>{const
|
|
1691
|
+
`,os=({arrow:e,children:t,content:o,open:n,openDelay:r=250,className:s,placement:l,offset:a,disabled:u})=>{const f=d.useRef(null),[p,g]=d.useState(n);d.useEffect(()=>{n!==void 0&&g(n)},[n]);const{refs:m,floatingStyles:x,context:b}=N.useFloating({open:p,onOpenChange:n===void 0?g:void 0,placement:l??"top",whileElementsMounted:N.autoUpdate,middleware:[N.offset(a??12),N.flip({fallbackAxisSideDirection:"start"}),N.shift(),N.arrow({element:f})]}),k=N.useHover(b,{move:!1,restMs:r}),v=N.useFocus(b),w=N.useDismiss(b),y=N.useRole(b,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:S}=N.useInteractions(u?[]:[k,v,w,y]);return i.jsxs(i.Fragment,{children:[i.jsx(au,{className:s,ref:m.setReference,...$(),children:t}),i.jsx(N.FloatingPortal,{children:p&&i.jsxs(lu,{ref:m.setFloating,style:x,...S(),children:[i.jsx(N.FloatingArrow,{...e,ref:f,context:b}),o]})})]})},ns=h.div`
|
|
1692
1692
|
background-color: #ffffff;
|
|
1693
1693
|
border-radius: 0px;
|
|
1694
1694
|
box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.12);
|