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,76 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _ = (e) => !P(e) && !Array.isArray(e) && M(e) && !I(e), T = (e) => _(e) && e.target ? U(e.target) ? e.target.checked : e.target.value : e, H = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, W = (e, s) => e.has(H(s)), G = (e) => {
|
|
2
|
+
import o from "react";
|
|
3
|
+
var W = (e) => e.type === "checkbox", v = (e) => e instanceof Date, x = (e) => e == null;
|
|
4
|
+
const D = (e) => typeof e == "object";
|
|
5
|
+
var g = (e) => !x(e) && !Array.isArray(e) && D(e) && !v(e), G = (e) => g(e) && e.target ? W(e.target) ? e.target.checked : e.target.value : e, $ = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, q = (e, s) => e.has($(s)), K = (e) => {
|
|
7
6
|
const s = e.constructor && e.constructor.prototype;
|
|
8
|
-
return
|
|
9
|
-
},
|
|
10
|
-
function
|
|
7
|
+
return g(s) && s.hasOwnProperty("isPrototypeOf");
|
|
8
|
+
}, z = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
9
|
+
function R(e) {
|
|
11
10
|
let s;
|
|
12
11
|
const t = Array.isArray(e), n = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
13
12
|
if (e instanceof Date)
|
|
14
13
|
s = new Date(e);
|
|
15
|
-
else if (e instanceof
|
|
16
|
-
s =
|
|
17
|
-
else if (!($ && (e instanceof Blob || n)) && (t || _(e)))
|
|
18
|
-
if (s = t ? [] : {}, !t && !G(e))
|
|
14
|
+
else if (!(z && (e instanceof Blob || n)) && (t || g(e)))
|
|
15
|
+
if (s = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !K(e))
|
|
19
16
|
s = e;
|
|
20
17
|
else
|
|
21
18
|
for (const r in e)
|
|
22
|
-
e.hasOwnProperty(r) && (s[r] =
|
|
19
|
+
e.hasOwnProperty(r) && (s[r] = R(e[r]));
|
|
23
20
|
else
|
|
24
21
|
return e;
|
|
25
22
|
return s;
|
|
26
23
|
}
|
|
27
|
-
var
|
|
28
|
-
if (!s || !
|
|
24
|
+
var B = (e) => /^\w*$/.test(e), O = (e) => e === void 0, J = (e) => Array.isArray(e) ? e.filter(Boolean) : [], T = (e) => J(e.replace(/["|']|\]/g, "").split(/\.|\[/)), f = (e, s, t) => {
|
|
25
|
+
if (!s || !g(e))
|
|
29
26
|
return t;
|
|
30
|
-
const n = (
|
|
31
|
-
return
|
|
32
|
-
},
|
|
27
|
+
const n = (B(s) ? [s] : T(s)).reduce((r, a) => x(r) ? r : r[a], e);
|
|
28
|
+
return O(n) || n === e ? O(e[s]) ? t : e[s] : n;
|
|
29
|
+
}, C = (e) => typeof e == "boolean", w = (e, s, t) => {
|
|
33
30
|
let n = -1;
|
|
34
|
-
const r =
|
|
35
|
-
for (; ++n <
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
if (n !==
|
|
39
|
-
const
|
|
40
|
-
|
|
31
|
+
const r = B(s) ? [s] : T(s), a = r.length, u = a - 1;
|
|
32
|
+
for (; ++n < a; ) {
|
|
33
|
+
const i = r[n];
|
|
34
|
+
let y = t;
|
|
35
|
+
if (n !== u) {
|
|
36
|
+
const l = e[i];
|
|
37
|
+
y = g(l) || Array.isArray(l) ? l : isNaN(+r[n + 1]) ? {} : [];
|
|
41
38
|
}
|
|
42
|
-
if (
|
|
39
|
+
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
43
40
|
return;
|
|
44
|
-
e[
|
|
41
|
+
e[i] = y, e = e[i];
|
|
45
42
|
}
|
|
46
43
|
};
|
|
47
|
-
const
|
|
44
|
+
const M = {
|
|
48
45
|
BLUR: "blur",
|
|
49
46
|
CHANGE: "change"
|
|
50
|
-
},
|
|
47
|
+
}, N = {
|
|
51
48
|
all: "all"
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
const
|
|
49
|
+
}, E = o.createContext(null);
|
|
50
|
+
E.displayName = "HookFormContext";
|
|
51
|
+
const S = () => o.useContext(E), re = (e) => {
|
|
55
52
|
const { children: s, ...t } = e;
|
|
56
|
-
return
|
|
53
|
+
return o.createElement(E.Provider, { value: t }, s);
|
|
57
54
|
};
|
|
58
|
-
var
|
|
55
|
+
var Q = (e, s, t, n = !0) => {
|
|
59
56
|
const r = {
|
|
60
57
|
defaultValues: s._defaultValues
|
|
61
58
|
};
|
|
62
|
-
for (const
|
|
63
|
-
Object.defineProperty(r,
|
|
59
|
+
for (const a in e)
|
|
60
|
+
Object.defineProperty(r, a, {
|
|
64
61
|
get: () => {
|
|
65
|
-
const
|
|
66
|
-
return s._proxyFormState[
|
|
62
|
+
const u = a;
|
|
63
|
+
return s._proxyFormState[u] !== N.all && (s._proxyFormState[u] = !n || N.all), t && (t[u] = !0), e[u];
|
|
67
64
|
}
|
|
68
65
|
});
|
|
69
66
|
return r;
|
|
70
67
|
};
|
|
71
|
-
const
|
|
72
|
-
function
|
|
73
|
-
const s =
|
|
68
|
+
const U = typeof window < "u" ? o.useLayoutEffect : o.useEffect;
|
|
69
|
+
function X(e) {
|
|
70
|
+
const s = S(), { control: t = s.control, disabled: n, name: r, exact: a } = e || {}, [u, i] = o.useState(t._formState), y = o.useRef({
|
|
74
71
|
isDirty: !1,
|
|
75
72
|
isLoading: !1,
|
|
76
73
|
dirtyFields: !1,
|
|
@@ -80,131 +77,167 @@ function q(e) {
|
|
|
80
77
|
isValid: !1,
|
|
81
78
|
errors: !1
|
|
82
79
|
});
|
|
83
|
-
return
|
|
80
|
+
return U(() => t._subscribe({
|
|
84
81
|
name: r,
|
|
85
|
-
formState:
|
|
86
|
-
exact:
|
|
87
|
-
callback: (
|
|
88
|
-
!n &&
|
|
82
|
+
formState: y.current,
|
|
83
|
+
exact: a,
|
|
84
|
+
callback: (l) => {
|
|
85
|
+
!n && i({
|
|
89
86
|
...t._formState,
|
|
90
|
-
...
|
|
87
|
+
...l
|
|
91
88
|
});
|
|
92
89
|
}
|
|
93
|
-
}), [r, n,
|
|
94
|
-
|
|
95
|
-
}, [t]),
|
|
90
|
+
}), [r, n, a]), o.useEffect(() => {
|
|
91
|
+
y.current.isValid && t._setValid(!0);
|
|
92
|
+
}, [t]), o.useMemo(() => Q(u, t, y.current, !1), [u, t]);
|
|
93
|
+
}
|
|
94
|
+
var Y = (e) => typeof e == "string", Z = (e, s, t, n, r) => Y(e) ? f(t, e, r) : Array.isArray(e) ? e.map((a) => f(t, a)) : t, L = (e) => x(e) || !D(e);
|
|
95
|
+
function I(e, s, t = /* @__PURE__ */ new WeakSet()) {
|
|
96
|
+
if (L(e) || L(s))
|
|
97
|
+
return e === s;
|
|
98
|
+
if (v(e) && v(s))
|
|
99
|
+
return e.getTime() === s.getTime();
|
|
100
|
+
const n = Object.keys(e), r = Object.keys(s);
|
|
101
|
+
if (n.length !== r.length)
|
|
102
|
+
return !1;
|
|
103
|
+
if (t.has(e) || t.has(s))
|
|
104
|
+
return !0;
|
|
105
|
+
t.add(e), t.add(s);
|
|
106
|
+
for (const a of n) {
|
|
107
|
+
const u = e[a];
|
|
108
|
+
if (!r.includes(a))
|
|
109
|
+
return !1;
|
|
110
|
+
if (a !== "ref") {
|
|
111
|
+
const i = s[a];
|
|
112
|
+
if (v(u) && v(i) || g(u) && g(i) || Array.isArray(u) && Array.isArray(i) ? !I(u, i, t) : u !== i)
|
|
113
|
+
return !1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return !0;
|
|
96
117
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
118
|
+
function j(e) {
|
|
119
|
+
const s = S(), { control: t = s.control, name: n, defaultValue: r, disabled: a, exact: u, compute: i } = e || {}, y = o.useRef(r), l = o.useRef(i), c = o.useRef(void 0);
|
|
120
|
+
l.current = i;
|
|
121
|
+
const m = o.useMemo(() => t._getWatch(n, y.current), [t, n]), [F, V] = o.useState(l.current ? l.current(m) : m);
|
|
122
|
+
return U(() => t._subscribe({
|
|
101
123
|
name: n,
|
|
102
124
|
formState: {
|
|
103
125
|
values: !0
|
|
104
126
|
},
|
|
105
|
-
exact:
|
|
106
|
-
callback: (
|
|
107
|
-
|
|
127
|
+
exact: u,
|
|
128
|
+
callback: (A) => {
|
|
129
|
+
if (!a) {
|
|
130
|
+
const b = Z(n, t._names, A.values || t._formValues, !1, y.current);
|
|
131
|
+
if (l.current) {
|
|
132
|
+
const _ = l.current(b);
|
|
133
|
+
I(_, c.current) || (V(_), c.current = _);
|
|
134
|
+
} else
|
|
135
|
+
V(b);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}), [t, a, n, u]), o.useEffect(() => t._removeUnmounted()), F;
|
|
108
139
|
}
|
|
109
|
-
function
|
|
110
|
-
const s =
|
|
140
|
+
function ee(e) {
|
|
141
|
+
const s = S(), { name: t, disabled: n, control: r = s.control, shouldUnregister: a, defaultValue: u } = e, i = q(r._names.array, t), y = o.useMemo(() => f(r._formValues, t, f(r._defaultValues, t, u)), [r, t, u]), l = j({
|
|
111
142
|
control: r,
|
|
112
143
|
name: t,
|
|
113
|
-
defaultValue:
|
|
144
|
+
defaultValue: y,
|
|
114
145
|
exact: !0
|
|
115
|
-
}),
|
|
146
|
+
}), c = X({
|
|
116
147
|
control: r,
|
|
117
148
|
name: t,
|
|
118
149
|
exact: !0
|
|
119
|
-
}),
|
|
150
|
+
}), m = o.useRef(e), F = o.useRef(r.register(t, {
|
|
120
151
|
...e.rules,
|
|
121
|
-
value:
|
|
122
|
-
...
|
|
123
|
-
}))
|
|
152
|
+
value: l,
|
|
153
|
+
...C(e.disabled) ? { disabled: e.disabled } : {}
|
|
154
|
+
}));
|
|
155
|
+
m.current = e;
|
|
156
|
+
const V = o.useMemo(() => Object.defineProperties({}, {
|
|
124
157
|
invalid: {
|
|
125
158
|
enumerable: !0,
|
|
126
|
-
get: () => !!c
|
|
159
|
+
get: () => !!f(c.errors, t)
|
|
127
160
|
},
|
|
128
161
|
isDirty: {
|
|
129
162
|
enumerable: !0,
|
|
130
|
-
get: () => !!c
|
|
163
|
+
get: () => !!f(c.dirtyFields, t)
|
|
131
164
|
},
|
|
132
165
|
isTouched: {
|
|
133
166
|
enumerable: !0,
|
|
134
|
-
get: () => !!c
|
|
167
|
+
get: () => !!f(c.touchedFields, t)
|
|
135
168
|
},
|
|
136
169
|
isValidating: {
|
|
137
170
|
enumerable: !0,
|
|
138
|
-
get: () => !!c
|
|
171
|
+
get: () => !!f(c.validatingFields, t)
|
|
139
172
|
},
|
|
140
173
|
error: {
|
|
141
174
|
enumerable: !0,
|
|
142
|
-
get: () => c
|
|
175
|
+
get: () => f(c.errors, t)
|
|
143
176
|
}
|
|
144
|
-
}), [
|
|
177
|
+
}), [c, t]), A = o.useCallback((d) => F.current.onChange({
|
|
145
178
|
target: {
|
|
146
|
-
value:
|
|
179
|
+
value: G(d),
|
|
147
180
|
name: t
|
|
148
181
|
},
|
|
149
|
-
type:
|
|
150
|
-
}), [t]),
|
|
182
|
+
type: M.CHANGE
|
|
183
|
+
}), [t]), b = o.useCallback(() => F.current.onBlur({
|
|
151
184
|
target: {
|
|
152
|
-
value:
|
|
185
|
+
value: f(r._formValues, t),
|
|
153
186
|
name: t
|
|
154
187
|
},
|
|
155
|
-
type:
|
|
156
|
-
}), [t, r._formValues]),
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
focus: () =>
|
|
160
|
-
select: () =>
|
|
161
|
-
setCustomValidity: (
|
|
162
|
-
reportValidity: () =>
|
|
188
|
+
type: M.BLUR
|
|
189
|
+
}), [t, r._formValues]), _ = o.useCallback((d) => {
|
|
190
|
+
const h = f(r._fields, t);
|
|
191
|
+
h && d && (h._f.ref = {
|
|
192
|
+
focus: () => d.focus && d.focus(),
|
|
193
|
+
select: () => d.select && d.select(),
|
|
194
|
+
setCustomValidity: (p) => d.setCustomValidity(p),
|
|
195
|
+
reportValidity: () => d.reportValidity()
|
|
163
196
|
});
|
|
164
|
-
}, [r._fields, t]),
|
|
197
|
+
}, [r._fields, t]), P = o.useMemo(() => ({
|
|
165
198
|
name: t,
|
|
166
|
-
value:
|
|
167
|
-
...
|
|
168
|
-
onChange:
|
|
169
|
-
onBlur:
|
|
170
|
-
ref:
|
|
171
|
-
}), [t, n,
|
|
172
|
-
return
|
|
173
|
-
const
|
|
199
|
+
value: l,
|
|
200
|
+
...C(n) || c.disabled ? { disabled: c.disabled || n } : {},
|
|
201
|
+
onChange: A,
|
|
202
|
+
onBlur: b,
|
|
203
|
+
ref: _
|
|
204
|
+
}), [t, n, c.disabled, A, b, _, l]);
|
|
205
|
+
return o.useEffect(() => {
|
|
206
|
+
const d = r._options.shouldUnregister || a;
|
|
174
207
|
r.register(t, {
|
|
175
|
-
...
|
|
176
|
-
...
|
|
208
|
+
...m.current.rules,
|
|
209
|
+
...C(m.current.disabled) ? { disabled: m.current.disabled } : {}
|
|
177
210
|
});
|
|
178
|
-
const
|
|
179
|
-
const
|
|
180
|
-
|
|
211
|
+
const h = (p, H) => {
|
|
212
|
+
const k = f(r._fields, p);
|
|
213
|
+
k && k._f && (k._f.mount = H);
|
|
181
214
|
};
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
|
|
215
|
+
if (h(t, !0), d) {
|
|
216
|
+
const p = R(f(r._options.defaultValues, t));
|
|
217
|
+
w(r._defaultValues, t, p), O(f(r._formValues, t)) && w(r._formValues, t, p);
|
|
185
218
|
}
|
|
186
|
-
return !
|
|
187
|
-
(
|
|
219
|
+
return !i && r.register(t), () => {
|
|
220
|
+
(i ? d && !r._state.action : d) ? r.unregister(t) : h(t, !1);
|
|
188
221
|
};
|
|
189
|
-
}, [t, r,
|
|
222
|
+
}, [t, r, i, a]), o.useEffect(() => {
|
|
190
223
|
r._setDisabledField({
|
|
191
224
|
disabled: n,
|
|
192
225
|
name: t
|
|
193
226
|
});
|
|
194
|
-
}, [n, t, r]),
|
|
195
|
-
field:
|
|
196
|
-
formState:
|
|
197
|
-
fieldState:
|
|
198
|
-
}), [
|
|
227
|
+
}, [n, t, r]), o.useMemo(() => ({
|
|
228
|
+
field: P,
|
|
229
|
+
formState: c,
|
|
230
|
+
fieldState: V
|
|
231
|
+
}), [P, c, V]);
|
|
199
232
|
}
|
|
200
|
-
const
|
|
233
|
+
const se = (e) => e.render(ee(e));
|
|
201
234
|
export {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
235
|
+
se as Controller,
|
|
236
|
+
re as FormProvider,
|
|
237
|
+
f as get,
|
|
238
|
+
w as set,
|
|
239
|
+
ee as useController,
|
|
240
|
+
S as useFormContext,
|
|
241
|
+
X as useFormState,
|
|
242
|
+
j as useWatch
|
|
210
243
|
};
|
|
@@ -5,57 +5,57 @@ import { RemoveScrollBar as A } from "../../../react-remove-scroll-bar/dist/es20
|
|
|
5
5
|
import { styleSingleton as I } from "../../../react-style-singleton/dist/es2015/component.js";
|
|
6
6
|
import { nonPassive as s } from "./aggresiveCapture.js";
|
|
7
7
|
import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
|
|
8
|
-
var b = function(
|
|
9
|
-
return "changedTouches" in
|
|
10
|
-
}, Y = function(
|
|
11
|
-
return [
|
|
12
|
-
}, B = function(
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
return
|
|
16
|
-
},
|
|
8
|
+
var b = function(e) {
|
|
9
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
10
|
+
}, Y = function(e) {
|
|
11
|
+
return [e.deltaX, e.deltaY];
|
|
12
|
+
}, B = function(e) {
|
|
13
|
+
return e && "current" in e ? e.current : e;
|
|
14
|
+
}, F = function(e, c) {
|
|
15
|
+
return e[0] === c[0] && e[1] === c[1];
|
|
16
|
+
}, K = function(e) {
|
|
17
17
|
return `
|
|
18
|
-
.block-interactivity-`.concat(
|
|
19
|
-
.allow-interactivity-`).concat(
|
|
18
|
+
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
19
|
+
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
20
20
|
`);
|
|
21
|
-
},
|
|
22
|
-
function
|
|
23
|
-
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(
|
|
21
|
+
}, O = 0, f = [];
|
|
22
|
+
function G(e) {
|
|
23
|
+
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(O++)[0], m = n.useState(I)[0], g = n.useRef(e);
|
|
24
24
|
n.useEffect(function() {
|
|
25
|
-
g.current =
|
|
26
|
-
}, [
|
|
27
|
-
if (
|
|
25
|
+
g.current = e;
|
|
26
|
+
}, [e]), n.useEffect(function() {
|
|
27
|
+
if (e.inert) {
|
|
28
28
|
document.body.classList.add("block-interactivity-".concat(h));
|
|
29
|
-
var
|
|
30
|
-
return
|
|
29
|
+
var t = x([e.lockRef.current], (e.shards || []).map(B), !0).filter(Boolean);
|
|
30
|
+
return t.forEach(function(r) {
|
|
31
31
|
return r.classList.add("allow-interactivity-".concat(h));
|
|
32
32
|
}), function() {
|
|
33
|
-
document.body.classList.remove("block-interactivity-".concat(h)),
|
|
33
|
+
document.body.classList.remove("block-interactivity-".concat(h)), t.forEach(function(r) {
|
|
34
34
|
return r.classList.remove("allow-interactivity-".concat(h));
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
}, [
|
|
39
|
-
var k = n.useCallback(function(
|
|
40
|
-
if ("touches" in
|
|
38
|
+
}, [e.inert, e.lockRef.current, e.shards]);
|
|
39
|
+
var k = n.useCallback(function(t, r) {
|
|
40
|
+
if ("touches" in t && t.touches.length === 2 || t.type === "wheel" && t.ctrlKey)
|
|
41
41
|
return !g.current.allowPinchZoom;
|
|
42
|
-
var l = b(
|
|
43
|
-
if ("touches" in
|
|
42
|
+
var l = b(t), o = E.current, u = "deltaX" in t ? t.deltaX : o[0] - l[0], i = "deltaY" in t ? t.deltaY : o[1] - l[1], a, C = t.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
|
|
43
|
+
if ("touches" in t && v === "h" && C.type === "range")
|
|
44
44
|
return !1;
|
|
45
45
|
var y = T(v, C);
|
|
46
46
|
if (!y)
|
|
47
47
|
return !0;
|
|
48
48
|
if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
|
|
49
49
|
return !1;
|
|
50
|
-
if (!d.current && "changedTouches" in
|
|
50
|
+
if (!d.current && "changedTouches" in t && (u || i) && (d.current = a), !a)
|
|
51
51
|
return !0;
|
|
52
52
|
var P = d.current || a;
|
|
53
|
-
return W(P, r,
|
|
54
|
-
}, []), S = n.useCallback(function(
|
|
55
|
-
var r =
|
|
53
|
+
return W(P, r, t, P === "h" ? u : i);
|
|
54
|
+
}, []), S = n.useCallback(function(t) {
|
|
55
|
+
var r = t;
|
|
56
56
|
if (!(!f.length || f[f.length - 1] !== m)) {
|
|
57
57
|
var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
|
|
58
|
-
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) &&
|
|
58
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && F(a.delta, l);
|
|
59
59
|
})[0];
|
|
60
60
|
if (o && o.should) {
|
|
61
61
|
r.cancelable && r.preventDefault();
|
|
@@ -68,46 +68,46 @@ function z(t) {
|
|
|
68
68
|
i && r.cancelable && r.preventDefault();
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
}, []), R = n.useCallback(function(
|
|
72
|
-
var u = { name:
|
|
71
|
+
}, []), R = n.useCallback(function(t, r, l, o) {
|
|
72
|
+
var u = { name: t, delta: r, target: l, should: o, shadowParent: Q(l) };
|
|
73
73
|
c.current.push(u), setTimeout(function() {
|
|
74
74
|
c.current = c.current.filter(function(i) {
|
|
75
75
|
return i !== u;
|
|
76
76
|
});
|
|
77
77
|
}, 1);
|
|
78
|
-
}, []), w = n.useCallback(function(
|
|
79
|
-
E.current = b(
|
|
80
|
-
}, []), L = n.useCallback(function(
|
|
81
|
-
R(
|
|
82
|
-
}, []), M = n.useCallback(function(
|
|
83
|
-
R(
|
|
78
|
+
}, []), w = n.useCallback(function(t) {
|
|
79
|
+
E.current = b(t), d.current = void 0;
|
|
80
|
+
}, []), L = n.useCallback(function(t) {
|
|
81
|
+
R(t.type, Y(t), t.target, k(t, e.lockRef.current));
|
|
82
|
+
}, []), M = n.useCallback(function(t) {
|
|
83
|
+
R(t.type, b(t), t.target, k(t, e.lockRef.current));
|
|
84
84
|
}, []);
|
|
85
85
|
n.useEffect(function() {
|
|
86
|
-
return f.push(m),
|
|
86
|
+
return f.push(m), e.setCallbacks({
|
|
87
87
|
onScrollCapture: L,
|
|
88
88
|
onWheelCapture: L,
|
|
89
89
|
onTouchMoveCapture: M
|
|
90
90
|
}), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
|
|
91
|
-
f = f.filter(function(
|
|
92
|
-
return
|
|
91
|
+
f = f.filter(function(t) {
|
|
92
|
+
return t !== m;
|
|
93
93
|
}), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
|
|
94
94
|
};
|
|
95
95
|
}, []);
|
|
96
|
-
var X =
|
|
96
|
+
var X = e.removeScrollBar, D = e.inert;
|
|
97
97
|
return n.createElement(
|
|
98
98
|
n.Fragment,
|
|
99
99
|
null,
|
|
100
|
-
D ? n.createElement(m, { styles:
|
|
101
|
-
X ? n.createElement(A, { gapMode:
|
|
100
|
+
D ? n.createElement(m, { styles: K(h) }) : null,
|
|
101
|
+
X ? n.createElement(A, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
for (var c = null;
|
|
106
|
-
|
|
104
|
+
function Q(e) {
|
|
105
|
+
for (var c = null; e !== null; )
|
|
106
|
+
e instanceof ShadowRoot && (c = e.host, e = e.host), e = e.parentNode;
|
|
107
107
|
return c;
|
|
108
108
|
}
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
G as RemoveScrollSideCar,
|
|
111
111
|
Y as getDeltaXY,
|
|
112
112
|
b as getTouchXY
|
|
113
113
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __rest as
|
|
2
|
+
import { __rest as E, __assign as r } from "../../../tslib/tslib.es6.js";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import { zeroRightClassName as
|
|
5
|
-
import { effectCar as
|
|
6
|
-
import { useMergeRefs as
|
|
4
|
+
import { zeroRightClassName as I, fullWidthClassName as Z } from "../../../react-remove-scroll-bar/dist/es2015/constants.js";
|
|
5
|
+
import { effectCar as W } from "./medium.js";
|
|
6
|
+
import { useMergeRefs as z } from "../../../use-callback-ref/dist/es2015/useMergeRef.js";
|
|
7
7
|
var l = function() {
|
|
8
8
|
}, m = a.forwardRef(function(e, d) {
|
|
9
9
|
var o = a.useRef(null), n = a.useState({
|
|
10
10
|
onScrollCapture: l,
|
|
11
11
|
onWheelCapture: l,
|
|
12
12
|
onTouchMoveCapture: l
|
|
13
|
-
}), f = n[0],
|
|
13
|
+
}), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
|
|
14
14
|
return a.createElement(
|
|
15
15
|
a.Fragment,
|
|
16
16
|
null,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
|
|
18
|
+
h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
|
|
19
19
|
);
|
|
20
20
|
});
|
|
21
21
|
m.defaultProps = {
|
|
@@ -24,8 +24,8 @@ m.defaultProps = {
|
|
|
24
24
|
inert: !1
|
|
25
25
|
};
|
|
26
26
|
m.classNames = {
|
|
27
|
-
fullWidth:
|
|
28
|
-
zeroRight:
|
|
27
|
+
fullWidth: Z,
|
|
28
|
+
zeroRight: I
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
31
|
m as RemoveScroll
|