@womp/kookie-ui 0.34.0 → 0.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ import{a as xe}from"./chunk-YCLPURTD.js";import{a as $}from"./chunk-OAJ5DARR.js";import{c as ue}from"./chunk-5ON3XLRD.js";import{c as q}from"./chunk-HBWBPBSA.js";import{b as le}from"./chunk-XU74PNM2.js";import{b as me,c as Y}from"./chunk-OKQAVYW4.js";import{a as Le}from"./chunk-VQPANPMI.js";var Ve={};Le(Ve,{Group:()=>Me,Root:()=>Fe,Slot:()=>De});import*as e from"react";import*as Re from"react-dom";import Z from"classnames";import{composeEventHandlers as X,composeRefs as ge,useLayoutEffect as He}from"radix-ui/internal";var ye=["1","2","3","4"],Ne=["raised","surface","soft","ghost","outline"],ce={size:{type:"enum",className:"kui-r-size",values:ye,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:Ne,default:"raised"},error:{type:"boolean",default:!1},errorMessage:{type:"string",default:void 0},required:{type:"boolean",default:!1},"aria-describedby":{type:"string",default:void 0},"aria-labelledby":{type:"string",default:void 0},...q,...le},Ge=["raised","surface","soft","outline","ghost"],de={size:{type:"enum",className:"kui-r-size",values:ye,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:Ge,default:"raised"},disabled:{type:"boolean",default:!1},...q,...le},ze=["left","right"],Pe={side:{type:"enum",values:ze},...q,gap:xe.gap,px:$.px,pl:$.pl,pr:$.pr};var Se=e.createContext(null),he="button, a, input, select, textarea, label, [tabindex], [contenteditable]";function Te(u,p){if(!(u instanceof Element)||!p)return!1;let o=u.closest(he);return!!(o&&o!==p&&p.contains(o))}var ve=e.createContext(null),Fe=e.forwardRef((u,p)=>{let o=e.useContext(ve),f=o?{...u,size:o.size,variant:o.variant,radius:o.radius,color:u.color??o.color,disabled:!!(o.disabled||u.disabled)}:u,{className:R,style:b,...g}=ue(f,ce.size),m=e.useRef(null),{children:E,className:I,color:z,radius:_,style:H,...a}=Y(g,ce),d=!!a.errorMessage,L=e.useId(),[V,K]=e.useState([]),O=e.useCallback(r=>(K(s=>s.includes(r)?s:[...s,r]),()=>K(s=>s.filter(T=>T!==r))),[]),S=e.useRef(null),U=e.useCallback(r=>(S.current=r,()=>{S.current===r&&(S.current=null)}),[]),M=!!(a.disabled||a.readOnly),A=e.useMemo(()=>({registerSlot:O,registerScrub:U,inert:M}),[O,U,M]),{"aria-describedby":N,"aria-labelledby":G,"aria-invalid":n}=a,x=!!a.error||n===!0||n==="true",B=e.useMemo(()=>{let r=[];return a.errorMessage&&r.push(L),N&&r.push(N),r.push(...V),r.length>0?r.join(" "):void 0},[a.errorMessage,N,L,V]),J=e.useMemo(()=>({"aria-invalid":x?!0:n,"aria-describedby":B,"aria-labelledby":G}),[x,n,B,G]),{error:y,errorMessage:Q,required:j,"aria-describedby":pe,"aria-labelledby":ee,onKeyDown:W,...D}=a,h=r=>{let s=S.current;!s||M||r.key!=="ArrowUp"&&r.key!=="ArrowDown"||(r.preventDefault(),s(r.key==="ArrowUp"?1:-1,r.shiftKey,r.altKey))},c=e.useCallback(r=>{if(Te(r.target,r.currentTarget))return;let s=r.target,T=m.current;if(!T)return;let C=s.closest(`
3
+ .kui-TextFieldSlot[data-side='right'],
4
+ .kui-TextFieldSlot:not([data-side='right']) ~ .kui-TextFieldSlot:not([data-side='left'])
5
+ `)?T.value.length:0;r.preventDefault(),T.focus();try{T.setSelectionRange(C,C)}catch{}},[]),w=e.createElement("div",{"data-accent-color":z,"data-radius":_,style:d?H:me(H,b),className:Z("kui-TextFieldRoot",I,!d&&R,{"kui-error":x}),onMouseDown:c},e.createElement("input",{...D,required:j||void 0,...J,onKeyDown:X(W,h),ref:ge(m,p),className:"kui-reset kui-TextFieldInput"}),e.createElement(Se.Provider,{value:A},E));return e.createElement("div",{className:Z("kui-TextFieldWrapper",d&&R),style:d?b:void 0,"data-message":d||void 0},w,d?e.createElement("div",{id:L,className:"kui-TextFieldErrorMessage",role:"alert"},a.errorMessage):null)});Fe.displayName="TextField.Root";var Me=e.forwardRef((u,p)=>{let o=ue(u,de.size),{size:f,variant:R,radius:b,color:g,disabled:m}=o,{className:E,children:I,radius:z,color:_,disabled:H,...a}=Y(o,de),d=e.useMemo(()=>({size:f,variant:R,radius:b,color:g,disabled:m}),[f,R,b,g,m]);return e.createElement("div",{role:"group","data-accent-color":g,"data-radius":b,"data-disabled":m||void 0,...a,ref:p,className:Z("kui-TextFieldGroup",E)},e.createElement(ve.Provider,{value:d},I))});Me.displayName="TextField.Group";var De=e.forwardRef((u,p)=>{let{scrub:o,scrubValue:f,scrubStep:R=1,scrubSensitivity:b=1,scrubMin:g,scrubMax:m,scrubShiftMultiplier:E=10,scrubAltMultiplier:I=.1,onScrub:z,..._}=u,{className:H,color:a,side:d,onPointerDown:L,onPointerMove:V,onPointerUp:K,onLostPointerCapture:O,...S}=Y(_,Pe),U=e.useId(),M=S.id??U,A=e.useContext(Se),N=A?.registerSlot,G=A?.registerScrub,n=!!o&&!A?.inert,x=e.useRef(null),[B,J]=e.useState(null);He(()=>{let t=!!x.current?.querySelector(he);J(i=>i===t?i:t)}),e.useEffect(()=>B===!1?N?.(M):void 0,[N,M,B]);let[y,Q]=e.useState(!1),[j,pe]=e.useState({x:0,y:0}),ee=e.useRef(null),W=e.useRef(0),D=e.useRef(0),h=e.useRef(0),c=e.useRef(0),w=e.useRef(null),r=e.useRef(0),s=e.useRef({scrubValue:f,scrubStep:R,scrubSensitivity:b,scrubMin:g,scrubMax:m,scrubShiftMultiplier:E,scrubAltMultiplier:I,onScrub:z});s.current={scrubValue:f,scrubStep:R,scrubSensitivity:b,scrubMin:g,scrubMax:m,scrubShiftMultiplier:E,scrubAltMultiplier:I,onScrub:z};let T=e.useCallback(t=>{if(!n||Te(t.target,x.current))return;t.preventDefault(),D.current=0,h.current=f??0,c.current=t.clientX,W.current=t.clientY,pe({x:t.clientX,y:t.clientY});let i=x.current;i&&(w.current=t.pointerId,r.current=t.clientX,i.setPointerCapture(t.pointerId),Q(!0))},[n,f]),te=e.useCallback((t,i,re,P)=>{let l=s.current,v=window.innerWidth,k=window.innerHeight;c.current+=t,c.current>v?c.current=c.current%v:c.current<0&&(c.current=v+c.current%v);let F=W.current+i;F>k?F=F%k:F<0&&(F=k+F%k),W.current=F;let oe=ee.current;oe&&(oe.style.left=`${c.current}px`,oe.style.top=`${F}px`),D.current+=t;let se=D.current/l.scrubSensitivity;if(Math.abs(se)>=1){let ne=1;re?ne=l.scrubShiftMultiplier:P&&(ne=l.scrubAltMultiplier);let fe=Math.trunc(se),ie=fe*l.scrubStep*ne,ae=ie;if(l.scrubMin!==void 0||l.scrubMax!==void 0){let Ie=h.current+ie,be=Math.max(l.scrubMin??-1/0,Math.min(l.scrubMax??1/0,Ie));ae=be-h.current,h.current=be}else h.current+=ie;ae!==0&&l.onScrub?.(ae,!0),D.current=(se-fe)*l.scrubSensitivity}},[]),C=e.useCallback(()=>{s.current.onScrub?.(0,!1),D.current=0,h.current=0,w.current=null,Q(!1)},[]),we=e.useCallback(t=>{if(!y)return;let i=t.clientX-r.current;r.current=t.clientX,te(i,t.movementY,t.shiftKey,t.altKey)},[y,te]),Ce=e.useCallback(t=>{if(w.current!==t.pointerId)return;let i=x.current;i&&w.current!==null&&i.releasePointerCapture(w.current),C()},[C]),ke=e.useCallback(()=>{y&&C()},[y,C]);e.useEffect(()=>{if(!y)return;let t=document.createElement("style");return t.textContent="* { cursor: none !important; user-select: none !important; }",document.head.appendChild(t),()=>{document.head.removeChild(t)}},[y]),e.useEffect(()=>{if(!(!n||!G))return G((t,i,re)=>{let P=s.current,l=i?P.scrubShiftMultiplier:re?P.scrubAltMultiplier:1,v=P.scrubValue??0,k=Math.max(P.scrubMin??-1/0,Math.min(P.scrubMax??1/0,v+t*P.scrubStep*l));k!==v&&P.onScrub?.(k-v,!1)})},[n,G]);let Ee=y?Re.createPortal(e.createElement("img",{ref:ee,className:"kui-TextFieldSlotScrubCursor",src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='black' stroke='white' stroke-width='1' d='M0 12 L5 7 L5 10 L19 10 L19 7 L24 12 L19 17 L19 14 L5 14 L5 17 Z'/%3E%3C/svg%3E",alt:"",style:{position:"fixed",left:j.x,top:j.y,transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:99999,width:24,height:24},"aria-hidden":"true"}),document.body):null;return e.createElement("div",{"data-accent-color":a,"data-side":d,"data-scrub":n||void 0,"data-scrubbing":y||void 0,...S,id:M,ref:ge(x,p),className:Z("kui-TextFieldSlot",H),onPointerDown:n?X(L,T):L,onPointerMove:n?X(V,we):V,onPointerUp:n?X(K,Ce):K,onLostPointerCapture:n?X(O,ke):O},S.children,Ee)});De.displayName="TextField.Slot";export{Fe as a,Me as b,De as c,Ve as d};
6
+ //# sourceMappingURL=chunk-YLGIP3A5.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/text-field.tsx", "../../src/components/text-field.props.tsx"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport classNames from 'classnames';\nimport { composeEventHandlers, composeRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { textFieldRootPropDefs, textFieldGroupPropDefs, textFieldSlotPropDefs, type TextFieldSlotScrubProps } from './text-field.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { mergeStyles } from '../helpers/merge-styles.js';\nimport { useThemeSizeProps } from '../hooks/theme-size.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { NotInputTextualAttributes } from '../helpers/input-attributes.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype TextFieldRootElement = React.ElementRef<'input'>;\ntype TextFieldRootOwnProps = GetPropDefTypes<typeof textFieldRootPropDefs> & {\n defaultValue?: string | number;\n value?: string | number;\n type?: 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';\n};\ntype TextFieldInputProps = ComponentPropsWithout<'input', NotInputTextualAttributes | 'color' | 'defaultValue' | 'size' | 'type' | 'value'>;\ninterface TextFieldRootProps extends TextFieldInputProps, TextFieldRootOwnProps {}\n\n// Each Slot registers its id here, so the input can list slot content in aria-describedby. A scrub\n// slot also registers its arrow-key step, and reads whether the field takes input at all.\ntype ScrubKeyHandler = (direction: 1 | -1, shiftKey: boolean, altKey: boolean) => void;\ntype TextFieldContextValue = {\n registerSlot: (id: string) => () => void;\n registerScrub: (handler: ScrubKeyHandler) => () => void;\n inert: boolean;\n};\nconst TextFieldContext = React.createContext<TextFieldContextValue | null>(null);\n\n// Clicking anything a person could mean to press keeps its own press: the guard is a focusability\n// list, not a tag list. `[tabindex]` catches role-based widgets; `label` already redirects a click.\nconst FOCUSABLE_IN_SLOT = 'button, a, input, select, textarea, label, [tabindex], [contenteditable]';\n\n/** Is the target a control inside `container`? Ancestors outside it, such as a panel or dialog\n * with a tabindex, don't count: matching them turned scrubbing and click-to-focus off. */\nfunction isControlWithin(target: EventTarget | null, container: HTMLElement | null) {\n if (!(target instanceof Element) || !container) return false;\n const hit = target.closest(FOCUSABLE_IN_SLOT);\n return Boolean(hit && hit !== container && container.contains(hit));\n}\n\n// A Group decides the look of its fields: their size, variant and radius come from it. A field\n// can still take its own color, and is disabled when either it or the group is.\ntype TextFieldGroupContextValue = Pick<TextFieldGroupOwnProps, 'size' | 'variant' | 'radius' | 'color' | 'disabled'>;\nconst TextFieldGroupContext = React.createContext<TextFieldGroupContextValue | null>(null);\n\nconst TextFieldRoot = React.forwardRef<TextFieldRootElement, TextFieldRootProps>((fieldProps, forwardedRef) => {\n const group = React.useContext(TextFieldGroupContext);\n const ownProps = group\n ? {\n ...fieldProps,\n size: group.size,\n variant: group.variant,\n radius: group.radius,\n color: fieldProps.color ?? group.color,\n disabled: Boolean(group.disabled || fieldProps.disabled),\n }\n : fieldProps;\n // The caller's className and style are kept apart from the size and variant classes: with an\n // error message they go on the wrapper, which is then the one box the parent lays out.\n const { className: ownClassName, style: ownStyle, ...themedProps } = useThemeSizeProps(ownProps, textFieldRootPropDefs.size);\n const inputRef = React.useRef<HTMLInputElement>(null);\n const { children, className, color, radius, style, ...inputProps } = extractProps(themedProps, textFieldRootPropDefs);\n const wrapped = Boolean(inputProps.errorMessage);\n\n // Generate unique IDs for accessibility\n const errorId = React.useId();\n\n // Slot content qualifies the value, so it describes the input (as in v2), in mount order.\n const [slotIds, setSlotIds] = React.useState<string[]>([]);\n const registerSlot = React.useCallback((id: string) => {\n setSlotIds((prev) => (prev.includes(id) ? prev : [...prev, id]));\n return () => setSlotIds((prev) => prev.filter((slotId) => slotId !== id));\n }, []);\n const scrubKeyRef = React.useRef<ScrubKeyHandler | null>(null);\n const registerScrub = React.useCallback((handler: ScrubKeyHandler) => {\n scrubKeyRef.current = handler;\n return () => {\n if (scrubKeyRef.current === handler) scrubKeyRef.current = null;\n };\n }, []);\n // A disabled or read-only field takes no input, so its slot does not scrub or step either.\n const inert = Boolean(inputProps.disabled || inputProps.readOnly);\n const contextValue = React.useMemo(() => ({ registerSlot, registerScrub, inert }), [registerSlot, registerScrub, inert]);\n\n const { 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, 'aria-invalid': ariaInvalid } = inputProps;\n\n // Invalid when `error` is set or the caller passes aria-invalid; the CSS keys on aria-invalid only.\n const isInvalid = Boolean(inputProps.error) || ariaInvalid === true || ariaInvalid === 'true';\n\n // Build aria-describedby string. The caller's ids stay; ours are appended.\n const describedBy = React.useMemo(() => {\n const parts = [];\n if (inputProps.errorMessage) parts.push(errorId);\n if (ariaDescribedby) parts.push(ariaDescribedby);\n parts.push(...slotIds);\n return parts.length > 0 ? parts.join(' ') : undefined;\n }, [inputProps.errorMessage, ariaDescribedby, errorId, slotIds]);\n\n // Build aria attributes\n const ariaProps = React.useMemo(\n () => ({\n 'aria-invalid': isInvalid ? true : ariaInvalid,\n 'aria-describedby': describedBy,\n 'aria-labelledby': ariaLabelledby,\n }),\n [isInvalid, ariaInvalid, describedBy, ariaLabelledby],\n );\n\n // Filter out our custom props to avoid DOM warnings\n const { error, errorMessage, required, 'aria-describedby': _ariaDescribedby, 'aria-labelledby': _ariaLabelledby, onKeyDown, ...nativeInputProps } = inputProps;\n\n // With a scrub slot, Up and Down step the value at once, by the slot's step, with the same Shift\n // and Option multipliers as a drag. The caller's handler runs first and can prevent it.\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const step = scrubKeyRef.current;\n if (!step || inert || (event.key !== 'ArrowUp' && event.key !== 'ArrowDown')) return;\n event.preventDefault();\n step(event.key === 'ArrowUp' ? 1 : -1, event.shiftKey, event.altKey);\n };\n\n // Clicking the padding or a passive slot focuses the input. preventDefault stops the browser\n // from moving focus to the root first, so the input is focused once, synchronously.\n const handleMouseDown = React.useCallback((event: React.MouseEvent) => {\n if (isControlWithin(event.target, event.currentTarget as HTMLElement)) return;\n const target = event.target as HTMLElement;\n\n const input = inputRef.current;\n if (!input) return;\n\n // Same selector as in the CSS to find the right slot\n const isRightSlot = target.closest(`\n .kui-TextFieldSlot[data-side='right'],\n .kui-TextFieldSlot:not([data-side='right']) ~ .kui-TextFieldSlot:not([data-side='left'])\n `);\n\n const cursorPosition = isRightSlot ? input.value.length : 0;\n\n event.preventDefault();\n input.focus();\n // Only some input types support this, browsers will throw an error if not supported\n // See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange#:~:text=Note%20that%20according,not%20support%20selection%22.\n try {\n input.setSelectionRange(cursorPosition, cursorPosition);\n } catch {}\n }, []);\n\n // A pointer-only hit-target redirect to the input; keyboard users reach the input directly.\n const field = (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n data-accent-color={color}\n data-radius={radius}\n style={wrapped ? style : mergeStyles(style, ownStyle)}\n className={classNames('kui-TextFieldRoot', className, !wrapped && ownClassName, {\n // Not used by the library's CSS (invalid styling keys on aria-invalid); kept as a hook for app styles.\n 'kui-error': isInvalid,\n })}\n onMouseDown={handleMouseDown}\n >\n <input\n {...nativeInputProps}\n required={required || undefined}\n {...ariaProps}\n onKeyDown={composeEventHandlers(onKeyDown, handleKeyDown)}\n ref={composeRefs(inputRef, forwardedRef)}\n className=\"kui-reset kui-TextFieldInput\"\n />\n <TextFieldContext.Provider value={contextValue}>{children}</TextFieldContext.Provider>\n </div>\n );\n // The wrapper is always there, so a message coming or going never moves the field in the tree:\n // moving it would remount the input, dropping focus, the caret and an uncontrolled value. With\n // no message it is `display: contents` and the field is the box the parent lays out; with one\n // it holds the field and the message below it, and the caller's className and style size the pair.\n return (\n <div className={classNames('kui-TextFieldWrapper', wrapped && ownClassName)} style={wrapped ? ownStyle : undefined} data-message={wrapped || undefined}>\n {field}\n {wrapped ? (\n <div id={errorId} className=\"kui-TextFieldErrorMessage\" role=\"alert\">\n {inputProps.errorMessage}\n </div>\n ) : null}\n </div>\n );\n});\nTextFieldRoot.displayName = 'TextField.Root';\n\ntype TextFieldGroupOwnProps = GetPropDefTypes<typeof textFieldGroupPropDefs>;\ninterface TextFieldGroupProps extends ComponentPropsWithout<'div', RemovedProps>, TextFieldGroupOwnProps {}\n\n/**\n * Joins two or more fields into one, such as X, Y and Z: one edge, square inner corners and a\n * hairline between the fields. The group draws the edge, so each field keeps only its fill.\n */\nconst TextFieldGroup = React.forwardRef<HTMLDivElement, TextFieldGroupProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, textFieldGroupPropDefs.size);\n const { size, variant, radius, color, disabled } = props;\n const { className, children, radius: _radius, color: _color, disabled: _disabled, ...domProps } = extractProps(props, textFieldGroupPropDefs);\n const contextValue = React.useMemo(() => ({ size, variant, radius, color, disabled }), [size, variant, radius, color, disabled]);\n return (\n <div\n role=\"group\"\n data-accent-color={color}\n data-radius={radius}\n data-disabled={disabled || undefined}\n {...domProps}\n ref={forwardedRef}\n className={classNames('kui-TextFieldGroup', className)}\n >\n <TextFieldGroupContext.Provider value={contextValue}>{children}</TextFieldGroupContext.Provider>\n </div>\n );\n});\nTextFieldGroup.displayName = 'TextField.Group';\n\ntype TextFieldSlotElement = React.ElementRef<'div'>;\ntype TextFieldSlotOwnProps = GetPropDefTypes<typeof textFieldSlotPropDefs> & TextFieldSlotScrubProps;\ninterface TextFieldSlotProps extends ComponentPropsWithout<'div', RemovedProps>, TextFieldSlotOwnProps {}\n\nconst TextFieldSlot = React.forwardRef<TextFieldSlotElement, TextFieldSlotProps>((props, forwardedRef) => {\n // Extract scrub props first (not part of PropDef system)\n const { scrub: scrubProp, scrubValue, scrubStep = 1, scrubSensitivity = 1, scrubMin, scrubMax, scrubShiftMultiplier = 10, scrubAltMultiplier = 0.1, onScrub, ...restProps } = props;\n\n // Then extract styling props\n const { className, color, side, onPointerDown, onPointerMove, onPointerUp, onLostPointerCapture, ...slotProps } = extractProps(\n restProps,\n textFieldSlotPropDefs,\n );\n\n // A slot of text describes the input (see TextFieldRoot); a caller's own id is kept. A slot\n // holding a control, such as a show-password button, does not: the input would be described\n // by the button's name.\n const generatedId = React.useId();\n const slotId = slotProps.id ?? generatedId;\n const fieldContext = React.useContext(TextFieldContext);\n const registerSlot = fieldContext?.registerSlot;\n const registerScrub = fieldContext?.registerScrub;\n const scrub = Boolean(scrubProp) && !fieldContext?.inert;\n const slotRef = React.useRef<HTMLDivElement>(null);\n // Unknown until the slot has rendered; it registers once it is known to hold only text.\n const [holdsControl, setHoldsControl] = React.useState<boolean | null>(null);\n useLayoutEffect(() => {\n const next = Boolean(slotRef.current?.querySelector(FOCUSABLE_IN_SLOT));\n setHoldsControl((prev) => (prev === next ? prev : next));\n });\n React.useEffect(() => (holdsControl === false ? registerSlot?.(slotId) : undefined), [registerSlot, slotId, holdsControl]);\n\n const [isScrubbing, setIsScrubbing] = React.useState(false);\n // Where the virtual cursor starts. Movement is written straight to the cursor element, so a\n // scrub does not re-render the slot on every mouse move.\n const [cursorStart, setCursorStart] = React.useState({ x: 0, y: 0 });\n const cursorRef = React.useRef<HTMLImageElement>(null);\n // Virtual cursor Y, tracked beside virtualX\n const virtualY = React.useRef(0);\n\n // Track accumulated sub-step movement for precision\n const accumulatedMovement = React.useRef(0);\n // Track current value for clamping (initialized to scrubValue when scrubbing starts)\n const currentValue = React.useRef(0);\n // Track virtual X position for wrap-around (separate from rendered position)\n const virtualX = React.useRef(0);\n // Track pointer ID for capture mode\n const pointerIdRef = React.useRef<number | null>(null);\n // Track last X position for capture mode (movementX calculation)\n const lastXRef = React.useRef(0);\n\n // Store scrub config in refs so document handlers can access latest values\n const scrubConfigRef = React.useRef({\n scrubValue,\n scrubStep,\n scrubSensitivity,\n scrubMin,\n scrubMax,\n scrubShiftMultiplier,\n scrubAltMultiplier,\n onScrub,\n });\n scrubConfigRef.current = {\n scrubValue,\n scrubStep,\n scrubSensitivity,\n scrubMin,\n scrubMax,\n scrubShiftMultiplier,\n scrubAltMultiplier,\n onScrub,\n };\n\n const handlePointerDown = React.useCallback(\n (event: React.PointerEvent) => {\n if (!scrub) return;\n\n // Don't start scrubbing if clicking on a control inside the slot\n if (isControlWithin(event.target, slotRef.current)) return;\n\n event.preventDefault();\n accumulatedMovement.current = 0;\n // Initialize to current value so min/max clamping works correctly\n currentValue.current = scrubValue ?? 0;\n\n // Initialize virtual cursor at actual mouse position\n virtualX.current = event.clientX;\n virtualY.current = event.clientY;\n setCursorStart({ x: event.clientX, y: event.clientY });\n\n const slot = slotRef.current;\n if (!slot) return;\n\n // Pointer capture in every browser. Pointer lock gave endless travel in Chrome, but Chrome\n // shows its \"Press Esc to show your cursor\" banner on every drag, which is noise for a\n // gesture repeated all day. Captured, the drag keeps going past the window, up to the edge\n // of the screen.\n pointerIdRef.current = event.pointerId;\n lastXRef.current = event.clientX;\n slot.setPointerCapture(event.pointerId);\n setIsScrubbing(true);\n },\n [scrub, scrubValue],\n );\n\n // Shared scrub calculation logic\n const processScrubMovement = React.useCallback((movementX: number, movementY: number, shiftKey: boolean, altKey: boolean) => {\n const config = scrubConfigRef.current;\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Update virtual position with wrap-around at viewport edges\n virtualX.current += movementX;\n if (virtualX.current > viewportWidth) {\n virtualX.current = virtualX.current % viewportWidth;\n } else if (virtualX.current < 0) {\n virtualX.current = viewportWidth + (virtualX.current % viewportWidth);\n }\n\n // Also track Y with wrap-around\n let newY = virtualY.current + movementY;\n if (newY > viewportHeight) {\n newY = newY % viewportHeight;\n } else if (newY < 0) {\n newY = viewportHeight + (newY % viewportHeight);\n }\n virtualY.current = newY;\n\n const cursor = cursorRef.current;\n if (cursor) {\n cursor.style.left = `${virtualX.current}px`;\n cursor.style.top = `${newY}px`;\n }\n\n // Accumulate movement for sensitivity calculation\n accumulatedMovement.current += movementX;\n\n // Calculate how many steps we've moved\n const stepsFromMovement = accumulatedMovement.current / config.scrubSensitivity;\n\n if (Math.abs(stepsFromMovement) >= 1) {\n // Determine modifier multiplier\n let multiplier = 1;\n if (shiftKey) {\n multiplier = config.scrubShiftMultiplier;\n } else if (altKey) {\n multiplier = config.scrubAltMultiplier;\n }\n\n // Calculate delta\n const wholeSteps = Math.trunc(stepsFromMovement);\n const delta = wholeSteps * config.scrubStep * multiplier;\n\n // Apply min/max clamping if bounds are set\n let clampedDelta = delta;\n if (config.scrubMin !== undefined || config.scrubMax !== undefined) {\n const newValue = currentValue.current + delta;\n const clampedValue = Math.max(config.scrubMin ?? -Infinity, Math.min(config.scrubMax ?? Infinity, newValue));\n clampedDelta = clampedValue - currentValue.current;\n currentValue.current = clampedValue;\n } else {\n currentValue.current += delta;\n }\n\n // Fire callback with clamped delta (isChanging = true during drag)\n if (clampedDelta !== 0) {\n config.onScrub?.(clampedDelta, true);\n }\n\n // Keep the fractional remainder for smooth sub-pixel accumulation\n accumulatedMovement.current = (stepsFromMovement - wholeSteps) * config.scrubSensitivity;\n }\n }, []);\n\n // End scrubbing helper\n const endScrubbing = React.useCallback(() => {\n scrubConfigRef.current.onScrub?.(0, false);\n accumulatedMovement.current = 0;\n currentValue.current = 0;\n pointerIdRef.current = null;\n setIsScrubbing(false);\n }, []);\n\n const handlePointerMove = React.useCallback(\n (event: React.PointerEvent) => {\n if (!isScrubbing) return;\n\n const movementX = event.clientX - lastXRef.current;\n lastXRef.current = event.clientX;\n\n processScrubMovement(movementX, event.movementY, event.shiftKey, event.altKey);\n },\n [isScrubbing, processScrubMovement],\n );\n\n const handlePointerUp = React.useCallback(\n (event: React.PointerEvent) => {\n if (pointerIdRef.current !== event.pointerId) return;\n\n const slot = slotRef.current;\n if (slot && pointerIdRef.current !== null) {\n slot.releasePointerCapture(pointerIdRef.current);\n }\n endScrubbing();\n },\n [endScrubbing],\n );\n\n const handleLostPointerCapture = React.useCallback(() => {\n if (isScrubbing) {\n endScrubbing();\n }\n }, [isScrubbing, endScrubbing]);\n\n // Hide native cursor and disable text selection during pointer capture scrubbing\n React.useEffect(() => {\n if (!isScrubbing) return;\n\n // Create a style element to hide cursor globally during scrub\n const style = document.createElement('style');\n style.textContent = '* { cursor: none !important; user-select: none !important; }';\n document.head.appendChild(style);\n\n return () => {\n document.head.removeChild(style);\n };\n }, [isScrubbing]);\n\n // Up and Down on the input step once. The step is a whole change, so it reports isChanging\n // false at once: one undo step per press, as a drag is one per release.\n React.useEffect(() => {\n if (!scrub || !registerScrub) return;\n return registerScrub((direction, shiftKey, altKey) => {\n const config = scrubConfigRef.current;\n const multiplier = shiftKey ? config.scrubShiftMultiplier : altKey ? config.scrubAltMultiplier : 1;\n const start = config.scrubValue ?? 0;\n const next = Math.max(config.scrubMin ?? -Infinity, Math.min(config.scrubMax ?? Infinity, start + direction * config.scrubStep * multiplier));\n if (next !== start) config.onScrub?.(next - start, false);\n });\n }, [scrub, registerScrub]);\n\n // Render virtual cursor via portal to body so it's not clipped\n // Using a data URI of ew-resize cursor for a native look\n const virtualCursor = isScrubbing\n ? ReactDOM.createPortal(\n <img\n ref={cursorRef}\n className=\"kui-TextFieldSlotScrubCursor\"\n src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='black' stroke='white' stroke-width='1' d='M0 12 L5 7 L5 10 L19 10 L19 7 L24 12 L19 17 L19 14 L5 14 L5 17 Z'/%3E%3C/svg%3E\"\n alt=\"\"\n style={{\n position: 'fixed',\n left: cursorStart.x,\n top: cursorStart.y,\n transform: 'translate(-50%, -50%)',\n pointerEvents: 'none',\n zIndex: 99999,\n width: 24,\n height: 24,\n }}\n aria-hidden=\"true\"\n />,\n document.body,\n )\n : null;\n\n return (\n <div\n data-accent-color={color}\n data-side={side}\n data-scrub={scrub || undefined}\n data-scrubbing={isScrubbing || undefined}\n {...slotProps}\n id={slotId}\n ref={composeRefs(slotRef, forwardedRef)}\n className={classNames('kui-TextFieldSlot', className)}\n // The caller's handlers run first; the scrub handlers only when `scrub` is set.\n onPointerDown={scrub ? composeEventHandlers(onPointerDown, handlePointerDown) : onPointerDown}\n onPointerMove={scrub ? composeEventHandlers(onPointerMove, handlePointerMove) : onPointerMove}\n onPointerUp={scrub ? composeEventHandlers(onPointerUp, handlePointerUp) : onPointerUp}\n onLostPointerCapture={scrub ? composeEventHandlers(onLostPointerCapture, handleLostPointerCapture) : onLostPointerCapture}\n >\n {slotProps.children}\n {virtualCursor}\n </div>\n );\n});\nTextFieldSlot.displayName = 'TextField.Slot';\n\nexport { TextFieldRoot as Root, TextFieldGroup as Group, TextFieldSlot as Slot };\nexport type { TextFieldRootProps as RootProps, TextFieldGroupProps as GroupProps, TextFieldSlotProps as SlotProps };\n", "import { colorPropDef } from '../props/color.prop.js';\nimport { paddingPropDefs } from '../props/padding.props.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\nimport { flexPropDefs } from './flex.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'surface', 'soft', 'ghost', 'outline'] as const;\n\nconst textFieldRootPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'kui-variant', values: variants, default: 'raised' },\n // Error and validation props\n error: { type: 'boolean', default: false },\n errorMessage: { type: 'string', default: undefined },\n required: { type: 'boolean', default: false },\n // Accessibility props\n 'aria-describedby': { type: 'string', default: undefined },\n 'aria-labelledby': { type: 'string', default: undefined },\n ...colorPropDef,\n ...radiusPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n error: PropDef<boolean>;\n errorMessage: PropDef<string | undefined>;\n required: PropDef<boolean>;\n 'aria-describedby': PropDef<string | undefined>;\n 'aria-labelledby': PropDef<string | undefined>;\n};\n\n// Ghost is the dividers alone: no fill, no edge.\nconst groupVariants = ['raised', 'surface', 'soft', 'outline', 'ghost'] as const;\n\nconst textFieldGroupPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'kui-variant', values: groupVariants, default: 'raised' },\n disabled: { type: 'boolean', default: false },\n ...colorPropDef,\n ...radiusPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof groupVariants)[number]>;\n disabled: PropDef<boolean>;\n};\n\nconst sides = ['left', 'right'] as const;\n\nconst textFieldSlotPropDefs = {\n side: { type: 'enum', values: sides },\n ...colorPropDef,\n gap: flexPropDefs.gap,\n px: paddingPropDefs.px,\n pl: paddingPropDefs.pl,\n pr: paddingPropDefs.pr,\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n gap: typeof flexPropDefs.gap;\n px: typeof paddingPropDefs.px;\n pl: typeof paddingPropDefs.pl;\n pr: typeof paddingPropDefs.pr;\n};\n\n/** Scrubbing props for TextField.Slot - handled separately from PropDef system */\ninterface TextFieldSlotScrubProps {\n /**\n * Drag the slot to change the value; Up and Down on the input step it once. Ignored while the\n * field is disabled or read-only.\n */\n scrub?: boolean;\n /** Current value (required for min/max clamping to work correctly) */\n scrubValue?: number;\n /** Base value change per movement unit (default: 1) */\n scrubStep?: number;\n /** Pixels of movement per step - higher = less sensitive (default: 1) */\n scrubSensitivity?: number;\n /** Minimum allowed value */\n scrubMin?: number;\n /** Maximum allowed value */\n scrubMax?: number;\n /** Step multiplier when Shift is held (default: 10) */\n scrubShiftMultiplier?: number;\n /** Step multiplier when Alt/Option is held (default: 0.1) */\n scrubAltMultiplier?: number;\n /**\n * Callback fired during scrubbing with the value delta\n * @param delta - The change in value\n * @param isChanging - true while dragging, false when released\n */\n onScrub?: (delta: number, isChanging: boolean) => void;\n}\n\nexport type { TextFieldSlotScrubProps };\n\nexport { textFieldRootPropDefs, textFieldGroupPropDefs, textFieldSlotPropDefs };\n"],
5
+ "mappings": ";oSAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,WAAAE,GAAA,SAAAC,GAAA,SAAAC,KAEA,UAAYC,MAAW,QACvB,UAAYC,OAAc,YAC1B,OAAOC,MAAgB,aACvB,OAAS,wBAAAC,EAAsB,eAAAC,GAAa,mBAAAC,OAAuB,oBCEnE,IAAMC,GAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,GAAW,CAAC,SAAU,UAAW,OAAQ,QAAS,SAAS,EAE3DC,GAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQF,GAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,QAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,OAAQC,GAAU,QAAS,QAAS,EAEvF,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,EACzC,aAAc,CAAE,KAAM,SAAU,QAAS,MAAU,EACnD,SAAU,CAAE,KAAM,UAAW,QAAS,EAAM,EAE5C,mBAAoB,CAAE,KAAM,SAAU,QAAS,MAAU,EACzD,kBAAmB,CAAE,KAAM,SAAU,QAAS,MAAU,EACxD,GAAGE,EACH,GAAGC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OA,EAAc,CAACoG,EAAWlB,EAAUC,KAAW,CACpD,IAAMC,EAASR,EAAe,QACxBc,EAAaR,EAAWE,EAAO,qBAAuBD,GAASC,EAAO,mBAAqB,EAC3FiB,EAAQjB,EAAO,YAAc,EAC7BpB,EAAO,KAAK,IAAIoB,EAAO,UAAY,KAAW,KAAK,IAAIA,EAAO,UAAY,IAAUiB,EAAQD,EAAYhB,EAAO,UAAYM,CAAU,CAAC,EACxI1B,IAASqC,GAAOjB,EAAO,UAAUpB,EAAOqC,EAAO,EAAK,CAC1D,CAAC,CACH,EAAG,CAAC1C,EAAO3D,CAAa,CAAC,EAIzB,IAAMsG,GAAgBrC,EACT,gBACP,gBAAC,OACC,IAAKI,GACL,UAAU,+BACV,IAAI,oPACJ,IAAI,GACJ,MAAO,CACL,SAAU,QACV,KAAMF,EAAY,EAClB,IAAKA,EAAY,EACjB,UAAW,wBACX,cAAe,OACf,OAAQ,MACR,MAAO,GACP,OAAQ,EACV,EACA,cAAY,OACd,EACA,SAAS,IACX,EACA,KAEJ,OACE,gBAAC,OACC,oBAAmBjF,EACnB,YAAWgE,EACX,aAAYS,GAAS,OACrB,iBAAgBM,GAAe,OAC9B,GAAGV,EACJ,GAAIzD,EACJ,IAAK8B,GAAYgC,EAASrF,CAAY,EACtC,UAAWmD,EAAW,oBAAqBzC,CAAS,EAEpD,cAAe0E,EAAQhC,EAAqBwB,EAAe0B,CAAiB,EAAI1B,EAChF,cAAeQ,EAAQhC,EAAqByB,EAAe6C,EAAiB,EAAI7C,EAChF,YAAaO,EAAQhC,EAAqB0B,EAAa6C,EAAe,EAAI7C,EAC1E,qBAAsBM,EAAQhC,EAAqB2B,EAAsB6C,EAAwB,EAAI7C,GAEpGC,EAAU,SACV+C,EACH,CAEJ,CAAC,EACD/D,GAAc,YAAc",
6
+ "names": ["text_field_exports", "__export", "TextFieldGroup", "TextFieldRoot", "TextFieldSlot", "React", "ReactDOM", "classNames", "composeEventHandlers", "composeRefs", "useLayoutEffect", "sizes", "variants", "textFieldRootPropDefs", "colorPropDef", "radiusPropDef", "groupVariants", "textFieldGroupPropDefs", "sides", "textFieldSlotPropDefs", "flexPropDefs", "paddingPropDefs", "TextFieldContext", "FOCUSABLE_IN_SLOT", "isControlWithin", "target", "container", "hit", "TextFieldGroupContext", "TextFieldRoot", "fieldProps", "forwardedRef", "group", "ownProps", "ownClassName", "ownStyle", "themedProps", "useThemeSizeProps", "textFieldRootPropDefs", "inputRef", "children", "className", "color", "radius", "style", "inputProps", "extractProps", "wrapped", "errorId", "slotIds", "setSlotIds", "registerSlot", "id", "prev", "slotId", "scrubKeyRef", "registerScrub", "handler", "inert", "contextValue", "ariaDescribedby", "ariaLabelledby", "ariaInvalid", "isInvalid", "describedBy", "parts", "ariaProps", "error", "errorMessage", "required", "_ariaDescribedby", "_ariaLabelledby", "onKeyDown", "nativeInputProps", "handleKeyDown", "event", "step", "handleMouseDown", "input", "cursorPosition", "field", "mergeStyles", "classNames", "composeEventHandlers", "composeRefs", "TextFieldGroup", "props", "textFieldGroupPropDefs", "size", "variant", "disabled", "_radius", "_color", "_disabled", "domProps", "TextFieldSlot", "scrubProp", "scrubValue", "scrubStep", "scrubSensitivity", "scrubMin", "scrubMax", "scrubShiftMultiplier", "scrubAltMultiplier", "onScrub", "restProps", "side", "onPointerDown", "onPointerMove", "onPointerUp", "onLostPointerCapture", "slotProps", "textFieldSlotPropDefs", "generatedId", "fieldContext", "scrub", "slotRef", "holdsControl", "setHoldsControl", "useLayoutEffect", "next", "isScrubbing", "setIsScrubbing", "cursorStart", "setCursorStart", "cursorRef", "virtualY", "accumulatedMovement", "currentValue", "virtualX", "pointerIdRef", "lastXRef", "scrubConfigRef", "handlePointerDown", "slot", "processScrubMovement", "movementX", "movementY", "shiftKey", "altKey", "config", "viewportWidth", "viewportHeight", "newY", "cursor", "stepsFromMovement", "multiplier", "wholeSteps", "delta", "clampedDelta", "newValue", "clampedValue", "endScrubbing", "handlePointerMove", "handlePointerUp", "handleLostPointerCapture", "direction", "start", "virtualCursor"]
7
+ }
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import"../chunk-SHKPQ3RI.js";import{a as ma}from"../chunk-ZLGOZKB3.js";import{a as Ea}from"../chunk-7QBNXNEN.js";import{a as ga}from"../chunk-VYF6KKYM.js";import{a as ha}from"../chunk-VBF3XALY.js";import{h as ia}from"../chunk-XF6Z5NKE.js";import{e as ja}from"../chunk-QBONJMSE.js";import{a as ka}from"../chunk-D42VCLKH.js";import{d as la}from"../chunk-Y44DYJA5.js";import{h as ea}from"../chunk-TMINGBSQ.js";import{g as Ha}from"../chunk-API4DAPY.js";import{h as Ga}from"../chunk-NO2JCJWI.js";import"../chunk-INGT6DB6.js";import"../chunk-B447PNRD.js";import{l as Fa}from"../chunk-J6B7UCZN.js";import{a as fa}from"../chunk-COLJWVN7.js";import{a as ca}from"../chunk-L66IUPDW.js";import{c as da}from"../chunk-5VYQDA5S.js";import{a as xa,b as ya,c as za,d as Aa,e as Ba,f as Ca,g as Da}from"../chunk-XKYPJTRN.js";import{a as na,c as oa,d as pa,e as qa,f as ra,g as sa,h as ta,i as ua,j as va}from"../chunk-BR6Z2CAE.js";import{a as wa}from"../chunk-65URNXF2.js";import{a as _}from"../chunk-AXODGYRY.js";import{a as $}from"../chunk-LFAUMDU5.js";import{c as aa}from"../chunk-26O4RBOJ.js";import{a as ba}from"../chunk-OPYTQ34H.js";import{a as X}from"../chunk-AKSAKP35.js";import{a as Y}from"../chunk-3H33S3UA.js";import{i as Ia}from"../chunk-YOTTLPJ3.js";import{e as Z}from"../chunk-EERKYRYI.js";import{a as G}from"../chunk-NYIYRILR.js";import{l as I}from"../chunk-BQOFHLDP.js";import{g as H}from"../chunk-TUZ665BA.js";import{b as J,c as K,d as L,e as M,f as N,g as O,h as P,i as Q,j as R,k as S}from"../chunk-GZPB6MRQ.js";import{n as T}from"../chunk-TRJAVWCK.js";import{g as U}from"../chunk-CAM66IXC.js";import{o as V}from"../chunk-KBSH6CBD.js";import"../chunk-2ACVWLFA.js";import{a as W}from"../chunk-Q5SANVIW.js";import{a as u}from"../chunk-XD3C3GVF.js";import{a as y}from"../chunk-X7DGYRAY.js";import{m as C}from"../chunk-LG5DPQ46.js";import{b as z,c as A}from"../chunk-7YXHLU4C.js";import{a as B}from"../chunk-WUCBFB25.js";import{a as x}from"../chunk-JQMWNI62.js";import"../chunk-Y2DBXOLT.js";import{c as D}from"../chunk-3M5ZM67R.js";import"../chunk-2VSRZ4IT.js";import{a as E}from"../chunk-HVMRB3AH.js";import"../chunk-4KIZRO52.js";import{a as F}from"../chunk-JFJV4HL3.js";import{a as v,b as w}from"../chunk-NJ7RQYLX.js";import"../chunk-KDJM4NQQ.js";import{a as n}from"../chunk-B6YGNB3V.js";import{f as o}from"../chunk-OMPLFDS6.js";import{h as r}from"../chunk-NZJRXZYX.js";import"../chunk-FATCGZZE.js";import{a as p}from"../chunk-OBSZOD5M.js";import"../chunk-7VJF6EXN.js";import"../chunk-TGRHRMQI.js";import{a as q}from"../chunk-FICBVI4M.js";import"../chunk-BQC2P3SN.js";import{a as s}from"../chunk-L7PRLW6A.js";import{a as t}from"../chunk-IFHBMTFX.js";import"../chunk-UJ7JERJ5.js";import"../chunk-HGF4CKRY.js";import{a as k,b as l,c as m}from"../chunk-FVRVBB6O.js";import"../chunk-GHUAUFG7.js";import"../chunk-UMQOTGJC.js";import"../chunk-XD676L6S.js";import"../chunk-XUCR7L4G.js";import"../chunk-3QWGSRYC.js";import"../chunk-KGCGT4MJ.js";import"../chunk-QKCNGEX4.js";import"../chunk-WEBNIUEX.js";import"../chunk-SGKLJDA3.js";import{a as d}from"../chunk-BUXK5VGR.js";import{a as c}from"../chunk-KVVRFWGQ.js";import"../chunk-YCLPURTD.js";import"../chunk-CR65RYGM.js";import"../chunk-7N2Q5WOM.js";import"../chunk-OAJ5DARR.js";import{b as a,c as b}from"../chunk-5KMEUZWN.js";import{a as e,b as f,c as g,d as h}from"../chunk-GKDGNPBD.js";import"../chunk-5ON3XLRD.js";import"../chunk-HBWBPBSA.js";import"../chunk-5JYSYTHA.js";import"../chunk-ISCZ57VL.js";import"../chunk-EB4AG3OL.js";import{a as i}from"../chunk-QPRUTOLI.js";import"../chunk-G66WDIIV.js";import"../chunk-4KBKS3ZE.js";import"../chunk-VWRPVM5K.js";import"../chunk-ODHCDJ3Y.js";import{a as j}from"../chunk-DFQIIYLD.js";import"../chunk-KOAWATCI.js";import"../chunk-5KJIPH2N.js";import"../chunk-YOSLXJI5.js";import"../chunk-QEDKL23P.js";import"../chunk-5BXCPANF.js";import"../chunk-LPLW7OWA.js";import"../chunk-L54FWKJE.js";import"../chunk-XU74PNM2.js";import"../chunk-MAA6LEE2.js";import"../chunk-OKQAVYW4.js";import"../chunk-CLJ6SEGP.js";import"../chunk-ANQLWGFN.js";import"../chunk-VQPANPMI.js";export{n as AccessibleIcon,o as Accordion,r as AlertDialog,s as Avatar,t as Blockquote,u as Box,x as Button,y as Card,C as Chatbar,E as Checkbox,D as CheckboxGroup,g as ChevronDownIcon,F as Chip,G as Code,I as Combobox,J as Command,Q as CommandCollection,L as CommandContent,S as CommandEmpty,O as CommandGroup,P as CommandGroupLabel,M as CommandInput,R as CommandItem,N as CommandList,K as CommandTrigger,A as Confirmation,T as ContextMenu,U as Dialog,V as DropdownMenu,c as Flex,W as Grid,p as Heading,X as Image,i as Kbd,Y as Link,Ia as MessageScroller,Z as Navbar,xa as Navigator,Aa as NavigatorBack,Da as NavigatorLink,ya as NavigatorOutlet,Ca as NavigatorScreen,Ba as NavigatorTitle,z as Notice,wa as Page,H as Popover,_ as Portal,$ as Progress,ba as Radio,aa as RadioGroup,ca as Reset,j as ScrollArea,da as SegmentedControl,ea as Select,fa as Separator,Ha as Sheet,Ga as Shell,Fa as Sidebar,ga as Slider,a as Slot,b as Slottable,d as Spinner,ha as Switch,ia as Table,ja as Tabs,q as Text,ka as TextArea,la as TextField,m as Theme,k as ThemeContext,f as ThickCheckIcon,h as ThickChevronRightIcon,e as ThickDividerHorizontalIcon,ma as Toggle,va as Toolbar,pa as ToolbarButton,sa as ToolbarFill,oa as ToolbarGroup,qa as ToolbarOverflow,ta as ToolbarSeparator,ra as ToolbarSlot,ua as ToolbarTitle,w as Tooltip,v as TooltipProvider,Ea as VirtualMenu,B as VisuallyHidden,za as useNavigator,l as useThemeContext,na as useToolbarOverflow};
2
+ import"../chunk-SHKPQ3RI.js";import{a as ma}from"../chunk-ZLGOZKB3.js";import{a as Ea}from"../chunk-7QBNXNEN.js";import{a as ga}from"../chunk-VYF6KKYM.js";import{a as ha}from"../chunk-VBF3XALY.js";import{h as ia}from"../chunk-XF6Z5NKE.js";import{e as ja}from"../chunk-QBONJMSE.js";import{a as ka}from"../chunk-D42VCLKH.js";import{d as la}from"../chunk-YLGIP3A5.js";import{h as ea}from"../chunk-TMINGBSQ.js";import{g as Ha}from"../chunk-API4DAPY.js";import{h as Ga}from"../chunk-NO2JCJWI.js";import"../chunk-INGT6DB6.js";import"../chunk-B447PNRD.js";import{l as Fa}from"../chunk-J6B7UCZN.js";import{a as fa}from"../chunk-COLJWVN7.js";import{a as ca}from"../chunk-L66IUPDW.js";import{c as da}from"../chunk-5VYQDA5S.js";import{a as xa,b as ya,c as za,d as Aa,e as Ba,f as Ca,g as Da}from"../chunk-XKYPJTRN.js";import{a as na,c as oa,d as pa,e as qa,f as ra,g as sa,h as ta,i as ua,j as va}from"../chunk-BR6Z2CAE.js";import{a as wa}from"../chunk-65URNXF2.js";import{a as _}from"../chunk-AXODGYRY.js";import{a as $}from"../chunk-LFAUMDU5.js";import{c as aa}from"../chunk-26O4RBOJ.js";import{a as ba}from"../chunk-OPYTQ34H.js";import{a as X}from"../chunk-AKSAKP35.js";import{a as Y}from"../chunk-3H33S3UA.js";import{i as Ia}from"../chunk-YOTTLPJ3.js";import{e as Z}from"../chunk-EERKYRYI.js";import{a as G}from"../chunk-NYIYRILR.js";import{l as I}from"../chunk-BQOFHLDP.js";import{g as H}from"../chunk-TUZ665BA.js";import{b as J,c as K,d as L,e as M,f as N,g as O,h as P,i as Q,j as R,k as S}from"../chunk-GZPB6MRQ.js";import{n as T}from"../chunk-TRJAVWCK.js";import{g as U}from"../chunk-CAM66IXC.js";import{o as V}from"../chunk-KBSH6CBD.js";import"../chunk-2ACVWLFA.js";import{a as W}from"../chunk-Q5SANVIW.js";import{a as u}from"../chunk-XD3C3GVF.js";import{a as y}from"../chunk-X7DGYRAY.js";import{m as C}from"../chunk-LG5DPQ46.js";import{b as z,c as A}from"../chunk-7YXHLU4C.js";import{a as B}from"../chunk-WUCBFB25.js";import{a as x}from"../chunk-JQMWNI62.js";import"../chunk-Y2DBXOLT.js";import{c as D}from"../chunk-3M5ZM67R.js";import"../chunk-2VSRZ4IT.js";import{a as E}from"../chunk-HVMRB3AH.js";import"../chunk-4KIZRO52.js";import{a as F}from"../chunk-JFJV4HL3.js";import{a as v,b as w}from"../chunk-NJ7RQYLX.js";import"../chunk-KDJM4NQQ.js";import{a as n}from"../chunk-B6YGNB3V.js";import{f as o}from"../chunk-OMPLFDS6.js";import{h as r}from"../chunk-NZJRXZYX.js";import"../chunk-FATCGZZE.js";import{a as p}from"../chunk-OBSZOD5M.js";import"../chunk-7VJF6EXN.js";import"../chunk-TGRHRMQI.js";import{a as q}from"../chunk-FICBVI4M.js";import"../chunk-BQC2P3SN.js";import{a as s}from"../chunk-L7PRLW6A.js";import{a as t}from"../chunk-IFHBMTFX.js";import"../chunk-UJ7JERJ5.js";import"../chunk-HGF4CKRY.js";import{a as k,b as l,c as m}from"../chunk-FVRVBB6O.js";import"../chunk-GHUAUFG7.js";import"../chunk-UMQOTGJC.js";import"../chunk-XD676L6S.js";import"../chunk-XUCR7L4G.js";import"../chunk-3QWGSRYC.js";import"../chunk-KGCGT4MJ.js";import"../chunk-QKCNGEX4.js";import"../chunk-WEBNIUEX.js";import"../chunk-SGKLJDA3.js";import{a as d}from"../chunk-BUXK5VGR.js";import{a as c}from"../chunk-KVVRFWGQ.js";import"../chunk-YCLPURTD.js";import"../chunk-CR65RYGM.js";import"../chunk-7N2Q5WOM.js";import"../chunk-OAJ5DARR.js";import{b as a,c as b}from"../chunk-5KMEUZWN.js";import{a as e,b as f,c as g,d as h}from"../chunk-GKDGNPBD.js";import"../chunk-5ON3XLRD.js";import"../chunk-HBWBPBSA.js";import"../chunk-5JYSYTHA.js";import"../chunk-ISCZ57VL.js";import"../chunk-EB4AG3OL.js";import{a as i}from"../chunk-QPRUTOLI.js";import"../chunk-G66WDIIV.js";import"../chunk-4KBKS3ZE.js";import"../chunk-VWRPVM5K.js";import"../chunk-ODHCDJ3Y.js";import{a as j}from"../chunk-DFQIIYLD.js";import"../chunk-KOAWATCI.js";import"../chunk-5KJIPH2N.js";import"../chunk-YOSLXJI5.js";import"../chunk-QEDKL23P.js";import"../chunk-5BXCPANF.js";import"../chunk-LPLW7OWA.js";import"../chunk-L54FWKJE.js";import"../chunk-XU74PNM2.js";import"../chunk-MAA6LEE2.js";import"../chunk-OKQAVYW4.js";import"../chunk-CLJ6SEGP.js";import"../chunk-ANQLWGFN.js";import"../chunk-VQPANPMI.js";export{n as AccessibleIcon,o as Accordion,r as AlertDialog,s as Avatar,t as Blockquote,u as Box,x as Button,y as Card,C as Chatbar,E as Checkbox,D as CheckboxGroup,g as ChevronDownIcon,F as Chip,G as Code,I as Combobox,J as Command,Q as CommandCollection,L as CommandContent,S as CommandEmpty,O as CommandGroup,P as CommandGroupLabel,M as CommandInput,R as CommandItem,N as CommandList,K as CommandTrigger,A as Confirmation,T as ContextMenu,U as Dialog,V as DropdownMenu,c as Flex,W as Grid,p as Heading,X as Image,i as Kbd,Y as Link,Ia as MessageScroller,Z as Navbar,xa as Navigator,Aa as NavigatorBack,Da as NavigatorLink,ya as NavigatorOutlet,Ca as NavigatorScreen,Ba as NavigatorTitle,z as Notice,wa as Page,H as Popover,_ as Portal,$ as Progress,ba as Radio,aa as RadioGroup,ca as Reset,j as ScrollArea,da as SegmentedControl,ea as Select,fa as Separator,Ha as Sheet,Ga as Shell,Fa as Sidebar,ga as Slider,a as Slot,b as Slottable,d as Spinner,ha as Switch,ia as Table,ja as Tabs,q as Text,ka as TextArea,la as TextField,m as Theme,k as ThemeContext,f as ThickCheckIcon,h as ThickChevronRightIcon,e as ThickDividerHorizontalIcon,ma as Toggle,va as Toolbar,pa as ToolbarButton,sa as ToolbarFill,oa as ToolbarGroup,qa as ToolbarOverflow,ta as ToolbarSeparator,ra as ToolbarSlot,ua as ToolbarTitle,w as Tooltip,v as TooltipProvider,Ea as VirtualMenu,B as VisuallyHidden,za as useNavigator,l as useThemeContext,na as useToolbarOverflow};
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/components/text-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAK3I,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,KAAK,qBAAqB,GAAG,eAAe,CAAC,OAAO,qBAAqB,CAAC,GAAG;IAC3E,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAC/I,CAAC;AACF,KAAK,mBAAmB,GAAG,qBAAqB,CAAC,OAAO,EAAE,yBA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from"../chunk-Y44DYJA5.js";import"../chunk-YCLPURTD.js";import"../chunk-CR65RYGM.js";import"../chunk-OAJ5DARR.js";import"../chunk-5ON3XLRD.js";import"../chunk-HBWBPBSA.js";import"../chunk-XU74PNM2.js";import"../chunk-OKQAVYW4.js";import"../chunk-CLJ6SEGP.js";import"../chunk-VQPANPMI.js";export{b as Group,a as Root,c as Slot};
2
+ "use client";import{a,b,c}from"../chunk-YLGIP3A5.js";import"../chunk-YCLPURTD.js";import"../chunk-CR65RYGM.js";import"../chunk-OAJ5DARR.js";import"../chunk-5ON3XLRD.js";import"../chunk-HBWBPBSA.js";import"../chunk-XU74PNM2.js";import"../chunk-OKQAVYW4.js";import"../chunk-CLJ6SEGP.js";import"../chunk-VQPANPMI.js";export{b as Group,a as Root,c as Slot};
3
3
  //# sourceMappingURL=text-field.js.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import"./chunk-AYKOOEZR.js";import{a as No}from"./chunk-RIHTVZVJ.js";import{a as Oo,b as Po,c as Qo,d as Ro}from"./chunk-3LIF53YY.js";import{a as Mo}from"./chunk-WTP2KIK3.js";import"./chunk-SHKPQ3RI.js";import{a as jo}from"./chunk-ZLGOZKB3.js";import{a as Ho}from"./chunk-7QBNXNEN.js";import{a as ao}from"./chunk-VYF6KKYM.js";import{a as bo}from"./chunk-VBF3XALY.js";import{h as co}from"./chunk-XF6Z5NKE.js";import{e as go}from"./chunk-QBONJMSE.js";import{a as ho}from"./chunk-D42VCLKH.js";import{d as io}from"./chunk-Y44DYJA5.js";import{h as to}from"./chunk-TMINGBSQ.js";import{g as Ko}from"./chunk-API4DAPY.js";import{h as Jo}from"./chunk-NO2JCJWI.js";import"./chunk-INGT6DB6.js";import"./chunk-B447PNRD.js";import{l as Io}from"./chunk-J6B7UCZN.js";import{a as xo}from"./chunk-COLJWVN7.js";import{a as mo}from"./chunk-L66IUPDW.js";import{c as po}from"./chunk-5VYQDA5S.js";import{a as Ao,b as Bo,c as Co,d as Do,e as Eo,f as Fo,g as Go}from"./chunk-XKYPJTRN.js";import{a as ko,c as lo,d as no,e as qo,f as so,g as uo,h as vo,i as wo,j as yo}from"./chunk-BR6Z2CAE.js";import{a as zo}from"./chunk-65URNXF2.js";import{a as oo}from"./chunk-AXODGYRY.js";import{a as ro}from"./chunk-LFAUMDU5.js";import{c as eo}from"./chunk-26O4RBOJ.js";import{a as fo}from"./chunk-OPYTQ34H.js";import{a as Z}from"./chunk-AKSAKP35.js";import{a as _}from"./chunk-3H33S3UA.js";import{i as Lo}from"./chunk-YOTTLPJ3.js";import{e as $}from"./chunk-EERKYRYI.js";import{a as I}from"./chunk-NYIYRILR.js";import{l as K}from"./chunk-BQOFHLDP.js";import{g as J}from"./chunk-TUZ665BA.js";import{b as L,c as M,d as N,e as O,f as P,g as Q,h as R,i as S,j as T,k as U}from"./chunk-GZPB6MRQ.js";import{n as V}from"./chunk-TRJAVWCK.js";import{g as W}from"./chunk-CAM66IXC.js";import{o as X}from"./chunk-KBSH6CBD.js";import"./chunk-2ACVWLFA.js";import{a as Y}from"./chunk-Q5SANVIW.js";import{a as u}from"./chunk-XD3C3GVF.js";import{a as A}from"./chunk-X7DGYRAY.js";import{m as E}from"./chunk-LG5DPQ46.js";import{b as B,c as C}from"./chunk-7YXHLU4C.js";import{a as D}from"./chunk-WUCBFB25.js";import{a as z}from"./chunk-JQMWNI62.js";import{a as y}from"./chunk-Y2DBXOLT.js";import{c as F}from"./chunk-3M5ZM67R.js";import"./chunk-2VSRZ4IT.js";import{a as G}from"./chunk-HVMRB3AH.js";import"./chunk-4KIZRO52.js";import{a as H}from"./chunk-JFJV4HL3.js";import{a as v,b as w}from"./chunk-NJ7RQYLX.js";import"./chunk-KDJM4NQQ.js";import{a as h}from"./chunk-B6YGNB3V.js";import{f as i}from"./chunk-OMPLFDS6.js";import{h as n}from"./chunk-NZJRXZYX.js";import"./chunk-FATCGZZE.js";import{a as j}from"./chunk-OBSZOD5M.js";import{a as l}from"./chunk-7VJF6EXN.js";import"./chunk-TGRHRMQI.js";import{a as k}from"./chunk-FICBVI4M.js";import"./chunk-BQC2P3SN.js";import{a as q}from"./chunk-L7PRLW6A.js";import{a as s}from"./chunk-IFHBMTFX.js";import"./chunk-UJ7JERJ5.js";import"./chunk-HGF4CKRY.js";import{a as c,b as d,c as g}from"./chunk-FVRVBB6O.js";import"./chunk-GHUAUFG7.js";import"./chunk-UMQOTGJC.js";import"./chunk-XD676L6S.js";import"./chunk-XUCR7L4G.js";import"./chunk-3QWGSRYC.js";import"./chunk-KGCGT4MJ.js";import"./chunk-QKCNGEX4.js";import"./chunk-WEBNIUEX.js";import"./chunk-SGKLJDA3.js";import{a as f}from"./chunk-BUXK5VGR.js";import{a as e}from"./chunk-KVVRFWGQ.js";import"./chunk-YCLPURTD.js";import"./chunk-CR65RYGM.js";import"./chunk-7N2Q5WOM.js";import"./chunk-OAJ5DARR.js";import{b as o,c as r}from"./chunk-5KMEUZWN.js";import{a as m,b as p,c as t,d as x}from"./chunk-GKDGNPBD.js";import"./chunk-5ON3XLRD.js";import"./chunk-HBWBPBSA.js";import"./chunk-5JYSYTHA.js";import"./chunk-ISCZ57VL.js";import"./chunk-EB4AG3OL.js";import{a}from"./chunk-QPRUTOLI.js";import"./chunk-G66WDIIV.js";import"./chunk-4KBKS3ZE.js";import"./chunk-VWRPVM5K.js";import"./chunk-ODHCDJ3Y.js";import{a as b}from"./chunk-DFQIIYLD.js";import"./chunk-KOAWATCI.js";import"./chunk-5KJIPH2N.js";import"./chunk-YOSLXJI5.js";import"./chunk-QEDKL23P.js";import"./chunk-5BXCPANF.js";import"./chunk-LPLW7OWA.js";import"./chunk-L54FWKJE.js";import"./chunk-XU74PNM2.js";import"./chunk-MAA6LEE2.js";import"./chunk-OKQAVYW4.js";import"./chunk-CLJ6SEGP.js";import"./chunk-ANQLWGFN.js";import"./chunk-VQPANPMI.js";export{Oo as APPEARANCE_STORAGE_KEY,h as AccessibleIcon,i as Accordion,n as AlertDialog,q as Avatar,s as Blockquote,u as Box,z as Button,A as Card,E as Chatbar,G as Checkbox,F as CheckboxGroup,t as ChevronDownIcon,H as Chip,I as Code,K as Combobox,L as Command,S as CommandCollection,N as CommandContent,U as CommandEmpty,Q as CommandGroup,R as CommandGroupLabel,O as CommandInput,T as CommandItem,P as CommandList,M as CommandTrigger,C as Confirmation,V as ContextMenu,W as Dialog,X as DropdownMenu,e as Flex,Y as Grid,j as Heading,Z as Image,a as Kbd,_ as Link,Lo as MessageScroller,$ as Navbar,Ao as Navigator,Do as NavigatorBack,Go as NavigatorLink,Bo as NavigatorOutlet,Fo as NavigatorScreen,Eo as NavigatorTitle,B as Notice,zo as Page,J as Popover,oo as Portal,ro as Progress,fo as Radio,eo as RadioGroup,mo as Reset,b as ScrollArea,po as SegmentedControl,to as Select,xo as Separator,Ko as Sheet,Jo as Shell,Io as Sidebar,ao as Slider,o as Slot,r as Slottable,f as Spinner,bo as Switch,co as Table,go as Tabs,k as Text,ho as TextArea,io as TextField,g as Theme,c as ThemeContext,p as ThickCheckIcon,x as ThickChevronRightIcon,m as ThickDividerHorizontalIcon,jo as Toggle,yo as Toolbar,no as ToolbarButton,uo as ToolbarFill,lo as ToolbarGroup,qo as ToolbarOverflow,vo as ToolbarSeparator,so as ToolbarSlot,wo as ToolbarTitle,w as Tooltip,v as TooltipProvider,Ho as VirtualMenu,D as VisuallyHidden,Po as appearanceScript,Qo as setAppearance,Ro as useAppearance,l as useBodyPointerEventsCleanup,Mo as useLiveAnnouncer,Co as useNavigator,d as useThemeContext,No as useToggleState,ko as useToolbarOverflow,y as useTooltipWrapper};
2
+ import"./chunk-AYKOOEZR.js";import{a as No}from"./chunk-RIHTVZVJ.js";import{a as Oo,b as Po,c as Qo,d as Ro}from"./chunk-3LIF53YY.js";import{a as Mo}from"./chunk-WTP2KIK3.js";import"./chunk-SHKPQ3RI.js";import{a as jo}from"./chunk-ZLGOZKB3.js";import{a as Ho}from"./chunk-7QBNXNEN.js";import{a as ao}from"./chunk-VYF6KKYM.js";import{a as bo}from"./chunk-VBF3XALY.js";import{h as co}from"./chunk-XF6Z5NKE.js";import{e as go}from"./chunk-QBONJMSE.js";import{a as ho}from"./chunk-D42VCLKH.js";import{d as io}from"./chunk-YLGIP3A5.js";import{h as to}from"./chunk-TMINGBSQ.js";import{g as Ko}from"./chunk-API4DAPY.js";import{h as Jo}from"./chunk-NO2JCJWI.js";import"./chunk-INGT6DB6.js";import"./chunk-B447PNRD.js";import{l as Io}from"./chunk-J6B7UCZN.js";import{a as xo}from"./chunk-COLJWVN7.js";import{a as mo}from"./chunk-L66IUPDW.js";import{c as po}from"./chunk-5VYQDA5S.js";import{a as Ao,b as Bo,c as Co,d as Do,e as Eo,f as Fo,g as Go}from"./chunk-XKYPJTRN.js";import{a as ko,c as lo,d as no,e as qo,f as so,g as uo,h as vo,i as wo,j as yo}from"./chunk-BR6Z2CAE.js";import{a as zo}from"./chunk-65URNXF2.js";import{a as oo}from"./chunk-AXODGYRY.js";import{a as ro}from"./chunk-LFAUMDU5.js";import{c as eo}from"./chunk-26O4RBOJ.js";import{a as fo}from"./chunk-OPYTQ34H.js";import{a as Z}from"./chunk-AKSAKP35.js";import{a as _}from"./chunk-3H33S3UA.js";import{i as Lo}from"./chunk-YOTTLPJ3.js";import{e as $}from"./chunk-EERKYRYI.js";import{a as I}from"./chunk-NYIYRILR.js";import{l as K}from"./chunk-BQOFHLDP.js";import{g as J}from"./chunk-TUZ665BA.js";import{b as L,c as M,d as N,e as O,f as P,g as Q,h as R,i as S,j as T,k as U}from"./chunk-GZPB6MRQ.js";import{n as V}from"./chunk-TRJAVWCK.js";import{g as W}from"./chunk-CAM66IXC.js";import{o as X}from"./chunk-KBSH6CBD.js";import"./chunk-2ACVWLFA.js";import{a as Y}from"./chunk-Q5SANVIW.js";import{a as u}from"./chunk-XD3C3GVF.js";import{a as A}from"./chunk-X7DGYRAY.js";import{m as E}from"./chunk-LG5DPQ46.js";import{b as B,c as C}from"./chunk-7YXHLU4C.js";import{a as D}from"./chunk-WUCBFB25.js";import{a as z}from"./chunk-JQMWNI62.js";import{a as y}from"./chunk-Y2DBXOLT.js";import{c as F}from"./chunk-3M5ZM67R.js";import"./chunk-2VSRZ4IT.js";import{a as G}from"./chunk-HVMRB3AH.js";import"./chunk-4KIZRO52.js";import{a as H}from"./chunk-JFJV4HL3.js";import{a as v,b as w}from"./chunk-NJ7RQYLX.js";import"./chunk-KDJM4NQQ.js";import{a as h}from"./chunk-B6YGNB3V.js";import{f as i}from"./chunk-OMPLFDS6.js";import{h as n}from"./chunk-NZJRXZYX.js";import"./chunk-FATCGZZE.js";import{a as j}from"./chunk-OBSZOD5M.js";import{a as l}from"./chunk-7VJF6EXN.js";import"./chunk-TGRHRMQI.js";import{a as k}from"./chunk-FICBVI4M.js";import"./chunk-BQC2P3SN.js";import{a as q}from"./chunk-L7PRLW6A.js";import{a as s}from"./chunk-IFHBMTFX.js";import"./chunk-UJ7JERJ5.js";import"./chunk-HGF4CKRY.js";import{a as c,b as d,c as g}from"./chunk-FVRVBB6O.js";import"./chunk-GHUAUFG7.js";import"./chunk-UMQOTGJC.js";import"./chunk-XD676L6S.js";import"./chunk-XUCR7L4G.js";import"./chunk-3QWGSRYC.js";import"./chunk-KGCGT4MJ.js";import"./chunk-QKCNGEX4.js";import"./chunk-WEBNIUEX.js";import"./chunk-SGKLJDA3.js";import{a as f}from"./chunk-BUXK5VGR.js";import{a as e}from"./chunk-KVVRFWGQ.js";import"./chunk-YCLPURTD.js";import"./chunk-CR65RYGM.js";import"./chunk-7N2Q5WOM.js";import"./chunk-OAJ5DARR.js";import{b as o,c as r}from"./chunk-5KMEUZWN.js";import{a as m,b as p,c as t,d as x}from"./chunk-GKDGNPBD.js";import"./chunk-5ON3XLRD.js";import"./chunk-HBWBPBSA.js";import"./chunk-5JYSYTHA.js";import"./chunk-ISCZ57VL.js";import"./chunk-EB4AG3OL.js";import{a}from"./chunk-QPRUTOLI.js";import"./chunk-G66WDIIV.js";import"./chunk-4KBKS3ZE.js";import"./chunk-VWRPVM5K.js";import"./chunk-ODHCDJ3Y.js";import{a as b}from"./chunk-DFQIIYLD.js";import"./chunk-KOAWATCI.js";import"./chunk-5KJIPH2N.js";import"./chunk-YOSLXJI5.js";import"./chunk-QEDKL23P.js";import"./chunk-5BXCPANF.js";import"./chunk-LPLW7OWA.js";import"./chunk-L54FWKJE.js";import"./chunk-XU74PNM2.js";import"./chunk-MAA6LEE2.js";import"./chunk-OKQAVYW4.js";import"./chunk-CLJ6SEGP.js";import"./chunk-ANQLWGFN.js";import"./chunk-VQPANPMI.js";export{Oo as APPEARANCE_STORAGE_KEY,h as AccessibleIcon,i as Accordion,n as AlertDialog,q as Avatar,s as Blockquote,u as Box,z as Button,A as Card,E as Chatbar,G as Checkbox,F as CheckboxGroup,t as ChevronDownIcon,H as Chip,I as Code,K as Combobox,L as Command,S as CommandCollection,N as CommandContent,U as CommandEmpty,Q as CommandGroup,R as CommandGroupLabel,O as CommandInput,T as CommandItem,P as CommandList,M as CommandTrigger,C as Confirmation,V as ContextMenu,W as Dialog,X as DropdownMenu,e as Flex,Y as Grid,j as Heading,Z as Image,a as Kbd,_ as Link,Lo as MessageScroller,$ as Navbar,Ao as Navigator,Do as NavigatorBack,Go as NavigatorLink,Bo as NavigatorOutlet,Fo as NavigatorScreen,Eo as NavigatorTitle,B as Notice,zo as Page,J as Popover,oo as Portal,ro as Progress,fo as Radio,eo as RadioGroup,mo as Reset,b as ScrollArea,po as SegmentedControl,to as Select,xo as Separator,Ko as Sheet,Jo as Shell,Io as Sidebar,ao as Slider,o as Slot,r as Slottable,f as Spinner,bo as Switch,co as Table,go as Tabs,k as Text,ho as TextArea,io as TextField,g as Theme,c as ThemeContext,p as ThickCheckIcon,x as ThickChevronRightIcon,m as ThickDividerHorizontalIcon,jo as Toggle,yo as Toolbar,no as ToolbarButton,uo as ToolbarFill,lo as ToolbarGroup,qo as ToolbarOverflow,vo as ToolbarSeparator,so as ToolbarSlot,wo as ToolbarTitle,w as Tooltip,v as TooltipProvider,Ho as VirtualMenu,D as VisuallyHidden,Po as appearanceScript,Qo as setAppearance,Ro as useAppearance,l as useBodyPointerEventsCleanup,Mo as useLiveAnnouncer,Co as useNavigator,d as useThemeContext,No as useToggleState,ko as useToolbarOverflow,y as useTooltipWrapper};
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/kookie-ui",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Kookie UI v1: a React component library with design tokens, flexible theming, a full layout shell, and comprehensive documentation.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,6 +37,14 @@ const TextFieldContext = React.createContext<TextFieldContextValue | null>(null)
37
37
  // list, not a tag list. `[tabindex]` catches role-based widgets; `label` already redirects a click.
38
38
  const FOCUSABLE_IN_SLOT = 'button, a, input, select, textarea, label, [tabindex], [contenteditable]';
39
39
 
40
+ /** Is the target a control inside `container`? Ancestors outside it, such as a panel or dialog
41
+ * with a tabindex, don't count: matching them turned scrubbing and click-to-focus off. */
42
+ function isControlWithin(target: EventTarget | null, container: HTMLElement | null) {
43
+ if (!(target instanceof Element) || !container) return false;
44
+ const hit = target.closest(FOCUSABLE_IN_SLOT);
45
+ return Boolean(hit && hit !== container && container.contains(hit));
46
+ }
47
+
40
48
  // A Group decides the look of its fields: their size, variant and radius come from it. A field
41
49
  // can still take its own color, and is disabled when either it or the group is.
42
50
  type TextFieldGroupContextValue = Pick<TextFieldGroupOwnProps, 'size' | 'variant' | 'radius' | 'color' | 'disabled'>;
@@ -120,8 +128,8 @@ const TextFieldRoot = React.forwardRef<TextFieldRootElement, TextFieldRootProps>
120
128
  // Clicking the padding or a passive slot focuses the input. preventDefault stops the browser
121
129
  // from moving focus to the root first, so the input is focused once, synchronously.
122
130
  const handleMouseDown = React.useCallback((event: React.MouseEvent) => {
131
+ if (isControlWithin(event.target, event.currentTarget as HTMLElement)) return;
123
132
  const target = event.target as HTMLElement;
124
- if (target.closest(FOCUSABLE_IN_SLOT)) return;
125
133
 
126
134
  const input = inputRef.current;
127
135
  if (!input) return;
@@ -289,9 +297,8 @@ const TextFieldSlot = React.forwardRef<TextFieldSlotElement, TextFieldSlotProps>
289
297
  (event: React.PointerEvent) => {
290
298
  if (!scrub) return;
291
299
 
292
- // Don't start scrubbing if clicking on interactive elements
293
- const target = event.target as HTMLElement;
294
- if (target.closest(FOCUSABLE_IN_SLOT)) return;
300
+ // Don't start scrubbing if clicking on a control inside the slot
301
+ if (isControlWithin(event.target, slotRef.current)) return;
295
302
 
296
303
  event.preventDefault();
297
304
  accumulatedMovement.current = 0;
@@ -1,6 +0,0 @@
1
- "use client";
2
- import{a as ye}from"./chunk-YCLPURTD.js";import{a as Z}from"./chunk-OAJ5DARR.js";import{c as ue}from"./chunk-5ON3XLRD.js";import{c as Y}from"./chunk-HBWBPBSA.js";import{b as le}from"./chunk-XU74PNM2.js";import{b as xe,c as $}from"./chunk-OKQAVYW4.js";import{a as Ie}from"./chunk-VQPANPMI.js";var Ve={};Ie(Ve,{Group:()=>Fe,Root:()=>Te,Slot:()=>Me});import*as e from"react";import*as ge from"react-dom";import J from"classnames";import{composeEventHandlers as _,composeRefs as Se,useLayoutEffect as ze}from"radix-ui/internal";var Pe=["1","2","3","4"],Le=["raised","surface","soft","ghost","outline"],ce={size:{type:"enum",className:"kui-r-size",values:Pe,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:Le,default:"raised"},error:{type:"boolean",default:!1},errorMessage:{type:"string",default:void 0},required:{type:"boolean",default:!1},"aria-describedby":{type:"string",default:void 0},"aria-labelledby":{type:"string",default:void 0},...Y,...le},Ne=["raised","surface","soft","outline","ghost"],de={size:{type:"enum",className:"kui-r-size",values:Pe,default:"2",responsive:!0},variant:{type:"enum",className:"kui-variant",values:Ne,default:"raised"},disabled:{type:"boolean",default:!1},...Y,...le},Ge=["left","right"],Re={side:{type:"enum",values:Ge},...Y,gap:ye.gap,px:Z.px,pl:Z.pl,pr:Z.pr};var he=e.createContext(null),pe="button, a, input, select, textarea, label, [tabindex], [contenteditable]",ve=e.createContext(null),Te=e.forwardRef((x,z)=>{let l=e.useContext(ve),d=l?{...x,size:l.size,variant:l.variant,radius:l.radius,color:x.color??l.color,disabled:!!(l.disabled||x.disabled)}:x,{className:y,style:p,...P}=ue(d,ce.size),f=e.useRef(null),{children:k,className:E,color:V,radius:U,style:H,...n}=$(P,ce),c=!!n.errorMessage,I=e.useId(),[K,O]=e.useState([]),A=e.useCallback(r=>(O(o=>o.includes(r)?o:[...o,r]),()=>O(o=>o.filter(h=>h!==r))),[]),R=e.useRef(null),j=e.useCallback(r=>(R.current=r,()=>{R.current===r&&(R.current=null)}),[]),F=!!(n.disabled||n.readOnly),B=e.useMemo(()=>({registerSlot:A,registerScrub:j,inert:F}),[A,j,F]),{"aria-describedby":L,"aria-labelledby":N,"aria-invalid":s}=n,g=!!n.error||s===!0||s==="true",W=e.useMemo(()=>{let r=[];return n.errorMessage&&r.push(I),L&&r.push(L),r.push(...K),r.length>0?r.join(" "):void 0},[n.errorMessage,L,I,K]),Q=e.useMemo(()=>({"aria-invalid":g?!0:s,"aria-describedby":W,"aria-labelledby":N}),[g,s,W,N]),{error:b,errorMessage:ee,required:q,"aria-describedby":fe,"aria-labelledby":te,onKeyDown:X,...M}=n,S=r=>{let o=R.current;!o||F||r.key!=="ArrowUp"&&r.key!=="ArrowDown"||(r.preventDefault(),o(r.key==="ArrowUp"?1:-1,r.shiftKey,r.altKey))},u=e.useCallback(r=>{let o=r.target;if(o.closest(pe))return;let h=f.current;if(!h)return;let w=o.closest(`
3
- .kui-TextFieldSlot[data-side='right'],
4
- .kui-TextFieldSlot:not([data-side='right']) ~ .kui-TextFieldSlot:not([data-side='left'])
5
- `)?h.value.length:0;r.preventDefault(),h.focus();try{h.setSelectionRange(w,w)}catch{}},[]),D=e.createElement("div",{"data-accent-color":V,"data-radius":U,style:c?H:xe(H,p),className:J("kui-TextFieldRoot",E,!c&&y,{"kui-error":g}),onMouseDown:u},e.createElement("input",{...M,required:q||void 0,...Q,onKeyDown:_(X,S),ref:Se(f,z),className:"kui-reset kui-TextFieldInput"}),e.createElement(he.Provider,{value:B},k));return e.createElement("div",{className:J("kui-TextFieldWrapper",c&&y),style:c?p:void 0,"data-message":c||void 0},D,c?e.createElement("div",{id:I,className:"kui-TextFieldErrorMessage",role:"alert"},n.errorMessage):null)});Te.displayName="TextField.Root";var Fe=e.forwardRef((x,z)=>{let l=ue(x,de.size),{size:d,variant:y,radius:p,color:P,disabled:f}=l,{className:k,children:E,radius:V,color:U,disabled:H,...n}=$(l,de),c=e.useMemo(()=>({size:d,variant:y,radius:p,color:P,disabled:f}),[d,y,p,P,f]);return e.createElement("div",{role:"group","data-accent-color":P,"data-radius":p,"data-disabled":f||void 0,...n,ref:z,className:J("kui-TextFieldGroup",k)},e.createElement(ve.Provider,{value:c},E))});Fe.displayName="TextField.Group";var Me=e.forwardRef((x,z)=>{let{scrub:l,scrubValue:d,scrubStep:y=1,scrubSensitivity:p=1,scrubMin:P,scrubMax:f,scrubShiftMultiplier:k=10,scrubAltMultiplier:E=.1,onScrub:V,...U}=x,{className:H,color:n,side:c,onPointerDown:I,onPointerMove:K,onPointerUp:O,onLostPointerCapture:A,...R}=$(U,Re),j=e.useId(),F=R.id??j,B=e.useContext(he),L=B?.registerSlot,N=B?.registerScrub,s=!!l&&!B?.inert,g=e.useRef(null),[W,Q]=e.useState(null);ze(()=>{let t=!!g.current?.querySelector(pe);Q(i=>i===t?i:t)}),e.useEffect(()=>W===!1?L?.(F):void 0,[L,F,W]);let[b,ee]=e.useState(!1),[q,fe]=e.useState({x:0,y:0}),te=e.useRef(null),X=e.useRef(0),M=e.useRef(0),S=e.useRef(0),u=e.useRef(0),D=e.useRef(null),r=e.useRef(0),o=e.useRef({scrubValue:d,scrubStep:y,scrubSensitivity:p,scrubMin:P,scrubMax:f,scrubShiftMultiplier:k,scrubAltMultiplier:E,onScrub:V});o.current={scrubValue:d,scrubStep:y,scrubSensitivity:p,scrubMin:P,scrubMax:f,scrubShiftMultiplier:k,scrubAltMultiplier:E,onScrub:V};let h=e.useCallback(t=>{if(!s||t.target.closest(pe))return;t.preventDefault(),M.current=0,S.current=d??0,u.current=t.clientX,X.current=t.clientY,fe({x:t.clientX,y:t.clientY});let G=g.current;G&&(D.current=t.pointerId,r.current=t.clientX,G.setPointerCapture(t.pointerId),ee(!0))},[s,d]),re=e.useCallback((t,i,G,m)=>{let a=o.current,v=window.innerWidth,C=window.innerHeight;u.current+=t,u.current>v?u.current=u.current%v:u.current<0&&(u.current=v+u.current%v);let T=X.current+i;T>C?T=T%C:T<0&&(T=C+T%C),X.current=T;let oe=te.current;oe&&(oe.style.left=`${u.current}px`,oe.style.top=`${T}px`),M.current+=t;let se=M.current/a.scrubSensitivity;if(Math.abs(se)>=1){let ne=1;G?ne=a.scrubShiftMultiplier:m&&(ne=a.scrubAltMultiplier);let be=Math.trunc(se),ie=be*a.scrubStep*ne,ae=ie;if(a.scrubMin!==void 0||a.scrubMax!==void 0){let Ee=S.current+ie,me=Math.max(a.scrubMin??-1/0,Math.min(a.scrubMax??1/0,Ee));ae=me-S.current,S.current=me}else S.current+=ie;ae!==0&&a.onScrub?.(ae,!0),M.current=(se-be)*a.scrubSensitivity}},[]),w=e.useCallback(()=>{o.current.onScrub?.(0,!1),M.current=0,S.current=0,D.current=null,ee(!1)},[]),De=e.useCallback(t=>{if(!b)return;let i=t.clientX-r.current;r.current=t.clientX,re(i,t.movementY,t.shiftKey,t.altKey)},[b,re]),we=e.useCallback(t=>{if(D.current!==t.pointerId)return;let i=g.current;i&&D.current!==null&&i.releasePointerCapture(D.current),w()},[w]),Ce=e.useCallback(()=>{b&&w()},[b,w]);e.useEffect(()=>{if(!b)return;let t=document.createElement("style");return t.textContent="* { cursor: none !important; user-select: none !important; }",document.head.appendChild(t),()=>{document.head.removeChild(t)}},[b]),e.useEffect(()=>{if(!(!s||!N))return N((t,i,G)=>{let m=o.current,a=i?m.scrubShiftMultiplier:G?m.scrubAltMultiplier:1,v=m.scrubValue??0,C=Math.max(m.scrubMin??-1/0,Math.min(m.scrubMax??1/0,v+t*m.scrubStep*a));C!==v&&m.onScrub?.(C-v,!1)})},[s,N]);let ke=b?ge.createPortal(e.createElement("img",{ref:te,className:"kui-TextFieldSlotScrubCursor",src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='black' stroke='white' stroke-width='1' d='M0 12 L5 7 L5 10 L19 10 L19 7 L24 12 L19 17 L19 14 L5 14 L5 17 Z'/%3E%3C/svg%3E",alt:"",style:{position:"fixed",left:q.x,top:q.y,transform:"translate(-50%, -50%)",pointerEvents:"none",zIndex:99999,width:24,height:24},"aria-hidden":"true"}),document.body):null;return e.createElement("div",{"data-accent-color":n,"data-side":c,"data-scrub":s||void 0,"data-scrubbing":b||void 0,...R,id:F,ref:Se(g,z),className:J("kui-TextFieldSlot",H),onPointerDown:s?_(I,h):I,onPointerMove:s?_(K,De):K,onPointerUp:s?_(O,we):O,onLostPointerCapture:s?_(A,Ce):A},R.children,ke)});Me.displayName="TextField.Slot";export{Te as a,Fe as b,Me as c,Ve as d};
6
- //# sourceMappingURL=chunk-Y44DYJA5.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/text-field.tsx", "../../src/components/text-field.props.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport classNames from 'classnames';\nimport { composeEventHandlers, composeRefs, useLayoutEffect } from 'radix-ui/internal';\n\nimport { textFieldRootPropDefs, textFieldGroupPropDefs, textFieldSlotPropDefs, type TextFieldSlotScrubProps } from './text-field.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { mergeStyles } from '../helpers/merge-styles.js';\nimport { useThemeSizeProps } from '../hooks/theme-size.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { NotInputTextualAttributes } from '../helpers/input-attributes.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype TextFieldRootElement = React.ElementRef<'input'>;\ntype TextFieldRootOwnProps = GetPropDefTypes<typeof textFieldRootPropDefs> & {\n defaultValue?: string | number;\n value?: string | number;\n type?: 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';\n};\ntype TextFieldInputProps = ComponentPropsWithout<'input', NotInputTextualAttributes | 'color' | 'defaultValue' | 'size' | 'type' | 'value'>;\ninterface TextFieldRootProps extends TextFieldInputProps, TextFieldRootOwnProps {}\n\n// Each Slot registers its id here, so the input can list slot content in aria-describedby. A scrub\n// slot also registers its arrow-key step, and reads whether the field takes input at all.\ntype ScrubKeyHandler = (direction: 1 | -1, shiftKey: boolean, altKey: boolean) => void;\ntype TextFieldContextValue = {\n registerSlot: (id: string) => () => void;\n registerScrub: (handler: ScrubKeyHandler) => () => void;\n inert: boolean;\n};\nconst TextFieldContext = React.createContext<TextFieldContextValue | null>(null);\n\n// Clicking anything a person could mean to press keeps its own press: the guard is a focusability\n// list, not a tag list. `[tabindex]` catches role-based widgets; `label` already redirects a click.\nconst FOCUSABLE_IN_SLOT = 'button, a, input, select, textarea, label, [tabindex], [contenteditable]';\n\n// A Group decides the look of its fields: their size, variant and radius come from it. A field\n// can still take its own color, and is disabled when either it or the group is.\ntype TextFieldGroupContextValue = Pick<TextFieldGroupOwnProps, 'size' | 'variant' | 'radius' | 'color' | 'disabled'>;\nconst TextFieldGroupContext = React.createContext<TextFieldGroupContextValue | null>(null);\n\nconst TextFieldRoot = React.forwardRef<TextFieldRootElement, TextFieldRootProps>((fieldProps, forwardedRef) => {\n const group = React.useContext(TextFieldGroupContext);\n const ownProps = group\n ? {\n ...fieldProps,\n size: group.size,\n variant: group.variant,\n radius: group.radius,\n color: fieldProps.color ?? group.color,\n disabled: Boolean(group.disabled || fieldProps.disabled),\n }\n : fieldProps;\n // The caller's className and style are kept apart from the size and variant classes: with an\n // error message they go on the wrapper, which is then the one box the parent lays out.\n const { className: ownClassName, style: ownStyle, ...themedProps } = useThemeSizeProps(ownProps, textFieldRootPropDefs.size);\n const inputRef = React.useRef<HTMLInputElement>(null);\n const { children, className, color, radius, style, ...inputProps } = extractProps(themedProps, textFieldRootPropDefs);\n const wrapped = Boolean(inputProps.errorMessage);\n\n // Generate unique IDs for accessibility\n const errorId = React.useId();\n\n // Slot content qualifies the value, so it describes the input (as in v2), in mount order.\n const [slotIds, setSlotIds] = React.useState<string[]>([]);\n const registerSlot = React.useCallback((id: string) => {\n setSlotIds((prev) => (prev.includes(id) ? prev : [...prev, id]));\n return () => setSlotIds((prev) => prev.filter((slotId) => slotId !== id));\n }, []);\n const scrubKeyRef = React.useRef<ScrubKeyHandler | null>(null);\n const registerScrub = React.useCallback((handler: ScrubKeyHandler) => {\n scrubKeyRef.current = handler;\n return () => {\n if (scrubKeyRef.current === handler) scrubKeyRef.current = null;\n };\n }, []);\n // A disabled or read-only field takes no input, so its slot does not scrub or step either.\n const inert = Boolean(inputProps.disabled || inputProps.readOnly);\n const contextValue = React.useMemo(() => ({ registerSlot, registerScrub, inert }), [registerSlot, registerScrub, inert]);\n\n const { 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, 'aria-invalid': ariaInvalid } = inputProps;\n\n // Invalid when `error` is set or the caller passes aria-invalid; the CSS keys on aria-invalid only.\n const isInvalid = Boolean(inputProps.error) || ariaInvalid === true || ariaInvalid === 'true';\n\n // Build aria-describedby string. The caller's ids stay; ours are appended.\n const describedBy = React.useMemo(() => {\n const parts = [];\n if (inputProps.errorMessage) parts.push(errorId);\n if (ariaDescribedby) parts.push(ariaDescribedby);\n parts.push(...slotIds);\n return parts.length > 0 ? parts.join(' ') : undefined;\n }, [inputProps.errorMessage, ariaDescribedby, errorId, slotIds]);\n\n // Build aria attributes\n const ariaProps = React.useMemo(\n () => ({\n 'aria-invalid': isInvalid ? true : ariaInvalid,\n 'aria-describedby': describedBy,\n 'aria-labelledby': ariaLabelledby,\n }),\n [isInvalid, ariaInvalid, describedBy, ariaLabelledby],\n );\n\n // Filter out our custom props to avoid DOM warnings\n const { error, errorMessage, required, 'aria-describedby': _ariaDescribedby, 'aria-labelledby': _ariaLabelledby, onKeyDown, ...nativeInputProps } = inputProps;\n\n // With a scrub slot, Up and Down step the value at once, by the slot's step, with the same Shift\n // and Option multipliers as a drag. The caller's handler runs first and can prevent it.\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const step = scrubKeyRef.current;\n if (!step || inert || (event.key !== 'ArrowUp' && event.key !== 'ArrowDown')) return;\n event.preventDefault();\n step(event.key === 'ArrowUp' ? 1 : -1, event.shiftKey, event.altKey);\n };\n\n // Clicking the padding or a passive slot focuses the input. preventDefault stops the browser\n // from moving focus to the root first, so the input is focused once, synchronously.\n const handleMouseDown = React.useCallback((event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n if (target.closest(FOCUSABLE_IN_SLOT)) return;\n\n const input = inputRef.current;\n if (!input) return;\n\n // Same selector as in the CSS to find the right slot\n const isRightSlot = target.closest(`\n .kui-TextFieldSlot[data-side='right'],\n .kui-TextFieldSlot:not([data-side='right']) ~ .kui-TextFieldSlot:not([data-side='left'])\n `);\n\n const cursorPosition = isRightSlot ? input.value.length : 0;\n\n event.preventDefault();\n input.focus();\n // Only some input types support this, browsers will throw an error if not supported\n // See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange#:~:text=Note%20that%20according,not%20support%20selection%22.\n try {\n input.setSelectionRange(cursorPosition, cursorPosition);\n } catch {}\n }, []);\n\n // A pointer-only hit-target redirect to the input; keyboard users reach the input directly.\n const field = (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n data-accent-color={color}\n data-radius={radius}\n style={wrapped ? style : mergeStyles(style, ownStyle)}\n className={classNames('kui-TextFieldRoot', className, !wrapped && ownClassName, {\n // Not used by the library's CSS (invalid styling keys on aria-invalid); kept as a hook for app styles.\n 'kui-error': isInvalid,\n })}\n onMouseDown={handleMouseDown}\n >\n <input\n {...nativeInputProps}\n required={required || undefined}\n {...ariaProps}\n onKeyDown={composeEventHandlers(onKeyDown, handleKeyDown)}\n ref={composeRefs(inputRef, forwardedRef)}\n className=\"kui-reset kui-TextFieldInput\"\n />\n <TextFieldContext.Provider value={contextValue}>{children}</TextFieldContext.Provider>\n </div>\n );\n // The wrapper is always there, so a message coming or going never moves the field in the tree:\n // moving it would remount the input, dropping focus, the caret and an uncontrolled value. With\n // no message it is `display: contents` and the field is the box the parent lays out; with one\n // it holds the field and the message below it, and the caller's className and style size the pair.\n return (\n <div className={classNames('kui-TextFieldWrapper', wrapped && ownClassName)} style={wrapped ? ownStyle : undefined} data-message={wrapped || undefined}>\n {field}\n {wrapped ? (\n <div id={errorId} className=\"kui-TextFieldErrorMessage\" role=\"alert\">\n {inputProps.errorMessage}\n </div>\n ) : null}\n </div>\n );\n});\nTextFieldRoot.displayName = 'TextField.Root';\n\ntype TextFieldGroupOwnProps = GetPropDefTypes<typeof textFieldGroupPropDefs>;\ninterface TextFieldGroupProps extends ComponentPropsWithout<'div', RemovedProps>, TextFieldGroupOwnProps {}\n\n/**\n * Joins two or more fields into one, such as X, Y and Z: one edge, square inner corners and a\n * hairline between the fields. The group draws the edge, so each field keeps only its fill.\n */\nconst TextFieldGroup = React.forwardRef<HTMLDivElement, TextFieldGroupProps>((ownProps, forwardedRef) => {\n const props = useThemeSizeProps(ownProps, textFieldGroupPropDefs.size);\n const { size, variant, radius, color, disabled } = props;\n const { className, children, radius: _radius, color: _color, disabled: _disabled, ...domProps } = extractProps(props, textFieldGroupPropDefs);\n const contextValue = React.useMemo(() => ({ size, variant, radius, color, disabled }), [size, variant, radius, color, disabled]);\n return (\n <div\n role=\"group\"\n data-accent-color={color}\n data-radius={radius}\n data-disabled={disabled || undefined}\n {...domProps}\n ref={forwardedRef}\n className={classNames('kui-TextFieldGroup', className)}\n >\n <TextFieldGroupContext.Provider value={contextValue}>{children}</TextFieldGroupContext.Provider>\n </div>\n );\n});\nTextFieldGroup.displayName = 'TextField.Group';\n\ntype TextFieldSlotElement = React.ElementRef<'div'>;\ntype TextFieldSlotOwnProps = GetPropDefTypes<typeof textFieldSlotPropDefs> & TextFieldSlotScrubProps;\ninterface TextFieldSlotProps extends ComponentPropsWithout<'div', RemovedProps>, TextFieldSlotOwnProps {}\n\nconst TextFieldSlot = React.forwardRef<TextFieldSlotElement, TextFieldSlotProps>((props, forwardedRef) => {\n // Extract scrub props first (not part of PropDef system)\n const { scrub: scrubProp, scrubValue, scrubStep = 1, scrubSensitivity = 1, scrubMin, scrubMax, scrubShiftMultiplier = 10, scrubAltMultiplier = 0.1, onScrub, ...restProps } = props;\n\n // Then extract styling props\n const { className, color, side, onPointerDown, onPointerMove, onPointerUp, onLostPointerCapture, ...slotProps } = extractProps(\n restProps,\n textFieldSlotPropDefs,\n );\n\n // A slot of text describes the input (see TextFieldRoot); a caller's own id is kept. A slot\n // holding a control, such as a show-password button, does not: the input would be described\n // by the button's name.\n const generatedId = React.useId();\n const slotId = slotProps.id ?? generatedId;\n const fieldContext = React.useContext(TextFieldContext);\n const registerSlot = fieldContext?.registerSlot;\n const registerScrub = fieldContext?.registerScrub;\n const scrub = Boolean(scrubProp) && !fieldContext?.inert;\n const slotRef = React.useRef<HTMLDivElement>(null);\n // Unknown until the slot has rendered; it registers once it is known to hold only text.\n const [holdsControl, setHoldsControl] = React.useState<boolean | null>(null);\n useLayoutEffect(() => {\n const next = Boolean(slotRef.current?.querySelector(FOCUSABLE_IN_SLOT));\n setHoldsControl((prev) => (prev === next ? prev : next));\n });\n React.useEffect(() => (holdsControl === false ? registerSlot?.(slotId) : undefined), [registerSlot, slotId, holdsControl]);\n\n const [isScrubbing, setIsScrubbing] = React.useState(false);\n // Where the virtual cursor starts. Movement is written straight to the cursor element, so a\n // scrub does not re-render the slot on every mouse move.\n const [cursorStart, setCursorStart] = React.useState({ x: 0, y: 0 });\n const cursorRef = React.useRef<HTMLImageElement>(null);\n // Virtual cursor Y, tracked beside virtualX\n const virtualY = React.useRef(0);\n\n // Track accumulated sub-step movement for precision\n const accumulatedMovement = React.useRef(0);\n // Track current value for clamping (initialized to scrubValue when scrubbing starts)\n const currentValue = React.useRef(0);\n // Track virtual X position for wrap-around (separate from rendered position)\n const virtualX = React.useRef(0);\n // Track pointer ID for capture mode\n const pointerIdRef = React.useRef<number | null>(null);\n // Track last X position for capture mode (movementX calculation)\n const lastXRef = React.useRef(0);\n\n // Store scrub config in refs so document handlers can access latest values\n const scrubConfigRef = React.useRef({\n scrubValue,\n scrubStep,\n scrubSensitivity,\n scrubMin,\n scrubMax,\n scrubShiftMultiplier,\n scrubAltMultiplier,\n onScrub,\n });\n scrubConfigRef.current = {\n scrubValue,\n scrubStep,\n scrubSensitivity,\n scrubMin,\n scrubMax,\n scrubShiftMultiplier,\n scrubAltMultiplier,\n onScrub,\n };\n\n const handlePointerDown = React.useCallback(\n (event: React.PointerEvent) => {\n if (!scrub) return;\n\n // Don't start scrubbing if clicking on interactive elements\n const target = event.target as HTMLElement;\n if (target.closest(FOCUSABLE_IN_SLOT)) return;\n\n event.preventDefault();\n accumulatedMovement.current = 0;\n // Initialize to current value so min/max clamping works correctly\n currentValue.current = scrubValue ?? 0;\n\n // Initialize virtual cursor at actual mouse position\n virtualX.current = event.clientX;\n virtualY.current = event.clientY;\n setCursorStart({ x: event.clientX, y: event.clientY });\n\n const slot = slotRef.current;\n if (!slot) return;\n\n // Pointer capture in every browser. Pointer lock gave endless travel in Chrome, but Chrome\n // shows its \"Press Esc to show your cursor\" banner on every drag, which is noise for a\n // gesture repeated all day. Captured, the drag keeps going past the window, up to the edge\n // of the screen.\n pointerIdRef.current = event.pointerId;\n lastXRef.current = event.clientX;\n slot.setPointerCapture(event.pointerId);\n setIsScrubbing(true);\n },\n [scrub, scrubValue],\n );\n\n // Shared scrub calculation logic\n const processScrubMovement = React.useCallback((movementX: number, movementY: number, shiftKey: boolean, altKey: boolean) => {\n const config = scrubConfigRef.current;\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Update virtual position with wrap-around at viewport edges\n virtualX.current += movementX;\n if (virtualX.current > viewportWidth) {\n virtualX.current = virtualX.current % viewportWidth;\n } else if (virtualX.current < 0) {\n virtualX.current = viewportWidth + (virtualX.current % viewportWidth);\n }\n\n // Also track Y with wrap-around\n let newY = virtualY.current + movementY;\n if (newY > viewportHeight) {\n newY = newY % viewportHeight;\n } else if (newY < 0) {\n newY = viewportHeight + (newY % viewportHeight);\n }\n virtualY.current = newY;\n\n const cursor = cursorRef.current;\n if (cursor) {\n cursor.style.left = `${virtualX.current}px`;\n cursor.style.top = `${newY}px`;\n }\n\n // Accumulate movement for sensitivity calculation\n accumulatedMovement.current += movementX;\n\n // Calculate how many steps we've moved\n const stepsFromMovement = accumulatedMovement.current / config.scrubSensitivity;\n\n if (Math.abs(stepsFromMovement) >= 1) {\n // Determine modifier multiplier\n let multiplier = 1;\n if (shiftKey) {\n multiplier = config.scrubShiftMultiplier;\n } else if (altKey) {\n multiplier = config.scrubAltMultiplier;\n }\n\n // Calculate delta\n const wholeSteps = Math.trunc(stepsFromMovement);\n const delta = wholeSteps * config.scrubStep * multiplier;\n\n // Apply min/max clamping if bounds are set\n let clampedDelta = delta;\n if (config.scrubMin !== undefined || config.scrubMax !== undefined) {\n const newValue = currentValue.current + delta;\n const clampedValue = Math.max(config.scrubMin ?? -Infinity, Math.min(config.scrubMax ?? Infinity, newValue));\n clampedDelta = clampedValue - currentValue.current;\n currentValue.current = clampedValue;\n } else {\n currentValue.current += delta;\n }\n\n // Fire callback with clamped delta (isChanging = true during drag)\n if (clampedDelta !== 0) {\n config.onScrub?.(clampedDelta, true);\n }\n\n // Keep the fractional remainder for smooth sub-pixel accumulation\n accumulatedMovement.current = (stepsFromMovement - wholeSteps) * config.scrubSensitivity;\n }\n }, []);\n\n // End scrubbing helper\n const endScrubbing = React.useCallback(() => {\n scrubConfigRef.current.onScrub?.(0, false);\n accumulatedMovement.current = 0;\n currentValue.current = 0;\n pointerIdRef.current = null;\n setIsScrubbing(false);\n }, []);\n\n const handlePointerMove = React.useCallback(\n (event: React.PointerEvent) => {\n if (!isScrubbing) return;\n\n const movementX = event.clientX - lastXRef.current;\n lastXRef.current = event.clientX;\n\n processScrubMovement(movementX, event.movementY, event.shiftKey, event.altKey);\n },\n [isScrubbing, processScrubMovement],\n );\n\n const handlePointerUp = React.useCallback(\n (event: React.PointerEvent) => {\n if (pointerIdRef.current !== event.pointerId) return;\n\n const slot = slotRef.current;\n if (slot && pointerIdRef.current !== null) {\n slot.releasePointerCapture(pointerIdRef.current);\n }\n endScrubbing();\n },\n [endScrubbing],\n );\n\n const handleLostPointerCapture = React.useCallback(() => {\n if (isScrubbing) {\n endScrubbing();\n }\n }, [isScrubbing, endScrubbing]);\n\n // Hide native cursor and disable text selection during pointer capture scrubbing\n React.useEffect(() => {\n if (!isScrubbing) return;\n\n // Create a style element to hide cursor globally during scrub\n const style = document.createElement('style');\n style.textContent = '* { cursor: none !important; user-select: none !important; }';\n document.head.appendChild(style);\n\n return () => {\n document.head.removeChild(style);\n };\n }, [isScrubbing]);\n\n // Up and Down on the input step once. The step is a whole change, so it reports isChanging\n // false at once: one undo step per press, as a drag is one per release.\n React.useEffect(() => {\n if (!scrub || !registerScrub) return;\n return registerScrub((direction, shiftKey, altKey) => {\n const config = scrubConfigRef.current;\n const multiplier = shiftKey ? config.scrubShiftMultiplier : altKey ? config.scrubAltMultiplier : 1;\n const start = config.scrubValue ?? 0;\n const next = Math.max(config.scrubMin ?? -Infinity, Math.min(config.scrubMax ?? Infinity, start + direction * config.scrubStep * multiplier));\n if (next !== start) config.onScrub?.(next - start, false);\n });\n }, [scrub, registerScrub]);\n\n // Render virtual cursor via portal to body so it's not clipped\n // Using a data URI of ew-resize cursor for a native look\n const virtualCursor = isScrubbing\n ? ReactDOM.createPortal(\n <img\n ref={cursorRef}\n className=\"kui-TextFieldSlotScrubCursor\"\n src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='black' stroke='white' stroke-width='1' d='M0 12 L5 7 L5 10 L19 10 L19 7 L24 12 L19 17 L19 14 L5 14 L5 17 Z'/%3E%3C/svg%3E\"\n alt=\"\"\n style={{\n position: 'fixed',\n left: cursorStart.x,\n top: cursorStart.y,\n transform: 'translate(-50%, -50%)',\n pointerEvents: 'none',\n zIndex: 99999,\n width: 24,\n height: 24,\n }}\n aria-hidden=\"true\"\n />,\n document.body,\n )\n : null;\n\n return (\n <div\n data-accent-color={color}\n data-side={side}\n data-scrub={scrub || undefined}\n data-scrubbing={isScrubbing || undefined}\n {...slotProps}\n id={slotId}\n ref={composeRefs(slotRef, forwardedRef)}\n className={classNames('kui-TextFieldSlot', className)}\n // The caller's handlers run first; the scrub handlers only when `scrub` is set.\n onPointerDown={scrub ? composeEventHandlers(onPointerDown, handlePointerDown) : onPointerDown}\n onPointerMove={scrub ? composeEventHandlers(onPointerMove, handlePointerMove) : onPointerMove}\n onPointerUp={scrub ? composeEventHandlers(onPointerUp, handlePointerUp) : onPointerUp}\n onLostPointerCapture={scrub ? composeEventHandlers(onLostPointerCapture, handleLostPointerCapture) : onLostPointerCapture}\n >\n {slotProps.children}\n {virtualCursor}\n </div>\n );\n});\nTextFieldSlot.displayName = 'TextField.Slot';\n\nexport { TextFieldRoot as Root, TextFieldGroup as Group, TextFieldSlot as Slot };\nexport type { TextFieldRootProps as RootProps, TextFieldGroupProps as GroupProps, TextFieldSlotProps as SlotProps };\n", "import { colorPropDef } from '../props/color.prop.js';\nimport { paddingPropDefs } from '../props/padding.props.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\nimport { flexPropDefs } from './flex.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['raised', 'surface', 'soft', 'ghost', 'outline'] as const;\n\nconst textFieldRootPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'kui-variant', values: variants, default: 'raised' },\n // Error and validation props\n error: { type: 'boolean', default: false },\n errorMessage: { type: 'string', default: undefined },\n required: { type: 'boolean', default: false },\n // Accessibility props\n 'aria-describedby': { type: 'string', default: undefined },\n 'aria-labelledby': { type: 'string', default: undefined },\n ...colorPropDef,\n ...radiusPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n error: PropDef<boolean>;\n errorMessage: PropDef<string | undefined>;\n required: PropDef<boolean>;\n 'aria-describedby': PropDef<string | undefined>;\n 'aria-labelledby': PropDef<string | undefined>;\n};\n\n// Ghost is the dividers alone: no fill, no edge.\nconst groupVariants = ['raised', 'surface', 'soft', 'outline', 'ghost'] as const;\n\nconst textFieldGroupPropDefs = {\n size: { type: 'enum', className: 'kui-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'kui-variant', values: groupVariants, default: 'raised' },\n disabled: { type: 'boolean', default: false },\n ...colorPropDef,\n ...radiusPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof groupVariants)[number]>;\n disabled: PropDef<boolean>;\n};\n\nconst sides = ['left', 'right'] as const;\n\nconst textFieldSlotPropDefs = {\n side: { type: 'enum', values: sides },\n ...colorPropDef,\n gap: flexPropDefs.gap,\n px: paddingPropDefs.px,\n pl: paddingPropDefs.pl,\n pr: paddingPropDefs.pr,\n} satisfies {\n side: PropDef<(typeof sides)[number]>;\n gap: typeof flexPropDefs.gap;\n px: typeof paddingPropDefs.px;\n pl: typeof paddingPropDefs.pl;\n pr: typeof paddingPropDefs.pr;\n};\n\n/** Scrubbing props for TextField.Slot - handled separately from PropDef system */\ninterface TextFieldSlotScrubProps {\n /**\n * Drag the slot to change the value; Up and Down on the input step it once. Ignored while the\n * field is disabled or read-only.\n */\n scrub?: boolean;\n /** Current value (required for min/max clamping to work correctly) */\n scrubValue?: number;\n /** Base value change per movement unit (default: 1) */\n scrubStep?: number;\n /** Pixels of movement per step - higher = less sensitive (default: 1) */\n scrubSensitivity?: number;\n /** Minimum allowed value */\n scrubMin?: number;\n /** Maximum allowed value */\n scrubMax?: number;\n /** Step multiplier when Shift is held (default: 10) */\n scrubShiftMultiplier?: number;\n /** Step multiplier when Alt/Option is held (default: 0.1) */\n scrubAltMultiplier?: number;\n /**\n * Callback fired during scrubbing with the value delta\n * @param delta - The change in value\n * @param isChanging - true while dragging, false when released\n */\n onScrub?: (delta: number, isChanging: boolean) => void;\n}\n\nexport type { TextFieldSlotScrubProps };\n\nexport { textFieldRootPropDefs, textFieldGroupPropDefs, textFieldSlotPropDefs };\n"],
5
- "mappings": ";oSAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,WAAAE,GAAA,SAAAC,GAAA,SAAAC,KAEA,UAAYC,MAAW,QACvB,UAAYC,OAAc,YAC1B,OAAOC,MAAgB,aACvB,OAAS,wBAAAC,EAAsB,eAAAC,GAAa,mBAAAC,OAAuB,oBCEnE,IAAMC,GAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,GAAW,CAAC,SAAU,UAAW,OAAQ,QAAS,SAAS,EAE3DC,GAAwB,CAC5B,KAAM,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQF,GAAO,QAAS,IAAK,WAAY,EAAK,EAC7F,QAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,OAAQC,GAAU,QAAS,QAAS,EAEvF,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,EACzC,aAAc,CAAE,KAAM,SAAU,QAAS,MAAU,EACnD,SAAU,CAAE,KAAM,UAAW,QAAS,EAAM,EAE5C,mBAAoB,CAAE,KAAM,SAAU,QAAS,MAAU,EACzD,kBAAmB,CAAE,KAAM,SAAU,QAAS,MAAU,EACxD,GAAGE,EACH,GAAGC,EACL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,IAAUiB,EAAQD,EAAYhB,EAAO,UAAYM,CAAU,CAAC,EACxI1B,IAASqC,GAAOjB,EAAO,UAAUpB,EAAOqC,EAAO,EAAK,CAC1D,CAAC,CACH,EAAG,CAAC1C,EAAO5D,CAAa,CAAC,EAIzB,IAAMuG,GAAgBrC,EACT,gBACP,gBAAC,OACC,IAAKI,GACL,UAAU,+BACV,IAAI,oPACJ,IAAI,GACJ,MAAO,CACL,SAAU,QACV,KAAMF,EAAY,EAClB,IAAKA,EAAY,EACjB,UAAW,wBACX,cAAe,OACf,OAAQ,MACR,MAAO,GACP,OAAQ,EACV,EACA,cAAY,OACd,EACA,SAAS,IACX,EACA,KAEJ,OACE,gBAAC,OACC,oBAAmBlF,EACnB,YAAWiE,EACX,aAAYS,GAAS,OACrB,iBAAgBM,GAAe,OAC9B,GAAGV,EACJ,GAAI1D,EACJ,IAAK+B,GAAYgC,EAAStF,CAAY,EACtC,UAAWoD,EAAW,oBAAqB1C,CAAS,EAEpD,cAAe2E,EAAQhC,EAAqBwB,EAAe0B,CAAiB,EAAI1B,EAChF,cAAeQ,EAAQhC,EAAqByB,EAAe6C,EAAiB,EAAI7C,EAChF,YAAaO,EAAQhC,EAAqB0B,EAAa6C,EAAe,EAAI7C,EAC1E,qBAAsBM,EAAQhC,EAAqB2B,EAAsB6C,EAAwB,EAAI7C,GAEpGC,EAAU,SACV+C,EACH,CAEJ,CAAC,EACD/D,GAAc,YAAc",
6
- "names": ["text_field_exports", "__export", "TextFieldGroup", "TextFieldRoot", "TextFieldSlot", "React", "ReactDOM", "classNames", "composeEventHandlers", "composeRefs", "useLayoutEffect", "sizes", "variants", "textFieldRootPropDefs", "colorPropDef", "radiusPropDef", "groupVariants", "textFieldGroupPropDefs", "sides", "textFieldSlotPropDefs", "flexPropDefs", "paddingPropDefs", "TextFieldContext", "FOCUSABLE_IN_SLOT", "TextFieldGroupContext", "TextFieldRoot", "fieldProps", "forwardedRef", "group", "ownProps", "ownClassName", "ownStyle", "themedProps", "useThemeSizeProps", "textFieldRootPropDefs", "inputRef", "children", "className", "color", "radius", "style", "inputProps", "extractProps", "wrapped", "errorId", "slotIds", "setSlotIds", "registerSlot", "id", "prev", "slotId", "scrubKeyRef", "registerScrub", "handler", "inert", "contextValue", "ariaDescribedby", "ariaLabelledby", "ariaInvalid", "isInvalid", "describedBy", "parts", "ariaProps", "error", "errorMessage", "required", "_ariaDescribedby", "_ariaLabelledby", "onKeyDown", "nativeInputProps", "handleKeyDown", "event", "step", "handleMouseDown", "target", "input", "cursorPosition", "field", "mergeStyles", "classNames", "composeEventHandlers", "composeRefs", "TextFieldGroup", "props", "textFieldGroupPropDefs", "size", "variant", "disabled", "_radius", "_color", "_disabled", "domProps", "TextFieldSlot", "scrubProp", "scrubValue", "scrubStep", "scrubSensitivity", "scrubMin", "scrubMax", "scrubShiftMultiplier", "scrubAltMultiplier", "onScrub", "restProps", "side", "onPointerDown", "onPointerMove", "onPointerUp", "onLostPointerCapture", "slotProps", "textFieldSlotPropDefs", "generatedId", "fieldContext", "scrub", "slotRef", "holdsControl", "setHoldsControl", "useLayoutEffect", "next", "isScrubbing", "setIsScrubbing", "cursorStart", "setCursorStart", "cursorRef", "virtualY", "accumulatedMovement", "currentValue", "virtualX", "pointerIdRef", "lastXRef", "scrubConfigRef", "handlePointerDown", "slot", "processScrubMovement", "movementX", "movementY", "shiftKey", "altKey", "config", "viewportWidth", "viewportHeight", "newY", "cursor", "stepsFromMovement", "multiplier", "wholeSteps", "delta", "clampedDelta", "newValue", "clampedValue", "endScrubbing", "handlePointerMove", "handlePointerUp", "handleLostPointerCapture", "direction", "start", "virtualCursor"]
7
- }