@quirekit/ui 0.1.0 → 0.2.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.
- package/dist/{catalog-TxH_u9wJ.mjs → catalog-Dn7izrV5.mjs} +545 -18
- package/dist/catalog-Dn7izrV5.mjs.map +1 -0
- package/dist/{chat-CDuOfk3d.mjs → chat-1THPEdHw.mjs} +6 -6
- package/dist/chat-1THPEdHw.mjs.map +1 -0
- package/dist/chat.d.mts +2 -2
- package/dist/chat.mjs +1 -1
- package/dist/{code-block-5fEEwwMN.mjs → code-block-BLzjRjTb.mjs} +2 -2
- package/dist/{code-block-5fEEwwMN.mjs.map → code-block-BLzjRjTb.mjs.map} +1 -1
- package/dist/{html-sandbox-BJeg9mHs.mjs → html-sandbox-D9a7iXbU.mjs} +2 -2
- package/dist/{html-sandbox-BJeg9mHs.mjs.map → html-sandbox-D9a7iXbU.mjs.map} +1 -1
- package/dist/html-sandbox.mjs +1 -1
- package/dist/{index-BOSlg0Xl.d.mts → index-BkzB7Lb6.d.mts} +279 -6
- package/dist/index-BkzB7Lb6.d.mts.map +1 -0
- package/dist/{index-CtgUjd_A.d.mts → index-DVBEYJNY.d.mts} +2 -2
- package/dist/{index-CtgUjd_A.d.mts.map → index-DVBEYJNY.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{model-DvNHVLwg.mjs → model-BjGYjpa9.mjs} +3 -3
- package/dist/{model-DvNHVLwg.mjs.map → model-BjGYjpa9.mjs.map} +1 -1
- package/dist/{resolve-DlCNcx0Q.mjs → resolve-nFmJOtS9.mjs} +2 -2
- package/dist/{resolve-DlCNcx0Q.mjs.map → resolve-nFmJOtS9.mjs.map} +1 -1
- package/dist/vue.d.mts +112 -104
- package/dist/vue.d.mts.map +1 -1
- package/dist/vue.mjs +155 -62
- package/dist/vue.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/dialog/index.ts +1 -1
- package/src/components/dialog/types.ts +5 -2
- package/src/components/icon/custom/formatting.ts +3 -0
- package/src/components/icon/custom/insert.ts +30 -0
- package/src/components/icon/custom/mind-map.ts +28 -0
- package/src/components/icon/custom.ts +3 -1
- package/src/components/icon/lucide.ts +21 -1
- package/src/components/icon/metadata.ts +277 -0
- package/src/locale/components/icon-catalog/en.ts +86 -2
- package/src/locale/components/icon-catalog/zh-hans.ts +86 -2
- package/src/vue/dialog/content.vue +29 -5
- package/src/vue/dialog/size.test.ts +61 -0
- package/src/vue/scroll-area/scroll-area.test.ts +10 -0
- package/src/vue/scroll-area/scroll-area.vue +1 -1
- package/src/vue/select/select.test.ts +18 -0
- package/src/vue/select/select.vue +3 -0
- package/src/vue/slider/slider.test.ts +13 -0
- package/src/vue/slider/slider.vue +4 -2
- package/src/vue/splitter/splitter.vue +1 -1
- package/src/vue/toolbar/items/body.vue +5 -3
- package/src/vue/toolbar/items/memo.test.ts +49 -0
- package/src/vue/toolbar/items/memo.ts +24 -0
- package/src/vue/toolbar/toolbar-split-button.test.ts +2 -0
- package/src/vue/toolbar/toolbar-split-button.vue +1 -0
- package/dist/catalog-TxH_u9wJ.mjs.map +0 -1
- package/dist/chat-CDuOfk3d.mjs.map +0 -1
- package/dist/index-BOSlg0Xl.d.mts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-DlCNcx0Q.mjs","names":["feedback","sizeNames","sizeDeclarations","flatDeclarations"],"sources":["../src/components/toggle-group/create.ts","../src/components/toggle-group/variables/declarations.ts","../src/components/checkbox-group/create.ts","../src/components/checkbox-group/variables/declarations.ts","../src/components/kbd/create.ts","../src/components/kbd/variables/declarations.ts","../src/components/skeleton/create.ts","../src/components/skeleton/variables/declarations.ts","../src/components/tag/create.ts","../src/components/tag/variables/declarations.ts","../src/components/badge/create.ts","../src/components/badge/variables/declarations.ts","../src/components/table/create.ts","../src/components/table/variables/declarations.ts","../src/components/control/modality.ts","../src/components/control/sizes.ts","../src/components/button/create.ts","../src/components/button/variables/names.ts","../src/components/button/variables/declarations.ts","../src/components/menu/create.ts","../src/components/menu/variables/names.ts","../src/components/menu/variables/declarations.ts","../src/components/menu/variables/references.ts","../src/components/popover/create.ts","../src/components/popover/variables/names.ts","../src/components/popover/variables/declarations.ts","../src/components/segmented/create.ts","../src/components/segmented/variables/names.ts","../src/components/segmented/variables/declarations.ts","../src/components/toolbar/create.ts","../src/components/toolbar/variables/names.ts","../src/components/toolbar/variables/declarations.ts","../src/components/tooltip/create.ts","../src/components/tooltip/variables/names.ts","../src/components/tooltip/variables/declarations.ts","../src/styles/theme.ts","../src/components/file-icon/resolve.ts"],"sourcesContent":["import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitToggleGroupTokens } from \"./types\";\n/**\n * Derives group layout from existing semantic roles; child controls keep their own sizes.\n * @param theme - Current theme.\n * @returns Group-level configuration.\n */\nexport function createToggleGroupTokens(theme: QuireKitTheme): QuireKitToggleGroupTokens {\n return { gap: theme.spacing.inlineTight };\n}\n","import type { QuireKitToggleGroupTokens } from \"../types\";\n/**\n * Publishes direct component-to-CSS mappings for theme consumers and the atlas.\n * @param tokens - Group configuration.\n * @returns Group CSS declarations.\n */\nexport function createToggleGroupCssVariables(tokens: QuireKitToggleGroupTokens): Readonly<Record<string, string>> {\n return { \"--qk-toggle-group-gap\": tokens.gap };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitCheckboxGroupTokens } from \"./types\";\n/**\n * Derives group layout from existing semantic roles; child controls keep their own sizes.\n * @param theme - Current theme.\n * @returns Group-level configuration.\n */\nexport function createCheckboxGroupTokens(theme: QuireKitTheme): QuireKitCheckboxGroupTokens {\n return { gap: theme.spacing.inline, inlineGap: theme.spacing.surface, labelColor: theme.color.text.secondary };\n}\n","import type { QuireKitCheckboxGroupTokens } from \"../types\";\n/**\n * Publishes direct component-to-CSS mappings for theme consumers and the atlas.\n * @param tokens - Group configuration.\n * @returns Group CSS declarations.\n */\nexport function createCheckboxGroupCssVariables(tokens: QuireKitCheckboxGroupTokens): Readonly<Record<string, string>> {\n return { \"--qk-checkbox-group-gap\": tokens.gap, \"--qk-checkbox-group-inline-gap\": tokens.inlineGap, \"--qk-checkbox-group-label-color\": tokens.labelColor };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitKbdSize, QuireKitKbdSizeTokens, QuireKitKbdTokens } from \"./types\";\n\n/**\n * Derives quiet monospace keycaps that fit inside same-density controls.\n * @param theme - Current semantic theme.\n * @returns Key hint tokens, including three independent typography scales.\n */\nexport function createKbdTokens(theme: QuireKitTheme): QuireKitKbdTokens {\n return {\n foreground: theme.color.text.secondary, background: theme.color.surface.subtle,\n borderColor: theme.color.border.default, borderWidth: theme.borderWidth.default,\n radius: theme.radius.control, fontFamily: theme.typography.code.fontFamily,\n fontWeight: theme.typography.code.fontWeight, letterSpacing: theme.typography.code.letterSpacing,\n size: {\n xs: keycapSize(theme, \"xs\"), sm: keycapSize(theme, \"sm\"), md: keycapSize(theme, \"md\")\n\n }\n };\n}\n\n/**\n * Derives keycaps from typography, independently of surrounding control height.\n * @param theme - Semantic source for dimensions and typography.\n * @param size - Inline typography scale.\n * @returns Keycap dimensions; xs uses helper type to remain readable at compact height.\n */\nfunction keycapSize(theme: QuireKitTheme, size: QuireKitKbdSize): QuireKitKbdSizeTokens {\n const role = size === \"xs\" ? \"helper\" : size === \"sm\" ? \"body\" : \"heading\";\n const { inlineTight, inline } = theme.spacing;\n return {\n minHeight: `calc(${theme.typography[role].fontSize} * ${theme.typography[role].lineHeight})`,\n fontSize: theme.typography[size === \"md\" ? \"compact\" : \"helper\"].fontSize,\n // Multi-key labels such as \"⌘ + K\" need real side room inside the cap, not only single glyphs.\n paddingInline: size === \"xs\" ? inlineTight : size === \"sm\" ? inline : `calc(${inline} + ${inlineTight} / 2)`\n };\n}\n","import type { QuireKitKbdTokens } from \"../types\";\n/**\n * Projects key-hint roles and density mappings to CSS.\n * @param tokens - Key-hint configuration.\n * @returns Explicit CSS declarations.\n */\nexport function createKbdCssVariables(tokens: QuireKitKbdTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-kbd-foreground\": tokens.foreground, \"--qk-kbd-background\": tokens.background,\n \"--qk-kbd-border-color\": tokens.borderColor, \"--qk-kbd-border-width\": tokens.borderWidth,\n \"--qk-kbd-radius\": tokens.radius, \"--qk-kbd-font-family\": tokens.fontFamily,\n \"--qk-kbd-font-weight\": String(tokens.fontWeight), \"--qk-kbd-letter-spacing\": tokens.letterSpacing\n };\n for (const [size, roles] of Object.entries(tokens.size)) {\n variables[`--qk-kbd-${size}-min-height`] = roles.minHeight;\n variables[`--qk-kbd-${size}-font-size`] = roles.fontSize;\n variables[`--qk-kbd-${size}-padding-inline`] = roles.paddingInline;\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitSkeletonTokens } from \"./types\";\n/**\n * Derives decorative placeholder geometry and color from the active theme.\n * @param theme - Current theme.\n * @returns Skeleton configuration.\n */\nexport function createSkeletonTokens(theme: QuireKitTheme): QuireKitSkeletonTokens {\n return { background: theme.color.surface.hover, lineHeight: `calc(${theme.typography.body.fontSize} * ${theme.typography.body.lineHeight})`, radius: theme.radius.control, duration: `calc(${theme.motion.overlayDuration} * 8)`, easing: theme.motion.standardEasing, minimumOpacity: theme.opacity.muted, maximumOpacity: theme.opacity.opaque };\n}\n","import type { QuireKitSkeletonTokens } from \"../types\";\n/**\n * Publishes traceable placeholder CSS roles.\n * @param tokens - Skeleton configuration.\n * @returns Direct CSS projections.\n */\nexport function createSkeletonCssVariables(tokens: QuireKitSkeletonTokens): Readonly<Record<string, string>> {\n return { \"--qk-skeleton-background\": tokens.background, \"--qk-skeleton-line-height\": tokens.lineHeight, \"--qk-skeleton-radius\": tokens.radius, \"--qk-skeleton-duration\": tokens.duration, \"--qk-skeleton-easing\": tokens.easing, \"--qk-skeleton-minimum-opacity\": String(tokens.minimumOpacity), \"--qk-skeleton-maximum-opacity\": String(tokens.maximumOpacity) };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitTagColorTokens, QuireKitTagTokens } from \"./types\";\n\n/**\n * Maps static status labels to existing semantic colors, without a separate palette.\n * @param theme - Active semantic theme.\n * @returns Tag color and geometry configuration.\n */\nexport function createTagTokens(theme: QuireKitTheme): QuireKitTagTokens {\n const color = theme.color;\n return Object.freeze({\n paddingInline: theme.spacing.inline, paddingBlock: theme.spacing.inlineTight,\n gap: theme.spacing.inlineTight, radius: theme.radius.control, borderWidth: theme.borderWidth.default,\n color: {\n neutral: { text: color.text.secondary, surface: color.surface.subtle, border: color.border.default, solid: color.surface.inverse, onSolid: color.text.inverse },\n primary: { text: color.action.text, surface: color.action.soft, border: color.action.primary, solid: color.action.primary, onSolid: color.action.foreground },\n info: feedback(color.info), success: feedback(color.success), warning: feedback(color.warning), danger: feedback(color.danger)\n }\n });\n}\n\n/**\n * Selects only the five static tag roles from a feedback family.\n * @param color - Existing feedback semantics.\n * @returns The Tag color contract, without unrelated interaction states.\n */\nfunction feedback(color: QuireKitTheme[\"color\"][\"info\"]): QuireKitTagColorTokens {\n return { text: color.text, surface: color.surface, border: color.border, solid: color.solid, onSolid: color.onSolid };\n}\n","import type { QuireKitTagTokens } from \"../types\";\n\n/**\n * Emits direct tag-to-CSS projections for the theme and Token atlas.\n * @param tokens - Tag configuration.\n * @returns Component variable declarations.\n */\nexport function createTagCssVariables(tokens: QuireKitTagTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-tag-padding-inline\": tokens.paddingInline, \"--qk-tag-padding-block\": tokens.paddingBlock,\n \"--qk-tag-gap\": tokens.gap, \"--qk-tag-radius\": tokens.radius, \"--qk-tag-border-width\": tokens.borderWidth\n };\n for (const [family, roles] of Object.entries(tokens.color)) {\n for (const role of [\"text\", \"surface\", \"border\", \"solid\", \"onSolid\"] as const) {\n variables[`--qk-tag-${family}-${role === \"onSolid\" ? \"on-solid\" : role}`] = roles[role];\n }\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitBadgeColorTokens, QuireKitBadgeTokens } from \"./types\";\n\n/**\n * Maps notification markers to existing semantic colors, without a separate palette.\n * @param theme - Active semantic theme.\n * @returns Badge color and geometry configuration.\n */\nexport function createBadgeTokens(theme: QuireKitTheme): QuireKitBadgeTokens {\n const color = theme.color;\n return Object.freeze({\n paddingInline: theme.spacing.inlineTight, dotSize: theme.spacing.inline,\n size: {\n xs: { height: `calc(${theme.typography.helper.fontSize} * ${theme.typography.helper.lineHeight})`, fontSize: theme.typography.helper.fontSize },\n sm: { height: `calc(${theme.typography.compact.fontSize} * ${theme.typography.compact.lineHeight})`, fontSize: theme.typography.helper.fontSize },\n md: { height: `calc(${theme.typography.body.fontSize} * ${theme.typography.body.lineHeight})`, fontSize: theme.typography.compact.fontSize }\n },\n radius: theme.radius.pill, borderWidth: theme.borderWidth.default,\n color: {\n neutral: { text: color.text.secondary, surface: color.surface.subtle, border: color.border.default, solid: color.surface.inverse, onSolid: color.text.inverse },\n primary: { text: color.action.text, surface: color.action.soft, border: color.action.primary, solid: color.action.primary, onSolid: color.action.foreground },\n info: feedback(color.info), success: feedback(color.success), warning: feedback(color.warning), danger: feedback(color.danger)\n }\n });\n}\n\n/**\n * Selects only the five static badge roles from a feedback family.\n * @param color - Existing feedback semantics.\n * @returns The Badge color contract, without unrelated interaction states.\n */\nfunction feedback(color: QuireKitTheme[\"color\"][\"info\"]): QuireKitBadgeColorTokens {\n return { text: color.text, surface: color.surface, border: color.border, solid: color.solid, onSolid: color.onSolid };\n}\n","import type { QuireKitBadgeTokens } from \"../types\";\n\n/**\n * Emits direct badge-to-CSS projections for the theme and Token atlas.\n * @param tokens - Badge configuration.\n * @returns Component variable declarations.\n */\nexport function createBadgeCssVariables(tokens: QuireKitBadgeTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-badge-padding-inline\": tokens.paddingInline, \"--qk-badge-dot-size\": tokens.dotSize,\n \"--qk-badge-radius\": tokens.radius, \"--qk-badge-border-width\": tokens.borderWidth\n };\n for (const [size, roles] of Object.entries(tokens.size)) {\n variables[`--qk-badge-${size}-height`] = roles.height;\n variables[`--qk-badge-${size}-font-size`] = roles.fontSize;\n }\n for (const [family, roles] of Object.entries(tokens.color)) {\n for (const role of [\"text\", \"surface\", \"border\", \"solid\", \"onSolid\"] as const) {\n variables[`--qk-badge-${family}-${role === \"onSolid\" ? \"on-solid\" : role}`] = roles[role];\n }\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitTableTokens } from \"./types\";\n\n/**\n * Derives table roles without introducing a second palette or row-height scale.\n * @param theme - Current semantic theme.\n * @returns Table display tokens.\n */\nexport function createTableTokens(theme: QuireKitTheme): QuireKitTableTokens {\n return Object.freeze({\n foreground: theme.color.text.primary,\n mutedForeground: theme.color.text.secondary,\n headerBackground: theme.color.surface.page,\n currentBackground: theme.color.surface.selected,\n borderColor: theme.color.border.subtle,\n borderWidth: theme.borderWidth.default,\n compactPadding: theme.spacing.inline,\n padding: theme.spacing.surfaceCompact,\n comfortablePadding: theme.spacing.surface\n });\n}\n","import type { QuireKitTableTokens } from \"../types\";\n\n/**\n * Projects table configuration into directly traceable CSS variables.\n * @param tokens - Theme-derived table configuration.\n * @returns Explicit variable declarations.\n */\nexport function createTableCssVariables(tokens: QuireKitTableTokens): Readonly<Record<string, string>> {\n return Object.freeze({\n \"--qk-table-foreground\": tokens.foreground,\n \"--qk-table-muted-foreground\": tokens.mutedForeground,\n \"--qk-table-header-background\": tokens.headerBackground,\n \"--qk-table-current-background\": tokens.currentBackground,\n \"--qk-table-border-color\": tokens.borderColor,\n \"--qk-table-border-width\": tokens.borderWidth,\n \"--qk-table-compact-padding\": tokens.compactPadding,\n \"--qk-table-padding\": tokens.padding,\n \"--qk-table-comfortable-padding\": tokens.comfortablePadding\n });\n}\n","/** Keys that move focus and therefore switch the document to keyboard modality. */\nconst navigationKeys = new Set([\n \"Tab\", \"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\", \"PageUp\", \"PageDown\", \"F6\"\n]);\n\n/** Documents whose modality listeners are already installed. */\nconst trackedDocuments = new WeakSet<Document>();\n\n/**\n * Records the most recent input modality on `<html data-qk-modality>`.\n *\n * The keyboard focus ring reads this attribute so that focus returned programmatically after a\n * pointer interaction (closing a menu, popover or dialog) does not show a ring, even when the\n * browser reports `:focus-visible`. Installation is idempotent per document.\n *\n * @param ownerDocument - Document whose root receives the modality attribute.\n */\nexport function trackQuireKitInputModality(ownerDocument: Document): void {\n if (trackedDocuments.has(ownerDocument)) return;\n trackedDocuments.add(ownerDocument);\n const root = ownerDocument.documentElement;\n const apply = (modality: \"keyboard\" | \"pointer\"): void => {\n if (root.dataset.qkModality !== modality) root.dataset.qkModality = modality;\n };\n // Lazy installation (first popup mount) happens after the opening input; infer it from the still-focused trigger.\n if (root.dataset.qkModality === undefined && ownerDocument.activeElement !== ownerDocument.body) {\n apply(ownerDocument.activeElement?.matches(\":focus-visible\") ? \"keyboard\" : \"pointer\");\n }\n ownerDocument.addEventListener(\"pointerdown\", () => apply(\"pointer\"), { capture: true, passive: true });\n ownerDocument.addEventListener(\"keydown\", (event) => {\n if (navigationKeys.has(event.key) && !event.metaKey && !event.ctrlKey) apply(\"keyboard\");\n }, { capture: true, passive: true });\n}\n","import type { QuireKitControlSize } from \"./types\";\n\n/** 将公开 size 映射到已有语义 token,所有同排控件共用这份对应关系。 */\nexport const quireKitControlSizes = Object.freeze({\n xs: Object.freeze({ height: \"compact\", typography: \"compact\" }),\n sm: Object.freeze({ height: \"default\", typography: \"compact\" }),\n md: Object.freeze({ height: \"regular\", typography: \"control\" }),\n lg: Object.freeze({ height: \"comfortable\", typography: \"control\" }),\n xl: Object.freeze({ height: \"large\", typography: \"control\" })\n} as const satisfies Record<QuireKitControlSize, { readonly height: string; readonly typography: string }>);\n","import { quireKitControlSizes } from \"../control\";\nimport { parseQuireHexColor, quireContrastRatio } from \"../../tokens\";\nimport type { QuireKitTheme, QuireKitThemeColorScales } from \"../../theme\";\nimport type {\n QuireKitButtonColorTokens,\n QuireKitButtonTokens\n} from \"./types\";\n\n/**\n * Derives the approved Button and IconButton contract from semantic tokens.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Button and IconButton component tokens.\n */\nexport function createButtonTokens(theme: QuireKitTheme): QuireKitButtonTokens {\n const color = theme.color;\n return Object.freeze({\n fontFamily: theme.typography.control.fontFamily,\n fontWeight: theme.typography.body.fontWeight,\n letterSpacing: theme.typography.control.letterSpacing,\n size: Object.freeze({\n xs: Object.freeze({\n height: theme.control[quireKitControlSizes.xs.height],\n paddingInline: theme.spacing.inline,\n gap: theme.spacing.inlineTight,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.xs.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.xs.typography].lineHeight\n }),\n sm: Object.freeze({\n height: theme.control[quireKitControlSizes.sm.height],\n paddingInline: theme.spacing.surfaceCompact,\n gap: theme.spacing.inlineTight,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.sm.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.sm.typography].lineHeight\n }),\n md: Object.freeze({\n height: theme.control[quireKitControlSizes.md.height],\n paddingInline: theme.spacing.surfaceCompact,\n gap: theme.spacing.inline,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.md.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.md.typography].lineHeight\n }),\n lg: Object.freeze({\n height: theme.control[quireKitControlSizes.lg.height],\n paddingInline: theme.spacing.surface,\n gap: theme.spacing.inline,\n iconSize: theme.control.icon,\n radius: theme.radius.group,\n fontSize: theme.typography[quireKitControlSizes.lg.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.lg.typography].lineHeight\n }),\n xl: Object.freeze({\n height: theme.control[quireKitControlSizes.xl.height],\n paddingInline: theme.spacing.surface,\n gap: theme.spacing.inline,\n iconSize: theme.control.iconLarge,\n radius: theme.radius.group,\n fontSize: theme.typography[quireKitControlSizes.xl.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.xl.typography].lineHeight\n })\n }),\n color: Object.freeze({\n neutral: Object.freeze({\n foreground: color.text.secondary,\n solidForeground: color.text.inverse,\n solidBackground: color.surface.inverse,\n solidHoverBackground: theme.scales.neutral[10],\n solidPressedBackground: theme.scales.neutral[theme.scheme === \"light\" ? 11 : 9],\n softBackground: theme.scheme === \"light\" ? color.surface.hover : color.surface.subtle,\n softHoverBackground: theme.color.surface.selected,\n softPressedBackground: color.surface.pressed,\n borderColor: color.border.default\n }),\n primary: Object.freeze({\n foreground: color.action.text,\n solidForeground: color.action.foreground,\n solidBackground: color.action.primary,\n ...(color.action.primary === theme.scales.neutral[11]\n ? { solidHoverBackground: color.action.hover, solidPressedBackground: color.action.pressed }\n : solidBackgrounds(color.action.foreground, theme, theme.scales.primary)),\n softBackground: color.action.soft,\n softHoverBackground: color.action.softHover,\n softPressedBackground: color.action.softPressed,\n borderColor: color.action.primary\n }),\n info: feedbackColor(color.info, theme, theme.scales.info),\n success: feedbackColor(color.success, theme, theme.scales.success),\n warning: feedbackColor(color.warning, theme, theme.scales.warning),\n danger: feedbackColor(color.danger, theme, theme.scales.danger)\n }),\n disabled: Object.freeze({\n foreground: color.text.disabled,\n background: color.surface.disabled,\n borderColor: color.border.disabled\n }),\n borderWidth: theme.borderWidth.default,\n focusColor: color.border.focus,\n hoverOpacity: theme.opacity.hover,\n pressedOpacity: theme.opacity.pressed,\n feedbackDuration: theme.motion.feedbackDuration,\n feedbackEasing: theme.motion.standardEasing\n });\n}\n\n/**\n * Maps one semantic feedback family into the common Button color channels.\n *\n * @param color - Semantic feedback roles compiled from one registered base source.\n * @param theme - Theme carrying the interaction strengths.\n * @param scale - Existing eleven-step family palette.\n * @returns Immutable Button color channels shared by every visual variant.\n */\nfunction feedbackColor(\n color: QuireKitTheme[\"color\"][\"info\"],\n theme: QuireKitTheme,\n scale: QuireKitThemeColorScales[\"primary\"]\n): QuireKitButtonColorTokens {\n return Object.freeze({\n foreground: color.text,\n solidForeground: color.onSolid,\n solidBackground: color.solid,\n ...solidBackgrounds(color.onSolid, theme, scale),\n softBackground: color.surface,\n softHoverBackground: color.hoverSurface,\n softPressedBackground: color.pressedSurface,\n borderColor: color.border\n });\n}\n\n/**\n * Selects the regular scheme direction when labels remain readable.\n * @param foreground - Fixed solid label color.\n * @param theme - Owning light or dark scheme.\n * @param scale - Existing eleven-step family palette.\n * @returns Palette hover and pressed fills without generating new colors.\n */\nfunction solidBackgrounds(foreground: string, theme: QuireKitTheme, scale: QuireKitThemeColorScales[\"primary\"]) {\n const regular = theme.scheme === \"light\" ? [7, 8] as const : [5, 4] as const;\n const alternate = theme.scheme === \"light\" ? [5, 4] as const : [7, 8] as const;\n const label = parseQuireHexColor(foreground);\n const readable = regular.every(step => quireContrastRatio(label, parseQuireHexColor(scale[step])) >= 4.5);\n const steps = readable ? regular : alternate;\n return {\n solidHoverBackground: scale[steps[0]],\n solidPressedBackground: scale[steps[1]]\n };\n}\n","/** Explicit CSS-variable names for the approved Button component contract. */\nexport const buttonCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-button-font-family\",\n fontWeight: \"--qk-button-font-weight\",\n letterSpacing: \"--qk-button-letter-spacing\"\n }),\n size: Object.freeze({\n xs: sizeNames(\"xs\"),\n sm: sizeNames(\"sm\"),\n md: sizeNames(\"md\"),\n lg: sizeNames(\"lg\"),\n xl: sizeNames(\"xl\")\n }),\n color: Object.freeze({\n neutral: colorNames(\"neutral\"),\n primary: colorNames(\"primary\"),\n info: colorNames(\"info\"),\n success: colorNames(\"success\"),\n warning: colorNames(\"warning\"),\n danger: colorNames(\"danger\")\n }),\n disabled: Object.freeze({\n foreground: \"--qk-button-disabled-foreground\",\n background: \"--qk-button-disabled-background\",\n borderColor: \"--qk-button-disabled-border-color\"\n }),\n borderWidth: \"--qk-button-border-width\",\n focusColor: \"--qk-button-focus-color\",\n hoverOpacity: \"--qk-button-hover-opacity\",\n pressedOpacity: \"--qk-button-pressed-opacity\",\n feedbackDuration: \"--qk-button-feedback-duration\",\n feedbackEasing: \"--qk-button-feedback-easing\"\n} as const);\n\n/**\n * Declares the fixed CSS-variable fields owned by one public size.\n *\n * @param size - Public size name included in every declared variable.\n * @returns Explicit variable-name group for that size.\n */\nfunction sizeNames(size: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\") {\n return Object.freeze({\n height: `--qk-button-${size}-height`,\n paddingInline: `--qk-button-${size}-padding-inline`,\n gap: `--qk-button-${size}-gap`,\n iconSize: `--qk-button-${size}-icon-size`,\n radius: `--qk-button-${size}-radius`,\n fontSize: `--qk-button-${size}-font-size`,\n lineHeight: `--qk-button-${size}-line-height`\n } as const);\n}\n\n/**\n * Declares the fixed CSS-variable fields owned by one semantic color family.\n *\n * @param color - Public semantic color included in every declared variable.\n * @returns Explicit variable-name group for that color.\n */\nfunction colorNames(\n color: \"neutral\" | \"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\"\n) {\n return Object.freeze({\n foreground: `--qk-button-${color}-foreground`,\n solidForeground: `--qk-button-${color}-solid-foreground`,\n solidBackground: `--qk-button-${color}-solid-background`,\n solidHoverBackground: `--qk-button-${color}-solid-hover-background`,\n solidPressedBackground: `--qk-button-${color}-solid-pressed-background`,\n softBackground: `--qk-button-${color}-soft-background`,\n softHoverBackground: `--qk-button-${color}-soft-hover-background`,\n softPressedBackground: `--qk-button-${color}-soft-pressed-background`,\n borderColor: `--qk-button-${color}-border-color`\n } as const);\n}\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Button contract. */\nexport type QuireKitButtonCssVariableName = NestedStringValue<\n typeof buttonCssVariableNames\n>;\n","import type {\n QuireKitButtonSizeTokens,\n QuireKitButtonColorTokens,\n QuireKitButtonTokens\n} from \"../types\";\nimport {\n buttonCssVariableNames,\n type QuireKitButtonCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Button token contract to its explicit CSS variables.\n *\n * @param tokens - Approved Button component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createButtonCssVariables(\n tokens: QuireKitButtonTokens\n): Readonly<Record<QuireKitButtonCssVariableName, string>> {\n const name = buttonCssVariableNames;\n return Object.freeze({\n [name.typography.fontFamily]: tokens.fontFamily,\n [name.typography.fontWeight]: String(tokens.fontWeight),\n [name.typography.letterSpacing]: tokens.letterSpacing,\n ...sizeDeclarations(name.size.xs, tokens.size.xs),\n ...sizeDeclarations(name.size.sm, tokens.size.sm),\n ...sizeDeclarations(name.size.md, tokens.size.md),\n ...sizeDeclarations(name.size.lg, tokens.size.lg),\n ...sizeDeclarations(name.size.xl, tokens.size.xl),\n ...colorDeclarations(name.color.neutral, tokens.color.neutral),\n ...colorDeclarations(name.color.primary, tokens.color.primary),\n ...colorDeclarations(name.color.info, tokens.color.info),\n ...colorDeclarations(name.color.success, tokens.color.success),\n ...colorDeclarations(name.color.warning, tokens.color.warning),\n ...colorDeclarations(name.color.danger, tokens.color.danger),\n [name.disabled.foreground]: tokens.disabled.foreground,\n [name.disabled.background]: tokens.disabled.background,\n [name.disabled.borderColor]: tokens.disabled.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.focusColor]: tokens.focusColor,\n [name.hoverOpacity]: String(tokens.hoverOpacity),\n [name.pressedOpacity]: String(tokens.pressedOpacity),\n [name.feedbackDuration]: tokens.feedbackDuration,\n [name.feedbackEasing]: tokens.feedbackEasing\n }) as Readonly<Record<QuireKitButtonCssVariableName, string>>;\n}\n\n/**\n * Pairs one explicit size-variable group with matching component values.\n *\n * @param names - Explicit variable names for one public size.\n * @param value - Matching component-size values.\n * @returns Flat CSS declaration entries.\n */\nfunction sizeDeclarations(\n names: Readonly<Record<keyof QuireKitButtonSizeTokens, string>>,\n value: QuireKitButtonSizeTokens\n): Record<string, string> {\n return {\n [names.height]: value.height,\n [names.paddingInline]: value.paddingInline,\n [names.gap]: value.gap,\n [names.iconSize]: value.iconSize,\n [names.radius]: value.radius,\n [names.fontSize]: value.fontSize,\n [names.lineHeight]: value.lineHeight\n };\n}\n\n/**\n * Pairs one explicit color-variable group with matching component values.\n *\n * @param names - Explicit variable names for one semantic color.\n * @param value - Matching component-color values.\n * @returns Flat CSS declaration entries.\n */\nfunction colorDeclarations(\n names: Readonly<Record<keyof QuireKitButtonColorTokens, string>>,\n value: QuireKitButtonColorTokens\n): Record<string, string> {\n return {\n [names.foreground]: value.foreground,\n [names.solidForeground]: value.solidForeground,\n [names.solidBackground]: value.solidBackground,\n [names.solidHoverBackground]: value.solidHoverBackground,\n [names.solidPressedBackground]: value.solidPressedBackground,\n [names.softBackground]: value.softBackground,\n [names.softHoverBackground]: value.softHoverBackground,\n [names.softPressedBackground]: value.softPressedBackground,\n [names.borderColor]: value.borderColor\n };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitMenuTokens } from \"./types\";\n\n/**\n * Derives Menu component tokens from the approved semantic theme.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Menu component-token contract.\n */\nexport function createMenuTokens(theme: QuireKitTheme): QuireKitMenuTokens {\n return Object.freeze({\n typography: Object.freeze({\n fontFamily: theme.typography.compact.fontFamily,\n fontSize: theme.typography.compact.fontSize,\n lineHeight: theme.typography.compact.lineHeight,\n fontWeight: theme.typography.control.fontWeight,\n letterSpacing: theme.typography.compact.letterSpacing\n }),\n metadataTypography: Object.freeze({\n fontFamily: theme.typography.code.fontFamily,\n fontSize: theme.typography.helper.fontSize,\n lineHeight: theme.typography.helper.lineHeight\n }),\n color: Object.freeze({\n surface: theme.color.surface.overlay,\n border: theme.color.border.subtle,\n separator: theme.color.border.subtle,\n foreground: theme.color.text.secondary,\n highlightedForeground: theme.color.text.primary,\n highlightedBackground: theme.color.surface.hover,\n checkedBackground: theme.color.surface.selected,\n metadataForeground: theme.color.text.tertiary,\n disabledForeground: theme.color.text.disabled,\n dangerForeground: theme.color.danger.text,\n dangerHighlightedBackground: theme.color.danger.surface\n }),\n geometry: Object.freeze({\n contentWidth: \"200px\",\n contentPadding: theme.spacing.inlineTight,\n itemHeight: theme.control.regular,\n itemPaddingInline: theme.spacing.surfaceCompact,\n itemGap: theme.spacing.inline,\n iconSize: theme.control.icon,\n overlayRadius: theme.radius.overlay,\n itemRadius: theme.radius.control,\n borderWidth: theme.borderWidth.default,\n separatorWidth: theme.borderWidth.default,\n separatorInset: theme.spacing.inline,\n groupLabelPaddingBlock: theme.spacing.inlineTight,\n groupLabelPaddingInline: theme.spacing.surfaceCompact\n }),\n shadow: theme.elevation.overlay,\n layer: theme.layer.overlay,\n feedbackDuration: theme.motion.feedbackDuration,\n overlayDuration: theme.motion.overlayDuration,\n feedbackEasing: theme.motion.standardEasing,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing\n });\n}\n","/** Explicit CSS-variable names for the approved Menu component contract. */\nexport const menuCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-menu-font-family\",\n fontSize: \"--qk-menu-font-size\",\n lineHeight: \"--qk-menu-line-height\",\n fontWeight: \"--qk-menu-font-weight\",\n letterSpacing: \"--qk-menu-letter-spacing\"\n }),\n metadataTypography: Object.freeze({\n fontFamily: \"--qk-menu-metadata-font-family\",\n fontSize: \"--qk-menu-metadata-font-size\",\n lineHeight: \"--qk-menu-metadata-line-height\"\n }),\n color: Object.freeze({\n surface: \"--qk-menu-surface\",\n border: \"--qk-menu-border\",\n separator: \"--qk-menu-separator\",\n foreground: \"--qk-menu-foreground\",\n highlightedForeground: \"--qk-menu-highlighted-foreground\",\n highlightedBackground: \"--qk-menu-highlighted-background\",\n checkedBackground: \"--qk-menu-checked-background\",\n metadataForeground: \"--qk-menu-metadata-foreground\",\n disabledForeground: \"--qk-menu-disabled-foreground\",\n dangerForeground: \"--qk-menu-danger-foreground\",\n dangerHighlightedBackground: \"--qk-menu-danger-highlighted-background\"\n }),\n geometry: Object.freeze({\n contentWidth: \"--qk-menu-content-width\",\n contentPadding: \"--qk-menu-content-padding\",\n itemHeight: \"--qk-menu-item-height\",\n itemPaddingInline: \"--qk-menu-item-padding-inline\",\n itemGap: \"--qk-menu-item-gap\",\n iconSize: \"--qk-menu-icon-size\",\n overlayRadius: \"--qk-menu-overlay-radius\",\n itemRadius: \"--qk-menu-item-radius\",\n borderWidth: \"--qk-menu-border-width\",\n separatorWidth: \"--qk-menu-separator-width\",\n separatorInset: \"--qk-menu-separator-inset\",\n groupLabelPaddingBlock: \"--qk-menu-group-label-padding-block\",\n groupLabelPaddingInline: \"--qk-menu-group-label-padding-inline\"\n }),\n shadow: \"--qk-menu-shadow\",\n layer: \"--qk-menu-layer\",\n feedbackDuration: \"--qk-menu-feedback-duration\",\n overlayDuration: \"--qk-menu-overlay-duration\",\n feedbackEasing: \"--qk-menu-feedback-easing\",\n enterEasing: \"--qk-menu-enter-easing\",\n exitEasing: \"--qk-menu-exit-easing\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Menu contract. */\nexport type QuireKitMenuCssVariableName = NestedStringValue<\n typeof menuCssVariableNames\n>;\n","import type { QuireKitMenuTokens } from \"../types\";\nimport {\n menuCssVariableNames,\n type QuireKitMenuCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Menu token contract to its explicit CSS variables.\n *\n * @param tokens - Approved Menu component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createMenuCssVariables(\n tokens: QuireKitMenuTokens\n): Readonly<Record<QuireKitMenuCssVariableName, string>> {\n const name = menuCssVariableNames;\n return Object.freeze({\n ...flatDeclarations(name.typography, tokens.typography),\n ...flatDeclarations(name.metadataTypography, tokens.metadataTypography),\n ...flatDeclarations(name.color, tokens.color),\n ...flatDeclarations(name.geometry, tokens.geometry),\n [name.shadow]: tokens.shadow,\n [name.layer]: String(tokens.layer),\n [name.feedbackDuration]: tokens.feedbackDuration,\n [name.overlayDuration]: tokens.overlayDuration,\n [name.feedbackEasing]: tokens.feedbackEasing,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing\n }) as Readonly<Record<QuireKitMenuCssVariableName, string>>;\n}\n\n/**\n * Pairs one explicit variable-name group with matching component values.\n *\n * @param names - Explicit variable names.\n * @param values - Matching component-token values.\n * @returns Flat CSS declaration entries.\n */\nfunction flatDeclarations<T extends object>(\n names: Readonly<Record<string, string>>,\n values: T\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(values as Readonly<Record<string, string | number>>).map(\n ([key, value]) => [names[key], String(value)]\n )\n ) as Record<string, string>;\n}\n","import { menuCssVariableNames } from \"./names\";\n\n/** CSS-reference projection of every Menu component token. */\nexport const menuVariableReferences = Object.freeze({\n typography: mapReferences(menuCssVariableNames.typography),\n metadataTypography: mapReferences(menuCssVariableNames.metadataTypography),\n color: mapReferences(menuCssVariableNames.color),\n geometry: mapReferences(menuCssVariableNames.geometry),\n shadow: reference(menuCssVariableNames.shadow),\n layer: reference(menuCssVariableNames.layer),\n feedbackDuration: reference(menuCssVariableNames.feedbackDuration),\n overlayDuration: reference(menuCssVariableNames.overlayDuration),\n feedbackEasing: reference(menuCssVariableNames.feedbackEasing),\n enterEasing: reference(menuCssVariableNames.enterEasing),\n exitEasing: reference(menuCssVariableNames.exitEasing)\n});\n\n/**\n * Creates a CSS reference to an explicitly declared component variable.\n *\n * @param name - Declared CSS custom-property name.\n * @returns CSS variable reference.\n */\nfunction reference(name: string): string {\n return `var(${name})`;\n}\n\n/**\n * Projects one explicit component-variable group to CSS references.\n *\n * @param names - Approved variable names.\n * @returns Same-shaped CSS references.\n */\nfunction mapReferences<T extends Readonly<Record<string, string>>>(\n names: T\n): { readonly [Key in keyof T]: string } {\n return Object.freeze(\n Object.fromEntries(\n Object.entries(names).map(([key, name]) => [key, reference(name)])\n )\n ) as { readonly [Key in keyof T]: string };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitPopoverTokens } from \"./types\";\n\n/**\n * 从完整语义主题派生 Popover 组件 token。\n *\n * @param theme - 宿主已经解析完成的语义主题。\n * @returns 不可变的 Popover 组件 token。\n */\nexport function createPopoverTokens(\n theme: QuireKitTheme\n): QuireKitPopoverTokens {\n return Object.freeze({\n background: theme.color.surface.overlay,\n foreground: theme.color.text.primary,\n mutedForeground: theme.color.text.secondary,\n borderColor: theme.color.border.default,\n borderWidth: theme.borderWidth.default,\n radius: theme.radius.overlay,\n shadow: theme.elevation.overlay,\n padding: theme.spacing.surface,\n gap: theme.spacing.inline,\n arrowSize: theme.spacing.inline,\n closeSize: theme.control.default,\n closeRadius: theme.radius.control,\n closeHoverBackground: theme.color.surface.hover,\n closeForeground: theme.color.icon.secondary,\n focusColor: theme.color.border.focus,\n fontFamily: theme.typography.body.fontFamily,\n title: Object.freeze({\n fontSize: theme.typography.heading.fontSize,\n lineHeight: theme.typography.heading.lineHeight,\n fontWeight: theme.typography.heading.fontWeight,\n letterSpacing: theme.typography.heading.letterSpacing\n }),\n body: Object.freeze({\n fontSize: theme.typography.body.fontSize,\n lineHeight: theme.typography.body.lineHeight\n }),\n motionDuration: theme.motion.overlayDuration,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing,\n layer: theme.layer.overlay\n });\n}\n","/** Popover 组件合同的显式 CSS 变量名。 */\nexport const popoverCssVariableNames = Object.freeze({\n background: \"--qk-popover-background\",\n foreground: \"--qk-popover-foreground\",\n mutedForeground: \"--qk-popover-muted-foreground\",\n borderColor: \"--qk-popover-border-color\",\n borderWidth: \"--qk-popover-border-width\",\n radius: \"--qk-popover-radius\",\n shadow: \"--qk-popover-shadow\",\n padding: \"--qk-popover-padding\",\n gap: \"--qk-popover-gap\",\n arrowSize: \"--qk-popover-arrow-size\",\n closeSize: \"--qk-popover-close-size\",\n closeRadius: \"--qk-popover-close-radius\",\n closeHoverBackground: \"--qk-popover-close-hover-background\",\n closeForeground: \"--qk-popover-close-foreground\",\n focusColor: \"--qk-popover-focus-color\",\n fontFamily: \"--qk-popover-font-family\",\n title: Object.freeze({\n fontSize: \"--qk-popover-title-font-size\",\n lineHeight: \"--qk-popover-title-line-height\",\n fontWeight: \"--qk-popover-title-font-weight\",\n letterSpacing: \"--qk-popover-title-letter-spacing\"\n }),\n body: Object.freeze({\n fontSize: \"--qk-popover-body-font-size\",\n lineHeight: \"--qk-popover-body-line-height\"\n }),\n motionDuration: \"--qk-popover-motion-duration\",\n enterEasing: \"--qk-popover-enter-easing\",\n exitEasing: \"--qk-popover-exit-easing\",\n layer: \"--qk-popover-layer\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Popover 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitPopoverCssVariableName = NestedStringValue<\n typeof popoverCssVariableNames\n>;\n","import type { QuireKitPopoverTokens } from \"../types\";\nimport {\n popoverCssVariableNames,\n type QuireKitPopoverCssVariableName\n} from \"./names\";\n\n/**\n * 将 Popover 组件 token 投影为显式 CSS 变量声明。\n *\n * @param tokens - 已批准的 Popover 组件 token。\n * @returns 不可变的扁平 CSS 变量声明。\n */\nexport function createPopoverCssVariables(\n tokens: QuireKitPopoverTokens\n): Readonly<Record<QuireKitPopoverCssVariableName, string>> {\n const name = popoverCssVariableNames;\n return Object.freeze({\n [name.background]: tokens.background,\n [name.foreground]: tokens.foreground,\n [name.mutedForeground]: tokens.mutedForeground,\n [name.borderColor]: tokens.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.radius]: tokens.radius,\n [name.shadow]: tokens.shadow,\n [name.padding]: tokens.padding,\n [name.gap]: tokens.gap,\n [name.arrowSize]: tokens.arrowSize,\n [name.closeSize]: tokens.closeSize,\n [name.closeRadius]: tokens.closeRadius,\n [name.closeHoverBackground]: tokens.closeHoverBackground,\n [name.closeForeground]: tokens.closeForeground,\n [name.focusColor]: tokens.focusColor,\n [name.fontFamily]: tokens.fontFamily,\n [name.title.fontSize]: tokens.title.fontSize,\n [name.title.lineHeight]: tokens.title.lineHeight,\n [name.title.fontWeight]: String(tokens.title.fontWeight),\n [name.title.letterSpacing]: tokens.title.letterSpacing,\n [name.body.fontSize]: tokens.body.fontSize,\n [name.body.lineHeight]: tokens.body.lineHeight,\n [name.motionDuration]: tokens.motionDuration,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing,\n [name.layer]: String(tokens.layer)\n }) as Readonly<Record<QuireKitPopoverCssVariableName, string>>;\n}\n","import { quireKitControlSizes } from \"../control\";\nimport type { QuireKitTheme } from \"../../theme\";\nimport type {\n QuireKitSegmentedSizeTokens,\n QuireKitSegmentedTokens\n} from \"./types\";\n\n/**\n * 从完整语义主题派生 Segmented Control 组件 token。\n *\n * @param theme - 宿主选择的完整语义主题。\n * @returns 不可变的 Segmented Control 组件 token。\n */\nexport function createSegmentedTokens(\n theme: QuireKitTheme\n): QuireKitSegmentedTokens {\n return Object.freeze({\n fontFamily: theme.typography.control.fontFamily,\n fontWeight: theme.typography.body.fontWeight,\n letterSpacing: theme.typography.control.letterSpacing,\n size: Object.freeze({\n xs: sizeTokens(\n theme.control[quireKitControlSizes.xs.height],\n theme.spacing.inline,\n theme.spacing.inlineTight,\n theme.control.icon,\n theme.typography[quireKitControlSizes.xs.typography]\n ),\n sm: sizeTokens(\n theme.control[quireKitControlSizes.sm.height],\n theme.spacing.surfaceCompact,\n theme.spacing.inlineTight,\n theme.control.icon,\n theme.typography[quireKitControlSizes.sm.typography]\n ),\n md: sizeTokens(\n theme.control[quireKitControlSizes.md.height],\n theme.spacing.surfaceCompact,\n theme.spacing.inline,\n theme.control.icon,\n theme.typography[quireKitControlSizes.md.typography]\n ),\n lg: sizeTokens(\n theme.control[quireKitControlSizes.lg.height],\n theme.spacing.surface,\n theme.spacing.inline,\n theme.control.icon,\n theme.typography[quireKitControlSizes.lg.typography]\n ),\n xl: sizeTokens(\n theme.control[quireKitControlSizes.xl.height],\n theme.spacing.surface,\n theme.spacing.inline,\n theme.control.iconLarge,\n theme.typography[quireKitControlSizes.xl.typography]\n )\n }),\n trackInset: theme.borderWidth.focus,\n trackRadius: `calc(${theme.radius.control} + ${theme.borderWidth.focus})`,\n indicatorRadius: theme.radius.control,\n trackBackground: theme.color.surface.hover,\n foreground: theme.color.text.secondary,\n hoverForeground: theme.color.text.primary,\n hoverBackground: theme.color.surface.pressed,\n selectedForeground: theme.color.text.primary,\n selectedBackground: theme.color.surface.raised,\n disabledForeground: theme.color.text.disabled,\n focusColor: theme.color.border.focus,\n transitionDuration: theme.motion.controlDuration,\n transitionEasing: theme.motion.standardEasing\n });\n}\n\n/**\n * 组合一个公开尺寸的几何和排版投影。\n *\n * @param height - 语义控件高度。\n * @param paddingInline - 选项横向内边距。\n * @param gap - 选项内部内容间距。\n * @param iconSize - 图标光学盒尺寸。\n * @param typography - 匹配当前高度的语义排版角色。\n * @returns 不可变的公开尺寸 token。\n */\nfunction sizeTokens(\n height: string,\n paddingInline: string,\n gap: string,\n iconSize: string,\n typography: QuireKitTheme[\"typography\"][\"compact\"]\n): QuireKitSegmentedSizeTokens {\n return Object.freeze({\n height,\n paddingInline,\n gap,\n iconSize,\n fontSize: typography.fontSize,\n lineHeight: typography.lineHeight\n });\n}\n","/** Segmented Control 获准组件合同的显式 CSS 变量名。 */\nexport const segmentedCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-segmented-font-family\",\n fontWeight: \"--qk-segmented-font-weight\",\n letterSpacing: \"--qk-segmented-letter-spacing\"\n }),\n size: Object.freeze({\n xs: sizeNames(\"xs\"),\n sm: sizeNames(\"sm\"),\n md: sizeNames(\"md\"),\n lg: sizeNames(\"lg\"),\n xl: sizeNames(\"xl\")\n }),\n trackInset: \"--qk-segmented-track-inset\",\n trackRadius: \"--qk-segmented-track-radius\",\n indicatorRadius: \"--qk-segmented-indicator-radius\",\n trackBackground: \"--qk-segmented-track-background\",\n foreground: \"--qk-segmented-foreground\",\n hoverForeground: \"--qk-segmented-hover-foreground\",\n hoverBackground: \"--qk-segmented-hover-background\",\n selectedForeground: \"--qk-segmented-selected-foreground\",\n selectedBackground: \"--qk-segmented-selected-background\",\n disabledForeground: \"--qk-segmented-disabled-foreground\",\n focusColor: \"--qk-segmented-focus-color\",\n transitionDuration: \"--qk-segmented-transition-duration\",\n transitionEasing: \"--qk-segmented-transition-easing\"\n} as const);\n\n/**\n * 声明一个公开尺寸拥有的固定变量字段。\n *\n * @param size - 写入每个变量名的公开尺寸。\n * @returns 当前尺寸的显式变量名组。\n */\nfunction sizeNames(size: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\") {\n return Object.freeze({\n height: `--qk-segmented-${size}-height`,\n paddingInline: `--qk-segmented-${size}-padding-inline`,\n gap: `--qk-segmented-${size}-gap`,\n iconSize: `--qk-segmented-${size}-icon-size`,\n fontSize: `--qk-segmented-${size}-font-size`,\n lineHeight: `--qk-segmented-${size}-line-height`\n } as const);\n}\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Segmented Control 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitSegmentedCssVariableName = NestedStringValue<\n typeof segmentedCssVariableNames\n>;\n","import type {\n QuireKitSegmentedSizeTokens,\n QuireKitSegmentedTokens\n} from \"../types\";\nimport {\n segmentedCssVariableNames,\n type QuireKitSegmentedCssVariableName\n} from \"./names\";\n\n/**\n * 把 Segmented Control 组件合同投影为显式 CSS 变量。\n *\n * @param tokens - 已批准的 Segmented Control 组件 token。\n * @returns 不可变的扁平声明表。\n */\nexport function createSegmentedCssVariables(\n tokens: QuireKitSegmentedTokens\n): Readonly<Record<QuireKitSegmentedCssVariableName, string>> {\n const name = segmentedCssVariableNames;\n return Object.freeze({\n [name.typography.fontFamily]: tokens.fontFamily,\n [name.typography.fontWeight]: String(tokens.fontWeight),\n [name.typography.letterSpacing]: tokens.letterSpacing,\n ...sizeDeclarations(name.size.xs, tokens.size.xs),\n ...sizeDeclarations(name.size.sm, tokens.size.sm),\n ...sizeDeclarations(name.size.md, tokens.size.md),\n ...sizeDeclarations(name.size.lg, tokens.size.lg),\n ...sizeDeclarations(name.size.xl, tokens.size.xl),\n [name.trackInset]: tokens.trackInset,\n [name.trackRadius]: tokens.trackRadius,\n [name.indicatorRadius]: tokens.indicatorRadius,\n [name.trackBackground]: tokens.trackBackground,\n [name.foreground]: tokens.foreground,\n [name.hoverForeground]: tokens.hoverForeground,\n [name.hoverBackground]: tokens.hoverBackground,\n [name.selectedForeground]: tokens.selectedForeground,\n [name.selectedBackground]: tokens.selectedBackground,\n [name.disabledForeground]: tokens.disabledForeground,\n [name.focusColor]: tokens.focusColor,\n [name.transitionDuration]: tokens.transitionDuration,\n [name.transitionEasing]: tokens.transitionEasing\n }) as Readonly<Record<QuireKitSegmentedCssVariableName, string>>;\n}\n\n/**\n * 把一个尺寸变量组与对应组件值配对。\n *\n * @param names - 一个公开尺寸的显式变量名。\n * @param value - 同一尺寸的组件 token。\n * @returns 扁平 CSS 声明条目。\n */\nfunction sizeDeclarations(\n names: Readonly<Record<keyof QuireKitSegmentedSizeTokens, string>>,\n value: QuireKitSegmentedSizeTokens\n): Record<string, string> {\n return {\n [names.height]: value.height,\n [names.paddingInline]: value.paddingInline,\n [names.gap]: value.gap,\n [names.iconSize]: value.iconSize,\n [names.fontSize]: value.fontSize,\n [names.lineHeight]: value.lineHeight\n };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitToolbarTokens } from \"./types\";\n\n/**\n * Derives Toolbar component tokens from the approved semantic theme.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Toolbar component-token contract.\n */\nexport function createToolbarTokens(theme: QuireKitTheme): QuireKitToolbarTokens {\n return Object.freeze({\n typography: Object.freeze({\n fontFamily: theme.typography.compact.fontFamily,\n fontSize: theme.typography.compact.fontSize,\n lineHeight: theme.typography.compact.lineHeight,\n fontWeight: theme.typography.control.fontWeight,\n letterSpacing: theme.typography.compact.letterSpacing\n }),\n geometry: Object.freeze({\n itemHeight: theme.control.default,\n iconSize: theme.control.icon,\n splitDisclosureWidth: theme.control.icon,\n itemPaddingInline: theme.spacing.inline,\n itemGap: theme.spacing.inlineTight,\n groupGap: theme.spacing.inlineTight,\n toolbarGap: theme.spacing.inline,\n itemRadius: theme.radius.control,\n borderWidth: theme.borderWidth.default,\n separatorWidth: theme.borderWidth.default,\n separatorInset: theme.spacing.inlineTight\n }),\n color: Object.freeze({\n surface: theme.color.surface.chrome,\n foreground: theme.color.icon.secondary,\n hoverBackground: theme.color.surface.hover,\n activeBackground: theme.color.surface.pressed,\n selectedBackground: theme.color.surface.selected,\n focusBorder: theme.color.border.focus,\n disabledForeground: theme.color.icon.disabled,\n separator: theme.color.border.subtle\n }),\n feedbackDuration: theme.motion.feedbackDuration,\n feedbackEasing: theme.motion.standardEasing\n });\n}\n","/** Explicit CSS-variable names for the Toolbar component contract. */\nexport const toolbarCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-toolbar-font-family\",\n fontSize: \"--qk-toolbar-font-size\",\n lineHeight: \"--qk-toolbar-line-height\",\n fontWeight: \"--qk-toolbar-font-weight\",\n letterSpacing: \"--qk-toolbar-letter-spacing\"\n }),\n geometry: Object.freeze({\n itemHeight: \"--qk-toolbar-item-height\",\n iconSize: \"--qk-toolbar-icon-size\",\n splitDisclosureWidth: \"--qk-toolbar-split-disclosure-width\",\n itemPaddingInline: \"--qk-toolbar-item-padding-inline\",\n itemGap: \"--qk-toolbar-item-gap\",\n groupGap: \"--qk-toolbar-group-gap\",\n toolbarGap: \"--qk-toolbar-gap\",\n itemRadius: \"--qk-toolbar-item-radius\",\n borderWidth: \"--qk-toolbar-border-width\",\n separatorWidth: \"--qk-toolbar-separator-width\",\n separatorInset: \"--qk-toolbar-separator-inset\"\n }),\n color: Object.freeze({\n surface: \"--qk-toolbar-surface\",\n foreground: \"--qk-toolbar-foreground\",\n hoverBackground: \"--qk-toolbar-hover-background\",\n activeBackground: \"--qk-toolbar-active-background\",\n selectedBackground: \"--qk-toolbar-selected-background\",\n focusBorder: \"--qk-toolbar-focus-border\",\n disabledForeground: \"--qk-toolbar-disabled-foreground\",\n separator: \"--qk-toolbar-separator\"\n }),\n feedbackDuration: \"--qk-toolbar-feedback-duration\",\n feedbackEasing: \"--qk-toolbar-feedback-easing\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Toolbar contract. */\nexport type QuireKitToolbarCssVariableName = NestedStringValue<\n typeof toolbarCssVariableNames\n>;\n","import type { QuireKitToolbarTokens } from \"../types\";\nimport {\n toolbarCssVariableNames,\n type QuireKitToolbarCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Toolbar token contract to explicit CSS variables.\n *\n * @param tokens - Approved Toolbar component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createToolbarCssVariables(\n tokens: QuireKitToolbarTokens\n): Readonly<Record<QuireKitToolbarCssVariableName, string>> {\n const names = toolbarCssVariableNames;\n return Object.freeze({\n ...flatDeclarations(names.typography, tokens.typography),\n ...flatDeclarations(names.geometry, tokens.geometry),\n ...flatDeclarations(names.color, tokens.color),\n [names.feedbackDuration]: tokens.feedbackDuration,\n [names.feedbackEasing]: tokens.feedbackEasing\n }) as Readonly<Record<QuireKitToolbarCssVariableName, string>>;\n}\n\n/**\n * Pairs one variable-name group with matching Toolbar values.\n *\n * @param names - Explicit Toolbar variable names.\n * @param values - Matching Toolbar token values.\n * @returns Flat CSS declaration entries.\n */\nfunction flatDeclarations(\n names: Readonly<Record<string, string>>,\n values: object\n): Record<string, string> {\n const entries = Object.entries(values) as Array<[string, string | number]>;\n return Object.fromEntries(\n entries.map(([key, value]) => [names[key], String(value)])\n ) as Record<string, string>;\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type {\n QuireKitTooltipContentOptions,\n QuireKitTooltipTokens\n} from \"./types\";\n\n/** Tooltip pointer/focus 触发前的默认短延迟。 */\nexport const defaultTooltipOpenDelay = 400;\n\n/** Tooltip 离开 trigger 后的默认关闭缓冲。 */\nexport const defaultTooltipCloseDelay = 100;\n\n/**\n * 从完整语义主题派生 Tooltip 组件 token。\n *\n * @param theme - 宿主已经解析完成的语义主题。\n * @returns 不可变的 Tooltip 组件 token。\n */\nexport function createTooltipTokens(\n theme: QuireKitTheme\n): QuireKitTooltipTokens {\n const typography = theme.typography.compact;\n return Object.freeze({\n background: theme.color.surface.inverse,\n foreground: theme.color.text.inverse,\n borderColor: theme.color.surface.transparent,\n borderWidth: theme.borderWidth.none,\n radius: theme.radius.control,\n shadow: theme.elevation.overlay,\n paddingBlock: theme.spacing.inlineTight,\n paddingInline: theme.spacing.inline,\n gap: theme.spacing.inlineTight,\n arrowSize: theme.spacing.inline,\n typography: Object.freeze({\n fontFamily: typography.fontFamily,\n fontSize: typography.fontSize,\n lineHeight: typography.lineHeight,\n fontWeight: typography.fontWeight,\n letterSpacing: typography.letterSpacing\n }),\n motionDuration: theme.motion.feedbackDuration,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing,\n layer: theme.layer.tooltip\n });\n}\n\n/**\n * 解析 Tooltip 当前应显示的标签或禁用原因。\n *\n * 禁用原因只在 subject 确实不可用且原因非空时覆盖普通标签;这让\n * pointer、keyboard focus 与读屏描述消费同一份稳定文案。\n *\n * @param options - 普通标签、禁用原因与 subject 状态。\n * @returns 当前提示文案;没有可展示内容时返回 `undefined`。\n */\nexport function resolveTooltipContent(\n options: QuireKitTooltipContentOptions\n): string | undefined {\n const content = normalizeContent(options.content);\n const disabledReason = normalizeContent(options.disabledReason);\n if (options.subjectDisabled && disabledReason !== undefined) {\n return disabledReason;\n }\n return content;\n}\n\n/**\n * 把空白文案归一化为缺失值,同时保留有效文案的原始内容。\n *\n * @param content - 待归一化的可选文案。\n * @returns 有效文案或 `undefined`。\n */\nfunction normalizeContent(content: string | undefined): string | undefined {\n return content?.trim() ? content : undefined;\n}\n","/** Tooltip 组件合同的显式 CSS 变量名。 */\nexport const tooltipCssVariableNames = Object.freeze({\n background: \"--qk-tooltip-background\",\n foreground: \"--qk-tooltip-foreground\",\n borderColor: \"--qk-tooltip-border-color\",\n borderWidth: \"--qk-tooltip-border-width\",\n radius: \"--qk-tooltip-radius\",\n shadow: \"--qk-tooltip-shadow\",\n paddingBlock: \"--qk-tooltip-padding-block\",\n paddingInline: \"--qk-tooltip-padding-inline\",\n gap: \"--qk-tooltip-gap\",\n arrowSize: \"--qk-tooltip-arrow-size\",\n typography: Object.freeze({\n fontFamily: \"--qk-tooltip-font-family\",\n fontSize: \"--qk-tooltip-font-size\",\n lineHeight: \"--qk-tooltip-line-height\",\n fontWeight: \"--qk-tooltip-font-weight\",\n letterSpacing: \"--qk-tooltip-letter-spacing\"\n }),\n motionDuration: \"--qk-tooltip-motion-duration\",\n enterEasing: \"--qk-tooltip-enter-easing\",\n exitEasing: \"--qk-tooltip-exit-easing\",\n layer: \"--qk-tooltip-layer\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Tooltip 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitTooltipCssVariableName = NestedStringValue<\n typeof tooltipCssVariableNames\n>;\n","import type { QuireKitTooltipTokens } from \"../types\";\nimport {\n tooltipCssVariableNames,\n type QuireKitTooltipCssVariableName\n} from \"./names\";\n\n/**\n * 将 Tooltip 组件 token 投影为显式 CSS 变量声明。\n *\n * @param tokens - 已批准的 Tooltip 组件 token。\n * @returns 不可变的扁平 CSS 变量声明。\n */\nexport function createTooltipCssVariables(\n tokens: QuireKitTooltipTokens\n): Readonly<Record<QuireKitTooltipCssVariableName, string>> {\n const name = tooltipCssVariableNames;\n return Object.freeze({\n [name.background]: tokens.background,\n [name.foreground]: tokens.foreground,\n [name.borderColor]: tokens.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.radius]: tokens.radius,\n [name.shadow]: tokens.shadow,\n [name.paddingBlock]: tokens.paddingBlock,\n [name.paddingInline]: tokens.paddingInline,\n [name.gap]: tokens.gap,\n [name.arrowSize]: tokens.arrowSize,\n [name.typography.fontFamily]: tokens.typography.fontFamily,\n [name.typography.fontSize]: tokens.typography.fontSize,\n [name.typography.lineHeight]: tokens.typography.lineHeight,\n [name.typography.fontWeight]: String(tokens.typography.fontWeight),\n [name.typography.letterSpacing]: tokens.typography.letterSpacing,\n [name.motionDuration]: tokens.motionDuration,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing,\n [name.layer]: String(tokens.layer)\n }) as Readonly<Record<QuireKitTooltipCssVariableName, string>>;\n}\n","import { createToggleGroupTokens, createToggleGroupCssVariables } from \"../components/toggle-group\";\nimport { createCheckboxGroupTokens, createCheckboxGroupCssVariables } from \"../components/checkbox-group\";\nimport { createKbdTokens, createKbdCssVariables } from \"../components/kbd\";\nimport { createSkeletonTokens, createSkeletonCssVariables } from \"../components/skeleton\";\nimport { createTagTokens, createTagCssVariables } from \"../components/tag\";\nimport { createBadgeTokens, createBadgeCssVariables } from \"../components/badge\";\nimport { createTableTokens, createTableCssVariables } from \"../components/table\";\nimport { createThemeCssVariables } from \"../theme/variables\";\nimport type { QuireKitTheme } from \"../theme/types\";\nimport { createButtonCssVariables, createButtonTokens } from \"../components/button\";\nimport { createMenuCssVariables, createMenuTokens } from \"../components/menu\";\nimport { createPopoverCssVariables, createPopoverTokens } from \"../components/popover\";\nimport { createSegmentedCssVariables, createSegmentedTokens } from \"../components/segmented\";\nimport { createToolbarCssVariables, createToolbarTokens } from \"../components/toolbar\";\nimport { createTooltipCssVariables, createTooltipTokens } from \"../components/tooltip\";\n\nconst themeVariables = new WeakMap<QuireKitTheme, Readonly<Record<string, string>>>();\n\n/**\n * Projects one theme together with its approved component tokens.\n * @param theme - Complete immutable semantic theme owned by the consumer.\n * @returns Stable immutable variables shared by ordinary and teleported roots and static CSS generation.\n */\nexport function createUiThemeCssVariables(theme: QuireKitTheme): Readonly<Record<string, string>> {\n const retained = themeVariables.get(theme);\n if (retained !== undefined) return retained;\n\n // Theme replacement is the invalidation boundary. Stable projection identity\n // keeps unrelated UI updates from comparing and rewriting every CSS variable.\n const variables = Object.freeze({\n ...createThemeCssVariables(theme),\n ...createToggleGroupCssVariables(createToggleGroupTokens(theme)),\n ...createCheckboxGroupCssVariables(createCheckboxGroupTokens(theme)),\n ...createKbdCssVariables(createKbdTokens(theme)),\n ...createSkeletonCssVariables(createSkeletonTokens(theme)),\n ...createBadgeCssVariables(createBadgeTokens(theme)),\n ...createTagCssVariables(createTagTokens(theme)),\n ...createTableCssVariables(createTableTokens(theme)),\n ...createButtonCssVariables(createButtonTokens(theme)),\n ...createMenuCssVariables(createMenuTokens(theme)),\n ...createPopoverCssVariables(createPopoverTokens(theme)),\n ...createSegmentedCssVariables(createSegmentedTokens(theme)),\n ...createToolbarCssVariables(createToolbarTokens(theme)),\n ...createTooltipCssVariables(createTooltipTokens(theme)),\n });\n themeVariables.set(theme, variables);\n return variables;\n}\n","import type { QuireKitFileIconProps, QuireKitFileIdentity, QuireKitFileKind } from './types';\n\nconst families: ReadonlyArray<readonly [QuireKitFileKind, string, string]> = [\n ['document', 'W', 'doc docx docm dot dotx odt rtf pages'],\n ['spreadsheet', 'X', 'xls xlsx xlsm xlsb ods csv tsv numbers'],\n ['presentation', 'P', 'ppt pptx pptm odp key'],\n ['pdf', 'PDF', 'pdf'],\n ['ofd', 'OFD', 'ofd'],\n ['image', 'IMG', 'png jpg jpeg gif webp svg avif heic heif bmp tif tiff ico'],\n ['video', 'VID', 'mp4 mov m4v webm mkv avi wmv flv mpg mpeg 3gp'],\n ['audio', 'AUD', 'mp3 wav flac aac m4a ogg opus aiff mid midi'],\n ['archive', 'ZIP', 'zip rar 7z tar gz gzip bz2 xz tgz zst'],\n ['code', '</>', 'js jsx ts tsx json jsonc yaml yml xml py rb go rs java c h cpp hpp cs swift kt sh bash zsh sql toml ini vue svelte'],\n ['web', 'WEB', 'html htm css scss sass less'],\n ['markdown', 'MD', 'md mdx markdown'],\n ['text', 'TXT', 'txt log readme'],\n ['design', 'DES', 'fig sketch psd ai eps xd afdesign'],\n ['font', 'Aa', 'ttf otf woff woff2 eot'],\n ['file', 'FILE', '']\n];\nconst byExtension = new Map(families.flatMap(([kind, badge, extensions]) => extensions.split(' ').filter(Boolean).map(extension => [extension, { kind, badge }] as const)));\n\n/** Resolve an explicit family, known extension, then MIME; unknown files remain neutral.\n * @param file - Display metadata, never trusted as a content/security check.\n * @returns Stable color family and legible short badge.\n */\nexport function resolveQuireKitFileIdentity(file: QuireKitFileIconProps): QuireKitFileIdentity {\n const explicit = file.kind && families.find(([kind]) => kind === file.kind);\n if (explicit) return { kind: explicit[0], badge: explicit[1] };\n const name = file.name?.toLowerCase().trim() ?? '';\n const extension = name.includes('.') ? name.split('.').at(-1)! : '';\n const known = byExtension.get(extension);\n if (known) return { ...known };\n const mime = file.mediaType?.toLowerCase().split(';')[0]?.trim() ?? '';\n const kind: QuireKitFileKind = mime.startsWith('image/') ? 'image' : mime.startsWith('video/') ? 'video' : mime.startsWith('audio/') ? 'audio'\n : /pdf$/.test(mime) ? 'pdf' : /word|opendocument.text/.test(mime) ? 'document'\n : /excel|spreadsheet|csv/.test(mime) ? 'spreadsheet' : /powerpoint|presentation/.test(mime) ? 'presentation'\n : /zip|compressed|archive|tar$/.test(mime) ? 'archive' : /html|css/.test(mime) ? 'web'\n : /markdown/.test(mime) ? 'markdown' : /json|javascript|xml/.test(mime) ? 'code'\n : /font/.test(mime) ? 'font' : mime.startsWith('text/') ? 'text' : 'file';\n return { kind, badge: families.find(([family]) => family === k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"resolve-nFmJOtS9.mjs","names":["feedback","sizeNames","sizeDeclarations","flatDeclarations"],"sources":["../src/components/toggle-group/create.ts","../src/components/toggle-group/variables/declarations.ts","../src/components/checkbox-group/create.ts","../src/components/checkbox-group/variables/declarations.ts","../src/components/kbd/create.ts","../src/components/kbd/variables/declarations.ts","../src/components/skeleton/create.ts","../src/components/skeleton/variables/declarations.ts","../src/components/tag/create.ts","../src/components/tag/variables/declarations.ts","../src/components/badge/create.ts","../src/components/badge/variables/declarations.ts","../src/components/table/create.ts","../src/components/table/variables/declarations.ts","../src/components/control/modality.ts","../src/components/control/sizes.ts","../src/components/button/create.ts","../src/components/button/variables/names.ts","../src/components/button/variables/declarations.ts","../src/components/menu/create.ts","../src/components/menu/variables/names.ts","../src/components/menu/variables/declarations.ts","../src/components/menu/variables/references.ts","../src/components/popover/create.ts","../src/components/popover/variables/names.ts","../src/components/popover/variables/declarations.ts","../src/components/segmented/create.ts","../src/components/segmented/variables/names.ts","../src/components/segmented/variables/declarations.ts","../src/components/toolbar/create.ts","../src/components/toolbar/variables/names.ts","../src/components/toolbar/variables/declarations.ts","../src/components/tooltip/create.ts","../src/components/tooltip/variables/names.ts","../src/components/tooltip/variables/declarations.ts","../src/styles/theme.ts","../src/components/file-icon/resolve.ts"],"sourcesContent":["import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitToggleGroupTokens } from \"./types\";\n/**\n * Derives group layout from existing semantic roles; child controls keep their own sizes.\n * @param theme - Current theme.\n * @returns Group-level configuration.\n */\nexport function createToggleGroupTokens(theme: QuireKitTheme): QuireKitToggleGroupTokens {\n return { gap: theme.spacing.inlineTight };\n}\n","import type { QuireKitToggleGroupTokens } from \"../types\";\n/**\n * Publishes direct component-to-CSS mappings for theme consumers and the atlas.\n * @param tokens - Group configuration.\n * @returns Group CSS declarations.\n */\nexport function createToggleGroupCssVariables(tokens: QuireKitToggleGroupTokens): Readonly<Record<string, string>> {\n return { \"--qk-toggle-group-gap\": tokens.gap };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitCheckboxGroupTokens } from \"./types\";\n/**\n * Derives group layout from existing semantic roles; child controls keep their own sizes.\n * @param theme - Current theme.\n * @returns Group-level configuration.\n */\nexport function createCheckboxGroupTokens(theme: QuireKitTheme): QuireKitCheckboxGroupTokens {\n return { gap: theme.spacing.inline, inlineGap: theme.spacing.surface, labelColor: theme.color.text.secondary };\n}\n","import type { QuireKitCheckboxGroupTokens } from \"../types\";\n/**\n * Publishes direct component-to-CSS mappings for theme consumers and the atlas.\n * @param tokens - Group configuration.\n * @returns Group CSS declarations.\n */\nexport function createCheckboxGroupCssVariables(tokens: QuireKitCheckboxGroupTokens): Readonly<Record<string, string>> {\n return { \"--qk-checkbox-group-gap\": tokens.gap, \"--qk-checkbox-group-inline-gap\": tokens.inlineGap, \"--qk-checkbox-group-label-color\": tokens.labelColor };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitKbdSize, QuireKitKbdSizeTokens, QuireKitKbdTokens } from \"./types\";\n\n/**\n * Derives quiet monospace keycaps that fit inside same-density controls.\n * @param theme - Current semantic theme.\n * @returns Key hint tokens, including three independent typography scales.\n */\nexport function createKbdTokens(theme: QuireKitTheme): QuireKitKbdTokens {\n return {\n foreground: theme.color.text.secondary, background: theme.color.surface.subtle,\n borderColor: theme.color.border.default, borderWidth: theme.borderWidth.default,\n radius: theme.radius.control, fontFamily: theme.typography.code.fontFamily,\n fontWeight: theme.typography.code.fontWeight, letterSpacing: theme.typography.code.letterSpacing,\n size: {\n xs: keycapSize(theme, \"xs\"), sm: keycapSize(theme, \"sm\"), md: keycapSize(theme, \"md\")\n\n }\n };\n}\n\n/**\n * Derives keycaps from typography, independently of surrounding control height.\n * @param theme - Semantic source for dimensions and typography.\n * @param size - Inline typography scale.\n * @returns Keycap dimensions; xs uses helper type to remain readable at compact height.\n */\nfunction keycapSize(theme: QuireKitTheme, size: QuireKitKbdSize): QuireKitKbdSizeTokens {\n const role = size === \"xs\" ? \"helper\" : size === \"sm\" ? \"body\" : \"heading\";\n const { inlineTight, inline } = theme.spacing;\n return {\n minHeight: `calc(${theme.typography[role].fontSize} * ${theme.typography[role].lineHeight})`,\n fontSize: theme.typography[size === \"md\" ? \"compact\" : \"helper\"].fontSize,\n // Multi-key labels such as \"⌘ + K\" need real side room inside the cap, not only single glyphs.\n paddingInline: size === \"xs\" ? inlineTight : size === \"sm\" ? inline : `calc(${inline} + ${inlineTight} / 2)`\n };\n}\n","import type { QuireKitKbdTokens } from \"../types\";\n/**\n * Projects key-hint roles and density mappings to CSS.\n * @param tokens - Key-hint configuration.\n * @returns Explicit CSS declarations.\n */\nexport function createKbdCssVariables(tokens: QuireKitKbdTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-kbd-foreground\": tokens.foreground, \"--qk-kbd-background\": tokens.background,\n \"--qk-kbd-border-color\": tokens.borderColor, \"--qk-kbd-border-width\": tokens.borderWidth,\n \"--qk-kbd-radius\": tokens.radius, \"--qk-kbd-font-family\": tokens.fontFamily,\n \"--qk-kbd-font-weight\": String(tokens.fontWeight), \"--qk-kbd-letter-spacing\": tokens.letterSpacing\n };\n for (const [size, roles] of Object.entries(tokens.size)) {\n variables[`--qk-kbd-${size}-min-height`] = roles.minHeight;\n variables[`--qk-kbd-${size}-font-size`] = roles.fontSize;\n variables[`--qk-kbd-${size}-padding-inline`] = roles.paddingInline;\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitSkeletonTokens } from \"./types\";\n/**\n * Derives decorative placeholder geometry and color from the active theme.\n * @param theme - Current theme.\n * @returns Skeleton configuration.\n */\nexport function createSkeletonTokens(theme: QuireKitTheme): QuireKitSkeletonTokens {\n return { background: theme.color.surface.hover, lineHeight: `calc(${theme.typography.body.fontSize} * ${theme.typography.body.lineHeight})`, radius: theme.radius.control, duration: `calc(${theme.motion.overlayDuration} * 8)`, easing: theme.motion.standardEasing, minimumOpacity: theme.opacity.muted, maximumOpacity: theme.opacity.opaque };\n}\n","import type { QuireKitSkeletonTokens } from \"../types\";\n/**\n * Publishes traceable placeholder CSS roles.\n * @param tokens - Skeleton configuration.\n * @returns Direct CSS projections.\n */\nexport function createSkeletonCssVariables(tokens: QuireKitSkeletonTokens): Readonly<Record<string, string>> {\n return { \"--qk-skeleton-background\": tokens.background, \"--qk-skeleton-line-height\": tokens.lineHeight, \"--qk-skeleton-radius\": tokens.radius, \"--qk-skeleton-duration\": tokens.duration, \"--qk-skeleton-easing\": tokens.easing, \"--qk-skeleton-minimum-opacity\": String(tokens.minimumOpacity), \"--qk-skeleton-maximum-opacity\": String(tokens.maximumOpacity) };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitTagColorTokens, QuireKitTagTokens } from \"./types\";\n\n/**\n * Maps static status labels to existing semantic colors, without a separate palette.\n * @param theme - Active semantic theme.\n * @returns Tag color and geometry configuration.\n */\nexport function createTagTokens(theme: QuireKitTheme): QuireKitTagTokens {\n const color = theme.color;\n return Object.freeze({\n paddingInline: theme.spacing.inline, paddingBlock: theme.spacing.inlineTight,\n gap: theme.spacing.inlineTight, radius: theme.radius.control, borderWidth: theme.borderWidth.default,\n color: {\n neutral: { text: color.text.secondary, surface: color.surface.subtle, border: color.border.default, solid: color.surface.inverse, onSolid: color.text.inverse },\n primary: { text: color.action.text, surface: color.action.soft, border: color.action.primary, solid: color.action.primary, onSolid: color.action.foreground },\n info: feedback(color.info), success: feedback(color.success), warning: feedback(color.warning), danger: feedback(color.danger)\n }\n });\n}\n\n/**\n * Selects only the five static tag roles from a feedback family.\n * @param color - Existing feedback semantics.\n * @returns The Tag color contract, without unrelated interaction states.\n */\nfunction feedback(color: QuireKitTheme[\"color\"][\"info\"]): QuireKitTagColorTokens {\n return { text: color.text, surface: color.surface, border: color.border, solid: color.solid, onSolid: color.onSolid };\n}\n","import type { QuireKitTagTokens } from \"../types\";\n\n/**\n * Emits direct tag-to-CSS projections for the theme and Token atlas.\n * @param tokens - Tag configuration.\n * @returns Component variable declarations.\n */\nexport function createTagCssVariables(tokens: QuireKitTagTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-tag-padding-inline\": tokens.paddingInline, \"--qk-tag-padding-block\": tokens.paddingBlock,\n \"--qk-tag-gap\": tokens.gap, \"--qk-tag-radius\": tokens.radius, \"--qk-tag-border-width\": tokens.borderWidth\n };\n for (const [family, roles] of Object.entries(tokens.color)) {\n for (const role of [\"text\", \"surface\", \"border\", \"solid\", \"onSolid\"] as const) {\n variables[`--qk-tag-${family}-${role === \"onSolid\" ? \"on-solid\" : role}`] = roles[role];\n }\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitBadgeColorTokens, QuireKitBadgeTokens } from \"./types\";\n\n/**\n * Maps notification markers to existing semantic colors, without a separate palette.\n * @param theme - Active semantic theme.\n * @returns Badge color and geometry configuration.\n */\nexport function createBadgeTokens(theme: QuireKitTheme): QuireKitBadgeTokens {\n const color = theme.color;\n return Object.freeze({\n paddingInline: theme.spacing.inlineTight, dotSize: theme.spacing.inline,\n size: {\n xs: { height: `calc(${theme.typography.helper.fontSize} * ${theme.typography.helper.lineHeight})`, fontSize: theme.typography.helper.fontSize },\n sm: { height: `calc(${theme.typography.compact.fontSize} * ${theme.typography.compact.lineHeight})`, fontSize: theme.typography.helper.fontSize },\n md: { height: `calc(${theme.typography.body.fontSize} * ${theme.typography.body.lineHeight})`, fontSize: theme.typography.compact.fontSize }\n },\n radius: theme.radius.pill, borderWidth: theme.borderWidth.default,\n color: {\n neutral: { text: color.text.secondary, surface: color.surface.subtle, border: color.border.default, solid: color.surface.inverse, onSolid: color.text.inverse },\n primary: { text: color.action.text, surface: color.action.soft, border: color.action.primary, solid: color.action.primary, onSolid: color.action.foreground },\n info: feedback(color.info), success: feedback(color.success), warning: feedback(color.warning), danger: feedback(color.danger)\n }\n });\n}\n\n/**\n * Selects only the five static badge roles from a feedback family.\n * @param color - Existing feedback semantics.\n * @returns The Badge color contract, without unrelated interaction states.\n */\nfunction feedback(color: QuireKitTheme[\"color\"][\"info\"]): QuireKitBadgeColorTokens {\n return { text: color.text, surface: color.surface, border: color.border, solid: color.solid, onSolid: color.onSolid };\n}\n","import type { QuireKitBadgeTokens } from \"../types\";\n\n/**\n * Emits direct badge-to-CSS projections for the theme and Token atlas.\n * @param tokens - Badge configuration.\n * @returns Component variable declarations.\n */\nexport function createBadgeCssVariables(tokens: QuireKitBadgeTokens): Readonly<Record<string, string>> {\n const variables: Record<string, string> = {\n \"--qk-badge-padding-inline\": tokens.paddingInline, \"--qk-badge-dot-size\": tokens.dotSize,\n \"--qk-badge-radius\": tokens.radius, \"--qk-badge-border-width\": tokens.borderWidth\n };\n for (const [size, roles] of Object.entries(tokens.size)) {\n variables[`--qk-badge-${size}-height`] = roles.height;\n variables[`--qk-badge-${size}-font-size`] = roles.fontSize;\n }\n for (const [family, roles] of Object.entries(tokens.color)) {\n for (const role of [\"text\", \"surface\", \"border\", \"solid\", \"onSolid\"] as const) {\n variables[`--qk-badge-${family}-${role === \"onSolid\" ? \"on-solid\" : role}`] = roles[role];\n }\n }\n return Object.freeze(variables);\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitTableTokens } from \"./types\";\n\n/**\n * Derives table roles without introducing a second palette or row-height scale.\n * @param theme - Current semantic theme.\n * @returns Table display tokens.\n */\nexport function createTableTokens(theme: QuireKitTheme): QuireKitTableTokens {\n return Object.freeze({\n foreground: theme.color.text.primary,\n mutedForeground: theme.color.text.secondary,\n headerBackground: theme.color.surface.page,\n currentBackground: theme.color.surface.selected,\n borderColor: theme.color.border.subtle,\n borderWidth: theme.borderWidth.default,\n compactPadding: theme.spacing.inline,\n padding: theme.spacing.surfaceCompact,\n comfortablePadding: theme.spacing.surface\n });\n}\n","import type { QuireKitTableTokens } from \"../types\";\n\n/**\n * Projects table configuration into directly traceable CSS variables.\n * @param tokens - Theme-derived table configuration.\n * @returns Explicit variable declarations.\n */\nexport function createTableCssVariables(tokens: QuireKitTableTokens): Readonly<Record<string, string>> {\n return Object.freeze({\n \"--qk-table-foreground\": tokens.foreground,\n \"--qk-table-muted-foreground\": tokens.mutedForeground,\n \"--qk-table-header-background\": tokens.headerBackground,\n \"--qk-table-current-background\": tokens.currentBackground,\n \"--qk-table-border-color\": tokens.borderColor,\n \"--qk-table-border-width\": tokens.borderWidth,\n \"--qk-table-compact-padding\": tokens.compactPadding,\n \"--qk-table-padding\": tokens.padding,\n \"--qk-table-comfortable-padding\": tokens.comfortablePadding\n });\n}\n","/** Keys that move focus and therefore switch the document to keyboard modality. */\nconst navigationKeys = new Set([\n \"Tab\", \"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\", \"PageUp\", \"PageDown\", \"F6\"\n]);\n\n/** Documents whose modality listeners are already installed. */\nconst trackedDocuments = new WeakSet<Document>();\n\n/**\n * Records the most recent input modality on `<html data-qk-modality>`.\n *\n * The keyboard focus ring reads this attribute so that focus returned programmatically after a\n * pointer interaction (closing a menu, popover or dialog) does not show a ring, even when the\n * browser reports `:focus-visible`. Installation is idempotent per document.\n *\n * @param ownerDocument - Document whose root receives the modality attribute.\n */\nexport function trackQuireKitInputModality(ownerDocument: Document): void {\n if (trackedDocuments.has(ownerDocument)) return;\n trackedDocuments.add(ownerDocument);\n const root = ownerDocument.documentElement;\n const apply = (modality: \"keyboard\" | \"pointer\"): void => {\n if (root.dataset.qkModality !== modality) root.dataset.qkModality = modality;\n };\n // Lazy installation (first popup mount) happens after the opening input; infer it from the still-focused trigger.\n if (root.dataset.qkModality === undefined && ownerDocument.activeElement !== ownerDocument.body) {\n apply(ownerDocument.activeElement?.matches(\":focus-visible\") ? \"keyboard\" : \"pointer\");\n }\n ownerDocument.addEventListener(\"pointerdown\", () => apply(\"pointer\"), { capture: true, passive: true });\n ownerDocument.addEventListener(\"keydown\", (event) => {\n if (navigationKeys.has(event.key) && !event.metaKey && !event.ctrlKey) apply(\"keyboard\");\n }, { capture: true, passive: true });\n}\n","import type { QuireKitControlSize } from \"./types\";\n\n/** 将公开 size 映射到已有语义 token,所有同排控件共用这份对应关系。 */\nexport const quireKitControlSizes = Object.freeze({\n xs: Object.freeze({ height: \"compact\", typography: \"compact\" }),\n sm: Object.freeze({ height: \"default\", typography: \"compact\" }),\n md: Object.freeze({ height: \"regular\", typography: \"control\" }),\n lg: Object.freeze({ height: \"comfortable\", typography: \"control\" }),\n xl: Object.freeze({ height: \"large\", typography: \"control\" })\n} as const satisfies Record<QuireKitControlSize, { readonly height: string; readonly typography: string }>);\n","import { quireKitControlSizes } from \"../control\";\nimport { parseQuireHexColor, quireContrastRatio } from \"../../tokens\";\nimport type { QuireKitTheme, QuireKitThemeColorScales } from \"../../theme\";\nimport type {\n QuireKitButtonColorTokens,\n QuireKitButtonTokens\n} from \"./types\";\n\n/**\n * Derives the approved Button and IconButton contract from semantic tokens.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Button and IconButton component tokens.\n */\nexport function createButtonTokens(theme: QuireKitTheme): QuireKitButtonTokens {\n const color = theme.color;\n return Object.freeze({\n fontFamily: theme.typography.control.fontFamily,\n fontWeight: theme.typography.body.fontWeight,\n letterSpacing: theme.typography.control.letterSpacing,\n size: Object.freeze({\n xs: Object.freeze({\n height: theme.control[quireKitControlSizes.xs.height],\n paddingInline: theme.spacing.inline,\n gap: theme.spacing.inlineTight,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.xs.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.xs.typography].lineHeight\n }),\n sm: Object.freeze({\n height: theme.control[quireKitControlSizes.sm.height],\n paddingInline: theme.spacing.surfaceCompact,\n gap: theme.spacing.inlineTight,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.sm.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.sm.typography].lineHeight\n }),\n md: Object.freeze({\n height: theme.control[quireKitControlSizes.md.height],\n paddingInline: theme.spacing.surfaceCompact,\n gap: theme.spacing.inline,\n iconSize: theme.control.icon,\n radius: theme.radius.control,\n fontSize: theme.typography[quireKitControlSizes.md.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.md.typography].lineHeight\n }),\n lg: Object.freeze({\n height: theme.control[quireKitControlSizes.lg.height],\n paddingInline: theme.spacing.surface,\n gap: theme.spacing.inline,\n iconSize: theme.control.icon,\n radius: theme.radius.group,\n fontSize: theme.typography[quireKitControlSizes.lg.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.lg.typography].lineHeight\n }),\n xl: Object.freeze({\n height: theme.control[quireKitControlSizes.xl.height],\n paddingInline: theme.spacing.surface,\n gap: theme.spacing.inline,\n iconSize: theme.control.iconLarge,\n radius: theme.radius.group,\n fontSize: theme.typography[quireKitControlSizes.xl.typography].fontSize,\n lineHeight: theme.typography[quireKitControlSizes.xl.typography].lineHeight\n })\n }),\n color: Object.freeze({\n neutral: Object.freeze({\n foreground: color.text.secondary,\n solidForeground: color.text.inverse,\n solidBackground: color.surface.inverse,\n solidHoverBackground: theme.scales.neutral[10],\n solidPressedBackground: theme.scales.neutral[theme.scheme === \"light\" ? 11 : 9],\n softBackground: theme.scheme === \"light\" ? color.surface.hover : color.surface.subtle,\n softHoverBackground: theme.color.surface.selected,\n softPressedBackground: color.surface.pressed,\n borderColor: color.border.default\n }),\n primary: Object.freeze({\n foreground: color.action.text,\n solidForeground: color.action.foreground,\n solidBackground: color.action.primary,\n ...(color.action.primary === theme.scales.neutral[11]\n ? { solidHoverBackground: color.action.hover, solidPressedBackground: color.action.pressed }\n : solidBackgrounds(color.action.foreground, theme, theme.scales.primary)),\n softBackground: color.action.soft,\n softHoverBackground: color.action.softHover,\n softPressedBackground: color.action.softPressed,\n borderColor: color.action.primary\n }),\n info: feedbackColor(color.info, theme, theme.scales.info),\n success: feedbackColor(color.success, theme, theme.scales.success),\n warning: feedbackColor(color.warning, theme, theme.scales.warning),\n danger: feedbackColor(color.danger, theme, theme.scales.danger)\n }),\n disabled: Object.freeze({\n foreground: color.text.disabled,\n background: color.surface.disabled,\n borderColor: color.border.disabled\n }),\n borderWidth: theme.borderWidth.default,\n focusColor: color.border.focus,\n hoverOpacity: theme.opacity.hover,\n pressedOpacity: theme.opacity.pressed,\n feedbackDuration: theme.motion.feedbackDuration,\n feedbackEasing: theme.motion.standardEasing\n });\n}\n\n/**\n * Maps one semantic feedback family into the common Button color channels.\n *\n * @param color - Semantic feedback roles compiled from one registered base source.\n * @param theme - Theme carrying the interaction strengths.\n * @param scale - Existing eleven-step family palette.\n * @returns Immutable Button color channels shared by every visual variant.\n */\nfunction feedbackColor(\n color: QuireKitTheme[\"color\"][\"info\"],\n theme: QuireKitTheme,\n scale: QuireKitThemeColorScales[\"primary\"]\n): QuireKitButtonColorTokens {\n return Object.freeze({\n foreground: color.text,\n solidForeground: color.onSolid,\n solidBackground: color.solid,\n ...solidBackgrounds(color.onSolid, theme, scale),\n softBackground: color.surface,\n softHoverBackground: color.hoverSurface,\n softPressedBackground: color.pressedSurface,\n borderColor: color.border\n });\n}\n\n/**\n * Selects the regular scheme direction when labels remain readable.\n * @param foreground - Fixed solid label color.\n * @param theme - Owning light or dark scheme.\n * @param scale - Existing eleven-step family palette.\n * @returns Palette hover and pressed fills without generating new colors.\n */\nfunction solidBackgrounds(foreground: string, theme: QuireKitTheme, scale: QuireKitThemeColorScales[\"primary\"]) {\n const regular = theme.scheme === \"light\" ? [7, 8] as const : [5, 4] as const;\n const alternate = theme.scheme === \"light\" ? [5, 4] as const : [7, 8] as const;\n const label = parseQuireHexColor(foreground);\n const readable = regular.every(step => quireContrastRatio(label, parseQuireHexColor(scale[step])) >= 4.5);\n const steps = readable ? regular : alternate;\n return {\n solidHoverBackground: scale[steps[0]],\n solidPressedBackground: scale[steps[1]]\n };\n}\n","/** Explicit CSS-variable names for the approved Button component contract. */\nexport const buttonCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-button-font-family\",\n fontWeight: \"--qk-button-font-weight\",\n letterSpacing: \"--qk-button-letter-spacing\"\n }),\n size: Object.freeze({\n xs: sizeNames(\"xs\"),\n sm: sizeNames(\"sm\"),\n md: sizeNames(\"md\"),\n lg: sizeNames(\"lg\"),\n xl: sizeNames(\"xl\")\n }),\n color: Object.freeze({\n neutral: colorNames(\"neutral\"),\n primary: colorNames(\"primary\"),\n info: colorNames(\"info\"),\n success: colorNames(\"success\"),\n warning: colorNames(\"warning\"),\n danger: colorNames(\"danger\")\n }),\n disabled: Object.freeze({\n foreground: \"--qk-button-disabled-foreground\",\n background: \"--qk-button-disabled-background\",\n borderColor: \"--qk-button-disabled-border-color\"\n }),\n borderWidth: \"--qk-button-border-width\",\n focusColor: \"--qk-button-focus-color\",\n hoverOpacity: \"--qk-button-hover-opacity\",\n pressedOpacity: \"--qk-button-pressed-opacity\",\n feedbackDuration: \"--qk-button-feedback-duration\",\n feedbackEasing: \"--qk-button-feedback-easing\"\n} as const);\n\n/**\n * Declares the fixed CSS-variable fields owned by one public size.\n *\n * @param size - Public size name included in every declared variable.\n * @returns Explicit variable-name group for that size.\n */\nfunction sizeNames(size: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\") {\n return Object.freeze({\n height: `--qk-button-${size}-height`,\n paddingInline: `--qk-button-${size}-padding-inline`,\n gap: `--qk-button-${size}-gap`,\n iconSize: `--qk-button-${size}-icon-size`,\n radius: `--qk-button-${size}-radius`,\n fontSize: `--qk-button-${size}-font-size`,\n lineHeight: `--qk-button-${size}-line-height`\n } as const);\n}\n\n/**\n * Declares the fixed CSS-variable fields owned by one semantic color family.\n *\n * @param color - Public semantic color included in every declared variable.\n * @returns Explicit variable-name group for that color.\n */\nfunction colorNames(\n color: \"neutral\" | \"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\"\n) {\n return Object.freeze({\n foreground: `--qk-button-${color}-foreground`,\n solidForeground: `--qk-button-${color}-solid-foreground`,\n solidBackground: `--qk-button-${color}-solid-background`,\n solidHoverBackground: `--qk-button-${color}-solid-hover-background`,\n solidPressedBackground: `--qk-button-${color}-solid-pressed-background`,\n softBackground: `--qk-button-${color}-soft-background`,\n softHoverBackground: `--qk-button-${color}-soft-hover-background`,\n softPressedBackground: `--qk-button-${color}-soft-pressed-background`,\n borderColor: `--qk-button-${color}-border-color`\n } as const);\n}\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Button contract. */\nexport type QuireKitButtonCssVariableName = NestedStringValue<\n typeof buttonCssVariableNames\n>;\n","import type {\n QuireKitButtonSizeTokens,\n QuireKitButtonColorTokens,\n QuireKitButtonTokens\n} from \"../types\";\nimport {\n buttonCssVariableNames,\n type QuireKitButtonCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Button token contract to its explicit CSS variables.\n *\n * @param tokens - Approved Button component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createButtonCssVariables(\n tokens: QuireKitButtonTokens\n): Readonly<Record<QuireKitButtonCssVariableName, string>> {\n const name = buttonCssVariableNames;\n return Object.freeze({\n [name.typography.fontFamily]: tokens.fontFamily,\n [name.typography.fontWeight]: String(tokens.fontWeight),\n [name.typography.letterSpacing]: tokens.letterSpacing,\n ...sizeDeclarations(name.size.xs, tokens.size.xs),\n ...sizeDeclarations(name.size.sm, tokens.size.sm),\n ...sizeDeclarations(name.size.md, tokens.size.md),\n ...sizeDeclarations(name.size.lg, tokens.size.lg),\n ...sizeDeclarations(name.size.xl, tokens.size.xl),\n ...colorDeclarations(name.color.neutral, tokens.color.neutral),\n ...colorDeclarations(name.color.primary, tokens.color.primary),\n ...colorDeclarations(name.color.info, tokens.color.info),\n ...colorDeclarations(name.color.success, tokens.color.success),\n ...colorDeclarations(name.color.warning, tokens.color.warning),\n ...colorDeclarations(name.color.danger, tokens.color.danger),\n [name.disabled.foreground]: tokens.disabled.foreground,\n [name.disabled.background]: tokens.disabled.background,\n [name.disabled.borderColor]: tokens.disabled.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.focusColor]: tokens.focusColor,\n [name.hoverOpacity]: String(tokens.hoverOpacity),\n [name.pressedOpacity]: String(tokens.pressedOpacity),\n [name.feedbackDuration]: tokens.feedbackDuration,\n [name.feedbackEasing]: tokens.feedbackEasing\n }) as Readonly<Record<QuireKitButtonCssVariableName, string>>;\n}\n\n/**\n * Pairs one explicit size-variable group with matching component values.\n *\n * @param names - Explicit variable names for one public size.\n * @param value - Matching component-size values.\n * @returns Flat CSS declaration entries.\n */\nfunction sizeDeclarations(\n names: Readonly<Record<keyof QuireKitButtonSizeTokens, string>>,\n value: QuireKitButtonSizeTokens\n): Record<string, string> {\n return {\n [names.height]: value.height,\n [names.paddingInline]: value.paddingInline,\n [names.gap]: value.gap,\n [names.iconSize]: value.iconSize,\n [names.radius]: value.radius,\n [names.fontSize]: value.fontSize,\n [names.lineHeight]: value.lineHeight\n };\n}\n\n/**\n * Pairs one explicit color-variable group with matching component values.\n *\n * @param names - Explicit variable names for one semantic color.\n * @param value - Matching component-color values.\n * @returns Flat CSS declaration entries.\n */\nfunction colorDeclarations(\n names: Readonly<Record<keyof QuireKitButtonColorTokens, string>>,\n value: QuireKitButtonColorTokens\n): Record<string, string> {\n return {\n [names.foreground]: value.foreground,\n [names.solidForeground]: value.solidForeground,\n [names.solidBackground]: value.solidBackground,\n [names.solidHoverBackground]: value.solidHoverBackground,\n [names.solidPressedBackground]: value.solidPressedBackground,\n [names.softBackground]: value.softBackground,\n [names.softHoverBackground]: value.softHoverBackground,\n [names.softPressedBackground]: value.softPressedBackground,\n [names.borderColor]: value.borderColor\n };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitMenuTokens } from \"./types\";\n\n/**\n * Derives Menu component tokens from the approved semantic theme.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Menu component-token contract.\n */\nexport function createMenuTokens(theme: QuireKitTheme): QuireKitMenuTokens {\n return Object.freeze({\n typography: Object.freeze({\n fontFamily: theme.typography.compact.fontFamily,\n fontSize: theme.typography.compact.fontSize,\n lineHeight: theme.typography.compact.lineHeight,\n fontWeight: theme.typography.control.fontWeight,\n letterSpacing: theme.typography.compact.letterSpacing\n }),\n metadataTypography: Object.freeze({\n fontFamily: theme.typography.code.fontFamily,\n fontSize: theme.typography.helper.fontSize,\n lineHeight: theme.typography.helper.lineHeight\n }),\n color: Object.freeze({\n surface: theme.color.surface.overlay,\n border: theme.color.border.subtle,\n separator: theme.color.border.subtle,\n foreground: theme.color.text.secondary,\n highlightedForeground: theme.color.text.primary,\n highlightedBackground: theme.color.surface.hover,\n checkedBackground: theme.color.surface.selected,\n metadataForeground: theme.color.text.tertiary,\n disabledForeground: theme.color.text.disabled,\n dangerForeground: theme.color.danger.text,\n dangerHighlightedBackground: theme.color.danger.surface\n }),\n geometry: Object.freeze({\n contentWidth: \"200px\",\n contentPadding: theme.spacing.inlineTight,\n itemHeight: theme.control.regular,\n itemPaddingInline: theme.spacing.surfaceCompact,\n itemGap: theme.spacing.inline,\n iconSize: theme.control.icon,\n overlayRadius: theme.radius.overlay,\n itemRadius: theme.radius.control,\n borderWidth: theme.borderWidth.default,\n separatorWidth: theme.borderWidth.default,\n separatorInset: theme.spacing.inline,\n groupLabelPaddingBlock: theme.spacing.inlineTight,\n groupLabelPaddingInline: theme.spacing.surfaceCompact\n }),\n shadow: theme.elevation.overlay,\n layer: theme.layer.overlay,\n feedbackDuration: theme.motion.feedbackDuration,\n overlayDuration: theme.motion.overlayDuration,\n feedbackEasing: theme.motion.standardEasing,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing\n });\n}\n","/** Explicit CSS-variable names for the approved Menu component contract. */\nexport const menuCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-menu-font-family\",\n fontSize: \"--qk-menu-font-size\",\n lineHeight: \"--qk-menu-line-height\",\n fontWeight: \"--qk-menu-font-weight\",\n letterSpacing: \"--qk-menu-letter-spacing\"\n }),\n metadataTypography: Object.freeze({\n fontFamily: \"--qk-menu-metadata-font-family\",\n fontSize: \"--qk-menu-metadata-font-size\",\n lineHeight: \"--qk-menu-metadata-line-height\"\n }),\n color: Object.freeze({\n surface: \"--qk-menu-surface\",\n border: \"--qk-menu-border\",\n separator: \"--qk-menu-separator\",\n foreground: \"--qk-menu-foreground\",\n highlightedForeground: \"--qk-menu-highlighted-foreground\",\n highlightedBackground: \"--qk-menu-highlighted-background\",\n checkedBackground: \"--qk-menu-checked-background\",\n metadataForeground: \"--qk-menu-metadata-foreground\",\n disabledForeground: \"--qk-menu-disabled-foreground\",\n dangerForeground: \"--qk-menu-danger-foreground\",\n dangerHighlightedBackground: \"--qk-menu-danger-highlighted-background\"\n }),\n geometry: Object.freeze({\n contentWidth: \"--qk-menu-content-width\",\n contentPadding: \"--qk-menu-content-padding\",\n itemHeight: \"--qk-menu-item-height\",\n itemPaddingInline: \"--qk-menu-item-padding-inline\",\n itemGap: \"--qk-menu-item-gap\",\n iconSize: \"--qk-menu-icon-size\",\n overlayRadius: \"--qk-menu-overlay-radius\",\n itemRadius: \"--qk-menu-item-radius\",\n borderWidth: \"--qk-menu-border-width\",\n separatorWidth: \"--qk-menu-separator-width\",\n separatorInset: \"--qk-menu-separator-inset\",\n groupLabelPaddingBlock: \"--qk-menu-group-label-padding-block\",\n groupLabelPaddingInline: \"--qk-menu-group-label-padding-inline\"\n }),\n shadow: \"--qk-menu-shadow\",\n layer: \"--qk-menu-layer\",\n feedbackDuration: \"--qk-menu-feedback-duration\",\n overlayDuration: \"--qk-menu-overlay-duration\",\n feedbackEasing: \"--qk-menu-feedback-easing\",\n enterEasing: \"--qk-menu-enter-easing\",\n exitEasing: \"--qk-menu-exit-easing\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Menu contract. */\nexport type QuireKitMenuCssVariableName = NestedStringValue<\n typeof menuCssVariableNames\n>;\n","import type { QuireKitMenuTokens } from \"../types\";\nimport {\n menuCssVariableNames,\n type QuireKitMenuCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Menu token contract to its explicit CSS variables.\n *\n * @param tokens - Approved Menu component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createMenuCssVariables(\n tokens: QuireKitMenuTokens\n): Readonly<Record<QuireKitMenuCssVariableName, string>> {\n const name = menuCssVariableNames;\n return Object.freeze({\n ...flatDeclarations(name.typography, tokens.typography),\n ...flatDeclarations(name.metadataTypography, tokens.metadataTypography),\n ...flatDeclarations(name.color, tokens.color),\n ...flatDeclarations(name.geometry, tokens.geometry),\n [name.shadow]: tokens.shadow,\n [name.layer]: String(tokens.layer),\n [name.feedbackDuration]: tokens.feedbackDuration,\n [name.overlayDuration]: tokens.overlayDuration,\n [name.feedbackEasing]: tokens.feedbackEasing,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing\n }) as Readonly<Record<QuireKitMenuCssVariableName, string>>;\n}\n\n/**\n * Pairs one explicit variable-name group with matching component values.\n *\n * @param names - Explicit variable names.\n * @param values - Matching component-token values.\n * @returns Flat CSS declaration entries.\n */\nfunction flatDeclarations<T extends object>(\n names: Readonly<Record<string, string>>,\n values: T\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(values as Readonly<Record<string, string | number>>).map(\n ([key, value]) => [names[key], String(value)]\n )\n ) as Record<string, string>;\n}\n","import { menuCssVariableNames } from \"./names\";\n\n/** CSS-reference projection of every Menu component token. */\nexport const menuVariableReferences = Object.freeze({\n typography: mapReferences(menuCssVariableNames.typography),\n metadataTypography: mapReferences(menuCssVariableNames.metadataTypography),\n color: mapReferences(menuCssVariableNames.color),\n geometry: mapReferences(menuCssVariableNames.geometry),\n shadow: reference(menuCssVariableNames.shadow),\n layer: reference(menuCssVariableNames.layer),\n feedbackDuration: reference(menuCssVariableNames.feedbackDuration),\n overlayDuration: reference(menuCssVariableNames.overlayDuration),\n feedbackEasing: reference(menuCssVariableNames.feedbackEasing),\n enterEasing: reference(menuCssVariableNames.enterEasing),\n exitEasing: reference(menuCssVariableNames.exitEasing)\n});\n\n/**\n * Creates a CSS reference to an explicitly declared component variable.\n *\n * @param name - Declared CSS custom-property name.\n * @returns CSS variable reference.\n */\nfunction reference(name: string): string {\n return `var(${name})`;\n}\n\n/**\n * Projects one explicit component-variable group to CSS references.\n *\n * @param names - Approved variable names.\n * @returns Same-shaped CSS references.\n */\nfunction mapReferences<T extends Readonly<Record<string, string>>>(\n names: T\n): { readonly [Key in keyof T]: string } {\n return Object.freeze(\n Object.fromEntries(\n Object.entries(names).map(([key, name]) => [key, reference(name)])\n )\n ) as { readonly [Key in keyof T]: string };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitPopoverTokens } from \"./types\";\n\n/**\n * 从完整语义主题派生 Popover 组件 token。\n *\n * @param theme - 宿主已经解析完成的语义主题。\n * @returns 不可变的 Popover 组件 token。\n */\nexport function createPopoverTokens(\n theme: QuireKitTheme\n): QuireKitPopoverTokens {\n return Object.freeze({\n background: theme.color.surface.overlay,\n foreground: theme.color.text.primary,\n mutedForeground: theme.color.text.secondary,\n borderColor: theme.color.border.default,\n borderWidth: theme.borderWidth.default,\n radius: theme.radius.overlay,\n shadow: theme.elevation.overlay,\n padding: theme.spacing.surface,\n gap: theme.spacing.inline,\n arrowSize: theme.spacing.inline,\n closeSize: theme.control.default,\n closeRadius: theme.radius.control,\n closeHoverBackground: theme.color.surface.hover,\n closeForeground: theme.color.icon.secondary,\n focusColor: theme.color.border.focus,\n fontFamily: theme.typography.body.fontFamily,\n title: Object.freeze({\n fontSize: theme.typography.heading.fontSize,\n lineHeight: theme.typography.heading.lineHeight,\n fontWeight: theme.typography.heading.fontWeight,\n letterSpacing: theme.typography.heading.letterSpacing\n }),\n body: Object.freeze({\n fontSize: theme.typography.body.fontSize,\n lineHeight: theme.typography.body.lineHeight\n }),\n motionDuration: theme.motion.overlayDuration,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing,\n layer: theme.layer.overlay\n });\n}\n","/** Popover 组件合同的显式 CSS 变量名。 */\nexport const popoverCssVariableNames = Object.freeze({\n background: \"--qk-popover-background\",\n foreground: \"--qk-popover-foreground\",\n mutedForeground: \"--qk-popover-muted-foreground\",\n borderColor: \"--qk-popover-border-color\",\n borderWidth: \"--qk-popover-border-width\",\n radius: \"--qk-popover-radius\",\n shadow: \"--qk-popover-shadow\",\n padding: \"--qk-popover-padding\",\n gap: \"--qk-popover-gap\",\n arrowSize: \"--qk-popover-arrow-size\",\n closeSize: \"--qk-popover-close-size\",\n closeRadius: \"--qk-popover-close-radius\",\n closeHoverBackground: \"--qk-popover-close-hover-background\",\n closeForeground: \"--qk-popover-close-foreground\",\n focusColor: \"--qk-popover-focus-color\",\n fontFamily: \"--qk-popover-font-family\",\n title: Object.freeze({\n fontSize: \"--qk-popover-title-font-size\",\n lineHeight: \"--qk-popover-title-line-height\",\n fontWeight: \"--qk-popover-title-font-weight\",\n letterSpacing: \"--qk-popover-title-letter-spacing\"\n }),\n body: Object.freeze({\n fontSize: \"--qk-popover-body-font-size\",\n lineHeight: \"--qk-popover-body-line-height\"\n }),\n motionDuration: \"--qk-popover-motion-duration\",\n enterEasing: \"--qk-popover-enter-easing\",\n exitEasing: \"--qk-popover-exit-easing\",\n layer: \"--qk-popover-layer\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Popover 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitPopoverCssVariableName = NestedStringValue<\n typeof popoverCssVariableNames\n>;\n","import type { QuireKitPopoverTokens } from \"../types\";\nimport {\n popoverCssVariableNames,\n type QuireKitPopoverCssVariableName\n} from \"./names\";\n\n/**\n * 将 Popover 组件 token 投影为显式 CSS 变量声明。\n *\n * @param tokens - 已批准的 Popover 组件 token。\n * @returns 不可变的扁平 CSS 变量声明。\n */\nexport function createPopoverCssVariables(\n tokens: QuireKitPopoverTokens\n): Readonly<Record<QuireKitPopoverCssVariableName, string>> {\n const name = popoverCssVariableNames;\n return Object.freeze({\n [name.background]: tokens.background,\n [name.foreground]: tokens.foreground,\n [name.mutedForeground]: tokens.mutedForeground,\n [name.borderColor]: tokens.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.radius]: tokens.radius,\n [name.shadow]: tokens.shadow,\n [name.padding]: tokens.padding,\n [name.gap]: tokens.gap,\n [name.arrowSize]: tokens.arrowSize,\n [name.closeSize]: tokens.closeSize,\n [name.closeRadius]: tokens.closeRadius,\n [name.closeHoverBackground]: tokens.closeHoverBackground,\n [name.closeForeground]: tokens.closeForeground,\n [name.focusColor]: tokens.focusColor,\n [name.fontFamily]: tokens.fontFamily,\n [name.title.fontSize]: tokens.title.fontSize,\n [name.title.lineHeight]: tokens.title.lineHeight,\n [name.title.fontWeight]: String(tokens.title.fontWeight),\n [name.title.letterSpacing]: tokens.title.letterSpacing,\n [name.body.fontSize]: tokens.body.fontSize,\n [name.body.lineHeight]: tokens.body.lineHeight,\n [name.motionDuration]: tokens.motionDuration,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing,\n [name.layer]: String(tokens.layer)\n }) as Readonly<Record<QuireKitPopoverCssVariableName, string>>;\n}\n","import { quireKitControlSizes } from \"../control\";\nimport type { QuireKitTheme } from \"../../theme\";\nimport type {\n QuireKitSegmentedSizeTokens,\n QuireKitSegmentedTokens\n} from \"./types\";\n\n/**\n * 从完整语义主题派生 Segmented Control 组件 token。\n *\n * @param theme - 宿主选择的完整语义主题。\n * @returns 不可变的 Segmented Control 组件 token。\n */\nexport function createSegmentedTokens(\n theme: QuireKitTheme\n): QuireKitSegmentedTokens {\n return Object.freeze({\n fontFamily: theme.typography.control.fontFamily,\n fontWeight: theme.typography.body.fontWeight,\n letterSpacing: theme.typography.control.letterSpacing,\n size: Object.freeze({\n xs: sizeTokens(\n theme.control[quireKitControlSizes.xs.height],\n theme.spacing.inline,\n theme.spacing.inlineTight,\n theme.control.icon,\n theme.typography[quireKitControlSizes.xs.typography]\n ),\n sm: sizeTokens(\n theme.control[quireKitControlSizes.sm.height],\n theme.spacing.surfaceCompact,\n theme.spacing.inlineTight,\n theme.control.icon,\n theme.typography[quireKitControlSizes.sm.typography]\n ),\n md: sizeTokens(\n theme.control[quireKitControlSizes.md.height],\n theme.spacing.surfaceCompact,\n theme.spacing.inline,\n theme.control.icon,\n theme.typography[quireKitControlSizes.md.typography]\n ),\n lg: sizeTokens(\n theme.control[quireKitControlSizes.lg.height],\n theme.spacing.surface,\n theme.spacing.inline,\n theme.control.icon,\n theme.typography[quireKitControlSizes.lg.typography]\n ),\n xl: sizeTokens(\n theme.control[quireKitControlSizes.xl.height],\n theme.spacing.surface,\n theme.spacing.inline,\n theme.control.iconLarge,\n theme.typography[quireKitControlSizes.xl.typography]\n )\n }),\n trackInset: theme.borderWidth.focus,\n trackRadius: `calc(${theme.radius.control} + ${theme.borderWidth.focus})`,\n indicatorRadius: theme.radius.control,\n trackBackground: theme.color.surface.hover,\n foreground: theme.color.text.secondary,\n hoverForeground: theme.color.text.primary,\n hoverBackground: theme.color.surface.pressed,\n selectedForeground: theme.color.text.primary,\n selectedBackground: theme.color.surface.raised,\n disabledForeground: theme.color.text.disabled,\n focusColor: theme.color.border.focus,\n transitionDuration: theme.motion.controlDuration,\n transitionEasing: theme.motion.standardEasing\n });\n}\n\n/**\n * 组合一个公开尺寸的几何和排版投影。\n *\n * @param height - 语义控件高度。\n * @param paddingInline - 选项横向内边距。\n * @param gap - 选项内部内容间距。\n * @param iconSize - 图标光学盒尺寸。\n * @param typography - 匹配当前高度的语义排版角色。\n * @returns 不可变的公开尺寸 token。\n */\nfunction sizeTokens(\n height: string,\n paddingInline: string,\n gap: string,\n iconSize: string,\n typography: QuireKitTheme[\"typography\"][\"compact\"]\n): QuireKitSegmentedSizeTokens {\n return Object.freeze({\n height,\n paddingInline,\n gap,\n iconSize,\n fontSize: typography.fontSize,\n lineHeight: typography.lineHeight\n });\n}\n","/** Segmented Control 获准组件合同的显式 CSS 变量名。 */\nexport const segmentedCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-segmented-font-family\",\n fontWeight: \"--qk-segmented-font-weight\",\n letterSpacing: \"--qk-segmented-letter-spacing\"\n }),\n size: Object.freeze({\n xs: sizeNames(\"xs\"),\n sm: sizeNames(\"sm\"),\n md: sizeNames(\"md\"),\n lg: sizeNames(\"lg\"),\n xl: sizeNames(\"xl\")\n }),\n trackInset: \"--qk-segmented-track-inset\",\n trackRadius: \"--qk-segmented-track-radius\",\n indicatorRadius: \"--qk-segmented-indicator-radius\",\n trackBackground: \"--qk-segmented-track-background\",\n foreground: \"--qk-segmented-foreground\",\n hoverForeground: \"--qk-segmented-hover-foreground\",\n hoverBackground: \"--qk-segmented-hover-background\",\n selectedForeground: \"--qk-segmented-selected-foreground\",\n selectedBackground: \"--qk-segmented-selected-background\",\n disabledForeground: \"--qk-segmented-disabled-foreground\",\n focusColor: \"--qk-segmented-focus-color\",\n transitionDuration: \"--qk-segmented-transition-duration\",\n transitionEasing: \"--qk-segmented-transition-easing\"\n} as const);\n\n/**\n * 声明一个公开尺寸拥有的固定变量字段。\n *\n * @param size - 写入每个变量名的公开尺寸。\n * @returns 当前尺寸的显式变量名组。\n */\nfunction sizeNames(size: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\") {\n return Object.freeze({\n height: `--qk-segmented-${size}-height`,\n paddingInline: `--qk-segmented-${size}-padding-inline`,\n gap: `--qk-segmented-${size}-gap`,\n iconSize: `--qk-segmented-${size}-icon-size`,\n fontSize: `--qk-segmented-${size}-font-size`,\n lineHeight: `--qk-segmented-${size}-line-height`\n } as const);\n}\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Segmented Control 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitSegmentedCssVariableName = NestedStringValue<\n typeof segmentedCssVariableNames\n>;\n","import type {\n QuireKitSegmentedSizeTokens,\n QuireKitSegmentedTokens\n} from \"../types\";\nimport {\n segmentedCssVariableNames,\n type QuireKitSegmentedCssVariableName\n} from \"./names\";\n\n/**\n * 把 Segmented Control 组件合同投影为显式 CSS 变量。\n *\n * @param tokens - 已批准的 Segmented Control 组件 token。\n * @returns 不可变的扁平声明表。\n */\nexport function createSegmentedCssVariables(\n tokens: QuireKitSegmentedTokens\n): Readonly<Record<QuireKitSegmentedCssVariableName, string>> {\n const name = segmentedCssVariableNames;\n return Object.freeze({\n [name.typography.fontFamily]: tokens.fontFamily,\n [name.typography.fontWeight]: String(tokens.fontWeight),\n [name.typography.letterSpacing]: tokens.letterSpacing,\n ...sizeDeclarations(name.size.xs, tokens.size.xs),\n ...sizeDeclarations(name.size.sm, tokens.size.sm),\n ...sizeDeclarations(name.size.md, tokens.size.md),\n ...sizeDeclarations(name.size.lg, tokens.size.lg),\n ...sizeDeclarations(name.size.xl, tokens.size.xl),\n [name.trackInset]: tokens.trackInset,\n [name.trackRadius]: tokens.trackRadius,\n [name.indicatorRadius]: tokens.indicatorRadius,\n [name.trackBackground]: tokens.trackBackground,\n [name.foreground]: tokens.foreground,\n [name.hoverForeground]: tokens.hoverForeground,\n [name.hoverBackground]: tokens.hoverBackground,\n [name.selectedForeground]: tokens.selectedForeground,\n [name.selectedBackground]: tokens.selectedBackground,\n [name.disabledForeground]: tokens.disabledForeground,\n [name.focusColor]: tokens.focusColor,\n [name.transitionDuration]: tokens.transitionDuration,\n [name.transitionEasing]: tokens.transitionEasing\n }) as Readonly<Record<QuireKitSegmentedCssVariableName, string>>;\n}\n\n/**\n * 把一个尺寸变量组与对应组件值配对。\n *\n * @param names - 一个公开尺寸的显式变量名。\n * @param value - 同一尺寸的组件 token。\n * @returns 扁平 CSS 声明条目。\n */\nfunction sizeDeclarations(\n names: Readonly<Record<keyof QuireKitSegmentedSizeTokens, string>>,\n value: QuireKitSegmentedSizeTokens\n): Record<string, string> {\n return {\n [names.height]: value.height,\n [names.paddingInline]: value.paddingInline,\n [names.gap]: value.gap,\n [names.iconSize]: value.iconSize,\n [names.fontSize]: value.fontSize,\n [names.lineHeight]: value.lineHeight\n };\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type { QuireKitToolbarTokens } from \"./types\";\n\n/**\n * Derives Toolbar component tokens from the approved semantic theme.\n *\n * @param theme - Complete semantic theme selected by the host.\n * @returns Immutable Toolbar component-token contract.\n */\nexport function createToolbarTokens(theme: QuireKitTheme): QuireKitToolbarTokens {\n return Object.freeze({\n typography: Object.freeze({\n fontFamily: theme.typography.compact.fontFamily,\n fontSize: theme.typography.compact.fontSize,\n lineHeight: theme.typography.compact.lineHeight,\n fontWeight: theme.typography.control.fontWeight,\n letterSpacing: theme.typography.compact.letterSpacing\n }),\n geometry: Object.freeze({\n itemHeight: theme.control.default,\n iconSize: theme.control.icon,\n splitDisclosureWidth: theme.control.icon,\n itemPaddingInline: theme.spacing.inline,\n itemGap: theme.spacing.inlineTight,\n groupGap: theme.spacing.inlineTight,\n toolbarGap: theme.spacing.inline,\n itemRadius: theme.radius.control,\n borderWidth: theme.borderWidth.default,\n separatorWidth: theme.borderWidth.default,\n separatorInset: theme.spacing.inlineTight\n }),\n color: Object.freeze({\n surface: theme.color.surface.chrome,\n foreground: theme.color.icon.secondary,\n hoverBackground: theme.color.surface.hover,\n activeBackground: theme.color.surface.pressed,\n selectedBackground: theme.color.surface.selected,\n focusBorder: theme.color.border.focus,\n disabledForeground: theme.color.icon.disabled,\n separator: theme.color.border.subtle\n }),\n feedbackDuration: theme.motion.feedbackDuration,\n feedbackEasing: theme.motion.standardEasing\n });\n}\n","/** Explicit CSS-variable names for the Toolbar component contract. */\nexport const toolbarCssVariableNames = Object.freeze({\n typography: Object.freeze({\n fontFamily: \"--qk-toolbar-font-family\",\n fontSize: \"--qk-toolbar-font-size\",\n lineHeight: \"--qk-toolbar-line-height\",\n fontWeight: \"--qk-toolbar-font-weight\",\n letterSpacing: \"--qk-toolbar-letter-spacing\"\n }),\n geometry: Object.freeze({\n itemHeight: \"--qk-toolbar-item-height\",\n iconSize: \"--qk-toolbar-icon-size\",\n splitDisclosureWidth: \"--qk-toolbar-split-disclosure-width\",\n itemPaddingInline: \"--qk-toolbar-item-padding-inline\",\n itemGap: \"--qk-toolbar-item-gap\",\n groupGap: \"--qk-toolbar-group-gap\",\n toolbarGap: \"--qk-toolbar-gap\",\n itemRadius: \"--qk-toolbar-item-radius\",\n borderWidth: \"--qk-toolbar-border-width\",\n separatorWidth: \"--qk-toolbar-separator-width\",\n separatorInset: \"--qk-toolbar-separator-inset\"\n }),\n color: Object.freeze({\n surface: \"--qk-toolbar-surface\",\n foreground: \"--qk-toolbar-foreground\",\n hoverBackground: \"--qk-toolbar-hover-background\",\n activeBackground: \"--qk-toolbar-active-background\",\n selectedBackground: \"--qk-toolbar-selected-background\",\n focusBorder: \"--qk-toolbar-focus-border\",\n disabledForeground: \"--qk-toolbar-disabled-foreground\",\n separator: \"--qk-toolbar-separator\"\n }),\n feedbackDuration: \"--qk-toolbar-feedback-duration\",\n feedbackEasing: \"--qk-toolbar-feedback-easing\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Every CSS custom-property name declared by the Toolbar contract. */\nexport type QuireKitToolbarCssVariableName = NestedStringValue<\n typeof toolbarCssVariableNames\n>;\n","import type { QuireKitToolbarTokens } from \"../types\";\nimport {\n toolbarCssVariableNames,\n type QuireKitToolbarCssVariableName\n} from \"./names\";\n\n/**\n * Projects one Toolbar token contract to explicit CSS variables.\n *\n * @param tokens - Approved Toolbar component tokens.\n * @returns Immutable flat declaration map.\n */\nexport function createToolbarCssVariables(\n tokens: QuireKitToolbarTokens\n): Readonly<Record<QuireKitToolbarCssVariableName, string>> {\n const names = toolbarCssVariableNames;\n return Object.freeze({\n ...flatDeclarations(names.typography, tokens.typography),\n ...flatDeclarations(names.geometry, tokens.geometry),\n ...flatDeclarations(names.color, tokens.color),\n [names.feedbackDuration]: tokens.feedbackDuration,\n [names.feedbackEasing]: tokens.feedbackEasing\n }) as Readonly<Record<QuireKitToolbarCssVariableName, string>>;\n}\n\n/**\n * Pairs one variable-name group with matching Toolbar values.\n *\n * @param names - Explicit Toolbar variable names.\n * @param values - Matching Toolbar token values.\n * @returns Flat CSS declaration entries.\n */\nfunction flatDeclarations(\n names: Readonly<Record<string, string>>,\n values: object\n): Record<string, string> {\n const entries = Object.entries(values) as Array<[string, string | number]>;\n return Object.fromEntries(\n entries.map(([key, value]) => [names[key], String(value)])\n ) as Record<string, string>;\n}\n","import type { QuireKitTheme } from \"../../theme\";\nimport type {\n QuireKitTooltipContentOptions,\n QuireKitTooltipTokens\n} from \"./types\";\n\n/** Tooltip pointer/focus 触发前的默认短延迟。 */\nexport const defaultTooltipOpenDelay = 400;\n\n/** Tooltip 离开 trigger 后的默认关闭缓冲。 */\nexport const defaultTooltipCloseDelay = 100;\n\n/**\n * 从完整语义主题派生 Tooltip 组件 token。\n *\n * @param theme - 宿主已经解析完成的语义主题。\n * @returns 不可变的 Tooltip 组件 token。\n */\nexport function createTooltipTokens(\n theme: QuireKitTheme\n): QuireKitTooltipTokens {\n const typography = theme.typography.compact;\n return Object.freeze({\n background: theme.color.surface.inverse,\n foreground: theme.color.text.inverse,\n borderColor: theme.color.surface.transparent,\n borderWidth: theme.borderWidth.none,\n radius: theme.radius.control,\n shadow: theme.elevation.overlay,\n paddingBlock: theme.spacing.inlineTight,\n paddingInline: theme.spacing.inline,\n gap: theme.spacing.inlineTight,\n arrowSize: theme.spacing.inline,\n typography: Object.freeze({\n fontFamily: typography.fontFamily,\n fontSize: typography.fontSize,\n lineHeight: typography.lineHeight,\n fontWeight: typography.fontWeight,\n letterSpacing: typography.letterSpacing\n }),\n motionDuration: theme.motion.feedbackDuration,\n enterEasing: theme.motion.enterEasing,\n exitEasing: theme.motion.exitEasing,\n layer: theme.layer.tooltip\n });\n}\n\n/**\n * 解析 Tooltip 当前应显示的标签或禁用原因。\n *\n * 禁用原因只在 subject 确实不可用且原因非空时覆盖普通标签;这让\n * pointer、keyboard focus 与读屏描述消费同一份稳定文案。\n *\n * @param options - 普通标签、禁用原因与 subject 状态。\n * @returns 当前提示文案;没有可展示内容时返回 `undefined`。\n */\nexport function resolveTooltipContent(\n options: QuireKitTooltipContentOptions\n): string | undefined {\n const content = normalizeContent(options.content);\n const disabledReason = normalizeContent(options.disabledReason);\n if (options.subjectDisabled && disabledReason !== undefined) {\n return disabledReason;\n }\n return content;\n}\n\n/**\n * 把空白文案归一化为缺失值,同时保留有效文案的原始内容。\n *\n * @param content - 待归一化的可选文案。\n * @returns 有效文案或 `undefined`。\n */\nfunction normalizeContent(content: string | undefined): string | undefined {\n return content?.trim() ? content : undefined;\n}\n","/** Tooltip 组件合同的显式 CSS 变量名。 */\nexport const tooltipCssVariableNames = Object.freeze({\n background: \"--qk-tooltip-background\",\n foreground: \"--qk-tooltip-foreground\",\n borderColor: \"--qk-tooltip-border-color\",\n borderWidth: \"--qk-tooltip-border-width\",\n radius: \"--qk-tooltip-radius\",\n shadow: \"--qk-tooltip-shadow\",\n paddingBlock: \"--qk-tooltip-padding-block\",\n paddingInline: \"--qk-tooltip-padding-inline\",\n gap: \"--qk-tooltip-gap\",\n arrowSize: \"--qk-tooltip-arrow-size\",\n typography: Object.freeze({\n fontFamily: \"--qk-tooltip-font-family\",\n fontSize: \"--qk-tooltip-font-size\",\n lineHeight: \"--qk-tooltip-line-height\",\n fontWeight: \"--qk-tooltip-font-weight\",\n letterSpacing: \"--qk-tooltip-letter-spacing\"\n }),\n motionDuration: \"--qk-tooltip-motion-duration\",\n enterEasing: \"--qk-tooltip-enter-easing\",\n exitEasing: \"--qk-tooltip-exit-easing\",\n layer: \"--qk-tooltip-layer\"\n} as const);\n\ntype NestedStringValue<T> = T extends string\n ? T\n : { readonly [Key in keyof T]: NestedStringValue<T[Key]> }[keyof T];\n\n/** Tooltip 合同声明的全部 CSS 自定义属性名。 */\nexport type QuireKitTooltipCssVariableName = NestedStringValue<\n typeof tooltipCssVariableNames\n>;\n","import type { QuireKitTooltipTokens } from \"../types\";\nimport {\n tooltipCssVariableNames,\n type QuireKitTooltipCssVariableName\n} from \"./names\";\n\n/**\n * 将 Tooltip 组件 token 投影为显式 CSS 变量声明。\n *\n * @param tokens - 已批准的 Tooltip 组件 token。\n * @returns 不可变的扁平 CSS 变量声明。\n */\nexport function createTooltipCssVariables(\n tokens: QuireKitTooltipTokens\n): Readonly<Record<QuireKitTooltipCssVariableName, string>> {\n const name = tooltipCssVariableNames;\n return Object.freeze({\n [name.background]: tokens.background,\n [name.foreground]: tokens.foreground,\n [name.borderColor]: tokens.borderColor,\n [name.borderWidth]: tokens.borderWidth,\n [name.radius]: tokens.radius,\n [name.shadow]: tokens.shadow,\n [name.paddingBlock]: tokens.paddingBlock,\n [name.paddingInline]: tokens.paddingInline,\n [name.gap]: tokens.gap,\n [name.arrowSize]: tokens.arrowSize,\n [name.typography.fontFamily]: tokens.typography.fontFamily,\n [name.typography.fontSize]: tokens.typography.fontSize,\n [name.typography.lineHeight]: tokens.typography.lineHeight,\n [name.typography.fontWeight]: String(tokens.typography.fontWeight),\n [name.typography.letterSpacing]: tokens.typography.letterSpacing,\n [name.motionDuration]: tokens.motionDuration,\n [name.enterEasing]: tokens.enterEasing,\n [name.exitEasing]: tokens.exitEasing,\n [name.layer]: String(tokens.layer)\n }) as Readonly<Record<QuireKitTooltipCssVariableName, string>>;\n}\n","import { createToggleGroupTokens, createToggleGroupCssVariables } from \"../components/toggle-group\";\nimport { createCheckboxGroupTokens, createCheckboxGroupCssVariables } from \"../components/checkbox-group\";\nimport { createKbdTokens, createKbdCssVariables } from \"../components/kbd\";\nimport { createSkeletonTokens, createSkeletonCssVariables } from \"../components/skeleton\";\nimport { createTagTokens, createTagCssVariables } from \"../components/tag\";\nimport { createBadgeTokens, createBadgeCssVariables } from \"../components/badge\";\nimport { createTableTokens, createTableCssVariables } from \"../components/table\";\nimport { createThemeCssVariables } from \"../theme/variables\";\nimport type { QuireKitTheme } from \"../theme/types\";\nimport { createButtonCssVariables, createButtonTokens } from \"../components/button\";\nimport { createMenuCssVariables, createMenuTokens } from \"../components/menu\";\nimport { createPopoverCssVariables, createPopoverTokens } from \"../components/popover\";\nimport { createSegmentedCssVariables, createSegmentedTokens } from \"../components/segmented\";\nimport { createToolbarCssVariables, createToolbarTokens } from \"../components/toolbar\";\nimport { createTooltipCssVariables, createTooltipTokens } from \"../components/tooltip\";\n\nconst themeVariables = new WeakMap<QuireKitTheme, Readonly<Record<string, string>>>();\n\n/**\n * Projects one theme together with its approved component tokens.\n * @param theme - Complete immutable semantic theme owned by the consumer.\n * @returns Stable immutable variables shared by ordinary and teleported roots and static CSS generation.\n */\nexport function createUiThemeCssVariables(theme: QuireKitTheme): Readonly<Record<string, string>> {\n const retained = themeVariables.get(theme);\n if (retained !== undefined) return retained;\n\n // Theme replacement is the invalidation boundary. Stable projection identity\n // keeps unrelated UI updates from comparing and rewriting every CSS variable.\n const variables = Object.freeze({\n ...createThemeCssVariables(theme),\n ...createToggleGroupCssVariables(createToggleGroupTokens(theme)),\n ...createCheckboxGroupCssVariables(createCheckboxGroupTokens(theme)),\n ...createKbdCssVariables(createKbdTokens(theme)),\n ...createSkeletonCssVariables(createSkeletonTokens(theme)),\n ...createBadgeCssVariables(createBadgeTokens(theme)),\n ...createTagCssVariables(createTagTokens(theme)),\n ...createTableCssVariables(createTableTokens(theme)),\n ...createButtonCssVariables(createButtonTokens(theme)),\n ...createMenuCssVariables(createMenuTokens(theme)),\n ...createPopoverCssVariables(createPopoverTokens(theme)),\n ...createSegmentedCssVariables(createSegmentedTokens(theme)),\n ...createToolbarCssVariables(createToolbarTokens(theme)),\n ...createTooltipCssVariables(createTooltipTokens(theme)),\n });\n themeVariables.set(theme, variables);\n return variables;\n}\n","import type { QuireKitFileIconProps, QuireKitFileIdentity, QuireKitFileKind } from './types';\n\nconst families: ReadonlyArray<readonly [QuireKitFileKind, string, string]> = [\n ['document', 'W', 'doc docx docm dot dotx odt rtf pages'],\n ['spreadsheet', 'X', 'xls xlsx xlsm xlsb ods csv tsv numbers'],\n ['presentation', 'P', 'ppt pptx pptm odp key'],\n ['pdf', 'PDF', 'pdf'],\n ['ofd', 'OFD', 'ofd'],\n ['image', 'IMG', 'png jpg jpeg gif webp svg avif heic heif bmp tif tiff ico'],\n ['video', 'VID', 'mp4 mov m4v webm mkv avi wmv flv mpg mpeg 3gp'],\n ['audio', 'AUD', 'mp3 wav flac aac m4a ogg opus aiff mid midi'],\n ['archive', 'ZIP', 'zip rar 7z tar gz gzip bz2 xz tgz zst'],\n ['code', '</>', 'js jsx ts tsx json jsonc yaml yml xml py rb go rs java c h cpp hpp cs swift kt sh bash zsh sql toml ini vue svelte'],\n ['web', 'WEB', 'html htm css scss sass less'],\n ['markdown', 'MD', 'md mdx markdown'],\n ['text', 'TXT', 'txt log readme'],\n ['design', 'DES', 'fig sketch psd ai eps xd afdesign'],\n ['font', 'Aa', 'ttf otf woff woff2 eot'],\n ['file', 'FILE', '']\n];\nconst byExtension = new Map(families.flatMap(([kind, badge, extensions]) => extensions.split(' ').filter(Boolean).map(extension => [extension, { kind, badge }] as const)));\n\n/** Resolve an explicit family, known extension, then MIME; unknown files remain neutral.\n * @param file - Display metadata, never trusted as a content/security check.\n * @returns Stable color family and legible short badge.\n */\nexport function resolveQuireKitFileIdentity(file: QuireKitFileIconProps): QuireKitFileIdentity {\n const explicit = file.kind && families.find(([kind]) => kind === file.kind);\n if (explicit) return { kind: explicit[0], badge: explicit[1] };\n const name = file.name?.toLowerCase().trim() ?? '';\n const extension = name.includes('.') ? name.split('.').at(-1)! : '';\n const known = byExtension.get(extension);\n if (known) return { ...known };\n const mime = file.mediaType?.toLowerCase().split(';')[0]?.trim() ?? '';\n const kind: QuireKitFileKind = mime.startsWith('image/') ? 'image' : mime.startsWith('video/') ? 'video' : mime.startsWith('audio/') ? 'audio'\n : /pdf$/.test(mime) ? 'pdf' : /word|opendocument.text/.test(mime) ? 'document'\n : /excel|spreadsheet|csv/.test(mime) ? 'spreadsheet' : /powerpoint|presentation/.test(mime) ? 'presentation'\n : /zip|compressed|archive|tar$/.test(mime) ? 'archive' : /html|css/.test(mime) ? 'web'\n : /markdown/.test(mime) ? 'markdown' : /json|javascript|xml/.test(mime) ? 'code'\n : /font/.test(mime) ? 'font' : mime.startsWith('text/') ? 'text' : 'file';\n return { kind, badge: families.find(([family]) => family === kind)![1] };\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,wBAAwB,OAAiD;CACvF,OAAO,EAAE,KAAK,MAAM,QAAQ,YAAY;AAC1C;;;;;;;;ACHA,SAAgB,8BAA8B,QAAqE;CACjH,OAAO,EAAE,yBAAyB,OAAO,IAAI;AAC/C;;;;;;;;ACDA,SAAgB,0BAA0B,OAAmD;CAC3F,OAAO;EAAE,KAAK,MAAM,QAAQ;EAAQ,WAAW,MAAM,QAAQ;EAAS,YAAY,MAAM,MAAM,KAAK;CAAU;AAC/G;;;;;;;;ACHA,SAAgB,gCAAgC,QAAuE;CACrH,OAAO;EAAE,2BAA2B,OAAO;EAAK,kCAAkC,OAAO;EAAW,mCAAmC,OAAO;CAAW;AAC3J;;;;;;;;ACAA,SAAgB,gBAAgB,OAAyC;CACvE,OAAO;EACL,YAAY,MAAM,MAAM,KAAK;EAAW,YAAY,MAAM,MAAM,QAAQ;EACxE,aAAa,MAAM,MAAM,OAAO;EAAS,aAAa,MAAM,YAAY;EACxE,QAAQ,MAAM,OAAO;EAAS,YAAY,MAAM,WAAW,KAAK;EAChE,YAAY,MAAM,WAAW,KAAK;EAAY,eAAe,MAAM,WAAW,KAAK;EACnF,MAAM;GACJ,IAAI,WAAW,OAAO,IAAI;GAAG,IAAI,WAAW,OAAO,IAAI;GAAG,IAAI,WAAW,OAA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