@servicetitan/anvil2 1.26.7 → 1.26.9
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 +18 -0
- package/dist/{Combobox-DjLD0Tyw.js → Combobox-S48JowFO.js} +2 -2
- package/dist/{Combobox-DjLD0Tyw.js.map → Combobox-S48JowFO.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-CAHghF_Q.js → DateField-DzfLCoBM.js} +3 -3
- package/dist/{DateField-CAHghF_Q.js.map → DateField-DzfLCoBM.js.map} +1 -1
- package/dist/DateField.js +1 -1
- package/dist/{InputMask-Dw6x00X2-BWGMkPPc.js → InputMask-Bo9X7noG-D0gwOp_H.js} +2 -2
- package/dist/{InputMask-Dw6x00X2-BWGMkPPc.js.map → InputMask-Bo9X7noG-D0gwOp_H.js.map} +1 -1
- package/dist/{InputMask-7qK57OBb.js → InputMask-eNByvbHR.js} +2 -2
- package/dist/{InputMask-7qK57OBb.js.map → InputMask-eNByvbHR.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{Label-SvFLR3c6-_IPpHs_F.js → Label-BOKFSuTL-D0AVgX_2.js} +3 -3
- package/dist/{Label-SvFLR3c6-_IPpHs_F.js.map → Label-BOKFSuTL-D0AVgX_2.js.map} +1 -1
- package/dist/{Page-CidgbHcf.js → Page-BF9zsIqM.js} +2 -2
- package/dist/{Page-CidgbHcf.js.map → Page-BF9zsIqM.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{ProgressBar-DWTzw2iA.js → ProgressBar-BaEj9lkp.js} +2 -2
- package/dist/{ProgressBar-DWTzw2iA.js.map → ProgressBar-BaEj9lkp.js.map} +1 -1
- package/dist/{ProgressBar-BscwJegu-B8smpeOp.js → ProgressBar-ZmjhIWAz-DaxHGw2H.js} +3 -3
- package/dist/{ProgressBar-BscwJegu-B8smpeOp.js.map → ProgressBar-ZmjhIWAz-DaxHGw2H.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/SegmentedControl-ahC8vXbk.js.map +1 -1
- package/dist/Stepper-DE_jtDku.js.map +1 -1
- package/dist/Tab-D9fCuiyt.js.map +1 -1
- package/dist/{TextField-DeKwwdAA-BcQU0VTZ.js → TextField-C6JAPlC5-BZNF_nlP.js} +2 -2
- package/dist/{TextField-DeKwwdAA-BcQU0VTZ.js.map → TextField-C6JAPlC5-BZNF_nlP.js.map} +1 -1
- package/dist/{TextField-3Va2A-t2.js → TextField-DfzdZAmM.js} +2 -2
- package/dist/{TextField-3Va2A-t2.js.map → TextField-DfzdZAmM.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-D0KstCG1.js → Textarea-DZpB1hRv.js} +2 -2
- package/dist/{Textarea-D0KstCG1.js.map → Textarea-DZpB1hRv.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Tooltip-DRNywG91.js → Tooltip-BIs_uS1M.js} +2 -2
- package/dist/{Tooltip-DRNywG91.js.map → Tooltip-BIs_uS1M.js.map} +1 -1
- package/dist/{Tooltip-Dlu3HNfI-Bj9AmPgN.js → Tooltip-BrXGQC3o-l5WSkiOM.js} +19 -11
- package/dist/Tooltip-BrXGQC3o-l5WSkiOM.js.map +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/index.js +9 -9
- package/dist/{toast-BVHe-A2D.js → toast-DSXvvfM4.js} +2 -2
- package/dist/{toast-BVHe-A2D.js.map → toast-DSXvvfM4.js.map} +1 -1
- package/package.json +2 -2
- package/dist/Tooltip-Dlu3HNfI-Bj9AmPgN.js.map +0 -1
- /package/dist/{Label-SvFLR3c6.css → Label-BOKFSuTL.css} +0 -0
- /package/dist/{ProgressBar-BscwJegu.css → ProgressBar-ZmjhIWAz.css} +0 -0
- /package/dist/{Tooltip-Dlu3HNfI.css → Tooltip-BrXGQC3o.css} +0 -0
package/dist/Tab-D9fCuiyt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab-D9fCuiyt.js","sources":["../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs","../../hammer-icon/mdi/round/arrow_back.svg","../../hammer-icon/mdi/round/arrow_forward.svg","../../hammer-react/dist/Tab-DGP67mqr.js","../src/components/Tab/Tab.tsx"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = parent instanceof HTMLElement ? parent.offsetWidth || 0 : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useCallback, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const memoizedOnExitComplete = useCallback((childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n }, [presenceChildren, onExitComplete]);\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: memoizedOnExitComplete,\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout\n ? [Math.random(), memoizedOnExitComplete]\n : [isPresent, memoizedOnExitComplete]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender === null || forceRender === void 0 ? void 0 : forceRender();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && (safeToRemove === null || safeToRemove === void 0 ? void 0 : safeToRemove());\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n","import * as React from \"react\";\nconst SvgArrowBack = (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: \"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z\" }));\nexport default SvgArrowBack;\n","import * as React from \"react\";\nconst SvgArrowForward = (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: \"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z\" }));\nexport default SvgArrowForward;\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useRef, useContext, useState, useCallback, useLayoutEffect, createContext, useId, useEffect, useMemo } from 'react';\nimport cx from 'classnames';\nimport ArrowBack from '@servicetitan/hammer-icon/mdi/round/arrow_back.svg';\nimport ArrowForward from '@servicetitan/hammer-icon/mdi/round/arrow_forward.svg';\nimport { I as Icon } from './Icon-BgNIrmZM.js';\nimport { useReducedMotion, motion, AnimatePresence } from '/Users/ryandelatorre/ServiceTitan/blacksmith/node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/motion/lib/react.mjs';\nimport { core } from '@servicetitan/hammer-token';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\n\nimport './Tab.css';const tab = \"_tab_1g6uy_3\";\nconst inner = \"_inner_1g6uy_71\";\nconst indicator = \"_indicator_1g6uy_84\";\nconst scroller = \"_scroller_1g6uy_118\";\nconst right = \"_right_1g6uy_126\";\nconst left = \"_left_1g6uy_126\";\nconst fill = \"_fill_1g6uy_149\";\nconst styles = {\n\ttab: tab,\n\t\"tab-panel\": \"_tab-panel_1g6uy_16\",\n\t\"tab-button\": \"_tab-button_1g6uy_17\",\n\t\"tab-list\": \"_tab-list_1g6uy_18\",\n\t\"overflow-prev\": \"_overflow-prev_1g6uy_31\",\n\t\"overflow-next\": \"_overflow-next_1g6uy_32\",\n\tinner: inner,\n\tindicator: indicator,\n\tscroller: scroller,\n\tright: right,\n\tleft: left,\n\tfill: fill\n};\n\nconst TabButton = forwardRef(\n (props, ref) => {\n const buttonRef = useRef(null);\n const shouldReduceMotion = useReducedMotion();\n const {\n current,\n items,\n setCurrent,\n focus,\n setFocus,\n onKeyDownHandler: focusController,\n uid\n } = useContext(TabContext);\n const {\n onClick,\n children,\n onFocus,\n onKeyDown,\n controls,\n id,\n className,\n style,\n ...rest\n } = props;\n const index = items && Array.prototype.indexOf.call(items, buttonRef.current);\n const onClickHandler = (e) => {\n if (index === undefined) return;\n onClick?.(e, index);\n setCurrent?.(index);\n setFocus?.(index);\n items?.[index].focus();\n };\n const onKeyDownHandler = (e) => {\n focusController?.(e);\n onKeyDown?.(e);\n };\n const tabButtonClassNames = cx(styles[\"tab-button\"], className);\n return /* @__PURE__ */ jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"tab-button\",\n id,\n className: tabButtonClassNames,\n \"aria-selected\": items?.[current].id === id,\n \"aria-controls\": controls,\n onClick: onClickHandler,\n onKeyDown: onKeyDownHandler,\n tabIndex: items?.[focus].id === id ? 0 : -1,\n ...rest,\n ref: useMergeRefs([buttonRef, ref]),\n children: [\n /* @__PURE__ */ jsx(\"span\", { className: styles[\"inner\"], children }),\n items?.[current].id === id && /* @__PURE__ */ jsx(\n motion.span,\n {\n layoutId: uid,\n className: styles[\"indicator\"],\n transition: {\n duration: shouldReduceMotion ? 0 : +core.primitive.Duration.value.replace(\"ms\", \"\") / 1e3\n }\n }\n )\n ]\n }\n );\n }\n);\nTabButton.displayName = \"TabButton\";\n\nconst TabList = forwardRef(\n (props, ref) => {\n const { className, children, onKeyDown, ...rest } = props;\n const { goToPrev, gotoNext, dir, items, current } = useContext(TabContext);\n const [leftOverflow, setLeftOverflow] = useState(false);\n const [rightOverflow, setRightOverflow] = useState(false);\n const scrollRef = useRef(null);\n const [indicatorPos, setIndicatorPos] = useState();\n const calculateOverflow = useCallback(\n (el) => {\n const leftOverflows = dir === \"ltr\" ? el.scrollLeft > 0 : el.scrollLeft > el.offsetWidth - el.scrollWidth + 1;\n const rightOverflows = dir === \"ltr\" ? el.scrollLeft < el.scrollWidth - el.offsetWidth : el.scrollLeft < 0;\n setLeftOverflow(leftOverflows);\n setRightOverflow(rightOverflows);\n },\n [dir]\n );\n useLayoutEffect(() => {\n if (!scrollRef.current) return;\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n calculateOverflow(entry.target);\n }\n });\n observer.observe(scrollRef.current);\n return () => {\n observer.disconnect();\n };\n }, [calculateOverflow]);\n const overflowPosition = (e) => {\n const target = e.target;\n calculateOverflow(target);\n };\n const tabListClassNames = cx(styles[\"tab-list\"], className);\n const scrollerClassNames = cx(styles[\"scroller\"], {\n [styles[\"left\"]]: leftOverflow,\n [styles[\"right\"]]: rightOverflow\n });\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n ...rest,\n className: tabListClassNames,\n \"data-anv\": \"tab-list\",\n ref,\n children: [\n (dir === \"ltr\" ? leftOverflow : rightOverflow) && /* @__PURE__ */ jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => goToPrev?.(false),\n className: styles[\"overflow-prev\"],\n \"aria-label\": \"Previous tab\",\n children: /* @__PURE__ */ jsx(Icon, { svg: ArrowBack, \"aria-hidden\": true, size: \"medium\" })\n }\n ),\n /* @__PURE__ */ jsxs(\n \"div\",\n {\n onScroll: overflowPosition,\n className: scrollerClassNames,\n role: \"tablist\",\n ref: scrollRef,\n children: [\n children,\n /* @__PURE__ */ jsx(\n \"span\",\n {\n className: styles[\"indicator\"],\n style: {\n insetInlineStart: dir === \"ltr\" ? indicatorPos?.left : undefined,\n insetInlineEnd: dir === \"rtl\" ? indicatorPos?.left : undefined,\n width: indicatorPos?.width\n }\n }\n )\n ]\n }\n ),\n (dir === \"ltr\" ? rightOverflow : leftOverflow) && /* @__PURE__ */ jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => gotoNext?.(false),\n className: styles[\"overflow-next\"],\n \"aria-label\": \"Next tab\",\n children: /* @__PURE__ */ jsx(Icon, { svg: ArrowForward, \"aria-hidden\": true, size: \"medium\" })\n }\n )\n ]\n }\n );\n }\n);\nTabList.displayName = \"TabList\";\n\nconst TabPanel = forwardRef(\n (props, ref) => {\n const { id, className, style, ...rest } = props;\n const { current, items } = useContext(TabContext);\n let labelledby;\n items?.forEach((el, i) => {\n const controlId = el.getAttribute(\"aria-controls\");\n if (controlId === id) {\n labelledby = el.id;\n }\n });\n const currentId = items?.[current]?.getAttribute(\"aria-controls\");\n const isCurrent = currentId === id;\n const tabPanelClassNames = cx(styles[\"tab-panel\"], className);\n if (!isCurrent) return null;\n return /* @__PURE__ */ jsx(\n motion.div,\n {\n className: tabPanelClassNames,\n transition: {\n opacity: {\n duration: +core.primitive.DurationSlow.value.replace(\"ms\", \"\") / 1e3\n }\n },\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: { opacity: 0 },\n layout: true,\n ...rest,\n role: \"tabpanel\",\n \"data-anv\": \"tab-panel\",\n id,\n \"aria-labelledby\": labelledby,\n tabIndex: 0,\n ref\n }\n );\n }\n);\nTabPanel.displayName = \"TabPanel\";\n\nconst initialValue = {\n current: 0,\n focus: 0\n};\nconst TabContext = createContext(initialValue);\nconst TabElement = forwardRef((props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const { defaultIndex, className, style, fill, ...rest } = componentProps;\n const tabRef = useRef(null);\n const [items, setItems] = useState();\n const [current, setCurrent] = useState(defaultIndex ?? 0);\n const [focus, setFocus] = useState(defaultIndex ?? 0);\n const [dir, setDir] = useState(\"ltr\");\n const tabClassNames = cx(styles[\"tab\"], className, {\n [styles[\"fill\"]]: fill\n });\n const uid = useId();\n useEffect(() => {\n setItems(tabRef.current?.querySelectorAll(\"[role=tab]:not([disabled])\"));\n }, [tabRef]);\n useEffect(() => {\n if (tabRef.current?.closest(\"[dir]\")?.getAttribute(\"dir\") === \"rtl\") {\n setDir(\"rtl\");\n } else {\n setDir(\"ltr\");\n }\n }, []);\n useEffect(() => {\n if (!tabRef.current) return;\n const mutationCallback = () => {\n setItems(tabRef.current?.querySelectorAll(\"[role=tab]:not([disabled])\"));\n };\n const observer = new MutationObserver(mutationCallback);\n observer.observe(tabRef.current, {\n childList: true,\n // Observe changes to child elements\n subtree: true,\n // Observe changes to descendants of the target\n attributes: true,\n // Observe changes to attributes\n characterData: true\n // Observe changes to text content\n });\n return () => {\n observer.disconnect();\n };\n }, []);\n const styleCombined = {\n ...style,\n ...layoutStyles\n };\n const focusScroller = (node) => {\n node?.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n };\n const gotoNext = useCallback(\n (refocus = true) => {\n if (focus + 1 === items?.length) {\n setFocus?.(0);\n items?.[0].focus();\n focusScroller(items?.[0]);\n return;\n }\n setFocus?.(focus + 1);\n items?.[focus + 1].focus();\n focusScroller(items?.[focus + 1]);\n },\n [focus, items]\n );\n const goToPrev = useCallback(\n (refocus = true) => {\n if (focus === 0) {\n const lastItemIndex = items ? items?.length - 1 : 0;\n setFocus?.(lastItemIndex);\n items?.[lastItemIndex].focus();\n focusScroller(items?.[lastItemIndex]);\n return;\n }\n setFocus?.(focus - 1);\n items?.[focus - 1].focus();\n focusScroller(items?.[focus - 1]);\n },\n [focus, items]\n );\n const onKeyDownHandler = useCallback(\n (e) => {\n switch (e.code) {\n case \"Enter\":\n case \"Space\":\n setCurrent?.(focus);\n break;\n case \"ArrowRight\":\n e.preventDefault();\n dir === \"ltr\" ? gotoNext() : goToPrev();\n break;\n case \"ArrowLeft\":\n e.preventDefault();\n dir === \"ltr\" ? goToPrev() : gotoNext();\n break;\n }\n },\n [dir, focus, goToPrev, gotoNext]\n );\n const value = useMemo(\n () => ({\n current,\n setCurrent,\n focus,\n setFocus,\n items,\n uid,\n onKeyDownHandler,\n gotoNext,\n goToPrev,\n dir\n }),\n [current, focus, goToPrev, gotoNext, items, onKeyDownHandler, uid, dir]\n );\n return /* @__PURE__ */ jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: /* @__PURE__ */ jsx(\n motion.div,\n {\n transition: { duration: 0 },\n layout: true,\n className: tabClassNames,\n \"data-anv\": \"tab\",\n style: styleCombined,\n ...rest,\n ref: useMergeRefs([tabRef, ref])\n }\n ) }) });\n});\nTabElement.displayName = \"Tab\";\nconst Tab = Object.assign(TabElement, {\n Button: TabButton,\n List: TabList,\n Panel: TabPanel\n});\n\nexport { Tab as T, TabList as a, TabButton as b, TabPanel as c };\n//# sourceMappingURL=Tab-DGP67mqr.js.map\n","import {\n TabProps as CoreTabProps,\n Tab as CoreTab,\n TabListProps as CoreTabListProps,\n TabList as CoreTabList,\n TabButtonProps as CoreTabButtonProps,\n TabButton as CoreTabButton,\n TabPanelProps as CoreTabPanelProps,\n TabPanel as CoreTabPanel,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type TabProps = CoreTabProps;\nexport type TabListProps = CoreTabListProps;\nexport type TabButtonProps = CoreTabButtonProps & DataTrackingId;\nexport type TabPanelProps = CoreTabPanelProps;\n\nconst TabElement = forwardRef((props: TabProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTab ref={ref} {...props} />;\n});\nexport const TabButton = forwardRef(\n (props: TabButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n id: props.id,\n controls: props.controls,\n };\n\n const trackingId = useTrackingId({\n name: \"TabButton\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreTabButton ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\nexport const TabList = forwardRef(\n (props: TabListProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTabList ref={ref} {...props} />;\n },\n);\nexport const TabPanel = forwardRef(\n (props: TabPanelProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTabPanel ref={ref} {...props} />;\n },\n);\n\nexport const Tab = Object.assign(TabElement, {\n Button: TabButton,\n List: TabList,\n Panel: TabPanel,\n});\n"],"names":["TabButton","index","core.primitive.Duration","TabList","ArrowBack","ArrowForward","TabPanel","core.primitive.DurationSlow","TabElement","Tab","CoreTab","CoreTabButton","CoreTabList","CoreTabPanel"],"mappings":";;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA,MAAM,eAAe,SAAS,KAAK,CAAC,SAAS,CAAC;AAC9C,IAAI,uBAAuB,CAAC,SAAS,EAAE;AACvC,QAAQ,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO;AACnD,QAAQ,IAAI,OAAO,IAAI,SAAS,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AACrE,YAAY,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY;AAC/C,YAAY,MAAM,WAAW,GAAG,MAAM,YAAY,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC;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AAA,KACxC,CAAA;AACD,IAAA,2BAAQC,WAAc,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7E;AACO,MAAM,OAAU,GAAA,UAAA;AAAA,EACrB,CAAC,OAAqB,GAA6B,KAAA;AACjD,IAAA,uBAAQ,GAAA,CAAAC,SAAA,EAAA,EAAY,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7C;AACO,MAAM,QAAW,GAAA,UAAA;AAAA,EACtB,CAAC,OAAsB,GAA6B,KAAA;AAClD,IAAA,uBAAQ,GAAA,CAAAC,UAAA,EAAA,EAAa,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAE9C;AAEa,MAAA,GAAA,GAAM,MAAO,CAAA,MAAA,CAAO,UAAY,EAAA;AAAA,EAC3C,MAAQ,EAAA,SAAA;AAAA,EACR,IAAM,EAAA,OAAA;AAAA,EACN,KAAO,EAAA;AACT,CAAC;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"Tab-D9fCuiyt.js","sources":["../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../../../node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs","../../hammer-icon/mdi/round/arrow_back.svg","../../hammer-icon/mdi/round/arrow_forward.svg","../../hammer-react/dist/Tab-Ca-FwvZ5.js","../src/components/Tab/Tab.tsx"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = parent instanceof HTMLElement ? parent.offsetWidth || 0 : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useCallback, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const memoizedOnExitComplete = useCallback((childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n }, [presenceChildren, onExitComplete]);\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: memoizedOnExitComplete,\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout\n ? [Math.random(), memoizedOnExitComplete]\n : [isPresent, memoizedOnExitComplete]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender === null || forceRender === void 0 ? void 0 : forceRender();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && (safeToRemove === null || safeToRemove === void 0 ? void 0 : safeToRemove());\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n","import * as React from \"react\";\nconst SvgArrowBack = (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: \"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z\" }));\nexport default SvgArrowBack;\n","import * as React from \"react\";\nconst SvgArrowForward = (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: \"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z\" }));\nexport default SvgArrowForward;\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useRef, useContext, useState, useCallback, useLayoutEffect, createContext, useId, useEffect, useMemo } from 'react';\nimport cx from 'classnames';\nimport ArrowBack from '@servicetitan/hammer-icon/mdi/round/arrow_back.svg';\nimport ArrowForward from '@servicetitan/hammer-icon/mdi/round/arrow_forward.svg';\nimport { I as Icon } from './Icon-BgNIrmZM.js';\nimport { useReducedMotion, motion, AnimatePresence } from '/home/runner/work/hammer/hammer/node_modules/.pnpm/motion@12.4.10_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/motion/lib/react.mjs';\nimport { core } from '@servicetitan/hammer-token';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\n\nimport './Tab.css';const tab = \"_tab_1g6uy_3\";\nconst inner = \"_inner_1g6uy_71\";\nconst indicator = \"_indicator_1g6uy_84\";\nconst scroller = \"_scroller_1g6uy_118\";\nconst right = \"_right_1g6uy_126\";\nconst left = \"_left_1g6uy_126\";\nconst fill = \"_fill_1g6uy_149\";\nconst styles = {\n\ttab: tab,\n\t\"tab-panel\": \"_tab-panel_1g6uy_16\",\n\t\"tab-button\": \"_tab-button_1g6uy_17\",\n\t\"tab-list\": \"_tab-list_1g6uy_18\",\n\t\"overflow-prev\": \"_overflow-prev_1g6uy_31\",\n\t\"overflow-next\": \"_overflow-next_1g6uy_32\",\n\tinner: inner,\n\tindicator: indicator,\n\tscroller: scroller,\n\tright: right,\n\tleft: left,\n\tfill: fill\n};\n\nconst TabButton = forwardRef(\n (props, ref) => {\n const buttonRef = useRef(null);\n const shouldReduceMotion = useReducedMotion();\n const {\n current,\n items,\n setCurrent,\n focus,\n setFocus,\n onKeyDownHandler: focusController,\n uid\n } = useContext(TabContext);\n const {\n onClick,\n children,\n onFocus,\n onKeyDown,\n controls,\n id,\n className,\n style,\n ...rest\n } = props;\n const index = items && Array.prototype.indexOf.call(items, buttonRef.current);\n const onClickHandler = (e) => {\n if (index === undefined) return;\n onClick?.(e, index);\n setCurrent?.(index);\n setFocus?.(index);\n items?.[index].focus();\n };\n const onKeyDownHandler = (e) => {\n focusController?.(e);\n onKeyDown?.(e);\n };\n const tabButtonClassNames = cx(styles[\"tab-button\"], className);\n return /* @__PURE__ */ jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"tab-button\",\n id,\n className: tabButtonClassNames,\n \"aria-selected\": items?.[current].id === id,\n \"aria-controls\": controls,\n onClick: onClickHandler,\n onKeyDown: onKeyDownHandler,\n tabIndex: items?.[focus].id === id ? 0 : -1,\n ...rest,\n ref: useMergeRefs([buttonRef, ref]),\n children: [\n /* @__PURE__ */ jsx(\"span\", { className: styles[\"inner\"], children }),\n items?.[current].id === id && /* @__PURE__ */ jsx(\n motion.span,\n {\n layoutId: uid,\n className: styles[\"indicator\"],\n transition: {\n duration: shouldReduceMotion ? 0 : +core.primitive.Duration.value.replace(\"ms\", \"\") / 1e3\n }\n }\n )\n ]\n }\n );\n }\n);\nTabButton.displayName = \"TabButton\";\n\nconst TabList = forwardRef(\n (props, ref) => {\n const { className, children, onKeyDown, ...rest } = props;\n const { goToPrev, gotoNext, dir, items, current } = useContext(TabContext);\n const [leftOverflow, setLeftOverflow] = useState(false);\n const [rightOverflow, setRightOverflow] = useState(false);\n const scrollRef = useRef(null);\n const [indicatorPos, setIndicatorPos] = useState();\n const calculateOverflow = useCallback(\n (el) => {\n const leftOverflows = dir === \"ltr\" ? el.scrollLeft > 0 : el.scrollLeft > el.offsetWidth - el.scrollWidth + 1;\n const rightOverflows = dir === \"ltr\" ? el.scrollLeft < el.scrollWidth - el.offsetWidth : el.scrollLeft < 0;\n setLeftOverflow(leftOverflows);\n setRightOverflow(rightOverflows);\n },\n [dir]\n );\n useLayoutEffect(() => {\n if (!scrollRef.current) return;\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n calculateOverflow(entry.target);\n }\n });\n observer.observe(scrollRef.current);\n return () => {\n observer.disconnect();\n };\n }, [calculateOverflow]);\n const overflowPosition = (e) => {\n const target = e.target;\n calculateOverflow(target);\n };\n const tabListClassNames = cx(styles[\"tab-list\"], className);\n const scrollerClassNames = cx(styles[\"scroller\"], {\n [styles[\"left\"]]: leftOverflow,\n [styles[\"right\"]]: rightOverflow\n });\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n ...rest,\n className: tabListClassNames,\n \"data-anv\": \"tab-list\",\n ref,\n children: [\n (dir === \"ltr\" ? leftOverflow : rightOverflow) && /* @__PURE__ */ jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => goToPrev?.(false),\n className: styles[\"overflow-prev\"],\n \"aria-label\": \"Previous tab\",\n children: /* @__PURE__ */ jsx(Icon, { svg: ArrowBack, \"aria-hidden\": true, size: \"medium\" })\n }\n ),\n /* @__PURE__ */ jsxs(\n \"div\",\n {\n onScroll: overflowPosition,\n className: scrollerClassNames,\n role: \"tablist\",\n ref: scrollRef,\n children: [\n children,\n /* @__PURE__ */ jsx(\n \"span\",\n {\n className: styles[\"indicator\"],\n style: {\n insetInlineStart: dir === \"ltr\" ? indicatorPos?.left : undefined,\n insetInlineEnd: dir === \"rtl\" ? indicatorPos?.left : undefined,\n width: indicatorPos?.width\n }\n }\n )\n ]\n }\n ),\n (dir === \"ltr\" ? rightOverflow : leftOverflow) && /* @__PURE__ */ jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => gotoNext?.(false),\n className: styles[\"overflow-next\"],\n \"aria-label\": \"Next tab\",\n children: /* @__PURE__ */ jsx(Icon, { svg: ArrowForward, \"aria-hidden\": true, size: \"medium\" })\n }\n )\n ]\n }\n );\n }\n);\nTabList.displayName = \"TabList\";\n\nconst TabPanel = forwardRef(\n (props, ref) => {\n const { id, className, style, ...rest } = props;\n const { current, items } = useContext(TabContext);\n let labelledby;\n items?.forEach((el, i) => {\n const controlId = el.getAttribute(\"aria-controls\");\n if (controlId === id) {\n labelledby = el.id;\n }\n });\n const currentId = items?.[current]?.getAttribute(\"aria-controls\");\n const isCurrent = currentId === id;\n const tabPanelClassNames = cx(styles[\"tab-panel\"], className);\n if (!isCurrent) return null;\n return /* @__PURE__ */ jsx(\n motion.div,\n {\n className: tabPanelClassNames,\n transition: {\n opacity: {\n duration: +core.primitive.DurationSlow.value.replace(\"ms\", \"\") / 1e3\n }\n },\n initial: { opacity: 0 },\n animate: { opacity: 1 },\n exit: { opacity: 0 },\n layout: true,\n ...rest,\n role: \"tabpanel\",\n \"data-anv\": \"tab-panel\",\n id,\n \"aria-labelledby\": labelledby,\n tabIndex: 0,\n ref\n }\n );\n }\n);\nTabPanel.displayName = \"TabPanel\";\n\nconst initialValue = {\n current: 0,\n focus: 0\n};\nconst TabContext = createContext(initialValue);\nconst TabElement = forwardRef((props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const { defaultIndex, className, style, fill, ...rest } = componentProps;\n const tabRef = useRef(null);\n const [items, setItems] = useState();\n const [current, setCurrent] = useState(defaultIndex ?? 0);\n const [focus, setFocus] = useState(defaultIndex ?? 0);\n const [dir, setDir] = useState(\"ltr\");\n const tabClassNames = cx(styles[\"tab\"], className, {\n [styles[\"fill\"]]: fill\n });\n const uid = useId();\n useEffect(() => {\n setItems(tabRef.current?.querySelectorAll(\"[role=tab]:not([disabled])\"));\n }, [tabRef]);\n useEffect(() => {\n if (tabRef.current?.closest(\"[dir]\")?.getAttribute(\"dir\") === \"rtl\") {\n setDir(\"rtl\");\n } else {\n setDir(\"ltr\");\n }\n }, []);\n useEffect(() => {\n if (!tabRef.current) return;\n const mutationCallback = () => {\n setItems(tabRef.current?.querySelectorAll(\"[role=tab]:not([disabled])\"));\n };\n const observer = new MutationObserver(mutationCallback);\n observer.observe(tabRef.current, {\n childList: true,\n // Observe changes to child elements\n subtree: true,\n // Observe changes to descendants of the target\n attributes: true,\n // Observe changes to attributes\n characterData: true\n // Observe changes to text content\n });\n return () => {\n observer.disconnect();\n };\n }, []);\n const styleCombined = {\n ...style,\n ...layoutStyles\n };\n const focusScroller = (node) => {\n node?.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n };\n const gotoNext = useCallback(\n (refocus = true) => {\n if (focus + 1 === items?.length) {\n setFocus?.(0);\n items?.[0].focus();\n focusScroller(items?.[0]);\n return;\n }\n setFocus?.(focus + 1);\n items?.[focus + 1].focus();\n focusScroller(items?.[focus + 1]);\n },\n [focus, items]\n );\n const goToPrev = useCallback(\n (refocus = true) => {\n if (focus === 0) {\n const lastItemIndex = items ? items?.length - 1 : 0;\n setFocus?.(lastItemIndex);\n items?.[lastItemIndex].focus();\n focusScroller(items?.[lastItemIndex]);\n return;\n }\n setFocus?.(focus - 1);\n items?.[focus - 1].focus();\n focusScroller(items?.[focus - 1]);\n },\n [focus, items]\n );\n const onKeyDownHandler = useCallback(\n (e) => {\n switch (e.code) {\n case \"Enter\":\n case \"Space\":\n setCurrent?.(focus);\n break;\n case \"ArrowRight\":\n e.preventDefault();\n dir === \"ltr\" ? gotoNext() : goToPrev();\n break;\n case \"ArrowLeft\":\n e.preventDefault();\n dir === \"ltr\" ? goToPrev() : gotoNext();\n break;\n }\n },\n [dir, focus, goToPrev, gotoNext]\n );\n const value = useMemo(\n () => ({\n current,\n setCurrent,\n focus,\n setFocus,\n items,\n uid,\n onKeyDownHandler,\n gotoNext,\n goToPrev,\n dir\n }),\n [current, focus, goToPrev, gotoNext, items, onKeyDownHandler, uid, dir]\n );\n return /* @__PURE__ */ jsx(TabContext.Provider, { value, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: /* @__PURE__ */ jsx(\n motion.div,\n {\n transition: { duration: 0 },\n layout: true,\n className: tabClassNames,\n \"data-anv\": \"tab\",\n style: styleCombined,\n ...rest,\n ref: useMergeRefs([tabRef, ref])\n }\n ) }) });\n});\nTabElement.displayName = \"Tab\";\nconst Tab = Object.assign(TabElement, {\n Button: TabButton,\n List: TabList,\n Panel: TabPanel\n});\n\nexport { Tab as T, TabList as a, TabButton as b, TabPanel as c };\n//# sourceMappingURL=Tab-Ca-FwvZ5.js.map\n","import {\n TabProps as CoreTabProps,\n Tab as CoreTab,\n TabListProps as CoreTabListProps,\n TabList as CoreTabList,\n TabButtonProps as CoreTabButtonProps,\n TabButton as CoreTabButton,\n TabPanelProps as CoreTabPanelProps,\n TabPanel as CoreTabPanel,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type TabProps = CoreTabProps;\nexport type TabListProps = CoreTabListProps;\nexport type TabButtonProps = CoreTabButtonProps & DataTrackingId;\nexport type TabPanelProps = CoreTabPanelProps;\n\nconst TabElement = forwardRef((props: TabProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTab ref={ref} {...props} />;\n});\nexport const TabButton = forwardRef(\n (props: TabButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n id: props.id,\n controls: props.controls,\n };\n\n const trackingId = useTrackingId({\n name: \"TabButton\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreTabButton ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\nexport const TabList = forwardRef(\n (props: TabListProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTabList ref={ref} {...props} />;\n },\n);\nexport const TabPanel = forwardRef(\n (props: TabPanelProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTabPanel ref={ref} {...props} />;\n },\n);\n\nexport const Tab = Object.assign(TabElement, {\n Button: TabButton,\n List: TabList,\n Panel: TabPanel,\n});\n"],"names":["TabButton","index","core.primitive.Duration","TabList","ArrowBack","ArrowForward","TabPanel","core.primitive.DurationSlow","TabElement","Tab","CoreTab","CoreTabButton","CoreTabList","CoreTabPanel"],"mappings":";;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA,MAAM,eAAe,SAAS,KAAK,CAAC,SAAS,CAAC;AAC9C,IAAI,uBAAuB,CAAC,SAAS,EAAE;AACvC,QAAQ,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO;AACnD,QAAQ,IAAI,OAAO,IAAI,SAAS,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AACrE,YAAY,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY;AAC/C,YAAY,MAAM,WAAW,GAAG,MAAM,YAAY,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC;AAC3F,YAAY,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;AACnD,YAAY,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,YAAY,IAAI,CAAC;AACnD,YAAY,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,WAAW,IAAI,CAAC;AACjD,YAAY,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,SAAS;AACxC,YAAY,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,UAAU;AAC1C,YAAY,IAAI,CAAC,KAAK,GAAG,WAAW,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI;AAC7D;AACA,QAAQ,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA,IAAI,kBAAkB,GAAG;AACzB,IAAI,MAAM,GAAG;AACb,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ;AAClC;AACA;AACA,SAAS,QAAQ,CAAC,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AA,EACN,KAAO,EAAA;AACT,CAAC;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useState, useId, useRef } from 'react';
|
|
3
3
|
import { c as cx } from './index-tZvMCc77.js';
|
|
4
|
-
import { L as Label } from './Label-
|
|
4
|
+
import { L as Label } from './Label-BOKFSuTL-D0AVgX_2.js';
|
|
5
5
|
import { S as Spinner } from './Spinner-DsuW7OPp-Bct1KVcB.js';
|
|
6
6
|
import { t as textfieldStyles } from './TextField.module-JJ6esEDk-JJ6esEDk.js';
|
|
7
7
|
import { S as SrOnly } from './SrOnly-BXm1DGl3-BJVodjQp.js';
|
|
@@ -163,4 +163,4 @@ const TextFieldElement = forwardRef(
|
|
|
163
163
|
const TextField = Object.assign(TextFieldElement, {});
|
|
164
164
|
|
|
165
165
|
export { TextField as T };
|
|
166
|
-
//# sourceMappingURL=TextField-
|
|
166
|
+
//# sourceMappingURL=TextField-C6JAPlC5-BZNF_nlP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField-DeKwwdAA-BcQU0VTZ.js","sources":["../../hammer-react/dist/TextField-DeKwwdAA.js"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useState, useId, useRef } from 'react';\nimport cx from 'classnames';\nimport { L as Label } from './Label-SvFLR3c6.js';\nimport { S as Spinner } from './Spinner-DsuW7OPp.js';\nimport { t as textfieldStyles } from './TextField.module-JJ6esEDk.js';\nimport { S as SrOnly } from './SrOnly-BXm1DGl3.js';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport { H as Helper } from './Helper-D1wqxi-n.js';\n\nconst TextFieldElement = forwardRef(\n function TextField2(props, ref) {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n className,\n error,\n errorAriaLive: errorAriaLiveProp = \"assertive\",\n label,\n moreInfo,\n prefix,\n suffix,\n size,\n type = \"text\",\n required,\n onChange,\n onFocus,\n onBlur,\n id: idProp,\n description,\n hint,\n showCounter,\n maxLength,\n loading,\n disabled,\n labelProps,\n style,\n placeholder,\n ...rest\n } = componentProps;\n const defaultLength = typeof rest.defaultValue === \"string\" || typeof rest.defaultValue === \"number\" ? `${rest.defaultValue}`.length : 0;\n const [length, setLength] = useState(defaultLength);\n const [isTyping, setIsTyping] = useState(false);\n const [openInfo, setOpenInfo] = useState(false);\n const [errorAriaLive, setErrorAriaLive] = useState(\"off\");\n const onChangeHandler = (e) => {\n onChange?.(e);\n if (length !== e.target.value.length) {\n setIsTyping(true);\n }\n setLength(e.target.value.length);\n };\n const focusHandler = (e) => {\n onFocus?.(e);\n setOpenInfo(true);\n setErrorAriaLive(errorAriaLiveProp);\n };\n const blurHandler = (e) => {\n onBlur?.(e);\n setOpenInfo(false);\n setErrorAriaLive(\"off\");\n };\n const labelUid = useId();\n const id = idProp ?? labelUid;\n const prefixUid = useId();\n const suffixUid = useId();\n const helperUid = useId();\n const placeholderUid = useId();\n const inputRef = useRef(null);\n const errorMessage = typeof error !== \"boolean\" ? error : undefined;\n const styleCombined = { ...style, ...layoutStyles };\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: cx(textfieldStyles[\"textfield\"], className),\n \"data-anv\": \"textfield\",\n style: styleCombined,\n children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n moreInfo,\n openMoreInfo: openInfo,\n required,\n htmlFor: id,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: cx(textfieldStyles[\"input-wrapper\"], {\n [textfieldStyles[\"small\"]]: size === \"small\",\n [textfieldStyles[\"large\"]]: size === \"large\"\n }),\n role: \"presentation\",\n onClick: () => inputRef.current?.focus(),\n children: [\n prefix ? /* @__PURE__ */ jsx(\n \"div\",\n {\n \"aria-hidden\": true,\n className: textfieldStyles[\"prefix\"],\n id: `prefix${prefixUid}`,\n children: prefix\n }\n ) : null,\n /* @__PURE__ */ jsx(\n \"input\",\n {\n id,\n className: cx(textfieldStyles[\"input\"], {\n [textfieldStyles[\"error\"]]: error\n }),\n onChange: onChangeHandler,\n onFocus: focusHandler,\n onBlur: blurHandler,\n ref: useMergeRefs([ref, inputRef]),\n required,\n maxLength,\n placeholder,\n type,\n disabled,\n ...rest,\n \"aria-describedby\": [placeholderUid, helperUid].join(\" \"),\n \"aria-invalid\": error ? !!error : undefined\n }\n ),\n loading ? /* @__PURE__ */ jsx(\"div\", { className: textfieldStyles[\"loading-spinner-wrapper\"], children: /* @__PURE__ */ jsx(Spinner, {}) }) : null,\n suffix ? /* @__PURE__ */ jsx(\n \"div\",\n {\n className: textfieldStyles[\"suffix\"],\n \"aria-hidden\": true,\n id: `suffix${suffixUid}`,\n children: suffix\n }\n ) : null\n ]\n }\n ),\n hint || showCounter || errorMessage || description ? /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n maxLength,\n inputLength: length,\n isTyping,\n showCounter,\n errorMessage,\n errorAriaLive,\n description\n }\n ) : null,\n /* @__PURE__ */ jsx(SrOnly, { \"aria-hidden\": true, id: placeholderUid, children: placeholder })\n ]\n }\n );\n }\n);\nconst TextField = Object.assign(TextFieldElement, {});\n\nexport { TextField as T };\n//# sourceMappingURL=TextField-DeKwwdAA.js.map\n"],"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,gBAAgB,GAAG,UAAU;AACnC,EAAE,SAAS,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE;AAClC,IAAI,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC;AACtE,IAAI,MAAM;AACV,MAAM,SAAS;AACf,MAAM,KAAK;AACX,MAAM,aAAa,EAAE,iBAAiB,GAAG,WAAW;AACpD,MAAM,KAAK;AACX,MAAM,QAAQ;AACd,MAAM,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"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useState, useId, useRef } from 'react';\nimport cx from 'classnames';\nimport { L as Label } from './Label-BOKFSuTL.js';\nimport { S as Spinner } from './Spinner-DsuW7OPp.js';\nimport { t as textfieldStyles } from './TextField.module-JJ6esEDk.js';\nimport { S as SrOnly } from './SrOnly-BXm1DGl3.js';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport { H as Helper } from './Helper-D1wqxi-n.js';\n\nconst TextFieldElement = forwardRef(\n function TextField2(props, ref) {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n className,\n error,\n errorAriaLive: errorAriaLiveProp = \"assertive\",\n label,\n moreInfo,\n prefix,\n suffix,\n size,\n type = \"text\",\n required,\n onChange,\n onFocus,\n onBlur,\n id: idProp,\n description,\n hint,\n showCounter,\n maxLength,\n loading,\n disabled,\n labelProps,\n style,\n placeholder,\n ...rest\n } = componentProps;\n const defaultLength = typeof rest.defaultValue === \"string\" || typeof rest.defaultValue === \"number\" ? `${rest.defaultValue}`.length : 0;\n const [length, setLength] = useState(defaultLength);\n const [isTyping, setIsTyping] = useState(false);\n const [openInfo, setOpenInfo] = useState(false);\n const [errorAriaLive, setErrorAriaLive] = useState(\"off\");\n const onChangeHandler = (e) => {\n onChange?.(e);\n if (length !== e.target.value.length) {\n setIsTyping(true);\n }\n setLength(e.target.value.length);\n };\n const focusHandler = (e) => {\n onFocus?.(e);\n setOpenInfo(true);\n setErrorAriaLive(errorAriaLiveProp);\n };\n const blurHandler = (e) => {\n onBlur?.(e);\n setOpenInfo(false);\n setErrorAriaLive(\"off\");\n };\n const labelUid = useId();\n const id = idProp ?? labelUid;\n const prefixUid = useId();\n const suffixUid = useId();\n const helperUid = useId();\n const placeholderUid = useId();\n const inputRef = useRef(null);\n const errorMessage = typeof error !== \"boolean\" ? error : undefined;\n const styleCombined = { ...style, ...layoutStyles };\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: cx(textfieldStyles[\"textfield\"], className),\n \"data-anv\": \"textfield\",\n style: styleCombined,\n children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n moreInfo,\n openMoreInfo: openInfo,\n required,\n htmlFor: id,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: cx(textfieldStyles[\"input-wrapper\"], {\n [textfieldStyles[\"small\"]]: size === \"small\",\n [textfieldStyles[\"large\"]]: size === \"large\"\n }),\n role: \"presentation\",\n onClick: () => inputRef.current?.focus(),\n children: [\n prefix ? /* @__PURE__ */ jsx(\n \"div\",\n {\n \"aria-hidden\": true,\n className: textfieldStyles[\"prefix\"],\n id: `prefix${prefixUid}`,\n children: prefix\n }\n ) : null,\n /* @__PURE__ */ jsx(\n \"input\",\n {\n id,\n className: cx(textfieldStyles[\"input\"], {\n [textfieldStyles[\"error\"]]: error\n }),\n onChange: onChangeHandler,\n onFocus: focusHandler,\n onBlur: blurHandler,\n ref: useMergeRefs([ref, inputRef]),\n required,\n maxLength,\n placeholder,\n type,\n disabled,\n ...rest,\n \"aria-describedby\": [placeholderUid, helperUid].join(\" \"),\n \"aria-invalid\": error ? !!error : undefined\n }\n ),\n loading ? /* @__PURE__ */ jsx(\"div\", { className: textfieldStyles[\"loading-spinner-wrapper\"], children: /* @__PURE__ */ jsx(Spinner, {}) }) : null,\n suffix ? /* @__PURE__ */ jsx(\n \"div\",\n {\n className: textfieldStyles[\"suffix\"],\n \"aria-hidden\": true,\n id: `suffix${suffixUid}`,\n children: suffix\n }\n ) : null\n ]\n }\n ),\n hint || showCounter || errorMessage || description ? /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n maxLength,\n inputLength: length,\n isTyping,\n showCounter,\n errorMessage,\n errorAriaLive,\n description\n }\n ) : null,\n /* @__PURE__ */ jsx(SrOnly, { \"aria-hidden\": true, id: placeholderUid, children: placeholder })\n ]\n }\n );\n }\n);\nconst TextField = Object.assign(TextFieldElement, {});\n\nexport { TextField as T };\n//# sourceMappingURL=TextField-C6JAPlC5.js.map\n"],"names":[],"mappings":";;;;;;;;;;;AAWA,MAAM,gBAAgB,GAAG,UAAU;AACnC,EAAE,SAAS,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE;AAClC,IAAI,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC;AACtE,IAAI,MAAM;AACV,MAAM,SAAS;AACf,MAAM,KAAK;AACX,MAAM,aAAa,EAAE,iBAAiB,GAAG,WAAW;AACpD,MAAM,KAAK;AACX,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,IAAI,GAAG,MAAM;AACnB,MAAM,QAAQ;AACd,MAAM,QAAQ;AACd,MAAM,OAAO;AACb,MAAM,MAAM;AACZ,MAAM,EAAE,EAAE,MAAM;AAChB,MAAM,WAAW;AACjB,MAAM,IAAI;AACV,MAAM,WAAW;AACjB,MAAM,SAAS;AACf,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,MAAM,UAAU;AAChB,MAAM,KAAK;AACX,MAAM,WAAW;AACjB,MAAM,GAAG;AACT,KAAK,GAAG,cAAc;AACtB,IAAI,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,GAAG,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;AAC5I,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC;AACvD,IAAI,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACnD,IAAI,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC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AAW,EAAE,MAAM;AACjC,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc;AACd;AACA,WAAW,GAAG,IAAI;AAClB,0BAA0B,GAAG,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE;AACxG;AACA;AACA,KAAK;AACL;AACA,CAAC;AACI,MAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,EAAE;;;;"}
|
|
@@ -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 { T as TextField$1 } from './TextField-
|
|
5
|
+
import { T as TextField$1 } from './TextField-C6JAPlC5-BZNF_nlP.js';
|
|
6
6
|
|
|
7
7
|
const TextField = forwardRef(
|
|
8
8
|
(props, ref) => {
|
|
@@ -25,4 +25,4 @@ const TextField = forwardRef(
|
|
|
25
25
|
);
|
|
26
26
|
|
|
27
27
|
export { TextField as T };
|
|
28
|
-
//# sourceMappingURL=TextField-
|
|
28
|
+
//# sourceMappingURL=TextField-DfzdZAmM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField-
|
|
1
|
+
{"version":3,"file":"TextField-DfzdZAmM.js","sources":["../src/components/TextField/TextField.tsx"],"sourcesContent":["import {\n TextFieldProps as CoreTextFieldProps,\n TextField as CoreTextField,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DistributiveOmit } from \"../../types\";\n\nexport type TextFieldProps = DistributiveOmit<CoreTextFieldProps, \"prefix\"> & {\n prefix?: string;\n [\"data-tracking-id\"]?: string;\n};\n\nexport const TextField = forwardRef(\n (props: TextFieldProps, ref: Ref<HTMLInputElement>) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n prefix: childrenToString(props.prefix),\n hint: childrenToString(props.hint),\n description: childrenToString(props.description),\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"TextField\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreTextField ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\n"],"names":["CoreTextField"],"mappings":";;;;;;AAcO,MAAM,SAAY,GAAA,UAAA;AAAA,EACvB,CAAC,OAAuB,GAA+B,KAAA;AACrD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MACnC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAA,EAAQ,gBAAiB,CAAA,KAAA,CAAM,MAAM,CAAA;AAAA,MACrC,IAAA,EAAM,gBAAiB,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACjC,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,2BAAQA,WAAc,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE7E;;;;"}
|
package/dist/TextField.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as TextField, T as default } from './TextField-
|
|
1
|
+
export { T as TextField, T as default } from './TextField-DfzdZAmM.js';
|
|
2
2
|
//# sourceMappingURL=TextField.js.map
|
|
@@ -4,7 +4,7 @@ import React__default, { useLayoutEffect, forwardRef, useRef, useState, useEffec
|
|
|
4
4
|
import { useTrackingId } from './useTrackingId.js';
|
|
5
5
|
import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
|
|
6
6
|
import { c as cx } from './index-tZvMCc77.js';
|
|
7
|
-
import { L as Label } from './Label-
|
|
7
|
+
import { L as Label } from './Label-BOKFSuTL-D0AVgX_2.js';
|
|
8
8
|
import { _ as _objectWithoutPropertiesLoose, a as _extends } from './extends-Bg2s_OKl.js';
|
|
9
9
|
import { S as SrOnly } from './SrOnly-BXm1DGl3-BJVodjQp.js';
|
|
10
10
|
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6-BkgAan7h.js';
|
|
@@ -398,4 +398,4 @@ const Textarea = forwardRef(
|
|
|
398
398
|
);
|
|
399
399
|
|
|
400
400
|
export { Textarea as T };
|
|
401
|
-
//# sourceMappingURL=Textarea-
|
|
401
|
+
//# sourceMappingURL=Textarea-DZpB1hRv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea-D0KstCG1.js","sources":["../../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js","../../../node_modules/.pnpm/use-latest@1.3.0_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js","../../../node_modules/.pnpm/use-composed-ref@1.4.0_react@18.3.1/node_modules/use-composed-ref/dist/use-composed-ref.esm.js","../../../node_modules/.pnpm/react-textarea-autosize@8.5.5_react@18.3.1/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js","../../hammer-react/dist/Textarea-DM_-mjLj.js","../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport { index as default };\n","import React from 'react';\nimport useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect';\n\nvar useLatest = function useLatest(value) {\n var ref = React.useRef(value);\n useIsomorphicLayoutEffect(function () {\n ref.current = value;\n });\n return ref;\n};\n\nexport { useLatest as default };\n","import React from 'react';\n\n// basically Exclude<React.ClassAttributes<T>[\"ref\"], string>\n\nvar updateRef = function updateRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n return;\n }\n ref.current = value;\n};\nvar useComposedRef = function useComposedRef(libRef, userRef) {\n var prevUserRef = React.useRef();\n return React.useCallback(function (instance) {\n libRef.current = instance;\n if (prevUserRef.current) {\n updateRef(prevUserRef.current, null);\n }\n prevUserRef.current = userRef;\n if (!userRef) {\n return;\n }\n updateRef(userRef, instance);\n }, [userRef]);\n};\n\nexport { useComposedRef as default };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport * as React from 'react';\nimport useLatest from 'use-latest';\nimport useComposedRef from 'use-composed-ref';\n\nvar HIDDEN_TEXTAREA_STYLE = {\n 'min-height': '0',\n 'max-height': 'none',\n height: '0',\n visibility: 'hidden',\n overflow: 'hidden',\n position: 'absolute',\n 'z-index': '-1000',\n top: '0',\n right: '0',\n display: 'block'\n};\nvar forceHiddenStyles = function forceHiddenStyles(node) {\n Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function (key) {\n node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important');\n });\n};\nvar forceHiddenStyles$1 = forceHiddenStyles;\n\nvar hiddenTextarea = null;\nvar getHeight = function getHeight(node, sizingData) {\n var height = node.scrollHeight;\n if (sizingData.sizingStyle.boxSizing === 'border-box') {\n // border-box: add border, since height = content + padding + border\n return height + sizingData.borderSize;\n }\n\n // remove padding, since height = content\n return height - sizingData.paddingSize;\n};\nfunction calculateNodeHeight(sizingData, value, minRows, maxRows) {\n if (minRows === void 0) {\n minRows = 1;\n }\n if (maxRows === void 0) {\n maxRows = Infinity;\n }\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement('textarea');\n hiddenTextarea.setAttribute('tabindex', '-1');\n hiddenTextarea.setAttribute('aria-hidden', 'true');\n forceHiddenStyles$1(hiddenTextarea);\n }\n if (hiddenTextarea.parentNode === null) {\n document.body.appendChild(hiddenTextarea);\n }\n var paddingSize = sizingData.paddingSize,\n borderSize = sizingData.borderSize,\n sizingStyle = sizingData.sizingStyle;\n var boxSizing = sizingStyle.boxSizing;\n Object.keys(sizingStyle).forEach(function (_key) {\n var key = _key;\n hiddenTextarea.style[key] = sizingStyle[key];\n });\n forceHiddenStyles$1(hiddenTextarea);\n hiddenTextarea.value = value;\n var height = getHeight(hiddenTextarea, sizingData);\n // Double set and calc due to Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1795904\n hiddenTextarea.value = value;\n height = getHeight(hiddenTextarea, sizingData);\n\n // measure height of a textarea with a single row\n hiddenTextarea.value = 'x';\n var rowHeight = hiddenTextarea.scrollHeight - paddingSize;\n var minHeight = rowHeight * minRows;\n if (boxSizing === 'border-box') {\n minHeight = minHeight + paddingSize + borderSize;\n }\n height = Math.max(minHeight, height);\n var maxHeight = rowHeight * maxRows;\n if (boxSizing === 'border-box') {\n maxHeight = maxHeight + paddingSize + borderSize;\n }\n height = Math.min(maxHeight, height);\n return [height, rowHeight];\n}\n\nvar noop = function noop() {};\nvar pick = function pick(props, obj) {\n return props.reduce(function (acc, prop) {\n acc[prop] = obj[prop];\n return acc;\n }, {});\n};\n\nvar SIZING_STYLE = ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth', 'boxSizing', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'letterSpacing', 'lineHeight', 'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop',\n// non-standard\n'tabSize', 'textIndent',\n// non-standard\n'textRendering', 'textTransform', 'width', 'wordBreak', 'wordSpacing', 'scrollbarGutter'];\nvar isIE = !!document.documentElement.currentStyle ;\nvar getSizingData = function getSizingData(node) {\n var style = window.getComputedStyle(node);\n if (style === null) {\n return null;\n }\n var sizingStyle = pick(SIZING_STYLE, style);\n var boxSizing = sizingStyle.boxSizing;\n\n // probably node is detached from DOM, can't read computed dimensions\n if (boxSizing === '') {\n return null;\n }\n\n // IE (Edge has already correct behaviour) returns content width as computed width\n // so we need to add manually padding and border widths\n if (isIE && boxSizing === 'border-box') {\n sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + 'px';\n }\n var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);\n var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);\n return {\n sizingStyle: sizingStyle,\n paddingSize: paddingSize,\n borderSize: borderSize\n };\n};\nvar getSizingData$1 = getSizingData;\n\nfunction useListener(target, type, listener) {\n var latestListener = useLatest(listener);\n React.useLayoutEffect(function () {\n var handler = function handler(ev) {\n return latestListener.current(ev);\n };\n\n // might happen if document.fonts is not defined, for instance\n if (!target) {\n return;\n }\n target.addEventListener(type, handler);\n return function () {\n return target.removeEventListener(type, handler);\n };\n }, []);\n}\nvar useWindowResizeListener = function useWindowResizeListener(listener) {\n useListener(window, 'resize', listener);\n};\nvar useFontsLoadedListener = function useFontsLoadedListener(listener) {\n useListener(document.fonts, 'loadingdone', listener);\n};\n\nvar _excluded = [\"cacheMeasurements\", \"maxRows\", \"minRows\", \"onChange\", \"onHeightChange\"];\nvar TextareaAutosize = function TextareaAutosize(_ref, userRef) {\n var cacheMeasurements = _ref.cacheMeasurements,\n maxRows = _ref.maxRows,\n minRows = _ref.minRows,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? noop : _ref$onChange,\n _ref$onHeightChange = _ref.onHeightChange,\n onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var isControlled = props.value !== undefined;\n var libRef = React.useRef(null);\n var ref = useComposedRef(libRef, userRef);\n var heightRef = React.useRef(0);\n var measurementsCacheRef = React.useRef();\n var resizeTextarea = function resizeTextarea() {\n var node = libRef.current;\n var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);\n if (!nodeSizingData) {\n return;\n }\n measurementsCacheRef.current = nodeSizingData;\n var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || 'x', minRows, maxRows),\n height = _calculateNodeHeight[0],\n rowHeight = _calculateNodeHeight[1];\n if (heightRef.current !== height) {\n heightRef.current = height;\n node.style.setProperty('height', height + \"px\", 'important');\n onHeightChange(height, {\n rowHeight: rowHeight\n });\n }\n };\n var handleChange = function handleChange(event) {\n if (!isControlled) {\n resizeTextarea();\n }\n onChange(event);\n };\n {\n React.useLayoutEffect(resizeTextarea);\n useWindowResizeListener(resizeTextarea);\n useFontsLoadedListener(resizeTextarea);\n return /*#__PURE__*/React.createElement(\"textarea\", _extends({}, props, {\n onChange: handleChange,\n ref: ref\n }));\n }\n};\nvar index = /* #__PURE__ */React.forwardRef(TextareaAutosize);\n\nexport { index as default };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useRef, useState, useEffect, useId } from 'react';\nimport cx from 'classnames';\nimport { L as Label } from './Label-SvFLR3c6.js';\nimport TextareaAutosize from 'react-textarea-autosize';\nimport { S as SrOnly } from './SrOnly-BXm1DGl3.js';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport { H as Helper } from './Helper-D1wqxi-n.js';\n\nimport './Textarea.css';const textarea = \"_textarea_15yjk_3\";\nconst counter = \"_counter_15yjk_48\";\nconst error = \"_error_15yjk_60\";\nconst disabled = \"_disabled_15yjk_67\";\nconst readonly = \"_readonly_15yjk_77\";\nconst styles = {\n\ttextarea: textarea,\n\t\"has-cols\": \"_has-cols_15yjk_23\",\n\tcounter: counter,\n\terror: error,\n\tdisabled: disabled,\n\t\"disable-resize\": \"_disable-resize_15yjk_74\",\n\treadonly: readonly\n};\n\nconst Textarea = forwardRef(\n (props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n className,\n disableResize,\n error,\n // errorAriaLive: errorAriaLiveProp = \"assertive\",\n hint,\n description,\n label,\n moreInfo,\n onChange,\n required,\n showCounter,\n onFocus,\n onBlur,\n id: idProp,\n maxLength,\n autoHeight,\n labelProps,\n placeholder,\n style,\n ...rest\n } = componentProps;\n const textareaRef = useRef(null);\n const [length, setLength] = useState(0);\n const [isTyping, setIsTyping] = useState(false);\n const [openInfo, setOpenInfo] = useState(false);\n const [errorAriaLive, setErrorAriaLive] = useState(\"off\");\n const [ssr, setSSR] = useState(true);\n useEffect(() => {\n setSSR(false);\n }, []);\n useEffect(() => {\n setLength(textareaRef.current?.defaultValue.length ?? 0);\n }, []);\n const onChangeHandler = (e) => {\n onChange?.(e, { value: e.target.value });\n if (length !== e.target.value.length) {\n setIsTyping(true);\n }\n setLength(e.target.value.length);\n };\n const focusHandler = (e) => {\n onFocus?.(e);\n setOpenInfo(true);\n };\n const blurHandler = (e) => {\n onBlur?.(e);\n setOpenInfo(false);\n setErrorAriaLive(\"off\");\n setIsTyping(false);\n };\n const labelUid = useId();\n const id = idProp ?? labelUid;\n const helperUid = useId();\n const placeholderUid = useId();\n const errorMessage = typeof error !== \"boolean\" ? error : undefined;\n const textareaClassNames = cx([styles[\"textarea\"]], className, {\n [styles[\"error\"]]: error,\n [styles[\"disable-resize\"]]: disableResize,\n [styles[\"disabled\"]]: rest.disabled,\n [styles[\"readonly\"]]: rest.readOnly,\n [styles[\"has-cols\"]]: rest.cols != null\n });\n const styleCombined = { ...style, ...layoutStyles };\n const TextareaComponent = autoHeight && !ssr ? TextareaAutosize : \"textarea\";\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: textareaClassNames,\n \"data-anv\": \"textarea\",\n style: styleCombined,\n children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n htmlFor: id,\n moreInfo,\n openMoreInfo: openInfo,\n required,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsx(\n TextareaComponent,\n {\n rows: 3,\n onChange: onChangeHandler,\n onFocus: focusHandler,\n onBlur: blurHandler,\n ref: useMergeRefs([ref, textareaRef]),\n required,\n maxLength,\n id,\n placeholder,\n ...rest,\n \"aria-describedby\": [placeholderUid, helperUid].join(\" \"),\n \"aria-invalid\": error ? !!error : undefined\n }\n ),\n hint || showCounter || errorMessage || description ? /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n maxLength,\n inputLength: length,\n isTyping,\n showCounter,\n errorMessage,\n errorAriaLive,\n description\n }\n ) : null,\n /* @__PURE__ */ jsx(SrOnly, { \"aria-hidden\": true, id: placeholderUid, children: placeholder })\n ]\n }\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea as T };\n//# sourceMappingURL=Textarea-DM_-mjLj.js.map\n","import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\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 TextareaProps = CoreTextareaProps & DataTrackingId;\n\nexport const Textarea = forwardRef(\n (props: TextareaProps, ref: Ref<HTMLTextAreaElement>) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n prefix: childrenToString(props.prefix),\n hint: childrenToString(props.hint),\n description: childrenToString(props.description),\n };\n\n const trackingId = useTrackingId({\n name: \"Textarea\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreTextarea ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\n"],"names":["index","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A,CAAC;AACDD,UAAQ,CAAC,WAAW,GAAG,UAAU;;ACzI1B,MAAM,QAAW,GAAA,UAAA;AAAA,EACtB,CAAC,OAAsB,GAAkC,KAAA;AACvD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MACnC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAA,EAAQ,gBAAiB,CAAA,KAAA,CAAM,MAAM,CAAA;AAAA,MACrC,IAAA,EAAM,gBAAiB,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACjC,WAAA,EAAa,gBAAiB,CAAA,KAAA,CAAM,WAAW;AAAA,KACjD;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,UAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BAAQE,UAAa,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE5E;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"Textarea-DZpB1hRv.js","sources":["../../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js","../../../node_modules/.pnpm/use-latest@1.3.0_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js","../../../node_modules/.pnpm/use-composed-ref@1.4.0_react@18.3.1/node_modules/use-composed-ref/dist/use-composed-ref.esm.js","../../../node_modules/.pnpm/react-textarea-autosize@8.5.5_react@18.3.1/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js","../../hammer-react/dist/Textarea-u-lx249v.js","../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport { index as default };\n","import React from 'react';\nimport useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect';\n\nvar useLatest = function useLatest(value) {\n var ref = React.useRef(value);\n useIsomorphicLayoutEffect(function () {\n ref.current = value;\n });\n return ref;\n};\n\nexport { useLatest as default };\n","import React from 'react';\n\n// basically Exclude<React.ClassAttributes<T>[\"ref\"], string>\n\nvar updateRef = function updateRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n return;\n }\n ref.current = value;\n};\nvar useComposedRef = function useComposedRef(libRef, userRef) {\n var prevUserRef = React.useRef();\n return React.useCallback(function (instance) {\n libRef.current = instance;\n if (prevUserRef.current) {\n updateRef(prevUserRef.current, null);\n }\n prevUserRef.current = userRef;\n if (!userRef) {\n return;\n }\n updateRef(userRef, instance);\n }, [userRef]);\n};\n\nexport { useComposedRef as default };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport * as React from 'react';\nimport useLatest from 'use-latest';\nimport useComposedRef from 'use-composed-ref';\n\nvar HIDDEN_TEXTAREA_STYLE = {\n 'min-height': '0',\n 'max-height': 'none',\n height: '0',\n visibility: 'hidden',\n overflow: 'hidden',\n position: 'absolute',\n 'z-index': '-1000',\n top: '0',\n right: '0',\n display: 'block'\n};\nvar forceHiddenStyles = function forceHiddenStyles(node) {\n Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function (key) {\n node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important');\n });\n};\nvar forceHiddenStyles$1 = forceHiddenStyles;\n\nvar hiddenTextarea = null;\nvar getHeight = function getHeight(node, sizingData) {\n var height = node.scrollHeight;\n if (sizingData.sizingStyle.boxSizing === 'border-box') {\n // border-box: add border, since height = content + padding + border\n return height + sizingData.borderSize;\n }\n\n // remove padding, since height = content\n return height - sizingData.paddingSize;\n};\nfunction calculateNodeHeight(sizingData, value, minRows, maxRows) {\n if (minRows === void 0) {\n minRows = 1;\n }\n if (maxRows === void 0) {\n maxRows = Infinity;\n }\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement('textarea');\n hiddenTextarea.setAttribute('tabindex', '-1');\n hiddenTextarea.setAttribute('aria-hidden', 'true');\n forceHiddenStyles$1(hiddenTextarea);\n }\n if (hiddenTextarea.parentNode === null) {\n document.body.appendChild(hiddenTextarea);\n }\n var paddingSize = sizingData.paddingSize,\n borderSize = sizingData.borderSize,\n sizingStyle = sizingData.sizingStyle;\n var boxSizing = sizingStyle.boxSizing;\n Object.keys(sizingStyle).forEach(function (_key) {\n var key = _key;\n hiddenTextarea.style[key] = sizingStyle[key];\n });\n forceHiddenStyles$1(hiddenTextarea);\n hiddenTextarea.value = value;\n var height = getHeight(hiddenTextarea, sizingData);\n // Double set and calc due to Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1795904\n hiddenTextarea.value = value;\n height = getHeight(hiddenTextarea, sizingData);\n\n // measure height of a textarea with a single row\n hiddenTextarea.value = 'x';\n var rowHeight = hiddenTextarea.scrollHeight - paddingSize;\n var minHeight = rowHeight * minRows;\n if (boxSizing === 'border-box') {\n minHeight = minHeight + paddingSize + borderSize;\n }\n height = Math.max(minHeight, height);\n var maxHeight = rowHeight * maxRows;\n if (boxSizing === 'border-box') {\n maxHeight = maxHeight + paddingSize + borderSize;\n }\n height = Math.min(maxHeight, height);\n return [height, rowHeight];\n}\n\nvar noop = function noop() {};\nvar pick = function pick(props, obj) {\n return props.reduce(function (acc, prop) {\n acc[prop] = obj[prop];\n return acc;\n }, {});\n};\n\nvar SIZING_STYLE = ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth', 'boxSizing', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'letterSpacing', 'lineHeight', 'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop',\n// non-standard\n'tabSize', 'textIndent',\n// non-standard\n'textRendering', 'textTransform', 'width', 'wordBreak', 'wordSpacing', 'scrollbarGutter'];\nvar isIE = !!document.documentElement.currentStyle ;\nvar getSizingData = function getSizingData(node) {\n var style = window.getComputedStyle(node);\n if (style === null) {\n return null;\n }\n var sizingStyle = pick(SIZING_STYLE, style);\n var boxSizing = sizingStyle.boxSizing;\n\n // probably node is detached from DOM, can't read computed dimensions\n if (boxSizing === '') {\n return null;\n }\n\n // IE (Edge has already correct behaviour) returns content width as computed width\n // so we need to add manually padding and border widths\n if (isIE && boxSizing === 'border-box') {\n sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + 'px';\n }\n var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);\n var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);\n return {\n sizingStyle: sizingStyle,\n paddingSize: paddingSize,\n borderSize: borderSize\n };\n};\nvar getSizingData$1 = getSizingData;\n\nfunction useListener(target, type, listener) {\n var latestListener = useLatest(listener);\n React.useLayoutEffect(function () {\n var handler = function handler(ev) {\n return latestListener.current(ev);\n };\n\n // might happen if document.fonts is not defined, for instance\n if (!target) {\n return;\n }\n target.addEventListener(type, handler);\n return function () {\n return target.removeEventListener(type, handler);\n };\n }, []);\n}\nvar useWindowResizeListener = function useWindowResizeListener(listener) {\n useListener(window, 'resize', listener);\n};\nvar useFontsLoadedListener = function useFontsLoadedListener(listener) {\n useListener(document.fonts, 'loadingdone', listener);\n};\n\nvar _excluded = [\"cacheMeasurements\", \"maxRows\", \"minRows\", \"onChange\", \"onHeightChange\"];\nvar TextareaAutosize = function TextareaAutosize(_ref, userRef) {\n var cacheMeasurements = _ref.cacheMeasurements,\n maxRows = _ref.maxRows,\n minRows = _ref.minRows,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? noop : _ref$onChange,\n _ref$onHeightChange = _ref.onHeightChange,\n onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var isControlled = props.value !== undefined;\n var libRef = React.useRef(null);\n var ref = useComposedRef(libRef, userRef);\n var heightRef = React.useRef(0);\n var measurementsCacheRef = React.useRef();\n var resizeTextarea = function resizeTextarea() {\n var node = libRef.current;\n var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);\n if (!nodeSizingData) {\n return;\n }\n measurementsCacheRef.current = nodeSizingData;\n var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || 'x', minRows, maxRows),\n height = _calculateNodeHeight[0],\n rowHeight = _calculateNodeHeight[1];\n if (heightRef.current !== height) {\n heightRef.current = height;\n node.style.setProperty('height', height + \"px\", 'important');\n onHeightChange(height, {\n rowHeight: rowHeight\n });\n }\n };\n var handleChange = function handleChange(event) {\n if (!isControlled) {\n resizeTextarea();\n }\n onChange(event);\n };\n {\n React.useLayoutEffect(resizeTextarea);\n useWindowResizeListener(resizeTextarea);\n useFontsLoadedListener(resizeTextarea);\n return /*#__PURE__*/React.createElement(\"textarea\", _extends({}, props, {\n onChange: handleChange,\n ref: ref\n }));\n }\n};\nvar index = /* #__PURE__ */React.forwardRef(TextareaAutosize);\n\nexport { index as default };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useRef, useState, useEffect, useId } from 'react';\nimport cx from 'classnames';\nimport { L as Label } from './Label-BOKFSuTL.js';\nimport TextareaAutosize from 'react-textarea-autosize';\nimport { S as SrOnly } from './SrOnly-BXm1DGl3.js';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-C6qizVc6.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport { H as Helper } from './Helper-D1wqxi-n.js';\n\nimport './Textarea.css';const textarea = \"_textarea_15yjk_3\";\nconst counter = \"_counter_15yjk_48\";\nconst error = \"_error_15yjk_60\";\nconst disabled = \"_disabled_15yjk_67\";\nconst readonly = \"_readonly_15yjk_77\";\nconst styles = {\n\ttextarea: textarea,\n\t\"has-cols\": \"_has-cols_15yjk_23\",\n\tcounter: counter,\n\terror: error,\n\tdisabled: disabled,\n\t\"disable-resize\": \"_disable-resize_15yjk_74\",\n\treadonly: readonly\n};\n\nconst Textarea = forwardRef(\n (props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n className,\n disableResize,\n error,\n // errorAriaLive: errorAriaLiveProp = \"assertive\",\n hint,\n description,\n label,\n moreInfo,\n onChange,\n required,\n showCounter,\n onFocus,\n onBlur,\n id: idProp,\n maxLength,\n autoHeight,\n labelProps,\n placeholder,\n style,\n ...rest\n } = componentProps;\n const textareaRef = useRef(null);\n const [length, setLength] = useState(0);\n const [isTyping, setIsTyping] = useState(false);\n const [openInfo, setOpenInfo] = useState(false);\n const [errorAriaLive, setErrorAriaLive] = useState(\"off\");\n const [ssr, setSSR] = useState(true);\n useEffect(() => {\n setSSR(false);\n }, []);\n useEffect(() => {\n setLength(textareaRef.current?.defaultValue.length ?? 0);\n }, []);\n const onChangeHandler = (e) => {\n onChange?.(e, { value: e.target.value });\n if (length !== e.target.value.length) {\n setIsTyping(true);\n }\n setLength(e.target.value.length);\n };\n const focusHandler = (e) => {\n onFocus?.(e);\n setOpenInfo(true);\n };\n const blurHandler = (e) => {\n onBlur?.(e);\n setOpenInfo(false);\n setErrorAriaLive(\"off\");\n setIsTyping(false);\n };\n const labelUid = useId();\n const id = idProp ?? labelUid;\n const helperUid = useId();\n const placeholderUid = useId();\n const errorMessage = typeof error !== \"boolean\" ? error : undefined;\n const textareaClassNames = cx([styles[\"textarea\"]], className, {\n [styles[\"error\"]]: error,\n [styles[\"disable-resize\"]]: disableResize,\n [styles[\"disabled\"]]: rest.disabled,\n [styles[\"readonly\"]]: rest.readOnly,\n [styles[\"has-cols\"]]: rest.cols != null\n });\n const styleCombined = { ...style, ...layoutStyles };\n const TextareaComponent = autoHeight && !ssr ? TextareaAutosize : \"textarea\";\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n className: textareaClassNames,\n \"data-anv\": \"textarea\",\n style: styleCombined,\n children: [\n label ? /* @__PURE__ */ jsx(\n Label,\n {\n htmlFor: id,\n moreInfo,\n openMoreInfo: openInfo,\n required,\n ...labelProps,\n children: label\n }\n ) : null,\n /* @__PURE__ */ jsx(\n TextareaComponent,\n {\n rows: 3,\n onChange: onChangeHandler,\n onFocus: focusHandler,\n onBlur: blurHandler,\n ref: useMergeRefs([ref, textareaRef]),\n required,\n maxLength,\n id,\n placeholder,\n ...rest,\n \"aria-describedby\": [placeholderUid, helperUid].join(\" \"),\n \"aria-invalid\": error ? !!error : undefined\n }\n ),\n hint || showCounter || errorMessage || description ? /* @__PURE__ */ jsx(\n Helper,\n {\n id: helperUid,\n hint,\n maxLength,\n inputLength: length,\n isTyping,\n showCounter,\n errorMessage,\n errorAriaLive,\n description\n }\n ) : null,\n /* @__PURE__ */ jsx(SrOnly, { \"aria-hidden\": true, id: placeholderUid, children: placeholder })\n ]\n }\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea as T };\n//# sourceMappingURL=Textarea-u-lx249v.js.map\n","import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\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 TextareaProps = CoreTextareaProps & DataTrackingId;\n\nexport const Textarea = forwardRef(\n (props: TextareaProps, ref: Ref<HTMLTextAreaElement>) => {\n const data = {\n label: childrenToString(props.label),\n labelProps: props.labelProps,\n prefix: childrenToString(props.prefix),\n hint: childrenToString(props.hint),\n description: childrenToString(props.description),\n };\n\n const trackingId = useTrackingId({\n name: \"Textarea\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreTextarea ref={ref} data-tracking-id={trackingId} {...props} />;\n },\n);\n"],"names":["index","React","useIsomorphicLayoutEffect","Textarea","TextareaAutosize","CoreTextarea"],"mappings":";;;;;;;;;;;;;AAEA,IAAIA,OAAK,GAAG,eAAe;;ACC3B,IAAI,SAAS,GAAG,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1C,EAAE,IAAI,GAAG,GAAGC,cAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AAC/B,EAAEC,OAAyB,CAAC,YAAY;AACxC,IAAI,GAAG,CAAC,OAAO,GAAG,KAAK;AACvB,GAAG,CAAC;AACJ,EAAE,OAAO,GAAG;AACZ,CAAC;;ACPD;;AAEA,IAAI,SAAS,GAAG,SAAS,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE;AAC/C,EAAE,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;AACjC,IAAI,GAAG,CAAC,KAAK,CAAC;AACd,IAAI;AACJ;AACA,EAAE,GAAG,CAAC,OAAO,GAAG,KAAK;AACrB,CAAC;AACD,IAAI,cAAc,GAAG,SAAS,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE;AAC9D,EAAE,IAAI,WAAW,GAAGD,cAAK,CAAC,MAAM,EAAE;AAClC,EAAE,OAAOA,cAAK,CAAC,WAAW,CAAC,UAAU,QAAQ,EAAE;AAC/C,IAAI,MAAM,CAAC,OAAO,GAAG,QAAQ;AAC7B,IAAI,IAAI,WAAW,CAAC,OAAO,EAAE;AAC7B,MAAM,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC;AAC1C;AACA,IAAI,WAAW,CAAC,OAAO,GAAG,OAAO;AACjC,IAAI,IAAI,CAAC,OAAO,EAAE;AAClB,MAAM;AACN;AACA,IAAI,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC;AAChC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;AACf,CAAC;;AClBD,IAAI,qBAAqB,GAAG;AAC5B,EAAE,YAAY,EAAE,GAAG;AACnB,E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AE,WAAW,EAAE;AACxG;AACA;AACA,KAAK;AACL;AACA,CAAC;AACDD,UAAQ,CAAC,WAAW,GAAG,UAAU;;ACzI1B,MAAM,QAAW,GAAA,UAAA;AAAA,EACtB,CAAC,OAAsB,GAAkC,KAAA;AACvD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,KAAA,EAAO,gBAAiB,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MACnC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAA,EAAQ,gBAAiB,CAAA,KAAA,CAAM,MAAM,CAAA;AAAA,MACrC,IAAA,EAAM,gBAAiB,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACjC,WAAA,EAAa,gBAAiB,CAAA,KAAA,CAAM,WAAW;AAAA,KACjD;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,UAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AACD,IAAA,2BAAQE,UAAa,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAE5E;;;;","x_google_ignoreList":[0,1,2,3]}
|
package/dist/Textarea.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as Textarea, T as default } from './Textarea-
|
|
1
|
+
export { T as Textarea, T as default } from './Textarea-DZpB1hRv.js';
|
|
2
2
|
//# sourceMappingURL=Textarea.js.map
|
package/dist/Toast.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as Toaster, t as default, t as toast } from './toast-
|
|
1
|
+
export { T as Toaster, t as default, t as toast } from './toast-DSXvvfM4.js';
|
|
2
2
|
//# sourceMappingURL=Toast.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 { T as TooltipTrigger$1, a as TooltipContent$1, b as Tooltip$1 } from './Tooltip-
|
|
5
|
+
import { T as TooltipTrigger$1, a as TooltipContent$1, b as Tooltip$1 } from './Tooltip-BrXGQC3o-l5WSkiOM.js';
|
|
6
6
|
|
|
7
7
|
const TooltipElement = (props) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Tooltip$1, { ...props });
|
|
@@ -31,4 +31,4 @@ const Tooltip = Object.assign(TooltipElement, {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
export { Tooltip as T, TooltipTrigger as a, TooltipContent as b };
|
|
34
|
-
//# sourceMappingURL=Tooltip-
|
|
34
|
+
//# sourceMappingURL=Tooltip-BIs_uS1M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip-
|
|
1
|
+
{"version":3,"file":"Tooltip-BIs_uS1M.js","sources":["../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import {\n TooltipProps as CoreTooltipProps,\n Tooltip as CoreTooltip,\n TooltipTrigger as CoreTooltipTrigger,\n TooltipTriggerProps as CoreTooltipTriggerProps,\n TooltipContent as CoreTooltipContent,\n TooltipContentProps as CoreTooltipContentProps,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\n\nexport type TooltipProps = CoreTooltipProps;\nexport type TooltipTriggerProps = CoreTooltipTriggerProps & DataTrackingId;\nexport type TooltipContentProps = CoreTooltipContentProps;\n\nconst TooltipElement = (props: TooltipProps) => {\n return <CoreTooltip {...props} />;\n};\n\nexport const TooltipTrigger = forwardRef(\n (props: TooltipTriggerProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n children: childrenToString(props.children),\n };\n\n const trackingId = useTrackingId({\n name: \"TooltipTrigger\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n\n return (\n <CoreTooltipTrigger ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\n\nexport const TooltipContent = forwardRef(\n (props: TooltipContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTooltipContent ref={ref} {...props} />;\n },\n);\n\n// export const useTooltipContext = useCoreTooltipContext;\n\nexport const Tooltip = Object.assign(TooltipElement, {\n Trigger: TooltipTrigger,\n Content: TooltipContent,\n});\n"],"names":["CoreTooltip","CoreTooltipTrigger","CoreTooltipContent"],"mappings":";;;;;;AAiBA,MAAM,cAAA,GAAiB,CAAC,KAAwB,KAAA;AAC9C,EAAO,uBAAA,GAAA,CAACA,SAAa,EAAA,EAAA,GAAG,KAAO,EAAA,CAAA;AACjC,CAAA;AAEO,MAAM,cAAiB,GAAA,UAAA;AAAA,EAC5B,CAAC,OAA4B,GAA6B,KAAA;AACxD,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,gBAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AAED,IAAA,2BACGC,gBAAmB,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAG7E;AAEO,MAAM,cAAiB,GAAA,UAAA;AAAA,EAC5B,CAAC,OAA4B,GAA6B,KAAA;AACxD,IAAA,uBAAQ,GAAA,CAAAC,gBAAA,EAAA,EAAmB,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAEpD;AAIa,MAAA,OAAA,GAAU,MAAO,CAAA,MAAA,CAAO,cAAgB,EAAA;AAAA,EACnD,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA;AACX,CAAC;;;;"}
|