@servicetitan/anvil2 3.10.0 → 3.10.1

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 (77) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AiMark-2_O4tKv_.js.map +1 -1
  3. package/dist/Button-Dwh_Nd4l.js.map +1 -1
  4. package/dist/Combobox.js +1 -1
  5. package/dist/DataTable-D-SKKt5w.js.map +1 -1
  6. package/dist/{Dialog-Clh3jaX8.js → Dialog-DjJ9wpeo.js} +2 -2
  7. package/dist/{Dialog-Clh3jaX8.js.map → Dialog-DjJ9wpeo.js.map} +1 -1
  8. package/dist/Dialog.js +1 -1
  9. package/dist/DndSort.js.map +1 -1
  10. package/dist/{Drawer-h2Mut1lB.js → Drawer-CZITBE8M.js} +2 -2
  11. package/dist/{Drawer-h2Mut1lB.js.map → Drawer-CZITBE8M.js.map} +1 -1
  12. package/dist/Drawer.js +1 -1
  13. package/dist/DrillDown.css +36 -34
  14. package/dist/DrillDown.js +1 -1
  15. package/dist/DrillDown.module-1VBKDZRA.js +27 -0
  16. package/dist/{DrillDown.module-D1Bf9_yP.js.map → DrillDown.module-1VBKDZRA.js.map} +1 -1
  17. package/dist/{FilterBar-luqnJzAK.js → FilterBar-B_ShYx2G.js} +3 -3
  18. package/dist/{FilterBar-luqnJzAK.js.map → FilterBar-B_ShYx2G.js.map} +1 -1
  19. package/dist/FilterBar.js +1 -1
  20. package/dist/MultiSelectField.js +1 -1
  21. package/dist/{MultiSelectFieldSync-HhFKGtQM.js → MultiSelectFieldSync-B_vuR-ii.js} +172 -153
  22. package/dist/MultiSelectFieldSync-B_vuR-ii.js.map +1 -0
  23. package/dist/MultiSelectFieldSync.css +80 -69
  24. package/dist/{Page-Pk0-Sxf_.js → Page-BHBcuxcE.js} +4 -4
  25. package/dist/{Page-Pk0-Sxf_.js.map → Page-BHBcuxcE.js.map} +1 -1
  26. package/dist/Page.js +1 -1
  27. package/dist/RichTextEditor-CTIGe6xA.js.map +1 -1
  28. package/dist/{SavedFiltersButton-CpnoAIrw.js → SavedFiltersButton-DV0xxLat.js} +4 -4
  29. package/dist/{SavedFiltersButton-CpnoAIrw.js.map → SavedFiltersButton-DV0xxLat.js.map} +1 -1
  30. package/dist/SavedFiltersButton.js +1 -1
  31. package/dist/SelectField.js +1 -1
  32. package/dist/{SelectFieldSync-Dyug8Fgk.js → SelectFieldSync-rwfeNwN2.js} +11 -5
  33. package/dist/SelectFieldSync-rwfeNwN2.js.map +1 -0
  34. package/dist/{SelectTrigger-Do1puyA_.js → SelectTrigger-BAnVo4Ln.js} +2 -2
  35. package/dist/{SelectTrigger-Do1puyA_.js.map → SelectTrigger-BAnVo4Ln.js.map} +1 -1
  36. package/dist/SelectTrigger.js +1 -1
  37. package/dist/{SelectTriggerBase-rxHXMSb4.js → SelectTriggerBase-D7zAT0UR.js} +6 -3
  38. package/dist/SelectTriggerBase-D7zAT0UR.js.map +1 -0
  39. package/dist/SelectTriggerBase.css +49 -47
  40. package/dist/SelectTriggerBase.module-mYOfdBGA.js +40 -0
  41. package/dist/SelectTriggerBase.module-mYOfdBGA.js.map +1 -0
  42. package/dist/Tab-Bqfvg8Ce.js.map +1 -1
  43. package/dist/Textarea-B3C7AkPj.js.map +1 -1
  44. package/dist/TreeSelectField.js +1 -1
  45. package/dist/{TreeSelectFieldSync-Cd87uR6b.js → TreeSelectFieldSync-BRQgLPxB.js} +92 -84
  46. package/dist/TreeSelectFieldSync-BRQgLPxB.js.map +1 -0
  47. package/dist/TreeSelectFieldSync.css +44 -36
  48. package/dist/beta.js +5 -5
  49. package/dist/downshift.esm-xtSnQp44.js.map +1 -1
  50. package/dist/{filter-state-BQOX7_rO.js → filter-state-zlL4luoE.js} +5 -5
  51. package/dist/{filter-state-BQOX7_rO.js.map → filter-state-zlL4luoE.js.map} +1 -1
  52. package/dist/floating-ui.react-dom-CyrxPiI-.js.map +1 -1
  53. package/dist/index-DXeGMe23.js.map +1 -1
  54. package/dist/index-DjirBR0l.js.map +1 -1
  55. package/dist/index.esm-C2ZhC_8d.js.map +1 -1
  56. package/dist/index.js +8 -8
  57. package/dist/proxy-DEehATlA.js.map +1 -1
  58. package/dist/use-reduced-motion-CqjZZ5QB.js.map +1 -1
  59. package/dist/useChipLayout-BBe6Tzyl.js +90 -0
  60. package/dist/useChipLayout-BBe6Tzyl.js.map +1 -0
  61. package/dist/{useDrillDownContext-iUvoTget.js → useDrillDownContext-D5_NjqY4.js} +2 -2
  62. package/dist/{useDrillDownContext-iUvoTget.js.map → useDrillDownContext-D5_NjqY4.js.map} +1 -1
  63. package/dist/{useDrilldown-UAm0-l1l.js → useDrilldown-glecoaI_.js} +37 -18
  64. package/dist/{useDrilldown-UAm0-l1l.js.map → useDrilldown-glecoaI_.js.map} +1 -1
  65. package/dist/{useInfiniteCombobox-V94SoOiU.js → useInfiniteCombobox-CVAYoUvh.js} +2 -2
  66. package/dist/{useInfiniteCombobox-V94SoOiU.js.map → useInfiniteCombobox-CVAYoUvh.js.map} +1 -1
  67. package/dist/useSize.js.map +1 -1
  68. package/package.json +3 -3
  69. package/dist/DrillDown.module-D1Bf9_yP.js +0 -27
  70. package/dist/MultiSelectFieldSync-HhFKGtQM.js.map +0 -1
  71. package/dist/SelectFieldSync-Dyug8Fgk.js.map +0 -1
  72. package/dist/SelectTriggerBase-rxHXMSb4.js.map +0 -1
  73. package/dist/SelectTriggerBase.module-Brmw1nYG.js +0 -39
  74. package/dist/SelectTriggerBase.module-Brmw1nYG.js.map +0 -1
  75. package/dist/TreeSelectFieldSync-Cd87uR6b.js.map +0 -1
  76. package/dist/useChipLayout-BWZfKDgd.js +0 -51
  77. package/dist/useChipLayout-BWZfKDgd.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"use-reduced-motion-CqjZZ5QB.js","sources":["../../../node_modules/.pnpm/framer-motion@12.23.12_@emotion+is-prop-valid@1.4.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs"],"sourcesContent":["import { warnOnce } from 'motion-utils';\nimport { useState } from 'react';\nimport { initPrefersReducedMotion } from './index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';\n\n/**\n * A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.\n *\n * This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing\n * `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion.\n *\n * It will actively respond to changes and re-render your components with the latest setting.\n *\n * ```jsx\n * export function Sidebar({ isOpen }) {\n * const shouldReduceMotion = useReducedMotion()\n * const closedX = shouldReduceMotion ? 0 : \"-100%\"\n *\n * return (\n * <motion.div animate={{\n * opacity: isOpen ? 1 : 0,\n * x: isOpen ? 0 : closedX\n * }} />\n * )\n * }\n * ```\n *\n * @return boolean\n *\n * @public\n */\nfunction useReducedMotion() {\n /**\n * Lazy initialisation of prefersReducedMotion\n */\n !hasReducedMotionListener.current && initPrefersReducedMotion();\n const [shouldReduceMotion] = useState(prefersReducedMotion.current);\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n }\n /**\n * TODO See if people miss automatically updating shouldReduceMotion setting\n */\n return shouldReduceMotion;\n}\n\nexport { useReducedMotion };\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,GAAG;AAC5B;AACA;AACA;AACA,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,wBAAwB,EAAE;AACnE,IAAI,MAAM,CAAC,kBAAkB,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC;AACvE,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC/C,QAAQ,QAAQ,CAAC,kBAAkB,KAAK,IAAI,EAAE,wFAAwF,EAAE,yBAAyB,CAAC;AAClK,IAAI;AACJ;AACA;AACA;AACA,IAAI,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"use-reduced-motion-CqjZZ5QB.js","sources":["../../../node_modules/.pnpm/framer-motion@12.23.12_@emotion+is-prop-valid@1.4.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs"],"sourcesContent":["import { warnOnce } from 'motion-utils';\nimport { useState } from 'react';\nimport { initPrefersReducedMotion } from './index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';\n\n/**\n * A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.\n *\n * This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing\n * `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion.\n *\n * It will actively respond to changes and re-render your components with the latest setting.\n *\n * ```jsx\n * export function Sidebar({ isOpen }) {\n * const shouldReduceMotion = useReducedMotion()\n * const closedX = shouldReduceMotion ? 0 : \"-100%\"\n *\n * return (\n * <motion.div animate={{\n * opacity: isOpen ? 1 : 0,\n * x: isOpen ? 0 : closedX\n * }} />\n * )\n * }\n * ```\n *\n * @return boolean\n *\n * @public\n */\nfunction useReducedMotion() {\n /**\n * Lazy initialisation of prefersReducedMotion\n */\n !hasReducedMotionListener.current && initPrefersReducedMotion();\n const [shouldReduceMotion] = useState(prefersReducedMotion.current);\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n }\n /**\n * TODO See if people miss automatically updating shouldReduceMotion setting\n */\n return shouldReduceMotion;\n}\n\nexport { useReducedMotion };\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,GAAG;AAC5B;AACA;AACA;AACA,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,wBAAwB,EAAE;AACnE,IAAI,MAAM,CAAC,kBAAkB,CAAC,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC;AACvE,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC/C,QAAQ,QAAQ,CAAC,kBAAkB,KAAK,IAAI,EAAE,wFAAwF,EAAE,yBAAyB,CAAC;AAClK,IAAI;AACJ;AACA;AACA;AACA,IAAI,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,90 @@
1
+ import { useRef, useState, useLayoutEffect } from 'react';
2
+
3
+ const hasMultipleRows = (container) => {
4
+ const children = Array.from(container.children);
5
+ if (children.length <= 1) return false;
6
+ const firstTop = children[0].getBoundingClientRect().top;
7
+ return children.some(
8
+ (child) => child.getBoundingClientRect().top !== firstTop
9
+ );
10
+ };
11
+ function useChipLayout({
12
+ selectedOptionsLength,
13
+ singleRow,
14
+ maxChips
15
+ }) {
16
+ const rowsRef = useRef(null);
17
+ const [visibleCount, setVisibleCount] = useState(null);
18
+ const [remeasureToken, setRemeasureToken] = useState(0);
19
+ const growExhaustedRef = useRef(false);
20
+ const lastWidthRef = useRef(null);
21
+ const prevSelectedLengthRef = useRef(selectedOptionsLength);
22
+ useLayoutEffect(() => {
23
+ if (prevSelectedLengthRef.current !== selectedOptionsLength) {
24
+ prevSelectedLengthRef.current = selectedOptionsLength;
25
+ growExhaustedRef.current = false;
26
+ setVisibleCount(null);
27
+ }
28
+ }, [selectedOptionsLength]);
29
+ useLayoutEffect(() => {
30
+ if (!singleRow) {
31
+ lastWidthRef.current = null;
32
+ return;
33
+ }
34
+ const container = rowsRef.current;
35
+ if (!container) return;
36
+ if (typeof ResizeObserver === "undefined") return;
37
+ const observer = new ResizeObserver((entries) => {
38
+ const width = entries[0]?.contentRect.width;
39
+ if (width === void 0) return;
40
+ if (lastWidthRef.current === width) return;
41
+ lastWidthRef.current = width;
42
+ growExhaustedRef.current = false;
43
+ setRemeasureToken((token) => token + 1);
44
+ });
45
+ lastWidthRef.current = container.getBoundingClientRect().width;
46
+ observer.observe(container);
47
+ return () => {
48
+ observer.disconnect();
49
+ };
50
+ }, [singleRow]);
51
+ useLayoutEffect(() => {
52
+ if (!singleRow || !rowsRef.current) {
53
+ setVisibleCount(null);
54
+ return;
55
+ }
56
+ const maxAllowed2 = maxChips ?? 10;
57
+ const container = rowsRef.current;
58
+ if (visibleCount === null) {
59
+ if (hasMultipleRows(container)) {
60
+ const firstRowTop = container.children[0]?.getBoundingClientRect().top;
61
+ const firstRowCount = Array.from(container.children).filter(
62
+ (c) => c.getBoundingClientRect().top === firstRowTop
63
+ ).length;
64
+ setVisibleCount(Math.max(firstRowCount - 1, 0));
65
+ }
66
+ return;
67
+ }
68
+ if (hasMultipleRows(container) && visibleCount > 0) {
69
+ growExhaustedRef.current = true;
70
+ setVisibleCount(visibleCount - 1);
71
+ return;
72
+ }
73
+ if (!growExhaustedRef.current && !hasMultipleRows(container) && visibleCount < selectedOptionsLength && visibleCount < maxAllowed2) {
74
+ setVisibleCount(visibleCount + 1);
75
+ }
76
+ }, [
77
+ singleRow,
78
+ selectedOptionsLength,
79
+ visibleCount,
80
+ remeasureToken,
81
+ maxChips
82
+ ]);
83
+ const maxAllowed = maxChips ?? 10;
84
+ const displayCount = singleRow && visibleCount !== null ? Math.min(visibleCount, maxAllowed) : Math.min(selectedOptionsLength, maxAllowed);
85
+ const hiddenCount = selectedOptionsLength - displayCount;
86
+ return { rowsRef, displayCount, hiddenCount };
87
+ }
88
+
89
+ export { useChipLayout as u };
90
+ //# sourceMappingURL=useChipLayout-BBe6Tzyl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChipLayout-BBe6Tzyl.js","sources":["../src/components/MultiSelectField/internal/useChipLayout.ts"],"sourcesContent":["import { useState, useLayoutEffect, useRef, type RefObject } from \"react\";\n\nconst hasMultipleRows = (container: HTMLElement) => {\n const children = Array.from(container.children);\n if (children.length <= 1) return false;\n const firstTop = children[0].getBoundingClientRect().top;\n return children.some(\n (child) => child.getBoundingClientRect().top !== firstTop,\n );\n};\n\ntype UseChipLayoutOptions = {\n selectedOptionsLength: number;\n singleRow?: boolean;\n maxChips?: number;\n};\n\n/**\n * Manages chip layout calculations shared between MultiSelectFieldInput and\n * MultiSelectFieldTrigger. Handles single-row overflow detection, visible chip\n * count, and the \"+N\" hidden chip indicator.\n * @param options - Configuration for chip layout behaviour\n * @returns rowsRef to attach to the chip container, plus computed display/hidden counts\n */\nexport function useChipLayout({\n selectedOptionsLength,\n singleRow,\n maxChips,\n}: UseChipLayoutOptions): {\n rowsRef: RefObject<HTMLDivElement>;\n displayCount: number;\n hiddenCount: number;\n} {\n const rowsRef = useRef<HTMLDivElement>(null);\n const [visibleCount, setVisibleCount] = useState<number | null>(null);\n // Bumped on container width changes so layout recalculates without resetting\n // to \"show all chips\" (that reset is what put the input on a second row).\n const [remeasureToken, setRemeasureToken] = useState(0);\n // After a failed grow attempt, stop trying to add chips until the next resize\n // or selection change (avoids +1/-1 oscillation).\n const growExhaustedRef = useRef(false);\n const lastWidthRef = useRef<number | null>(null);\n\n const prevSelectedLengthRef = useRef(selectedOptionsLength);\n useLayoutEffect(() => {\n if (prevSelectedLengthRef.current !== selectedOptionsLength) {\n prevSelectedLengthRef.current = selectedOptionsLength;\n growExhaustedRef.current = false;\n setVisibleCount(null);\n }\n }, [selectedOptionsLength]);\n\n // Remeasure when the rows container width changes so singleRow stays one\n // row on shrink and restores chips on grow (without a selection change).\n useLayoutEffect(() => {\n if (!singleRow) {\n lastWidthRef.current = null;\n return;\n }\n\n const container = rowsRef.current;\n if (!container) return;\n\n if (typeof ResizeObserver === \"undefined\") return;\n\n const observer = new ResizeObserver((entries) => {\n const width = entries[0]?.contentRect.width;\n if (width === undefined) return;\n if (lastWidthRef.current === width) return;\n lastWidthRef.current = width;\n // Allow grow attempts again; shrink/grow from the current count instead of\n // flashing every chip (which wraps the input before React can paint).\n growExhaustedRef.current = false;\n setRemeasureToken((token) => token + 1);\n });\n\n lastWidthRef.current = container.getBoundingClientRect().width;\n observer.observe(container);\n\n return () => {\n observer.disconnect();\n };\n }, [singleRow]);\n\n useLayoutEffect(() => {\n if (!singleRow || !rowsRef.current) {\n setVisibleCount(null);\n return;\n }\n\n const maxAllowed = maxChips ?? 10;\n const container = rowsRef.current;\n\n if (visibleCount === null) {\n if (hasMultipleRows(container)) {\n const firstRowTop = container.children[0]?.getBoundingClientRect().top;\n const firstRowCount = Array.from(container.children).filter(\n (c) => c.getBoundingClientRect().top === firstRowTop,\n ).length;\n setVisibleCount(Math.max(firstRowCount - 1, 0));\n }\n return;\n }\n\n // Too many chips for the current width — remove one and re-check.\n if (hasMultipleRows(container) && visibleCount > 0) {\n growExhaustedRef.current = true;\n setVisibleCount(visibleCount - 1);\n return;\n }\n\n // Room to show another chip after a widen — try one more, then back off if\n // it wraps (growExhaustedRef prevents oscillation).\n if (\n !growExhaustedRef.current &&\n !hasMultipleRows(container) &&\n visibleCount < selectedOptionsLength &&\n visibleCount < maxAllowed\n ) {\n setVisibleCount(visibleCount + 1);\n }\n }, [\n singleRow,\n selectedOptionsLength,\n visibleCount,\n remeasureToken,\n maxChips,\n ]);\n\n const maxAllowed = maxChips ?? 10;\n const displayCount =\n singleRow && visibleCount !== null\n ? Math.min(visibleCount, maxAllowed)\n : Math.min(selectedOptionsLength, maxAllowed);\n const hiddenCount = selectedOptionsLength - displayCount;\n\n return { rowsRef, displayCount, hiddenCount };\n}\n"],"names":["maxAllowed"],"mappings":";;AAEA,MAAM,eAAA,GAAkB,CAAC,SAAA,KAA2B;AAClD,EAAA,MA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AAU,QAAQ,CAAA,CAAE,MAAA;AAAA,UACnD,CAAC,CAAA,KAAM,CAAA,CAAE,qBAAA,GAAwB,GAAA,KAAQ;AAAA,SAC3C,CAAE,MAAA;AACF,QAAA,eAAA,CAAgB,IAAA,CAAK,GAAA,CAAI,aAAA,GAAgB,CAAA,EAAG,CAAC,CAAC,CAAA;AAAA,MAChD;AACA,MAAA;AAAA,IACF;AAGA,IAAA,IAAI,eAAA,CAAgB,SAAS,CAAA,IAAK,YAAA,GAAe,CAAA,EAAG;AAClD,MAAA,gBAAA,CAAiB,OAAA,GAAU,IAAA;AAC3B,MAAA,eAAA,CAAgB,eAAe,CAAC,CAAA;AAChC,MAAA;AAAA,IACF;AAIA,IAAA,IACE,CAAC,gBAAA,CAAiB,OAAA,IAClB,CAAC,eAAA,CAAgB,SAAS,CAAA,IAC1B,YAAA,GAAe,qBAAA,IACf,YAAA,GAAeA,WAAAA,EACf;AACA,MAAA,eAAA,CAAgB,eAAe,CAAC,CAAA;AAAA,IAClC;AAAA,EACF,CAAA,EAAG;AAAA,IACD,SAAA;AAAA,IACA,qBAAA;AAAA,IACA,YAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EAAA,MAAM,aAAa,QAAA,IAAY,EAAA;AAC/B,EAAA,MAAM,YAAA,GACJ,SAAA,IAAa,YAAA,KAAiB,IAAA,GAC1B,IAAA,CAAK,GAAA,CAAI,YAAA,EAAc,UAAU,CAAA,GACjC,IAAA,CAAK,GAAA,CAAI,qBAAA,EAAuB,UAAU,CAAA;AAChD,EAAA,MAAM,cAAc,qBAAA,GAAwB,YAAA;AAE5C,EAAA,OAAO,EAAE,OAAA,EAAS,YAAA,EAAc,WAAA,EAAY;AAC9C;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { useContext } from 'react';
2
- import { D as DrillDownContext } from './DrillDown.module-D1Bf9_yP.js';
2
+ import { D as DrillDownContext } from './DrillDown.module-1VBKDZRA.js';
3
3
 
4
4
  function useDrillDownContext() {
5
5
  const context = useContext(DrillDownContext);
@@ -12,4 +12,4 @@ function useDrillDownContext() {
12
12
  }
13
13
 
14
14
  export { useDrillDownContext as u };
15
- //# sourceMappingURL=useDrillDownContext-iUvoTget.js.map
15
+ //# sourceMappingURL=useDrillDownContext-D5_NjqY4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDrillDownContext-iUvoTget.js","sources":["../src/components/DrillDown/internal/useDrillDownContext.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { DrillDownContext } from \"./DrillDownContext\";\n\nexport function useDrillDownContext() {\n const context = useContext(DrillDownContext);\n if (!context) {\n throw new Error(\n \"useDrillDownContext must be used within a DrillDownContextProvider\",\n );\n }\n return context;\n}\n"],"names":[],"mappings":";;;AAGO,SAAS,mBAAA,GAAsB;AACpC,EAAA,MAAM,OAAA,GAAU,WAAW,gBAAgB,CAAA;AAC3C,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,OAAA;AACT;;;;"}
1
+ {"version":3,"file":"useDrillDownContext-D5_NjqY4.js","sources":["../src/components/DrillDown/internal/useDrillDownContext.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { DrillDownContext } from \"./DrillDownContext\";\n\nexport function useDrillDownContext() {\n const context = useContext(DrillDownContext);\n if (!context) {\n throw new Error(\n \"useDrillDownContext must be used within a DrillDownContextProvider\",\n );\n }\n return context;\n}\n"],"names":[],"mappings":";;;AAGO,SAAS,mBAAA,GAAsB;AACpC,EAAA,MAAM,OAAA,GAAU,WAAW,gBAAgB,CAAA;AAC3C,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,OAAA;AACT;;;;"}
@@ -2,9 +2,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { forwardRef, useRef, useEffect, useCallback } from 'react';
4
4
  import { a as getAugmentedNamespace, c as cx } from './index-De1g9FRV.js';
5
- import { d as drillDownStyles } from './DrillDown.module-D1Bf9_yP.js';
5
+ import { d as drillDownStyles } from './DrillDown.module-1VBKDZRA.js';
6
6
  import { t as tabbable, f as focusable, i as isTabbable, g as getTabIndex, b as isFocusable, c as index_esm } from './usePopoverTransitionStates-CDXCdyKa.js';
7
- import { u as useDrillDownContext } from './useDrillDownContext-iUvoTget.js';
7
+ import { u as useDrillDownContext } from './useDrillDownContext-D5_NjqY4.js';
8
8
  import { F as Flex } from './Flex-CRF7gj0_.js';
9
9
  import { B as Button } from './Button-Dwh_Nd4l.js';
10
10
  import { T as Text } from './Text-CIoD_RK4.js';
@@ -1698,8 +1698,17 @@ const DrillDownHeader = forwardRef(
1698
1698
  DrillDownHeader.displayName = "DrillDownHeader";
1699
1699
 
1700
1700
  const DrillDownContent = forwardRef((props, ref) => {
1701
- const { className, ...rest } = props;
1702
- return /* @__PURE__ */ jsx("div", { ...rest, className: cx(drillDownStyles["content"], className), ref });
1701
+ const { className, children, ...rest } = props;
1702
+ return /* @__PURE__ */ jsx(
1703
+ "div",
1704
+ {
1705
+ className: cx(drillDownStyles["content"], className),
1706
+ "data-anv": "drilldown-content",
1707
+ ref,
1708
+ ...rest,
1709
+ children
1710
+ }
1711
+ );
1703
1712
  });
1704
1713
  DrillDownContent.displayName = "DrillDownContent";
1705
1714
 
@@ -1833,25 +1842,35 @@ const DrillDown = Object.assign(
1833
1842
  setOnClose?.(onClose, indexProp);
1834
1843
  }
1835
1844
  }, [setOnClose, onClose, indexProp]);
1836
- return isActiveScreen ? /* @__PURE__ */ jsx("div", { ...rest, className: cx(drillDownStyles["drilldown"], className), ref, children: /* @__PURE__ */ jsx(
1837
- focusTrapReactExports.FocusTrap,
1845
+ return isActiveScreen ? /* @__PURE__ */ jsx(
1846
+ "div",
1838
1847
  {
1839
- active: hostIsInteractive && interactive,
1840
- focusTrapOptions: {
1841
- returnFocusOnDeactivate: false,
1842
- fallbackFocus: () => sectionRef.current ?? document.body
1843
- },
1848
+ className: cx(drillDownStyles["drilldown"], className),
1849
+ "data-anv": "drilldown",
1850
+ ref,
1851
+ ...rest,
1844
1852
  children: /* @__PURE__ */ jsx(
1845
- "section",
1853
+ focusTrapReactExports.FocusTrap,
1846
1854
  {
1847
- className: drillDownStyles["container"],
1848
- ref: sectionRef,
1849
- tabIndex: -1,
1850
- children
1855
+ active: hostIsInteractive && interactive,
1856
+ focusTrapOptions: {
1857
+ returnFocusOnDeactivate: false,
1858
+ fallbackFocus: () => sectionRef.current ?? document.body
1859
+ },
1860
+ children: /* @__PURE__ */ jsx(
1861
+ "section",
1862
+ {
1863
+ className: drillDownStyles["container"],
1864
+ "data-anv": "drilldown-container",
1865
+ ref: sectionRef,
1866
+ tabIndex: -1,
1867
+ children
1868
+ }
1869
+ )
1851
1870
  }
1852
1871
  )
1853
1872
  }
1854
- ) }) : null;
1873
+ ) : null;
1855
1874
  }
1856
1875
  ),
1857
1876
  {
@@ -1892,4 +1911,4 @@ function useDrillDown() {
1892
1911
  }
1893
1912
 
1894
1913
  export { DrillDown as D, DrillDownHeader as a, DrillDownContent as b, DrillDownFooter as c, DrillDownNextButton as d, DrillDownPrevButton as e, useDrillDown as u };
1895
- //# sourceMappingURL=useDrilldown-UAm0-l1l.js.map
1914
+ //# sourceMappingURL=useDrilldown-glecoaI_.js.map