@servicetitan/anvil2 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/{Combobox-JAm3x-tw.js → Combobox-DCrEfyl2.js} +235 -124
- package/dist/Combobox-DCrEfyl2.js.map +1 -0
- package/dist/Combobox.css +100 -68
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-5mNXaJ7q.js → DateField-4jR9NvbC.js} +327 -320
- package/dist/DateField-4jR9NvbC.js.map +1 -0
- package/dist/DateField.js +1 -1
- package/dist/{Dialog-B4M0DXxG.js → Dialog-CL3bfZuB.js} +2 -2
- package/dist/{Dialog-B4M0DXxG.js.map → Dialog-CL3bfZuB.js.map} +1 -1
- package/dist/{Dialog-CUK5YvVY-Dv5edacC.js → Dialog-CYBt_JdP-CmF0MUHL.js} +77 -48
- package/dist/Dialog-CYBt_JdP-CmF0MUHL.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-BqqZB3Sn.js → Drawer-8nHrKktU.js} +2 -2
- package/dist/{Drawer-BqqZB3Sn.js.map → Drawer-8nHrKktU.js.map} +1 -1
- package/dist/{Drawer-CrXiK2w0-BMzKuNFt.js → Drawer-UQlX-LQG-BSCnMRad.js} +84 -57
- package/dist/Drawer-UQlX-LQG-BSCnMRad.js.map +1 -0
- package/dist/{Drawer-CrXiK2w0.css → Drawer-UQlX-LQG.css} +26 -25
- package/dist/Drawer.js +1 -1
- package/dist/InputMask-B8N8PP1W-DlUKpMR4.js +323 -0
- package/dist/InputMask-B8N8PP1W-DlUKpMR4.js.map +1 -0
- package/dist/{InputMask-BmXj5mob.js → InputMask-jsL7rSOk.js} +2 -2
- package/dist/{InputMask-BmXj5mob.js.map → InputMask-jsL7rSOk.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{Label-CbYy5kwu-BCTOKxOk.js → Label-CUVr-jvI-BXhER5eQ.js} +3 -3
- package/dist/{Label-CbYy5kwu-BCTOKxOk.js.map → Label-CUVr-jvI-BXhER5eQ.js.map} +1 -1
- package/dist/{Menu-IEBrkdoN.js → Menu-CsfX8-_z.js} +4 -3
- package/dist/Menu-CsfX8-_z.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/{Page-qlpHVAMH.js → Page-vKi5JkDS.js} +5 -5
- package/dist/{Page-qlpHVAMH.js.map → Page-vKi5JkDS.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Popover-B7K3o_l4.js → Popover-OFlyW8gN.js} +2 -2
- package/dist/{Popover-B7K3o_l4.js.map → Popover-OFlyW8gN.js.map} +1 -1
- package/dist/{Popover-C1B3UJXp-B5obSIvA.js → Popover-tu_N1aS6-CSLR1Xzc.js} +5 -5
- package/dist/Popover-tu_N1aS6-CSLR1Xzc.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-BLg29adn-CMz5eu5f.js → ProgressBar-DQ1lsFk2-Ci4eqzM0.js} +3 -3
- package/dist/{ProgressBar-BLg29adn-CMz5eu5f.js.map → ProgressBar-DQ1lsFk2-Ci4eqzM0.js.map} +1 -1
- package/dist/{ProgressBar-_DyYSgfx.js → ProgressBar-gVRLaKPz.js} +2 -2
- package/dist/{ProgressBar-_DyYSgfx.js.map → ProgressBar-gVRLaKPz.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{TextField-Lwe9XAou-tH8gcQTq.js → TextField-B8LHWOoC-DSV9zY-z.js} +2 -2
- package/dist/{TextField-Lwe9XAou-tH8gcQTq.js.map → TextField-B8LHWOoC-DSV9zY-z.js.map} +1 -1
- package/dist/{TextField-tF-ERwA8.js → TextField-DgxJO1a7.js} +2 -2
- package/dist/{TextField-tF-ERwA8.js.map → TextField-DgxJO1a7.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-BrzxOEx3.js → Textarea-B-Dv2RXs.js} +2 -2
- package/dist/Textarea-B-Dv2RXs.js.map +1 -0
- package/dist/Textarea.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-D9fMSiGU.js → Toolbar-7BeCY61H.js} +2 -2
- package/dist/{Toolbar-D9fMSiGU.js.map → Toolbar-7BeCY61H.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-BEo0IRDf.js → Tooltip-BVBq-KxK.js} +2 -2
- package/dist/{Tooltip-BEo0IRDf.js.map → Tooltip-BVBq-KxK.js.map} +1 -1
- package/dist/{Tooltip-36nMbVT3-DMkvo60s.js → Tooltip-C8sCGmKM-CLrDofvy.js} +4 -4
- package/dist/{Tooltip-36nMbVT3-DMkvo60s.js.map → Tooltip-C8sCGmKM-CLrDofvy.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +1 -0
- package/dist/index.js +14 -14
- package/dist/{toast-DkO9HWpH.js → toast-CbokOkfo.js} +6 -2
- package/dist/toast-CbokOkfo.js.map +1 -0
- package/package.json +3 -3
- package/dist/Combobox-JAm3x-tw.js.map +0 -1
- package/dist/DateField-5mNXaJ7q.js.map +0 -1
- package/dist/Dialog-CUK5YvVY-Dv5edacC.js.map +0 -1
- package/dist/Drawer-CrXiK2w0-BMzKuNFt.js.map +0 -1
- package/dist/InputMask-CQzrMoEy-CLNvXsm7.js +0 -195
- package/dist/InputMask-CQzrMoEy-CLNvXsm7.js.map +0 -1
- package/dist/Menu-IEBrkdoN.js.map +0 -1
- package/dist/Popover-C1B3UJXp-B5obSIvA.js.map +0 -1
- package/dist/Textarea-BrzxOEx3.js.map +0 -1
- package/dist/toast-DkO9HWpH.js.map +0 -1
- /package/dist/{Dialog-CUK5YvVY.css → Dialog-CYBt_JdP.css} +0 -0
- /package/dist/{Label-CbYy5kwu.css → Label-CUVr-jvI.css} +0 -0
- /package/dist/{Popover-C1B3UJXp.css → Popover-tu_N1aS6.css} +0 -0
- /package/dist/{ProgressBar-BLg29adn.css → ProgressBar-DQ1lsFk2.css} +0 -0
- /package/dist/{Tooltip-36nMbVT3.css → Tooltip-C8sCGmKM.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateField-4jR9NvbC.js","sources":["../../hammer-icon/mdi/round/event.svg","../../hammer-react/dist/DateFieldLegacy-s9ELhz7T.js","../../hammer-react/dist/DateField-Df6vdBIA.js","../src/components/DateField/DateField.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgEvent = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M16 13h-3c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1zm0-10v1H8V3c0-.55-.45-1-1-1s-1 .45-1 1v1H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-1V3c0-.55-.45-1-1-1s-1 .45-1 1zm2 17H6c-.55 0-1-.45-1-1V9h14v10c0 .55-.45 1-1 1z\" }));\nexport default SvgEvent;\n","import { jsxs, jsx, Fragment } from 'react/jsx-runtime';\nimport { forwardRef, useState, useRef, useMemo, useEffect } from 'react';\nimport { I as InputMask } from './InputMask-B8N8PP1W.js';\nimport { T as TextField } from './TextField-B8LHWOoC.js';\nimport { P as PopoverLegacy } from './PopoverLegacy-j3WeWbtq.js';\nimport { t as toDateString, i as isValidDate, C as Calendar } from './Calendar-9iYMS0Iw.js';\nimport { useMergeRefs } from '@floating-ui/react';\nimport { I as Icon } from './Icon-DbHA5GV1.js';\nimport Event from '@servicetitan/hammer-icon/mdi/round/event.svg';\nimport { DateTime } from 'luxon';\n\nconst RANGE_DIVIDER = \" — \";\nconst DateFieldLegacy = forwardRef(\n ({\n // DateFieldLegacy\n openCalendar,\n onFocus,\n onBlur,\n onChange,\n format = \"MM/dd/yyyy\",\n disableHint,\n // Calendar\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n startDay,\n defaultValue,\n value: inputValue,\n // Shared\n locale = Intl.DateTimeFormat().resolvedOptions().locale,\n defaultTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone,\n range,\n // Input\n required,\n ...inputProps\n }, ref) => {\n const [open, setOpen] = useState(openCalendar || false);\n const [internalValue, setInternalValue] = useState();\n const [disableFocusLock, setDisableFocusLock] = useState(true);\n const inputRef = useRef(null);\n const calRef = useRef(null);\n const iconRef = useRef(null);\n const docRef = useRef(null);\n const floatRef = useRef(null);\n const isClickOutside = useRef(false);\n const formatMask = format.replace(/[^/]/g, \"_\");\n const hint = useMemo(\n () => disableHint ? undefined : `format: ${format.replace(/M/g, \"m\")}`,\n [format, disableHint]\n );\n useEffect(() => {\n if (!docRef.current) {\n if (document != null) {\n docRef.current = document;\n return;\n }\n const doc = inputRef.current?.closest(\"body\")?.ownerDocument;\n doc && (docRef.current = doc);\n if (docRef.current == null && inputRef.current?.parentNode != null) {\n let node = inputRef.current?.parentNode;\n while (node.parentNode != null) {\n node = node.parentNode;\n }\n docRef.current = node;\n }\n }\n const clickOutHandler = (ev) => {\n const realTarget = ev.composedPath()[0];\n if (!floatRef.current?.contains(realTarget) && !iconRef.current?.contains(realTarget) && inputRef.current !== realTarget) {\n setOpen(false);\n setDisableFocusLock(true);\n onBlur?.(ev);\n }\n };\n if (open) {\n docRef.current?.addEventListener(\"click\", clickOutHandler);\n } else {\n docRef.current?.removeEventListener(\"click\", clickOutHandler);\n }\n return () => {\n docRef.current?.removeEventListener(\"click\", clickOutHandler);\n };\n }, [open, onBlur]);\n useEffect(() => {\n if (range) {\n let start;\n let end;\n if (typeof inputValue === \"string\") {\n const parts = inputValue.split(RANGE_DIVIDER);\n start = parts[0];\n end = parts[1];\n } else {\n start = inputValue?.start ?? \"\";\n end = inputValue?.end ?? \"\";\n }\n const startDate = DateTime.fromFormat(start ?? \"\", format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const endDate = DateTime.fromFormat(end ?? \"\", format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const newData = {\n start: {\n value: start,\n date: toDateString(startDate),\n isValid: startDate.isValid && isValidDate(\n startDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n end: {\n value: end,\n date: toDateString(endDate),\n isValid: startDate.isValid && isValidDate(\n endDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n value: `${start || formatMask}${RANGE_DIVIDER}${end || formatMask}`\n };\n setInternalValue(newData);\n } else {\n if (typeof inputValue !== \"string\") return;\n const inputDate = DateTime.fromFormat(inputValue, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const newData = {\n value: inputValue,\n date: toDateString(inputDate),\n isValid: inputDate.isValid && isValidDate(\n inputDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n setInternalValue(newData);\n }\n }, [inputValue]);\n const mask = useMemo(() => {\n const maskPart = format.replace(/[Mdy]/g, \"9\");\n if (range) {\n return maskPart + RANGE_DIVIDER + maskPart;\n } else {\n return maskPart;\n }\n }, [format, range]);\n useEffect(() => {\n if (typeof inputValue === \"string\") return;\n if (defaultValue) {\n if (range) {\n const defValStart = defaultValue.start;\n const defValEnd = defaultValue.end;\n const initValStart = defValStart + (formatMask + RANGE_DIVIDER + formatMask).slice(\n defValStart?.length\n );\n const initValEnd = defValEnd + (formatMask + RANGE_DIVIDER + formatMask).slice(defValEnd?.length);\n const newValue = initValStart + RANGE_DIVIDER + initValEnd;\n const inputDateStart = DateTime.fromFormat(\n defValStart || \"\",\n format,\n {\n zone: defaultTimeZone\n }\n ).startOf(\"day\");\n const inputDateEnd = DateTime.fromFormat(defValEnd || \"\", format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const isValidStart = inputDateStart.isValid && isValidDate(\n inputDateStart,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n );\n const isValidEnd = inputDateEnd.isValid && isValidDate(\n inputDateEnd,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n );\n const initCalendarValue = {\n start: {\n value: initValStart,\n date: toDateString(inputDateStart),\n isValid: isValidStart\n },\n end: {\n value: initValEnd,\n date: toDateString(inputDateEnd),\n isValid: isValidEnd\n },\n value: newValue\n };\n setInternalValue(initCalendarValue);\n } else {\n const defVal = defaultValue;\n const initVal = defVal + formatMask.slice(defVal.length);\n const inputDate = DateTime.fromFormat(defVal, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const isValid = inputDate.isValid && isValidDate(\n inputDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n );\n const initCalendarValue = {\n value: initVal,\n date: toDateString(inputDate),\n isValid\n };\n setInternalValue(initCalendarValue);\n }\n }\n }, []);\n const focusToCalendar = () => {\n if (calRef.current) {\n const currentFocusable = calRef.current.querySelectorAll('[tabindex = \"0\"]')[0];\n if (currentFocusable) {\n currentFocusable.focus();\n }\n }\n };\n const handleInputKeyDown = (ev) => {\n switch (ev.key) {\n case \"Tab\":\n setOpen(false);\n break;\n case \"ArrowDown\":\n if (!open) {\n setOpen(true);\n setTimeout(focusToCalendar, 100);\n } else {\n focusToCalendar();\n }\n }\n };\n const handleInputChange = (ev) => {\n if (range) {\n const parts = ev.target.value.split(RANGE_DIVIDER);\n if (parts.length !== 2) return;\n const startDate = DateTime.fromFormat(parts[0], format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const endDate = DateTime.fromFormat(parts[1], format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const returnValue = {\n start: {\n value: parts[0],\n date: toDateString(startDate),\n isValid: startDate.isValid && isValidDate(\n startDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n end: {\n value: parts[1],\n date: toDateString(endDate),\n isValid: startDate.isValid && isValidDate(\n endDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n value: ev.target.value\n };\n if (!inputValue) {\n setInternalValue(returnValue);\n }\n onChange?.(ev, returnValue);\n } else {\n if (ev.target.value === internalValue?.date) return;\n const inputDate = DateTime.fromFormat(ev.target.value, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const returnValue = {\n value: ev.target.value,\n date: toDateString(inputDate),\n isValid: inputDate.isValid && isValidDate(\n inputDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n if (!inputValue) {\n setInternalValue(returnValue);\n }\n onChange?.(ev, returnValue);\n }\n };\n const handleInputBlur = (ev) => {\n if (isClickOutside.current) {\n isClickOutside.current = false;\n return;\n }\n if (!calRef.current?.contains(ev.relatedTarget)) {\n setOpen(false);\n onBlur?.(ev);\n }\n };\n const handleCalendarKeyDown = (ev) => {\n switch (ev.key) {\n case \"Escape\":\n setDisableFocusLock(true);\n inputRef.current?.focus();\n break;\n }\n };\n const handleCalendarBlur = (ev) => {\n if (!(inputRef.current === ev.currentTarget || calRef.current === ev.currentTarget)) {\n setOpen(false);\n onBlur?.(ev);\n }\n if (!(calRef.current === ev.currentTarget)) {\n setDisableFocusLock(true);\n }\n };\n const handleCalendarFocus = (ev) => {\n disableFocusLock && setDisableFocusLock(false);\n };\n const handleCalendarSelection = (data) => {\n if (range) {\n const calSelectData = data;\n const startVal = DateTime.fromISO(calSelectData?.value?.start || \"\", {\n zone: defaultTimeZone\n });\n const endVal = DateTime.fromISO(calSelectData?.value?.end || \"\", {\n zone: defaultTimeZone\n });\n let newValue = \"\";\n const newInternalValue = { value: \"\" };\n if (startVal.isValid) {\n newInternalValue.start = {\n value: startVal.toFormat(format),\n date: calSelectData?.value?.start,\n isValid: true\n };\n newValue += startVal.toFormat(format);\n } else {\n newValue += formatMask;\n }\n newValue += RANGE_DIVIDER;\n if (endVal.isValid) {\n newInternalValue.end = {\n value: endVal.toFormat(format),\n date: calSelectData?.value?.end,\n isValid: true\n };\n newValue += endVal.toFormat(format);\n } else {\n newValue += formatMask;\n }\n if (typeof inputValue !== \"string\") {\n setInternalValue(newInternalValue);\n }\n newInternalValue.value = newValue;\n const event = {\n target: {\n value: newValue\n }\n };\n onChange?.(event, newInternalValue);\n } else {\n const calSelectData = data;\n const val = DateTime.fromISO(calSelectData.value || \"\", {\n zone: defaultTimeZone\n });\n const newValue = val.toFormat(format);\n const newInternalValue = {\n value: newValue,\n date: calSelectData.value,\n isValid: val.isValid && isValidDate(\n val,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n if (typeof inputValue !== \"string\") {\n setInternalValue(newInternalValue);\n }\n const event = {\n target: {\n value: newValue\n }\n };\n onChange?.(event, newInternalValue);\n }\n };\n const handleInputFocus = (ev) => {\n if (!open) {\n setOpen(true);\n onFocus?.(ev);\n }\n };\n return /* @__PURE__ */ jsxs(\n PopoverLegacy,\n {\n open: openCalendar || open,\n modal: true,\n placement: \"bottom-start\",\n disableTriggerFocus: true,\n disableFocusLock,\n children: [\n /* @__PURE__ */ jsx(PopoverLegacy.Trigger, { children: ({ ref: popoverRef, ...props }) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\n InputMask,\n {\n mask,\n inputProps: {\n onKeyDown: handleInputKeyDown,\n onBlur: handleInputBlur,\n onChange: handleInputChange,\n onFocus: handleInputFocus\n },\n value: internalValue?.value || \"\",\n ...props,\n ref: useMergeRefs([popoverRef, inputRef]),\n children: /* @__PURE__ */ jsx(\n TextField,\n {\n hint,\n ref,\n prefix: /* @__PURE__ */ jsx(Icon, { svg: Event, ref: iconRef }),\n ...inputProps,\n required\n }\n )\n }\n ) }) }),\n /* @__PURE__ */ jsx(PopoverLegacy.Content, { ref: floatRef, children: !range ? /* @__PURE__ */ jsx(\n Calendar,\n {\n ref: calRef,\n onKeyDown: handleCalendarKeyDown,\n defaultFocusedDate: internalValue?.date,\n value: internalValue?.date || undefined,\n locale,\n onBlur: handleCalendarBlur,\n onSelection: handleCalendarSelection,\n onFocus: handleCalendarFocus,\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n defaultTimeZone,\n startDay\n }\n ) : /* @__PURE__ */ jsx(\n Calendar,\n {\n ref: calRef,\n onKeyDown: handleCalendarKeyDown,\n defaultFocusedDate: internalValue?.start?.date,\n value: internalValue ? {\n start: internalValue?.start?.date || undefined,\n end: internalValue?.end?.date || undefined\n } : undefined,\n locale,\n onBlur: handleCalendarBlur,\n onSelection: handleCalendarSelection,\n onFocus: handleCalendarFocus,\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n defaultTimeZone,\n startDay,\n range: true\n }\n ) })\n ]\n }\n );\n }\n);\nDateFieldLegacy.displayName = \"DateFieldLegacy\";\n\nexport { DateFieldLegacy as D };\n//# sourceMappingURL=DateFieldLegacy-s9ELhz7T.js.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { forwardRef, useState, useRef, useMemo, useEffect } from 'react';\nimport { I as InputMask } from './InputMask-B8N8PP1W.js';\nimport { t as toDateString, i as isValidDate, C as Calendar } from './Calendar-9iYMS0Iw.js';\nimport { I as Icon } from './Icon-DbHA5GV1.js';\nimport Event from '@servicetitan/hammer-icon/mdi/round/event.svg';\nimport { DateTime } from 'luxon';\nimport { s as supportsPopover } from './supportsPopover-8aJR37cf.js';\nimport { D as DateFieldLegacy } from './DateFieldLegacy-s9ELhz7T.js';\nimport { P as Popover } from './Popover-tu_N1aS6.js';\nimport { u as useKeyboardFocusables } from './useKeyboardFocusables-CwVMAe5C.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\n\nconst RANGE_DIVIDER = \" – \";\nconst DateField = forwardRef(\n (props, ref) => {\n const {\n // DateField\n openCalendar,\n onFocus,\n onBlur,\n onChange,\n onClick,\n format = \"MM/dd/yyyy\",\n disableHint,\n // Calendar\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n startDay,\n defaultValue,\n value: inputValue,\n // Shared\n locale = Intl.DateTimeFormat().resolvedOptions().locale,\n defaultTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone,\n range,\n // Input\n required,\n ...inputProps\n } = props;\n const [open, _setOpen] = useState(openCalendar || false);\n const setOpen = (val) => {\n if (open && !val) {\n inputRef.current?.focus();\n }\n _setOpen(val);\n };\n const [internalValue, setInternalValue] = useState();\n const inputRef = useRef(null);\n const popperRef = useRef(null);\n const documentRef = useRef(document.body);\n const hint = useMemo(\n () => disableHint ? undefined : `format: ${format.replace(/M/g, \"m\")}`,\n [format, disableHint]\n );\n const { focusables } = useKeyboardFocusables(documentRef, {\n observeChange: true\n });\n const { focusables: popoverFocusables } = useKeyboardFocusables(popperRef, {\n observeChange: true\n });\n const pageFocusables = focusables?.filter(\n (item) => !popoverFocusables?.includes(item)\n );\n const [popoverRef, setPopoverRef] = useState();\n const combinedRef = useMergeRefs([popoverRef, inputRef]);\n useEffect(() => {\n if (!defaultValue) return;\n if (range) {\n const startDate = DateTime.fromFormat(\n defaultValue.start ?? \"\",\n format,\n {\n zone: defaultTimeZone\n }\n ).startOf(\"day\");\n const endDate = DateTime.fromFormat(defaultValue.end ?? \"\", format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const newValue2 = {\n start: {\n value: defaultValue.start ?? \"\",\n date: toDateString(startDate),\n isValid: startDate.isValid && isValidDate(\n startDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n end: {\n value: defaultValue.end ?? \"\",\n date: toDateString(endDate),\n isValid: startDate.isValid && isValidDate(\n endDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n value: defaultValue.start + RANGE_DIVIDER + defaultValue.end\n };\n setInternalValue(newValue2);\n return;\n }\n const date = DateTime.fromFormat(defaultValue, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const newValue = {\n value: defaultValue,\n date: toDateString(date),\n isValid: date.isValid && isValidDate(\n date,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n setInternalValue(newValue);\n }, []);\n const getCurrentValue = () => {\n if (inputValue !== undefined) {\n if (range) {\n const startDate = DateTime.fromFormat(\n inputValue.start ?? \"\",\n format,\n {\n zone: defaultTimeZone\n }\n ).startOf(\"day\");\n const endDate = DateTime.fromFormat(inputValue.end ?? \"\", format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const returnValue = {\n start: {\n value: inputValue.start ?? \"\",\n date: toDateString(startDate),\n isValid: startDate.isValid && isValidDate(\n startDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n end: {\n value: inputValue.end ?? \"\",\n date: toDateString(endDate),\n isValid: startDate.isValid && isValidDate(\n endDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n value: inputValue.start + RANGE_DIVIDER + inputValue.end\n };\n return returnValue;\n }\n const date = DateTime.fromFormat(inputValue, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n return {\n value: inputValue,\n date: toDateString(date),\n isValid: date.isValid && isValidDate(\n date,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n }\n return internalValue;\n };\n const handleInputFocus = (ev) => {\n onFocus?.(ev);\n };\n const handleInputBlur = (ev) => {\n if (!popperRef.current?.contains(ev.relatedTarget)) {\n setOpen(false);\n onBlur?.(ev);\n }\n };\n const handleInputKeyDown = (ev) => {\n let currentFocusIndex = 0;\n switch (ev.key) {\n case \"Escape\":\n setOpen(false);\n break;\n case \"Tab\":\n if (!open || !pageFocusables?.length) {\n break;\n }\n ev.preventDefault();\n currentFocusIndex = pageFocusables.indexOf(inputRef.current) || 0;\n setOpen(false);\n if (ev.shiftKey) {\n if (currentFocusIndex === 0) {\n requestAnimationFrame(\n () => pageFocusables[pageFocusables.length - 1].focus()\n );\n } else {\n requestAnimationFrame(\n () => pageFocusables[currentFocusIndex - 1].focus()\n );\n }\n break;\n }\n if (pageFocusables.length > currentFocusIndex + 1) {\n requestAnimationFrame(\n () => pageFocusables[currentFocusIndex + 1].focus()\n );\n } else {\n requestAnimationFrame(() => pageFocusables[0].focus());\n }\n break;\n case \"ArrowDown\":\n if (!open) {\n setOpen(true);\n setTimeout(focusToCalendar, 200);\n } else {\n focusToCalendar();\n }\n }\n };\n const handleCalendarKeyDown = (ev) => {\n switch (ev.key) {\n case \"Escape\":\n setOpen(false);\n inputRef.current?.focus();\n }\n };\n const handleInputClick = (ev) => {\n setOpen(true);\n onClick?.(ev);\n };\n const handleInputChange = (ev) => {\n if (range) {\n const parts = ev.target.value.split(RANGE_DIVIDER);\n if (parts.length !== 2) return;\n const startDate = DateTime.fromFormat(parts[0], format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const endDate = DateTime.fromFormat(parts[1], format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const returnValue = {\n start: {\n value: parts[0],\n date: toDateString(startDate),\n isValid: startDate.isValid && isValidDate(\n startDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n end: {\n value: parts[1],\n date: toDateString(endDate),\n isValid: startDate.isValid && isValidDate(\n endDate,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n },\n value: ev.target.value\n };\n setInternalValue(returnValue);\n onChange?.(ev, returnValue);\n return;\n }\n const date = DateTime.fromFormat(ev.target.value, format, {\n zone: defaultTimeZone\n }).startOf(\"day\");\n const newDate = {\n value: ev.target.value,\n date: toDateString(date),\n isValid: date.isValid && isValidDate(\n date,\n minDate,\n maxDate,\n new Set(unavailableDates || unavailable?.dates),\n {\n dates: new Set(unavailable?.dates),\n daysOfWeek: new Set(unavailable?.daysOfWeek)\n },\n defaultTimeZone\n )\n };\n setInternalValue(newDate);\n onChange?.(ev, newDate);\n };\n const handleCalendarSelection = (data) => {\n if (range) {\n const startDate = data.value?.start ?? \"\";\n const endDate = data.value?.end ?? \"\";\n const startVal = DateTime.fromISO(startDate, {\n zone: defaultTimeZone\n });\n const startValue = startVal.toFormat(format);\n const endVal = DateTime.fromISO(endDate, {\n zone: defaultTimeZone\n });\n const endValue = endVal.toFormat(format);\n const newDateRange = {\n start: {\n value: startValue,\n date: startDate,\n isValid: true\n },\n end: {\n value: endValue,\n date: endDate,\n isValid: true\n },\n value: startValue + RANGE_DIVIDER + endValue\n };\n setInternalValue(newDateRange);\n const event2 = {\n target: {\n value: startValue + RANGE_DIVIDER + endValue\n }\n };\n handleInputChange(event2);\n return;\n }\n const date = data.value;\n const val = DateTime.fromISO(date || \"\", {\n zone: defaultTimeZone\n });\n const value = val.toFormat(format);\n const newDate = {\n value,\n date,\n isValid: true\n };\n setInternalValue(newDate);\n const event = {\n target: {\n value\n }\n };\n handleInputChange(event);\n };\n const focusToCalendar = () => {\n if (popperRef.current) {\n const currentFocusable = popperRef.current.querySelectorAll('[tabindex = \"0\"]')[0];\n if (currentFocusable) {\n currentFocusable.focus();\n }\n }\n };\n const handleClickOutside = () => {\n setOpen(false);\n };\n const currentValue = getCurrentValue();\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(DateFieldLegacy, { ...props, ref });\n return /* @__PURE__ */ jsxs(\n Popover,\n {\n open: openCalendar ?? open,\n modal: true,\n placement: \"bottom-start\",\n disableTriggerFocus: true,\n onOutsidePress: handleClickOutside,\n children: [\n /* @__PURE__ */ jsx(Popover.Trigger, { children: ({ ref: iRef, ...props2 }) => {\n setPopoverRef(iRef);\n return range ? /* @__PURE__ */ jsx(\n InputMask,\n {\n mask: \"99/99/9999\" + RANGE_DIVIDER + \"99/99/9999\",\n ref: combinedRef,\n onChange: handleInputChange,\n value: currentValue?.value,\n inputProps: {\n onFocus: handleInputFocus,\n prefix: /* @__PURE__ */ jsx(Icon, { svg: Event }),\n onBlur: handleInputBlur,\n onKeyDown: handleInputKeyDown,\n onClick: handleInputClick,\n hint,\n ...inputProps\n },\n customMaskHandler: [\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 0,\n endPosition: 2\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n },\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 3,\n endPosition: 5\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n },\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 13,\n endPosition: 15\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n },\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 16,\n endPosition: 18\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n }\n ]\n }\n ) : /* @__PURE__ */ jsx(\n InputMask,\n {\n mask: \"99/99/9999\",\n ref: combinedRef,\n onChange: handleInputChange,\n value: currentValue?.value,\n inputProps: {\n onFocus: handleInputFocus,\n prefix: /* @__PURE__ */ jsx(Icon, { svg: Event }),\n onBlur: handleInputBlur,\n onKeyDown: handleInputKeyDown,\n onClick: handleInputClick,\n hint,\n autoComplete: \"off\",\n ...inputProps\n },\n customMaskHandler: [\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 0,\n endPosition: 2\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n },\n {\n match: {\n matchPattern: new RegExp(/^(\\d)\\//),\n startPosition: 3,\n endPosition: 5\n },\n apply: {\n applyPattern: \"0$1\",\n caretOffset: 2\n }\n }\n ]\n }\n );\n } }),\n /* @__PURE__ */ jsx(Popover.Content, { ref: popperRef, \"data-calendar-popover\": true, children: range ? /* @__PURE__ */ jsx(\n Calendar,\n {\n range: true,\n onKeyDown: handleCalendarKeyDown,\n defaultFocusedDate: internalValue?.start?.date,\n value: {\n start: currentValue?.start?.date || undefined,\n end: currentValue?.end?.date || undefined\n },\n onSelection: handleCalendarSelection,\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n defaultTimeZone,\n startDay\n }\n ) : /* @__PURE__ */ jsx(\n Calendar,\n {\n onKeyDown: handleCalendarKeyDown,\n defaultFocusedDate: internalValue?.date,\n value: currentValue?.date || undefined,\n onSelection: handleCalendarSelection,\n minDate,\n maxDate,\n unavailableDates,\n unavailable,\n defaultTimeZone,\n startDay\n }\n ) })\n ]\n }\n );\n }\n);\nDateField.displayName = \"DateField\";\n\nexport { DateField as D };\n//# sourceMappingURL=DateField-Df6vdBIA.js.map\n","import {\n DateFieldProps as CoreDateFieldProps,\n DateField as CoreDateField,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\n\nexport type DateFieldProps = CoreDateFieldProps & {\n [\"data-tracking-id\"]?: string;\n};\n\nexport const DateField = forwardRef(\n (props: DateFieldProps, ref: Ref<HTMLInputElement>) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n description: childrenToString(props.description),\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"DateField\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreDateField ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\n"],"names":["RANGE_DIVIDER","Event","DateField","useMergeRefs","CoreDateField"],"mappings":";;;;;;;;;;;;;;;AACA,MAAM,QAAQ,GAAG,CAAC,KAAK,qBAAqB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,2RAA2R,EAAE,CAAC,CAAC;;ACU7f,MAAMA,eAAa,GAAG,KAAK;AAC3B,MAAM,eAAe,GAAG,UAAU;AAClC,EAAE,CAAC;AAC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AAA;AACrD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MACnC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,WAAA,EAAa,gBAAiB,CAAA,KAAA,CAAM,WAAW,CAAA;AAAA,MAC/C,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA;AAAA,KACd;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,2BAAQE,WAAc,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7E;;;;"}
|
package/dist/DateField.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as DateField, D as default } from './DateField-
|
|
1
|
+
export { D as DateField, D as default } from './DateField-4jR9NvbC.js';
|
|
2
2
|
//# sourceMappingURL=DateField.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useTrackingId } from './useTrackingId.js';
|
|
4
|
-
import { D as Dialog$1, a as DialogHeader$1, b as DialogFooter$1, c as DialogContent$1, d as DialogCancelButton$1 } from './Dialog-
|
|
4
|
+
import { D as Dialog$1, a as DialogHeader$1, b as DialogFooter$1, c as DialogContent$1, d as DialogCancelButton$1 } from './Dialog-CYBt_JdP-CmF0MUHL.js';
|
|
5
5
|
import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
|
|
6
6
|
|
|
7
7
|
const DialogElement = forwardRef(
|
|
@@ -63,4 +63,4 @@ const Dialog = Object.assign(DialogElement, {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
export { Dialog as D, DialogHeader as a, DialogFooter as b, DialogContent as c, DialogCancelButton as d };
|
|
66
|
-
//# sourceMappingURL=Dialog-
|
|
66
|
+
//# sourceMappingURL=Dialog-CL3bfZuB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog-
|
|
1
|
+
{"version":3,"file":"Dialog-CL3bfZuB.js","sources":["../src/components/Dialog/Dialog.tsx"],"sourcesContent":["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\nexport type DialogProps = CoreDialogProps;\nexport type DialogHeaderProps = CoreDialogHeaderProps & DataTrackingId;\nexport type DialogFooterProps = CoreDialogFooterProps;\nexport type DialogContentProps = CoreDialogContentProps;\nexport type DialogCancelButtonProps = CoreDialogCancelButtonProps &\n DataTrackingId;\n\nconst DialogElement = forwardRef(\n (props: DialogProps, ref: Ref<HTMLDialogElement>) => {\n return <CoreDialog ref={ref} {...props} />;\n },\n);\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);\nexport const DialogFooter = forwardRef(\n (props: DialogFooterProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDialogFooter ref={ref} {...props} />;\n },\n);\nexport const DialogContent = forwardRef(\n (props: DialogContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDialogContent ref={ref} {...props} />;\n },\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\nexport const Dialog = Object.assign(DialogElement, {\n Header: DialogHeader,\n Footer: DialogFooter,\n Content: DialogContent,\n CancelButton: DialogCancelButton,\n});\n"],"names":["CoreDialog","CoreDialogHeader","CoreDialogFooter","CoreDialogContent","CoreDialogCancelButton"],"mappings":";;;;;;AAwBA,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;AAEO,MAAM,YAAe,GAAA,UAAA;AAAA,EAC1B,CAAC,OAA0B,GAA6B,KAAA;AACtD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,QAAA,EAAU,gBAAiB,CAAA,KAAA,CAAM,QAAQ;AAAA,KAC3C;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,QAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BACGC,cAAiB,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAG3E;AACO,MAAM,YAAe,GAAA,UAAA;AAAA,EAC1B,CAAC,OAA0B,GAA6B,KAAA;AACtD,IAAA,uBAAQ,GAAA,CAAAC,cAAA,EAAA,EAAiB,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAElD;AACO,MAAM,aAAgB,GAAA,UAAA;AAAA,EAC3B,CAAC,OAA2B,GAA6B,KAAA;AACvD,IAAA,uBAAQ,GAAA,CAAAC,eAAA,EAAA,EAAkB,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAEnD;AACO,MAAM,kBAAqB,GAAA,UAAA;AAAA,EAChC,CAAC,OAAgC,GAAgC,KAAA;AAC/D,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,OAAO,KAAM,CAAA,KAAA;AAAA,MACb,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;AAEa,MAAA,MAAA,GAAS,MAAO,CAAA,MAAA,CAAO,aAAe,EAAA;AAAA,EACjD,MAAQ,EAAA,YAAA;AAAA,EACR,MAAQ,EAAA,YAAA;AAAA,EACR,OAAS,EAAA,aAAA;AAAA,EACT,YAAc,EAAA;AAChB,CAAC;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef, createContext, useRef, useState, useId,
|
|
2
|
+
import { forwardRef, createContext, useRef, useState, useId, useEffect, useCallback, useContext } from 'react';
|
|
3
3
|
import { c as cx } from './index-tZvMCc77.js';
|
|
4
4
|
import { S as SvgClose } from './close-DZj38AEh.js';
|
|
5
5
|
import { T as Text } from './Text-C2n3GDdC-rz_AelM0.js';
|
|
@@ -7,7 +7,7 @@ import { B as Button } from './Button-Ce--YZ9L-Csh0Zzuf.js';
|
|
|
7
7
|
import { u as useKeyboardFocusables } from './useKeyboardFocusables-CwVMAe5C-DtjYOAmt.js';
|
|
8
8
|
import { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
9
9
|
|
|
10
|
-
import './Dialog-
|
|
10
|
+
import './Dialog-CYBt_JdP.css';const dialog = "_dialog_jetrx_3";
|
|
11
11
|
const container = "_container_jetrx_23";
|
|
12
12
|
const content = "_content_jetrx_36";
|
|
13
13
|
const header = "_header_jetrx_43";
|
|
@@ -133,36 +133,67 @@ const DialogElement = forwardRef(
|
|
|
133
133
|
disableCloseOnEscape = false,
|
|
134
134
|
disableCloseOnClickOutside = false,
|
|
135
135
|
size,
|
|
136
|
+
enableScrollChaining,
|
|
136
137
|
...rest
|
|
137
138
|
} = props;
|
|
138
|
-
const openRef = useRef(open);
|
|
139
139
|
const elRef = useRef(null);
|
|
140
140
|
const contentRef = useRef(null);
|
|
141
|
-
const bodyRef = useRef(null);
|
|
142
141
|
const [hasOpenPopover, setHasOpenPopover] = useState(false);
|
|
143
142
|
const id = useId();
|
|
144
143
|
const DialogClassNames = cx([styles["dialog"]], className, {
|
|
145
144
|
[styles["fullscreen"]]: fullScreen,
|
|
146
145
|
[styles["large"]]: size === "large"
|
|
147
146
|
});
|
|
148
|
-
const { focusables } = useKeyboardFocusables(
|
|
147
|
+
const { focusables } = useKeyboardFocusables(contentRef, {
|
|
149
148
|
observeChange: true
|
|
150
149
|
});
|
|
151
|
-
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
if (!open || enableScrollChaining) return;
|
|
152
|
+
let blockDocumentScroll = false;
|
|
153
|
+
const content = contentRef.current;
|
|
154
|
+
const scrollHandler = (e) => {
|
|
155
|
+
const target = e.target;
|
|
156
|
+
const isShadow2 = contentRef.current?.getRootNode() instanceof ShadowRoot;
|
|
157
|
+
const isOverflowing = elRef.current && elRef.current.scrollHeight > elRef.current.clientHeight;
|
|
158
|
+
if (isShadow2) {
|
|
159
|
+
if (blockDocumentScroll) {
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (!isOverflowing || !content?.contains(target)) {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
return;
|
|
160
168
|
}
|
|
169
|
+
return;
|
|
170
|
+
};
|
|
171
|
+
const shadowScrollHandler = (e) => {
|
|
172
|
+
const target = e.target;
|
|
173
|
+
const isTargetInsideContent = content?.contains(target);
|
|
174
|
+
const isOverflowing = elRef.current && elRef.current.scrollHeight > elRef.current.clientHeight;
|
|
175
|
+
blockDocumentScroll = !isTargetInsideContent;
|
|
176
|
+
if (!isOverflowing || !content?.contains(target)) {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
}
|
|
179
|
+
return;
|
|
180
|
+
};
|
|
181
|
+
const isShadow = content?.getRootNode() instanceof ShadowRoot;
|
|
182
|
+
document.addEventListener("wheel", scrollHandler, {
|
|
183
|
+
passive: false
|
|
184
|
+
});
|
|
185
|
+
if (isShadow) {
|
|
186
|
+
content?.getRootNode().addEventListener("wheel", shadowScrollHandler, {
|
|
187
|
+
passive: false
|
|
188
|
+
});
|
|
161
189
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
190
|
+
return () => {
|
|
191
|
+
document.getRootNode().removeEventListener("wheel", scrollHandler);
|
|
192
|
+
if (isShadow) {
|
|
193
|
+
content?.getRootNode().removeEventListener("wheel", shadowScrollHandler);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}, [enableScrollChaining, open]);
|
|
166
197
|
useEffect(() => {
|
|
167
198
|
if (typeof document === "undefined" || disableCloseOnClickOutside) return;
|
|
168
199
|
const onClickOutsideHandler = (e) => {
|
|
@@ -174,41 +205,31 @@ const DialogElement = forwardRef(
|
|
|
174
205
|
document.addEventListener("mousedown", onClickOutsideHandler);
|
|
175
206
|
return () => document.removeEventListener("mousedown", onClickOutsideHandler);
|
|
176
207
|
}, [disableCloseOnClickOutside, onClose, onOpenChange, hasOpenPopover]);
|
|
208
|
+
const initial = useRef(true);
|
|
177
209
|
useEffect(() => {
|
|
210
|
+
if (initial.current) {
|
|
211
|
+
initial.current = false;
|
|
212
|
+
} else {
|
|
213
|
+
onOpenChange?.(open);
|
|
214
|
+
}
|
|
178
215
|
if (open) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
body && (bodyRef.current = body);
|
|
182
|
-
}
|
|
183
|
-
if (bodyRef.current) {
|
|
184
|
-
const dialogsOpen = bodyRef.current.dataset.dialogsOpen ? bodyRef.current.dataset.dialogsOpen.split(" ") : [];
|
|
185
|
-
if (!dialogsOpen.includes(id)) {
|
|
186
|
-
if (openRef.current !== open) {
|
|
187
|
-
onOpenChange?.(true);
|
|
188
|
-
openRef.current = open;
|
|
189
|
-
}
|
|
190
|
-
onOpen?.();
|
|
191
|
-
elRef.current?.showModal();
|
|
192
|
-
dialogsOpen.push(id);
|
|
193
|
-
bodyRef.current.dataset.dialogsOpen = dialogsOpen.join(" ");
|
|
194
|
-
}
|
|
195
|
-
const hasFocus = elRef.current?.querySelector(":focus");
|
|
196
|
-
setTimeout(() => {
|
|
197
|
-
!hasFocus && focusables && focusables.length > 0 && focusables[0].focus();
|
|
198
|
-
}, 1);
|
|
199
|
-
bodyRef.current?.classList.add("dialog-open");
|
|
200
|
-
}
|
|
216
|
+
onOpen?.();
|
|
217
|
+
elRef.current?.showModal();
|
|
201
218
|
return;
|
|
202
219
|
}
|
|
203
220
|
setTimeout(() => {
|
|
204
|
-
if (openRef.current !== open) {
|
|
205
|
-
onOpenChange?.(false);
|
|
206
|
-
openRef.current = open;
|
|
207
|
-
}
|
|
208
221
|
elRef.current?.close();
|
|
209
|
-
removeBodyClass();
|
|
210
222
|
}, 1);
|
|
211
|
-
}, [
|
|
223
|
+
}, [id, onOpen, onOpenChange, open]);
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
if (!open) return;
|
|
226
|
+
if (!focusables) return;
|
|
227
|
+
if (focusables[0]?.dataset.anv === "dialog-header-close-button" && focusables[1]) {
|
|
228
|
+
focusables[1].focus();
|
|
229
|
+
} else {
|
|
230
|
+
focusables[0]?.focus();
|
|
231
|
+
}
|
|
232
|
+
}, [open, focusables]);
|
|
212
233
|
const onKeyDownHandler = (e) => {
|
|
213
234
|
onKeyDown?.(e);
|
|
214
235
|
if (e.code === "Escape") {
|
|
@@ -249,7 +270,15 @@ const DialogElement = forwardRef(
|
|
|
249
270
|
DialogContext.Provider,
|
|
250
271
|
{
|
|
251
272
|
value: { close, ref: elRef, hasOpenPopover, setHasOpenPopover },
|
|
252
|
-
children: /* @__PURE__ */ jsx(
|
|
273
|
+
children: /* @__PURE__ */ jsx(
|
|
274
|
+
"section",
|
|
275
|
+
{
|
|
276
|
+
ref: contentRef,
|
|
277
|
+
className: styles["container"],
|
|
278
|
+
"data-open": open,
|
|
279
|
+
children
|
|
280
|
+
}
|
|
281
|
+
)
|
|
253
282
|
}
|
|
254
283
|
)
|
|
255
284
|
}
|
|
@@ -275,4 +304,4 @@ const Dialog = Object.assign(DialogElement, {
|
|
|
275
304
|
});
|
|
276
305
|
|
|
277
306
|
export { Dialog as D, DialogHeader as a, DialogFooter as b, DialogContent as c, DialogCancelButton as d, DialogContext as e };
|
|
278
|
-
//# sourceMappingURL=Dialog-
|
|
307
|
+
//# sourceMappingURL=Dialog-CYBt_JdP-CmF0MUHL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog-CYBt_JdP-CmF0MUHL.js","sources":["../../hammer-react/dist/Dialog-CYBt_JdP.js"],"sourcesContent":["import { jsx, jsxs } from 'react/jsx-runtime';\nimport { forwardRef, createContext, useRef, useState, useId, useEffect, useCallback, useContext } from 'react';\nimport cx from 'classnames';\nimport Close from '@servicetitan/hammer-icon/mdi/round/close.svg';\nimport { T as Text } from './Text-C2n3GDdC.js';\nimport { B as Button } from './Button-Ce--YZ9L.js';\nimport { u as useKeyboardFocusables } from './useKeyboardFocusables-CwVMAe5C.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\n\nimport './Dialog.css';const dialog = \"_dialog_jetrx_3\";\nconst container = \"_container_jetrx_23\";\nconst content = \"_content_jetrx_36\";\nconst header = \"_header_jetrx_43\";\nconst footer = \"_footer_jetrx_63\";\nconst large = \"_large_jetrx_100\";\nconst fullscreen = \"_fullscreen_jetrx_100\";\nconst sticky = \"_sticky_jetrx_121\";\nconst styles = {\n\tdialog: dialog,\n\t\"close-dialog\": \"_close-dialog_jetrx_1\",\n\tcontainer: container,\n\tcontent: content,\n\theader: header,\n\t\"close-container\": \"_close-container_jetrx_56\",\n\tfooter: footer,\n\tlarge: large,\n\tfullscreen: fullscreen,\n\tsticky: sticky,\n\t\"close-button\": \"_close-button_jetrx_127\"\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 DialogContext = createContext(null);\nconst DialogElement = forwardRef(\n (props, ref) => {\n const {\n className,\n open = false,\n children,\n onOpen,\n onOpenChange,\n onClose,\n onCancel,\n onKeyDown,\n fullScreen = false,\n disableCloseOnEscape = false,\n disableCloseOnClickOutside = false,\n size,\n enableScrollChaining,\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 DialogClassNames = cx([styles[\"dialog\"]], className, {\n [styles[\"fullscreen\"]]: fullScreen,\n [styles[\"large\"]]: size === \"large\"\n });\n const { focusables } = useKeyboardFocusables(contentRef, {\n observeChange: true\n });\n useEffect(() => {\n if (!open || enableScrollChaining) return;\n let blockDocumentScroll = false;\n const content = contentRef.current;\n const scrollHandler = (e) => {\n const target = e.target;\n const isShadow2 = contentRef.current?.getRootNode() instanceof ShadowRoot;\n const isOverflowing = elRef.current && elRef.current.scrollHeight > elRef.current.clientHeight;\n if (isShadow2) {\n if (blockDocumentScroll) {\n e.preventDefault();\n return;\n }\n return;\n }\n if (!isOverflowing || !content?.contains(target)) {\n e.preventDefault();\n return;\n }\n return;\n };\n const shadowScrollHandler = (e) => {\n const target = e.target;\n const isTargetInsideContent = content?.contains(target);\n const isOverflowing = elRef.current && elRef.current.scrollHeight > elRef.current.clientHeight;\n blockDocumentScroll = !isTargetInsideContent;\n if (!isOverflowing || !content?.contains(target)) {\n e.preventDefault();\n }\n return;\n };\n const isShadow = content?.getRootNode() instanceof ShadowRoot;\n document.addEventListener(\"wheel\", scrollHandler, {\n passive: false\n });\n if (isShadow) {\n content?.getRootNode().addEventListener(\"wheel\", shadowScrollHandler, {\n passive: false\n });\n }\n return () => {\n document.getRootNode().removeEventListener(\"wheel\", scrollHandler);\n if (isShadow) {\n content?.getRootNode().removeEventListener(\"wheel\", shadowScrollHandler);\n }\n };\n }, [enableScrollChaining, open]);\n useEffect(() => {\n if (typeof document === \"undefined\" || disableCloseOnClickOutside) return;\n const onClickOutsideHandler = (e) => {\n if (hasOpenPopover) return;\n if (e.composedPath()[0] === elRef.current) {\n onClose?.();\n }\n };\n document.addEventListener(\"mousedown\", onClickOutsideHandler);\n return () => document.removeEventListener(\"mousedown\", onClickOutsideHandler);\n }, [disableCloseOnClickOutside, onClose, onOpenChange, hasOpenPopover]);\n const initial = useRef(true);\n useEffect(() => {\n if (initial.current) {\n initial.current = false;\n } else {\n onOpenChange?.(open);\n }\n if (open) {\n onOpen?.();\n elRef.current?.showModal();\n return;\n }\n setTimeout(() => {\n elRef.current?.close();\n }, 1);\n }, [id, onOpen, onOpenChange, open]);\n useEffect(() => {\n if (!open) return;\n if (!focusables) return;\n if (focusables[0]?.dataset.anv === \"dialog-header-close-button\" && focusables[1]) {\n focusables[1].focus();\n } else {\n focusables[0]?.focus();\n }\n }, [open, 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 const close = useCallback(() => {\n onClose?.();\n }, [onClose]);\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__ */ jsx(\n \"dialog\",\n {\n className: DialogClassNames,\n \"data-anv\": \"dialog\",\n ref: useMergeRefs([ref, elRef]),\n onKeyDown: onKeyDownHandler,\n ...rest,\n children: /* @__PURE__ */ jsx(\n DialogContext.Provider,\n {\n value: { close, ref: elRef, hasOpenPopover, setHasOpenPopover },\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);\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}\nDialogElement.displayName = \"Dialog\";\nconst Dialog = Object.assign(DialogElement, {\n Header: DialogHeader,\n Footer: DialogFooter,\n Content: DialogContent,\n CancelButton: DialogCancelButton\n});\n\nexport { Dialog as D, DialogContext as a, DialogCancelButton as b, DialogContent as c, DialogFooter as d, DialogHeader as e };\n//# sourceMappingURL=Dialog-CYBt_JdP.js.map\n"],"names":["Close"],"mappings":";;;;;;;;;AASsB,MAAM,MAAM,GAAG,iBAAiB;AACtD,MAAM,SAAS,GAAG,qBAAqB;AACvC,MAAM,OAAO,GAAG,mBAAmB;AACnC,MAAM,MAAM,GAAG,kBAAkB;AACjC,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SAAS,EAAE,gBAAgB;AACrC,UAAU,GAAG,IAAI;AACjB,UAAU,QAAQ,kBAAkB,GAAG;AACvC,YAAY,aAAa,CAAC,QAAQ;AAClC,YAAY;AACZ,cAAc,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE;AAC7E,cAAc,QAAQ,kBAAkB,GAAG;AAC3C,gBAAgB,SAAS;AACzB,gBAAgB;AAChB,kBAAkB,GAAG,EAAE,UAAU;AACjC,kBAAkB,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;AAChD,kBAAkB,WAAW,EAAE,IAAI;AACnC,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC;AAC3C,EAAE,IAAI,CAAC,OAAO,EAAE;AAChB,IAAI,MAAM,IAAI,KAAK;AACnB,MAAM;AACN,KAAK;AACL;AACA,EAAE,OAAO,OAAO;AAChB;AACA,aAAa,CAAC,WAAW,GAAG,QAAQ;AAC/B,MAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE;AAC5C,EAAE,MAAM,EAAE,YAAY;AACtB,EAAE,MAAM,EAAE,YAAY;AACtB,EAAE,OAAO,EAAE,aAAa;AACxB,EAAE,YAAY,EAAE;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-
|
|
1
|
+
export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader, D as default } from './Dialog-CL3bfZuB.js';
|
|
2
2
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useTrackingId } from './useTrackingId.js';
|
|
4
|
-
import { D as Drawer$1, a as DrawerCancelButton$1, b as DrawerFooter$1, c as DrawerHeader$1, d as DrawerContent$1 } from './Drawer-
|
|
4
|
+
import { D as Drawer$1, a as DrawerCancelButton$1, b as DrawerFooter$1, c as DrawerHeader$1, d as DrawerContent$1 } from './Drawer-UQlX-LQG-BSCnMRad.js';
|
|
5
5
|
import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
|
|
6
6
|
|
|
7
7
|
const DrawerElement = forwardRef(
|
|
@@ -63,4 +63,4 @@ const Drawer = Object.assign(DrawerElement, {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
export { Drawer as D, DrawerCancelButton as a, DrawerFooter as b, DrawerHeader as c, DrawerContent as d };
|
|
66
|
-
//# sourceMappingURL=Drawer-
|
|
66
|
+
//# sourceMappingURL=Drawer-8nHrKktU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer-
|
|
1
|
+
{"version":3,"file":"Drawer-8nHrKktU.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\nexport type DrawerProps = CoreDrawerProps;\nexport type DrawerCancelButtonProps = CoreDrawerCancelButtonProps &\n DataTrackingId;\nexport type DrawerFooterProps = CoreDrawerFooterProps;\nexport type DrawerHeaderProps = CoreDrawerHeaderProps & DataTrackingId;\nexport type DrawerContentProps = CoreDrawerContentProps;\n\nconst DrawerElement = forwardRef(\n (props: DrawerProps, ref: Ref<HTMLDialogElement>) => {\n return <CoreDrawer ref={ref} {...props} />;\n },\n);\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);\n\nexport const DrawerFooter = forwardRef(\n (props: DrawerFooterProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerFooter ref={ref} {...props} />;\n },\n);\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);\n\nexport const DrawerContent = forwardRef(\n (props: DrawerContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreDrawerContent ref={ref} {...props} />;\n },\n);\n\nexport const Drawer = Object.assign(DrawerElement, {\n Header: DrawerHeader,\n Footer: DrawerFooter,\n Content: DrawerContent,\n CancelButton: DrawerCancelButton,\n});\n"],"names":["CoreDrawer","CoreDrawerCancelButton","CoreDrawerFooter","CoreDrawerHeader","CoreDrawerContent"],"mappings":";;;;;;AAwBA,MAAM,aAAgB,GAAA,UAAA;AAAA,EACpB,CAAC,OAAoB,GAAgC,KAAA;AACnD,IAAA,uBAAQ,GAAA,CAAAA,QAAA,EAAA,E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