@molecule/app-ui-react 4.3.2 → 4.12.1
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/README.md +137 -244
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.js +4 -3
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Alert.js +2 -1
- package/dist/components/Alert.js.map +1 -1
- package/dist/components/AuthGuard.d.ts.map +1 -1
- package/dist/components/AuthGuard.js +2 -1
- package/dist/components/AuthGuard.js.map +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.js +4 -1
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +3 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts +6 -6
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +43 -17
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +4 -20
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/ConfirmButton.d.ts +4 -4
- package/dist/components/ConfirmButton.d.ts.map +1 -1
- package/dist/components/ConfirmButton.js +18 -13
- package/dist/components/ConfirmButton.js.map +1 -1
- package/dist/components/ConfirmButton.native.d.ts +8 -0
- package/dist/components/ConfirmButton.native.d.ts.map +1 -0
- package/dist/components/ConfirmButton.native.js +4 -0
- package/dist/components/ConfirmButton.native.js.map +1 -0
- package/dist/components/ConfirmButton.web.d.ts +6 -0
- package/dist/components/ConfirmButton.web.d.ts.map +1 -0
- package/dist/components/ConfirmButton.web.js +4 -0
- package/dist/components/ConfirmButton.web.js.map +1 -0
- package/dist/components/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog.js +2 -1
- package/dist/components/ConfirmDialog.js.map +1 -1
- package/dist/components/Dropdown.d.ts +7 -7
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.js +66 -125
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/Dropdown.native.d.ts +15 -0
- package/dist/components/Dropdown.native.d.ts.map +1 -0
- package/dist/components/Dropdown.native.js +9 -0
- package/dist/components/Dropdown.native.js.map +1 -0
- package/dist/components/Dropdown.web.d.ts +15 -0
- package/dist/components/Dropdown.web.d.ts.map +1 -0
- package/dist/components/Dropdown.web.js +9 -0
- package/dist/components/Dropdown.web.js.map +1 -0
- package/dist/components/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState.js +2 -1
- package/dist/components/EmptyState.js.map +1 -1
- package/dist/components/FloatingInput.d.ts +6 -2
- package/dist/components/FloatingInput.d.ts.map +1 -1
- package/dist/components/FloatingInput.js +13 -8
- package/dist/components/FloatingInput.js.map +1 -1
- package/dist/components/Form.d.ts +11 -2
- package/dist/components/Form.d.ts.map +1 -1
- package/dist/components/Form.js +17 -10
- package/dist/components/Form.js.map +1 -1
- package/dist/components/Icon.d.ts +15 -23
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.js +14 -20
- package/dist/components/Icon.js.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +20 -3
- package/dist/components/Input.js.map +1 -1
- package/dist/components/LanguagePicker.d.ts +5 -4
- package/dist/components/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker.js +5 -3
- package/dist/components/LanguagePicker.js.map +1 -1
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/Layout.js +7 -4
- package/dist/components/Layout.js.map +1 -1
- package/dist/components/LoadErrorBanner.d.ts +4 -3
- package/dist/components/LoadErrorBanner.d.ts.map +1 -1
- package/dist/components/LoadErrorBanner.js +4 -2
- package/dist/components/LoadErrorBanner.js.map +1 -1
- package/dist/components/Modal.d.ts +5 -23
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Modal.js +38 -201
- package/dist/components/Modal.js.map +1 -1
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/PageHeader.js +2 -1
- package/dist/components/PageHeader.js.map +1 -1
- package/dist/components/PageShell.d.ts.map +1 -1
- package/dist/components/PageShell.js +3 -2
- package/dist/components/PageShell.js.map +1 -1
- package/dist/components/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination.js +7 -6
- package/dist/components/Pagination.js.map +1 -1
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Progress.js +2 -1
- package/dist/components/Progress.js.map +1 -1
- package/dist/components/PromptDialog.d.ts.map +1 -1
- package/dist/components/PromptDialog.js +18 -21
- package/dist/components/PromptDialog.js.map +1 -1
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +4 -3
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/ResponsiveAppShell.d.ts.map +1 -1
- package/dist/components/ResponsiveAppShell.js +29 -136
- package/dist/components/ResponsiveAppShell.js.map +1 -1
- package/dist/components/Select.d.ts +21 -6
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +50 -37
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Separator.d.ts.map +1 -1
- package/dist/components/Separator.js +2 -1
- package/dist/components/Separator.js.map +1 -1
- package/dist/components/SidebarUserCard.d.ts +5 -4
- package/dist/components/SidebarUserCard.d.ts.map +1 -1
- package/dist/components/SidebarUserCard.js +4 -3
- package/dist/components/SidebarUserCard.js.map +1 -1
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.js +3 -2
- package/dist/components/Skeleton.js.map +1 -1
- package/dist/components/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner.js +2 -1
- package/dist/components/Spinner.js.map +1 -1
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.js +5 -43
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +9 -8
- package/dist/components/Table.js.map +1 -1
- package/dist/components/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs.js +5 -4
- package/dist/components/Tabs.js.map +1 -1
- package/dist/components/Textarea.d.ts +1 -2
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +8 -47
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/ThemeToggle.d.ts +5 -4
- package/dist/components/ThemeToggle.d.ts.map +1 -1
- package/dist/components/ThemeToggle.js +6 -2
- package/dist/components/ThemeToggle.js.map +1 -1
- package/dist/components/Toast.d.ts +14 -12
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toast.js +38 -64
- package/dist/components/Toast.js.map +1 -1
- package/dist/components/Toast.native.d.ts +17 -0
- package/dist/components/Toast.native.d.ts.map +1 -0
- package/dist/components/Toast.native.js +14 -0
- package/dist/components/Toast.native.js.map +1 -0
- package/dist/components/Toast.web.d.ts +16 -0
- package/dist/components/Toast.web.d.ts.map +1 -0
- package/dist/components/Toast.web.js +14 -0
- package/dist/components/Toast.web.js.map +1 -0
- package/dist/components/Tooltip.d.ts +5 -3
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +81 -209
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/Tooltip.native.d.ts +11 -0
- package/dist/components/Tooltip.native.d.ts.map +1 -0
- package/dist/components/Tooltip.native.js +9 -0
- package/dist/components/Tooltip.native.js.map +1 -0
- package/dist/components/Tooltip.web.d.ts +10 -0
- package/dist/components/Tooltip.web.d.ts.map +1 -0
- package/dist/components/Tooltip.web.js +9 -0
- package/dist/components/Tooltip.web.js.map +1 -0
- package/dist/components/UserMenuPopover.d.ts.map +1 -1
- package/dist/components/UserMenuPopover.js +19 -33
- package/dist/components/UserMenuPopover.js.map +1 -1
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/index.js.map +1 -1
- package/dist/elements/Anchor.d.ts +14 -0
- package/dist/elements/Anchor.d.ts.map +1 -0
- package/dist/elements/Anchor.js +17 -0
- package/dist/elements/Anchor.js.map +1 -0
- package/dist/elements/Box.d.ts +16 -0
- package/dist/elements/Box.d.ts.map +1 -0
- package/dist/elements/Box.js +57 -0
- package/dist/elements/Box.js.map +1 -0
- package/dist/elements/CheckField.d.ts +17 -0
- package/dist/elements/CheckField.d.ts.map +1 -0
- package/dist/elements/CheckField.js +53 -0
- package/dist/elements/CheckField.js.map +1 -0
- package/dist/elements/Disclosure.d.ts +12 -0
- package/dist/elements/Disclosure.d.ts.map +1 -0
- package/dist/elements/Disclosure.js +25 -0
- package/dist/elements/Disclosure.js.map +1 -0
- package/dist/elements/Fieldset.d.ts +16 -0
- package/dist/elements/Fieldset.d.ts.map +1 -0
- package/dist/elements/Fieldset.js +18 -0
- package/dist/elements/Fieldset.js.map +1 -0
- package/dist/elements/FileField.d.ts +12 -0
- package/dist/elements/FileField.d.ts.map +1 -0
- package/dist/elements/FileField.js +86 -0
- package/dist/elements/FileField.js.map +1 -0
- package/dist/elements/FormArea.d.ts +18 -0
- package/dist/elements/FormArea.d.ts.map +1 -0
- package/dist/elements/FormArea.js +26 -0
- package/dist/elements/FormArea.js.map +1 -0
- package/dist/elements/GlyphIcon.d.ts +17 -0
- package/dist/elements/GlyphIcon.d.ts.map +1 -0
- package/dist/elements/GlyphIcon.js +29 -0
- package/dist/elements/GlyphIcon.js.map +1 -0
- package/dist/elements/Image.d.ts +17 -0
- package/dist/elements/Image.d.ts.map +1 -0
- package/dist/elements/Image.js +22 -0
- package/dist/elements/Image.js.map +1 -0
- package/dist/elements/Link.d.ts +17 -0
- package/dist/elements/Link.d.ts.map +1 -0
- package/dist/elements/Link.js +15 -0
- package/dist/elements/Link.js.map +1 -0
- package/dist/elements/Pressable.d.ts +17 -0
- package/dist/elements/Pressable.d.ts.map +1 -0
- package/dist/elements/Pressable.js +43 -0
- package/dist/elements/Pressable.js.map +1 -0
- package/dist/elements/PulseDots.d.ts +15 -0
- package/dist/elements/PulseDots.d.ts.map +1 -0
- package/dist/elements/PulseDots.js +36 -0
- package/dist/elements/PulseDots.js.map +1 -0
- package/dist/elements/RangeField.d.ts +11 -0
- package/dist/elements/RangeField.d.ts.map +1 -0
- package/dist/elements/RangeField.js +24 -0
- package/dist/elements/RangeField.js.map +1 -0
- package/dist/elements/RichText.d.ts +23 -0
- package/dist/elements/RichText.d.ts.map +1 -0
- package/dist/elements/RichText.js +40 -0
- package/dist/elements/RichText.js.map +1 -0
- package/dist/elements/Rule.d.ts +9 -0
- package/dist/elements/Rule.d.ts.map +1 -0
- package/dist/elements/Rule.js +16 -0
- package/dist/elements/Rule.js.map +1 -0
- package/dist/elements/ScrollArea.d.ts +16 -0
- package/dist/elements/ScrollArea.d.ts.map +1 -0
- package/dist/elements/ScrollArea.js +42 -0
- package/dist/elements/ScrollArea.js.map +1 -0
- package/dist/elements/SelectField.d.ts +11 -0
- package/dist/elements/SelectField.d.ts.map +1 -0
- package/dist/elements/SelectField.js +64 -0
- package/dist/elements/SelectField.js.map +1 -0
- package/dist/elements/Svg.d.ts +124 -0
- package/dist/elements/Svg.d.ts.map +1 -0
- package/dist/elements/Svg.js +178 -0
- package/dist/elements/Svg.js.map +1 -0
- package/dist/elements/TableBox.d.ts +16 -0
- package/dist/elements/TableBox.d.ts.map +1 -0
- package/dist/elements/TableBox.js +18 -0
- package/dist/elements/TableBox.js.map +1 -0
- package/dist/elements/TableCell.d.ts +16 -0
- package/dist/elements/TableCell.d.ts.map +1 -0
- package/dist/elements/TableCell.js +18 -0
- package/dist/elements/TableCell.js.map +1 -0
- package/dist/elements/Text.d.ts +18 -0
- package/dist/elements/Text.d.ts.map +1 -0
- package/dist/elements/Text.js +20 -0
- package/dist/elements/Text.js.map +1 -0
- package/dist/elements/TextField.d.ts +18 -0
- package/dist/elements/TextField.d.ts.map +1 -0
- package/dist/elements/TextField.js +105 -0
- package/dist/elements/TextField.js.map +1 -0
- package/dist/elements/drag.d.ts +11 -0
- package/dist/elements/drag.d.ts.map +1 -0
- package/dist/elements/drag.js +22 -0
- package/dist/elements/drag.js.map +1 -0
- package/dist/elements/flow.d.ts +17 -0
- package/dist/elements/flow.d.ts.map +1 -0
- package/dist/elements/flow.js +18 -0
- package/dist/elements/flow.js.map +1 -0
- package/dist/elements/hover.d.ts +10 -0
- package/dist/elements/hover.d.ts.map +1 -0
- package/dist/elements/hover.js +23 -0
- package/dist/elements/hover.js.map +1 -0
- package/dist/elements/index.d.ts +44 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.js +44 -0
- package/dist/elements/index.js.map +1 -0
- package/dist/elements/measure.d.ts +25 -0
- package/dist/elements/measure.d.ts.map +1 -0
- package/dist/elements/measure.js +20 -0
- package/dist/elements/measure.js.map +1 -0
- package/dist/elements/paste.d.ts +5 -0
- package/dist/elements/paste.d.ts.map +1 -0
- package/dist/elements/paste.js +15 -0
- package/dist/elements/paste.js.map +1 -0
- package/dist/elements/ref.d.ts +16 -0
- package/dist/elements/ref.d.ts.map +1 -0
- package/dist/elements/ref.js +18 -0
- package/dist/elements/ref.js.map +1 -0
- package/dist/elements/reveal.d.ts +8 -0
- package/dist/elements/reveal.d.ts.map +1 -0
- package/dist/elements/reveal.js +14 -0
- package/dist/elements/reveal.js.map +1 -0
- package/dist/elements/style.d.ts +35 -0
- package/dist/elements/style.d.ts.map +1 -0
- package/dist/elements/style.js +34 -0
- package/dist/elements/style.js.map +1 -0
- package/dist/elements/types.d.ts +23 -0
- package/dist/elements/types.d.ts.map +1 -0
- package/dist/elements/types.js +7 -0
- package/dist/elements/types.js.map +1 -0
- package/dist/elements/viewport.d.ts +53 -0
- package/dist/elements/viewport.d.ts.map +1 -0
- package/dist/elements/viewport.js +104 -0
- package/dist/elements/viewport.js.map +1 -0
- package/dist/elements/wheelZoom.d.ts +12 -0
- package/dist/elements/wheelZoom.d.ts.map +1 -0
- package/dist/elements/wheelZoom.js +18 -0
- package/dist/elements/wheelZoom.js.map +1 -0
- package/dist/index.web.d.ts +13 -0
- package/dist/index.web.d.ts.map +1 -0
- package/dist/index.web.js +12 -0
- package/dist/index.web.js.map +1 -0
- package/dist/platform/arrow.d.ts +5 -0
- package/dist/platform/arrow.d.ts.map +1 -0
- package/dist/platform/arrow.js +49 -0
- package/dist/platform/arrow.js.map +1 -0
- package/dist/platform/index.d.ts +29 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +180 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/types.d.ts +19 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/isReactNode.d.ts +16 -0
- package/dist/utilities/isReactNode.d.ts.map +1 -0
- package/dist/utilities/isReactNode.js +27 -0
- package/dist/utilities/isReactNode.js.map +1 -0
- package/dist/utilities/mergeRefs.d.ts +7 -3
- package/dist/utilities/mergeRefs.d.ts.map +1 -1
- package/dist/utilities/mergeRefs.js +22 -11
- package/dist/utilities/mergeRefs.js.map +1 -1
- package/dist/utilities/renderIcon.d.ts +3 -2
- package/dist/utilities/renderIcon.d.ts.map +1 -1
- package/dist/utilities/renderIcon.js +9 -14
- package/dist/utilities/renderIcon.js.map +1 -1
- package/package.json +39 -14
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native's public Toast signatures.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
7
|
+
import type { ElementHandle } from '@molecule/app-ui';
|
|
8
|
+
import type { ToastProps } from '../types.js';
|
|
9
|
+
import { type ToastContainerProps, type ToastContextValue } from './Toast.js';
|
|
10
|
+
/** Renders a notification and forwards its renderer's host handle. */
|
|
11
|
+
export declare const Toast: ForwardRefExoticComponent<ToastProps & RefAttributes<ElementHandle>>;
|
|
12
|
+
/** Positions notifications in a portal and forwards its host handle. */
|
|
13
|
+
export declare const ToastContainer: ForwardRefExoticComponent<ToastContainerProps & RefAttributes<ElementHandle>>;
|
|
14
|
+
/** Adds and removes notifications using React-renderable content. */
|
|
15
|
+
export declare const useToast: () => ToastContextValue<ToastProps>;
|
|
16
|
+
export { ToastProvider } from './Toast.js';
|
|
17
|
+
//# sourceMappingURL=Toast.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.native.d.ts","sourceRoot":"","sources":["../../src/components/Toast.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,MAAM,YAAY,CAAA;AAEnB,sEAAsE;AACtE,eAAO,MAAM,KAAK,EAAE,yBAAyB,CAAC,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,CAC1E,CAAA;AAEb,wEAAwE;AACxE,eAAO,MAAM,cAAc,EAAE,yBAAyB,CACpD,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,CAC5B,CAAA;AAExB,qEAAqE;AACrE,eAAO,MAAM,QAAQ,EAAE,MAAM,iBAAiB,CAAC,UAAU,CAAkB,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native's public Toast signatures.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Toast as SharedToast, ToastContainer as SharedToastContainer, useToast as useSharedToast, } from './Toast.js';
|
|
7
|
+
/** Renders a notification and forwards its renderer's host handle. */
|
|
8
|
+
export const Toast = SharedToast;
|
|
9
|
+
/** Positions notifications in a portal and forwards its host handle. */
|
|
10
|
+
export const ToastContainer = SharedToastContainer;
|
|
11
|
+
/** Adds and removes notifications using React-renderable content. */
|
|
12
|
+
export const useToast = useSharedToast;
|
|
13
|
+
export { ToastProvider } from './Toast.js';
|
|
14
|
+
//# sourceMappingURL=Toast.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.native.js","sourceRoot":"","sources":["../../src/components/Toast.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,cAAc,IAAI,oBAAoB,EAGtC,QAAQ,IAAI,cAAc,GAC3B,MAAM,YAAY,CAAA;AAEnB,sEAAsE;AACtE,MAAM,CAAC,MAAM,KAAK,GAChB,WAAW,CAAA;AAEb,wEAAwE;AACxE,MAAM,CAAC,MAAM,cAAc,GAEvB,oBAAoB,CAAA;AAExB,qEAAqE;AACrE,MAAM,CAAC,MAAM,QAAQ,GAAwC,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React DOM's public Toast signatures.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
7
|
+
import type { ToastProps } from '@molecule/app-ui';
|
|
8
|
+
import { type ToastContainerProps, type ToastContextValue } from './Toast.js';
|
|
9
|
+
/** Renders a notification and forwards its div to the caller. */
|
|
10
|
+
export declare const Toast: ForwardRefExoticComponent<ToastProps & RefAttributes<HTMLDivElement>>;
|
|
11
|
+
/** Positions notifications in a portal and forwards the container div. */
|
|
12
|
+
export declare const ToastContainer: ForwardRefExoticComponent<ToastContainerProps & RefAttributes<HTMLDivElement>>;
|
|
13
|
+
/** Adds and removes notifications using the published web payload. */
|
|
14
|
+
export declare const useToast: () => ToastContextValue<ToastProps>;
|
|
15
|
+
export { ToastProvider } from './Toast.js';
|
|
16
|
+
//# sourceMappingURL=Toast.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.web.d.ts","sourceRoot":"","sources":["../../src/components/Toast.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,MAAM,YAAY,CAAA;AAEnB,iEAAiE;AACjE,eAAO,MAAM,KAAK,EAAE,yBAAyB,CAAC,UAAU,GAAG,aAAa,CAAC,cAAc,CAAC,CAC3E,CAAA;AAEb,0EAA0E;AAC1E,eAAO,MAAM,cAAc,EAAE,yBAAyB,CACpD,mBAAmB,GAAG,aAAa,CAAC,cAAc,CAAC,CAC7B,CAAA;AAExB,sEAAsE;AACtE,eAAO,MAAM,QAAQ,EAAE,MAAM,iBAAiB,CAAC,UAAU,CAAkB,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React DOM's public Toast signatures.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Toast as SharedToast, ToastContainer as SharedToastContainer, useToast as useSharedToast, } from './Toast.js';
|
|
7
|
+
/** Renders a notification and forwards its div to the caller. */
|
|
8
|
+
export const Toast = SharedToast;
|
|
9
|
+
/** Positions notifications in a portal and forwards the container div. */
|
|
10
|
+
export const ToastContainer = SharedToastContainer;
|
|
11
|
+
/** Adds and removes notifications using the published web payload. */
|
|
12
|
+
export const useToast = useSharedToast;
|
|
13
|
+
export { ToastProvider } from './Toast.js';
|
|
14
|
+
//# sourceMappingURL=Toast.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.web.js","sourceRoot":"","sources":["../../src/components/Toast.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,cAAc,IAAI,oBAAoB,EAGtC,QAAQ,IAAI,cAAc,GAC3B,MAAM,YAAY,CAAA;AAEnB,iEAAiE;AACjE,MAAM,CAAC,MAAM,KAAK,GAChB,WAAW,CAAA;AAEb,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAEvB,oBAAoB,CAAA;AAExB,sEAAsE;AACtE,MAAM,CAAC,MAAM,QAAQ,GAAwC,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import type { TooltipProps } from '@molecule/app-ui';
|
|
6
|
+
import { type NamedExoticComponent, type RefAttributes } from 'react';
|
|
7
|
+
import type { ElementHandle, TooltipProps as WebTooltipProps } from '@molecule/app-ui';
|
|
8
|
+
type TooltipComponent = NamedExoticComponent<WebTooltipProps & RefAttributes<ElementHandle>>;
|
|
8
9
|
/**
|
|
9
10
|
* Tooltip component.
|
|
10
11
|
*
|
|
@@ -18,5 +19,6 @@ import type { TooltipProps } from '@molecule/app-ui';
|
|
|
18
19
|
* edge. Entering another tooltip trigger immediately dismisses the previous
|
|
19
20
|
* tooltip, including any pending delayed show.
|
|
20
21
|
*/
|
|
21
|
-
export declare const Tooltip:
|
|
22
|
+
export declare const Tooltip: TooltipComponent;
|
|
23
|
+
export {};
|
|
22
24
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAKL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAOnB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EACV,aAAa,EAGb,YAAY,IAAI,eAAe,EAChC,MAAM,kBAAkB,CAAA;AAoBzB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;AAK5F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,EAAE,gBAwNrB,CAAA"}
|
|
@@ -4,112 +4,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
8
|
-
import { createPortal } from 'react-dom';
|
|
7
|
+
import { cloneElement, forwardRef, Fragment, isValidElement, useCallback, useEffect, useId, useMemo, useRef, useState, } from 'react';
|
|
9
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { Box, elementWindowScope, isElementFocusVisible, readElementViewport, } from '@molecule/app-ui-react/elements';
|
|
10
|
+
import { OverlayArrow, OverlayPortal, useAnchoredPosition, useOverlayLayer, useTooltipDescription, } from '@molecule/app-ui-react/platform';
|
|
11
|
+
import { isReactNode } from '../utilities/isReactNode.js';
|
|
10
12
|
import { mergeRefs } from '../utilities/mergeRefs.js';
|
|
11
13
|
import { rootProps } from '../utilities/rootProps.js';
|
|
12
|
-
|
|
13
|
-
const ARROW_SIZE = 8;
|
|
14
|
-
// Coordinate hover and delayed shows across all tooltip instances in a page.
|
|
15
|
-
// A document key avoids sharing an active control between distinct documents.
|
|
14
|
+
// One active or pending tooltip per renderer window.
|
|
16
15
|
const activeTooltips = new WeakMap();
|
|
17
|
-
/**
|
|
18
|
-
* Returns the arrow's inline position style for a given placement. The arrow
|
|
19
|
-
* has no dedicated ClassMap resolver (`tooltip()` takes no options), so its
|
|
20
|
-
* shape/position is expressed via a small inline style — the sanctioned
|
|
21
|
-
* exception for values ClassMap cannot express. Its color is NOT hardcoded:
|
|
22
|
-
* `var(--color-surface)` / `var(--color-border)` are the same CSS custom
|
|
23
|
-
* properties the `bg-surface`/`border` Tailwind utilities in `tooltipContent`
|
|
24
|
-
* resolve to (see `@molecule/app-ui-tailwind/base.css`), so the arrow always
|
|
25
|
-
* matches the tooltip body in both themes.
|
|
26
|
-
* @param placement - The tooltip's resolved placement.
|
|
27
|
-
* @returns Inline style positioning the rotated-square arrow for that placement.
|
|
28
|
-
*/
|
|
29
|
-
function getArrowStyle(placement) {
|
|
30
|
-
const half = ARROW_SIZE / 2;
|
|
31
|
-
const base = {
|
|
32
|
-
position: 'absolute',
|
|
33
|
-
width: ARROW_SIZE,
|
|
34
|
-
height: ARROW_SIZE,
|
|
35
|
-
background: 'var(--color-surface)',
|
|
36
|
-
border: '1px solid var(--color-border)',
|
|
37
|
-
};
|
|
38
|
-
switch (placement) {
|
|
39
|
-
case 'top':
|
|
40
|
-
return { ...base, bottom: -half, left: '50%', transform: 'translateX(-50%) rotate(45deg)' };
|
|
41
|
-
case 'top-start':
|
|
42
|
-
return { ...base, bottom: -half, left: 12, transform: 'rotate(45deg)' };
|
|
43
|
-
case 'top-end':
|
|
44
|
-
return { ...base, bottom: -half, right: 12, transform: 'rotate(45deg)' };
|
|
45
|
-
case 'bottom':
|
|
46
|
-
return { ...base, top: -half, left: '50%', transform: 'translateX(-50%) rotate(45deg)' };
|
|
47
|
-
case 'bottom-start':
|
|
48
|
-
return { ...base, top: -half, left: 12, transform: 'rotate(45deg)' };
|
|
49
|
-
case 'bottom-end':
|
|
50
|
-
return { ...base, top: -half, right: 12, transform: 'rotate(45deg)' };
|
|
51
|
-
case 'left':
|
|
52
|
-
return { ...base, right: -half, top: '50%', transform: 'translateY(-50%) rotate(45deg)' };
|
|
53
|
-
case 'right':
|
|
54
|
-
return { ...base, left: -half, top: '50%', transform: 'translateY(-50%) rotate(45deg)' };
|
|
55
|
-
default:
|
|
56
|
-
return base;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// Position the tooltip in a LAYOUT effect (synchronous, before the browser paints) so
|
|
60
|
-
// it's measured + placed in the same frame it mounts. With a plain useEffect (which
|
|
61
|
-
// runs AFTER paint) the tooltip paints once at the default {0,0} top-left and then jumps
|
|
62
|
-
// to the correct spot — the flicker. Fall back to useEffect on the server (no DOM) to
|
|
63
|
-
// avoid React's SSR useLayoutEffect warning.
|
|
64
|
-
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
65
|
-
/**
|
|
66
|
-
* Calculate tooltip position based on trigger element and placement.
|
|
67
|
-
* @param triggerRect - The bounding rectangle of the trigger element.
|
|
68
|
-
* @param tooltipRect - The bounding rectangle of the tooltip element.
|
|
69
|
-
* @param placement - The desired tooltip placement direction.
|
|
70
|
-
* @param offset - The pixel offset from the trigger element.
|
|
71
|
-
* @returns The computed top and left position.
|
|
72
|
-
*/
|
|
73
|
-
function calculatePosition(triggerRect, tooltipRect, placement, offset = 8) {
|
|
74
|
-
const { top, left, width, height } = triggerRect;
|
|
75
|
-
const tooltipWidth = tooltipRect.width;
|
|
76
|
-
const tooltipHeight = tooltipRect.height;
|
|
77
|
-
const positions = {
|
|
78
|
-
top: {
|
|
79
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
80
|
-
left: left + window.scrollX + width / 2 - tooltipWidth / 2,
|
|
81
|
-
},
|
|
82
|
-
bottom: {
|
|
83
|
-
top: top + window.scrollY + height + offset,
|
|
84
|
-
left: left + window.scrollX + width / 2 - tooltipWidth / 2,
|
|
85
|
-
},
|
|
86
|
-
left: {
|
|
87
|
-
top: top + window.scrollY + height / 2 - tooltipHeight / 2,
|
|
88
|
-
left: left + window.scrollX - tooltipWidth - offset,
|
|
89
|
-
},
|
|
90
|
-
right: {
|
|
91
|
-
top: top + window.scrollY + height / 2 - tooltipHeight / 2,
|
|
92
|
-
left: left + window.scrollX + width + offset,
|
|
93
|
-
},
|
|
94
|
-
'top-start': {
|
|
95
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
96
|
-
left: left + window.scrollX,
|
|
97
|
-
},
|
|
98
|
-
'top-end': {
|
|
99
|
-
top: top + window.scrollY - tooltipHeight - offset,
|
|
100
|
-
left: left + window.scrollX + width - tooltipWidth,
|
|
101
|
-
},
|
|
102
|
-
'bottom-start': {
|
|
103
|
-
top: top + window.scrollY + height + offset,
|
|
104
|
-
left: left + window.scrollX,
|
|
105
|
-
},
|
|
106
|
-
'bottom-end': {
|
|
107
|
-
top: top + window.scrollY + height + offset,
|
|
108
|
-
left: left + window.scrollX + width - tooltipWidth,
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
return positions[placement];
|
|
112
|
-
}
|
|
113
16
|
/**
|
|
114
17
|
* Tooltip component.
|
|
115
18
|
*
|
|
@@ -125,9 +28,11 @@ function calculatePosition(triggerRect, tooltipRect, placement, offset = 8) {
|
|
|
125
28
|
*/
|
|
126
29
|
export const Tooltip = forwardRef(({ content, children, placement = 'top', delay = 0, hasArrow = false, className, style, testId, ...rest }, ref) => {
|
|
127
30
|
const [isVisible, setIsVisible] = useState(false);
|
|
128
|
-
const [
|
|
31
|
+
const [inDeviceWindow, setInDeviceWindow] = useState(false);
|
|
129
32
|
const triggerRef = useRef(null);
|
|
130
33
|
const tooltipRef = useRef(null);
|
|
34
|
+
const [surface, setSurface] = useState(null);
|
|
35
|
+
const activeWindow = useRef(undefined);
|
|
131
36
|
const timeoutRef = useRef(undefined);
|
|
132
37
|
const hideTimeoutRef = useRef(undefined);
|
|
133
38
|
// Programmatically associates the tooltip with its trigger. A previous
|
|
@@ -138,56 +43,54 @@ export const Tooltip = forwardRef(({ content, children, placement = 'top', delay
|
|
|
138
43
|
// A caller's `id` names the tooltip box, so the association points at it.
|
|
139
44
|
const generatedId = useId();
|
|
140
45
|
const tooltipId = rest.id ?? generatedId;
|
|
141
|
-
const setTooltipRef = useMemo(() => mergeRefs(ref, tooltipRef), [ref]);
|
|
46
|
+
const setTooltipRef = useMemo(() => mergeRefs(ref, tooltipRef, setSurface), [ref]);
|
|
142
47
|
const cm = getClassMap();
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
// environment / portal root has been torn down while a show timer or a
|
|
146
|
-
// pending effect was still queued. Accessing window/document then throws a
|
|
147
|
-
// leaked "window is not defined" async error (the component already guards
|
|
148
|
-
// `typeof document` at its portal site for the same reason).
|
|
149
|
-
if (typeof window === 'undefined' || typeof document === 'undefined')
|
|
150
|
-
return;
|
|
151
|
-
if (triggerRef.current && tooltipRef.current) {
|
|
152
|
-
const triggerRect = triggerRef.current.getBoundingClientRect();
|
|
153
|
-
const tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
154
|
-
const newPosition = calculatePosition(triggerRect, tooltipRect, placement);
|
|
155
|
-
// Clamp into the viewport so a wide/edge tooltip never spills off the page
|
|
156
|
-
// (which would spawn a horizontal scrollbar). Positions are in document
|
|
157
|
-
// space (they already include scrollX/scrollY); use clientWidth/clientHeight
|
|
158
|
-
// — NOT innerWidth/innerHeight — so the page scrollbar is excluded. The
|
|
159
|
-
// Math.max(min, max) guard keeps it on-screen even when the tooltip is wider
|
|
160
|
-
// than the viewport.
|
|
161
|
-
const margin = 8;
|
|
162
|
-
const minLeft = window.scrollX + margin;
|
|
163
|
-
const maxLeft = window.scrollX + document.documentElement.clientWidth - tooltipRect.width - margin;
|
|
164
|
-
const minTop = window.scrollY + margin;
|
|
165
|
-
const maxTop = window.scrollY + document.documentElement.clientHeight - tooltipRect.height - margin;
|
|
166
|
-
newPosition.left = Math.min(Math.max(newPosition.left, minLeft), Math.max(minLeft, maxLeft));
|
|
167
|
-
newPosition.top = Math.min(Math.max(newPosition.top, minTop), Math.max(minTop, maxTop));
|
|
168
|
-
setPosition(newPosition);
|
|
169
|
-
}
|
|
170
|
-
}, [placement]);
|
|
171
|
-
const hide = useCallback(() => {
|
|
172
|
-
if (timeoutRef.current) {
|
|
173
|
-
clearTimeout(timeoutRef.current);
|
|
174
|
-
}
|
|
48
|
+
const release = useCallback((owner) => {
|
|
49
|
+
clearTimeout(timeoutRef.current);
|
|
175
50
|
clearTimeout(hideTimeoutRef.current);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
51
|
+
const scope = activeWindow.current;
|
|
52
|
+
if (scope && activeTooltips.get(scope) === owner)
|
|
53
|
+
activeTooltips.delete(scope);
|
|
54
|
+
activeWindow.current = undefined;
|
|
180
55
|
}, []);
|
|
56
|
+
const hide = useCallback(() => {
|
|
57
|
+
release(hide);
|
|
58
|
+
setIsVisible(false);
|
|
59
|
+
}, [release]);
|
|
60
|
+
const layer = useOverlayLayer({
|
|
61
|
+
open: isVisible,
|
|
62
|
+
kind: 'tooltip',
|
|
63
|
+
surface: tooltipRef,
|
|
64
|
+
anchor: triggerRef,
|
|
65
|
+
dismissKey: true,
|
|
66
|
+
outside: inDeviceWindow ? { inside: [triggerRef, tooltipRef], phase: 'start' } : undefined,
|
|
67
|
+
onDismiss: hide,
|
|
68
|
+
});
|
|
69
|
+
const position = useAnchoredPosition({
|
|
70
|
+
layer,
|
|
71
|
+
open: isVisible,
|
|
72
|
+
anchor: triggerRef,
|
|
73
|
+
surface,
|
|
74
|
+
placement,
|
|
75
|
+
offset: 8,
|
|
76
|
+
padding: 8,
|
|
77
|
+
collision: 'shift',
|
|
78
|
+
timing: 'layout',
|
|
79
|
+
contentKey: content,
|
|
80
|
+
});
|
|
81
|
+
const tooltipContent = isReactNode(content) ? content : null;
|
|
82
|
+
const hasPersistentDescription = useTooltipDescription(tooltipId, tooltipContent);
|
|
181
83
|
const show = useCallback(() => {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
84
|
+
const trigger = triggerRef.current;
|
|
85
|
+
if (!trigger)
|
|
86
|
+
return;
|
|
87
|
+
const scope = elementWindowScope(trigger);
|
|
88
|
+
release(hide);
|
|
89
|
+
activeTooltips.get(scope)?.();
|
|
90
|
+
// Claim before scheduling so another trigger also cancels pending shows.
|
|
91
|
+
activeTooltips.set(scope, hide);
|
|
92
|
+
activeWindow.current = scope;
|
|
93
|
+
setInDeviceWindow(readElementViewport(trigger)?.scrollOwner === 'element');
|
|
191
94
|
if (delay > 0) {
|
|
192
95
|
timeoutRef.current = setTimeout(() => {
|
|
193
96
|
setIsVisible(true);
|
|
@@ -196,7 +99,7 @@ export const Tooltip = forwardRef(({ content, children, placement = 'top', delay
|
|
|
196
99
|
else {
|
|
197
100
|
setIsVisible(true);
|
|
198
101
|
}
|
|
199
|
-
}, [delay, hide]);
|
|
102
|
+
}, [delay, hide, release]);
|
|
200
103
|
// Allow the pointer to cross the placement gap into the tooltip itself.
|
|
201
104
|
const scheduleHide = useCallback(() => {
|
|
202
105
|
clearTimeout(timeoutRef.current);
|
|
@@ -206,87 +109,56 @@ export const Tooltip = forwardRef(({ content, children, placement = 'top', delay
|
|
|
206
109
|
const keepVisible = useCallback(() => {
|
|
207
110
|
clearTimeout(hideTimeoutRef.current);
|
|
208
111
|
}, []);
|
|
209
|
-
useEffect(() => {
|
|
210
|
-
if (!isVisible)
|
|
211
|
-
return;
|
|
212
|
-
// Hovered content must dismiss while focus stays in the editor/composer.
|
|
213
|
-
const onEscape = (event) => {
|
|
214
|
-
if (event.key === 'Escape')
|
|
215
|
-
hide();
|
|
216
|
-
};
|
|
217
|
-
document.addEventListener('keydown', onEscape);
|
|
218
|
-
return () => document.removeEventListener('keydown', onEscape);
|
|
219
|
-
}, [isVisible, hide]);
|
|
220
112
|
// Show on focus ONLY for keyboard focus (:focus-visible). A mouse click or a
|
|
221
113
|
// programmatic .focus() — e.g. a dropdown/menu returning focus to its trigger
|
|
222
114
|
// after it closes — must NOT re-show a tooltip the click was meant to dismiss
|
|
223
115
|
// (which is why the "Device frame" tooltip lingered after opening + selecting).
|
|
224
|
-
// Guarded: engines without :focus-visible support (older browsers, jsdom) throw
|
|
225
|
-
// on the unknown selector — there we simply skip the focus-show (hover still
|
|
226
|
-
// works), the safe default.
|
|
227
116
|
const handleFocus = useCallback((event) => {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (typeof target.matches === 'function' && target.matches(':focus-visible')) {
|
|
231
|
-
show();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
catch (_error) {
|
|
235
|
-
// :focus-visible unsupported here — don't show on focus; hover still applies.
|
|
236
|
-
}
|
|
117
|
+
if (isElementFocusVisible(event))
|
|
118
|
+
show();
|
|
237
119
|
}, [show]);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
120
|
+
const handleLongPress = useCallback((event) => {
|
|
121
|
+
const trigger = triggerRef.current;
|
|
122
|
+
if (trigger && readElementViewport(trigger)?.scrollOwner === 'element') {
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
show();
|
|
241
125
|
}
|
|
242
|
-
}, [
|
|
243
|
-
useEffect(() =>
|
|
244
|
-
return () => {
|
|
245
|
-
if (timeoutRef.current) {
|
|
246
|
-
clearTimeout(timeoutRef.current);
|
|
247
|
-
}
|
|
248
|
-
clearTimeout(hideTimeoutRef.current);
|
|
249
|
-
if (typeof document !== 'undefined' && activeTooltips.get(document) === hide) {
|
|
250
|
-
activeTooltips.delete(document);
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
}, [hide]);
|
|
126
|
+
}, [show]);
|
|
127
|
+
useEffect(() => () => release(hide), [hide, release]);
|
|
254
128
|
// Outer positioned wrapper carries the top/left/zIndex placement; the
|
|
255
129
|
// arrow renders as its SIBLING (not nested inside the visible box),
|
|
256
130
|
// because `tooltipContent` sets `overflow-hidden` — an arrow meant to
|
|
257
131
|
// poke past the box's own edge would be clipped invisible if it were a
|
|
258
132
|
// descendant of that element instead.
|
|
259
|
-
const tooltipElement = isVisible && (_jsxs("div",
|
|
133
|
+
const tooltipElement = isVisible && (_jsxs(Box, { as: "div", accessibilityGroup: false, style: { position: 'absolute', top: position.top, left: position.left, zIndex: 9999 }, onMouseEnter: keepVisible, onMouseLeave: scheduleHide, children: [_jsx(Box, { as: "div", ref: setTooltipRef, role: "tooltip", className: cm.cn(cm.tooltipContent, className), webStyle: style, "data-testid": testId, ...rootProps(rest), id: tooltipId, children: tooltipContent }), hasArrow && _jsx(OverlayArrow, { placement: position.placement })] }));
|
|
260
134
|
// Single-child API (mirrors every mainstream tooltip library): when
|
|
261
135
|
// `children` is exactly one valid element, clone it to inject
|
|
262
136
|
// `aria-describedby` onto the actual focused/hovered node while the
|
|
263
|
-
// tooltip is visible
|
|
264
|
-
//
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
137
|
+
// tooltip is visible. A string, fragment, or list of nodes has no single
|
|
138
|
+
// element to associate with the tooltip.
|
|
139
|
+
const triggerContent = isReactNode(children) ? children : null;
|
|
140
|
+
const describedChildren = isValidElement(triggerContent) &&
|
|
141
|
+
triggerContent.type !== Fragment
|
|
142
|
+
? cloneElement(triggerContent, {
|
|
143
|
+
'aria-describedby': [
|
|
144
|
+
triggerContent.props['aria-describedby'],
|
|
145
|
+
(isVisible || hasPersistentDescription) && tooltipId,
|
|
146
|
+
]
|
|
147
|
+
.filter(Boolean)
|
|
148
|
+
.join(' ') || undefined,
|
|
273
149
|
})
|
|
274
|
-
:
|
|
275
|
-
return (_jsxs(_Fragment, { children: [_jsx("div",
|
|
276
|
-
//
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
onKeyDown: (e) => {
|
|
280
|
-
if (e.key === 'Escape')
|
|
150
|
+
: triggerContent;
|
|
151
|
+
return (_jsxs(_Fragment, { children: [_jsx(Box, { as: "div", accessibilityGroup: false, ref: triggerRef, role: "presentation", onMouseEnter: show, onMouseLeave: scheduleHide, onFocus: handleFocus, onBlur: hide, onContextMenu: handleLongPress, onTouchStart: inDeviceWindow ? hide : undefined,
|
|
152
|
+
// The overlay layer handles a visible tooltip. This also cancels a delayed show.
|
|
153
|
+
onKeyDown: (event) => {
|
|
154
|
+
if (!isVisible && event.key === 'Escape')
|
|
281
155
|
hide();
|
|
282
156
|
},
|
|
283
157
|
// Any click on a tooltip-wrapped control hides the tooltip — clicking a
|
|
284
158
|
// button shouldn't leave its hover/focus tooltip lingering. The wrapper
|
|
285
159
|
// wraps children directly, so this single handler covers every
|
|
286
160
|
// button-with-tooltip consumer.
|
|
287
|
-
onClick: hide, className: cm.tooltipTrigger, children: describedChildren }),
|
|
288
|
-
tooltipElement &&
|
|
289
|
-
createPortal(tooltipElement, document.body)] }));
|
|
161
|
+
onClick: hide, className: cm.tooltipTrigger, children: describedChildren }), tooltipElement && (_jsx(OverlayPortal, { layer: layer, presentation: "host", server: "omit", anchorPosition: position, children: tooltipElement }))] }));
|
|
290
162
|
});
|
|
291
163
|
Tooltip.displayName = 'Tooltip';
|
|
292
164
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EAGd,WAAW,EACX,SAAS,EACT,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAA;AAQd,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EACL,GAAG,EACH,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,eAAe,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a,EAAE,eAAe,EAC9B,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;gBAC/C,iFAAiF;gBACjF,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;oBACnB,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ;wBAAE,IAAI,EAAE,CAAA;gBAClD,CAAC;gBACD,wEAAwE;gBACxE,wEAAwE;gBACxE,+DAA+D;gBAC/D,gCAAgC;gBAChC,OAAO,EAAE,IAAI,EACb,SAAS,EAAE,EAAE,CAAC,cAAc,YAE3B,iBAAiB,GACd,EACL,cAAc,IAAI,CACjB,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAE,QAAQ,YACpF,cAAc,GACD,CACjB,IACA,CACJ,CAAA;AACH,CAAC,CACF,CAAA;AAED,OAAO,CAAC,WAAW,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native's public Tooltip signature.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
7
|
+
import type { ElementHandle } from '@molecule/app-ui';
|
|
8
|
+
import type { TooltipProps } from '../types.js';
|
|
9
|
+
/** Displays supplemental content and forwards the tooltip's host handle while visible. */
|
|
10
|
+
export declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<ElementHandle>>;
|
|
11
|
+
//# sourceMappingURL=Tooltip.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.native.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,0FAA0F;AAC1F,eAAO,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,CAC5E,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native's public Tooltip signature.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Tooltip as SharedTooltip } from './Tooltip.js';
|
|
7
|
+
/** Displays supplemental content and forwards the tooltip's host handle while visible. */
|
|
8
|
+
export const Tooltip = SharedTooltip;
|
|
9
|
+
//# sourceMappingURL=Tooltip.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.native.js","sourceRoot":"","sources":["../../src/components/Tooltip.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AAEvD,0FAA0F;AAC1F,MAAM,CAAC,MAAM,OAAO,GAClB,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React DOM's public Tooltip signature.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
7
|
+
import type { TooltipProps } from '@molecule/app-ui';
|
|
8
|
+
/** Displays supplemental content and forwards the tooltip's div while visible. */
|
|
9
|
+
export declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>>;
|
|
10
|
+
//# sourceMappingURL=Tooltip.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.web.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAIpD,kFAAkF;AAClF,eAAO,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAC7E,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React DOM's public Tooltip signature.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Tooltip as SharedTooltip } from './Tooltip.js';
|
|
7
|
+
/** Displays supplemental content and forwards the tooltip's div while visible. */
|
|
8
|
+
export const Tooltip = SharedTooltip;
|
|
9
|
+
//# sourceMappingURL=Tooltip.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.web.js","sourceRoot":"","sources":["../../src/components/Tooltip.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AAEvD,kFAAkF;AAClF,MAAM,CAAC,MAAM,OAAO,GAClB,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenuPopover.d.ts","sourceRoot":"","sources":["../../src/components/UserMenuPopover.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,EAEZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"UserMenuPopover.d.ts","sourceRoot":"","sources":["../../src/components/UserMenuPopover.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,EAEZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA8Cd;;GAEG;AAC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