@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.
Files changed (192) hide show
  1. package/dist/components/AgentMessage/AgentMessage.js.map +1 -1
  2. package/dist/components/AttachmentChip/AttachmentChip.css.js +1 -1
  3. package/dist/components/AttachmentChip/AttachmentChip.js.map +1 -1
  4. package/dist/components/Avatar/Avatar.css.js +1 -1
  5. package/dist/components/Avatar/Avatar.js.map +1 -1
  6. package/dist/components/Avatar/AvatarPlaceholder.js.map +1 -1
  7. package/dist/components/Banner/Banner.css.js +1 -1
  8. package/dist/components/Banner/Banner.js.map +1 -1
  9. package/dist/components/Banner/BannerContainer.js.map +1 -1
  10. package/dist/components/Banner/BannerContainerSlide.js.map +1 -1
  11. package/dist/components/BubbleOverlay/BubbleOverlay.js.map +1 -1
  12. package/dist/components/Button/Button.css.js +1 -1
  13. package/dist/components/Button/Button.js.map +1 -1
  14. package/dist/components/Card/Card.css.d.ts +8 -0
  15. package/dist/components/Card/Card.css.js +7 -0
  16. package/dist/components/Card/Card.css.js.map +1 -0
  17. package/dist/components/Card/Card.d.ts +14 -0
  18. package/dist/components/Card/Card.js +18 -0
  19. package/dist/components/Card/Card.js.map +1 -0
  20. package/dist/components/Card/CardActions.d.ts +7 -0
  21. package/dist/components/Card/CardActions.js +14 -0
  22. package/dist/components/Card/CardActions.js.map +1 -0
  23. package/dist/components/Card/CardBody.d.ts +7 -0
  24. package/dist/components/Card/CardBody.js +14 -0
  25. package/dist/components/Card/CardBody.js.map +1 -0
  26. package/dist/components/Card/CardDescription.d.ts +9 -0
  27. package/dist/components/Card/CardDescription.js +15 -0
  28. package/dist/components/Card/CardDescription.js.map +1 -0
  29. package/dist/components/Card/CardMedia.d.ts +17 -0
  30. package/dist/components/Card/CardMedia.js +23 -0
  31. package/dist/components/Card/CardMedia.js.map +1 -0
  32. package/dist/components/Card/CardRoot.d.ts +22 -0
  33. package/dist/components/Card/CardRoot.js +25 -0
  34. package/dist/components/Card/CardRoot.js.map +1 -0
  35. package/dist/components/Card/CardTitle.d.ts +9 -0
  36. package/dist/components/Card/CardTitle.js +15 -0
  37. package/dist/components/Card/CardTitle.js.map +1 -0
  38. package/dist/components/Card/index.d.ts +6 -0
  39. package/dist/components/Carousel/Carousel.css.d.ts +6 -0
  40. package/dist/components/Carousel/Carousel.css.js +7 -0
  41. package/dist/components/Carousel/Carousel.css.js.map +1 -0
  42. package/dist/components/Carousel/Carousel.d.ts +19 -0
  43. package/dist/components/Carousel/Carousel.js +141 -0
  44. package/dist/components/Carousel/Carousel.js.map +1 -0
  45. package/dist/components/Carousel/CarouselItem.d.ts +8 -0
  46. package/dist/components/Carousel/CarouselItem.js +14 -0
  47. package/dist/components/Carousel/CarouselItem.js.map +1 -0
  48. package/dist/components/Carousel/index.d.ts +2 -0
  49. package/dist/components/Checkbox/Checkbox.css.js +1 -1
  50. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  51. package/dist/components/Checkbox/CheckboxGroup.js.map +1 -1
  52. package/dist/components/Checkbox/CheckboxIndicator.js.map +1 -1
  53. package/dist/components/Chip/Chip.css.js +1 -1
  54. package/dist/components/Chip/Chip.js.map +1 -1
  55. package/dist/components/Dialog/Dialog.css.js +1 -1
  56. package/dist/components/Dialog/Dialog.js.map +1 -1
  57. package/dist/components/Dialog/DialogActions.js.map +1 -1
  58. package/dist/components/Dialog/DialogBody.js.map +1 -1
  59. package/dist/components/Dialog/DialogContent.js.map +1 -1
  60. package/dist/components/Dialog/DialogIcon.js.map +1 -1
  61. package/dist/components/Dialog/DialogRoot.js.map +1 -1
  62. package/dist/components/Dialog/DialogTitle.js.map +1 -1
  63. package/dist/components/DialogOverlay/DialogOverlay.js.map +1 -1
  64. package/dist/components/Divider/Divider.css.js +1 -1
  65. package/dist/components/Divider/Divider.js.map +1 -1
  66. package/dist/components/DropZone/DropZone.js.map +1 -1
  67. package/dist/components/FullscreenOverlay/FullscreenOverlay.js.map +1 -1
  68. package/dist/components/Header/Header.js.map +1 -1
  69. package/dist/components/Header/HeaderRoot.js.map +1 -1
  70. package/dist/components/Header/HeaderTitle.js.map +1 -1
  71. package/dist/components/Icon/Icon.js.map +1 -1
  72. package/dist/components/Icon/icons/AdaLogo.js.map +1 -1
  73. package/dist/components/Icon/icons/ArrowDown.js.map +1 -1
  74. package/dist/components/Icon/icons/ArrowLeft.js.map +1 -1
  75. package/dist/components/Icon/icons/ArrowNortheast.js.map +1 -1
  76. package/dist/components/Icon/icons/ArrowNorthwest.js.map +1 -1
  77. package/dist/components/Icon/icons/ArrowRight.js.map +1 -1
  78. package/dist/components/Icon/icons/ArrowUp.js.map +1 -1
  79. package/dist/components/Icon/icons/Bell.js.map +1 -1
  80. package/dist/components/Icon/icons/BellSlash.js.map +1 -1
  81. package/dist/components/Icon/icons/Checkmark.js.map +1 -1
  82. package/dist/components/Icon/icons/CheckmarkCircle.js.map +1 -1
  83. package/dist/components/Icon/icons/ChevronLeft.js.map +1 -1
  84. package/dist/components/Icon/icons/ChevronRight.js.map +1 -1
  85. package/dist/components/Icon/icons/CloudUpload.js.map +1 -1
  86. package/dist/components/Icon/icons/Document.js.map +1 -1
  87. package/dist/components/Icon/icons/Download.js.map +1 -1
  88. package/dist/components/Icon/icons/Ellipses.js.map +1 -1
  89. package/dist/components/Icon/icons/Email.js.map +1 -1
  90. package/dist/components/Icon/icons/ExclamationSync.js.map +1 -1
  91. package/dist/components/Icon/icons/ExclamationTriangle.js.map +1 -1
  92. package/dist/components/Icon/icons/Eye.js.map +1 -1
  93. package/dist/components/Icon/icons/EyeSlash.js.map +1 -1
  94. package/dist/components/Icon/icons/Glyph.js.map +1 -1
  95. package/dist/components/Icon/icons/Language.js.map +1 -1
  96. package/dist/components/Icon/icons/MediaSlash.js.map +1 -1
  97. package/dist/components/Icon/icons/MessagingFill.js.map +1 -1
  98. package/dist/components/Icon/icons/Minimize.js.map +1 -1
  99. package/dist/components/Icon/icons/Mute.js.map +1 -1
  100. package/dist/components/Icon/icons/Paperclip.js.map +1 -1
  101. package/dist/components/Icon/icons/PersonFill.js.map +1 -1
  102. package/dist/components/Icon/icons/PlayFill.js.map +1 -1
  103. package/dist/components/Icon/icons/Send.js.map +1 -1
  104. package/dist/components/Icon/icons/StarBadgeFill.js.map +1 -1
  105. package/dist/components/Icon/icons/ThumbsDown.js.map +1 -1
  106. package/dist/components/Icon/icons/ThumbsUp.js.map +1 -1
  107. package/dist/components/Icon/icons/Volume.js.map +1 -1
  108. package/dist/components/Icon/icons/Xmark.js.map +1 -1
  109. package/dist/components/Icon/icons/XmarkCircle.js.map +1 -1
  110. package/dist/components/IconButton/IconButton.css.js +1 -1
  111. package/dist/components/IconButton/IconButton.js.map +1 -1
  112. package/dist/components/Image/Image.js.map +1 -1
  113. package/dist/components/Input/Input.context.js.map +1 -1
  114. package/dist/components/Input/Input.css.js +1 -1
  115. package/dist/components/Input/Input.js.map +1 -1
  116. package/dist/components/Input/InputAttachments.js.map +1 -1
  117. package/dist/components/Input/InputButton.js.map +1 -1
  118. package/dist/components/Input/InputControl.js.map +1 -1
  119. package/dist/components/Input/InputField.js.map +1 -1
  120. package/dist/components/Input/InputHelperText.js.map +1 -1
  121. package/dist/components/Input/InputLabel.js.map +1 -1
  122. package/dist/components/Input/InputRoot.js.map +1 -1
  123. package/dist/components/Input/InputTextArea.js.map +1 -1
  124. package/dist/components/Link/Link.css.js +1 -1
  125. package/dist/components/Link/Link.js.map +1 -1
  126. package/dist/components/MenuItem/Menu.js.map +1 -1
  127. package/dist/components/MenuItem/MenuItem.js.map +1 -1
  128. package/dist/components/MenuItem/MenuItemCheckbox.js.map +1 -1
  129. package/dist/components/MenuItem/MenuItemLabel.js.map +1 -1
  130. package/dist/components/MenuItem/MenuItemRadio.js.map +1 -1
  131. package/dist/components/MenuItem/MenuItemRoot.js.map +1 -1
  132. package/dist/components/MenuItem/MenuItemToggle.js.map +1 -1
  133. package/dist/components/MessageError/MessageError.js.map +1 -1
  134. package/dist/components/MessageProse/MessageProse.js.map +1 -1
  135. package/dist/components/MessageRow/MessageRow.context.js.map +1 -1
  136. package/dist/components/MessageRow/MessageRow.css.js +1 -1
  137. package/dist/components/MessageRow/MessageRow.js.map +1 -1
  138. package/dist/components/MessageRow/MessageRowContent.js.map +1 -1
  139. package/dist/components/MessageRow/MessageRowRoot.js.map +1 -1
  140. package/dist/components/PictureMessage/PictureMessage.css.js +1 -1
  141. package/dist/components/PictureMessage/PictureMessage.js.map +1 -1
  142. package/dist/components/PillButton/PillButton.css.js +1 -1
  143. package/dist/components/PillButton/PillButton.js.map +1 -1
  144. package/dist/components/ProactiveMessage/ProactiveMessage.js.map +1 -1
  145. package/dist/components/Radio/Radio.css.js +1 -1
  146. package/dist/components/Radio/Radio.js.map +1 -1
  147. package/dist/components/Radio/RadioGroup.js.map +1 -1
  148. package/dist/components/Radio/RadioIndicator.js.map +1 -1
  149. package/dist/components/ScrollMarker/ScrollMarker.css.js +1 -1
  150. package/dist/components/ScrollMarker/ScrollMarker.js.map +1 -1
  151. package/dist/components/Sheet/Sheet.js.map +1 -1
  152. package/dist/components/Sheet/SheetActions.js.map +1 -1
  153. package/dist/components/Sheet/SheetBackButton.js.map +1 -1
  154. package/dist/components/Sheet/SheetBody.js.map +1 -1
  155. package/dist/components/Sheet/SheetCloseButton.js.map +1 -1
  156. package/dist/components/Sheet/SheetHeader.js.map +1 -1
  157. package/dist/components/Sheet/SheetRoot.js.map +1 -1
  158. package/dist/components/Sheet/SheetTitle.js.map +1 -1
  159. package/dist/components/SheetOverlay/SheetOverlay.js.map +1 -1
  160. package/dist/components/Spinner/Spinner.css.js +1 -1
  161. package/dist/components/Spinner/Spinner.js.map +1 -1
  162. package/dist/components/SurveyRating/SurveyRating.js.map +1 -1
  163. package/dist/components/SurveySelect/SurveySelect.js.map +1 -1
  164. package/dist/components/Text/Text.css.js +1 -1
  165. package/dist/components/Text/Text.js.map +1 -1
  166. package/dist/components/ThinkingShimmer/ThinkingShimmer.js.map +1 -1
  167. package/dist/components/Toast/Toast.css.js +1 -1
  168. package/dist/components/Toast/Toast.js.map +1 -1
  169. package/dist/components/Toast/ToastContainer.js.map +1 -1
  170. package/dist/components/Toast/index.js +4 -4
  171. package/dist/components/Toggle/Toggle.js.map +1 -1
  172. package/dist/components/Toggle/ToggleIndicator.js.map +1 -1
  173. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  174. package/dist/components/TypingIndicator/TypingIndicator.js.map +1 -1
  175. package/dist/components/UserMessage/UserMessage.js.map +1 -1
  176. package/dist/components/VideoMessage/VideoMessage.css.js +1 -1
  177. package/dist/components/VideoMessage/VideoMessage.js.map +1 -1
  178. package/dist/hooks/overlayRegistry.js.map +1 -1
  179. package/dist/hooks/usePrefersReducedMotion.js.map +1 -1
  180. package/dist/hooks/useSubmitOnEnter.js.map +1 -1
  181. package/dist/index.d.ts +2 -0
  182. package/dist/index.js +46 -43
  183. package/dist/runtime/LovelaceProvider.js +6 -6
  184. package/dist/runtime/LovelaceProvider.js.map +1 -1
  185. package/dist/runtime/branding.js.map +1 -1
  186. package/dist/style.css +1 -1
  187. package/dist/tokens/tokens.js.map +1 -1
  188. package/dist/utils/animation.js.map +1 -1
  189. package/dist/utils/cx.js.map +1 -1
  190. package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +1 -1
  191. package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +1 -1
  192. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AgentMessage.js","names":[],"sources":["../../../src/components/AgentMessage/AgentMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MessageProse } from \"../MessageProse/index.js\";\nimport { agentMessageBody } from \"./AgentMessage.css.js\";\n\nexport interface AgentMessageProps {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The agent's message content. Block content (lists, tables) is allowed. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A single chat message from the agent: the message body, with the text\n * direction detected from its own content.\n *\n * Row layout is the transcript's, not this component's — an avatar, a sender\n * attribution, a reaction bar or a retry control are siblings the transcript\n * places beside this body, so they align with the text rather than the avatar\n * gutter and stay outside the body's direction detection. `UserMessage` draws\n * the same boundary.\n *\n * Carries `data-slot=\"message-body\"` from the shared body it composes, for a\n * transcript that needs to find it. Prefer styling this component directly over\n * a descendant selector against that attribute.\n *\n * Announcing new messages is likewise the transcript's responsibility — wrap\n * the message list in a single persistent live region (e.g. `role=\"log\"`)\n * rather than giving each message its own, since a per-message live region\n * mounted already-populated is not reliably announced.\n */\nexport function AgentMessage({\n\tclassName,\n\tchildren,\n\t...rest\n}: AgentMessageProps) {\n\treturn (\n\t\t<MessageProse {...rest} className={cx(agentMessageBody, className)}>\n\t\t\t{children}\n\t\t</MessageProse>\n\t);\n}\n"],"mappings":";;;;;AAgCA,SAAgB,EAAa,EAC5B,cACA,aACA,GAAG,KACkB;AACrB,QACC,kBAAC,GAAD;EAAc,GAAI;EAAM,WAAW,EAAG,GAAkB,EAAU;EAChE;EACa,CAAA"}
1
+ {"version":3,"file":"AgentMessage.js","names":[],"sources":["../../../src/components/AgentMessage/AgentMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MessageProse } from \"../MessageProse/index.js\";\nimport { agentMessageBody } from \"./AgentMessage.css.js\";\n\nexport interface AgentMessageProps {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/** The agent's message content. Block content (lists, tables) is allowed. */\n\tchildren?: ReactNode;\n}\n\n/**\n * A single chat message from the agent: the message body, with the text\n * direction detected from its own content.\n *\n * Row layout is the transcript's, not this component's — an avatar, a sender\n * attribution, a reaction bar or a retry control are siblings the transcript\n * places beside this body, so they align with the text rather than the avatar\n * gutter and stay outside the body's direction detection. `UserMessage` draws\n * the same boundary.\n *\n * Carries `data-slot=\"message-body\"` from the shared body it composes, for a\n * transcript that needs to find it. Prefer styling this component directly over\n * a descendant selector against that attribute.\n *\n * Announcing new messages is likewise the transcript's responsibility — wrap\n * the message list in a single persistent live region (e.g. `role=\"log\"`)\n * rather than giving each message its own, since a per-message live region\n * mounted already-populated is not reliably announced.\n */\nexport function AgentMessage({\n\tclassName,\n\tchildren,\n\t...rest\n}: AgentMessageProps) {\n\treturn (\n\t\t<MessageProse {...rest} className={cx(agentMessageBody, className)}>\n\t\t\t{children}\n\t\t</MessageProse>\n\t);\n}\n"],"mappings":";;;;;AAgCA,SAAgB,EAAa,EAC5B,cACA,aACA,GAAG,KACkB;CACrB,OACC,kBAAC,GAAD;EAAc,GAAI;EAAM,WAAW,EAAG,GAAkB,CAAS;EAC/D;CACY,CAAA;AAEhB"}
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import { createRuntimeFn as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
2
+ import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
3
3
  //#region src/components/AttachmentChip/AttachmentChip.css.ts
4
4
  var t = e({
5
5
  defaultClassName: "_1chqu661 _1chqu660",
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentChip.js","names":[],"sources":["../../../src/components/AttachmentChip/AttachmentChip.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport {\n\tattachmentChipLabel,\n\tattachmentChipMedia,\n\tattachmentChipRoot,\n\tattachmentChipThumbnail,\n} from \"./AttachmentChip.css.js\";\n\nexport interface AttachmentChipProps {\n\t/** Filename, or a summary such as \"3 attachments\". */\n\tlabel: string;\n\t/**\n\t * Thumbnail source, rendered as given. Validate it first — and use\n\t * `onImageError` to retire one that fails, since a broken image is worse\n\t * than the stand-in.\n\t */\n\tthumbnailUrl?: string | null;\n\t/** Shown in the media box when there is no thumbnail: an icon, or a spinner. */\n\tmedia?: ReactNode;\n\t/**\n\t * Marks the whole chip busy, for an upload that has not settled. Surfaces as\n\t * `data-busy` on both roots and as `aria-busy` on the container root only —\n\t * React Aria filters `aria-busy` out of `Button`'s DOM props, so a pressable\n\t * chip cannot carry it and its caller should announce the state in a live\n\t * region instead.\n\t */\n\tisBusy?: boolean;\n\t/** Fires when `thumbnailUrl` fails to load. */\n\tonImageError?: () => void;\n\t/**\n\t * Makes the chip itself the control. Use it for a summary that opens\n\t * something; leave it off when `action` is the only control, so the chip does\n\t * not become a focus stop wrapping another button.\n\t */\n\tonPress?: () => void;\n\t/** Trailing control — typically a remove `IconButton`. Ignored with `onPress`. */\n\taction?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\t/**\n\t * The `div` root only. With `onPress` the root is a RAC `Button`, whose\n\t * element type disagrees, and widening this to a union would stop an\n\t * existing `RefObject<HTMLDivElement>` type-checking — so it is dropped\n\t * there rather than forwarded. A pressable chip needs no ref today: RAC's\n\t * modal restores focus to its trigger on dismiss.\n\t */\n\tref?: Ref<HTMLDivElement>;\n\tid?: string;\n\t/**\n\t * Deliberately the only passthrough besides `id` and the two ARIA props\n\t * below: the two roots are a `div` and a RAC `Button`, whose event-handler\n\t * types disagree, so a blanket `HTMLAttributes` spread cannot type-check\n\t * against both.\n\t */\n\t\"data-testid\"?: string;\n\t/**\n\t * What pressing the chip opens. `onPress` only makes it a button; without\n\t * this a chip that opens the attachments sheet reads as \"3 attachments,\n\t * button\" with no hint that a dialog follows. Ignored without `onPress`.\n\t */\n\t\"aria-haspopup\"?: \"dialog\" | \"menu\" | \"listbox\" | \"true\";\n\t/** Whether what `aria-haspopup` names is currently open. */\n\t\"aria-expanded\"?: boolean;\n}\n\n/**\n * A staged or attached file inside the composer field: a thumbnail (or a\n * stand-in), its name, and one control.\n *\n * Two shapes, and they are mutually exclusive by construction. With `action` the\n * chip is a plain container and the trailing button is the only control — one\n * file, removable. With `onPress` the chip itself is the control and the\n * trailing slot is dropped, because a summary standing for several files has\n * nowhere sensible to put a single remove. Passing both would nest a button\n * inside a button, which is invalid and unreachable by keyboard.\n */\nexport function AttachmentChip({\n\tlabel,\n\tthumbnailUrl,\n\tmedia,\n\tisBusy,\n\tonImageError,\n\tonPress,\n\taction,\n\tclassName,\n\tstyle,\n\tref,\n\tid,\n\t\"aria-haspopup\": ariaHasPopup,\n\t\"aria-expanded\": ariaExpanded,\n\t\"data-testid\": testId,\n}: AttachmentChipProps) {\n\tconst content = (\n\t\t<>\n\t\t\t{/* Decorative: the label beside it is the accessible text, so alt text\n\t\t\t of the filename would read it twice. */}\n\t\t\t<span className={attachmentChipMedia} aria-hidden=\"true\">\n\t\t\t\t{thumbnailUrl ? (\n\t\t\t\t\t<img\n\t\t\t\t\t\tclassName={attachmentChipThumbnail}\n\t\t\t\t\t\tsrc={thumbnailUrl}\n\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\tonError={onImageError}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\tmedia\n\t\t\t\t)}\n\t\t\t</span>\n\t\t\t<span className={attachmentChipLabel} dir=\"auto\" title={label}>\n\t\t\t\t{label}\n\t\t\t</span>\n\t\t\t{!onPress && action}\n\t\t</>\n\t);\n\n\tif (onPress) {\n\t\treturn (\n\t\t\t<AriaButton\n\t\t\t\tid={id}\n\t\t\t\tdata-testid={testId}\n\t\t\t\taria-label={label}\n\t\t\t\taria-haspopup={ariaHasPopup}\n\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\tdata-busy={isBusy || undefined}\n\t\t\t\tclassName={cx(attachmentChipRoot({ interactive: true }), className)}\n\t\t\t\tstyle={style}\n\t\t\t\tonPress={onPress}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t</AriaButton>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tdata-testid={testId}\n\t\t\tref={ref}\n\t\t\taria-busy={isBusy || undefined}\n\t\t\tdata-busy={isBusy || undefined}\n\t\t\tclassName={cx(attachmentChipRoot({ interactive: false }), className)}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AA8EA,SAAgB,EAAe,EAC9B,UACA,iBACA,UACA,WACA,iBACA,YACA,WACA,cACA,UACA,QACA,OACA,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,KACQ;CACvB,IAAM,IACL,kBAAA,GAAA,EAAA,UAAA;EAGC,kBAAC,QAAD;GAAM,WAAW;GAAqB,eAAY;aAChD,IACA,kBAAC,OAAD;IACC,WAAW;IACX,KAAK;IACL,KAAI;IACJ,SAAS;IACR,CAAA,GAEF;GAEK,CAAA;EACP,kBAAC,QAAD;GAAM,WAAW;GAAqB,KAAI;GAAO,OAAO;aACtD;GACK,CAAA;EACN,CAAC,KAAW;EACX,EAAA,CAAA;AAqBJ,QAlBI,IAEF,kBAAC,GAAD;EACK;EACJ,eAAa;EACb,cAAY;EACZ,iBAAe;EACf,iBAAe;EACf,aAAW,KAAU,KAAA;EACrB,WAAW,EAAG,EAAmB,EAAE,aAAa,IAAM,CAAC,EAAE,EAAU;EAC5D;EACE;YAER;EACW,CAAA,GAKd,kBAAC,OAAD;EACK;EACJ,eAAa;EACR;EACL,aAAW,KAAU,KAAA;EACrB,aAAW,KAAU,KAAA;EACrB,WAAW,EAAG,EAAmB,EAAE,aAAa,IAAO,CAAC,EAAE,EAAU;EAC7D;YAEN;EACI,CAAA"}
1
+ {"version":3,"file":"AttachmentChip.js","names":[],"sources":["../../../src/components/AttachmentChip/AttachmentChip.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport {\n\tattachmentChipLabel,\n\tattachmentChipMedia,\n\tattachmentChipRoot,\n\tattachmentChipThumbnail,\n} from \"./AttachmentChip.css.js\";\n\nexport interface AttachmentChipProps {\n\t/** Filename, or a summary such as \"3 attachments\". */\n\tlabel: string;\n\t/**\n\t * Thumbnail source, rendered as given. Validate it first — and use\n\t * `onImageError` to retire one that fails, since a broken image is worse\n\t * than the stand-in.\n\t */\n\tthumbnailUrl?: string | null;\n\t/** Shown in the media box when there is no thumbnail: an icon, or a spinner. */\n\tmedia?: ReactNode;\n\t/**\n\t * Marks the whole chip busy, for an upload that has not settled. Surfaces as\n\t * `data-busy` on both roots and as `aria-busy` on the container root only —\n\t * React Aria filters `aria-busy` out of `Button`'s DOM props, so a pressable\n\t * chip cannot carry it and its caller should announce the state in a live\n\t * region instead.\n\t */\n\tisBusy?: boolean;\n\t/** Fires when `thumbnailUrl` fails to load. */\n\tonImageError?: () => void;\n\t/**\n\t * Makes the chip itself the control. Use it for a summary that opens\n\t * something; leave it off when `action` is the only control, so the chip does\n\t * not become a focus stop wrapping another button.\n\t */\n\tonPress?: () => void;\n\t/** Trailing control — typically a remove `IconButton`. Ignored with `onPress`. */\n\taction?: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\t/**\n\t * The `div` root only. With `onPress` the root is a RAC `Button`, whose\n\t * element type disagrees, and widening this to a union would stop an\n\t * existing `RefObject<HTMLDivElement>` type-checking — so it is dropped\n\t * there rather than forwarded. A pressable chip needs no ref today: RAC's\n\t * modal restores focus to its trigger on dismiss.\n\t */\n\tref?: Ref<HTMLDivElement>;\n\tid?: string;\n\t/**\n\t * Deliberately the only passthrough besides `id` and the two ARIA props\n\t * below: the two roots are a `div` and a RAC `Button`, whose event-handler\n\t * types disagree, so a blanket `HTMLAttributes` spread cannot type-check\n\t * against both.\n\t */\n\t\"data-testid\"?: string;\n\t/**\n\t * What pressing the chip opens. `onPress` only makes it a button; without\n\t * this a chip that opens the attachments sheet reads as \"3 attachments,\n\t * button\" with no hint that a dialog follows. Ignored without `onPress`.\n\t */\n\t\"aria-haspopup\"?: \"dialog\" | \"menu\" | \"listbox\" | \"true\";\n\t/** Whether what `aria-haspopup` names is currently open. */\n\t\"aria-expanded\"?: boolean;\n}\n\n/**\n * A staged or attached file inside the composer field: a thumbnail (or a\n * stand-in), its name, and one control.\n *\n * Two shapes, and they are mutually exclusive by construction. With `action` the\n * chip is a plain container and the trailing button is the only control — one\n * file, removable. With `onPress` the chip itself is the control and the\n * trailing slot is dropped, because a summary standing for several files has\n * nowhere sensible to put a single remove. Passing both would nest a button\n * inside a button, which is invalid and unreachable by keyboard.\n */\nexport function AttachmentChip({\n\tlabel,\n\tthumbnailUrl,\n\tmedia,\n\tisBusy,\n\tonImageError,\n\tonPress,\n\taction,\n\tclassName,\n\tstyle,\n\tref,\n\tid,\n\t\"aria-haspopup\": ariaHasPopup,\n\t\"aria-expanded\": ariaExpanded,\n\t\"data-testid\": testId,\n}: AttachmentChipProps) {\n\tconst content = (\n\t\t<>\n\t\t\t{/* Decorative: the label beside it is the accessible text, so alt text\n\t\t\t of the filename would read it twice. */}\n\t\t\t<span className={attachmentChipMedia} aria-hidden=\"true\">\n\t\t\t\t{thumbnailUrl ? (\n\t\t\t\t\t<img\n\t\t\t\t\t\tclassName={attachmentChipThumbnail}\n\t\t\t\t\t\tsrc={thumbnailUrl}\n\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\tonError={onImageError}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\tmedia\n\t\t\t\t)}\n\t\t\t</span>\n\t\t\t<span className={attachmentChipLabel} dir=\"auto\" title={label}>\n\t\t\t\t{label}\n\t\t\t</span>\n\t\t\t{!onPress && action}\n\t\t</>\n\t);\n\n\tif (onPress) {\n\t\treturn (\n\t\t\t<AriaButton\n\t\t\t\tid={id}\n\t\t\t\tdata-testid={testId}\n\t\t\t\taria-label={label}\n\t\t\t\taria-haspopup={ariaHasPopup}\n\t\t\t\taria-expanded={ariaExpanded}\n\t\t\t\tdata-busy={isBusy || undefined}\n\t\t\t\tclassName={cx(attachmentChipRoot({ interactive: true }), className)}\n\t\t\t\tstyle={style}\n\t\t\t\tonPress={onPress}\n\t\t\t>\n\t\t\t\t{content}\n\t\t\t</AriaButton>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tdata-testid={testId}\n\t\t\tref={ref}\n\t\t\taria-busy={isBusy || undefined}\n\t\t\tdata-busy={isBusy || undefined}\n\t\t\tclassName={cx(attachmentChipRoot({ interactive: false }), className)}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AA8EA,SAAgB,EAAe,EAC9B,UACA,iBACA,UACA,WACA,iBACA,YACA,WACA,cACA,UACA,QACA,OACA,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,KACQ;CACvB,IAAM,IACL,kBAAA,GAAA,EAAA,UAAA;EAGC,kBAAC,QAAD;GAAM,WAAW;GAAqB,eAAY;aAChD,IACA,kBAAC,OAAD;IACC,WAAW;IACX,KAAK;IACL,KAAI;IACJ,SAAS;GACT,CAAA,IAED;EAEI,CAAA;EACN,kBAAC,QAAD;GAAM,WAAW;GAAqB,KAAI;GAAO,OAAO;aACtD;EACI,CAAA;EACL,CAAC,KAAW;CACZ,EAAA,CAAA;CAqBH,OAlBI,IAEF,kBAAC,GAAD;EACK;EACJ,eAAa;EACb,cAAY;EACZ,iBAAe;EACf,iBAAe;EACf,aAAW,KAAU,KAAA;EACrB,WAAW,EAAG,EAAmB,EAAE,aAAa,GAAK,CAAC,GAAG,CAAS;EAC3D;EACE;YAER;CACU,CAAA,IAKb,kBAAC,OAAD;EACK;EACJ,eAAa;EACR;EACL,aAAW,KAAU,KAAA;EACrB,aAAW,KAAU,KAAA;EACrB,WAAW,EAAG,EAAmB,EAAE,aAAa,GAAM,CAAC,GAAG,CAAS;EAC5D;YAEN;CACG,CAAA;AAEP"}
@@ -1,4 +1,4 @@
1
- import { createRuntimeFn as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
1
+ import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
2
2
  /* empty css */
3
3
  //#region src/components/Avatar/Avatar.css.ts
4
4
  var t = e({
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { avatarRoot } from \"./Avatar.css.js\";\nimport { AvatarPlaceholder } from \"./AvatarPlaceholder.js\";\n\nexport type AvatarSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\n\ninterface AvatarBaseProps\n\textends Omit<HTMLAttributes<HTMLSpanElement>, \"aria-hidden\"> {\n\tsize?: AvatarSize;\n\t/**\n\t * When false, render a same-footprint, `aria-hidden` spacer instead of the\n\t * bubble — e.g. to align grouped rows under the first row's avatar. The\n\t * reserved gap shares the bubble's size source, so it can never drift.\n\t */\n\tshowAvatar?: boolean;\n\t/** Initials text, an `<Icon>`, or an `<Image>`. */\n\tchildren?: ReactNode;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The accessible name is the consumer's to supply: pass `label` to name the\n * avatar, or `aria-hidden` to mark it decorative. The design system does not\n * assume a default name — an avatar's meaning (which bot, which agent) lives\n * with the consumer, not here.\n */\nexport type AvatarProps = AvatarBaseProps &\n\t(\n\t\t| { label: string; \"aria-hidden\"?: never }\n\t\t| { label?: never; \"aria-hidden\": true }\n\t);\n\n/**\n * A circular avatar bubble. The content — initials, icon, or image — is\n * composed as children; Avatar styles each by its `data-slot`. It is bubble\n * only: the name layout is composed by the consumer. With `showAvatar={false}`\n * it collapses to an invisible, same-footprint spacer.\n */\nexport function Avatar({\n\tlabel,\n\tsize = \"sm\",\n\tshowAvatar = true,\n\tclassName,\n\tchildren,\n\tref,\n\t...rest\n}: AvatarProps) {\n\tif (!showAvatar) {\n\t\treturn (\n\t\t\t<AvatarPlaceholder\n\t\t\t\t{...rest}\n\t\t\t\tref={ref}\n\t\t\t\tsize={size}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<span\n\t\t\t{...rest}\n\t\t\tref={ref}\n\t\t\tdata-slot=\"avatar\"\n\t\t\tdata-size={size}\n\t\t\trole=\"img\"\n\t\t\taria-label={label}\n\t\t\tclassName={cx(avatarRoot({ size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;AAuCA,SAAgB,EAAO,EACtB,UACA,UAAO,MACP,gBAAa,IACb,cACA,aACA,QACA,GAAG,KACY;AAYf,QAXK,IAYJ,kBAAC,QAAD;EACC,GAAI;EACC;EACL,aAAU;EACV,aAAW;EACX,MAAK;EACL,cAAY;EACZ,WAAW,EAAG,EAAW,EAAE,SAAM,CAAC,EAAE,EAAU;EAE7C;EACK,CAAA,GApBN,kBAAC,GAAD;EACC,GAAI;EACC;EACC;EACK;EACV,CAAA"}
1
+ {"version":3,"file":"Avatar.js","names":[],"sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { avatarRoot } from \"./Avatar.css.js\";\nimport { AvatarPlaceholder } from \"./AvatarPlaceholder.js\";\n\nexport type AvatarSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\n\ninterface AvatarBaseProps\n\textends Omit<HTMLAttributes<HTMLSpanElement>, \"aria-hidden\"> {\n\tsize?: AvatarSize;\n\t/**\n\t * When false, render a same-footprint, `aria-hidden` spacer instead of the\n\t * bubble — e.g. to align grouped rows under the first row's avatar. The\n\t * reserved gap shares the bubble's size source, so it can never drift.\n\t */\n\tshowAvatar?: boolean;\n\t/** Initials text, an `<Icon>`, or an `<Image>`. */\n\tchildren?: ReactNode;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The accessible name is the consumer's to supply: pass `label` to name the\n * avatar, or `aria-hidden` to mark it decorative. The design system does not\n * assume a default name — an avatar's meaning (which bot, which agent) lives\n * with the consumer, not here.\n */\nexport type AvatarProps = AvatarBaseProps &\n\t(\n\t\t| { label: string; \"aria-hidden\"?: never }\n\t\t| { label?: never; \"aria-hidden\": true }\n\t);\n\n/**\n * A circular avatar bubble. The content — initials, icon, or image — is\n * composed as children; Avatar styles each by its `data-slot`. It is bubble\n * only: the name layout is composed by the consumer. With `showAvatar={false}`\n * it collapses to an invisible, same-footprint spacer.\n */\nexport function Avatar({\n\tlabel,\n\tsize = \"sm\",\n\tshowAvatar = true,\n\tclassName,\n\tchildren,\n\tref,\n\t...rest\n}: AvatarProps) {\n\tif (!showAvatar) {\n\t\treturn (\n\t\t\t<AvatarPlaceholder\n\t\t\t\t{...rest}\n\t\t\t\tref={ref}\n\t\t\t\tsize={size}\n\t\t\t\tclassName={className}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<span\n\t\t\t{...rest}\n\t\t\tref={ref}\n\t\t\tdata-slot=\"avatar\"\n\t\t\tdata-size={size}\n\t\t\trole=\"img\"\n\t\t\taria-label={label}\n\t\t\tclassName={cx(avatarRoot({ size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;;AAuCA,SAAgB,EAAO,EACtB,UACA,UAAO,MACP,gBAAa,IACb,cACA,aACA,QACA,GAAG,KACY;CAYf,OAXK,IAYJ,kBAAC,QAAD;EACC,GAAI;EACC;EACL,aAAU;EACV,aAAW;EACX,MAAK;EACL,cAAY;EACZ,WAAW,EAAG,EAAW,EAAE,QAAK,CAAC,GAAG,CAAS;EAE5C;CACI,CAAA,IApBL,kBAAC,GAAD;EACC,GAAI;EACC;EACC;EACK;CACX,CAAA;AAiBJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarPlaceholder.js","names":[],"sources":["../../../src/components/Avatar/AvatarPlaceholder.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { avatarPlaceholder } from \"./Avatar.css.js\";\nimport type { AvatarSize } from \"./Avatar.js\";\n\nexport interface AvatarPlaceholderProps\n\textends HTMLAttributes<HTMLSpanElement> {\n\tsize?: AvatarSize;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * An empty, `aria-hidden` box with the exact footprint of an `Avatar` of the\n * same `size`. Reserves an avatar's space where one is never shown — e.g.\n * aligning a row under sibling rows' avatars — so the gap can never drift from\n * the avatar's real dimensions. For the conditional case, prefer\n * `<Avatar showAvatar={false}>`, which delegates here.\n */\nexport function AvatarPlaceholder({\n\tsize = \"sm\",\n\tclassName,\n\tref,\n\t...rest\n}: AvatarPlaceholderProps) {\n\treturn (\n\t\t<span\n\t\t\t{...rest}\n\t\t\tref={ref}\n\t\t\taria-hidden=\"true\"\n\t\t\tdata-slot=\"avatar-placeholder\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cx(avatarPlaceholder({ size }), className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;AAkBA,SAAgB,EAAkB,EACjC,UAAO,MACP,cACA,QACA,GAAG,KACuB;AAC1B,QACC,kBAAC,QAAD;EACC,GAAI;EACC;EACL,eAAY;EACZ,aAAU;EACV,aAAW;EACX,WAAW,EAAG,EAAkB,EAAE,SAAM,CAAC,EAAE,EAAU;EACpD,CAAA"}
1
+ {"version":3,"file":"AvatarPlaceholder.js","names":[],"sources":["../../../src/components/Avatar/AvatarPlaceholder.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { avatarPlaceholder } from \"./Avatar.css.js\";\nimport type { AvatarSize } from \"./Avatar.js\";\n\nexport interface AvatarPlaceholderProps\n\textends HTMLAttributes<HTMLSpanElement> {\n\tsize?: AvatarSize;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * An empty, `aria-hidden` box with the exact footprint of an `Avatar` of the\n * same `size`. Reserves an avatar's space where one is never shown — e.g.\n * aligning a row under sibling rows' avatars — so the gap can never drift from\n * the avatar's real dimensions. For the conditional case, prefer\n * `<Avatar showAvatar={false}>`, which delegates here.\n */\nexport function AvatarPlaceholder({\n\tsize = \"sm\",\n\tclassName,\n\tref,\n\t...rest\n}: AvatarPlaceholderProps) {\n\treturn (\n\t\t<span\n\t\t\t{...rest}\n\t\t\tref={ref}\n\t\t\taria-hidden=\"true\"\n\t\t\tdata-slot=\"avatar-placeholder\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cx(avatarPlaceholder({ size }), className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;AAkBA,SAAgB,EAAkB,EACjC,UAAO,MACP,cACA,QACA,GAAG,KACuB;CAC1B,OACC,kBAAC,QAAD;EACC,GAAI;EACC;EACL,eAAY;EACZ,aAAU;EACV,aAAW;EACX,WAAW,EAAG,EAAkB,EAAE,QAAK,CAAC,GAAG,CAAS;CACpD,CAAA;AAEH"}
@@ -1,4 +1,4 @@
1
- import { createRuntimeFn as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
1
+ import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
2
2
  /* empty css */
3
3
  //#region src/components/Banner/Banner.css.ts
4
4
  var t = e({
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","names":[],"sources":["../../../src/components/Banner/Banner.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport {\n\tCheckmark,\n\tExclamationTriangle,\n\tXmarkCircle,\n} from \"../Icon/icons/index.js\";\nimport { bannerMessage, bannerRoot } from \"./Banner.css.js\";\n\nexport type BannerStatus = \"success\" | \"warning\" | \"error\";\n\nconst STATUS_ICON = {\n\tsuccess: Checkmark,\n\twarning: ExclamationTriangle,\n\terror: XmarkCircle,\n} as const;\n\nexport interface BannerProps {\n\t/**\n\t * The outcome being reported. It selects the background and content color\n\t * pair, and the urgency `BannerContainer` announces it with. Bind it to the\n\t * result of the action, not the UI.\n\t */\n\tstatus?: BannerStatus;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/**\n\t * The message to display. A status icon is rendered automatically, so the\n\t * status is conveyed without color perception; for screen-reader users the\n\t * icon is decorative, so include the status in the copy when the message\n\t * alone wouldn't make the outcome clear.\n\t */\n\tchildren?: ReactNode;\n}\n\n/**\n * The full-width status-tinted strip for a lasting condition. The message stays\n * while the condition holds, rather than the floating card `Toast` paints for a\n * passing event. The two differ on purpose: a strip reads as part of the page, a\n * card as passing through.\n *\n * It carries no control, because only the condition behind it takes it down.\n *\n * Purely presentational: it owns no live region, so rendering it standalone\n * announces nothing. Put it in a `BannerContainer`, which owns the announcement\n * and the motion.\n */\nexport function Banner({\n\tstatus = \"success\",\n\tclassName,\n\tchildren,\n\t...rest\n}: BannerProps) {\n\tconst StatusIcon = STATUS_ICON[status];\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-status={status}\n\t\t\tclassName={cx(bannerRoot({ status }), className)}\n\t\t>\n\t\t\t<StatusIcon />\n\t\t\t<span className={bannerMessage}>{children}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAWA,IAAM,IAAc;CACnB,SAAS;CACT,SAAS;CACT,OAAO;CACP;AAiCD,SAAgB,EAAO,EACtB,YAAS,WACT,cACA,aACA,GAAG,KACY;CACf,IAAM,IAAa,EAAY;AAC/B,QACC,kBAAC,OAAD;EACC,GAAI;EACJ,eAAa;EACb,WAAW,EAAG,EAAW,EAAE,WAAQ,CAAC,EAAE,EAAU;YAHjD,CAKC,kBAAC,GAAD,EAAc,CAAA,EACd,kBAAC,QAAD;GAAM,WAAW;GAAgB;GAAgB,CAAA,CAC5C"}
1
+ {"version":3,"file":"Banner.js","names":[],"sources":["../../../src/components/Banner/Banner.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport {\n\tCheckmark,\n\tExclamationTriangle,\n\tXmarkCircle,\n} from \"../Icon/icons/index.js\";\nimport { bannerMessage, bannerRoot } from \"./Banner.css.js\";\n\nexport type BannerStatus = \"success\" | \"warning\" | \"error\";\n\nconst STATUS_ICON = {\n\tsuccess: Checkmark,\n\twarning: ExclamationTriangle,\n\terror: XmarkCircle,\n} as const;\n\nexport interface BannerProps {\n\t/**\n\t * The outcome being reported. It selects the background and content color\n\t * pair, and the urgency `BannerContainer` announces it with. Bind it to the\n\t * result of the action, not the UI.\n\t */\n\tstatus?: BannerStatus;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n\t/**\n\t * The message to display. A status icon is rendered automatically, so the\n\t * status is conveyed without color perception; for screen-reader users the\n\t * icon is decorative, so include the status in the copy when the message\n\t * alone wouldn't make the outcome clear.\n\t */\n\tchildren?: ReactNode;\n}\n\n/**\n * The full-width status-tinted strip for a lasting condition. The message stays\n * while the condition holds, rather than the floating card `Toast` paints for a\n * passing event. The two differ on purpose: a strip reads as part of the page, a\n * card as passing through.\n *\n * It carries no control, because only the condition behind it takes it down.\n *\n * Purely presentational: it owns no live region, so rendering it standalone\n * announces nothing. Put it in a `BannerContainer`, which owns the announcement\n * and the motion.\n */\nexport function Banner({\n\tstatus = \"success\",\n\tclassName,\n\tchildren,\n\t...rest\n}: BannerProps) {\n\tconst StatusIcon = STATUS_ICON[status];\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tdata-status={status}\n\t\t\tclassName={cx(bannerRoot({ status }), className)}\n\t\t>\n\t\t\t<StatusIcon />\n\t\t\t<span className={bannerMessage}>{children}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAWA,IAAM,IAAc;CACnB,SAAS;CACT,SAAS;CACT,OAAO;AACR;AAiCA,SAAgB,EAAO,EACtB,YAAS,WACT,cACA,aACA,GAAG,KACY;CACf,IAAM,IAAa,EAAY;CAC/B,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,eAAa;EACb,WAAW,EAAG,EAAW,EAAE,UAAO,CAAC,GAAG,CAAS;YAHhD,CAKC,kBAAC,GAAD,CAAa,CAAA,GACb,kBAAC,QAAD;GAAM,WAAW;GAAgB;EAAe,CAAA,CAC5C;;AAEP"}
@@ -1 +1 @@
1
- {"version":3,"file":"BannerContainer.js","names":[],"sources":["../../../src/components/Banner/BannerContainer.tsx"],"sourcesContent":["import type { CSSProperties, ReactElement, Ref } from \"react\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { bannerContainer } from \"./Banner.css.js\";\nimport type { BannerProps } from \"./Banner.js\";\nimport { BannerContainerSlide } from \"./BannerContainerSlide.js\";\n\nexport interface BannerContainerProps {\n\t/**\n\t * The `Banner` for the condition that currently holds, or null when none\n\t * does. Pick the one to show before handing it over: the container holds a\n\t * single banner, and on a narrow surface a second one buries the content\n\t * behind it.\n\t */\n\tchildren: ReactElement<BannerProps> | null;\n\t/**\n\t * Identifies the condition on screen. Change it whenever the reader should\n\t * hear the banner again: the same condition happening a second time with the\n\t * same wording, a different condition taking the slot, or a change of status.\n\t * A change hides the region for a frame and reveals it, which is what makes\n\t * wording the reader has already heard read out again. Leaving it alone still\n\t * replaces the text, and the live region reports that change on its own.\n\t */\n\toccurrence?: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/** Why the live region is hidden for a frame, or `none` while it is not. */\ntype Reveal = \"none\" | \"arrival\" | \"swap\";\n\n/**\n * Announces and animates one `Banner`.\n *\n * It owns the live region, so the region is mounted and empty before any banner\n * arrives. A live region that mounts with its text already in place is never\n * announced. Urgency follows the banner's status: `error` interrupts as an\n * assertive `alert`, anything else waits its turn as a polite `status`.\n *\n * Mount it for as long as the surface exists and drive it with `children`. It\n * clips its own banner's travel, so the consumer needs no `overflow` rule.\n */\nexport function BannerContainer({\n\tchildren,\n\toccurrence,\n\tclassName,\n\tstyle,\n\tref,\n}: BannerContainerProps) {\n\tconst isPresent = children !== null;\n\n\t// Derive during render rather than in an effect. An effect runs after the\n\t// commit that already dropped the banner, so its exit animation would be\n\t// missed. The previous values are state rather than refs because React can\n\t// discard a render, which would keep a ref write but drop the update beside\n\t// it.\n\tconst [held, setHeld] = useState(children);\n\tconst [isShowing, setIsShowing] = useState(isPresent);\n\tconst [reveal, setReveal] = useState<Reveal>(isPresent ? \"arrival\" : \"none\");\n\tconst [lastOccurrence, setLastOccurrence] = useState(occurrence);\n\n\tconst wasShowing = isShowing;\n\tif (isPresent && held !== children) {\n\t\tsetHeld(children);\n\t}\n\tif (isPresent && !isShowing) {\n\t\tsetIsShowing(true);\n\t}\n\tif (lastOccurrence !== occurrence) {\n\t\tsetLastOccurrence(occurrence);\n\t\t// A banner arriving into an empty region is already a mutation the reader\n\t\t// hears, so only one replacing another has to be re-announced.\n\t\tif (isPresent && wasShowing) {\n\t\t\tsetReveal(\"swap\");\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tif (reveal === \"none\") {\n\t\t\treturn;\n\t\t}\n\t\t// Two frames: the first is the one the hidden state paints in, and clearing\n\t\t// the flag before that paint leaves the fade with nothing to run from.\n\t\tlet secondFrame = 0;\n\t\tconst frame = requestAnimationFrame(() => {\n\t\t\tsecondFrame = requestAnimationFrame(() => setReveal(\"none\"));\n\t\t});\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t\tcancelAnimationFrame(secondFrame);\n\t\t};\n\t}, [reveal]);\n\n\tconst handleExited = useCallback(() => setIsShowing(false), []);\n\n\t// Read off the banner on screen rather than the last one held. A region that\n\t// keeps a role with nothing in it reports a condition that has cleared, and it\n\t// answers to a consumer looking for whichever banner does hold.\n\tconst isError = isShowing && held?.props.status === \"error\";\n\tconst politeRole = isShowing ? \"status\" : undefined;\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={cx(bannerContainer, className)}\n\t\t\tstyle={style}\n\t\t\trole={isError ? \"alert\" : politeRole}\n\t\t\taria-live={isError ? \"assertive\" : \"polite\"}\n\t\t\taria-atomic=\"true\"\n\t\t\taria-hidden={reveal === \"none\" ? undefined : \"true\"}\n\t\t>\n\t\t\t{isShowing && (\n\t\t\t\t<BannerContainerSlide\n\t\t\t\t\tisPresent={isPresent}\n\t\t\t\t\tisSwapping={reveal === \"swap\"}\n\t\t\t\t\tonExited={handleExited}\n\t\t\t\t>\n\t\t\t\t\t{held}\n\t\t\t\t</BannerContainerSlide>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;AA2CA,SAAgB,EAAgB,EAC/B,aACA,eACA,cACA,UACA,UACwB;CACxB,IAAM,IAAY,MAAa,MAOzB,CAAC,GAAM,KAAW,EAAS,EAAS,EACpC,CAAC,GAAW,KAAgB,EAAS,EAAU,EAC/C,CAAC,GAAQ,KAAa,EAAiB,IAAY,YAAY,OAAO,EACtE,CAAC,GAAgB,KAAqB,EAAS,EAAW,EAE1D,IAAa;AAgBnB,CAfI,KAAa,MAAS,KACzB,EAAQ,EAAS,EAEd,KAAa,CAAC,KACjB,EAAa,GAAK,EAEf,MAAmB,MACtB,EAAkB,EAAW,EAGzB,KAAa,KAChB,EAAU,OAAO,GAInB,QAAgB;AACf,MAAI,MAAW,OACd;EAID,IAAI,IAAc,GACZ,IAAQ,4BAA4B;AACzC,OAAc,4BAA4B,EAAU,OAAO,CAAC;IAC3D;AACF,eAAa;AAEZ,GADA,qBAAqB,EAAM,EAC3B,qBAAqB,EAAY;;IAEhC,CAAC,EAAO,CAAC;CAEZ,IAAM,IAAe,QAAkB,EAAa,GAAM,EAAE,EAAE,CAAC,EAKzD,IAAU,KAAa,GAAM,MAAM,WAAW,SAC9C,IAAa,IAAY,WAAW,KAAA;AAE1C,QACC,kBAAC,OAAD;EACM;EACL,WAAW,EAAG,GAAiB,EAAU;EAClC;EACP,MAAM,IAAU,UAAU;EAC1B,aAAW,IAAU,cAAc;EACnC,eAAY;EACZ,eAAa,MAAW,SAAS,KAAA,IAAY;YAE5C,KACA,kBAAC,GAAD;GACY;GACX,YAAY,MAAW;GACvB,UAAU;aAET;GACqB,CAAA;EAEnB,CAAA"}
1
+ {"version":3,"file":"BannerContainer.js","names":[],"sources":["../../../src/components/Banner/BannerContainer.tsx"],"sourcesContent":["import type { CSSProperties, ReactElement, Ref } from \"react\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { bannerContainer } from \"./Banner.css.js\";\nimport type { BannerProps } from \"./Banner.js\";\nimport { BannerContainerSlide } from \"./BannerContainerSlide.js\";\n\nexport interface BannerContainerProps {\n\t/**\n\t * The `Banner` for the condition that currently holds, or null when none\n\t * does. Pick the one to show before handing it over: the container holds a\n\t * single banner, and on a narrow surface a second one buries the content\n\t * behind it.\n\t */\n\tchildren: ReactElement<BannerProps> | null;\n\t/**\n\t * Identifies the condition on screen. Change it whenever the reader should\n\t * hear the banner again: the same condition happening a second time with the\n\t * same wording, a different condition taking the slot, or a change of status.\n\t * A change hides the region for a frame and reveals it, which is what makes\n\t * wording the reader has already heard read out again. Leaving it alone still\n\t * replaces the text, and the live region reports that change on its own.\n\t */\n\toccurrence?: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/** Why the live region is hidden for a frame, or `none` while it is not. */\ntype Reveal = \"none\" | \"arrival\" | \"swap\";\n\n/**\n * Announces and animates one `Banner`.\n *\n * It owns the live region, so the region is mounted and empty before any banner\n * arrives. A live region that mounts with its text already in place is never\n * announced. Urgency follows the banner's status: `error` interrupts as an\n * assertive `alert`, anything else waits its turn as a polite `status`.\n *\n * Mount it for as long as the surface exists and drive it with `children`. It\n * clips its own banner's travel, so the consumer needs no `overflow` rule.\n */\nexport function BannerContainer({\n\tchildren,\n\toccurrence,\n\tclassName,\n\tstyle,\n\tref,\n}: BannerContainerProps) {\n\tconst isPresent = children !== null;\n\n\t// Derive during render rather than in an effect. An effect runs after the\n\t// commit that already dropped the banner, so its exit animation would be\n\t// missed. The previous values are state rather than refs because React can\n\t// discard a render, which would keep a ref write but drop the update beside\n\t// it.\n\tconst [held, setHeld] = useState(children);\n\tconst [isShowing, setIsShowing] = useState(isPresent);\n\tconst [reveal, setReveal] = useState<Reveal>(isPresent ? \"arrival\" : \"none\");\n\tconst [lastOccurrence, setLastOccurrence] = useState(occurrence);\n\n\tconst wasShowing = isShowing;\n\tif (isPresent && held !== children) {\n\t\tsetHeld(children);\n\t}\n\tif (isPresent && !isShowing) {\n\t\tsetIsShowing(true);\n\t}\n\tif (lastOccurrence !== occurrence) {\n\t\tsetLastOccurrence(occurrence);\n\t\t// A banner arriving into an empty region is already a mutation the reader\n\t\t// hears, so only one replacing another has to be re-announced.\n\t\tif (isPresent && wasShowing) {\n\t\t\tsetReveal(\"swap\");\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tif (reveal === \"none\") {\n\t\t\treturn;\n\t\t}\n\t\t// Two frames: the first is the one the hidden state paints in, and clearing\n\t\t// the flag before that paint leaves the fade with nothing to run from.\n\t\tlet secondFrame = 0;\n\t\tconst frame = requestAnimationFrame(() => {\n\t\t\tsecondFrame = requestAnimationFrame(() => setReveal(\"none\"));\n\t\t});\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t\tcancelAnimationFrame(secondFrame);\n\t\t};\n\t}, [reveal]);\n\n\tconst handleExited = useCallback(() => setIsShowing(false), []);\n\n\t// Read off the banner on screen rather than the last one held. A region that\n\t// keeps a role with nothing in it reports a condition that has cleared, and it\n\t// answers to a consumer looking for whichever banner does hold.\n\tconst isError = isShowing && held?.props.status === \"error\";\n\tconst politeRole = isShowing ? \"status\" : undefined;\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={cx(bannerContainer, className)}\n\t\t\tstyle={style}\n\t\t\trole={isError ? \"alert\" : politeRole}\n\t\t\taria-live={isError ? \"assertive\" : \"polite\"}\n\t\t\taria-atomic=\"true\"\n\t\t\taria-hidden={reveal === \"none\" ? undefined : \"true\"}\n\t\t>\n\t\t\t{isShowing && (\n\t\t\t\t<BannerContainerSlide\n\t\t\t\t\tisPresent={isPresent}\n\t\t\t\t\tisSwapping={reveal === \"swap\"}\n\t\t\t\t\tonExited={handleExited}\n\t\t\t\t>\n\t\t\t\t\t{held}\n\t\t\t\t</BannerContainerSlide>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;AA2CA,SAAgB,EAAgB,EAC/B,aACA,eACA,cACA,UACA,UACwB;CACxB,IAAM,IAAY,MAAa,MAOzB,CAAC,GAAM,KAAW,EAAS,CAAQ,GACnC,CAAC,GAAW,KAAgB,EAAS,CAAS,GAC9C,CAAC,GAAQ,KAAa,EAAiB,IAAY,YAAY,MAAM,GACrE,CAAC,GAAgB,KAAqB,EAAS,CAAU,GAEzD,IAAa;CAgBnB,AAfI,KAAa,MAAS,KACzB,EAAQ,CAAQ,GAEb,KAAa,CAAC,KACjB,EAAa,EAAI,GAEd,MAAmB,MACtB,EAAkB,CAAU,GAGxB,KAAa,KAChB,EAAU,MAAM,IAIlB,QAAgB;EACf,IAAI,MAAW,QACd;EAID,IAAI,IAAc,GACZ,IAAQ,4BAA4B;GACzC,IAAc,4BAA4B,EAAU,MAAM,CAAC;EAC5D,CAAC;EACD,aAAa;GAEZ,AADA,qBAAqB,CAAK,GAC1B,qBAAqB,CAAW;EACjC;CACD,GAAG,CAAC,CAAM,CAAC;CAEX,IAAM,IAAe,QAAkB,EAAa,EAAK,GAAG,CAAC,CAAC,GAKxD,IAAU,KAAa,GAAM,MAAM,WAAW,SAC9C,IAAa,IAAY,WAAW,KAAA;CAE1C,OACC,kBAAC,OAAD;EACM;EACL,WAAW,EAAG,GAAiB,CAAS;EACjC;EACP,MAAM,IAAU,UAAU;EAC1B,aAAW,IAAU,cAAc;EACnC,eAAY;EACZ,eAAa,MAAW,SAAS,KAAA,IAAY;YAE5C,KACA,kBAAC,GAAD;GACY;GACX,YAAY,MAAW;GACvB,UAAU;aAET;EACoB,CAAA;CAEnB,CAAA;AAEP"}
@@ -1 +1 @@
1
- {"version":3,"file":"BannerContainerSlide.js","names":[],"sources":["../../../src/components/Banner/BannerContainerSlide.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { useEffect, useRef } from \"react\";\nimport { useEnterAnimation, useExitAnimation } from \"../../utils/animation.js\";\nimport { bannerContainerSlide } from \"./Banner.css.js\";\n\nexport interface BannerContainerSlideProps {\n\t/** False once the condition clears, which starts the exit animation. */\n\tisPresent: boolean;\n\t/** Whether the banner on screen is being replaced by another. */\n\tisSwapping: boolean;\n\t/** Runs when the exit animation finishes and the banner can be unmounted. */\n\tonExited: () => void;\n\tchildren: ReactNode;\n}\n\n/**\n * Carries the banner's motion. Mounted for as long as a banner is on screen, so\n * the enter animation runs on each arrival rather than once per container.\n */\nexport function BannerContainerSlide({\n\tisPresent,\n\tisSwapping,\n\tonExited,\n\tchildren,\n}: BannerContainerSlideProps) {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst isEntering = useEnterAnimation(ref);\n\tconst isExiting = useExitAnimation(ref, isPresent);\n\n\tuseEffect(() => {\n\t\tif (!isPresent && !isExiting) {\n\t\t\tonExited();\n\t\t}\n\t}, [isPresent, isExiting, onExited]);\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={bannerContainerSlide}\n\t\t\tdata-entering={isEntering || undefined}\n\t\t\tdata-exiting={isExiting || undefined}\n\t\t\tdata-swapping={isSwapping || undefined}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAmBA,SAAgB,EAAqB,EACpC,cACA,eACA,aACA,eAC6B;CAC7B,IAAM,IAAM,EAAuB,KAAK,EAClC,IAAa,EAAkB,EAAI,EACnC,IAAY,EAAiB,GAAK,EAAU;AAQlD,QANA,QAAgB;AACf,EAAI,CAAC,KAAa,CAAC,KAClB,GAAU;IAET;EAAC;EAAW;EAAW;EAAS,CAAC,EAGnC,kBAAC,OAAD;EACM;EACL,WAAW;EACX,iBAAe,KAAc,KAAA;EAC7B,gBAAc,KAAa,KAAA;EAC3B,iBAAe,KAAc,KAAA;EAE5B;EACI,CAAA"}
1
+ {"version":3,"file":"BannerContainerSlide.js","names":[],"sources":["../../../src/components/Banner/BannerContainerSlide.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { useEffect, useRef } from \"react\";\nimport { useEnterAnimation, useExitAnimation } from \"../../utils/animation.js\";\nimport { bannerContainerSlide } from \"./Banner.css.js\";\n\nexport interface BannerContainerSlideProps {\n\t/** False once the condition clears, which starts the exit animation. */\n\tisPresent: boolean;\n\t/** Whether the banner on screen is being replaced by another. */\n\tisSwapping: boolean;\n\t/** Runs when the exit animation finishes and the banner can be unmounted. */\n\tonExited: () => void;\n\tchildren: ReactNode;\n}\n\n/**\n * Carries the banner's motion. Mounted for as long as a banner is on screen, so\n * the enter animation runs on each arrival rather than once per container.\n */\nexport function BannerContainerSlide({\n\tisPresent,\n\tisSwapping,\n\tonExited,\n\tchildren,\n}: BannerContainerSlideProps) {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst isEntering = useEnterAnimation(ref);\n\tconst isExiting = useExitAnimation(ref, isPresent);\n\n\tuseEffect(() => {\n\t\tif (!isPresent && !isExiting) {\n\t\t\tonExited();\n\t\t}\n\t}, [isPresent, isExiting, onExited]);\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={bannerContainerSlide}\n\t\t\tdata-entering={isEntering || undefined}\n\t\t\tdata-exiting={isExiting || undefined}\n\t\t\tdata-swapping={isSwapping || undefined}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAmBA,SAAgB,EAAqB,EACpC,cACA,eACA,aACA,eAC6B;CAC7B,IAAM,IAAM,EAAuB,IAAI,GACjC,IAAa,EAAkB,CAAG,GAClC,IAAY,EAAiB,GAAK,CAAS;CAQjD,OANA,QAAgB;EACf,AAAI,CAAC,KAAa,CAAC,KAClB,EAAS;CAEX,GAAG;EAAC;EAAW;EAAW;CAAQ,CAAC,GAGlC,kBAAC,OAAD;EACM;EACL,WAAW;EACX,iBAAe,KAAc,KAAA;EAC7B,gBAAc,KAAa,KAAA;EAC3B,iBAAe,KAAc,KAAA;EAE5B;CACG,CAAA;AAEP"}
@@ -1 +1 @@
1
- {"version":3,"file":"BubbleOverlay.js","names":[],"sources":["../../../src/components/BubbleOverlay/BubbleOverlay.tsx"],"sourcesContent":["import type { 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 { bubbleDialog, bubbleModal, bubbleScrim } from \"./BubbleOverlay.css.js\";\n\nexport interface BubbleOverlayProps {\n\t/** Whether the bubble is open. */\n\tisOpen: boolean;\n\t/** Called with the next open state on dismiss (outside tap, Escape) or programmatic close. */\n\tonOpenChange: (isOpen: boolean) => void;\n\t/** Dismiss on outside 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\tclassName?: string;\n\tchildren: ReactNode;\n}\n\n/**\n * Non-dimming, near-bottom popover presentation. A compact card centered\n * horizontally near the bottom edge, with a **transparent** backdrop — the chat\n * behind it stays visible. It is still modal (focus-trap + dismiss on outside tap\n * / Escape), matching legacy chat's non-dimming anytime-survey bubble. For a\n * dimming bottom sheet use `SheetOverlay`.\n *\n * Give the dialog an accessible name via a `Sheet.Title` or the\n * `aria-label` prop.\n */\nexport function BubbleOverlay({\n\tisOpen,\n\tonOpenChange,\n\tisDismissable = true,\n\t\"aria-label\": ariaLabel,\n\tclassName,\n\tchildren,\n}: BubbleOverlayProps) {\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={bubbleScrim}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayRegistration />\n\t\t\t<Modal className={bubbleModal}>\n\t\t\t\t<AriaDialog\n\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\tclassName={cx(bubbleDialog, 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":";;;;;;;AAkCA,SAAgB,EAAc,EAC7B,WACA,iBACA,mBAAgB,IAChB,cAAc,GACd,cACA,eACsB;CAItB,IAAM,EAAE,iBAAc,GAAW;AAEjC,QACC,kBAAC,GAAD;EACS;EACM;EACC;EACf,WAAW;EACX,KAAK;YALN,CAOC,kBAAC,GAAD,EAAuB,CAAA,EACvB,kBAAC,GAAD;GAAO,WAAW;aACjB,kBAAC,GAAD;IACC,cAAY;IACZ,WAAW,EAAG,GAAc,EAAU;IAErC;IACW,CAAA;GACN,CAAA,CACM"}
1
+ {"version":3,"file":"BubbleOverlay.js","names":[],"sources":["../../../src/components/BubbleOverlay/BubbleOverlay.tsx"],"sourcesContent":["import type { 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 { bubbleDialog, bubbleModal, bubbleScrim } from \"./BubbleOverlay.css.js\";\n\nexport interface BubbleOverlayProps {\n\t/** Whether the bubble is open. */\n\tisOpen: boolean;\n\t/** Called with the next open state on dismiss (outside tap, Escape) or programmatic close. */\n\tonOpenChange: (isOpen: boolean) => void;\n\t/** Dismiss on outside 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\tclassName?: string;\n\tchildren: ReactNode;\n}\n\n/**\n * Non-dimming, near-bottom popover presentation. A compact card centered\n * horizontally near the bottom edge, with a **transparent** backdrop — the chat\n * behind it stays visible. It is still modal (focus-trap + dismiss on outside tap\n * / Escape), matching legacy chat's non-dimming anytime-survey bubble. For a\n * dimming bottom sheet use `SheetOverlay`.\n *\n * Give the dialog an accessible name via a `Sheet.Title` or the\n * `aria-label` prop.\n */\nexport function BubbleOverlay({\n\tisOpen,\n\tonOpenChange,\n\tisDismissable = true,\n\t\"aria-label\": ariaLabel,\n\tclassName,\n\tchildren,\n}: BubbleOverlayProps) {\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={bubbleScrim}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayRegistration />\n\t\t\t<Modal className={bubbleModal}>\n\t\t\t\t<AriaDialog\n\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\tclassName={cx(bubbleDialog, 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":";;;;;;;AAkCA,SAAgB,EAAc,EAC7B,WACA,iBACA,mBAAgB,IAChB,cAAc,GACd,cACA,eACsB;CAItB,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;aACjB,kBAAC,GAAD;IACC,cAAY;IACZ,WAAW,EAAG,GAAc,CAAS;IAEpC;GACU,CAAA;EACN,CAAA,CACM;;AAEhB"}
@@ -1,4 +1,4 @@
1
- import { createRuntimeFn as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
1
+ import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
2
2
  /* empty css */
3
3
  //#region src/components/Button/Button.css.ts
4
4
  var t = e({
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":[],"sources":["../../../src/components/Button/Button.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 { buttonRoot } from \"./Button.css.js\";\n\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"tertiary\";\nexport type ButtonSize = \"md\" | \"sm\";\n\ntype ButtonIntent = ButtonVariant | `${ButtonVariant}-destructive`;\n\nexport interface ButtonProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\tvariant?: ButtonVariant;\n\tsize?: ButtonSize;\n\tdestructive?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\tchildren?: ReactNode;\n}\n\nexport function Button({\n\tvariant = \"primary\",\n\tsize = \"md\",\n\tdestructive = false,\n\tclassName,\n\tchildren,\n\t...rest\n}: ButtonProps) {\n\tconst intent: ButtonIntent = destructive ? `${variant}-destructive` : variant;\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"button\"\n\t\t\tdata-variant={variant}\n\t\t\tdata-size={size}\n\t\t\tdata-destructive={destructive || undefined}\n\t\t\tclassName={cx(buttonRoot({ intent, size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;AAsBA,SAAgB,EAAO,EACtB,aAAU,WACV,UAAO,MACP,iBAAc,IACd,cACA,aACA,GAAG,KACY;CACf,IAAM,IAAuB,IAAc,GAAG,EAAQ,gBAAgB;AACtE,QACC,kBAAC,GAAD;EACC,GAAI;EACJ,aAAU;EACV,gBAAc;EACd,aAAW;EACX,oBAAkB,KAAe,KAAA;EACjC,WAAW,EAAG,EAAW;GAAE;GAAQ;GAAM,CAAC,EAAE,EAAU;EAErD;EACW,CAAA"}
1
+ {"version":3,"file":"Button.js","names":[],"sources":["../../../src/components/Button/Button.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 { buttonRoot } from \"./Button.css.js\";\n\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"tertiary\";\nexport type ButtonSize = \"md\" | \"sm\";\n\ntype ButtonIntent = ButtonVariant | `${ButtonVariant}-destructive`;\n\nexport interface ButtonProps\n\textends Omit<AriaButtonProps, \"children\" | \"className\" | \"style\"> {\n\tvariant?: ButtonVariant;\n\tsize?: ButtonSize;\n\tdestructive?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLButtonElement>;\n\tchildren?: ReactNode;\n}\n\nexport function Button({\n\tvariant = \"primary\",\n\tsize = \"md\",\n\tdestructive = false,\n\tclassName,\n\tchildren,\n\t...rest\n}: ButtonProps) {\n\tconst intent: ButtonIntent = destructive ? `${variant}-destructive` : variant;\n\treturn (\n\t\t<AriaButton\n\t\t\t{...rest}\n\t\t\tdata-slot=\"button\"\n\t\t\tdata-variant={variant}\n\t\t\tdata-size={size}\n\t\t\tdata-destructive={destructive || undefined}\n\t\t\tclassName={cx(buttonRoot({ intent, size }), className)}\n\t\t>\n\t\t\t{children}\n\t\t</AriaButton>\n\t);\n}\n"],"mappings":";;;;;AAsBA,SAAgB,EAAO,EACtB,aAAU,WACV,UAAO,MACP,iBAAc,IACd,cACA,aACA,GAAG,KACY;CACf,IAAM,IAAuB,IAAc,GAAG,EAAQ,gBAAgB;CACtE,OACC,kBAAC,GAAD;EACC,GAAI;EACJ,aAAU;EACV,gBAAc;EACd,aAAW;EACX,oBAAkB,KAAe,KAAA;EACjC,WAAW,EAAG,EAAW;GAAE;GAAQ;EAAK,CAAC,GAAG,CAAS;EAEpD;CACU,CAAA;AAEd"}
@@ -0,0 +1,8 @@
1
+ export declare const cardRoot: string;
2
+ export declare const cardPressable: string;
3
+ export declare const cardMedia: string;
4
+ export declare const cardMediaImage: string;
5
+ export declare const cardBody: string;
6
+ export declare const cardTitle: string;
7
+ export declare const cardDescription: string;
8
+ export declare const cardActions: string;
@@ -0,0 +1,7 @@
1
+ /* empty css */
2
+ //#region src/components/Card/Card.css.ts
3
+ var e = "_10mu92g0", t = "_10mu92g1", n = "_10mu92g2", r = "_10mu92g3", i = "_10mu92g4", a = "_10mu92g5", o = "_10mu92g6", s = "_10mu92g7";
4
+ //#endregion
5
+ export { s as cardActions, i as cardBody, o as cardDescription, n as cardMedia, r as cardMediaImage, t as cardPressable, e as cardRoot, a as cardTitle };
6
+
7
+ //# sourceMappingURL=Card.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.css.js","names":[],"sources":["../../../src/components/Card/Card.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const cardRoot = style({\n\tposition: \"relative\",\n\tisolation: \"isolate\",\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tboxSizing: \"border-box\",\n\twidth: \"100%\",\n\tmargin: 0,\n\tpadding: 0,\n\toverflow: \"hidden\",\n\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\tborderRadius: t(\"border-radius-message\"),\n\tbackgroundColor: t(\"color-background-default\"),\n\tcolor: t(\"color-content-default\"),\n\ttextAlign: \"start\",\n});\n\n// The pressable card is a RAC Button, so the browser's button styles are reset\n// and the shared state layer sits over the whole surface.\nexport const cardPressable = style({\n\tappearance: \"none\",\n\tfont: \"inherit\",\n\tcursor: \"pointer\",\n\toutline: \"none\",\n\t\"::after\": {\n\t\tcontent: '\"\"',\n\t\tposition: \"absolute\",\n\t\tinset: 0,\n\t\tborderRadius: \"inherit\",\n\t\tbackgroundColor: \"currentColor\",\n\t\topacity: 0,\n\t\tpointerEvents: \"none\",\n\t\tzIndex: -1,\n\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t},\n\tselectors: {\n\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t},\n\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t},\n\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t},\n\t\t\"&[data-focus-visible]:not([data-disabled])\": focusRing,\n\t\t\"&[data-disabled]\": { cursor: \"default\" },\n\t},\n\t\"@media\": {\n\t\t\"(forced-colors: active)\": {\n\t\t\tselectors: {\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport const cardMedia = style({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n\tflexShrink: 0,\n\twidth: \"100%\",\n\taspectRatio: \"16 / 9\",\n\toverflow: \"hidden\",\n\tbackgroundColor: t(\"color-background-tertiary\"),\n\tcolor: t(\"color-content-disabled\"),\n});\n\nexport const cardMediaImage = style({\n\tdisplay: \"block\",\n\twidth: \"100%\",\n\theight: \"100%\",\n\tobjectFit: \"cover\",\n});\n\nglobalStyle(`${cardMedia} [data-slot='icon']`, {\n\tfontSize: t(\"icon-size-lg\"),\n});\n\nexport const cardBody = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-4\"),\n\tminWidth: 0,\n\tpadding: t(\"padding-12\"),\n});\n\nexport const cardTitle = style({\n\t...typography(\"body\", \"semi-bold\"),\n\toverflow: \"hidden\",\n\ttextOverflow: \"ellipsis\",\n\twhiteSpace: \"nowrap\",\n});\n\nexport const cardDescription = style({\n\t...typography(\"caption\"),\n\tdisplay: \"-webkit-box\",\n\toverflow: \"hidden\",\n\toverflowWrap: \"anywhere\",\n\tWebkitBoxOrient: \"vertical\",\n\tWebkitLineClamp: 3,\n});\n\n// The body's bottom padding and this top padding make the design's 20px gap\n// between the text and the button. The auto margin keeps the button at the\n// bottom when a row of cards stretches to its tallest card.\nexport const cardActions = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-8\"),\n\tmarginTop: \"auto\",\n\tpadding: `${t(\"padding-8\")} ${t(\"padding-12\")} ${t(\"padding-12\")}`,\n});\n\nglobalStyle(`${cardActions} > [data-slot='button']`, {\n\twidth: \"100%\",\n});\n"],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { CardActions } from "./CardActions.js";
2
+ import { CardBody } from "./CardBody.js";
3
+ import { CardDescription } from "./CardDescription.js";
4
+ import { CardMedia } from "./CardMedia.js";
5
+ import { CardRoot } from "./CardRoot.js";
6
+ import { CardTitle } from "./CardTitle.js";
7
+ export type { CardProps } from "./CardRoot.js";
8
+ export declare const Card: typeof CardRoot & {
9
+ Media: typeof CardMedia;
10
+ Body: typeof CardBody;
11
+ Title: typeof CardTitle;
12
+ Description: typeof CardDescription;
13
+ Actions: typeof CardActions;
14
+ };
@@ -0,0 +1,18 @@
1
+ import { CardActions as e } from "./CardActions.js";
2
+ import { CardBody as t } from "./CardBody.js";
3
+ import { CardDescription as n } from "./CardDescription.js";
4
+ import { CardMedia as r } from "./CardMedia.js";
5
+ import { CardRoot as i } from "./CardRoot.js";
6
+ import { CardTitle as a } from "./CardTitle.js";
7
+ //#region src/components/Card/Card.tsx
8
+ var o = Object.assign(i, {
9
+ Media: r,
10
+ Body: t,
11
+ Title: a,
12
+ Description: n,
13
+ Actions: e
14
+ });
15
+ //#endregion
16
+ export { o as Card };
17
+
18
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.js","names":[],"sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import { CardActions } from \"./CardActions.js\";\nimport { CardBody } from \"./CardBody.js\";\nimport { CardDescription } from \"./CardDescription.js\";\nimport { CardMedia } from \"./CardMedia.js\";\nimport { CardRoot } from \"./CardRoot.js\";\nimport { CardTitle } from \"./CardTitle.js\";\n\nexport type { CardProps } from \"./CardRoot.js\";\n\nexport const Card = Object.assign(CardRoot, {\n\tMedia: CardMedia,\n\tBody: CardBody,\n\tTitle: CardTitle,\n\tDescription: CardDescription,\n\tActions: CardActions,\n});\n"],"mappings":";;;;;;;AASA,IAAa,IAAO,OAAO,OAAO,GAAU;CAC3C,OAAO;CACP,MAAM;CACN,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CardActionsProps {
3
+ /** Buttons, each stretched to the card's width. */
4
+ children?: ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare function CardActions({ children, className }: CardActionsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { cardActions as t } from "./Card.css.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/Card/CardActions.tsx
5
+ function r({ children: r, className: i }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ className: e(t, i),
8
+ children: r
9
+ });
10
+ }
11
+ //#endregion
12
+ export { r as CardActions };
13
+
14
+ //# sourceMappingURL=CardActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardActions.js","names":[],"sources":["../../../src/components/Card/CardActions.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { cardActions } from \"./Card.css.js\";\n\nexport interface CardActionsProps {\n\t/** Buttons, each stretched to the card's width. */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function CardActions({ children, className }: CardActionsProps) {\n\treturn <div className={cx(cardActions, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAUA,SAAgB,EAAY,EAAE,aAAU,gBAA+B;CACtE,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAa,CAAS;EAAI;CAAc,CAAA;AACnE"}
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CardBodyProps {
3
+ /** The `Card.Title` and `Card.Description`. */
4
+ children?: ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare function CardBody({ children, className }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { cardBody as t } from "./Card.css.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/Card/CardBody.tsx
5
+ function r({ children: r, className: i }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ className: e(t, i),
8
+ children: r
9
+ });
10
+ }
11
+ //#endregion
12
+ export { r as CardBody };
13
+
14
+ //# sourceMappingURL=CardBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardBody.js","names":[],"sources":["../../../src/components/Card/CardBody.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { cardBody } from \"./Card.css.js\";\n\nexport interface CardBodyProps {\n\t/** The `Card.Title` and `Card.Description`. */\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function CardBody({ children, className }: CardBodyProps) {\n\treturn <div className={cx(cardBody, className)}>{children}</div>;\n}\n"],"mappings":";;;;AAUA,SAAgB,EAAS,EAAE,aAAU,gBAA4B;CAChE,OAAO,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAU,CAAS;EAAI;CAAc,CAAA;AAChE"}
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CardDescriptionProps {
3
+ children?: ReactNode;
4
+ /** Lets the card's button describe itself with the description. */
5
+ id?: string;
6
+ className?: string;
7
+ }
8
+ /** Up to three lines. Longer text ends in an ellipsis. */
9
+ export declare function CardDescription({ children, id, className, }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { cardDescription as t } from "./Card.css.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/Card/CardDescription.tsx
5
+ function r({ children: r, id: i, className: a }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ id: i,
8
+ className: e(t, a),
9
+ children: r
10
+ });
11
+ }
12
+ //#endregion
13
+ export { r as CardDescription };
14
+
15
+ //# sourceMappingURL=CardDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardDescription.js","names":[],"sources":["../../../src/components/Card/CardDescription.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { cardDescription } from \"./Card.css.js\";\n\nexport interface CardDescriptionProps {\n\tchildren?: ReactNode;\n\t/** Lets the card's button describe itself with the description. */\n\tid?: string;\n\tclassName?: string;\n}\n\n/** Up to three lines. Longer text ends in an ellipsis. */\nexport function CardDescription({\n\tchildren,\n\tid,\n\tclassName,\n}: CardDescriptionProps) {\n\treturn (\n\t\t<div id={id} className={cx(cardDescription, className)}>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAgB,EAC/B,aACA,OACA,gBACwB;CACxB,OACC,kBAAC,OAAD;EAAS;EAAI,WAAW,EAAG,GAAiB,CAAS;EACnD;CACG,CAAA;AAEP"}
@@ -0,0 +1,17 @@
1
+ import type { ImageLoadingStatus } from "../Image/index.js";
2
+ export interface CardMediaProps {
3
+ src: string | null | undefined;
4
+ /**
5
+ * Alt text. Pass `""` when the card's title already says what the image
6
+ * shows, so a screen reader does not read it twice.
7
+ */
8
+ alt: string;
9
+ onLoadingStatusChange?: (status: ImageLoadingStatus) => void;
10
+ className?: string;
11
+ }
12
+ /**
13
+ * The card's image at 16:9, cropped to fill. A missing or failed image shows a
14
+ * muted media-slash box. The box is decorative, so the card's name stays its
15
+ * text.
16
+ */
17
+ export declare function CardMedia({ src, alt, onLoadingStatusChange, className, }: CardMediaProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { MediaSlash as t } from "../Icon/icons/MediaSlash.js";
3
+ import { cardMedia as n, cardMediaImage as r } from "./Card.css.js";
4
+ import { Image as i } from "../Image/Image.js";
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ //#region src/components/Card/CardMedia.tsx
7
+ function o({ src: o, alt: s, onLoadingStatusChange: c, className: l }) {
8
+ let u = /* @__PURE__ */ a(t, { "data-testid": "card-media-placeholder" });
9
+ return /* @__PURE__ */ a("div", {
10
+ className: e(n, l),
11
+ children: /* @__PURE__ */ a(i, {
12
+ className: r,
13
+ src: o,
14
+ alt: s,
15
+ fallback: u,
16
+ onLoadingStatusChange: c
17
+ })
18
+ });
19
+ }
20
+ //#endregion
21
+ export { o as CardMedia };
22
+
23
+ //# sourceMappingURL=CardMedia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardMedia.js","names":[],"sources":["../../../src/components/Card/CardMedia.tsx"],"sourcesContent":["import { 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 { cardMedia, cardMediaImage } from \"./Card.css.js\";\n\nexport interface CardMediaProps {\n\tsrc: string | null | undefined;\n\t/**\n\t * Alt text. Pass `\"\"` when the card's title already says what the image\n\t * shows, so a screen reader does not read it twice.\n\t */\n\talt: string;\n\tonLoadingStatusChange?: (status: ImageLoadingStatus) => void;\n\tclassName?: string;\n}\n\n/**\n * The card's image at 16:9, cropped to fill. A missing or failed image shows a\n * muted media-slash box. The box is decorative, so the card's name stays its\n * text.\n */\nexport function CardMedia({\n\tsrc,\n\talt,\n\tonLoadingStatusChange,\n\tclassName,\n}: CardMediaProps) {\n\tconst placeholder = <MediaSlash data-testid=\"card-media-placeholder\" />;\n\n\treturn (\n\t\t<div className={cx(cardMedia, className)}>\n\t\t\t<Image\n\t\t\t\tclassName={cardMediaImage}\n\t\t\t\tsrc={src}\n\t\t\t\talt={alt}\n\t\t\t\tfallback={placeholder}\n\t\t\t\tonLoadingStatusChange={onLoadingStatusChange}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;AAsBA,SAAgB,EAAU,EACzB,QACA,QACA,0BACA,gBACkB;CAClB,IAAM,IAAc,kBAAC,GAAD,EAAY,eAAY,yBAA0B,CAAA;CAEtE,OACC,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAW,CAAS;YACtC,kBAAC,GAAD;GACC,WAAW;GACN;GACA;GACL,UAAU;GACa;EACvB,CAAA;CACG,CAAA;AAEP"}
@@ -0,0 +1,22 @@
1
+ import type { CSSProperties, ReactNode, Ref } from "react";
2
+ export interface CardProps {
3
+ children?: ReactNode;
4
+ /**
5
+ * Makes the whole card one button. Leave it out when the card holds its
6
+ * own buttons in `Card.Actions`: a button inside a button is invalid.
7
+ */
8
+ onPress?: () => void;
9
+ /** Disables the pressable card. Has no effect without `onPress`. */
10
+ isDisabled?: boolean;
11
+ "aria-label"?: string;
12
+ "aria-labelledby"?: string;
13
+ "aria-describedby"?: string;
14
+ className?: string;
15
+ style?: CSSProperties;
16
+ ref?: Ref<HTMLElement>;
17
+ }
18
+ /**
19
+ * A surface with an optional image, a title, a description and actions. With
20
+ * `onPress`, the whole card is the button and its text is the button's name.
21
+ */
22
+ export declare function CardRoot({ children, onPress, isDisabled, className, ref, ...rest }: CardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { cardPressable as t, cardRoot as n } from "./Card.css.js";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ import { Button as i } from "react-aria-components";
5
+ //#region src/components/Card/CardRoot.tsx
6
+ function a({ children: a, onPress: o, isDisabled: s, className: c, ref: l, ...u }) {
7
+ return o ? /* @__PURE__ */ r(i, {
8
+ ...u,
9
+ ref: l,
10
+ "data-pressable": "true",
11
+ isDisabled: s,
12
+ onPress: o,
13
+ className: e(n, t, c),
14
+ children: a
15
+ }) : /* @__PURE__ */ r("div", {
16
+ ...u,
17
+ ref: l,
18
+ className: e(n, c),
19
+ children: a
20
+ });
21
+ }
22
+ //#endregion
23
+ export { a as CardRoot };
24
+
25
+ //# sourceMappingURL=CardRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardRoot.js","names":[],"sources":["../../../src/components/Card/CardRoot.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { cardPressable, cardRoot } from \"./Card.css.js\";\n\nexport interface CardProps {\n\tchildren?: ReactNode;\n\t/**\n\t * Makes the whole card one button. Leave it out when the card holds its\n\t * own buttons in `Card.Actions`: a button inside a button is invalid.\n\t */\n\tonPress?: () => void;\n\t/** Disables the pressable card. Has no effect without `onPress`. */\n\tisDisabled?: boolean;\n\t\"aria-label\"?: string;\n\t\"aria-labelledby\"?: string;\n\t\"aria-describedby\"?: string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLElement>;\n}\n\n/**\n * A surface with an optional image, a title, a description and actions. With\n * `onPress`, the whole card is the button and its text is the button's name.\n */\nexport function CardRoot({\n\tchildren,\n\tonPress,\n\tisDisabled,\n\tclassName,\n\tref,\n\t...rest\n}: CardProps) {\n\tif (onPress) {\n\t\treturn (\n\t\t\t<AriaButton\n\t\t\t\t{...rest}\n\t\t\t\tref={ref as Ref<HTMLButtonElement>}\n\t\t\t\tdata-pressable=\"true\"\n\t\t\t\tisDisabled={isDisabled}\n\t\t\t\tonPress={onPress}\n\t\t\t\tclassName={cx(cardRoot, cardPressable, className)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</AriaButton>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tref={ref as Ref<HTMLDivElement>}\n\t\t\tclassName={cx(cardRoot, className)}\n\t\t>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AA0BA,SAAgB,EAAS,EACxB,aACA,YACA,eACA,cACA,QACA,GAAG,KACU;CAgBb,OAfI,IAEF,kBAAC,GAAD;EACC,GAAI;EACC;EACL,kBAAe;EACH;EACH;EACT,WAAW,EAAG,GAAU,GAAe,CAAS;EAE/C;CACU,CAAA,IAKb,kBAAC,OAAD;EACC,GAAI;EACC;EACL,WAAW,EAAG,GAAU,CAAS;EAEhC;CACG,CAAA;AAEP"}
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CardTitleProps {
3
+ children?: ReactNode;
4
+ /** Lets a button or the pressable card name itself with the title. */
5
+ id?: string;
6
+ className?: string;
7
+ }
8
+ /** One line. A longer title ends in an ellipsis. */
9
+ export declare function CardTitle({ children, id, className }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { cardTitle as t } from "./Card.css.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/Card/CardTitle.tsx
5
+ function r({ children: r, id: i, className: a }) {
6
+ return /* @__PURE__ */ n("span", {
7
+ id: i,
8
+ className: e(t, a),
9
+ children: r
10
+ });
11
+ }
12
+ //#endregion
13
+ export { r as CardTitle };
14
+
15
+ //# sourceMappingURL=CardTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardTitle.js","names":[],"sources":["../../../src/components/Card/CardTitle.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { cardTitle } from \"./Card.css.js\";\n\nexport interface CardTitleProps {\n\tchildren?: ReactNode;\n\t/** Lets a button or the pressable card name itself with the title. */\n\tid?: string;\n\tclassName?: string;\n}\n\n/** One line. A longer title ends in an ellipsis. */\nexport function CardTitle({ children, id, className }: CardTitleProps) {\n\treturn (\n\t\t<span id={id} className={cx(cardTitle, className)}>\n\t\t\t{children}\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAU,EAAE,aAAU,OAAI,gBAA6B;CACtE,OACC,kBAAC,QAAD;EAAU;EAAI,WAAW,EAAG,GAAW,CAAS;EAC9C;CACI,CAAA;AAER"}
@@ -0,0 +1,6 @@
1
+ export { Card, type CardProps } from "./Card.js";
2
+ export type { CardActionsProps } from "./CardActions.js";
3
+ export type { CardBodyProps } from "./CardBody.js";
4
+ export type { CardDescriptionProps } from "./CardDescription.js";
5
+ export type { CardMediaProps } from "./CardMedia.js";
6
+ export type { CardTitleProps } from "./CardTitle.js";
@@ -0,0 +1,6 @@
1
+ export declare const carouselRoot: string;
2
+ export declare const carouselTrack: string;
3
+ export declare const carouselItem: string;
4
+ export declare const carouselFooter: string;
5
+ export declare const carouselCounter: string;
6
+ export declare const carouselCounterNumber: string;
@@ -0,0 +1,7 @@
1
+ /* empty css */
2
+ //#region src/components/Carousel/Carousel.css.ts
3
+ var e = "_1vler2p0", t = "_1vler2p1", n = "_1vler2p2", r = "_1vler2p3", i = "_1vler2p4", a = "_1vler2p5";
4
+ //#endregion
5
+ export { i as carouselCounter, a as carouselCounterNumber, r as carouselFooter, n as carouselItem, e as carouselRoot, t as carouselTrack };
6
+
7
+ //# sourceMappingURL=Carousel.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.css.js","names":[],"sources":["../../../src/components/Carousel/Carousel.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const carouselRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"stretch\",\n\tgap: t(\"gap-20\"),\n\tminWidth: 0,\n});\n\n// The block padding keeps a focused card's ring inside the scroll box, which\n// would otherwise clip it.\nexport const carouselTrack = style({\n\tdisplay: \"flex\",\n\tgap: t(\"gap-12\"),\n\tpaddingBlock: t(\"padding-4\"),\n\tpaddingInline: t(\"padding-12\"),\n\tscrollPaddingInline: t(\"padding-12\"),\n\toverflowX: \"auto\",\n\toverflowY: \"hidden\",\n\tscrollSnapType: \"x mandatory\",\n\tscrollbarWidth: \"none\",\n\tselectors: {\n\t\t\"&::-webkit-scrollbar\": { display: \"none\" },\n\t},\n});\n\n// The design's card is 280px. On a narrow column the item shrinks so the\n// cards beside it still peek in. A middle card centres, so both neighbours\n// show; the first and last cards meet the edges, so no end is left empty.\nexport const carouselItem = style({\n\tdisplay: \"flex\",\n\tflex: \"0 0 min(280px, 80%)\",\n\tminWidth: 0,\n\tscrollSnapAlign: \"center\",\n\tselectors: {\n\t\t\"&:first-child\": { scrollSnapAlign: \"start\" },\n\t\t\"&:last-child\": { scrollSnapAlign: \"end\" },\n\t},\n});\n\nexport const carouselFooter = style({\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n});\n\nexport const carouselCounter = style({\n\t...typography(\"caption\"),\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tgap: t(\"gap-4\"),\n\tpaddingInline: t(\"padding-16\"),\n\tcolor: t(\"color-content-default\"),\n\tfontVariantNumeric: \"tabular-nums\",\n});\n\nexport const carouselCounterNumber = style({\n\tminWidth: \"24px\",\n\ttextAlign: \"center\",\n});\n"],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ export interface CarouselProps {
3
+ /** The slides, each a `CarouselItem`. */
4
+ children?: ReactNode;
5
+ /** Accessible name of the group of slides. */
6
+ label: string;
7
+ /** Accessible name of the previous-slide button. */
8
+ previousLabel: string;
9
+ /** Accessible name of the next-slide button. */
10
+ nextLabel: string;
11
+ className?: string;
12
+ style?: CSSProperties;
13
+ }
14
+ /**
15
+ * A row of slides that scrolls sideways and snaps to each slide. When the
16
+ * slides overflow, a footer shows the previous and next buttons and the
17
+ * position as "1 / 3". Keyboard focus on a partly hidden slide scrolls it in.
18
+ */
19
+ export declare function Carousel({ children, label, previousLabel, nextLabel, className, style, }: CarouselProps): import("react/jsx-runtime").JSX.Element;