@servicetitan/anvil2 1.2.2 → 1.2.3

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 (353) hide show
  1. package/Alert-6336e146.cjs +2 -0
  2. package/Alert-6336e146.cjs.map +1 -0
  3. package/Alert-6faa0b05.js +88 -0
  4. package/Alert-6faa0b05.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.css +1 -1
  7. package/Alert.js +1 -1
  8. package/{Announcement-0ef0c8f7.js → Announcement-d04009ea.js} +26 -26
  9. package/Announcement-d04009ea.js.map +1 -0
  10. package/Announcement-fff87b68.cjs +2 -0
  11. package/Announcement-fff87b68.cjs.map +1 -0
  12. package/Announcement.cjs +1 -1
  13. package/Announcement.css +1 -1
  14. package/Announcement.js +1 -1
  15. package/AnvilProvider.cjs +1 -1
  16. package/AnvilProvider.js +1 -1
  17. package/Avatar.cjs +1 -1
  18. package/Avatar.js +7 -7
  19. package/Badge-0073b5a1.cjs +2 -0
  20. package/{Badge-29ed0c9e.cjs.map → Badge-0073b5a1.cjs.map} +1 -1
  21. package/Badge-f761458c.js +35 -0
  22. package/Badge-f761458c.js.map +1 -0
  23. package/Badge.cjs +1 -1
  24. package/Badge.css +1 -1
  25. package/Badge.js +1 -1
  26. package/Button-268ba8a9.cjs +2 -0
  27. package/Button-268ba8a9.cjs.map +1 -0
  28. package/Button-d05507c5.js +289 -0
  29. package/Button-d05507c5.js.map +1 -0
  30. package/Button.cjs +1 -1
  31. package/Button.cjs.map +1 -1
  32. package/Button.css +1 -1
  33. package/Button.js +46 -14
  34. package/Button.js.map +1 -1
  35. package/ButtonCompound.cjs +1 -1
  36. package/ButtonCompound.cjs.map +1 -1
  37. package/ButtonCompound.js +45 -13
  38. package/ButtonCompound.js.map +1 -1
  39. package/ButtonLink.cjs +1 -1
  40. package/ButtonLink.cjs.map +1 -1
  41. package/ButtonLink.js +46 -14
  42. package/ButtonLink.js.map +1 -1
  43. package/ButtonToggle.cjs +1 -1
  44. package/ButtonToggle.cjs.map +1 -1
  45. package/ButtonToggle.js +46 -14
  46. package/ButtonToggle.js.map +1 -1
  47. package/{Calendar-fc2373b7.js → Calendar-073dc10d.js} +821 -821
  48. package/{Calendar-fc2373b7.js.map → Calendar-073dc10d.js.map} +1 -1
  49. package/{Calendar-e0743dcf.cjs → Calendar-706f41ff.cjs} +2 -2
  50. package/{Calendar-e0743dcf.cjs.map → Calendar-706f41ff.cjs.map} +1 -1
  51. package/Calendar.cjs +1 -1
  52. package/Calendar.css +1 -1
  53. package/Calendar.js +1 -1
  54. package/Card-33f3ad0a.js +51 -0
  55. package/Card-33f3ad0a.js.map +1 -0
  56. package/Card-92ebca1f.cjs +2 -0
  57. package/Card-92ebca1f.cjs.map +1 -0
  58. package/Card.cjs +1 -1
  59. package/Card.css +1 -1
  60. package/Card.js +1 -1
  61. package/{Checkbox-e2b0e7d0.js → Checkbox-d503c3b6.js} +41 -41
  62. package/Checkbox-d503c3b6.js.map +1 -0
  63. package/Checkbox-edf070c3.cjs +2 -0
  64. package/Checkbox-edf070c3.cjs.map +1 -0
  65. package/Checkbox.cjs +1 -1
  66. package/Checkbox.css +1 -1
  67. package/Checkbox.d.ts +25 -4
  68. package/Checkbox.js +4 -4
  69. package/{Chip-dbc470f4.js → Chip-a8eb2656.js} +31 -31
  70. package/Chip-a8eb2656.js.map +1 -0
  71. package/Chip-b52e1bd7.cjs +2 -0
  72. package/Chip-b52e1bd7.cjs.map +1 -0
  73. package/Chip.cjs +1 -1
  74. package/Chip.css +1 -1
  75. package/Chip.js +1 -1
  76. package/Combobox.cjs +1 -1
  77. package/Combobox.cjs.map +1 -1
  78. package/Combobox.js +65 -32
  79. package/Combobox.js.map +1 -1
  80. package/Details.cjs +1 -1
  81. package/Details.cjs.map +1 -1
  82. package/Details.js +54 -22
  83. package/Details.js.map +1 -1
  84. package/Dialog.cjs +1 -1
  85. package/Dialog.cjs.map +1 -1
  86. package/Dialog.js +70 -38
  87. package/Dialog.js.map +1 -1
  88. package/Divider-86c1f4ea.cjs +2 -0
  89. package/Divider-86c1f4ea.cjs.map +1 -0
  90. package/Divider-edca965e.js +74 -0
  91. package/Divider-edca965e.js.map +1 -0
  92. package/Divider.cjs +1 -1
  93. package/Divider.css +1 -1
  94. package/Divider.js +1 -1
  95. package/Drawer-6c2a6e0c.cjs +2 -0
  96. package/{Drawer-989d1d8a.cjs.map → Drawer-6c2a6e0c.cjs.map} +1 -1
  97. package/{Drawer-b81924d3.js → Drawer-f68286e8.js} +56 -56
  98. package/Drawer-f68286e8.js.map +1 -0
  99. package/Drawer.cjs +1 -1
  100. package/Drawer.css +1 -1
  101. package/Drawer.js +1 -1
  102. package/Flex-4b128a0e.cjs +2 -0
  103. package/{Flex-740ea6ba.cjs.map → Flex-4b128a0e.cjs.map} +1 -1
  104. package/{Flex-15fbb5a2.js → Flex-f6e67921.js} +2 -2
  105. package/{Flex-15fbb5a2.js.map → Flex-f6e67921.js.map} +1 -1
  106. package/Flex.cjs +1 -1
  107. package/Flex.css +1 -1
  108. package/Flex.js +1 -1
  109. package/{Grid-674805a9.cjs → Grid-8226f7a1.cjs} +2 -2
  110. package/{Grid-674805a9.cjs.map → Grid-8226f7a1.cjs.map} +1 -1
  111. package/{Grid-043bde66.js → Grid-992de375.js} +15 -15
  112. package/{Grid-043bde66.js.map → Grid-992de375.js.map} +1 -1
  113. package/Grid.cjs +1 -1
  114. package/Grid.css +1 -1
  115. package/Grid.js +1 -1
  116. package/{Helper-74a1f07f-18441e16.js → Helper-74a1f07f-067ae3f7.js} +2 -2
  117. package/{Helper-74a1f07f-18441e16.js.map → Helper-74a1f07f-067ae3f7.js.map} +1 -1
  118. package/{Helper-74a1f07f-2aeadeae.cjs → Helper-74a1f07f-6cf9865b.cjs} +2 -2
  119. package/{Helper-74a1f07f-2aeadeae.cjs.map → Helper-74a1f07f-6cf9865b.cjs.map} +1 -1
  120. package/Icon-ae9b951b.cjs +2 -0
  121. package/Icon-ae9b951b.cjs.map +1 -0
  122. package/Icon-fa8f3dc8.js +47 -0
  123. package/Icon-fa8f3dc8.js.map +1 -0
  124. package/Icon.cjs +1 -1
  125. package/Icon.css +1 -1
  126. package/Icon.js +1 -1
  127. package/Link.cjs +1 -1
  128. package/Link.cjs.map +1 -1
  129. package/Link.d.ts +2 -1
  130. package/Link.js +49 -17
  131. package/Link.js.map +1 -1
  132. package/{ListView-b33a9948.cjs → ListView-14d80585.cjs} +2 -2
  133. package/{ListView-b33a9948.cjs.map → ListView-14d80585.cjs.map} +1 -1
  134. package/{ListView-dac3c924.js → ListView-1f75e2de.js} +26 -26
  135. package/{ListView-dac3c924.js.map → ListView-1f75e2de.js.map} +1 -1
  136. package/ListView.cjs +1 -1
  137. package/ListView.css +1 -1
  138. package/ListView.js +1 -1
  139. package/Listbox-306a8d62.cjs +2 -0
  140. package/{Listbox-873403e9.cjs.map → Listbox-306a8d62.cjs.map} +1 -1
  141. package/{Listbox-7a43984b.js → Listbox-cdf02568.js} +81 -81
  142. package/{Listbox-7a43984b.js.map → Listbox-cdf02568.js.map} +1 -1
  143. package/Listbox.cjs +1 -1
  144. package/Listbox.css +1 -1
  145. package/Listbox.js +1 -1
  146. package/Menu.cjs +1 -1
  147. package/Menu.cjs.map +1 -1
  148. package/Menu.d.ts +7 -2
  149. package/Menu.js +3 -3
  150. package/Overflow.cjs +1 -1
  151. package/Overflow.cjs.map +1 -1
  152. package/Overflow.js +56 -24
  153. package/Overflow.js.map +1 -1
  154. package/Page.cjs +1 -1
  155. package/Page.js +2 -2
  156. package/Popover.cjs +1 -1
  157. package/Popover.cjs.map +1 -1
  158. package/Popover.d.ts +22 -1
  159. package/Popover.js +68 -36
  160. package/Popover.js.map +1 -1
  161. package/ProgressBar-29d21945.cjs +2 -0
  162. package/ProgressBar-29d21945.cjs.map +1 -0
  163. package/{ProgressBar-f9325dbe.js → ProgressBar-5f350a3f.js} +93 -93
  164. package/ProgressBar-5f350a3f.js.map +1 -0
  165. package/ProgressBar.cjs +1 -1
  166. package/ProgressBar.css +1 -1
  167. package/ProgressBar.js +1 -1
  168. package/Radio-4189b000.js +124 -0
  169. package/Radio-4189b000.js.map +1 -0
  170. package/Radio-abd4d3fd.cjs +2 -0
  171. package/Radio-abd4d3fd.cjs.map +1 -0
  172. package/Radio.cjs +1 -1
  173. package/Radio.cjs.map +1 -1
  174. package/Radio.css +1 -1
  175. package/Radio.d.ts +18 -4
  176. package/Radio.js +1 -1
  177. package/Radio.js.map +1 -1
  178. package/{SideNav-369bf761.cjs → SideNav-6de704fd.cjs} +6 -6
  179. package/{SideNav-369bf761.cjs.map → SideNav-6de704fd.cjs.map} +1 -1
  180. package/{SideNav-94ab00f0.js → SideNav-e92d850f.js} +136 -136
  181. package/{SideNav-94ab00f0.js.map → SideNav-e92d850f.js.map} +1 -1
  182. package/SideNav.cjs +2 -2
  183. package/SideNav.css +1 -1
  184. package/SideNav.js +1 -1
  185. package/Stepper-e776cc28.cjs +2 -0
  186. package/Stepper-e776cc28.cjs.map +1 -0
  187. package/{Stepper-54e47376.js → Stepper-fa554908.js} +140 -140
  188. package/Stepper-fa554908.js.map +1 -0
  189. package/Stepper.cjs +1 -1
  190. package/Stepper.css +1 -1
  191. package/Stepper.js +1 -1
  192. package/Switch-285b3272.cjs +2 -0
  193. package/Switch-285b3272.cjs.map +1 -0
  194. package/Switch-b0a37fc1.js +54 -0
  195. package/Switch-b0a37fc1.js.map +1 -0
  196. package/Switch.cjs +1 -1
  197. package/Switch.css +1 -1
  198. package/Switch.js +1 -1
  199. package/{Tab-120468a3.js → Tab-1934a4ca.js} +80 -80
  200. package/{Tab-120468a3.js.map → Tab-1934a4ca.js.map} +1 -1
  201. package/Tab-ad70a0a5.cjs +10 -0
  202. package/{Tab-3de6894a.cjs.map → Tab-ad70a0a5.cjs.map} +1 -1
  203. package/Tab.cjs +1 -1
  204. package/Tab.css +1 -1
  205. package/Tab.js +1 -1
  206. package/{Text-a7747376.js → Text-4c30916c.js} +31 -31
  207. package/Text-4c30916c.js.map +1 -0
  208. package/Text-ed02cc62.cjs +2 -0
  209. package/Text-ed02cc62.cjs.map +1 -0
  210. package/Text.cjs +1 -1
  211. package/Text.css +1 -1
  212. package/Text.js +1 -1
  213. package/TextField.cjs +1 -1
  214. package/TextField.cjs.map +1 -1
  215. package/TextField.js +47 -15
  216. package/TextField.js.map +1 -1
  217. package/Textarea.cjs +1 -1
  218. package/Textarea.cjs.map +1 -1
  219. package/Textarea.js +51 -19
  220. package/Textarea.js.map +1 -1
  221. package/ThemeProvider.cjs +1 -1
  222. package/ThemeProvider.js +1 -1
  223. package/{Toast-4bab713a.cjs → Toast-834c85cd.cjs} +6 -6
  224. package/{Toast-4bab713a.cjs.map → Toast-834c85cd.cjs.map} +1 -1
  225. package/{Toast-5b02b7c0.js → Toast-f15e9d36.js} +141 -141
  226. package/Toast-f15e9d36.js.map +1 -0
  227. package/Toast.cjs +1 -1
  228. package/Toast.css +1 -1
  229. package/Toast.js +1 -1
  230. package/Tooltip.cjs +1 -1
  231. package/Tooltip.cjs.map +1 -1
  232. package/Tooltip.d.ts +2 -1
  233. package/Tooltip.js +47 -17
  234. package/Tooltip.js.map +1 -1
  235. package/anvil2.cjs +1 -1
  236. package/anvil2.d.ts +62 -11
  237. package/anvil2.js +40 -40
  238. package/floating-ui.react-5347095a.cjs +178 -0
  239. package/floating-ui.react-5347095a.cjs.map +1 -0
  240. package/{floating-ui.react-3f85fcd1.js → floating-ui.react-8d61182d.js} +5666 -5654
  241. package/floating-ui.react-8d61182d.js.map +1 -0
  242. package/index-098ca719-3c14c40c.js +307 -0
  243. package/index-098ca719-3c14c40c.js.map +1 -0
  244. package/index-098ca719-8e068129.cjs +2 -0
  245. package/index-098ca719-8e068129.cjs.map +1 -0
  246. package/index-098ca719.css +1 -0
  247. package/{index-5654965e.js → index-439b5871.js} +4 -4
  248. package/{index-5654965e.js.map → index-439b5871.js.map} +1 -1
  249. package/{index-a6d2f789.js → index-8ee9499c.js} +682 -673
  250. package/{index-a6d2f789.js.map → index-8ee9499c.js.map} +1 -1
  251. package/{index-ebc2776c.js → index-ab05dabf.js} +2 -2
  252. package/{index-ebc2776c.js.map → index-ab05dabf.js.map} +1 -1
  253. package/{index-0c3dd58b.cjs → index-acdc415f.cjs} +2 -2
  254. package/{index-0c3dd58b.cjs.map → index-acdc415f.cjs.map} +1 -1
  255. package/{index-d46fa8de-cc49032b.cjs → index-d46fa8de-08092573.cjs} +2 -2
  256. package/{index-d46fa8de-cc49032b.cjs.map → index-d46fa8de-08092573.cjs.map} +1 -1
  257. package/{index-d46fa8de-997b6b08.js → index-d46fa8de-8695742b.js} +15 -15
  258. package/{index-d46fa8de-997b6b08.js.map → index-d46fa8de-8695742b.js.map} +1 -1
  259. package/index-da56edbc-372336bd.js +120 -0
  260. package/index-da56edbc-372336bd.js.map +1 -0
  261. package/index-da56edbc-53f59f54.cjs +2 -0
  262. package/index-da56edbc-53f59f54.cjs.map +1 -0
  263. package/index-da56edbc.css +1 -0
  264. package/{index-51c8d206.cjs → index-dfb6272f.cjs} +5 -5
  265. package/{index-51c8d206.cjs.map → index-dfb6272f.cjs.map} +1 -1
  266. package/{index-30317fba.cjs → index-f6c22572.cjs} +2 -2
  267. package/{index-30317fba.cjs.map → index-f6c22572.cjs.map} +1 -1
  268. package/index3.css +1 -1
  269. package/package.json +33 -33
  270. package/token.cjs +1 -1
  271. package/token.js +1 -1
  272. package/useAccessibleColor.cjs +1 -1
  273. package/useAccessibleColor.js +29 -29
  274. package/useLinkStyles.cjs +1 -1
  275. package/useLinkStyles.js +29 -29
  276. package/useMergeRefs.cjs +1 -1
  277. package/useMergeRefs.js +30 -30
  278. package/usePrefersColorScheme.cjs +1 -1
  279. package/usePrefersColorScheme.js +29 -29
  280. package/useSwipe.cjs +1 -1
  281. package/useSwipe.js +29 -29
  282. package/Alert-017471de.js +0 -88
  283. package/Alert-017471de.js.map +0 -1
  284. package/Alert-3ae85e66.cjs +0 -2
  285. package/Alert-3ae85e66.cjs.map +0 -1
  286. package/Announcement-0ef0c8f7.js.map +0 -1
  287. package/Announcement-3540ab95.cjs +0 -2
  288. package/Announcement-3540ab95.cjs.map +0 -1
  289. package/Badge-29ed0c9e.cjs +0 -2
  290. package/Badge-2dc92a40.js +0 -35
  291. package/Badge-2dc92a40.js.map +0 -1
  292. package/Button-dbbb8dc0.js +0 -289
  293. package/Button-dbbb8dc0.js.map +0 -1
  294. package/Button-df4be721.cjs +0 -2
  295. package/Button-df4be721.cjs.map +0 -1
  296. package/Card-42198f6c.cjs +0 -2
  297. package/Card-42198f6c.cjs.map +0 -1
  298. package/Card-d7d23388.js +0 -51
  299. package/Card-d7d23388.js.map +0 -1
  300. package/Checkbox-949d5f00.cjs +0 -2
  301. package/Checkbox-949d5f00.cjs.map +0 -1
  302. package/Checkbox-e2b0e7d0.js.map +0 -1
  303. package/Chip-c1c9ff14.cjs +0 -2
  304. package/Chip-c1c9ff14.cjs.map +0 -1
  305. package/Chip-dbc470f4.js.map +0 -1
  306. package/Divider-6e94652c.js +0 -74
  307. package/Divider-6e94652c.js.map +0 -1
  308. package/Divider-9719b490.cjs +0 -2
  309. package/Divider-9719b490.cjs.map +0 -1
  310. package/Drawer-989d1d8a.cjs +0 -2
  311. package/Drawer-b81924d3.js.map +0 -1
  312. package/Flex-740ea6ba.cjs +0 -2
  313. package/Icon-7dc0db59.js +0 -47
  314. package/Icon-7dc0db59.js.map +0 -1
  315. package/Icon-d02abfdd.cjs +0 -2
  316. package/Icon-d02abfdd.cjs.map +0 -1
  317. package/Listbox-873403e9.cjs +0 -2
  318. package/Menu-0a24f1ba.js +0 -284
  319. package/Menu-0a24f1ba.js.map +0 -1
  320. package/Menu-869a24e2.cjs +0 -2
  321. package/Menu-869a24e2.cjs.map +0 -1
  322. package/Menu.css +0 -1
  323. package/ProgressBar-2589ad1b.cjs +0 -2
  324. package/ProgressBar-2589ad1b.cjs.map +0 -1
  325. package/ProgressBar-f9325dbe.js.map +0 -1
  326. package/Radio-c81308ef.js +0 -124
  327. package/Radio-c81308ef.js.map +0 -1
  328. package/Radio-e11ee699.cjs +0 -2
  329. package/Radio-e11ee699.cjs.map +0 -1
  330. package/Stepper-54e47376.js.map +0 -1
  331. package/Stepper-e26d5bac.cjs +0 -2
  332. package/Stepper-e26d5bac.cjs.map +0 -1
  333. package/Switch-c4977b9b.js +0 -54
  334. package/Switch-c4977b9b.js.map +0 -1
  335. package/Switch-f1d54e52.cjs +0 -2
  336. package/Switch-f1d54e52.cjs.map +0 -1
  337. package/Tab-3de6894a.cjs +0 -10
  338. package/Text-a7747376.js.map +0 -1
  339. package/Text-eefa573a.cjs +0 -2
  340. package/Text-eefa573a.cjs.map +0 -1
  341. package/Toast-5b02b7c0.js.map +0 -1
  342. package/floating-ui.react-3f85fcd1.js.map +0 -1
  343. package/floating-ui.react-518bb704.cjs +0 -178
  344. package/floating-ui.react-518bb704.cjs.map +0 -1
  345. package/index-f3ce3681-94450aba.js +0 -120
  346. package/index-f3ce3681-94450aba.js.map +0 -1
  347. package/index-f3ce3681-b0bee9d9.cjs +0 -2
  348. package/index-f3ce3681-b0bee9d9.cjs.map +0 -1
  349. package/index-f3ce3681.css +0 -1
  350. package/ui-react-7152d718.js +0 -53
  351. package/ui-react-7152d718.js.map +0 -1
  352. package/ui-react-7f005f46.cjs +0 -2
  353. package/ui-react-7f005f46.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch-285b3272.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/Switch.js"],"sourcesContent":["import \"./index28.css\";\nimport { j as t } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as x } from \"react\";\nimport f from \"classnames\";\nimport { Icon as u } from \"./Icon.js\";\nimport { S as w } from \"./check-5f087ea0.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { a as y } from \"./useLayoutPropsUtil-e307abc7.js\";\nimport \"@floating-ui/react\";\nconst j = \"_toggle_5roin_25\", N = \"_indicator_5roin_39\", S = \"_check_5roin_53\", e = {\n switch: \"_switch_5roin_4\",\n toggle: j,\n indicator: N,\n check: S\n}, b = x(\n (c, n) => {\n const { layoutStyles: l, componentProps: m } = y(c), {\n className: h,\n onChange: s,\n checked: o,\n defaultChecked: a,\n value: i,\n style: d,\n ...p\n } = m, g = (r) => {\n s == null || s(r, { value: i, checked: r.target.checked });\n }, _ = f(e.switch, h), k = {\n ...d,\n ...l\n };\n return /* @__PURE__ */ t.jsxs(\"label\", { className: _, style: k, children: [\n /* @__PURE__ */ t.jsx(\n \"input\",\n {\n \"data-anv\": \"Switch\",\n ref: n,\n type: \"checkbox\",\n role: \"switch\",\n value: i,\n \"aria-checked\": o ?? a,\n checked: o,\n defaultChecked: a,\n onChange: g,\n ...p\n }\n ),\n /* @__PURE__ */ t.jsx(\"span\", { \"aria-hidden\": !0, className: e.toggle, children: /* @__PURE__ */ t.jsx(\"span\", { className: e.indicator, children: /* @__PURE__ */ t.jsx(u, { svg: w, className: e.check }) }) }),\n \"label\" in c && c.label\n ] });\n }\n);\nb.displayName = \"Switch\";\nexport {\n b as Switch\n};\n//# sourceMappingURL=Switch.js.map\n"],"names":["j","S","e","b","React","c","n","l","m","useLayoutPropsUtilE307abc7","h","o","a","d","p","g","r","_","index","k","jsxRuntime944c88e2","Icon","check5f087ea0"],"mappings":"8QAUK,MAAAA,EAAA,mBAAA,EAAA,sBAAAC,EAAA,kBAAAC,EAAA,CACL,OAAA,kBACA,OAAAF,EACA,UAAA,EACA,MAAAC,CACA,EAAAE,EAAAC,EAAA,WACA,CAAAC,EAAAC,IAAA,CACA,KAAA,CAAA,aAAAC,EAAA,eAAAC,CAAA,EAAAC,EAAA,EAAAJ,CAAA,EAAA,CACA,UAAAK,EACA,SAAA,EACA,QAAAC,EACA,eAAAC,EACA,MAAA,EACA,MAAAC,EACA,GAAAC,CACA,EAAAN,EAAAO,EAAAC,GAAA,CACA,GAAA,MAAA,EAAAA,EAAA,CAAA,MAAA,EAAA,QAAAA,EAAA,OAAA,OAAA,CAAA,CACA,EAAAC,EAAAC,EAAA,GAAAhB,EAAA,OAAAQ,CAAA,EAAAS,EAAA,CACA,GAAAN,EACA,GAAAN,CACA,EACA,OAAAa,EAAA,GAAA,KAAA,QAAA,CAAA,UAAAH,EAAA,MAAAE,EAAA,SAAA,CACAC,EAAA,GAAA,IACA,QACA,CACA,WAAA,SACA,IAAAd,EACA,KAAA,WACA,KAAA,SACA,MAAA,EACA,eAAAK,GAAAC,EACA,QAAAD,EACA,eAAAC,EACA,SAAAG,EACA,GAAAD,CACA,CACA,EACAM,EAAA,GAAA,IAAA,OAAA,CAAA,cAAA,GAAA,UAAAlB,EAAA,OAAA,SAAAkB,EAAA,GAAA,IAAA,OAAA,CAAA,UAAAlB,EAAA,UAAA,SAAAkB,EAAA,GAAA,IAAAC,EAAA,EAAA,CAAA,IAAAC,EAAA,EAAA,UAAApB,EAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EACA,UAAAG,GAAAA,EAAA,KACA,CAAA,CAAA,CACA,CACA,EACAF,EAAA,YAAA","x_google_ignoreList":[0]}
@@ -0,0 +1,54 @@
1
+ import "./Switch.css";
2
+ import { f as e } from "./jsx-runtime-944c88e2-e73fa629.js";
3
+ import { forwardRef as g } from "react";
4
+ import { c as u } from "./index-e0f6271a.js";
5
+ import { I as x } from "./Icon-fa8f3dc8.js";
6
+ import { a as w } from "./check-5f087ea0-b5474547.js";
7
+ import { J as N } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
8
+ const j = "_toggle_5roin_25", y = "_indicator_5roin_39", b = "_check_5roin_53", a = {
9
+ switch: "_switch_5roin_4",
10
+ toggle: j,
11
+ indicator: y,
12
+ check: b
13
+ }, v = g(
14
+ (c, l) => {
15
+ const { layoutStyles: n, componentProps: h } = N(c), {
16
+ className: d,
17
+ onChange: o,
18
+ checked: t,
19
+ defaultChecked: i,
20
+ value: r,
21
+ style: m,
22
+ ...p
23
+ } = h, f = (s) => {
24
+ o == null || o(s, { value: r, checked: s.target.checked });
25
+ }, _ = u(a.switch, d), k = {
26
+ ...m,
27
+ ...n
28
+ };
29
+ return /* @__PURE__ */ e.jsxs("label", { className: _, style: k, children: [
30
+ /* @__PURE__ */ e.jsx(
31
+ "input",
32
+ {
33
+ "data-anv": "Switch",
34
+ ref: l,
35
+ type: "checkbox",
36
+ role: "switch",
37
+ value: r,
38
+ "aria-checked": t ?? i,
39
+ checked: t,
40
+ defaultChecked: i,
41
+ onChange: f,
42
+ ...p
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": !0, className: a.toggle, children: /* @__PURE__ */ e.jsx("span", { className: a.indicator, children: /* @__PURE__ */ e.jsx(x, { svg: w, className: a.check }) }) }),
46
+ "label" in c && c.label
47
+ ] });
48
+ }
49
+ );
50
+ v.displayName = "Switch";
51
+ export {
52
+ v as b
53
+ };
54
+ //# sourceMappingURL=Switch-b0a37fc1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch-b0a37fc1.js","sources":["../node_modules/@servicetitan/hammer-react/dist/Switch.js"],"sourcesContent":["import \"./index28.css\";\nimport { j as t } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as x } from \"react\";\nimport f from \"classnames\";\nimport { Icon as u } from \"./Icon.js\";\nimport { S as w } from \"./check-5f087ea0.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { a as y } from \"./useLayoutPropsUtil-e307abc7.js\";\nimport \"@floating-ui/react\";\nconst j = \"_toggle_5roin_25\", N = \"_indicator_5roin_39\", S = \"_check_5roin_53\", e = {\n switch: \"_switch_5roin_4\",\n toggle: j,\n indicator: N,\n check: S\n}, b = x(\n (c, n) => {\n const { layoutStyles: l, componentProps: m } = y(c), {\n className: h,\n onChange: s,\n checked: o,\n defaultChecked: a,\n value: i,\n style: d,\n ...p\n } = m, g = (r) => {\n s == null || s(r, { value: i, checked: r.target.checked });\n }, _ = f(e.switch, h), k = {\n ...d,\n ...l\n };\n return /* @__PURE__ */ t.jsxs(\"label\", { className: _, style: k, children: [\n /* @__PURE__ */ t.jsx(\n \"input\",\n {\n \"data-anv\": \"Switch\",\n ref: n,\n type: \"checkbox\",\n role: \"switch\",\n value: i,\n \"aria-checked\": o ?? a,\n checked: o,\n defaultChecked: a,\n onChange: g,\n ...p\n }\n ),\n /* @__PURE__ */ t.jsx(\"span\", { \"aria-hidden\": !0, className: e.toggle, children: /* @__PURE__ */ t.jsx(\"span\", { className: e.indicator, children: /* @__PURE__ */ t.jsx(u, { svg: w, className: e.check }) }) }),\n \"label\" in c && c.label\n ] });\n }\n);\nb.displayName = \"Switch\";\nexport {\n b as Switch\n};\n//# sourceMappingURL=Switch.js.map\n"],"names":["N","S","e","b","forwardRef","n","l","m","J","h","s","o","a$1","i","d","g","r","cx","fr","I","a"],"mappings":";;;;;;;AAUK,MAAA,IAAA,oBAAAA,IAAA,uBAAAC,IAAA,mBAAAC,IAAA;AAAA,EACL,QAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAAF;AAAA,EACA,OAAAC;AACA,GAAAE,IAAAC;AAAA,EACA,CAAA,GAAAC,MAAA;AACA,UAAA,EAAA,cAAAC,GAAA,gBAAAC,EAAA,IAAAC,EAAA,CAAA,GAAA;AAAA,MACA,WAAAC;AAAA,MACA,UAAAC;AAAA,MACA,SAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,OAAAC;AAAA,MACA,OAAAC;AAAA,MACA,GAAA;AAAA,IACA,IAAAP,GAAAQ,IAAA,CAAAC,MAAA;AACA,MAAAN,KAAA,QAAAA,EAAAM,GAAA,EAAA,OAAAH,GAAA,SAAAG,EAAA,OAAA,QAAA,CAAA;AAAA,IACA,GAAA,IAAAC,EAAAf,EAAA,QAAAO,CAAA,GAAA,IAAA;AAAA,MACA,GAAAK;AAAA,MACA,GAAAR;AAAA,IACA;AACA,WAAA,gBAAAY,EAAA,KAAA,SAAA,EAAA,WAAA,GAAA,OAAA,GAAA,UAAA;AAAA,MACA,gBAAAA,EAAA;AAAA,QACA;AAAA,QACA;AAAA,UACA,YAAA;AAAA,UACA,KAAAb;AAAA,UACA,MAAA;AAAA,UACA,MAAA;AAAA,UACA,OAAAQ;AAAA,UACA,gBAAAF,KAAAC;AAAA,UACA,SAAAD;AAAA,UACA,gBAAAC;AAAA,UACA,UAAAG;AAAA,UACA,GAAA;AAAA,QACA;AAAA,MACA;AAAA,MACA,gBAAAG,EAAA,IAAA,QAAA,EAAA,eAAA,IAAA,WAAAhB,EAAA,QAAA,UAAA,gBAAAgB,EAAA,IAAA,QAAA,EAAA,WAAAhB,EAAA,WAAA,UAAA,gBAAAgB,EAAA,IAAAC,GAAA,EAAA,KAAAC,GAAA,WAAAlB,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;AAAA,MACA,WAAA,KAAA,EAAA;AAAA,IACA,EAAA,CAAA;AAAA,EACA;AACA;AACAC,EAAA,cAAA;","x_google_ignoreList":[0]}
package/Switch.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./jsx-runtime-494437bb.cjs"),c=require("./Switch-f1d54e52.cjs"),n=require("react"),u=require("./useTrackingId.cjs"),a=n.forwardRef((e,t)=>{const i={label:e.label,ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],value:e.value},r=u.useTrackingId({name:"Switch",data:i,hasOverride:!!e["data-tracking-id"]});return l.jsxRuntimeExports.jsx(c.S,{ref:t,"data-tracking-id":r,...e})});exports.Switch=a;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./jsx-runtime-494437bb.cjs"),c=require("./Switch-285b3272.cjs"),n=require("react"),u=require("./useTrackingId.cjs"),a=n.forwardRef((e,t)=>{const i={label:e.label,ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],value:e.value},r=u.useTrackingId({name:"Switch",data:i,hasOverride:!!e["data-tracking-id"]});return l.jsxRuntimeExports.jsx(c.b,{ref:t,"data-tracking-id":r,...e})});exports.Switch=a;exports.default=a;
2
2
  //# sourceMappingURL=Switch.cjs.map
package/Switch.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer initial,reset,base,state,application;@layer reset{._switch_jqc3q_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--foreground-color, #141414);margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:inline-flex}}@layer base{._switch_jqc3q_4{align-items:center;gap:.5rem;position:relative;cursor:pointer}._switch_jqc3q_4 ._toggle_jqc3q_25{background-color:var(--background-color-strongest, #bcbcbd);border-radius:1.5rem;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:1.5rem;position:relative;width:3rem;transition:background-color .2s cubic-bezier(0,0,.4,1),outline .2s cubic-bezier(0,0,.4,1);overflow:hidden;outline-offset:.125rem;outline:0 solid var(--focus-ring-color, #0265dc)}._switch_jqc3q_4 ._toggle_jqc3q_25 ._indicator_jqc3q_39{background-color:var(--background-color, #ffffff);border-radius:100%;inset-block-start:.125rem;inset-inline-start:.125rem;height:1.25rem;width:1.25rem;position:absolute;transition:all .2s cubic-bezier(0,0,.4,1);box-shadow:#0000003d 0 .1875rem .125rem;display:flex;justify-content:center;align-items:center}._switch_jqc3q_4 ._toggle_jqc3q_25 ._indicator_jqc3q_39 ._check_jqc3q_53{opacity:0;color:var(--background-color-primary, #0265dc)}._switch_jqc3q_4 ._toggle_jqc3q_25:after{width:100%;height:100%}._switch_jqc3q_4 input{position:absolute;width:0;height:0;opacity:0;inset-block-start:0;inset-inline-start:0}}@layer state{._switch_jqc3q_4 input:checked+._toggle_jqc3q_25{background-color:var(--background-color-primary, #0265dc)}._switch_jqc3q_4 input:checked+._toggle_jqc3q_25 ._indicator_jqc3q_39{inset-inline-start:1.625rem}._switch_jqc3q_4 input:checked+._toggle_jqc3q_25 ._indicator_jqc3q_39 ._check_jqc3q_53{opacity:1}._switch_jqc3q_4 input:checked:focus-visible+._toggle_jqc3q_25{outline-width:.125rem}._switch_jqc3q_4 input:focus-visible+._toggle_jqc3q_25{outline-width:.125rem}._switch_jqc3q_4 input:checked[data-interactive=focus-visible]:not(:disabled)+._toggle_jqc3q_25{outline-width:.125rem}._switch_jqc3q_4 input[data-interactive=focus-visible]:not(:disabled)+._toggle_jqc3q_25{outline-width:.125rem}._switch_jqc3q_4:has([data-interactive=hover]),._switch_jqc3q_4:hover{background-color:transparent}._switch_jqc3q_4:has([data-interactive=hover]) input:not(:disabled):not(:checked)+._toggle_jqc3q_25:after,._switch_jqc3q_4:hover input:not(:disabled):not(:checked)+._toggle_jqc3q_25:after{content:"";background-color:var(--overlay-color-hover, rgba(20, 20, 20, .0784313725))}._switch_jqc3q_4:has([data-interactive=hover]) input:not(:disabled):checked+._toggle_jqc3q_25:after,._switch_jqc3q_4:hover input:not(:disabled):checked+._toggle_jqc3q_25:after{content:"";background-color:var(--overlay-color-hover-on-primary, rgba(255, 255, 255, .1607843137))}._switch_jqc3q_4:has(input[disabled]){cursor:default;opacity:.6;cursor:not-allowed}._switch_jqc3q_4:has(input[disabled]) ._toggle_jqc3q_25{box-shadow:none;background-color:var(--background-color-disabled, #606162)}._switch_jqc3q_4:has(input[disabled]) ._toggle_jqc3q_25 ._indicator_jqc3q_39{background-color:var(--background-color-strongest, #bcbcbd)}._switch_jqc3q_4:has(input[disabled]) ._toggle_jqc3q_25 ._indicator_jqc3q_39 ._check_jqc3q_53{color:var(--foreground-color-subdued, #737475)}}@layer application{@media (prefers-reduced-motion: reduce){._switch_jqc3q_4 ._toggle_jqc3q_25 ._indicator_jqc3q_39{transition-duration:.1ms!important}}}
1
+ @import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer starter,reset,base,state,application;@layer reset{._switch_5roin_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--foreground-color, #141414);margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:inline-flex}}@layer base{._switch_5roin_4{align-items:center;gap:.5rem;position:relative;cursor:pointer}._switch_5roin_4 ._toggle_5roin_25{background-color:var(--background-color-strongest, #bcbcbd);border-radius:1.5rem;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:1.5rem;position:relative;width:3rem;transition:background-color .2s cubic-bezier(0,0,.4,1),outline .2s cubic-bezier(0,0,.4,1);overflow:hidden;outline-offset:.125rem;outline:0 solid var(--focus-ring-color, #0265dc)}._switch_5roin_4 ._toggle_5roin_25 ._indicator_5roin_39{background-color:var(--background-color, #ffffff);border-radius:100%;inset-block-start:.125rem;inset-inline-start:.125rem;height:1.25rem;width:1.25rem;position:absolute;transition:all .2s cubic-bezier(0,0,.4,1);box-shadow:#0000003d 0 .1875rem .125rem;display:flex;justify-content:center;align-items:center}._switch_5roin_4 ._toggle_5roin_25 ._indicator_5roin_39 ._check_5roin_53{opacity:0;color:var(--background-color-primary, #0265dc)}._switch_5roin_4 ._toggle_5roin_25:after{width:100%;height:100%}._switch_5roin_4 input{position:absolute;width:0;height:0;opacity:0;inset-block-start:0;inset-inline-start:0}}@layer state{._switch_5roin_4 input:checked+._toggle_5roin_25{background-color:var(--background-color-primary, #0265dc)}._switch_5roin_4 input:checked+._toggle_5roin_25 ._indicator_5roin_39{inset-inline-start:1.625rem}._switch_5roin_4 input:checked+._toggle_5roin_25 ._indicator_5roin_39 ._check_5roin_53{opacity:1}._switch_5roin_4 input:checked:focus-visible+._toggle_5roin_25{outline-width:.125rem}._switch_5roin_4 input:focus-visible+._toggle_5roin_25{outline-width:.125rem}._switch_5roin_4 input:checked[data-interactive=focus-visible]:not(:disabled)+._toggle_5roin_25{outline-width:.125rem}._switch_5roin_4 input[data-interactive=focus-visible]:not(:disabled)+._toggle_5roin_25{outline-width:.125rem}._switch_5roin_4:has([data-interactive=hover]),._switch_5roin_4:hover{background-color:transparent}._switch_5roin_4:has([data-interactive=hover]) input:not(:disabled):not(:checked)+._toggle_5roin_25:after,._switch_5roin_4:hover input:not(:disabled):not(:checked)+._toggle_5roin_25:after{content:"";background-color:var(--overlay-color-hover, rgba(20, 20, 20, .0784313725))}._switch_5roin_4:has([data-interactive=hover]) input:not(:disabled):checked+._toggle_5roin_25:after,._switch_5roin_4:hover input:not(:disabled):checked+._toggle_5roin_25:after{content:"";background-color:var(--overlay-color-hover-on-primary, rgba(255, 255, 255, .1607843137))}._switch_5roin_4:has(input[disabled]){cursor:default;opacity:.6;cursor:not-allowed}._switch_5roin_4:has(input[disabled]) ._toggle_5roin_25{box-shadow:none;background-color:var(--background-color-disabled, #606162)}._switch_5roin_4:has(input[disabled]) ._toggle_5roin_25 ._indicator_5roin_39{background-color:var(--background-color-strongest, #bcbcbd)}._switch_5roin_4:has(input[disabled]) ._toggle_5roin_25 ._indicator_5roin_39 ._check_5roin_53{color:var(--foreground-color-subdued, #737475)}}@layer application{@media (prefers-reduced-motion: reduce){._switch_5roin_4 ._toggle_5roin_25 ._indicator_5roin_39{transition-duration:.1ms!important}}}
package/Switch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as i } from "./jsx-runtime-82a9ddf6.js";
2
- import { S as l } from "./Switch-c4977b9b.js";
2
+ import { b as l } from "./Switch-b0a37fc1.js";
3
3
  import { forwardRef as d } from "react";
4
4
  import { useTrackingId as m } from "./useTrackingId.js";
5
5
  const f = d(
@@ -1,27 +1,27 @@
1
1
  import "./Tab.css";
2
2
  import { f as g } from "./jsx-runtime-944c88e2-e73fa629.js";
3
- import * as q from "react";
4
- import { useRef as E, useState as M, useCallback as T, useId as H, useContext as F, useInsertionEffect as ee, useMemo as $, useEffect as K, cloneElement as te, Children as ne, isValidElement as re, forwardRef as D, createContext as oe } from "react";
5
- import { u as W } from "./floating-ui.react-3f85fcd1.js";
6
- import { c as A } from "./index-e0f6271a.js";
7
- import { I as S } from "./Icon-7dc0db59.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
8
  import { J as se } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
9
- import { u as U } from "./use-reduced-motion-fa02c531.js";
10
- import { u as V, 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";
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
11
  import { j } from "./jsx-runtime-82a9ddf6.js";
12
12
  function J() {
13
- const n = E(!1);
14
- return V(() => (n.current = !0, () => {
13
+ const n = R(!1);
14
+ return q(() => (n.current = !0, () => {
15
15
  n.current = !1;
16
16
  }), []), n;
17
17
  }
18
18
  function fe() {
19
- const n = J(), [s, t] = M(0), r = T(() => {
19
+ const n = J(), [s, t] = M(0), r = k(() => {
20
20
  n.current && t(s + 1);
21
21
  }, [s]);
22
- return [T(() => le.postRender(r), [r]), s];
22
+ return [k(() => le.postRender(r), [r]), s];
23
23
  }
24
- class pe extends q.Component {
24
+ class pe extends z.Component {
25
25
  getSnapshotBeforeUpdate(s) {
26
26
  const t = this.props.childRef.current;
27
27
  if (t && s.isPresent && !this.props.isPresent) {
@@ -40,7 +40,7 @@ class pe extends q.Component {
40
40
  }
41
41
  }
42
42
  function me({ children: n, isPresent: s }) {
43
- const t = H(), r = E(null), v = E({
43
+ const t = S(), r = R(null), v = R({
44
44
  width: 0,
45
45
  height: 0,
46
46
  top: 0,
@@ -63,10 +63,10 @@ function me({ children: n, isPresent: s }) {
63
63
  `), () => {
64
64
  document.head.removeChild(e);
65
65
  };
66
- }, [s]), j.jsx(pe, { isPresent: s, childRef: r, sizeRef: v, children: q.cloneElement(n, { ref: r }) });
66
+ }, [s]), j.jsx(pe, { isPresent: s, childRef: r, sizeRef: v, children: z.cloneElement(n, { ref: r }) });
67
67
  }
68
- const O = ({ children: n, initial: s, isPresent: t, onExitComplete: r, custom: v, presenceAffectsLayout: i, mode: f }) => {
69
- const u = ae(he), m = H(), d = $(
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
70
  () => ({
71
71
  id: m,
72
72
  initial: s,
@@ -88,9 +88,9 @@ const O = ({ children: n, initial: s, isPresent: t, onExitComplete: r, custom: v
88
88
  */
89
89
  i ? [Math.random()] : [t]
90
90
  );
91
- return $(() => {
91
+ return H(() => {
92
92
  u.forEach((e, a) => u.set(a, !1));
93
- }, [t]), q.useEffect(() => {
93
+ }, [t]), z.useEffect(() => {
94
94
  !t && !u.size && r && r();
95
95
  }, [t]), f === "popLayout" && (n = j.jsx(me, { isPresent: t, children: n })), j.jsx(ce.Provider, { value: d, children: n });
96
96
  };
@@ -117,37 +117,37 @@ const ge = ({ children: n, custom: s, initial: t = !0, onExitComplete: r, exitBe
117
117
  de(!v, "Replace exitBeforeEnter with mode='wait'");
118
118
  const u = F(ue).forceRender || fe()[0], m = J(), d = be(n);
119
119
  let e = d;
120
- const a = E(/* @__PURE__ */ new Map()).current, w = E(e), h = E(/* @__PURE__ */ new Map()).current, l = E(!0);
121
- if (V(() => {
120
+ const a = R(/* @__PURE__ */ new Map()).current, w = R(e), h = R(/* @__PURE__ */ new Map()).current, l = R(!0);
121
+ if (q(() => {
122
122
  l.current = !1, ve(d, h), w.current = e;
123
123
  }), xe(() => {
124
124
  l.current = !0, h.clear(), a.clear();
125
125
  }), l.current)
126
- return j.jsx(j.Fragment, { children: e.map((o) => j.jsx(O, { isPresent: !0, initial: t ? void 0 : !1, presenceAffectsLayout: i, mode: f, children: o }, P(o))) });
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
127
  e = [...e];
128
- const x = w.current.map(P), b = d.map(P), R = x.length;
129
- for (let o = 0; o < R; o++) {
128
+ const x = w.current.map(P), b = d.map(P), N = x.length;
129
+ for (let o = 0; o < N; o++) {
130
130
  const c = x[o];
131
131
  b.indexOf(c) === -1 && !a.has(c) && a.set(c, void 0);
132
132
  }
133
133
  return f === "wait" && a.size && (e = []), a.forEach((o, c) => {
134
134
  if (b.indexOf(c) !== -1)
135
135
  return;
136
- const N = h.get(c);
137
- if (!N)
136
+ const E = h.get(c);
137
+ if (!E)
138
138
  return;
139
139
  const I = x.indexOf(c);
140
140
  let y = o;
141
141
  if (!y) {
142
142
  const _ = () => {
143
143
  a.delete(c);
144
- const k = Array.from(h.keys()).filter((L) => !b.includes(L));
145
- if (k.forEach((L) => h.delete(L)), w.current = d.filter((L) => {
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
146
  const p = P(L);
147
147
  return (
148
148
  // filter out the node exiting
149
149
  p === c || // filter out the leftover children
150
- k.includes(p)
150
+ A.includes(p)
151
151
  );
152
152
  }), !a.size) {
153
153
  if (m.current === !1)
@@ -155,30 +155,30 @@ const ge = ({ children: n, custom: s, initial: t = !0, onExitComplete: r, exitBe
155
155
  u(), r && r();
156
156
  }
157
157
  };
158
- y = j.jsx(O, { isPresent: !1, onExitComplete: _, custom: s, presenceAffectsLayout: i, mode: f, children: N }, P(N)), a.set(c, y);
158
+ y = j.jsx($, { isPresent: !1, onExitComplete: _, custom: s, presenceAffectsLayout: i, mode: f, children: E }, P(E)), a.set(c, y);
159
159
  }
160
160
  e.splice(I, 0, y);
161
161
  }), e = e.map((o) => {
162
162
  const c = o.key;
163
- return a.has(c) ? o : j.jsx(O, { isPresent: !0, presenceAffectsLayout: i, mode: f, children: o }, P(o));
163
+ return a.has(c) ? o : j.jsx($, { isPresent: !0, presenceAffectsLayout: i, mode: f, children: o }, P(o));
164
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
165
  };
166
- const we = "_tab_sqv8x_4", ye = "_inner_sqv8x_70", _e = "_indicator_sqv8x_83", Ce = "_scroller_sqv8x_117", je = "_right_sqv8x_125", Ee = "_left_sqv8x_125", Ne = "_fill_sqv8x_145", C = {
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
167
  tab: we,
168
- "tab-panel": "_tab-panel_sqv8x_17",
169
- "tab-button": "_tab-button_sqv8x_18",
170
- "tab-list": "_tab-list_sqv8x_19",
171
- "overflow-prev": "_overflow-prev_sqv8x_32",
172
- "overflow-next": "_overflow-next_sqv8x_33",
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
173
  inner: ye,
174
174
  indicator: _e,
175
175
  scroller: Ce,
176
176
  right: je,
177
- left: Ee,
178
- fill: Ne
179
- }, Y = D(
177
+ left: Re,
178
+ fill: Ee
179
+ }, Y = B(
180
180
  (n, s) => {
181
- const t = E(null), r = U(), {
181
+ const t = R(null), r = V(), {
182
182
  current: v,
183
183
  items: i,
184
184
  setCurrent: f,
@@ -186,20 +186,20 @@ const we = "_tab_sqv8x_4", ye = "_inner_sqv8x_70", _e = "_indicator_sqv8x_83", C
186
186
  setFocus: m,
187
187
  uid: d,
188
188
  onKeyDownHandler: e
189
- } = F(B), {
189
+ } = F(O), {
190
190
  onClick: a,
191
191
  children: w,
192
192
  onFocus: h,
193
193
  onKeyDown: l,
194
194
  controls: x,
195
195
  id: b,
196
- className: R,
196
+ className: N,
197
197
  ...o
198
- } = n, c = i && Array.prototype.indexOf.call(i, t.current), N = (_) => {
198
+ } = n, c = i && Array.prototype.indexOf.call(i, t.current), E = (_) => {
199
199
  c !== void 0 && (a == null || a(_, c), f == null || f(c), m == null || m(c), i == null || i[c].focus());
200
200
  }, I = (_) => {
201
201
  e == null || e(_), l == null || l(_);
202
- }, y = A(C["tab-button"], R);
202
+ }, y = D(C["tab-button"], N);
203
203
  return /* @__PURE__ */ g.jsxs(
204
204
  "button",
205
205
  {
@@ -210,11 +210,11 @@ const we = "_tab_sqv8x_4", ye = "_inner_sqv8x_70", _e = "_indicator_sqv8x_83", C
210
210
  className: y,
211
211
  "aria-selected": (i == null ? void 0 : i[v].id) === b,
212
212
  "aria-controls": x,
213
- onClick: N,
213
+ onClick: E,
214
214
  onKeyDown: I,
215
215
  tabIndex: (i == null ? void 0 : i[u].id) === b ? 0 : -1,
216
216
  ...o,
217
- ref: W([t, s]),
217
+ ref: U([t, s]),
218
218
  children: [
219
219
  /* @__PURE__ */ g.jsx("span", { className: C.inner, children: w }),
220
220
  (i == null ? void 0 : i[v].id) === b && /* @__PURE__ */ g.jsx(
@@ -231,12 +231,12 @@ const we = "_tab_sqv8x_4", ye = "_inner_sqv8x_70", _e = "_indicator_sqv8x_83", C
231
231
  }
232
232
  );
233
233
  Y.displayName = "TabButton";
234
- const Re = (n) => /* @__PURE__ */ q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...n }, /* @__PURE__ */ q.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__ */ q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...n }, /* @__PURE__ */ q.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 = D(
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
235
  (n, s) => {
236
- const { className: t, children: r, onKeyDown: v, ...i } = n, { goToPrev: f, gotoNext: u, dir: m } = F(B), [d, e] = M(!1), [a, w] = M(!1), h = E(null), l = T(
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
237
  (o) => {
238
- const c = m === "ltr" ? o.scrollLeft > 0 : o.scrollLeft > o.offsetWidth - o.scrollWidth + 1, N = m === "ltr" ? o.scrollLeft < o.scrollWidth - o.offsetWidth : o.scrollLeft < 0;
239
- e(c), w(N);
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
240
  },
241
241
  [m]
242
242
  );
@@ -246,7 +246,7 @@ const Re = (n) => /* @__PURE__ */ q.createElement("svg", { xmlns: "http://www.w3
246
246
  const x = (o) => {
247
247
  const c = o.target;
248
248
  l(c);
249
- }, b = A(C["tab-list"], t), R = A(C.scroller, {
249
+ }, b = D(C["tab-list"], t), N = D(C.scroller, {
250
250
  [C.left]: d,
251
251
  [C.right]: a
252
252
  });
@@ -258,14 +258,14 @@ const Re = (n) => /* @__PURE__ */ q.createElement("svg", { xmlns: "http://www.w3
258
258
  onClick: () => f == null ? void 0 : f(!1),
259
259
  className: C["overflow-prev"],
260
260
  "aria-label": "Previous tab",
261
- children: /* @__PURE__ */ g.jsx(S, { svg: Re, "aria-hidden": !0, size: "medium" })
261
+ children: /* @__PURE__ */ g.jsx(W, { svg: Ne, "aria-hidden": !0, size: "medium" })
262
262
  }
263
263
  ),
264
264
  /* @__PURE__ */ g.jsx(
265
265
  "div",
266
266
  {
267
267
  onScroll: x,
268
- className: R,
268
+ className: N,
269
269
  role: "tablist",
270
270
  ref: h,
271
271
  children: r
@@ -278,17 +278,17 @@ const Re = (n) => /* @__PURE__ */ q.createElement("svg", { xmlns: "http://www.w3
278
278
  onClick: () => u == null ? void 0 : u(!1),
279
279
  className: C["overflow-next"],
280
280
  "aria-label": "Next tab",
281
- children: /* @__PURE__ */ g.jsx(S, { svg: Ie, "aria-hidden": !0, size: "medium" })
281
+ children: /* @__PURE__ */ g.jsx(W, { svg: Ie, "aria-hidden": !0, size: "medium" })
282
282
  }
283
283
  )
284
284
  ] });
285
285
  }
286
286
  );
287
287
  Q.displayName = "TabList";
288
- const X = D(
288
+ const X = B(
289
289
  (n, s) => {
290
290
  var t;
291
- const { id: r, className: v, ...i } = n, { current: f, items: u } = F(B), m = U();
291
+ const { id: r, className: v, ...i } = n, { current: f, items: u } = F(O), m = V();
292
292
  let d;
293
293
  u == null || u.forEach((h, l) => {
294
294
  h.getAttribute("aria-controls") === r && (d = h.id);
@@ -320,7 +320,7 @@ const X = D(
320
320
  y: -50,
321
321
  opacity: 0
322
322
  }
323
- }, w = A(C["tab-panel"], v);
323
+ }, w = D(C["tab-panel"], v);
324
324
  return e ? /* @__PURE__ */ g.jsx(
325
325
  G.div,
326
326
  {
@@ -352,18 +352,18 @@ X.displayName = "TabPanel";
352
352
  const Le = {
353
353
  current: 0,
354
354
  focus: 0
355
- }, B = oe(Le), Z = D((n, s) => {
356
- const { layoutStyles: t, componentProps: r } = se(n), { defaultIndex: v, className: i, style: f, fill: u, ...m } = r, d = E(null), [e, a] = M(), [w, h] = M(v ?? 0), [l, x] = M(v ?? 0), [b, R] = M("ltr"), o = A(C.tab, i, {
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
357
  [C.fill]: u
358
- }), c = H();
358
+ }), c = S();
359
359
  K(() => {
360
360
  var p;
361
361
  a((p = d.current) == null ? void 0 : p.querySelectorAll("[role=tab]:not([disabled])"));
362
362
  }, [d]), K(() => {
363
- var p, z;
364
- ((z = (p = d.current) == null ? void 0 : p.closest("[dir]")) == null ? void 0 : z.getAttribute("dir")) === "rtl" ? R("rtl") : R("ltr");
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
365
  }, []);
366
- const N = {
366
+ const E = {
367
367
  ...f,
368
368
  ...t
369
369
  }, I = (p) => {
@@ -372,7 +372,7 @@ const Le = {
372
372
  block: "nearest",
373
373
  inline: "center"
374
374
  });
375
- }, y = T(
375
+ }, y = k(
376
376
  (p = !0) => {
377
377
  if (l + 1 === (e == null ? void 0 : e.length)) {
378
378
  x == null || x(0), e == null || e[0].focus(), I(e == null ? void 0 : e[0]);
@@ -381,17 +381,17 @@ const Le = {
381
381
  x == null || x(l + 1), e == null || e[l + 1].focus(), I(e == null ? void 0 : e[l + 1]);
382
382
  },
383
383
  [l, e]
384
- ), _ = T(
384
+ ), _ = k(
385
385
  (p = !0) => {
386
386
  if (l === 0) {
387
- const z = e ? (e == null ? void 0 : e.length) - 1 : 0;
388
- x == null || x(z), e == null || e[z].focus(), I(e == null ? void 0 : e[z]);
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
389
  return;
390
390
  }
391
391
  x == null || x(l - 1), e == null || e[l - 1].focus(), I(e == null ? void 0 : e[l - 1]);
392
392
  },
393
393
  [l, e]
394
- ), k = T(
394
+ ), A = k(
395
395
  (p) => {
396
396
  switch (console.log("working", p), p.code) {
397
397
  case "Enter":
@@ -407,7 +407,7 @@ const Le = {
407
407
  }
408
408
  },
409
409
  [b, l, _, y]
410
- ), L = $(
410
+ ), L = H(
411
411
  () => ({
412
412
  current: w,
413
413
  setCurrent: h,
@@ -415,34 +415,34 @@ const Le = {
415
415
  setFocus: x,
416
416
  items: e,
417
417
  uid: c,
418
- onKeyDownHandler: k,
418
+ onKeyDownHandler: A,
419
419
  gotoNext: y,
420
420
  goToPrev: _,
421
421
  dir: b
422
422
  }),
423
- [w, l, _, y, e, k, c, b]
423
+ [w, l, _, y, e, A, c, b]
424
424
  );
425
- return /* @__PURE__ */ g.jsx(B.Provider, { value: L, children: /* @__PURE__ */ g.jsx(ge, { initial: !1, children: /* @__PURE__ */ g.jsx(
425
+ return /* @__PURE__ */ g.jsx(O.Provider, { value: L, children: /* @__PURE__ */ g.jsx(ge, { initial: !1, children: /* @__PURE__ */ g.jsx(
426
426
  "div",
427
427
  {
428
428
  className: o,
429
429
  "data-anv": "Tab",
430
- style: N,
430
+ style: E,
431
431
  ...m,
432
- ref: W([d, s])
432
+ ref: U([d, s])
433
433
  }
434
434
  ) }) });
435
435
  });
436
436
  Z.displayName = "Tab";
437
- const Be = Object.assign(Z, {
437
+ const Oe = Object.assign(Z, {
438
438
  Button: Y,
439
439
  List: Q,
440
440
  Panel: X
441
441
  });
442
442
  export {
443
- Y as K,
444
- X as V,
445
- Q as W,
446
- Be as m
443
+ Q as V,
444
+ Y as W,
445
+ Oe as m,
446
+ X as q
447
447
  };
448
- //# sourceMappingURL=Tab-120468a3.js.map
448
+ //# sourceMappingURL=Tab-1934a4ca.js.map