fina-react-ds 1.0.22 → 1.0.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/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +65 -59
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +12 -11
- package/dist/components/button.js +12 -11
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +17 -17
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +60 -60
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +93 -93
- package/dist/components/form.d.ts +2 -3
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.d.ts +1 -1
- package/dist/components/hover-card.js +23 -23
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +12 -12
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +28 -28
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +10 -10
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +73 -73
- package/dist/components/sidebar.js +73 -69
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +13 -13
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +22 -22
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +27 -27
- package/dist/index.d.ts +5 -3
- package/dist/index.js +186 -172
- package/dist/lib/http.d.ts +13 -0
- package/dist/lib/http.js +59 -0
- package/dist/lib/yup.d.ts +2 -0
- package/dist/lib/yup.js +88 -0
- package/package.json +6 -3
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -534
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -430
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -215
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -159
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -149
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -130
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +0 -80
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -258
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -51
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -34
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -76
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -265
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -133
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -230
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -21
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -149
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -192
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -22
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -663
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -247
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -224
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -77
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -39
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -189
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -27
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -67
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -168
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -348
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -59
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -30
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -32
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -54
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -33
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -18
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -70
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -73
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -13
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -17
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -35
- package/dist/node_modules/tslib/tslib.es6.js +0 -31
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -9
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -29
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -28
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -72
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -73
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -62
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
var E = Object.defineProperty;
|
|
2
|
-
var n = (t, e) => E(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
function l() {
|
|
4
|
-
return typeof window < "u";
|
|
5
|
-
}
|
|
6
|
-
n(l, "hasWindow");
|
|
7
|
-
function a(t) {
|
|
8
|
-
return m(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
9
|
-
}
|
|
10
|
-
n(a, "getNodeName");
|
|
11
|
-
function c(t) {
|
|
12
|
-
var e;
|
|
13
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
14
|
-
}
|
|
15
|
-
n(c, "getWindow");
|
|
16
|
-
function T(t) {
|
|
17
|
-
var e;
|
|
18
|
-
return (e = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
19
|
-
}
|
|
20
|
-
n(T, "getDocumentElement");
|
|
21
|
-
function m(t) {
|
|
22
|
-
return l() ? t instanceof Node || t instanceof c(t).Node : !1;
|
|
23
|
-
}
|
|
24
|
-
n(m, "isNode");
|
|
25
|
-
function w(t) {
|
|
26
|
-
return l() ? t instanceof Element || t instanceof c(t).Element : !1;
|
|
27
|
-
}
|
|
28
|
-
n(w, "isElement");
|
|
29
|
-
function y(t) {
|
|
30
|
-
return l() ? t instanceof HTMLElement || t instanceof c(t).HTMLElement : !1;
|
|
31
|
-
}
|
|
32
|
-
n(y, "isHTMLElement");
|
|
33
|
-
function d(t) {
|
|
34
|
-
return !l() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof c(t).ShadowRoot;
|
|
35
|
-
}
|
|
36
|
-
n(d, "isShadowRoot");
|
|
37
|
-
const v = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
38
|
-
function h(t) {
|
|
39
|
-
const {
|
|
40
|
-
overflow: e,
|
|
41
|
-
overflowX: o,
|
|
42
|
-
overflowY: r,
|
|
43
|
-
display: i
|
|
44
|
-
} = b(t);
|
|
45
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + r + o) && !v.has(i);
|
|
46
|
-
}
|
|
47
|
-
n(h, "isOverflowElement");
|
|
48
|
-
const L = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
49
|
-
function H(t) {
|
|
50
|
-
return L.has(a(t));
|
|
51
|
-
}
|
|
52
|
-
n(H, "isTableElement");
|
|
53
|
-
const D = [":popover-open", ":modal"];
|
|
54
|
-
function C(t) {
|
|
55
|
-
return D.some((e) => {
|
|
56
|
-
try {
|
|
57
|
-
return t.matches(e);
|
|
58
|
-
} catch {
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
n(C, "isTopLayer");
|
|
64
|
-
const k = ["transform", "translate", "scale", "rotate", "perspective"], V = ["transform", "translate", "scale", "rotate", "perspective", "filter"], O = ["paint", "layout", "strict", "content"];
|
|
65
|
-
function R(t) {
|
|
66
|
-
const e = _(), o = w(t) ? b(t) : t;
|
|
67
|
-
return k.some((r) => o[r] ? o[r] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || V.some((r) => (o.willChange || "").includes(r)) || O.some((r) => (o.contain || "").includes(r));
|
|
68
|
-
}
|
|
69
|
-
n(R, "isContainingBlock");
|
|
70
|
-
function M(t) {
|
|
71
|
-
let e = u(t);
|
|
72
|
-
for (; y(e) && !S(e); ) {
|
|
73
|
-
if (R(e))
|
|
74
|
-
return e;
|
|
75
|
-
if (C(e))
|
|
76
|
-
return null;
|
|
77
|
-
e = u(e);
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
n(M, "getContainingBlock");
|
|
82
|
-
function _() {
|
|
83
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
84
|
-
}
|
|
85
|
-
n(_, "isWebKit");
|
|
86
|
-
const A = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
87
|
-
function S(t) {
|
|
88
|
-
return A.has(a(t));
|
|
89
|
-
}
|
|
90
|
-
n(S, "isLastTraversableNode");
|
|
91
|
-
function b(t) {
|
|
92
|
-
return c(t).getComputedStyle(t);
|
|
93
|
-
}
|
|
94
|
-
n(b, "getComputedStyle");
|
|
95
|
-
function P(t) {
|
|
96
|
-
return w(t) ? {
|
|
97
|
-
scrollLeft: t.scrollLeft,
|
|
98
|
-
scrollTop: t.scrollTop
|
|
99
|
-
} : {
|
|
100
|
-
scrollLeft: t.scrollX,
|
|
101
|
-
scrollTop: t.scrollY
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
n(P, "getNodeScroll");
|
|
105
|
-
function u(t) {
|
|
106
|
-
if (a(t) === "html")
|
|
107
|
-
return t;
|
|
108
|
-
const e = (
|
|
109
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
110
|
-
t.assignedSlot || // DOM Element detected.
|
|
111
|
-
t.parentNode || // ShadowRoot detected.
|
|
112
|
-
d(t) && t.host || // Fallback.
|
|
113
|
-
T(t)
|
|
114
|
-
);
|
|
115
|
-
return d(e) ? e.host : e;
|
|
116
|
-
}
|
|
117
|
-
n(u, "getParentNode");
|
|
118
|
-
function g(t) {
|
|
119
|
-
const e = u(t);
|
|
120
|
-
return S(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : y(e) && h(e) ? e : g(e);
|
|
121
|
-
}
|
|
122
|
-
n(g, "getNearestOverflowAncestor");
|
|
123
|
-
function p(t, e, o) {
|
|
124
|
-
var r;
|
|
125
|
-
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
126
|
-
const i = g(t), N = i === ((r = t.ownerDocument) == null ? void 0 : r.body), s = c(i);
|
|
127
|
-
if (N) {
|
|
128
|
-
const f = B(s);
|
|
129
|
-
return e.concat(s, s.visualViewport || [], h(i) ? i : [], f && o ? p(f) : []);
|
|
130
|
-
}
|
|
131
|
-
return e.concat(i, p(i, [], o));
|
|
132
|
-
}
|
|
133
|
-
n(p, "getOverflowAncestors");
|
|
134
|
-
function B(t) {
|
|
135
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
136
|
-
}
|
|
137
|
-
n(B, "getFrameElement");
|
|
138
|
-
export {
|
|
139
|
-
b as getComputedStyle,
|
|
140
|
-
M as getContainingBlock,
|
|
141
|
-
T as getDocumentElement,
|
|
142
|
-
B as getFrameElement,
|
|
143
|
-
g as getNearestOverflowAncestor,
|
|
144
|
-
a as getNodeName,
|
|
145
|
-
P as getNodeScroll,
|
|
146
|
-
p as getOverflowAncestors,
|
|
147
|
-
u as getParentNode,
|
|
148
|
-
c as getWindow,
|
|
149
|
-
R as isContainingBlock,
|
|
150
|
-
w as isElement,
|
|
151
|
-
y as isHTMLElement,
|
|
152
|
-
S as isLastTraversableNode,
|
|
153
|
-
m as isNode,
|
|
154
|
-
h as isOverflowElement,
|
|
155
|
-
d as isShadowRoot,
|
|
156
|
-
H as isTableElement,
|
|
157
|
-
C as isTopLayer,
|
|
158
|
-
_ as isWebKit
|
|
159
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
var p = Object.defineProperty;
|
|
2
|
-
var n = (t, e) => p(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
const E = ["top", "right", "bottom", "left"], h = Math.min, x = Math.max, R = Math.round, T = Math.floor, k = /* @__PURE__ */ n((t) => ({
|
|
4
|
-
x: t,
|
|
5
|
-
y: t
|
|
6
|
-
}), "createCoords"), b = {
|
|
7
|
-
left: "right",
|
|
8
|
-
right: "left",
|
|
9
|
-
bottom: "top",
|
|
10
|
-
top: "bottom"
|
|
11
|
-
}, d = {
|
|
12
|
-
start: "end",
|
|
13
|
-
end: "start"
|
|
14
|
-
};
|
|
15
|
-
function q(t, e, o) {
|
|
16
|
-
return x(t, h(e, o));
|
|
17
|
-
}
|
|
18
|
-
n(q, "clamp");
|
|
19
|
-
function z(t, e) {
|
|
20
|
-
return typeof t == "function" ? t(e) : t;
|
|
21
|
-
}
|
|
22
|
-
n(z, "evaluate");
|
|
23
|
-
function a(t) {
|
|
24
|
-
return t.split("-")[0];
|
|
25
|
-
}
|
|
26
|
-
n(a, "getSide");
|
|
27
|
-
function m(t) {
|
|
28
|
-
return t.split("-")[1];
|
|
29
|
-
}
|
|
30
|
-
n(m, "getAlignment");
|
|
31
|
-
function A(t) {
|
|
32
|
-
return t === "x" ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
n(A, "getOppositeAxis");
|
|
35
|
-
function P(t) {
|
|
36
|
-
return t === "y" ? "height" : "width";
|
|
37
|
-
}
|
|
38
|
-
n(P, "getAxisLength");
|
|
39
|
-
const y = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
40
|
-
function M(t) {
|
|
41
|
-
return y.has(a(t)) ? "y" : "x";
|
|
42
|
-
}
|
|
43
|
-
n(M, "getSideAxis");
|
|
44
|
-
function O(t) {
|
|
45
|
-
return A(M(t));
|
|
46
|
-
}
|
|
47
|
-
n(O, "getAlignmentAxis");
|
|
48
|
-
function B(t, e, o) {
|
|
49
|
-
o === void 0 && (o = !1);
|
|
50
|
-
const c = m(t), r = O(t), i = P(r);
|
|
51
|
-
let s = r === "x" ? c === (o ? "end" : "start") ? "right" : "left" : c === "start" ? "bottom" : "top";
|
|
52
|
-
return e.reference[i] > e.floating[i] && (s = u(s)), [s, u(s)];
|
|
53
|
-
}
|
|
54
|
-
n(B, "getAlignmentSides");
|
|
55
|
-
function D(t) {
|
|
56
|
-
const e = u(t);
|
|
57
|
-
return [f(t), e, f(e)];
|
|
58
|
-
}
|
|
59
|
-
n(D, "getExpandedPlacements");
|
|
60
|
-
function f(t) {
|
|
61
|
-
return t.replace(/start|end/g, (e) => d[e]);
|
|
62
|
-
}
|
|
63
|
-
n(f, "getOppositeAlignmentPlacement");
|
|
64
|
-
const l = ["left", "right"], g = ["right", "left"], S = ["top", "bottom"], w = ["bottom", "top"];
|
|
65
|
-
function j(t, e, o) {
|
|
66
|
-
switch (t) {
|
|
67
|
-
case "top":
|
|
68
|
-
case "bottom":
|
|
69
|
-
return o ? e ? g : l : e ? l : g;
|
|
70
|
-
case "left":
|
|
71
|
-
case "right":
|
|
72
|
-
return e ? S : w;
|
|
73
|
-
default:
|
|
74
|
-
return [];
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
n(j, "getSideList");
|
|
78
|
-
function F(t, e, o, c) {
|
|
79
|
-
const r = m(t);
|
|
80
|
-
let i = j(a(t), o === "start", c);
|
|
81
|
-
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(f)))), i;
|
|
82
|
-
}
|
|
83
|
-
n(F, "getOppositeAxisPlacements");
|
|
84
|
-
function u(t) {
|
|
85
|
-
return t.replace(/left|right|bottom|top/g, (e) => b[e]);
|
|
86
|
-
}
|
|
87
|
-
n(u, "getOppositePlacement");
|
|
88
|
-
function C(t) {
|
|
89
|
-
return {
|
|
90
|
-
top: 0,
|
|
91
|
-
right: 0,
|
|
92
|
-
bottom: 0,
|
|
93
|
-
left: 0,
|
|
94
|
-
...t
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
n(C, "expandPaddingObject");
|
|
98
|
-
function G(t) {
|
|
99
|
-
return typeof t != "number" ? C(t) : {
|
|
100
|
-
top: t,
|
|
101
|
-
right: t,
|
|
102
|
-
bottom: t,
|
|
103
|
-
left: t
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
n(G, "getPaddingObject");
|
|
107
|
-
function H(t) {
|
|
108
|
-
const {
|
|
109
|
-
x: e,
|
|
110
|
-
y: o,
|
|
111
|
-
width: c,
|
|
112
|
-
height: r
|
|
113
|
-
} = t;
|
|
114
|
-
return {
|
|
115
|
-
width: c,
|
|
116
|
-
height: r,
|
|
117
|
-
top: o,
|
|
118
|
-
left: e,
|
|
119
|
-
right: e + c,
|
|
120
|
-
bottom: o + r,
|
|
121
|
-
x: e,
|
|
122
|
-
y: o
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
n(H, "rectToClientRect");
|
|
126
|
-
export {
|
|
127
|
-
q as clamp,
|
|
128
|
-
k as createCoords,
|
|
129
|
-
z as evaluate,
|
|
130
|
-
C as expandPaddingObject,
|
|
131
|
-
T as floor,
|
|
132
|
-
m as getAlignment,
|
|
133
|
-
O as getAlignmentAxis,
|
|
134
|
-
B as getAlignmentSides,
|
|
135
|
-
P as getAxisLength,
|
|
136
|
-
D as getExpandedPlacements,
|
|
137
|
-
f as getOppositeAlignmentPlacement,
|
|
138
|
-
A as getOppositeAxis,
|
|
139
|
-
F as getOppositeAxisPlacements,
|
|
140
|
-
u as getOppositePlacement,
|
|
141
|
-
G as getPaddingObject,
|
|
142
|
-
a as getSide,
|
|
143
|
-
M as getSideAxis,
|
|
144
|
-
x as max,
|
|
145
|
-
h as min,
|
|
146
|
-
H as rectToClientRect,
|
|
147
|
-
R as round,
|
|
148
|
-
E as sides
|
|
149
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var h = Object.defineProperty;
|
|
2
|
-
var p = (f, c) => h(f, "name", { value: c, configurable: !0 });
|
|
3
|
-
function P(f, c, { checkForDefaultPrevented: u = !0 } = {}) {
|
|
4
|
-
return /* @__PURE__ */ p(function(s) {
|
|
5
|
-
if (f == null || f(s), u === !1 || !s.defaultPrevented)
|
|
6
|
-
return c == null ? void 0 : c(s);
|
|
7
|
-
}, "handleEvent");
|
|
8
|
-
}
|
|
9
|
-
p(P, "composeEventHandlers");
|
|
10
|
-
export {
|
|
11
|
-
P as composeEventHandlers
|
|
12
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
var M = Object.defineProperty;
|
|
2
|
-
var s = (e, o) => M(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import * as l from "react";
|
|
4
|
-
import { createContextScope as x } from "../../react-context/dist/index.js";
|
|
5
|
-
import { useComposedRefs as v } from "../../react-compose-refs/dist/index.js";
|
|
6
|
-
import { createDialogScope as f, Root as I, Portal as L, Overlay as $, Trigger as F, WarningProvider as G, Content as j, Title as W, Description as Y, Close as D } from "../../react-dialog/dist/index.js";
|
|
7
|
-
import { composeEventHandlers as q } from "../../primitive/dist/index.js";
|
|
8
|
-
import { createSlottable as B } from "../../react-slot/dist/index.js";
|
|
9
|
-
import { jsx as i, jsxs as H } from "react/jsx-runtime";
|
|
10
|
-
var m = "AlertDialog", [V, ne] = x(m, [
|
|
11
|
-
f
|
|
12
|
-
]), n = f(), y = /* @__PURE__ */ s((e) => {
|
|
13
|
-
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
14
|
-
return /* @__PURE__ */ i(I, { ...t, ...r, modal: !0 });
|
|
15
|
-
}, "AlertDialog");
|
|
16
|
-
y.displayName = m;
|
|
17
|
-
var k = "AlertDialogTrigger", _ = l.forwardRef(
|
|
18
|
-
(e, o) => {
|
|
19
|
-
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
20
|
-
return /* @__PURE__ */ i(F, { ...a, ...t, ref: o });
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
_.displayName = k;
|
|
24
|
-
var z = "AlertDialogPortal", N = /* @__PURE__ */ s((e) => {
|
|
25
|
-
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
26
|
-
return /* @__PURE__ */ i(L, { ...t, ...r });
|
|
27
|
-
}, "AlertDialogPortal");
|
|
28
|
-
N.displayName = z;
|
|
29
|
-
var J = "AlertDialogOverlay", R = l.forwardRef(
|
|
30
|
-
(e, o) => {
|
|
31
|
-
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
32
|
-
return /* @__PURE__ */ i($, { ...a, ...t, ref: o });
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
R.displayName = J;
|
|
36
|
-
var c = "AlertDialogContent", [K, Q] = V(c), U = B("AlertDialogContent"), C = l.forwardRef(
|
|
37
|
-
(e, o) => {
|
|
38
|
-
const { __scopeAlertDialog: r, children: t, ...a } = e, d = n(r), g = l.useRef(null), w = v(o, g), u = l.useRef(null);
|
|
39
|
-
return /* @__PURE__ */ i(
|
|
40
|
-
G,
|
|
41
|
-
{
|
|
42
|
-
contentName: c,
|
|
43
|
-
titleName: h,
|
|
44
|
-
docsSlug: "alert-dialog",
|
|
45
|
-
children: /* @__PURE__ */ i(K, { scope: r, cancelRef: u, children: /* @__PURE__ */ H(
|
|
46
|
-
j,
|
|
47
|
-
{
|
|
48
|
-
role: "alertdialog",
|
|
49
|
-
...d,
|
|
50
|
-
...a,
|
|
51
|
-
ref: w,
|
|
52
|
-
onOpenAutoFocus: q(a.onOpenAutoFocus, (p) => {
|
|
53
|
-
var A;
|
|
54
|
-
p.preventDefault(), (A = u.current) == null || A.focus({ preventScroll: !0 });
|
|
55
|
-
}),
|
|
56
|
-
onPointerDownOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onPointerDownOutside"),
|
|
57
|
-
onInteractOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onInteractOutside"),
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ i(U, { children: t }),
|
|
60
|
-
/* @__PURE__ */ i(Z, { contentRef: g })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
) })
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
C.displayName = c;
|
|
69
|
-
var h = "AlertDialogTitle", E = l.forwardRef(
|
|
70
|
-
(e, o) => {
|
|
71
|
-
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
72
|
-
return /* @__PURE__ */ i(W, { ...a, ...t, ref: o });
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
E.displayName = h;
|
|
76
|
-
var S = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
77
|
-
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
78
|
-
return /* @__PURE__ */ i(Y, { ...a, ...t, ref: o });
|
|
79
|
-
});
|
|
80
|
-
P.displayName = S;
|
|
81
|
-
var X = "AlertDialogAction", T = l.forwardRef(
|
|
82
|
-
(e, o) => {
|
|
83
|
-
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
84
|
-
return /* @__PURE__ */ i(D, { ...a, ...t, ref: o });
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
T.displayName = X;
|
|
88
|
-
var O = "AlertDialogCancel", b = l.forwardRef(
|
|
89
|
-
(e, o) => {
|
|
90
|
-
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = Q(O, r), d = n(r), g = v(o, a);
|
|
91
|
-
return /* @__PURE__ */ i(D, { ...d, ...t, ref: g });
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
b.displayName = O;
|
|
95
|
-
var Z = /* @__PURE__ */ s(({ contentRef: e }) => {
|
|
96
|
-
const o = `\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
97
|
-
|
|
98
|
-
You can add a description to the \`${c}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
99
|
-
|
|
100
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
101
|
-
|
|
102
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
103
|
-
return l.useEffect(() => {
|
|
104
|
-
var t;
|
|
105
|
-
document.getElementById(
|
|
106
|
-
(t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
|
|
107
|
-
) || console.warn(o);
|
|
108
|
-
}, [o, e]), null;
|
|
109
|
-
}, "DescriptionWarning"), se = y, ce = _, pe = N, ge = R, de = C, ue = T, Ae = b, ve = E, fe = P;
|
|
110
|
-
export {
|
|
111
|
-
ue as Action,
|
|
112
|
-
y as AlertDialog,
|
|
113
|
-
T as AlertDialogAction,
|
|
114
|
-
b as AlertDialogCancel,
|
|
115
|
-
C as AlertDialogContent,
|
|
116
|
-
P as AlertDialogDescription,
|
|
117
|
-
R as AlertDialogOverlay,
|
|
118
|
-
N as AlertDialogPortal,
|
|
119
|
-
E as AlertDialogTitle,
|
|
120
|
-
_ as AlertDialogTrigger,
|
|
121
|
-
Ae as Cancel,
|
|
122
|
-
de as Content,
|
|
123
|
-
fe as Description,
|
|
124
|
-
ge as Overlay,
|
|
125
|
-
pe as Portal,
|
|
126
|
-
se as Root,
|
|
127
|
-
ve as Title,
|
|
128
|
-
ce as Trigger,
|
|
129
|
-
ne as createAlertDialogScope
|
|
130
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
import { Primitive as p } from "../../react-primitive/dist/index.js";
|
|
3
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
-
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
|
-
const { children: t, width: a = 10, height: s = 5, ...m } = r;
|
|
6
|
-
return /* @__PURE__ */ o(
|
|
7
|
-
p.svg,
|
|
8
|
-
{
|
|
9
|
-
...m,
|
|
10
|
-
ref: i,
|
|
11
|
-
width: a,
|
|
12
|
-
height: s,
|
|
13
|
-
viewBox: "0 0 30 10",
|
|
14
|
-
preserveAspectRatio: "none",
|
|
15
|
-
children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
e.displayName = v;
|
|
20
|
-
var h = e;
|
|
21
|
-
export {
|
|
22
|
-
e as Arrow,
|
|
23
|
-
h as Root
|
|
24
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var h = Object.defineProperty;
|
|
2
|
-
var l = (t, e) => h(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import * as i from "react";
|
|
4
|
-
import { createContextScope as _ } from "../../react-context/dist/index.js";
|
|
5
|
-
import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.js";
|
|
6
|
-
import { useLayoutEffect as v } from "../../react-use-layout-effect/dist/index.js";
|
|
7
|
-
import { Primitive as m } from "../../react-primitive/dist/index.js";
|
|
8
|
-
import { useIsHydrated as x } from "../../react-use-is-hydrated/dist/index.js";
|
|
9
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
10
|
-
var g = "Avatar", [N, G] = _(g), [b, L] = N(g), S = i.forwardRef(
|
|
11
|
-
(t, e) => {
|
|
12
|
-
const { __scopeAvatar: o, ...r } = t, [n, a] = i.useState("idle");
|
|
13
|
-
return /* @__PURE__ */ f(
|
|
14
|
-
b,
|
|
15
|
-
{
|
|
16
|
-
scope: o,
|
|
17
|
-
imageLoadingStatus: n,
|
|
18
|
-
onImageLoadingStatusChange: a,
|
|
19
|
-
children: /* @__PURE__ */ f(m.span, { ...r, ref: e })
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
S.displayName = g;
|
|
25
|
-
var E = "AvatarImage", I = i.forwardRef(
|
|
26
|
-
(t, e) => {
|
|
27
|
-
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = /* @__PURE__ */ l(() => {
|
|
28
|
-
}, "onLoadingStatusChange"), ...a } = t, u = L(E, o), s = k(r, a), d = y((c) => {
|
|
29
|
-
n(c), u.onImageLoadingStatusChange(c);
|
|
30
|
-
});
|
|
31
|
-
return v(() => {
|
|
32
|
-
s !== "idle" && d(s);
|
|
33
|
-
}, [s, d]), s === "loaded" ? /* @__PURE__ */ f(m.img, { ...a, ref: e, src: r }) : null;
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
I.displayName = E;
|
|
37
|
-
var R = "AvatarFallback", w = i.forwardRef(
|
|
38
|
-
(t, e) => {
|
|
39
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = t, a = L(R, o), [u, s] = i.useState(r === void 0);
|
|
40
|
-
return i.useEffect(() => {
|
|
41
|
-
if (r !== void 0) {
|
|
42
|
-
const d = window.setTimeout(() => s(!0), r);
|
|
43
|
-
return () => window.clearTimeout(d);
|
|
44
|
-
}
|
|
45
|
-
}, [r]), u && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ f(m.span, { ...n, ref: e }) : null;
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
w.displayName = R;
|
|
49
|
-
function A(t, e) {
|
|
50
|
-
return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
51
|
-
}
|
|
52
|
-
l(A, "resolveLoadingStatus");
|
|
53
|
-
function k(t, { referrerPolicy: e, crossOrigin: o }) {
|
|
54
|
-
const r = x(), n = i.useRef(null), a = r ? (n.current || (n.current = new window.Image()), n.current) : null, [u, s] = i.useState(
|
|
55
|
-
() => A(a, t)
|
|
56
|
-
);
|
|
57
|
-
return v(() => {
|
|
58
|
-
s(A(a, t));
|
|
59
|
-
}, [a, t]), v(() => {
|
|
60
|
-
const d = /* @__PURE__ */ l((C) => () => {
|
|
61
|
-
s(C);
|
|
62
|
-
}, "updateStatus");
|
|
63
|
-
if (!a) return;
|
|
64
|
-
const c = d("loaded"), p = d("error");
|
|
65
|
-
return a.addEventListener("load", c), a.addEventListener("error", p), e && (a.referrerPolicy = e), typeof o == "string" && (a.crossOrigin = o), () => {
|
|
66
|
-
a.removeEventListener("load", c), a.removeEventListener("error", p);
|
|
67
|
-
};
|
|
68
|
-
}, [a, o, e]), u;
|
|
69
|
-
}
|
|
70
|
-
l(k, "useImageLoadingStatus");
|
|
71
|
-
var K = S, V = I, W = w;
|
|
72
|
-
export {
|
|
73
|
-
S as Avatar,
|
|
74
|
-
w as AvatarFallback,
|
|
75
|
-
I as AvatarImage,
|
|
76
|
-
W as Fallback,
|
|
77
|
-
V as Image,
|
|
78
|
-
K as Root,
|
|
79
|
-
G as createAvatarScope
|
|
80
|
-
};
|