laif-ds 0.2.20 → 0.2.22
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/index.js +5 -3
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/app-stepper.js +212 -0
- 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/stepper.js +387 -0
- package/dist/index.d.ts +55 -6
- package/dist/index.js +30 -28
- 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/react-dom/dist/floating-ui.react-dom.js +70 -69
- 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-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- 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-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- 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/cmdk/dist/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/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- 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/Events.js +1 -1
- 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/vaul/dist/index.js +1 -1
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- 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/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- 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
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as
|
|
3
|
-
import { autoUpdate as
|
|
4
|
-
import * as
|
|
5
|
-
import { useLayoutEffect as Y
|
|
6
|
-
import * as
|
|
7
|
-
var
|
|
2
|
+
import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as z } from "../../dom/dist/floating-ui.dom.js";
|
|
3
|
+
import { autoUpdate as pe, platform as ge } from "../../dom/dist/floating-ui.dom.js";
|
|
4
|
+
import * as o from "react";
|
|
5
|
+
import { useLayoutEffect as Y } from "react";
|
|
6
|
+
import * as Z from "react-dom";
|
|
7
|
+
var b = typeof document < "u", ee = function() {
|
|
8
|
+
}, w = b ? Y : ee;
|
|
8
9
|
function R(e, t) {
|
|
9
10
|
if (e === t)
|
|
10
11
|
return !0;
|
|
@@ -12,7 +13,7 @@ function R(e, t) {
|
|
|
12
13
|
return !1;
|
|
13
14
|
if (typeof e == "function" && e.toString() === t.toString())
|
|
14
15
|
return !0;
|
|
15
|
-
let n, r,
|
|
16
|
+
let n, r, i;
|
|
16
17
|
if (e && t && typeof e == "object") {
|
|
17
18
|
if (Array.isArray(e)) {
|
|
18
19
|
if (n = e.length, n !== t.length) return !1;
|
|
@@ -21,13 +22,13 @@ function R(e, t) {
|
|
|
21
22
|
return !1;
|
|
22
23
|
return !0;
|
|
23
24
|
}
|
|
24
|
-
if (
|
|
25
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
|
|
25
26
|
return !1;
|
|
26
27
|
for (r = n; r-- !== 0; )
|
|
27
|
-
if (!{}.hasOwnProperty.call(t,
|
|
28
|
+
if (!{}.hasOwnProperty.call(t, i[r]))
|
|
28
29
|
return !1;
|
|
29
30
|
for (r = n; r-- !== 0; ) {
|
|
30
|
-
const p =
|
|
31
|
+
const p = i[r];
|
|
31
32
|
if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
|
|
32
33
|
return !1;
|
|
33
34
|
}
|
|
@@ -38,72 +39,72 @@ function R(e, t) {
|
|
|
38
39
|
function A(e) {
|
|
39
40
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function L(e, t) {
|
|
42
43
|
const n = A(e);
|
|
43
44
|
return Math.round(t * n) / n;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
const t =
|
|
46
|
+
function k(e) {
|
|
47
|
+
const t = o.useRef(e);
|
|
47
48
|
return w(() => {
|
|
48
49
|
t.current = e;
|
|
49
50
|
}), t;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function oe(e) {
|
|
52
53
|
e === void 0 && (e = {});
|
|
53
54
|
const {
|
|
54
55
|
placement: t = "bottom",
|
|
55
56
|
strategy: n = "absolute",
|
|
56
57
|
middleware: r = [],
|
|
57
|
-
platform:
|
|
58
|
+
platform: i,
|
|
58
59
|
elements: {
|
|
59
60
|
reference: p,
|
|
60
61
|
floating: q
|
|
61
62
|
} = {},
|
|
62
|
-
transform:
|
|
63
|
-
whileElementsMounted:
|
|
63
|
+
transform: D = !0,
|
|
64
|
+
whileElementsMounted: E,
|
|
64
65
|
open: x
|
|
65
|
-
} = e, [
|
|
66
|
+
} = e, [s, C] = o.useState({
|
|
66
67
|
x: 0,
|
|
67
68
|
y: 0,
|
|
68
69
|
strategy: n,
|
|
69
70
|
placement: t,
|
|
70
71
|
middlewareData: {},
|
|
71
72
|
isPositioned: !1
|
|
72
|
-
}), [M, B] =
|
|
73
|
+
}), [M, B] = o.useState(r);
|
|
73
74
|
R(M, r) || B(r);
|
|
74
|
-
const [U, V] =
|
|
75
|
-
|
|
76
|
-
}, []),
|
|
77
|
-
|
|
78
|
-
}, []), u = p || U, l = q || W, a =
|
|
75
|
+
const [U, V] = o.useState(null), [W, G] = o.useState(null), O = o.useCallback((f) => {
|
|
76
|
+
f !== a.current && (a.current = f, V(f));
|
|
77
|
+
}, []), _ = o.useCallback((f) => {
|
|
78
|
+
f !== d.current && (d.current = f, G(f));
|
|
79
|
+
}, []), u = p || U, l = q || W, a = o.useRef(null), d = o.useRef(null), y = o.useRef(s), H = E != null, S = k(E), P = k(i), v = k(x), g = o.useCallback(() => {
|
|
79
80
|
if (!a.current || !d.current)
|
|
80
81
|
return;
|
|
81
|
-
const
|
|
82
|
+
const f = {
|
|
82
83
|
placement: t,
|
|
83
84
|
strategy: n,
|
|
84
85
|
middleware: M
|
|
85
86
|
};
|
|
86
|
-
P.current && (
|
|
87
|
+
P.current && (f.platform = P.current), I(a.current, d.current, f).then((h) => {
|
|
87
88
|
const m = {
|
|
88
89
|
...h,
|
|
89
90
|
// The floating element's position may be recomputed while it's closed
|
|
90
91
|
// but still mounted (such as when transitioning out). To ensure
|
|
91
92
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
92
93
|
// setting it to `true` when `open === false` (must be specified).
|
|
93
|
-
isPositioned:
|
|
94
|
+
isPositioned: v.current !== !1
|
|
94
95
|
};
|
|
95
|
-
$.current && !R(y.current, m) && (y.current = m,
|
|
96
|
-
|
|
96
|
+
$.current && !R(y.current, m) && (y.current = m, Z.flushSync(() => {
|
|
97
|
+
C(m);
|
|
97
98
|
}));
|
|
98
99
|
});
|
|
99
|
-
}, [M, t, n, P,
|
|
100
|
+
}, [M, t, n, P, v]);
|
|
100
101
|
w(() => {
|
|
101
|
-
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1,
|
|
102
|
-
...
|
|
102
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((f) => ({
|
|
103
|
+
...f,
|
|
103
104
|
isPositioned: !1
|
|
104
105
|
})));
|
|
105
106
|
}, [x]);
|
|
106
|
-
const $ =
|
|
107
|
+
const $ = o.useRef(!1);
|
|
107
108
|
w(() => ($.current = !0, () => {
|
|
108
109
|
$.current = !1;
|
|
109
110
|
}), []), w(() => {
|
|
@@ -113,25 +114,25 @@ function re(e) {
|
|
|
113
114
|
g();
|
|
114
115
|
}
|
|
115
116
|
}, [u, l, g, S, H]);
|
|
116
|
-
const
|
|
117
|
+
const F = o.useMemo(() => ({
|
|
117
118
|
reference: a,
|
|
118
119
|
floating: d,
|
|
119
|
-
setReference:
|
|
120
|
-
setFloating:
|
|
121
|
-
}), [
|
|
120
|
+
setReference: O,
|
|
121
|
+
setFloating: _
|
|
122
|
+
}), [O, _]), c = o.useMemo(() => ({
|
|
122
123
|
reference: u,
|
|
123
124
|
floating: l
|
|
124
|
-
}), [u, l]),
|
|
125
|
-
const
|
|
125
|
+
}), [u, l]), j = o.useMemo(() => {
|
|
126
|
+
const f = {
|
|
126
127
|
position: n,
|
|
127
128
|
left: 0,
|
|
128
129
|
top: 0
|
|
129
130
|
};
|
|
130
131
|
if (!c.floating)
|
|
131
|
-
return
|
|
132
|
-
const h =
|
|
133
|
-
return
|
|
134
|
-
...
|
|
132
|
+
return f;
|
|
133
|
+
const h = L(c.floating, s.x), m = L(c.floating, s.y);
|
|
134
|
+
return D ? {
|
|
135
|
+
...f,
|
|
135
136
|
transform: "translate(" + h + "px, " + m + "px)",
|
|
136
137
|
...A(c.floating) >= 1.5 && {
|
|
137
138
|
willChange: "transform"
|
|
@@ -141,16 +142,16 @@ function re(e) {
|
|
|
141
142
|
left: h,
|
|
142
143
|
top: m
|
|
143
144
|
};
|
|
144
|
-
}, [n,
|
|
145
|
-
return
|
|
146
|
-
...
|
|
145
|
+
}, [n, D, c.floating, s.x, s.y]);
|
|
146
|
+
return o.useMemo(() => ({
|
|
147
|
+
...s,
|
|
147
148
|
update: g,
|
|
148
|
-
refs:
|
|
149
|
+
refs: F,
|
|
149
150
|
elements: c,
|
|
150
|
-
floatingStyles:
|
|
151
|
-
}), [
|
|
151
|
+
floatingStyles: j
|
|
152
|
+
}), [s, g, F, c, j]);
|
|
152
153
|
}
|
|
153
|
-
const
|
|
154
|
+
const te = (e) => {
|
|
154
155
|
function t(n) {
|
|
155
156
|
return {}.hasOwnProperty.call(n, "current");
|
|
156
157
|
}
|
|
@@ -160,49 +161,49 @@ const ee = (e) => {
|
|
|
160
161
|
fn(n) {
|
|
161
162
|
const {
|
|
162
163
|
element: r,
|
|
163
|
-
padding:
|
|
164
|
+
padding: i
|
|
164
165
|
} = typeof e == "function" ? e(n) : e;
|
|
165
|
-
return r && t(r) ? r.current != null ?
|
|
166
|
+
return r && t(r) ? r.current != null ? z({
|
|
166
167
|
element: r.current,
|
|
167
|
-
padding:
|
|
168
|
-
}).fn(n) : {} : r ?
|
|
168
|
+
padding: i
|
|
169
|
+
}).fn(n) : {} : r ? z({
|
|
169
170
|
element: r,
|
|
170
|
-
padding:
|
|
171
|
+
padding: i
|
|
171
172
|
}).fn(n) : {};
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
175
|
}, fe = (e, t) => ({
|
|
175
176
|
...J(e),
|
|
176
177
|
options: [e, t]
|
|
177
|
-
}),
|
|
178
|
+
}), ie = (e, t) => ({
|
|
178
179
|
...K(e),
|
|
179
180
|
options: [e, t]
|
|
180
181
|
}), se = (e, t) => ({
|
|
181
182
|
...X(e),
|
|
182
183
|
options: [e, t]
|
|
183
|
-
}),
|
|
184
|
+
}), ue = (e, t) => ({
|
|
184
185
|
...N(e),
|
|
185
186
|
options: [e, t]
|
|
186
|
-
}),
|
|
187
|
+
}), le = (e, t) => ({
|
|
187
188
|
...Q(e),
|
|
188
189
|
options: [e, t]
|
|
189
|
-
}),
|
|
190
|
+
}), ce = (e, t) => ({
|
|
190
191
|
...T(e),
|
|
191
192
|
options: [e, t]
|
|
192
|
-
}),
|
|
193
|
-
...
|
|
193
|
+
}), ae = (e, t) => ({
|
|
194
|
+
...te(e),
|
|
194
195
|
options: [e, t]
|
|
195
196
|
});
|
|
196
197
|
export {
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
ae as arrow,
|
|
199
|
+
pe as autoUpdate,
|
|
199
200
|
I as computePosition,
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
ue as flip,
|
|
202
|
+
ce as hide,
|
|
202
203
|
se as limitShift,
|
|
203
204
|
fe as offset,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
ge as platform,
|
|
206
|
+
ie as shift,
|
|
207
|
+
le as size,
|
|
208
|
+
oe as useFloating
|
|
208
209
|
};
|
|
@@ -2,131 +2,136 @@
|
|
|
2
2
|
function c() {
|
|
3
3
|
return typeof window < "u";
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
return p(
|
|
5
|
+
function u(t) {
|
|
6
|
+
return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
7
7
|
}
|
|
8
|
-
function i(
|
|
9
|
-
var
|
|
10
|
-
return (
|
|
8
|
+
function i(t) {
|
|
9
|
+
var e;
|
|
10
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
var
|
|
14
|
-
return (
|
|
12
|
+
function N(t) {
|
|
13
|
+
var e;
|
|
14
|
+
return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
15
15
|
}
|
|
16
|
-
function p(
|
|
17
|
-
return c() ?
|
|
16
|
+
function p(t) {
|
|
17
|
+
return c() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
18
18
|
}
|
|
19
|
-
function m(
|
|
20
|
-
return c() ?
|
|
19
|
+
function m(t) {
|
|
20
|
+
return c() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
21
21
|
}
|
|
22
|
-
function w(
|
|
23
|
-
return c() ?
|
|
22
|
+
function w(t) {
|
|
23
|
+
return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return !c() || typeof ShadowRoot > "u" ? !1 :
|
|
25
|
+
function f(t) {
|
|
26
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
const E = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
29
|
+
function y(t) {
|
|
29
30
|
const {
|
|
30
|
-
overflow:
|
|
31
|
-
overflowX:
|
|
31
|
+
overflow: e,
|
|
32
|
+
overflowX: n,
|
|
32
33
|
overflowY: o,
|
|
33
34
|
display: r
|
|
34
|
-
} =
|
|
35
|
-
return /auto|scroll|overlay|hidden|clip/.test(
|
|
35
|
+
} = S(t);
|
|
36
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
39
|
+
function A(t) {
|
|
40
|
+
return T.has(u(t));
|
|
39
41
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
const v = [":popover-open", ":modal"];
|
|
43
|
+
function L(t) {
|
|
44
|
+
return v.some((e) => {
|
|
42
45
|
try {
|
|
43
|
-
return
|
|
46
|
+
return t.matches(e);
|
|
44
47
|
} catch {
|
|
45
48
|
return !1;
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
|
|
53
|
+
function V(t) {
|
|
54
|
+
const e = O(), n = m(t) ? S(t) : t;
|
|
55
|
+
return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
|
|
56
|
+
}
|
|
57
|
+
function B(t) {
|
|
58
|
+
let e = s(t);
|
|
59
|
+
for (; w(e) && !h(e); ) {
|
|
60
|
+
if (V(e))
|
|
61
|
+
return e;
|
|
62
|
+
if (L(e))
|
|
59
63
|
return null;
|
|
60
|
-
|
|
64
|
+
e = s(e);
|
|
61
65
|
}
|
|
62
66
|
return null;
|
|
63
67
|
}
|
|
64
|
-
function
|
|
68
|
+
function O() {
|
|
65
69
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
66
70
|
}
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
72
|
+
function h(t) {
|
|
73
|
+
return R.has(u(t));
|
|
69
74
|
}
|
|
70
|
-
function
|
|
71
|
-
return i(
|
|
75
|
+
function S(t) {
|
|
76
|
+
return i(t).getComputedStyle(t);
|
|
72
77
|
}
|
|
73
|
-
function
|
|
74
|
-
return m(
|
|
75
|
-
scrollLeft:
|
|
76
|
-
scrollTop:
|
|
78
|
+
function F(t) {
|
|
79
|
+
return m(t) ? {
|
|
80
|
+
scrollLeft: t.scrollLeft,
|
|
81
|
+
scrollTop: t.scrollTop
|
|
77
82
|
} : {
|
|
78
|
-
scrollLeft:
|
|
79
|
-
scrollTop:
|
|
83
|
+
scrollLeft: t.scrollX,
|
|
84
|
+
scrollTop: t.scrollY
|
|
80
85
|
};
|
|
81
86
|
}
|
|
82
|
-
function
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
const
|
|
87
|
+
function s(t) {
|
|
88
|
+
if (u(t) === "html")
|
|
89
|
+
return t;
|
|
90
|
+
const e = (
|
|
86
91
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
t.assignedSlot || // DOM Element detected.
|
|
93
|
+
t.parentNode || // ShadowRoot detected.
|
|
94
|
+
f(t) && t.host || // Fallback.
|
|
95
|
+
N(t)
|
|
91
96
|
);
|
|
92
|
-
return
|
|
97
|
+
return f(e) ? e.host : e;
|
|
93
98
|
}
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
return
|
|
99
|
+
function b(t) {
|
|
100
|
+
const e = s(t);
|
|
101
|
+
return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
|
|
97
102
|
}
|
|
98
|
-
function d(
|
|
103
|
+
function d(t, e, n) {
|
|
99
104
|
var o;
|
|
100
|
-
|
|
101
|
-
const r =
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
106
|
+
const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
107
|
+
if (g) {
|
|
108
|
+
const a = _(l);
|
|
109
|
+
return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
|
|
105
110
|
}
|
|
106
|
-
return
|
|
111
|
+
return e.concat(r, d(r, [], n));
|
|
107
112
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
113
|
+
function _(t) {
|
|
114
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
110
115
|
}
|
|
111
116
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
S as getComputedStyle,
|
|
118
|
+
B as getContainingBlock,
|
|
119
|
+
N as getDocumentElement,
|
|
120
|
+
_ as getFrameElement,
|
|
121
|
+
b as getNearestOverflowAncestor,
|
|
122
|
+
u as getNodeName,
|
|
123
|
+
F as getNodeScroll,
|
|
119
124
|
d as getOverflowAncestors,
|
|
120
|
-
|
|
125
|
+
s as getParentNode,
|
|
121
126
|
i as getWindow,
|
|
122
|
-
|
|
127
|
+
V as isContainingBlock,
|
|
123
128
|
m as isElement,
|
|
124
129
|
w as isHTMLElement,
|
|
125
|
-
|
|
130
|
+
h as isLastTraversableNode,
|
|
126
131
|
p as isNode,
|
|
127
132
|
y as isOverflowElement,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
f as isShadowRoot,
|
|
134
|
+
A as isTableElement,
|
|
135
|
+
L as isTopLayer,
|
|
136
|
+
O as isWebKit
|
|
132
137
|
};
|