@apify/ui-library 1.138.4-featpublictasks-2f3d3c.59 → 1.139.0
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/src/components/chip.d.ts.map +1 -1
- package/dist/src/components/chip.js +2 -25
- package/dist/src/components/chip.js.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.d.ts +2 -3
- package/dist/src/components/collapsible_card/collapsible_card.d.ts.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js +2 -2
- package/dist/src/components/collapsible_card/collapsible_card.js.map +1 -1
- package/dist/src/components/floating/floating_component_base.d.ts +1 -72
- package/dist/src/components/floating/floating_component_base.d.ts.map +1 -1
- package/dist/src/components/floating/floating_component_base.js +36 -66
- package/dist/src/components/floating/floating_component_base.js.map +1 -1
- package/dist/src/components/floating/tooltip.d.ts +3 -10
- package/dist/src/components/floating/tooltip.d.ts.map +1 -1
- package/dist/src/components/floating/tooltip.js +20 -24
- package/dist/src/components/floating/tooltip.js.map +1 -1
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +0 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/components/chip.tsx +1 -27
- package/src/components/collapsible_card/collapsible_card.tsx +4 -6
- package/src/components/floating/floating_component_base.tsx +47 -89
- package/src/components/floating/tooltip.tsx +25 -53
- package/src/components/index.ts +0 -1
- package/dist/src/components/browser_window/browser_window.d.ts +0 -20
- package/dist/src/components/browser_window/browser_window.d.ts.map +0 -1
- package/dist/src/components/browser_window/browser_window.js +0 -72
- package/dist/src/components/browser_window/browser_window.js.map +0 -1
- package/dist/src/components/browser_window/index.d.ts +0 -2
- package/dist/src/components/browser_window/index.d.ts.map +0 -1
- package/dist/src/components/browser_window/index.js +0 -2
- package/dist/src/components/browser_window/index.js.map +0 -1
- package/src/components/browser_window/browser_window.tsx +0 -106
- package/src/components/browser_window/index.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AACX,KAAK,UAAU,GAAG,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,UAAU;;CAEtB,CAAC;
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AACX,KAAK,UAAU,GAAG,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAmEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACtC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;WAVN,UAAU;WACV,UAAU;WACV,KAAK,CAAC,SAAS;gBACV,OAAO;iCA4BtB,CAAC;AAIF,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAEjD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAA4D,CAAC;AAC3G,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAA4D,CAAC;AAC3G,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAA4D,CAAC;AAC3G,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAA2D,CAAC;AACzG,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAA4D,CAAC"}
|
|
@@ -67,32 +67,9 @@ const chipTypeStyle = {
|
|
|
67
67
|
background: ${theme.color.danger.chipBackground};
|
|
68
68
|
`,
|
|
69
69
|
};
|
|
70
|
-
const chipTypeHoverStyle = {
|
|
71
|
-
[CHIP_TYPES.DEFAULT]: css `
|
|
72
|
-
background: ${theme.color.neutral.chipBackgroundHover};
|
|
73
|
-
`,
|
|
74
|
-
[CHIP_TYPES.PRIMARY]: css `
|
|
75
|
-
background: ${theme.color.primary.chipBackgroundHover};
|
|
76
|
-
`,
|
|
77
|
-
[CHIP_TYPES.SUCCESS]: css `
|
|
78
|
-
background: ${theme.color.success.chipBackgroundHover};
|
|
79
|
-
`,
|
|
80
|
-
[CHIP_TYPES.WARNING]: css `
|
|
81
|
-
background: ${theme.color.warning.chipBackgroundHover};
|
|
82
|
-
`,
|
|
83
|
-
[CHIP_TYPES.DANGER]: css `
|
|
84
|
-
background: ${theme.color.danger.chipBackgroundHover};
|
|
85
|
-
`,
|
|
86
|
-
};
|
|
87
70
|
const StyledChip = styled.span `
|
|
88
71
|
${({ size }) => chipSizeStyle[size]};
|
|
89
72
|
${({ type }) => chipTypeStyle[type]};
|
|
90
|
-
${({ type, clickable }) => clickable &&
|
|
91
|
-
css `
|
|
92
|
-
&:hover {
|
|
93
|
-
${chipTypeHoverStyle[type]};
|
|
94
|
-
}
|
|
95
|
-
`};
|
|
96
73
|
/* Static styles */
|
|
97
74
|
width: fit-content;
|
|
98
75
|
display: flex;
|
|
@@ -108,8 +85,8 @@ const StyledChip = styled.span `
|
|
|
108
85
|
* Component for displaying status and for labelling other components.
|
|
109
86
|
* @deprecated Use Tag or Badge
|
|
110
87
|
*/
|
|
111
|
-
export const Chip = forwardRef(({ type = CHIP_TYPES.DEFAULT, size = CHIP_SIZES.MEDIUM,
|
|
112
|
-
const otherProps = { ...passThroughProps, type, size,
|
|
88
|
+
export const Chip = forwardRef(({ type = CHIP_TYPES.DEFAULT, size = CHIP_SIZES.MEDIUM, icon, children, className, ...passThroughProps }, ref) => {
|
|
89
|
+
const otherProps = { ...passThroughProps, type, size, className: clsx(className, classNames.BODY) };
|
|
113
90
|
return (_jsxs(StyledChip, { ref: ref, ...otherProps, children: [children, icon] }));
|
|
114
91
|
});
|
|
115
92
|
Chip.displayName = 'Chip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.js","sourceRoot":"","sources":["../../../src/components/chip.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;CACJ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boolean;
|
|
4
4
|
hasShadow?: boolean;
|
|
@@ -7,7 +7,6 @@ export type CollapsibleCardProps = {
|
|
|
7
7
|
header: ReactNode;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
isExpanded?: boolean;
|
|
10
|
-
isExpandedDefault?: boolean;
|
|
11
10
|
onIsExpandedChanged?: (expanded: boolean) => void;
|
|
12
11
|
noChevron?: boolean;
|
|
13
12
|
noDivider?: boolean;
|
|
@@ -21,6 +20,6 @@ export declare const collapsibleCardClassNames: {
|
|
|
21
20
|
COLLAPSIBLE_CONTENT_WRAPPER: string;
|
|
22
21
|
CONTENT: string;
|
|
23
22
|
};
|
|
24
|
-
export declare const CollapsibleCard:
|
|
23
|
+
export declare const CollapsibleCard: FC<CollapsibleCardProps>;
|
|
25
24
|
export {};
|
|
26
25
|
//# sourceMappingURL=collapsible_card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible_card.d.ts","sourceRoot":"","sources":["../../../../src/components/collapsible_card/collapsible_card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsible_card.d.ts","sourceRoot":"","sources":["../../../../src/components/collapsible_card/collapsible_card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAS1D,UAAU,qBAAqB;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,GAAG,qBAAqB,GACrB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC;AAExD,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAC;AAqEF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA+DpD,CAAC"}
|
|
@@ -71,9 +71,9 @@ const StyledCardContent = styled.div `
|
|
|
71
71
|
const CollapsibleContent = styled(Collapsible.Content) `
|
|
72
72
|
${({ $noDivider }) => ($noDivider ? '' : `border-top: 1px solid ${theme.color.neutral.border};`)}
|
|
73
73
|
`;
|
|
74
|
-
export const CollapsibleCard = ({ header, children, isExpanded,
|
|
74
|
+
export const CollapsibleCard = ({ header, children, isExpanded, onIsExpandedChanged, noChevron, noDivider, topSection, hideOuterBorder, hasShadow, isClosedHeaderGrey, isHeaderGreyOnHover, as: Element, ...rest }) => {
|
|
75
75
|
const isUncontrolled = isExpanded === undefined;
|
|
76
|
-
const [isOpen, setOpen] = useState(
|
|
76
|
+
const [isOpen, setOpen] = useState(false);
|
|
77
77
|
let onHeaderClick;
|
|
78
78
|
if (isUncontrolled)
|
|
79
79
|
onHeaderClick = () => setOpen((prevIsOpen) => !prevIsOpen);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible_card.js","sourceRoot":"","sources":["../../../../src/components/collapsible_card/collapsible_card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"collapsible_card.js","sourceRoot":"","sources":["../../../../src/components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yB,CAAC,OAAO,eAAY,cAAc,YACpF,QAAQ,GACO,GACH,GACN,IACH,CACvB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Strategy } from '@floating-ui/react';
|
|
2
|
-
import { type ComponentType, type
|
|
2
|
+
import { type ComponentType, type ReactNode, type RefObject } from 'react';
|
|
3
3
|
export declare const classNames: {
|
|
4
4
|
CHILDREN: string;
|
|
5
5
|
};
|
|
@@ -18,70 +18,6 @@ export declare const FLOATING_PLACEMENT: {
|
|
|
18
18
|
readonly LEFT_END: "left-end";
|
|
19
19
|
};
|
|
20
20
|
export type FloatingPlacement = (typeof FLOATING_PLACEMENT)[keyof typeof FLOATING_PLACEMENT];
|
|
21
|
-
type UseFloatingPopupOptions = {
|
|
22
|
-
open: boolean;
|
|
23
|
-
onOpenChange?: (open: boolean) => void;
|
|
24
|
-
placement?: FloatingPlacement;
|
|
25
|
-
strategy?: Strategy;
|
|
26
|
-
autoPlacements?: FloatingPlacement[];
|
|
27
|
-
offsetPx?: number;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Shared `useFloating` + `useTransitionStyles` setup for popup-style components (`Tooltip`,
|
|
31
|
-
* `Popover`, the inner positioning of `FloatingComponentBase`). Owns the middleware stack
|
|
32
|
-
* (`offset` / `flip` | `autoPlacement` / `shift` / `hide`) and the side-aware in/out animation,
|
|
33
|
-
* so individual consumers don't duplicate these.
|
|
34
|
-
*
|
|
35
|
-
* Returns the full `useFloating` result plus `isMounted` and `transitionStyles` from
|
|
36
|
-
* `useTransitionStyles` — destructure what each consumer needs.
|
|
37
|
-
*/
|
|
38
|
-
export declare const useFloatingPopup: ({ open, onOpenChange, placement, strategy, autoPlacements, offsetPx, }: UseFloatingPopupOptions) => {
|
|
39
|
-
isMounted: boolean;
|
|
40
|
-
transitionStyles: CSSProperties;
|
|
41
|
-
placement: import("@floating-ui/react-dom").Placement;
|
|
42
|
-
strategy: Strategy;
|
|
43
|
-
middlewareData: import("@floating-ui/react-dom").MiddlewareData;
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
isPositioned: boolean;
|
|
47
|
-
update: () => void;
|
|
48
|
-
floatingStyles: React.CSSProperties;
|
|
49
|
-
refs: {
|
|
50
|
-
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
51
|
-
floating: React.MutableRefObject<HTMLElement | null>;
|
|
52
|
-
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
53
|
-
setFloating: (node: HTMLElement | null) => void;
|
|
54
|
-
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
55
|
-
elements: {
|
|
56
|
-
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
57
|
-
floating: HTMLElement | null;
|
|
58
|
-
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
59
|
-
context: {
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
placement: import("@floating-ui/react-dom").Placement;
|
|
63
|
-
strategy: Strategy;
|
|
64
|
-
middlewareData: import("@floating-ui/react-dom").MiddlewareData;
|
|
65
|
-
isPositioned: boolean;
|
|
66
|
-
update: () => void;
|
|
67
|
-
floatingStyles: React.CSSProperties;
|
|
68
|
-
open: boolean;
|
|
69
|
-
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
70
|
-
events: import("@floating-ui/react").FloatingEvents;
|
|
71
|
-
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
72
|
-
nodeId: string | undefined;
|
|
73
|
-
floatingId: string | undefined;
|
|
74
|
-
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
75
|
-
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Builds the inline `style` object floating-ui consumers spread onto their popup wrapper:
|
|
80
|
-
* positioning (`position`/`top`/`left`), `width: 'max-content'`, the `referenceHidden`
|
|
81
|
-
* visibility toggle, and the in/out transition styles. Centralized so Tooltip / Popover /
|
|
82
|
-
* `FloatingComponentBase` don't redeclare it.
|
|
83
|
-
*/
|
|
84
|
-
export declare const getFloatingPopupStyle: (floating: ReturnType<typeof useFloatingPopup>) => CSSProperties;
|
|
85
21
|
export interface FloatingComponentBaseProps {
|
|
86
22
|
placement?: FloatingPlacement;
|
|
87
23
|
autoPlacements?: FloatingPlacement[];
|
|
@@ -96,16 +32,9 @@ export interface FloatingComponentBaseProps {
|
|
|
96
32
|
CloseButtonComponent?: ComponentType;
|
|
97
33
|
showInPortal?: boolean;
|
|
98
34
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Base styling for any popup that renders via floating-ui (Tooltip, Popover, …). Tooltip extends
|
|
101
|
-
* this via `styled(...)` to layer on its dark theme + tighter padding without re-declaring the
|
|
102
|
-
* shared rules.
|
|
103
|
-
*/
|
|
104
|
-
export declare const FloatingComponentWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
105
35
|
/**
|
|
106
36
|
* This is just the base component for Tooltips and Popovers.
|
|
107
37
|
* Don't use this - use Tooltip/HelpPopover instead.
|
|
108
38
|
*/
|
|
109
39
|
export declare const FloatingComponentBase: ({ placement, autoPlacements, strategy, content, children, isOpen, triggerRef, className, offsetPx, contentWrapClassName, CloseButtonComponent, showInPortal, }: FloatingComponentBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
110
|
-
export {};
|
|
111
40
|
//# sourceMappingURL=floating_component_base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating_component_base.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQH,KAAK,QAAQ,EAGhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"floating_component_base.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQH,KAAK,QAAQ,EAGhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,KAAK,aAAa,EAIlB,KAAK,SAAS,EACd,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAKf,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAarB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAU7F,MAAM,WAAW,0BAA0B;IACvC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AA4CD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,gKAanC,0BAA0B,4CA6E5B,CAAC"}
|
|
@@ -21,67 +21,7 @@ export const FLOATING_PLACEMENT = {
|
|
|
21
21
|
LEFT_START: 'left-start',
|
|
22
22
|
LEFT_END: 'left-end',
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
* Shared `useFloating` + `useTransitionStyles` setup for popup-style components (`Tooltip`,
|
|
26
|
-
* `Popover`, the inner positioning of `FloatingComponentBase`). Owns the middleware stack
|
|
27
|
-
* (`offset` / `flip` | `autoPlacement` / `shift` / `hide`) and the side-aware in/out animation,
|
|
28
|
-
* so individual consumers don't duplicate these.
|
|
29
|
-
*
|
|
30
|
-
* Returns the full `useFloating` result plus `isMounted` and `transitionStyles` from
|
|
31
|
-
* `useTransitionStyles` — destructure what each consumer needs.
|
|
32
|
-
*/
|
|
33
|
-
export const useFloatingPopup = ({ open, onOpenChange, placement = FLOATING_PLACEMENT.TOP, strategy = 'fixed', autoPlacements, offsetPx = 10, }) => {
|
|
34
|
-
const floating = useFloating({
|
|
35
|
-
open,
|
|
36
|
-
onOpenChange,
|
|
37
|
-
placement,
|
|
38
|
-
strategy,
|
|
39
|
-
whileElementsMounted: autoUpdate,
|
|
40
|
-
middleware: [
|
|
41
|
-
offset(offsetPx),
|
|
42
|
-
autoPlacements?.length ? autoPlacement({ allowedPlacements: autoPlacements }) : flip(),
|
|
43
|
-
shift({ padding: 5 }),
|
|
44
|
-
hide({ strategy: 'referenceHidden' }),
|
|
45
|
-
],
|
|
46
|
-
});
|
|
47
|
-
const { isMounted, styles: transitionStyles } = useTransitionStyles(floating.context, {
|
|
48
|
-
initial: ({ side }) => {
|
|
49
|
-
switch (side) {
|
|
50
|
-
case 'top':
|
|
51
|
-
return { opacity: 0, scale: '0.9', transform: 'translateY(10px)' };
|
|
52
|
-
case 'bottom':
|
|
53
|
-
return { opacity: 0, scale: '0.9', transform: 'translateY(-10px)' };
|
|
54
|
-
case 'left':
|
|
55
|
-
return { opacity: 0, scale: '0.9', transform: 'translateX(10px)' };
|
|
56
|
-
case 'right':
|
|
57
|
-
return { opacity: 0, scale: '0.9', transform: 'translateX(-10px)' };
|
|
58
|
-
default:
|
|
59
|
-
return {};
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
return { ...floating, isMounted, transitionStyles };
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Builds the inline `style` object floating-ui consumers spread onto their popup wrapper:
|
|
67
|
-
* positioning (`position`/`top`/`left`), `width: 'max-content'`, the `referenceHidden`
|
|
68
|
-
* visibility toggle, and the in/out transition styles. Centralized so Tooltip / Popover /
|
|
69
|
-
* `FloatingComponentBase` don't redeclare it.
|
|
70
|
-
*/
|
|
71
|
-
export const getFloatingPopupStyle = (floating) => ({
|
|
72
|
-
position: floating.strategy,
|
|
73
|
-
top: floating.y ?? 0,
|
|
74
|
-
left: floating.x ?? 0,
|
|
75
|
-
width: 'max-content',
|
|
76
|
-
visibility: floating.middlewareData.hide?.referenceHidden ? 'hidden' : 'visible',
|
|
77
|
-
...floating.transitionStyles,
|
|
78
|
-
});
|
|
79
|
-
/**
|
|
80
|
-
* Base styling for any popup that renders via floating-ui (Tooltip, Popover, …). Tooltip extends
|
|
81
|
-
* this via `styled(...)` to layer on its dark theme + tighter padding without re-declaring the
|
|
82
|
-
* shared rules.
|
|
83
|
-
*/
|
|
84
|
-
export const FloatingComponentWrapper = styled.span `
|
|
24
|
+
const FloatingComponentWrapStyled = styled.span `
|
|
85
25
|
padding: ${theme.space.space16};
|
|
86
26
|
${theme.typography.shared.mobile.bodyM};
|
|
87
27
|
border-radius: 0.8rem;
|
|
@@ -111,7 +51,7 @@ const StyledPopoverBox = styled.div `
|
|
|
111
51
|
`;
|
|
112
52
|
const FloatingComponentWrap = forwardRef((props, ref) => {
|
|
113
53
|
const { showInPortal, ...rest } = props;
|
|
114
|
-
const component = _jsx(
|
|
54
|
+
const component = _jsx(FloatingComponentWrapStyled, { ...rest, ref: ref });
|
|
115
55
|
if (showInPortal) {
|
|
116
56
|
return _jsx(FloatingPortal, { children: component });
|
|
117
57
|
}
|
|
@@ -123,15 +63,45 @@ FloatingComponentWrap.displayName = 'FloatingComponentWrap';
|
|
|
123
63
|
* Don't use this - use Tooltip/HelpPopover instead.
|
|
124
64
|
*/
|
|
125
65
|
export const FloatingComponentBase = ({ placement = FLOATING_PLACEMENT.TOP, autoPlacements, strategy = 'fixed', content, children, isOpen = false, triggerRef, className, offsetPx = 10, contentWrapClassName, CloseButtonComponent, showInPortal = false, }) => {
|
|
126
|
-
const
|
|
66
|
+
const { x, y, refs: { setReference, setFloating }, strategy: effectiveStrategy, middlewareData: { hide: refHidden }, context, } = useFloating({
|
|
127
67
|
open: isOpen,
|
|
128
68
|
placement,
|
|
129
69
|
strategy,
|
|
130
|
-
|
|
131
|
-
|
|
70
|
+
whileElementsMounted: autoUpdate,
|
|
71
|
+
middleware: [
|
|
72
|
+
offset(offsetPx),
|
|
73
|
+
autoPlacements?.length ? autoPlacement({ allowedPlacements: autoPlacements }) : flip(),
|
|
74
|
+
shift({ padding: 5 }),
|
|
75
|
+
hide({
|
|
76
|
+
strategy: 'referenceHidden',
|
|
77
|
+
}),
|
|
78
|
+
],
|
|
79
|
+
});
|
|
80
|
+
const { isMounted, styles } = useTransitionStyles(context, {
|
|
81
|
+
initial: ({ side }) => {
|
|
82
|
+
switch (side) {
|
|
83
|
+
case 'top':
|
|
84
|
+
return { opacity: 0, scale: '0.9', transform: 'translateY(10px)' };
|
|
85
|
+
case 'bottom':
|
|
86
|
+
return { opacity: 0, scale: '0.9', transform: 'translateY(-10px)' };
|
|
87
|
+
case 'left':
|
|
88
|
+
return { opacity: 0, scale: '0.9', transform: 'translateX(10px)' };
|
|
89
|
+
case 'right':
|
|
90
|
+
return { opacity: 0, scale: '0.9', transform: 'translateX(-10px)' };
|
|
91
|
+
default:
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
},
|
|
132
95
|
});
|
|
133
96
|
if (!content)
|
|
134
97
|
return _jsx("span", { children: children });
|
|
135
|
-
return (_jsxs(_Fragment, { children: [_jsx(ChildrenWrap, { className: clsx(classNames.CHILDREN, contentWrapClassName), ref:
|
|
98
|
+
return (_jsxs(_Fragment, { children: [_jsx(ChildrenWrap, { className: clsx(classNames.CHILDREN, contentWrapClassName), ref: setReference, children: children }), isMounted && (_jsx(FloatingComponentWrap, { className: className, ref: setFloating, style: {
|
|
99
|
+
position: effectiveStrategy,
|
|
100
|
+
top: y ?? 0,
|
|
101
|
+
left: x ?? 0,
|
|
102
|
+
width: 'max-content',
|
|
103
|
+
visibility: refHidden?.referenceHidden ? 'hidden' : 'visible',
|
|
104
|
+
...styles,
|
|
105
|
+
}, onClick: (e) => e.stopPropagation(), showInPortal: showInPortal, children: _jsx("div", { ref: triggerRef, children: CloseButtonComponent ? (_jsxs(StyledPopoverBox, { children: [content, _jsx(CloseButtonComponent, {})] })) : (content) }) }))] }));
|
|
136
106
|
};
|
|
137
107
|
//# sourceMappingURL=floating_component_base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating_component_base.js","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,aAAa,EACb,UAAU,EACV,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,MAAM,EACN,KAAK,EAEL,WAAW,EACX,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAGH,UAAU,GAIb,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,QAAQ,EAAE,4BAA4B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"floating_component_base.js","sourceRoot":"","sources":["../../../../src/components/floating/floating_component_base.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,aAAa,EACb,UAAU,EACV,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,MAAM,EACN,KAAK,EAEL,WAAW,EACX,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAGH,UAAU,GAIb,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,QAAQ,EAAE,4BAA4B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC;AA2BX,MAAM,2BAA2B,GAAG,MAAM,CAAC,IAAI,CAAA;eAChC,KAAK,CAAC,KAAK,CAAC,OAAO;MAC5B,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;;;;;;;aAO7B,KAAK,CAAC,MAAM,CAAC,MAAM;UACtB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK;;;aAGjC,KAAK,CAAC,MAAM,CAAC,OAAO;UACvB,KAAK,CAAC,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B,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE;oBACH,QAAQ,EAAE,iBAAiB;oBAC3B,GAAG,EAAE,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,CAAC,IAAI,CAAC;oBACZ,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;oBAC7D,GAAG,MAAM;iBACZ,EACD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,YAAY,EAAE,YAAY,YAE1B,cAAK,GAAG,EAAE,UAAU,YACf,oBAAoB,CAAC,CAAC,CAAC,CACpB,MAAC,gBAAgB,eACZ,OAAO,EACR,KAAC,oBAAoB,KAAG,IACT,CACtB,CAAC,CAAC,CAAC,CACA,OAAO,CACV,GACC,GACc,CAC3B,IACF,CACN,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare const TOOLTIP_SIZES: {
|
|
|
13
13
|
readonly XLARGE: "xlarge";
|
|
14
14
|
};
|
|
15
15
|
export type TooltipSize = (typeof TOOLTIP_SIZES)[keyof typeof TOOLTIP_SIZES];
|
|
16
|
-
export interface TooltipProps extends Omit<FloatingComponentBaseProps, 'isOpen' | 'size'
|
|
16
|
+
export interface TooltipProps extends Omit<FloatingComponentBaseProps, 'isOpen' | 'size'> {
|
|
17
17
|
as?: ElementType;
|
|
18
18
|
className?: string;
|
|
19
19
|
delayShow?: number;
|
|
@@ -28,16 +28,9 @@ interface WithTooltipProps {
|
|
|
28
28
|
tooltipProps?: TooltipProps;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Tooltip appears on hover, for onclick use Popover
|
|
32
|
-
*
|
|
33
|
-
* Reference (the trigger wrapper) and floating (the popup) are rendered as separate DOM subtrees
|
|
34
|
-
* — the popup is portaled (or rendered as a sibling fragment when `showInPortal={false}`), never
|
|
35
|
-
* nested inside the trigger. floating-ui's `useHover` resolves open/close state by tracking the
|
|
36
|
-
* cursor across distinct reference and floating elements; nesting them causes their bounding
|
|
37
|
-
* rects to overlap and the state machine flips unpredictably (see floating-ui docs on the
|
|
38
|
-
* reference/floating element separation requirement).
|
|
31
|
+
* Tooltip appears on hover, for onclick use Popover
|
|
39
32
|
*/
|
|
40
|
-
export declare const Tooltip: ({ as, className, delayShow, delayHide, shortcuts, imageUrl, subtleText, size, textAlign,
|
|
33
|
+
export declare const Tooltip: ({ as, className, delayShow, delayHide, shortcuts, imageUrl, subtleText, size, textAlign, ...rest }: TooltipProps) => ReactNode;
|
|
41
34
|
export declare function withTooltip<TProps extends Record<string, unknown> = Record<string, unknown>>(Component: ComponentType<TProps>): import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<TProps & WithTooltipProps> & import("react").RefAttributes<HTMLElement>>;
|
|
42
35
|
export {};
|
|
43
36
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKnG,OAAO,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKnG,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAGtG,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE9F,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE7E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,0BAA0B,EAAE,QAAQ,GAAG,MAAM,CAAC;IACrF,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,UAAU,gBAAgB;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AA0BD;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,oGAWrB,YAAY,KAAG,SA0CjB,CAAC;AAEF,wBAAgB,WAAW,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxF,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,sJAcnC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFloating, useHover, useInteractions } from '@floating-ui/react';
|
|
3
3
|
import { forwardRef, useState } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
6
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
7
|
-
import {
|
|
7
|
+
import { FloatingComponentBase } from './floating_component_base.js';
|
|
8
8
|
import { TooltipContent } from './tooltip_content.js';
|
|
9
9
|
export const TOOLTIP_TEXT_ALIGNS = {
|
|
10
10
|
LEFT: 'left',
|
|
@@ -19,7 +19,7 @@ export const TOOLTIP_SIZES = {
|
|
|
19
19
|
};
|
|
20
20
|
// Using a styled component to get access to the `as` prop
|
|
21
21
|
const TooltipFocusArea = styled.span ``;
|
|
22
|
-
const
|
|
22
|
+
const StyledFloatingComponentBase = styled(FloatingComponentBase) `
|
|
23
23
|
color: ${theme.colorPalette.dark.neutral0};
|
|
24
24
|
background-color: ${theme.colorPalette.dark.neutral900};
|
|
25
25
|
padding: ${theme.space.space8};
|
|
@@ -39,34 +39,30 @@ const TooltipPopup = styled(FloatingComponentWrapper) `
|
|
|
39
39
|
`}
|
|
40
40
|
`;
|
|
41
41
|
/**
|
|
42
|
-
* Tooltip appears on hover, for onclick use Popover
|
|
43
|
-
*
|
|
44
|
-
* Reference (the trigger wrapper) and floating (the popup) are rendered as separate DOM subtrees
|
|
45
|
-
* — the popup is portaled (or rendered as a sibling fragment when `showInPortal={false}`), never
|
|
46
|
-
* nested inside the trigger. floating-ui's `useHover` resolves open/close state by tracking the
|
|
47
|
-
* cursor across distinct reference and floating elements; nesting them causes their bounding
|
|
48
|
-
* rects to overlap and the state machine flips unpredictably (see floating-ui docs on the
|
|
49
|
-
* reference/floating element separation requirement).
|
|
42
|
+
* Tooltip appears on hover, for onclick use Popover
|
|
50
43
|
*/
|
|
51
|
-
export const Tooltip = ({ as, className, delayShow = 500, delayHide = 50, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL, textAlign = TOOLTIP_TEXT_ALIGNS.LEFT,
|
|
44
|
+
export const Tooltip = ({ as, className, delayShow = 500, delayHide = 50, shortcuts = [], imageUrl, subtleText, size = TOOLTIP_SIZES.SMALL, textAlign = TOOLTIP_TEXT_ALIGNS.LEFT, ...rest }) => {
|
|
52
45
|
const { uiTheme, tooltipSafeHtml } = useSharedUiDependencies();
|
|
53
46
|
const [open, setOpen] = useState(false);
|
|
54
|
-
const
|
|
47
|
+
const { refs, context } = useFloating({
|
|
55
48
|
open,
|
|
56
49
|
onOpenChange: setOpen,
|
|
57
|
-
placement,
|
|
58
|
-
strategy,
|
|
59
|
-
autoPlacements,
|
|
60
|
-
offsetPx,
|
|
61
50
|
});
|
|
62
|
-
const hover = useHover(
|
|
63
|
-
delay: {
|
|
51
|
+
const hover = useHover(context, {
|
|
52
|
+
delay: {
|
|
53
|
+
open: delayShow,
|
|
54
|
+
close: delayHide,
|
|
55
|
+
},
|
|
64
56
|
});
|
|
65
57
|
const { getReferenceProps, getFloatingProps } = useInteractions([hover]);
|
|
66
|
-
if (!content && !shortcuts?.length && !imageUrl && !subtleText)
|
|
67
|
-
return children;
|
|
68
|
-
const
|
|
69
|
-
|
|
58
|
+
if (!rest.content && !shortcuts?.length && !imageUrl && !subtleText)
|
|
59
|
+
return rest.children;
|
|
60
|
+
const tooltipProps = {
|
|
61
|
+
isOpen: open,
|
|
62
|
+
...rest,
|
|
63
|
+
content: (_jsx(TooltipContent, { content: tooltipSafeHtml(rest.content), shortcuts: shortcuts, imageUrl: imageUrl, subtleText: subtleText, size: size, textAlign: textAlign })),
|
|
64
|
+
};
|
|
65
|
+
return (_jsx(TooltipFocusArea, { as: as, className: className, ref: refs.setReference, ...getReferenceProps(), children: _jsx("div", { ref: refs.setFloating, ...getFloatingProps(), children: _jsx(StyledFloatingComponentBase, { ...tooltipProps, "$isDarkTheme": uiTheme === 'DARK' }) }) }));
|
|
70
66
|
};
|
|
71
67
|
export function withTooltip(Component) {
|
|
72
68
|
const Enhanced = forwardRef(({ tooltipProps, ...rest }, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/floating/tooltip.tsx"],"names":[],"mappings":";AAAA,OA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GACtB,CACL;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,KAAM,iBAAiB,EAAE,YAC3F,cAAK,GAAG,EAAE,IAAI,CAAC,WAAW,KAAM,gBAAgB,EAAE,YAC9C,KAAC,2BAA2B,OAAK,YAAY,kBAAgB,OAAO,KAAK,MAAM,GAAI,GACjF,GACS,CACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW,CACvB,SAAgC;IAEhC,MAAM,QAAQ,GAAG,UAAU,CAAyC,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;QACnG,IAAI,CAAC,YAAY;YAAE,OAAO,KAAC,SAAS,OAAM,IAA0B,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;QACnF,OAAO,CACH,KAAC,OAAO,OAAK,YAAY,YACrB,KAAC,SAAS,OAAM,IAA0B,EAAE,GAAG,EAAE,GAAG,GAAI,GAClD,CACb,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,GAAG,eAAe,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;IAEhF,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -27,7 +27,6 @@ export * from './icon_button.js';
|
|
|
27
27
|
export * from './spinner.js';
|
|
28
28
|
export * from './store/index.js';
|
|
29
29
|
export * from './checkbox/index.js';
|
|
30
|
-
export * from './browser_window/index.js';
|
|
31
30
|
export * from './collapsible_card/index.js';
|
|
32
31
|
export * from './select/index.js';
|
|
33
32
|
export * from './switch/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,c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C;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
@@ -27,7 +27,6 @@ export * from './icon_button.js';
|
|
|
27
27
|
export * from './spinner.js';
|
|
28
28
|
export * from './store/index.js';
|
|
29
29
|
export * from './checkbox/index.js';
|
|
30
|
-
export * from './browser_window/index.js';
|
|
31
30
|
export * from './collapsible_card/index.js';
|
|
32
31
|
export * from './select/index.js';
|
|
33
32
|
export * from './switch/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAA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