@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.
Files changed (292) hide show
  1. package/Alert-2e4d9ed5.js +89 -0
  2. package/Alert-2e4d9ed5.js.map +1 -0
  3. package/Alert-94c37437.cjs +2 -0
  4. package/Alert-94c37437.cjs.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.css +1 -1
  7. package/Alert.js +1 -1
  8. package/{Announcement-d04009ea.js → Announcement-1db4ac33.js} +18 -17
  9. package/Announcement-1db4ac33.js.map +1 -0
  10. package/Announcement-2058bd02.cjs +2 -0
  11. package/Announcement-2058bd02.cjs.map +1 -0
  12. package/Announcement.cjs +1 -1
  13. package/Announcement.js +1 -1
  14. package/Avatar.cjs +1 -1
  15. package/Avatar.js +1 -1
  16. package/Badge-b8764640.cjs +2 -0
  17. package/Badge-b8764640.cjs.map +1 -0
  18. package/Badge-df96f15a.js +45 -0
  19. package/Badge-df96f15a.js.map +1 -0
  20. package/Badge.cjs +1 -1
  21. package/Badge.js +1 -1
  22. package/Button-30b35802.cjs +2 -0
  23. package/Button-30b35802.cjs.map +1 -0
  24. package/Button-3b93bd5d.js +289 -0
  25. package/Button-3b93bd5d.js.map +1 -0
  26. package/Button.cjs +1 -1
  27. package/Button.css +1 -1
  28. package/Button.js +27 -27
  29. package/ButtonCompound.cjs +1 -1
  30. package/ButtonCompound.js +27 -27
  31. package/ButtonLink.cjs +1 -1
  32. package/ButtonLink.js +27 -27
  33. package/ButtonToggle.cjs +1 -1
  34. package/ButtonToggle.js +27 -27
  35. package/{Calendar-073dc10d.js → Calendar-cbfe3c06.js} +390 -368
  36. package/{Calendar-073dc10d.js.map → Calendar-cbfe3c06.js.map} +1 -1
  37. package/{Calendar-706f41ff.cjs → Calendar-ec151b3b.cjs} +2 -2
  38. package/{Calendar-706f41ff.cjs.map → Calendar-ec151b3b.cjs.map} +1 -1
  39. package/Calendar.cjs +1 -1
  40. package/Calendar.js +1 -1
  41. package/{Card-92ebca1f.cjs → Card-20628287.cjs} +2 -2
  42. package/{Card-92ebca1f.cjs.map → Card-20628287.cjs.map} +1 -1
  43. package/{Card-33f3ad0a.js → Card-bb358803.js} +6 -6
  44. package/{Card-33f3ad0a.js.map → Card-bb358803.js.map} +1 -1
  45. package/Card.cjs +1 -1
  46. package/Card.js +1 -1
  47. package/{Checkbox-d503c3b6.js → Checkbox-3de9628c.js} +24 -24
  48. package/Checkbox-3de9628c.js.map +1 -0
  49. package/Checkbox-d325d851.cjs +2 -0
  50. package/Checkbox-d325d851.cjs.map +1 -0
  51. package/Checkbox.cjs +1 -1
  52. package/Checkbox.js +1 -1
  53. package/{Chip-b52e1bd7.cjs → Chip-95370241.cjs} +2 -2
  54. package/{Chip-b52e1bd7.cjs.map → Chip-95370241.cjs.map} +1 -1
  55. package/{Chip-a8eb2656.js → Chip-c0f71a26.js} +15 -15
  56. package/Chip-c0f71a26.js.map +1 -0
  57. package/Chip.cjs +1 -1
  58. package/Chip.js +1 -1
  59. package/Combobox.cjs +1 -1
  60. package/Combobox.js +27 -27
  61. package/Details.cjs +1 -1
  62. package/Details.js +27 -27
  63. package/Dialog.cjs +1 -1
  64. package/Dialog.cjs.map +1 -1
  65. package/Dialog.js +36 -36
  66. package/Divider-6646eeb8.cjs +2 -0
  67. package/Divider-6646eeb8.cjs.map +1 -0
  68. package/Divider-b3bff73a.js +74 -0
  69. package/Divider-b3bff73a.js.map +1 -0
  70. package/Divider.cjs +1 -1
  71. package/Divider.css +1 -1
  72. package/Divider.js +1 -1
  73. package/{Drawer-f68286e8.js → Drawer-9775ed75.js} +65 -46
  74. package/Drawer-9775ed75.js.map +1 -0
  75. package/Drawer-dff5abf1.cjs +2 -0
  76. package/Drawer-dff5abf1.cjs.map +1 -0
  77. package/Drawer.cjs +1 -1
  78. package/Drawer.js +1 -1
  79. package/{Flex-4b128a0e.cjs → Flex-971b5295.cjs} +2 -2
  80. package/{Flex-4b128a0e.cjs.map → Flex-971b5295.cjs.map} +1 -1
  81. package/{Flex-f6e67921.js → Flex-d338e855.js} +2 -2
  82. package/{Flex-f6e67921.js.map → Flex-d338e855.js.map} +1 -1
  83. package/Flex.cjs +1 -1
  84. package/Flex.js +1 -1
  85. package/{Grid-8226f7a1.cjs → Grid-37ded954.cjs} +2 -2
  86. package/{Grid-8226f7a1.cjs.map → Grid-37ded954.cjs.map} +1 -1
  87. package/{Grid-992de375.js → Grid-5bad450f.js} +4 -4
  88. package/{Grid-992de375.js.map → Grid-5bad450f.js.map} +1 -1
  89. package/Grid.cjs +1 -1
  90. package/Grid.js +1 -1
  91. package/{Helper-74a1f07f-6cf9865b.cjs → Helper-74a1f07f-30e4fd46.cjs} +2 -2
  92. package/{Helper-74a1f07f-6cf9865b.cjs.map → Helper-74a1f07f-30e4fd46.cjs.map} +1 -1
  93. package/{Helper-74a1f07f-067ae3f7.js → Helper-74a1f07f-60547798.js} +3 -3
  94. package/{Helper-74a1f07f-067ae3f7.js.map → Helper-74a1f07f-60547798.js.map} +1 -1
  95. package/{Icon-ae9b951b.cjs → Icon-43ce0e6c.cjs} +2 -2
  96. package/{Icon-ae9b951b.cjs.map → Icon-43ce0e6c.cjs.map} +1 -1
  97. package/{Icon-fa8f3dc8.js → Icon-b443eea4.js} +8 -8
  98. package/Icon-b443eea4.js.map +1 -0
  99. package/Icon.cjs +1 -1
  100. package/Icon.js +1 -1
  101. package/Link.cjs +1 -1
  102. package/Link.js +27 -27
  103. package/ListView-43bbc290.cjs +2 -0
  104. package/ListView-43bbc290.cjs.map +1 -0
  105. package/{ListView-1f75e2de.js → ListView-482c54ad.js} +100 -100
  106. package/ListView-482c54ad.js.map +1 -0
  107. package/ListView.cjs +1 -1
  108. package/ListView.js +1 -1
  109. package/Listbox-8c610bf2.cjs +2 -0
  110. package/Listbox-8c610bf2.cjs.map +1 -0
  111. package/{Listbox-cdf02568.js → Listbox-b110c64d.js} +68 -68
  112. package/Listbox-b110c64d.js.map +1 -0
  113. package/Listbox.cjs +1 -1
  114. package/Listbox.js +1 -1
  115. package/Menu.cjs +1 -1
  116. package/Menu.js +1 -1
  117. package/Overflow.cjs +1 -1
  118. package/Overflow.js +27 -27
  119. package/Popover.cjs +1 -1
  120. package/Popover.cjs.map +1 -1
  121. package/Popover.d.ts +1 -22
  122. package/Popover.js +49 -49
  123. package/Popover.js.map +1 -1
  124. package/{ProgressBar-5f350a3f.js → ProgressBar-91240dab.js} +94 -92
  125. package/ProgressBar-91240dab.js.map +1 -0
  126. package/ProgressBar-b25b2493.cjs +2 -0
  127. package/ProgressBar-b25b2493.cjs.map +1 -0
  128. package/ProgressBar.cjs +1 -1
  129. package/ProgressBar.js +1 -1
  130. package/{Radio-4189b000.js → Radio-a747c89a.js} +13 -13
  131. package/Radio-a747c89a.js.map +1 -0
  132. package/Radio-ed00ea9d.cjs +2 -0
  133. package/Radio-ed00ea9d.cjs.map +1 -0
  134. package/Radio.cjs +1 -1
  135. package/Radio.js +1 -1
  136. package/{SideNav-e92d850f.js → SideNav-b5ef91d4.js} +118 -118
  137. package/SideNav-b5ef91d4.js.map +1 -0
  138. package/{SideNav-6de704fd.cjs → SideNav-dbcdf7cb.cjs} +6 -6
  139. package/SideNav-dbcdf7cb.cjs.map +1 -0
  140. package/SideNav.cjs +1 -1
  141. package/SideNav.js +1 -1
  142. package/{SrOnly-0c13a721.js → SrOnly-864bd4cb.js} +3 -3
  143. package/SrOnly-864bd4cb.js.map +1 -0
  144. package/SrOnly-88e8fca6.cjs +2 -0
  145. package/SrOnly-88e8fca6.cjs.map +1 -0
  146. package/SrOnly.cjs +1 -1
  147. package/SrOnly.js +1 -1
  148. package/Stepper-7c787b24.js +391 -0
  149. package/Stepper-7c787b24.js.map +1 -0
  150. package/Stepper-e08b9998.cjs +2 -0
  151. package/Stepper-e08b9998.cjs.map +1 -0
  152. package/Stepper.cjs +1 -1
  153. package/Stepper.d.ts +2 -2
  154. package/Stepper.js +4 -4
  155. package/{Switch-b0a37fc1.js → Switch-39010760.js} +21 -21
  156. package/{Switch-b0a37fc1.js.map → Switch-39010760.js.map} +1 -1
  157. package/Switch-c0bea091.cjs +2 -0
  158. package/{Switch-285b3272.cjs.map → Switch-c0bea091.cjs.map} +1 -1
  159. package/Switch.cjs +1 -1
  160. package/Switch.js +1 -1
  161. package/Tab-0bcbe9c7.cjs +10 -0
  162. package/Tab-0bcbe9c7.cjs.map +1 -0
  163. package/Tab-f636d6c5.js +422 -0
  164. package/Tab-f636d6c5.js.map +1 -0
  165. package/Tab.cjs +1 -1
  166. package/Tab.js +1 -1
  167. package/{Text-4c30916c.js → Text-465104f6.js} +46 -46
  168. package/Text-465104f6.js.map +1 -0
  169. package/Text-631c229a.cjs +2 -0
  170. package/Text-631c229a.cjs.map +1 -0
  171. package/Text.cjs +1 -1
  172. package/Text.js +1 -1
  173. package/TextField.cjs +1 -1
  174. package/TextField.js +27 -27
  175. package/Textarea.cjs +1 -1
  176. package/Textarea.js +27 -27
  177. package/{Toast-f15e9d36.js → Toast-36679136.js} +82 -66
  178. package/Toast-36679136.js.map +1 -0
  179. package/{Toast-834c85cd.cjs → Toast-44e3ff94.cjs} +5 -5
  180. package/Toast-44e3ff94.cjs.map +1 -0
  181. package/Toast.cjs +1 -1
  182. package/Toast.js +1 -1
  183. package/Tooltip.cjs +1 -1
  184. package/Tooltip.js +29 -29
  185. package/anvil2.cjs +1 -1
  186. package/anvil2.d.ts +3 -23
  187. package/anvil2.js +27 -27
  188. package/{index-8ee9499c.js → index-1dc4c6d3.js} +667 -605
  189. package/{index-8ee9499c.js.map → index-1dc4c6d3.js.map} +1 -1
  190. package/{index-dfb6272f.cjs → index-25ea279e.cjs} +5 -5
  191. package/{index-dfb6272f.cjs.map → index-25ea279e.cjs.map} +1 -1
  192. package/index-afacb017-0ced4668.cjs +2 -0
  193. package/index-afacb017-0ced4668.cjs.map +1 -0
  194. package/{index-098ca719-3c14c40c.js → index-afacb017-e81aec1d.js} +71 -68
  195. package/index-afacb017-e81aec1d.js.map +1 -0
  196. package/index-f91265d9-04a0345c.cjs +2 -0
  197. package/index-f91265d9-04a0345c.cjs.map +1 -0
  198. package/index-f91265d9-3d747651.js +121 -0
  199. package/index-f91265d9-3d747651.js.map +1 -0
  200. package/index3.css +1 -1
  201. package/{motion-9462a11a.js → motion-a0a946d6.js} +1696 -1638
  202. package/motion-a0a946d6.js.map +1 -0
  203. package/motion-dae3950e.cjs +2 -0
  204. package/motion-dae3950e.cjs.map +1 -0
  205. package/package.json +3 -4
  206. package/use-reduced-motion-a766a46b.cjs +2 -0
  207. package/use-reduced-motion-a766a46b.cjs.map +1 -0
  208. package/{use-reduced-motion-fa02c531.js → use-reduced-motion-b359504d.js} +11 -11
  209. package/use-reduced-motion-b359504d.js.map +1 -0
  210. package/useAccessibleColor.cjs +1 -1
  211. package/useAccessibleColor.js +27 -27
  212. package/useLinkStyles.cjs +1 -1
  213. package/useLinkStyles.js +27 -27
  214. package/useMergeRefs.cjs +1 -1
  215. package/useMergeRefs.js +27 -27
  216. package/usePrefersColorScheme.cjs +1 -1
  217. package/usePrefersColorScheme.js +27 -27
  218. package/useSwipe.cjs +1 -1
  219. package/useSwipe.js +27 -27
  220. package/Alert-6336e146.cjs +0 -2
  221. package/Alert-6336e146.cjs.map +0 -1
  222. package/Alert-6faa0b05.js +0 -88
  223. package/Alert-6faa0b05.js.map +0 -1
  224. package/Announcement-d04009ea.js.map +0 -1
  225. package/Announcement-fff87b68.cjs +0 -2
  226. package/Announcement-fff87b68.cjs.map +0 -1
  227. package/Badge-0073b5a1.cjs +0 -2
  228. package/Badge-0073b5a1.cjs.map +0 -1
  229. package/Badge-f761458c.js +0 -35
  230. package/Badge-f761458c.js.map +0 -1
  231. package/Button-268ba8a9.cjs +0 -2
  232. package/Button-268ba8a9.cjs.map +0 -1
  233. package/Button-d05507c5.js +0 -289
  234. package/Button-d05507c5.js.map +0 -1
  235. package/Checkbox-d503c3b6.js.map +0 -1
  236. package/Checkbox-edf070c3.cjs +0 -2
  237. package/Checkbox-edf070c3.cjs.map +0 -1
  238. package/Chip-a8eb2656.js.map +0 -1
  239. package/Divider-86c1f4ea.cjs +0 -2
  240. package/Divider-86c1f4ea.cjs.map +0 -1
  241. package/Divider-edca965e.js +0 -74
  242. package/Divider-edca965e.js.map +0 -1
  243. package/Drawer-6c2a6e0c.cjs +0 -2
  244. package/Drawer-6c2a6e0c.cjs.map +0 -1
  245. package/Drawer-f68286e8.js.map +0 -1
  246. package/Icon-fa8f3dc8.js.map +0 -1
  247. package/ListView-14d80585.cjs +0 -2
  248. package/ListView-14d80585.cjs.map +0 -1
  249. package/ListView-1f75e2de.js.map +0 -1
  250. package/Listbox-306a8d62.cjs +0 -2
  251. package/Listbox-306a8d62.cjs.map +0 -1
  252. package/Listbox-cdf02568.js.map +0 -1
  253. package/ProgressBar-29d21945.cjs +0 -2
  254. package/ProgressBar-29d21945.cjs.map +0 -1
  255. package/ProgressBar-5f350a3f.js.map +0 -1
  256. package/Radio-4189b000.js.map +0 -1
  257. package/Radio-abd4d3fd.cjs +0 -2
  258. package/Radio-abd4d3fd.cjs.map +0 -1
  259. package/SideNav-6de704fd.cjs.map +0 -1
  260. package/SideNav-e92d850f.js.map +0 -1
  261. package/SrOnly-0c13a721.js.map +0 -1
  262. package/SrOnly-ecf7240b.cjs +0 -2
  263. package/SrOnly-ecf7240b.cjs.map +0 -1
  264. package/Stepper-e776cc28.cjs +0 -2
  265. package/Stepper-e776cc28.cjs.map +0 -1
  266. package/Stepper-fa554908.js +0 -390
  267. package/Stepper-fa554908.js.map +0 -1
  268. package/Switch-285b3272.cjs +0 -2
  269. package/Tab-1934a4ca.js +0 -448
  270. package/Tab-1934a4ca.js.map +0 -1
  271. package/Tab-ad70a0a5.cjs +0 -10
  272. package/Tab-ad70a0a5.cjs.map +0 -1
  273. package/Text-4c30916c.js.map +0 -1
  274. package/Text-ed02cc62.cjs +0 -2
  275. package/Text-ed02cc62.cjs.map +0 -1
  276. package/Toast-834c85cd.cjs.map +0 -1
  277. package/Toast-f15e9d36.js.map +0 -1
  278. package/index-098ca719-3c14c40c.js.map +0 -1
  279. package/index-098ca719-8e068129.cjs +0 -2
  280. package/index-098ca719-8e068129.cjs.map +0 -1
  281. package/index-da56edbc-372336bd.js +0 -120
  282. package/index-da56edbc-372336bd.js.map +0 -1
  283. package/index-da56edbc-53f59f54.cjs +0 -2
  284. package/index-da56edbc-53f59f54.cjs.map +0 -1
  285. package/motion-9462a11a.js.map +0 -1
  286. package/motion-ee26ec15.cjs +0 -2
  287. package/motion-ee26ec15.cjs.map +0 -1
  288. package/use-reduced-motion-00575ab2.cjs +0 -2
  289. package/use-reduced-motion-00575ab2.cjs.map +0 -1
  290. package/use-reduced-motion-fa02c531.js.map +0 -1
  291. /package/{index-098ca719.css → index-afacb017.css} +0 -0
  292. /package/{index-da56edbc.css → index-f91265d9.css} +0 -0
@@ -0,0 +1,422 @@
1
+ import "./Tab.css";
2
+ import { f as b } from "./jsx-runtime-944c88e2-e73fa629.js";
3
+ import * as L from "react";
4
+ import { useId as F, useRef as P, useContext as M, useInsertionEffect as Z, useMemo as T, Children as ee, isValidElement as te, useState as I, forwardRef as K, useCallback as A, useEffect as B, createContext as ne } from "react";
5
+ import { u as V } from "./floating-ui.react-8d61182d.js";
6
+ import { c as z } from "./index-e0f6271a.js";
7
+ import { C as W } from "./Icon-b443eea4.js";
8
+ import { J as re } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
9
+ import { u as O } from "./use-reduced-motion-b359504d.js";
10
+ import { M as oe, u as U, P as le, a as ie, L as se, i as ae, m as q } from "./motion-a0a946d6.js";
11
+ import { j as k } from "./jsx-runtime-82a9ddf6.js";
12
+ class ce extends L.Component {
13
+ getSnapshotBeforeUpdate(u) {
14
+ const r = this.props.childRef.current;
15
+ if (r && u.isPresent && !this.props.isPresent) {
16
+ const l = this.props.sizeRef.current;
17
+ l.height = r.offsetHeight || 0, l.width = r.offsetWidth || 0, l.top = r.offsetTop, l.left = r.offsetLeft;
18
+ }
19
+ return null;
20
+ }
21
+ /**
22
+ * Required with getSnapshotBeforeUpdate to stop React complaining.
23
+ */
24
+ componentDidUpdate() {
25
+ }
26
+ render() {
27
+ return this.props.children;
28
+ }
29
+ }
30
+ function de({ children: i, isPresent: u }) {
31
+ const r = F(), l = P(null), m = P({
32
+ width: 0,
33
+ height: 0,
34
+ top: 0,
35
+ left: 0
36
+ }), { nonce: a } = M(oe);
37
+ return Z(() => {
38
+ const { width: p, height: t, top: c, left: f } = m.current;
39
+ if (u || !l.current || !p || !t)
40
+ return;
41
+ l.current.dataset.motionPopId = r;
42
+ const e = document.createElement("style");
43
+ return a && (e.nonce = a), document.head.appendChild(e), e.sheet && e.sheet.insertRule(`
44
+ [data-motion-pop-id="${r}"] {
45
+ position: absolute !important;
46
+ width: ${p}px !important;
47
+ height: ${t}px !important;
48
+ top: ${c}px !important;
49
+ left: ${f}px !important;
50
+ }
51
+ `), () => {
52
+ document.head.removeChild(e);
53
+ };
54
+ }, [u]), k.jsx(ce, { isPresent: u, childRef: l, sizeRef: m, children: L.cloneElement(i, { ref: l }) });
55
+ }
56
+ const ue = ({ children: i, initial: u, isPresent: r, onExitComplete: l, custom: m, presenceAffectsLayout: a, mode: p }) => {
57
+ const t = U(fe), c = F(), f = T(
58
+ () => ({
59
+ id: c,
60
+ initial: u,
61
+ isPresent: r,
62
+ custom: m,
63
+ onExitComplete: (e) => {
64
+ t.set(e, !0);
65
+ for (const d of t.values())
66
+ if (!d)
67
+ return;
68
+ l && l();
69
+ },
70
+ register: (e) => (t.set(e, !1), () => t.delete(e))
71
+ }),
72
+ /**
73
+ * If the presence of a child affects the layout of the components around it,
74
+ * we want to make a new context value to ensure they get re-rendered
75
+ * so they can detect that layout change.
76
+ */
77
+ a ? [Math.random()] : [r]
78
+ );
79
+ return T(() => {
80
+ t.forEach((e, d) => t.set(d, !1));
81
+ }, [r]), L.useEffect(() => {
82
+ !r && !t.size && l && l();
83
+ }, [r]), p === "popLayout" && (i = k.jsx(de, { isPresent: r, children: i })), k.jsx(le.Provider, { value: f, children: i });
84
+ };
85
+ function fe() {
86
+ return /* @__PURE__ */ new Map();
87
+ }
88
+ const D = (i) => i.key || "";
89
+ function $(i) {
90
+ const u = [];
91
+ return ee.forEach(i, (r) => {
92
+ te(r) && u.push(r);
93
+ }), u;
94
+ }
95
+ const pe = ({ children: i, exitBeforeEnter: u, custom: r, initial: l = !0, onExitComplete: m, presenceAffectsLayout: a = !0, mode: p = "sync" }) => {
96
+ ae(!u, "Replace exitBeforeEnter with mode='wait'");
97
+ const t = T(() => $(i), [i]), c = t.map(D), f = P(!0), e = P(t), d = U(() => /* @__PURE__ */ new Map()), [C, g] = I(t), [n, h] = I(t);
98
+ ie(() => {
99
+ f.current = !1, e.current = t;
100
+ for (let s = 0; s < n.length; s++) {
101
+ const o = D(n[s]);
102
+ c.includes(o) ? d.delete(o) : d.get(o) !== !0 && d.set(o, !1);
103
+ }
104
+ }, [n, c.length, c.join("-")]);
105
+ const v = [];
106
+ if (t !== C) {
107
+ let s = [...t];
108
+ for (let o = 0; o < n.length; o++) {
109
+ const y = n[o], N = D(y);
110
+ c.includes(N) || (s.splice(o, 0, y), v.push(y));
111
+ }
112
+ p === "wait" && v.length && (s = v), h($(s)), g(t);
113
+ return;
114
+ }
115
+ process.env.NODE_ENV !== "production" && p === "wait" && n.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.`);
116
+ const { forceRender: j } = M(se);
117
+ return k.jsx(k.Fragment, { children: n.map((s) => {
118
+ const o = D(s), y = t === n || c.includes(o), N = () => {
119
+ if (d.has(o))
120
+ d.set(o, !0);
121
+ else
122
+ return;
123
+ let E = !0;
124
+ d.forEach((w) => {
125
+ w || (E = !1);
126
+ }), E && (j == null || j(), h(e.current), m && m());
127
+ };
128
+ return k.jsx(ue, { isPresent: y, initial: !f.current || l ? void 0 : !1, custom: y ? void 0 : r, presenceAffectsLayout: a, mode: p, onExitComplete: y ? void 0 : N, children: s }, o);
129
+ }) });
130
+ };
131
+ const me = "_tab_1or1e_4", he = "_inner_1or1e_70", ve = "_indicator_1or1e_83", xe = "_scroller_1or1e_117", be = "_right_1or1e_125", ge = "_left_1or1e_125", ye = "_fill_1or1e_145", _ = {
132
+ tab: me,
133
+ "tab-panel": "_tab-panel_1or1e_17",
134
+ "tab-button": "_tab-button_1or1e_18",
135
+ "tab-list": "_tab-list_1or1e_19",
136
+ "overflow-prev": "_overflow-prev_1or1e_32",
137
+ "overflow-next": "_overflow-next_1or1e_33",
138
+ inner: he,
139
+ indicator: ve,
140
+ scroller: xe,
141
+ right: be,
142
+ left: ge,
143
+ fill: ye
144
+ }, G = K(
145
+ (i, u) => {
146
+ const r = P(null), l = O(), {
147
+ current: m,
148
+ items: a,
149
+ setCurrent: p,
150
+ focus: t,
151
+ setFocus: c,
152
+ uid: f,
153
+ onKeyDownHandler: e
154
+ } = M(S), {
155
+ onClick: d,
156
+ children: C,
157
+ onFocus: g,
158
+ onKeyDown: n,
159
+ controls: h,
160
+ id: v,
161
+ className: j,
162
+ ...s
163
+ } = i, o = a && Array.prototype.indexOf.call(a, r.current), y = (w) => {
164
+ o !== void 0 && (d == null || d(w, o), p == null || p(o), c == null || c(o), a == null || a[o].focus());
165
+ }, N = (w) => {
166
+ e == null || e(w), n == null || n(w);
167
+ }, E = z(_["tab-button"], j);
168
+ return /* @__PURE__ */ b.jsxs(
169
+ "button",
170
+ {
171
+ type: "button",
172
+ role: "tab",
173
+ "data-anv": "tab-button",
174
+ id: v,
175
+ className: E,
176
+ "aria-selected": (a == null ? void 0 : a[m].id) === v,
177
+ "aria-controls": h,
178
+ onClick: y,
179
+ onKeyDown: N,
180
+ tabIndex: (a == null ? void 0 : a[t].id) === v ? 0 : -1,
181
+ ...s,
182
+ ref: V([r, u]),
183
+ children: [
184
+ /* @__PURE__ */ b.jsx("span", { className: _.inner, children: C }),
185
+ (a == null ? void 0 : a[m].id) === v && /* @__PURE__ */ b.jsx(
186
+ q.span,
187
+ {
188
+ layoutId: f,
189
+ className: _.indicator,
190
+ transition: { duration: l ? 0 : 0.2 }
191
+ }
192
+ )
193
+ ]
194
+ }
195
+ );
196
+ }
197
+ );
198
+ G.displayName = "TabButton";
199
+ const we = (i) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...i }, /* @__PURE__ */ L.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" })), _e = (i) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...i }, /* @__PURE__ */ L.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" })), J = K(
200
+ (i, u) => {
201
+ const { className: r, children: l, onKeyDown: m, ...a } = i, { goToPrev: p, gotoNext: t, dir: c } = M(S), [f, e] = I(!1), [d, C] = I(!1), g = P(null), n = A(
202
+ (s) => {
203
+ const o = c === "ltr" ? s.scrollLeft > 0 : s.scrollLeft > s.offsetWidth - s.scrollWidth + 1, y = c === "ltr" ? s.scrollLeft < s.scrollWidth - s.offsetWidth : s.scrollLeft < 0;
204
+ e(o), C(y);
205
+ },
206
+ [c]
207
+ );
208
+ B(() => {
209
+ g.current && n(g.current);
210
+ }, [n]);
211
+ const h = (s) => {
212
+ const o = s.target;
213
+ n(o);
214
+ }, v = z(_["tab-list"], r), j = z(_.scroller, {
215
+ [_.left]: f,
216
+ [_.right]: d
217
+ });
218
+ return /* @__PURE__ */ b.jsxs(
219
+ "div",
220
+ {
221
+ ...a,
222
+ className: v,
223
+ "data-anv": "tab-list",
224
+ ref: u,
225
+ children: [
226
+ (c === "ltr" ? f : d) && /* @__PURE__ */ b.jsx(
227
+ "button",
228
+ {
229
+ tabIndex: -1,
230
+ onClick: () => p == null ? void 0 : p(!1),
231
+ className: _["overflow-prev"],
232
+ "aria-label": "Previous tab",
233
+ children: /* @__PURE__ */ b.jsx(W, { svg: we, "aria-hidden": !0, size: "medium" })
234
+ }
235
+ ),
236
+ /* @__PURE__ */ b.jsx(
237
+ "div",
238
+ {
239
+ onScroll: h,
240
+ className: j,
241
+ role: "tablist",
242
+ ref: g,
243
+ children: l
244
+ }
245
+ ),
246
+ (c === "ltr" ? d : f) && /* @__PURE__ */ b.jsx(
247
+ "button",
248
+ {
249
+ tabIndex: -1,
250
+ onClick: () => t == null ? void 0 : t(!1),
251
+ className: _["overflow-next"],
252
+ "aria-label": "Next tab",
253
+ children: /* @__PURE__ */ b.jsx(W, { svg: _e, "aria-hidden": !0, size: "medium" })
254
+ }
255
+ )
256
+ ]
257
+ }
258
+ );
259
+ }
260
+ );
261
+ J.displayName = "TabList";
262
+ const Y = K(
263
+ (i, u) => {
264
+ var r;
265
+ const { id: l, className: m, ...a } = i, { current: p, items: t } = M(S), c = O();
266
+ let f;
267
+ t == null || t.forEach((g, n) => {
268
+ g.getAttribute("aria-controls") === l && (f = g.id);
269
+ });
270
+ const e = ((r = t == null ? void 0 : t[p]) == null ? void 0 : r.getAttribute("aria-controls")) === l, d = c ? {
271
+ enter: {
272
+ opacity: 0
273
+ },
274
+ center: {
275
+ zIndex: 1,
276
+ opacity: 1
277
+ },
278
+ exit: {
279
+ zIndex: 0,
280
+ opacity: 0
281
+ }
282
+ } : {
283
+ enter: {
284
+ y: 50,
285
+ opacity: 0
286
+ },
287
+ center: {
288
+ zIndex: 1,
289
+ y: 0,
290
+ opacity: 1
291
+ },
292
+ exit: {
293
+ zIndex: 0,
294
+ y: -50,
295
+ opacity: 0
296
+ }
297
+ }, C = z(_["tab-panel"], m);
298
+ return e ? /* @__PURE__ */ b.jsx(
299
+ q.div,
300
+ {
301
+ variants: d,
302
+ initial: "enter",
303
+ animate: "center",
304
+ exit: "exit",
305
+ className: C,
306
+ transition: {
307
+ x: {
308
+ type: "spring",
309
+ stiffness: 300,
310
+ damping: 30
311
+ },
312
+ opacity: { duration: 1 }
313
+ },
314
+ ...a,
315
+ role: "tabpanel",
316
+ "data-anv": "tab-panel",
317
+ id: l,
318
+ "aria-labelledby": f,
319
+ tabIndex: 0,
320
+ ref: u
321
+ }
322
+ ) : /* @__PURE__ */ b.jsx(b.Fragment, {});
323
+ }
324
+ );
325
+ Y.displayName = "TabPanel";
326
+ const Ce = {
327
+ current: 0,
328
+ focus: 0
329
+ }, S = ne(Ce), Q = K((i, u) => {
330
+ const { layoutStyles: r, componentProps: l } = re(i), { defaultIndex: m, className: a, style: p, fill: t, ...c } = l, f = P(null), [e, d] = I(), [C, g] = I(m ?? 0), [n, h] = I(m ?? 0), [v, j] = I("ltr"), s = z(_.tab, a, {
331
+ [_.fill]: t
332
+ }), o = F();
333
+ B(() => {
334
+ var x;
335
+ d((x = f.current) == null ? void 0 : x.querySelectorAll("[role=tab]:not([disabled])"));
336
+ }, [f]), B(() => {
337
+ var x, R;
338
+ ((R = (x = f.current) == null ? void 0 : x.closest("[dir]")) == null ? void 0 : R.getAttribute("dir")) === "rtl" ? j("rtl") : j("ltr");
339
+ }, []);
340
+ const y = {
341
+ ...p,
342
+ ...r
343
+ }, N = (x) => {
344
+ x == null || x.scrollIntoView({
345
+ behavior: "smooth",
346
+ block: "nearest",
347
+ inline: "center"
348
+ });
349
+ }, E = A(
350
+ (x = !0) => {
351
+ if (n + 1 === (e == null ? void 0 : e.length)) {
352
+ h == null || h(0), e == null || e[0].focus(), N(e == null ? void 0 : e[0]);
353
+ return;
354
+ }
355
+ h == null || h(n + 1), e == null || e[n + 1].focus(), N(e == null ? void 0 : e[n + 1]);
356
+ },
357
+ [n, e]
358
+ ), w = A(
359
+ (x = !0) => {
360
+ if (n === 0) {
361
+ const R = e ? (e == null ? void 0 : e.length) - 1 : 0;
362
+ h == null || h(R), e == null || e[R].focus(), N(e == null ? void 0 : e[R]);
363
+ return;
364
+ }
365
+ h == null || h(n - 1), e == null || e[n - 1].focus(), N(e == null ? void 0 : e[n - 1]);
366
+ },
367
+ [n, e]
368
+ ), H = A(
369
+ (x) => {
370
+ switch (console.log("working", x), x.code) {
371
+ case "Enter":
372
+ case "Space":
373
+ x.preventDefault(), g == null || g(n);
374
+ break;
375
+ case "ArrowRight":
376
+ x.preventDefault(), v === "ltr" ? E() : w();
377
+ break;
378
+ case "ArrowLeft":
379
+ x.preventDefault(), v === "ltr" ? w() : E();
380
+ break;
381
+ }
382
+ },
383
+ [v, n, w, E]
384
+ ), X = T(
385
+ () => ({
386
+ current: C,
387
+ setCurrent: g,
388
+ focus: n,
389
+ setFocus: h,
390
+ items: e,
391
+ uid: o,
392
+ onKeyDownHandler: H,
393
+ gotoNext: E,
394
+ goToPrev: w,
395
+ dir: v
396
+ }),
397
+ [C, n, w, E, e, H, o, v]
398
+ );
399
+ return /* @__PURE__ */ b.jsx(S.Provider, { value: X, children: /* @__PURE__ */ b.jsx(pe, { initial: !1, children: /* @__PURE__ */ b.jsx(
400
+ "div",
401
+ {
402
+ className: s,
403
+ "data-anv": "tab",
404
+ style: y,
405
+ ...c,
406
+ ref: V([f, u])
407
+ }
408
+ ) }) });
409
+ });
410
+ Q.displayName = "Tab";
411
+ const De = Object.assign(Q, {
412
+ Button: G,
413
+ List: J,
414
+ Panel: Y
415
+ });
416
+ export {
417
+ J as V,
418
+ G as W,
419
+ De as m,
420
+ Y as q
421
+ };
422
+ //# sourceMappingURL=Tab-f636d6c5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tab-f636d6c5.js","sources":["../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/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/@servicetitan/hammer-react/dist/Tab.js"],"sourcesContent":["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 { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\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\nexport { getChildKey, onlyElements };\n","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { invariant } from '../../utils/errors.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\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, exitBeforeEnter, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.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 /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender === null || forceRender === void 0 ? void 0 : forceRender();\n setRenderedChildren(pendingPresentChildren.current);\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: isPresent ? undefined : custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, children: child }, key));\n }) }));\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 P from \"react\";\nimport { forwardRef as T, useRef as z, useContext as D, useState as R, useCallback as A, useEffect as O, createContext as Q, useId as X, useMemo as Y } from \"react\";\nimport { useMergeRefs as K } from \"@floating-ui/react\";\nimport k from \"classnames\";\nimport { Icon as B } 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 = T(\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 } = D(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), C = (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 = k(u[\"tab-button\"], I);\n return /* @__PURE__ */ s.jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"tab-button\",\n id: i,\n className: N,\n \"aria-selected\": (r == null ? void 0 : r[w].id) === i,\n \"aria-controls\": o,\n onClick: C,\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__ */ P.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ P.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__ */ P.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ P.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 = T(\n (b, g) => {\n const { className: v, children: y, onKeyDown: w, ...r } = b, { goToPrev: a, gotoNext: m, dir: l } = D(E), [p, t] = R(!1), [x, _] = R(!1), d = z(null), e = A(\n (c) => {\n const f = l === \"ltr\" ? c.scrollLeft > 0 : c.scrollLeft > c.offsetWidth - c.scrollWidth + 1, C = l === \"ltr\" ? c.scrollLeft < c.scrollWidth - c.offsetWidth : c.scrollLeft < 0;\n t(f), _(C);\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 = k(u[\"tab-list\"], v), I = k(u.scroller, {\n [u.left]: p,\n [u.right]: x\n });\n return /* @__PURE__ */ s.jsxs(\n \"div\",\n {\n ...r,\n className: i,\n \"data-anv\": \"tab-list\",\n ref: g,\n 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(B, { 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(B, { svg: st, \"aria-hidden\": !0, size: \"medium\" })\n }\n )\n ]\n }\n );\n }\n);\nV.displayName = \"TabList\";\nconst q = T(\n (b, g) => {\n var d;\n const { id: v, className: y, ...w } = b, { current: r, items: a } = D(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 }, _ = k(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\": \"tab-panel\",\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 = T((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] = R(), [_, d] = R(w ?? 0), [e, o] = R(w ?? 0), [i, I] = R(\"ltr\"), c = k(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 C = {\n ...a,\n ...v\n }, j = (n) => {\n n == null || n.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n }, N = A(\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 = A(\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 ), S = A(\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: S,\n gotoNext: N,\n goToPrev: h,\n dir: i\n }),\n [_, e, h, N, t, S, 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: C,\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":["PopChildMeasure","React","prevProps","element","size","PopChild","children","isPresent","id","useId","ref","useRef","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","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","exitBeforeEnter","invariant","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","i","exitingChildren","nextChildren","forceRender","LayoutGroupContext","onExit","isEveryExitComplete","isExitComplete","$","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","C","h","j","N","cx","fr","useMergeRefs","motion","at","st","V","useCallback","useEffect","q","lt","createContext","U","J","n","L","S","G","mt"],"mappings":";;;;;;;;;;;AASA,MAAAA,WAAAC,EAAA,UAAA;AAAA,EACA,wBAAAC,GAAA;AACA,UAAAC,IAAA,KAAA,MAAA,SAAA;AACA,QAAAA,KAAAD,EAAA,aAAA,CAAA,KAAA,MAAA,WAAA;AACA,YAAAE,IAAA,KAAA,MAAA,QAAA;AACA,MAAAA,EAAA,SAAAD,EAAA,gBAAA,GACAC,EAAA,QAAAD,EAAA,eAAA,GACAC,EAAA,MAAAD,EAAA,WACAC,EAAA,OAAAD,EAAA;AAAA,IACA;AACA,WAAA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA,qBAAA;AAAA,EAAA;AAAA,EACA,SAAA;AACA,WAAA,KAAA,MAAA;AAAA,EACA;AACA;AACA,SAAAE,GAAA,EAAA,UAAAC,GAAA,WAAAC,EAAA,GAAA;AACA,QAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAP,IAAAO,EAAA;AAAA,IACA,OAAA;AAAA,IACA,QAAA;AAAA,IACA,KAAA;AAAA,IACA,MAAA;AAAA,EACA,CAAA,GACA,EAAA,OAAAC,EAAA,IAAAC,EAAAC,EAAA;AAUA,SAAAC,EAAA,MAAA;AACA,UAAA,EAAA,OAAAC,GAAA,QAAAC,GAAA,KAAAC,GAAA,MAAAC,EAAA,IAAAf,EAAA;AAC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AA,GAAAxB,KAAA,QAAAA,EAAAC,CAAA;AACA;AAAA,QACA,KAAA;AACA,UAAAuB,EAAA,eAAA,GAAAxD,MAAA,QAAAyC,EAAA,IAAAF,EAAA;AACA;AAAA,QACA,KAAA;AACA,UAAAiB,EAAA,eAAA,GAAAxD,MAAA,QAAAuC,EAAA,IAAAE,EAAA;AACA;AAAA,MACA;AAAA,IACA;AAAA,IACA,CAAAzC,GAAAiC,GAAAM,GAAAE,CAAA;AAAA,EACA,GAAAkB,IAAArF;AAAA,IACA,OAAA;AAAA,MACA,SAAAG;AAAA,MACA,YAAAuD;AAAA,MACA,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,OAAAL;AAAA,MACA,KAAAQ;AAAA,MACA,kBAAAqB;AAAA,MACA,UAAAjB;AAAA,MACA,UAAAF;AAAA,MACA,KAAAvC;AAAA,IACA;AAAA,IACA,CAAAvB,GAAAwD,GAAAM,GAAAE,GAAAZ,GAAA6B,GAAArB,GAAArC,CAAA;AAAA,EACA;AACA,SAAA,gBAAA2C,EAAA,IAAAb,EAAA,UAAA,EAAA,OAAA6B,GAAA,UAAA,gBAAAhB,EAAA,IAAAzD,IAAA,EAAA,SAAA,IAAA,UAAA,gBAAAyD,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;AACAmC,EAAA,cAAA;AACK,MAAAM,KAAA,OAAA,OAAAN,GAAA;AAAA,EACL,QAAAtC;AAAA,EACA,MAAAgC;AAAA,EACA,OAAAG;AACA,CAAA;","x_google_ignoreList":[0,1,2,3,4]}
package/Tab.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./jsx-runtime-494437bb.cjs"),r=require("./Tab-ad70a0a5.cjs"),a=require("react"),b=require("./useTrackingId.cjs"),T=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.mt,{ref:e,...t})),s=a.forwardRef((t,e)=>{const c={id:t.id,controls:t.controls},d=b.useTrackingId({name:"TabButton",data:c,hasOverride:!!t["data-tracking-id"]});return n.jsxRuntimeExports.jsx(r.W,{ref:e,"data-tracking-id":d,...t})}),o=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.V,{ref:e,...t})),i=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.q,{ref:e,...t})),u=Object.assign(T,{Button:s,List:o,Panel:i});exports.Tab=u;exports.TabButton=s;exports.TabList=o;exports.TabPanel=i;exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./jsx-runtime-494437bb.cjs"),r=require("./Tab-0bcbe9c7.cjs"),a=require("react"),b=require("./useTrackingId.cjs"),T=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.mt,{ref:e,...t})),s=a.forwardRef((t,e)=>{const c={id:t.id,controls:t.controls},d=b.useTrackingId({name:"TabButton",data:c,hasOverride:!!t["data-tracking-id"]});return n.jsxRuntimeExports.jsx(r.W,{ref:e,"data-tracking-id":d,...t})}),o=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.V,{ref:e,...t})),i=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.q,{ref:e,...t})),u=Object.assign(T,{Button:s,List:o,Panel:i});exports.Tab=u;exports.TabButton=s;exports.TabList=o;exports.TabPanel=i;exports.default=u;
2
2
  //# sourceMappingURL=Tab.cjs.map
package/Tab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as n } from "./jsx-runtime-82a9ddf6.js";
2
- import { m as e, W as i, V as c, q as m } from "./Tab-1934a4ca.js";
2
+ import { m as e, W as i, V as c, q as m } from "./Tab-f636d6c5.js";
3
3
  import { forwardRef as r } from "react";
4
4
  import { useTrackingId as d } from "./useTrackingId.js";
5
5
  const u = r((t, a) => /* @__PURE__ */ n.jsx(e, { ref: a, ...t })), b = r(
@@ -1,9 +1,9 @@
1
1
  import "./Text.css";
2
2
  import { f as o } from "./jsx-runtime-944c88e2-e73fa629.js";
3
- import { c as b } from "./index-e0f6271a.js";
4
- import { forwardRef as u } from "react";
5
- import { J as x } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
6
- const h = "_headline_ifpbp_4", v = "_eyebrow_ifpbp_17", N = "_bodytext_ifpbp_30", w = "_xlarge_ifpbp_75", g = "_large_ifpbp_79", j = "_medium_ifpbp_83", z = "_small_ifpbp_86", T = "_subdued_ifpbp_104", $ = "_inline_ifpbp_107", e = {
3
+ import { c } from "./index-e0f6271a.js";
4
+ import { forwardRef as x } from "react";
5
+ import { J as y } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
6
+ const h = "_headline_ifpbp_4", v = "_eyebrow_ifpbp_17", N = "_bodytext_ifpbp_30", w = "_xlarge_ifpbp_75", g = "_large_ifpbp_79", j = "_medium_ifpbp_83", z = "_small_ifpbp_86", $ = "_subdued_ifpbp_104", T = "_inline_ifpbp_107", e = {
7
7
  headline: h,
8
8
  eyebrow: v,
9
9
  bodytext: N,
@@ -11,80 +11,80 @@ const h = "_headline_ifpbp_4", v = "_eyebrow_ifpbp_17", N = "_bodytext_ifpbp_30"
11
11
  large: g,
12
12
  medium: j,
13
13
  small: z,
14
- subdued: T,
15
- inline: $
16
- }, E = u((p, d) => {
17
- const { layoutStyles: _, componentProps: f } = x(p);
14
+ subdued: $,
15
+ inline: T
16
+ }, C = x((p, d) => {
17
+ const { layoutStyles: _, componentProps: f } = y(p);
18
18
  if (p.variant === "headline") {
19
19
  const {
20
- variant: c,
20
+ variant: b,
21
21
  children: a,
22
22
  className: n,
23
- el: i,
24
- size: s = "medium",
23
+ el: s,
24
+ size: t = "medium",
25
25
  style: r,
26
- ...l
27
- } = f, t = b(e.headline, n, {
28
- [e[`${s}`]]: s
26
+ ...i
27
+ } = f, l = c(e.headline, n, {
28
+ [e[`${t}`]]: t
29
29
  }), m = { ...r, ..._ };
30
30
  return (
31
31
  // @ts-expect-error ts(2604) HeadlineElement will work as element tag
32
32
  /* @__PURE__ */ o.jsx(
33
- i,
33
+ s,
34
34
  {
35
35
  ref: d,
36
- className: t,
37
- "data-anv": "Headline",
36
+ className: l,
37
+ "data-anv": "text",
38
38
  style: m,
39
- ...l,
39
+ ...i,
40
40
  children: a
41
41
  }
42
42
  )
43
43
  );
44
44
  } else if (p.variant === "eyebrow") {
45
45
  const {
46
- variant: c,
46
+ variant: b,
47
47
  children: a,
48
48
  className: n,
49
- size: i = "medium",
50
- style: s,
49
+ size: s = "medium",
50
+ style: t,
51
51
  ...r
52
- } = f, l = b(e.eyebrow, n, {
53
- [e[`${i}`]]: i
54
- }), t = { ...s, ..._ };
52
+ } = f, i = c(e.eyebrow, n, {
53
+ [e[`${s}`]]: s
54
+ }), l = { ...t, ..._ };
55
55
  return /* @__PURE__ */ o.jsx(
56
56
  "span",
57
57
  {
58
58
  ref: d,
59
- className: l,
60
- "data-anv": "Eyebrow",
61
- style: t,
59
+ className: i,
60
+ "data-anv": "text",
61
+ style: l,
62
62
  ...r,
63
63
  children: a
64
64
  }
65
65
  );
66
66
  } else {
67
67
  const {
68
- variant: c,
68
+ variant: b,
69
69
  children: a,
70
70
  className: n,
71
- subdued: i,
72
- inline: s,
71
+ subdued: s,
72
+ inline: t,
73
73
  style: r,
74
- size: l = "medium",
75
- ...t
76
- } = f, m = b(e.bodytext, n, {
77
- [e[`${l}`]]: l,
78
- [e.subdued]: i
79
- }), y = { ...r, ..._ };
80
- return s ? /* @__PURE__ */ o.jsx(
74
+ size: i = "medium",
75
+ ...l
76
+ } = f, m = c(e.bodytext, n, {
77
+ [e[`${i}`]]: i,
78
+ [e.subdued]: s
79
+ }), u = { ...r, ..._ };
80
+ return t ? /* @__PURE__ */ o.jsx(
81
81
  "span",
82
82
  {
83
83
  ref: d,
84
84
  className: m,
85
- "data-anv": "Text",
86
- style: y,
87
- ...t,
85
+ "data-anv": "text",
86
+ style: u,
87
+ ...l,
88
88
  children: a
89
89
  }
90
90
  ) : /* @__PURE__ */ o.jsx(
@@ -92,16 +92,16 @@ const h = "_headline_ifpbp_4", v = "_eyebrow_ifpbp_17", N = "_bodytext_ifpbp_30"
92
92
  {
93
93
  ref: d,
94
94
  className: m,
95
- "data-anv": "Text",
96
- style: y,
97
- ...t,
95
+ "data-anv": "text",
96
+ style: u,
97
+ ...l,
98
98
  children: a
99
99
  }
100
100
  );
101
101
  }
102
102
  });
103
- E.displayName = "Text";
103
+ C.displayName = "Text";
104
104
  export {
105
- E
105
+ C as $
106
106
  };
107
- //# sourceMappingURL=Text-4c30916c.js.map
107
+ //# sourceMappingURL=Text-465104f6.js.map