@ada-cx/lovelace 1.14.0 → 1.16.0

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 (37) hide show
  1. package/dist/components/AttachmentChip/AttachmentChip.css.js.map +1 -1
  2. package/dist/components/Button/Button.css.js.map +1 -1
  3. package/dist/components/Checkbox/Checkbox.css.js.map +1 -1
  4. package/dist/components/Chip/Chip.css.js.map +1 -1
  5. package/dist/components/Dialog/Dialog.css.js.map +1 -1
  6. package/dist/components/Divider/Divider.css.js.map +1 -1
  7. package/dist/components/DropZone/DropZone.css.js.map +1 -1
  8. package/dist/components/DropZone/DropZone.d.ts +54 -10
  9. package/dist/components/DropZone/DropZone.js +60 -30
  10. package/dist/components/DropZone/DropZone.js.map +1 -1
  11. package/dist/components/Header/Header.css.js.map +1 -1
  12. package/dist/components/Header/HeaderTitle.d.ts +13 -4
  13. package/dist/components/Header/HeaderTitle.js +9 -7
  14. package/dist/components/Header/HeaderTitle.js.map +1 -1
  15. package/dist/components/Input/Input.css.js.map +1 -1
  16. package/dist/components/Link/Link.css.js.map +1 -1
  17. package/dist/components/MessageError/MessageError.css.js.map +1 -1
  18. package/dist/components/PillButton/PillButton.css.js.map +1 -1
  19. package/dist/components/ProactiveMessage/ProactiveMessage.css.js.map +1 -1
  20. package/dist/components/Radio/Radio.css.js.map +1 -1
  21. package/dist/components/ScrollMarker/ScrollMarker.css.js.map +1 -1
  22. package/dist/components/Sheet/Sheet.css.js.map +1 -1
  23. package/dist/components/Survey/SurveyRating/SurveyRating.css.js.map +1 -1
  24. package/dist/components/Text/Text.css.d.ts +13 -0
  25. package/dist/components/Text/Text.css.js +28 -0
  26. package/dist/components/Text/Text.css.js.map +1 -0
  27. package/dist/components/Text/Text.d.ts +30 -0
  28. package/dist/components/Text/Text.js +17 -0
  29. package/dist/components/Text/Text.js.map +1 -0
  30. package/dist/components/Text/index.d.ts +3 -0
  31. package/dist/components/ThinkingShimmer/ThinkingShimmer.css.js.map +1 -1
  32. package/dist/components/Tooltip/Tooltip.css.js.map +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +13 -12
  35. package/dist/style.css +1 -1
  36. package/dist/styles/typography.d.ts +32 -0
  37. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PillButton.css.js","names":[],"sources":["../../../src/components/PillButton/PillButton.css.ts"],"sourcesContent":["import { globalStyle } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const pillButtonRoot = recipe({\n\tbase: {\n\t\tposition: \"relative\",\n\t\tisolation: \"isolate\",\n\t\tdisplay: \"inline-flex\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: t(\"gap-8\"),\n\t\tpaddingInline: t(\"padding-12\"),\n\t\tboxSizing: \"border-box\",\n\t\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\t\tborderRadius: t(\"border-radius-pill\"),\n\t\tbackgroundColor: t(\"color-background-default\"),\n\t\tcolor: t(\"pill-content-primary\"),\n\t\tfontFamily: t(\"font-family-body\"),\n\t\tfontWeight: t(\"font-weight-medium\"),\n\t\tfontSize: t(\"font-size-body\"),\n\t\tlineHeight: t(\"line-height-body\"),\n\t\twhiteSpace: \"nowrap\",\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tappearance: \"none\",\n\t\ttextDecoration: \"none\",\n\t\toutline: \"none\",\n\t\ttransitionProperty: \"background-color, border-color\",\n\t\ttransitionDuration: t(\"duration-fast\"),\n\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\"::after\": {\n\t\t\tcontent: '\"\"',\n\t\t\tposition: \"absolute\",\n\t\t\tinset: 0,\n\t\t\tborderRadius: \"inherit\",\n\t\t\tbackgroundColor: \"currentColor\",\n\t\t\topacity: 0,\n\t\t\tpointerEvents: \"none\",\n\t\t\tzIndex: -1,\n\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t},\n\t\tselectors: {\n\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t},\n\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t},\n\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t},\n\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t\tboxShadow: `0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t\t},\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t},\n\t\t},\n\t\t\"@media\": {\n\t\t\t\"(forced-colors: active)\": {\n\t\t\t\tselectors: {\n\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\t// Hardcoded heights are correct.\n\t\tsize: {\n\t\t\tmd: { height: \"40px\" },\n\t\t\tsm: { height: \"32px\" },\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: \"md\",\n\t},\n});\n\n// Icon children render at the control icon size (not the body text size), so an\n// icon-only pill reads as an icon button rather than a tiny glyph. <Icon> is 1em,\n// so this drives its size; flex-shrink keeps it from collapsing next to text.\nglobalStyle(`[data-slot='pill-button'] [data-slot='icon']`, {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n});\n"],"mappings":""}
1
+ {"version":3,"file":"PillButton.css.js","names":[],"sources":["../../../src/components/PillButton/PillButton.css.ts"],"sourcesContent":["import { globalStyle } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const pillButtonRoot = recipe({\n\tbase: {\n\t\tposition: \"relative\",\n\t\tisolation: \"isolate\",\n\t\tdisplay: \"inline-flex\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: t(\"gap-8\"),\n\t\tpaddingInline: t(\"padding-12\"),\n\t\tboxSizing: \"border-box\",\n\t\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\t\tborderRadius: t(\"border-radius-pill\"),\n\t\tbackgroundColor: t(\"color-background-default\"),\n\t\tcolor: t(\"pill-content-primary\"),\n\t\t...typography(\"body\", \"medium\"),\n\t\twhiteSpace: \"nowrap\",\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tappearance: \"none\",\n\t\ttextDecoration: \"none\",\n\t\toutline: \"none\",\n\t\ttransitionProperty: \"background-color, border-color\",\n\t\ttransitionDuration: t(\"duration-fast\"),\n\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\"::after\": {\n\t\t\tcontent: '\"\"',\n\t\t\tposition: \"absolute\",\n\t\t\tinset: 0,\n\t\t\tborderRadius: \"inherit\",\n\t\t\tbackgroundColor: \"currentColor\",\n\t\t\topacity: 0,\n\t\t\tpointerEvents: \"none\",\n\t\t\tzIndex: -1,\n\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t},\n\t\tselectors: {\n\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t},\n\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t},\n\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t},\n\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t\tboxShadow: `0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t\t},\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t},\n\t\t},\n\t\t\"@media\": {\n\t\t\t\"(forced-colors: active)\": {\n\t\t\t\tselectors: {\n\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\t// Hardcoded heights are correct.\n\t\tsize: {\n\t\t\tmd: { height: \"40px\" },\n\t\t\tsm: { height: \"32px\" },\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: \"md\",\n\t},\n});\n\n// Icon children render at the control icon size (not the body text size), so an\n// icon-only pill reads as an icon button rather than a tiny glyph. <Icon> is 1em,\n// so this drives its size; flex-shrink keeps it from collapsing next to text.\nglobalStyle(`[data-slot='pill-button'] [data-slot='icon']`, {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ProactiveMessage.css.js","names":[],"sources":["../../../src/components/ProactiveMessage/ProactiveMessage.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { t } from \"../../tokens/index.js\";\n\n// Content-hugging, non-interactive message bubble — no variant/size axes, so a\n// plain `style()` rather than a `recipe()`.\nexport const proactiveMessageRoot = style({\n\tboxSizing: \"border-box\",\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"flex-start\",\n\t// Center content against the 48px minimum so short messages keep the pill\n\t// height (matches the Figma bubble's `justify-center`).\n\tjustifyContent: \"center\",\n\t// Hug the content; the surrounding layout constrains the max width to the\n\t// chat column, keeping this bubble in lockstep with the agent/user message\n\t// bubbles rather than baking a column-width literal into this one component.\n\twidth: \"fit-content\",\n\t// Figma pins the bubble to a 48px floor; no control-size token tier exists\n\t// yet (cf. AgentMessage's 24px literal).\n\tminHeight: \"48px\",\n\tpaddingBlock: t(\"padding-8\"),\n\tpaddingInline: t(\"padding-16\"),\n\tborderRadius: t(\"border-radius-message\"),\n\tbackgroundColor: t(\"elevation-3-background\"),\n\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\tboxShadow: t(\"elevation-3\"),\n\tcolor: t(\"color-content-default\"),\n\tfontFamily: t(\"font-family-body\"),\n\tfontWeight: t(\"font-weight-regular\"),\n\tfontSize: t(\"font-size-body\"),\n\tlineHeight: t(\"line-height-body\"),\n\t// `start` follows the content's resolved direction (see `dir=\"auto\"` on the\n\t// element), keeping mixed-direction messages aligned to their own edge.\n\ttextAlign: \"start\",\n\t// `anywhere` (not `break-word`) so a single long unbroken token — e.g. a raw\n\t// URL in body text — breaks mid-string instead of overflowing the column.\n\toverflowWrap: \"anywhere\",\n});\n"],"mappings":""}
1
+ {"version":3,"file":"ProactiveMessage.css.js","names":[],"sources":["../../../src/components/ProactiveMessage/ProactiveMessage.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Content-hugging, non-interactive message bubble — no variant/size axes, so a\n// plain `style()` rather than a `recipe()`.\nexport const proactiveMessageRoot = style({\n\tboxSizing: \"border-box\",\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"flex-start\",\n\t// Center content against the 48px minimum so short messages keep the pill\n\t// height (matches the Figma bubble's `justify-center`).\n\tjustifyContent: \"center\",\n\t// Hug the content; the surrounding layout constrains the max width to the\n\t// chat column, keeping this bubble in lockstep with the agent/user message\n\t// bubbles rather than baking a column-width literal into this one component.\n\twidth: \"fit-content\",\n\t// Figma pins the bubble to a 48px floor; no control-size token tier exists\n\t// yet (cf. AgentMessage's 24px literal).\n\tminHeight: \"48px\",\n\tpaddingBlock: t(\"padding-8\"),\n\tpaddingInline: t(\"padding-16\"),\n\tborderRadius: t(\"border-radius-message\"),\n\tbackgroundColor: t(\"elevation-3-background\"),\n\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\tboxShadow: t(\"elevation-3\"),\n\tcolor: t(\"color-content-default\"),\n\t...typography(\"body\", \"regular\"),\n\t// `start` follows the content's resolved direction (see `dir=\"auto\"` on the\n\t// element), keeping mixed-direction messages aligned to their own edge.\n\ttextAlign: \"start\",\n\t// `anywhere` (not `break-word`) so a single long unbroken token — e.g. a raw\n\t// URL in body text — breaks mid-string instead of overflowing the column.\n\toverflowWrap: \"anywhere\",\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.css.js","names":[],"sources":["../../../src/components/Radio/Radio.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Figma's `button-size/xs` (24px) has no LovelaceToken; the checked indicator's\n// inset is likewise fixed visual detail Figma renders as a flattened raster with\n// no token (5px inset inside the 1px border → 12px center dot). Both are\n// hardcoded like a fixed frame size.\nconst CONTROL_SIZE = \"24px\";\nconst INDICATOR_INSET = \"5px\";\n\n// Empty handle class: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst radioRowBase = style({});\n\nexport const radioGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n\tselectors: {\n\t\t'&[data-orientation=\"horizontal\"]': {\n\t\t\tflexDirection: \"row\",\n\t\t},\n\t},\n});\n\n/**\n * The RAC `Radio` label. `inline` lays the control out beside its label; `row` is\n * the 40px selectable row Figma draws for a menu item, for a `RadioGroup`\n * rendered as a list of options.\n */\nexport const radioRoot = recipe({\n\tbase: {\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [radioRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(`${radioRowBase} > [data-slot=\"icon\"]`, controlRowSlotRules.icon);\nglobalStyle(`${radioRowBase} > [data-slot=\"label\"]`, controlRowSlotRules.label);\n\n/**\n * The 24px control circle. Selection and interaction state are read from whichever\n * host element carries React Aria's `data-*` — the RAC label, or a `MenuItem` row —\n * so the rules below are child selectors that name no host. Interaction rules\n * additionally require `[data-state-layer]`, which the indicator sets only when it\n * is the sole affordance; inside a row the row paints hover and focus itself.\n */\nexport const radioControl = style({\n\tposition: \"relative\",\n\tboxSizing: \"border-box\",\n\tflexShrink: 0,\n\twidth: CONTROL_SIZE,\n\theight: CONTROL_SIZE,\n\tborderRadius: t(\"border-radius-full\"),\n\tborderStyle: \"solid\",\n\tborderWidth: t(\"border-width-default\"),\n\t// Unchecked resting state; the selected rules below override it.\n\tbackgroundColor: t(\"color-background-default\"),\n\tborderColor: t(\"color-border-default\"),\n\ttransitionProperty: \"background-color, border-color, box-shadow\",\n\ttransitionDuration: t(\"duration-fast\"),\n\ttransitionTimingFunction: t(\"easing-standard\"),\n\tselectors: {\n\t\t// Unchecked — hover darkens the border only (no fill).\n\t\t\"[data-hovered]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-medium\"),\n\t\t\t},\n\t\t// Checked — solid inverse disc; the white ring is drawn by radioDot.\n\t\t\"[data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-inverse\"),\n\t\t\tborderColor: t(\"color-background-inverse\"),\n\t\t},\n\t\t// Focus — outer 2px focus ring for both states (matches Chip's double ring).\n\t\t\"[data-focus-visible]:not([data-disabled]) > &[data-state-layer]\": {\n\t\t\tboxShadow: `0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t},\n\t\t// Focus (unchecked) — inner accent border completes the double ring.\n\t\t\"[data-focus-visible]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t},\n\t\t// Disabled — unchecked.\n\t\t\"[data-disabled]:not([data-selected]) > &\": {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t\tborderColor: t(\"color-border-default\"),\n\t\t},\n\t\t// Disabled — checked disc fades to the disabled background.\n\t\t\"[data-disabled][data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\tborderColor: t(\"color-background-disabled\"),\n\t\t},\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]) > &[data-state-layer]\": {\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\n// Solid center dot on the checked disc (dark disc → filled light center circle).\n// Hidden (transparent) until the option is selected.\nexport const radioDot = style({\n\tposition: \"absolute\",\n\tinset: INDICATOR_INSET,\n\tborderRadius: t(\"border-radius-full\"),\n\tbackgroundColor: \"transparent\",\n\tpointerEvents: \"none\",\n\tselectors: {\n\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-default\"),\n\t\t},\n\t\t[`[data-selected][data-disabled] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t},\n\t},\n\t\"@media\": {\n\t\t// Author background-colors collapse to Canvas in forced-colors mode, so the\n\t\t// disc/dot contrast is lost — redraw the dot with a system color instead.\n\t\t\"(forced-colors: active)\": {\n\t\t\tselectors: {\n\t\t\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\t\t\tbackgroundColor: \"CanvasText\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport const radioLabel = style({\n\tfontFamily: t(\"font-family-body\"),\n\tfontSize: t(\"font-size-body\"),\n\tfontWeight: t(\"font-weight-regular\"),\n\tlineHeight: t(\"line-height-body\"),\n\tcolor: t(\"color-content-default\"),\n\tselectors: {\n\t\t\"[data-disabled] > &\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t},\n\t},\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Radio.css.js","names":[],"sources":["../../../src/components/Radio/Radio.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Figma's `button-size/xs` (24px) has no LovelaceToken; the checked indicator's\n// inset is likewise fixed visual detail Figma renders as a flattened raster with\n// no token (5px inset inside the 1px border → 12px center dot). Both are\n// hardcoded like a fixed frame size.\nconst CONTROL_SIZE = \"24px\";\nconst INDICATOR_INSET = \"5px\";\n\n// Empty handle class: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst radioRowBase = style({});\n\nexport const radioGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n\tselectors: {\n\t\t'&[data-orientation=\"horizontal\"]': {\n\t\t\tflexDirection: \"row\",\n\t\t},\n\t},\n});\n\n/**\n * The RAC `Radio` label. `inline` lays the control out beside its label; `row` is\n * the 40px selectable row Figma draws for a menu item, for a `RadioGroup`\n * rendered as a list of options.\n */\nexport const radioRoot = recipe({\n\tbase: {\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [radioRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(`${radioRowBase} > [data-slot=\"icon\"]`, controlRowSlotRules.icon);\nglobalStyle(`${radioRowBase} > [data-slot=\"label\"]`, controlRowSlotRules.label);\n\n/**\n * The 24px control circle. Selection and interaction state are read from whichever\n * host element carries React Aria's `data-*` — the RAC label, or a `MenuItem` row —\n * so the rules below are child selectors that name no host. Interaction rules\n * additionally require `[data-state-layer]`, which the indicator sets only when it\n * is the sole affordance; inside a row the row paints hover and focus itself.\n */\nexport const radioControl = style({\n\tposition: \"relative\",\n\tboxSizing: \"border-box\",\n\tflexShrink: 0,\n\twidth: CONTROL_SIZE,\n\theight: CONTROL_SIZE,\n\tborderRadius: t(\"border-radius-full\"),\n\tborderStyle: \"solid\",\n\tborderWidth: t(\"border-width-default\"),\n\t// Unchecked resting state; the selected rules below override it.\n\tbackgroundColor: t(\"color-background-default\"),\n\tborderColor: t(\"color-border-default\"),\n\ttransitionProperty: \"background-color, border-color, box-shadow\",\n\ttransitionDuration: t(\"duration-fast\"),\n\ttransitionTimingFunction: t(\"easing-standard\"),\n\tselectors: {\n\t\t// Unchecked — hover darkens the border only (no fill).\n\t\t\"[data-hovered]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-medium\"),\n\t\t\t},\n\t\t// Checked — solid inverse disc; the white ring is drawn by radioDot.\n\t\t\"[data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-inverse\"),\n\t\t\tborderColor: t(\"color-background-inverse\"),\n\t\t},\n\t\t// Focus — outer 2px focus ring for both states (matches Chip's double ring).\n\t\t\"[data-focus-visible]:not([data-disabled]) > &[data-state-layer]\": {\n\t\t\tboxShadow: `0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t},\n\t\t// Focus (unchecked) — inner accent border completes the double ring.\n\t\t\"[data-focus-visible]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t},\n\t\t// Disabled — unchecked.\n\t\t\"[data-disabled]:not([data-selected]) > &\": {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t\tborderColor: t(\"color-border-default\"),\n\t\t},\n\t\t// Disabled — checked disc fades to the disabled background.\n\t\t\"[data-disabled][data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\tborderColor: t(\"color-background-disabled\"),\n\t\t},\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]) > &[data-state-layer]\": {\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\n// Solid center dot on the checked disc (dark disc → filled light center circle).\n// Hidden (transparent) until the option is selected.\nexport const radioDot = style({\n\tposition: \"absolute\",\n\tinset: INDICATOR_INSET,\n\tborderRadius: t(\"border-radius-full\"),\n\tbackgroundColor: \"transparent\",\n\tpointerEvents: \"none\",\n\tselectors: {\n\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-default\"),\n\t\t},\n\t\t[`[data-selected][data-disabled] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t},\n\t},\n\t\"@media\": {\n\t\t// Author background-colors collapse to Canvas in forced-colors mode, so the\n\t\t// disc/dot contrast is lost — redraw the dot with a system color instead.\n\t\t\"(forced-colors: active)\": {\n\t\t\tselectors: {\n\t\t\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\t\t\tbackgroundColor: \"CanvasText\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport const radioLabel = style({\n\t...typography(\"body\", \"regular\"),\n\tcolor: t(\"color-content-default\"),\n\tselectors: {\n\t\t\"[data-disabled] > &\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t},\n\t},\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollMarker.css.js","names":[],"sources":["../../../src/components/ScrollMarker/ScrollMarker.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { t } from \"../../tokens/index.js\";\n\nconst DROP_SHADOW = t(\"elevation-2\");\n\nconst scrollMarkerBase = style({});\n\nexport const scrollMarkerRoot = recipe({\n\tbase: [\n\t\tscrollMarkerBase,\n\t\t{\n\t\t\tposition: \"relative\",\n\t\t\tisolation: \"isolate\",\n\t\t\tdisplay: \"inline-flex\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tborder: \"none\",\n\t\t\tborderRadius: t(\"border-radius-full\"),\n\t\t\tboxShadow: DROP_SHADOW,\n\t\t\tfontFamily: t(\"font-family-body\"),\n\t\t\tfontWeight: t(\"font-weight-medium\"),\n\t\t\tfontSize: t(\"font-size-body\"),\n\t\t\tlineHeight: t(\"line-height-body\"),\n\t\t\twhiteSpace: \"nowrap\",\n\t\t\tcursor: \"pointer\",\n\t\t\tuserSelect: \"none\",\n\t\t\tappearance: \"none\",\n\t\t\toutline: \"none\",\n\t\t\ttransitionProperty: \"background-color, box-shadow\",\n\t\t\ttransitionDuration: t(\"duration-fast\"),\n\t\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\t\"::after\": {\n\t\t\t\tcontent: '\"\"',\n\t\t\t\tposition: \"absolute\",\n\t\t\t\tinset: 0,\n\t\t\t\tborderRadius: \"inherit\",\n\t\t\t\tbackgroundColor: \"currentColor\",\n\t\t\t\topacity: 0,\n\t\t\t\tpointerEvents: \"none\",\n\t\t\t\tzIndex: -1,\n\t\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t\t},\n\t\t\tselectors: {\n\t\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t\t},\n\t\t\t\t// Focus ring layers on top of the persistent drop shadow.\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\tboxShadow: `${DROP_SHADOW}, 0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tcolor: {\n\t\t\tdefault: {\n\t\t\t\tbackgroundColor: t(\"scrollmarker-background\"),\n\t\t\t\tcolor: t(\"scrollmarker-content\"),\n\t\t\t},\n\t\t\tbrand: {\n\t\t\t\tbackgroundColor: t(\"color-background-accent\"),\n\t\t\t\tcolor: t(\"color-content-on-accent\"),\n\t\t\t},\n\t\t},\n\t\t// Hardcoded frame dimensions mirror Figma's fixed sizes (icon-only 40px circle,\n\t\t// with-text 38px pill row), which the token set does not expose as spacing values.\n\t\ttype: {\n\t\t\ticonOnly: { width: \"40px\", height: \"40px\", padding: 0 },\n\t\t\twithText: {\n\t\t\t\theight: \"38px\",\n\t\t\t\tpaddingInline: t(\"padding-12\"),\n\t\t\t\tgap: t(\"gap-8\"),\n\t\t\t},\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tcolor: \"default\",\n\t\ttype: \"iconOnly\",\n\t},\n});\n\n// Descendant target must be a global rule; vanilla-extract disallows it inside `selectors`.\nglobalStyle(`${scrollMarkerBase} [data-slot='icon']`, {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n});\n"],"mappings":""}
1
+ {"version":3,"file":"ScrollMarker.css.js","names":[],"sources":["../../../src/components/ScrollMarker/ScrollMarker.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nconst DROP_SHADOW = t(\"elevation-2\");\n\nconst scrollMarkerBase = style({});\n\nexport const scrollMarkerRoot = recipe({\n\tbase: [\n\t\tscrollMarkerBase,\n\t\t{\n\t\t\tposition: \"relative\",\n\t\t\tisolation: \"isolate\",\n\t\t\tdisplay: \"inline-flex\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tborder: \"none\",\n\t\t\tborderRadius: t(\"border-radius-full\"),\n\t\t\tboxShadow: DROP_SHADOW,\n\t\t\t...typography(\"body\", \"medium\"),\n\t\t\twhiteSpace: \"nowrap\",\n\t\t\tcursor: \"pointer\",\n\t\t\tuserSelect: \"none\",\n\t\t\tappearance: \"none\",\n\t\t\toutline: \"none\",\n\t\t\ttransitionProperty: \"background-color, box-shadow\",\n\t\t\ttransitionDuration: t(\"duration-fast\"),\n\t\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\t\"::after\": {\n\t\t\t\tcontent: '\"\"',\n\t\t\t\tposition: \"absolute\",\n\t\t\t\tinset: 0,\n\t\t\t\tborderRadius: \"inherit\",\n\t\t\t\tbackgroundColor: \"currentColor\",\n\t\t\t\topacity: 0,\n\t\t\t\tpointerEvents: \"none\",\n\t\t\t\tzIndex: -1,\n\t\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t\t},\n\t\t\tselectors: {\n\t\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t\t},\n\t\t\t\t// Focus ring layers on top of the persistent drop shadow.\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\tboxShadow: `${DROP_SHADOW}, 0 0 0 ${t(\"border-width-focus\")} ${t(\"color-border-focus\")}`,\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tcolor: {\n\t\t\tdefault: {\n\t\t\t\tbackgroundColor: t(\"scrollmarker-background\"),\n\t\t\t\tcolor: t(\"scrollmarker-content\"),\n\t\t\t},\n\t\t\tbrand: {\n\t\t\t\tbackgroundColor: t(\"color-background-accent\"),\n\t\t\t\tcolor: t(\"color-content-on-accent\"),\n\t\t\t},\n\t\t},\n\t\t// Hardcoded frame dimensions mirror Figma's fixed sizes (icon-only 40px circle,\n\t\t// with-text 38px pill row), which the token set does not expose as spacing values.\n\t\ttype: {\n\t\t\ticonOnly: { width: \"40px\", height: \"40px\", padding: 0 },\n\t\t\twithText: {\n\t\t\t\theight: \"38px\",\n\t\t\t\tpaddingInline: t(\"padding-12\"),\n\t\t\t\tgap: t(\"gap-8\"),\n\t\t\t},\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tcolor: \"default\",\n\t\ttype: \"iconOnly\",\n\t},\n});\n\n// Descendant target must be a global rule; vanilla-extract disallows it inside `selectors`.\nglobalStyle(`${scrollMarkerBase} [data-slot='icon']`, {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.css.js","names":[],"sources":["../../../src/components/Sheet/Sheet.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { t } from \"../../tokens/index.js\";\n\n/* ── Sheet (bare content surface) ─────────────────────────────────────── */\n\n/* `0 1 auto` hugs content but yields once the parent runs out of room, so an inline\n sheet never pushes its actions past the parent's edge. `1 1 auto` forced every\n inline consumer to override `flex`, and the natural override — `0 0 auto` — quietly\n deleted the shrink the body's scrolling depends on. `overflow-y` is the last\n resort: inert until the actions alone outgrow the sheet, where scrolling the whole\n sheet is the only thing that keeps them reachable. */\nexport const sheetRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflex: \"0 1 auto\",\n\tminHeight: 0,\n\tmaxHeight: \"100%\",\n\toverflowY: \"auto\",\n\twidth: \"100%\",\n\tboxSizing: \"border-box\",\n\tbackgroundColor: t(\"elevation-2-background\"),\n\tcolor: t(\"color-content-default\"),\n\tfontFamily: t(\"font-family-body\"),\n\tfontSize: t(\"font-size-body\"),\n\tlineHeight: t(\"line-height-body\"),\n});\n\n/* ── Sheet.Header ─────────────────────────────────────────────────────── */\n\nexport const sheetHeader = style({\n\tposition: \"relative\",\n\tflexShrink: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n\t// Figma: fixed 56px header height.\n\theight: \"56px\",\n\tpaddingInline: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n});\n\nexport const sheetHeaderTitle = style({\n\tmargin: 0,\n\tcolor: t(\"color-content-default\"),\n\tfontFamily: t(\"font-family-body\"),\n\tfontWeight: t(\"font-weight-medium\"),\n\tfontSize: t(\"font-size-body\"),\n\tlineHeight: t(\"line-height-body\"),\n\ttextAlign: \"center\",\n});\n\n// Edge buttons are pinned (absolute) so the title stays centered even with a\n// single button present. Logical insets mirror correctly under RTL.\nexport const sheetHeaderStart = style({\n\tposition: \"absolute\",\n\tinsetInlineStart: t(\"padding-12\"),\n\ttop: 0,\n\tbottom: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n});\n\nexport const sheetHeaderEnd = style({\n\tposition: \"absolute\",\n\tinsetInlineEnd: t(\"padding-12\"),\n\ttop: 0,\n\tbottom: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n});\n\n// Back is a reading-direction affordance: the chevron mirrors under RTL.\nexport const sheetBackIcon = style({\n\tselectors: {\n\t\t'[dir=\"rtl\"] &': { transform: \"scaleX(-1)\" },\n\t},\n});\n\n/* ── Sheet.Body ───────────────────────────────────────────────────────── */\n\n// flex:0 1 auto + overflow:auto is the single rule that makes the body scroll\n// when a parent caps the height (floating) and hug content when uncapped\n// (inline) — with no mode flag.\nexport const sheetBody = style({\n\tflex: \"0 1 auto\",\n\t// Floor so a squeezed body keeps one option row rather than collapsing to\n\t// nothing: past this the sheet itself scrolls instead.\n\tminHeight: t(\"spacing-48\"),\n\toverflowY: \"auto\",\n\tpadding: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n\tscrollbarWidth: \"thin\",\n\tscrollbarColor: `${t(\"color-border-default\")} transparent`,\n});\n\n/* ── Sheet.Actions ────────────────────────────────────────────────────── */\n\nexport const sheetActions = style({\n\tflexShrink: 0,\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"stretch\",\n\tgap: t(\"gap-12\"),\n\tpadding: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Sheet.css.js","names":[],"sources":["../../../src/components/Sheet/Sheet.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography, typographyVariant } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n/* ── Sheet (bare content surface) ─────────────────────────────────────── */\n\n/* `0 1 auto` hugs content but yields once the parent runs out of room, so an inline\n sheet never pushes its actions past the parent's edge. `1 1 auto` forced every\n inline consumer to override `flex`, and the natural override — `0 0 auto` — quietly\n deleted the shrink the body's scrolling depends on. `overflow-y` is the last\n resort: inert until the actions alone outgrow the sheet, where scrolling the whole\n sheet is the only thing that keeps them reachable. */\nexport const sheetRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflex: \"0 1 auto\",\n\tminHeight: 0,\n\tmaxHeight: \"100%\",\n\toverflowY: \"auto\",\n\twidth: \"100%\",\n\tboxSizing: \"border-box\",\n\tbackgroundColor: t(\"elevation-2-background\"),\n\tcolor: t(\"color-content-default\"),\n\t// Inherited weight: the sheet body sets no weight of its own.\n\t...typographyVariant(\"body\"),\n});\n\n/* ── Sheet.Header ─────────────────────────────────────────────────────── */\n\nexport const sheetHeader = style({\n\tposition: \"relative\",\n\tflexShrink: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n\t// Figma: fixed 56px header height.\n\theight: \"56px\",\n\tpaddingInline: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n});\n\nexport const sheetHeaderTitle = style({\n\tmargin: 0,\n\tcolor: t(\"color-content-default\"),\n\t...typography(\"body\", \"medium\"),\n\ttextAlign: \"center\",\n});\n\n// Edge buttons are pinned (absolute) so the title stays centered even with a\n// single button present. Logical insets mirror correctly under RTL.\nexport const sheetHeaderStart = style({\n\tposition: \"absolute\",\n\tinsetInlineStart: t(\"padding-12\"),\n\ttop: 0,\n\tbottom: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n});\n\nexport const sheetHeaderEnd = style({\n\tposition: \"absolute\",\n\tinsetInlineEnd: t(\"padding-12\"),\n\ttop: 0,\n\tbottom: 0,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n});\n\n// Back is a reading-direction affordance: the chevron mirrors under RTL.\nexport const sheetBackIcon = style({\n\tselectors: {\n\t\t'[dir=\"rtl\"] &': { transform: \"scaleX(-1)\" },\n\t},\n});\n\n/* ── Sheet.Body ───────────────────────────────────────────────────────── */\n\n// flex:0 1 auto + overflow:auto is the single rule that makes the body scroll\n// when a parent caps the height (floating) and hug content when uncapped\n// (inline) — with no mode flag.\nexport const sheetBody = style({\n\tflex: \"0 1 auto\",\n\t// Floor so a squeezed body keeps one option row rather than collapsing to\n\t// nothing: past this the sheet itself scrolls instead.\n\tminHeight: t(\"spacing-48\"),\n\toverflowY: \"auto\",\n\tpadding: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n\tscrollbarWidth: \"thin\",\n\tscrollbarColor: `${t(\"color-border-default\")} transparent`,\n});\n\n/* ── Sheet.Actions ────────────────────────────────────────────────────── */\n\nexport const sheetActions = style({\n\tflexShrink: 0,\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"stretch\",\n\tgap: t(\"gap-12\"),\n\tpadding: t(\"padding-12\"),\n\tboxSizing: \"border-box\",\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"SurveyRating.css.js","names":[],"sources":["../../../../src/components/Survey/SurveyRating/SurveyRating.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { t } from \"../../../tokens/index.js\";\n\nexport const surveyRatingRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-8\"),\n\twidth: \"fit-content\",\n});\n\nexport const surveyRatingScale = style({\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n\tgap: t(\"gap-8\"),\n\twidth: \"100%\",\n});\n\nexport const surveyRatingLabels = style({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\",\n\twidth: \"100%\",\n\tfontFamily: t(\"font-family-body\"),\n\tfontWeight: t(\"font-weight-regular\"),\n\tfontSize: t(\"font-size-caption\"),\n\tlineHeight: t(\"line-height-caption\"),\n\tcolor: t(\"color-content-secondary\"),\n});\n"],"mappings":""}
1
+ {"version":3,"file":"SurveyRating.css.js","names":[],"sources":["../../../../src/components/Survey/SurveyRating/SurveyRating.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../../styles/typography.js\";\nimport { t } from \"../../../tokens/index.js\";\n\nexport const surveyRatingRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-8\"),\n\twidth: \"fit-content\",\n});\n\nexport const surveyRatingScale = style({\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\",\n\tgap: t(\"gap-8\"),\n\twidth: \"100%\",\n});\n\nexport const surveyRatingLabels = style({\n\tdisplay: \"flex\",\n\tjustifyContent: \"space-between\",\n\twidth: \"100%\",\n\t...typography(\"caption\", \"regular\"),\n\tcolor: t(\"color-content-secondary\"),\n});\n"],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export declare const textRoot: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ variant: {
3
+ body: import("@vanilla-extract/css").StyleRule;
4
+ caption: import("@vanilla-extract/css").StyleRule;
5
+ "title-small": import("@vanilla-extract/css").StyleRule;
6
+ "title-large": import("@vanilla-extract/css").StyleRule;
7
+ };
8
+ weight: {
9
+ regular: import("@vanilla-extract/css").StyleRule;
10
+ medium: import("@vanilla-extract/css").StyleRule;
11
+ "semi-bold": import("@vanilla-extract/css").StyleRule;
12
+ };
13
+ }>;
@@ -0,0 +1,28 @@
1
+ import { createRuntimeFn as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
2
+ /* empty css */
3
+ //#region src/components/Text/Text.css.ts
4
+ var t = e({
5
+ defaultClassName: "_17fuu3y0",
6
+ variantClassNames: {
7
+ variant: {
8
+ body: "_17fuu3y1",
9
+ caption: "_17fuu3y2",
10
+ "title-small": "_17fuu3y3",
11
+ "title-large": "_17fuu3y4"
12
+ },
13
+ weight: {
14
+ regular: "_17fuu3y5",
15
+ medium: "_17fuu3y6",
16
+ "semi-bold": "_17fuu3y7"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ variant: "body",
21
+ weight: "regular"
22
+ },
23
+ compoundVariants: []
24
+ });
25
+ //#endregion
26
+ export { t as textRoot };
27
+
28
+ //# sourceMappingURL=Text.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.css.js","names":[],"sources":["../../../src/components/Text/Text.css.ts"],"sourcesContent":["import { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\ttypographyVariant,\n\ttypographyWeight,\n} from \"../../styles/typography.js\";\n\nexport const textRoot = recipe({\n\tbase: {\n\t\t// Lovelace ships no global reset, so a consumer's `as=\"p\"` or\n\t\t// `\"h2\"` would otherwise arrive with whichever UA block margin the\n\t\t// embedding document leaves in place. Same reasoning as `messageProse`.\n\t\tmargin: 0,\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tbody: typographyVariant(\"body\"),\n\t\t\tcaption: typographyVariant(\"caption\"),\n\t\t\t\"title-small\": typographyVariant(\"title-small\"),\n\t\t\t\"title-large\": typographyVariant(\"title-large\"),\n\t\t},\n\t\tweight: {\n\t\t\tregular: typographyWeight(\"regular\"),\n\t\t\tmedium: typographyWeight(\"medium\"),\n\t\t\t\"semi-bold\": typographyWeight(\"semi-bold\"),\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"body\",\n\t\tweight: \"regular\",\n\t},\n});\n"],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import type { HTMLAttributes, Ref } from "react";
2
+ import type { TextVariant, TextWeight } from "../../styles/typography.js";
3
+ export interface TextProps extends HTMLAttributes<HTMLElement> {
4
+ /**
5
+ * Which semantic type tier to render at. Mirrors the Figma variable names.
6
+ */
7
+ variant?: TextVariant;
8
+ weight?: TextWeight;
9
+ /**
10
+ * The element to render. Defaults to `<span>`.
11
+ *
12
+ * Not for headings: a heading takes its level from its role, so compose RAC's
13
+ * `Heading` there instead, as `Dialog.Title` does.
14
+ */
15
+ as?: keyof HTMLElementTagNameMap;
16
+ ref?: Ref<HTMLElement>;
17
+ }
18
+ /**
19
+ * Text at one of the four semantic type tiers.
20
+ *
21
+ * Tier and weight are independent axes because they are independent in
22
+ * practice: `body` ships at `regular` on seven components and `medium` on
23
+ * seven others.
24
+ *
25
+ * Use this for a piece of text that owns its own element. A component whose
26
+ * type sits on its own root — a `<button>`, a `<label>`, a toast — spreads
27
+ * `typography()` into that root's class instead, rather than nesting a `Text`
28
+ * inside itself.
29
+ */
30
+ export declare function Text({ variant, weight, className, as: Element, ...rest }: TextProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { cx as e } from "../../utils/cx.js";
2
+ import { textRoot as t } from "./Text.css.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/components/Text/Text.tsx
5
+ function r({ variant: r = "body", weight: i = "regular", className: a, as: o = "span", ...s }) {
6
+ return /* @__PURE__ */ n(o, {
7
+ ...s,
8
+ className: e(t({
9
+ variant: r,
10
+ weight: i
11
+ }), a)
12
+ });
13
+ }
14
+ //#endregion
15
+ export { r as Text };
16
+
17
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.js","names":[],"sources":["../../../src/components/Text/Text.tsx"],"sourcesContent":["import type { ElementType, HTMLAttributes, Ref } from \"react\";\nimport type { TextVariant, TextWeight } from \"../../styles/typography.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { textRoot } from \"./Text.css.js\";\n\nexport interface TextProps extends HTMLAttributes<HTMLElement> {\n\t/**\n\t * Which semantic type tier to render at. Mirrors the Figma variable names.\n\t */\n\tvariant?: TextVariant;\n\tweight?: TextWeight;\n\t/**\n\t * The element to render. Defaults to `<span>`.\n\t *\n\t * Not for headings: a heading takes its level from its role, so compose RAC's\n\t * `Heading` there instead, as `Dialog.Title` does.\n\t */\n\tas?: keyof HTMLElementTagNameMap;\n\tref?: Ref<HTMLElement>;\n}\n\n/**\n * Text at one of the four semantic type tiers.\n *\n * Tier and weight are independent axes because they are independent in\n * practice: `body` ships at `regular` on seven components and `medium` on\n * seven others.\n *\n * Use this for a piece of text that owns its own element. A component whose\n * type sits on its own root — a `<button>`, a `<label>`, a toast — spreads\n * `typography()` into that root's class instead, rather than nesting a `Text`\n * inside itself.\n */\nexport function Text({\n\tvariant = \"body\",\n\tweight = \"regular\",\n\tclassName,\n\tas: Element = \"span\",\n\t...rest\n}: TextProps) {\n\tconst Component = Element as ElementType;\n\treturn (\n\t\t<Component\n\t\t\t{...rest}\n\t\t\tclassName={cx(textRoot({ variant, weight }), className)}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;AAiCA,SAAgB,EAAK,EACpB,aAAU,QACV,YAAS,WACT,cACA,IAAI,IAAU,QACd,GAAG,KACU;AAEb,QACC,kBAFiB,GAEjB;EACC,GAAI;EACJ,WAAW,EAAG,EAAS;GAAE;GAAS;GAAQ,CAAC,EAAE,EAAU;EACtD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type { TextVariant, TextWeight } from "../../styles/typography.js";
2
+ export type { TextProps } from "./Text.js";
3
+ export { Text } from "./Text.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ThinkingShimmer.css.js","names":[],"sources":["../../../src/components/ThinkingShimmer/ThinkingShimmer.css.ts"],"sourcesContent":["import { keyframes, style } from \"@vanilla-extract/css\";\nimport { t } from \"../../tokens/index.js\";\n\n// The base is the *secondary* content token, so the color each glyph shows most of\n// the time — and at rest — reads as a transient status line rather than body text,\n// while a glint sweeps across it (same model as the legacy `ui` shimmer).\n// Secondary is the lightest content-tier token that still clears WCAG AA in both\n// themes (5.05:1 on the light surface, 7.81:1 on dark). Legacy's shimmer is lighter\n// still, but it hardcodes #e8e8e8→#999999 at 1.23:1–2.85:1 with no dark variant;\n// matching it exactly would be a contrast waiver, not a token choice.\nconst shimmerBase = t(\"color-content-secondary\");\n// The glint moves AWAY from the surface rather than toward it — darker than the base in\n// light mode (#181a1e on #ffffff), lighter in dark (#ffffff on #181a1e). Stating it as\n// \"lighter\" or \"darker\" is wrong in one theme or the other; what holds in both is that\n// it is the higher-contrast end, 17.42:1.\n//\n// That direction is forced, not a preference. The gradient is clipped to the text, so\n// every stop is a glyph colour and owes AA, and per the note above\n// `color-content-secondary` is already the lightest neutral content token that clears\n// it — so no lighter glint exists. Enumerated the whole content tier to be sure: the\n// only AA-passing tokens lighter in light mode are `success`/`warning`, status hues and\n// wrong for a neutral status line.\n//\n// This was `color-border-default` — a NON-text token, 1.47:1 light and 1.69:1 dark, i.e.\n// under even the 3:1 non-text floor, which made the mid-sweep glyphs very nearly\n// invisible and was exactly the waiver the note above refuses.\nconst shimmerGlint = t(\"color-content-default\");\nexport const restingColor = t(\"color-content-secondary\");\n\n// Exported so the AA test can read the stops out of the gradient itself rather than a\n// hand-kept list of colours beside it. A stop added as a `t()` token is then checked\n// automatically; one written as a literal is NOT — the scrape only sees `var()` — so a\n// companion test rejects colour literals here rather than letting one ship unchecked.\nexport const shimmerGradient = `linear-gradient(90deg, ${shimmerBase} 0%, ${shimmerBase} 35%, ${shimmerGlint} 50%, ${shimmerBase} 65%, ${shimmerBase} 100%)`;\n\n// One smooth, constant-velocity sweep (linear). The gradient tiles\n// (background-repeat) and each cycle translates by exactly one tile width (200%),\n// so the loop is seamless and the text is always fully covered — no transparent\n// glyphs mid-sweep, no easing pulse.\nconst sweep = keyframes({\n\t\"0%\": { backgroundPositionX: \"200%\" },\n\t\"100%\": { backgroundPositionX: \"0%\" },\n});\n\n// Staggered vertical bounce for the ellipsis, via `vertical-align` — NOT\n// `top`/`transform`, which promote the dot to its own compositing layer and drop it\n// out of the root's `-webkit-background-clip: text`, leaving it invisible.\nconst dotBounce = keyframes({\n\t\"0%, 80%, 100%\": { verticalAlign: \"0\" },\n\t\"40%\": { verticalAlign: \"0.3em\" },\n});\n\nexport const root = style({\n\tdisplay: \"inline-block\",\n\tfontFamily: t(\"font-family-body\"),\n\tfontWeight: t(\"font-weight-medium\"),\n\tfontSize: t(\"font-size-body\"),\n\tlineHeight: t(\"line-height-body\"),\n\twhiteSpace: \"nowrap\",\n\t// A gradient clipped to the text and swept across it. The dots are plain inline\n\t// descendants covered by this same clip, so one band flows through the whole\n\t// label. Stops reference the tokens directly (currentColor can't express the\n\t// theme-aware stops); in dark mode they invert so the sweep keeps matching the\n\t// surface.\n\tbackgroundImage: shimmerGradient,\n\tbackgroundSize: \"200% 100%\",\n\tbackgroundRepeat: \"repeat\",\n\tbackgroundClip: \"text\",\n\tWebkitBackgroundClip: \"text\",\n\tcolor: \"transparent\",\n\tWebkitTextFillColor: \"transparent\",\n\tanimation: `${sweep} 2s linear infinite`,\n\t\"@media\": {\n\t\t// Reduced motion: hold the shimmer static at a flat, muted resting color —\n\t\t// never signal the loading state with animation alone.\n\t\t\"(prefers-reduced-motion: reduce)\": {\n\t\t\tanimation: \"none\",\n\t\t\tbackgroundImage: \"none\",\n\t\t\tcolor: restingColor,\n\t\t\tWebkitTextFillColor: restingColor,\n\t\t},\n\t},\n});\n\n// Carries the announced status string as real text (live regions announce\n// rendered text, not `aria-label`), while staying out of the visual layout.\nexport const visuallyHidden = style({\n\tposition: \"absolute\",\n\twidth: 1,\n\theight: 1,\n\tpadding: 0,\n\tmargin: -1,\n\toverflow: \"hidden\",\n\tclip: \"rect(0, 0, 0, 0)\",\n\twhiteSpace: \"nowrap\",\n\tborder: 0,\n\t// Clipped text is still selectable, so a select-all over the transcript would\n\t// otherwise copy the announced status alongside the messages (EXP-1479).\n\tuserSelect: \"none\",\n\tWebkitUserSelect: \"none\",\n});\n\nexport const ellipsis = style({\n\tdisplay: \"inline\",\n});\n\nexport const dot = style({\n\t// Plain inline and unpositioned so the dots stay in the root's single text clip;\n\t// color and gradient are inherited, only the bounce (see `dotBounce`) moves them.\n\tdisplay: \"inline\",\n\t// Zero line-height so a bounced dot can't grow the line box and shift the whole\n\t// label; the raise fits within the root's existing line-height headroom.\n\tlineHeight: 0,\n\tanimation: `${dotBounce} 1.4s ease-in-out infinite`,\n\tselectors: {\n\t\t\"&:nth-child(2)\": { animationDelay: \"0.16s\" },\n\t\t\"&:nth-child(3)\": { animationDelay: \"0.32s\" },\n\t},\n\t\"@media\": {\n\t\t\"(prefers-reduced-motion: reduce)\": {\n\t\t\tanimation: \"none\",\n\t\t},\n\t},\n});\n"],"mappings":""}
1
+ {"version":3,"file":"ThinkingShimmer.css.js","names":[],"sources":["../../../src/components/ThinkingShimmer/ThinkingShimmer.css.ts"],"sourcesContent":["import { keyframes, style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// The base is the *secondary* content token, so the color each glyph shows most of\n// the time — and at rest — reads as a transient status line rather than body text,\n// while a glint sweeps across it (same model as the legacy `ui` shimmer).\n// Secondary is the lightest content-tier token that still clears WCAG AA in both\n// themes (5.05:1 on the light surface, 7.81:1 on dark). Legacy's shimmer is lighter\n// still, but it hardcodes #e8e8e8→#999999 at 1.23:1–2.85:1 with no dark variant;\n// matching it exactly would be a contrast waiver, not a token choice.\nconst shimmerBase = t(\"color-content-secondary\");\n// The glint moves AWAY from the surface rather than toward it — darker than the base in\n// light mode (#181a1e on #ffffff), lighter in dark (#ffffff on #181a1e). Stating it as\n// \"lighter\" or \"darker\" is wrong in one theme or the other; what holds in both is that\n// it is the higher-contrast end, 17.42:1.\n//\n// That direction is forced, not a preference. The gradient is clipped to the text, so\n// every stop is a glyph colour and owes AA, and per the note above\n// `color-content-secondary` is already the lightest neutral content token that clears\n// it — so no lighter glint exists. Enumerated the whole content tier to be sure: the\n// only AA-passing tokens lighter in light mode are `success`/`warning`, status hues and\n// wrong for a neutral status line.\n//\n// This was `color-border-default` — a NON-text token, 1.47:1 light and 1.69:1 dark, i.e.\n// under even the 3:1 non-text floor, which made the mid-sweep glyphs very nearly\n// invisible and was exactly the waiver the note above refuses.\nconst shimmerGlint = t(\"color-content-default\");\nexport const restingColor = t(\"color-content-secondary\");\n\n// Exported so the AA test can read the stops out of the gradient itself rather than a\n// hand-kept list of colours beside it. A stop added as a `t()` token is then checked\n// automatically; one written as a literal is NOT — the scrape only sees `var()` — so a\n// companion test rejects colour literals here rather than letting one ship unchecked.\nexport const shimmerGradient = `linear-gradient(90deg, ${shimmerBase} 0%, ${shimmerBase} 35%, ${shimmerGlint} 50%, ${shimmerBase} 65%, ${shimmerBase} 100%)`;\n\n// One smooth, constant-velocity sweep (linear). The gradient tiles\n// (background-repeat) and each cycle translates by exactly one tile width (200%),\n// so the loop is seamless and the text is always fully covered — no transparent\n// glyphs mid-sweep, no easing pulse.\nconst sweep = keyframes({\n\t\"0%\": { backgroundPositionX: \"200%\" },\n\t\"100%\": { backgroundPositionX: \"0%\" },\n});\n\n// Staggered vertical bounce for the ellipsis, via `vertical-align` — NOT\n// `top`/`transform`, which promote the dot to its own compositing layer and drop it\n// out of the root's `-webkit-background-clip: text`, leaving it invisible.\nconst dotBounce = keyframes({\n\t\"0%, 80%, 100%\": { verticalAlign: \"0\" },\n\t\"40%\": { verticalAlign: \"0.3em\" },\n});\n\nexport const root = style({\n\tdisplay: \"inline-block\",\n\t...typography(\"body\", \"medium\"),\n\twhiteSpace: \"nowrap\",\n\t// A gradient clipped to the text and swept across it. The dots are plain inline\n\t// descendants covered by this same clip, so one band flows through the whole\n\t// label. Stops reference the tokens directly (currentColor can't express the\n\t// theme-aware stops); in dark mode they invert so the sweep keeps matching the\n\t// surface.\n\tbackgroundImage: shimmerGradient,\n\tbackgroundSize: \"200% 100%\",\n\tbackgroundRepeat: \"repeat\",\n\tbackgroundClip: \"text\",\n\tWebkitBackgroundClip: \"text\",\n\tcolor: \"transparent\",\n\tWebkitTextFillColor: \"transparent\",\n\tanimation: `${sweep} 2s linear infinite`,\n\t\"@media\": {\n\t\t// Reduced motion: hold the shimmer static at a flat, muted resting color —\n\t\t// never signal the loading state with animation alone.\n\t\t\"(prefers-reduced-motion: reduce)\": {\n\t\t\tanimation: \"none\",\n\t\t\tbackgroundImage: \"none\",\n\t\t\tcolor: restingColor,\n\t\t\tWebkitTextFillColor: restingColor,\n\t\t},\n\t},\n});\n\n// Carries the announced status string as real text (live regions announce\n// rendered text, not `aria-label`), while staying out of the visual layout.\nexport const visuallyHidden = style({\n\tposition: \"absolute\",\n\twidth: 1,\n\theight: 1,\n\tpadding: 0,\n\tmargin: -1,\n\toverflow: \"hidden\",\n\tclip: \"rect(0, 0, 0, 0)\",\n\twhiteSpace: \"nowrap\",\n\tborder: 0,\n\t// Clipped text is still selectable, so a select-all over the transcript would\n\t// otherwise copy the announced status alongside the messages (EXP-1479).\n\tuserSelect: \"none\",\n\tWebkitUserSelect: \"none\",\n});\n\nexport const ellipsis = style({\n\tdisplay: \"inline\",\n});\n\nexport const dot = style({\n\t// Plain inline and unpositioned so the dots stay in the root's single text clip;\n\t// color and gradient are inherited, only the bounce (see `dotBounce`) moves them.\n\tdisplay: \"inline\",\n\t// Zero line-height so a bounced dot can't grow the line box and shift the whole\n\t// label; the raise fits within the root's existing line-height headroom.\n\tlineHeight: 0,\n\tanimation: `${dotBounce} 1.4s ease-in-out infinite`,\n\tselectors: {\n\t\t\"&:nth-child(2)\": { animationDelay: \"0.16s\" },\n\t\t\"&:nth-child(3)\": { animationDelay: \"0.32s\" },\n\t},\n\t\"@media\": {\n\t\t\"(prefers-reduced-motion: reduce)\": {\n\t\t\tanimation: \"none\",\n\t\t},\n\t},\n});\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.css.js","names":[],"sources":["../../../src/components/Tooltip/Tooltip.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { t } from \"../../tokens/index.js\";\n\n// A filter, not a box-shadow, so the shadow wraps the arrow silhouette rather than\n// just the rectangular bubble.\nconst TOOLTIP_SHADOW = t(\"elevation-2-filter\");\n\nexport const tooltip = style({\n\tboxSizing: \"border-box\",\n\tmaxWidth: \"184px\",\n\tpadding: t(\"spacing-8\"),\n\tborderRadius: t(\"border-radius-6\"),\n\tbackgroundColor: t(\"color-background-inverse\"),\n\tcolor: t(\"color-content-inverse\"),\n\tfontFamily: t(\"font-family-body\"),\n\tfontWeight: t(\"font-weight-regular\"),\n\tfontSize: t(\"font-size-caption\"),\n\tlineHeight: t(\"line-height-caption\"),\n\ttextAlign: \"center\",\n\twordBreak: \"break-word\",\n\tfilter: TOOLTIP_SHADOW,\n\tselectors: {\n\t\t\"&[data-entering]\": { opacity: 0 },\n\t\t\"&[data-exiting]\": { opacity: 0 },\n\t},\n\t\"@media\": {\n\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t},\n\t},\n});\n\nexport const arrow = style({\n\tdisplay: \"block\",\n});\n\n// The triangle's apex points down (correct for a tooltip above its trigger);\n// each placement rotates it to point back at the trigger.\nexport const arrowSvg = style({\n\tdisplay: \"block\",\n\tfill: t(\"color-background-inverse\"),\n});\n\nglobalStyle(`${tooltip}[data-placement^=\"top\"] ${arrowSvg}`, {\n\ttransform: \"rotate(0deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"bottom\"] ${arrowSvg}`, {\n\ttransform: \"rotate(180deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"left\"] ${arrowSvg}`, {\n\ttransform: \"rotate(-90deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"right\"] ${arrowSvg}`, {\n\ttransform: \"rotate(90deg)\",\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Tooltip.css.js","names":[],"sources":["../../../src/components/Tooltip/Tooltip.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// A filter, not a box-shadow, so the shadow wraps the arrow silhouette rather than\n// just the rectangular bubble.\nconst TOOLTIP_SHADOW = t(\"elevation-2-filter\");\n\nexport const tooltip = style({\n\tboxSizing: \"border-box\",\n\tmaxWidth: \"184px\",\n\tpadding: t(\"spacing-8\"),\n\tborderRadius: t(\"border-radius-6\"),\n\tbackgroundColor: t(\"color-background-inverse\"),\n\tcolor: t(\"color-content-inverse\"),\n\t...typography(\"caption\", \"regular\"),\n\ttextAlign: \"center\",\n\twordBreak: \"break-word\",\n\tfilter: TOOLTIP_SHADOW,\n\tselectors: {\n\t\t\"&[data-entering]\": { opacity: 0 },\n\t\t\"&[data-exiting]\": { opacity: 0 },\n\t},\n\t\"@media\": {\n\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t},\n\t},\n});\n\nexport const arrow = style({\n\tdisplay: \"block\",\n});\n\n// The triangle's apex points down (correct for a tooltip above its trigger);\n// each placement rotates it to point back at the trigger.\nexport const arrowSvg = style({\n\tdisplay: \"block\",\n\tfill: t(\"color-background-inverse\"),\n});\n\nglobalStyle(`${tooltip}[data-placement^=\"top\"] ${arrowSvg}`, {\n\ttransform: \"rotate(0deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"bottom\"] ${arrowSvg}`, {\n\ttransform: \"rotate(180deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"left\"] ${arrowSvg}`, {\n\ttransform: \"rotate(-90deg)\",\n});\nglobalStyle(`${tooltip}[data-placement^=\"right\"] ${arrowSvg}`, {\n\ttransform: \"rotate(90deg)\",\n});\n"],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from "./components/Sheet/index.js";
29
29
  export * from "./components/SheetOverlay/index.js";
30
30
  export * from "./components/Spinner/index.js";
31
31
  export * from "./components/Survey/index.js";
32
+ export * from "./components/Text/index.js";
32
33
  export * from "./components/ThinkingShimmer/index.js";
33
34
  export * from "./components/Toast/index.js";
34
35
  export * from "./components/Toggle/index.js";
package/dist/index.js CHANGED
@@ -74,15 +74,16 @@ import { useSubmitOnEnter as be } from "./hooks/useSubmitOnEnter.js";
74
74
  import { Spinner as xe } from "./components/Spinner/Spinner.js";
75
75
  import { SurveyRating as Se } from "./components/Survey/SurveyRating/SurveyRating.js";
76
76
  import { SurveySelect as Ce } from "./components/Survey/SurveySelect/SurveySelect.js";
77
- import { ThinkingShimmer as we } from "./components/ThinkingShimmer/ThinkingShimmer.js";
78
- import { Toast as Te } from "./components/Toast/Toast.js";
79
- import { ToastContainer as Ee } from "./components/Toast/ToastContainer.js";
80
- import { ToastQueue as De } from "./components/Toast/index.js";
81
- import { Toggle as Oe } from "./components/Toggle/Toggle.js";
82
- import { Tooltip as ke, TooltipTrigger as Ae } from "./components/Tooltip/Tooltip.js";
83
- import { TypingIndicator as je } from "./components/TypingIndicator/TypingIndicator.js";
84
- import { UserMessage as Me } from "./components/UserMessage/UserMessage.js";
85
- import { VideoMessage as Ne } from "./components/VideoMessage/VideoMessage.js";
86
- import { LOVELACE_SURFACES as Pe, contrastRatioBetween as Fe, createBrandOverrides as Ie, isLegibleAgainst as Le, isLegibleOnSurface as Re, readableTextOnAccent as ze } from "./runtime/branding.js";
87
- import { LovelaceProvider as Be, useResolvedTheme as Ve } from "./runtime/LovelaceProvider.js";
88
- export { a as AdaLogo, e as AgentMessage, o as ArrowDown, s as ArrowLeft, c as ArrowNortheast, l as ArrowNorthwest, u as ArrowRight, t as AttachmentChip, r as Avatar, n as AvatarPlaceholder, V as Banner, H as BannerContainer, d as Bell, f as BellSlash, G as BubbleOverlay, K as Button, q as Checkbox, J as CheckboxGroup, p as Checkmark, m as CheckmarkCircle, h as ChevronLeft, g as ChevronRight, Y as Chip, _ as CloudUpload, X as Dialog, Z as DialogOverlay, Q as Divider, v as Document, y as Download, $ as DropZone, b as Ellipses, x as Email, S as ExclamationSync, C as ExclamationTriangle, w as Eye, T as EyeSlash, ee as FullscreenOverlay, te as Header, i as Icon, ne as IconButton, re as Image, ie as Input, Pe as LOVELACE_SURFACES, E as Language, ae as Link, Be as LovelaceProvider, D as MediaSlash, oe as Menu, se as MenuItem, ce as MessageError, le as MessageRow, O as MessagingFill, k as Minimize, A as Mute, j as Paperclip, M as PersonFill, ue as PictureMessage, de as PillButton, N as PlayFill, fe as ProactiveMessage, pe as Radio, me as RadioGroup, he as ScrollMarker, P as SendFill, ge as Sheet, _e as SheetOverlay, xe as Spinner, F as StarBadgeFill, Se as SurveyRating, Ce as SurveySelect, we as ThinkingShimmer, I as ThumbsDown, L as ThumbsUp, Te as Toast, Ee as ToastContainer, De as ToastQueue, Oe as Toggle, ke as Tooltip, Ae as TooltipTrigger, je as TypingIndicator, Me as UserMessage, Ne as VideoMessage, R as Volume, z as Xmark, B as XmarkCircle, Fe as contrastRatioBetween, Ie as createBrandOverrides, Le as isLegibleAgainst, Re as isLegibleOnSurface, ve as readPrefersReducedMotion, ze as readableTextOnAccent, U as useHasOpenOverlay, ye as usePrefersReducedMotion, W as useRegisterOverlay, Ve as useResolvedTheme, be as useSubmitOnEnter };
77
+ import { Text as we } from "./components/Text/Text.js";
78
+ import { ThinkingShimmer as Te } from "./components/ThinkingShimmer/ThinkingShimmer.js";
79
+ import { Toast as Ee } from "./components/Toast/Toast.js";
80
+ import { ToastContainer as De } from "./components/Toast/ToastContainer.js";
81
+ import { ToastQueue as Oe } from "./components/Toast/index.js";
82
+ import { Toggle as ke } from "./components/Toggle/Toggle.js";
83
+ import { Tooltip as Ae, TooltipTrigger as je } from "./components/Tooltip/Tooltip.js";
84
+ import { TypingIndicator as Me } from "./components/TypingIndicator/TypingIndicator.js";
85
+ import { UserMessage as Ne } from "./components/UserMessage/UserMessage.js";
86
+ import { VideoMessage as Pe } from "./components/VideoMessage/VideoMessage.js";
87
+ import { LOVELACE_SURFACES as Fe, contrastRatioBetween as Ie, createBrandOverrides as Le, isLegibleAgainst as Re, isLegibleOnSurface as ze, readableTextOnAccent as Be } from "./runtime/branding.js";
88
+ import { LovelaceProvider as Ve, useResolvedTheme as He } from "./runtime/LovelaceProvider.js";
89
+ export { a as AdaLogo, e as AgentMessage, o as ArrowDown, s as ArrowLeft, c as ArrowNortheast, l as ArrowNorthwest, u as ArrowRight, t as AttachmentChip, r as Avatar, n as AvatarPlaceholder, V as Banner, H as BannerContainer, d as Bell, f as BellSlash, G as BubbleOverlay, K as Button, q as Checkbox, J as CheckboxGroup, p as Checkmark, m as CheckmarkCircle, h as ChevronLeft, g as ChevronRight, Y as Chip, _ as CloudUpload, X as Dialog, Z as DialogOverlay, Q as Divider, v as Document, y as Download, $ as DropZone, b as Ellipses, x as Email, S as ExclamationSync, C as ExclamationTriangle, w as Eye, T as EyeSlash, ee as FullscreenOverlay, te as Header, i as Icon, ne as IconButton, re as Image, ie as Input, Fe as LOVELACE_SURFACES, E as Language, ae as Link, Ve as LovelaceProvider, D as MediaSlash, oe as Menu, se as MenuItem, ce as MessageError, le as MessageRow, O as MessagingFill, k as Minimize, A as Mute, j as Paperclip, M as PersonFill, ue as PictureMessage, de as PillButton, N as PlayFill, fe as ProactiveMessage, pe as Radio, me as RadioGroup, he as ScrollMarker, P as SendFill, ge as Sheet, _e as SheetOverlay, xe as Spinner, F as StarBadgeFill, Se as SurveyRating, Ce as SurveySelect, we as Text, Te as ThinkingShimmer, I as ThumbsDown, L as ThumbsUp, Ee as Toast, De as ToastContainer, Oe as ToastQueue, ke as Toggle, Ae as Tooltip, je as TooltipTrigger, Me as TypingIndicator, Ne as UserMessage, Pe as VideoMessage, R as Volume, z as Xmark, B as XmarkCircle, Ie as contrastRatioBetween, Le as createBrandOverrides, Re as isLegibleAgainst, ze as isLegibleOnSurface, ve as readPrefersReducedMotion, Be as readableTextOnAccent, U as useHasOpenOverlay, ye as usePrefersReducedMotion, W as useRegisterOverlay, He as useResolvedTheme, be as useSubmitOnEnter };