@servicetitan/anvil2 1.40.0 → 1.40.2

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 (127) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{Calendar-C2ONV7cq.js → Calendar-2q8zRbMK.js} +2 -2
  3. package/dist/{Calendar-C2ONV7cq.js.map → Calendar-2q8zRbMK.js.map} +1 -1
  4. package/dist/{Calendar-DixTCgAW-CfphBge0.js → Calendar-KVYGk3wS-CEptqxjI.js} +3 -3
  5. package/dist/{Calendar-DixTCgAW-CfphBge0.js.map → Calendar-KVYGk3wS-CEptqxjI.js.map} +1 -1
  6. package/dist/Calendar.js +1 -1
  7. package/dist/{Checkbox-BNrjUtHs-BBLXLwO5.js → Checkbox-Qucv_PK8-Bovwdnlj.js} +7 -18
  8. package/dist/Checkbox-Qucv_PK8-Bovwdnlj.js.map +1 -0
  9. package/dist/{Checkbox-Dxr3rgQV.js → Checkbox-cfgZP7Z2.js} +2 -2
  10. package/dist/{Checkbox-Dxr3rgQV.js.map → Checkbox-cfgZP7Z2.js.map} +1 -1
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/{Combobox-C7nV-w8I.js → Combobox-3l2SK47T.js} +4 -4
  13. package/dist/{Combobox-C7nV-w8I.js.map → Combobox-3l2SK47T.js.map} +1 -1
  14. package/dist/Combobox.js +1 -1
  15. package/dist/{DateField-Df42sxE9.js → DateField-CfNLRY0D.js} +6 -6
  16. package/dist/{DateField-Df42sxE9.js.map → DateField-CfNLRY0D.js.map} +1 -1
  17. package/dist/DateField.js +1 -1
  18. package/dist/{DateFieldRange-DQJ_FMeA.js → DateFieldRange-BEL4Jdy8.js} +2 -2
  19. package/dist/{DateFieldRange-DQJ_FMeA.js.map → DateFieldRange-BEL4Jdy8.js.map} +1 -1
  20. package/dist/{DateFieldRange--ZCTVrKX-DoogWMrm.js → DateFieldRange-DtppOifM-DZvtSHar.js} +5 -5
  21. package/dist/{DateFieldRange--ZCTVrKX-DoogWMrm.js.map → DateFieldRange-DtppOifM-DZvtSHar.js.map} +1 -1
  22. package/dist/DateFieldRange.js +1 -1
  23. package/dist/{DateFieldSingle-BXPhS91g.js → DateFieldSingle-CJ6j0p1L.js} +2 -2
  24. package/dist/{DateFieldSingle-BXPhS91g.js.map → DateFieldSingle-CJ6j0p1L.js.map} +1 -1
  25. package/dist/DateFieldSingle.js +1 -1
  26. package/dist/{DaysOfTheWeek-C4ZGriW7.js → DaysOfTheWeek-Dl31wkmU.js} +2 -2
  27. package/dist/{DaysOfTheWeek-C4ZGriW7.js.map → DaysOfTheWeek-Dl31wkmU.js.map} +1 -1
  28. package/dist/DaysOfTheWeek.js +1 -1
  29. package/dist/{Dialog-CBWaZO5U.js → Dialog-CJZEBa5r.js} +31 -35
  30. package/dist/Dialog-CJZEBa5r.js.map +1 -0
  31. package/dist/Dialog.js +1 -1
  32. package/dist/{Drawer-Be0tyTMM.js → Drawer-Cj3nJc4k.js} +2 -2
  33. package/dist/{Drawer-Be0tyTMM.js.map → Drawer-Cj3nJc4k.js.map} +1 -1
  34. package/dist/Drawer.js +1 -1
  35. package/dist/{InputMask-DYthrVaU.js → InputMask-BdLGTTAk.js} +2 -2
  36. package/dist/{InputMask-DYthrVaU.js.map → InputMask-BdLGTTAk.js.map} +1 -1
  37. package/dist/{InputMask-CiHg25XE--lofQ4oF.js → InputMask-Hn-xudp1-BKhtZ7Zk.js} +15 -3
  38. package/dist/InputMask-Hn-xudp1-BKhtZ7Zk.js.map +1 -0
  39. package/dist/InputMask.js +1 -1
  40. package/dist/{ListView-DgrUsTC8.js → ListView-_YFTewqc.js} +3 -3
  41. package/dist/{ListView-DgrUsTC8.js.map → ListView-_YFTewqc.js.map} +1 -1
  42. package/dist/ListView.js +1 -1
  43. package/dist/{Menu-By8ps-lb.js → Menu-1EwVMNIw.js} +2 -2
  44. package/dist/{Menu-By8ps-lb.js.map → Menu-1EwVMNIw.js.map} +1 -1
  45. package/dist/{Menu-jt64Cbkd-mK95uUq6.js → Menu-CffX1bPZ-BeEOvryY.js} +3 -3
  46. package/dist/{Menu-jt64Cbkd-mK95uUq6.js.map → Menu-CffX1bPZ-BeEOvryY.js.map} +1 -1
  47. package/dist/Menu.js +1 -1
  48. package/dist/{Overflow-BrXwlYpn-CtqaiNgb.js → Overflow-CFClqFVC-BKqOBCan.js} +43 -17
  49. package/dist/Overflow-CFClqFVC-BKqOBCan.js.map +1 -0
  50. package/dist/{Overflow-BrXwlYpn.css → Overflow-CFClqFVC.css} +29 -26
  51. package/dist/{Overflow-B6rIOkAI.js → Overflow-w-3_04fS.js} +2 -2
  52. package/dist/{Overflow-B6rIOkAI.js.map → Overflow-w-3_04fS.js.map} +1 -1
  53. package/dist/Overflow.js +1 -1
  54. package/dist/{Page-DoCYLmH8.js → Page-BikjTlTM.js} +5 -5
  55. package/dist/{Page-DoCYLmH8.js.map → Page-BikjTlTM.js.map} +1 -1
  56. package/dist/Page.js +1 -1
  57. package/dist/Pagination.js +1 -1
  58. package/dist/Pagination.js.map +1 -1
  59. package/dist/{Popover-CVCAWhdO-CJw1mW49.js → Popover-jcmNuir0-DjlCqU1z.js} +10 -50
  60. package/dist/Popover-jcmNuir0-DjlCqU1z.js.map +1 -0
  61. package/dist/{Popover-Dv7ntx4P.js → Popover-rB4BVx-A.js} +2 -2
  62. package/dist/{Popover-Dv7ntx4P.js.map → Popover-rB4BVx-A.js.map} +1 -1
  63. package/dist/Popover.js +1 -1
  64. package/dist/{ProgressBar-Eeudkcyc.js → ProgressBar-BL34rg_J.js} +2 -2
  65. package/dist/{ProgressBar-Eeudkcyc.js.map → ProgressBar-BL34rg_J.js.map} +1 -1
  66. package/dist/{ProgressBar-CZhkKwaS-dlDRDjxo.js → ProgressBar-CzXzPpIX-Clg1J71o.js} +77 -32
  67. package/dist/ProgressBar-CzXzPpIX-Clg1J71o.js.map +1 -0
  68. package/dist/ProgressBar.js +1 -1
  69. package/dist/{Radio-DiBn0-hf-hhLKXDdl.js → Radio-BnOSIK1U-1MmGQFPi.js} +3 -3
  70. package/dist/{Radio-DiBn0-hf-hhLKXDdl.js.map → Radio-BnOSIK1U-1MmGQFPi.js.map} +1 -1
  71. package/dist/{Radio-Dx2GeEZp.js → Radio-BzZUxQa6.js} +2 -2
  72. package/dist/{Radio-Dx2GeEZp.js.map → Radio-BzZUxQa6.js.map} +1 -1
  73. package/dist/Radio.js +1 -1
  74. package/dist/{SearchField-BQY7LHe2.js → SearchField-BGPqpnVd.js} +2 -2
  75. package/dist/{SearchField-BQY7LHe2.js.map → SearchField-BGPqpnVd.js.map} +1 -1
  76. package/dist/SearchField.js +1 -1
  77. package/dist/{SelectCard-CL8T4DQb-ClozUyqV.js → SelectCard-ynL5QcZD-BtBzMtyR.js} +4 -4
  78. package/dist/{SelectCard-CL8T4DQb-ClozUyqV.js.map → SelectCard-ynL5QcZD-BtBzMtyR.js.map} +1 -1
  79. package/dist/SelectCard.js +1 -1
  80. package/dist/{SelectCardGroup-KTtcsOar.js → SelectCardGroup-D6GuJJB2.js} +2 -2
  81. package/dist/{SelectCardGroup-KTtcsOar.js.map → SelectCardGroup-D6GuJJB2.js.map} +1 -1
  82. package/dist/{SelectTrigger-BvUO-g1F.js → SelectTrigger-Bo2VPAD0.js} +2 -2
  83. package/dist/{SelectTrigger-BvUO-g1F.js.map → SelectTrigger-Bo2VPAD0.js.map} +1 -1
  84. package/dist/SelectTrigger.js +1 -1
  85. package/dist/{SelectTriggerBase-BMhRDkFW-DjkagPpu.js → SelectTriggerBase-BGHwx0mN-B3HiW5tQ.js} +3 -3
  86. package/dist/{SelectTriggerBase-BMhRDkFW-DjkagPpu.js.map → SelectTriggerBase-BGHwx0mN-B3HiW5tQ.js.map} +1 -1
  87. package/dist/{Stepper-CwIV7ZiT.js → Stepper-BtbDBIzz.js} +2 -2
  88. package/dist/{Stepper-CwIV7ZiT.js.map → Stepper-BtbDBIzz.js.map} +1 -1
  89. package/dist/Stepper.js +1 -1
  90. package/dist/{TextField-C5KbQxoU-CSkSyt7P.js → TextField-BIeCvDD--C7yp05g5.js} +3 -3
  91. package/dist/{TextField-C5KbQxoU-CSkSyt7P.js.map → TextField-BIeCvDD--C7yp05g5.js.map} +1 -1
  92. package/dist/{TextField-0XKj7lDu.js → TextField-COXABNrR.js} +2 -2
  93. package/dist/{TextField-0XKj7lDu.js.map → TextField-COXABNrR.js.map} +1 -1
  94. package/dist/TextField.css +27 -24
  95. package/dist/TextField.js +1 -1
  96. package/dist/TextField.module-EkKlj66e-EkKlj66e.js +20 -0
  97. package/dist/{TextField.module-ChLlwuT--ChLlwuT-.js.map → TextField.module-EkKlj66e-EkKlj66e.js.map} +1 -1
  98. package/dist/{Textarea-DkSeFIg7.js → Textarea-D6K3Jc5_.js} +2 -2
  99. package/dist/{Textarea-DkSeFIg7.js.map → Textarea-D6K3Jc5_.js.map} +1 -1
  100. package/dist/Textarea.js +1 -1
  101. package/dist/Toast.js +1 -1
  102. package/dist/{Toolbar-38Z9fVxY.js → Toolbar-CLsgDAKk.js} +3 -3
  103. package/dist/{Toolbar-38Z9fVxY.js.map → Toolbar-CLsgDAKk.js.map} +1 -1
  104. package/dist/Toolbar.js +1 -1
  105. package/dist/{Tooltip-BwUVaBEo.js → Tooltip-B_swJyoW.js} +2 -2
  106. package/dist/{Tooltip-BwUVaBEo.js.map → Tooltip-B_swJyoW.js.map} +1 -1
  107. package/dist/Tooltip.js +1 -1
  108. package/dist/components/Dialog/Dialog.d.ts +1 -0
  109. package/dist/components/Drawer/Drawer.d.ts +1 -0
  110. package/dist/index.js +26 -26
  111. package/dist/{toast-CWVuLkyv.js → toast-CJSBieY0.js} +2 -2
  112. package/dist/{toast-CWVuLkyv.js.map → toast-CJSBieY0.js.map} +1 -1
  113. package/package.json +2 -2
  114. package/dist/Checkbox-BNrjUtHs-BBLXLwO5.js.map +0 -1
  115. package/dist/Dialog-CBWaZO5U.js.map +0 -1
  116. package/dist/InputMask-CiHg25XE--lofQ4oF.js.map +0 -1
  117. package/dist/Overflow-BrXwlYpn-CtqaiNgb.js.map +0 -1
  118. package/dist/Popover-CVCAWhdO-CJw1mW49.js.map +0 -1
  119. package/dist/ProgressBar-CZhkKwaS-dlDRDjxo.js.map +0 -1
  120. package/dist/TextField.module-ChLlwuT--ChLlwuT-.js +0 -20
  121. /package/dist/{Calendar-DixTCgAW.css → Calendar-KVYGk3wS.css} +0 -0
  122. /package/dist/{Menu-jt64Cbkd.css → Menu-CffX1bPZ.css} +0 -0
  123. /package/dist/{Popover-CVCAWhdO.css → Popover-jcmNuir0.css} +0 -0
  124. /package/dist/{ProgressBar-CZhkKwaS.css → ProgressBar-CzXzPpIX.css} +0 -0
  125. /package/dist/{Radio-DiBn0-hf.css → Radio-BnOSIK1U.css} +0 -0
  126. /package/dist/{SelectCard-CL8T4DQb.css → SelectCard-ynL5QcZD.css} +0 -0
  127. /package/dist/{SelectTriggerBase-BMhRDkFW.css → SelectTriggerBase-BGHwx0mN.css} +0 -0
@@ -1,2 +1,2 @@
1
- export { D as DateFieldRange } from './DateFieldRange-DQJ_FMeA.js';
1
+ export { D as DateFieldRange } from './DateFieldRange-BEL4Jdy8.js';
2
2
  //# sourceMappingURL=DateFieldRange.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { useTrackingId } from './useTrackingId.js';
3
3
  import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
4
- import { a as DateFieldSingle$1 } from './DateFieldRange--ZCTVrKX-DoogWMrm.js';
4
+ import { a as DateFieldSingle$1 } from './DateFieldRange-DtppOifM-DZvtSHar.js';
5
5
 
6
6
  const DateFieldSingle = (props) => {
7
7
  const data = {
@@ -19,4 +19,4 @@ const DateFieldSingle = (props) => {
19
19
  DateFieldSingle.displayName = DateFieldSingle$1.displayName;
20
20
 
21
21
  export { DateFieldSingle as D };
22
- //# sourceMappingURL=DateFieldSingle-BXPhS91g.js.map
22
+ //# sourceMappingURL=DateFieldSingle-CJ6j0p1L.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateFieldSingle-BXPhS91g.js","sources":["../src/components/DateFieldSingle/DateFieldSingle.tsx"],"sourcesContent":["import {\n childrenToString,\n DateFieldSingle as CoreDateFieldSingle,\n DateFieldSingleProps as CoreDateFieldSingleProps,\n} from \"@servicetitan/hammer-react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type DateFieldSingleProps = CoreDateFieldSingleProps & DataTrackingId;\n\nexport const DateFieldSingle = (props: DateFieldSingleProps) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n description: childrenToString(props.description),\n };\n\n const trackingId = useTrackingId({\n name: \"DateFieldSingle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreDateFieldSingle data-tracking-id={trackingId} {...props} />;\n};\n\nDateFieldSingle.displayName = CoreDateFieldSingle.displayName;\n"],"names":["CoreDateFieldSingle"],"mappings":";;;;;AAUa,MAAA,eAAA,GAAkB,CAAC,KAAgC,KAAA;AAC9D,EAAA,MAAM,IAAO,GAAA;AAAA,IACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,IACnC,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,WAAA,EAAa,gBAAiB,CAAA,KAAA,CAAM,WAAW;AAAA,GACjD;AAEA,EAAA,MAAM,aAAa,aAAc,CAAA;AAAA,IAC/B,IAAM,EAAA,iBAAA;AAAA,IACN,IAAA;AAAA,IACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,GACxC,CAAA;AACD,EAAA,uBAAQ,GAAA,CAAAA,iBAAA,EAAA,EAAoB,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AACvE;AAEA,eAAA,CAAgB,cAAcA,iBAAoB,CAAA,WAAA;;;;"}
1
+ {"version":3,"file":"DateFieldSingle-CJ6j0p1L.js","sources":["../src/components/DateFieldSingle/DateFieldSingle.tsx"],"sourcesContent":["import {\n childrenToString,\n DateFieldSingle as CoreDateFieldSingle,\n DateFieldSingleProps as CoreDateFieldSingleProps,\n} from \"@servicetitan/hammer-react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type DateFieldSingleProps = CoreDateFieldSingleProps & DataTrackingId;\n\nexport const DateFieldSingle = (props: DateFieldSingleProps) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n description: childrenToString(props.description),\n };\n\n const trackingId = useTrackingId({\n name: \"DateFieldSingle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreDateFieldSingle data-tracking-id={trackingId} {...props} />;\n};\n\nDateFieldSingle.displayName = CoreDateFieldSingle.displayName;\n"],"names":["CoreDateFieldSingle"],"mappings":";;;;;AAUa,MAAA,eAAA,GAAkB,CAAC,KAAgC,KAAA;AAC9D,EAAA,MAAM,IAAO,GAAA;AAAA,IACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,IACnC,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,WAAA,EAAa,gBAAiB,CAAA,KAAA,CAAM,WAAW;AAAA,GACjD;AAEA,EAAA,MAAM,aAAa,aAAc,CAAA;AAAA,IAC/B,IAAM,EAAA,iBAAA;AAAA,IACN,IAAA;AAAA,IACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,GACxC,CAAA;AACD,EAAA,uBAAQ,GAAA,CAAAA,iBAAA,EAAA,EAAoB,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AACvE;AAEA,eAAA,CAAgB,cAAcA,iBAAoB,CAAA,WAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { D as DateFieldSingle } from './DateFieldSingle-BXPhS91g.js';
1
+ export { D as DateFieldSingle } from './DateFieldSingle-CJ6j0p1L.js';
2
2
  //# sourceMappingURL=DateFieldSingle.js.map
@@ -4,7 +4,7 @@ import { useTrackingId } from './useTrackingId.js';
4
4
  import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
5
5
  import { B as ButtonToggle } from './ButtonToggle-Bm4KRl3o-B1-LbfjY.js';
6
6
  import { F as Flex } from './Flex-CiK7uNUu-BfxHG4L0.js';
7
- import { L as Label, f as Tooltip } from './ProgressBar-CZhkKwaS-dlDRDjxo.js';
7
+ import { L as Label, f as Tooltip } from './ProgressBar-CzXzPpIX-Clg1J71o.js';
8
8
  import { H as Helper } from './Helper-h7k80qls-DHPFHTvI.js';
9
9
 
10
10
  import './DaysOfTheWeek.css';const styles = {
@@ -126,4 +126,4 @@ const DaysOfTheWeek = forwardRef(
126
126
  DaysOfTheWeek.displayName = DaysOfTheWeek$1.displayName;
127
127
 
128
128
  export { DaysOfTheWeek as D };
129
- //# sourceMappingURL=DaysOfTheWeek-C4ZGriW7.js.map
129
+ //# sourceMappingURL=DaysOfTheWeek-Dl31wkmU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DaysOfTheWeek-C4ZGriW7.js","sources":["../../hammer-react/dist/DaysOfTheWeek-Biz1rlvH.js","../src/components/DaysOfTheWeek/DaysOfTheWeek.tsx"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { B as ButtonToggle } from './ButtonToggle-Bm4KRl3o.js';\nimport { F as Flex } from './Flex-CiK7uNUu.js';\nimport { forwardRef, useId, useMemo } from 'react';\nimport { L as Label, g as Tooltip } from './ProgressBar-CZhkKwaS.js';\nimport { H as Helper } from './Helper-h7k80qls.js';\n\nimport './DaysOfTheWeek.css';const styles = {\n\t\"days-of-the-week-container\": \"_days-of-the-week-container_13rkh_3\",\n\t\"days-of-the-week\": \"_days-of-the-week_13rkh_3\",\n\t\"button-toggle\": \"_button-toggle_13rkh_18\",\n\t\"button-toggle-wrapper\": \"_button-toggle-wrapper_13rkh_24\"\n};\n\nconst DAYS = [\n { short: \"Mo\", full: \"Monday\" },\n { short: \"Tu\", full: \"Tuesday\" },\n { short: \"We\", full: \"Wednesday\" },\n { short: \"Th\", full: \"Thursday\" },\n { short: \"Fr\", full: \"Friday\" },\n { short: \"Sa\", full: \"Saturday\" },\n { short: \"Su\", full: \"Sunday\" }\n];\nconst DaysOfTheWeek = forwardRef(\n (props, ref) => {\n const {\n selectedDays = [],\n onChange,\n disabled,\n firstDay = 7,\n hint,\n id: idProp,\n description,\n errorMessage,\n errorAriaLive,\n label,\n required,\n moreInfo,\n labelProps\n } = props;\n const autoId = useId();\n const id = idProp ?? autoId;\n const labelUid = useId();\n const helperUid = useId();\n const orderedDays = useMemo(() => {\n const firstDayIndex = firstDay - 1;\n return [...DAYS.slice(firstDayIndex), ...DAYS.slice(0, firstDayIndex)];\n }, [firstDay]);\n const handleDayToggle = (index) => {\n const dayNumber = (index + firstDay - 1) % 7 + 1;\n const newSelectedDays = selectedDays.includes(dayNumber) ? selectedDays.filter((d) => d !== dayNumber) : [...selectedDays, dayNumber];\n onChange?.(newSelectedDays);\n };\n const isDayDisabled = (dayNumber) => {\n if (typeof disabled === \"boolean\") {\n return disabled;\n }\n if (Array.isArray(disabled)) {\n return disabled.includes(dayNumber);\n }\n return false;\n };\n return /* @__PURE__ */ jsxs(\"div\", { className: styles[\"days-of-the-week-container\"], children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n moreInfo,\n required,\n id: labelUid,\n htmlFor: id,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsx(Flex, { ref, gap: 2, className: styles[\"days-of-the-week\"], id, children: orderedDays.map((day, index) => {\n const dayNumber = (index + firstDay - 1) % 7 + 1;\n return /* @__PURE__ */ jsxs(Tooltip, { placement: \"top\", children: [\n /* @__PURE__ */ jsx(Tooltip.Trigger, { className: styles[\"button-toggle-wrapper\"], children: /* @__PURE__ */ jsx(\n ButtonToggle,\n {\n checked: selectedDays.includes(dayNumber),\n onClick: () => handleDayToggle(index),\n disabled: isDayDisabled(dayNumber),\n className: styles[\"button-toggle\"],\n id: label ? labelUid : void 0,\n \"aria-describedby\": helperUid,\n children: day.short\n }\n ) }),\n /* @__PURE__ */ jsx(Tooltip.Content, { children: day.full })\n ] }, day.short);\n }) }),\n /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n description,\n errorMessage,\n errorAriaLive\n }\n )\n ] });\n }\n);\nDaysOfTheWeek.displayName = \"DaysOfTheWeek\";\n\nexport { DaysOfTheWeek as D };\n//# sourceMappingURL=DaysOfTheWeek-Biz1rlvH.js.map\n","import {\n DaysOfTheWeekProps as CoreDaysOfTheWeekProps,\n DaysOfTheWeek as CoreDaysOfTheWeek,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\n/**\n * Props for the DaysOfTheWeek component\n * @property {number[]} [selectedDays] - The selected days (1-7, where 1 is Monday and 7 is Sunday)\n * @property {(selectedDays: number[]) => void} [onChange] - Callback fired when the selection changes\n * @property {boolean | number[]} [disabled] - Whether the component is disabled. Can be a boolean to disable all days, or an array of day numbers (1-7) to disable specific days\n * @property {number} [firstDay] - The first day of the week (1-7, where 1 is Monday and 7 is Sunday)\n * @default 1\n * @property {ReactElement | string} [hint] - Hint text or element to display above the component\n * @property {string} [id] - ID for the component\n * @property {ReactElement | string} [description] - Description text or element to display below the component\n * @property {ReactElement | string} [errorMessage] - Error message to display when there is an error\n * @property {AriaAttributes['aria-live']} [errorAriaLive] - aria-live for the error message\n * @default assertive\n * @property {LabelProps['children']} [label] - Label text or element\n * @property {boolean} [required] - Whether the field is required\n * @property {LabelProps['moreInfo']} [moreInfo] - Additional info to display in a tooltip next to the label\n * @property {Omit<LabelProps, 'children' | 'moreInfo' | 'required' | 'id' | 'htmlFor'>} [labelProps] - Additional props to pass to the Label component\n * @extends DataTrackingId\n */\nexport type DaysOfTheWeekProps = CoreDaysOfTheWeekProps & DataTrackingId;\n\n/**\n * DaysOfTheWeek component for selecting multiple days of the week.\n *\n * Features:\n * - Displays days of the week as toggleable buttons\n * - Supports custom first day of the week (Monday-Sunday)\n * - Individual day selection and deselection\n * - Optional label, hint, description, and error messaging\n * - Full accessibility support with ARIA attributes\n * - Tooltips showing full day names on hover\n * - Responsive design with flexible layout\n * - Support for disabling specific days or the entire component\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <DaysOfTheWeek\n * selectedDays={[2, 4, 6]}\n * onChange={(days) => console.log('Selected days:', days)}\n * label=\"Working Days\"\n * firstDay={1}\n * />\n */\nexport const DaysOfTheWeek = forwardRef(\n (props: DaysOfTheWeekProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n description: childrenToString(props.description),\n hint: childrenToString(props.hint),\n label: childrenToString(props.label),\n labelProps: childrenToString(props.labelProps),\n };\n\n const trackingId = useTrackingId({\n name: \"DaysOfTheWeek\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDaysOfTheWeek ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\nDaysOfTheWeek.displayName = CoreDaysOfTheWeek.displayName;\n"],"names":["DaysOfTheWeek","CoreDaysOfTheWeek"],"mappings":";;;;;;;;;AAO6B,MAAM,MAAM,GAAG;AAC5C,CAAC,4BAA4B,EAAE,qCAAqC;AACpE,CAAC,kBAAkB,EAAE,2BAA2B;AAChD,CAAC,eAAe,EAAE,yBAAyB;AAC3C,CAAC,uBAAuB,EAAE;AAC1B,CAAC;;AAED,MAAM,IAAI,GAAG;AACb,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;AACjC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;AAClC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE;AACpC,EAAE,EAAE,KAAK,EAAE,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UAAA,EAAY,gBAAiB,CAAA,KAAA,CAAM,UAAU;AAAA,KAC/C;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,eAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BACGC,eAAkB,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAG5E;AACA,aAAA,CAAc,cAAcA,eAAkB,CAAA,WAAA;;;;"}
1
+ {"version":3,"file":"DaysOfTheWeek-Dl31wkmU.js","sources":["../../hammer-react/dist/DaysOfTheWeek-Bm6-HVEb.js","../src/components/DaysOfTheWeek/DaysOfTheWeek.tsx"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { B as ButtonToggle } from './ButtonToggle-Bm4KRl3o.js';\nimport { F as Flex } from './Flex-CiK7uNUu.js';\nimport { forwardRef, useId, useMemo } from 'react';\nimport { L as Label, g as Tooltip } from './ProgressBar-CzXzPpIX.js';\nimport { H as Helper } from './Helper-h7k80qls.js';\n\nimport './DaysOfTheWeek.css';const styles = {\n\t\"days-of-the-week-container\": \"_days-of-the-week-container_13rkh_3\",\n\t\"days-of-the-week\": \"_days-of-the-week_13rkh_3\",\n\t\"button-toggle\": \"_button-toggle_13rkh_18\",\n\t\"button-toggle-wrapper\": \"_button-toggle-wrapper_13rkh_24\"\n};\n\nconst DAYS = [\n { short: \"Mo\", full: \"Monday\" },\n { short: \"Tu\", full: \"Tuesday\" },\n { short: \"We\", full: \"Wednesday\" },\n { short: \"Th\", full: \"Thursday\" },\n { short: \"Fr\", full: \"Friday\" },\n { short: \"Sa\", full: \"Saturday\" },\n { short: \"Su\", full: \"Sunday\" }\n];\nconst DaysOfTheWeek = forwardRef(\n (props, ref) => {\n const {\n selectedDays = [],\n onChange,\n disabled,\n firstDay = 7,\n hint,\n id: idProp,\n description,\n errorMessage,\n errorAriaLive,\n label,\n required,\n moreInfo,\n labelProps\n } = props;\n const autoId = useId();\n const id = idProp ?? autoId;\n const labelUid = useId();\n const helperUid = useId();\n const orderedDays = useMemo(() => {\n const firstDayIndex = firstDay - 1;\n return [...DAYS.slice(firstDayIndex), ...DAYS.slice(0, firstDayIndex)];\n }, [firstDay]);\n const handleDayToggle = (index) => {\n const dayNumber = (index + firstDay - 1) % 7 + 1;\n const newSelectedDays = selectedDays.includes(dayNumber) ? selectedDays.filter((d) => d !== dayNumber) : [...selectedDays, dayNumber];\n onChange?.(newSelectedDays);\n };\n const isDayDisabled = (dayNumber) => {\n if (typeof disabled === \"boolean\") {\n return disabled;\n }\n if (Array.isArray(disabled)) {\n return disabled.includes(dayNumber);\n }\n return false;\n };\n return /* @__PURE__ */ jsxs(\"div\", { className: styles[\"days-of-the-week-container\"], children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n moreInfo,\n required,\n id: labelUid,\n htmlFor: id,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsx(Flex, { ref, gap: 2, className: styles[\"days-of-the-week\"], id, children: orderedDays.map((day, index) => {\n const dayNumber = (index + firstDay - 1) % 7 + 1;\n return /* @__PURE__ */ jsxs(Tooltip, { placement: \"top\", children: [\n /* @__PURE__ */ jsx(Tooltip.Trigger, { className: styles[\"button-toggle-wrapper\"], children: /* @__PURE__ */ jsx(\n ButtonToggle,\n {\n checked: selectedDays.includes(dayNumber),\n onClick: () => handleDayToggle(index),\n disabled: isDayDisabled(dayNumber),\n className: styles[\"button-toggle\"],\n id: label ? labelUid : void 0,\n \"aria-describedby\": helperUid,\n children: day.short\n }\n ) }),\n /* @__PURE__ */ jsx(Tooltip.Content, { children: day.full })\n ] }, day.short);\n }) }),\n /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n description,\n errorMessage,\n errorAriaLive\n }\n )\n ] });\n }\n);\nDaysOfTheWeek.displayName = \"DaysOfTheWeek\";\n\nexport { DaysOfTheWeek as D };\n//# sourceMappingURL=DaysOfTheWeek-Bm6-HVEb.js.map\n","import {\n DaysOfTheWeekProps as CoreDaysOfTheWeekProps,\n DaysOfTheWeek as CoreDaysOfTheWeek,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\n/**\n * Props for the DaysOfTheWeek component\n * @property {number[]} [selectedDays] - The selected days (1-7, where 1 is Monday and 7 is Sunday)\n * @property {(selectedDays: number[]) => void} [onChange] - Callback fired when the selection changes\n * @property {boolean | number[]} [disabled] - Whether the component is disabled. Can be a boolean to disable all days, or an array of day numbers (1-7) to disable specific days\n * @property {number} [firstDay] - The first day of the week (1-7, where 1 is Monday and 7 is Sunday)\n * @default 1\n * @property {ReactElement | string} [hint] - Hint text or element to display above the component\n * @property {string} [id] - ID for the component\n * @property {ReactElement | string} [description] - Description text or element to display below the component\n * @property {ReactElement | string} [errorMessage] - Error message to display when there is an error\n * @property {AriaAttributes['aria-live']} [errorAriaLive] - aria-live for the error message\n * @default assertive\n * @property {LabelProps['children']} [label] - Label text or element\n * @property {boolean} [required] - Whether the field is required\n * @property {LabelProps['moreInfo']} [moreInfo] - Additional info to display in a tooltip next to the label\n * @property {Omit<LabelProps, 'children' | 'moreInfo' | 'required' | 'id' | 'htmlFor'>} [labelProps] - Additional props to pass to the Label component\n * @extends DataTrackingId\n */\nexport type DaysOfTheWeekProps = CoreDaysOfTheWeekProps & DataTrackingId;\n\n/**\n * DaysOfTheWeek component for selecting multiple days of the week.\n *\n * Features:\n * - Displays days of the week as toggleable buttons\n * - Supports custom first day of the week (Monday-Sunday)\n * - Individual day selection and deselection\n * - Optional label, hint, description, and error messaging\n * - Full accessibility support with ARIA attributes\n * - Tooltips showing full day names on hover\n * - Responsive design with flexible layout\n * - Support for disabling specific days or the entire component\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <DaysOfTheWeek\n * selectedDays={[2, 4, 6]}\n * onChange={(days) => console.log('Selected days:', days)}\n * label=\"Working Days\"\n * firstDay={1}\n * />\n */\nexport const DaysOfTheWeek = forwardRef(\n (props: DaysOfTheWeekProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n description: childrenToString(props.description),\n hint: childrenToString(props.hint),\n label: childrenToString(props.label),\n labelProps: childrenToString(props.labelProps),\n };\n\n const trackingId = useTrackingId({\n name: \"DaysOfTheWeek\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDaysOfTheWeek ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\nDaysOfTheWeek.displayName = CoreDaysOfTheWeek.displayName;\n"],"names":["DaysOfTheWeek","CoreDaysOfTheWeek"],"mappings":";;;;;;;;;AAO6B,MAAM,MAAM,GAAG;AAC5C,CAAC,4BAA4B,EAAE,qCAAqC;AACpE,CAAC,kBAAkB,EAAE,2BAA2B;AAChD,CAAC,eAAe,EAAE,yBAAyB;AAC3C,CAAC,uBAAuB,EAAE;AAC1B,CAAC;;AAED,MAAM,IAAI,GAAG;AACb,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;AACjC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;AAClC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE;AACpC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;AACnC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;AACjC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;AACnC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;AAC/B,CAAC;AACD,MAAMA,eAAa,GAAG,UAAU;AAChC,EAAE,CA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a,GAAG,KAAO,EAAA,CAAA;AAAA;AAG5E;AACA,aAAA,CAAc,cAAcA,eAAkB,CAAA,WAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { D as DaysOfTheWeek, D as default } from './DaysOfTheWeek-C4ZGriW7.js';
1
+ export { D as DaysOfTheWeek, D as default } from './DaysOfTheWeek-Dl31wkmU.js';
2
2
  //# sourceMappingURL=DaysOfTheWeek.js.map
@@ -3,7 +3,7 @@ import { forwardRef, useContext, useRef, useState, useId, useCallback, useEffect
3
3
  import { useTrackingId } from './useTrackingId.js';
4
4
  import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
5
5
  import { c as cx } from './index-tZvMCc77.js';
6
- import { i as DialogContext, j as useDialogTransitionStates, u as useKeyboardFocusables, k as useDialogScrollLock, g as getActiveElement, l as ToastProvider, m as ToasterPopover, n as ToasterContent } from './ProgressBar-CZhkKwaS-dlDRDjxo.js';
6
+ import { i as DialogContext, j as useDialogTransitionStates, u as useKeyboardFocusables, k as useDialogScrollLock, l as useOnClickOutside, g as getActiveElement, m as ToastProvider, n as ToasterPopover, o as ToasterContent } from './ProgressBar-CzXzPpIX-Clg1J71o.js';
7
7
  import { S as SvgClose } from './close-DZj38AEh.js';
8
8
  import { T as Text } from './Text-DCvcLCvf-DlmnnjTR.js';
9
9
  import { B as Button } from './Button-BaHFf1AT-BQy-PFB5.js';
@@ -142,6 +142,7 @@ const DialogElement$1 = forwardRef(
142
142
  onKeyDown,
143
143
  fullScreen = false,
144
144
  disableCloseOnEscape = false,
145
+ onClickOutside,
145
146
  disableCloseOnClickOutside = false,
146
147
  size,
147
148
  enableScrollChaining,
@@ -155,26 +156,21 @@ const DialogElement$1 = forwardRef(
155
156
  const contentRef = useRef(null);
156
157
  const [hasOpenPopover, setHasOpenPopover] = useState(false);
157
158
  const id = useId();
158
- const { state, isOpenOrOpening, beginClosing } = useDialogTransitionStates(
159
- elRef,
160
- open,
161
- {
162
- onOpenAnimationStart: useCallback(() => {
163
- onOpenAnimationStart?.();
164
- }, [onOpenAnimationStart]),
165
- onOpenAnimationComplete: useCallback(() => {
166
- onOpenAnimationComplete?.();
167
- onOpen?.();
168
- }, [onOpen, onOpenAnimationComplete]),
169
- onCloseAnimationStart: useCallback(() => {
170
- onCloseAnimationStart?.();
171
- }, [onCloseAnimationStart]),
172
- onCloseAnimationComplete: useCallback(() => {
173
- onCloseAnimationComplete?.();
174
- onClose?.();
175
- }, [onClose, onCloseAnimationComplete])
176
- }
177
- );
159
+ const { state, isOpenOrOpening } = useDialogTransitionStates(elRef, open, {
160
+ onOpenAnimationStart: useCallback(() => {
161
+ onOpenAnimationStart?.();
162
+ }, [onOpenAnimationStart]),
163
+ onOpenAnimationComplete: useCallback(() => {
164
+ onOpenAnimationComplete?.();
165
+ onOpen?.();
166
+ }, [onOpen, onOpenAnimationComplete]),
167
+ onCloseAnimationStart: useCallback(() => {
168
+ onCloseAnimationStart?.();
169
+ }, [onCloseAnimationStart]),
170
+ onCloseAnimationComplete: useCallback(() => {
171
+ onCloseAnimationComplete?.();
172
+ }, [onCloseAnimationComplete])
173
+ });
178
174
  const initial = useRef(true);
179
175
  useEffect(() => {
180
176
  if (initial.current) {
@@ -197,17 +193,17 @@ const DialogElement$1 = forwardRef(
197
193
  enableScrollChaining,
198
194
  elementRef: elRef
199
195
  });
200
- useEffect(() => {
201
- if (typeof document === "undefined" || disableCloseOnClickOutside) return;
202
- const onClickOutsideHandler = (e) => {
203
- if (hasOpenPopover) return;
204
- if (e.composedPath()[0] === elRef.current) {
205
- beginClosing();
206
- }
207
- };
208
- document.addEventListener("mousedown", onClickOutsideHandler);
209
- return () => document.removeEventListener("mousedown", onClickOutsideHandler);
210
- }, [disableCloseOnClickOutside, beginClosing, hasOpenPopover]);
196
+ useOnClickOutside({
197
+ onOutsidePress: (e) => {
198
+ if (!open) return;
199
+ onClickOutside?.(e);
200
+ },
201
+ targets: [contentRef.current],
202
+ onClose: () => {
203
+ if (disableCloseOnClickOutside || !open) return;
204
+ onClose?.();
205
+ }
206
+ });
211
207
  useEffect(() => {
212
208
  if (!isOpenOrOpening) return;
213
209
  if (!focusables) return;
@@ -228,7 +224,7 @@ const DialogElement$1 = forwardRef(
228
224
  e.preventDefault();
229
225
  if (disableCloseOnEscape) return;
230
226
  if (hasOpenPopover) return;
231
- beginClosing();
227
+ onClose?.();
232
228
  return;
233
229
  }
234
230
  if (e.code === "Tab") {
@@ -263,7 +259,7 @@ const DialogElement$1 = forwardRef(
263
259
  DialogContext.Provider,
264
260
  {
265
261
  value: {
266
- close: beginClosing,
262
+ close: () => onClose?.(),
267
263
  ref: elRef,
268
264
  hasOpenPopover,
269
265
  setHasOpenPopover
@@ -473,4 +469,4 @@ const Dialog = Object.assign(DialogElement, {
473
469
  });
474
470
 
475
471
  export { Dialog as D, DialogHeader as a, DialogFooter as b, DialogContent as c, DialogCancelButton as d };
476
- //# sourceMappingURL=Dialog-CBWaZO5U.js.map
472
+ //# sourceMappingURL=Dialog-CJZEBa5r.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog-CJZEBa5r.js","sources":["../../hammer-react/dist/Dialog-Dn5Vt5DA.js","../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import { jsx, jsxs } from 'react/jsx-runtime';\nimport { useContext, forwardRef, useRef, useState, useId, useCallback, useEffect } from 'react';\nimport cx from 'classnames';\nimport { D as DialogContext, r as useDialogTransitionStates, v as useDialogScrollLock, q as getActiveElement, w as ToastProvider, x as ToasterPopover, y as ToasterContent } from './ProgressBar-CzXzPpIX.js';\nimport Close from '@servicetitan/hammer-icon/mdi/round/close.svg';\nimport { T as Text } from './Text-DCvcLCvf.js';\nimport { B as Button } from './Button-BaHFf1AT.js';\nimport { u as useKeyboardFocusables } from './useKeyboardFocusables-CwVMAe5C.js';\nimport { u as useOnClickOutside } from './useOnClickOutside-DP89Gbem.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\n\nimport './Dialog.css';const dialog = \"_dialog_17u1d_2\";\nconst container = \"_container_17u1d_20\";\nconst content = \"_content_17u1d_33\";\nconst header = \"_header_17u1d_40\";\nconst footer = \"_footer_17u1d_60\";\nconst closing = \"_closing_17u1d_76\";\nconst large = \"_large_17u1d_82\";\nconst fullscreen = \"_fullscreen_17u1d_82\";\nconst sticky = \"_sticky_17u1d_102\";\nconst styles = {\n\tdialog: dialog,\n\tcontainer: container,\n\tcontent: content,\n\theader: header,\n\t\"close-container\": \"_close-container_17u1d_53\",\n\tfooter: footer,\n\tclosing: closing,\n\tlarge: large,\n\tfullscreen: fullscreen,\n\tsticky: sticky,\n\t\"close-button\": \"_close-button_17u1d_108\"\n};\n\nfunction useDialogContext() {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error(\n \"useDialogContext must be used within a DialogContextProvider\"\n );\n }\n return context;\n}\n\nconst DialogCancelButton = forwardRef((props, ref) => {\n const { onClick, ...rest } = props;\n const { close } = useDialogContext();\n const onClickHandler = (e) => {\n onClick?.(e);\n close();\n };\n return /* @__PURE__ */ jsx(\n Button,\n {\n \"aria-label\": \"Close dialog\",\n \"data-anv\": \"dialog-cancel-button\",\n onClick: onClickHandler,\n ref,\n ...rest\n }\n );\n});\nDialogCancelButton.displayName = \"DialogCancelButton\";\n\nconst DialogHeader = forwardRef(\n (props, ref) => {\n const { children, className, ...rest } = props;\n const headerClassNames = cx(className, styles[\"header\"]);\n return /* @__PURE__ */ jsxs(\n \"header\",\n {\n className: headerClassNames,\n \"data-anv\": \"dialog-header\",\n ref,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(Text, { variant: \"headline\", el: \"h1\", children }),\n /* @__PURE__ */ jsx(\"span\", { className: styles[\"close-container\"], children: /* @__PURE__ */ jsx(\n DialogCancelButton,\n {\n className: styles[\"close-button\"],\n size: \"small\",\n appearance: \"ghost\",\n \"aria-label\": \"Close dialog\",\n icon: Close\n }\n ) })\n ]\n }\n );\n }\n);\nDialogHeader.displayName = \"DialogHeader\";\n\nconst DialogFooter = forwardRef(\n (props, ref) => {\n const { children, className, sticky = false, ...rest } = props;\n const footerClassNames = cx(styles[\"footer\"], className, {\n [styles[\"sticky\"]]: sticky\n });\n return /* @__PURE__ */ jsx(\n \"footer\",\n {\n className: footerClassNames,\n \"data-anv\": \"dialog-footer\",\n ref,\n ...rest,\n children\n }\n );\n }\n);\nDialogFooter.displayName = \"DialogFooter\";\n\nconst DialogContent = forwardRef(\n (props, ref) => {\n const { children, className, ...rest } = props;\n const contentClassNames = cx(styles[\"content\"], className);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n className: contentClassNames,\n \"data-anv\": \"dialog-content\",\n ref,\n ...rest,\n children\n }\n );\n }\n);\nDialogContent.displayName = \"DialogContent\";\n\nconst DialogElement = forwardRef(\n (props, ref) => {\n const {\n className,\n open = false,\n children,\n onOpen,\n onOpenChange,\n onClose,\n onKeyDown,\n fullScreen = false,\n disableCloseOnEscape = false,\n onClickOutside,\n disableCloseOnClickOutside = false,\n size,\n enableScrollChaining,\n onOpenAnimationStart,\n onOpenAnimationComplete,\n onCloseAnimationStart,\n onCloseAnimationComplete,\n ...rest\n } = props;\n const elRef = useRef(null);\n const contentRef = useRef(null);\n const [hasOpenPopover, setHasOpenPopover] = useState(false);\n const id = useId();\n const { state, isOpenOrOpening } = useDialogTransitionStates(elRef, open, {\n onOpenAnimationStart: useCallback(() => {\n onOpenAnimationStart?.();\n }, [onOpenAnimationStart]),\n onOpenAnimationComplete: useCallback(() => {\n onOpenAnimationComplete?.();\n onOpen?.();\n }, [onOpen, onOpenAnimationComplete]),\n onCloseAnimationStart: useCallback(() => {\n onCloseAnimationStart?.();\n }, [onCloseAnimationStart]),\n onCloseAnimationComplete: useCallback(() => {\n onCloseAnimationComplete?.();\n }, [onCloseAnimationComplete])\n });\n const initial = useRef(true);\n useEffect(() => {\n if (initial.current) {\n initial.current = false;\n } else {\n onOpenChange?.(isOpenOrOpening);\n }\n }, [id, onOpenChange, isOpenOrOpening]);\n const classNames = cx([styles[\"dialog\"]], className, {\n [styles[\"closing\"]]: state === \"closing\",\n [styles[\"fullscreen\"]]: fullScreen,\n [styles[\"large\"]]: size === \"large\"\n });\n const { focusables } = useKeyboardFocusables(contentRef, {\n observeChange: true\n });\n useDialogScrollLock({\n open: isOpenOrOpening,\n id,\n enableScrollChaining,\n elementRef: elRef\n });\n useOnClickOutside({\n onOutsidePress: (e) => {\n if (!open) return;\n onClickOutside?.(e);\n },\n targets: [contentRef.current],\n onClose: () => {\n if (disableCloseOnClickOutside || !open) return;\n onClose?.();\n }\n });\n useEffect(() => {\n if (!isOpenOrOpening) return;\n if (!focusables) return;\n const activeElement = getActiveElement(document);\n if (!activeElement) return;\n if (activeElement.dataset.anv !== \"dialog-header-close-button\" && focusables.includes(activeElement)) {\n return;\n }\n if (focusables[0]?.dataset.anv === \"dialog-header-close-button\" && focusables[1]) {\n focusables[1].focus();\n } else {\n focusables[0]?.focus();\n }\n }, [isOpenOrOpening, focusables]);\n const onKeyDownHandler = (e) => {\n onKeyDown?.(e);\n if (e.code === \"Escape\") {\n e.preventDefault();\n if (disableCloseOnEscape) return;\n if (hasOpenPopover) return;\n onClose?.();\n return;\n }\n if (e.code === \"Tab\") {\n if (e.shiftKey && e.target === focusables?.[0]) {\n e.preventDefault();\n focusables[focusables.length - 1]?.focus();\n return;\n }\n if (e.target === focusables?.[focusables.length - 1] && !e.shiftKey) {\n e.preventDefault();\n focusables[0].focus();\n return;\n }\n }\n };\n return (\n // dialog element does seem to be interactive on MDN guideline\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions\n /* @__PURE__ */ jsxs(\n \"dialog\",\n {\n className: classNames,\n \"data-anv\": \"dialog\",\n \"data-anv-scroll-chaining\": enableScrollChaining,\n \"data-anv-transition-state\": state,\n ref: useMergeRefs([ref, elRef]),\n onKeyDown: onKeyDownHandler,\n ...rest,\n children: [\n /* @__PURE__ */ jsx(ToastProvider, { isDialogToaster: open, children: /* @__PURE__ */ jsx(ToasterPopover, { children: /* @__PURE__ */ jsx(ToasterContent, { id: \"dialog-toaster\" }) }) }),\n /* @__PURE__ */ jsx(\n DialogContext.Provider,\n {\n value: {\n close: () => onClose?.(),\n ref: elRef,\n hasOpenPopover,\n setHasOpenPopover\n },\n children: /* @__PURE__ */ jsx(\n \"section\",\n {\n ref: contentRef,\n className: styles[\"container\"],\n \"data-open\": open,\n children\n }\n )\n }\n )\n ]\n }\n )\n );\n }\n);\nDialogElement.displayName = \"Dialog\";\nconst Dialog = Object.assign(DialogElement, {\n /**\n * DialogHeader component for the header section of a Dialog.\n *\n * Features:\n * - Displays dialog title with headline typography\n * - Includes close button with proper accessibility\n * - Sticky positioning for long content\n * - Consistent spacing and styling\n * - Automatic focus management\n *\n * @example\n * <Dialog.Header>Confirm Delete</Dialog.Header>\n */\n Header: DialogHeader,\n /**\n * DialogFooter component for the footer section of a Dialog.\n *\n * Features:\n * - Container for dialog action buttons\n * - Optional sticky positioning for long content\n * - Consistent spacing and alignment\n * - Right-aligned button layout by default\n * - Flexible content area for custom layouts\n *\n * @example\n * <Dialog.Footer sticky>\n * <Dialog.CancelButton>Cancel</Dialog.CancelButton>\n * <Button appearance=\"primary\">Save</Button>\n * </Dialog.Footer>\n */\n Footer: DialogFooter,\n /**\n * DialogContent component for the main content area of a Dialog.\n *\n * Features:\n * - Main content container for dialog body\n * - Flexible height with overflow handling\n * - Consistent padding and spacing\n * - Responsive design\n * - Proper content scrolling for long content\n *\n * @example\n * <Dialog.Content>\n * <p>This is the main content of the dialog.</p>\n * </Dialog.Content>\n */\n Content: DialogContent,\n /**\n * DialogCancelButton component for cancel/close actions in a Dialog.\n *\n * Features:\n * - Button that automatically closes the dialog when clicked\n * - Extends all Button component props and functionality\n * - Proper accessibility with close dialog semantics\n * - Automatic focus management\n * - Consistent styling with other dialog elements\n *\n * @example\n * <Dialog.CancelButton appearance=\"ghost\">Cancel</Dialog.CancelButton>\n */\n CancelButton: DialogCancelButton\n});\n\nexport { Dialog as D, DialogCancelButton as a, DialogContent as b, DialogFooter as c, DialogHeader as d };\n//# sourceMappingURL=Dialog-Dn5Vt5DA.js.map\n","import {\n Dialog as CoreDialog,\n DialogHeader as CoreDialogHeader,\n DialogFooter as CoreDialogFooter,\n DialogContent as CoreDialogContent,\n DialogCancelButton as CoreDialogCancelButton,\n DialogProps as CoreDialogProps,\n DialogHeaderProps as CoreDialogHeaderProps,\n DialogFooterProps as CoreDialogFooterProps,\n DialogContentProps as CoreDialogContentProps,\n DialogCancelButtonProps as CoreDialogCancelButtonProps,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\n/**\n * Props for the Dialog component\n * @property {boolean} [fullScreen] - Whether the dialog should be displayed in fullscreen mode\n * @default false\n * @property {\"medium\" | \"large\"} [size] - The size of the dialog\n * @default medium\n * @property {boolean} [open] - Whether the dialog is open\n * @default false\n * @property {() => void} [onClose] - Callback fired when the dialog is closed\n * @property {() => void} [onOpen] - Callback fired when the dialog opens (deprecated)\n * @property {(open: boolean) => void} [onOpenChange] - Callback fired when the dialog open state changes (deprecated)\n * @property {boolean} [enableScrollChaining] - Enables scroll chaining\n * @property {boolean} [disableCloseOnEscape] - Whether to disable closing on escape key\n * @property {boolean} [disableCloseOnClickOutside] - Whether to disable closing on click outside\n * @property {() => void} [onOpenAnimationStart] - Callback fired when open animation starts\n * @property {() => void} [onOpenAnimationComplete] - Callback fired when open animation completes\n * @property {() => void} [onCloseAnimationStart] - Callback fired when close animation starts\n * @property {() => void} [onCloseAnimationComplete] - Callback fired when close animation completes\n */\nexport type DialogProps = CoreDialogProps;\n\n/**\n * Props for the DialogHeader component\n * @extends DataTrackingId\n */\nexport type DialogHeaderProps = CoreDialogHeaderProps & DataTrackingId;\n\n/**\n * Props for the DialogFooter component\n * @property {boolean} [sticky] - Whether the footer should be sticky\n * @default false\n */\nexport type DialogFooterProps = CoreDialogFooterProps;\n\n/**\n * Props for the DialogContent component\n */\nexport type DialogContentProps = CoreDialogContentProps;\n\n/**\n * Props for the DialogCancelButton component\n * @extends DataTrackingId\n */\nexport type DialogCancelButtonProps = CoreDialogCancelButtonProps &\n DataTrackingId;\n\nconst DialogElement = forwardRef(\n (props: DialogProps, ref: Ref<HTMLDialogElement>) => {\n return <CoreDialog ref={ref} {...props} />;\n },\n);\nDialogElement.displayName = CoreDialog.displayName;\n\n/**\n * DialogHeader component for the header section of a Dialog.\n *\n * Features:\n * - Displays dialog title with headline typography\n * - Includes close button with proper accessibility\n * - Sticky positioning for long content\n * - Consistent spacing and styling\n * - Automatic focus management\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Dialog.Header>Confirm Delete</Dialog.Header>\n */\nexport const DialogHeader = forwardRef(\n (props: DialogHeaderProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n children: childrenToString(props.children),\n };\n\n const trackingId = useTrackingId({\n name: \"Dialog\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDialogHeader ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\n\nDialogHeader.displayName = CoreDialogHeader.displayName;\n\n/**\n * DialogFooter component for the footer section of a Dialog.\n *\n * Features:\n * - Container for dialog action buttons\n * - Optional sticky positioning for long content\n * - Consistent spacing and alignment\n * - Right-aligned button layout by default\n * - Flexible content area for custom layouts\n *\n * @example\n * <Dialog.Footer sticky>\n * <Dialog.CancelButton>Cancel</Dialog.CancelButton>\n * <Button appearance=\"primary\">Save</Button>\n * </Dialog.Footer>\n */\nexport const DialogFooter = forwardRef(\n (props: DialogFooterProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDialogFooter ref={ref} {...props} />;\n },\n);\n\nDialogFooter.displayName = CoreDialogFooter.displayName;\n\n/**\n * DialogContent component for the main content area of a Dialog.\n *\n * Features:\n * - Main content container for dialog body\n * - Flexible height with overflow handling\n * - Consistent padding and spacing\n * - Responsive design\n * - Proper content scrolling for long content\n *\n * @example\n * <Dialog.Content>\n * <p>This is the main content of the dialog.</p>\n * </Dialog.Content>\n */\nexport const DialogContent = forwardRef(\n (props: DialogContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDialogContent ref={ref} {...props} />;\n },\n);\n\nDialogContent.displayName = CoreDialogContent.displayName;\n\n/**\n * DialogCancelButton component for cancel/close actions in a Dialog.\n *\n * Features:\n * - Button that automatically closes the dialog when clicked\n * - Extends all Button component props and functionality\n * - Proper accessibility with close dialog semantics\n * - Automatic focus management\n * - Consistent styling with other dialog elements\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Dialog.CancelButton appearance=\"ghost\">Cancel</Dialog.CancelButton>\n */\nexport const DialogCancelButton = forwardRef(\n (props: DialogCancelButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n title: props.title,\n appearance: props.appearance,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"DialogCancelButton\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDialogCancelButton\n ref={ref}\n data-tracking-id={trackingId}\n {...props}\n />\n );\n },\n);\n\nDialogCancelButton.displayName = CoreDialogCancelButton.displayName;\n\n/**\n * Dialog component for creating modal dialogs and overlays.\n *\n * Features:\n * - Modal dialog with backdrop overlay\n * - Controlled and uncontrolled open state\n * - Smooth open/close animations\n * - Keyboard navigation and focus management\n * - Escape key and click outside to close\n * - Multiple size variants (medium, large, fullscreen)\n * - Scroll chaining support\n * - Toast integration for notifications\n * - Compound component pattern with Header, Footer, Content, and CancelButton sub-components\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Dialog open={isOpen} onClose={() => setIsOpen(false)}>\n * <Dialog.Header>Confirm Action</Dialog.Header>\n * <Dialog.Content>Are you sure you want to proceed?</Dialog.Content>\n * <Dialog.Footer>\n * <Dialog.CancelButton>Cancel</Dialog.CancelButton>\n * <Button appearance=\"primary\">Confirm</Button>\n * </Dialog.Footer>\n * </Dialog>\n */\nexport const Dialog = Object.assign(DialogElement, {\n /**\n * DialogHeader component for the header section of a Dialog.\n *\n * Features:\n * - Displays dialog title with headline typography\n * - Includes close button with proper accessibility\n * - Sticky positioning for long content\n * - Consistent spacing and styling\n * - Automatic focus management\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Dialog.Header>Confirm Delete</Dialog.Header>\n */\n Header: DialogHeader,\n /**\n * DialogFooter component for the footer section of a Dialog.\n *\n * Features:\n * - Container for dialog action buttons\n * - Optional sticky positioning for long content\n * - Consistent spacing and alignment\n * - Right-aligned button layout by default\n * - Flexible content area for custom layouts\n *\n * @example\n * <Dialog.Footer sticky>\n * <Dialog.CancelButton>Cancel</Dialog.CancelButton>\n * <Button appearance=\"primary\">Save</Button>\n * </Dialog.Footer>\n */\n Footer: DialogFooter,\n /**\n * DialogContent component for the main content area of a Dialog.\n *\n * Features:\n * - Main content container for dialog body\n * - Flexible height with overflow handling\n * - Consistent padding and spacing\n * - Responsive design\n * - Proper content scrolling for long content\n *\n * @example\n * <Dialog.Content>\n * <p>This is the main content of the dialog.</p>\n * </Dialog.Content>\n */\n Content: DialogContent,\n /**\n * DialogCancelButton component for cancel/close actions in a Dialog.\n *\n * Features:\n * - Button that automatically closes the dialog when clicked\n * - Extends all Button component props and functionality\n * - Proper accessibility with close dialog semantics\n * - Automatic focus management\n * - Consistent styling with other dialog elements\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Dialog.CancelButton appearance=\"ghost\">Cancel</Dialog.CancelButton>\n */\n CancelButton: DialogCancelButton,\n});\n"],"names":["DialogCancelButton","DialogHeader","Close","DialogFooter","DialogContent","DialogElement","Dialog","CoreDialog","CoreDialogHeader","CoreDialogFooter","CoreDialogContent","CoreDialogCancelButton"],"mappings":";;;;;;;;;;;AAWsB,MAAM,MAAM,GAAG,iBAAiB;AACtD,MAAM,SAAS,GAAG,qBAAqB;AACvC,MAAM,OAAO,GAAG,mBAAmB;AACnC,MAAM,MAAM,GAAG,kBAAkB;AACjC,MAAM,MAAM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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeT,YAAc,EAAA;AAChB,CAAC;;;;"}
package/dist/Dialog.js CHANGED
@@ -1,2 +1,2 @@
1
- export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader, D as default } from './Dialog-CBWaZO5U.js';
1
+ export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader, D as default } from './Dialog-CJZEBa5r.js';
2
2
  //# sourceMappingURL=Dialog.js.map
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { useTrackingId } from './useTrackingId.js';
4
4
  import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
5
- import { D as DrawerCancelButton$1, a as DrawerFooter$1, b as DrawerHeader$1, c as DrawerContent$1, d as Drawer$1 } from './ProgressBar-CZhkKwaS-dlDRDjxo.js';
5
+ import { D as DrawerCancelButton$1, a as DrawerFooter$1, b as DrawerHeader$1, c as DrawerContent$1, d as Drawer$1 } from './ProgressBar-CzXzPpIX-Clg1J71o.js';
6
6
 
7
7
  const DrawerElement = forwardRef(
8
8
  (props, ref) => {
@@ -139,4 +139,4 @@ const Drawer = Object.assign(DrawerElement, {
139
139
  });
140
140
 
141
141
  export { Drawer as D, DrawerCancelButton as a, DrawerFooter as b, DrawerHeader as c, DrawerContent as d };
142
- //# sourceMappingURL=Drawer-Be0tyTMM.js.map
142
+ //# sourceMappingURL=Drawer-Cj3nJc4k.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer-Be0tyTMM.js","sources":["../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import {\n DrawerProps as CoreDrawerProps,\n Drawer as CoreDrawer,\n DrawerCancelButtonProps as CoreDrawerCancelButtonProps,\n DrawerCancelButton as CoreDrawerCancelButton,\n DrawerFooterProps as CoreDrawerFooterProps,\n DrawerFooter as CoreDrawerFooter,\n DrawerHeaderProps as CoreDrawerHeaderProps,\n DrawerHeader as CoreDrawerHeader,\n DrawerContentProps as CoreDrawerContentProps,\n DrawerContent as CoreDrawerContent,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\n/**\n * Props for the Drawer component\n * @property {\"medium\" | \"large\"} [size] - The size of the drawer\n * @property {boolean} [open] - Controls whether the drawer is open or closed\n * @property {() => void} [onClose] - Callback function called after the drawer is animated closed\n * @property {() => void} [onOpen] - Callback function called when the drawer opens (deprecated)\n * @property {(open: boolean) => void} [onOpenChange] - Callback fired when the drawer open state changes (deprecated)\n * @property {boolean} [enableScrollChaining] - Enables scroll chaining behavior\n * @property {boolean} [disableCloseOnEscape] - Whether to disable closing on escape key\n * @property {boolean} [disableCloseOnClickOutside] - Whether to disable closing on click outside\n * @property {() => void} [onOpenAnimationStart] - Callback fired when open animation starts\n * @property {() => void} [onOpenAnimationComplete] - Callback fired when open animation completes\n * @property {() => void} [onCloseAnimationStart] - Callback fired when close animation starts\n * @property {() => void} [onCloseAnimationComplete] - Callback fired when close animation completes\n */\nexport type DrawerProps = CoreDrawerProps;\n\n/**\n * Props for the DrawerCancelButton component\n * @property {string} [appearance] - The visual appearance of the button\n * @property {string} [size] - The size of the button\n * @property {string} [type] - The type of the button\n */\nexport type DrawerCancelButtonProps = CoreDrawerCancelButtonProps &\n DataTrackingId;\n\n/**\n * Props for the DrawerFooter component\n * @property {boolean} [sticky] - When true, the footer will stick to the bottom of the drawer\n */\nexport type DrawerFooterProps = CoreDrawerFooterProps;\n\n/**\n * Props for the DrawerHeader component\n * @property {ReactNode} children - The content to be displayed in the header\n */\nexport type DrawerHeaderProps = CoreDrawerHeaderProps & DataTrackingId;\n\n/**\n * Props for the DrawerContent component\n */\nexport type DrawerContentProps = CoreDrawerContentProps;\n\nconst DrawerElement = forwardRef(\n (props: DrawerProps, ref: Ref<HTMLDialogElement>) => {\n return <CoreDrawer ref={ref} {...props} />;\n },\n);\nDrawerElement.displayName = CoreDrawer.displayName;\n\n/**\n * A button component that automatically closes the drawer when clicked.\n *\n * Features:\n * - Automatically closes the drawer when clicked\n * - Extends Button component functionality\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard button props\n * - Proper focus management\n * - Can be used anywhere within the drawer context\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.CancelButton appearance=\"ghost\" size=\"small\">\n * Cancel\n * </Drawer.CancelButton>\n */\nexport const DrawerCancelButton = forwardRef(\n (props: DrawerCancelButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"DrawerCancelButton\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDrawerCancelButton\n ref={ref}\n data-tracking-id={trackingId}\n {...props}\n />\n );\n },\n);\nDrawerCancelButton.displayName = CoreDrawerCancelButton.displayName;\n\n/**\n * Footer component for the drawer that displays action buttons and controls.\n *\n * Features:\n * - Flexible layout for action buttons and controls\n * - Optional sticky positioning at the bottom\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard footer element props\n * - Responsive design that adapts to content\n *\n * @example\n * <Drawer.Footer sticky>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n */\nexport const DrawerFooter = forwardRef(\n (props: DrawerFooterProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerFooter ref={ref} {...props} />;\n },\n);\nDrawerFooter.displayName = CoreDrawerFooter.displayName;\n\n/**\n * Header component for the drawer that displays a title and close button.\n *\n * Features:\n * - Displays the drawer title as a headline\n * - Includes an accessible close button\n * - Sticky positioning at the top of the drawer\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Automatic close functionality\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.Header>Settings</Drawer.Header>\n */\nexport const DrawerHeader = forwardRef(\n (props: DrawerHeaderProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n children: childrenToString(props.children),\n };\n\n const trackingId = useTrackingId({\n name: \"DrawerHeader\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDrawerHeader ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\nDrawerHeader.displayName = CoreDrawerHeader.displayName;\n\n/**\n * Content container for the drawer that holds the main content area.\n *\n * Features:\n * - Flexible content area with proper spacing\n * - Scrollable content when needed\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard div element props\n * - Responsive design that adapts to content\n * - Proper focus management\n *\n * @example\n * <Drawer.Content>\n * <p>This is the main content of the drawer.</p>\n * <p>It can contain any type of content.</p>\n * </Drawer.Content>\n */\nexport const DrawerContent = forwardRef(\n (props: DrawerContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerContent ref={ref} {...props} />;\n },\n);\nDrawerContent.displayName = CoreDrawerContent.displayName;\n\n/**\n * A slide-out drawer component that provides a modal-like experience from the side of the screen.\n *\n * Features:\n * - Slide-in animation from the side of the screen\n * - Keyboard navigation with focus trapping\n * - Escape key and click outside to close\n * - Configurable size variants (medium, large)\n * - Built-in toast support for notifications\n * - Automatic scroll locking when open\n * - Accessible with proper ARIA attributes\n * - Compound component structure with Header, Footer, Content, and CancelButton\n * - Transition state callbacks for animation control\n * - Optional scroll chaining support\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer open={isOpen} onClose={handleClose} size=\"medium\">\n * <Drawer.Header>Settings</Drawer.Header>\n * <Drawer.Content>Drawer content goes here</Drawer.Content>\n * <Drawer.Footer>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n * </Drawer>\n */\nexport const Drawer = Object.assign(DrawerElement, {\n /**\n * Header component for the drawer that displays a title and close button.\n *\n * Features:\n * - Displays the drawer title as a headline\n * - Includes an accessible close button\n * - Sticky positioning at the top of the drawer\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Automatic close functionality\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.Header>Settings</Drawer.Header>\n */\n Header: DrawerHeader,\n /**\n * Footer component for the drawer that displays action buttons and controls.\n *\n * Features:\n * - Flexible layout for action buttons and controls\n * - Optional sticky positioning at the bottom\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard footer element props\n * - Responsive design that adapts to content\n *\n * @example\n * <Drawer.Footer sticky>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n */\n Footer: DrawerFooter,\n /**\n * Content container for the drawer that holds the main content area.\n *\n * Features:\n * - Flexible content area with proper spacing\n * - Scrollable content when needed\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard div element props\n * - Responsive design that adapts to content\n * - Proper focus management\n *\n * @example\n * <Drawer.Content>\n * <p>This is the main content of the drawer.</p>\n * <p>It can contain any type of content.</p>\n * </Drawer.Content>\n */\n Content: DrawerContent,\n /**\n * A button component that automatically closes the drawer when clicked.\n *\n * Features:\n * - Automatically closes the drawer when clicked\n * - Extends Button component functionality\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard button props\n * - Proper focus management\n * - Can be used anywhere within the drawer context\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.CancelButton appearance=\"ghost\" size=\"small\">\n * Cancel\n * </Drawer.CancelButton>\n */\n CancelButton: DrawerCancelButton,\n});\n"],"names":["CoreDrawer","CoreD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;;;;"}
1
+ {"version":3,"file":"Drawer-Cj3nJc4k.js","sources":["../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import {\n DrawerProps as CoreDrawerProps,\n Drawer as CoreDrawer,\n DrawerCancelButtonProps as CoreDrawerCancelButtonProps,\n DrawerCancelButton as CoreDrawerCancelButton,\n DrawerFooterProps as CoreDrawerFooterProps,\n DrawerFooter as CoreDrawerFooter,\n DrawerHeaderProps as CoreDrawerHeaderProps,\n DrawerHeader as CoreDrawerHeader,\n DrawerContentProps as CoreDrawerContentProps,\n DrawerContent as CoreDrawerContent,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\n/**\n * Props for the Drawer component\n * @property {\"medium\" | \"large\"} [size] - The size of the drawer\n * @property {boolean} [open] - Controls whether the drawer is open or closed\n * @property {() => void} [onClose] - Callback function called after the drawer is animated closed\n * @property {() => void} [onOpen] - Callback function called when the drawer opens (deprecated)\n * @property {(open: boolean) => void} [onOpenChange] - Callback fired when the drawer open state changes (deprecated)\n * @property {boolean} [enableScrollChaining] - Enables scroll chaining behavior\n * @property {boolean} [disableCloseOnEscape] - Whether to disable closing on escape key\n * @property {boolean} [disableCloseOnClickOutside] - Whether to disable closing on click outside\n * @property {() => void} [onOpenAnimationStart] - Callback fired when open animation starts\n * @property {() => void} [onOpenAnimationComplete] - Callback fired when open animation completes\n * @property {() => void} [onCloseAnimationStart] - Callback fired when close animation starts\n * @property {() => void} [onCloseAnimationComplete] - Callback fired when close animation completes\n */\nexport type DrawerProps = CoreDrawerProps;\n\n/**\n * Props for the DrawerCancelButton component\n * @property {string} [appearance] - The visual appearance of the button\n * @property {string} [size] - The size of the button\n * @property {string} [type] - The type of the button\n */\nexport type DrawerCancelButtonProps = CoreDrawerCancelButtonProps &\n DataTrackingId;\n\n/**\n * Props for the DrawerFooter component\n * @property {boolean} [sticky] - When true, the footer will stick to the bottom of the drawer\n */\nexport type DrawerFooterProps = CoreDrawerFooterProps;\n\n/**\n * Props for the DrawerHeader component\n * @property {ReactNode} children - The content to be displayed in the header\n */\nexport type DrawerHeaderProps = CoreDrawerHeaderProps & DataTrackingId;\n\n/**\n * Props for the DrawerContent component\n */\nexport type DrawerContentProps = CoreDrawerContentProps;\n\nconst DrawerElement = forwardRef(\n (props: DrawerProps, ref: Ref<HTMLDialogElement>) => {\n return <CoreDrawer ref={ref} {...props} />;\n },\n);\nDrawerElement.displayName = CoreDrawer.displayName;\n\n/**\n * A button component that automatically closes the drawer when clicked.\n *\n * Features:\n * - Automatically closes the drawer when clicked\n * - Extends Button component functionality\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard button props\n * - Proper focus management\n * - Can be used anywhere within the drawer context\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.CancelButton appearance=\"ghost\" size=\"small\">\n * Cancel\n * </Drawer.CancelButton>\n */\nexport const DrawerCancelButton = forwardRef(\n (props: DrawerCancelButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"DrawerCancelButton\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDrawerCancelButton\n ref={ref}\n data-tracking-id={trackingId}\n {...props}\n />\n );\n },\n);\nDrawerCancelButton.displayName = CoreDrawerCancelButton.displayName;\n\n/**\n * Footer component for the drawer that displays action buttons and controls.\n *\n * Features:\n * - Flexible layout for action buttons and controls\n * - Optional sticky positioning at the bottom\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard footer element props\n * - Responsive design that adapts to content\n *\n * @example\n * <Drawer.Footer sticky>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n */\nexport const DrawerFooter = forwardRef(\n (props: DrawerFooterProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerFooter ref={ref} {...props} />;\n },\n);\nDrawerFooter.displayName = CoreDrawerFooter.displayName;\n\n/**\n * Header component for the drawer that displays a title and close button.\n *\n * Features:\n * - Displays the drawer title as a headline\n * - Includes an accessible close button\n * - Sticky positioning at the top of the drawer\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Automatic close functionality\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.Header>Settings</Drawer.Header>\n */\nexport const DrawerHeader = forwardRef(\n (props: DrawerHeaderProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n children: childrenToString(props.children),\n };\n\n const trackingId = useTrackingId({\n name: \"DrawerHeader\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreDrawerHeader ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\nDrawerHeader.displayName = CoreDrawerHeader.displayName;\n\n/**\n * Content container for the drawer that holds the main content area.\n *\n * Features:\n * - Flexible content area with proper spacing\n * - Scrollable content when needed\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard div element props\n * - Responsive design that adapts to content\n * - Proper focus management\n *\n * @example\n * <Drawer.Content>\n * <p>This is the main content of the drawer.</p>\n * <p>It can contain any type of content.</p>\n * </Drawer.Content>\n */\nexport const DrawerContent = forwardRef(\n (props: DrawerContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerContent ref={ref} {...props} />;\n },\n);\nDrawerContent.displayName = CoreDrawerContent.displayName;\n\n/**\n * A slide-out drawer component that provides a modal-like experience from the side of the screen.\n *\n * Features:\n * - Slide-in animation from the side of the screen\n * - Keyboard navigation with focus trapping\n * - Escape key and click outside to close\n * - Configurable size variants (medium, large)\n * - Built-in toast support for notifications\n * - Automatic scroll locking when open\n * - Accessible with proper ARIA attributes\n * - Compound component structure with Header, Footer, Content, and CancelButton\n * - Transition state callbacks for animation control\n * - Optional scroll chaining support\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer open={isOpen} onClose={handleClose} size=\"medium\">\n * <Drawer.Header>Settings</Drawer.Header>\n * <Drawer.Content>Drawer content goes here</Drawer.Content>\n * <Drawer.Footer>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n * </Drawer>\n */\nexport const Drawer = Object.assign(DrawerElement, {\n /**\n * Header component for the drawer that displays a title and close button.\n *\n * Features:\n * - Displays the drawer title as a headline\n * - Includes an accessible close button\n * - Sticky positioning at the top of the drawer\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Automatic close functionality\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.Header>Settings</Drawer.Header>\n */\n Header: DrawerHeader,\n /**\n * Footer component for the drawer that displays action buttons and controls.\n *\n * Features:\n * - Flexible layout for action buttons and controls\n * - Optional sticky positioning at the bottom\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard footer element props\n * - Responsive design that adapts to content\n *\n * @example\n * <Drawer.Footer sticky>\n * <Button onClick={handleSave}>Save</Button>\n * <Drawer.CancelButton>Cancel</Drawer.CancelButton>\n * </Drawer.Footer>\n */\n Footer: DrawerFooter,\n /**\n * Content container for the drawer that holds the main content area.\n *\n * Features:\n * - Flexible content area with proper spacing\n * - Scrollable content when needed\n * - Proper semantic HTML structure\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard div element props\n * - Responsive design that adapts to content\n * - Proper focus management\n *\n * @example\n * <Drawer.Content>\n * <p>This is the main content of the drawer.</p>\n * <p>It can contain any type of content.</p>\n * </Drawer.Content>\n */\n Content: DrawerContent,\n /**\n * A button component that automatically closes the drawer when clicked.\n *\n * Features:\n * - Automatically closes the drawer when clicked\n * - Extends Button component functionality\n * - Accessible with proper ARIA attributes\n * - Consistent styling with the design system\n * - Supports all standard button props\n * - Proper focus management\n * - Can be used anywhere within the drawer context\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <Drawer.CancelButton appearance=\"ghost\" size=\"small\">\n * Cancel\n * </Drawer.CancelButton>\n */\n CancelButton: DrawerCancelButton,\n});\n"],"names":["CoreDrawer","CoreDrawerCancelButton","CoreDrawerFooter","CoreDrawerHeader","CoreDrawerContent"],"mappings":";;;;;;AA4DA,MAAM,aAAgB,GAAA,UAAA;AAAA,EACpB,CAAC,OAAoB,GAAgC,KAAA;AACnD,IAAA,uBAAQ,GAAA,CAAAA,QAAA,EAAA,EAAW,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAE5C,CAAA;AACA,aAAA,CAAc,cAAcA,QAAW,CAAA,WAAA;AAoBhC,MAAM,kBAAqB,GAAA,UAAA;AAAA,EAChC,CAAC,OAAgC,GAAgC,KAAA;AAC/D,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,QAAA,EAAU,gBAAiB,CAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MACzC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA;AAAA,KACd;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,oBAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IACE,uBAAA,GAAA;AAAA,MAACC,oBAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,kBAAkB,EAAA,UAAA;AAAA,QACjB,GAAG;AAAA;AAAA,KACN;AAAA;AAGN;AACA,kBAAA,CAAmB,cAAcA,oBAAuB,CAAA,WAAA;AAoBjD,MAAM,YAAe,GAAA,UAAA;AAAA,EAC1B,CAAC,OAA0B,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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBR,OAAS,EAAA,aAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBT,YAAc,EAAA;AAChB,CAAC;;;;"}
package/dist/Drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader, D as default } from './Drawer-Be0tyTMM.js';
1
+ export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader, D as default } from './Drawer-Cj3nJc4k.js';
2
2
  //# sourceMappingURL=Drawer.js.map
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { useTrackingId } from './useTrackingId.js';
4
4
  import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
5
- import { I as InputMask$1 } from './InputMask-CiHg25XE--lofQ4oF.js';
5
+ import { I as InputMask$1 } from './InputMask-Hn-xudp1-BKhtZ7Zk.js';
6
6
 
7
7
  const InputMask = forwardRef(
8
8
  (props, ref) => {
@@ -27,4 +27,4 @@ const InputMask = forwardRef(
27
27
  InputMask.displayName = InputMask$1.displayName;
28
28
 
29
29
  export { InputMask as I };
30
- //# sourceMappingURL=InputMask-DYthrVaU.js.map
30
+ //# sourceMappingURL=InputMask-BdLGTTAk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputMask-DYthrVaU.js","sources":["../src/components/InputMask/InputMask.tsx"],"sourcesContent":["import {\n InputMaskProps as CoreInputMaskProps,\n InputMask as CoreInputMask,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\n\n/**\n * Props for the InputMask component\n * @property {string} mask - The mask pattern to apply to the input (9 for digits, a for letters, * for alphanumeric)\n * @property {string} [defaultMaskCharacter] - Character to display for unfilled mask positions\n * @property {array} [customMaskHandler] - Array of custom mask handlers for advanced transformations\n * @property {object} [inputProps] - Props to pass to the input component\n * @property {ReactElement} [children] - Custom input element to be wrapped with mask functionality\n * @property {string} [data-tracking-id] - Custom tracking ID for analytics\n */\nexport type InputMaskProps = CoreInputMaskProps & {\n [\"data-tracking-id\"]?: string;\n};\n\n/**\n * InputMask component for applying input masks and formatting to text inputs.\n *\n * Features:\n * - Input masking with configurable patterns (9, a, *, fixed characters)\n * - Support for both controlled and uncontrolled inputs\n * - Custom input elements or default TextField integration\n * - Advanced cursor positioning and selection management\n * - Custom mask handlers for complex transformations\n * - Paste and keyboard event handling\n * - Automatic mask character replacement\n * - Focus and blur event management\n * - Accessible with proper ARIA attributes\n * - Support for all standard input element props\n * - Flexible mask pattern configuration\n * - Real-time input validation and formatting\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <InputMask\n * mask=\"99/99/9999\"\n * inputProps={{ label: \"Date\", hint: \"mm/dd/yyyy\" }}\n * />\n *\n * @example\n * <InputMask mask=\"(999) 999-9999\">\n * <TextField label=\"Phone Number\" hint=\"(555) 123-4567\" />\n * </InputMask>\n *\n * @example\n * <InputMask\n * mask=\"99/99/9999\"\n * customMaskHandler={[\n * {\n * match: {\n * matchPattern: /^(\\d)\\//,\n * startPosition: 0,\n * endPosition: 2,\n * },\n * apply: {\n * applyPattern: \"0$1\",\n * caretOffset: 2,\n * },\n * },\n * ]}\n * inputProps={{ label: \"Date with custom handler\" }}\n * />\n */\nexport const InputMask = forwardRef(\n (props: InputMaskProps, ref: Ref<HTMLInputElement>) => {\n const inputProps = props.inputProps ?? {};\n\n const data = {\n label: \"label\" in inputProps ? childrenToString(inputProps.label) : null,\n labelProps: \"labelProps\" in inputProps ? inputProps.labelProps : null,\n prefix: childrenToString(inputProps.prefix),\n hint: \"hint\" in inputProps ? childrenToString(inputProps.hint) : null,\n description:\n \"description\" in inputProps\n ? childrenToString(inputProps.description)\n : null,\n size: inputProps.size,\n type: inputProps.type,\n };\n\n const trackingId = useTrackingId({\n name: \"InputMask\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreInputMask ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\nInputMask.displayName = CoreInputMask.displayName;\n"],"names":["CoreInputMask"],"mappings":";;;;;;AAqEO,MAAM,SAAY,GAAA,UAAA;AAAA,EACvB,CAAC,OAAuB,GAA+B,KAAA;AACrD,IAAM,MAAA,UAAA,GAAa,KAAM,CAAA,UAAA,IAAc,EAAC;AAExC,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,OAAO,OAAW,IAAA,UAAA,GAAa,gBAAiB,CAAA,UAAA,CAAW,KAAK,CAAI,GAAA,IAAA;AAAA,MACpE,UAAY,EAAA,YAAA,IAAgB,UAAa,GAAA,UAAA,CAAW,UAAa,GAAA,IAAA;AAAA,MACjE,MAAA,EAAQ,gBAAiB,CAAA,UAAA,CAAW,MAAM,CAAA;AAAA,MAC1C,MAAM,MAAU,IAAA,UAAA,GAAa,gBAAiB,CAAA,UAAA,CAAW,IAAI,CAAI,GAAA,IAAA;AAAA,MACjE,aACE,aAAiB,IAAA,UAAA,GACb,gBAAiB,CAAA,UAAA,CAAW,WAAW,CACvC,GAAA,IAAA;AAAA,MACN,MAAM,UAAW,CAAA,IAAA;AAAA,MACjB,MAAM,UAAW,CAAA;AAAA,KACnB;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,WAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BAAQA,WAAc,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7E;AACA,SAAA,CAAU,cAAcA,WAAc,CAAA,WAAA;;;;"}
1
+ {"version":3,"file":"InputMask-BdLGTTAk.js","sources":["../src/components/InputMask/InputMask.tsx"],"sourcesContent":["import {\n InputMaskProps as CoreInputMaskProps,\n InputMask as CoreInputMask,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\n\n/**\n * Props for the InputMask component\n * @property {string} mask - The mask pattern to apply to the input (9 for digits, a for letters, * for alphanumeric)\n * @property {string} [defaultMaskCharacter] - Character to display for unfilled mask positions\n * @property {array} [customMaskHandler] - Array of custom mask handlers for advanced transformations\n * @property {object} [inputProps] - Props to pass to the input component\n * @property {ReactElement} [children] - Custom input element to be wrapped with mask functionality\n * @property {string} [data-tracking-id] - Custom tracking ID for analytics\n */\nexport type InputMaskProps = CoreInputMaskProps & {\n [\"data-tracking-id\"]?: string;\n};\n\n/**\n * InputMask component for applying input masks and formatting to text inputs.\n *\n * Features:\n * - Input masking with configurable patterns (9, a, *, fixed characters)\n * - Support for both controlled and uncontrolled inputs\n * - Custom input elements or default TextField integration\n * - Advanced cursor positioning and selection management\n * - Custom mask handlers for complex transformations\n * - Paste and keyboard event handling\n * - Automatic mask character replacement\n * - Focus and blur event management\n * - Accessible with proper ARIA attributes\n * - Support for all standard input element props\n * - Flexible mask pattern configuration\n * - Real-time input validation and formatting\n * - Automatic tracking ID generation for analytics\n *\n * @example\n * <InputMask\n * mask=\"99/99/9999\"\n * inputProps={{ label: \"Date\", hint: \"mm/dd/yyyy\" }}\n * />\n *\n * @example\n * <InputMask mask=\"(999) 999-9999\">\n * <TextField label=\"Phone Number\" hint=\"(555) 123-4567\" />\n * </InputMask>\n *\n * @example\n * <InputMask\n * mask=\"99/99/9999\"\n * customMaskHandler={[\n * {\n * match: {\n * matchPattern: /^(\\d)\\//,\n * startPosition: 0,\n * endPosition: 2,\n * },\n * apply: {\n * applyPattern: \"0$1\",\n * caretOffset: 2,\n * },\n * },\n * ]}\n * inputProps={{ label: \"Date with custom handler\" }}\n * />\n */\nexport const InputMask = forwardRef(\n (props: InputMaskProps, ref: Ref<HTMLInputElement>) => {\n const inputProps = props.inputProps ?? {};\n\n const data = {\n label: \"label\" in inputProps ? childrenToString(inputProps.label) : null,\n labelProps: \"labelProps\" in inputProps ? inputProps.labelProps : null,\n prefix: childrenToString(inputProps.prefix),\n hint: \"hint\" in inputProps ? childrenToString(inputProps.hint) : null,\n description:\n \"description\" in inputProps\n ? childrenToString(inputProps.description)\n : null,\n size: inputProps.size,\n type: inputProps.type,\n };\n\n const trackingId = useTrackingId({\n name: \"InputMask\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreInputMask ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\nInputMask.displayName = CoreInputMask.displayName;\n"],"names":["CoreInputMask"],"mappings":";;;;;;AAqEO,MAAM,SAAY,GAAA,UAAA;AAAA,EACvB,CAAC,OAAuB,GAA+B,KAAA;AACrD,IAAM,MAAA,UAAA,GAAa,KAAM,CAAA,UAAA,IAAc,EAAC;AAExC,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,OAAO,OAAW,IAAA,UAAA,GAAa,gBAAiB,CAAA,UAAA,CAAW,KAAK,CAAI,GAAA,IAAA;AAAA,MACpE,UAAY,EAAA,YAAA,IAAgB,UAAa,GAAA,UAAA,CAAW,UAAa,GAAA,IAAA;AAAA,MACjE,MAAA,EAAQ,gBAAiB,CAAA,UAAA,CAAW,MAAM,CAAA;AAAA,MAC1C,MAAM,MAAU,IAAA,UAAA,GAAa,gBAAiB,CAAA,UAAA,CAAW,IAAI,CAAI,GAAA,IAAA;AAAA,MACjE,aACE,aAAiB,IAAA,UAAA,GACb,gBAAiB,CAAA,UAAA,CAAW,WAAW,CACvC,GAAA,IAAA;AAAA,MACN,MAAM,UAAW,CAAA,IAAA;AAAA,MACjB,MAAM,UAAW,CAAA;AAAA,KACnB;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,WAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BAAQA,WAAc,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7E;AACA,SAAA,CAAU,cAAcA,WAAc,CAAA,WAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, useRef, useMemo, isValidElement, cloneElement } from 'react';
3
- import { T as TextField } from './TextField-C5KbQxoU-CSkSyt7P.js';
3
+ import { T as TextField } from './TextField-BIeCvDD--C7yp05g5.js';
4
4
  import { u as useMergeRefs } from './floating-ui.react-BFNinq1w.js';
5
5
  import { u as useOptionallyControlledState } from './useOptionallyControlledState-DAv5LXXh-DAv5LXXh.js';
6
6
 
@@ -159,9 +159,21 @@ const InputMask = forwardRef(
159
159
  onBlur: handleBlur,
160
160
  ref: passInRef
161
161
  };
162
+ const isInputEmpty = useMemo(() => {
163
+ if (v.length === 0) {
164
+ return true;
165
+ }
166
+ return v === applyMask("", mask, defaultMaskCharacter);
167
+ }, [v, defaultMaskCharacter, mask]);
162
168
  return children && isValidElement(children) && children.type === "input" ? cloneElement(children, {
163
169
  ...mergedInputProps
164
- }) : /* @__PURE__ */ jsx(TextField, { ...mergedInputProps });
170
+ }) : /* @__PURE__ */ jsx(
171
+ TextField,
172
+ {
173
+ "data-input-empty": isInputEmpty,
174
+ ...mergedInputProps
175
+ }
176
+ );
165
177
  }
166
178
  );
167
179
  InputMask.displayName = "InputMask";
@@ -228,4 +240,4 @@ function getFirstFilledCharacterIndex(value, mask) {
228
240
  }
229
241
 
230
242
  export { InputMask as I };
231
- //# sourceMappingURL=InputMask-CiHg25XE--lofQ4oF.js.map
243
+ //# sourceMappingURL=InputMask-Hn-xudp1-BKhtZ7Zk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputMask-Hn-xudp1-BKhtZ7Zk.js","sources":["../../hammer-react/dist/InputMask-Hn-xudp1.js"],"sourcesContent":["import { jsx } from 'react/jsx-runtime';\nimport { forwardRef, useRef, useMemo, isValidElement, cloneElement } from 'react';\nimport { T as TextField } from './TextField-BIeCvDD-.js';\nimport { useMergeRefs } from '@floating-ui/react';\nimport { u as useOptionallyControlledState } from './useOptionallyControlledState-DAv5LXXh.js';\n\nconst MASK_CHARS = [\"a\", \"9\", \"*\"];\nconst InputMask = forwardRef(\n ({\n children,\n mask,\n defaultMaskCharacter = \"_\",\n value,\n defaultValue,\n onChange,\n inputProps\n }, ref) => {\n const [v, setV] = useOptionallyControlledState({\n controlledValue: value !== void 0 ? applyMask(value, mask, defaultMaskCharacter) : void 0,\n defaultValue: applyMask(defaultValue || \"\", mask, defaultMaskCharacter)\n // Omitting the onChange handler here because we want to handle it ourselves (i.e. send an event instead of just the value)\n });\n const specialChange = useRef(null);\n const inputRef = useRef(null);\n const passInRef = useMergeRefs([inputRef, ref]);\n const currentOpenCharacterCount = useMemo(() => {\n return v.split(\"\").filter((char) => char === defaultMaskCharacter).length;\n }, [v, defaultMaskCharacter]);\n const fixedCharacterIndices = useMemo(() => {\n const fixedIndices = [];\n mask.split(\"\").forEach((char, i) => {\n if (!MASK_CHARS.includes(char)) {\n fixedIndices.push(i);\n }\n });\n return fixedIndices;\n }, [mask]);\n const moveCursorTo = (start, end = start) => {\n requestAnimationFrame(() => {\n inputRef.current?.setSelectionRange(start, end);\n });\n };\n const handleChange = (e) => {\n let newVal = applyMask(e.target.value, mask, defaultMaskCharacter);\n if (\n // A single character was backspaced\n specialChange.current?.reason === \"Backspace\" && specialChange.current.start === specialChange.current.end\n ) {\n if (fixedCharacterIndices.includes(specialChange.current.start - 1)) {\n const removeIndex = getLastFilledCharacterIndex(\n newVal.slice(0, specialChange.current.start),\n mask\n );\n newVal = applyMask(\n newVal.slice(0, removeIndex) + newVal.slice(removeIndex + 1),\n mask,\n defaultMaskCharacter\n );\n moveCursorTo(removeIndex, removeIndex);\n } else {\n const idx = Math.min(\n getLastFilledCharacterIndex(newVal, mask) + 1,\n specialChange.current.start - 1\n );\n moveCursorTo(idx, idx);\n }\n } else if (\n // A single character was deleted\n specialChange.current?.reason === \"Delete\" && specialChange.current.start === specialChange.current.end\n ) {\n if (fixedCharacterIndices.includes(specialChange.current.start)) {\n const removeIndex = getFirstFilledCharacterIndex(\n newVal.slice(specialChange.current.start + 1),\n mask\n );\n newVal = applyMask(\n newVal.slice(0, removeIndex) + newVal.slice(removeIndex + 1),\n mask,\n defaultMaskCharacter\n );\n }\n const firstFilledIdx = getFirstFilledCharacterIndex(newVal, mask);\n const targetIdx = Math.max(firstFilledIdx, specialChange.current.start);\n moveCursorTo(targetIdx, targetIdx);\n } else if (specialChange.current?.reason === \"Edit\" && specialChange.current.start === specialChange.current.end) {\n const firstNonFixedIdx = getFirstNonFixedCharacterIndex(\n specialChange.current.start + 1,\n fixedCharacterIndices\n );\n moveCursorTo(firstNonFixedIdx, firstNonFixedIdx);\n } else {\n const newIndex = getNextOpenCharacterIndex(\n newVal,\n defaultMaskCharacter\n );\n moveCursorTo(newIndex, newIndex);\n }\n setV(newVal);\n if (inputRef.current) {\n inputRef.current.value = newVal;\n }\n onChange?.({ ...e, target: { ...e.target, value: newVal } });\n };\n const handleFocus = (e) => {\n requestAnimationFrame(() => {\n if (e.target.selectionStart === null || e.target.selectionStart === void 0 || e.target.selectionStart >= v.length) {\n const newIndex = getNextOpenCharacterIndex(v, defaultMaskCharacter);\n moveCursorTo(newIndex, newIndex);\n }\n });\n inputProps?.onFocus?.(e);\n };\n const handleKeyDown = (e) => {\n const target = e.target;\n if (target.selectionStart === null || target.selectionEnd === null) {\n return;\n }\n if (e.key === \"Backspace\") {\n specialChange.current = {\n reason: \"Backspace\",\n start: target.selectionStart,\n end: target.selectionEnd\n };\n } else if (e.key === \"Delete\") {\n specialChange.current = {\n reason: \"Delete\",\n start: target.selectionStart,\n end: target.selectionEnd\n };\n } else if (currentOpenCharacterCount === 0) {\n specialChange.current = {\n reason: \"Edit\",\n start: target.selectionStart,\n end: target.selectionEnd\n };\n } else {\n specialChange.current = null;\n }\n inputProps?.onKeyDown?.(e);\n };\n const handleClick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n inputProps?.onClick?.(e);\n };\n const handleBlur = (e) => {\n e.preventDefault();\n e.stopPropagation();\n inputProps?.onBlur?.(e);\n };\n const mergedInputProps = {\n ...inputProps,\n ...children && isValidElement(children) ? children.props : {},\n value: v,\n onChange: handleChange,\n onFocus: handleFocus,\n onKeyDown: handleKeyDown,\n onClick: handleClick,\n onBlur: handleBlur,\n ref: passInRef\n };\n const isInputEmpty = useMemo(() => {\n if (v.length === 0) {\n return true;\n }\n return v === applyMask(\"\", mask, defaultMaskCharacter);\n }, [v, defaultMaskCharacter, mask]);\n return children && isValidElement(children) && children.type === \"input\" ? cloneElement(children, {\n ...mergedInputProps\n }) : /* @__PURE__ */ jsx(\n TextField,\n {\n \"data-input-empty\": isInputEmpty,\n ...mergedInputProps\n }\n );\n }\n);\nInputMask.displayName = \"InputMask\";\nfunction applyMask(value, mask, defaultMaskCharacter) {\n let maskedValue = \"\";\n let valueIndex = 0;\n for (let i = 0; i < mask.length; i++) {\n const maskChar = mask[i];\n if (MASK_CHARS.includes(maskChar)) {\n while (valueIndex < value.length && !isAcceptableChar(value[valueIndex], maskChar)) {\n valueIndex++;\n }\n if (valueIndex < value.length) {\n maskedValue += value[valueIndex];\n valueIndex++;\n } else {\n maskedValue += defaultMaskCharacter;\n }\n } else {\n maskedValue += maskChar;\n }\n }\n return maskedValue;\n}\nfunction isAcceptableChar(char, maskChar) {\n if (maskChar === \"9\") {\n return /\\d/.test(char);\n }\n if (maskChar === \"a\") {\n return /[a-zA-Z]/.test(char);\n }\n if (maskChar === \"*\") {\n return /[a-zA-Z0-9]/.test(char);\n }\n return false;\n}\nfunction getNextOpenCharacterIndex(value, defaultMaskCharacter) {\n let idx = value.indexOf(defaultMaskCharacter);\n if (idx < 0) {\n idx = value.length;\n }\n return idx;\n}\nfunction getFirstNonFixedCharacterIndex(startingIndex, fixedCharacterIndices) {\n let idx = startingIndex;\n while (fixedCharacterIndices.includes(idx)) {\n idx++;\n }\n return idx;\n}\nfunction getLastFilledCharacterIndex(value, mask) {\n let idx = value.split(\"\").findLastIndex((char, i) => isAcceptableChar(char, mask[i]));\n if (idx < 0) {\n idx = 0;\n }\n return idx;\n}\nfunction getFirstFilledCharacterIndex(value, mask) {\n let idx = value.split(\"\").findIndex((char, i) => isAcceptableChar(char, mask[i]));\n if (idx < 0) {\n idx = 0;\n }\n return idx;\n}\n\nexport { InputMask as I };\n//# sourceMappingURL=InputMask-Hn-xudp1.js.map\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AAC7B,MAAC,SAAS,GAAG,UAAU;AAC5B,EAAE,CAAC;AACH,IAAI,QAAQ;AACZ,IAAI,IAAI;AACR,IAAI,oBAAoB,GAAG,GAAG;AAC9B,IAAI,KAAK;AACT,IAAI,YAAY;AAChB,IAAI,QAAQ;AACZ,IAAI;AACJ,GAAG,EAAE,GAAG,KAAK;AACb,IAAI,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,4BAA4B,CAAC;AACnD,MAAM,eAAe,EAAE,KAAK,KAAK,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,oBAAoB,CAAC,GAAG,MAAM;AAC/F,MAAM,YAAY,EAAE,SAAS,CAAC,YAAY,IAAI,EAAE,EAAE,IAAI,EAAE,oBAAoB;AAC5E;AACA,KAAK,CAAC;AACN,IAAI,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC;AACtC,IAAI,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC;AACjC,IAAI,MAAM,SAAS,GAAG,YAAY,CAAC,CAAC,QAAQ,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;AACd;AACA,SAAS,yBAAyB,CAAC,KAAK,EAAE,oBAAoB,EAAE;AAChE,EAAE,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC;AAC/C,EAAE,IAAI,GAAG,GAAG,CAAC,EAAE;AACf,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM;AACtB;AACA,EAAE,OAAO,GAAG;AACZ;AACA,SAAS,8BAA8B,CAAC,aAAa,EAAE,qBAAqB,EAAE;AAC9E,EAAE,IAAI,GAAG,GAAG,aAAa;AACzB,EAAE,OAAO,qBAAqB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC9C,IAAI,GAAG,EAAE;AACT;AACA,EAAE,OAAO,GAAG;AACZ;AACA,SAAS,2BAA2B,CAAC,KAAK,EAAE,IAAI,EAAE;AAClD,EAAE,IAAI,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACvF,EAAE,IAAI,GAAG,GAAG,CAAC,EAAE;AACf,IAAI,GAAG,GAAG,CAAC;AACX;AACA,EAAE,OAAO,GAAG;AACZ;AACA,SAAS,4BAA4B,CAAC,KAAK,EAAE,IAAI,EAAE;AACnD,EAAE,IAAI,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACnF,EAAE,IAAI,GAAG,GAAG,CAAC,EAAE;AACf,IAAI,GAAG,GAAG,CAAC;AACX;AACA,EAAE,OAAO,GAAG;AACZ;;;;"}
package/dist/InputMask.js CHANGED
@@ -1,2 +1,2 @@
1
- export { I as InputMask, I as default } from './InputMask-DYthrVaU.js';
1
+ export { I as InputMask, I as default } from './InputMask-BdLGTTAk.js';
2
2
  //# sourceMappingURL=InputMask.js.map
@@ -3,8 +3,8 @@ import { forwardRef, useRef, useId, useState, useEffect, useContext, createConte
3
3
  import { useTrackingId } from './useTrackingId.js';
4
4
  import { c as cx } from './index-tZvMCc77.js';
5
5
  import { s as styles } from './ListView.module-MVsNF0X0-MVsNF0X0.js';
6
- import { g as getActiveElement } from './ProgressBar-CZhkKwaS-dlDRDjxo.js';
7
- import { a as Checkbox } from './Checkbox-BNrjUtHs-BBLXLwO5.js';
6
+ import { g as getActiveElement } from './ProgressBar-CzXzPpIX-Clg1J71o.js';
7
+ import { a as Checkbox } from './Checkbox-Qucv_PK8-Bovwdnlj.js';
8
8
  import { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
9
9
  import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-DWACCL8v-CZNrcQT-.js';
10
10
 
@@ -593,4 +593,4 @@ const ListView = Object.assign(
593
593
  );
594
594
 
595
595
  export { ListView as L, ListViewOption as a, ListViewOptionCell as b };
596
- //# sourceMappingURL=ListView-DgrUsTC8.js.map
596
+ //# sourceMappingURL=ListView-_YFTewqc.js.map