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,192 +0,0 @@
|
|
|
1
|
-
var F = Object.defineProperty;
|
|
2
|
-
var f = (e, o) => F(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import { composeEventHandlers as d } from "../../primitive/dist/index.js";
|
|
5
|
-
import { createContextScope as I } from "../../react-context/dist/index.js";
|
|
6
|
-
import { useControllableState as U } from "../../react-use-controllable-state/dist/index.js";
|
|
7
|
-
import { useComposedRefs as W } from "../../react-compose-refs/dist/index.js";
|
|
8
|
-
import { createPopperScope as O, Root as B, Anchor as G, Content as K, Arrow as $ } from "../../react-popper/dist/index.js";
|
|
9
|
-
import { Portal as j } from "../../react-portal/dist/index.js";
|
|
10
|
-
import { Presence as _ } from "../../react-presence/dist/index.js";
|
|
11
|
-
import { Primitive as V } from "../../react-primitive/dist/index.js";
|
|
12
|
-
import { DismissableLayer as q } from "../../react-dismissable-layer/dist/index.js";
|
|
13
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
14
|
-
var T, E = "HoverCard", [y, pe] = I(E, [
|
|
15
|
-
O
|
|
16
|
-
]), g = O(), [z, x] = y(E), N = /* @__PURE__ */ f((e) => {
|
|
17
|
-
const {
|
|
18
|
-
__scopeHoverCard: o,
|
|
19
|
-
children: t,
|
|
20
|
-
open: s,
|
|
21
|
-
defaultOpen: a,
|
|
22
|
-
onOpenChange: c,
|
|
23
|
-
openDelay: v = 700,
|
|
24
|
-
closeDelay: C = 300
|
|
25
|
-
} = e, l = g(o), m = n.useRef(0), u = n.useRef(0), h = n.useRef(!1), p = n.useRef(!1), [P, r] = U({
|
|
26
|
-
prop: s,
|
|
27
|
-
defaultProp: a ?? !1,
|
|
28
|
-
onChange: c,
|
|
29
|
-
caller: E
|
|
30
|
-
}), R = n.useCallback(() => {
|
|
31
|
-
clearTimeout(u.current), m.current = window.setTimeout(() => r(!0), v);
|
|
32
|
-
}, [v, r]), S = n.useCallback(() => {
|
|
33
|
-
clearTimeout(m.current), !h.current && !p.current && (u.current = window.setTimeout(() => r(!1), C));
|
|
34
|
-
}, [C, r]), k = n.useCallback(() => r(!1), [r]);
|
|
35
|
-
return n.useEffect(() => () => {
|
|
36
|
-
clearTimeout(m.current), clearTimeout(u.current);
|
|
37
|
-
}, []), /* @__PURE__ */ i(
|
|
38
|
-
z,
|
|
39
|
-
{
|
|
40
|
-
scope: o,
|
|
41
|
-
open: P,
|
|
42
|
-
onOpenChange: r,
|
|
43
|
-
onOpen: R,
|
|
44
|
-
onClose: S,
|
|
45
|
-
onDismiss: k,
|
|
46
|
-
hasSelectionRef: h,
|
|
47
|
-
isPointerDownOnContentRef: p,
|
|
48
|
-
children: /* @__PURE__ */ i(B, { ...l, children: t })
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}, "HoverCard");
|
|
52
|
-
N.displayName = E;
|
|
53
|
-
var D = "HoverCardTrigger", A = n.forwardRef(
|
|
54
|
-
(e, o) => {
|
|
55
|
-
const { __scopeHoverCard: t, ...s } = e, a = x(D, t), c = g(t);
|
|
56
|
-
return /* @__PURE__ */ i(G, { asChild: !0, ...c, children: /* @__PURE__ */ i(
|
|
57
|
-
V.a,
|
|
58
|
-
{
|
|
59
|
-
"data-state": a.open ? "open" : "closed",
|
|
60
|
-
...s,
|
|
61
|
-
ref: o,
|
|
62
|
-
onPointerEnter: d(e.onPointerEnter, b(a.onOpen)),
|
|
63
|
-
onPointerLeave: d(e.onPointerLeave, b(a.onClose)),
|
|
64
|
-
onFocus: d(e.onFocus, a.onOpen),
|
|
65
|
-
onBlur: d(e.onBlur, a.onClose),
|
|
66
|
-
onTouchStart: d(e.onTouchStart, (v) => v.preventDefault())
|
|
67
|
-
}
|
|
68
|
-
) });
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
A.displayName = D;
|
|
72
|
-
var H = "HoverCardPortal", [J, Q] = y(H, {
|
|
73
|
-
forceMount: void 0
|
|
74
|
-
}), L = /* @__PURE__ */ f((e) => {
|
|
75
|
-
const { __scopeHoverCard: o, forceMount: t, children: s, container: a } = e, c = x(H, o);
|
|
76
|
-
return /* @__PURE__ */ i(J, { scope: o, forceMount: t, children: /* @__PURE__ */ i(_, { present: t || c.open, children: /* @__PURE__ */ i(j, { asChild: !0, container: a, children: s }) }) });
|
|
77
|
-
}, "HoverCardPortal");
|
|
78
|
-
L.displayName = H;
|
|
79
|
-
var w = "HoverCardContent", M = n.forwardRef(
|
|
80
|
-
(e, o) => {
|
|
81
|
-
const t = Q(w, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...a } = e, c = x(w, e.__scopeHoverCard);
|
|
82
|
-
return /* @__PURE__ */ i(_, { present: s || c.open, children: /* @__PURE__ */ i(
|
|
83
|
-
X,
|
|
84
|
-
{
|
|
85
|
-
"data-state": c.open ? "open" : "closed",
|
|
86
|
-
...a,
|
|
87
|
-
onPointerEnter: d(e.onPointerEnter, b(c.onOpen)),
|
|
88
|
-
onPointerLeave: d(e.onPointerLeave, b(c.onClose)),
|
|
89
|
-
ref: o
|
|
90
|
-
}
|
|
91
|
-
) });
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
M.displayName = w;
|
|
95
|
-
var X = n.forwardRef((e, o) => {
|
|
96
|
-
const {
|
|
97
|
-
__scopeHoverCard: t,
|
|
98
|
-
onEscapeKeyDown: s,
|
|
99
|
-
onPointerDownOutside: a,
|
|
100
|
-
onFocusOutside: c,
|
|
101
|
-
onInteractOutside: v,
|
|
102
|
-
...C
|
|
103
|
-
} = e, l = x(w, t), m = g(t), u = n.useRef(null), h = W(o, u), [p, P] = n.useState(!1);
|
|
104
|
-
return n.useEffect(() => {
|
|
105
|
-
if (p) {
|
|
106
|
-
const r = document.body;
|
|
107
|
-
return T = r.style.userSelect || r.style.webkitUserSelect, r.style.userSelect = "none", r.style.webkitUserSelect = "none", () => {
|
|
108
|
-
r.style.userSelect = T, r.style.webkitUserSelect = T;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}, [p]), n.useEffect(() => {
|
|
112
|
-
if (u.current) {
|
|
113
|
-
const r = /* @__PURE__ */ f(() => {
|
|
114
|
-
P(!1), l.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
115
|
-
var S;
|
|
116
|
-
((S = document.getSelection()) == null ? void 0 : S.toString()) !== "" && (l.hasSelectionRef.current = !0);
|
|
117
|
-
});
|
|
118
|
-
}, "handlePointerUp");
|
|
119
|
-
return document.addEventListener("pointerup", r), () => {
|
|
120
|
-
document.removeEventListener("pointerup", r), l.hasSelectionRef.current = !1, l.isPointerDownOnContentRef.current = !1;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
}, [l.isPointerDownOnContentRef, l.hasSelectionRef]), n.useEffect(() => {
|
|
124
|
-
u.current && ee(u.current).forEach((R) => R.setAttribute("tabindex", "-1"));
|
|
125
|
-
}), /* @__PURE__ */ i(
|
|
126
|
-
q,
|
|
127
|
-
{
|
|
128
|
-
asChild: !0,
|
|
129
|
-
disableOutsidePointerEvents: !1,
|
|
130
|
-
onInteractOutside: v,
|
|
131
|
-
onEscapeKeyDown: s,
|
|
132
|
-
onPointerDownOutside: a,
|
|
133
|
-
onFocusOutside: d(c, (r) => {
|
|
134
|
-
r.preventDefault();
|
|
135
|
-
}),
|
|
136
|
-
onDismiss: l.onDismiss,
|
|
137
|
-
children: /* @__PURE__ */ i(
|
|
138
|
-
K,
|
|
139
|
-
{
|
|
140
|
-
...m,
|
|
141
|
-
...C,
|
|
142
|
-
onPointerDown: d(C.onPointerDown, (r) => {
|
|
143
|
-
r.currentTarget.contains(r.target) && P(!0), l.hasSelectionRef.current = !1, l.isPointerDownOnContentRef.current = !0;
|
|
144
|
-
}),
|
|
145
|
-
ref: h,
|
|
146
|
-
style: {
|
|
147
|
-
...C.style,
|
|
148
|
-
userSelect: p ? "text" : void 0,
|
|
149
|
-
// Safari requires prefix
|
|
150
|
-
WebkitUserSelect: p ? "text" : void 0,
|
|
151
|
-
"--radix-hover-card-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
152
|
-
"--radix-hover-card-content-available-width": "var(--radix-popper-available-width)",
|
|
153
|
-
"--radix-hover-card-content-available-height": "var(--radix-popper-available-height)",
|
|
154
|
-
"--radix-hover-card-trigger-width": "var(--radix-popper-anchor-width)",
|
|
155
|
-
"--radix-hover-card-trigger-height": "var(--radix-popper-anchor-height)"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
}), Y = "HoverCardArrow", Z = n.forwardRef(
|
|
162
|
-
(e, o) => {
|
|
163
|
-
const { __scopeHoverCard: t, ...s } = e, a = g(t);
|
|
164
|
-
return /* @__PURE__ */ i($, { ...a, ...s, ref: o });
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
Z.displayName = Y;
|
|
168
|
-
function b(e) {
|
|
169
|
-
return (o) => o.pointerType === "touch" ? void 0 : e();
|
|
170
|
-
}
|
|
171
|
-
f(b, "excludeTouch");
|
|
172
|
-
function ee(e) {
|
|
173
|
-
const o = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
174
|
-
acceptNode: /* @__PURE__ */ f((s) => s.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP, "acceptNode")
|
|
175
|
-
});
|
|
176
|
-
for (; t.nextNode(); ) o.push(t.currentNode);
|
|
177
|
-
return o;
|
|
178
|
-
}
|
|
179
|
-
f(ee, "getTabbableNodes");
|
|
180
|
-
var fe = N, ve = A, Ce = L, me = M;
|
|
181
|
-
export {
|
|
182
|
-
me as Content,
|
|
183
|
-
N as HoverCard,
|
|
184
|
-
Z as HoverCardArrow,
|
|
185
|
-
M as HoverCardContent,
|
|
186
|
-
L as HoverCardPortal,
|
|
187
|
-
A as HoverCardTrigger,
|
|
188
|
-
Ce as Portal,
|
|
189
|
-
fe as Root,
|
|
190
|
-
ve as Trigger,
|
|
191
|
-
pe as createHoverCardScope
|
|
192
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var s = Object.defineProperty;
|
|
2
|
-
var o = (t, e) => s(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import * as r from "react";
|
|
4
|
-
import { useLayoutEffect as f } from "../../react-use-layout-effect/dist/index.js";
|
|
5
|
-
var c = r[" useId ".trim().toString()] || (() => {
|
|
6
|
-
}), i = 0;
|
|
7
|
-
function m(t) {
|
|
8
|
-
const [e, u] = r.useState(c());
|
|
9
|
-
return f(() => {
|
|
10
|
-
u((a) => a ?? String(i++));
|
|
11
|
-
}, [t]), t || (e ? `radix-${e}` : "");
|
|
12
|
-
}
|
|
13
|
-
o(m, "useId");
|
|
14
|
-
export {
|
|
15
|
-
m as useId
|
|
16
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var o = (t, a) => f(t, "name", { value: a, configurable: !0 });
|
|
3
|
-
import * as l from "react";
|
|
4
|
-
import { Primitive as m } from "../../react-primitive/dist/index.js";
|
|
5
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
-
var n = "Label", i = l.forwardRef((t, a) => /* @__PURE__ */ u(
|
|
7
|
-
m.label,
|
|
8
|
-
{
|
|
9
|
-
...t,
|
|
10
|
-
ref: a,
|
|
11
|
-
onMouseDown: /* @__PURE__ */ o((e) => {
|
|
12
|
-
var r;
|
|
13
|
-
e.target.closest("button, input, select, textarea") || ((r = t.onMouseDown) == null || r.call(t, e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
|
|
14
|
-
}, "onMouseDown")
|
|
15
|
-
}
|
|
16
|
-
));
|
|
17
|
-
i.displayName = n;
|
|
18
|
-
var g = i;
|
|
19
|
-
export {
|
|
20
|
-
i as Label,
|
|
21
|
-
g as Root
|
|
22
|
-
};
|