@frontify/fondue-components 3.0.2 → 3.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/dist/fondue-components10.js +1 -1
- package/dist/fondue-components11.js +2 -2
- package/dist/fondue-components12.js +6 -6
- package/dist/fondue-components13.js +1 -1
- package/dist/fondue-components14.js +1 -1
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components16.js +1 -1
- package/dist/fondue-components19.js +1 -1
- package/dist/fondue-components22.js +15 -17
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +19 -17
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +17 -35
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +16 -24
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +35 -9
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +22 -107
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +9 -12
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +109 -37
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components30.js +12 -8
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +42 -20
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +8 -56
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +20 -17
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +55 -14
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +18 -2
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +15 -39
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +5 -0
- package/dist/fondue-components37.js.map +1 -0
- package/dist/fondue-components38.js +42 -0
- package/dist/fondue-components38.js.map +1 -0
- package/dist/fondue-components7.js +89 -71
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components8.js +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/style.css +1 -1
- package/package.json +6 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-progress";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-
|
|
4
|
+
import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-components26.js";
|
|
5
5
|
const p = m(
|
|
6
6
|
({
|
|
7
7
|
value: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import { useControllableState as S } from "./fondue-
|
|
5
|
-
import { segmentedControlRootStyles as f, segmentedControlActiveIndicatorStyles as I, segmentedControlItemStyles as y, segmentedControlItemSeparatorStyles as N, segmentedControlItemLabelStyles as u, segmentedControlItemLabelActiveStyles as b, segmentedControlItemLabelInactiveStyles as h } from "./fondue-
|
|
4
|
+
import { useControllableState as S } from "./fondue-components27.js";
|
|
5
|
+
import { segmentedControlRootStyles as f, segmentedControlActiveIndicatorStyles as I, segmentedControlItemStyles as y, segmentedControlItemSeparatorStyles as N, segmentedControlItemLabelStyles as u, segmentedControlItemLabelActiveStyles as b, segmentedControlItemLabelInactiveStyles as h } from "./fondue-components28.js";
|
|
6
6
|
const d = ({ children: e, value: o, defaultValue: s, onValueChange: c, ...a }, g) => {
|
|
7
7
|
const [p, C] = S({
|
|
8
8
|
prop: o,
|
|
@@ -4,12 +4,12 @@ import * as p from "@radix-ui/react-popover";
|
|
|
4
4
|
import { Slot as j } from "@radix-ui/react-slot";
|
|
5
5
|
import { useSelect as D } from "downshift";
|
|
6
6
|
import { forwardRef as M } from "react";
|
|
7
|
-
import { ForwardedRefCombobox as T } from "./fondue-
|
|
8
|
-
import { ForwardedRefSelectItem as k, ForwardedRefSelectItemGroup as z } from "./fondue-
|
|
9
|
-
import { SelectMenu as A } from "./fondue-
|
|
10
|
-
import { ForwardedRefSelectSlot as O } from "./fondue-
|
|
11
|
-
import r from "./fondue-
|
|
12
|
-
import { useSelectData as V } from "./fondue-
|
|
7
|
+
import { ForwardedRefCombobox as T } from "./fondue-components29.js";
|
|
8
|
+
import { ForwardedRefSelectItem as k, ForwardedRefSelectItemGroup as z } from "./fondue-components30.js";
|
|
9
|
+
import { SelectMenu as A } from "./fondue-components31.js";
|
|
10
|
+
import { ForwardedRefSelectSlot as O } from "./fondue-components32.js";
|
|
11
|
+
import r from "./fondue-components33.js";
|
|
12
|
+
import { useSelectData as V } from "./fondue-components34.js";
|
|
13
13
|
const n = ({
|
|
14
14
|
children: S,
|
|
15
15
|
onSelect: a,
|
|
@@ -2,7 +2,7 @@ import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconCheckMark as w, IconExclamationMarkTriangle as N } from "@frontify/fondue-icons";
|
|
3
3
|
import { forwardRef as n, useRef as S } from "react";
|
|
4
4
|
import { cn as m } from "./fondue-components15.js";
|
|
5
|
-
import r from "./fondue-
|
|
5
|
+
import r from "./fondue-components35.js";
|
|
6
6
|
const f = ({
|
|
7
7
|
children: c,
|
|
8
8
|
className: d,
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-tooltip";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
4
|
import { cn as T } from "./fondue-components15.js";
|
|
5
|
-
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-
|
|
5
|
+
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components36.js";
|
|
6
6
|
const d = ({ children: i, enterDelay: e = 700, open: r, onOpenChange: n }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, open: r, onOpenChange: n, children: i }) });
|
|
7
7
|
d.displayName = "Tooltip.Root";
|
|
8
8
|
const s = ({ children: i, "data-test-id": e = "fondue-tooltip-content" }, r) => /* @__PURE__ */ t(o.Trigger, { "data-test-id": e, asChild: !0, ref: r, children: i });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components14.js","sources":["../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as RadixTooltip from '@radix-ui/react-tooltip';\nimport { forwardRef, type ForwardedRef, type ReactElement, type ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { tooltipArrowStyles, tooltipContentStyles } from './styles/tooltipStyles';\n\nexport type TooltipRootProps = {\n /**\n * Sets the open state of the tooltip.\n */\n open?: boolean;\n /**\n * Callback that is called when the open state of the tooltip changes.\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * The delay in milliseconds before the tooltip appears.\n * @default 700\n */\n enterDelay?: number;\n children: Array<ReactElement<TooltipTriggerProps | TooltipContentProps>>;\n};\nexport type TooltipTriggerProps = { children: ReactNode; 'data-test-id'?: string };\nexport type TooltipContentProps = {\n /**\n * @default spacious\n */\n padding?: 'spacious' | 'compact';\n /**\n * Defines the
|
|
1
|
+
{"version":3,"file":"fondue-components14.js","sources":["../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as RadixTooltip from '@radix-ui/react-tooltip';\nimport { forwardRef, type ForwardedRef, type ReactElement, type ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { tooltipArrowStyles, tooltipContentStyles } from './styles/tooltipStyles';\n\nexport type TooltipRootProps = {\n /**\n * Sets the open state of the tooltip.\n */\n open?: boolean;\n /**\n * Callback that is called when the open state of the tooltip changes.\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * The delay in milliseconds before the tooltip appears.\n * @default 700\n */\n enterDelay?: number;\n children: Array<ReactElement<TooltipTriggerProps | TooltipContentProps>>;\n};\nexport type TooltipTriggerProps = { children: ReactNode; 'data-test-id'?: string };\nexport type TooltipContentProps = {\n /**\n * @default spacious\n */\n padding?: 'spacious' | 'compact';\n /**\n * Defines the preferred side of the tooltip. It will not be respected if there are collisions with the viewport.\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n maxWidth?: string;\n className?: string;\n children: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const TooltipRoot = ({ children, enterDelay = 700, open, onOpenChange }: TooltipRootProps) => {\n return (\n <RadixTooltip.Provider>\n <RadixTooltip.Root delayDuration={enterDelay} open={open} onOpenChange={onOpenChange}>\n {children}\n </RadixTooltip.Root>\n </RadixTooltip.Provider>\n );\n};\nTooltipRoot.displayName = 'Tooltip.Root';\n\nexport const TooltipTrigger = (\n { children, 'data-test-id': dataTestId = 'fondue-tooltip-content' }: TooltipTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixTooltip.Trigger data-test-id={dataTestId} asChild ref={ref}>\n {children}\n </RadixTooltip.Trigger>\n );\n};\nTooltipTrigger.displayName = 'Tooltip.Trigger';\n\nexport const TooltipContent = (\n {\n children,\n className,\n maxWidth,\n 'data-test-id': dataTestId = 'fondue-tooltip-content',\n ...props\n }: TooltipContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n data-test-id={dataTestId}\n className={cn(\n tooltipContentStyles({\n ...props,\n }),\n className,\n )}\n style={{ maxWidth }}\n collisionPadding={16}\n sideOffset={8}\n ref={ref}\n {...props}\n >\n {children}\n\n <RadixTooltip.Arrow asChild>\n <div aria-hidden=\"true\" className={tooltipArrowStyles} />\n </RadixTooltip.Arrow>\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n );\n};\nTooltipContent.displayName = 'Tooltip.Content';\n\nexport const Tooltip = {\n Root: TooltipRoot,\n Trigger: forwardRef<HTMLButtonElement, TooltipTriggerProps>(TooltipTrigger),\n Content: forwardRef<HTMLDivElement, TooltipContentProps>(TooltipContent),\n};\n"],"names":["TooltipRoot","children","enterDelay","open","onOpenChange","jsx","RadixTooltip","TooltipTrigger","dataTestId","ref","TooltipContent","className","maxWidth","props","jsxs","cn","tooltipContentStyles","tooltipArrowStyles","Tooltip","forwardRef"],"mappings":";;;;;AAyCa,MAAAA,IAAc,CAAC,EAAE,UAAAC,GAAU,YAAAC,IAAa,KAAK,MAAAC,GAAM,cAAAC,QAEvD,gBAAAC,EAAAC,EAAa,UAAb,EACG,UAAC,gBAAAD,EAAAC,EAAa,MAAb,EAAkB,eAAeJ,GAAY,MAAAC,GAAY,cAAAC,GACrD,UAAAH,GACL,EACJ,CAAA;AAGRD,EAAY,cAAc;AAEb,MAAAO,IAAiB,CAC1B,EAAE,UAAAN,GAAU,gBAAgBO,IAAa,4BACzCC,MAGI,gBAAAJ,EAACC,EAAa,SAAb,EAAqB,gBAAcE,GAAY,SAAO,IAAC,KAAAC,GACnD,UAAAR,EACL,CAAA;AAGRM,EAAe,cAAc;AAEtB,MAAMG,IAAiB,CAC1B;AAAA,EACI,UAAAT;AAAA,EACA,WAAAU;AAAA,EACA,UAAAC;AAAA,EACA,gBAAgBJ,IAAa;AAAA,EAC7B,GAAGK;AACP,GACAJ,MAGI,gBAAAJ,EAACC,EAAa,QAAb,EACG,UAAA,gBAAAQ;AAAA,EAACR,EAAa;AAAA,EAAb;AAAA,IACG,gBAAcE;AAAA,IACd,WAAWO;AAAA,MACPC,EAAqB;AAAA,QACjB,GAAGH;AAAA,MAAA,CACN;AAAA,MACDF;AAAA,IACJ;AAAA,IACA,OAAO,EAAE,UAAAC,EAAS;AAAA,IAClB,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,KAAAH;AAAA,IACC,GAAGI;AAAA,IAEH,UAAA;AAAA,MAAAZ;AAAA,MAEA,gBAAAI,EAAAC,EAAa,OAAb,EAAmB,SAAO,IACvB,UAAC,gBAAAD,EAAA,OAAA,EAAI,eAAY,QAAO,WAAWY,EAAA,CAAoB,EAC3D,CAAA;AAAA,IAAA;AAAA,EAAA;AAER,EAAA,CAAA;AAGRP,EAAe,cAAc;AAEtB,MAAMQ,IAAU;AAAA,EACnB,MAAMlB;AAAA,EACN,SAASmB,EAAmDZ,CAAc;AAAA,EAC1E,SAASY,EAAgDT,CAAc;AAC3E;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FOCUS_OUTLINE as t } from "./fondue-
|
|
1
|
+
import { FOCUS_OUTLINE as t } from "./fondue-components37.js";
|
|
2
2
|
import { sv as e } from "./fondue-components15.js";
|
|
3
3
|
const o = e({
|
|
4
4
|
base: `tw-group tw-border tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium ${t}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FOCUS_OUTLINE as t } from "./fondue-
|
|
1
|
+
import { FOCUS_OUTLINE as t } from "./fondue-components37.js";
|
|
2
2
|
import { sv as e } from "./fondue-components15.js";
|
|
3
3
|
const s = e({
|
|
4
4
|
base: `tw-peer tw-relative tw-inline-flex tw-bg-base tw-text-white tw-shrink-0 tw-rounded tw-border tw-border-line-x-strong group-hover:tw-border-line-xx-strong hover:tw-border-line-xx-strong tw-transition-colors data-[state="checked"]:tw-border-transparent data-[state="indeterminate"]:tw-border-transparent disabled:tw-border-line-strong disabled:tw-bg-base disabled:tw-cursor-not-allowed data-[state="checked"]:disabled:tw-bg-box-disabled-strong ${t}`,
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useCallback as r, useLayoutEffect as n } from "react";
|
|
2
|
+
import { isElementVisible as i, setMaxHeightToAvailableSpace as o } from "./fondue-components23.js";
|
|
3
|
+
function u(t) {
|
|
4
|
+
const e = r(() => {
|
|
5
|
+
requestAnimationFrame(() => {
|
|
6
|
+
t.current && i(t.current) && o(t.current);
|
|
7
|
+
});
|
|
8
|
+
}, [t]);
|
|
9
|
+
return n(() => (e(), window.addEventListener("resize", e), () => {
|
|
10
|
+
window.removeEventListener("resize", e);
|
|
11
|
+
}), [e]), {
|
|
12
|
+
setMaxHeight: e
|
|
13
|
+
};
|
|
14
|
+
}
|
|
10
15
|
export {
|
|
11
|
-
|
|
12
|
-
u as default,
|
|
13
|
-
_ as group,
|
|
14
|
-
e as item,
|
|
15
|
-
r as slot,
|
|
16
|
-
n as subContent,
|
|
17
|
-
s as subMenuIndicator,
|
|
18
|
-
o as subTrigger
|
|
16
|
+
u as usePreventDropdownOverflow
|
|
19
17
|
};
|
|
20
18
|
//# sourceMappingURL=fondue-components22.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components22.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components22.js","sources":["../src/hooks/usePreventDropdownOverflow.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type RefObject, useCallback, useLayoutEffect } from 'react';\n\nimport { isElementVisible, setMaxHeightToAvailableSpace } from '#/utilities/domUtilities';\n\n/**\n * Custom hook to dynamically adjust the maximum height of an HTMLElement\n * based on the window's resize events. This function provides an object\n * containing the `setMaxHeight` method to manually trigger\n * the maximum height adjustment if needed.\n *\n * ! Note: Components utilizing this hook should have tests in place to verify\n * ! that in each scenario, the height is correctly adjusted accodrding to the\n * ! requirements of the component and the viewport.\n *\n * @param {RefObject<HTMLElement | null>} ref - A reference to the HTMLElement.\n * @returns {Object} An object containing `setMaxHeight` method.\n */\nexport function usePreventDropdownOverflow(ref: RefObject<HTMLElement | null>) {\n const setMaxHeight = useCallback(() => {\n requestAnimationFrame(() => {\n if (ref.current && isElementVisible(ref.current)) {\n setMaxHeightToAvailableSpace(ref.current);\n }\n });\n }, [ref]);\n\n useLayoutEffect(() => {\n setMaxHeight();\n window.addEventListener('resize', setMaxHeight);\n return () => {\n window.removeEventListener('resize', setMaxHeight);\n };\n }, [setMaxHeight]);\n\n return {\n setMaxHeight,\n };\n}\n"],"names":["usePreventDropdownOverflow","ref","setMaxHeight","useCallback","isElementVisible","setMaxHeightToAvailableSpace","useLayoutEffect"],"mappings":";;AAmBO,SAASA,EAA2BC,GAAoC;AACrE,QAAAC,IAAeC,EAAY,MAAM;AACnC,0BAAsB,MAAM;AACxB,MAAIF,EAAI,WAAWG,EAAiBH,EAAI,OAAO,KAC3CI,EAA6BJ,EAAI,OAAO;AAAA,IAC5C,CACH;AAAA,EAAA,GACF,CAACA,CAAG,CAAC;AAER,SAAAK,EAAgB,OACCJ,KACN,OAAA,iBAAiB,UAAUA,CAAY,GACvC,MAAM;AACF,WAAA,oBAAoB,UAAUA,CAAY;AAAA,EAAA,IAEtD,CAACA,CAAY,CAAC,GAEV;AAAA,IACH,cAAAA;AAAA,EAAA;AAER;"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const c = 8;
|
|
2
|
+
function h(n) {
|
|
3
|
+
if (!window)
|
|
4
|
+
throw new Error("Window object not found, this method should be used in a browser environment");
|
|
5
|
+
n.style.maxHeight = "";
|
|
6
|
+
const { top: t, bottom: i } = n.getBoundingClientRect();
|
|
7
|
+
t - 8 < 0 ? n.style.maxHeight = `${i - 8}px` : i + 8 > window.innerHeight && (n.style.maxHeight = `${window.innerHeight - t - 8}px`);
|
|
8
|
+
}
|
|
9
|
+
function r(n) {
|
|
10
|
+
const t = n.getBoundingClientRect(), i = t.width > 0 && t.height > 0, e = window.getComputedStyle(n), o = e.display !== "none" && e.visibility !== "hidden" && parseFloat(e.opacity) !== 0, s = t.top < window.innerHeight && t.left < window.innerWidth && t.bottom > 0 && t.right > 0;
|
|
11
|
+
return i && o && s;
|
|
12
|
+
}
|
|
13
|
+
function H(n, t) {
|
|
14
|
+
t && (typeof t == "function" ? t(n.current) : t && "current" in t && (t.current = n.current));
|
|
15
|
+
}
|
|
14
16
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
c as MAX_HEIGHT_MARGIN,
|
|
18
|
+
r as isElementVisible,
|
|
19
|
+
h as setMaxHeightToAvailableSpace,
|
|
20
|
+
H as syncRefs
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=fondue-components23.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components23.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components23.js","sources":["../src/utilities/domUtilities.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ForwardedRef, type RefObject } from 'react';\n\nexport const MAX_HEIGHT_MARGIN = 8;\n\n/**\n * Sets the maximum height for a dialog element based on its position on the viewport.\n * The function calculates the space below the dialog up to the bottom of the viewport window,\n * subtracting a default margin, and sets this value as the max-height style of the dialog.\n *\n * @param {HTMLElement} dialog - The dialog element whose maximum height is to be set.\n *\n * @example\n * // Suppose you have a dialog element with id 'my-dialog'.\n * const dialogElement = myDialogRef.current || document.getElementById('my-dialog');\n * // Setting its max height relative to its current position and the viewport's dimensions.\n * setMaxHeightToAvailableSpace(dialogElement);\n */\nexport function setMaxHeightToAvailableSpace(dialog: HTMLElement) {\n if (!window) {\n throw new Error('Window object not found, this method should be used in a browser environment');\n }\n\n dialog.style.maxHeight = '';\n\n const { top, bottom } = dialog.getBoundingClientRect();\n if (top - MAX_HEIGHT_MARGIN < 0) {\n // if the dialog is overflowing to the top\n dialog.style.maxHeight = `${bottom - MAX_HEIGHT_MARGIN}px`;\n } else if (bottom + MAX_HEIGHT_MARGIN > window.innerHeight) {\n // if the dialog is overflowing to the bottom\n dialog.style.maxHeight = `${window.innerHeight - top - MAX_HEIGHT_MARGIN}px`;\n }\n}\n\n/**\n * Checks if a specified HTML element is visible within the viewport.\n * Visibility is determined by several factors:\n * - The element must have non-zero dimensions.\n * - The element's computed style must not be `display: none`, `visibility: hidden`, or `opacity: 0`.\n * - The element must be within the bounds of the current viewport.\n *\n * @param {HTMLElement} element - The HTML element to check for visibility.\n * @returns {boolean} Returns true if the element is visible according to the criteria specified, otherwise returns false.\n */\nexport function isElementVisible(element: HTMLElement) {\n const rect = element.getBoundingClientRect();\n const hasSize = rect.width > 0 && rect.height > 0;\n\n const style = window.getComputedStyle(element);\n const isVisibleStyle = style.display !== 'none' && style.visibility !== 'hidden' && parseFloat(style.opacity) !== 0;\n\n // Check if the element is within the viewport\n const isInViewport =\n rect.top < window.innerHeight && rect.left < window.innerWidth && rect.bottom > 0 && rect.right > 0;\n\n return hasSize && isVisibleStyle && isInViewport;\n}\n\n/**\n * Assigns a local DOM ref to a forwarded ref.\n *\n * @param {RefObject<HTMLDivElement>} localRef - The local React reference to an HTMLDivElement.\n * @param {ForwardedRef<HTMLDivElement>} forwardedRef - The ref forwarded from a parent component.\n */\nexport function syncRefs(localRef: RefObject<HTMLDivElement>, forwardedRef: ForwardedRef<HTMLDivElement>) {\n if (!forwardedRef) {\n return;\n }\n\n if (typeof forwardedRef === 'function') {\n forwardedRef(localRef.current);\n } else if (forwardedRef && 'current' in forwardedRef) {\n forwardedRef.current = localRef.current;\n }\n}\n"],"names":["MAX_HEIGHT_MARGIN","setMaxHeightToAvailableSpace","dialog","top","bottom","isElementVisible","element","rect","hasSize","style","isVisibleStyle","isInViewport","syncRefs","localRef","forwardedRef"],"mappings":"AAIO,MAAMA,IAAoB;AAe1B,SAASC,EAA6BC,GAAqB;AAC9D,MAAI,CAAC;AACK,UAAA,IAAI,MAAM,8EAA8E;AAGlG,EAAAA,EAAO,MAAM,YAAY;AAEzB,QAAM,EAAE,KAAAC,GAAK,QAAAC,EAAO,IAAIF,EAAO,sBAAsB;AACjD,EAAAC,IAAM,IAAoB,IAE1BD,EAAO,MAAM,YAAY,GAAGE,IAAS,CAAiB,OAC/CA,IAAS,IAAoB,OAAO,gBAE3CF,EAAO,MAAM,YAAY,GAAG,OAAO,cAAcC,IAAM,CAAiB;AAEhF;AAYO,SAASE,EAAiBC,GAAsB;AAC7C,QAAAC,IAAOD,EAAQ,yBACfE,IAAUD,EAAK,QAAQ,KAAKA,EAAK,SAAS,GAE1CE,IAAQ,OAAO,iBAAiBH,CAAO,GACvCI,IAAiBD,EAAM,YAAY,UAAUA,EAAM,eAAe,YAAY,WAAWA,EAAM,OAAO,MAAM,GAG5GE,IACFJ,EAAK,MAAM,OAAO,eAAeA,EAAK,OAAO,OAAO,cAAcA,EAAK,SAAS,KAAKA,EAAK,QAAQ;AAEtG,SAAOC,KAAWE,KAAkBC;AACxC;AAQgB,SAAAC,EAASC,GAAqCC,GAA4C;AACtG,EAAKA,MAID,OAAOA,KAAiB,aACxBA,EAAaD,EAAS,OAAO,IACtBC,KAAgB,aAAaA,MACpCA,EAAa,UAAUD,EAAS;AAExC;"}
|
|
@@ -1,38 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
medium: "tw-h-2",
|
|
11
|
-
large: "tw-h-3",
|
|
12
|
-
"x-large": "tw-h-4"
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
default: "tw-bg-box-selected",
|
|
16
|
-
positive: "tw-bg-box-positive",
|
|
17
|
-
negative: "tw-bg-box-negative"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}), a = t({
|
|
21
|
-
base: "tw-h-full tw-w-full",
|
|
22
|
-
variants: {
|
|
23
|
-
variant: {
|
|
24
|
-
default: "tw-bg-text-interactive",
|
|
25
|
-
positive: "tw-bg-text-positive",
|
|
26
|
-
negative: "tw-bg-text-negative"
|
|
27
|
-
},
|
|
28
|
-
indeterminateState: {
|
|
29
|
-
true: "tw-animate-loading-bar-infinite tw-origin-left-right",
|
|
30
|
-
false: "tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
1
|
+
const t = "_content_5bz3o_4", o = "_subContent_5bz3o_5", n = "_item_5bz3o_15", s = "_subTrigger_5bz3o_16", _ = "_subMenuIndicator_5bz3o_52", e = "_group_5bz3o_58", b = "_slot_5bz3o_65", u = {
|
|
2
|
+
content: t,
|
|
3
|
+
subContent: o,
|
|
4
|
+
item: n,
|
|
5
|
+
subTrigger: s,
|
|
6
|
+
subMenuIndicator: _,
|
|
7
|
+
group: e,
|
|
8
|
+
slot: b
|
|
9
|
+
};
|
|
34
10
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
t as content,
|
|
12
|
+
u as default,
|
|
13
|
+
e as group,
|
|
14
|
+
n as item,
|
|
15
|
+
b as slot,
|
|
16
|
+
o as subContent,
|
|
17
|
+
_ as subMenuIndicator,
|
|
18
|
+
s as subTrigger
|
|
37
19
|
};
|
|
38
20
|
//# sourceMappingURL=fondue-components24.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components24.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components24.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { sv as t } from "./fondue-components15.js";
|
|
2
|
+
const a = t({
|
|
3
|
+
base: 'tw-block tw-bg-base tw-shadow-mid tw-border tw-border-line tw-w-full sm:tw-w-fit sm:tw-max-w-[--flyout-max-width] tw-group tw-mt-4 sm:tw-mt-0 [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:tw-p-2 [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:tw-w-screen [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:!tw-translate-x-0 [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:!tw-translate-y-0 before:tw-fixed tw-content-[""] before:tw-top-0 before:tw-left-0 before:tw-h-screen before:tw-w-screen before:tw-bg-black before:tw-opacity-30 before:tw-z-[-1] before:tw-pointer-events-none sm:before:tw-hidden',
|
|
4
|
+
variants: {
|
|
5
|
+
rounded: {
|
|
6
|
+
true: "tw-rounded",
|
|
7
|
+
false: ""
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
rounded: !0
|
|
6
12
|
}
|
|
7
|
-
})
|
|
8
|
-
const [o, c] = b({ defaultProp: n, onChange: s }), t = e !== void 0, i = t ? e : o, r = f(() => s, [s]), a = d(
|
|
9
|
-
(l) => {
|
|
10
|
-
if (t) {
|
|
11
|
-
const u = typeof l == "function" ? l(e) : l;
|
|
12
|
-
u !== e && r(u);
|
|
13
|
-
} else
|
|
14
|
-
c(l);
|
|
15
|
-
},
|
|
16
|
-
[t, e, c, r]
|
|
17
|
-
);
|
|
18
|
-
return [i, a];
|
|
19
|
-
}, b = ({ defaultProp: e, onChange: n }) => {
|
|
20
|
-
const s = v(e), [o] = s, c = S(o), t = f(() => n, [n]);
|
|
21
|
-
return m(() => {
|
|
22
|
-
c.current !== o && (t == null || t(o), c.current = o);
|
|
23
|
-
}, [o, c, t]), s;
|
|
24
|
-
};
|
|
13
|
+
}), e = "tw-flex tw-justify-between tw-items-center tw-border-b tw-border-line tw-font-medium group-data-[flyout-spacing=compact]:tw-p-4 group-data-[flyout-spacing=comfortable]:tw-p-6 group-data-[flyout-spacing=spacious]:tw-p-10 ", r = "tw-flex tw-justify-end tw-gap-2 tw-border-t tw-border-line tw-font-medium group-data-[flyout-spacing=compact]:tw-p-4 group-data-[flyout-spacing=comfortable]:tw-p-6 group-data-[flyout-spacing=spacious]:tw-p-10 ", p = "tw-flex tw-flex-col tw-gap-4 group-data-[flyout-spacing=compact]:tw-px-4 group-data-[flyout-spacing=compact]:tw-py-2 group-data-[flyout-spacing=comfortable]:tw-px-6 group-data-[flyout-spacing=comfortable]:tw-py-4 group-data-[flyout-spacing=spacious]:tw-px-10 group-data-[flyout-spacing=spacious]:tw-py-6 ";
|
|
25
14
|
export {
|
|
26
|
-
|
|
15
|
+
p as flyoutBodyStyles,
|
|
16
|
+
a as flyoutContentStyles,
|
|
17
|
+
r as flyoutFooterStyles,
|
|
18
|
+
e as flyoutHeaderStyles
|
|
27
19
|
};
|
|
28
20
|
//# sourceMappingURL=fondue-components25.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components25.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components25.js","sources":["../src/components/Flyout/styles/flyoutStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const flyoutContentStyles = sv({\n base:\n 'tw-block tw-bg-base tw-shadow-mid tw-border tw-border-line tw-w-full sm:tw-w-fit sm:tw-max-w-[--flyout-max-width] tw-group tw-mt-4 sm:tw-mt-0 ' +\n // Mobile view flyout -> dialog responsiveness\n '[body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:tw-p-2 [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:tw-w-screen [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:!tw-translate-x-0 [body>[data-radix-popper-content-wrapper]:has(&)]:max-sm:!tw-translate-y-0 ' +\n // Responsive dialog background element\n 'before:tw-fixed tw-content-[\"\"] before:tw-top-0 before:tw-left-0 before:tw-h-screen before:tw-w-screen before:tw-bg-black before:tw-opacity-30 before:tw-z-[-1] before:tw-pointer-events-none sm:before:tw-hidden',\n variants: {\n rounded: {\n true: 'tw-rounded',\n false: '',\n },\n },\n defaultVariants: {\n rounded: true,\n },\n});\n\nexport const flyoutHeaderStyles =\n 'tw-flex tw-justify-between tw-items-center tw-border-b tw-border-line tw-font-medium ' +\n 'group-data-[flyout-spacing=compact]:tw-p-4 ' +\n 'group-data-[flyout-spacing=comfortable]:tw-p-6 ' +\n 'group-data-[flyout-spacing=spacious]:tw-p-10 ';\n\nexport const flyoutFooterStyles =\n 'tw-flex tw-justify-end tw-gap-2 tw-border-t tw-border-line tw-font-medium ' +\n 'group-data-[flyout-spacing=compact]:tw-p-4 ' +\n 'group-data-[flyout-spacing=comfortable]:tw-p-6 ' +\n 'group-data-[flyout-spacing=spacious]:tw-p-10 ';\n\nexport const flyoutBodyStyles =\n 'tw-flex tw-flex-col tw-gap-4 ' +\n 'group-data-[flyout-spacing=compact]:tw-px-4 group-data-[flyout-spacing=compact]:tw-py-2 ' +\n 'group-data-[flyout-spacing=comfortable]:tw-px-6 group-data-[flyout-spacing=comfortable]:tw-py-4 ' +\n 'group-data-[flyout-spacing=spacious]:tw-px-10 group-data-[flyout-spacing=spacious]:tw-py-6 ';\n"],"names":["flyoutContentStyles","sv","flyoutHeaderStyles","flyoutFooterStyles","flyoutBodyStyles"],"mappings":";AAIO,MAAMA,IAAsBC,EAAG;AAAA,EAClC,MACI;AAAA,EAKJ,UAAU;AAAA,IACN,SAAS;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,EACJ;AAAA,EACA,iBAAiB;AAAA,IACb,SAAS;AAAA,EACb;AACJ,CAAC,GAEYC,IACT,gOAKSC,IACT,qNAKSC,IACT;"}
|
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { sv as t } from "./fondue-components15.js";
|
|
2
|
+
const i = t({
|
|
3
|
+
base: "tw-relative tw-w-full tw-overflow-hidden",
|
|
4
|
+
variants: {
|
|
5
|
+
rounded: {
|
|
6
|
+
true: "tw-rounded"
|
|
7
|
+
},
|
|
8
|
+
size: {
|
|
9
|
+
small: "tw-h-1",
|
|
10
|
+
medium: "tw-h-2",
|
|
11
|
+
large: "tw-h-3",
|
|
12
|
+
"x-large": "tw-h-4"
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
default: "tw-bg-box-selected",
|
|
16
|
+
positive: "tw-bg-box-positive",
|
|
17
|
+
negative: "tw-bg-box-negative"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}), a = t({
|
|
21
|
+
base: "tw-h-full tw-w-full",
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
default: "tw-bg-text-interactive",
|
|
25
|
+
positive: "tw-bg-text-positive",
|
|
26
|
+
negative: "tw-bg-text-negative"
|
|
27
|
+
},
|
|
28
|
+
indeterminateState: {
|
|
29
|
+
true: "tw-animate-loading-bar-infinite tw-origin-left-right",
|
|
30
|
+
false: "tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
3
34
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
s as segmentedControlItemLabelInactiveStyles,
|
|
7
|
-
r as segmentedControlItemLabelStyles,
|
|
8
|
-
w as segmentedControlItemSeparatorStyles,
|
|
9
|
-
n as segmentedControlItemStyles,
|
|
10
|
-
a as segmentedControlRootStyles
|
|
35
|
+
i as loadingBarContainerStyles,
|
|
36
|
+
a as loadingBarStyles
|
|
11
37
|
};
|
|
12
38
|
//# sourceMappingURL=fondue-components26.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components26.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components26.js","sources":["../src/components/LoadingBar/styles/loadingBarStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const loadingBarContainerStyles = sv({\n base: 'tw-relative tw-w-full tw-overflow-hidden',\n variants: {\n rounded: {\n true: 'tw-rounded',\n },\n size: {\n small: 'tw-h-1',\n medium: 'tw-h-2',\n large: 'tw-h-3',\n 'x-large': 'tw-h-4',\n },\n variant: {\n default: 'tw-bg-box-selected',\n positive: 'tw-bg-box-positive',\n negative: 'tw-bg-box-negative',\n },\n },\n});\n\nexport const loadingBarStyles = sv({\n base: 'tw-h-full tw-w-full',\n variants: {\n variant: {\n default: 'tw-bg-text-interactive',\n positive: 'tw-bg-text-positive',\n negative: 'tw-bg-text-negative',\n },\n indeterminateState: {\n true: 'tw-animate-loading-bar-infinite tw-origin-left-right',\n false: 'tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]',\n },\n },\n});\n"],"names":["loadingBarContainerStyles","sv","loadingBarStyles"],"mappings":";AAIO,MAAMA,IAA4BC,EAAG;AAAA,EACxC,MAAM;AAAA,EACN,UAAU;AAAA,IACN,SAAS;AAAA,MACL,MAAM;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACF,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,WAAW;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,IACd;AAAA,EACJ;AACJ,CAAC,GAEYC,IAAmBD,EAAG;AAAA,EAC/B,MAAM;AAAA,EACN,UAAU;AAAA,IACN,SAAS;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,IACd;AAAA,IACA,oBAAoB;AAAA,MAChB,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,EACJ;AACJ,CAAC;"}
|
|
@@ -1,113 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
placeholder: I = "",
|
|
16
|
-
disabled: i,
|
|
17
|
-
"aria-label": C,
|
|
18
|
-
"data-test-id": w = "fondue-select-combobox"
|
|
19
|
-
}, S) => {
|
|
20
|
-
const { inputSlots: R, menuSlots: B, items: a, filterText: F, clearButton: u, getItemByValue: c, setFilterText: P } = J(h), v = c(x), M = c(b), {
|
|
21
|
-
getInputProps: n,
|
|
22
|
-
getToggleButtonProps: N,
|
|
23
|
-
getMenuProps: T,
|
|
24
|
-
getItemProps: y,
|
|
25
|
-
reset: D,
|
|
26
|
-
isOpen: V,
|
|
27
|
-
highlightedIndex: j,
|
|
28
|
-
inputValue: s
|
|
29
|
-
} = A({
|
|
30
|
-
items: a,
|
|
31
|
-
onSelectedItemChange: ({ selectedItem: e }) => {
|
|
32
|
-
l && l(e.value);
|
|
1
|
+
import { useMemo as f, useCallback as d, useState as v, useRef as S, useEffect as m } from "react";
|
|
2
|
+
const U = ({
|
|
3
|
+
prop: e,
|
|
4
|
+
defaultProp: n,
|
|
5
|
+
onChange: s = () => {
|
|
6
|
+
}
|
|
7
|
+
}) => {
|
|
8
|
+
const [o, c] = b({ defaultProp: n, onChange: s }), t = e !== void 0, i = t ? e : o, r = f(() => s, [s]), a = d(
|
|
9
|
+
(l) => {
|
|
10
|
+
if (t) {
|
|
11
|
+
const u = typeof l == "function" ? l(e) : l;
|
|
12
|
+
u !== e && r(u);
|
|
13
|
+
} else
|
|
14
|
+
c(l);
|
|
33
15
|
},
|
|
34
|
-
|
|
35
|
-
onInputValueChange: ({ inputValue: e }) => {
|
|
36
|
-
P(e);
|
|
37
|
-
},
|
|
38
|
-
defaultSelectedItem: v,
|
|
39
|
-
defaultHighlightedIndex: 0,
|
|
40
|
-
itemToString: (e) => e ? e.label : ""
|
|
41
|
-
}), o = O(!1), k = q(
|
|
42
|
-
() => s && !a.find((e) => e.label.toLowerCase().includes(s.toLowerCase())),
|
|
43
|
-
[s, a]
|
|
16
|
+
[t, e, c, r]
|
|
44
17
|
);
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
o.current = !0, e.currentTarget.dataset.showFocusRing = "false";
|
|
52
|
-
},
|
|
53
|
-
placeholder: I,
|
|
54
|
-
...n({
|
|
55
|
-
"aria-label": C
|
|
56
|
-
}),
|
|
57
|
-
onFocus: (e) => {
|
|
58
|
-
o.current || (e.target.dataset.showFocusRing = "true");
|
|
59
|
-
},
|
|
60
|
-
onBlur: (e) => {
|
|
61
|
-
var m, d;
|
|
62
|
-
e.target.dataset.showFocusRing = "false", o.current = !1, n().onBlur && ((d = (m = n()).onBlur) == null || d.call(m, e));
|
|
63
|
-
},
|
|
64
|
-
className: r.input,
|
|
65
|
-
disabled: i,
|
|
66
|
-
"data-test-id": w
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
R,
|
|
70
|
-
u && /* @__PURE__ */ t(
|
|
71
|
-
z,
|
|
72
|
-
{
|
|
73
|
-
onClick: (e) => {
|
|
74
|
-
e.stopPropagation(), D();
|
|
75
|
-
},
|
|
76
|
-
className: r.clear,
|
|
77
|
-
role: "button",
|
|
78
|
-
children: u
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ t(
|
|
82
|
-
"button",
|
|
83
|
-
{
|
|
84
|
-
type: "button",
|
|
85
|
-
onMouseDown: () => {
|
|
86
|
-
o.current = !0;
|
|
87
|
-
},
|
|
88
|
-
...N(),
|
|
89
|
-
"aria-label": "toggle menu",
|
|
90
|
-
disabled: i,
|
|
91
|
-
children: /* @__PURE__ */ t(L, { size: 16, className: r.caret })
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
] }) }),
|
|
95
|
-
/* @__PURE__ */ t(
|
|
96
|
-
G,
|
|
97
|
-
{
|
|
98
|
-
highlightedIndex: j,
|
|
99
|
-
filterText: F,
|
|
100
|
-
getMenuProps: T,
|
|
101
|
-
getItemProps: y,
|
|
102
|
-
children: B
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
] });
|
|
18
|
+
return [i, a];
|
|
19
|
+
}, b = ({ defaultProp: e, onChange: n }) => {
|
|
20
|
+
const s = v(e), [o] = s, c = S(o), t = f(() => n, [n]);
|
|
21
|
+
return m(() => {
|
|
22
|
+
c.current !== o && (t == null || t(o), c.current = o);
|
|
23
|
+
}, [o, c, t]), s;
|
|
106
24
|
};
|
|
107
|
-
g.displayName = "Select.Combobox";
|
|
108
|
-
const $ = H(g);
|
|
109
25
|
export {
|
|
110
|
-
|
|
111
|
-
g as SelectCombobox
|
|
26
|
+
U as useControllableState
|
|
112
27
|
};
|
|
113
28
|
//# sourceMappingURL=fondue-components27.js.map
|