@anoki/fse-ui 1.0.698 → 1.0.700
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/ui/CardDoctor/CardDoctor.css +1 -1
- package/dist/components/ui/filters/CheckboxFilter/CheckboxFilter.css +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +2 -0
- package/dist/index.cjs387.js.map +1 -0
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs393.js +2 -0
- package/dist/index.cjs393.js.map +1 -0
- package/dist/index.cjs394.js +2 -0
- package/dist/index.cjs394.js.map +1 -0
- package/dist/{index.cjs400.js → index.cjs395.js} +2 -2
- package/dist/{index.cjs400.js.map → index.cjs395.js.map} +1 -1
- package/dist/{index.cjs401.js → index.cjs396.js} +1 -1
- package/dist/{index.cjs401.js.map → index.cjs396.js.map} +1 -1
- package/dist/{index.cjs402.js → index.cjs397.js} +1 -1
- package/dist/{index.cjs402.js.map → index.cjs397.js.map} +1 -1
- package/dist/index.cjs398.js +1 -1
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/{index.cjs405.js → index.cjs406.js} +1 -1
- package/dist/{index.cjs405.js.map → index.cjs406.js.map} +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs433.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -38
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +38 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es240.js +7 -7
- package/dist/index.es244.js +1 -1
- package/dist/index.es251.js +5 -5
- package/dist/index.es261.js +1 -1
- package/dist/index.es267.js +13 -13
- package/dist/index.es274.js +1 -1
- package/dist/index.es279.js +1 -1
- package/dist/index.es286.js +1 -1
- package/dist/index.es294.js +5 -5
- package/dist/index.es333.js +4 -4
- package/dist/index.es361.js +1 -1
- package/dist/index.es362.js +2 -2
- package/dist/index.es380.js +15 -27
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es383.js +6 -32
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +23 -618
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +67 -10
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +30 -15
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +36 -0
- package/dist/index.es387.js.map +1 -0
- package/dist/index.es388.js +625 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +14 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/index.es392.js +1 -1
- package/dist/index.es393.js +128 -0
- package/dist/index.es393.js.map +1 -0
- package/dist/index.es394.js +138 -0
- package/dist/index.es394.js.map +1 -0
- package/dist/{index.es400.js → index.es395.js} +2 -2
- package/dist/{index.es400.js.map → index.es395.js.map} +1 -1
- package/dist/{index.es401.js → index.es396.js} +1 -1
- package/dist/{index.es401.js.map → index.es396.js.map} +1 -1
- package/dist/{index.es402.js → index.es397.js} +1 -1
- package/dist/{index.es402.js.map → index.es397.js.map} +1 -1
- package/dist/index.es398.js +47 -122
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es399.js +47 -129
- package/dist/index.es399.js.map +1 -1
- package/dist/{index.es405.js → index.es406.js} +1 -1
- package/dist/{index.es405.js.map → index.es406.js.map} +1 -1
- package/dist/index.es420.js +1 -1
- package/dist/index.es424.js +3 -3
- package/dist/index.es426.js +3 -3
- package/dist/index.es427.js +6 -6
- package/dist/index.es431.js +8 -131
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +1 -1
- package/dist/index.es433.js +3 -9
- package/dist/index.es433.js.map +1 -1
- package/dist/index.es434.js +131 -2
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es436.js +1 -1
- package/dist/index.es437.js +3 -3
- package/dist/index.es449.js +4 -4
- package/dist/index.es451.js +1 -1
- package/dist/index.es453.js +4 -4
- package/dist/index.es463.js +512 -54
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +126 -68
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +128 -8
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +68 -13
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +8 -61
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +11 -520
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +61 -126
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +61 -125
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es51.js +11 -10
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es62.js +43 -20
- package/dist/index.es62.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs379.js +0 -2
- package/dist/index.cjs379.js.map +0 -1
- package/dist/index.cjs381.js +0 -2
- package/dist/index.cjs381.js.map +0 -1
- package/dist/index.cjs382.js +0 -2
- package/dist/index.cjs382.js.map +0 -1
- package/dist/index.cjs403.js +0 -2
- package/dist/index.cjs403.js.map +0 -1
- package/dist/index.cjs404.js +0 -2
- package/dist/index.cjs404.js.map +0 -1
- package/dist/index.es379.js +0 -10
- package/dist/index.es379.js.map +0 -1
- package/dist/index.es381.js +0 -71
- package/dist/index.es381.js.map +0 -1
- package/dist/index.es382.js +0 -33
- package/dist/index.es382.js.map +0 -1
- package/dist/index.es403.js +0 -53
- package/dist/index.es403.js.map +0 -1
- package/dist/index.es404.js +0 -56
- package/dist/index.es404.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es240.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as p from "react";
|
2
|
-
import { composeEventHandlers as m } from "./index.
|
3
|
-
import { composeRefs as E } from "./index.
|
4
|
-
import { createContextScope as S } from "./index.
|
5
|
-
import { useControllableState as P } from "./index.
|
6
|
-
import { Primitive as y } from "./index.
|
7
|
-
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.
|
8
|
-
import { useId as g } from "./index.
|
2
|
+
import { composeEventHandlers as m } from "./index.es383.js";
|
3
|
+
import { composeRefs as E } from "./index.es384.js";
|
4
|
+
import { createContextScope as S } from "./index.es385.js";
|
5
|
+
import { useControllableState as P } from "./index.es386.js";
|
6
|
+
import { Primitive as y } from "./index.es387.js";
|
7
|
+
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es388.js";
|
8
|
+
import { useId as g } from "./index.es389.js";
|
9
9
|
import { j as a } from "./index.es209.js";
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
11
11
|
M,
|
package/dist/index.es244.js
CHANGED
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es25.js";
|
|
3
3
|
import { HeaderTopBanner as y } from "./index.es21.js";
|
4
4
|
import { useState as g, useRef as w, useCallback as C, useEffect as u } from "react";
|
5
5
|
import { clsx as r } from "./index.es211.js";
|
6
|
-
import { useFocusTrap as N } from "./index.
|
6
|
+
import { useFocusTrap as N } from "./index.es380.js";
|
7
7
|
import { Container as k } from "./index.es6.js";
|
8
8
|
import './components/navigations/HeaderMobile/HeaderMobile.css';/* empty css */
|
9
9
|
import { Col as L } from "./index.es10.js";
|
package/dist/index.es251.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as n from "react";
|
2
|
-
import { useComposedRefs as N } from "./index.
|
3
|
-
import { createContextScope as M } from "./index.
|
4
|
-
import { composeEventHandlers as S } from "./index.
|
5
|
-
import { useControllableState as O } from "./index.
|
2
|
+
import { useComposedRefs as N } from "./index.es384.js";
|
3
|
+
import { createContextScope as M } from "./index.es385.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es383.js";
|
5
|
+
import { useControllableState as O } from "./index.es386.js";
|
6
6
|
import { usePrevious as A } from "./index.es390.js";
|
7
7
|
import { useSize as B } from "./index.es391.js";
|
8
8
|
import { Presence as H } from "./index.es392.js";
|
9
|
-
import { Primitive as j } from "./index.
|
9
|
+
import { Primitive as j } from "./index.es387.js";
|
10
10
|
import { j as f } from "./index.es209.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es261.js
CHANGED
package/dist/index.es267.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
3
|
-
import { useComposedRefs as C } from "./index.
|
4
|
-
import { createContextScope as B, createContext as H } from "./index.
|
5
|
-
import { useId as x } from "./index.
|
6
|
-
import { useControllableState as V } from "./index.
|
7
|
-
import { DismissableLayer as q } from "./index.
|
8
|
-
import { FocusScope as K } from "./index.
|
9
|
-
import { Portal as U } from "./index.
|
2
|
+
import { composeEventHandlers as p } from "./index.es383.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es384.js";
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es385.js";
|
5
|
+
import { useId as x } from "./index.es389.js";
|
6
|
+
import { useControllableState as V } from "./index.es386.js";
|
7
|
+
import { DismissableLayer as q } from "./index.es393.js";
|
8
|
+
import { FocusScope as K } from "./index.es394.js";
|
9
|
+
import { Portal as U } from "./index.es395.js";
|
10
10
|
import { Presence as R } from "./index.es392.js";
|
11
|
-
import { Primitive as m } from "./index.
|
12
|
-
import { useFocusGuards as Y } from "./index.
|
13
|
-
import Z from "./index.
|
14
|
-
import { hideOthers as z } from "./index.
|
15
|
-
import { createSlot as J } from "./index.
|
11
|
+
import { Primitive as m } from "./index.es387.js";
|
12
|
+
import { useFocusGuards as Y } from "./index.es396.js";
|
13
|
+
import Z from "./index.es397.js";
|
14
|
+
import { hideOthers as z } from "./index.es398.js";
|
15
|
+
import { createSlot as J } from "./index.es399.js";
|
16
16
|
import { j as i } from "./index.es209.js";
|
17
17
|
var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
18
18
|
const {
|
package/dist/index.es274.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es209.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as ConsentModalFooter
|
package/dist/index.es279.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es209.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as DoctorModalFooter
|
package/dist/index.es286.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es209.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({
|
4
4
|
children: o
|
5
5
|
}) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
package/dist/index.es294.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as T } from "./index.
|
3
|
-
import { useComposedRefs as _ } from "./index.
|
4
|
-
import { createContextScope as H } from "./index.
|
5
|
-
import { useControllableState as I } from "./index.
|
2
|
+
import { composeEventHandlers as T } from "./index.es383.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es384.js";
|
4
|
+
import { createContextScope as H } from "./index.es385.js";
|
5
|
+
import { useControllableState as I } from "./index.es386.js";
|
6
6
|
import { usePrevious as M } from "./index.es390.js";
|
7
7
|
import { useSize as N } from "./index.es391.js";
|
8
|
-
import { Primitive as w } from "./index.
|
8
|
+
import { Primitive as w } from "./index.es387.js";
|
9
9
|
import { j as p } from "./index.es209.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es333.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as l from "react";
|
2
|
-
import { createContextScope as T } from "./index.
|
3
|
-
import { useComposedRefs as A } from "./index.
|
2
|
+
import { createContextScope as T } from "./index.es385.js";
|
3
|
+
import { useComposedRefs as A } from "./index.es384.js";
|
4
4
|
import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es267.js";
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
6
|
-
import { createSlottable as G } from "./index.
|
5
|
+
import { composeEventHandlers as F } from "./index.es383.js";
|
6
|
+
import { createSlottable as G } from "./index.es399.js";
|
7
7
|
import { j as i } from "./index.es209.js";
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
9
9
|
v
|
package/dist/index.es361.js
CHANGED
package/dist/index.es362.js
CHANGED
package/dist/index.es380.js
CHANGED
@@ -1,30 +1,18 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return () => {
|
16
|
-
for (let t = 0; t < c.length; t++) {
|
17
|
-
const e = c[t];
|
18
|
-
typeof e == "function" ? e() : l(n[t], null);
|
19
|
-
}
|
20
|
-
};
|
21
|
-
};
|
22
|
-
}
|
23
|
-
function s(...n) {
|
24
|
-
return f.useCallback(i(...n), n);
|
25
|
-
}
|
1
|
+
import { useEffect as l } from "react";
|
2
|
+
const f = (t, n) => {
|
3
|
+
l(() => {
|
4
|
+
if (!n || !t.current) return;
|
5
|
+
const o = t.current.querySelectorAll(
|
6
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
7
|
+
), c = o[0], r = o[o.length - 1], s = (e) => {
|
8
|
+
e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
|
9
|
+
}, u = document.activeElement;
|
10
|
+
return c.focus(), document.addEventListener("keydown", s), () => {
|
11
|
+
document.removeEventListener("keydown", s), n && (u == null || u.focus());
|
12
|
+
};
|
13
|
+
}, [n, t]);
|
14
|
+
};
|
26
15
|
export {
|
27
|
-
|
28
|
-
s as useComposedRefs
|
16
|
+
f as useFocusTrap
|
29
17
|
};
|
30
18
|
//# sourceMappingURL=index.es380.js.map
|
package/dist/index.es380.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es380.js","sources":["../
|
1
|
+
{"version":3,"file":"index.es380.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
|
package/dist/index.es383.js
CHANGED
@@ -1,36 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
"a",
|
7
|
-
"button",
|
8
|
-
"div",
|
9
|
-
"form",
|
10
|
-
"h2",
|
11
|
-
"h3",
|
12
|
-
"img",
|
13
|
-
"input",
|
14
|
-
"label",
|
15
|
-
"li",
|
16
|
-
"nav",
|
17
|
-
"ol",
|
18
|
-
"p",
|
19
|
-
"span",
|
20
|
-
"svg",
|
21
|
-
"ul"
|
22
|
-
], h = l.reduce((t, i) => {
|
23
|
-
const o = c(`Primitive.${i}`), r = p.forwardRef((e, s) => {
|
24
|
-
const { asChild: m, ...a } = e, n = m ? o : i;
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
|
26
|
-
});
|
27
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
28
|
-
}, {});
|
29
|
-
function w(t, i) {
|
30
|
-
t && f.flushSync(() => t.dispatchEvent(i));
|
1
|
+
function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
|
2
|
+
return function(s) {
|
3
|
+
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
4
|
+
return c == null ? void 0 : c(s);
|
5
|
+
};
|
31
6
|
}
|
32
7
|
export {
|
33
|
-
h as
|
34
|
-
w as dispatchDiscreteCustomEvent
|
8
|
+
h as composeEventHandlers
|
35
9
|
};
|
36
10
|
//# sourceMappingURL=index.es383.js.map
|
package/dist/index.es383.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es383.js","sources":["../node_modules/@radix-ui/
|
1
|
+
{"version":3,"file":"index.es383.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
|