laif-ds 0.2.21 → 0.2.23
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/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/textarea.js +18 -15
- package/dist/index.d.ts +6 -7
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { useFloating as fe, offset as me, shift as he, flip as
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { useFloating as fe, offset as me, shift as he, flip as ue, size as ge, arrow as we, hide as Pe, limitShift as xe } from "../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
4
4
|
import { Root as ye } from "../../react-arrow/dist/index.js";
|
|
5
5
|
import { useComposedRefs as I } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { createContextScope as Ae } from "../../react-context/dist/index.js";
|
|
@@ -10,38 +10,39 @@ import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.j
|
|
|
10
10
|
import { useSize as Ce } from "../../react-use-size/dist/index.js";
|
|
11
11
|
import { jsx as f } from "react/jsx-runtime";
|
|
12
12
|
import { autoUpdate as Se } from "../../../@floating-ui/dom/dist/floating-ui.dom.js";
|
|
13
|
-
var
|
|
14
|
-
const { __scopePopper:
|
|
15
|
-
return /* @__PURE__ */ f(
|
|
13
|
+
var R = "Popper", [M, ke] = Ae(R), [Re, X] = M(R), D = (e) => {
|
|
14
|
+
const { __scopePopper: i, children: n } = e, [s, a] = p.useState(null);
|
|
15
|
+
return /* @__PURE__ */ f(Re, { scope: i, anchor: s, onAnchorChange: a, children: n });
|
|
16
16
|
};
|
|
17
|
-
D.displayName =
|
|
18
|
-
var F = "PopperAnchor", k =
|
|
19
|
-
(e,
|
|
20
|
-
const { __scopePopper:
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
D.displayName = R;
|
|
18
|
+
var F = "PopperAnchor", k = p.forwardRef(
|
|
19
|
+
(e, i) => {
|
|
20
|
+
const { __scopePopper: n, virtualRef: s, ...a } = e, t = X(F, n), r = p.useRef(null), u = I(i, r), o = p.useRef(null);
|
|
21
|
+
return p.useEffect(() => {
|
|
22
|
+
const c = o.current;
|
|
23
|
+
o.current = s?.current || r.current, c !== o.current && t.onAnchorChange(o.current);
|
|
24
|
+
}), s ? null : /* @__PURE__ */ f(Y.div, { ...a, ref: u });
|
|
24
25
|
}
|
|
25
26
|
);
|
|
26
27
|
k.displayName = F;
|
|
27
|
-
var
|
|
28
|
-
(e,
|
|
28
|
+
var b = "PopperContent", [be, Oe] = M(b), B = p.forwardRef(
|
|
29
|
+
(e, i) => {
|
|
29
30
|
const {
|
|
30
|
-
__scopePopper:
|
|
31
|
-
side:
|
|
32
|
-
sideOffset:
|
|
31
|
+
__scopePopper: n,
|
|
32
|
+
side: s = "bottom",
|
|
33
|
+
sideOffset: a = 0,
|
|
33
34
|
align: t = "center",
|
|
34
35
|
alignOffset: r = 0,
|
|
35
|
-
arrowPadding:
|
|
36
|
-
avoidCollisions:
|
|
36
|
+
arrowPadding: u = 0,
|
|
37
|
+
avoidCollisions: o = !0,
|
|
37
38
|
collisionBoundary: c = [],
|
|
38
|
-
collisionPadding:
|
|
39
|
+
collisionPadding: g = 0,
|
|
39
40
|
sticky: m = "partial",
|
|
40
41
|
hideWhenDetached: P = !1,
|
|
41
42
|
updatePositionStrategy: x = "optimized",
|
|
42
43
|
onPlaced: d,
|
|
43
44
|
...l
|
|
44
|
-
} = e, Z = X(
|
|
45
|
+
} = e, Z = X(b, n), [C, U] = p.useState(null), q = I(i, (w) => U(w)), [S, G] = p.useState(null), O = Ce(S), J = O?.width ?? 0, E = O?.height ?? 0, K = s + (t !== "center" ? "-" + t : ""), Q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
|
|
45
46
|
padding: Q,
|
|
46
47
|
boundary: N.filter(Ne),
|
|
47
48
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -57,22 +58,22 @@ var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
|
57
58
|
reference: Z.anchor
|
|
58
59
|
},
|
|
59
60
|
middleware: [
|
|
60
|
-
me({ mainAxis:
|
|
61
|
-
|
|
61
|
+
me({ mainAxis: a + E, alignmentAxis: r }),
|
|
62
|
+
o && he({
|
|
62
63
|
mainAxis: !0,
|
|
63
64
|
crossAxis: !1,
|
|
64
65
|
limiter: m === "partial" ? xe() : void 0,
|
|
65
66
|
...y
|
|
66
67
|
}),
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
o && ue({ ...y }),
|
|
69
|
+
ge({
|
|
69
70
|
...y,
|
|
70
|
-
apply: ({ elements: w, rects: W, availableWidth:
|
|
71
|
+
apply: ({ elements: w, rects: W, availableWidth: ce, availableHeight: pe }) => {
|
|
71
72
|
const { width: le, height: de } = W.reference, v = w.floating.style;
|
|
72
|
-
v.setProperty("--radix-popper-available-width", `${
|
|
73
|
+
v.setProperty("--radix-popper-available-width", `${ce}px`), v.setProperty("--radix-popper-available-height", `${pe}px`), v.setProperty("--radix-popper-anchor-width", `${le}px`), v.setProperty("--radix-popper-anchor-height", `${de}px`);
|
|
73
74
|
}
|
|
74
75
|
}),
|
|
75
|
-
S && we({ element: S, padding:
|
|
76
|
+
S && we({ element: S, padding: u }),
|
|
76
77
|
_e({ arrowWidth: J, arrowHeight: E }),
|
|
77
78
|
P && Pe({ strategy: "referenceHidden", ...y })
|
|
78
79
|
]
|
|
@@ -80,7 +81,7 @@ var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
|
80
81
|
z(() => {
|
|
81
82
|
A && H?.();
|
|
82
83
|
}, [A, H]);
|
|
83
|
-
const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] =
|
|
84
|
+
const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = p.useState();
|
|
84
85
|
return z(() => {
|
|
85
86
|
C && se(window.getComputedStyle(C).zIndex);
|
|
86
87
|
}, [C]), /* @__PURE__ */ f(
|
|
@@ -108,9 +109,9 @@ var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
|
108
109
|
},
|
|
109
110
|
dir: e.dir,
|
|
110
111
|
children: /* @__PURE__ */ f(
|
|
111
|
-
|
|
112
|
+
be,
|
|
112
113
|
{
|
|
113
|
-
scope:
|
|
114
|
+
scope: n,
|
|
114
115
|
placedSide: $,
|
|
115
116
|
onArrowChange: G,
|
|
116
117
|
arrowX: oe,
|
|
@@ -137,14 +138,14 @@ var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
|
137
138
|
);
|
|
138
139
|
}
|
|
139
140
|
);
|
|
140
|
-
B.displayName =
|
|
141
|
+
B.displayName = b;
|
|
141
142
|
var T = "PopperArrow", Ee = {
|
|
142
143
|
top: "bottom",
|
|
143
144
|
right: "left",
|
|
144
145
|
bottom: "top",
|
|
145
146
|
left: "right"
|
|
146
|
-
}, j =
|
|
147
|
-
const { __scopePopper:
|
|
147
|
+
}, j = p.forwardRef(function(i, n) {
|
|
148
|
+
const { __scopePopper: s, ...a } = i, t = Oe(T, s), r = Ee[t.placedSide];
|
|
148
149
|
return (
|
|
149
150
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
150
151
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -175,10 +176,10 @@ var T = "PopperArrow", Ee = {
|
|
|
175
176
|
children: /* @__PURE__ */ f(
|
|
176
177
|
ye,
|
|
177
178
|
{
|
|
178
|
-
...
|
|
179
|
-
ref:
|
|
179
|
+
...a,
|
|
180
|
+
ref: n,
|
|
180
181
|
style: {
|
|
181
|
-
...
|
|
182
|
+
...a.style,
|
|
182
183
|
// ensures the element can be measured correctly (mostly for if SVG)
|
|
183
184
|
display: "block"
|
|
184
185
|
}
|
|
@@ -195,15 +196,15 @@ function Ne(e) {
|
|
|
195
196
|
var _e = (e) => ({
|
|
196
197
|
name: "transformOrigin",
|
|
197
198
|
options: e,
|
|
198
|
-
fn(
|
|
199
|
-
const { placement:
|
|
199
|
+
fn(i) {
|
|
200
|
+
const { placement: n, rects: s, middlewareData: a } = i, r = a.arrow?.centerOffset !== 0, u = r ? 0 : e.arrowWidth, o = r ? 0 : e.arrowHeight, [c, g] = L(n), m = { start: "0%", center: "50%", end: "100%" }[g], P = (a.arrow?.x ?? 0) + u / 2, x = (a.arrow?.y ?? 0) + o / 2;
|
|
200
201
|
let d = "", l = "";
|
|
201
|
-
return c === "bottom" ? (d = r ? m : `${P}px`, l = `${-
|
|
202
|
+
return c === "bottom" ? (d = r ? m : `${P}px`, l = `${-o}px`) : c === "top" ? (d = r ? m : `${P}px`, l = `${s.floating.height + o}px`) : c === "right" ? (d = `${-o}px`, l = r ? m : `${x}px`) : c === "left" && (d = `${s.floating.width + o}px`, l = r ? m : `${x}px`), { data: { x: d, y: l } };
|
|
202
203
|
}
|
|
203
204
|
});
|
|
204
205
|
function L(e) {
|
|
205
|
-
const [
|
|
206
|
-
return [
|
|
206
|
+
const [i, n = "center"] = e.split("-");
|
|
207
|
+
return [i, n];
|
|
207
208
|
}
|
|
208
209
|
var Be = D, Te = k, je = B, Le = j;
|
|
209
210
|
export {
|
|
@@ -37,7 +37,7 @@ function R(n) {
|
|
|
37
37
|
if (e) {
|
|
38
38
|
let o;
|
|
39
39
|
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
40
|
-
const g = l(r.current).includes(u.animationName);
|
|
40
|
+
const g = l(r.current).includes(CSS.escape(u.animationName));
|
|
41
41
|
if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
|
|
42
42
|
const y = e.style.animationFillMode;
|
|
43
43
|
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
@@ -493,10 +493,10 @@ function oe(e, t) {
|
|
|
493
493
|
var Pe = (e, t = () => {
|
|
494
494
|
}) => {
|
|
495
495
|
let r = { left: e.scrollLeft, top: e.scrollTop }, l = 0;
|
|
496
|
-
return function o() {
|
|
496
|
+
return (function o() {
|
|
497
497
|
const n = { left: e.scrollLeft, top: e.scrollTop }, i = r.left !== n.left, s = r.top !== n.top;
|
|
498
498
|
(i || s) && t(), r = n, l = window.requestAnimationFrame(o);
|
|
499
|
-
}(), () => window.cancelAnimationFrame(l);
|
|
499
|
+
})(), () => window.cancelAnimationFrame(l);
|
|
500
500
|
};
|
|
501
501
|
function Y(e, t) {
|
|
502
502
|
const r = C(e), l = c.useRef(0);
|
|
@@ -791,9 +791,9 @@ function nt(o) {
|
|
|
791
791
|
const s = gt(o), e = t.useRef(""), i = t.useRef(0), l = t.useCallback(
|
|
792
792
|
(n) => {
|
|
793
793
|
const r = e.current + n;
|
|
794
|
-
s(r), function c(f) {
|
|
794
|
+
s(r), (function c(f) {
|
|
795
795
|
e.current = f, window.clearTimeout(i.current), f !== "" && (i.current = window.setTimeout(() => c(""), 1e3));
|
|
796
|
-
}(r);
|
|
796
|
+
})(r);
|
|
797
797
|
},
|
|
798
798
|
[s]
|
|
799
799
|
), d = t.useCallback(() => {
|