@servicetitan/anvil2 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.js +1 -1
- package/Button.cjs +1 -1
- package/Button.cjs.map +1 -1
- package/Button.js +15 -23
- package/Button.js.map +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.cjs.map +1 -1
- package/ButtonCompound.js +15 -23
- package/ButtonCompound.js.map +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.cjs.map +1 -1
- package/ButtonLink.js +15 -23
- package/ButtonLink.js.map +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.cjs.map +1 -1
- package/ButtonToggle.js +15 -23
- package/ButtonToggle.js.map +1 -1
- package/Checkbox.cjs +1 -1
- package/Checkbox.cjs.map +1 -1
- package/Checkbox.js +49 -22
- package/Checkbox.js.map +1 -1
- package/{Chip-de78e3f6.cjs → Chip-5b63e48c.cjs} +2 -2
- package/{Chip-de78e3f6.cjs.map → Chip-5b63e48c.cjs.map} +1 -1
- package/{Chip-6dbdbc2e.js → Chip-6dde28bc.js} +3 -3
- package/{Chip-6dbdbc2e.js.map → Chip-6dde28bc.js.map} +1 -1
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +27 -35
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +18 -26
- package/Details.js.map +1 -1
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.js +26 -34
- package/Dialog.js.map +1 -1
- package/Drawer.cjs +1 -1
- package/Drawer.cjs.map +1 -1
- package/Drawer.js +63 -36
- package/Drawer.js.map +1 -1
- package/Link.cjs +1 -1
- package/Link.cjs.map +1 -1
- package/Link.js +20 -28
- package/Link.js.map +1 -1
- package/ListView-3b1adecb.js +557 -0
- package/ListView-3b1adecb.js.map +1 -0
- package/ListView-88e49b19.cjs +2 -0
- package/ListView-88e49b19.cjs.map +1 -0
- package/ListView.cjs +1 -1
- package/ListView.css +1 -1
- package/ListView.js +1 -1
- package/{Listbox-030b2993.js → Listbox-60fbdaa1.js} +2 -2
- package/{Listbox-030b2993.js.map → Listbox-60fbdaa1.js.map} +1 -1
- package/Listbox.js +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.js +52 -25
- package/Menu.js.map +1 -1
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.js +22 -30
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.js +2 -2
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.js +30 -38
- package/Popover.js.map +1 -1
- package/ProgressBar-c1b5c7c3.js +516 -0
- package/ProgressBar-c1b5c7c3.js.map +1 -0
- package/ProgressBar-fa511478.cjs +2 -0
- package/ProgressBar-fa511478.cjs.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.css +1 -1
- package/ProgressBar.js +1 -1
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.js +48 -21
- package/Radio.js.map +1 -1
- package/SegmentedControl.cjs +1 -1
- package/SegmentedControl.cjs.map +1 -1
- package/SegmentedControl.d.ts +9 -5
- package/SegmentedControl.js +72 -12
- package/SegmentedControl.js.map +1 -1
- package/{SideNav-80e5ce2f.js → SideNav-33a404ec.js} +2 -2
- package/{SideNav-80e5ce2f.js.map → SideNav-33a404ec.js.map} +1 -1
- package/SideNav.js +1 -1
- package/{Stepper-42ecb7db.js → Stepper-7e3a130c.js} +2 -2
- package/{Stepper-42ecb7db.js.map → Stepper-7e3a130c.js.map} +1 -1
- package/Stepper.js +1 -1
- package/Switch.cjs +1 -1
- package/Switch.cjs.map +1 -1
- package/Switch.js +44 -17
- package/Switch.js.map +1 -1
- package/{Tab-68267c78.js → Tab-1fce1d41.js} +28 -28
- package/{Tab-68267c78.js.map → Tab-1fce1d41.js.map} +1 -1
- package/{Tab-9d3d7922.cjs → Tab-f843e740.cjs} +3 -3
- package/{Tab-9d3d7922.cjs.map → Tab-f843e740.cjs.map} +1 -1
- package/Tab.cjs +1 -1
- package/Tab.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.js +19 -27
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +19 -27
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/{Toast-596af2d7.js → Toast-6cd7d2e1.js} +2 -2
- package/{Toast-596af2d7.js.map → Toast-6cd7d2e1.js.map} +1 -1
- package/Toast.js +1 -1
- package/Tooltip.cjs +1 -1
- package/Tooltip.cjs.map +1 -1
- package/Tooltip.js +15 -23
- package/Tooltip.js.map +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +5 -5
- package/anvil2.js +167 -175
- package/anvil2.js.map +1 -1
- package/{floating-ui.react-8d61182d.js → floating-ui.react-51a3fa68.js} +26 -26
- package/{floating-ui.react-8d61182d.js.map → floating-ui.react-51a3fa68.js.map} +1 -1
- package/{index-439b5871.js → index-3f218083.js} +9 -9
- package/{index-439b5871.js.map → index-3f218083.js.map} +1 -1
- package/{index-f6c22572.cjs → index-63e13299.cjs} +2 -2
- package/{index-f6c22572.cjs.map → index-63e13299.cjs.map} +1 -1
- package/index-9948e3af.cjs +23 -0
- package/index-9948e3af.cjs.map +1 -0
- package/index-d46fa8de-c02f7a12.cjs +2 -0
- package/index-d46fa8de-c02f7a12.cjs.map +1 -0
- package/index-d46fa8de-f8bf17b6.js +540 -0
- package/index-d46fa8de-f8bf17b6.js.map +1 -0
- package/{index-f7658447-d8b2b888.js → index-f7658447-1cfbda8f.js} +8 -9
- package/{index-f7658447-d8b2b888.js.map → index-f7658447-1cfbda8f.js.map} +1 -1
- package/index-f7658447-f447ade8.cjs +2 -0
- package/{index-f7658447-d9ca2747.cjs.map → index-f7658447-f447ade8.cjs.map} +1 -1
- package/index-ff5fea63.js +5015 -0
- package/index-ff5fea63.js.map +1 -0
- package/index3.css +1 -1
- package/package.json +3 -3
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +15 -23
- package/useAccessibleColor.js.map +1 -1
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +14 -22
- package/useLinkStyles.js.map +1 -1
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +15 -23
- package/useMergeRefs.js.map +1 -1
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +15 -23
- package/usePrefersColorScheme.js.map +1 -1
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +15 -23
- package/useSwipe.js.map +1 -1
- package/Checkbox-28412a96.cjs +0 -2
- package/Checkbox-28412a96.cjs.map +0 -1
- package/Checkbox-54ecbd70.js +0 -163
- package/Checkbox-54ecbd70.js.map +0 -1
- package/Checkbox.css +0 -1
- package/Dialog-90efe88c.js +0 -214
- package/Dialog-90efe88c.js.map +0 -1
- package/Dialog-c83d0c0f.cjs +0 -2
- package/Dialog-c83d0c0f.cjs.map +0 -1
- package/Dialog.css +0 -1
- package/Drawer-4567c00e.js +0 -209
- package/Drawer-4567c00e.js.map +0 -1
- package/Drawer-96b74d51.cjs +0 -2
- package/Drawer-96b74d51.cjs.map +0 -1
- package/Drawer.css +0 -1
- package/ListView-ad64a337.js +0 -403
- package/ListView-ad64a337.js.map +0 -1
- package/ListView-fcd88dd1.cjs +0 -2
- package/ListView-fcd88dd1.cjs.map +0 -1
- package/ProgressBar-3ebc4be2.cjs +0 -2
- package/ProgressBar-3ebc4be2.cjs.map +0 -1
- package/ProgressBar-f0102cb6.js +0 -303
- package/ProgressBar-f0102cb6.js.map +0 -1
- package/Radio-845d1fe6.cjs +0 -2
- package/Radio-845d1fe6.cjs.map +0 -1
- package/Radio-8f8e771e.js +0 -124
- package/Radio-8f8e771e.js.map +0 -1
- package/Radio.css +0 -1
- package/SegmentedControl-d223643c.js +0 -108
- package/SegmentedControl-d223643c.js.map +0 -1
- package/SegmentedControl-e5e48c23.cjs +0 -2
- package/SegmentedControl-e5e48c23.cjs.map +0 -1
- package/SegmentedControl.css +0 -1
- package/Switch-7bfb6be6.cjs +0 -2
- package/Switch-7bfb6be6.cjs.map +0 -1
- package/Switch-917c699a.js +0 -54
- package/Switch-917c699a.js.map +0 -1
- package/Switch.css +0 -1
- package/getKeyboardFocusableElements-ea0e208d-58a00025.js +0 -14
- package/getKeyboardFocusableElements-ea0e208d-58a00025.js.map +0 -1
- package/getKeyboardFocusableElements-ea0e208d-aba1bd01.cjs +0 -2
- package/getKeyboardFocusableElements-ea0e208d-aba1bd01.cjs.map +0 -1
- package/index-06c0bdf0.js +0 -480
- package/index-06c0bdf0.js.map +0 -1
- package/index-54458227.cjs +0 -23
- package/index-54458227.cjs.map +0 -1
- package/index-a53df036.cjs +0 -2
- package/index-a53df036.cjs.map +0 -1
- package/index-d46fa8de-08092573.cjs +0 -2
- package/index-d46fa8de-08092573.cjs.map +0 -1
- package/index-d46fa8de-8695742b.js +0 -62
- package/index-d46fa8de-8695742b.js.map +0 -1
- package/index-d661e4bf-ed0b2ea3.js +0 -318
- package/index-d661e4bf-ed0b2ea3.js.map +0 -1
- package/index-d661e4bf-f77d0503.cjs +0 -2
- package/index-d661e4bf-f77d0503.cjs.map +0 -1
- package/index-d661e4bf.css +0 -1
- package/index-dc8d970c.js +0 -4228
- package/index-dc8d970c.js.map +0 -1
- package/index-f7658447-d9ca2747.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab-9d3d7922.cjs","sources":["../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/@servicetitan/hammer-react/dist/Tab.js"],"sourcesContent":["import { 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 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 }\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 }) {\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 });\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 } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\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 top: ${top}px !important;\n left: ${left}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","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, 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, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (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 },\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 ? [Math.random()] : [isPresent]);\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, 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","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { invariant } from '../../utils/errors.mjs';\nimport { useConstant } from '../../utils/use-constant.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, exitBeforeEnter, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\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 = 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;\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 = 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 onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: isPresent ? undefined : custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n","import \"./index30.css\";\nimport { j as s } from \"./jsx-runtime-944c88e2.js\";\nimport { useReducedMotion as H, motion as M, AnimatePresence as J } from \"framer-motion\";\nimport * as P from \"react\";\nimport { forwardRef as T, useRef as z, useContext as D, useState as R, useCallback as A, useEffect as O, createContext as Q, useId as X, useMemo as Y } from \"react\";\nimport { useMergeRefs as K } from \"@floating-ui/react\";\nimport k from \"classnames\";\nimport { Icon as B } from \"./Icon.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { a as Z } from \"./useLayoutPropsUtil-e307abc7.js\";\nconst $ = \"_tab_1or1e_4\", F = \"_inner_1or1e_70\", tt = \"_indicator_1or1e_83\", et = \"_scroller_1or1e_117\", rt = \"_right_1or1e_125\", ot = \"_left_1or1e_125\", nt = \"_fill_1or1e_145\", u = {\n tab: $,\n \"tab-panel\": \"_tab-panel_1or1e_17\",\n \"tab-button\": \"_tab-button_1or1e_18\",\n \"tab-list\": \"_tab-list_1or1e_19\",\n \"overflow-prev\": \"_overflow-prev_1or1e_32\",\n \"overflow-next\": \"_overflow-next_1or1e_33\",\n inner: F,\n indicator: tt,\n scroller: et,\n right: rt,\n left: ot,\n fill: nt\n}, W = T(\n (b, g) => {\n const v = z(null), y = H(), {\n current: w,\n items: r,\n setCurrent: a,\n focus: m,\n setFocus: l,\n uid: p,\n onKeyDownHandler: t\n } = D(E), {\n onClick: x,\n children: _,\n onFocus: d,\n onKeyDown: e,\n controls: o,\n id: i,\n className: I,\n ...c\n } = b, f = r && Array.prototype.indexOf.call(r, v.current), C = (h) => {\n f !== void 0 && (x == null || x(h, f), a == null || a(f), l == null || l(f), r == null || r[f].focus());\n }, j = (h) => {\n t == null || t(h), e == null || e(h);\n }, N = k(u[\"tab-button\"], I);\n return /* @__PURE__ */ s.jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"tab-button\",\n id: i,\n className: N,\n \"aria-selected\": (r == null ? void 0 : r[w].id) === i,\n \"aria-controls\": o,\n onClick: C,\n onKeyDown: j,\n tabIndex: (r == null ? void 0 : r[m].id) === i ? 0 : -1,\n ...c,\n ref: K([v, g]),\n children: [\n /* @__PURE__ */ s.jsx(\"span\", { className: u.inner, children: _ }),\n (r == null ? void 0 : r[w].id) === i && /* @__PURE__ */ s.jsx(\n M.span,\n {\n layoutId: p,\n className: u.indicator,\n transition: { duration: y ? 0 : 0.2 }\n }\n )\n ]\n }\n );\n }\n);\nW.displayName = \"TabButton\";\nconst at = (b) => /* @__PURE__ */ P.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ P.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\" })), st = (b) => /* @__PURE__ */ P.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ P.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\" })), V = T(\n (b, g) => {\n const { className: v, children: y, onKeyDown: w, ...r } = b, { goToPrev: a, gotoNext: m, dir: l } = D(E), [p, t] = R(!1), [x, _] = R(!1), d = z(null), e = A(\n (c) => {\n const f = l === \"ltr\" ? c.scrollLeft > 0 : c.scrollLeft > c.offsetWidth - c.scrollWidth + 1, C = l === \"ltr\" ? c.scrollLeft < c.scrollWidth - c.offsetWidth : c.scrollLeft < 0;\n t(f), _(C);\n },\n [l]\n );\n O(() => {\n d.current && e(d.current);\n }, [e]);\n const o = (c) => {\n const f = c.target;\n e(f);\n }, i = k(u[\"tab-list\"], v), I = k(u.scroller, {\n [u.left]: p,\n [u.right]: x\n });\n return /* @__PURE__ */ s.jsxs(\n \"div\",\n {\n ...r,\n className: i,\n \"data-anv\": \"tab-list\",\n ref: g,\n children: [\n (l === \"ltr\" ? p : x) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => a == null ? void 0 : a(!1),\n className: u[\"overflow-prev\"],\n \"aria-label\": \"Previous tab\",\n children: /* @__PURE__ */ s.jsx(B, { svg: at, \"aria-hidden\": !0, size: \"medium\" })\n }\n ),\n /* @__PURE__ */ s.jsx(\n \"div\",\n {\n onScroll: o,\n className: I,\n role: \"tablist\",\n ref: d,\n children: y\n }\n ),\n (l === \"ltr\" ? x : p) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => m == null ? void 0 : m(!1),\n className: u[\"overflow-next\"],\n \"aria-label\": \"Next tab\",\n children: /* @__PURE__ */ s.jsx(B, { svg: st, \"aria-hidden\": !0, size: \"medium\" })\n }\n )\n ]\n }\n );\n }\n);\nV.displayName = \"TabList\";\nconst q = T(\n (b, g) => {\n var d;\n const { id: v, className: y, ...w } = b, { current: r, items: a } = D(E), m = H();\n let l;\n a == null || a.forEach((e, o) => {\n e.getAttribute(\"aria-controls\") === v && (l = e.id);\n });\n const t = ((d = a == null ? void 0 : a[r]) == null ? void 0 : d.getAttribute(\"aria-controls\")) === v, x = m ? {\n enter: {\n opacity: 0\n },\n center: {\n zIndex: 1,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n opacity: 0\n }\n } : {\n enter: {\n y: 50,\n opacity: 0\n },\n center: {\n zIndex: 1,\n y: 0,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n y: -50,\n opacity: 0\n }\n }, _ = k(u[\"tab-panel\"], y);\n return t ? /* @__PURE__ */ s.jsx(\n M.div,\n {\n variants: x,\n initial: \"enter\",\n animate: \"center\",\n exit: \"exit\",\n className: _,\n transition: {\n x: {\n type: \"spring\",\n stiffness: 300,\n damping: 30\n },\n opacity: { duration: 1 }\n },\n ...w,\n role: \"tabpanel\",\n \"data-anv\": \"tab-panel\",\n id: v,\n \"aria-labelledby\": l,\n tabIndex: 0,\n ref: g\n }\n ) : /* @__PURE__ */ s.jsx(s.Fragment, {});\n }\n);\nq.displayName = \"TabPanel\";\nconst lt = {\n current: 0,\n focus: 0\n}, E = Q(lt), U = T((b, g) => {\n const { layoutStyles: v, componentProps: y } = Z(b), { defaultIndex: w, className: r, style: a, fill: m, ...l } = y, p = z(null), [t, x] = R(), [_, d] = R(w ?? 0), [e, o] = R(w ?? 0), [i, I] = R(\"ltr\"), c = k(u.tab, r, {\n [u.fill]: m\n }), f = X();\n O(() => {\n var n;\n x((n = p.current) == null ? void 0 : n.querySelectorAll(\"[role=tab]:not([disabled])\"));\n }, [p]), O(() => {\n var n, L;\n ((L = (n = p.current) == null ? void 0 : n.closest(\"[dir]\")) == null ? void 0 : L.getAttribute(\"dir\")) === \"rtl\" ? I(\"rtl\") : I(\"ltr\");\n }, []);\n const C = {\n ...a,\n ...v\n }, j = (n) => {\n n == null || n.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n }, N = A(\n (n = !0) => {\n if (e + 1 === (t == null ? void 0 : t.length)) {\n o == null || o(0), t == null || t[0].focus(), j(t == null ? void 0 : t[0]);\n return;\n }\n o == null || o(e + 1), t == null || t[e + 1].focus(), j(t == null ? void 0 : t[e + 1]);\n },\n [e, t]\n ), h = A(\n (n = !0) => {\n if (e === 0) {\n const L = t ? (t == null ? void 0 : t.length) - 1 : 0;\n o == null || o(L), t == null || t[L].focus(), j(t == null ? void 0 : t[L]);\n return;\n }\n o == null || o(e - 1), t == null || t[e - 1].focus(), j(t == null ? void 0 : t[e - 1]);\n },\n [e, t]\n ), S = A(\n (n) => {\n switch (console.log(\"working\", n), n.code) {\n case \"Enter\":\n case \"Space\":\n n.preventDefault(), d == null || d(e);\n break;\n case \"ArrowRight\":\n n.preventDefault(), i === \"ltr\" ? N() : h();\n break;\n case \"ArrowLeft\":\n n.preventDefault(), i === \"ltr\" ? h() : N();\n break;\n }\n },\n [i, e, h, N]\n ), G = Y(\n () => ({\n current: _,\n setCurrent: d,\n focus: e,\n setFocus: o,\n items: t,\n uid: f,\n onKeyDownHandler: S,\n gotoNext: N,\n goToPrev: h,\n dir: i\n }),\n [_, e, h, N, t, S, f, i]\n );\n return /* @__PURE__ */ s.jsx(E.Provider, { value: G, children: /* @__PURE__ */ s.jsx(J, { initial: !1, children: /* @__PURE__ */ s.jsx(\n \"div\",\n {\n className: c,\n \"data-anv\": \"tab\",\n style: C,\n ...l,\n ref: K([p, g])\n }\n ) }) });\n});\nU.displayName = \"Tab\";\nconst mt = Object.assign(U, {\n Button: W,\n List: V,\n Panel: q\n});\nexport {\n mt as Tab,\n W as TabButton,\n V as TabList,\n q as TabPanel\n};\n//# sourceMappingURL=Tab.js.map\n"],"names":["PopChildMeasure","React__namespace","prevProps","element","size","PopChild","children","isPresent","id","React","ref","nonce","motion","width","height","top","left","style","jsxRuntime","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","newChildrenMap","context","childId","isComplete","_","key","getChildKey","child","onlyElements","filtered","AnimatePresence","exitBeforeEnter","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","diffedChildren","setDiffedChildren","renderedChildren","setRenderedChildren","i","exitingChildren","nextChildren","forceRender","onExit","isEveryExitComplete","isExitComplete","$","F","tt","et","rt","ot","nt","u","W","b","g","v","y","useReducedMotion","w","r","a","m","l","t","E","x","d","e","o","I","c","f","C","h","j","index","jsxRuntime944c88e2","floatingUi_react","at","st","V","Icon","q","lt","U","useLayoutPropsUtilE307abc7","n","L","S","G","mt"],"mappings":"mqBASA,MAAAA,UAAAC,EAAA,SAAA,CACA,wBAAAC,EAAA,CACA,MAAAC,EAAA,KAAA,MAAA,SAAA,QACA,GAAAA,GAAAD,EAAA,WAAA,CAAA,KAAA,MAAA,UAAA,CACA,MAAAE,EAAA,KAAA,MAAA,QAAA,QACAA,EAAA,OAAAD,EAAA,cAAA,EACAC,EAAA,MAAAD,EAAA,aAAA,EACAC,EAAA,IAAAD,EAAA,UACAC,EAAA,KAAAD,EAAA,UACA,CACA,OAAA,IACA,CAIA,oBAAA,CAAA,CACA,QAAA,CACA,OAAA,KAAA,MAAA,QACA,CACA,CACA,SAAAE,EAAA,CAAA,SAAAC,EAAA,UAAAC,CAAA,EAAA,CACA,MAAAC,EAAAC,EAAA,MAAA,EACAC,EAAAD,EAAA,OAAA,IAAA,EACAL,EAAAK,EAAA,OAAA,CACA,MAAA,EACA,OAAA,EACA,IAAA,EACA,KAAA,CACA,CAAA,EACA,CAAA,MAAAE,CAAA,EAAAF,EAAA,WAAAG,EAAA,mBAAA,EAUA,OAAAH,EAAA,mBAAA,IAAA,CACA,KAAA,CAAA,MAAAI,EAAA,OAAAC,EAAA,IAAAC,EAAA,KAAAC,CAAA,EAAAZ,EAAA,QACA,GAAAG,GAAA,CAAAG,EAAA,SAAA,CAAAG,GAAA,CAAAC,EACA,OACAJ,EAAA,QAAA,QAAA,YAAAF,EACA,MAAAS,EAAA,SAAA,cAAA,OAAA,EACA,OAAAN,IACAM,EAAA,MAAAN,GACA,SAAA,K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A,KAAA,CACA,QAAAqB,EACA,WAAA8C,EACA,MAAAC,EACA,SAAAC,EACA,MAAAL,EACA,IAAAQ,EACA,iBAAAiB,EACA,SAAA,EACA,SAAAf,EACA,IAAApC,CACA,GACA,CAAAjB,EAAA+C,EAAAM,EAAA,EAAAV,EAAAyB,EAAAjB,EAAAlC,CAAA,CACA,EACA,OAAAuC,EAAA,GAAA,IAAAZ,EAAA,SAAA,CAAA,MAAAyB,EAAA,SAAAb,EAAA,GAAA,IAAAlD,EAAA,CAAA,QAAA,GAAA,SAAAkD,EAAA,GAAA,IACA,MACA,CACA,UAAAN,EACA,WAAA,MACA,MAAAE,EACA,GAAAV,EACA,IAAAe,EAAA,aAAA,CAAA,EAAAvB,CAAA,CAAA,CACA,CACA,CAAA,CAAA,CAAA,CAAA,CACA,CAAA,EACA8B,EAAA,YAAA,MACK,MAAAM,GAAA,OAAA,OAAAN,EAAA,CACL,OAAAhC,EACA,KAAA4B,EACA,MAAAE,CACA,CAAA","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"Tab-f843e740.cjs","sources":["../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/@servicetitan/hammer-react/dist/Tab.js"],"sourcesContent":["import { 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 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 }\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 }) {\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 });\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 } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\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 top: ${top}px !important;\n left: ${left}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","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, 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, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (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 },\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 ? [Math.random()] : [isPresent]);\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, 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","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { invariant } from '../../utils/errors.mjs';\nimport { useConstant } from '../../utils/use-constant.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, exitBeforeEnter, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\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 = 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;\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 = 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 onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: isPresent ? undefined : custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n","import \"./index30.css\";\nimport { j as s } from \"./jsx-runtime-944c88e2.js\";\nimport { useReducedMotion as H, motion as M, AnimatePresence as J } from \"framer-motion\";\nimport * as T from \"react\";\nimport { forwardRef as k, useRef as z, useContext as D, useState as R, useCallback as P, useEffect as O, createContext as Q, useId as X, useMemo as Y } from \"react\";\nimport { useMergeRefs as K } from \"@floating-ui/react\";\nimport A from \"classnames\";\nimport { Icon as B } from \"./Icon.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { a as Z } from \"./useLayoutPropsUtil-e307abc7.js\";\nconst $ = \"_tab_1or1e_4\", F = \"_inner_1or1e_70\", tt = \"_indicator_1or1e_83\", et = \"_scroller_1or1e_117\", rt = \"_right_1or1e_125\", ot = \"_left_1or1e_125\", nt = \"_fill_1or1e_145\", u = {\n tab: $,\n \"tab-panel\": \"_tab-panel_1or1e_17\",\n \"tab-button\": \"_tab-button_1or1e_18\",\n \"tab-list\": \"_tab-list_1or1e_19\",\n \"overflow-prev\": \"_overflow-prev_1or1e_32\",\n \"overflow-next\": \"_overflow-next_1or1e_33\",\n inner: F,\n indicator: tt,\n scroller: et,\n right: rt,\n left: ot,\n fill: nt\n}, W = k(\n (b, y) => {\n const v = z(null), g = H(), {\n current: w,\n items: r,\n setCurrent: n,\n focus: m,\n setFocus: l,\n uid: p,\n onKeyDownHandler: t\n } = D(E), {\n onClick: x,\n children: _,\n onFocus: d,\n onKeyDown: e,\n controls: o,\n id: i,\n className: I,\n ...c\n } = b, f = r && Array.prototype.indexOf.call(r, v.current), C = (h) => {\n f !== void 0 && (x == null || x(h, f), n == null || n(f), l == null || l(f), r == null || r[f].focus());\n }, j = (h) => {\n t == null || t(h), e == null || e(h);\n }, N = A(u[\"tab-button\"], I);\n return /* @__PURE__ */ s.jsxs(\n \"button\",\n {\n type: \"button\",\n role: \"tab\",\n \"data-anv\": \"tab-button\",\n id: i,\n className: N,\n \"aria-selected\": (r == null ? void 0 : r[w].id) === i,\n \"aria-controls\": o,\n onClick: C,\n onKeyDown: j,\n tabIndex: (r == null ? void 0 : r[m].id) === i ? 0 : -1,\n ...c,\n ref: K([v, y]),\n children: [\n /* @__PURE__ */ s.jsx(\"span\", { className: u.inner, children: _ }),\n (r == null ? void 0 : r[w].id) === i && /* @__PURE__ */ s.jsx(\n M.span,\n {\n layoutId: p,\n className: u.indicator,\n transition: { duration: g ? 0 : 0.2 }\n }\n )\n ]\n }\n );\n }\n);\nW.displayName = \"TabButton\";\nconst at = (b) => /* @__PURE__ */ T.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ T.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\" })), st = (b) => /* @__PURE__ */ T.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...b }, /* @__PURE__ */ T.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\" })), V = k(\n (b, y) => {\n const { className: v, children: g, onKeyDown: w, ...r } = b, { goToPrev: n, gotoNext: m, dir: l } = D(E), [p, t] = R(!1), [x, _] = R(!1), d = z(null), e = P(\n (c) => {\n const f = l === \"ltr\" ? c.scrollLeft > 0 : c.scrollLeft > c.offsetWidth - c.scrollWidth + 1, C = l === \"ltr\" ? c.scrollLeft < c.scrollWidth - c.offsetWidth : c.scrollLeft < 0;\n t(f), _(C);\n },\n [l]\n );\n O(() => {\n d.current && e(d.current);\n }, [e]);\n const o = (c) => {\n const f = c.target;\n e(f);\n }, i = A(u[\"tab-list\"], v), I = A(u.scroller, {\n [u.left]: p,\n [u.right]: x\n });\n return /* @__PURE__ */ s.jsxs(\n \"div\",\n {\n ...r,\n className: i,\n \"data-anv\": \"tab-list\",\n ref: y,\n children: [\n (l === \"ltr\" ? p : x) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => n == null ? void 0 : n(!1),\n className: u[\"overflow-prev\"],\n \"aria-label\": \"Previous tab\",\n children: /* @__PURE__ */ s.jsx(B, { svg: at, \"aria-hidden\": !0, size: \"medium\" })\n }\n ),\n /* @__PURE__ */ s.jsx(\n \"div\",\n {\n onScroll: o,\n className: I,\n role: \"tablist\",\n ref: d,\n children: g\n }\n ),\n (l === \"ltr\" ? x : p) && /* @__PURE__ */ s.jsx(\n \"button\",\n {\n tabIndex: -1,\n onClick: () => m == null ? void 0 : m(!1),\n className: u[\"overflow-next\"],\n \"aria-label\": \"Next tab\",\n children: /* @__PURE__ */ s.jsx(B, { svg: st, \"aria-hidden\": !0, size: \"medium\" })\n }\n )\n ]\n }\n );\n }\n);\nV.displayName = \"TabList\";\nconst q = k(\n (b, y) => {\n var d;\n const { id: v, className: g, ...w } = b, { current: r, items: n } = D(E), m = H();\n let l;\n n == null || n.forEach((e, o) => {\n e.getAttribute(\"aria-controls\") === v && (l = e.id);\n });\n const t = ((d = n == null ? void 0 : n[r]) == null ? void 0 : d.getAttribute(\"aria-controls\")) === v, x = m ? {\n enter: {\n opacity: 0\n },\n center: {\n zIndex: 1,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n opacity: 0\n }\n } : {\n enter: {\n y: 50,\n opacity: 0\n },\n center: {\n zIndex: 1,\n y: 0,\n opacity: 1\n },\n exit: {\n zIndex: 0,\n y: -50,\n opacity: 0\n }\n }, _ = A(u[\"tab-panel\"], g);\n return t ? /* @__PURE__ */ s.jsx(\n M.div,\n {\n variants: x,\n initial: \"enter\",\n animate: \"center\",\n exit: \"exit\",\n className: _,\n transition: {\n x: {\n type: \"spring\",\n stiffness: 300,\n damping: 30\n },\n opacity: { duration: 1 }\n },\n ...w,\n role: \"tabpanel\",\n \"data-anv\": \"tab-panel\",\n id: v,\n \"aria-labelledby\": l,\n tabIndex: 0,\n ref: y\n }\n ) : /* @__PURE__ */ s.jsx(s.Fragment, {});\n }\n);\nq.displayName = \"TabPanel\";\nconst lt = {\n current: 0,\n focus: 0\n}, E = Q(lt), U = k((b, y) => {\n const { layoutStyles: v, componentProps: g } = Z(b), { defaultIndex: w, className: r, style: n, fill: m, ...l } = g, p = z(null), [t, x] = R(), [_, d] = R(w ?? 0), [e, o] = R(w ?? 0), [i, I] = R(\"ltr\"), c = A(u.tab, r, {\n [u.fill]: m\n }), f = X();\n O(() => {\n var a;\n x((a = p.current) == null ? void 0 : a.querySelectorAll(\"[role=tab]:not([disabled])\"));\n }, [p]), O(() => {\n var a, L;\n ((L = (a = p.current) == null ? void 0 : a.closest(\"[dir]\")) == null ? void 0 : L.getAttribute(\"dir\")) === \"rtl\" ? I(\"rtl\") : I(\"ltr\");\n }, []);\n const C = {\n ...n,\n ...v\n }, j = (a) => {\n a == null || a.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"center\"\n });\n }, N = P(\n (a = !0) => {\n if (e + 1 === (t == null ? void 0 : t.length)) {\n o == null || o(0), t == null || t[0].focus(), j(t == null ? void 0 : t[0]);\n return;\n }\n o == null || o(e + 1), t == null || t[e + 1].focus(), j(t == null ? void 0 : t[e + 1]);\n },\n [e, t]\n ), h = P(\n (a = !0) => {\n if (e === 0) {\n const L = t ? (t == null ? void 0 : t.length) - 1 : 0;\n o == null || o(L), t == null || t[L].focus(), j(t == null ? void 0 : t[L]);\n return;\n }\n o == null || o(e - 1), t == null || t[e - 1].focus(), j(t == null ? void 0 : t[e - 1]);\n },\n [e, t]\n ), S = P(\n (a) => {\n switch (a.code) {\n case \"Enter\":\n case \"Space\":\n a.preventDefault(), d == null || d(e);\n break;\n case \"ArrowRight\":\n a.preventDefault(), i === \"ltr\" ? N() : h();\n break;\n case \"ArrowLeft\":\n a.preventDefault(), i === \"ltr\" ? h() : N();\n break;\n }\n },\n [i, e, h, N]\n ), G = Y(\n () => ({\n current: _,\n setCurrent: d,\n focus: e,\n setFocus: o,\n items: t,\n uid: f,\n onKeyDownHandler: S,\n gotoNext: N,\n goToPrev: h,\n dir: i\n }),\n [_, e, h, N, t, S, f, i]\n );\n return /* @__PURE__ */ s.jsx(E.Provider, { value: G, children: /* @__PURE__ */ s.jsx(J, { initial: !1, children: /* @__PURE__ */ s.jsx(\n \"div\",\n {\n className: c,\n \"data-anv\": \"tab\",\n style: C,\n ...l,\n ref: K([p, y])\n }\n ) }) });\n});\nU.displayName = \"Tab\";\nconst mt = Object.assign(U, {\n Button: W,\n List: V,\n Panel: q\n});\nexport {\n mt as Tab,\n W as TabButton,\n V as TabList,\n q as TabPanel\n};\n//# sourceMappingURL=Tab.js.map\n"],"names":["PopChildMeasure","React__namespace","prevProps","element","size","PopChild","children","isPresent","id","React","ref","nonce","motion","width","height","top","left","style","jsxRuntime","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","newChildrenMap","context","childId","isComplete","_","key","getChildKey","child","onlyElements","filtered","AnimatePresence","exitBeforeEnter","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","diffedChildren","setDiffedChildren","renderedChildren","setRenderedChildren","i","exitingChildren","nextChildren","forceRender","onExit","isEveryExitComplete","isExitComplete","$","F","tt","et","rt","ot","nt","u","W","b","y","v","g","useReducedMotion","w","r","n","m","l","t","E","x","d","e","o","I","c","f","C","h","j","index","jsxRuntime944c88e2","floatingUi_react","at","st","V","Icon","q","lt","U","useLayoutPropsUtilE307abc7","a","L","S","G","mt"],"mappings":"mqBASA,MAAAA,UAAAC,EAAA,SAAA,CACA,wBAAAC,EAAA,CACA,MAAAC,EAAA,KAAA,MAAA,SAAA,QACA,GAAAA,GAAAD,EAAA,WAAA,CAAA,KAAA,MAAA,UAAA,CACA,MAAAE,EAAA,KAAA,MA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8B,EAAA,YAAA,MACK,MAAAM,GAAA,OAAA,OAAAN,EAAA,CACL,OAAAhC,EACA,KAAA4B,EACA,MAAAE,CACA,CAAA","x_google_ignoreList":[0,1,2,3,4]}
|
package/Tab.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./jsx-runtime-494437bb.cjs"),r=require("./Tab-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./jsx-runtime-494437bb.cjs"),r=require("./Tab-f843e740.cjs"),a=require("react"),b=require("./useTrackingId.cjs"),T=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.mt,{ref:e,...t})),s=a.forwardRef((t,e)=>{const c={id:t.id,controls:t.controls},d=b.useTrackingId({name:"TabButton",data:c,hasOverride:!!t["data-tracking-id"]});return n.jsxRuntimeExports.jsx(r.W,{ref:e,"data-tracking-id":d,...t})}),o=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.V,{ref:e,...t})),i=a.forwardRef((t,e)=>n.jsxRuntimeExports.jsx(r.q,{ref:e,...t})),u=Object.assign(T,{Button:s,List:o,Panel:i});exports.Tab=u;exports.TabButton=s;exports.TabList=o;exports.TabPanel=i;exports.default=u;
|
|
2
2
|
//# sourceMappingURL=Tab.cjs.map
|
package/Tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
-
import { m as e, W as i, V as c, q as m } from "./Tab-
|
|
2
|
+
import { m as e, W as i, V as c, q as m } from "./Tab-1fce1d41.js";
|
|
3
3
|
import { forwardRef as r } from "react";
|
|
4
4
|
import { useTrackingId as d } from "./useTrackingId.js";
|
|
5
5
|
const u = r((t, a) => /* @__PURE__ */ n.jsx(e, { ref: a, ...t })), b = r(
|
package/TextField.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./jsx-runtime-494437bb.cjs"),r=require("./index-9948e3af.cjs"),n=require("react"),c=require("./useTrackingId.cjs");require("./Alert-066f00f2.cjs");require("./Announcement-cd9602ed.cjs");require("./index-f7658447-f447ade8.cjs");require("./Badge-b8764640.cjs");require("./index-3a4e28a9-b649e635.cjs");require("./Calendar-d0baf4b1.cjs");require("./Card-20628287.cjs");require("./ListView-88e49b19.cjs");require("./Chip-5b63e48c.cjs");require("./ProgressBar-fa511478.cjs");require("./Divider-6646eeb8.cjs");require("./Flex-971b5295.cjs");require("./Grid-37ded954.cjs");require("./Icon-57c31c9b.cjs");require("./Listbox-cd5c4185.cjs");require("./Stepper-8675700c.cjs");require("./SideNav-47435e45.cjs");require("./SrOnly-88e8fca6.cjs");require("./jsx-runtime-944c88e2-2b81c205.cjs");require("./index-67d20edb.cjs");require("./Tab-f843e740.cjs");require("./Text-631c229a.cjs");require("./Toast-32a4ab22.cjs");require("./index-d46fa8de-c02f7a12.cjs");require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs");require("./index-63e13299.cjs");require("./LocalizationProvider.cjs");const i=n.forwardRef((e,u)=>{const t={label:r.C(e.label),labelProps:e.labelProps,prefix:r.C(e.prefix),hint:r.C(e.hint),description:r.C(e.description),size:e.size,type:e.type},q=c.useTrackingId({name:"TextField",data:t,hasOverride:!!e["data-tracking-id"]});return a.jsxRuntimeExports.jsx(r.be,{ref:u,"data-tracking-id":q,...e})});exports.TextField=i;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=TextField.cjs.map
|
package/TextField.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.cjs","sources":["../src/components/TextField/TextField.tsx"],"sourcesContent":["import {\n TextFieldProps as CoreTextFieldProps,\n TextField as CoreTextField,\n} from \"@servicetitan/hammer-react/dist/TextField\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextFieldProps = Omit<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: props.label,\n labelProps: props.labelProps,\n prefix: 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":["TextField","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextField"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextField.cjs","sources":["../src/components/TextField/TextField.tsx"],"sourcesContent":["import {\n TextFieldProps as CoreTextFieldProps,\n TextField as CoreTextField,\n} from \"@servicetitan/hammer-react/dist/TextField\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextFieldProps = Omit<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":["TextField","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextField"],"mappings":"0qCAaO,MAAMA,EAAYC,EAAA,WACvB,CAACC,EAAuBC,IAA+B,CACrD,MAAMC,EAAO,CACX,MAAOC,EAAAA,EAAiBH,EAAM,KAAK,EACnC,WAAYA,EAAM,WAClB,OAAQG,EAAAA,EAAiBH,EAAM,MAAM,EACrC,KAAMG,EAAAA,EAAiBH,EAAM,IAAI,EACjC,YAAaG,EAAAA,EAAiBH,EAAM,WAAW,EAC/C,KAAMA,EAAM,KACZ,KAAMA,EAAM,IAAA,EAGRI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,YACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BAAQM,EAAc,GAAA,CAAA,IAAAL,EAAU,mBAAkBG,EAAa,GAAGJ,CAAO,CAAA,CAC3E,CACF"}
|
package/TextField.js
CHANGED
|
@@ -1,48 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as e } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
+
import { C as i, h as p } from "./index-ff5fea63.js";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
4
|
import { useTrackingId as d } from "./useTrackingId.js";
|
|
5
5
|
import "./Alert-012e475c.js";
|
|
6
6
|
import "./Announcement-f9b09ba3.js";
|
|
7
|
-
import "./index-f7658447-
|
|
7
|
+
import "./index-f7658447-1cfbda8f.js";
|
|
8
8
|
import "./Badge-df96f15a.js";
|
|
9
9
|
import "./index-3a4e28a9-3d7ba14f.js";
|
|
10
10
|
import "./Calendar-31bcb381.js";
|
|
11
11
|
import "./Card-bb358803.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./Chip-
|
|
14
|
-
import "./
|
|
12
|
+
import "./ListView-3b1adecb.js";
|
|
13
|
+
import "./Chip-6dde28bc.js";
|
|
14
|
+
import "./ProgressBar-c1b5c7c3.js";
|
|
15
15
|
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Drawer-4567c00e.js";
|
|
17
16
|
import "./Flex-d338e855.js";
|
|
18
17
|
import "./Grid-5bad450f.js";
|
|
19
18
|
import "./Icon-b94f924c.js";
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import { C as i } from "./index-d661e4bf-ed0b2ea3.js";
|
|
24
|
-
import "./Stepper-42ecb7db.js";
|
|
25
|
-
import "./Radio-8f8e771e.js";
|
|
26
|
-
import "./SegmentedControl-d223643c.js";
|
|
27
|
-
import "./SideNav-80e5ce2f.js";
|
|
19
|
+
import "./Listbox-60fbdaa1.js";
|
|
20
|
+
import "./Stepper-7e3a130c.js";
|
|
21
|
+
import "./SideNav-33a404ec.js";
|
|
28
22
|
import "./SrOnly-864bd4cb.js";
|
|
29
23
|
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
30
24
|
import "./index-e0f6271a.js";
|
|
31
|
-
import "./
|
|
32
|
-
import "./Tab-68267c78.js";
|
|
25
|
+
import "./Tab-1fce1d41.js";
|
|
33
26
|
import "./Text-465104f6.js";
|
|
34
|
-
import "./Toast-
|
|
35
|
-
import "./index-
|
|
27
|
+
import "./Toast-6cd7d2e1.js";
|
|
28
|
+
import "./index-d46fa8de-f8bf17b6.js";
|
|
36
29
|
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
37
|
-
import "./index-
|
|
38
|
-
import "./index-439b5871.js";
|
|
30
|
+
import "./index-3f218083.js";
|
|
39
31
|
import "./LocalizationProvider.js";
|
|
40
|
-
const
|
|
32
|
+
const K = a(
|
|
41
33
|
(t, r) => {
|
|
42
34
|
const m = {
|
|
43
|
-
label: t.label,
|
|
35
|
+
label: i(t.label),
|
|
44
36
|
labelProps: t.labelProps,
|
|
45
|
-
prefix: t.prefix,
|
|
37
|
+
prefix: i(t.prefix),
|
|
46
38
|
hint: i(t.hint),
|
|
47
39
|
description: i(t.description),
|
|
48
40
|
size: t.size,
|
|
@@ -52,11 +44,11 @@ const W = a(
|
|
|
52
44
|
data: m,
|
|
53
45
|
hasOverride: !!t["data-tracking-id"]
|
|
54
46
|
});
|
|
55
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ e.jsx(p, { ref: r, "data-tracking-id": o, ...t });
|
|
56
48
|
}
|
|
57
49
|
);
|
|
58
50
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
K as TextField,
|
|
52
|
+
K as default
|
|
61
53
|
};
|
|
62
54
|
//# sourceMappingURL=TextField.js.map
|
package/TextField.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sources":["../src/components/TextField/TextField.tsx"],"sourcesContent":["import {\n TextFieldProps as CoreTextFieldProps,\n TextField as CoreTextField,\n} from \"@servicetitan/hammer-react/dist/TextField\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextFieldProps = Omit<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: props.label,\n labelProps: props.labelProps,\n prefix: 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":["TextField","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextField"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextField.js","sources":["../src/components/TextField/TextField.tsx"],"sourcesContent":["import {\n TextFieldProps as CoreTextFieldProps,\n TextField as CoreTextField,\n} from \"@servicetitan/hammer-react/dist/TextField\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextFieldProps = Omit<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":["TextField","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextField"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,MAAMA,IAAYC;AAAA,EACvB,CAACC,GAAuBC,MAA+B;AACrD,UAAMC,IAAO;AAAA,MACX,OAAOC,EAAiBH,EAAM,KAAK;AAAA,MACnC,YAAYA,EAAM;AAAA,MAClB,QAAQG,EAAiBH,EAAM,MAAM;AAAA,MACrC,MAAMG,EAAiBH,EAAM,IAAI;AAAA,MACjC,aAAaG,EAAiBH,EAAM,WAAW;AAAA,MAC/C,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,IAAA,GAGRI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCAAQM,GAAc,EAAA,KAAAL,GAAU,oBAAkBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EAC3E;AACF;"}
|
package/Textarea.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./jsx-runtime-494437bb.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./jsx-runtime-494437bb.cjs"),r=require("./index-9948e3af.cjs"),n=require("react"),c=require("./useTrackingId.cjs");require("./Alert-066f00f2.cjs");require("./Announcement-cd9602ed.cjs");require("./index-f7658447-f447ade8.cjs");require("./Badge-b8764640.cjs");require("./index-3a4e28a9-b649e635.cjs");require("./Calendar-d0baf4b1.cjs");require("./Card-20628287.cjs");require("./ListView-88e49b19.cjs");require("./Chip-5b63e48c.cjs");require("./ProgressBar-fa511478.cjs");require("./Divider-6646eeb8.cjs");require("./Flex-971b5295.cjs");require("./Grid-37ded954.cjs");require("./Icon-57c31c9b.cjs");require("./Listbox-cd5c4185.cjs");require("./Stepper-8675700c.cjs");require("./SideNav-47435e45.cjs");require("./SrOnly-88e8fca6.cjs");require("./jsx-runtime-944c88e2-2b81c205.cjs");require("./index-67d20edb.cjs");require("./Tab-f843e740.cjs");require("./Text-631c229a.cjs");require("./Toast-32a4ab22.cjs");require("./index-d46fa8de-c02f7a12.cjs");require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs");require("./index-63e13299.cjs");require("./LocalizationProvider.cjs");const i=n.forwardRef((e,u)=>{const t={label:r.C(e.label),labelProps:e.labelProps,prefix:r.C(e.prefix),hint:r.C(e.hint),description:r.C(e.description)},q=c.useTrackingId({name:"Textarea",data:t,hasOverride:!!e["data-tracking-id"]});return a.jsxRuntimeExports.jsx(r.de,{ref:u,"data-tracking-id":q,...e})});exports.Textarea=i;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=Textarea.cjs.map
|
package/Textarea.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.cjs","sources":["../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\n} from \"@servicetitan/hammer-react/dist/Textarea\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextareaProps = CoreTextareaProps & DataTrackingId;\n\nexport const Textarea = forwardRef(\n (props: TextareaProps, ref: Ref<HTMLTextAreaElement>) => {\n const data = {\n label: props.label,\n labelProps: props.labelProps,\n prefix: 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":["Textarea","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextarea"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.cjs","sources":["../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\n} from \"@servicetitan/hammer-react/dist/Textarea\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\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":["Textarea","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextarea"],"mappings":"0qCAWO,MAAMA,EAAWC,EAAA,WACtB,CAACC,EAAsBC,IAAkC,CACvD,MAAMC,EAAO,CACX,MAAOC,EAAAA,EAAiBH,EAAM,KAAK,EACnC,WAAYA,EAAM,WAClB,OAAQG,EAAAA,EAAiBH,EAAM,MAAM,EACrC,KAAMG,EAAAA,EAAiBH,EAAM,IAAI,EACjC,YAAaG,EAAAA,EAAiBH,EAAM,WAAW,CAAA,EAG3CI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,WACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BAAQM,EAAa,GAAA,CAAA,IAAAL,EAAU,mBAAkBG,EAAa,GAAGJ,CAAO,CAAA,CAC1E,CACF"}
|
package/Textarea.js
CHANGED
|
@@ -1,51 +1,43 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as r, i as a } from "./index-ff5fea63.js";
|
|
3
3
|
import { forwardRef as e } from "react";
|
|
4
|
-
import { useTrackingId as
|
|
4
|
+
import { useTrackingId as n } from "./useTrackingId.js";
|
|
5
5
|
import "./Alert-012e475c.js";
|
|
6
6
|
import "./Announcement-f9b09ba3.js";
|
|
7
|
-
import "./index-f7658447-
|
|
7
|
+
import "./index-f7658447-1cfbda8f.js";
|
|
8
8
|
import "./Badge-df96f15a.js";
|
|
9
9
|
import "./index-3a4e28a9-3d7ba14f.js";
|
|
10
10
|
import "./Calendar-31bcb381.js";
|
|
11
11
|
import "./Card-bb358803.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./Chip-
|
|
14
|
-
import "./
|
|
12
|
+
import "./ListView-3b1adecb.js";
|
|
13
|
+
import "./Chip-6dde28bc.js";
|
|
14
|
+
import "./ProgressBar-c1b5c7c3.js";
|
|
15
15
|
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Drawer-4567c00e.js";
|
|
17
16
|
import "./Flex-d338e855.js";
|
|
18
17
|
import "./Grid-5bad450f.js";
|
|
19
18
|
import "./Icon-b94f924c.js";
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import { C as r } from "./index-d661e4bf-ed0b2ea3.js";
|
|
24
|
-
import "./Stepper-42ecb7db.js";
|
|
25
|
-
import "./Radio-8f8e771e.js";
|
|
26
|
-
import "./SegmentedControl-d223643c.js";
|
|
27
|
-
import "./SideNav-80e5ce2f.js";
|
|
19
|
+
import "./Listbox-60fbdaa1.js";
|
|
20
|
+
import "./Stepper-7e3a130c.js";
|
|
21
|
+
import "./SideNav-33a404ec.js";
|
|
28
22
|
import "./SrOnly-864bd4cb.js";
|
|
29
23
|
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
30
24
|
import "./index-e0f6271a.js";
|
|
31
|
-
import "./
|
|
32
|
-
import "./Tab-68267c78.js";
|
|
25
|
+
import "./Tab-1fce1d41.js";
|
|
33
26
|
import "./Text-465104f6.js";
|
|
34
|
-
import "./Toast-
|
|
35
|
-
import "./index-
|
|
27
|
+
import "./Toast-6cd7d2e1.js";
|
|
28
|
+
import "./index-d46fa8de-f8bf17b6.js";
|
|
36
29
|
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
37
|
-
import "./index-
|
|
38
|
-
import "./index-439b5871.js";
|
|
30
|
+
import "./index-3f218083.js";
|
|
39
31
|
import "./LocalizationProvider.js";
|
|
40
|
-
const
|
|
32
|
+
const K = e(
|
|
41
33
|
(t, i) => {
|
|
42
34
|
const o = {
|
|
43
|
-
label: t.label,
|
|
35
|
+
label: r(t.label),
|
|
44
36
|
labelProps: t.labelProps,
|
|
45
|
-
prefix: t.prefix,
|
|
37
|
+
prefix: r(t.prefix),
|
|
46
38
|
hint: r(t.hint),
|
|
47
39
|
description: r(t.description)
|
|
48
|
-
}, m =
|
|
40
|
+
}, m = n({
|
|
49
41
|
name: "Textarea",
|
|
50
42
|
data: o,
|
|
51
43
|
hasOverride: !!t["data-tracking-id"]
|
|
@@ -54,7 +46,7 @@ const W = e(
|
|
|
54
46
|
}
|
|
55
47
|
);
|
|
56
48
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
K as Textarea,
|
|
50
|
+
K as default
|
|
59
51
|
};
|
|
60
52
|
//# sourceMappingURL=Textarea.js.map
|
package/Textarea.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sources":["../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\n} from \"@servicetitan/hammer-react/dist/Textarea\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type TextareaProps = CoreTextareaProps & DataTrackingId;\n\nexport const Textarea = forwardRef(\n (props: TextareaProps, ref: Ref<HTMLTextAreaElement>) => {\n const data = {\n label: props.label,\n labelProps: props.labelProps,\n prefix: 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":["Textarea","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextarea"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":["../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import {\n TextareaProps as CoreTextareaProps,\n Textarea as CoreTextarea,\n} from \"@servicetitan/hammer-react/dist/Textarea\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\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":["Textarea","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreTextarea"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAMA,IAAWC;AAAA,EACtB,CAACC,GAAsBC,MAAkC;AACvD,UAAMC,IAAO;AAAA,MACX,OAAOC,EAAiBH,EAAM,KAAK;AAAA,MACnC,YAAYA,EAAM;AAAA,MAClB,QAAQG,EAAiBH,EAAM,MAAM;AAAA,MACrC,MAAMG,EAAiBH,EAAM,IAAI;AAAA,MACjC,aAAaG,EAAiBH,EAAM,WAAW;AAAA,IAAA,GAG3CI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCAAQM,GAAa,EAAA,KAAAL,GAAU,oBAAkBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EAC1E;AACF;"}
|
package/ThemeProvider.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./jsx-runtime-494437bb.cjs"),i=require("./index-d46fa8de-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./jsx-runtime-494437bb.cjs"),i=require("./index-d46fa8de-c02f7a12.cjs"),e=r=>t.jsxRuntimeExports.jsx(i.U,{prefix:"anv",...r});exports.ThemeProvider=e;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=ThemeProvider.cjs.map
|
package/ThemeProvider.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createContext as xe, forwardRef as J, useRef as k, useState as N, useEf
|
|
|
5
5
|
import { S as K } from "./index-3a4e28a9-3d7ba14f.js";
|
|
6
6
|
import { R as ve } from "./Alert-012e475c.js";
|
|
7
7
|
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
8
|
-
import { u as _e } from "./floating-ui.react-
|
|
8
|
+
import { u as _e } from "./floating-ui.react-51a3fa68.js";
|
|
9
9
|
import { E as be } from "./useSwipe-82769b09-835234e6.js";
|
|
10
10
|
import { p as ke } from "./SrOnly-864bd4cb.js";
|
|
11
11
|
import { u as Ce } from "./use-reduced-motion-b359504d.js";
|
|
@@ -563,4 +563,4 @@ export {
|
|
|
563
563
|
We as B,
|
|
564
564
|
v as y
|
|
565
565
|
};
|
|
566
|
-
//# sourceMappingURL=Toast-
|
|
566
|
+
//# sourceMappingURL=Toast-6cd7d2e1.js.map
|