@ada-cx/lovelace 1.18.4 → 1.19.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.
- package/dist/components/AgentMessage/AgentMessage.js.map +1 -1
- package/dist/components/AttachmentChip/AttachmentChip.css.js +1 -1
- package/dist/components/AttachmentChip/AttachmentChip.js.map +1 -1
- package/dist/components/Avatar/Avatar.css.js +1 -1
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/AvatarPlaceholder.js.map +1 -1
- package/dist/components/Banner/Banner.css.js +1 -1
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/Banner/BannerContainer.js.map +1 -1
- package/dist/components/Banner/BannerContainerSlide.js.map +1 -1
- package/dist/components/BubbleOverlay/BubbleOverlay.js.map +1 -1
- package/dist/components/Button/Button.css.js +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.css.d.ts +8 -0
- package/dist/components/Card/Card.css.js +7 -0
- package/dist/components/Card/Card.css.js.map +1 -0
- package/dist/components/Card/Card.d.ts +14 -0
- package/dist/components/Card/Card.js +18 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/CardActions.d.ts +7 -0
- package/dist/components/Card/CardActions.js +14 -0
- package/dist/components/Card/CardActions.js.map +1 -0
- package/dist/components/Card/CardBody.d.ts +7 -0
- package/dist/components/Card/CardBody.js +14 -0
- package/dist/components/Card/CardBody.js.map +1 -0
- package/dist/components/Card/CardDescription.d.ts +9 -0
- package/dist/components/Card/CardDescription.js +15 -0
- package/dist/components/Card/CardDescription.js.map +1 -0
- package/dist/components/Card/CardMedia.d.ts +17 -0
- package/dist/components/Card/CardMedia.js +23 -0
- package/dist/components/Card/CardMedia.js.map +1 -0
- package/dist/components/Card/CardRoot.d.ts +22 -0
- package/dist/components/Card/CardRoot.js +25 -0
- package/dist/components/Card/CardRoot.js.map +1 -0
- package/dist/components/Card/CardTitle.d.ts +9 -0
- package/dist/components/Card/CardTitle.js +15 -0
- package/dist/components/Card/CardTitle.js.map +1 -0
- package/dist/components/Card/index.d.ts +6 -0
- package/dist/components/Carousel/Carousel.css.d.ts +6 -0
- package/dist/components/Carousel/Carousel.css.js +7 -0
- package/dist/components/Carousel/Carousel.css.js.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +19 -0
- package/dist/components/Carousel/Carousel.js +141 -0
- package/dist/components/Carousel/Carousel.js.map +1 -0
- package/dist/components/Carousel/CarouselItem.d.ts +8 -0
- package/dist/components/Carousel/CarouselItem.js +14 -0
- package/dist/components/Carousel/CarouselItem.js.map +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.css.js +1 -1
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/Checkbox/CheckboxIndicator.js.map +1 -1
- package/dist/components/Chip/Chip.css.js +1 -1
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Dialog/Dialog.css.js +1 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/DialogActions.js.map +1 -1
- package/dist/components/Dialog/DialogBody.js.map +1 -1
- package/dist/components/Dialog/DialogContent.js.map +1 -1
- package/dist/components/Dialog/DialogIcon.js.map +1 -1
- package/dist/components/Dialog/DialogRoot.js.map +1 -1
- package/dist/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/components/DialogOverlay/DialogOverlay.js.map +1 -1
- package/dist/components/Divider/Divider.css.js +1 -1
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/DropZone/DropZone.js.map +1 -1
- package/dist/components/FullscreenOverlay/FullscreenOverlay.js.map +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderRoot.js.map +1 -1
- package/dist/components/Header/HeaderTitle.js.map +1 -1
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/icons/AdaLogo.js.map +1 -1
- package/dist/components/Icon/icons/ArrowDown.js.map +1 -1
- package/dist/components/Icon/icons/ArrowLeft.js.map +1 -1
- package/dist/components/Icon/icons/ArrowNortheast.js.map +1 -1
- package/dist/components/Icon/icons/ArrowNorthwest.js.map +1 -1
- package/dist/components/Icon/icons/ArrowRight.js.map +1 -1
- package/dist/components/Icon/icons/ArrowUp.js.map +1 -1
- package/dist/components/Icon/icons/Bell.js.map +1 -1
- package/dist/components/Icon/icons/BellSlash.js.map +1 -1
- package/dist/components/Icon/icons/Checkmark.js.map +1 -1
- package/dist/components/Icon/icons/CheckmarkCircle.js.map +1 -1
- package/dist/components/Icon/icons/ChevronLeft.js.map +1 -1
- package/dist/components/Icon/icons/ChevronRight.js.map +1 -1
- package/dist/components/Icon/icons/CloudUpload.js.map +1 -1
- package/dist/components/Icon/icons/Document.js.map +1 -1
- package/dist/components/Icon/icons/Download.js.map +1 -1
- package/dist/components/Icon/icons/Ellipses.js.map +1 -1
- package/dist/components/Icon/icons/Email.js.map +1 -1
- package/dist/components/Icon/icons/ExclamationSync.js.map +1 -1
- package/dist/components/Icon/icons/ExclamationTriangle.js.map +1 -1
- package/dist/components/Icon/icons/Eye.js.map +1 -1
- package/dist/components/Icon/icons/EyeSlash.js.map +1 -1
- package/dist/components/Icon/icons/Glyph.js.map +1 -1
- package/dist/components/Icon/icons/Language.js.map +1 -1
- package/dist/components/Icon/icons/MediaSlash.js.map +1 -1
- package/dist/components/Icon/icons/MessagingFill.js.map +1 -1
- package/dist/components/Icon/icons/Minimize.js.map +1 -1
- package/dist/components/Icon/icons/Mute.js.map +1 -1
- package/dist/components/Icon/icons/Paperclip.js.map +1 -1
- package/dist/components/Icon/icons/PersonFill.js.map +1 -1
- package/dist/components/Icon/icons/PlayFill.js.map +1 -1
- package/dist/components/Icon/icons/Send.js.map +1 -1
- package/dist/components/Icon/icons/StarBadgeFill.js.map +1 -1
- package/dist/components/Icon/icons/ThumbsDown.js.map +1 -1
- package/dist/components/Icon/icons/ThumbsUp.js.map +1 -1
- package/dist/components/Icon/icons/Volume.js.map +1 -1
- package/dist/components/Icon/icons/Xmark.js.map +1 -1
- package/dist/components/Icon/icons/XmarkCircle.js.map +1 -1
- package/dist/components/IconButton/IconButton.css.js +1 -1
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Image/Image.js.map +1 -1
- package/dist/components/Input/Input.context.js.map +1 -1
- package/dist/components/Input/Input.css.js +1 -1
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/InputAttachments.js.map +1 -1
- package/dist/components/Input/InputButton.js.map +1 -1
- package/dist/components/Input/InputControl.js.map +1 -1
- package/dist/components/Input/InputField.js.map +1 -1
- package/dist/components/Input/InputHelperText.js.map +1 -1
- package/dist/components/Input/InputLabel.js.map +1 -1
- package/dist/components/Input/InputRoot.js.map +1 -1
- package/dist/components/Input/InputTextArea.js.map +1 -1
- package/dist/components/Link/Link.css.js +1 -1
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/MenuItem/Menu.js.map +1 -1
- package/dist/components/MenuItem/MenuItem.js.map +1 -1
- package/dist/components/MenuItem/MenuItemCheckbox.js.map +1 -1
- package/dist/components/MenuItem/MenuItemLabel.js.map +1 -1
- package/dist/components/MenuItem/MenuItemRadio.js.map +1 -1
- package/dist/components/MenuItem/MenuItemRoot.js.map +1 -1
- package/dist/components/MenuItem/MenuItemToggle.js.map +1 -1
- package/dist/components/MessageError/MessageError.js.map +1 -1
- package/dist/components/MessageProse/MessageProse.js.map +1 -1
- package/dist/components/MessageRow/MessageRow.context.js.map +1 -1
- package/dist/components/MessageRow/MessageRow.css.js +1 -1
- package/dist/components/MessageRow/MessageRow.js.map +1 -1
- package/dist/components/MessageRow/MessageRowContent.js.map +1 -1
- package/dist/components/MessageRow/MessageRowRoot.js.map +1 -1
- package/dist/components/PictureMessage/PictureMessage.css.js +1 -1
- package/dist/components/PictureMessage/PictureMessage.js.map +1 -1
- package/dist/components/PillButton/PillButton.css.js +1 -1
- package/dist/components/PillButton/PillButton.js.map +1 -1
- package/dist/components/ProactiveMessage/ProactiveMessage.js.map +1 -1
- package/dist/components/Radio/Radio.css.js +1 -1
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/RadioGroup.js.map +1 -1
- package/dist/components/Radio/RadioIndicator.js.map +1 -1
- package/dist/components/ScrollMarker/ScrollMarker.css.js +1 -1
- package/dist/components/ScrollMarker/ScrollMarker.js.map +1 -1
- package/dist/components/Sheet/Sheet.js.map +1 -1
- package/dist/components/Sheet/SheetActions.js.map +1 -1
- package/dist/components/Sheet/SheetBackButton.js.map +1 -1
- package/dist/components/Sheet/SheetBody.js.map +1 -1
- package/dist/components/Sheet/SheetCloseButton.js.map +1 -1
- package/dist/components/Sheet/SheetHeader.js.map +1 -1
- package/dist/components/Sheet/SheetRoot.js.map +1 -1
- package/dist/components/Sheet/SheetTitle.js.map +1 -1
- package/dist/components/SheetOverlay/SheetOverlay.js.map +1 -1
- package/dist/components/Spinner/Spinner.css.js +1 -1
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/SurveyRating/SurveyRating.js.map +1 -1
- package/dist/components/SurveySelect/SurveySelect.js.map +1 -1
- package/dist/components/Text/Text.css.js +1 -1
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/ThinkingShimmer/ThinkingShimmer.js.map +1 -1
- package/dist/components/Toast/Toast.css.js +1 -1
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/ToastContainer.js.map +1 -1
- package/dist/components/Toast/index.js +4 -4
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Toggle/ToggleIndicator.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.js.map +1 -1
- package/dist/components/UserMessage/UserMessage.js.map +1 -1
- package/dist/components/VideoMessage/VideoMessage.css.js +1 -1
- package/dist/components/VideoMessage/VideoMessage.js.map +1 -1
- package/dist/hooks/overlayRegistry.js.map +1 -1
- package/dist/hooks/usePrefersReducedMotion.js.map +1 -1
- package/dist/hooks/useSubmitOnEnter.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +46 -43
- package/dist/runtime/LovelaceProvider.js +6 -6
- package/dist/runtime/LovelaceProvider.js.map +1 -1
- package/dist/runtime/branding.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens/tokens.js.map +1 -1
- package/dist/utils/animation.js.map +1 -1
- package/dist/utils/cx.js.map +1 -1
- package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +1 -1
- package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputButton.js","names":[],"sources":["../../../src/components/Input/InputButton.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputButton } from \"./Input.css.js\";\n\nexport interface InputButtonProps\n\textends Omit<\n\t\tAriaButtonProps,\n\t\t\"children\" | \"className\" | \"style\" | \"aria-label\"\n\t> {\n\t/** Accessible name for the icon-only action; maps to `aria-label`. Required — there is no visible text. */\n\tlabel: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\t/** A single icon — compose with the shared `<Icon>` primitive (icon glyphs already wrap themselves). */\n\tchildren: ReactNode;\n}\n\nexport function InputButton({\n\tlabel,\n\tclassName,\n\tchildren,\n\tisDisabled,\n\t...rest\n}: InputButtonProps) {\n\tconst { isDisabled: fieldDisabled } = useInputContext();\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={isDisabled || fieldDisabled}\n\t\t\taria-label={label}\n\t\t\tclassName={cx(inputButton, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;;AAqBA,SAAgB,EAAY,EAC3B,UACA,cACA,aACA,eACA,GAAG,KACiB;CACpB,IAAM,EAAE,YAAY,MAAkB,
|
|
1
|
+
{"version":3,"file":"InputButton.js","names":[],"sources":["../../../src/components/Input/InputButton.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputButton } from \"./Input.css.js\";\n\nexport interface InputButtonProps\n\textends Omit<\n\t\tAriaButtonProps,\n\t\t\"children\" | \"className\" | \"style\" | \"aria-label\"\n\t> {\n\t/** Accessible name for the icon-only action; maps to `aria-label`. Required — there is no visible text. */\n\tlabel: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\t/** A single icon — compose with the shared `<Icon>` primitive (icon glyphs already wrap themselves). */\n\tchildren: ReactNode;\n}\n\nexport function InputButton({\n\tlabel,\n\tclassName,\n\tchildren,\n\tisDisabled,\n\t...rest\n}: InputButtonProps) {\n\tconst { isDisabled: fieldDisabled } = useInputContext();\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"button\"\n\t\t\tisDisabled={isDisabled || fieldDisabled}\n\t\t\taria-label={label}\n\t\t\tclassName={cx(inputButton, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;;AAqBA,SAAgB,EAAY,EAC3B,UACA,cACA,aACA,eACA,GAAG,KACiB;CACpB,IAAM,EAAE,YAAY,MAAkB,EAAgB;CACtD,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,aAAU;EACV,YAAY,KAAc;EAC1B,cAAY;EACZ,WAAW,EAAG,GAAa,CAAS;EAEnC;CACU,CAAA;AAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputControl.js","names":[],"sources":["../../../src/components/Input/InputControl.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { InputProps as AriaInputProps } from \"react-aria-components\";\nimport { Input as AriaInput } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputControl } from \"./Input.css.js\";\n\nexport interface InputControlProps\n\textends Omit<AriaInputProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLInputElement>;\n}\n\nexport function InputControl({ className, ...rest }: InputControlProps) {\n\treturn <AriaInput {...rest} className={cx(inputControl, className)} />;\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAa,EAAE,cAAW,GAAG,KAA2B;
|
|
1
|
+
{"version":3,"file":"InputControl.js","names":[],"sources":["../../../src/components/Input/InputControl.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { InputProps as AriaInputProps } from \"react-aria-components\";\nimport { Input as AriaInput } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputControl } from \"./Input.css.js\";\n\nexport interface InputControlProps\n\textends Omit<AriaInputProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLInputElement>;\n}\n\nexport function InputControl({ className, ...rest }: InputControlProps) {\n\treturn <AriaInput {...rest} className={cx(inputControl, className)} />;\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAa,EAAE,cAAW,GAAG,KAA2B;CACvE,OAAO,kBAAC,GAAD;EAAW,GAAI;EAAM,WAAW,EAAG,GAAc,CAAS;CAAI,CAAA;AACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputField.js","names":[],"sources":["../../../src/components/Input/InputField.tsx"],"sourcesContent":["import type { CSSProperties, PointerEvent, ReactNode, Ref } from \"react\";\nimport type { GroupProps as AriaGroupProps } from \"react-aria-components\";\nimport { Group as AriaGroup } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputField } from \"./Input.css.js\";\n\nexport interface InputFieldProps\n\textends Omit<AriaGroupProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n\t/**\n\t * Set when `Input.Attachments` is among the children. It gives the control the\n\t * whole first line, so the chips and the field's button share the second and\n\t * bottom-align there. A caller-supplied flag rather than `:has()`, which the\n\t * iOS 15 baseline does not have.\n\t */\n\thasAttachments?: boolean;\n}\n\nexport function InputField({\n\tclassName,\n\tchildren,\n\tonPointerDown,\n\thasAttachments,\n\t...rest\n}: InputFieldProps) {\n\tconst { variant } = useInputContext();\n\tconst handlePointerDown = (event: PointerEvent<HTMLDivElement>) => {\n\t\tonPointerDown?.(event);\n\t\tif (event.defaultPrevented) {\n\t\t\treturn;\n\t\t}\n\t\tconst target = event.target as HTMLElement;\n\t\tif (target.closest(\"button, a, input, textarea, select, [tabindex]\")) {\n\t\t\treturn;\n\t\t}\n\t\tconst control =\n\t\t\tevent.currentTarget.querySelector<HTMLInputElement>(\"input, textarea\");\n\t\tif (control) {\n\t\t\tevent.preventDefault();\n\t\t\tcontrol.focus();\n\t\t}\n\t};\n\treturn (\n\t\t<AriaGroup\n\t\t\t{...rest}\n\t\t\tdata-has-attachments={hasAttachments || undefined}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tclassName={cx(inputField({ variant }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaGroup>\n\t);\n}\n"],"mappings":";;;;;;AAsBA,SAAgB,EAAW,EAC1B,cACA,aACA,kBACA,mBACA,GAAG,KACgB;CACnB,IAAM,EAAE,eAAY,
|
|
1
|
+
{"version":3,"file":"InputField.js","names":[],"sources":["../../../src/components/Input/InputField.tsx"],"sourcesContent":["import type { CSSProperties, PointerEvent, ReactNode, Ref } from \"react\";\nimport type { GroupProps as AriaGroupProps } from \"react-aria-components\";\nimport { Group as AriaGroup } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputField } from \"./Input.css.js\";\n\nexport interface InputFieldProps\n\textends Omit<AriaGroupProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n\t/**\n\t * Set when `Input.Attachments` is among the children. It gives the control the\n\t * whole first line, so the chips and the field's button share the second and\n\t * bottom-align there. A caller-supplied flag rather than `:has()`, which the\n\t * iOS 15 baseline does not have.\n\t */\n\thasAttachments?: boolean;\n}\n\nexport function InputField({\n\tclassName,\n\tchildren,\n\tonPointerDown,\n\thasAttachments,\n\t...rest\n}: InputFieldProps) {\n\tconst { variant } = useInputContext();\n\tconst handlePointerDown = (event: PointerEvent<HTMLDivElement>) => {\n\t\tonPointerDown?.(event);\n\t\tif (event.defaultPrevented) {\n\t\t\treturn;\n\t\t}\n\t\tconst target = event.target as HTMLElement;\n\t\tif (target.closest(\"button, a, input, textarea, select, [tabindex]\")) {\n\t\t\treturn;\n\t\t}\n\t\tconst control =\n\t\t\tevent.currentTarget.querySelector<HTMLInputElement>(\"input, textarea\");\n\t\tif (control) {\n\t\t\tevent.preventDefault();\n\t\t\tcontrol.focus();\n\t\t}\n\t};\n\treturn (\n\t\t<AriaGroup\n\t\t\t{...rest}\n\t\t\tdata-has-attachments={hasAttachments || undefined}\n\t\t\tonPointerDown={handlePointerDown}\n\t\t\tclassName={cx(inputField({ variant }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaGroup>\n\t);\n}\n"],"mappings":";;;;;;AAsBA,SAAgB,EAAW,EAC1B,cACA,aACA,kBACA,mBACA,GAAG,KACgB;CACnB,IAAM,EAAE,eAAY,EAAgB,GAC9B,KAAqB,MAAwC;EAMlE,IALA,IAAgB,CAAK,GACjB,EAAM,oBAGK,EAAM,OACV,QAAQ,gDAAgD,GAClE;EAED,IAAM,IACL,EAAM,cAAc,cAAgC,iBAAiB;EACtE,AAAI,MACH,EAAM,eAAe,GACrB,EAAQ,MAAM;CAEhB;CACA,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,wBAAsB,KAAkB,KAAA;EACxC,eAAe;EACf,WAAW,EAAG,EAAW,EAAE,WAAQ,CAAC,GAAG,CAAS;EAE/C;CACS,CAAA;AAEb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputHelperText.js","names":[],"sources":["../../../src/components/Input/InputHelperText.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { TextProps as AriaTextProps } from \"react-aria-components\";\nimport { Text as AriaText } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputHelperText } from \"./Input.css.js\";\n\nexport interface InputHelperTextProps\n\textends Omit<AriaTextProps, \"className\" | \"style\" | \"slot\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLElement>;\n}\n\nexport function InputHelperText({\n\tclassName,\n\tchildren,\n\t...rest\n}: InputHelperTextProps) {\n\tconst { isInvalid } = useInputContext();\n\treturn (\n\t\t<AriaText\n\t\t\t{...rest}\n\t\t\tslot=\"description\"\n\t\t\tdata-invalid={isInvalid || undefined}\n\t\t\tclassName={cx(inputHelperText, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaText>\n\t);\n}\n"],"mappings":";;;;;;AAcA,SAAgB,EAAgB,EAC/B,cACA,aACA,GAAG,KACqB;CACxB,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"InputHelperText.js","names":[],"sources":["../../../src/components/Input/InputHelperText.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { TextProps as AriaTextProps } from \"react-aria-components\";\nimport { Text as AriaText } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useInputContext } from \"./Input.context.js\";\nimport { inputHelperText } from \"./Input.css.js\";\n\nexport interface InputHelperTextProps\n\textends Omit<AriaTextProps, \"className\" | \"style\" | \"slot\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLElement>;\n}\n\nexport function InputHelperText({\n\tclassName,\n\tchildren,\n\t...rest\n}: InputHelperTextProps) {\n\tconst { isInvalid } = useInputContext();\n\treturn (\n\t\t<AriaText\n\t\t\t{...rest}\n\t\t\tslot=\"description\"\n\t\t\tdata-invalid={isInvalid || undefined}\n\t\t\tclassName={cx(inputHelperText, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaText>\n\t);\n}\n"],"mappings":";;;;;;AAcA,SAAgB,EAAgB,EAC/B,cACA,aACA,GAAG,KACqB;CACxB,IAAM,EAAE,iBAAc,EAAgB;CACtC,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,MAAK;EACL,gBAAc,KAAa,KAAA;EAC3B,WAAW,EAAG,GAAiB,CAAS;EAEvC;CACQ,CAAA;AAEZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputLabel.js","names":[],"sources":["../../../src/components/Input/InputLabel.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { LabelProps as AriaLabelProps } from \"react-aria-components\";\nimport { Label as AriaLabel } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputLabel } from \"./Input.css.js\";\n\nexport interface InputLabelProps\n\textends Omit<AriaLabelProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n}\n\nexport function InputLabel({ className, children, ...rest }: InputLabelProps) {\n\treturn (\n\t\t<AriaLabel {...rest} className={cx(inputLabel, className)}>\n\t\t\t{children}\n\t\t</AriaLabel>\n\t);\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAW,EAAE,cAAW,aAAU,GAAG,KAAyB;
|
|
1
|
+
{"version":3,"file":"InputLabel.js","names":[],"sources":["../../../src/components/Input/InputLabel.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { LabelProps as AriaLabelProps } from \"react-aria-components\";\nimport { Label as AriaLabel } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputLabel } from \"./Input.css.js\";\n\nexport interface InputLabelProps\n\textends Omit<AriaLabelProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n}\n\nexport function InputLabel({ className, children, ...rest }: InputLabelProps) {\n\treturn (\n\t\t<AriaLabel {...rest} className={cx(inputLabel, className)}>\n\t\t\t{children}\n\t\t</AriaLabel>\n\t);\n}\n"],"mappings":";;;;;AAaA,SAAgB,EAAW,EAAE,cAAW,aAAU,GAAG,KAAyB;CAC7E,OACC,kBAAC,GAAD;EAAW,GAAI;EAAM,WAAW,EAAG,GAAY,CAAS;EACtD;CACS,CAAA;AAEb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRoot.js","names":[],"sources":["../../../src/components/Input/InputRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { useMemo } from \"react\";\nimport type { TextFieldProps as AriaTextFieldProps } from \"react-aria-components\";\nimport { TextField as AriaTextField } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport type { InputVariant } from \"./Input.context.js\";\nimport { InputContext } from \"./Input.context.js\";\nimport { inputRoot } from \"./Input.css.js\";\n\nexport interface InputProps\n\textends Omit<AriaTextFieldProps, \"children\" | \"className\" | \"style\"> {\n\tvariant?: InputVariant;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\nexport function InputRoot({\n\tclassName,\n\tchildren,\n\tvariant = \"default\",\n\t...rest\n}: InputProps) {\n\tconst isDisabled = rest.isDisabled ?? false;\n\tconst isInvalid = rest.isInvalid ?? false;\n\tconst context = useMemo(\n\t\t() => ({ isDisabled, isInvalid, variant }),\n\t\t[isDisabled, isInvalid, variant],\n\t);\n\treturn (\n\t\t<AriaTextField {...rest} className={cx(inputRoot, className)}>\n\t\t\t<InputContext.Provider value={context}>{children}</InputContext.Provider>\n\t\t</AriaTextField>\n\t);\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,EAAU,EACzB,cACA,aACA,aAAU,WACV,GAAG,KACW;CACd,IAAM,IAAa,EAAK,cAAc,IAChC,IAAY,EAAK,aAAa,IAC9B,IAAU,SACR;EAAE;EAAY;EAAW;
|
|
1
|
+
{"version":3,"file":"InputRoot.js","names":[],"sources":["../../../src/components/Input/InputRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { useMemo } from \"react\";\nimport type { TextFieldProps as AriaTextFieldProps } from \"react-aria-components\";\nimport { TextField as AriaTextField } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport type { InputVariant } from \"./Input.context.js\";\nimport { InputContext } from \"./Input.context.js\";\nimport { inputRoot } from \"./Input.css.js\";\n\nexport interface InputProps\n\textends Omit<AriaTextFieldProps, \"children\" | \"className\" | \"style\"> {\n\tvariant?: InputVariant;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\nexport function InputRoot({\n\tclassName,\n\tchildren,\n\tvariant = \"default\",\n\t...rest\n}: InputProps) {\n\tconst isDisabled = rest.isDisabled ?? false;\n\tconst isInvalid = rest.isInvalid ?? false;\n\tconst context = useMemo(\n\t\t() => ({ isDisabled, isInvalid, variant }),\n\t\t[isDisabled, isInvalid, variant],\n\t);\n\treturn (\n\t\t<AriaTextField {...rest} className={cx(inputRoot, className)}>\n\t\t\t<InputContext.Provider value={context}>{children}</InputContext.Provider>\n\t\t</AriaTextField>\n\t);\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,EAAU,EACzB,cACA,aACA,aAAU,WACV,GAAG,KACW;CACd,IAAM,IAAa,EAAK,cAAc,IAChC,IAAY,EAAK,aAAa,IAC9B,IAAU,SACR;EAAE;EAAY;EAAW;CAAQ,IACxC;EAAC;EAAY;EAAW;CAAO,CAChC;CACA,OACC,kBAAC,GAAD;EAAe,GAAI;EAAM,WAAW,EAAG,GAAW,CAAS;YAC1D,kBAAC,EAAa,UAAd;GAAuB,OAAO;GAAU;EAAgC,CAAA;CAC1D,CAAA;AAEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTextArea.js","names":[],"sources":["../../../src/components/Input/InputTextArea.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { useCallback, useLayoutEffect } from \"react\";\nimport { useObjectRef } from \"react-aria/useObjectRef\";\nimport type { TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { TextArea as AriaTextArea } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputTextArea } from \"./Input.css.js\";\n\nexport interface InputTextAreaProps\n\textends Omit<AriaTextAreaProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLTextAreaElement>;\n\t/** Rows the textarea occupies before it starts growing. Default 1. */\n\tminRows?: number;\n\t/** Rows the textarea grows to before it scrolls instead. Default: uncapped. */\n\tmaxRows?: number;\n}\n\n/** Multi-line control for `Input`, wrapping RAC's `TextArea`. Auto-grows with its\n * content between `minRows` and `maxRows`, then scrolls. Use in place of\n * `Input.Control` when the field needs multiple lines (e.g. a message composer). */\nexport function InputTextArea({\n\tclassName,\n\tref,\n\tminRows = 1,\n\tmaxRows,\n\trows,\n\tonInput,\n\t...rest\n}: InputTextAreaProps) {\n\t// useObjectRef gives us an object ref to read for measurement while still\n\t// forwarding to the caller's ref (object or callback).\n\tconst objRef = useObjectRef(ref);\n\n\tconst resize = useCallback(() => {\n\t\tconst el = objRef.current;\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\t// Measure the element's own line-height so the row→px math holds regardless\n\t\t// of token values; padding/border are 0 here, so height === content height.\n\t\tconst lineHeight = Number.parseFloat(getComputedStyle(el).lineHeight);\n\t\tif (!Number.isFinite(lineHeight)) {\n\t\t\treturn;\n\t\t}\n\t\tel.style.height = \"auto\";\n\t\tconst content = el.scrollHeight;\n\t\tconst min = minRows * lineHeight;\n\t\tconst max =\n\t\t\tmaxRows != null ? maxRows * lineHeight : Number.POSITIVE_INFINITY;\n\t\tconst next = Math.min(Math.max(content, min), max);\n\t\tel.style.height = `${next}px`;\n\t\tel.style.overflowY = content > max ? \"auto\" : \"hidden\";\n\t}, [objRef, minRows, maxRows]);\n\n\t// Re-measure after every commit: for a controlled field RAC re-renders on each\n\t// keystroke and on programmatic value changes (e.g. clear-on-send), so this\n\t// stays in sync without a value dependency. Setting inline height does not\n\t// schedule a render, so there is no loop. (Standard autosize-textarea pattern.)\n\tuseLayoutEffect(() => {\n\t\tresize();\n\t});\n\n\t// An uncontrolled field mutates the DOM without a React render, so the effect\n\t// above never re-fires while typing — resize off the native input event too.\n\tconst handleInput = useCallback(\n\t\t(event: Parameters<NonNullable<AriaTextAreaProps[\"onInput\"]>>[0]) => {\n\t\t\tresize();\n\t\t\tonInput?.(event);\n\t\t},\n\t\t[resize, onInput],\n\t);\n\n\treturn (\n\t\t<AriaTextArea\n\t\t\t{...rest}\n\t\t\tref={objRef}\n\t\t\trows={rows ?? minRows}\n\t\t\tonInput={handleInput}\n\t\t\tclassName={cx(inputTextArea, className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;AAsBA,SAAgB,EAAc,EAC7B,cACA,QACA,aAAU,GACV,YACA,SACA,YACA,GAAG,KACmB;CAGtB,IAAM,IAAS,EAAa,
|
|
1
|
+
{"version":3,"file":"InputTextArea.js","names":[],"sources":["../../../src/components/Input/InputTextArea.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { useCallback, useLayoutEffect } from \"react\";\nimport { useObjectRef } from \"react-aria/useObjectRef\";\nimport type { TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { TextArea as AriaTextArea } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { inputTextArea } from \"./Input.css.js\";\n\nexport interface InputTextAreaProps\n\textends Omit<AriaTextAreaProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLTextAreaElement>;\n\t/** Rows the textarea occupies before it starts growing. Default 1. */\n\tminRows?: number;\n\t/** Rows the textarea grows to before it scrolls instead. Default: uncapped. */\n\tmaxRows?: number;\n}\n\n/** Multi-line control for `Input`, wrapping RAC's `TextArea`. Auto-grows with its\n * content between `minRows` and `maxRows`, then scrolls. Use in place of\n * `Input.Control` when the field needs multiple lines (e.g. a message composer). */\nexport function InputTextArea({\n\tclassName,\n\tref,\n\tminRows = 1,\n\tmaxRows,\n\trows,\n\tonInput,\n\t...rest\n}: InputTextAreaProps) {\n\t// useObjectRef gives us an object ref to read for measurement while still\n\t// forwarding to the caller's ref (object or callback).\n\tconst objRef = useObjectRef(ref);\n\n\tconst resize = useCallback(() => {\n\t\tconst el = objRef.current;\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\t// Measure the element's own line-height so the row→px math holds regardless\n\t\t// of token values; padding/border are 0 here, so height === content height.\n\t\tconst lineHeight = Number.parseFloat(getComputedStyle(el).lineHeight);\n\t\tif (!Number.isFinite(lineHeight)) {\n\t\t\treturn;\n\t\t}\n\t\tel.style.height = \"auto\";\n\t\tconst content = el.scrollHeight;\n\t\tconst min = minRows * lineHeight;\n\t\tconst max =\n\t\t\tmaxRows != null ? maxRows * lineHeight : Number.POSITIVE_INFINITY;\n\t\tconst next = Math.min(Math.max(content, min), max);\n\t\tel.style.height = `${next}px`;\n\t\tel.style.overflowY = content > max ? \"auto\" : \"hidden\";\n\t}, [objRef, minRows, maxRows]);\n\n\t// Re-measure after every commit: for a controlled field RAC re-renders on each\n\t// keystroke and on programmatic value changes (e.g. clear-on-send), so this\n\t// stays in sync without a value dependency. Setting inline height does not\n\t// schedule a render, so there is no loop. (Standard autosize-textarea pattern.)\n\tuseLayoutEffect(() => {\n\t\tresize();\n\t});\n\n\t// An uncontrolled field mutates the DOM without a React render, so the effect\n\t// above never re-fires while typing — resize off the native input event too.\n\tconst handleInput = useCallback(\n\t\t(event: Parameters<NonNullable<AriaTextAreaProps[\"onInput\"]>>[0]) => {\n\t\t\tresize();\n\t\t\tonInput?.(event);\n\t\t},\n\t\t[resize, onInput],\n\t);\n\n\treturn (\n\t\t<AriaTextArea\n\t\t\t{...rest}\n\t\t\tref={objRef}\n\t\t\trows={rows ?? minRows}\n\t\t\tonInput={handleInput}\n\t\t\tclassName={cx(inputTextArea, className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;AAsBA,SAAgB,EAAc,EAC7B,cACA,QACA,aAAU,GACV,YACA,SACA,YACA,GAAG,KACmB;CAGtB,IAAM,IAAS,EAAa,CAAG,GAEzB,IAAS,QAAkB;EAChC,IAAM,IAAK,EAAO;EAClB,IAAI,CAAC,GACJ;EAID,IAAM,IAAa,OAAO,WAAW,iBAAiB,CAAE,CAAC,CAAC,UAAU;EACpE,IAAI,CAAC,OAAO,SAAS,CAAU,GAC9B;EAED,EAAG,MAAM,SAAS;EAClB,IAAM,IAAU,EAAG,cACb,IAAM,IAAU,GAChB,IACL,KAAW,OAA8B,WAAvB,IAAU,GACvB,IAAO,KAAK,IAAI,KAAK,IAAI,GAAS,CAAG,GAAG,CAAG;EAEjD,AADA,EAAG,MAAM,SAAS,GAAG,EAAK,KAC1B,EAAG,MAAM,YAAY,IAAU,IAAM,SAAS;CAC/C,GAAG;EAAC;EAAQ;EAAS;CAAO,CAAC;CAM7B,QAAsB;EACrB,EAAO;CACR,CAAC;CAID,IAAM,IAAc,GAClB,MAAoE;EAEpE,AADA,EAAO,GACP,IAAU,CAAK;CAChB,GACA,CAAC,GAAQ,CAAO,CACjB;CAEA,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,KAAK;EACL,MAAM,KAAQ;EACd,SAAS;EACT,WAAW,EAAG,GAAe,CAAS;CACtC,CAAA;AAEH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/Link/Link.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","names":[],"sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { LinkProps as AriaLinkProps } from \"react-aria-components\";\nimport { Link as AriaLink } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ArrowNortheast, Download } from \"../Icon/icons/index.js\";\nimport { linkRoot } from \"./Link.css.js\";\n\nexport interface LinkProps\n\textends Omit<AriaLinkProps, \"children\" | \"className\" | \"style\"> {\n\tunderlined?: boolean;\n\tshowIcon?: boolean;\n\tdownload?: boolean | string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLAnchorElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * A standalone link affordance — a label with a trailing external-link or download\n * icon, sized and spaced as its own control.\n *\n * Not an inline prose link: the box is `inline-flex`, so it cannot fragment across\n * a line break. A link inside a message body is styled by `messageProse` instead.\n */\nexport function Link({\n\tunderlined = false,\n\tshowIcon = true,\n\tdownload,\n\tclassName,\n\tchildren,\n\t...rest\n}: LinkProps) {\n\tconst isDownload = download !== undefined && download !== false;\n\treturn (\n\t\t<AriaLink\n\t\t\t{...rest}\n\t\t\tdownload={download}\n\t\t\tdata-slot=\"link\"\n\t\t\tdata-icon={showIcon || undefined}\n\t\t\tdata-underlined={underlined || undefined}\n\t\t\tdata-download={isDownload || undefined}\n\t\t\tclassName={cx(linkRoot({ underlined }), className)}\n\t\t>\n\t\t\t{children}\n\t\t\t{showIcon && (isDownload ? <Download /> : <ArrowNortheast />)}\n\t\t</AriaLink>\n\t);\n}\n"],"mappings":";;;;;;;AAyBA,SAAgB,EAAK,EACpB,gBAAa,IACb,cAAW,IACX,aACA,cACA,aACA,GAAG,KACU;CACb,IAAM,IAAa,MAAa,KAAA,KAAa,MAAa;
|
|
1
|
+
{"version":3,"file":"Link.js","names":[],"sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { LinkProps as AriaLinkProps } from \"react-aria-components\";\nimport { Link as AriaLink } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ArrowNortheast, Download } from \"../Icon/icons/index.js\";\nimport { linkRoot } from \"./Link.css.js\";\n\nexport interface LinkProps\n\textends Omit<AriaLinkProps, \"children\" | \"className\" | \"style\"> {\n\tunderlined?: boolean;\n\tshowIcon?: boolean;\n\tdownload?: boolean | string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLAnchorElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * A standalone link affordance — a label with a trailing external-link or download\n * icon, sized and spaced as its own control.\n *\n * Not an inline prose link: the box is `inline-flex`, so it cannot fragment across\n * a line break. A link inside a message body is styled by `messageProse` instead.\n */\nexport function Link({\n\tunderlined = false,\n\tshowIcon = true,\n\tdownload,\n\tclassName,\n\tchildren,\n\t...rest\n}: LinkProps) {\n\tconst isDownload = download !== undefined && download !== false;\n\treturn (\n\t\t<AriaLink\n\t\t\t{...rest}\n\t\t\tdownload={download}\n\t\t\tdata-slot=\"link\"\n\t\t\tdata-icon={showIcon || undefined}\n\t\t\tdata-underlined={underlined || undefined}\n\t\t\tdata-download={isDownload || undefined}\n\t\t\tclassName={cx(linkRoot({ underlined }), className)}\n\t\t>\n\t\t\t{children}\n\t\t\t{showIcon && (isDownload ? <Download /> : <ArrowNortheast />)}\n\t\t</AriaLink>\n\t);\n}\n"],"mappings":";;;;;;;AAyBA,SAAgB,EAAK,EACpB,gBAAa,IACb,cAAW,IACX,aACA,cACA,aACA,GAAG,KACU;CACb,IAAM,IAAa,MAAa,KAAA,KAAa,MAAa;CAC1D,OACC,kBAAC,GAAD;EACC,GAAI;EACM;EACV,aAAU;EACV,aAAW,KAAY,KAAA;EACvB,mBAAiB,KAAc,KAAA;EAC/B,iBAAe,KAAc,KAAA;EAC7B,WAAW,EAAG,EAAS,EAAE,cAAW,CAAC,GAAG,CAAS;YAPlD,CASE,GACA,KAA0B,EAAb,IAAc,IAAe,GAAhB,CAAW,CAAqB,CAClD;;AAEZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","names":[],"sources":["../../../src/components/MenuItem/Menu.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { MenuProps as AriaMenuProps } from \"react-aria-components\";\nimport { Menu as AriaMenu } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { menu } from \"./MenuItem.css.js\";\n\nexport interface MenuProps<T extends object = object>\n\textends Omit<AriaMenuProps<T>, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * A `role=\"menu\"` collection container for `MenuItem` rows. Owns keyboard\n * navigation (arrow keys, typeahead) and the menu's accessible name — supply\n * `aria-label` or `aria-labelledby`. Render inside React Aria's `MenuTrigger` +\n * `Popover` for a dropdown, or standalone for an inline menu.\n */\nexport function Menu<T extends object>({ className, ...rest }: MenuProps<T>) {\n\treturn <AriaMenu {...rest} className={cx(menu, className)} />;\n}\n"],"mappings":";;;;;AAmBA,SAAgB,EAAuB,EAAE,cAAW,GAAG,KAAsB;
|
|
1
|
+
{"version":3,"file":"Menu.js","names":[],"sources":["../../../src/components/MenuItem/Menu.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { MenuProps as AriaMenuProps } from \"react-aria-components\";\nimport { Menu as AriaMenu } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { menu } from \"./MenuItem.css.js\";\n\nexport interface MenuProps<T extends object = object>\n\textends Omit<AriaMenuProps<T>, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * A `role=\"menu\"` collection container for `MenuItem` rows. Owns keyboard\n * navigation (arrow keys, typeahead) and the menu's accessible name — supply\n * `aria-label` or `aria-labelledby`. Render inside React Aria's `MenuTrigger` +\n * `Popover` for a dropdown, or standalone for an inline menu.\n */\nexport function Menu<T extends object>({ className, ...rest }: MenuProps<T>) {\n\treturn <AriaMenu {...rest} className={cx(menu, className)} />;\n}\n"],"mappings":";;;;;AAmBA,SAAgB,EAAuB,EAAE,cAAW,GAAG,KAAsB;CAC5E,OAAO,kBAAC,GAAD;EAAU,GAAI;EAAM,WAAW,EAAG,GAAM,CAAS;CAAI,CAAA;AAC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.js","names":[],"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"sourcesContent":["import { MenuItemCheckbox } from \"./MenuItemCheckbox.js\";\nimport { MenuItemLabel } from \"./MenuItemLabel.js\";\nimport { MenuItemRadio } from \"./MenuItemRadio.js\";\nimport { MenuItemRoot } from \"./MenuItemRoot.js\";\nimport { MenuItemToggle } from \"./MenuItemToggle.js\";\n\nexport type { MenuItemCheckboxProps } from \"./MenuItemCheckbox.js\";\nexport type { MenuItemLabelProps } from \"./MenuItemLabel.js\";\nexport type { MenuItemRadioProps } from \"./MenuItemRadio.js\";\nexport type { MenuItemProps } from \"./MenuItemRoot.js\";\nexport type { MenuItemToggleProps } from \"./MenuItemToggle.js\";\n\nexport const MenuItem = Object.assign(MenuItemRoot, {\n\tLabel: MenuItemLabel,\n\tCheckbox: MenuItemCheckbox,\n\tRadio: MenuItemRadio,\n\tToggle: MenuItemToggle,\n});\n"],"mappings":";;;;;;AAYA,IAAa,IAAW,OAAO,OAAO,GAAc;CACnD,OAAO;CACP,UAAU;CACV,OAAO;CACP,QAAQ;
|
|
1
|
+
{"version":3,"file":"MenuItem.js","names":[],"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"sourcesContent":["import { MenuItemCheckbox } from \"./MenuItemCheckbox.js\";\nimport { MenuItemLabel } from \"./MenuItemLabel.js\";\nimport { MenuItemRadio } from \"./MenuItemRadio.js\";\nimport { MenuItemRoot } from \"./MenuItemRoot.js\";\nimport { MenuItemToggle } from \"./MenuItemToggle.js\";\n\nexport type { MenuItemCheckboxProps } from \"./MenuItemCheckbox.js\";\nexport type { MenuItemLabelProps } from \"./MenuItemLabel.js\";\nexport type { MenuItemRadioProps } from \"./MenuItemRadio.js\";\nexport type { MenuItemProps } from \"./MenuItemRoot.js\";\nexport type { MenuItemToggleProps } from \"./MenuItemToggle.js\";\n\nexport const MenuItem = Object.assign(MenuItemRoot, {\n\tLabel: MenuItemLabel,\n\tCheckbox: MenuItemCheckbox,\n\tRadio: MenuItemRadio,\n\tToggle: MenuItemToggle,\n});\n"],"mappings":";;;;;;AAYA,IAAa,IAAW,OAAO,OAAO,GAAc;CACnD,OAAO;CACP,UAAU;CACV,OAAO;CACP,QAAQ;AACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemCheckbox.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemCheckbox.tsx"],"sourcesContent":["import type { CheckboxIndicatorProps } from \"../Checkbox/CheckboxIndicator.js\";\nimport { CheckboxIndicator } from \"../Checkbox/CheckboxIndicator.js\";\n\nexport type MenuItemCheckboxProps = Omit<\n\tCheckboxIndicatorProps,\n\t\"hasStateLayer\"\n>;\n\n/**\n * A checkbox box drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"multiple\"`. It renders no control of its own — the row is\n * already `role=\"menuitemcheckbox\"` and owns the selection, so a real `Checkbox`\n * here would be an interactive element nested inside an interactive row.\n *\n * Same markup and styles as the standalone `Checkbox`'s box, minus the box's own\n * state layer: the row paints hover and focus.\n */\nexport function MenuItemCheckbox(props: MenuItemCheckboxProps) {\n\treturn <CheckboxIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAiBA,SAAgB,EAAiB,GAA8B;
|
|
1
|
+
{"version":3,"file":"MenuItemCheckbox.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemCheckbox.tsx"],"sourcesContent":["import type { CheckboxIndicatorProps } from \"../Checkbox/CheckboxIndicator.js\";\nimport { CheckboxIndicator } from \"../Checkbox/CheckboxIndicator.js\";\n\nexport type MenuItemCheckboxProps = Omit<\n\tCheckboxIndicatorProps,\n\t\"hasStateLayer\"\n>;\n\n/**\n * A checkbox box drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"multiple\"`. It renders no control of its own — the row is\n * already `role=\"menuitemcheckbox\"` and owns the selection, so a real `Checkbox`\n * here would be an interactive element nested inside an interactive row.\n *\n * Same markup and styles as the standalone `Checkbox`'s box, minus the box's own\n * state layer: the row paints hover and focus.\n */\nexport function MenuItemCheckbox(props: MenuItemCheckboxProps) {\n\treturn <CheckboxIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAiBA,SAAgB,EAAiB,GAA8B;CAC9D,OAAO,kBAAC,GAAD;EAAmB,GAAI;EAAO,eAAe;CAAQ,CAAA;AAC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemLabel.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemLabel.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from \"react\";\n\nexport interface MenuItemLabelProps extends HTMLAttributes<HTMLSpanElement> {\n\tref?: Ref<HTMLSpanElement>;\n\t/** The row's text. Keep it a plain string so `textValue` can be derived from it. */\n\tchildren?: ReactNode;\n}\n\n/**\n * The row's text, and the element that lays the row out: it takes the remaining\n * width, so anything rendered before it sits at the row start and anything after\n * it pins to the row end — no slot wrapper needed either side.\n *\n * `MenuItem` reads its string child as the item's `textValue`, which React Aria\n * needs for typeahead.\n */\nexport function MenuItemLabel({ children, ref, ...rest }: MenuItemLabelProps) {\n\treturn (\n\t\t<span ref={ref} {...rest} data-slot=\"label\">\n\t\t\t{children}\n\t\t</span>\n\t);\n}\n"],"mappings":";;AAgBA,SAAgB,EAAc,EAAE,aAAU,QAAK,GAAG,KAA4B;
|
|
1
|
+
{"version":3,"file":"MenuItemLabel.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemLabel.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from \"react\";\n\nexport interface MenuItemLabelProps extends HTMLAttributes<HTMLSpanElement> {\n\tref?: Ref<HTMLSpanElement>;\n\t/** The row's text. Keep it a plain string so `textValue` can be derived from it. */\n\tchildren?: ReactNode;\n}\n\n/**\n * The row's text, and the element that lays the row out: it takes the remaining\n * width, so anything rendered before it sits at the row start and anything after\n * it pins to the row end — no slot wrapper needed either side.\n *\n * `MenuItem` reads its string child as the item's `textValue`, which React Aria\n * needs for typeahead.\n */\nexport function MenuItemLabel({ children, ref, ...rest }: MenuItemLabelProps) {\n\treturn (\n\t\t<span ref={ref} {...rest} data-slot=\"label\">\n\t\t\t{children}\n\t\t</span>\n\t);\n}\n"],"mappings":";;AAgBA,SAAgB,EAAc,EAAE,aAAU,QAAK,GAAG,KAA4B;CAC7E,OACC,kBAAC,QAAD;EAAW;EAAK,GAAI;EAAM,aAAU;EAClC;CACI,CAAA;AAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemRadio.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemRadio.tsx"],"sourcesContent":["import type { RadioIndicatorProps } from \"../Radio/RadioIndicator.js\";\nimport { RadioIndicator } from \"../Radio/RadioIndicator.js\";\n\nexport type MenuItemRadioProps = Omit<RadioIndicatorProps, \"hasStateLayer\">;\n\n/**\n * A radio circle drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"single\"`. It renders no control of its own — the row is already\n * `role=\"menuitemradio\"` and owns the selection.\n *\n * Same markup and styles as the standalone `Radio`'s circle, minus the circle's\n * own hover border and focus ring: the row paints those.\n */\nexport function MenuItemRadio(props: MenuItemRadioProps) {\n\treturn <RadioIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAaA,SAAgB,EAAc,GAA2B;
|
|
1
|
+
{"version":3,"file":"MenuItemRadio.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemRadio.tsx"],"sourcesContent":["import type { RadioIndicatorProps } from \"../Radio/RadioIndicator.js\";\nimport { RadioIndicator } from \"../Radio/RadioIndicator.js\";\n\nexport type MenuItemRadioProps = Omit<RadioIndicatorProps, \"hasStateLayer\">;\n\n/**\n * A radio circle drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"single\"`. It renders no control of its own — the row is already\n * `role=\"menuitemradio\"` and owns the selection.\n *\n * Same markup and styles as the standalone `Radio`'s circle, minus the circle's\n * own hover border and focus ring: the row paints those.\n */\nexport function MenuItemRadio(props: MenuItemRadioProps) {\n\treturn <RadioIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAaA,SAAgB,EAAc,GAA2B;CACxD,OAAO,kBAAC,GAAD;EAAgB,GAAI;EAAO,eAAe;CAAQ,CAAA;AAC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemRoot.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Children, isValidElement } from \"react\";\nimport type { MenuItemProps as AriaMenuItemProps } from \"react-aria-components\";\nimport { MenuItem as AriaMenuItem } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { menuItem } from \"./MenuItem.css.js\";\nimport { MenuItemLabel } from \"./MenuItemLabel.js\";\n\nexport interface MenuItemProps\n\textends Omit<AriaMenuItemProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/** Read the row's text off its `MenuItem.Label` child, for React Aria's typeahead. */\nfunction readLabelTextValue(children: ReactNode): string | undefined {\n\tconst label = Children.toArray(children).find(\n\t\t(child) => isValidElement(child) && child.type === MenuItemLabel,\n\t);\n\tif (!isValidElement<{ children?: ReactNode }>(label)) {\n\t\treturn undefined;\n\t}\n\treturn typeof label.props.children === \"string\"\n\t\t? label.props.children\n\t\t: undefined;\n}\n\n/**\n * A selectable row within a `Menu` — `role=\"menuitem\"`, or\n * `menuitemcheckbox`/`menuitemradio` when the `Menu` sets `selectionMode`.\n * Hover/focus/pressed/selected/disabled states come from the data-attributes\n * React Aria sets, so this takes no state props; pass `isDisabled` to disable\n * and `onAction` to handle activation.\n *\n * Compose the row in child order around a required `MenuItem.Label`, which takes\n * the remaining width: content before it sits at the row start, content after it\n * pins to the row end. Use `MenuItem.Checkbox` / `.Radio` / `.Toggle` for a\n * selection indicator and `<Icon>` for an icon.\n *\n * `textValue` is derived from the `Label`'s string child; pass it explicitly when\n * the label isn't a plain string. Children may be a render function to react to\n * `isSelected` / `isFocused`, in which case pass `textValue` yourself.\n */\nexport function MenuItemRoot({\n\tclassName,\n\tchildren,\n\ttextValue,\n\t...rest\n}: MenuItemProps) {\n\tconst labelTextValue = readLabelTextValue(\n\t\ttypeof children === \"function\" ? null : children,\n\t);\n\treturn (\n\t\t<AriaMenuItem\n\t\t\t{...rest}\n\t\t\ttextValue={textValue ?? labelTextValue}\n\t\t\tclassName={cx(menuItem, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaMenuItem>\n\t);\n}\n"],"mappings":";;;;;;;AAgBA,SAAS,EAAmB,GAAyC;CACpE,IAAM,IAAQ,EAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"MenuItemRoot.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Children, isValidElement } from \"react\";\nimport type { MenuItemProps as AriaMenuItemProps } from \"react-aria-components\";\nimport { MenuItem as AriaMenuItem } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { menuItem } from \"./MenuItem.css.js\";\nimport { MenuItemLabel } from \"./MenuItemLabel.js\";\n\nexport interface MenuItemProps\n\textends Omit<AriaMenuItemProps, \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/** Read the row's text off its `MenuItem.Label` child, for React Aria's typeahead. */\nfunction readLabelTextValue(children: ReactNode): string | undefined {\n\tconst label = Children.toArray(children).find(\n\t\t(child) => isValidElement(child) && child.type === MenuItemLabel,\n\t);\n\tif (!isValidElement<{ children?: ReactNode }>(label)) {\n\t\treturn undefined;\n\t}\n\treturn typeof label.props.children === \"string\"\n\t\t? label.props.children\n\t\t: undefined;\n}\n\n/**\n * A selectable row within a `Menu` — `role=\"menuitem\"`, or\n * `menuitemcheckbox`/`menuitemradio` when the `Menu` sets `selectionMode`.\n * Hover/focus/pressed/selected/disabled states come from the data-attributes\n * React Aria sets, so this takes no state props; pass `isDisabled` to disable\n * and `onAction` to handle activation.\n *\n * Compose the row in child order around a required `MenuItem.Label`, which takes\n * the remaining width: content before it sits at the row start, content after it\n * pins to the row end. Use `MenuItem.Checkbox` / `.Radio` / `.Toggle` for a\n * selection indicator and `<Icon>` for an icon.\n *\n * `textValue` is derived from the `Label`'s string child; pass it explicitly when\n * the label isn't a plain string. Children may be a render function to react to\n * `isSelected` / `isFocused`, in which case pass `textValue` yourself.\n */\nexport function MenuItemRoot({\n\tclassName,\n\tchildren,\n\ttextValue,\n\t...rest\n}: MenuItemProps) {\n\tconst labelTextValue = readLabelTextValue(\n\t\ttypeof children === \"function\" ? null : children,\n\t);\n\treturn (\n\t\t<AriaMenuItem\n\t\t\t{...rest}\n\t\t\ttextValue={textValue ?? labelTextValue}\n\t\t\tclassName={cx(menuItem, className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaMenuItem>\n\t);\n}\n"],"mappings":";;;;;;;AAgBA,SAAS,EAAmB,GAAyC;CACpE,IAAM,IAAQ,EAAS,QAAQ,CAAQ,CAAC,CAAC,MACvC,MAAU,EAAe,CAAK,KAAK,EAAM,SAAS,CACpD;CACK,MAAyC,CAAK,GAGnD,OAAO,OAAO,EAAM,MAAM,YAAa,WACpC,EAAM,MAAM,WACZ,KAAA;AACJ;AAkBA,SAAgB,EAAa,EAC5B,cACA,aACA,cACA,GAAG,KACc;CACjB,IAAM,IAAiB,EACtB,OAAO,KAAa,aAAa,OAAO,CACzC;CACA,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,WAAW,KAAa;EACxB,WAAW,EAAG,GAAU,CAAS;EAEhC;CACY,CAAA;AAEhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemToggle.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemToggle.tsx"],"sourcesContent":["import type { ToggleIndicatorProps } from \"../Toggle/ToggleIndicator.js\";\nimport { ToggleIndicator } from \"../Toggle/ToggleIndicator.js\";\n\nexport type MenuItemToggleProps = Omit<ToggleIndicatorProps, \"hasStateLayer\">;\n\n/**\n * A toggle track drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"multiple\"` where the row reads as a setting rather than a\n * command. It renders no `Switch` of its own — the row is already\n * `role=\"menuitemcheckbox\"` and owns the state, so activating the row flips it.\n *\n * For a settings list that is not a menu, use `Toggle` with its own accessible\n * name instead; that is a `role=\"switch\"` control, not a menu row.\n */\nexport function MenuItemToggle(props: MenuItemToggleProps) {\n\treturn <ToggleIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAcA,SAAgB,EAAe,GAA4B;
|
|
1
|
+
{"version":3,"file":"MenuItemToggle.js","names":[],"sources":["../../../src/components/MenuItem/MenuItemToggle.tsx"],"sourcesContent":["import type { ToggleIndicatorProps } from \"../Toggle/ToggleIndicator.js\";\nimport { ToggleIndicator } from \"../Toggle/ToggleIndicator.js\";\n\nexport type MenuItemToggleProps = Omit<ToggleIndicatorProps, \"hasStateLayer\">;\n\n/**\n * A toggle track drawn inside a menu row, for a `Menu` with\n * `selectionMode=\"multiple\"` where the row reads as a setting rather than a\n * command. It renders no `Switch` of its own — the row is already\n * `role=\"menuitemcheckbox\"` and owns the state, so activating the row flips it.\n *\n * For a settings list that is not a menu, use `Toggle` with its own accessible\n * name instead; that is a `role=\"switch\"` control, not a menu row.\n */\nexport function MenuItemToggle(props: MenuItemToggleProps) {\n\treturn <ToggleIndicator {...props} hasStateLayer={false} />;\n}\n"],"mappings":";;;AAcA,SAAgB,EAAe,GAA4B;CAC1D,OAAO,kBAAC,GAAD;EAAiB,GAAI;EAAO,eAAe;CAAQ,CAAA;AAC3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageError.js","names":[],"sources":["../../../src/components/MessageError/MessageError.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ExclamationSync } from \"../Icon/icons/index.js\";\nimport {\n\tmessageErrorAnnouncement,\n\tmessageErrorContent,\n\tmessageErrorRetry,\n\tmessageErrorRoot,\n\tmessageErrorText,\n} from \"./MessageError.css.js\";\n\nexport interface MessageErrorProps {\n\t/**\n\t * Localized failure copy. With `onRetry` it is also the retry control's\n\t * accessible name, and it is the announced string unless `announce` is off.\n\t *\n\t * A string rather than a node: the copy renders in both the announcement and\n\t * the visible row, so a node would mount twice and duplicate every id and\n\t * focus target it carries.\n\t */\n\tchildren: string;\n\t/** Invoked when the retry affordance is activated (click / Enter / Space). */\n\tonRetry?: () => void;\n\t/**\n\t * Announce the failure on mount through a visually-hidden `role=\"alert\"`.\n\t * Pass `false` on a surface that already announces message failures through\n\t * a live region of its own: two regions announce the same text twice, in an\n\t * order neither controls.\n\t */\n\tannounce?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * The failed-to-send row shown beneath a message bubble: the copy, the retry\n * affordance, and — unless `announce` is off — a visually-hidden `role=\"alert\"`\n * carrying the same copy, so a failure is announced without the consumer\n * hand-rolling a live region. With `onRetry` the visible copy stays exposed\n * rather than `aria-hidden`, because it is the retry control's accessible name\n * on focus. Without `onRetry` there is nothing to retry, so the copy renders as\n * static text rather than a control that does nothing — and it is hidden from\n * assistive tech while `announce` is on, since it would otherwise be read once\n * as the alert and again as ordinary transcript text. Alignment is the\n * consumer's: the row lays out at its container's leading edge until placed\n * otherwise.\n */\nexport function MessageError({\n\tchildren,\n\tonRetry,\n\tannounce = true,\n\tclassName,\n\t...rest\n}: MessageErrorProps) {\n\treturn (\n\t\t<div {...rest} className={cx(messageErrorRoot, className)}>\n\t\t\t{announce && (\n\t\t\t\t<span dir=\"auto\" role=\"alert\" className={messageErrorAnnouncement}>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\t{onRetry ? (\n\t\t\t\t<AriaButton className={messageErrorRetry} onPress={onRetry}>\n\t\t\t\t\t<ExclamationSync />\n\t\t\t\t\t<span dir=\"auto\" className={messageErrorText}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</span>\n\t\t\t\t</AriaButton>\n\t\t\t) : (\n\t\t\t\t// No control to name here, so the copy is exposed only when nothing else\n\t\t\t\t// announces it — otherwise the hidden alert above already reads it and a\n\t\t\t\t// reader browsing the transcript would hear the failure twice.\n\t\t\t\t<span\n\t\t\t\t\tclassName={messageErrorContent}\n\t\t\t\t\taria-hidden={announce || undefined}\n\t\t\t\t>\n\t\t\t\t\t<span dir=\"auto\" className={messageErrorText}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</span>\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;AAiDA,SAAgB,EAAa,EAC5B,aACA,YACA,cAAW,IACX,cACA,GAAG,KACkB;
|
|
1
|
+
{"version":3,"file":"MessageError.js","names":[],"sources":["../../../src/components/MessageError/MessageError.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ExclamationSync } from \"../Icon/icons/index.js\";\nimport {\n\tmessageErrorAnnouncement,\n\tmessageErrorContent,\n\tmessageErrorRetry,\n\tmessageErrorRoot,\n\tmessageErrorText,\n} from \"./MessageError.css.js\";\n\nexport interface MessageErrorProps {\n\t/**\n\t * Localized failure copy. With `onRetry` it is also the retry control's\n\t * accessible name, and it is the announced string unless `announce` is off.\n\t *\n\t * A string rather than a node: the copy renders in both the announcement and\n\t * the visible row, so a node would mount twice and duplicate every id and\n\t * focus target it carries.\n\t */\n\tchildren: string;\n\t/** Invoked when the retry affordance is activated (click / Enter / Space). */\n\tonRetry?: () => void;\n\t/**\n\t * Announce the failure on mount through a visually-hidden `role=\"alert\"`.\n\t * Pass `false` on a surface that already announces message failures through\n\t * a live region of its own: two regions announce the same text twice, in an\n\t * order neither controls.\n\t */\n\tannounce?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * The failed-to-send row shown beneath a message bubble: the copy, the retry\n * affordance, and — unless `announce` is off — a visually-hidden `role=\"alert\"`\n * carrying the same copy, so a failure is announced without the consumer\n * hand-rolling a live region. With `onRetry` the visible copy stays exposed\n * rather than `aria-hidden`, because it is the retry control's accessible name\n * on focus. Without `onRetry` there is nothing to retry, so the copy renders as\n * static text rather than a control that does nothing — and it is hidden from\n * assistive tech while `announce` is on, since it would otherwise be read once\n * as the alert and again as ordinary transcript text. Alignment is the\n * consumer's: the row lays out at its container's leading edge until placed\n * otherwise.\n */\nexport function MessageError({\n\tchildren,\n\tonRetry,\n\tannounce = true,\n\tclassName,\n\t...rest\n}: MessageErrorProps) {\n\treturn (\n\t\t<div {...rest} className={cx(messageErrorRoot, className)}>\n\t\t\t{announce && (\n\t\t\t\t<span dir=\"auto\" role=\"alert\" className={messageErrorAnnouncement}>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\t{onRetry ? (\n\t\t\t\t<AriaButton className={messageErrorRetry} onPress={onRetry}>\n\t\t\t\t\t<ExclamationSync />\n\t\t\t\t\t<span dir=\"auto\" className={messageErrorText}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</span>\n\t\t\t\t</AriaButton>\n\t\t\t) : (\n\t\t\t\t// No control to name here, so the copy is exposed only when nothing else\n\t\t\t\t// announces it — otherwise the hidden alert above already reads it and a\n\t\t\t\t// reader browsing the transcript would hear the failure twice.\n\t\t\t\t<span\n\t\t\t\t\tclassName={messageErrorContent}\n\t\t\t\t\taria-hidden={announce || undefined}\n\t\t\t\t>\n\t\t\t\t\t<span dir=\"auto\" className={messageErrorText}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</span>\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;AAiDA,SAAgB,EAAa,EAC5B,aACA,YACA,cAAW,IACX,cACA,GAAG,KACkB;CACrB,OACC,kBAAC,OAAD;EAAK,GAAI;EAAM,WAAW,EAAG,GAAkB,CAAS;YAAxD,CACE,KACA,kBAAC,QAAD;GAAM,KAAI;GAAO,MAAK;GAAQ,WAAA;GAC5B;EACI,CAAA,GAEN,IACA,kBAAC,GAAD;GAAY,WAAW;GAAmB,SAAS;aAAnD,CACC,kBAAC,GAAD,CAAkB,CAAA,GAClB,kBAAC,QAAD;IAAM,KAAI;IAAO,WAAW;IAC1B;GACI,CAAA,CACK;OAKZ,kBAAC,QAAD;GACC,WAAW;GACX,eAAa,KAAY,KAAA;aAEzB,kBAAC,QAAD;IAAM,KAAI;IAAO,WAAW;IAC1B;GACI,CAAA;EACD,CAAA,CAEH;;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageProse.js","names":[],"sources":["../../../src/components/MessageProse/MessageProse.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { messageProse } from \"./MessageProse.css.js\";\n\nexport interface MessageProseProps {\n\t/** The per-sender class the hosting message component adds. */\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * The body element of a message: the prose rules, message typography, and\n * `dir=\"auto\"`.\n *\n * Internal — not exported from the package. It exists because the pairing of\n * `dir=\"auto\"` with the prose class is an invariant that a shared *style*\n * cannot carry: direction detection is markup. Both message components\n * repeated the pair with nothing enforcing it.\n *\n * It stamps `data-slot=\"message-body\"`, which is the only stable way to find a\n * rendered message body: the class names are build hashes. Both message\n * components inherit the hook by composing this.\n *\n * `dir` is applied after the caller's props so a consumer cannot break the\n * pairing by passing one.\n */\nexport function MessageProse({\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageProseProps) {\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdir=\"auto\"\n\t\t\tdata-slot=\"message-body\"\n\t\t\tclassName={cx(messageProse, className)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AA4BA,SAAgB,EAAa,EAC5B,cACA,aACA,GAAG,KACkB;
|
|
1
|
+
{"version":3,"file":"MessageProse.js","names":[],"sources":["../../../src/components/MessageProse/MessageProse.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { messageProse } from \"./MessageProse.css.js\";\n\nexport interface MessageProseProps {\n\t/** The per-sender class the hosting message component adds. */\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * The body element of a message: the prose rules, message typography, and\n * `dir=\"auto\"`.\n *\n * Internal — not exported from the package. It exists because the pairing of\n * `dir=\"auto\"` with the prose class is an invariant that a shared *style*\n * cannot carry: direction detection is markup. Both message components\n * repeated the pair with nothing enforcing it.\n *\n * It stamps `data-slot=\"message-body\"`, which is the only stable way to find a\n * rendered message body: the class names are build hashes. Both message\n * components inherit the hook by composing this.\n *\n * `dir` is applied after the caller's props so a consumer cannot break the\n * pairing by passing one.\n */\nexport function MessageProse({\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageProseProps) {\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdir=\"auto\"\n\t\t\tdata-slot=\"message-body\"\n\t\t\tclassName={cx(messageProse, className)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AA4BA,SAAgB,EAAa,EAC5B,cACA,aACA,GAAG,KACkB;CACrB,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,KAAI;EACJ,aAAU;EACV,WAAW,EAAG,GAAc,CAAS;EAEpC;CACG,CAAA;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRow.context.js","names":[],"sources":["../../../src/components/MessageRow/MessageRow.context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\nexport type MessageSender = \"user\" | \"agent\";\n\n/** Lets `MessageRow.Content` align and cap itself, so a caller cannot pass a\n * row and a column that disagree on the sender. */\nexport const MessageRowContext = createContext<MessageSender>(\"agent\");\n\nexport const useMessageRowSender = () => useContext(MessageRowContext);\n"],"mappings":";;AAMA,IAAa,IAAoB,EAA6B,
|
|
1
|
+
{"version":3,"file":"MessageRow.context.js","names":[],"sources":["../../../src/components/MessageRow/MessageRow.context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\nexport type MessageSender = \"user\" | \"agent\";\n\n/** Lets `MessageRow.Content` align and cap itself, so a caller cannot pass a\n * row and a column that disagree on the sender. */\nexport const MessageRowContext = createContext<MessageSender>(\"agent\");\n\nexport const useMessageRowSender = () => useContext(MessageRowContext);\n"],"mappings":";;AAMA,IAAa,IAAoB,EAA6B,OAAO,GAExD,UAA4B,EAAW,CAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/MessageRow/MessageRow.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRow.js","names":[],"sources":["../../../src/components/MessageRow/MessageRow.tsx"],"sourcesContent":["import { MessageRowContent } from \"./MessageRowContent.js\";\nimport { MessageRowRoot } from \"./MessageRowRoot.js\";\n\nexport type { MessageSender } from \"./MessageRow.context.js\";\nexport type { MessageRowContentProps } from \"./MessageRowContent.js\";\nexport type { MessageRowProps } from \"./MessageRowRoot.js\";\n\nexport const MessageRow = Object.assign(MessageRowRoot, {\n\tContent: MessageRowContent,\n});\n"],"mappings":";;;AAOA,IAAa,IAAa,OAAO,OAAO,GAAgB,EACvD,SAAS,
|
|
1
|
+
{"version":3,"file":"MessageRow.js","names":[],"sources":["../../../src/components/MessageRow/MessageRow.tsx"],"sourcesContent":["import { MessageRowContent } from \"./MessageRowContent.js\";\nimport { MessageRowRoot } from \"./MessageRowRoot.js\";\n\nexport type { MessageSender } from \"./MessageRow.context.js\";\nexport type { MessageRowContentProps } from \"./MessageRowContent.js\";\nexport type { MessageRowProps } from \"./MessageRowRoot.js\";\n\nexport const MessageRow = Object.assign(MessageRowRoot, {\n\tContent: MessageRowContent,\n});\n"],"mappings":";;;AAOA,IAAa,IAAa,OAAO,OAAO,GAAgB,EACvD,SAAS,EACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRowContent.js","names":[],"sources":["../../../src/components/MessageRow/MessageRowContent.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useMessageRowSender } from \"./MessageRow.context.js\";\nimport { messageRowContent } from \"./MessageRow.css.js\";\n\nexport interface MessageRowContentProps {\n\t/** Lets the column span the row, for content that supplies no width itself. */\n\tfill?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * The column holding everything that belongs to the message: the message body\n * and any sibling the transcript places with it, such as an attribution, a\n * reaction bar or a retry control.\n *\n * Carries the message typography, so a row whose content is a card, a widget or\n * media reads at message size without rendering a prose body.\n *\n * Stamps `data-slot=\"content\"` for a transcript that needs to find it.\n */\nexport function MessageRowContent({\n\tfill = false,\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageRowContentProps) {\n\tconst sender = useMessageRowSender();\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-slot=\"content\"\n\t\t\tclassName={cx(messageRowContent({ sender, fill }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAkB,EACjC,UAAO,IACP,cACA,aACA,GAAG,KACuB;CAC1B,IAAM,IAAS,
|
|
1
|
+
{"version":3,"file":"MessageRowContent.js","names":[],"sources":["../../../src/components/MessageRow/MessageRowContent.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { useMessageRowSender } from \"./MessageRow.context.js\";\nimport { messageRowContent } from \"./MessageRow.css.js\";\n\nexport interface MessageRowContentProps {\n\t/** Lets the column span the row, for content that supplies no width itself. */\n\tfill?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * The column holding everything that belongs to the message: the message body\n * and any sibling the transcript places with it, such as an attribution, a\n * reaction bar or a retry control.\n *\n * Carries the message typography, so a row whose content is a card, a widget or\n * media reads at message size without rendering a prose body.\n *\n * Stamps `data-slot=\"content\"` for a transcript that needs to find it.\n */\nexport function MessageRowContent({\n\tfill = false,\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageRowContentProps) {\n\tconst sender = useMessageRowSender();\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-slot=\"content\"\n\t\t\tclassName={cx(messageRowContent({ sender, fill }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAkB,EACjC,UAAO,IACP,cACA,aACA,GAAG,KACuB;CAC1B,IAAM,IAAS,EAAoB;CAEnC,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,aAAU;EACV,WAAW,EAAG,EAAkB;GAAE;GAAQ;EAAK,CAAC,GAAG,CAAS;EAE3D;CACG,CAAA;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRowRoot.js","names":[],"sources":["../../../src/components/MessageRow/MessageRowRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport type { MessageSender } from \"./MessageRow.context.js\";\nimport { MessageRowContext } from \"./MessageRow.context.js\";\nimport { messageRowRoot } from \"./MessageRow.css.js\";\n\nexport interface MessageRowProps {\n\tsender: MessageSender;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The avatar gutter, then `MessageRow.Content`. */\n\tchildren?: ReactNode;\n}\n\n/**\n * One row of a transcript: an optional leading avatar gutter, then the column\n * of everything that belongs to the message.\n *\n * The avatar is a child rather than a prop because a companion control inside\n * the column aligns with the message text only while the avatar stays the\n * column's sibling.\n *\n * The row imposes no message body. A row that wants prose renders\n * `AgentMessage` or `UserMessage` inside the column; a card, a widget or media\n * renders neither.\n */\nexport function MessageRowRoot({\n\tsender,\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageRowProps) {\n\treturn (\n\t\t<MessageRowContext.Provider value={sender}>\n\t\t\t<div {...rest} className={cx(messageRowRoot({ sender }), className)}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</MessageRowContext.Provider>\n\t);\n}\n"],"mappings":";;;;;AA2BA,SAAgB,EAAe,EAC9B,WACA,cACA,aACA,GAAG,KACgB;
|
|
1
|
+
{"version":3,"file":"MessageRowRoot.js","names":[],"sources":["../../../src/components/MessageRow/MessageRowRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport type { MessageSender } from \"./MessageRow.context.js\";\nimport { MessageRowContext } from \"./MessageRow.context.js\";\nimport { messageRowRoot } from \"./MessageRow.css.js\";\n\nexport interface MessageRowProps {\n\tsender: MessageSender;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The avatar gutter, then `MessageRow.Content`. */\n\tchildren?: ReactNode;\n}\n\n/**\n * One row of a transcript: an optional leading avatar gutter, then the column\n * of everything that belongs to the message.\n *\n * The avatar is a child rather than a prop because a companion control inside\n * the column aligns with the message text only while the avatar stays the\n * column's sibling.\n *\n * The row imposes no message body. A row that wants prose renders\n * `AgentMessage` or `UserMessage` inside the column; a card, a widget or media\n * renders neither.\n */\nexport function MessageRowRoot({\n\tsender,\n\tclassName,\n\tchildren,\n\t...rest\n}: MessageRowProps) {\n\treturn (\n\t\t<MessageRowContext.Provider value={sender}>\n\t\t\t<div {...rest} className={cx(messageRowRoot({ sender }), className)}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</MessageRowContext.Provider>\n\t);\n}\n"],"mappings":";;;;;AA2BA,SAAgB,EAAe,EAC9B,WACA,cACA,aACA,GAAG,KACgB;CACnB,OACC,kBAAC,EAAkB,UAAnB;EAA4B,OAAO;YAClC,kBAAC,OAAD;GAAK,GAAI;GAAM,WAAW,EAAG,EAAe,EAAE,UAAO,CAAC,GAAG,CAAS;GAChE;EACG,CAAA;CACsB,CAAA;AAE9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/PictureMessage/PictureMessage.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PictureMessage.js","names":[],"sources":["../../../src/components/PictureMessage/PictureMessage.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { useState } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MediaSlash } from \"../Icon/icons/MediaSlash.js\";\nimport type { ImageLoadingStatus } from \"../Image/index.js\";\nimport { Image } from \"../Image/index.js\";\nimport { pictureImage, pictureRoot } from \"./PictureMessage.css.js\";\n\nexport type PictureAspectRatio = \"16:9\" | \"4:3\" | \"1:1\" | \"3:4\" | \"9:16\";\n\nexport interface PictureMessageProps {\n\t/**\n\t * Image URL. When absent — or when `unavailable` is set — the muted\n\t * \"image unavailable\" placeholder renders instead of the picture.\n\t */\n\tsrc?: string;\n\t/** Alt text describing the image. Never leave empty for content images. */\n\talt: string;\n\t/**\n\t * Frame proportions — bind to the source image's proportions so it isn't\n\t * cropped. The frame is context-sized (fills its container's width); the\n\t * consumer constrains it to the message column. When omitted, the frame\n\t * takes its height from the image's natural proportions.\n\t */\n\taspectRatio?: PictureAspectRatio;\n\t/** Force the \"image unavailable\" placeholder (media-slash on a muted box). */\n\tunavailable?: boolean;\n\t/**\n\t * Reports the underlying image's load state so a consumer can reserve space\n\t * while loading or react to a load failure. The frame already swaps to the\n\t * unavailable placeholder on error on its own.\n\t */\n\tonLoadingStatusChange?: (status: ImageLoadingStatus) => void;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nconst UNAVAILABLE_LABEL = \"Image unavailable\";\n\n/**\n * A rounded image attachment rendered inside a chat message. Clips the picture to\n * the media-preview corner radius and holds it at a fixed aspect ratio; when the\n * image is missing or unavailable — or when the image fails to load — it shows a\n * muted media-slash placeholder.\n */\nexport function PictureMessage({\n\tsrc,\n\talt,\n\taspectRatio,\n\tunavailable = false,\n\tonLoadingStatusChange,\n\tclassName,\n\t...rest\n}: PictureMessageProps) {\n\tconst [status, setStatus] = useState<ImageLoadingStatus>(\"loading\");\n\tconst forced = unavailable || !src;\n\tconst showPlaceholder = forced || status === \"error\";\n\t// Lovelace can be consumed from older/untyped JavaScript even though the TS\n\t// contract requires a string, so the failure path must remain total.\n\tconst description = typeof alt === \"string\" ? alt.trim() : \"\";\n\tconst unavailableLabel = description\n\t\t? `${UNAVAILABLE_LABEL}: ${description}`\n\t\t: UNAVAILABLE_LABEL;\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-aspect-ratio={aspectRatio}\n\t\t\tdata-unavailable={showPlaceholder || undefined}\n\t\t\tdata-status={forced ? undefined : status}\n\t\t\tclassName={cx(\n\t\t\t\tpictureRoot({ aspectRatio, unavailable: showPlaceholder }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{forced ? (\n\t\t\t\t<MediaSlash label={unavailableLabel} />\n\t\t\t) : (\n\t\t\t\t<Image\n\t\t\t\t\tclassName={pictureImage}\n\t\t\t\t\tsrc={src}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tfallback={<MediaSlash label={unavailableLabel} />}\n\t\t\t\t\tonLoadingStatusChange={(next) => {\n\t\t\t\t\t\tsetStatus(next);\n\t\t\t\t\t\tonLoadingStatusChange?.(next);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAsCA,IAAM,IAAoB;AAQ1B,SAAgB,EAAe,EAC9B,QACA,QACA,gBACA,iBAAc,IACd,0BACA,cACA,GAAG,KACoB;CACvB,IAAM,CAAC,GAAQ,KAAa,EAA6B,
|
|
1
|
+
{"version":3,"file":"PictureMessage.js","names":[],"sources":["../../../src/components/PictureMessage/PictureMessage.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { useState } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MediaSlash } from \"../Icon/icons/MediaSlash.js\";\nimport type { ImageLoadingStatus } from \"../Image/index.js\";\nimport { Image } from \"../Image/index.js\";\nimport { pictureImage, pictureRoot } from \"./PictureMessage.css.js\";\n\nexport type PictureAspectRatio = \"16:9\" | \"4:3\" | \"1:1\" | \"3:4\" | \"9:16\";\n\nexport interface PictureMessageProps {\n\t/**\n\t * Image URL. When absent — or when `unavailable` is set — the muted\n\t * \"image unavailable\" placeholder renders instead of the picture.\n\t */\n\tsrc?: string;\n\t/** Alt text describing the image. Never leave empty for content images. */\n\talt: string;\n\t/**\n\t * Frame proportions — bind to the source image's proportions so it isn't\n\t * cropped. The frame is context-sized (fills its container's width); the\n\t * consumer constrains it to the message column. When omitted, the frame\n\t * takes its height from the image's natural proportions.\n\t */\n\taspectRatio?: PictureAspectRatio;\n\t/** Force the \"image unavailable\" placeholder (media-slash on a muted box). */\n\tunavailable?: boolean;\n\t/**\n\t * Reports the underlying image's load state so a consumer can reserve space\n\t * while loading or react to a load failure. The frame already swaps to the\n\t * unavailable placeholder on error on its own.\n\t */\n\tonLoadingStatusChange?: (status: ImageLoadingStatus) => void;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nconst UNAVAILABLE_LABEL = \"Image unavailable\";\n\n/**\n * A rounded image attachment rendered inside a chat message. Clips the picture to\n * the media-preview corner radius and holds it at a fixed aspect ratio; when the\n * image is missing or unavailable — or when the image fails to load — it shows a\n * muted media-slash placeholder.\n */\nexport function PictureMessage({\n\tsrc,\n\talt,\n\taspectRatio,\n\tunavailable = false,\n\tonLoadingStatusChange,\n\tclassName,\n\t...rest\n}: PictureMessageProps) {\n\tconst [status, setStatus] = useState<ImageLoadingStatus>(\"loading\");\n\tconst forced = unavailable || !src;\n\tconst showPlaceholder = forced || status === \"error\";\n\t// Lovelace can be consumed from older/untyped JavaScript even though the TS\n\t// contract requires a string, so the failure path must remain total.\n\tconst description = typeof alt === \"string\" ? alt.trim() : \"\";\n\tconst unavailableLabel = description\n\t\t? `${UNAVAILABLE_LABEL}: ${description}`\n\t\t: UNAVAILABLE_LABEL;\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-aspect-ratio={aspectRatio}\n\t\t\tdata-unavailable={showPlaceholder || undefined}\n\t\t\tdata-status={forced ? undefined : status}\n\t\t\tclassName={cx(\n\t\t\t\tpictureRoot({ aspectRatio, unavailable: showPlaceholder }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{forced ? (\n\t\t\t\t<MediaSlash label={unavailableLabel} />\n\t\t\t) : (\n\t\t\t\t<Image\n\t\t\t\t\tclassName={pictureImage}\n\t\t\t\t\tsrc={src}\n\t\t\t\t\talt={alt}\n\t\t\t\t\tfallback={<MediaSlash label={unavailableLabel} />}\n\t\t\t\t\tonLoadingStatusChange={(next) => {\n\t\t\t\t\t\tsetStatus(next);\n\t\t\t\t\t\tonLoadingStatusChange?.(next);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAsCA,IAAM,IAAoB;AAQ1B,SAAgB,EAAe,EAC9B,QACA,QACA,gBACA,iBAAc,IACd,0BACA,cACA,GAAG,KACoB;CACvB,IAAM,CAAC,GAAQ,KAAa,EAA6B,SAAS,GAC5D,IAAS,KAAe,CAAC,GACzB,IAAkB,KAAU,MAAW,SAGvC,IAAc,OAAO,KAAQ,WAAW,EAAI,KAAK,IAAI,IACrD,IAAmB,IACtB,GAAG,EAAkB,IAAI,MACzB;CACH,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,qBAAmB;EACnB,oBAAkB,KAAmB,KAAA;EACrC,eAAa,IAAS,KAAA,IAAY;EAClC,WAAW,EACV,EAAY;GAAE;GAAa,aAAa;EAAgB,CAAC,GACzD,CACD;YAEC,IACA,kBAAC,GAAD,EAAY,OAAO,EAAmB,CAAA,IAEtC,kBAAC,GAAD;GACC,WAAW;GACN;GACA;GACL,UAAU,kBAAC,GAAD,EAAY,OAAO,EAAmB,CAAA;GAChD,wBAAwB,MAAS;IAEhC,AADA,EAAU,CAAI,GACd,IAAwB,CAAI;GAC7B;EACA,CAAA;CAEE,CAAA;AAEP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/PillButton/PillButton.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillButton.js","names":[],"sources":["../../../src/components/PillButton/PillButton.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { pillButtonRoot } from \"./PillButton.css.js\";\n\nexport type PillButtonSize = \"md\" | \"sm\";\n\nexport interface PillButtonProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\tsize?: PillButtonSize;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * Fully-rounded action button with a single accent-on-surface style. Unlike\n * `Button`, it has no intent/destructive variants. Accepts text and/or an\n * `<Icon>` child; an icon-only pill needs an `aria-label`.\n */\nexport function PillButton({\n\tsize = \"md\",\n\tclassName,\n\tchildren,\n\t...rest\n}: PillButtonProps) {\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"pill-button\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cx(pillButtonRoot({ size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;AAsBA,SAAgB,EAAW,EAC1B,UAAO,MACP,cACA,aACA,GAAG,KACgB;
|
|
1
|
+
{"version":3,"file":"PillButton.js","names":[],"sources":["../../../src/components/PillButton/PillButton.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { pillButtonRoot } from \"./PillButton.css.js\";\n\nexport type PillButtonSize = \"md\" | \"sm\";\n\nexport interface PillButtonProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\tsize?: PillButtonSize;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\tchildren?: ReactNode;\n}\n\n/**\n * Fully-rounded action button with a single accent-on-surface style. Unlike\n * `Button`, it has no intent/destructive variants. Accepts text and/or an\n * `<Icon>` child; an icon-only pill needs an `aria-label`.\n */\nexport function PillButton({\n\tsize = \"md\",\n\tclassName,\n\tchildren,\n\t...rest\n}: PillButtonProps) {\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"pill-button\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cx(pillButtonRoot({ size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;AAsBA,SAAgB,EAAW,EAC1B,UAAO,MACP,cACA,aACA,GAAG,KACgB;CACnB,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,aAAU;EACV,aAAW;EACX,WAAW,EAAG,EAAe,EAAE,QAAK,CAAC,GAAG,CAAS;EAEhD;CACU,CAAA;AAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProactiveMessage.js","names":[],"sources":["../../../src/components/ProactiveMessage/ProactiveMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { proactiveMessageRoot } from \"./ProactiveMessage.css.js\";\n\nexport interface ProactiveMessageProps {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** Message content — body text, or an inline link/element. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A proactive (campaign) message bubble: a rounded, elevated surface holding a\n * short outbound message. The content is whatever you pass as `children` — body\n * text (the Figma \"Message\" variant) or an inline link (the \"Link\" variant).\n * Direction is detected from the content so the bubble mirrors under RTL.\n *\n * Picture and grouped campaigns are compositions, not props: render\n * `PictureMessage` for a picture, and stack these bubbles beside a dismiss\n * `IconButton` for a group.\n */\nexport function ProactiveMessage({\n\tclassName,\n\tchildren,\n\t...rest\n}: ProactiveMessageProps) {\n\treturn (\n\t\t<div {...rest} dir=\"auto\" className={cx(proactiveMessageRoot, className)}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAsBA,SAAgB,EAAiB,EAChC,cACA,aACA,GAAG,KACsB;
|
|
1
|
+
{"version":3,"file":"ProactiveMessage.js","names":[],"sources":["../../../src/components/ProactiveMessage/ProactiveMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { proactiveMessageRoot } from \"./ProactiveMessage.css.js\";\n\nexport interface ProactiveMessageProps {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** Message content — body text, or an inline link/element. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A proactive (campaign) message bubble: a rounded, elevated surface holding a\n * short outbound message. The content is whatever you pass as `children` — body\n * text (the Figma \"Message\" variant) or an inline link (the \"Link\" variant).\n * Direction is detected from the content so the bubble mirrors under RTL.\n *\n * Picture and grouped campaigns are compositions, not props: render\n * `PictureMessage` for a picture, and stack these bubbles beside a dismiss\n * `IconButton` for a group.\n */\nexport function ProactiveMessage({\n\tclassName,\n\tchildren,\n\t...rest\n}: ProactiveMessageProps) {\n\treturn (\n\t\t<div {...rest} dir=\"auto\" className={cx(proactiveMessageRoot, className)}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAsBA,SAAgB,EAAiB,EAChC,cACA,aACA,GAAG,KACsB;CACzB,OACC,kBAAC,OAAD;EAAK,GAAI;EAAM,KAAI;EAAO,WAAW,EAAG,GAAsB,CAAS;EACrE;CACG,CAAA;AAEP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/Radio/Radio.css.ts
|
|
4
4
|
var t = "mufew31", n = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { RadioProps as AriaRadioProps } from \"react-aria-components\";\nimport { Radio as AriaRadio } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioLabel, radioRoot } from \"./Radio.css.js\";\nimport { RadioIndicator } from \"./RadioIndicator.js\";\n\nexport type RadioVariant = \"inline\" | \"row\";\n\nexport interface RadioProps\n\textends Omit<AriaRadioProps, \"className\" | \"style\" | \"children\"> {\n\t/**\n\t * `inline` (default) sits the control beside its label at content width. `row`\n\t * renders the 40px selectable row Figma draws for a menu item — use it for a\n\t * `RadioGroup` presented as a list of options.\n\t */\n\tvariant?: RadioVariant;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n\t/** Label shown beside the control. Omit only when the option is labelled externally. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. The visual circle is drawn here; the\n * checked/hover/focus/disabled states are driven by the data-attributes React\n * Aria sets on the label, so this component takes no state props of its own.\n */\nexport function Radio({\n\tvariant = \"inline\",\n\tclassName,\n\tchildren,\n\t...rest\n}: RadioProps) {\n\treturn (\n\t\t<AriaRadio {...rest} className={cx(radioRoot({ variant }), className)}>\n\t\t\t<RadioIndicator hasStateLayer={variant === \"inline\"} />\n\t\t\t{children != null && typeof children !== \"boolean\" && (\n\t\t\t\t<span data-slot=\"label\" className={radioLabel}>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</AriaRadio>\n\t);\n}\n"],"mappings":";;;;;;AA6BA,SAAgB,EAAM,EACrB,aAAU,UACV,cACA,aACA,GAAG,KACW;
|
|
1
|
+
{"version":3,"file":"Radio.js","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { RadioProps as AriaRadioProps } from \"react-aria-components\";\nimport { Radio as AriaRadio } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioLabel, radioRoot } from \"./Radio.css.js\";\nimport { RadioIndicator } from \"./RadioIndicator.js\";\n\nexport type RadioVariant = \"inline\" | \"row\";\n\nexport interface RadioProps\n\textends Omit<AriaRadioProps, \"className\" | \"style\" | \"children\"> {\n\t/**\n\t * `inline` (default) sits the control beside its label at content width. `row`\n\t * renders the 40px selectable row Figma draws for a menu item — use it for a\n\t * `RadioGroup` presented as a list of options.\n\t */\n\tvariant?: RadioVariant;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n\t/** Label shown beside the control. Omit only when the option is labelled externally. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. The visual circle is drawn here; the\n * checked/hover/focus/disabled states are driven by the data-attributes React\n * Aria sets on the label, so this component takes no state props of its own.\n */\nexport function Radio({\n\tvariant = \"inline\",\n\tclassName,\n\tchildren,\n\t...rest\n}: RadioProps) {\n\treturn (\n\t\t<AriaRadio {...rest} className={cx(radioRoot({ variant }), className)}>\n\t\t\t<RadioIndicator hasStateLayer={variant === \"inline\"} />\n\t\t\t{children != null && typeof children !== \"boolean\" && (\n\t\t\t\t<span data-slot=\"label\" className={radioLabel}>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</AriaRadio>\n\t);\n}\n"],"mappings":";;;;;;AA6BA,SAAgB,EAAM,EACrB,aAAU,UACV,cACA,aACA,GAAG,KACW;CACd,OACC,kBAAC,GAAD;EAAW,GAAI;EAAM,WAAW,EAAG,EAAU,EAAE,WAAQ,CAAC,GAAG,CAAS;YAApE,CACC,kBAAC,GAAD,EAAgB,eAAe,MAAY,SAAW,CAAA,GACrD,KAAY,QAAQ,OAAO,KAAa,aACxC,kBAAC,QAAD;GAAM,aAAU;GAAQ,WAAA;GACtB;EACI,CAAA,CAEG;;AAEb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","names":[],"sources":["../../../src/components/Radio/RadioGroup.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { RadioGroupProps as AriaRadioGroupProps } from \"react-aria-components\";\nimport { RadioGroup as AriaRadioGroup } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioGroup } from \"./Radio.css.js\";\n\nexport interface RadioGroupProps\n\textends Omit<AriaRadioGroupProps, \"className\" | \"style\" | \"children\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The `Radio` options for this group. */\n\tchildren: ReactNode;\n}\n\n/**\n * Single-select group: exactly one child `Radio` may be selected at a time.\n * Owns the selected value (`value`/`onChange`), keyboard navigation, and the\n * group's accessible name — supply `aria-label` or `aria-labelledby`.\n */\nexport function RadioGroup({ className, children, ...rest }: RadioGroupProps) {\n\treturn (\n\t\t<AriaRadioGroup {...rest} className={cx(radioGroup, className)}>\n\t\t\t{children}\n\t\t</AriaRadioGroup>\n\t);\n}\n"],"mappings":";;;;;AAoBA,SAAgB,EAAW,EAAE,cAAW,aAAU,GAAG,KAAyB;
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","names":[],"sources":["../../../src/components/Radio/RadioGroup.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { RadioGroupProps as AriaRadioGroupProps } from \"react-aria-components\";\nimport { RadioGroup as AriaRadioGroup } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioGroup } from \"./Radio.css.js\";\n\nexport interface RadioGroupProps\n\textends Omit<AriaRadioGroupProps, \"className\" | \"style\" | \"children\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The `Radio` options for this group. */\n\tchildren: ReactNode;\n}\n\n/**\n * Single-select group: exactly one child `Radio` may be selected at a time.\n * Owns the selected value (`value`/`onChange`), keyboard navigation, and the\n * group's accessible name — supply `aria-label` or `aria-labelledby`.\n */\nexport function RadioGroup({ className, children, ...rest }: RadioGroupProps) {\n\treturn (\n\t\t<AriaRadioGroup {...rest} className={cx(radioGroup, className)}>\n\t\t\t{children}\n\t\t</AriaRadioGroup>\n\t);\n}\n"],"mappings":";;;;;AAoBA,SAAgB,EAAW,EAAE,cAAW,aAAU,GAAG,KAAyB;CAC7E,OACC,kBAAC,GAAD;EAAgB,GAAI;EAAM,WAAW,EAAG,GAAY,CAAS;EAC3D;CACc,CAAA;AAElB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioIndicator.js","names":[],"sources":["../../../src/components/Radio/RadioIndicator.tsx"],"sourcesContent":["import type { Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioControl, radioDot } from \"./Radio.css.js\";\n\nexport interface RadioIndicatorProps {\n\t/**\n\t * Draw the control's own hover border, focus ring and state layer. True for a\n\t * standalone `Radio`, where the circle is the only affordance; false inside a\n\t * row, which draws those on the row itself — leaving it true there would paint\n\t * both.\n\t */\n\thasStateLayer?: boolean;\n\tclassName?: string;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The 24px radio circle and its center dot, with no control of its own.\n *\n * Selection and disabled state are read from whichever ancestor element carries\n * React Aria's `data-selected` / `data-disabled` — the RAC `Radio` label, or a\n * `MenuItem` row — so the same markup and the same styles serve both hosts and\n * cannot drift apart. It must stay a **direct** child of that element; the state\n * rules use a child selector so an unrelated selected ancestor can't reach in.\n */\nexport function RadioIndicator({\n\thasStateLayer = true,\n\tclassName,\n\tref,\n}: RadioIndicatorProps) {\n\treturn (\n\t\t<span\n\t\t\tref={ref}\n\t\t\tdata-slot=\"indicator\"\n\t\t\tdata-state-layer={hasStateLayer || undefined}\n\t\t\tclassName={cx(radioControl, className)}\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<span className={radioDot} />\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;AAyBA,SAAgB,EAAe,EAC9B,mBAAgB,IAChB,cACA,UACuB;
|
|
1
|
+
{"version":3,"file":"RadioIndicator.js","names":[],"sources":["../../../src/components/Radio/RadioIndicator.tsx"],"sourcesContent":["import type { Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { radioControl, radioDot } from \"./Radio.css.js\";\n\nexport interface RadioIndicatorProps {\n\t/**\n\t * Draw the control's own hover border, focus ring and state layer. True for a\n\t * standalone `Radio`, where the circle is the only affordance; false inside a\n\t * row, which draws those on the row itself — leaving it true there would paint\n\t * both.\n\t */\n\thasStateLayer?: boolean;\n\tclassName?: string;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The 24px radio circle and its center dot, with no control of its own.\n *\n * Selection and disabled state are read from whichever ancestor element carries\n * React Aria's `data-selected` / `data-disabled` — the RAC `Radio` label, or a\n * `MenuItem` row — so the same markup and the same styles serve both hosts and\n * cannot drift apart. It must stay a **direct** child of that element; the state\n * rules use a child selector so an unrelated selected ancestor can't reach in.\n */\nexport function RadioIndicator({\n\thasStateLayer = true,\n\tclassName,\n\tref,\n}: RadioIndicatorProps) {\n\treturn (\n\t\t<span\n\t\t\tref={ref}\n\t\t\tdata-slot=\"indicator\"\n\t\t\tdata-state-layer={hasStateLayer || undefined}\n\t\t\tclassName={cx(radioControl, className)}\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<span className={radioDot} />\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;AAyBA,SAAgB,EAAe,EAC9B,mBAAgB,IAChB,cACA,UACuB;CACvB,OACC,kBAAC,QAAD;EACM;EACL,aAAU;EACV,oBAAkB,KAAiB,KAAA;EACnC,WAAW,EAAG,GAAc,CAAS;EACrC,eAAY;YAEZ,kBAAC,QAAD,EAAM,WAAW,EAAW,CAAA;CACvB,CAAA;AAER"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/ScrollMarker/ScrollMarker.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollMarker.js","names":[],"sources":["../../../src/components/ScrollMarker/ScrollMarker.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ArrowDown } from \"../Icon/icons/ArrowDown.js\";\nimport { scrollMarkerRoot } from \"./ScrollMarker.css.js\";\n\nexport type ScrollMarkerColor = \"default\" | \"brand\";\n\nexport interface ScrollMarkerProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\t/** `default` sits on the inverse surface; `brand` on the accent surface. */\n\tcolor?: ScrollMarkerColor;\n\t/**\n\t * Unread messages waiting below the fold. `0`/undefined renders the compact\n\t * icon-only marker; `≥1` renders the labelled \"unread\" pill.\n\t */\n\tunreadCount?: number;\n\t/**\n\t * Overrides the with-text label (e.g. a localized \"2 unread\"). When omitted, the\n\t * label defaults to `\"{unreadCount} unread\"`. Rendered only when `unreadCount ≥ 1`.\n\t */\n\tchildren?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n}\n\nconst DEFAULT_ARIA_LABEL = \"Scroll to latest message\";\n\n/**\n * The chat \"jump to latest\" marker, shown when the user has scrolled up. Renders a\n * compact down-arrow button, or — once messages arrive below the fold — an unread-count\n * pill. Selection of icon-only vs with-text is derived from `unreadCount`.\n *\n * The with-text pill takes its accessible name from the visible label. An `aria-label`\n * passed for it must start with that label, so voice-control users can say what they see.\n */\nexport function ScrollMarker({\n\tcolor = \"default\",\n\tunreadCount,\n\tchildren,\n\tclassName,\n\t\"aria-label\": ariaLabel,\n\t...rest\n}: ScrollMarkerProps) {\n\tconst withText = (unreadCount ?? 0) >= 1;\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\taria-label={ariaLabel ?? (withText ? undefined : DEFAULT_ARIA_LABEL)}\n\t\t\tdata-color={color}\n\t\t\tdata-type={withText ? \"with-text\" : \"icon-only\"}\n\t\t\tclassName={cx(\n\t\t\t\tscrollMarkerRoot({ color, type: withText ? \"withText\" : \"iconOnly\" }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<span>{withText ? (children ?? `${unreadCount} unread`) : \"\"}</span>\n\t\t\t<ArrowDown />\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;;AA4BA,IAAM,IAAqB;AAU3B,SAAgB,EAAa,EAC5B,WAAQ,WACR,gBACA,aACA,cACA,cAAc,GACd,GAAG,KACkB;CACrB,IAAM,KAAY,KAAe,MAAM;
|
|
1
|
+
{"version":3,"file":"ScrollMarker.js","names":[],"sources":["../../../src/components/ScrollMarker/ScrollMarker.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport type { ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ArrowDown } from \"../Icon/icons/ArrowDown.js\";\nimport { scrollMarkerRoot } from \"./ScrollMarker.css.js\";\n\nexport type ScrollMarkerColor = \"default\" | \"brand\";\n\nexport interface ScrollMarkerProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\t/** `default` sits on the inverse surface; `brand` on the accent surface. */\n\tcolor?: ScrollMarkerColor;\n\t/**\n\t * Unread messages waiting below the fold. `0`/undefined renders the compact\n\t * icon-only marker; `≥1` renders the labelled \"unread\" pill.\n\t */\n\tunreadCount?: number;\n\t/**\n\t * Overrides the with-text label (e.g. a localized \"2 unread\"). When omitted, the\n\t * label defaults to `\"{unreadCount} unread\"`. Rendered only when `unreadCount ≥ 1`.\n\t */\n\tchildren?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n}\n\nconst DEFAULT_ARIA_LABEL = \"Scroll to latest message\";\n\n/**\n * The chat \"jump to latest\" marker, shown when the user has scrolled up. Renders a\n * compact down-arrow button, or — once messages arrive below the fold — an unread-count\n * pill. Selection of icon-only vs with-text is derived from `unreadCount`.\n *\n * The with-text pill takes its accessible name from the visible label. An `aria-label`\n * passed for it must start with that label, so voice-control users can say what they see.\n */\nexport function ScrollMarker({\n\tcolor = \"default\",\n\tunreadCount,\n\tchildren,\n\tclassName,\n\t\"aria-label\": ariaLabel,\n\t...rest\n}: ScrollMarkerProps) {\n\tconst withText = (unreadCount ?? 0) >= 1;\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\taria-label={ariaLabel ?? (withText ? undefined : DEFAULT_ARIA_LABEL)}\n\t\t\tdata-color={color}\n\t\t\tdata-type={withText ? \"with-text\" : \"icon-only\"}\n\t\t\tclassName={cx(\n\t\t\t\tscrollMarkerRoot({ color, type: withText ? \"withText\" : \"iconOnly\" }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<span>{withText ? (children ?? `${unreadCount} unread`) : \"\"}</span>\n\t\t\t<ArrowDown />\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;;AA4BA,IAAM,IAAqB;AAU3B,SAAgB,EAAa,EAC5B,WAAQ,WACR,gBACA,aACA,cACA,cAAc,GACd,GAAG,KACkB;CACrB,IAAM,KAAY,KAAe,MAAM;CACvC,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,cAAY,MAAc,IAAW,KAAA,IAAY;EACjD,cAAY;EACZ,aAAW,IAAW,cAAc;EACpC,WAAW,EACV,EAAiB;GAAE;GAAO,MAAM,IAAW,aAAa;EAAW,CAAC,GACpE,CACD;YARD,CAUC,kBAAC,QAAD,EAAA,UAAO,IAAY,KAAY,GAAG,EAAY,WAAY,GAAS,CAAA,GACnE,kBAAC,GAAD,CAAY,CAAA,CACD;;AAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sheet.js","names":[],"sources":["../../../src/components/Sheet/Sheet.tsx"],"sourcesContent":["import { SheetActions } from \"./SheetActions.js\";\nimport { SheetBackButton } from \"./SheetBackButton.js\";\nimport { SheetBody } from \"./SheetBody.js\";\nimport { SheetCloseButton } from \"./SheetCloseButton.js\";\nimport { SheetHeader } from \"./SheetHeader.js\";\nimport { SheetRoot } from \"./SheetRoot.js\";\nimport { SheetTitle } from \"./SheetTitle.js\";\n\nexport type { SheetProps } from \"./SheetRoot.js\";\n\n/**\n * Bare bottom-sheet content surface. Renders inline as-is; wrap it in\n * `SheetOverlay` for the modal, scrim-backed, slide-up presentation.\n */\nexport const Sheet = Object.assign(SheetRoot, {\n\tHeader: SheetHeader,\n\tTitle: SheetTitle,\n\tBackButton: SheetBackButton,\n\tCloseButton: SheetCloseButton,\n\tBody: SheetBody,\n\tActions: SheetActions,\n});\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAQ,OAAO,OAAO,GAAW;CAC7C,QAAQ;CACR,OAAO;CACP,YAAY;CACZ,aAAa;CACb,MAAM;CACN,SAAS;
|
|
1
|
+
{"version":3,"file":"Sheet.js","names":[],"sources":["../../../src/components/Sheet/Sheet.tsx"],"sourcesContent":["import { SheetActions } from \"./SheetActions.js\";\nimport { SheetBackButton } from \"./SheetBackButton.js\";\nimport { SheetBody } from \"./SheetBody.js\";\nimport { SheetCloseButton } from \"./SheetCloseButton.js\";\nimport { SheetHeader } from \"./SheetHeader.js\";\nimport { SheetRoot } from \"./SheetRoot.js\";\nimport { SheetTitle } from \"./SheetTitle.js\";\n\nexport type { SheetProps } from \"./SheetRoot.js\";\n\n/**\n * Bare bottom-sheet content surface. Renders inline as-is; wrap it in\n * `SheetOverlay` for the modal, scrim-backed, slide-up presentation.\n */\nexport const Sheet = Object.assign(SheetRoot, {\n\tHeader: SheetHeader,\n\tTitle: SheetTitle,\n\tBackButton: SheetBackButton,\n\tCloseButton: SheetCloseButton,\n\tBody: SheetBody,\n\tActions: SheetActions,\n});\n"],"mappings":";;;;;;;;AAcA,IAAa,IAAQ,OAAO,OAAO,GAAW;CAC7C,QAAQ;CACR,OAAO;CACP,YAAY;CACZ,aAAa;CACb,MAAM;CACN,SAAS;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetActions.js","names":[],"sources":["../../../src/components/Sheet/SheetActions.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetActions } from \"./Sheet.css.js\";\n\nexport interface SheetActionsProps {\n\t/** The action buttons, stacked full-width in reading/focus order (primary first). */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function SheetActions({ children, className }: SheetActionsProps) {\n\treturn <div className={cx(sheetActions, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAUA,SAAgB,EAAa,EAAE,aAAU,gBAAgC;
|
|
1
|
+
{"version":3,"file":"SheetActions.js","names":[],"sources":["../../../src/components/Sheet/SheetActions.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetActions } from \"./Sheet.css.js\";\n\nexport interface SheetActionsProps {\n\t/** The action buttons, stacked full-width in reading/focus order (primary first). */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function SheetActions({ children, className }: SheetActionsProps) {\n\treturn <div className={cx(sheetActions, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAUA,SAAgB,EAAa,EAAE,aAAU,gBAAgC;CACxE,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,CAAS;EAAI;CAAc,CAAA;AACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetBackButton.js","names":[],"sources":["../../../src/components/Sheet/SheetBackButton.tsx"],"sourcesContent":["import { cx } from \"../../utils/cx.js\";\nimport { ArrowLeft } from \"../Icon/icons/index.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport { sheetBackIcon, sheetHeaderStart } from \"./Sheet.css.js\";\n\nexport interface SheetBackButtonProps {\n\tonPress: () => void;\n\t/** Accessible name for the icon-only control. Defaults to \"Back\". */\n\tlabel?: string;\n\tclassName?: string;\n}\n\n/**\n * Start-pinned back affordance for `Sheet.Header`. Presets the tertiary `sm`\n * `ArrowLeft` `IconButton` so every sheet's back control is identical; the chevron\n * mirrors under RTL. Absolute-pinned via its wrapper so the title stays centered.\n */\nexport function SheetBackButton({\n\tonPress,\n\tlabel = \"Back\",\n\tclassName,\n}: SheetBackButtonProps) {\n\treturn (\n\t\t<span className={cx(sheetHeaderStart, className)}>\n\t\t\t<IconButton label={label} variant=\"tertiary\" size=\"sm\" onPress={onPress}>\n\t\t\t\t<ArrowLeft className={sheetBackIcon} />\n\t\t\t</IconButton>\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;;AAiBA,SAAgB,EAAgB,EAC/B,YACA,WAAQ,QACR,gBACwB;
|
|
1
|
+
{"version":3,"file":"SheetBackButton.js","names":[],"sources":["../../../src/components/Sheet/SheetBackButton.tsx"],"sourcesContent":["import { cx } from \"../../utils/cx.js\";\nimport { ArrowLeft } from \"../Icon/icons/index.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport { sheetBackIcon, sheetHeaderStart } from \"./Sheet.css.js\";\n\nexport interface SheetBackButtonProps {\n\tonPress: () => void;\n\t/** Accessible name for the icon-only control. Defaults to \"Back\". */\n\tlabel?: string;\n\tclassName?: string;\n}\n\n/**\n * Start-pinned back affordance for `Sheet.Header`. Presets the tertiary `sm`\n * `ArrowLeft` `IconButton` so every sheet's back control is identical; the chevron\n * mirrors under RTL. Absolute-pinned via its wrapper so the title stays centered.\n */\nexport function SheetBackButton({\n\tonPress,\n\tlabel = \"Back\",\n\tclassName,\n}: SheetBackButtonProps) {\n\treturn (\n\t\t<span className={cx(sheetHeaderStart, className)}>\n\t\t\t<IconButton label={label} variant=\"tertiary\" size=\"sm\" onPress={onPress}>\n\t\t\t\t<ArrowLeft className={sheetBackIcon} />\n\t\t\t</IconButton>\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;;AAiBA,SAAgB,EAAgB,EAC/B,YACA,WAAQ,QACR,gBACwB;CACxB,OACC,kBAAC,QAAD;EAAM,WAAW,EAAG,GAAkB,CAAS;YAC9C,kBAAC,GAAD;GAAmB;GAAO,SAAQ;GAAW,MAAK;GAAc;aAC/D,kBAAC,GAAD,EAAW,WAAW,EAAgB,CAAA;EAC3B,CAAA;CACP,CAAA;AAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetBody.js","names":[],"sources":["../../../src/components/Sheet/SheetBody.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetBody } from \"./Sheet.css.js\";\n\nexport interface SheetBodyProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n\t/** Target for the overlay's `aria-describedby`. */\n\tid?: string;\n\t/**\n\t * Opts the body into a named keyboard-scroll region. Use this only when the\n\t * body can overflow without containing an enabled, focusable descendant.\n\t */\n\tkeyboardScrollLabel?: string;\n}\n\nexport function SheetBody({\n\tchildren,\n\tclassName,\n\tid,\n\tkeyboardScrollLabel,\n}: SheetBodyProps) {\n\tconst keyboardScrollProps =\n\t\tkeyboardScrollLabel === undefined\n\t\t\t? {}\n\t\t\t: {\n\t\t\t\t\t\"aria-label\": keyboardScrollLabel,\n\t\t\t\t\trole: \"region\" as const,\n\t\t\t\t\ttabIndex: 0,\n\t\t\t\t};\n\n\treturn (\n\t\t<div id={id} className={cx(sheetBody, className)} {...keyboardScrollProps}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAgBA,SAAgB,EAAU,EACzB,aACA,cACA,OACA,0BACkB;CAClB,IAAM,IACL,MAAwB,KAAA,IACrB,
|
|
1
|
+
{"version":3,"file":"SheetBody.js","names":[],"sources":["../../../src/components/Sheet/SheetBody.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetBody } from \"./Sheet.css.js\";\n\nexport interface SheetBodyProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n\t/** Target for the overlay's `aria-describedby`. */\n\tid?: string;\n\t/**\n\t * Opts the body into a named keyboard-scroll region. Use this only when the\n\t * body can overflow without containing an enabled, focusable descendant.\n\t */\n\tkeyboardScrollLabel?: string;\n}\n\nexport function SheetBody({\n\tchildren,\n\tclassName,\n\tid,\n\tkeyboardScrollLabel,\n}: SheetBodyProps) {\n\tconst keyboardScrollProps =\n\t\tkeyboardScrollLabel === undefined\n\t\t\t? {}\n\t\t\t: {\n\t\t\t\t\t\"aria-label\": keyboardScrollLabel,\n\t\t\t\t\trole: \"region\" as const,\n\t\t\t\t\ttabIndex: 0,\n\t\t\t\t};\n\n\treturn (\n\t\t<div id={id} className={cx(sheetBody, className)} {...keyboardScrollProps}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAgBA,SAAgB,EAAU,EACzB,aACA,cACA,OACA,0BACkB;CAClB,IAAM,IACL,MAAwB,KAAA,IACrB,CAAC,IACD;EACA,cAAc;EACd,MAAM;EACN,UAAU;CACX;CAEH,OACC,kBAAC,OAAD;EAAS;EAAI,WAAW,EAAG,GAAW,CAAS;EAAG,GAAI;EACpD;CACG,CAAA;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetCloseButton.js","names":[],"sources":["../../../src/components/Sheet/SheetCloseButton.tsx"],"sourcesContent":["import { cx } from \"../../utils/cx.js\";\nimport { Xmark } from \"../Icon/icons/index.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport { sheetHeaderEnd } from \"./Sheet.css.js\";\n\nexport interface SheetCloseButtonProps {\n\tonPress: () => void;\n\t/** Accessible name for the icon-only control. Defaults to \"Close\". */\n\tlabel?: string;\n\tclassName?: string;\n}\n\n/**\n * End-pinned close affordance for `Sheet.Header`. Presets the tertiary `sm`\n * `Xmark` `IconButton` so every sheet's close control is identical. Absolute-pinned\n * via its wrapper so the title stays centered.\n */\nexport function SheetCloseButton({\n\tonPress,\n\tlabel = \"Close\",\n\tclassName,\n}: SheetCloseButtonProps) {\n\treturn (\n\t\t<span className={cx(sheetHeaderEnd, className)}>\n\t\t\t<IconButton label={label} variant=\"tertiary\" size=\"sm\" onPress={onPress}>\n\t\t\t\t<Xmark />\n\t\t\t</IconButton>\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;;AAiBA,SAAgB,EAAiB,EAChC,YACA,WAAQ,SACR,gBACyB;
|
|
1
|
+
{"version":3,"file":"SheetCloseButton.js","names":[],"sources":["../../../src/components/Sheet/SheetCloseButton.tsx"],"sourcesContent":["import { cx } from \"../../utils/cx.js\";\nimport { Xmark } from \"../Icon/icons/index.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport { sheetHeaderEnd } from \"./Sheet.css.js\";\n\nexport interface SheetCloseButtonProps {\n\tonPress: () => void;\n\t/** Accessible name for the icon-only control. Defaults to \"Close\". */\n\tlabel?: string;\n\tclassName?: string;\n}\n\n/**\n * End-pinned close affordance for `Sheet.Header`. Presets the tertiary `sm`\n * `Xmark` `IconButton` so every sheet's close control is identical. Absolute-pinned\n * via its wrapper so the title stays centered.\n */\nexport function SheetCloseButton({\n\tonPress,\n\tlabel = \"Close\",\n\tclassName,\n}: SheetCloseButtonProps) {\n\treturn (\n\t\t<span className={cx(sheetHeaderEnd, className)}>\n\t\t\t<IconButton label={label} variant=\"tertiary\" size=\"sm\" onPress={onPress}>\n\t\t\t\t<Xmark />\n\t\t\t</IconButton>\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;;AAiBA,SAAgB,EAAiB,EAChC,YACA,WAAQ,SACR,gBACyB;CACzB,OACC,kBAAC,QAAD;EAAM,WAAW,EAAG,GAAgB,CAAS;YAC5C,kBAAC,GAAD;GAAmB;GAAO,SAAQ;GAAW,MAAK;GAAc;aAC/D,kBAAC,GAAD,CAAQ,CAAA;EACG,CAAA;CACP,CAAA;AAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetHeader.js","names":[],"sources":["../../../src/components/Sheet/SheetHeader.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetHeader } from \"./Sheet.css.js\";\n\nexport interface SheetHeaderProps {\n\t/**\n\t * Compose `Sheet.BackButton`, `Sheet.Title`, and `Sheet.CloseButton`. The\n\t * buttons pin to the edges and the title stays centered, so their visual\n\t * position is fixed. Focus and reading order still follow the DOM, so author\n\t * the children in the order `BackButton` → `Title` → `CloseButton`.\n\t */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function SheetHeader({ children, className }: SheetHeaderProps) {\n\treturn <div className={cx(sheetHeader, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAeA,SAAgB,EAAY,EAAE,aAAU,gBAA+B;
|
|
1
|
+
{"version":3,"file":"SheetHeader.js","names":[],"sources":["../../../src/components/Sheet/SheetHeader.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetHeader } from \"./Sheet.css.js\";\n\nexport interface SheetHeaderProps {\n\t/**\n\t * Compose `Sheet.BackButton`, `Sheet.Title`, and `Sheet.CloseButton`. The\n\t * buttons pin to the edges and the title stays centered, so their visual\n\t * position is fixed. Focus and reading order still follow the DOM, so author\n\t * the children in the order `BackButton` → `Title` → `CloseButton`.\n\t */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function SheetHeader({ children, className }: SheetHeaderProps) {\n\treturn <div className={cx(sheetHeader, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAeA,SAAgB,EAAY,EAAE,aAAU,gBAA+B;CACtE,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAa,CAAS;EAAI;CAAc,CAAA;AACnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetRoot.js","names":[],"sources":["../../../src/components/Sheet/SheetRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetRoot } from \"./Sheet.css.js\";\n\nexport interface SheetProps {\n\t/** Composed parts, canonical order: `Sheet.Header` → `Sheet.Body` → `Sheet.Actions`. */\n\tchildren?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nexport function SheetRoot({ children, className, style, ref }: SheetProps) {\n\treturn (\n\t\t<div ref={ref} className={cx(sheetRoot, className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAU,EAAE,aAAU,cAAW,UAAO,UAAmB;
|
|
1
|
+
{"version":3,"file":"SheetRoot.js","names":[],"sources":["../../../src/components/Sheet/SheetRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetRoot } from \"./Sheet.css.js\";\n\nexport interface SheetProps {\n\t/** Composed parts, canonical order: `Sheet.Header` → `Sheet.Body` → `Sheet.Actions`. */\n\tchildren?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nexport function SheetRoot({ children, className, style, ref }: SheetProps) {\n\treturn (\n\t\t<div ref={ref} className={cx(sheetRoot, className)} style={style}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAU,EAAE,aAAU,cAAW,UAAO,UAAmB;CAC1E,OACC,kBAAC,OAAD;EAAU;EAAK,WAAW,EAAG,GAAW,CAAS;EAAU;EACzD;CACG,CAAA;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetTitle.js","names":[],"sources":["../../../src/components/Sheet/SheetTitle.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Heading } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetHeaderTitle } from \"./Sheet.css.js\";\n\nexport interface SheetTitleProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\n/**\n * Centered header title. Renders `slot=\"title\"` so the enclosing `SheetOverlay`\n * derives the dialog's accessible name. Omit it for a title-less sheet and give\n * `SheetOverlay` an `aria-label` instead.\n */\nexport function SheetTitle({ children, className }: SheetTitleProps) {\n\treturn (\n\t\t<Heading slot=\"title\" className={cx(sheetHeaderTitle, className)}>\n\t\t\t{children}\n\t\t</Heading>\n\t);\n}\n"],"mappings":";;;;;AAeA,SAAgB,EAAW,EAAE,aAAU,gBAA8B;
|
|
1
|
+
{"version":3,"file":"SheetTitle.js","names":[],"sources":["../../../src/components/Sheet/SheetTitle.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Heading } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetHeaderTitle } from \"./Sheet.css.js\";\n\nexport interface SheetTitleProps {\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\n/**\n * Centered header title. Renders `slot=\"title\"` so the enclosing `SheetOverlay`\n * derives the dialog's accessible name. Omit it for a title-less sheet and give\n * `SheetOverlay` an `aria-label` instead.\n */\nexport function SheetTitle({ children, className }: SheetTitleProps) {\n\treturn (\n\t\t<Heading slot=\"title\" className={cx(sheetHeaderTitle, className)}>\n\t\t\t{children}\n\t\t</Heading>\n\t);\n}\n"],"mappings":";;;;;AAeA,SAAgB,EAAW,EAAE,aAAU,gBAA8B;CACpE,OACC,kBAAC,GAAD;EAAS,MAAK;EAAQ,WAAW,EAAG,GAAkB,CAAS;EAC7D;CACO,CAAA;AAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetOverlay.js","names":[],"sources":["../../../src/components/SheetOverlay/SheetOverlay.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport {\n\tDialog as AriaDialog,\n\tModal,\n\tModalOverlay,\n} from \"react-aria-components\";\nimport { OverlayRegistration } from \"../../hooks/overlayRegistry.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetDialog, sheetModal, sheetScrim } from \"./SheetOverlay.css.js\";\n\nexport interface SheetOverlayProps {\n\t/** Whether the sheet is open. */\n\tisOpen: boolean;\n\t/** Called with the next open state on dismiss (scrim tap, Escape) or programmatic close. */\n\tonOpenChange: (isOpen: boolean) => void;\n\t/** Dismiss on scrim tap. Escape always cancels (RAC default). Defaults to `true`. */\n\tisDismissable?: boolean;\n\t/** Accessible name fallback when the child has no `Sheet.Title`. */\n\t\"aria-label\"?: string;\n\t/** Id of the element describing the sheet, typically a `Sheet.Body`. */\n\t\"aria-describedby\"?: string;\n\t/** Maximum sheet height. Defaults to 80% of the available height. */\n\tmaxHeight?: CSSProperties[\"maxHeight\"];\n\tclassName?: string;\n\tchildren: ReactNode;\n}\n\n/**\n * Modal bottom-sheet presentation: dark scrim, focus-trap, dismiss-on-tap/Escape,\n * bottom-anchored, rounded-top corners, slide-up. Wraps arbitrary children\n * (typically a `Sheet`). For a full-window surface use `FullscreenOverlay`; for a\n * centered dialog `Dialog`; for a non-dimming bottom bubble `BubbleOverlay`.\n *\n * Give the dialog an accessible name via either a `Sheet.Title` or the\n * `aria-label` prop — with neither (e.g. an actions-only Confirm sheet) RAC\n * emits a missing-name warning.\n */\nexport function SheetOverlay({\n\tisOpen,\n\tonOpenChange,\n\tisDismissable = true,\n\t\"aria-label\": ariaLabel,\n\t\"aria-describedby\": ariaDescribedBy,\n\tclassName,\n\tmaxHeight,\n\tchildren,\n}: SheetOverlayProps) {\n\t// Stated, not inherited: this renders through a portal, so its direction must\n\t// not depend on where the portal lands. See the portalled-surface scenario\n\t// under the RTL requirement in openspec/specs/accessibility/spec.md.\n\tconst { direction } = useLocale();\n\n\treturn (\n\t\t<ModalOverlay\n\t\t\tisOpen={isOpen}\n\t\t\tonOpenChange={onOpenChange}\n\t\t\tisDismissable={isDismissable}\n\t\t\tclassName={sheetScrim}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayRegistration />\n\t\t\t<Modal className={sheetModal} style={{ maxHeight }}>\n\t\t\t\t<AriaDialog\n\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\taria-describedby={ariaDescribedBy}\n\t\t\t\t\tclassName={cx(sheetDialog, className)}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</AriaDialog>\n\t\t\t</Modal>\n\t\t</ModalOverlay>\n\t);\n}\n"],"mappings":";;;;;;;AAsCA,SAAgB,EAAa,EAC5B,WACA,iBACA,mBAAgB,IAChB,cAAc,GACd,oBAAoB,GACpB,cACA,cACA,eACqB;CAIrB,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"SheetOverlay.js","names":[],"sources":["../../../src/components/SheetOverlay/SheetOverlay.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport {\n\tDialog as AriaDialog,\n\tModal,\n\tModalOverlay,\n} from \"react-aria-components\";\nimport { OverlayRegistration } from \"../../hooks/overlayRegistry.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { sheetDialog, sheetModal, sheetScrim } from \"./SheetOverlay.css.js\";\n\nexport interface SheetOverlayProps {\n\t/** Whether the sheet is open. */\n\tisOpen: boolean;\n\t/** Called with the next open state on dismiss (scrim tap, Escape) or programmatic close. */\n\tonOpenChange: (isOpen: boolean) => void;\n\t/** Dismiss on scrim tap. Escape always cancels (RAC default). Defaults to `true`. */\n\tisDismissable?: boolean;\n\t/** Accessible name fallback when the child has no `Sheet.Title`. */\n\t\"aria-label\"?: string;\n\t/** Id of the element describing the sheet, typically a `Sheet.Body`. */\n\t\"aria-describedby\"?: string;\n\t/** Maximum sheet height. Defaults to 80% of the available height. */\n\tmaxHeight?: CSSProperties[\"maxHeight\"];\n\tclassName?: string;\n\tchildren: ReactNode;\n}\n\n/**\n * Modal bottom-sheet presentation: dark scrim, focus-trap, dismiss-on-tap/Escape,\n * bottom-anchored, rounded-top corners, slide-up. Wraps arbitrary children\n * (typically a `Sheet`). For a full-window surface use `FullscreenOverlay`; for a\n * centered dialog `Dialog`; for a non-dimming bottom bubble `BubbleOverlay`.\n *\n * Give the dialog an accessible name via either a `Sheet.Title` or the\n * `aria-label` prop — with neither (e.g. an actions-only Confirm sheet) RAC\n * emits a missing-name warning.\n */\nexport function SheetOverlay({\n\tisOpen,\n\tonOpenChange,\n\tisDismissable = true,\n\t\"aria-label\": ariaLabel,\n\t\"aria-describedby\": ariaDescribedBy,\n\tclassName,\n\tmaxHeight,\n\tchildren,\n}: SheetOverlayProps) {\n\t// Stated, not inherited: this renders through a portal, so its direction must\n\t// not depend on where the portal lands. See the portalled-surface scenario\n\t// under the RTL requirement in openspec/specs/accessibility/spec.md.\n\tconst { direction } = useLocale();\n\n\treturn (\n\t\t<ModalOverlay\n\t\t\tisOpen={isOpen}\n\t\t\tonOpenChange={onOpenChange}\n\t\t\tisDismissable={isDismissable}\n\t\t\tclassName={sheetScrim}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayRegistration />\n\t\t\t<Modal className={sheetModal} style={{ maxHeight }}>\n\t\t\t\t<AriaDialog\n\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\taria-describedby={ariaDescribedBy}\n\t\t\t\t\tclassName={cx(sheetDialog, className)}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</AriaDialog>\n\t\t\t</Modal>\n\t\t</ModalOverlay>\n\t);\n}\n"],"mappings":";;;;;;;AAsCA,SAAgB,EAAa,EAC5B,WACA,iBACA,mBAAgB,IAChB,cAAc,GACd,oBAAoB,GACpB,cACA,cACA,eACqB;CAIrB,IAAM,EAAE,iBAAc,EAAU;CAEhC,OACC,kBAAC,GAAD;EACS;EACM;EACC;EACf,WAAW;EACX,KAAK;YALN,CAOC,kBAAC,GAAD,CAAsB,CAAA,GACtB,kBAAC,GAAD;GAAO,WAAW;GAAY,OAAO,EAAE,aAAU;aAChD,kBAAC,GAAD;IACC,cAAY;IACZ,oBAAkB;IAClB,WAAW,EAAG,GAAa,CAAS;IAEnC;GACU,CAAA;EACN,CAAA,CACM;;AAEhB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/Spinner/Spinner.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","names":[],"sources":["../../../src/components/Spinner/Spinner.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { usePrefersReducedMotion } from \"../../hooks/index.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { spinner } from \"./Spinner.css.js\";\n\nexport type SpinnerSize = \"sm\" | \"lg\";\nexport type SpinnerBackground = \"default\" | \"accent\";\n\nexport interface SpinnerProps {\n\t/** `sm` (16px) for inline / in-button, `lg` (32px) for region / page. */\n\tsize?: SpinnerSize;\n\t/**\n\t * The background the spinner sits on. `default` adapts to light/dark mode;\n\t * `accent` is for filled-accent (brand-colored) surfaces where the arc must\n\t * stay white in both themes, since the accent color does not invert.\n\t */\n\tbackground?: SpinnerBackground;\n\t/** Accessible name announced by assistive tech. */\n\tlabel?: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nexport function Spinner({\n\tsize = \"sm\",\n\tbackground = \"default\",\n\tlabel = \"Loading\",\n\tclassName,\n\t...rest\n}: SpinnerProps) {\n\tconst reducedMotion = usePrefersReducedMotion();\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\trole=\"status\"\n\t\t\taria-label={label}\n\t\t\tdata-size={size}\n\t\t\tdata-background={background}\n\t\t\tdata-reduced-motion={reducedMotion || undefined}\n\t\t\tclassName={cx(spinner({ size, background }), className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAQ,EACvB,UAAO,MACP,gBAAa,WACb,WAAQ,WACR,cACA,GAAG,KACa;CAChB,IAAM,IAAgB,
|
|
1
|
+
{"version":3,"file":"Spinner.js","names":[],"sources":["../../../src/components/Spinner/Spinner.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport { usePrefersReducedMotion } from \"../../hooks/index.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { spinner } from \"./Spinner.css.js\";\n\nexport type SpinnerSize = \"sm\" | \"lg\";\nexport type SpinnerBackground = \"default\" | \"accent\";\n\nexport interface SpinnerProps {\n\t/** `sm` (16px) for inline / in-button, `lg` (32px) for region / page. */\n\tsize?: SpinnerSize;\n\t/**\n\t * The background the spinner sits on. `default` adapts to light/dark mode;\n\t * `accent` is for filled-accent (brand-colored) surfaces where the arc must\n\t * stay white in both themes, since the accent color does not invert.\n\t */\n\tbackground?: SpinnerBackground;\n\t/** Accessible name announced by assistive tech. */\n\tlabel?: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nexport function Spinner({\n\tsize = \"sm\",\n\tbackground = \"default\",\n\tlabel = \"Loading\",\n\tclassName,\n\t...rest\n}: SpinnerProps) {\n\tconst reducedMotion = usePrefersReducedMotion();\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\trole=\"status\"\n\t\t\taria-label={label}\n\t\t\tdata-size={size}\n\t\t\tdata-background={background}\n\t\t\tdata-reduced-motion={reducedMotion || undefined}\n\t\t\tclassName={cx(spinner({ size, background }), className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAQ,EACvB,UAAO,MACP,gBAAa,WACb,WAAQ,WACR,cACA,GAAG,KACa;CAChB,IAAM,IAAgB,EAAwB;CAC9C,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,MAAK;EACL,cAAY;EACZ,aAAW;EACX,mBAAiB;EACjB,uBAAqB,KAAiB,KAAA;EACtC,WAAW,EAAG,EAAQ;GAAE;GAAM;EAAW,CAAC,GAAG,CAAS;CACtD,CAAA;AAEH"}
|