@fibery/ui-kit 9.0.1 → 9.1.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/lib/a11y-color.js +12 -10
- package/lib/actions-menu/actions-menu-item.js +1 -1
- package/lib/actions-menu/actions-menu-props.d.ts +2 -0
- package/lib/actions-menu/actions-menu-separator.d.ts +2 -2
- package/lib/actions-menu/actions-menu-sub-command-menu.js +5 -4
- package/lib/actions-menu/actions-menu.d.ts +1 -1
- package/lib/actions-menu/actions-menu.js +2 -1
- package/lib/actions-menu/contexts/actions-menu-context.js +12 -11
- package/lib/actions-menu/index.d.ts +3 -3
- package/lib/ai/max-tokens.js +6 -5
- package/lib/antd/ant-modal.d.ts +1 -1
- package/lib/antd/ant-modal.js +28 -1
- package/lib/antd/ant-upload.d.ts +1 -1
- package/lib/antd/ant-upload.js +23 -18
- package/lib/antd/input-number.js +2 -2
- package/lib/antd/input.js +7 -6
- package/lib/antd/utils.js +2 -1
- package/lib/avatar-colors.js +1 -1
- package/lib/avatar.d.ts +1 -10
- package/lib/avatar.js +48 -38
- package/lib/avatar.wyw-in-js.css +1 -1
- package/lib/banner/banner-action.js +2 -1
- package/lib/board-table-loader.js +1 -1
- package/lib/button/button.js +1 -1
- package/lib/button/icon-button.js +1 -1
- package/lib/canvas-colors.js +2 -2
- package/lib/card-container.d.ts +2 -6
- package/lib/card-container.js +5 -5
- package/lib/color-filter.js +2 -2
- package/lib/color-inspect.js +1 -1
- package/lib/color-picker/color-picker-or-loader.d.ts +2 -2
- package/lib/color-utils.js +1 -1
- package/lib/comment.d.ts +1 -0
- package/lib/comment.js +29 -20
- package/lib/comment.wyw-in-js.css +9 -7
- package/lib/context-menu/index.js +1 -0
- package/lib/context-menu/index.wyw-in-js.css +1 -1
- package/lib/copy-to-clipboard.js +2 -1
- package/lib/date-picker/autocomplete.js +12 -10
- package/lib/date-picker/date-range-input.js +9 -7
- package/lib/date-picker/day-with-start-end-buttons.js +0 -2
- package/lib/date-picker/get-weekends-for-month.js +4 -2
- package/lib/date-picker/relative-date-picker.js +5 -3
- package/lib/date-picker/single-date-input.js +9 -7
- package/lib/date-picker/single-date-picker.d.ts +1 -2
- package/lib/date-picker/single-date-picker.js +2 -1
- package/lib/date-picker/types.d.ts +1 -2
- package/lib/day-select/day-select.js +2 -1
- package/lib/day-select/week-day-select.d.ts +2 -2
- package/lib/day-select/week-day-select.js +4 -3
- package/lib/design-system/alpha.d.ts +6 -0
- package/lib/design-system/alpha.js +11 -7
- package/lib/design-system/colors-charts.d.ts +4 -0
- package/lib/design-system/colors-charts.js +14 -0
- package/lib/design-system/colors-js.d.ts +2 -4
- package/lib/design-system/colors-js.js +8 -10
- package/lib/design-system/fns.enum.js +7 -4
- package/lib/design-system/fns.icon.js +1 -1
- package/lib/design-system/fns.js +7 -4
- package/lib/design-system/theme.d.ts +7 -7
- package/lib/design-system/theme.js +7 -12
- package/lib/design-system/vars.js +1 -2
- package/lib/design-system.d.ts +3 -2
- package/lib/design-system.js +3 -2
- package/lib/emoji-picker/app-icon-picker.d.ts +2 -2
- package/lib/emoji-picker/emoji-picker-content-with-color.d.ts +2 -2
- package/lib/emoji-picker/emoji-picker.d.ts +2 -2
- package/lib/emoji-picker/icon-emoji-picker.d.ts +1 -2
- package/lib/emoji-picker/primitives/content.js +10 -9
- package/lib/emoji-picker/primitives/emoji.js +22 -14
- package/lib/emoji-picker/primitives/emoji.wyw-in-js.css +4 -3
- package/lib/emoji-picker/primitives/grid.js +0 -1
- package/lib/emoji-picker/primitives/preview-provider.js +4 -3
- package/lib/emoji-picker/primitives/root.js +10 -9
- package/lib/emoji-picker/primitives/skin-provider.js +5 -4
- package/lib/emoji-picker/stores/emoji-data-store.d.ts +2 -2
- package/lib/emoji-picker/stores/emoji-data-store.js +8 -8
- package/lib/emoji-picker/stores/static-emoji-data-store.js +2 -1
- package/lib/emoji.js +5 -2
- package/lib/errors.d.ts +2 -3
- package/lib/fibermoji-placeholder.js +5 -7
- package/lib/field-type-icon.js +2 -1
- package/lib/file-item/file-icon.js +2 -1
- package/lib/file-item.js +3 -10
- package/lib/guide-link.js +1 -1
- package/lib/highlight-colors.js +2 -1
- package/lib/hotkey-scope.js +2 -1
- package/lib/icons/ast/build.d.ts +5 -0
- package/lib/icons/ast/build.js +25 -0
- package/lib/icons/ast/index.d.ts +2 -4
- package/lib/icons/ast/index.js +5 -7
- package/lib/icons/ast/spinner.js +8 -15
- package/lib/icons/icon.js +4 -3
- package/lib/icons/react/{plus.d.ts → build.d.ts} +4 -4
- package/lib/icons/react/{plus.js → build.js} +6 -6
- package/lib/icons/react/index.d.ts +2 -4
- package/lib/icons/react/index.js +5 -7
- package/lib/images-gallery/get-gallery-src.js +1 -1
- package/lib/images-gallery/slide-buttons.js +8 -4
- package/lib/images-gallery/thumbnails-mime-types-white-list.js +1 -1
- package/lib/integration-compact-info-button.js +1 -2
- package/lib/is-in-popup.d.ts +1 -2
- package/lib/is-in-popup.js +6 -0
- package/lib/loaders.d.ts +1 -9
- package/lib/loaders.js +2 -39
- package/lib/loaders.wyw-in-js.css +2 -4
- package/lib/loading-sausage.js +7 -6
- package/lib/mobile-drawer.d.ts +2 -1
- package/lib/mobile-drawer.js +24 -12
- package/lib/mobile-drawer.wyw-in-js.css +4 -3
- package/lib/mobile-keyboard-aware-popup.js +6 -5
- package/lib/modal-menu/contexts/modal-menu-context.d.ts +1 -0
- package/lib/modal-menu/modal-menu-content.d.ts +1 -1
- package/lib/modal-menu/modal-menu-content.js +16 -6
- package/lib/modal-menu/modal-menu-drawer-content.d.ts +7 -0
- package/lib/modal-menu/modal-menu-drawer-content.js +13 -0
- package/lib/modal-menu/modal-menu-root.d.ts +2 -1
- package/lib/modal-menu/modal-menu-root.js +24 -21
- package/lib/modal-menu/modal-submenu.js +10 -9
- package/lib/nested-menu-item.d.ts +1 -1
- package/lib/number-input/number-input-inline-with-autosize.d.ts +1 -2
- package/lib/number-input/number-input-inline-with-autosize.js +9 -6
- package/lib/number-input/number-input-inline-with-autosize.wyw-in-js.css +0 -1
- package/lib/number-input/number-input.js +13 -11
- package/lib/number-input/styles.d.ts +1 -9
- package/lib/number-input/styles.js +3 -9
- package/lib/number-input/styles.wyw-in-js.css +2 -3
- package/lib/number-input/text-area-auto-sized.d.ts +1 -2
- package/lib/number-input/text-area-auto-sized.js +2 -2
- package/lib/number-input/text-input-auto-sized.d.ts +1 -2
- package/lib/number-input/text-input-auto-sized.js +2 -2
- package/lib/online-users.js +2 -2
- package/lib/open-popover-tracker.js +7 -6
- package/lib/palettes/neutral.js +1 -1
- package/lib/palettes/warm.js +1 -1
- package/lib/phone.js +1 -1
- package/lib/popover/index.d.ts +9 -12
- package/lib/popover/index.js +66 -75
- package/lib/popover/mobile-popover-context.js +12 -11
- package/lib/popover/mobile-popover.d.ts +2 -2
- package/lib/popover/mobile-popover.js +16 -15
- package/lib/popover/modifiers.js +4 -4
- package/lib/popover/popup-modifiers-context.d.ts +3 -5
- package/lib/preference-setting.js +6 -8
- package/lib/reactions/reaction-button.js +36 -25
- package/lib/reactions/reaction-button.wyw-in-js.css +16 -16
- package/lib/reactions/reaction-picker.js +22 -10
- package/lib/reactions/reaction-picker.wyw-in-js.css +1 -0
- package/lib/reactions/tootltip.js +2 -1
- package/lib/select/components/drop-down-indicator.js +1 -1
- package/lib/select/components/menu-list-virtualized.js +1 -1
- package/lib/select/components/option.js +2 -1
- package/lib/select/index.d.ts +2 -1
- package/lib/select/select-in-popover.js +1 -1
- package/lib/select/select-trigger.d.ts +4 -0
- package/lib/select/select-trigger.js +25 -0
- package/lib/select/select-trigger.wyw-in-js.css +1 -0
- package/lib/select/select.d.ts +6 -2
- package/lib/select/select.js +13 -8
- package/lib/select/styles.js +2 -2
- package/lib/spinner.d.ts +5 -0
- package/lib/spinner.js +17 -0
- package/lib/spinner.wyw-in-js.css +1 -0
- package/lib/tab-nav/tab-nav.d.ts +4 -2
- package/lib/tab-nav/tab-nav.js +2 -2
- package/lib/thematic.js +322 -321
- package/lib/theme-provider.d.ts +1 -3
- package/lib/theme-settings-core.d.ts +13 -1
- package/lib/theme-settings-core.js +37 -1
- package/lib/theme-settings.d.ts +3 -2
- package/lib/theme-settings.js +7 -2
- package/lib/toast/toast-action.js +2 -1
- package/lib/toast/toast-provider.d.ts +1 -2
- package/lib/toast/toast-queue.d.ts +1 -2
- package/lib/toast/toast-queue.js +7 -8
- package/lib/toast/toast.js +7 -6
- package/lib/toggle.js +3 -3
- package/lib/tooltip-if-overflown.js +2 -1
- package/lib/tooltip.js +1 -1
- package/lib/type-badge.d.ts +8 -28
- package/lib/type-badge.js +39 -50
- package/lib/type-badge.wyw-in-js.css +11 -10
- package/lib/unit/container.d.ts +12 -0
- package/lib/unit/container.js +50 -0
- package/lib/unit/context.d.ts +29 -0
- package/lib/unit/context.js +9 -0
- package/lib/unit/index.d.ts +4 -2
- package/lib/unit/index.js +2 -1
- package/lib/unit/nav-button.d.ts +12 -0
- package/lib/unit/nav-button.js +18 -0
- package/lib/unit/styles.d.ts +6 -9
- package/lib/unit/styles.js +13 -16
- package/lib/unit/styles.wyw-in-js.css +10 -16
- package/lib/unit/unit-content-layout.d.ts +4 -3
- package/lib/unit/unit-content-layout.js +9 -9
- package/lib/unit/unit-content.d.ts +6 -5
- package/lib/unit/unit-content.js +83 -18
- package/lib/unit/unit-content.wyw-in-js.css +6 -2
- package/lib/unit/unit.d.ts +38 -5
- package/lib/unit/unit.js +43 -12
- package/lib/use-long-press.d.ts +6 -6
- package/lib/with-data.d.ts +35 -37
- package/lib/with-data.js +23 -22
- package/lib/workflow-progress-icon.js +2 -2
- package/package.json +4 -4
- package/lib/beta-badge.d.ts +0 -8
- package/lib/beta-badge.js +0 -13
- package/lib/beta-badge.wyw-in-js.css +0 -1
- package/lib/checkbox-multi-select.d.ts +0 -21
- package/lib/checkbox-multi-select.js +0 -41
- package/lib/checkbox-multi-select.wyw-in-js.css +0 -3
- package/lib/country-selector.d.ts +0 -9
- package/lib/country-selector.js +0 -21
- package/lib/features.d.ts +0 -8
- package/lib/features.js +0 -15
- package/lib/flags.d.ts +0 -4
- package/lib/flags.js +0 -7
- package/lib/icons/ast/alert-triangle.d.ts +0 -5
- package/lib/icons/ast/alert-triangle.js +0 -25
- package/lib/icons/ast/field-units-large.d.ts +0 -5
- package/lib/icons/ast/field-units-large.js +0 -25
- package/lib/icons/ast/plus.d.ts +0 -5
- package/lib/icons/ast/plus.js +0 -25
- package/lib/icons/react/alert-triangle.d.ts +0 -15
- package/lib/icons/react/alert-triangle.js +0 -21
- package/lib/icons/react/field-units-large.d.ts +0 -15
- package/lib/icons/react/field-units-large.js +0 -21
- package/lib/layout.d.ts +0 -28
- package/lib/layout.js +0 -66
- package/lib/layout.wyw-in-js.css +0 -2
- package/lib/new-card-placeholder.d.ts +0 -26
- package/lib/new-card-placeholder.js +0 -141
- package/lib/new-card-placeholder.wyw-in-js.css +0 -5
- package/lib/unit/primitive.d.ts +0 -5
- package/lib/unit/primitive.js +0 -108
- package/lib/unit/primitive.wyw-in-js.css +0 -3
- package/lib/unit/types.d.ts +0 -34
- package/lib/unit/types.js +0 -0
- package/lib/unit/unit-button-group.d.ts +0 -13
- package/lib/unit/unit-button-group.js +0 -23
|
@@ -8,13 +8,14 @@ var [Provider, useContext$1] = createContext$1("OpenPopoverTrackerContext", {
|
|
|
8
8
|
});
|
|
9
9
|
var OpenPopoverTrackerProvider = ({ children }) => {
|
|
10
10
|
const [openPopovers, setOpenPopovers] = useState(/* @__PURE__ */ new Set());
|
|
11
|
+
const value = useMemo(() => {
|
|
12
|
+
return {
|
|
13
|
+
openPopovers,
|
|
14
|
+
setOpenPopovers
|
|
15
|
+
};
|
|
16
|
+
}, [openPopovers, setOpenPopovers]);
|
|
11
17
|
return /* @__PURE__ */ jsx(Provider, {
|
|
12
|
-
value
|
|
13
|
-
return {
|
|
14
|
-
openPopovers,
|
|
15
|
-
setOpenPopovers
|
|
16
|
-
};
|
|
17
|
-
}, [openPopovers, setOpenPopovers]),
|
|
18
|
+
value,
|
|
18
19
|
children
|
|
19
20
|
});
|
|
20
21
|
};
|
package/lib/palettes/neutral.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isFlagPresent } from "../flags.js";
|
|
2
1
|
import { Swatch } from "../design-system/colors-swatches.js";
|
|
3
2
|
import { common } from "./common.js";
|
|
3
|
+
import { isFlagPresent } from "@fibery/helpers/src/flags";
|
|
4
4
|
//#region src/palettes/neutral.ts
|
|
5
5
|
var deneutralize = isFlagPresent("no-neutral-swatches") ? void 0 : { swatches: {
|
|
6
6
|
[Swatch.GreyDark]: "#4A4A4A",
|
package/lib/palettes/warm.js
CHANGED
package/lib/phone.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isFlagPresent } from "./flags.js";
|
|
2
1
|
import { getMediaQueryList } from "./media-query-utils.js";
|
|
2
|
+
import { isFlagPresent } from "@fibery/helpers/src/flags";
|
|
3
3
|
//#region src/phone.ts
|
|
4
4
|
var isPhoneApp = () => Boolean(window.__FIBERY_MOBILE_APP_API);
|
|
5
5
|
var disableStatic = typeof __DISABLE_VERTICAL_MOBILE_BREAKPOINT__ !== "undefined" && __DISABLE_VERTICAL_MOBILE_BREAKPOINT__;
|
package/lib/popover/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $TSFixMe } from "../tsfixme.js";
|
|
2
1
|
import { Reference } from "./reference.js";
|
|
3
|
-
import { CSSProperties,
|
|
2
|
+
import { CSSProperties, ReactNode } from "react";
|
|
4
3
|
import { Modifier, Placement, State, createPopper } from "@popperjs/core";
|
|
5
4
|
import { Options } from "@popperjs/core/lib/modifiers/flip";
|
|
6
5
|
import { Options as Options$1 } from "@popperjs/core/lib/modifiers/preventOverflow";
|
|
@@ -10,9 +9,6 @@ type PopoverRootProps = {
|
|
|
10
9
|
children: ReactNode;
|
|
11
10
|
open: boolean;
|
|
12
11
|
disabled?: boolean;
|
|
13
|
-
triggerElement?: Reference;
|
|
14
|
-
setTriggerElement?: (value: Reference) => void;
|
|
15
|
-
popupElement?: HTMLDivElement | null;
|
|
16
12
|
setPopupElement?: (value: HTMLDivElement | null) => void;
|
|
17
13
|
onOpenChange?: (value: boolean) => void;
|
|
18
14
|
/** @deprecated Use onOpenChange prop instead **/
|
|
@@ -20,11 +16,13 @@ type PopoverRootProps = {
|
|
|
20
16
|
/** @deprecated Use onOpenChange prop instead **/
|
|
21
17
|
onClose?: (event: Event) => unknown;
|
|
22
18
|
};
|
|
19
|
+
declare const PopoverRoot: (props: PopoverRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
20
|
type PopoverPortalProps = {
|
|
24
21
|
/** Portal target element. Defaults to document.body, same as Radix Portal. */
|
|
25
22
|
container?: HTMLElement;
|
|
26
23
|
children: ReactNode;
|
|
27
24
|
};
|
|
25
|
+
declare const PopoverPortal: ({ container: containerProp, children }: PopoverPortalProps) => import("react").ReactPortal | null;
|
|
28
26
|
type PopoverTriggerProps = {
|
|
29
27
|
asChild?: boolean;
|
|
30
28
|
/** Custom reference element for popover positioning. Use when the trigger element differs from the anchor point (e.g., virtual/detached elements). */
|
|
@@ -35,16 +33,15 @@ type PopoverTriggerProps = {
|
|
|
35
33
|
type PopoverContentProps = {
|
|
36
34
|
children: ReactNode;
|
|
37
35
|
placement?: Placement;
|
|
38
|
-
popupStyle?:
|
|
36
|
+
popupStyle?: CSSProperties;
|
|
39
37
|
popupClassName?: string;
|
|
40
38
|
popupContainerClassName?: string;
|
|
41
39
|
offset?: [number, number];
|
|
42
|
-
padding?: number;
|
|
43
40
|
renderBackdrop?: boolean;
|
|
44
41
|
backdropClassName?: string;
|
|
45
42
|
preventOverflowOptions?: Partial<Options$1>;
|
|
46
43
|
flipOptions?: Partial<Options>;
|
|
47
|
-
additionalModifiers?:
|
|
44
|
+
additionalModifiers?: PopoverModifier[];
|
|
48
45
|
hidePopupWhenTriggerIsHidden?: boolean;
|
|
49
46
|
shrinkable?: boolean;
|
|
50
47
|
supportMobile?: boolean;
|
|
@@ -63,7 +60,6 @@ type PopoverContentProps = {
|
|
|
63
60
|
fixStackingContextAfterOpen?: boolean;
|
|
64
61
|
/** ran after Popup positioned the element the first time */
|
|
65
62
|
onFirstUpdate?: () => void;
|
|
66
|
-
onMouseLeave?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
67
63
|
/**
|
|
68
64
|
* Event handler called when auto-focusing on open.
|
|
69
65
|
* Can be prevented.
|
|
@@ -75,11 +71,12 @@ type PopoverContentProps = {
|
|
|
75
71
|
*/
|
|
76
72
|
onCloseAutoFocus?: FocusScopeProps["onUnmountAutoFocus"];
|
|
77
73
|
} & React.ComponentProps<"div">;
|
|
74
|
+
type PopoverModifier = Partial<Modifier<string, Record<string, unknown>>>;
|
|
78
75
|
type ContentRef = {
|
|
79
76
|
update: (() => Promise<unknown>) | null;
|
|
80
77
|
};
|
|
81
78
|
declare const Popover: {
|
|
82
|
-
Root:
|
|
79
|
+
Root: typeof PopoverRoot;
|
|
83
80
|
Trigger: import("react").ForwardRefExoticComponent<{
|
|
84
81
|
asChild?: boolean;
|
|
85
82
|
/** Custom reference element for popover positioning. Use when the trigger element differs from the anchor point (e.g., virtual/detached elements). */
|
|
@@ -87,8 +84,8 @@ declare const Popover: {
|
|
|
87
84
|
/** Event that opens the popover. "click" allows proper focus handling inside popover content. Default: "mousedown" */
|
|
88
85
|
triggerEvent?: "mousedown" | "click";
|
|
89
86
|
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
90
|
-
Portal:
|
|
87
|
+
Portal: typeof PopoverPortal;
|
|
91
88
|
Content: import("react").ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & import("react").RefAttributes<ContentRef>>;
|
|
92
89
|
};
|
|
93
90
|
//#endregion
|
|
94
|
-
export { ContentRef, type Placement, Popover, type PopoverContentProps, type PopoverPortalProps, type PopoverRootProps, type PopoverTriggerProps, type Reference, type State, createPopper };
|
|
91
|
+
export { ContentRef, type Placement, Popover, type PopoverContentProps, PopoverModifier, type PopoverPortalProps, type PopoverRootProps, type PopoverTriggerProps, type Reference, type State, createPopper };
|
package/lib/popover/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { createPopper } from "@popperjs/core";
|
|
|
27
27
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
28
28
|
import { usePopper } from "react-popper";
|
|
29
29
|
//#region src/popover/index.tsx
|
|
30
|
+
var POPUP_OVERFLOW_PADDING = space.s8;
|
|
30
31
|
var [PopoverProvider, usePopoverContext] = createContext$1("PopoverContext");
|
|
31
32
|
var PopoverRoot = (props) => {
|
|
32
33
|
const { children, open, disabled = false, onOpenChange, onOpen, onClose, ...rest } = props;
|
|
@@ -44,40 +45,34 @@ var PopoverRoot = (props) => {
|
|
|
44
45
|
onOpenPopoverChange(open);
|
|
45
46
|
return () => onOpenPopoverChange(false);
|
|
46
47
|
}, [open, onOpenPopoverChange]);
|
|
47
|
-
const [triggerElement, setTriggerElement] = useControllableState({
|
|
48
|
-
|
|
49
|
-
onChange: rest.setTriggerElement
|
|
50
|
-
});
|
|
51
|
-
const [popupElement, setPopupElement] = useControllableState({
|
|
52
|
-
value: rest.popupElement,
|
|
53
|
-
onChange: rest.setPopupElement
|
|
54
|
-
});
|
|
55
|
-
const composedSetTriggerElement = useComposedRefs(setTriggerElement, rest.setTriggerElement);
|
|
48
|
+
const [triggerElement, setTriggerElement] = useControllableState({});
|
|
49
|
+
const [popupElement, setPopupElement] = useControllableState({ onChange: rest.setPopupElement });
|
|
56
50
|
const composedSetPopupElement = useComposedRefs(setPopupElement, rest.setPopupElement);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return {
|
|
60
|
-
contentId,
|
|
61
|
-
disabled,
|
|
62
|
-
triggerElement,
|
|
63
|
-
setTriggerElement: composedSetTriggerElement,
|
|
64
|
-
popupElement,
|
|
65
|
-
setPopupElement: composedSetPopupElement,
|
|
66
|
-
open,
|
|
67
|
-
onOpen: onOpenComposed,
|
|
68
|
-
onClose: onCloseComposed
|
|
69
|
-
};
|
|
70
|
-
}, [
|
|
51
|
+
const contextValue = useMemo(() => {
|
|
52
|
+
return {
|
|
71
53
|
contentId,
|
|
72
54
|
disabled,
|
|
73
55
|
triggerElement,
|
|
74
|
-
|
|
56
|
+
setTriggerElement,
|
|
75
57
|
popupElement,
|
|
76
|
-
composedSetPopupElement,
|
|
58
|
+
setPopupElement: composedSetPopupElement,
|
|
77
59
|
open,
|
|
78
|
-
onOpenComposed,
|
|
79
|
-
onCloseComposed
|
|
80
|
-
|
|
60
|
+
onOpen: onOpenComposed,
|
|
61
|
+
onClose: onCloseComposed
|
|
62
|
+
};
|
|
63
|
+
}, [
|
|
64
|
+
contentId,
|
|
65
|
+
disabled,
|
|
66
|
+
triggerElement,
|
|
67
|
+
setTriggerElement,
|
|
68
|
+
popupElement,
|
|
69
|
+
composedSetPopupElement,
|
|
70
|
+
open,
|
|
71
|
+
onOpenComposed,
|
|
72
|
+
onCloseComposed
|
|
73
|
+
]);
|
|
74
|
+
return /* @__PURE__ */ jsx(PopoverProvider, {
|
|
75
|
+
value: contextValue,
|
|
81
76
|
children
|
|
82
77
|
});
|
|
83
78
|
};
|
|
@@ -137,7 +132,7 @@ var Popover = {
|
|
|
137
132
|
}),
|
|
138
133
|
Portal: PopoverPortal,
|
|
139
134
|
Content: forwardRef((props, ref) => {
|
|
140
|
-
const { children, placement, popupStyle, popupContainerClassName, popupClassName, offset = [0, 0],
|
|
135
|
+
const { children, placement, popupStyle, popupContainerClassName, popupClassName, offset = [0, 0], renderBackdrop, backdropClassName, preventOverflowOptions = {}, flipOptions = {}, additionalModifiers = [], hidePopupWhenTriggerIsHidden = true, shrinkable, supportMobile = false, title = "", mobilePopupStyle, mobilePopupContentClassName, fixStackingContextAfterOpen = false, transform, onFirstUpdate, onOpenAutoFocus, onCloseAutoFocus, ...rest } = props;
|
|
141
136
|
const { contentId, open, onClose, triggerElement, popupElement, setPopupElement } = usePopoverContext();
|
|
142
137
|
const popupModifiers = usePopupModifiers();
|
|
143
138
|
const isPhone = useIsPhone();
|
|
@@ -181,59 +176,55 @@ var Popover = {
|
|
|
181
176
|
]);
|
|
182
177
|
const shrinkableModifiers = useMemo(() => {
|
|
183
178
|
return shrinkable ? [makeMaxSizeModifier({
|
|
184
|
-
padding,
|
|
179
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
185
180
|
...preventOverflowOptions
|
|
186
181
|
}), applyMaxSize] : [];
|
|
182
|
+
}, [preventOverflowOptions, shrinkable]);
|
|
183
|
+
const modifiers = useMemo(() => {
|
|
184
|
+
return [
|
|
185
|
+
{
|
|
186
|
+
name: "flip",
|
|
187
|
+
options: {
|
|
188
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
189
|
+
...popupModifiers.flipOptions,
|
|
190
|
+
...flipOptions
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "preventOverflow",
|
|
195
|
+
options: {
|
|
196
|
+
tether: false,
|
|
197
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
198
|
+
...popupModifiers.preventOverflowOptions,
|
|
199
|
+
...preventOverflowOptions
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "offset",
|
|
204
|
+
options: { offset }
|
|
205
|
+
},
|
|
206
|
+
!transform && {
|
|
207
|
+
name: "computeStyles",
|
|
208
|
+
options: { gpuAcceleration: false }
|
|
209
|
+
},
|
|
210
|
+
observeWidth,
|
|
211
|
+
...shrinkableModifiers,
|
|
212
|
+
...additionalModifiers,
|
|
213
|
+
...popupModifiers.additionalModifiers ?? []
|
|
214
|
+
].filter(truthy);
|
|
187
215
|
}, [
|
|
188
|
-
|
|
216
|
+
additionalModifiers,
|
|
217
|
+
flipOptions,
|
|
218
|
+
offset,
|
|
219
|
+
popupModifiers,
|
|
189
220
|
preventOverflowOptions,
|
|
190
|
-
|
|
221
|
+
shrinkableModifiers,
|
|
222
|
+
transform
|
|
191
223
|
]);
|
|
192
224
|
const { styles, attributes, update } = usePopper(triggerElement, popupElement, {
|
|
193
225
|
placement,
|
|
194
226
|
onFirstUpdate,
|
|
195
|
-
modifiers
|
|
196
|
-
return [
|
|
197
|
-
{
|
|
198
|
-
name: "flip",
|
|
199
|
-
options: {
|
|
200
|
-
padding,
|
|
201
|
-
...popupModifiers.flipOptions,
|
|
202
|
-
...flipOptions
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: "preventOverflow",
|
|
207
|
-
options: {
|
|
208
|
-
tether: false,
|
|
209
|
-
padding,
|
|
210
|
-
...popupModifiers.preventOverflowOptions,
|
|
211
|
-
...preventOverflowOptions
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: "offset",
|
|
216
|
-
options: { offset }
|
|
217
|
-
},
|
|
218
|
-
!transform && {
|
|
219
|
-
name: "computeStyles",
|
|
220
|
-
options: { gpuAcceleration: false }
|
|
221
|
-
},
|
|
222
|
-
observeWidth,
|
|
223
|
-
...shrinkableModifiers,
|
|
224
|
-
...additionalModifiers,
|
|
225
|
-
...popupModifiers.additionalModifiers ?? []
|
|
226
|
-
].filter(truthy);
|
|
227
|
-
}, [
|
|
228
|
-
additionalModifiers,
|
|
229
|
-
flipOptions,
|
|
230
|
-
offset,
|
|
231
|
-
padding,
|
|
232
|
-
popupModifiers,
|
|
233
|
-
preventOverflowOptions,
|
|
234
|
-
shrinkableModifiers,
|
|
235
|
-
transform
|
|
236
|
-
])
|
|
227
|
+
modifiers
|
|
237
228
|
});
|
|
238
229
|
useImperativeHandle(ref, () => ({ update }), [update]);
|
|
239
230
|
const hasInteractedOutsideRef = useRef(false);
|
|
@@ -256,7 +247,7 @@ var Popover = {
|
|
|
256
247
|
if (!open) return null;
|
|
257
248
|
if (!transform && !triggerElement) return null;
|
|
258
249
|
if (isPhone && supportMobile) return /* @__PURE__ */ jsx(MobilePopoverProvider, { children: jsx(MobilePopover, {
|
|
259
|
-
onClose,
|
|
250
|
+
onClose: (event) => onClose(event.nativeEvent),
|
|
260
251
|
title,
|
|
261
252
|
mobilePopupContentClassName,
|
|
262
253
|
mobilePopupStyle,
|
|
@@ -10,18 +10,19 @@ var [Provider, useMobilePopover] = createContext$1("MobilePopoverContext", {
|
|
|
10
10
|
var MobilePopoverProvider = ({ children }) => {
|
|
11
11
|
const [title, setTitle] = useState();
|
|
12
12
|
const [headerSlot, setHeader] = useState();
|
|
13
|
+
const contextValue = useMemo(() => ({
|
|
14
|
+
title,
|
|
15
|
+
headerSlot,
|
|
16
|
+
setTitle,
|
|
17
|
+
setHeader
|
|
18
|
+
}), [
|
|
19
|
+
title,
|
|
20
|
+
headerSlot,
|
|
21
|
+
setTitle,
|
|
22
|
+
setHeader
|
|
23
|
+
]);
|
|
13
24
|
return /* @__PURE__ */ jsx(Provider, {
|
|
14
|
-
value:
|
|
15
|
-
title,
|
|
16
|
-
headerSlot,
|
|
17
|
-
setTitle,
|
|
18
|
-
setHeader
|
|
19
|
-
}), [
|
|
20
|
-
title,
|
|
21
|
-
headerSlot,
|
|
22
|
-
setTitle,
|
|
23
|
-
setHeader
|
|
24
|
-
]),
|
|
25
|
+
value: contextValue,
|
|
25
26
|
children
|
|
26
27
|
});
|
|
27
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from "react";
|
|
1
|
+
import { CSSProperties, MouseEventHandler, ReactNode } from "react";
|
|
2
2
|
//#region src/popover/mobile-popover.d.ts
|
|
3
3
|
declare const mobileZIndex = 1002;
|
|
4
4
|
declare function MobilePopover({ content, mobilePopupStyle, mobilePopupContentClassName, title, onClose, height, onNavigateBack }: {
|
|
@@ -7,7 +7,7 @@ declare function MobilePopover({ content, mobilePopupStyle, mobilePopupContentCl
|
|
|
7
7
|
mobilePopupContentClassName?: string;
|
|
8
8
|
title: string;
|
|
9
9
|
height?: string;
|
|
10
|
-
onClose?:
|
|
10
|
+
onClose?: MouseEventHandler<HTMLElement>;
|
|
11
11
|
onNavigateBack?: () => void;
|
|
12
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//#endregion
|
|
@@ -38,23 +38,24 @@ function MobilePopover({ content, mobilePopupStyle, mobilePopupContentClassName,
|
|
|
38
38
|
className: cx("ciuf78p", mobilePopupContentClassName),
|
|
39
39
|
children: content
|
|
40
40
|
})] });
|
|
41
|
+
const res = /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: cx("cs2dkzn", !height && mobileAnimationClassName, !height && popupContentClassName, height && "c1rcf8rf"),
|
|
43
|
+
style: {
|
|
44
|
+
...mobilePopupStyle,
|
|
45
|
+
...height ? { gridTemplateRows: `1fr ${height}` } : {}
|
|
46
|
+
},
|
|
47
|
+
onClick: stopPropagation,
|
|
48
|
+
children: height ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
49
|
+
onClick: onClose,
|
|
50
|
+
className: "c1s9g0po"
|
|
51
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: cx("c11inctn", mobileAnimationClassName, popupContentClassName),
|
|
53
|
+
children: popupContent
|
|
54
|
+
})] }) : popupContent
|
|
55
|
+
});
|
|
41
56
|
return /* @__PURE__ */ jsx(ThemeProvider, {
|
|
42
57
|
portal: true,
|
|
43
|
-
children:
|
|
44
|
-
className: cx("cs2dkzn", !height && mobileAnimationClassName, !height && popupContentClassName, height && "c1rcf8rf"),
|
|
45
|
-
style: {
|
|
46
|
-
...mobilePopupStyle,
|
|
47
|
-
...height ? { gridTemplateRows: `1fr ${height}` } : {}
|
|
48
|
-
},
|
|
49
|
-
onClick: stopPropagation,
|
|
50
|
-
children: height ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
51
|
-
onClick: onClose,
|
|
52
|
-
className: "c1s9g0po"
|
|
53
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
54
|
-
className: cx("c11inctn", mobileAnimationClassName, popupContentClassName),
|
|
55
|
-
children: popupContent
|
|
56
|
-
})] }) : popupContent
|
|
57
|
-
})
|
|
58
|
+
children: res
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
//#endregion
|
package/lib/popover/modifiers.js
CHANGED
|
@@ -26,11 +26,11 @@ var observeWidthEffect = ({ state, instance }) => {
|
|
|
26
26
|
const onResize = () => {
|
|
27
27
|
instance.update();
|
|
28
28
|
};
|
|
29
|
-
resizeListener.subscribe(popper, onResize);
|
|
30
|
-
|
|
29
|
+
const unsubscribePopper = resizeListener.subscribe(popper, onResize);
|
|
30
|
+
const unsubscribeReference = isElementReference(reference) ? resizeListener.subscribe(reference, onResize) : void 0;
|
|
31
31
|
return () => {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
unsubscribePopper();
|
|
33
|
+
unsubscribeReference?.();
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
var observeWidth = {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PopoverContentProps } from "./index.js";
|
|
3
|
-
import { Modifier } from "react-popper";
|
|
1
|
+
import { PopoverContentProps, PopoverModifier } from "./index.js";
|
|
4
2
|
//#region src/popover/popup-modifiers-context.d.ts
|
|
5
3
|
declare const PopupModifiersProvider: import("react").Provider<{
|
|
6
4
|
getPopupContainer: () => HTMLElement;
|
|
7
|
-
additionalModifiers?:
|
|
5
|
+
additionalModifiers?: PopoverModifier[];
|
|
8
6
|
preventOverflowOptions?: PopoverContentProps["preventOverflowOptions"];
|
|
9
7
|
flipOptions?: PopoverContentProps["flipOptions"];
|
|
10
8
|
}>, usePopupModifiers: () => {
|
|
11
9
|
getPopupContainer: () => HTMLElement;
|
|
12
|
-
additionalModifiers?:
|
|
10
|
+
additionalModifiers?: PopoverModifier[];
|
|
13
11
|
preventOverflowOptions?: PopoverContentProps["preventOverflowOptions"];
|
|
14
12
|
flipOptions?: PopoverContentProps["flipOptions"];
|
|
15
13
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { makeSubject } from "@fibery/helpers/src/subject";
|
|
1
2
|
//#region src/preference-setting.ts
|
|
2
3
|
function createPreferenceSetting({ key, parse, stringify, defaultValue }) {
|
|
3
|
-
const
|
|
4
|
-
function broadcast(value) {
|
|
5
|
-
listeners.forEach((cb) => cb(value));
|
|
6
|
-
}
|
|
4
|
+
const values = makeSubject();
|
|
7
5
|
function load() {
|
|
8
6
|
try {
|
|
9
7
|
const raw = localStorage.getItem(key);
|
|
@@ -27,7 +25,7 @@ function createPreferenceSetting({ key, parse, stringify, defaultValue }) {
|
|
|
27
25
|
try {
|
|
28
26
|
localStorage.setItem(key, stringify(value));
|
|
29
27
|
} catch {}
|
|
30
|
-
|
|
28
|
+
values.publish(value);
|
|
31
29
|
}
|
|
32
30
|
function subscribe(cb) {
|
|
33
31
|
let prev = load();
|
|
@@ -35,7 +33,7 @@ function createPreferenceSetting({ key, parse, stringify, defaultValue }) {
|
|
|
35
33
|
prev = value;
|
|
36
34
|
cb(value);
|
|
37
35
|
};
|
|
38
|
-
|
|
36
|
+
const unsubscribe = values.subscribe(tracked);
|
|
39
37
|
const storageListener = () => {
|
|
40
38
|
const next = load();
|
|
41
39
|
if (prev !== next) {
|
|
@@ -46,14 +44,14 @@ function createPreferenceSetting({ key, parse, stringify, defaultValue }) {
|
|
|
46
44
|
window.addEventListener("storage", storageListener);
|
|
47
45
|
return () => {
|
|
48
46
|
window.removeEventListener("storage", storageListener);
|
|
49
|
-
|
|
47
|
+
unsubscribe();
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
return {
|
|
53
51
|
load,
|
|
54
52
|
has,
|
|
55
53
|
store,
|
|
56
|
-
notify:
|
|
54
|
+
notify: values.publish,
|
|
57
55
|
subscribe
|
|
58
56
|
};
|
|
59
57
|
}
|
|
@@ -17,7 +17,8 @@ import { Fragment as Fragment$1, useCallback, useRef, useState } from "react";
|
|
|
17
17
|
import { createPortal } from "react-dom";
|
|
18
18
|
//#region src/reactions/reaction-button.tsx
|
|
19
19
|
var reactionButtonCss = "rv145dc-reactionButton";
|
|
20
|
-
var
|
|
20
|
+
var emojiSlotCss = "e1h22put-emojiSlot";
|
|
21
|
+
var overlayClassName = "o1dzgtj7-overlay";
|
|
21
22
|
function TouchOverlay({ onClick }) {
|
|
22
23
|
return createPortal(/* @__PURE__ */ jsx(ThemeProvider, {
|
|
23
24
|
portal: true,
|
|
@@ -28,44 +29,45 @@ function TouchOverlay({ onClick }) {
|
|
|
28
29
|
}), getPopupContainerElement());
|
|
29
30
|
}
|
|
30
31
|
function MobileOverlay({ content, onClose }) {
|
|
32
|
+
const handleClose = useCallback((e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
onClose();
|
|
35
|
+
}, [onClose]);
|
|
31
36
|
return createPortal(/* @__PURE__ */ jsx(ThemeProvider, {
|
|
32
37
|
portal: true,
|
|
33
38
|
children: /* @__PURE__ */ jsxs("div", {
|
|
34
39
|
className: overlayClassName,
|
|
35
40
|
children: [/* @__PURE__ */ jsx("div", {
|
|
36
|
-
onPointerDown:
|
|
37
|
-
|
|
38
|
-
onClose();
|
|
39
|
-
}, [onClose]),
|
|
40
|
-
className: "c1dzgtj7"
|
|
41
|
+
onPointerDown: handleClose,
|
|
42
|
+
className: "cq405te"
|
|
41
43
|
}), /* @__PURE__ */ jsx("div", {
|
|
42
44
|
onPointerDown: (e) => {
|
|
43
45
|
e.stopPropagation();
|
|
44
46
|
},
|
|
45
|
-
className: "
|
|
47
|
+
className: "c1ce8695",
|
|
46
48
|
children: content
|
|
47
49
|
})]
|
|
48
50
|
})
|
|
49
51
|
}), getPopupContainerElement());
|
|
50
52
|
}
|
|
51
|
-
var navLinkClassName = "
|
|
52
|
-
var tabNavRootWithShadow = "
|
|
53
|
+
var navLinkClassName = "n1b4qxjg-navLink";
|
|
54
|
+
var tabNavRootWithShadow = "t15bt0sq-tabNavRootWithShadow";
|
|
53
55
|
function PhoneTooltipContent({ reactions }) {
|
|
54
56
|
const [selectedTab, setSelectedTab] = useState("all");
|
|
55
57
|
const listRef = useRef(null);
|
|
56
58
|
const hasMultipleReactions = reactions.length > 1;
|
|
57
59
|
const allReactionsContent = /* @__PURE__ */ jsx("div", {
|
|
58
|
-
className: "
|
|
60
|
+
className: "c2vgbrn",
|
|
59
61
|
children: reactions.map((reaction) => /* @__PURE__ */ jsxs("div", {
|
|
60
|
-
className: "
|
|
62
|
+
className: "c22d8hq",
|
|
61
63
|
children: [/* @__PURE__ */ jsx(Emoji, {
|
|
62
64
|
size: 24,
|
|
63
65
|
emoji: reaction.key
|
|
64
66
|
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
65
|
-
className: "
|
|
67
|
+
className: "czoxmhd",
|
|
66
68
|
children: reaction.alias || reaction.key
|
|
67
69
|
}), reaction.users ? /* @__PURE__ */ jsx("div", {
|
|
68
|
-
className: "
|
|
70
|
+
className: "c1s3fkw3",
|
|
69
71
|
children: /* @__PURE__ */ jsx(PrintNames, { users: reaction.users })
|
|
70
72
|
}) : null] })]
|
|
71
73
|
}, reaction.key))
|
|
@@ -73,18 +75,18 @@ function PhoneTooltipContent({ reactions }) {
|
|
|
73
75
|
const singleReactionContent = (reaction) => {
|
|
74
76
|
if (!reaction) return null;
|
|
75
77
|
return /* @__PURE__ */ jsxs("div", {
|
|
76
|
-
className: "
|
|
78
|
+
className: "c1qgjat1",
|
|
77
79
|
children: [/* @__PURE__ */ jsx("div", {
|
|
78
|
-
className: "
|
|
80
|
+
className: "cfl9ju8",
|
|
79
81
|
children: reaction.alias || reaction.key
|
|
80
82
|
}), reaction.users?.map(({ name: userName, avatarUrl }) => /* @__PURE__ */ jsxs("div", {
|
|
81
|
-
className: "
|
|
83
|
+
className: "cciqw09",
|
|
82
84
|
children: [/* @__PURE__ */ jsx(AvatarImage, {
|
|
83
85
|
avatarUrl,
|
|
84
86
|
title: userName,
|
|
85
87
|
size: 24
|
|
86
88
|
}), /* @__PURE__ */ jsx("span", {
|
|
87
|
-
className: "
|
|
89
|
+
className: "czzpq0p",
|
|
88
90
|
children: userName
|
|
89
91
|
})]
|
|
90
92
|
}, userName))]
|
|
@@ -110,14 +112,14 @@ function PhoneTooltipContent({ reactions }) {
|
|
|
110
112
|
}, reaction.key))]
|
|
111
113
|
})
|
|
112
114
|
}), /* @__PURE__ */ jsx("div", {
|
|
113
|
-
className: "
|
|
115
|
+
className: "cu8y17z",
|
|
114
116
|
children: selectedTab === "all" && hasMultipleReactions ? allReactionsContent : singleReactionContent(hasMultipleReactions ? reactions.find((r) => r.key === selectedTab) : reactions[0])
|
|
115
117
|
})] });
|
|
116
118
|
}
|
|
117
119
|
function PrintNames({ users }) {
|
|
118
120
|
return /* @__PURE__ */ jsxs(Fragment, { children: [users.map(({ name }, index, names) => {
|
|
119
121
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
120
|
-
className: "
|
|
122
|
+
className: "cred4fn",
|
|
121
123
|
children: name
|
|
122
124
|
}), getWordDivider(names.length, index)] }, index);
|
|
123
125
|
}), " "] });
|
|
@@ -139,16 +141,25 @@ var ReactionButton = ({ reaction, disabled, onSelect, reactions }) => {
|
|
|
139
141
|
document.body.style.webkitUserSelect = "";
|
|
140
142
|
}
|
|
141
143
|
};
|
|
144
|
+
const longPressEvent = useLongPress(onLongPress, {
|
|
145
|
+
isPreventDefault: true,
|
|
146
|
+
delay: 300
|
|
147
|
+
});
|
|
148
|
+
const emojiSlotPx = isPhone ? 18 : 16;
|
|
142
149
|
const button = /* @__PURE__ */ jsx(ToggleButton, {
|
|
143
150
|
className: reactionButtonCss,
|
|
144
151
|
disabled,
|
|
145
152
|
iconStart: jsx("div", {
|
|
146
|
-
className:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
153
|
+
className: emojiSlotCss,
|
|
154
|
+
style: {
|
|
155
|
+
width: emojiSlotPx,
|
|
156
|
+
height: emojiSlotPx
|
|
157
|
+
},
|
|
158
|
+
...longPressEvent,
|
|
159
|
+
children: /* @__PURE__ */ jsx(Emoji, {
|
|
160
|
+
emoji: reaction.key,
|
|
161
|
+
size: emojiSlotPx
|
|
162
|
+
})
|
|
152
163
|
}),
|
|
153
164
|
onPressedChange: () => onSelect(reaction.key),
|
|
154
165
|
pressed: reaction.selected,
|