react-miui 0.33.0 → 0.34.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/.claude/settings.json +12 -0
- package/.claude/settings.local.json +4 -1
- package/.storybook/preview.tsx +10 -4
- package/CHANGELOG.md +9 -0
- package/dist/components/ui/drawer/Drawer.d.ts +10 -1
- package/dist/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.js +135 -15
- package/dist/components/ui/drawer/Drawer.js.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.d.ts +86 -1
- package/dist/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/dist/components/ui/drawer/Drawer.styled.js +13 -1
- package/dist/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/dist/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster/Toaster.js +7 -1
- package/dist/components/ui/toaster/Toaster.js.map +1 -1
- package/dist/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/dist/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.js +81 -0
- package/dist/components/ui/tooltip/Tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/dist/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/dist/components/ui/tooltip/Tooltip.styled.js +65 -0
- package/dist/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.Pop.html +7 -7
- package/docs/documents/Test.html +2 -2
- package/docs/enums/index.ICON.html +2 -2
- package/docs/functions/index.Action.html +3 -3
- package/docs/functions/index.Button.html +4 -4
- package/docs/functions/index.Card.html +3 -3
- package/docs/functions/index.Checkbox.html +3 -3
- package/docs/functions/index.Choice.html +2 -2
- package/docs/functions/index.ColorPicker.html +3 -3
- package/docs/functions/index.CoveringLoader.html +3 -3
- package/docs/functions/index.DirectionPad.html +2 -2
- package/docs/functions/index.Drawer.html +2 -2
- package/docs/functions/index.EqualActions.html +2 -2
- package/docs/functions/index.FullLoader.html +3 -3
- package/docs/functions/index.Gap.html +3 -3
- package/docs/functions/index.HandleEsc.html +3 -3
- package/docs/functions/index.Header.html +3 -3
- package/docs/functions/index.HeaderIconAction.html +3 -3
- package/docs/functions/index.Icon-1.html +2 -2
- package/docs/functions/index.If.html +3 -3
- package/docs/functions/index.Input.html +1 -1
- package/docs/functions/index.KeyValue.html +2 -2
- package/docs/functions/index.Label.html +2 -2
- package/docs/functions/index.Line.html +4 -4
- package/docs/functions/index.List.html +2 -2
- package/docs/functions/index.Loader.html +3 -3
- package/docs/functions/index.Loading.html +3 -3
- package/docs/functions/index.Message.html +4 -4
- package/docs/functions/index.Modal.html +2 -2
- package/docs/functions/index.ModalButtons.html +3 -3
- package/docs/functions/index.PopLoader.html +3 -3
- package/docs/functions/index.PopOption.html +2 -2
- package/docs/functions/index.Progress.html +2 -2
- package/docs/functions/index.SearchContainer.html +3 -3
- package/docs/functions/index.Section.html +4 -4
- package/docs/functions/index.Select.html +3 -3
- package/docs/functions/index.Selector.html +2 -2
- package/docs/functions/index.Spacer.html +3 -3
- package/docs/functions/index.Stats.html +2 -2
- package/docs/functions/index.StickyHeader.html +4 -4
- package/docs/functions/index.Table.html +3 -3
- package/docs/functions/index.TextArea.html +2 -2
- package/docs/functions/index.ToasterProvider.html +3 -3
- package/docs/functions/index.Toggle.html +3 -3
- package/docs/functions/index.ToolButton.html +4 -4
- package/docs/functions/index.Tooltip.html +18 -0
- package/docs/functions/index.TooltipProvider.html +6 -0
- package/docs/functions/index.borderPxToRem.html +1 -1
- package/docs/functions/index.createTheme.html +1 -1
- package/docs/functions/index.css.html +1 -1
- package/docs/functions/index.dimensionsPxToRem.html +1 -1
- package/docs/functions/index.fontPxToRem.html +1 -1
- package/docs/functions/index.getCssText.html +1 -1
- package/docs/functions/index.globalCss.html +2 -2
- package/docs/functions/index.injectGlobalStyles.html +1 -1
- package/docs/functions/index.keyframes.html +1 -1
- package/docs/functions/index.pxToRem.html +1 -1
- package/docs/functions/index.styled.html +1 -1
- package/docs/functions/index.toast.html +2 -2
- package/docs/functions/index.useToaster.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/index.IconProps.html +2 -2
- package/docs/interfaces/index.InputCustomProps.html +3 -3
- package/docs/interfaces/index.LoaderProps.html +6 -6
- package/docs/interfaces/index.StickyHeaderProps.html +4 -4
- package/docs/interfaces/index.ToasterProviderProps.html +3 -3
- package/docs/interfaces/index.TooltipProps.html +36 -0
- package/docs/interfaces/index.TooltipProviderProps.html +13 -0
- package/docs/modules/index.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/index.ActionProps.html +1 -1
- package/docs/types/index.CardProps.html +1 -1
- package/docs/types/index.CheckboxProps.html +2 -2
- package/docs/types/index.ChoiceProps.html +1 -1
- package/docs/types/index.ColorPickerProps.html +1 -1
- package/docs/types/index.DirectionPadProps.html +1 -1
- package/docs/types/index.DrawerFrom.html +1 -0
- package/docs/types/index.DrawerProps.html +28 -1
- package/docs/types/index.EqualActionsProps.html +1 -1
- package/docs/types/index.HeaderProps.html +1 -1
- package/docs/types/index.InputProps.html +1 -1
- package/docs/types/index.KeyValueProps.html +1 -1
- package/docs/types/index.LabelProps.html +1 -1
- package/docs/types/index.OverwriteProps.html +1 -1
- package/docs/types/index.ProgressProps.html +2 -2
- package/docs/types/index.SelectProps.html +1 -1
- package/docs/types/index.SelectorProps.html +1 -1
- package/docs/types/index.Stat.html +1 -1
- package/docs/types/index.StatsProps.html +1 -1
- package/docs/types/index.TextAreaProps.html +1 -1
- package/docs/types/index.ThemeCSS.html +1 -1
- package/docs/types/index.ToggleProps.html +2 -2
- package/docs/variables/index.ActionBadgeSelector.html +1 -1
- package/docs/variables/index.ActionCircleSelector.html +1 -1
- package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
- package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
- package/docs/variables/index.ChoiceItemSelector.html +1 -1
- package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
- package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
- package/docs/variables/index.DirectionPadLineSelector.html +1 -1
- package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
- package/docs/variables/index.DrawerContentSelector.html +1 -1
- package/docs/variables/index.HeaderAfterSelector.html +1 -1
- package/docs/variables/index.HeaderBeforeSelector.html +1 -1
- package/docs/variables/index.HeaderContentsSelector.html +1 -1
- package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
- package/docs/variables/index.InputContainerSelector.html +1 -1
- package/docs/variables/index.InputInputSelector.html +1 -1
- package/docs/variables/index.InputLabelSelector.html +1 -1
- package/docs/variables/index.InputPrefixSelector.html +1 -1
- package/docs/variables/index.InputSuffixSelector.html +1 -1
- package/docs/variables/index.KeyValueIconSelector.html +1 -1
- package/docs/variables/index.KeyValueItemSelector.html +1 -1
- package/docs/variables/index.KeyValueKeySelector.html +1 -1
- package/docs/variables/index.KeyValuePairSelector.html +1 -1
- package/docs/variables/index.KeyValueValueSelector.html +1 -1
- package/docs/variables/index.LabelTextSelector.html +1 -1
- package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
- package/docs/variables/index.ModalContainerSelector.html +1 -1
- package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
- package/docs/variables/index.ModalTitleSelector.html +1 -1
- package/docs/variables/index.PopListSelector.html +1 -1
- package/docs/variables/index.PopOptionButtonSelector.html +1 -1
- package/docs/variables/index.PopOptionIconSelector.html +1 -1
- package/docs/variables/index.PopOverlaySelector.html +1 -1
- package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
- package/docs/variables/index.ProgressValueSelector.html +1 -1
- package/docs/variables/index.SelectorItemSelector.html +1 -1
- package/docs/variables/index.StatsItemSelector.html +1 -1
- package/docs/variables/index.StatsLabelSelector.html +1 -1
- package/docs/variables/index.StatsSeparatorSelector.html +1 -1
- package/docs/variables/index.StatsValueSelector.html +1 -1
- package/docs/variables/index.TextAreaLabelSelector.html +1 -1
- package/docs/variables/index.TextAreaTextAreaSelector.html +1 -1
- package/docs/variables/index.TextAreaWrapperSelector.html +1 -1
- package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
- package/docs/variables/index.TooltipContentSelector.html +1 -0
- package/docs/variables/index.config.html +1 -1
- package/docs/variables/index.cssReset.html +2 -2
- package/docs/variables/index.darkTheme.html +1 -1
- package/docs/variables/index.miuiScrollbars.html +1 -1
- package/docs/variables/index.theme.html +1 -1
- package/esm/components/ui/drawer/Drawer.d.ts +10 -1
- package/esm/components/ui/drawer/Drawer.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.js +139 -15
- package/esm/components/ui/drawer/Drawer.js.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.d.ts +86 -1
- package/esm/components/ui/drawer/Drawer.styled.d.ts.map +1 -1
- package/esm/components/ui/drawer/Drawer.styled.js +12 -1
- package/esm/components/ui/drawer/Drawer.styled.js.map +1 -1
- package/esm/components/ui/toaster/Toaster.d.ts.map +1 -1
- package/esm/components/ui/toaster/Toaster.js +8 -2
- package/esm/components/ui/toaster/Toaster.js.map +1 -1
- package/esm/components/ui/tooltip/Tooltip.d.ts +30 -0
- package/esm/components/ui/tooltip/Tooltip.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.js +43 -0
- package/esm/components/ui/tooltip/Tooltip.js.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts +173 -0
- package/esm/components/ui/tooltip/Tooltip.styled.d.ts.map +1 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js +28 -0
- package/esm/components/ui/tooltip/Tooltip.styled.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/package.json +2 -1
- package/pnpm-workspace.yaml +3 -0
- package/src/bugfixes/ToastsFromModal.stories.tsx +59 -0
- package/src/components/ui/drawer/Drawer.stories.tsx +143 -59
- package/src/components/ui/drawer/Drawer.styled.ts +13 -0
- package/src/components/ui/drawer/Drawer.tsx +214 -20
- package/src/components/ui/toaster/Toaster.tsx +12 -2
- package/src/components/ui/tooltip/Tooltip.stories.tsx +285 -0
- package/src/components/ui/tooltip/Tooltip.styled.ts +36 -0
- package/src/components/ui/tooltip/Tooltip.tsx +195 -0
- package/src/index.ts +1 -0
package/.storybook/preview.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Preview } from "@storybook/react";
|
|
3
|
-
import {cssReset, injectGlobalStyles, ToasterProvider} from "../src";
|
|
3
|
+
import {cssReset, injectGlobalStyles, ToasterProvider, TooltipProvider} from "../src";
|
|
4
4
|
|
|
5
5
|
const preview: Preview = {
|
|
6
6
|
parameters: {
|
|
@@ -21,9 +21,15 @@ const preview: Preview = {
|
|
|
21
21
|
{`.docblock-argstable textarea[id] { box-sizing: content-box; }`}
|
|
22
22
|
{`#storybook-root { height: 100%; }`}
|
|
23
23
|
</style>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
{/* transform creates a stacking context — mirrors what real apps */}
|
|
25
|
+
{/* often do above ToasterProvider and surfaces the toast-under-modal bug. */}
|
|
26
|
+
<div style={{transform: "translateZ(0)"}}>
|
|
27
|
+
<ToasterProvider>
|
|
28
|
+
<TooltipProvider>
|
|
29
|
+
<Story/>
|
|
30
|
+
</TooltipProvider>
|
|
31
|
+
</ToasterProvider>
|
|
32
|
+
</div>
|
|
27
33
|
</>
|
|
28
34
|
);
|
|
29
35
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
The format is based on [EZEZ Changelog](https://ezez.dev/guidelines/changelog/)
|
|
4
4
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [0.34.0] - 2026-05-18
|
|
7
|
+
### Added
|
|
8
|
+
- `Tooltip` component
|
|
9
|
+
### Changed
|
|
10
|
+
- `Drawer` upgrades: partial slide out, slide direction, background effects on partially slided out
|
|
11
|
+
### Fixed
|
|
12
|
+
- toasts rendered under modals on some apps
|
|
13
|
+
- drawer may be rendered incorrectly on some apps (added default portal)
|
|
14
|
+
|
|
6
15
|
## [0.33.0] - 2026-05-17
|
|
7
16
|
### Dev
|
|
8
17
|
- huge deps upgrade
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
type DrawerFrom = "top" | "right" | "bottom" | "left";
|
|
3
|
+
type ScaleMode = "first" | "all";
|
|
2
4
|
type DrawerProps = {
|
|
3
5
|
isOpen: boolean;
|
|
4
6
|
closeOnEsc?: boolean;
|
|
5
7
|
onClose: () => void;
|
|
6
8
|
className?: string;
|
|
9
|
+
from?: DrawerFrom;
|
|
10
|
+
size?: number | string;
|
|
11
|
+
scaleContent?: boolean | number;
|
|
12
|
+
scaleSelectors?: string | string[];
|
|
13
|
+
scaleSelectorsMode?: ScaleMode;
|
|
14
|
+
onOverlayClick?: (() => void) | "close" | null;
|
|
15
|
+
portal?: boolean | HTMLElement;
|
|
7
16
|
children: React.ReactNode;
|
|
8
17
|
};
|
|
9
18
|
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
19
|
declare const DrawerContentSelector: string;
|
|
11
20
|
export { Drawer, DrawerContentSelector };
|
|
12
|
-
export type { DrawerProps };
|
|
21
|
+
export type { DrawerProps, DrawerFrom };
|
|
13
22
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAgBpF,KAAK,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AACtD,KAAK,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAEjC,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,IAAI,CAAC,EAAE,UAAU,CAAC;IASlB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAOvB,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAMhC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAKnC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAQ/B,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAQ/C,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAoEF,QAAA,MAAM,MAAM,oFAqHV,CAAC;AAKH,QAAA,MAAM,qBAAqB,QAAqB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -35,13 +35,81 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.DrawerContentSelector = exports.Drawer = void 0;
|
|
37
37
|
const react_1 = __importStar(require("react"));
|
|
38
|
+
const react_dom_1 = require("react-dom");
|
|
39
|
+
const use_forwarded_ref_1 = require("@bedrock-layout/use-forwarded-ref");
|
|
38
40
|
const oop_timers_1 = require("oop-timers");
|
|
39
41
|
const HandleEsc_1 = require("../../utils/HandleEsc");
|
|
40
42
|
const Drawer_styled_1 = require("./Drawer.styled");
|
|
41
43
|
const RENDER_TIMEOUT = 500;
|
|
44
|
+
const TRANSITION_MS = 300;
|
|
45
|
+
const DEFAULT_CONTENT_SCALE = 0.92;
|
|
46
|
+
const DEFAULT_TINT_OPACITY = 0.1;
|
|
47
|
+
const PARTIAL_RADIUS = "16px";
|
|
48
|
+
const DEFAULT_SCALE_SELECTORS = ["#__next", "#root", "#storybook-root", "body>*:first-child"];
|
|
49
|
+
const closedTransform = {
|
|
50
|
+
bottom: "translate(0, 100%)",
|
|
51
|
+
top: "translate(0, -100%)",
|
|
52
|
+
left: "translate(-100%, 0)",
|
|
53
|
+
right: "translate(100%, 0)",
|
|
54
|
+
};
|
|
55
|
+
const getSizeCss = (size) => {
|
|
56
|
+
if (size === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (typeof size === "string") {
|
|
60
|
+
return size;
|
|
61
|
+
}
|
|
62
|
+
if (size >= 0) {
|
|
63
|
+
return `${size}px`;
|
|
64
|
+
}
|
|
65
|
+
return `calc(100% + ${size}px)`;
|
|
66
|
+
};
|
|
67
|
+
const positioningPresets = {
|
|
68
|
+
bottom: (size) => ({ top: "auto", height: size }),
|
|
69
|
+
top: (size) => ({ bottom: "auto", height: size }),
|
|
70
|
+
left: (size) => ({ right: "auto", width: size }),
|
|
71
|
+
right: (size) => ({ left: "auto", width: size }),
|
|
72
|
+
};
|
|
73
|
+
const radiusPresets = {
|
|
74
|
+
bottom: { borderTopLeftRadius: PARTIAL_RADIUS, borderTopRightRadius: PARTIAL_RADIUS },
|
|
75
|
+
top: { borderBottomLeftRadius: PARTIAL_RADIUS, borderBottomRightRadius: PARTIAL_RADIUS },
|
|
76
|
+
left: { borderTopRightRadius: PARTIAL_RADIUS, borderBottomRightRadius: PARTIAL_RADIUS },
|
|
77
|
+
right: { borderTopLeftRadius: PARTIAL_RADIUS, borderBottomLeftRadius: PARTIAL_RADIUS },
|
|
78
|
+
};
|
|
79
|
+
const getStaticStyle = (from, size) => {
|
|
80
|
+
const sizeCss = getSizeCss(size);
|
|
81
|
+
if (sizeCss === undefined) {
|
|
82
|
+
return {};
|
|
83
|
+
}
|
|
84
|
+
return Object.assign(Object.assign({}, positioningPresets[from](sizeCss)), radiusPresets[from]);
|
|
85
|
+
};
|
|
86
|
+
const findScaleTargets = (selectors, mode) => {
|
|
87
|
+
for (const sel of selectors) {
|
|
88
|
+
if (mode === "first") {
|
|
89
|
+
const el = document.querySelector(sel);
|
|
90
|
+
if (el) {
|
|
91
|
+
return [el];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const els = Array.from(document.querySelectorAll(sel));
|
|
96
|
+
if (els.length > 0) {
|
|
97
|
+
return els;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return [];
|
|
102
|
+
};
|
|
103
|
+
const applyScale = (target, transform) => {
|
|
104
|
+
target.style.setProperty("transition", `transform ${TRANSITION_MS}ms`);
|
|
105
|
+
target.style.setProperty("transform-origin", "50% 0");
|
|
106
|
+
target.style.setProperty("transform", transform);
|
|
107
|
+
};
|
|
42
108
|
const Drawer = (0, react_1.forwardRef)((props, ref) => {
|
|
43
|
-
var _a;
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
const drawerRef = (0, use_forwarded_ref_1.useForwardedRef)(ref);
|
|
44
111
|
const [shouldRenderWhenClosed, setShouldRenderWhenClosed] = (0, react_1.useState)(false);
|
|
112
|
+
const [isVisible, setIsVisible] = (0, react_1.useState)(props.isOpen);
|
|
45
113
|
const timeoutRef = (0, react_1.useRef)(null);
|
|
46
114
|
(0, react_1.useEffect)(() => {
|
|
47
115
|
timeoutRef.current = new oop_timers_1.Timeout(() => {
|
|
@@ -55,24 +123,76 @@ const Drawer = (0, react_1.forwardRef)((props, ref) => {
|
|
|
55
123
|
}, []);
|
|
56
124
|
(0, react_1.useEffect)(() => {
|
|
57
125
|
var _a, _b;
|
|
58
|
-
if (props.isOpen) {
|
|
59
|
-
(_a = timeoutRef.current) === null || _a === void 0 ? void 0 : _a.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
else {
|
|
63
|
-
(_b = timeoutRef.current) === null || _b === void 0 ? void 0 : _b.start();
|
|
126
|
+
if (!props.isOpen) {
|
|
127
|
+
(_a = timeoutRef.current) === null || _a === void 0 ? void 0 : _a.start();
|
|
128
|
+
setIsVisible(false);
|
|
129
|
+
return undefined;
|
|
64
130
|
}
|
|
131
|
+
(_b = timeoutRef.current) === null || _b === void 0 ? void 0 : _b.stop();
|
|
132
|
+
setShouldRenderWhenClosed(true);
|
|
133
|
+
const id = requestAnimationFrame(() => {
|
|
134
|
+
setIsVisible(true);
|
|
135
|
+
});
|
|
136
|
+
return () => {
|
|
137
|
+
cancelAnimationFrame(id);
|
|
138
|
+
};
|
|
65
139
|
}, [props.isOpen]);
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
140
|
+
const { scaleContent, scaleSelectors, scaleSelectorsMode } = props;
|
|
141
|
+
(0, react_1.useEffect)(() => {
|
|
142
|
+
if (!scaleContent || !props.isOpen) {
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
const selectors = scaleSelectors === undefined
|
|
146
|
+
? DEFAULT_SCALE_SELECTORS
|
|
147
|
+
: (Array.isArray(scaleSelectors) ? scaleSelectors : [scaleSelectors]);
|
|
148
|
+
const mode = scaleSelectorsMode !== null && scaleSelectorsMode !== void 0 ? scaleSelectorsMode : "first";
|
|
149
|
+
const targets = findScaleTargets(selectors, mode);
|
|
150
|
+
if (targets.length === 0) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
const scale = typeof scaleContent === "number" ? scaleContent : DEFAULT_CONTENT_SCALE;
|
|
154
|
+
targets.forEach((el) => {
|
|
155
|
+
applyScale(el, `scale(${scale})`);
|
|
156
|
+
});
|
|
157
|
+
return () => {
|
|
158
|
+
targets.forEach((el) => {
|
|
159
|
+
applyScale(el, "");
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
}, [props.isOpen, scaleContent, scaleSelectors, scaleSelectorsMode]);
|
|
163
|
+
const from = (_a = props.from) !== null && _a !== void 0 ? _a : "bottom";
|
|
164
|
+
const style = Object.assign(Object.assign({}, getStaticStyle(from, props.size)), { transform: isVisible ? "translate(0, 0)" : closedTransform[from], transition: props.isOpen && !isVisible ? "none" : undefined });
|
|
70
165
|
const shouldRender = props.isOpen || shouldRenderWhenClosed;
|
|
71
|
-
const closeOnEsc = (
|
|
166
|
+
const closeOnEsc = (_b = props.closeOnEsc) !== null && _b !== void 0 ? _b : true;
|
|
72
167
|
const esc = closeOnEsc && react_1.default.createElement(HandleEsc_1.HandleEsc, { onPress: props.onClose });
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
168
|
+
const portal = (_c = props.portal) !== null && _c !== void 0 ? _c : true;
|
|
169
|
+
const overlayClick = props.onOverlayClick === undefined ? "close" : props.onOverlayClick;
|
|
170
|
+
const { onClose } = props;
|
|
171
|
+
const handleOverlayClick = (0, react_1.useCallback)(() => {
|
|
172
|
+
if (overlayClick === "close") {
|
|
173
|
+
onClose();
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (typeof overlayClick === "function") {
|
|
177
|
+
overlayClick();
|
|
178
|
+
}
|
|
179
|
+
}, [overlayClick, onClose]);
|
|
180
|
+
const hasOverlay = props.size !== undefined || Boolean(scaleContent);
|
|
181
|
+
const overlayInteractive = overlayClick !== null && props.isOpen;
|
|
182
|
+
const tintStyle = {
|
|
183
|
+
opacity: isVisible ? DEFAULT_TINT_OPACITY : 0,
|
|
184
|
+
pointerEvents: (overlayInteractive ? "auto" : "none"),
|
|
185
|
+
};
|
|
186
|
+
const tree = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
187
|
+
hasOverlay && (react_1.default.createElement(Drawer_styled_1.Tint, { style: tintStyle, onClick: handleOverlayClick, "aria-hidden": true })),
|
|
188
|
+
react_1.default.createElement(Drawer_styled_1.StyledDrawer, { className: props.className, style: style, ref: drawerRef },
|
|
189
|
+
esc,
|
|
190
|
+
react_1.default.createElement(Drawer_styled_1.Content, null, shouldRender && props.children))));
|
|
191
|
+
if (portal) {
|
|
192
|
+
const root = typeof portal === "boolean" ? document.body : portal;
|
|
193
|
+
return (0, react_dom_1.createPortal)(tree, root);
|
|
194
|
+
}
|
|
195
|
+
return tree;
|
|
76
196
|
});
|
|
77
197
|
exports.Drawer = Drawer;
|
|
78
198
|
Drawer.displayName = "Drawer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAoF;AACpF,yCAAyC;AAEzC,yEAAoE;AACpE,2CAAqC;AAErC,qDAAkD;AAClD,mDAA8D;AAE9D,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,qBAAqB,GAAG,IAAI,CAAC;AACnC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,uBAAuB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,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83
|
height: string | number;
|
|
84
84
|
};
|
|
85
85
|
}>>;
|
|
86
|
+
declare const Tint: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
87
|
+
colors: {
|
|
88
|
+
background: "white";
|
|
89
|
+
mainColor: "#008ad2";
|
|
90
|
+
mainColorAlt: "#006AA9";
|
|
91
|
+
activeBg: "#e7e7e7";
|
|
92
|
+
inactiveBg: "#d3d3de";
|
|
93
|
+
inactiveDarkBg: "#999";
|
|
94
|
+
toggleHandleBg: "#e0e0e0";
|
|
95
|
+
toggleHandleBorder: "#cdcdcd";
|
|
96
|
+
toggleBgDisabled: "#f0f0f0";
|
|
97
|
+
toggleHandleBorderDisabled: "#c29f7d";
|
|
98
|
+
toggleHandleBgDisabled: "#deae84";
|
|
99
|
+
icon: "#636363";
|
|
100
|
+
border: "#d5d5d5";
|
|
101
|
+
buttonBorder: "#bababa";
|
|
102
|
+
headerBorder: "#c8c8c9";
|
|
103
|
+
headerBg: "#efeff0";
|
|
104
|
+
headerText: "#484848";
|
|
105
|
+
text: "#323232";
|
|
106
|
+
text2: "#181818";
|
|
107
|
+
text3: "#000000";
|
|
108
|
+
sub: "#959595";
|
|
109
|
+
popText: "#666";
|
|
110
|
+
toolbarBorder: "#ababab";
|
|
111
|
+
toolbarBg: "#f8f8f8";
|
|
112
|
+
modalBg: "#f7f7f7";
|
|
113
|
+
modalButtonBg: "#f8f8f8";
|
|
114
|
+
modalButtonBorder: "#c2c2c2";
|
|
115
|
+
inputDisabledBg: "#f3f3f3";
|
|
116
|
+
inputDisabledText: "#959595";
|
|
117
|
+
choiceBg: "#ffffff";
|
|
118
|
+
choiceText: "#999999";
|
|
119
|
+
choiceActiveBg: "#f3f3f3";
|
|
120
|
+
choiceActiveText: "#313131";
|
|
121
|
+
choiceBorder: "#cfcfcf";
|
|
122
|
+
selectorText: "#606060";
|
|
123
|
+
selectorActive: "#008ad2";
|
|
124
|
+
blue1: "#038bf4";
|
|
125
|
+
blue2: "#b7d6f5";
|
|
126
|
+
blue3: "#dbe6ff";
|
|
127
|
+
blue4: "#33b4ff";
|
|
128
|
+
blue5: "#30a2e6";
|
|
129
|
+
orange1: "#ff7200";
|
|
130
|
+
orange1Darker: "#cc5b00";
|
|
131
|
+
purple1: "#7357e8";
|
|
132
|
+
green1: "#3ec234";
|
|
133
|
+
green1Darker: "#38af2f";
|
|
134
|
+
pink1: "#ff388f";
|
|
135
|
+
red1: "#ea2700";
|
|
136
|
+
yellow1: "#ffde9d";
|
|
137
|
+
yellow2: "#e4a429";
|
|
138
|
+
yellow3: "#fff5db";
|
|
139
|
+
pinky1: "#f5c0b7";
|
|
140
|
+
pinky2: "#e07b67";
|
|
141
|
+
pinky3: "#ffe1db";
|
|
142
|
+
grey1: "#737373";
|
|
143
|
+
focusColor: "#dcaf00";
|
|
144
|
+
scrollbarsThumb: "#737373";
|
|
145
|
+
scrollbarsBg: "transparent";
|
|
146
|
+
tableStripedBg: "#fafafa";
|
|
147
|
+
toolButtonText: "#666e80";
|
|
148
|
+
};
|
|
149
|
+
}, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
|
|
150
|
+
mx: (value: string | number) => {
|
|
151
|
+
marginLeft: string | number;
|
|
152
|
+
marginRight: string | number;
|
|
153
|
+
};
|
|
154
|
+
my: (value: string | number) => {
|
|
155
|
+
marginTop: string | number;
|
|
156
|
+
marginBottom: string | number;
|
|
157
|
+
};
|
|
158
|
+
px: (value: string | number) => {
|
|
159
|
+
paddingLeft: string | number;
|
|
160
|
+
paddingRight: string | number;
|
|
161
|
+
};
|
|
162
|
+
py: (value: string | number) => {
|
|
163
|
+
paddingTop: string | number;
|
|
164
|
+
paddingBottom: string | number;
|
|
165
|
+
};
|
|
166
|
+
size: (value: string | number) => {
|
|
167
|
+
width: string | number;
|
|
168
|
+
height: string | number;
|
|
169
|
+
};
|
|
170
|
+
}>>;
|
|
86
171
|
declare const Content: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
|
|
87
172
|
colors: {
|
|
88
173
|
background: "white";
|
|
@@ -168,5 +253,5 @@ declare const Content: import("../../../../node_modules/@stitches/react/types/st
|
|
|
168
253
|
height: string | number;
|
|
169
254
|
};
|
|
170
255
|
}>>;
|
|
171
|
-
export { StyledDrawer, Content, };
|
|
256
|
+
export { StyledDrawer, Tint, Content, };
|
|
172
257
|
//# sourceMappingURL=Drawer.styled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.styled.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUhB,CAAC;AAEH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEX,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,OAAO,GACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"Drawer.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.styled.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUhB,CAAC;AAEH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUR,CAAC;AAEH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEX,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,IAAI,EACJ,OAAO,GACV,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Content = exports.StyledDrawer = void 0;
|
|
3
|
+
exports.Content = exports.Tint = exports.StyledDrawer = void 0;
|
|
4
4
|
const theme_1 = require("../../../theme");
|
|
5
5
|
const StyledDrawer = (0, theme_1.styled)("div", {
|
|
6
6
|
position: "fixed",
|
|
@@ -14,6 +14,18 @@ const StyledDrawer = (0, theme_1.styled)("div", {
|
|
|
14
14
|
overflow: "auto",
|
|
15
15
|
});
|
|
16
16
|
exports.StyledDrawer = StyledDrawer;
|
|
17
|
+
const Tint = (0, theme_1.styled)("div", {
|
|
18
|
+
position: "fixed",
|
|
19
|
+
top: 0,
|
|
20
|
+
left: 0,
|
|
21
|
+
right: 0,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
background: "$text",
|
|
24
|
+
opacity: 0,
|
|
25
|
+
transition: "opacity 300ms",
|
|
26
|
+
zIndex: 0,
|
|
27
|
+
});
|
|
28
|
+
exports.Tint = Tint;
|
|
17
29
|
const Content = (0, theme_1.styled)("div", {
|
|
18
30
|
height: "100%",
|
|
19
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IAC/B,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,iBAAiB;IAC7B,QAAQ,EAAE,MAAM;CACnB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/drawer/Drawer.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IAC/B,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,iBAAiB;IAC7B,QAAQ,EAAE,MAAM;CACnB,CAAC,CAAC;AAmBC,oCAAY;AAjBhB,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IACvB,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,OAAO;IACnB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,eAAe;IAC3B,MAAM,EAAE,CAAC;CACZ,CAAC,CAAC;AAQC,oBAAI;AANR,MAAM,OAAO,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IAC1B,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC;AAKC,0BAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,UAAU,oBAAqB,SAAQ,kBAAkB;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgBnD,CAAC;AAEF,KAAK,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;AAErE,QAAA,MAAM,UAAU,QAAO,SAItB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAC9C,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -46,13 +46,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
46
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
47
|
exports.toast = exports.useToaster = exports.ToasterProvider = void 0;
|
|
48
48
|
const react_1 = __importStar(require("react"));
|
|
49
|
+
const react_dom_1 = require("react-dom");
|
|
49
50
|
const sonner_1 = require("sonner");
|
|
50
51
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return sonner_1.toast; } });
|
|
51
52
|
const ToasterProvider = (_a) => {
|
|
52
53
|
var { children, position = "bottom-center" } = _a, rest = __rest(_a, ["children", "position"]);
|
|
54
|
+
const [body, setBody] = (0, react_1.useState)(null);
|
|
55
|
+
(0, react_1.useEffect)(() => {
|
|
56
|
+
setBody(document.body);
|
|
57
|
+
}, []);
|
|
58
|
+
const toaster = react_1.default.createElement(sonner_1.Toaster, Object.assign({ position: position }, rest));
|
|
53
59
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
54
60
|
children,
|
|
55
|
-
|
|
61
|
+
body ? (0, react_dom_1.createPortal)(toaster, body) : null));
|
|
56
62
|
};
|
|
57
63
|
exports.ToasterProvider = ToasterProvider;
|
|
58
64
|
const useToaster = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,yCAAyC;AAEzC,mCAAyD;AAkCnB,sFAlC7B,cAAK,OAkC6B;AA1B3C,MAAM,eAAe,GAAmC,CAAC,EAAiD,EAAE,EAAE;QAArD,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,OAAW,EAAN,IAAI,cAA/C,wBAAiD,CAAF;IACpG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAqB,IAAI,CAAC,CAAC;IAE3D,IAAA,iBAAS,EAAC,GAAG,EAAE;QAEX,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,OAAO,GAAG,8BAAC,gBAAa,kBAAC,QAAQ,EAAE,QAAQ,IAAM,IAAI,EAAI,CAAC;IAEhE,OAAO,CACH;QACK,QAAQ;QACR,IAAI,CAAC,CAAC,CAAC,IAAA,wBAAY,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAC3C,CACN,CAAC;AACN,CAAC,CAAC;AAUO,0CAAe;AANxB,MAAM,UAAU,GAAG,GAAc,EAAE;IAC/B,OAAO,IAAA,mBAAW,EAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACjC,OAAO,IAAA,cAAK,EAAC,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5E,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC,CAAC;AAEwB,gCAAU"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Side = "top" | "right" | "bottom" | "left";
|
|
3
|
+
type Align = "start" | "center" | "end";
|
|
4
|
+
interface TooltipProviderProps {
|
|
5
|
+
delayDuration?: number;
|
|
6
|
+
skipDelayDuration?: number;
|
|
7
|
+
disableHoverableContent?: boolean;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const TooltipProvider: (props: TooltipProviderProps) => React.JSX.Element;
|
|
11
|
+
interface TooltipProps {
|
|
12
|
+
content: React.ReactNode;
|
|
13
|
+
side?: Side;
|
|
14
|
+
sideOffset?: number;
|
|
15
|
+
align?: Align;
|
|
16
|
+
alignOffset?: number;
|
|
17
|
+
delayDuration?: number;
|
|
18
|
+
avoidCollisions?: boolean;
|
|
19
|
+
arrow?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
children: React.ReactElement;
|
|
25
|
+
}
|
|
26
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const TooltipContentSelector: string;
|
|
28
|
+
export { Tooltip, TooltipProvider, TooltipContentSelector, };
|
|
29
|
+
export type { TooltipProps, TooltipProviderProps };
|
|
30
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,KAAK,IAAI,GAAG,KAAK,GAAG,OA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desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.TooltipContentSelector = exports.TooltipProvider = exports.Tooltip = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const RadixTooltip = __importStar(require("@radix-ui/react-tooltip"));
|
|
39
|
+
const Tooltip_styled_1 = require("./Tooltip.styled");
|
|
40
|
+
const TooltipProvider = (props) => {
|
|
41
|
+
const radixProps = {};
|
|
42
|
+
if (props.delayDuration !== undefined) {
|
|
43
|
+
radixProps.delayDuration = props.delayDuration;
|
|
44
|
+
}
|
|
45
|
+
if (props.skipDelayDuration !== undefined) {
|
|
46
|
+
radixProps.skipDelayDuration = props.skipDelayDuration;
|
|
47
|
+
}
|
|
48
|
+
if (props.disableHoverableContent !== undefined) {
|
|
49
|
+
radixProps.disableHoverableContent = props.disableHoverableContent;
|
|
50
|
+
}
|
|
51
|
+
return (react_1.default.createElement(RadixTooltip.Provider, Object.assign({}, radixProps), props.children));
|
|
52
|
+
};
|
|
53
|
+
exports.TooltipProvider = TooltipProvider;
|
|
54
|
+
const Tooltip = (0, react_1.forwardRef)((props, ref) => {
|
|
55
|
+
const { content, side = "top", sideOffset = 6, align = "center", alignOffset = 0, delayDuration, avoidCollisions = true, arrow = true, open, defaultOpen, onOpenChange, className, children, } = props;
|
|
56
|
+
const rootProps = {};
|
|
57
|
+
if (open !== undefined) {
|
|
58
|
+
rootProps.open = open;
|
|
59
|
+
}
|
|
60
|
+
if (defaultOpen !== undefined) {
|
|
61
|
+
rootProps.defaultOpen = defaultOpen;
|
|
62
|
+
}
|
|
63
|
+
if (onOpenChange !== undefined) {
|
|
64
|
+
rootProps.onOpenChange = onOpenChange;
|
|
65
|
+
}
|
|
66
|
+
if (delayDuration !== undefined) {
|
|
67
|
+
rootProps.delayDuration = delayDuration;
|
|
68
|
+
}
|
|
69
|
+
return (react_1.default.createElement(RadixTooltip.Root, Object.assign({}, rootProps),
|
|
70
|
+
react_1.default.createElement(RadixTooltip.Trigger, { asChild: true }, children),
|
|
71
|
+
react_1.default.createElement(RadixTooltip.Portal, null,
|
|
72
|
+
react_1.default.createElement(Tooltip_styled_1.StyledContent, { ref: ref, side: side, sideOffset: sideOffset, align: align, alignOffset: alignOffset, avoidCollisions: avoidCollisions, className: className },
|
|
73
|
+
content,
|
|
74
|
+
arrow && react_1.default.createElement(Tooltip_styled_1.StyledArrow, { width: 10, height: 5 })))));
|
|
75
|
+
});
|
|
76
|
+
exports.Tooltip = Tooltip;
|
|
77
|
+
Tooltip.displayName = "Tooltip";
|
|
78
|
+
Tooltip.toString = () => Tooltip_styled_1.StyledContent.toString();
|
|
79
|
+
const TooltipContentSelector = Tooltip_styled_1.StyledContent.toString();
|
|
80
|
+
exports.TooltipContentSelector = TooltipContentSelector;
|
|
81
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../src/components/ui/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,sEAAwD;AAExD,qDAA8D;AAkC9D,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IACpD,MAAM,UAAU,GAAyE,EAAE,CAAC;IAC5F,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QAAC,UAAU,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;IAAC,CAAC;IAC1F,IAAI,KAAK,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;QAAC,UAAU,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAAC,CAAC;IACtG,IAAI,KAAK,CAAC,uBAAuB,KAAK,SAAS,EAAE,CAAC;QAC9C,UAAU,CAAC,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC;IACvE,CAAC;IAED,OAAO,CACH,8BAAC,YAAY,CAAC,QAAQ,oBAAK,UAAU,GAChC,KAAK,CAAC,QAAQ,CACK,CAC3B,CAAC;AACN,CAAC,CAAC;AA4IE,0CAAe;AAvDnB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACpE,MAAM,EACF,OAAO,EACP,IAAI,GAAG,KAAK,EAEZ,UAAU,GAAG,CAAC,EACd,KAAK,GAAG,QAAQ,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