@rpcbase/ui 0.195.0 → 0.196.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index114.js +36 -36
- package/dist/index126.js +6 -6
- package/dist/index127.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index135.js +2 -2
- package/dist/index137.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index179.js +22 -65
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +27 -179
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +5 -47
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +65 -22
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +179 -27
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +47 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +57 -15
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +8 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +65 -4
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +18 -57
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +14 -64
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +5 -6
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +5 -4
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +6 -7
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +4 -17
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +7 -5
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +17 -5
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +5 -13
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +5 -10
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +13 -14
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +10 -14
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +14 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +14 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -7
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +5 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +7 -9
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +6 -5
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +9 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -9
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +5 -5
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +9 -5
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +5 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -11
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +4 -10
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +9 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +10 -11
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +10 -11
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +11 -10
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +10 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -6
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +7 -5
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +5 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +5 -7
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +6 -6
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +7 -55
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +6 -8
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +54 -18
- package/dist/index225.js.map +1 -1
- package/dist/index230.js +3 -3
- package/dist/index237.js +1 -1
- package/dist/index24.js +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +10 -9
- package/dist/index249.js.map +1 -1
- package/dist/index252.js +2 -2
- package/dist/index255.js +1 -1
- package/dist/index259.js +3 -116
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +9 -17
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +114 -13
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +17 -3
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +12 -33
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +35 -19
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +20 -9
- package/dist/index265.js.map +1 -1
- package/dist/index267.js +2 -2
- package/dist/index27.js +493 -334
- package/dist/index27.js.map +1 -1
- package/dist/index271.js +1 -1
- package/dist/index273.js +5 -5
- package/dist/index274.js +1 -1
- package/dist/index282.js +65 -69
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +68 -8
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +9 -14
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +14 -66
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +65 -64
- package/dist/index286.js.map +1 -1
- package/dist/index294.js +2 -2
- package/dist/index297.js +1 -1
- package/dist/index298.js +2 -2
- package/dist/index300.js +1 -1
- package/dist/index301.js +1 -1
- package/dist/index302.js +1 -1
- package/dist/index303.js +1 -1
- package/dist/index31.js +3 -3
- package/dist/index313.js +11 -21
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +26 -11
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +4 -27
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +22 -4
- package/dist/index316.js.map +1 -1
- package/dist/index41.js +18 -18
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +4 -205
- package/dist/index51.js.map +1 -1
- package/dist/index53.js +47 -33
- package/dist/index53.js.map +1 -1
- package/dist/index55.js +50 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +7 -11
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +14 -3
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +129 -43
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -50
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +216 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +13 -15
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +32 -132
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +46 -10
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -216
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +49 -12
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +4 -47
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +5 -49
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +28 -4
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -6
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +9 -28
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +203 -48
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -9
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -2
- package/dist/index74.js +2 -2
- package/dist/index75.js +2 -2
- package/dist/index76.js +12 -2
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +40 -599
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +200 -41
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +21 -46
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +24 -205
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +399 -21
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +46 -24
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +589 -383
- package/dist/index86.js.map +1 -1
- package/package.json +6 -6
package/dist/index286.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index286.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index286.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll","parent_1"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index294.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDayOfYear as m } from "./index298.js";
|
|
2
|
-
import { getISOWeek as g } from "./
|
|
2
|
+
import { getISOWeek as g } from "./index206.js";
|
|
3
3
|
import { getISOWeekYear as w } from "./index301.js";
|
|
4
|
-
import { getWeek as b } from "./
|
|
4
|
+
import { getWeek as b } from "./index209.js";
|
|
5
5
|
import { getWeekYear as x } from "./index303.js";
|
|
6
6
|
import { addLeadingZeros as i } from "./index306.js";
|
|
7
7
|
import { lightFormatters as u } from "./index307.js";
|
package/dist/index297.js
CHANGED
package/dist/index298.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { differenceInCalendarDays as f } from "./
|
|
2
|
-
import { startOfYear as e } from "./
|
|
1
|
+
import { differenceInCalendarDays as f } from "./index198.js";
|
|
2
|
+
import { startOfYear as e } from "./index224.js";
|
|
3
3
|
import { toDate as o } from "./index288.js";
|
|
4
4
|
function c(t, a) {
|
|
5
5
|
const r = o(t, a?.in);
|
package/dist/index300.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { constructFrom as a } from "./index287.js";
|
|
2
2
|
import { getISOWeekYear as f } from "./index301.js";
|
|
3
|
-
import { startOfISOWeek as s } from "./
|
|
3
|
+
import { startOfISOWeek as s } from "./index221.js";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
const o = f(t, e), r = a(t, 0);
|
|
6
6
|
return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
|
package/dist/index301.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { constructFrom as s } from "./index287.js";
|
|
2
|
-
import { startOfISOWeek as a } from "./
|
|
2
|
+
import { startOfISOWeek as a } from "./index221.js";
|
|
3
3
|
import { toDate as m } from "./index288.js";
|
|
4
4
|
function Y(f, n) {
|
|
5
5
|
const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
|
package/dist/index302.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultOptions as n } from "./index293.js";
|
|
2
2
|
import { constructFrom as i } from "./index287.js";
|
|
3
3
|
import { getWeekYear as f } from "./index303.js";
|
|
4
|
-
import { startOfWeek as c } from "./
|
|
4
|
+
import { startOfWeek as c } from "./index223.js";
|
|
5
5
|
function D(r, t) {
|
|
6
6
|
const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
|
|
7
7
|
return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
|
package/dist/index303.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDefaultOptions as k } from "./index293.js";
|
|
2
2
|
import { constructFrom as i } from "./index287.js";
|
|
3
|
-
import { startOfWeek as l } from "./
|
|
3
|
+
import { startOfWeek as l } from "./index223.js";
|
|
4
4
|
import { toDate as m } from "./index288.js";
|
|
5
5
|
function C(r, e) {
|
|
6
6
|
const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
|
package/dist/index31.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { composeEventHandlers as h } from "./index52.js";
|
|
3
|
-
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./
|
|
3
|
+
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index62.js";
|
|
4
4
|
import { useComposedRefs as R } from "./index54.js";
|
|
5
|
-
import { useCallbackRef as g } from "./
|
|
6
|
-
import { useEscapeKeydown as U } from "./
|
|
5
|
+
import { useCallbackRef as g } from "./index64.js";
|
|
6
|
+
import { useEscapeKeydown as U } from "./index76.js";
|
|
7
7
|
import { j as x } from "./index30.js";
|
|
8
8
|
var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", C, T = s.createContext({
|
|
9
9
|
layers: /* @__PURE__ */ new Set(),
|
package/dist/index313.js
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, f = function(t) {
|
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
-
return a;
|
|
14
|
-
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
-
return {
|
|
16
|
-
left: n[0],
|
|
17
|
-
top: n[1],
|
|
18
|
-
right: n[2],
|
|
19
|
-
gap: Math.max(0, r - i + n[2] - n[0])
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index314.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
20
11
|
};
|
|
21
12
|
};
|
|
22
13
|
export {
|
|
23
|
-
|
|
24
|
-
a as zeroGap
|
|
14
|
+
i as styleHookSingleton
|
|
25
15
|
};
|
|
26
16
|
//# sourceMappingURL=index313.js.map
|
package/dist/index313.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index313.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index313.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index314.js
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { getNonce as o } from "./index315.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
11
26
|
};
|
|
12
27
|
};
|
|
13
28
|
export {
|
|
14
|
-
|
|
29
|
+
c as stylesheetSingleton
|
|
15
30
|
};
|
|
16
31
|
//# sourceMappingURL=index314.js.map
|
package/dist/index314.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index314.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index314.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index315.js
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
1
|
+
var e = function() {
|
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
|
3
|
+
return __webpack_nonce__;
|
|
27
4
|
};
|
|
28
5
|
export {
|
|
29
|
-
|
|
6
|
+
e as getNonce
|
|
30
7
|
};
|
|
31
8
|
//# sourceMappingURL=index315.js.map
|
package/dist/index315.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index315.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index315.js","sources":["../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
package/dist/index316.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var a = {
|
|
2
|
+
left: 0,
|
|
3
|
+
top: 0,
|
|
4
|
+
right: 0,
|
|
5
|
+
gap: 0
|
|
6
|
+
}, e = function(t) {
|
|
7
|
+
return parseInt(t || "", 10) || 0;
|
|
8
|
+
}, o = function(t) {
|
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
+
return [e(i), e(r), e(d)];
|
|
11
|
+
}, f = function(t) {
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
+
return a;
|
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
+
return {
|
|
16
|
+
left: n[0],
|
|
17
|
+
top: n[1],
|
|
18
|
+
right: n[2],
|
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
+
};
|
|
4
21
|
};
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
7
25
|
};
|
|
8
26
|
//# sourceMappingURL=index316.js.map
|
package/dist/index316.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index316.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index316.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAG,GAC1DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EAC9E;AACA;","x_google_ignoreList":[0]}
|
package/dist/index41.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import * as Re from "react-dom";
|
|
3
|
-
import { clamp as Te } from "./
|
|
3
|
+
import { clamp as Te } from "./index51.js";
|
|
4
4
|
import { composeEventHandlers as R } from "./index52.js";
|
|
5
|
-
import { createCollection as tt } from "./
|
|
5
|
+
import { createCollection as tt } from "./index53.js";
|
|
6
6
|
import { useComposedRefs as j } from "./index54.js";
|
|
7
|
-
import { createContextScope as ot } from "./
|
|
8
|
-
import { useDirection as nt } from "./
|
|
7
|
+
import { createContextScope as ot } from "./index55.js";
|
|
8
|
+
import { useDirection as nt } from "./index56.js";
|
|
9
9
|
import { DismissableLayer as rt } from "./index31.js";
|
|
10
|
-
import { useFocusGuards as st } from "./
|
|
11
|
-
import { FocusScope as lt } from "./
|
|
12
|
-
import { useId as ye } from "./
|
|
13
|
-
import { createPopperScope as Ee, Root as ct, Anchor as it, Content as at, Arrow as dt } from "./
|
|
14
|
-
import { Portal as ut } from "./
|
|
15
|
-
import { Primitive as M } from "./
|
|
16
|
-
import { createSlot as pt } from "./
|
|
17
|
-
import { useCallbackRef as ft } from "./
|
|
18
|
-
import { useControllableState as Pe } from "./
|
|
19
|
-
import { useLayoutEffect as z } from "./
|
|
20
|
-
import { usePrevious as mt } from "./
|
|
21
|
-
import { VISUALLY_HIDDEN_STYLES as ht } from "./
|
|
22
|
-
import { hideOthers as vt } from "./
|
|
23
|
-
import gt from "./
|
|
10
|
+
import { useFocusGuards as st } from "./index57.js";
|
|
11
|
+
import { FocusScope as lt } from "./index58.js";
|
|
12
|
+
import { useId as ye } from "./index59.js";
|
|
13
|
+
import { createPopperScope as Ee, Root as ct, Anchor as it, Content as at, Arrow as dt } from "./index60.js";
|
|
14
|
+
import { Portal as ut } from "./index61.js";
|
|
15
|
+
import { Primitive as M } from "./index62.js";
|
|
16
|
+
import { createSlot as pt } from "./index63.js";
|
|
17
|
+
import { useCallbackRef as ft } from "./index64.js";
|
|
18
|
+
import { useControllableState as Pe } from "./index65.js";
|
|
19
|
+
import { useLayoutEffect as z } from "./index66.js";
|
|
20
|
+
import { usePrevious as mt } from "./index67.js";
|
|
21
|
+
import { VISUALLY_HIDDEN_STYLES as ht } from "./index68.js";
|
|
22
|
+
import { hideOthers as vt } from "./index69.js";
|
|
23
|
+
import gt from "./index70.js";
|
|
24
24
|
import { j as d } from "./index30.js";
|
|
25
25
|
var St = [" ", "Enter", "ArrowUp", "ArrowDown"], xt = [" ", "Enter"], J = "Select", [ie, ae, wt] = tt(J), [te] = ot(J, [
|
|
26
26
|
wt,
|
package/dist/index45.js
CHANGED
package/dist/index46.js
CHANGED
package/dist/index49.js
CHANGED
package/dist/index50.js
CHANGED
package/dist/index51.js
CHANGED
|
@@ -1,208 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { createContextScope as E } from "./index59.js";
|
|
5
|
-
import { useControllableState as S } from "./index67.js";
|
|
6
|
-
import { Primitive as P } from "./index53.js";
|
|
7
|
-
import { createMenuScope as D, Anchor as y, Item as O, Root as T, Portal as j, Content as G, Group as k, Label as L, CheckboxItem as K, RadioGroup as U, RadioItem as B, ItemIndicator as F, Separator as H, Arrow as W, SubTrigger as $, SubContent as X } from "./index80.js";
|
|
8
|
-
import { useId as g } from "./index63.js";
|
|
9
|
-
import { j as a } from "./index30.js";
|
|
10
|
-
var f = "DropdownMenu", [q] = E(
|
|
11
|
-
f,
|
|
12
|
-
[D]
|
|
13
|
-
), s = D(), [z, v] = q(f), _ = (o) => {
|
|
14
|
-
const {
|
|
15
|
-
__scopeDropdownMenu: n,
|
|
16
|
-
children: r,
|
|
17
|
-
dir: e,
|
|
18
|
-
open: t,
|
|
19
|
-
defaultOpen: i,
|
|
20
|
-
onOpenChange: u,
|
|
21
|
-
modal: d = !0
|
|
22
|
-
} = o, c = s(n), M = p.useRef(null), [l, w] = S({
|
|
23
|
-
prop: t,
|
|
24
|
-
defaultProp: i ?? !1,
|
|
25
|
-
onChange: u,
|
|
26
|
-
caller: f
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ a.jsx(
|
|
29
|
-
z,
|
|
30
|
-
{
|
|
31
|
-
scope: n,
|
|
32
|
-
triggerId: g(),
|
|
33
|
-
triggerRef: M,
|
|
34
|
-
contentId: g(),
|
|
35
|
-
open: l,
|
|
36
|
-
onOpenChange: w,
|
|
37
|
-
onOpenToggle: p.useCallback(() => w((A) => !A), [w]),
|
|
38
|
-
modal: d,
|
|
39
|
-
children: /* @__PURE__ */ a.jsx(T, { ...c, open: l, onOpenChange: w, dir: e, modal: d, children: r })
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
_.displayName = f;
|
|
44
|
-
var x = "DropdownMenuTrigger", R = p.forwardRef(
|
|
45
|
-
(o, n) => {
|
|
46
|
-
const { __scopeDropdownMenu: r, disabled: e = !1, ...t } = o, i = v(x, r), u = s(r);
|
|
47
|
-
return /* @__PURE__ */ a.jsx(y, { asChild: !0, ...u, children: /* @__PURE__ */ a.jsx(
|
|
48
|
-
P.button,
|
|
49
|
-
{
|
|
50
|
-
type: "button",
|
|
51
|
-
id: i.triggerId,
|
|
52
|
-
"aria-haspopup": "menu",
|
|
53
|
-
"aria-expanded": i.open,
|
|
54
|
-
"aria-controls": i.open ? i.contentId : void 0,
|
|
55
|
-
"data-state": i.open ? "open" : "closed",
|
|
56
|
-
"data-disabled": e ? "" : void 0,
|
|
57
|
-
disabled: e,
|
|
58
|
-
...t,
|
|
59
|
-
ref: C(n, i.triggerRef),
|
|
60
|
-
onPointerDown: m(o.onPointerDown, (d) => {
|
|
61
|
-
!e && d.button === 0 && d.ctrlKey === !1 && (i.onOpenToggle(), i.open || d.preventDefault());
|
|
62
|
-
}),
|
|
63
|
-
onKeyDown: m(o.onKeyDown, (d) => {
|
|
64
|
-
e || (["Enter", " "].includes(d.key) && i.onOpenToggle(), d.key === "ArrowDown" && i.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
|
|
65
|
-
})
|
|
66
|
-
}
|
|
67
|
-
) });
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
R.displayName = x;
|
|
71
|
-
var J = "DropdownMenuPortal", h = (o) => {
|
|
72
|
-
const { __scopeDropdownMenu: n, ...r } = o, e = s(n);
|
|
73
|
-
return /* @__PURE__ */ a.jsx(j, { ...e, ...r });
|
|
74
|
-
};
|
|
75
|
-
h.displayName = J;
|
|
76
|
-
var I = "DropdownMenuContent", N = p.forwardRef(
|
|
77
|
-
(o, n) => {
|
|
78
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = v(I, r), i = s(r), u = p.useRef(!1);
|
|
79
|
-
return /* @__PURE__ */ a.jsx(
|
|
80
|
-
G,
|
|
81
|
-
{
|
|
82
|
-
id: t.contentId,
|
|
83
|
-
"aria-labelledby": t.triggerId,
|
|
84
|
-
...i,
|
|
85
|
-
...e,
|
|
86
|
-
ref: n,
|
|
87
|
-
onCloseAutoFocus: m(o.onCloseAutoFocus, (d) => {
|
|
88
|
-
u.current || t.triggerRef.current?.focus(), u.current = !1, d.preventDefault();
|
|
89
|
-
}),
|
|
90
|
-
onInteractOutside: m(o.onInteractOutside, (d) => {
|
|
91
|
-
const c = d.detail.originalEvent, M = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || M;
|
|
92
|
-
(!t.modal || l) && (u.current = !0);
|
|
93
|
-
}),
|
|
94
|
-
style: {
|
|
95
|
-
...o.style,
|
|
96
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
97
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
98
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
99
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
100
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
N.displayName = I;
|
|
107
|
-
var Q = "DropdownMenuGroup", V = p.forwardRef(
|
|
108
|
-
(o, n) => {
|
|
109
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
110
|
-
return /* @__PURE__ */ a.jsx(k, { ...t, ...e, ref: n });
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
V.displayName = Q;
|
|
114
|
-
var Y = "DropdownMenuLabel", Z = p.forwardRef(
|
|
115
|
-
(o, n) => {
|
|
116
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
117
|
-
return /* @__PURE__ */ a.jsx(L, { ...t, ...e, ref: n });
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
Z.displayName = Y;
|
|
121
|
-
var oo = "DropdownMenuItem", b = p.forwardRef(
|
|
122
|
-
(o, n) => {
|
|
123
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
124
|
-
return /* @__PURE__ */ a.jsx(O, { ...t, ...e, ref: n });
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
b.displayName = oo;
|
|
128
|
-
var eo = "DropdownMenuCheckboxItem", ro = p.forwardRef((o, n) => {
|
|
129
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
130
|
-
return /* @__PURE__ */ a.jsx(K, { ...t, ...e, ref: n });
|
|
131
|
-
});
|
|
132
|
-
ro.displayName = eo;
|
|
133
|
-
var no = "DropdownMenuRadioGroup", to = p.forwardRef((o, n) => {
|
|
134
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
135
|
-
return /* @__PURE__ */ a.jsx(U, { ...t, ...e, ref: n });
|
|
136
|
-
});
|
|
137
|
-
to.displayName = no;
|
|
138
|
-
var ao = "DropdownMenuRadioItem", po = p.forwardRef((o, n) => {
|
|
139
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
140
|
-
return /* @__PURE__ */ a.jsx(B, { ...t, ...e, ref: n });
|
|
141
|
-
});
|
|
142
|
-
po.displayName = ao;
|
|
143
|
-
var so = "DropdownMenuItemIndicator", io = p.forwardRef((o, n) => {
|
|
144
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
145
|
-
return /* @__PURE__ */ a.jsx(F, { ...t, ...e, ref: n });
|
|
146
|
-
});
|
|
147
|
-
io.displayName = so;
|
|
148
|
-
var uo = "DropdownMenuSeparator", co = p.forwardRef((o, n) => {
|
|
149
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
150
|
-
return /* @__PURE__ */ a.jsx(H, { ...t, ...e, ref: n });
|
|
151
|
-
});
|
|
152
|
-
co.displayName = uo;
|
|
153
|
-
var lo = "DropdownMenuArrow", wo = p.forwardRef(
|
|
154
|
-
(o, n) => {
|
|
155
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
156
|
-
return /* @__PURE__ */ a.jsx(W, { ...t, ...e, ref: n });
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
wo.displayName = lo;
|
|
160
|
-
var mo = "DropdownMenuSubTrigger", fo = p.forwardRef((o, n) => {
|
|
161
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
162
|
-
return /* @__PURE__ */ a.jsx($, { ...t, ...e, ref: n });
|
|
163
|
-
});
|
|
164
|
-
fo.displayName = mo;
|
|
165
|
-
var Mo = "DropdownMenuSubContent", go = p.forwardRef((o, n) => {
|
|
166
|
-
const { __scopeDropdownMenu: r, ...e } = o, t = s(r);
|
|
167
|
-
return /* @__PURE__ */ a.jsx(
|
|
168
|
-
X,
|
|
169
|
-
{
|
|
170
|
-
...t,
|
|
171
|
-
...e,
|
|
172
|
-
ref: n,
|
|
173
|
-
style: {
|
|
174
|
-
...o.style,
|
|
175
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
176
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
177
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
178
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
179
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
});
|
|
184
|
-
go.displayName = Mo;
|
|
185
|
-
var bo = _, Ao = R, Co = h, Eo = N, So = b;
|
|
1
|
+
function m(t, [a, n]) {
|
|
2
|
+
return Math.min(n, Math.max(a, t));
|
|
3
|
+
}
|
|
186
4
|
export {
|
|
187
|
-
|
|
188
|
-
_ as DropdownMenu,
|
|
189
|
-
wo as DropdownMenuArrow,
|
|
190
|
-
ro as DropdownMenuCheckboxItem,
|
|
191
|
-
N as DropdownMenuContent,
|
|
192
|
-
V as DropdownMenuGroup,
|
|
193
|
-
b as DropdownMenuItem,
|
|
194
|
-
io as DropdownMenuItemIndicator,
|
|
195
|
-
Z as DropdownMenuLabel,
|
|
196
|
-
h as DropdownMenuPortal,
|
|
197
|
-
to as DropdownMenuRadioGroup,
|
|
198
|
-
po as DropdownMenuRadioItem,
|
|
199
|
-
co as DropdownMenuSeparator,
|
|
200
|
-
go as DropdownMenuSubContent,
|
|
201
|
-
fo as DropdownMenuSubTrigger,
|
|
202
|
-
R as DropdownMenuTrigger,
|
|
203
|
-
So as Item,
|
|
204
|
-
Co as Portal,
|
|
205
|
-
bo as Root,
|
|
206
|
-
Ao as Trigger
|
|
5
|
+
m as clamp
|
|
207
6
|
};
|
|
208
7
|
//# sourceMappingURL=index51.js.map
|