@servicetitan/anvil2 1.2.5 → 1.2.7
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/Alert-2e4d9ed5.js +89 -0
- package/Alert-2e4d9ed5.js.map +1 -0
- package/Alert-94c37437.cjs +2 -0
- package/Alert-94c37437.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.css +1 -1
- package/Alert.js +1 -1
- package/{Announcement-d04009ea.js → Announcement-1db4ac33.js} +18 -17
- package/Announcement-1db4ac33.js.map +1 -0
- package/Announcement-2058bd02.cjs +2 -0
- package/Announcement-2058bd02.cjs.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.js +1 -1
- package/Badge-b8764640.cjs +2 -0
- package/Badge-b8764640.cjs.map +1 -0
- package/Badge-df96f15a.js +45 -0
- package/Badge-df96f15a.js.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.js +1 -1
- package/Button-30b35802.cjs +2 -0
- package/Button-30b35802.cjs.map +1 -0
- package/Button-3b93bd5d.js +289 -0
- package/Button-3b93bd5d.js.map +1 -0
- package/Button.cjs +1 -1
- package/Button.css +1 -1
- package/Button.js +27 -27
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +27 -27
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +27 -27
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +27 -27
- package/{Calendar-073dc10d.js → Calendar-cbfe3c06.js} +390 -368
- package/{Calendar-073dc10d.js.map → Calendar-cbfe3c06.js.map} +1 -1
- package/{Calendar-706f41ff.cjs → Calendar-ec151b3b.cjs} +2 -2
- package/{Calendar-706f41ff.cjs.map → Calendar-ec151b3b.cjs.map} +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.js +1 -1
- package/{Card-92ebca1f.cjs → Card-20628287.cjs} +2 -2
- package/{Card-92ebca1f.cjs.map → Card-20628287.cjs.map} +1 -1
- package/{Card-33f3ad0a.js → Card-bb358803.js} +6 -6
- package/{Card-33f3ad0a.js.map → Card-bb358803.js.map} +1 -1
- package/Card.cjs +1 -1
- package/Card.js +1 -1
- package/{Checkbox-d503c3b6.js → Checkbox-3de9628c.js} +24 -24
- package/Checkbox-3de9628c.js.map +1 -0
- package/Checkbox-d325d851.cjs +2 -0
- package/Checkbox-d325d851.cjs.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.js +1 -1
- package/{Chip-b52e1bd7.cjs → Chip-95370241.cjs} +2 -2
- package/{Chip-b52e1bd7.cjs.map → Chip-95370241.cjs.map} +1 -1
- package/{Chip-a8eb2656.js → Chip-c0f71a26.js} +15 -15
- package/Chip-c0f71a26.js.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.js +27 -27
- package/Details.cjs +1 -1
- package/Details.js +27 -27
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.js +36 -36
- package/Divider-6646eeb8.cjs +2 -0
- package/Divider-6646eeb8.cjs.map +1 -0
- package/Divider-b3bff73a.js +74 -0
- package/Divider-b3bff73a.js.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.css +1 -1
- package/Divider.js +1 -1
- package/{Drawer-f68286e8.js → Drawer-9775ed75.js} +65 -46
- package/Drawer-9775ed75.js.map +1 -0
- package/Drawer-dff5abf1.cjs +2 -0
- package/Drawer-dff5abf1.cjs.map +1 -0
- package/Drawer.cjs +1 -1
- package/Drawer.js +1 -1
- package/{Flex-4b128a0e.cjs → Flex-971b5295.cjs} +2 -2
- package/{Flex-4b128a0e.cjs.map → Flex-971b5295.cjs.map} +1 -1
- package/{Flex-f6e67921.js → Flex-d338e855.js} +2 -2
- package/{Flex-f6e67921.js.map → Flex-d338e855.js.map} +1 -1
- package/Flex.cjs +1 -1
- package/Flex.js +1 -1
- package/{Grid-8226f7a1.cjs → Grid-37ded954.cjs} +2 -2
- package/{Grid-8226f7a1.cjs.map → Grid-37ded954.cjs.map} +1 -1
- package/{Grid-992de375.js → Grid-5bad450f.js} +4 -4
- package/{Grid-992de375.js.map → Grid-5bad450f.js.map} +1 -1
- package/Grid.cjs +1 -1
- package/Grid.js +1 -1
- package/{Helper-74a1f07f-6cf9865b.cjs → Helper-74a1f07f-30e4fd46.cjs} +2 -2
- package/{Helper-74a1f07f-6cf9865b.cjs.map → Helper-74a1f07f-30e4fd46.cjs.map} +1 -1
- package/{Helper-74a1f07f-067ae3f7.js → Helper-74a1f07f-60547798.js} +3 -3
- package/{Helper-74a1f07f-067ae3f7.js.map → Helper-74a1f07f-60547798.js.map} +1 -1
- package/{Icon-ae9b951b.cjs → Icon-43ce0e6c.cjs} +2 -2
- package/{Icon-ae9b951b.cjs.map → Icon-43ce0e6c.cjs.map} +1 -1
- package/{Icon-fa8f3dc8.js → Icon-b443eea4.js} +8 -8
- package/Icon-b443eea4.js.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.js +1 -1
- package/Link.cjs +1 -1
- package/Link.js +27 -27
- package/ListView-43bbc290.cjs +2 -0
- package/ListView-43bbc290.cjs.map +1 -0
- package/{ListView-1f75e2de.js → ListView-482c54ad.js} +100 -100
- package/ListView-482c54ad.js.map +1 -0
- package/ListView.cjs +1 -1
- package/ListView.js +1 -1
- package/Listbox-8c610bf2.cjs +2 -0
- package/Listbox-8c610bf2.cjs.map +1 -0
- package/{Listbox-cdf02568.js → Listbox-b110c64d.js} +68 -68
- package/Listbox-b110c64d.js.map +1 -0
- package/Listbox.cjs +1 -1
- package/Listbox.js +1 -1
- package/Menu.cjs +1 -1
- package/Menu.js +1 -1
- package/Overflow.cjs +1 -1
- package/Overflow.js +27 -27
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.d.ts +1 -22
- package/Popover.js +49 -49
- package/Popover.js.map +1 -1
- package/{ProgressBar-5f350a3f.js → ProgressBar-91240dab.js} +94 -92
- package/ProgressBar-91240dab.js.map +1 -0
- package/ProgressBar-b25b2493.cjs +2 -0
- package/ProgressBar-b25b2493.cjs.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.js +1 -1
- package/{Radio-4189b000.js → Radio-a747c89a.js} +13 -13
- package/Radio-a747c89a.js.map +1 -0
- package/Radio-ed00ea9d.cjs +2 -0
- package/Radio-ed00ea9d.cjs.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.js +1 -1
- package/{SideNav-e92d850f.js → SideNav-b5ef91d4.js} +118 -118
- package/SideNav-b5ef91d4.js.map +1 -0
- package/{SideNav-6de704fd.cjs → SideNav-dbcdf7cb.cjs} +6 -6
- package/SideNav-dbcdf7cb.cjs.map +1 -0
- package/SideNav.cjs +1 -1
- package/SideNav.js +1 -1
- package/{SrOnly-0c13a721.js → SrOnly-864bd4cb.js} +3 -3
- package/SrOnly-864bd4cb.js.map +1 -0
- package/SrOnly-88e8fca6.cjs +2 -0
- package/SrOnly-88e8fca6.cjs.map +1 -0
- package/SrOnly.cjs +1 -1
- package/SrOnly.js +1 -1
- package/Stepper-7c787b24.js +391 -0
- package/Stepper-7c787b24.js.map +1 -0
- package/Stepper-e08b9998.cjs +2 -0
- package/Stepper-e08b9998.cjs.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.d.ts +2 -2
- package/Stepper.js +4 -4
- package/{Switch-b0a37fc1.js → Switch-39010760.js} +21 -21
- package/{Switch-b0a37fc1.js.map → Switch-39010760.js.map} +1 -1
- package/Switch-c0bea091.cjs +2 -0
- package/{Switch-285b3272.cjs.map → Switch-c0bea091.cjs.map} +1 -1
- package/Switch.cjs +1 -1
- package/Switch.js +1 -1
- package/Tab-0bcbe9c7.cjs +10 -0
- package/Tab-0bcbe9c7.cjs.map +1 -0
- package/Tab-f636d6c5.js +422 -0
- package/Tab-f636d6c5.js.map +1 -0
- package/Tab.cjs +1 -1
- package/Tab.js +1 -1
- package/{Text-4c30916c.js → Text-465104f6.js} +46 -46
- package/Text-465104f6.js.map +1 -0
- package/Text-631c229a.cjs +2 -0
- package/Text-631c229a.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.js +27 -27
- package/Textarea.cjs +1 -1
- package/Textarea.js +27 -27
- package/{Toast-f15e9d36.js → Toast-36679136.js} +82 -66
- package/Toast-36679136.js.map +1 -0
- package/{Toast-834c85cd.cjs → Toast-44e3ff94.cjs} +5 -5
- package/Toast-44e3ff94.cjs.map +1 -0
- package/Toast.cjs +1 -1
- package/Toast.js +1 -1
- package/Tooltip.cjs +1 -1
- package/Tooltip.js +29 -29
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +3 -23
- package/anvil2.js +27 -27
- package/{index-8ee9499c.js → index-1dc4c6d3.js} +667 -605
- package/{index-8ee9499c.js.map → index-1dc4c6d3.js.map} +1 -1
- package/{index-dfb6272f.cjs → index-25ea279e.cjs} +5 -5
- package/{index-dfb6272f.cjs.map → index-25ea279e.cjs.map} +1 -1
- package/index-afacb017-0ced4668.cjs +2 -0
- package/index-afacb017-0ced4668.cjs.map +1 -0
- package/{index-098ca719-3c14c40c.js → index-afacb017-e81aec1d.js} +71 -68
- package/index-afacb017-e81aec1d.js.map +1 -0
- package/index-f91265d9-04a0345c.cjs +2 -0
- package/index-f91265d9-04a0345c.cjs.map +1 -0
- package/index-f91265d9-3d747651.js +121 -0
- package/index-f91265d9-3d747651.js.map +1 -0
- package/index3.css +1 -1
- package/{motion-9462a11a.js → motion-a0a946d6.js} +1696 -1638
- package/motion-a0a946d6.js.map +1 -0
- package/motion-dae3950e.cjs +2 -0
- package/motion-dae3950e.cjs.map +1 -0
- package/package.json +3 -4
- package/use-reduced-motion-a766a46b.cjs +2 -0
- package/use-reduced-motion-a766a46b.cjs.map +1 -0
- package/{use-reduced-motion-fa02c531.js → use-reduced-motion-b359504d.js} +11 -11
- package/use-reduced-motion-b359504d.js.map +1 -0
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +27 -27
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +27 -27
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +27 -27
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +27 -27
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +27 -27
- package/Alert-6336e146.cjs +0 -2
- package/Alert-6336e146.cjs.map +0 -1
- package/Alert-6faa0b05.js +0 -88
- package/Alert-6faa0b05.js.map +0 -1
- package/Announcement-d04009ea.js.map +0 -1
- package/Announcement-fff87b68.cjs +0 -2
- package/Announcement-fff87b68.cjs.map +0 -1
- package/Badge-0073b5a1.cjs +0 -2
- package/Badge-0073b5a1.cjs.map +0 -1
- package/Badge-f761458c.js +0 -35
- package/Badge-f761458c.js.map +0 -1
- package/Button-268ba8a9.cjs +0 -2
- package/Button-268ba8a9.cjs.map +0 -1
- package/Button-d05507c5.js +0 -289
- package/Button-d05507c5.js.map +0 -1
- package/Checkbox-d503c3b6.js.map +0 -1
- package/Checkbox-edf070c3.cjs +0 -2
- package/Checkbox-edf070c3.cjs.map +0 -1
- package/Chip-a8eb2656.js.map +0 -1
- package/Divider-86c1f4ea.cjs +0 -2
- package/Divider-86c1f4ea.cjs.map +0 -1
- package/Divider-edca965e.js +0 -74
- package/Divider-edca965e.js.map +0 -1
- package/Drawer-6c2a6e0c.cjs +0 -2
- package/Drawer-6c2a6e0c.cjs.map +0 -1
- package/Drawer-f68286e8.js.map +0 -1
- package/Icon-fa8f3dc8.js.map +0 -1
- package/ListView-14d80585.cjs +0 -2
- package/ListView-14d80585.cjs.map +0 -1
- package/ListView-1f75e2de.js.map +0 -1
- package/Listbox-306a8d62.cjs +0 -2
- package/Listbox-306a8d62.cjs.map +0 -1
- package/Listbox-cdf02568.js.map +0 -1
- package/ProgressBar-29d21945.cjs +0 -2
- package/ProgressBar-29d21945.cjs.map +0 -1
- package/ProgressBar-5f350a3f.js.map +0 -1
- package/Radio-4189b000.js.map +0 -1
- package/Radio-abd4d3fd.cjs +0 -2
- package/Radio-abd4d3fd.cjs.map +0 -1
- package/SideNav-6de704fd.cjs.map +0 -1
- package/SideNav-e92d850f.js.map +0 -1
- package/SrOnly-0c13a721.js.map +0 -1
- package/SrOnly-ecf7240b.cjs +0 -2
- package/SrOnly-ecf7240b.cjs.map +0 -1
- package/Stepper-e776cc28.cjs +0 -2
- package/Stepper-e776cc28.cjs.map +0 -1
- package/Stepper-fa554908.js +0 -390
- package/Stepper-fa554908.js.map +0 -1
- package/Switch-285b3272.cjs +0 -2
- package/Tab-1934a4ca.js +0 -448
- package/Tab-1934a4ca.js.map +0 -1
- package/Tab-ad70a0a5.cjs +0 -10
- package/Tab-ad70a0a5.cjs.map +0 -1
- package/Text-4c30916c.js.map +0 -1
- package/Text-ed02cc62.cjs +0 -2
- package/Text-ed02cc62.cjs.map +0 -1
- package/Toast-834c85cd.cjs.map +0 -1
- package/Toast-f15e9d36.js.map +0 -1
- package/index-098ca719-3c14c40c.js.map +0 -1
- package/index-098ca719-8e068129.cjs +0 -2
- package/index-098ca719-8e068129.cjs.map +0 -1
- package/index-da56edbc-372336bd.js +0 -120
- package/index-da56edbc-372336bd.js.map +0 -1
- package/index-da56edbc-53f59f54.cjs +0 -2
- package/index-da56edbc-53f59f54.cjs.map +0 -1
- package/motion-9462a11a.js.map +0 -1
- package/motion-ee26ec15.cjs +0 -2
- package/motion-ee26ec15.cjs.map +0 -1
- package/use-reduced-motion-00575ab2.cjs +0 -2
- package/use-reduced-motion-00575ab2.cjs.map +0 -1
- package/use-reduced-motion-fa02c531.js.map +0 -1
- /package/{index-098ca719.css → index-afacb017.css} +0 -0
- /package/{index-da56edbc.css → index-f91265d9.css} +0 -0
package/Tab-1934a4ca.js
DELETED
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
import "./Tab.css";
|
|
2
|
-
import { f as g } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
3
|
-
import * as z from "react";
|
|
4
|
-
import { useRef as R, useState as M, useCallback as k, useId as S, useContext as F, useInsertionEffect as ee, useMemo as H, useEffect as K, cloneElement as te, Children as ne, isValidElement as re, forwardRef as B, createContext as oe } from "react";
|
|
5
|
-
import { u as U } from "./floating-ui.react-8d61182d.js";
|
|
6
|
-
import { c as D } from "./index-e0f6271a.js";
|
|
7
|
-
import { I as W } from "./Icon-fa8f3dc8.js";
|
|
8
|
-
import { J as se } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
9
|
-
import { u as V } from "./use-reduced-motion-fa02c531.js";
|
|
10
|
-
import { u as q, f as le, M as ie, a as ae, P as ce, L as ue, i as de, m as G } from "./motion-9462a11a.js";
|
|
11
|
-
import { j } from "./jsx-runtime-82a9ddf6.js";
|
|
12
|
-
function J() {
|
|
13
|
-
const n = R(!1);
|
|
14
|
-
return q(() => (n.current = !0, () => {
|
|
15
|
-
n.current = !1;
|
|
16
|
-
}), []), n;
|
|
17
|
-
}
|
|
18
|
-
function fe() {
|
|
19
|
-
const n = J(), [s, t] = M(0), r = k(() => {
|
|
20
|
-
n.current && t(s + 1);
|
|
21
|
-
}, [s]);
|
|
22
|
-
return [k(() => le.postRender(r), [r]), s];
|
|
23
|
-
}
|
|
24
|
-
class pe extends z.Component {
|
|
25
|
-
getSnapshotBeforeUpdate(s) {
|
|
26
|
-
const t = this.props.childRef.current;
|
|
27
|
-
if (t && s.isPresent && !this.props.isPresent) {
|
|
28
|
-
const r = this.props.sizeRef.current;
|
|
29
|
-
r.height = t.offsetHeight || 0, r.width = t.offsetWidth || 0, r.top = t.offsetTop, r.left = t.offsetLeft;
|
|
30
|
-
}
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
35
|
-
*/
|
|
36
|
-
componentDidUpdate() {
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
return this.props.children;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function me({ children: n, isPresent: s }) {
|
|
43
|
-
const t = S(), r = R(null), v = R({
|
|
44
|
-
width: 0,
|
|
45
|
-
height: 0,
|
|
46
|
-
top: 0,
|
|
47
|
-
left: 0
|
|
48
|
-
}), { nonce: i } = F(ie);
|
|
49
|
-
return ee(() => {
|
|
50
|
-
const { width: f, height: u, top: m, left: d } = v.current;
|
|
51
|
-
if (s || !r.current || !f || !u)
|
|
52
|
-
return;
|
|
53
|
-
r.current.dataset.motionPopId = t;
|
|
54
|
-
const e = document.createElement("style");
|
|
55
|
-
return i && (e.nonce = i), document.head.appendChild(e), e.sheet && e.sheet.insertRule(`
|
|
56
|
-
[data-motion-pop-id="${t}"] {
|
|
57
|
-
position: absolute !important;
|
|
58
|
-
width: ${f}px !important;
|
|
59
|
-
height: ${u}px !important;
|
|
60
|
-
top: ${m}px !important;
|
|
61
|
-
left: ${d}px !important;
|
|
62
|
-
}
|
|
63
|
-
`), () => {
|
|
64
|
-
document.head.removeChild(e);
|
|
65
|
-
};
|
|
66
|
-
}, [s]), j.jsx(pe, { isPresent: s, childRef: r, sizeRef: v, children: z.cloneElement(n, { ref: r }) });
|
|
67
|
-
}
|
|
68
|
-
const $ = ({ children: n, initial: s, isPresent: t, onExitComplete: r, custom: v, presenceAffectsLayout: i, mode: f }) => {
|
|
69
|
-
const u = ae(he), m = S(), d = H(
|
|
70
|
-
() => ({
|
|
71
|
-
id: m,
|
|
72
|
-
initial: s,
|
|
73
|
-
isPresent: t,
|
|
74
|
-
custom: v,
|
|
75
|
-
onExitComplete: (e) => {
|
|
76
|
-
u.set(e, !0);
|
|
77
|
-
for (const a of u.values())
|
|
78
|
-
if (!a)
|
|
79
|
-
return;
|
|
80
|
-
r && r();
|
|
81
|
-
},
|
|
82
|
-
register: (e) => (u.set(e, !1), () => u.delete(e))
|
|
83
|
-
}),
|
|
84
|
-
/**
|
|
85
|
-
* If the presence of a child affects the layout of the components around it,
|
|
86
|
-
* we want to make a new context value to ensure they get re-rendered
|
|
87
|
-
* so they can detect that layout change.
|
|
88
|
-
*/
|
|
89
|
-
i ? [Math.random()] : [t]
|
|
90
|
-
);
|
|
91
|
-
return H(() => {
|
|
92
|
-
u.forEach((e, a) => u.set(a, !1));
|
|
93
|
-
}, [t]), z.useEffect(() => {
|
|
94
|
-
!t && !u.size && r && r();
|
|
95
|
-
}, [t]), f === "popLayout" && (n = j.jsx(me, { isPresent: t, children: n })), j.jsx(ce.Provider, { value: d, children: n });
|
|
96
|
-
};
|
|
97
|
-
function he() {
|
|
98
|
-
return /* @__PURE__ */ new Map();
|
|
99
|
-
}
|
|
100
|
-
function xe(n) {
|
|
101
|
-
return K(() => () => n(), []);
|
|
102
|
-
}
|
|
103
|
-
const P = (n) => n.key || "";
|
|
104
|
-
function ve(n, s) {
|
|
105
|
-
n.forEach((t) => {
|
|
106
|
-
const r = P(t);
|
|
107
|
-
s.set(r, t);
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function be(n) {
|
|
111
|
-
const s = [];
|
|
112
|
-
return ne.forEach(n, (t) => {
|
|
113
|
-
re(t) && s.push(t);
|
|
114
|
-
}), s;
|
|
115
|
-
}
|
|
116
|
-
const ge = ({ children: n, custom: s, initial: t = !0, onExitComplete: r, exitBeforeEnter: v, presenceAffectsLayout: i = !0, mode: f = "sync" }) => {
|
|
117
|
-
de(!v, "Replace exitBeforeEnter with mode='wait'");
|
|
118
|
-
const u = F(ue).forceRender || fe()[0], m = J(), d = be(n);
|
|
119
|
-
let e = d;
|
|
120
|
-
const a = R(/* @__PURE__ */ new Map()).current, w = R(e), h = R(/* @__PURE__ */ new Map()).current, l = R(!0);
|
|
121
|
-
if (q(() => {
|
|
122
|
-
l.current = !1, ve(d, h), w.current = e;
|
|
123
|
-
}), xe(() => {
|
|
124
|
-
l.current = !0, h.clear(), a.clear();
|
|
125
|
-
}), l.current)
|
|
126
|
-
return j.jsx(j.Fragment, { children: e.map((o) => j.jsx($, { isPresent: !0, initial: t ? void 0 : !1, presenceAffectsLayout: i, mode: f, children: o }, P(o))) });
|
|
127
|
-
e = [...e];
|
|
128
|
-
const x = w.current.map(P), b = d.map(P), N = x.length;
|
|
129
|
-
for (let o = 0; o < N; o++) {
|
|
130
|
-
const c = x[o];
|
|
131
|
-
b.indexOf(c) === -1 && !a.has(c) && a.set(c, void 0);
|
|
132
|
-
}
|
|
133
|
-
return f === "wait" && a.size && (e = []), a.forEach((o, c) => {
|
|
134
|
-
if (b.indexOf(c) !== -1)
|
|
135
|
-
return;
|
|
136
|
-
const E = h.get(c);
|
|
137
|
-
if (!E)
|
|
138
|
-
return;
|
|
139
|
-
const I = x.indexOf(c);
|
|
140
|
-
let y = o;
|
|
141
|
-
if (!y) {
|
|
142
|
-
const _ = () => {
|
|
143
|
-
a.delete(c);
|
|
144
|
-
const A = Array.from(h.keys()).filter((L) => !b.includes(L));
|
|
145
|
-
if (A.forEach((L) => h.delete(L)), w.current = d.filter((L) => {
|
|
146
|
-
const p = P(L);
|
|
147
|
-
return (
|
|
148
|
-
// filter out the node exiting
|
|
149
|
-
p === c || // filter out the leftover children
|
|
150
|
-
A.includes(p)
|
|
151
|
-
);
|
|
152
|
-
}), !a.size) {
|
|
153
|
-
if (m.current === !1)
|
|
154
|
-
return;
|
|
155
|
-
u(), r && r();
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
y = j.jsx($, { isPresent: !1, onExitComplete: _, custom: s, presenceAffectsLayout: i, mode: f, children: E }, P(E)), a.set(c, y);
|
|
159
|
-
}
|
|
160
|
-
e.splice(I, 0, y);
|
|
161
|
-
}), e = e.map((o) => {
|
|
162
|
-
const c = o.key;
|
|
163
|
-
return a.has(c) ? o : j.jsx($, { isPresent: !0, presenceAffectsLayout: i, mode: f, children: o }, P(o));
|
|
164
|
-
}), process.env.NODE_ENV !== "production" && f === "wait" && e.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), j.jsx(j.Fragment, { children: a.size ? e : e.map((o) => te(o)) });
|
|
165
|
-
};
|
|
166
|
-
const we = "_tab_1or1e_4", ye = "_inner_1or1e_70", _e = "_indicator_1or1e_83", Ce = "_scroller_1or1e_117", je = "_right_1or1e_125", Re = "_left_1or1e_125", Ee = "_fill_1or1e_145", C = {
|
|
167
|
-
tab: we,
|
|
168
|
-
"tab-panel": "_tab-panel_1or1e_17",
|
|
169
|
-
"tab-button": "_tab-button_1or1e_18",
|
|
170
|
-
"tab-list": "_tab-list_1or1e_19",
|
|
171
|
-
"overflow-prev": "_overflow-prev_1or1e_32",
|
|
172
|
-
"overflow-next": "_overflow-next_1or1e_33",
|
|
173
|
-
inner: ye,
|
|
174
|
-
indicator: _e,
|
|
175
|
-
scroller: Ce,
|
|
176
|
-
right: je,
|
|
177
|
-
left: Re,
|
|
178
|
-
fill: Ee
|
|
179
|
-
}, Y = B(
|
|
180
|
-
(n, s) => {
|
|
181
|
-
const t = R(null), r = V(), {
|
|
182
|
-
current: v,
|
|
183
|
-
items: i,
|
|
184
|
-
setCurrent: f,
|
|
185
|
-
focus: u,
|
|
186
|
-
setFocus: m,
|
|
187
|
-
uid: d,
|
|
188
|
-
onKeyDownHandler: e
|
|
189
|
-
} = F(O), {
|
|
190
|
-
onClick: a,
|
|
191
|
-
children: w,
|
|
192
|
-
onFocus: h,
|
|
193
|
-
onKeyDown: l,
|
|
194
|
-
controls: x,
|
|
195
|
-
id: b,
|
|
196
|
-
className: N,
|
|
197
|
-
...o
|
|
198
|
-
} = n, c = i && Array.prototype.indexOf.call(i, t.current), E = (_) => {
|
|
199
|
-
c !== void 0 && (a == null || a(_, c), f == null || f(c), m == null || m(c), i == null || i[c].focus());
|
|
200
|
-
}, I = (_) => {
|
|
201
|
-
e == null || e(_), l == null || l(_);
|
|
202
|
-
}, y = D(C["tab-button"], N);
|
|
203
|
-
return /* @__PURE__ */ g.jsxs(
|
|
204
|
-
"button",
|
|
205
|
-
{
|
|
206
|
-
type: "button",
|
|
207
|
-
role: "tab",
|
|
208
|
-
"data-anv": "TabButton",
|
|
209
|
-
id: b,
|
|
210
|
-
className: y,
|
|
211
|
-
"aria-selected": (i == null ? void 0 : i[v].id) === b,
|
|
212
|
-
"aria-controls": x,
|
|
213
|
-
onClick: E,
|
|
214
|
-
onKeyDown: I,
|
|
215
|
-
tabIndex: (i == null ? void 0 : i[u].id) === b ? 0 : -1,
|
|
216
|
-
...o,
|
|
217
|
-
ref: U([t, s]),
|
|
218
|
-
children: [
|
|
219
|
-
/* @__PURE__ */ g.jsx("span", { className: C.inner, children: w }),
|
|
220
|
-
(i == null ? void 0 : i[v].id) === b && /* @__PURE__ */ g.jsx(
|
|
221
|
-
G.span,
|
|
222
|
-
{
|
|
223
|
-
layoutId: d,
|
|
224
|
-
className: C.indicator,
|
|
225
|
-
transition: { duration: r ? 0 : 0.2 }
|
|
226
|
-
}
|
|
227
|
-
)
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
Y.displayName = "TabButton";
|
|
234
|
-
const Ne = (n) => /* @__PURE__ */ z.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...n }, /* @__PURE__ */ z.createElement("path", { d: "M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z" })), Ie = (n) => /* @__PURE__ */ z.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...n }, /* @__PURE__ */ z.createElement("path", { d: "M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z" })), Q = B(
|
|
235
|
-
(n, s) => {
|
|
236
|
-
const { className: t, children: r, onKeyDown: v, ...i } = n, { goToPrev: f, gotoNext: u, dir: m } = F(O), [d, e] = M(!1), [a, w] = M(!1), h = R(null), l = k(
|
|
237
|
-
(o) => {
|
|
238
|
-
const c = m === "ltr" ? o.scrollLeft > 0 : o.scrollLeft > o.offsetWidth - o.scrollWidth + 1, E = m === "ltr" ? o.scrollLeft < o.scrollWidth - o.offsetWidth : o.scrollLeft < 0;
|
|
239
|
-
e(c), w(E);
|
|
240
|
-
},
|
|
241
|
-
[m]
|
|
242
|
-
);
|
|
243
|
-
K(() => {
|
|
244
|
-
h.current && l(h.current);
|
|
245
|
-
}, [l]);
|
|
246
|
-
const x = (o) => {
|
|
247
|
-
const c = o.target;
|
|
248
|
-
l(c);
|
|
249
|
-
}, b = D(C["tab-list"], t), N = D(C.scroller, {
|
|
250
|
-
[C.left]: d,
|
|
251
|
-
[C.right]: a
|
|
252
|
-
});
|
|
253
|
-
return /* @__PURE__ */ g.jsxs("div", { ...i, className: b, "data-anv": "TabList", ref: s, children: [
|
|
254
|
-
(m === "ltr" ? d : a) && /* @__PURE__ */ g.jsx(
|
|
255
|
-
"button",
|
|
256
|
-
{
|
|
257
|
-
tabIndex: -1,
|
|
258
|
-
onClick: () => f == null ? void 0 : f(!1),
|
|
259
|
-
className: C["overflow-prev"],
|
|
260
|
-
"aria-label": "Previous tab",
|
|
261
|
-
children: /* @__PURE__ */ g.jsx(W, { svg: Ne, "aria-hidden": !0, size: "medium" })
|
|
262
|
-
}
|
|
263
|
-
),
|
|
264
|
-
/* @__PURE__ */ g.jsx(
|
|
265
|
-
"div",
|
|
266
|
-
{
|
|
267
|
-
onScroll: x,
|
|
268
|
-
className: N,
|
|
269
|
-
role: "tablist",
|
|
270
|
-
ref: h,
|
|
271
|
-
children: r
|
|
272
|
-
}
|
|
273
|
-
),
|
|
274
|
-
(m === "ltr" ? a : d) && /* @__PURE__ */ g.jsx(
|
|
275
|
-
"button",
|
|
276
|
-
{
|
|
277
|
-
tabIndex: -1,
|
|
278
|
-
onClick: () => u == null ? void 0 : u(!1),
|
|
279
|
-
className: C["overflow-next"],
|
|
280
|
-
"aria-label": "Next tab",
|
|
281
|
-
children: /* @__PURE__ */ g.jsx(W, { svg: Ie, "aria-hidden": !0, size: "medium" })
|
|
282
|
-
}
|
|
283
|
-
)
|
|
284
|
-
] });
|
|
285
|
-
}
|
|
286
|
-
);
|
|
287
|
-
Q.displayName = "TabList";
|
|
288
|
-
const X = B(
|
|
289
|
-
(n, s) => {
|
|
290
|
-
var t;
|
|
291
|
-
const { id: r, className: v, ...i } = n, { current: f, items: u } = F(O), m = V();
|
|
292
|
-
let d;
|
|
293
|
-
u == null || u.forEach((h, l) => {
|
|
294
|
-
h.getAttribute("aria-controls") === r && (d = h.id);
|
|
295
|
-
});
|
|
296
|
-
const e = ((t = u == null ? void 0 : u[f]) == null ? void 0 : t.getAttribute("aria-controls")) === r, a = m ? {
|
|
297
|
-
enter: {
|
|
298
|
-
opacity: 0
|
|
299
|
-
},
|
|
300
|
-
center: {
|
|
301
|
-
zIndex: 1,
|
|
302
|
-
opacity: 1
|
|
303
|
-
},
|
|
304
|
-
exit: {
|
|
305
|
-
zIndex: 0,
|
|
306
|
-
opacity: 0
|
|
307
|
-
}
|
|
308
|
-
} : {
|
|
309
|
-
enter: {
|
|
310
|
-
y: 50,
|
|
311
|
-
opacity: 0
|
|
312
|
-
},
|
|
313
|
-
center: {
|
|
314
|
-
zIndex: 1,
|
|
315
|
-
y: 0,
|
|
316
|
-
opacity: 1
|
|
317
|
-
},
|
|
318
|
-
exit: {
|
|
319
|
-
zIndex: 0,
|
|
320
|
-
y: -50,
|
|
321
|
-
opacity: 0
|
|
322
|
-
}
|
|
323
|
-
}, w = D(C["tab-panel"], v);
|
|
324
|
-
return e ? /* @__PURE__ */ g.jsx(
|
|
325
|
-
G.div,
|
|
326
|
-
{
|
|
327
|
-
variants: a,
|
|
328
|
-
initial: "enter",
|
|
329
|
-
animate: "center",
|
|
330
|
-
exit: "exit",
|
|
331
|
-
className: w,
|
|
332
|
-
transition: {
|
|
333
|
-
x: {
|
|
334
|
-
type: "spring",
|
|
335
|
-
stiffness: 300,
|
|
336
|
-
damping: 30
|
|
337
|
-
},
|
|
338
|
-
opacity: { duration: 1 }
|
|
339
|
-
},
|
|
340
|
-
...i,
|
|
341
|
-
role: "tabpanel",
|
|
342
|
-
"data-anv": "TabPanel",
|
|
343
|
-
id: r,
|
|
344
|
-
"aria-labelledby": d,
|
|
345
|
-
tabIndex: 0,
|
|
346
|
-
ref: s
|
|
347
|
-
}
|
|
348
|
-
) : /* @__PURE__ */ g.jsx(g.Fragment, {});
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
X.displayName = "TabPanel";
|
|
352
|
-
const Le = {
|
|
353
|
-
current: 0,
|
|
354
|
-
focus: 0
|
|
355
|
-
}, O = oe(Le), Z = B((n, s) => {
|
|
356
|
-
const { layoutStyles: t, componentProps: r } = se(n), { defaultIndex: v, className: i, style: f, fill: u, ...m } = r, d = R(null), [e, a] = M(), [w, h] = M(v ?? 0), [l, x] = M(v ?? 0), [b, N] = M("ltr"), o = D(C.tab, i, {
|
|
357
|
-
[C.fill]: u
|
|
358
|
-
}), c = S();
|
|
359
|
-
K(() => {
|
|
360
|
-
var p;
|
|
361
|
-
a((p = d.current) == null ? void 0 : p.querySelectorAll("[role=tab]:not([disabled])"));
|
|
362
|
-
}, [d]), K(() => {
|
|
363
|
-
var p, T;
|
|
364
|
-
((T = (p = d.current) == null ? void 0 : p.closest("[dir]")) == null ? void 0 : T.getAttribute("dir")) === "rtl" ? N("rtl") : N("ltr");
|
|
365
|
-
}, []);
|
|
366
|
-
const E = {
|
|
367
|
-
...f,
|
|
368
|
-
...t
|
|
369
|
-
}, I = (p) => {
|
|
370
|
-
p == null || p.scrollIntoView({
|
|
371
|
-
behavior: "smooth",
|
|
372
|
-
block: "nearest",
|
|
373
|
-
inline: "center"
|
|
374
|
-
});
|
|
375
|
-
}, y = k(
|
|
376
|
-
(p = !0) => {
|
|
377
|
-
if (l + 1 === (e == null ? void 0 : e.length)) {
|
|
378
|
-
x == null || x(0), e == null || e[0].focus(), I(e == null ? void 0 : e[0]);
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
x == null || x(l + 1), e == null || e[l + 1].focus(), I(e == null ? void 0 : e[l + 1]);
|
|
382
|
-
},
|
|
383
|
-
[l, e]
|
|
384
|
-
), _ = k(
|
|
385
|
-
(p = !0) => {
|
|
386
|
-
if (l === 0) {
|
|
387
|
-
const T = e ? (e == null ? void 0 : e.length) - 1 : 0;
|
|
388
|
-
x == null || x(T), e == null || e[T].focus(), I(e == null ? void 0 : e[T]);
|
|
389
|
-
return;
|
|
390
|
-
}
|
|
391
|
-
x == null || x(l - 1), e == null || e[l - 1].focus(), I(e == null ? void 0 : e[l - 1]);
|
|
392
|
-
},
|
|
393
|
-
[l, e]
|
|
394
|
-
), A = k(
|
|
395
|
-
(p) => {
|
|
396
|
-
switch (console.log("working", p), p.code) {
|
|
397
|
-
case "Enter":
|
|
398
|
-
case "Space":
|
|
399
|
-
p.preventDefault(), h == null || h(l);
|
|
400
|
-
break;
|
|
401
|
-
case "ArrowRight":
|
|
402
|
-
p.preventDefault(), b === "ltr" ? y() : _();
|
|
403
|
-
break;
|
|
404
|
-
case "ArrowLeft":
|
|
405
|
-
p.preventDefault(), b === "ltr" ? _() : y();
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
[b, l, _, y]
|
|
410
|
-
), L = H(
|
|
411
|
-
() => ({
|
|
412
|
-
current: w,
|
|
413
|
-
setCurrent: h,
|
|
414
|
-
focus: l,
|
|
415
|
-
setFocus: x,
|
|
416
|
-
items: e,
|
|
417
|
-
uid: c,
|
|
418
|
-
onKeyDownHandler: A,
|
|
419
|
-
gotoNext: y,
|
|
420
|
-
goToPrev: _,
|
|
421
|
-
dir: b
|
|
422
|
-
}),
|
|
423
|
-
[w, l, _, y, e, A, c, b]
|
|
424
|
-
);
|
|
425
|
-
return /* @__PURE__ */ g.jsx(O.Provider, { value: L, children: /* @__PURE__ */ g.jsx(ge, { initial: !1, children: /* @__PURE__ */ g.jsx(
|
|
426
|
-
"div",
|
|
427
|
-
{
|
|
428
|
-
className: o,
|
|
429
|
-
"data-anv": "Tab",
|
|
430
|
-
style: E,
|
|
431
|
-
...m,
|
|
432
|
-
ref: U([d, s])
|
|
433
|
-
}
|
|
434
|
-
) }) });
|
|
435
|
-
});
|
|
436
|
-
Z.displayName = "Tab";
|
|
437
|
-
const Oe = Object.assign(Z, {
|
|
438
|
-
Button: Y,
|
|
439
|
-
List: Q,
|
|
440
|
-
Panel: X
|
|
441
|
-
});
|
|
442
|
-
export {
|
|
443
|
-
Q as V,
|
|
444
|
-
Y as W,
|
|
445
|
-
Oe as m,
|
|
446
|
-
X as q
|
|
447
|
-
};
|
|
448
|
-
//# sourceMappingURL=Tab-1934a4ca.js.map
|
package/Tab-1934a4ca.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tab-1934a4ca.js","sources":["../node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/@servicetitan/hammer-react/dist/Tab.js"],"sourcesContent":["import { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n","import { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n top: ${top}px !important;\n left: ${left}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout ? [Math.random()] : [isPresent]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = jsx(PopChild, { isPresent: isPresent, children: children });\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import { useEffect } from 'react';\n\nfunction useUnmountEffect(callback) {\n return useEffect(() => () => callback(), []);\n}\n\nexport { useUnmountEffect };\n","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { useContext, useRef, cloneElement, Children, isValidElement } from 'react';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { useIsMounted } from '../../utils/use-is-mounted.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';\nimport { invariant } from '../../utils/errors.mjs';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction updateChildLookup(children, allChildren) {\n children.forEach((child) => {\n const key = getChildKey(child);\n allChildren.set(key, child);\n });\n}\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\n // We want to force a re-render once all exiting animations have finished. We\n // either use a local forceRender function, or one from a parent context if it exists.\n const forceRender = useContext(LayoutGroupContext).forceRender || useForceUpdate()[0];\n const isMounted = useIsMounted();\n // Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key\n const filteredChildren = onlyElements(children);\n let childrenToRender = filteredChildren;\n const exitingChildren = useRef(new Map()).current;\n // Keep a living record of the children we're actually rendering so we\n // can diff to figure out which are entering and exiting\n const presentChildren = useRef(childrenToRender);\n // A lookup table to quickly reference components by key\n const allChildren = useRef(new Map()).current;\n // If this is the initial component render, just deal with logic surrounding whether\n // we play onMount animations or not.\n const isInitialRender = useRef(true);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n updateChildLookup(filteredChildren, allChildren);\n presentChildren.current = childrenToRender;\n });\n useUnmountEffect(() => {\n isInitialRender.current = true;\n allChildren.clear();\n exitingChildren.clear();\n });\n if (isInitialRender.current) {\n return (jsx(Fragment, { children: childrenToRender.map((child) => (jsx(PresenceChild, { isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)))) }));\n }\n // If this is a subsequent render, deal with entering and exiting children\n childrenToRender = [...childrenToRender];\n // Diff the keys of the currently-present and target children to update our\n // exiting list.\n const presentKeys = presentChildren.current.map(getChildKey);\n const targetKeys = filteredChildren.map(getChildKey);\n // Diff the present children with our target children and mark those that are exiting\n const numPresent = presentKeys.length;\n for (let i = 0; i < numPresent; i++) {\n const key = presentKeys[i];\n if (targetKeys.indexOf(key) === -1 && !exitingChildren.has(key)) {\n exitingChildren.set(key, undefined);\n }\n }\n // If we currently have exiting children, and we're deferring rendering incoming children\n // until after all current children have exiting, empty the childrenToRender array\n if (mode === \"wait\" && exitingChildren.size) {\n childrenToRender = [];\n }\n // Loop through all currently exiting components and clone them to overwrite `animate`\n // with any `exit` prop they might have defined.\n exitingChildren.forEach((component, key) => {\n // If this component is actually entering again, early return\n if (targetKeys.indexOf(key) !== -1)\n return;\n const child = allChildren.get(key);\n if (!child)\n return;\n const insertionIndex = presentKeys.indexOf(key);\n let exitingComponent = component;\n if (!exitingComponent) {\n const onExit = () => {\n // clean up the exiting children map\n exitingChildren.delete(key);\n // compute the keys of children that were rendered once but are no longer present\n // this could happen in case of too many fast consequent renderings\n // @link https://github.com/framer/motion/issues/2023\n const leftOverKeys = Array.from(allChildren.keys()).filter((childKey) => !targetKeys.includes(childKey));\n // clean up the all children map\n leftOverKeys.forEach((leftOverKey) => allChildren.delete(leftOverKey));\n // make sure to render only the children that are actually visible\n presentChildren.current = filteredChildren.filter((presentChild) => {\n const presentChildKey = getChildKey(presentChild);\n return (\n // filter out the node exiting\n presentChildKey === key ||\n // filter out the leftover children\n leftOverKeys.includes(presentChildKey));\n });\n // Defer re-rendering until all exiting children have indeed left\n if (!exitingChildren.size) {\n if (isMounted.current === false)\n return;\n forceRender();\n onExitComplete && onExitComplete();\n }\n };\n exitingComponent = (jsx(PresenceChild, { isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));\n exitingChildren.set(key, exitingComponent);\n }\n childrenToRender.splice(insertionIndex, 0, exitingComponent);\n });\n // Add `MotionContext` even to children that don't need it to ensure we're rendering\n // the same tree between renders\n childrenToRender = childrenToRender.map((child) => {\n const key = child.key;\n return exitingChildren.has(key) ? (child) : (jsx(PresenceChild, { isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode, children: child }, getChildKey(child)));\n });\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n childrenToRender.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n return (jsx(Fragment, { children: exitingChildren.size\n ? childrenToRender\n : childrenToRender.map((child) => cloneElement(child)) }));\n};\n\nexport { AnimatePresence };\n","import \"./index29.css\";\nimport { j as s } from \"./jsx-runtime-944c88e2.js\";\nimport { useReducedMotion as H, motion as M, AnimatePresence as J } from \"framer-motion\";\nimport * as k from \"react\";\nimport { forwardRef as A, useRef as z, useContext as B, useState as T, useCallback as P, useEffect as O, createContext as Q, useId as X, useMemo as Y } from \"react\";\nimport { useMergeRefs as K } from \"@floating-ui/react\";\nimport C from \"classnames\";\nimport { Icon as S } from \"./Icon.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { a as Z } from \"./useLayoutPropsUtil-e307abc7.js\";\nconst $ = \"_tab_1or1e_4\", F = \"_inner_1or1e_70\", tt = \"_indicator_1or1e_83\", et = \"_scroller_1or1e_117\", rt = \"_right_1or1e_125\", ot = \"_left_1or1e_125\", nt = \"_fill_1or1e_145\", u = {\n tab: $,\n \"tab-panel\": \"_tab-panel_1or1e_17\",\n \"tab-button\": \"_tab-button_1or1e_18\",\n \"tab-list\": \"_tab-list_1or1e_19\",\n \"overflow-prev\": \"_overflow-prev_1or1e_32\",\n \"overflow-next\": \"_overflow-next_1or1e_33\",\n inner: F,\n indicator: tt,\n scroller: et,\n right: rt,\n left: ot,\n fill: nt\n}, W = A(\n (b, g) => {\n const v = z(null), y = H(), {\n current: w,\n items: r,\n setCurrent: a,\n focus: m,\n setFocus: l,\n uid: p,\n onKeyDownHandler: t\n } = B(E), {\n onClick: x,\n children: _,\n onFocus: d,\n onKeyDown: e,\n controls: o,\n id: i,\n className: I,\n ...c\n } = b, f = r && Array.prototype.indexOf.call(r, v.current), R = (h) => {\n f !== void 0 && (x == null || x(h, f), a == null || a(f), l == null || l(f), r == null || r[f].focus());\n }, j = (h) => {\n t == null || t(h), e == null || e(h);\n }, N = C(u[\"tab-button\"], I);\n return /* @__PURE__ */ s.jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"TabButton\",\n id: i,\n className: N,\n \"aria-selected\": (r == null ? void 0 : r[w].id) === i,\n \"aria-controls\": o,\n onClick: R,\n onKeyDown: j,\n tabIndex: (r == null ? void 0 : r[m].id) === i ? 0 : -1,\n ...c,\n ref: K([v, g]),\n children: [\n /* @__PURE__ */ s.jsx(\"span\", { className: u.inner, children: _ }),\n (r == null ? void 0 : r[w].id) === i && /* @__PURE__ */ s.jsx(\n M.span,\n {\n layoutId: p,\n className: u.indicator,\n transition: { duration: y ? 0 : 0.2 }\n }\n )\n ]\n }\n );\n }\n);\nW.displayName = \"TabButton\";\nconst at = (b) => /* @__PURE__ */ k.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ k.createElement(\"path\", { d: \"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z\" })), st = (b) => /* @__PURE__ */ k.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ k.createElement(\"path\", { d: \"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z\" })), V = A(\n (b, g) => {\n const { className: v, children: y, onKeyDown: w, ...r } = b, { goToPrev: a, gotoNext: m, dir: l } = B(E), [p, t] = T(!1), [x, _] = T(!1), d = z(null), e = P(\n (c) => {\n const f = l === \"ltr\" ? c.scrollLeft > 0 : c.scrollLeft > c.offsetWidth - c.scrollWidth + 1, R = l === \"ltr\" ? c.scrollLeft < c.scrollWidth - c.offsetWidth : c.scrollLeft < 0;\n t(f), _(R);\n },\n [l]\n );\n O(() => {\n d.current && e(d.current);\n }, [e]);\n const o = (c) => {\n const f = c.target;\n e(f);\n }, i = C(u[\"tab-list\"], v), I = C(u.scroller, {\n [u.left]: p,\n [u.right]: x\n });\n return /* @__PURE__ */ s.jsxs(\"div\", { ...r, className: i, \"data-anv\": \"TabList\", ref: g, children: [\n (l === \"ltr\" ? p : x) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => a == null ? void 0 : a(!1),\n className: u[\"overflow-prev\"],\n \"aria-label\": \"Previous tab\",\n children: /* @__PURE__ */ s.jsx(S, { svg: at, \"aria-hidden\": !0, size: \"medium\" })\n }\n ),\n /* @__PURE__ */ s.jsx(\n \"div\",\n {\n onScroll: o,\n className: I,\n role: \"tablist\",\n ref: d,\n children: y\n }\n ),\n (l === \"ltr\" ? x : p) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => m == null ? void 0 : m(!1),\n className: u[\"overflow-next\"],\n \"aria-label\": \"Next tab\",\n children: /* @__PURE__ */ s.jsx(S, { svg: st, \"aria-hidden\": !0, size: \"medium\" })\n }\n )\n ] });\n }\n);\nV.displayName = \"TabList\";\nconst q = A(\n (b, g) => {\n var d;\n const { id: v, className: y, ...w } = b, { current: r, items: a } = B(E), m = H();\n let l;\n a == null || a.forEach((e, o) => {\n e.getAttribute(\"aria-controls\") === v && (l = e.id);\n });\n const t = ((d = a == null ? void 0 : a[r]) == null ? void 0 : d.getAttribute(\"aria-controls\")) === v, x = m ? {\n enter: {\n opacity: 0\n },\n center: {\n zIndex: 1,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n opacity: 0\n }\n } : {\n enter: {\n y: 50,\n opacity: 0\n },\n center: {\n zIndex: 1,\n y: 0,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n y: -50,\n opacity: 0\n }\n }, _ = C(u[\"tab-panel\"], y);\n return t ? /* @__PURE__ */ s.jsx(\n M.div,\n {\n variants: x,\n initial: \"enter\",\n animate: \"center\",\n exit: \"exit\",\n className: _,\n transition: {\n x: {\n type: \"spring\",\n stiffness: 300,\n damping: 30\n },\n opacity: { duration: 1 }\n },\n ...w,\n role: \"tabpanel\",\n \"data-anv\": \"TabPanel\",\n id: v,\n \"aria-labelledby\": l,\n tabIndex: 0,\n ref: g\n }\n ) : /* @__PURE__ */ s.jsx(s.Fragment, {});\n }\n);\nq.displayName = \"TabPanel\";\nconst lt = {\n current: 0,\n focus: 0\n}, E = Q(lt), U = A((b, g) => {\n const { layoutStyles: v, componentProps: y } = Z(b), { defaultIndex: w, className: r, style: a, fill: m, ...l } = y, p = z(null), [t, x] = T(), [_, d] = T(w ?? 0), [e, o] = T(w ?? 0), [i, I] = T(\"ltr\"), c = C(u.tab, r, {\n [u.fill]: m\n }), f = X();\n O(() => {\n var n;\n x((n = p.current) == null ? void 0 : n.querySelectorAll(\"[role=tab]:not([disabled])\"));\n }, [p]), O(() => {\n var n, L;\n ((L = (n = p.current) == null ? void 0 : n.closest(\"[dir]\")) == null ? void 0 : L.getAttribute(\"dir\")) === \"rtl\" ? I(\"rtl\") : I(\"ltr\");\n }, []);\n const R = {\n ...a,\n ...v\n }, j = (n) => {\n n == null || n.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n }, N = P(\n (n = !0) => {\n if (e + 1 === (t == null ? void 0 : t.length)) {\n o == null || o(0), t == null || t[0].focus(), j(t == null ? void 0 : t[0]);\n return;\n }\n o == null || o(e + 1), t == null || t[e + 1].focus(), j(t == null ? void 0 : t[e + 1]);\n },\n [e, t]\n ), h = P(\n (n = !0) => {\n if (e === 0) {\n const L = t ? (t == null ? void 0 : t.length) - 1 : 0;\n o == null || o(L), t == null || t[L].focus(), j(t == null ? void 0 : t[L]);\n return;\n }\n o == null || o(e - 1), t == null || t[e - 1].focus(), j(t == null ? void 0 : t[e - 1]);\n },\n [e, t]\n ), D = P(\n (n) => {\n switch (console.log(\"working\", n), n.code) {\n case \"Enter\":\n case \"Space\":\n n.preventDefault(), d == null || d(e);\n break;\n case \"ArrowRight\":\n n.preventDefault(), i === \"ltr\" ? N() : h();\n break;\n case \"ArrowLeft\":\n n.preventDefault(), i === \"ltr\" ? h() : N();\n break;\n }\n },\n [i, e, h, N]\n ), G = Y(\n () => ({\n current: _,\n setCurrent: d,\n focus: e,\n setFocus: o,\n items: t,\n uid: f,\n onKeyDownHandler: D,\n gotoNext: N,\n goToPrev: h,\n dir: i\n }),\n [_, e, h, N, t, D, f, i]\n );\n return /* @__PURE__ */ s.jsx(E.Provider, { value: G, children: /* @__PURE__ */ s.jsx(J, { initial: !1, children: /* @__PURE__ */ s.jsx(\n \"div\",\n {\n className: c,\n \"data-anv\": \"Tab\",\n style: R,\n ...l,\n ref: K([p, g])\n }\n ) }) });\n});\nU.displayName = \"Tab\";\nconst mt = Object.assign(U, {\n Button: W,\n List: V,\n Panel: q\n});\nexport {\n mt as Tab,\n W as TabButton,\n V as TabList,\n q as TabPanel\n};\n//# sourceMappingURL=Tab.js.map\n"],"names":["useIsMounted","isMounted","useRef","useIsomorphicLayoutEffect","useForceUpdate","forcedRenderCount","setForcedRenderCount","useState","forceRender","useCallback","frame","PopChildMeasure","React","prevProps","element","size","PopChild","children","isPresent","id","useId","ref","nonce","useContext","MotionConfigContext","useInsertionEffect","width","height","top","left","style","jsxRuntimeExports","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","context","useMemo","childId","isComplete","_","key","PresenceContext","useUnmountEffect","callback","useEffect","getChildKey","child","updateChildLookup","allChildren","onlyElements","filtered","Children","isValidElement","AnimatePresence","exitBeforeEnter","invariant","LayoutGroupContext","filteredChildren","childrenToRender","exitingChildren","presentChildren","isInitialRender","presentKeys","targetKeys","numPresent","i","component","insertionIndex","exitingComponent","onExit","leftOverKeys","childKey","leftOverKey","presentChild","presentChildKey","cloneElement","$","F","tt","et","rt","ot","nt","u","W","forwardRef","b","g","v","y","useReducedMotion","w","r","a","m","l","p","t","E","x","d","e","o","I","c","f","R","h","j","N","cx","fr","useMergeRefs","motion","at","st","V","I$1","q","lt","createContext","U","J","n","L","D","G","mt"],"mappings":";;;;;;;;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AAG;AAAA,MACA,YAAA6D;AAAA,MACA,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,OAAAL;AAAA,MACA,KAAAQ;AAAA,MACA,kBAAAoB;AAAA,MACA,UAAAhB;AAAA,MACA,UAAAF;AAAA,MACA,KAAA1C;AAAA,IACA;AAAA,IACA,CAAA1B,GAAA8D,GAAAM,GAAAE,GAAAZ,GAAA4B,GAAApB,GAAAxC,CAAA;AAAA,EACA;AACA,SAAA,gBAAA8C,EAAA,IAAAb,EAAA,UAAA,EAAA,OAAA4B,GAAA,UAAA,gBAAAf,EAAA,IAAA1D,IAAA,EAAA,SAAA,IAAA,UAAA,gBAAA0D,EAAA;AAAA,IACA;AAAA,IACA;AAAA,MACA,WAAAP;AAAA,MACA,YAAA;AAAA,MACA,OAAAE;AAAA,MACA,GAAAX;AAAA,MACA,KAAAiB,EAAA,CAAAhB,GAAAT,CAAA,CAAA;AAAA,IACA;AAAA,EACA,EAAA,CAAA,EAAA,CAAA;AACA,CAAA;AACAkC,EAAA,cAAA;AACK,MAAAM,KAAA,OAAA,OAAAN,GAAA;AAAA,EACL,QAAArC;AAAA,EACA,MAAAgC;AAAA,EACA,OAAAE;AACA,CAAA;","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
package/Tab-ad70a0a5.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var pe=require("./Tab.css");const y=require("./jsx-runtime-944c88e2-2b81c205.cjs"),t=require("react"),B=require("./floating-ui.react-5347095a.cjs"),T=require("./index-67d20edb.cjs"),K=require("./Icon-ae9b951b.cjs"),$=require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs"),U=require("./use-reduced-motion-00575ab2.cjs"),E=require("./motion-ee26ec15.cjs"),C=require("./jsx-runtime-494437bb.cjs");function V(n){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return s.default=n,Object.freeze(s)}const k=V(t);function W(){const n=t.useRef(!1);return E.useIsomorphicLayoutEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function G(){const n=W(),[s,r]=t.useState(0),o=t.useCallback(()=>{n.current&&r(s+1)},[s]);return[t.useCallback(()=>E.frame.postRender(o),[o]),s]}class J extends k.Component{getSnapshotBeforeUpdate(s){const r=this.props.childRef.current;if(r&&s.isPresent&&!this.props.isPresent){const o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Y({children:n,isPresent:s}){const r=t.useId(),o=t.useRef(null),b=t.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=t.useContext(E.MotionConfigContext);return t.useInsertionEffect(()=>{const{width:p,height:d,top:x,left:f}=b.current;if(s||!o.current||!p||!d)return;o.current.dataset.motionPopId=r;const e=document.createElement("style");return a&&(e.nonce=a),document.head.appendChild(e),e.sheet&&e.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${r}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${p}px !important;
|
|
5
|
-
height: ${d}px !important;
|
|
6
|
-
top: ${x}px !important;
|
|
7
|
-
left: ${f}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{document.head.removeChild(e)}},[s]),C.jsxRuntimeExports.jsx(J,{isPresent:s,childRef:o,sizeRef:b,children:k.cloneElement(n,{ref:o})})}const q=({children:n,initial:s,isPresent:r,onExitComplete:o,custom:b,presenceAffectsLayout:a,mode:p})=>{const d=E.useConstant(Q),x=t.useId(),f=t.useMemo(()=>({id:x,initial:s,isPresent:r,custom:b,onExitComplete:e=>{d.set(e,!0);for(const c of d.values())if(!c)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?[Math.random()]:[r]);return t.useMemo(()=>{d.forEach((e,c)=>d.set(c,!1))},[r]),k.useEffect(()=>{!r&&!d.size&&o&&o()},[r]),p==="popLayout"&&(n=C.jsxRuntimeExports.jsx(Y,{isPresent:r,children:n})),C.jsxRuntimeExports.jsx(E.PresenceContext.Provider,{value:f,children:n})};function Q(){return new Map}function X(n){return t.useEffect(()=>()=>n(),[])}const P=n=>n.key||"";function Z(n,s){n.forEach(r=>{const o=P(r);s.set(o,r)})}function ee(n){const s=[];return t.Children.forEach(n,r=>{t.isValidElement(r)&&s.push(r)}),s}const te=({children:n,custom:s,initial:r=!0,onExitComplete:o,exitBeforeEnter:b,presenceAffectsLayout:a=!0,mode:p="sync"})=>{E.invariant(!b,"Replace exitBeforeEnter with mode='wait'");const d=t.useContext(E.LayoutGroupContext).forceRender||G()[0],x=W(),f=ee(n);let e=f;const c=t.useRef(new Map).current,w=t.useRef(e),h=t.useRef(new Map).current,l=t.useRef(!0);if(E.useIsomorphicLayoutEffect(()=>{l.current=!1,Z(f,h),w.current=e}),X(()=>{l.current=!0,h.clear(),c.clear()}),l.current)return C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:e.map(i=>C.jsxRuntimeExports.jsx(q,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:p,children:i},P(i)))});e=[...e];const v=w.current.map(P),g=f.map(P),N=v.length;for(let i=0;i<N;i++){const u=v[i];g.indexOf(u)===-1&&!c.has(u)&&c.set(u,void 0)}return p==="wait"&&c.size&&(e=[]),c.forEach((i,u)=>{if(g.indexOf(u)!==-1)return;const I=h.get(u);if(!I)return;const M=v.indexOf(u);let R=i;if(!R){const _=()=>{c.delete(u);const S=Array.from(h.keys()).filter(L=>!g.includes(L));if(S.forEach(L=>h.delete(L)),w.current=f.filter(L=>{const m=P(L);return m===u||S.includes(m)}),!c.size){if(x.current===!1)return;d(),o&&o()}};R=C.jsxRuntimeExports.jsx(q,{isPresent:!1,onExitComplete:_,custom:s,presenceAffectsLayout:a,mode:p,children:I},P(I)),c.set(u,R)}e.splice(M,0,R)}),e=e.map(i=>{const u=i.key;return c.has(u)?i:C.jsxRuntimeExports.jsx(q,{isPresent:!0,presenceAffectsLayout:a,mode:p,children:i},P(i))}),process.env.NODE_ENV!=="production"&&p==="wait"&&e.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:c.size?e:e.map(i=>t.cloneElement(i))})};const ne="_tab_1or1e_4",re="_inner_1or1e_70",oe="_indicator_1or1e_83",se="_scroller_1or1e_117",ie="_right_1or1e_125",le="_left_1or1e_125",ae="_fill_1or1e_145",j={tab:ne,"tab-panel":"_tab-panel_1or1e_17","tab-button":"_tab-button_1or1e_18","tab-list":"_tab-list_1or1e_19","overflow-prev":"_overflow-prev_1or1e_32","overflow-next":"_overflow-next_1or1e_33",inner:re,indicator:oe,scroller:se,right:ie,left:le,fill:ae},O=t.forwardRef((n,s)=>{const r=t.useRef(null),o=U.useReducedMotion(),{current:b,items:a,setCurrent:p,focus:d,setFocus:x,uid:f,onKeyDownHandler:e}=t.useContext(D),{onClick:c,children:w,onFocus:h,onKeyDown:l,controls:v,id:g,className:N,...i}=n,u=a&&Array.prototype.indexOf.call(a,r.current),I=_=>{u!==void 0&&(c==null||c(_,u),p==null||p(u),x==null||x(u),a==null||a[u].focus())},M=_=>{e==null||e(_),l==null||l(_)},R=T.cx(j["tab-button"],N);return y.fr.jsxs("button",{type:"button",role:"tab","data-anv":"TabButton",id:g,className:R,"aria-selected":(a==null?void 0:a[b].id)===g,"aria-controls":v,onClick:I,onKeyDown:M,tabIndex:(a==null?void 0:a[d].id)===g?0:-1,...i,ref:B.useMergeRefs([r,s]),children:[y.fr.jsx("span",{className:j.inner,children:w}),(a==null?void 0:a[b].id)===g&&y.fr.jsx(E.motion.span,{layoutId:f,className:j.indicator,transition:{duration:o?0:.2}})]})});O.displayName="TabButton";const ce=n=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n},k.createElement("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"})),ue=n=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n},k.createElement("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"})),A=t.forwardRef((n,s)=>{const{className:r,children:o,onKeyDown:b,...a}=n,{goToPrev:p,gotoNext:d,dir:x}=t.useContext(D),[f,e]=t.useState(!1),[c,w]=t.useState(!1),h=t.useRef(null),l=t.useCallback(i=>{const u=x==="ltr"?i.scrollLeft>0:i.scrollLeft>i.offsetWidth-i.scrollWidth+1,I=x==="ltr"?i.scrollLeft<i.scrollWidth-i.offsetWidth:i.scrollLeft<0;e(u),w(I)},[x]);t.useEffect(()=>{h.current&&l(h.current)},[l]);const v=i=>{const u=i.target;l(u)},g=T.cx(j["tab-list"],r),N=T.cx(j.scroller,{[j.left]:f,[j.right]:c});return y.fr.jsxs("div",{...a,className:g,"data-anv":"TabList",ref:s,children:[(x==="ltr"?f:c)&&y.fr.jsx("button",{tabIndex:-1,onClick:()=>p==null?void 0:p(!1),className:j["overflow-prev"],"aria-label":"Previous tab",children:y.fr.jsx(K.I,{svg:ce,"aria-hidden":!0,size:"medium"})}),y.fr.jsx("div",{onScroll:v,className:N,role:"tablist",ref:h,children:o}),(x==="ltr"?c:f)&&y.fr.jsx("button",{tabIndex:-1,onClick:()=>d==null?void 0:d(!1),className:j["overflow-next"],"aria-label":"Next tab",children:y.fr.jsx(K.I,{svg:ue,"aria-hidden":!0,size:"medium"})})]})});A.displayName="TabList";const F=t.forwardRef((n,s)=>{var r;const{id:o,className:b,...a}=n,{current:p,items:d}=t.useContext(D),x=U.useReducedMotion();let f;d==null||d.forEach((h,l)=>{h.getAttribute("aria-controls")===o&&(f=h.id)});const e=((r=d==null?void 0:d[p])==null?void 0:r.getAttribute("aria-controls"))===o,c=x?{enter:{opacity:0},center:{zIndex:1,opacity:1},exit:{zIndex:0,opacity:0}}:{enter:{y:50,opacity:0},center:{zIndex:1,y:0,opacity:1},exit:{zIndex:0,y:-50,opacity:0}},w=T.cx(j["tab-panel"],b);return e?y.fr.jsx(E.motion.div,{variants:c,initial:"enter",animate:"center",exit:"exit",className:w,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:1}},...a,role:"tabpanel","data-anv":"TabPanel",id:o,"aria-labelledby":f,tabIndex:0,ref:s}):y.fr.jsx(y.fr.Fragment,{})});F.displayName="TabPanel";const de={current:0,focus:0},D=t.createContext(de),H=t.forwardRef((n,s)=>{const{layoutStyles:r,componentProps:o}=$.J(n),{defaultIndex:b,className:a,style:p,fill:d,...x}=o,f=t.useRef(null),[e,c]=t.useState(),[w,h]=t.useState(b??0),[l,v]=t.useState(b??0),[g,N]=t.useState("ltr"),i=T.cx(j.tab,a,{[j.fill]:d}),u=t.useId();t.useEffect(()=>{var m;c((m=f.current)==null?void 0:m.querySelectorAll("[role=tab]:not([disabled])"))},[f]),t.useEffect(()=>{var m,z;((z=(m=f.current)==null?void 0:m.closest("[dir]"))==null?void 0:z.getAttribute("dir"))==="rtl"?N("rtl"):N("ltr")},[]);const I={...p,...r},M=m=>{m==null||m.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},R=t.useCallback((m=!0)=>{if(l+1===(e==null?void 0:e.length)){v==null||v(0),e==null||e[0].focus(),M(e==null?void 0:e[0]);return}v==null||v(l+1),e==null||e[l+1].focus(),M(e==null?void 0:e[l+1])},[l,e]),_=t.useCallback((m=!0)=>{if(l===0){const z=e?(e==null?void 0:e.length)-1:0;v==null||v(z),e==null||e[z].focus(),M(e==null?void 0:e[z]);return}v==null||v(l-1),e==null||e[l-1].focus(),M(e==null?void 0:e[l-1])},[l,e]),S=t.useCallback(m=>{switch(console.log("working",m),m.code){case"Enter":case"Space":m.preventDefault(),h==null||h(l);break;case"ArrowRight":m.preventDefault(),g==="ltr"?R():_();break;case"ArrowLeft":m.preventDefault(),g==="ltr"?_():R();break}},[g,l,_,R]),L=t.useMemo(()=>({current:w,setCurrent:h,focus:l,setFocus:v,items:e,uid:u,onKeyDownHandler:S,gotoNext:R,goToPrev:_,dir:g}),[w,l,_,R,e,S,u,g]);return y.fr.jsx(D.Provider,{value:L,children:y.fr.jsx(te,{initial:!1,children:y.fr.jsx("div",{className:i,"data-anv":"Tab",style:I,...x,ref:B.useMergeRefs([f,s])})})})});H.displayName="Tab";const fe=Object.assign(H,{Button:O,List:A,Panel:F});exports.V=A;exports.W=O;exports.mt=fe;exports.q=F;
|
|
10
|
-
//# sourceMappingURL=Tab-ad70a0a5.cjs.map
|