@wow-two-beta/fe 0.0.27 → 0.0.29
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/chunks/{AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js → AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js} +700 -283
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +1 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js +267 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map +1 -0
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js} +2 -3
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js.map → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js → KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js} +169 -427
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js} +4 -4
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js → MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js} +133 -82
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +1 -0
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js.map → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js → SurfaceStyles-BYvRlsWe.js} +2 -2
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js.map → SurfaceStyles-BYvRlsWe.js.map} +1 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map} +1 -1
- package/dist/chunks/{Tones-CQu-OvAk.js → Tones-Bcz8dIo3.js} +159 -1
- package/dist/chunks/Tones-Bcz8dIo3.js.map +1 -0
- package/dist/chunks/{index-C-r59Hob.js → index-CGIXFfl9.js} +3 -4
- package/dist/chunks/{index-C-r59Hob.js.map → index-CGIXFfl9.js.map} +1 -1
- package/dist/foundation/config/ConfigSource.d.ts +12 -5
- package/dist/foundation/config/DefineConfig.d.ts +9 -4
- package/dist/foundation/config/index.d.ts +1 -1
- package/dist/foundation/config/index.js +12 -9
- package/dist/foundation/config/index.js.map +1 -1
- package/dist/foundation/styles/index.js +9 -10
- package/dist/foundation/styles/index.js.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.js +465 -463
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/index.js +178 -177
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/InputStyles.d.ts +4 -4
- package/dist/presentation/forms/comboboxPicker/ComboboxPickerContext.d.ts +3 -0
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +3 -0
- package/dist/presentation/forms/selectPicker/SelectPicker.variants.d.ts +5 -5
- package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +3 -0
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +131 -0
- package/dist/presentation/nav/accountMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -71
- package/dist/presentation/overlays/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +0 -1
- package/dist/chunks/CssExtensions-ctGVlfYU.js +0 -161
- package/dist/chunks/CssExtensions-ctGVlfYU.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +0 -1
- package/dist/chunks/Tones-CQu-OvAk.js.map +0 -1
|
@@ -8,7 +8,7 @@ import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
|
8
8
|
import { _ as _sfc_main$d, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
|
|
9
9
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
10
10
|
import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
|
|
11
|
-
import { C as CssExtensions } from "./
|
|
11
|
+
import { C as CssExtensions } from "./Tones-Bcz8dIo3.js";
|
|
12
12
|
import { a as ColorTone, C as ColorExtensions } from "./ColorExtensions-DiCSaVbJ.js";
|
|
13
13
|
import { u as useSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
|
|
14
14
|
import { u as useFormControl, a as useFormControlChrome } from "./FormControlContext-B71MFW26.js";
|
|
@@ -1250,4 +1250,4 @@ export {
|
|
|
1250
1250
|
buildMonthGrid as y,
|
|
1251
1251
|
zonedAtHour as z
|
|
1252
1252
|
};
|
|
1253
|
-
//# sourceMappingURL=FieldHelperText.vue_vue_type_script_setup_true_lang-
|
|
1253
|
+
//# sourceMappingURL=FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js","sources":["../../src/presentation/display/kbdText/KbdText.vue","../../src/presentation/display/tag/Tag.variants.ts","../../src/presentation/display/tag/Tag.vue","../../src/presentation/display/treeViewer/TreeViewerContext.ts","../../src/presentation/display/treeViewer/TreeViewer.vue","../../src/presentation/display/treeViewer/TreeViewerGroupContent.vue","../../src/presentation/display/treeViewer/TreeViewerNodeRow.vue","../../src/presentation/display/treeViewer/TreeViewerGroup.vue","../../src/presentation/display/treeViewer/TreeViewerItem.vue","../../src/presentation/forms/UseNativeFormReset.ts","../../src/presentation/forms/checkboxInput/CheckboxInput.variants.ts","../../src/presentation/forms/checkboxInput/CheckboxInput.vue","../../src/presentation/forms/DateExtensions.ts","../../src/presentation/display/legendText/LegendText.vue","../../src/presentation/display/labelText/LabelText.vue","../../src/presentation/display/colorSwatchPreview/ColorSwatchPreview.variants.ts","../../src/presentation/display/colorSwatchPreview/ColorSwatchPreview.vue","../../src/presentation/display/fieldHelperText/FieldHelperText.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport type KbdTextProps = HTMLAttributes;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders one keyboard key as a `<kbd>` with a subtle border and inset shadow.\n *\n * One key per `KbdText`; chain via `<KbdText>⌘</KbdText> + <KbdText>K</KbdText>`.\n */\ndefineOptions({ name: 'KbdText', inheritAttrs: false });\n\n/** The key glyph — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border',\n 'bg-muted px-1.5 font-mono text-xs text-muted-foreground shadow-[inset_0_-1px_0_0_rgb(0_0_0/0.05)]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <kbd ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></kbd>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the Tag color treatment. */\nexport const TagVariant = {\n /** Refers to the neutral bordered chip. */\n Neutral: 'neutral',\n /** Refers to the primary brand tint. */\n Brand: 'brand',\n /** Refers to the positive / confirmation tint. */\n Success: 'success',\n /** Refers to the caution tint. */\n Warning: 'warning',\n /** Refers to the destructive / error tint. */\n Danger: 'danger',\n /** Refers to the informational tint. */\n Info: 'info',\n} as const;\n\nexport type TagVariant = (typeof TagVariant)[keyof typeof TagVariant];\n\nexport const tagVariants = tv({\n base: 'inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 py-0.5 text-xs font-medium text-card-foreground',\n variants: {\n variant: {\n neutral: '',\n brand: 'border-transparent bg-primary-soft text-primary-soft-foreground',\n success: 'border-transparent bg-success-soft text-success-soft-foreground',\n warning: 'border-transparent bg-warning-soft text-warning-soft-foreground',\n danger: 'border-transparent bg-destructive-soft text-destructive-soft-foreground',\n info: 'border-transparent bg-info-soft text-info-soft-foreground',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n});\n\nexport type TagVariants = VariantProps<typeof tagVariants>;\n\n/* Compile-time lock: enum values ≡ tv variant value-set (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertTagVariant: AssertExact<TagVariant, NonNullable<VariantProps<typeof tagVariants>['variant']>> = true;\nvoid _assertTagVariant;\n","<script lang=\"ts\">\nimport type { TagVariant } from './Tag.variants';\n\nexport interface TagProps {\n /** The color treatment. */\n readonly variant?: TagVariant;\n\n /** The accessible label for the close button. Default `\"Remove\"`. */\n readonly closeLabel?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { computed, getCurrentInstance, useAttrs, useTemplateRef } from 'vue';\nimport { X } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport { tagVariants } from './Tag.variants';\n\nconst CloseIcon = X;\n\n/**\n * Renders a pill with an optional close button, shown only when the consumer binds `@close`.\n *\n * The close button is a raw `<button>` to keep the strict atom rule — `Tag` is L3, so importing `Button` would make\n * this an atom-on-atom composition.\n */\ndefineOptions({ name: 'Tag', inheritAttrs: false });\n\n/** The tag copy — React's optional `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst componentProps = withDefaults(defineProps<TagProps>(), {});\nconst props = useLocaleDefaults(componentProps, 'Tag', { closeLabel: 'Remove' });\n\n/** Replaces React's `onClose`; omitting `@close` omits the close button. */\nconst emit = defineEmits<{\n /** Fires when the close (×) button is clicked. */\n close: [];\n}>();\n\nconst attrs = useAttrs();\nconst instance = getCurrentInstance();\nconst el = useTemplateRef<HTMLSpanElement>('el');\n\n/**\n * Mirrors React's `onClose && <button/>` guard — the close button renders only\n * when the consumer bound `@close`. Read through a call, not a cached computed:\n * `instance.vnode` is replaced on every re-render.\n */\nconst hasClose = () => Boolean(instance?.vnode.props?.onClose);\n\nconst classes = computed(() => cn(tagVariants({ variant: props.variant }), attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <span ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n <button\n v-if=\"hasClose()\"\n type=\"button\"\n :aria-label=\"props.closeLabel\"\n class=\"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring\"\n @click=\"emit('close')\"\n >\n <Icon :icon=\"CloseIcon\" :size=\"12\" />\n </button>\n </span>\n</template>\n","import { inject, type InjectionKey } from 'vue';\n\n/**\n * The seam between `TreeViewer` and its `TreeViewerGroup` / `TreeViewerItem` children.\n *\n * React attached those as `TreeViewer.Group` / `.Item` statics over a `createContext`.\n * An SFC's generated default export cannot carry statics cleanly, so they ship\n * as sibling components and share state through provide/inject instead.\n *\n * `selectedValue` and `expanded` are live getters — read them, don't destructure.\n */\nexport interface TreeViewerContextValue {\n /** The selected leaf value, or `null`. */\n readonly selectedValue: string | null;\n /** Selects a leaf. */\n setSelectedValue: (value: string) => void;\n /** The expanded branch values. */\n readonly expanded: ReadonlySet<string>;\n /** Flips one branch open/closed. */\n toggleExpanded: (value: string) => void;\n}\n\nexport const TreeViewerKey: InjectionKey<TreeViewerContextValue> = Symbol('wow-two.tree');\n\nexport function useTreeContext(): TreeViewerContextValue {\n const context = inject(TreeViewerKey, null);\n if (!context) throw new Error('TreeViewer.* must be used inside <TreeViewer>');\n return context;\n}\n\n/** The nesting depth, 1-based — React's `TreeViewerLevelContext`, defaulted to the root level. */\nexport interface TreeViewerLevelValue {\n readonly level: number;\n}\n\nexport const TreeViewerLevelKey: InjectionKey<TreeViewerLevelValue> = Symbol('wow-two.tree.level');\n\n/** Returns the level holder rather than the number, so a nested provide stays live. */\nexport function useTreeLevel(): TreeViewerLevelValue {\n return inject(TreeViewerLevelKey, { level: 1 });\n}\n","<script lang=\"ts\">\nexport interface TreeViewerProps {\n /** The controlled selected leaf value. */\n readonly modelValue?: string | null;\n /** The uncontrolled initial selected leaf value. */\n readonly defaultValue?: string | null;\n /** The controlled expanded branch values. */\n readonly expanded?: ReadonlyArray<string>;\n /** The uncontrolled initial expanded branch values. */\n readonly defaultExpanded?: ReadonlyArray<string>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { RovingFocusGroup, type ComponentElement } from '../../../foundation/primitives';\nimport { TreeViewerKey, type TreeViewerContextValue } from './TreeViewerContext';\n\n/**\n * Renders the tree root that owns selection and expansion for its branches and leaves.\n *\n * `TreeViewerGroup` / `TreeViewerItem` read them through injection — React attached those as `TreeViewer.Group`\n * / `.Item` statics,\n * which an SFC's default export cannot carry.\n */\ndefineOptions({ name: 'TreeViewer', inheritAttrs: false });\n\n/** The `TreeViewerGroup` / `TreeViewerItem` children — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerProps>(), {\n modelValue: undefined,\n defaultValue: undefined,\n expanded: undefined,\n defaultExpanded: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader selects a leaf, with its value. */\n 'update:modelValue': [value: string];\n /** Fires when the reader expands or collapses a branch, with the full expanded list. */\n 'update:expanded': [values: ReadonlyArray<string>];\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<ComponentElement>('el');\n\nconst { value: selected, setValue: setSelected } = useControlled<string | null>({\n controlled: () => props.modelValue,\n default: props.defaultValue ?? null,\n /* Only ever called with a string — `setSelectedValue` is the single writer. */\n onChange: (next) => emit('update:modelValue', next as string),\n});\n\nconst { value: expandedList, setValue: setExpandedList } = useControlled<ReadonlyArray<string>>({\n controlled: () => props.expanded,\n default: props.defaultExpanded ?? [],\n onChange: (next) => emit('update:expanded', next),\n});\n\nconst expandedSet = computed(() => new Set(expandedList.value));\n\nfunction toggleExpanded(value: string): void {\n const next = new Set(expandedSet.value);\n if (next.has(value)) next.delete(value);\n else next.add(value);\n setExpandedList(Array.from(next));\n}\n\n/* Live getters, not a snapshot — selection and expansion have to reach every\n already-mounted row. */\nprovide<TreeViewerContextValue>(TreeViewerKey, {\n get selectedValue() {\n return selected.value;\n },\n setSelectedValue: setSelected,\n get expanded() {\n return expandedSet.value;\n },\n toggleExpanded,\n});\n\nconst classes = computed(() => cn('flex flex-col text-sm', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** Exposes the child's documented DOM handle, never its component instance. */\nconst rootElement = computed<HTMLElement | null>(() => {\n const node = el.value?.el;\n const elementType = node?.ownerDocument.defaultView?.HTMLElement;\n return elementType && node instanceof elementType ? node : null;\n});\n\ndefineExpose({ el: rootElement });\n</script>\n\n<template>\n <RovingFocusGroup ref=\"el\" orientation=\"vertical\" can-loop role=\"tree\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n </RovingFocusGroup>\n</template>\n","<script lang=\"ts\">\n/** Internal — the animated wrapper `Presence` mounts for an expanded branch. */\nexport interface TreeViewerGroupContentProps {\n /** The nesting depth published to the rows inside. */\n readonly level: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { TreeViewerLevelKey, type TreeViewerLevelValue } from './TreeViewerContext';\n\n/**\n * Renders the animating inner element of a `TreeViewerGroup`, growing its height as the branch expands.\n *\n * `<Presence>` clones this component's vnode with `data-state` + a ref, both of which reach the root\n * `<div>` through `rest`. Height animates via grid-template-rows 0fr -> 1fr, and the inner\n * `min-h-0 overflow-hidden` track clips the group so it can shrink to zero. No fade (height only) —\n * the chevron handles the rotate. Motion-safe-gated; reduced-motion gets an instant snap.\n */\ndefineOptions({ name: 'TreeViewerGroupContent', inheritAttrs: false });\n\n/** The nested `TreeViewerGroup` / `TreeViewerItem` children. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = defineProps<TreeViewerGroupContentProps>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/* Live getter, not a snapshot — React re-provided on every render. */\nprovide<TreeViewerLevelValue>(TreeViewerLevelKey, {\n get level() {\n return props.level;\n },\n});\n\nconst classes = computed(() =>\n cn(\n 'grid',\n 'motion-safe:transition-[grid-template-rows] motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) motion-reduce:transition-none',\n 'data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div class=\"min-h-0 overflow-hidden\">\n <ul role=\"group\" class=\"flex flex-col\">\n <slot />\n </ul>\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\n/** Internal — the focusable `role=\"treeitem\"` row shared by `TreeViewerGroup` and `TreeViewerItem`. */\nexport interface TreeViewerNodeRowProps {\n /** The 1-based nesting depth. */\n readonly level: number;\n /** The selected state. */\n readonly isSelected: boolean;\n /** The expanded state — only meaningful when `hasChildren`. */\n readonly isExpanded?: boolean;\n /** Whether the row owns a child group. */\n readonly hasChildren: boolean;\n /** The disabled state. */\n readonly isDisabled: boolean;\n /** Toggles a branch or selects a leaf. Required, so it stays a prop rather than an emit. */\n readonly onActivate: () => void;\n}\n\n/* DOM-walking targets for the APG horizontal arrows. Anatomy per branch:\n <li role=presentation> → [row div role=treeitem, content → <ul role=group>].\n The tree root is role=\"tree\", so a root-level row has no `[role=\"group\"]`\n ancestor and ArrowLeft is a no-op there. */\n\n/** First child row of an expanded branch — ArrowRight descends into it. */\nfunction focusFirstChildRow(row: HTMLElement): void {\n row.closest('li')?.querySelector<HTMLElement>('[role=\"group\"] [role=\"treeitem\"]')?.focus();\n}\n\n/** Row of the branch owning this row — ArrowLeft climbs to it. */\nfunction findParentRow(row: HTMLElement): HTMLElement | null {\n return row.closest('[role=\"group\"]')?.closest('li')?.querySelector<HTMLElement>(':scope > [role=\"treeitem\"]') ?? null;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { ChevronRight } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { dataAttr } from '../../../foundation/dom';\nimport { useRovingFocusItem } from '../../../foundation/primitives';\n\n/** Renders one tree row — chevron, label, and the `treeitem` ARIA state of a branch or a leaf. */\ndefineOptions({ name: 'TreeViewerNodeRow' });\n\n/** The row label. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerNodeRowProps>(), {\n // `undefined` is meaningful: a leaf must render no `aria-expanded` at all.\n isExpanded: undefined,\n});\n\n// Reactive object: bound with `v-bind`, never destructured.\nconst item = useRovingFocusItem();\n\n/**\n * Runs after the roving group's own key handler — `v-bind=\"item\"` sits ahead of\n * this binding, so `defaultPrevented` reflects what that handler already did.\n */\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || props.isDisabled) return;\n const row = event.currentTarget as HTMLElement;\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n props.onActivate();\n return;\n }\n /* APG tree pattern — the vertical roving group above ignores the\n horizontal arrows, so they are free to drive expand/collapse here. */\n if (event.key === 'ArrowRight' && props.hasChildren) {\n event.preventDefault();\n if (props.isExpanded) focusFirstChildRow(row);\n else props.onActivate(); // Expand; focus stays on the branch.\n return;\n }\n if (event.key === 'ArrowLeft') {\n if (props.hasChildren && props.isExpanded) {\n event.preventDefault();\n props.onActivate(); // Collapse; focus stays on the branch.\n return;\n }\n // Leaf or collapsed branch: climb to the parent branch, if any.\n const parentRow = findParentRow(row);\n if (parentRow) {\n event.preventDefault();\n parentRow.focus();\n }\n }\n}\n\nfunction onClick(): void {\n if (!props.isDisabled) props.onActivate();\n}\n\n/** Vue does not append `px` to a numeric `:style` value — spelled out. */\nconst rowStyle = computed(() => ({ paddingLeft: `${(props.level - 1) * 16}px` }));\n\nconst classes = computed(() =>\n cn(\n 'flex cursor-pointer items-center gap-1 rounded-sm px-2 py-1 transition-colors',\n 'hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n props.isSelected && 'bg-primary-soft text-primary-soft-foreground',\n props.isDisabled && 'pointer-events-none opacity-50',\n ),\n);\n\nconst chevronClasses = computed(() =>\n cn('h-4 w-4 shrink-0 text-muted-foreground transition-transform', props.isExpanded && 'rotate-90'),\n);\n</script>\n\n<template>\n <div\n role=\"treeitem\"\n :aria-level=\"level\"\n :aria-selected=\"isSelected || undefined\"\n :aria-expanded=\"hasChildren ? isExpanded : undefined\"\n :aria-disabled=\"isDisabled || undefined\"\n :data-selected=\"dataAttr(isSelected)\"\n :data-disabled=\"dataAttr(isDisabled)\"\n :style=\"rowStyle\"\n :class=\"classes\"\n v-bind=\"item\"\n @keydown=\"onKeydown\"\n @click=\"onClick\"\n >\n <ChevronRight v-if=\"hasChildren\" :class=\"chevronClasses\" />\n <span v-else class=\"w-4 shrink-0\" />\n <span class=\"flex-1 truncate\"><slot /></span>\n </div>\n</template>\n","<script lang=\"ts\">\nexport interface TreeViewerGroupProps {\n /** The branch value — the key expansion is tracked under. */\n readonly value: string;\n /**\n * The branch label. React took a `ReactNode`; the scalar stays a prop and the\n * same-named `label` slot is the rich override.\n */\n readonly label: string | number;\n /** The disabled state. Default `false`. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { Presence } from '../../../foundation/primitives';\nimport { useTreeContext, useTreeLevel } from './TreeViewerContext';\nimport TreeViewerGroupContent from './TreeViewerGroupContent.vue';\nimport TreeViewerNodeRow from './TreeViewerNodeRow.vue';\n\n/** Renders an expandable branch of a `TreeViewer`; React shipped it as `TreeViewer.Group`. */\ndefineOptions({ name: 'TreeViewerGroup', inheritAttrs: false });\n\ndefineSlots<{\n /** The nested `TreeViewerGroup` / `TreeViewerItem` children — React's required `children`. */\n default(): unknown;\n /** Overrides the branch label. Falls back to the `label` prop. */\n label(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<TreeViewerGroupProps>(), { isDisabled: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLLIElement>('el');\nconst tree = useTreeContext();\nconst treeLevel = useTreeLevel();\n\nconst isExpanded = computed(() => tree.expanded.has(props.value));\n\nfunction activate(): void {\n tree.toggleExpanded(props.value);\n}\n\nconst classes = computed(() => cn('list-none', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <li ref=\"el\" role=\"presentation\" :data-state=\"isExpanded ? 'open' : 'closed'\" v-bind=\"rest\" :class=\"classes\">\n <TreeViewerNodeRow\n :level=\"treeLevel.level\"\n :is-selected=\"false\"\n :is-expanded=\"isExpanded\"\n has-children\n :is-disabled=\"isDisabled\"\n :on-activate=\"activate\"\n >\n <slot name=\"label\">{{ label }}</slot>\n </TreeViewerNodeRow>\n <!-- Presence keeps the group mounted through the collapse so the exit\n plays before unmount (a plain `v-if` hard-unmount would kill it).\n It injects ref + data-state onto TreeViewerGroupContent, which animates height\n via grid-template-rows 0fr -> 1fr. -->\n <Presence :is-present=\"isExpanded\">\n <TreeViewerGroupContent :level=\"treeLevel.level + 1\">\n <slot />\n </TreeViewerGroupContent>\n </Presence>\n </li>\n</template>\n","<script lang=\"ts\">\nexport interface TreeViewerItemProps {\n /** The leaf value — the key selection is tracked under. */\n readonly value: string;\n /** The disabled state. Default `false`. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useTreeContext, useTreeLevel } from './TreeViewerContext';\nimport TreeViewerNodeRow from './TreeViewerNodeRow.vue';\n\n/** Renders a selectable leaf of a `TreeViewer`; React shipped it as `TreeViewer.Item`. */\ndefineOptions({ name: 'TreeViewerItem', inheritAttrs: false });\n\n/** The leaf label — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerItemProps>(), { isDisabled: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLLIElement>('el');\nconst tree = useTreeContext();\nconst treeLevel = useTreeLevel();\n\nconst isSelected = computed(() => tree.selectedValue === props.value);\n\nfunction activate(): void {\n tree.setSelectedValue(props.value);\n}\n\nconst classes = computed(() => cn('list-none', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <li ref=\"el\" role=\"presentation\" v-bind=\"rest\" :class=\"classes\">\n <TreeViewerNodeRow\n :level=\"treeLevel.level\"\n :is-selected=\"isSelected\"\n :has-children=\"false\"\n :is-disabled=\"isDisabled\"\n :on-activate=\"activate\"\n >\n <slot />\n </TreeViewerNodeRow>\n </li>\n</template>\n","import { inject, nextTick, onBeforeUnmount, onMounted, provide, shallowRef, type InjectionKey, type Ref } from 'vue';\n\ninterface FormResetScope {\n form(): HTMLFormElement | null;\n}\nconst FormResetKey: InjectionKey<FormResetScope> = Symbol('presentation.formReset');\n\n/** Routes one reset through the outer value owner; nested controls only reconcile their DOM. */\nexport function useNativeFormReset(\n element: Readonly<Ref<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null>>,\n reset: () => void,\n restore: () => void = () => {},\n): Readonly<Ref<number>> {\n const parent = inject(FormResetKey, null);\n const revision = shallowRef(0);\n const scope: FormResetScope = {\n form: () => {\n return element.value?.form ?? null;\n },\n };\n provide(FormResetKey, scope);\n let document: Document | undefined;\n function onReset(event: Event): void {\n const form = scope.form();\n if (!form || event.target !== form) return;\n const active = document?.activeElement as HTMLElement | null;\n const root = element.value?.parentElement;\n const hadFocus = Boolean(root && active && root.contains(active));\n const focusAttributes = ['type', 'name', 'role', 'aria-label'] as const;\n const matchingControls = (container: Element): Element[] =>\n active\n ? [container, ...container.querySelectorAll(active.tagName)].filter(\n (node) =>\n node.tagName === active.tagName &&\n focusAttributes.every((key) => node.getAttribute(key) === active.getAttribute(key)),\n )\n : [];\n const ordinal = root && active ? matchingControls(root).indexOf(active) : -1;\n queueMicrotask(() => {\n if (event.defaultPrevented || !element.value || scope.form() !== form) return;\n if (parent?.form() !== form) {\n reset();\n revision.value += 1;\n }\n void nextTick(() => {\n if (!element.value || scope.form() !== form) return;\n restore();\n if (!active || active.isConnected || !hadFocus) return;\n const currentRoot = element.value.parentElement;\n const candidates = currentRoot ? matchingControls(currentRoot) : [];\n const target =\n (active.id ? candidates.find((node) => node.id === active.id) : undefined) ?? candidates[ordinal];\n const elementType = target?.ownerDocument.defaultView?.HTMLElement;\n if (elementType && target instanceof elementType) {\n target.focus({ preventScroll: true });\n }\n });\n });\n }\n onMounted(() => {\n document = element.value?.ownerDocument;\n document?.addEventListener('reset', onReset, true);\n });\n onBeforeUnmount(() => document?.removeEventListener('reset', onReset, true));\n return revision;\n}\n","import { tv, type VariantProps, ColorTone } from '../../../foundation/styles';\n\n/** Defines the checkbox visual surface style. */\nexport const CheckboxInputVariant = {\n /** Refers to an opaque, filled surface. */\n Solid: 'solid',\n /** Refers to a soft tinted surface. */\n Soft: 'soft',\n /** Refers to a bordered, transparent surface. */\n Outline: 'outline',\n /** Refers to a borderless, transparent surface. */\n Ghost: 'ghost',\n /** Refers to a glass surface. */\n Glass: 'glass',\n /** Refers to a glass surface with a hairline border. */\n GlassSurface: 'glass-surface',\n} as const;\n\nexport type CheckboxInputVariant = (typeof CheckboxInputVariant)[keyof typeof CheckboxInputVariant];\n\nexport const checkboxVariants = tv({\n base: 'pointer-events-none grid h-full w-full place-items-center rounded-sm border transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-1 peer-disabled:opacity-50',\n variants: {\n variant: {\n solid: 'border-input bg-background',\n soft: 'border-transparent',\n outline: 'bg-transparent',\n ghost: 'border-transparent bg-transparent',\n glass: 'border-white/40 bg-black/40 backdrop-blur-sm',\n 'glass-surface': 'border-white/60 bg-black/40 backdrop-blur-sm',\n },\n tone: {\n primary: '',\n neutral: '',\n danger: '',\n success: '',\n warning: '',\n },\n },\n compoundVariants: [\n // === SOLID × tone — bg-background unchecked → tone fill checked ===\n {\n variant: 'solid',\n tone: 'primary',\n class: 'text-primary-foreground peer-checked:border-primary peer-checked:bg-primary',\n },\n {\n variant: 'solid',\n tone: 'neutral',\n class: 'text-background peer-checked:border-foreground peer-checked:bg-foreground',\n },\n {\n variant: 'solid',\n tone: 'danger',\n class: 'text-destructive-foreground peer-checked:border-destructive peer-checked:bg-destructive',\n },\n {\n variant: 'solid',\n tone: 'success',\n class: 'text-success-foreground peer-checked:border-success peer-checked:bg-success',\n },\n {\n variant: 'solid',\n tone: 'warning',\n class: 'text-warning-foreground peer-checked:border-warning peer-checked:bg-warning',\n },\n\n // === SOFT × tone — soft bg unchecked → strong tone fill checked ===\n {\n variant: 'soft',\n tone: 'primary',\n class:\n 'bg-primary-soft text-primary-soft-foreground peer-checked:bg-primary peer-checked:text-primary-foreground',\n },\n {\n variant: 'soft',\n tone: 'neutral',\n class: 'bg-muted text-foreground peer-checked:bg-foreground peer-checked:text-background',\n },\n {\n variant: 'soft',\n tone: 'danger',\n class:\n 'bg-destructive-soft text-destructive-soft-foreground peer-checked:bg-destructive peer-checked:text-destructive-foreground',\n },\n {\n variant: 'soft',\n tone: 'success',\n class:\n 'bg-success-soft text-success-soft-foreground peer-checked:bg-success peer-checked:text-success-foreground',\n },\n {\n variant: 'soft',\n tone: 'warning',\n class:\n 'bg-warning-soft text-warning-soft-foreground peer-checked:bg-warning peer-checked:text-warning-foreground',\n },\n\n // === OUTLINE × tone — tone border unchecked → tone fill checked ===\n {\n variant: 'outline',\n tone: 'primary',\n class: 'border-primary text-primary peer-checked:bg-primary peer-checked:text-primary-foreground',\n },\n {\n variant: 'outline',\n tone: 'neutral',\n class: 'border-border-strong text-foreground peer-checked:bg-foreground peer-checked:text-background',\n },\n {\n variant: 'outline',\n tone: 'danger',\n class: 'border-destructive text-destructive peer-checked:bg-destructive peer-checked:text-destructive-foreground',\n },\n {\n variant: 'outline',\n tone: 'success',\n class: 'border-success text-success peer-checked:bg-success peer-checked:text-success-foreground',\n },\n {\n variant: 'outline',\n tone: 'warning',\n class: 'border-warning text-warning peer-checked:bg-warning peer-checked:text-warning-foreground',\n },\n\n // === GHOST × tone — no border/bg unchecked → tone-tinted bg + tone check checked ===\n { variant: 'ghost', tone: 'primary', class: 'text-primary peer-checked:bg-primary/10' },\n { variant: 'ghost', tone: 'neutral', class: 'text-foreground peer-checked:bg-muted' },\n { variant: 'ghost', tone: 'danger', class: 'text-destructive peer-checked:bg-destructive/10' },\n { variant: 'ghost', tone: 'success', class: 'text-success peer-checked:bg-success/10' },\n { variant: 'ghost', tone: 'warning', class: 'text-warning peer-checked:bg-warning/10' },\n\n // === GLASS × tone — dark glass stays on check; only the white check icon appears\n // (peer-checked:opacity-100 on Check). Tone stays text-white, bg never swaps — photo-overlay look. ===\n { variant: 'glass', tone: 'primary', class: 'text-white' },\n { variant: 'glass', tone: 'neutral', class: 'text-white' },\n { variant: 'glass', tone: 'danger', class: 'text-white' },\n { variant: 'glass', tone: 'success', class: 'text-white' },\n { variant: 'glass', tone: 'warning', class: 'text-white' },\n\n // === GLASS-SURFACE × tone — same as glass, plus white/80 border emphasis on check. ===\n { variant: 'glass-surface', tone: 'primary', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'neutral', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'danger', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'success', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'warning', class: 'text-white peer-checked:border-white/80' },\n ],\n defaultVariants: {\n variant: 'solid',\n tone: 'primary',\n },\n});\n\nexport type CheckboxInputVariants = VariantProps<typeof checkboxVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertCheckboxVariant: AssertExact<\n CheckboxInputVariant,\n NonNullable<VariantProps<typeof checkboxVariants>['variant']>\n> = true;\nconst _assertCheckboxTone: AssertExact<ColorTone, NonNullable<VariantProps<typeof checkboxVariants>['tone']>> = true;\nvoid _assertCheckboxVariant;\nvoid _assertCheckboxTone;\n","<script lang=\"ts\">\nimport type { ColorProp, ColorTone, SizePreset, SizeUnion } from '../../../foundation/styles';\nimport type { CheckboxInputVariant, CheckboxInputVariants } from './CheckboxInput.variants';\n\n/* CheckboxInput supports the 5-preset core (skips `2xl` — outsized for a form control). */\nexport type CheckboxInputSizePreset = Extract<SizePreset, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;\n\nexport interface CheckboxInputProps {\n /**\n * The size — preset (`xs|sm|md|lg|xl`) → box + icon scale · number/string → square inline ·\n * object → explicit dims.\n */\n readonly size?: SizeUnion<CheckboxInputSizePreset>;\n\n /** The visual surface style. */\n readonly variant?: CheckboxInputVariant;\n\n /** The semantic tone palette. */\n readonly tone?: ColorTone;\n\n /** The tristate visual state — input stays unchecked but renders as a dash with the same checked-state styling. */\n readonly isIndeterminate?: boolean;\n\n /** The color override (string seed or slot object) — replaces the active `tone`'s theme tokens locally. */\n readonly color?: ColorProp;\n\n /** The checked state, controlled. The `v-model` binding target. */\n readonly modelValue?: boolean;\n\n /** The initial checked state when uncontrolled. */\n readonly defaultValue?: boolean;\n\n /** The control's id. Auto-filled from `FormControl` context when omitted. */\n readonly id?: string;\n\n /** The disabled state. Falls back to the surrounding field's `isDisabled`. */\n readonly isDisabled?: boolean;\n\n /** @deprecated Use `isDisabled`; this alias is removed next release. */\n readonly disabled?: boolean;\n /** Keeps the value but blocks changes. Falls back to the surrounding field's `isReadOnly`. */\n readonly isReadOnly?: boolean;\n\n /** @deprecated Use `isReadOnly`; this alias is removed next release. */\n readonly readonly?: boolean;\n\n /** The required state. Falls back to the surrounding field's `isRequired`. */\n readonly isRequired?: boolean;\n\n /** @deprecated Use `isRequired`; this alias is removed next release. */\n readonly required?: boolean;\n\n /** Draws the box as its own placeholder, inert; defaults to the nearest `DataRegion` first load. */\n readonly isSkeleton?: boolean;\n}\n\nconst ComponentName = 'CheckboxInput';\n\n/* Outer wrapper box dim per preset. */\nconst BoxSizeClass: Record<CheckboxInputSizePreset, string> = {\n xs: 'h-3.5 w-3.5', // 14px — dense / mobile-tight (consumer must ensure ≥24px hit target via wrapping label)\n sm: 'h-4 w-4', // 16px\n md: 'h-5 w-5', // 20px (default)\n lg: 'h-6 w-6', // 24px (WCAG-compliant standalone)\n xl: 'h-7 w-7', // 28px (emphasis / a11y-first)\n};\n\n/* Inner icon dim per preset — scales proportionally to box. */\nconst IconSizeClass: Record<CheckboxInputSizePreset, string> = {\n xs: 'h-2.5 w-2.5',\n sm: 'h-3 w-3',\n md: 'h-3.5 w-3.5',\n lg: 'h-4 w-4',\n xl: 'h-5 w-5',\n};\n\n/* Fallback icon dim when raw/object size used — middle of scale. */\nconst DefaultIconClass = 'h-3 w-3';\n\n/* When indeterminate=true, apply the compound's checked classes regardless of peer-checked state. */\nconst IndeterminateCheckedClass: Record<\n NonNullable<CheckboxInputVariants['variant']>,\n Record<NonNullable<CheckboxInputVariants['tone']>, string>\n> = {\n solid: {\n primary: 'bg-primary border-primary text-primary-foreground',\n neutral: 'bg-foreground border-foreground text-background',\n danger: 'bg-destructive border-destructive text-destructive-foreground',\n success: 'bg-success border-success text-success-foreground',\n warning: 'bg-warning border-warning text-warning-foreground',\n },\n soft: {\n primary: 'bg-primary text-primary-foreground',\n neutral: 'bg-foreground text-background',\n danger: 'bg-destructive text-destructive-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n },\n outline: {\n primary: 'bg-primary text-primary-foreground',\n neutral: 'bg-foreground text-background',\n danger: 'bg-destructive text-destructive-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n },\n ghost: {\n primary: 'bg-primary/10 text-primary',\n neutral: 'bg-muted text-foreground',\n danger: 'bg-destructive/10 text-destructive',\n success: 'bg-success/10 text-success',\n warning: 'bg-warning/10 text-warning',\n },\n /* Glass family keeps the dark glass bg in the indeterminate state, matching checked. The Minus\n icon renders unconditionally; text-white from the variant base is what makes it visible. */\n glass: {\n primary: 'text-white',\n neutral: 'text-white',\n danger: 'text-white',\n success: 'text-white',\n warning: 'text-white',\n },\n 'glass-surface': {\n primary: 'text-white border-white/80',\n neutral: 'text-white border-white/80',\n danger: 'text-white border-white/80',\n success: 'text-white border-white/80',\n warning: 'text-white border-white/80',\n },\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { useNativeFormReset } from '../UseNativeFormReset';\nimport { computed, nextTick, useAttrs, useTemplateRef, watch, type StyleValue } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { Check, Minus } from 'lucide-vue-next';\nimport { cn, ColorExtensions, CssExtensions, ColorTone as ColorToneValue } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useFormControl } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { checkboxVariants, CheckboxInputVariant as CheckboxInputVariantValue } from './CheckboxInput.variants';\n\n/** Renders a native checkbox behind a custom visual — 6 variants × 5 tones, plus an indeterminate dash. */\n/* `inheritAttrs: false` so `class` folds into the wrapper's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: ComponentName, inheritAttrs: false });\n\nconst props = withDefaults(defineProps<CheckboxInputProps>(), {\n size: 'md',\n variant: CheckboxInputVariantValue.Solid,\n tone: ColorToneValue.Primary,\n /* Explicit `undefined` defaults are load-bearing: each flag falls back to the form control\n context or to a meaningful tri-state, and Vue casts an absent `boolean` prop to `false`. */\n isIndeterminate: undefined,\n modelValue: undefined,\n defaultValue: undefined,\n isDisabled: undefined,\n disabled: undefined,\n isReadOnly: undefined,\n readonly: undefined,\n isRequired: undefined,\n required: undefined,\n isSkeleton: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the user ticks or unticks the box — the `v-model` half. */\n 'update:modelValue': [checked: boolean];\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue ?? false,\n onChange: (next) => {\n emit('update:modelValue', next);\n },\n});\n\nconst isChecked = controlled.value;\n\nfunction onChange(event: Event): void {\n if (event.defaultPrevented || finalDisabled.value || finalReadOnly.value) {\n (event.target as HTMLInputElement).checked = isChecked.value;\n return;\n }\n const box = event.target as HTMLInputElement;\n controlled.setValue(box.checked);\n /* A controlled owner that declines the change keeps its prop, and Vue skips an unchanged binding — so the\n native box would keep the reader's toggle. Re-syncs it once the owner's update has flushed. */\n void nextTick(() => {\n box.checked = isChecked.value;\n });\n}\n\nconst input = useTemplateRef<HTMLInputElement>('input');\n\n/*\n * Syncs the native `indeterminate` property — it has no attribute, so it is only reachable\n * imperatively. `flush: 'post'` runs after the DOM patch; `immediate` is safe here ONLY\n * because the body touches the template ref rather than a browser global, and the ref is\n * `null` on the server, where the guard below short-circuits.\n */\nwatch(\n [input, () => props.isIndeterminate],\n ([node, indeterminate]) => {\n if (node) node.indeterminate = Boolean(indeterminate);\n },\n { immediate: true, flush: 'post' },\n);\n\n/* Parse union-typed `size` — preset routes to box+icon class lookup, raw/object routes to inline dims. */\nconst CheckboxInputSizePresets: ReadonlySet<string> = new Set<CheckboxInputSizePreset>(['xs', 'sm', 'md', 'lg', 'xl']);\n\nconst parsedSize = computed(() =>\n CssExtensions.parseSizeUnion<CheckboxInputSizePreset>(props.size, CheckboxInputSizePresets),\n);\n\nconst boxClass = computed(() => (parsedSize.value.preset ? BoxSizeClass[parsedSize.value.preset] : undefined));\nconst iconClass = computed(() => (parsedSize.value.preset ? IconSizeClass[parsedSize.value.preset] : DefaultIconClass));\n\n/* Per-instance color override → sets CSS vars on wrapper; the visual span inherits via cascade. */\nconst composedStyle = computed<StyleValue | undefined>(() => {\n const boxStyle = parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : undefined;\n const colorStyle = ColorExtensions.toneColorOverride(props.color, props.tone);\n return colorStyle || boxStyle ? { ...colorStyle, ...boxStyle } : undefined;\n});\n\nconst inputId = computed(() => props.id ?? ctx?.id);\nconst finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);\nconst finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly ?? false);\nconst finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);\nconst ariaChecked = computed(() => (props.isIndeterminate ? 'mixed' : undefined));\nconst isInvalid = computed(() => ctx?.isInvalid || undefined);\nconst describedBy = computed(() => ctx?.describedBy);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', 'checked']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst wrapperClass = computed(() => cn('relative inline-flex shrink-0', boxClass.value, attrs.class as ClassValue));\n\n/* In skeleton mode the box keeps its size, radius and border width as the placeholder; the tick hides. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\n\nconst visualClass = computed(() =>\n skeleton.isSkeleton.value\n ? cn('pointer-events-none grid h-full w-full place-items-center rounded-sm border', skeleton.boxClass.value)\n : visualStateClass.value,\n);\n\nconst visualStateClass = computed(() =>\n cn(\n checkboxVariants({ variant: props.variant, tone: props.tone }),\n props.isIndeterminate\n ? IndeterminateCheckedClass[props.variant][props.tone]\n : /* Opacity gate lives on this span (a peer sibling of the input) — the child selector\n targets the SVG, since `peer-checked:` cannot reach descendants. */\n '[&>svg]:opacity-0 peer-checked:[&>svg]:opacity-100',\n ),\n);\n\n/** The rendered `<input>` — the Vue stand-in for the React original's forwarded ref. */\nuseNativeFormReset(input, controlled.reset, () => {\n if (input.value) input.value.checked = Boolean(isChecked.value);\n});\n\ndefineExpose({ el: input });\n</script>\n\n<template>\n <span\n :class=\"wrapperClass\"\n :style=\"composedStyle\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :inert=\"skeleton.isSkeleton.value || undefined\"\n >\n <input\n ref=\"input\"\n type=\"checkbox\"\n :id=\"inputId\"\n :disabled=\"finalDisabled\"\n :required=\"finalRequired\"\n :checked=\"isChecked\"\n :aria-checked=\"ariaChecked\"\n :aria-invalid=\"isInvalid\"\n :aria-describedby=\"describedBy\"\n class=\"peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n v-bind=\"passthroughAttrs\"\n @change=\"onChange\"\n @click=\"finalReadOnly && $event.preventDefault()\"\n :aria-readonly=\"finalReadOnly || undefined\"\n />\n <span aria-hidden=\"true\" :class=\"visualClass\">\n <Minus v-if=\"isIndeterminate\" :class=\"iconClass\" />\n <Check v-else :class=\"iconClass\" />\n </span>\n </span>\n</template>\n","// Shared date helpers for CalendarPicker / DatePicker / DateInput / RangeCalendarPicker.\n// Co-located in `forms/` so imports stay within-domain.\n//\n// Temporal-based — the ecosystem standardizes on the Temporal API (dates =\n// `Temporal.*`). `Temporal.PlainDate` carries calendar math (no timezone), so\n// these helpers are inherently local/wall-clock, which is what calendar UIs want.\n// `Temporal.PlainTime` carries hour/minute for the time components.\n\nimport { Temporal } from 'temporal-polyfill';\n\nexport const WeekdayLabelsShort = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\nexport const MonthLabelsLong = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n];\n\n/** Sunday-anchored column index (0 = Sun … 6 = Sat) for a PlainDate. */\nexport function sundayIndex(d: Temporal.PlainDate): number {\n // Temporal `dayOfWeek` is 1 (Mon) … 7 (Sun); map Sunday to 0 for our Su-first grid.\n return d.dayOfWeek % 7;\n}\n\n/** Today as a PlainDate in the local time zone. */\nexport function today(): Temporal.PlainDate {\n return Temporal.Now.plainDateISO();\n}\n\nexport function isSameDay(a: Temporal.PlainDate | null | undefined, b: Temporal.PlainDate | null | undefined): boolean {\n if (!a || !b) return false;\n return a.equals(b);\n}\n\nexport function isToday(d: Temporal.PlainDate): boolean {\n return d.equals(today());\n}\n\n/** Add `n` months; Temporal clamps to the target month's last day (Jan 31 +1 → Feb 28). */\nexport function addMonths(d: Temporal.PlainDate, n: number): Temporal.PlainDate {\n return d.add({ months: n });\n}\n\nexport function addDays(d: Temporal.PlainDate, n: number): Temporal.PlainDate {\n return d.add({ days: n });\n}\n\n/** First day of `d`'s month. */\nexport function startOfMonth(d: Temporal.PlainDate): Temporal.PlainDate {\n return d.with({ day: 1 });\n}\n\n/** Number of days in the given year/month (1-indexed month). */\nexport function daysInMonth(year: number, month: number): number {\n return Temporal.PlainDate.from({ year, month, day: 1 }).daysInMonth;\n}\n\n/**\n * Build the 6-week (42-cell) grid that the calendar UI renders.\n * `year`/`month` are 1-indexed (Temporal convention). Cells outside the target\n * month carry `outOfMonth: true`.\n */\nexport function buildMonthGrid(\n year: number,\n month: number,\n): ReadonlyArray<{ date: Temporal.PlainDate; outOfMonth: boolean }> {\n const first = Temporal.PlainDate.from({ year, month, day: 1 });\n const start = first.subtract({ days: sundayIndex(first) });\n const cells: { date: Temporal.PlainDate; outOfMonth: boolean }[] = [];\n for (let i = 0; i < 42; i++) {\n const date = start.add({ days: i });\n cells.push({ date, outOfMonth: date.month !== month });\n }\n return cells;\n}\n\n/** Format PlainDate → \"YYYY-MM-DD\" for a native `<input type=\"date\">` value. */\nexport function formatISODate(d: Temporal.PlainDate | null | undefined): string {\n if (!d) return '';\n return d.toString();\n}\n\n/** Parse \"YYYY-MM-DD\" → PlainDate. Returns null for invalid input. */\nexport function parseISODate(s: string | null | undefined): Temporal.PlainDate | null {\n if (!s) return null;\n if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(s)) return null;\n try {\n return Temporal.PlainDate.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\n/** Format PlainTime → \"HH:MM\" for a native `<input type=\"time\">` value. */\nexport function formatISOTime(t: Temporal.PlainTime | null | undefined): string {\n if (!t) return '';\n return t.toString({ smallestUnit: 'minute' });\n}\n\n/** Parse \"HH:MM\" → PlainTime. Returns null for invalid input. */\nexport function parseISOTime(s: string | null | undefined): Temporal.PlainTime | null {\n if (!s) return null;\n if (!/^\\d{2}:\\d{2}$/.test(s)) return null;\n try {\n return Temporal.PlainTime.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\n/** Format PlainDateTime → \"YYYY-MM-DDTHH:MM\" for a native `<input type=\"datetime-local\">` value. */\nexport function formatISODateTime(dt: Temporal.PlainDateTime | null | undefined): string {\n if (!dt) return '';\n return dt.toString({ smallestUnit: 'minute' });\n}\n\n/** Parse \"YYYY-MM-DDTHH:MM\" (seconds optional) → PlainDateTime. Returns null for invalid input. */\nexport function parseISODateTime(s: string | null | undefined): Temporal.PlainDateTime | null {\n if (!s) return null;\n if (!/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$/.test(s)) return null;\n try {\n return Temporal.PlainDateTime.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\nexport function clampDate(\n d: Temporal.PlainDate,\n min?: Temporal.PlainDate | null,\n max?: Temporal.PlainDate | null,\n): Temporal.PlainDate {\n if (min && Temporal.PlainDate.compare(d, min) < 0) return min;\n if (max && Temporal.PlainDate.compare(d, max) > 0) return max;\n return d;\n}\n\nexport function isDateDisabled(\n d: Temporal.PlainDate,\n options: {\n min?: Temporal.PlainDate | null;\n max?: Temporal.PlainDate | null;\n isDisabled?: (d: Temporal.PlainDate) => boolean;\n },\n): boolean {\n const { min, max, isDisabled } = options;\n if (min && Temporal.PlainDate.compare(d, min) < 0) return true;\n if (max && Temporal.PlainDate.compare(d, max) > 0) return true;\n if (isDisabled?.(d)) return true;\n return false;\n}\n\nexport function isInRange(\n d: Temporal.PlainDate,\n start: Temporal.PlainDate | null | undefined,\n end: Temporal.PlainDate | null | undefined,\n): boolean {\n if (!start || !end) return false;\n const lo = Temporal.PlainDate.compare(start, end) <= 0 ? start : end;\n const hi = Temporal.PlainDate.compare(start, end) <= 0 ? end : start;\n return Temporal.PlainDate.compare(d, lo) >= 0 && Temporal.PlainDate.compare(d, hi) <= 0;\n}\n\n/** Signed whole-day count from `a` to `b` (positive when `b` is later). */\nexport function daysBetween(a: Temporal.PlainDate, b: Temporal.PlainDate): number {\n return a.until(b, { largestUnit: 'day' }).days;\n}\n\n/** True when `d` falls on a Saturday or Sunday. */\nexport function isWeekend(d: Temporal.PlainDate): boolean {\n // Temporal `dayOfWeek`: 1 (Mon) … 7 (Sun); 6 = Sat, 7 = Sun.\n return d.dayOfWeek === 6 || d.dayOfWeek === 7;\n}\n\n// ── Datetime helpers (ZonedDateTime) ──────────────────────────────────────\n// EventCalendarViewer / ScheduleView model absolute instants (a wall-clock time in a\n// specific zone) — the `Temporal.ZonedDateTime` peer of .NET `DateTimeOffset`.\n// The grid + navigation still project down to `Temporal.PlainDate` (via the\n// helpers above); these cover the intra-day time-slot math the grid needs.\n\n/** Now as a ZonedDateTime in the local (system) time zone. */\nexport function nowZoned(): Temporal.ZonedDateTime {\n return Temporal.Now.zonedDateTimeISO();\n}\n\n/** The calendar day a ZonedDateTime falls on (its wall-clock PlainDate). */\nexport function zonedToPlainDate(z: Temporal.ZonedDateTime): Temporal.PlainDate {\n return z.toPlainDate();\n}\n\n/** True when two ZonedDateTimes land on the same wall-clock day (same zone assumed). */\nexport function isSameZonedDay(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): boolean {\n return a.toPlainDate().equals(b.toPlainDate());\n}\n\n/** True when a ZonedDateTime falls on `day` (its wall-clock date equals `day`). */\nexport function isZonedOnDay(z: Temporal.ZonedDateTime, day: Temporal.PlainDate): boolean {\n return z.toPlainDate().equals(day);\n}\n\n/** Start-of-day (00:00, zone-correct) for `day` in `z`'s time zone. */\nexport function startOfZonedDay(day: Temporal.PlainDate, timeZone: Temporal.TimeZoneLike): Temporal.ZonedDateTime {\n return day.toZonedDateTime({ timeZone, plainTime: Temporal.PlainTime.from('00:00') });\n}\n\n/** `day` at hour `hour` (minutes/seconds zeroed), zone-correct, in `timeZone`. */\nexport function zonedAtHour(\n day: Temporal.PlainDate,\n hour: number,\n timeZone: Temporal.TimeZoneLike,\n): Temporal.ZonedDateTime {\n return day.toZonedDateTime({\n timeZone,\n plainTime: new Temporal.PlainTime(hour),\n });\n}\n\n/** Signed minutes from `a` to `b` (positive when `b` is later). */\nexport function minutesBetween(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): number {\n return a.until(b, { largestUnit: 'minute', smallestUnit: 'minute' }).minutes;\n}\n\n/** Later of two instants. */\nexport function maxZoned(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): Temporal.ZonedDateTime {\n return Temporal.ZonedDateTime.compare(a, b) >= 0 ? a : b;\n}\n\n/** Earlier of two instants. */\nexport function minZoned(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): Temporal.ZonedDateTime {\n return Temporal.ZonedDateTime.compare(a, b) <= 0 ? a : b;\n}\n\n/** True when `z`'s calendar day lies within [start, end] (inclusive, by day). */\nexport function isZonedDayInRange(\n z: Temporal.ZonedDateTime,\n start: Temporal.ZonedDateTime,\n end: Temporal.ZonedDateTime,\n): boolean {\n return isInRange(z.toPlainDate(), start.toPlainDate(), end.toPlainDate());\n}\n\n/** Format a ZonedDateTime's time-of-day as \"HH:MM\" (locale-aware). */\nexport function formatZonedTime(z: Temporal.ZonedDateTime, locale?: string): string {\n return z.toLocaleString(locale, { hour: '2-digit', minute: '2-digit' });\n}\n\n/** Validates an offered minute interval without unbounded loops or fractional Temporal values. */\nexport function normalizeMinuteStep(step: number | undefined): number {\n return step !== undefined && Number.isInteger(step) && step >= 1 && step <= 60 ? step : 5;\n}\n\n/** Inclusive same-day bounds. A reversed interval has no valid values. */\nexport function isTimeInBounds(\n value: Temporal.PlainTime,\n min?: Temporal.PlainTime | null,\n max?: Temporal.PlainTime | null,\n): boolean {\n return (!min || Temporal.PlainTime.compare(value, min) >= 0) && (!max || Temporal.PlainTime.compare(value, max) <= 0);\n}\n\nexport function clampTime(\n value: Temporal.PlainTime,\n min?: Temporal.PlainTime | null,\n max?: Temporal.PlainTime | null,\n): Temporal.PlainTime {\n if (min && Temporal.PlainTime.compare(value, min) < 0) return min;\n if (max && Temporal.PlainTime.compare(value, max) > 0) return max;\n return value;\n}\n\nexport function isDateTimeInBounds(\n value: Temporal.PlainDateTime,\n min?: Temporal.PlainDateTime | null,\n max?: Temporal.PlainDateTime | null,\n): boolean {\n return (\n (!min || Temporal.PlainDateTime.compare(value, min) >= 0) &&\n (!max || Temporal.PlainDateTime.compare(value, max) <= 0)\n );\n}\n\nexport function clampDateTime(\n value: Temporal.PlainDateTime,\n min?: Temporal.PlainDateTime | null,\n max?: Temporal.PlainDateTime | null,\n): Temporal.PlainDateTime {\n if (min && Temporal.PlainDateTime.compare(value, min) < 0) return min;\n if (max && Temporal.PlainDateTime.compare(value, max) > 0) return max;\n return value;\n}\n","<script lang=\"ts\">\n/**\n * Defines props for a `LegendText`.\n *\n * React's `HTMLAttributes<HTMLLegendElement>` has no Vue counterpart — every\n * native attribute is a fallthrough attr and lands on the `<legend>` unchanged.\n * The name is kept so consumers importing `LegendTextProps` still resolve.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface LegendTextProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\n\n/** Renders a `<legend>` styled to match `LabelText`, naming the group of controls a `FieldsetLayout` wraps. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'LegendText', inheritAttrs: false });\n\ndefineSlots<{\n /** The group's name — React's `children`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() => cn('mb-2 text-sm font-medium text-foreground', attrs.class as ClassValue));\n\nconst root = useTemplateRef<HTMLLegendElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <legend ref=\"root\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </legend>\n</template>\n","<script lang=\"ts\">\nimport type { Size } from '../../../foundation/styles';\n\nexport interface LabelTextProps {\n /** The required state, showing a `*` indicator. Auto-derived from `FormControl.isRequired` when present. */\n readonly isRequired?: boolean;\n\n /** The visual size. Default `md`. */\n readonly size?: Size;\n\n /**\n * The id of the labelled control — React's `htmlFor`. Auto-filled from\n * `FormControl` context when omitted.\n */\n readonly htmlFor?: string;\n\n /** The DOM spelling of {@link LabelTextProps.htmlFor}, which wins when both are set. */\n readonly for?: string;\n\n /**\n * The label's own id. An explicit id detaches the node from the context's\n * `labelId`, so the label stops registering as the context's naming chrome.\n */\n readonly id?: string;\n}\n\n/* Sizes not listed fall back to the `md` row at the call site. */\nconst SizeClass: Partial<Record<Size, string>> = {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-sm',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Size as SizeValue } from '../../../foundation/styles';\nimport { useFormControl, useFormControlChrome } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { SkeletonStateLine } from '../../feedback/skeletonState/SkeletonStateLine';\n\n/** Renders a `<label>` that takes `htmlFor` and `id` from `FormControl`, plus the required-field asterisk. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'LabelText', inheritAttrs: false });\n\n/* `children` has no prop counterpart — the label copy is the default slot. */\nconst props = withDefaults(defineProps<LabelTextProps>(), {\n size: SizeValue.Md,\n /* `isRequired` must stay `undefined` when absent: the value falls back to the form\n control's own `isRequired`, and Vue's Boolean casting would turn an absent prop into\n an explicit `false` that shadows the context. */\n isRequired: undefined,\n});\n\ndefineSlots<{\n /** The label copy, rendered before the required asterisk. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\n/* Registration flips the context's `labelledBy` on — widgets that name themselves via\n `aria-labelledby` reference the label only while it exists. An explicit `id` prop\n detaches the node from the context's labelId. Passed as a getter to stay reactive. */\nuseFormControlChrome('label', () => props.id == null);\n\n/* Follows the nearest `DataRegion` or `Field` skeleton: the label keeps its line and turns into a bar. */\nconst skeleton = useSkeletonState();\n\nconst isRequired = computed(() => props.isRequired ?? ctx?.isRequired ?? false);\nconst labelFor = computed(() => props.for ?? props.htmlFor ?? ctx?.id);\nconst labelId = computed(() => props.id ?? ctx?.labelId);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n SizeClass[props.size] ?? SizeClass.md,\n 'font-medium text-foreground',\n ctx?.isDisabled && 'opacity-60',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<HTMLLabelElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <label\n ref=\"root\"\n :for=\"labelFor\"\n :id=\"labelId\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <SkeletonStateLine :is-skeleton=\"skeleton.isSkeleton.value\"><slot /></SkeletonStateLine>\n <span\n v-if=\"isRequired\"\n :class=\"cn('ml-0.5 text-destructive-soft-foreground', skeleton.isSkeleton.value && 'invisible')\"\n aria-hidden=\"true\"\n >*</span\n >\n </label>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the outline shape of a color swatch. */\nexport const SwatchShape = {\n /** Refers to a rounded-square swatch. */\n Square: 'square',\n /** Refers to a circular swatch. */\n Circle: 'circle',\n} as const;\n\nexport type SwatchShape = (typeof SwatchShape)[keyof typeof SwatchShape];\n\n/** Defines the size step of a color swatch. */\nexport const ColorSwatchPreviewSize = {\n /** Refers to the extra-small step (h-4). */\n Xs: 'xs',\n /** Refers to the small step (h-5). */\n Sm: 'sm',\n /** Refers to the medium (default) step (h-6). */\n Md: 'md',\n /** Refers to the large step (h-9). */\n Lg: 'lg',\n} as const;\n\nexport type ColorSwatchPreviewSize = (typeof ColorSwatchPreviewSize)[keyof typeof ColorSwatchPreviewSize];\n\nexport const colorSwatchVariants = tv({\n base: 'inline-block shrink-0 border border-border bg-[image:linear-gradient(45deg,_#ddd_25%,_transparent_25%),_linear-gradient(-45deg,_#ddd_25%,_transparent_25%),_linear-gradient(45deg,_transparent_75%,_#ddd_75%),_linear-gradient(-45deg,_transparent_75%,_#ddd_75%)] bg-[length:8px_8px] bg-[position:0_0,_0_4px,_4px_-4px,_-4px_0px]',\n variants: {\n size: {\n xs: 'h-4 w-4',\n sm: 'h-5 w-5',\n md: 'h-6 w-6',\n lg: 'h-9 w-9',\n },\n shape: {\n square: 'rounded-sm',\n circle: 'rounded-full',\n },\n interactive: {\n true: 'cursor-pointer transition-shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 hover:shadow-sm',\n false: '',\n },\n isSelected: {\n true: 'ring-2 ring-ring ring-offset-1',\n false: '',\n },\n isDisabled: {\n true: 'cursor-not-allowed opacity-50',\n false: '',\n },\n },\n defaultVariants: {\n size: 'md',\n shape: 'square',\n interactive: false,\n isSelected: false,\n isDisabled: false,\n },\n});\n\nexport type ColorSwatchPreviewVariants = VariantProps<typeof colorSwatchVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertColorSwatchSize: AssertExact<\n ColorSwatchPreviewSize,\n NonNullable<VariantProps<typeof colorSwatchVariants>['size']>\n> = true;\nconst _assertSwatchShape: AssertExact<\n SwatchShape,\n NonNullable<VariantProps<typeof colorSwatchVariants>['shape']>\n> = true;\nvoid _assertColorSwatchSize;\nvoid _assertSwatchShape;\n","<script lang=\"ts\">\nimport type { ColorSwatchPreviewSize, SwatchShape } from './ColorSwatchPreview.variants';\n\n/**\n * Defines props for a `ColorSwatchPreview`.\n *\n * React declared a discriminated union — `onClick` present selected the\n * `<button>` half and its `ButtonHTMLAttributes`, absent selected the `<div>`\n * half. The union collapses here: every native attribute is a fallthrough attr\n * and lands on whichever element renders, so only the styling axes remain\n * declared.\n *\n * `onClick` is deliberately NOT declared — see the note in `<script setup>`.\n */\nexport interface ColorSwatchPreviewProps {\n /** Any CSS color string. Default `#000000`. */\n readonly color?: string;\n /** The swatch size step. */\n readonly size?: ColorSwatchPreviewSize;\n /** The swatch outline shape. */\n readonly shape?: SwatchShape;\n /** The selected state — draws the selection ring. */\n readonly isSelected?: boolean;\n /** The disabled state. Also sets `disabled` on the interactive (`<button>`) form. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef, type StyleValue } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { colorSwatchVariants } from './ColorSwatchPreview.variants';\n\n/** Renders a color chip over a checkerboard backdrop — a `<button>` when given a click listener, else a `<div>`. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'ColorSwatchPreview', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ColorSwatchPreviewProps>(), {\n color: '#000000',\n /* Explicit `undefined` defaults: Vue casts an absent `boolean` prop to `false`, which would\n pin the tv axis to its explicit-false branch instead of letting `defaultVariants` apply. */\n isSelected: undefined,\n isDisabled: undefined,\n});\n\nconst attrs = useAttrs();\n\n/*\n * React switched the rendered element on `onClick`'s presence. `onClick` stays a FALLTHROUGH\n * ATTR here rather than a declared prop or an emit:\n * - an emit would be stripped out of `useAttrs()`, erasing the discriminator entirely;\n * - a declared prop would receive the merge ARRAY that `Primitive`'s `asChild` builds when\n * `ColorPicker` chains the popover's toggle onto this swatch, and an array is not callable.\n * As an attr it stays detectable AND Vue invokes the whole chained array natively.\n */\nconst isInteractive = computed(() => Boolean(attrs.onClick));\n\n/* `style` is owned so the inset box-shadow can be layered after the caller's declarations,\n the order React's `{ ...style, boxShadow }` spread gave it. */\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', 'style']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n colorSwatchVariants({\n size: props.size,\n shape: props.shape,\n interactive: isInteractive.value,\n isSelected: props.isSelected,\n isDisabled: props.isDisabled,\n }),\n attrs.class as ClassValue,\n ),\n);\n\n/* Layers the color on top of the checkerboard via an inset box-shadow — keeps the variant\n class's `bg-[image:…]` checkerboard visible behind a partial-alpha color. */\nconst rootStyle = computed<StyleValue>(() => [\n attrs.style as StyleValue,\n { boxShadow: `inset 0 0 0 100px ${props.color}` },\n]);\n\nconst root = useTemplateRef<HTMLElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <button\n v-if=\"isInteractive\"\n ref=\"root\"\n type=\"button\"\n :disabled=\"isDisabled\"\n :class=\"rootClass\"\n :style=\"rootStyle\"\n v-bind=\"passthroughAttrs\"\n />\n <div v-else ref=\"root\" :class=\"rootClass\" :style=\"rootStyle\" v-bind=\"passthroughAttrs\" />\n</template>\n","<script lang=\"ts\">\nexport interface FieldHelperTextProps {\n /**\n * The node's own id. An explicit id detaches it from the context's `helperId`,\n * so the control's `aria-describedby` stops referencing it.\n */\n readonly id?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useFormControl, useFormControlChrome } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { SkeletonStateLine } from '../../feedback/skeletonState/SkeletonStateLine';\n\n/** Renders the hint text under a form control, registering its id with the control's `aria-describedby`. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'FieldHelperText', inheritAttrs: false });\n\n/* React took the copy as `children`; here it is the default slot. */\nconst props = defineProps<FieldHelperTextProps>();\n\ndefineSlots<{\n /** The hint copy — React's `children`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\n/* An explicit `id` prop detaches the node from the context's helperId — don't register.\n Passed as a getter so the registration re-runs if the prop changes. */\nuseFormControlChrome('helper', () => props.id == null);\n\nconst helperId = computed(() => props.id ?? ctx?.helperId);\n\n/* Follows the nearest `DataRegion` or `Field` skeleton: the hint keeps its lines and turns into bars. */\nconst skeleton = useSkeletonState();\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() => cn('text-sm text-muted-foreground', attrs.class as ClassValue));\n\nconst root = useTemplateRef<HTMLParagraphElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <p\n ref=\"root\"\n :id=\"helperId\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <SkeletonStateLine :is-skeleton=\"skeleton.isSkeleton.value\"><slot /></SkeletonStateLine>\n </p>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","_unref","_createVNode","Icon","_createBlock","_createElementVNode","_hoisted_1","_hoisted_2","TreeViewerNodeRow","TreeViewerGroupContent"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoBA,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UAAM,UAAU;AAAA,MAAS,MACvB;AAAA,QACE;AAAA,QACA;AAAA,QACA,MAAM;AAAA,MAAA;AAAA,IACR;AAIF,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAIjB,aAAAA,UAAA,GAAAC,mBAA2D,OAA3DC,WAA2D;AAAA,iBAAlD;AAAA,QAAJ,KAAI;AAAA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AAA,EAAA;AAAA;;;;;;;;;;;AC9EvF,UAAM,QAAQ;AAOd,UAAM,QAAQ,SAAA;AAGd,UAAM,MAAM,eAAA;AAIZ,yBAAqB,UAAU,MAAM,MAAM,MAAM,IAAI;AAErD,UAAM,WAAW,SAAS,MAAM,MAAM,MAAM,KAAK,QAAQ;AAGzD,UAAM,WAAW,iBAAA;AAEjB,UAAM,kBAAuC,oBAAI,IAAI,CAAC,OAAO,CAAC;AAC9D,UAAM,mBAAmB;AAAA,MAAS,MAChC,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,gBAAgB,IAAI,GAAG,CAAC,CAAC;AAAA,IAAA;AAGvF,UAAM,YAAY,SAAS,MAAM,GAAG,iCAAiC,MAAM,KAAmB,CAAC;AAE/F,UAAM,OAAO,eAAqC,MAAM;AAGxD,aAAa,EAAE,IAAI,MAAM;;AAIvB,aAAAF,UAAA,GAAAC,mBAQI,KARJC,WAQI;AAAA,iBAPE;AAAA,QAAJ,KAAI;AAAA,QACH,IAAI,SAAA;AAAA,QACJ,iBAAeE,MAAA,QAAA,EAAS,WAAW,SAAS;AAAA,QAC5C,OAAO,UAAA;AAAA,MAAA,GACA,iBAAA,KAAgB,GAAA;AAAA,QAExBC,YAAwFD,MAAA,iBAAA,GAAA;AAAA,UAApE,eAAaA,MAAA,QAAA,EAAS,WAAW;AAAA,QAAA;2BAAO,MAAQ;AAAA,YAARD,WAAQ,KAAA,QAAA,SAAA;AAAA,UAAA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js","sources":["../../src/presentation/display/kbdText/KbdText.vue","../../src/presentation/display/tag/Tag.variants.ts","../../src/presentation/display/tag/Tag.vue","../../src/presentation/display/treeViewer/TreeViewerContext.ts","../../src/presentation/display/treeViewer/TreeViewer.vue","../../src/presentation/display/treeViewer/TreeViewerGroupContent.vue","../../src/presentation/display/treeViewer/TreeViewerNodeRow.vue","../../src/presentation/display/treeViewer/TreeViewerGroup.vue","../../src/presentation/display/treeViewer/TreeViewerItem.vue","../../src/presentation/forms/UseNativeFormReset.ts","../../src/presentation/forms/checkboxInput/CheckboxInput.variants.ts","../../src/presentation/forms/checkboxInput/CheckboxInput.vue","../../src/presentation/forms/DateExtensions.ts","../../src/presentation/display/legendText/LegendText.vue","../../src/presentation/display/labelText/LabelText.vue","../../src/presentation/display/colorSwatchPreview/ColorSwatchPreview.variants.ts","../../src/presentation/display/colorSwatchPreview/ColorSwatchPreview.vue","../../src/presentation/display/fieldHelperText/FieldHelperText.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport type KbdTextProps = HTMLAttributes;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders one keyboard key as a `<kbd>` with a subtle border and inset shadow.\n *\n * One key per `KbdText`; chain via `<KbdText>⌘</KbdText> + <KbdText>K</KbdText>`.\n */\ndefineOptions({ name: 'KbdText', inheritAttrs: false });\n\n/** The key glyph — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border',\n 'bg-muted px-1.5 font-mono text-xs text-muted-foreground shadow-[inset_0_-1px_0_0_rgb(0_0_0/0.05)]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <kbd ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></kbd>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the Tag color treatment. */\nexport const TagVariant = {\n /** Refers to the neutral bordered chip. */\n Neutral: 'neutral',\n /** Refers to the primary brand tint. */\n Brand: 'brand',\n /** Refers to the positive / confirmation tint. */\n Success: 'success',\n /** Refers to the caution tint. */\n Warning: 'warning',\n /** Refers to the destructive / error tint. */\n Danger: 'danger',\n /** Refers to the informational tint. */\n Info: 'info',\n} as const;\n\nexport type TagVariant = (typeof TagVariant)[keyof typeof TagVariant];\n\nexport const tagVariants = tv({\n base: 'inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 py-0.5 text-xs font-medium text-card-foreground',\n variants: {\n variant: {\n neutral: '',\n brand: 'border-transparent bg-primary-soft text-primary-soft-foreground',\n success: 'border-transparent bg-success-soft text-success-soft-foreground',\n warning: 'border-transparent bg-warning-soft text-warning-soft-foreground',\n danger: 'border-transparent bg-destructive-soft text-destructive-soft-foreground',\n info: 'border-transparent bg-info-soft text-info-soft-foreground',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n});\n\nexport type TagVariants = VariantProps<typeof tagVariants>;\n\n/* Compile-time lock: enum values ≡ tv variant value-set (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertTagVariant: AssertExact<TagVariant, NonNullable<VariantProps<typeof tagVariants>['variant']>> = true;\nvoid _assertTagVariant;\n","<script lang=\"ts\">\nimport type { TagVariant } from './Tag.variants';\n\nexport interface TagProps {\n /** The color treatment. */\n readonly variant?: TagVariant;\n\n /** The accessible label for the close button. Default `\"Remove\"`. */\n readonly closeLabel?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { computed, getCurrentInstance, useAttrs, useTemplateRef } from 'vue';\nimport { X } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport { tagVariants } from './Tag.variants';\n\nconst CloseIcon = X;\n\n/**\n * Renders a pill with an optional close button, shown only when the consumer binds `@close`.\n *\n * The close button is a raw `<button>` to keep the strict atom rule — `Tag` is L3, so importing `Button` would make\n * this an atom-on-atom composition.\n */\ndefineOptions({ name: 'Tag', inheritAttrs: false });\n\n/** The tag copy — React's optional `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst componentProps = withDefaults(defineProps<TagProps>(), {});\nconst props = useLocaleDefaults(componentProps, 'Tag', { closeLabel: 'Remove' });\n\n/** Replaces React's `onClose`; omitting `@close` omits the close button. */\nconst emit = defineEmits<{\n /** Fires when the close (×) button is clicked. */\n close: [];\n}>();\n\nconst attrs = useAttrs();\nconst instance = getCurrentInstance();\nconst el = useTemplateRef<HTMLSpanElement>('el');\n\n/**\n * Mirrors React's `onClose && <button/>` guard — the close button renders only\n * when the consumer bound `@close`. Read through a call, not a cached computed:\n * `instance.vnode` is replaced on every re-render.\n */\nconst hasClose = () => Boolean(instance?.vnode.props?.onClose);\n\nconst classes = computed(() => cn(tagVariants({ variant: props.variant }), attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <span ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n <button\n v-if=\"hasClose()\"\n type=\"button\"\n :aria-label=\"props.closeLabel\"\n class=\"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring\"\n @click=\"emit('close')\"\n >\n <Icon :icon=\"CloseIcon\" :size=\"12\" />\n </button>\n </span>\n</template>\n","import { inject, type InjectionKey } from 'vue';\n\n/**\n * The seam between `TreeViewer` and its `TreeViewerGroup` / `TreeViewerItem` children.\n *\n * React attached those as `TreeViewer.Group` / `.Item` statics over a `createContext`.\n * An SFC's generated default export cannot carry statics cleanly, so they ship\n * as sibling components and share state through provide/inject instead.\n *\n * `selectedValue` and `expanded` are live getters — read them, don't destructure.\n */\nexport interface TreeViewerContextValue {\n /** The selected leaf value, or `null`. */\n readonly selectedValue: string | null;\n /** Selects a leaf. */\n setSelectedValue: (value: string) => void;\n /** The expanded branch values. */\n readonly expanded: ReadonlySet<string>;\n /** Flips one branch open/closed. */\n toggleExpanded: (value: string) => void;\n}\n\nexport const TreeViewerKey: InjectionKey<TreeViewerContextValue> = Symbol('wow-two.tree');\n\nexport function useTreeContext(): TreeViewerContextValue {\n const context = inject(TreeViewerKey, null);\n if (!context) throw new Error('TreeViewer.* must be used inside <TreeViewer>');\n return context;\n}\n\n/** The nesting depth, 1-based — React's `TreeViewerLevelContext`, defaulted to the root level. */\nexport interface TreeViewerLevelValue {\n readonly level: number;\n}\n\nexport const TreeViewerLevelKey: InjectionKey<TreeViewerLevelValue> = Symbol('wow-two.tree.level');\n\n/** Returns the level holder rather than the number, so a nested provide stays live. */\nexport function useTreeLevel(): TreeViewerLevelValue {\n return inject(TreeViewerLevelKey, { level: 1 });\n}\n","<script lang=\"ts\">\nexport interface TreeViewerProps {\n /** The controlled selected leaf value. */\n readonly modelValue?: string | null;\n /** The uncontrolled initial selected leaf value. */\n readonly defaultValue?: string | null;\n /** The controlled expanded branch values. */\n readonly expanded?: ReadonlyArray<string>;\n /** The uncontrolled initial expanded branch values. */\n readonly defaultExpanded?: ReadonlyArray<string>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { RovingFocusGroup, type ComponentElement } from '../../../foundation/primitives';\nimport { TreeViewerKey, type TreeViewerContextValue } from './TreeViewerContext';\n\n/**\n * Renders the tree root that owns selection and expansion for its branches and leaves.\n *\n * `TreeViewerGroup` / `TreeViewerItem` read them through injection — React attached those as `TreeViewer.Group`\n * / `.Item` statics,\n * which an SFC's default export cannot carry.\n */\ndefineOptions({ name: 'TreeViewer', inheritAttrs: false });\n\n/** The `TreeViewerGroup` / `TreeViewerItem` children — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerProps>(), {\n modelValue: undefined,\n defaultValue: undefined,\n expanded: undefined,\n defaultExpanded: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader selects a leaf, with its value. */\n 'update:modelValue': [value: string];\n /** Fires when the reader expands or collapses a branch, with the full expanded list. */\n 'update:expanded': [values: ReadonlyArray<string>];\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<ComponentElement>('el');\n\nconst { value: selected, setValue: setSelected } = useControlled<string | null>({\n controlled: () => props.modelValue,\n default: props.defaultValue ?? null,\n /* Only ever called with a string — `setSelectedValue` is the single writer. */\n onChange: (next) => emit('update:modelValue', next as string),\n});\n\nconst { value: expandedList, setValue: setExpandedList } = useControlled<ReadonlyArray<string>>({\n controlled: () => props.expanded,\n default: props.defaultExpanded ?? [],\n onChange: (next) => emit('update:expanded', next),\n});\n\nconst expandedSet = computed(() => new Set(expandedList.value));\n\nfunction toggleExpanded(value: string): void {\n const next = new Set(expandedSet.value);\n if (next.has(value)) next.delete(value);\n else next.add(value);\n setExpandedList(Array.from(next));\n}\n\n/* Live getters, not a snapshot — selection and expansion have to reach every\n already-mounted row. */\nprovide<TreeViewerContextValue>(TreeViewerKey, {\n get selectedValue() {\n return selected.value;\n },\n setSelectedValue: setSelected,\n get expanded() {\n return expandedSet.value;\n },\n toggleExpanded,\n});\n\nconst classes = computed(() => cn('flex flex-col text-sm', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** Exposes the child's documented DOM handle, never its component instance. */\nconst rootElement = computed<HTMLElement | null>(() => {\n const node = el.value?.el;\n const elementType = node?.ownerDocument.defaultView?.HTMLElement;\n return elementType && node instanceof elementType ? node : null;\n});\n\ndefineExpose({ el: rootElement });\n</script>\n\n<template>\n <RovingFocusGroup ref=\"el\" orientation=\"vertical\" can-loop role=\"tree\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n </RovingFocusGroup>\n</template>\n","<script lang=\"ts\">\n/** Internal — the animated wrapper `Presence` mounts for an expanded branch. */\nexport interface TreeViewerGroupContentProps {\n /** The nesting depth published to the rows inside. */\n readonly level: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { TreeViewerLevelKey, type TreeViewerLevelValue } from './TreeViewerContext';\n\n/**\n * Renders the animating inner element of a `TreeViewerGroup`, growing its height as the branch expands.\n *\n * `<Presence>` clones this component's vnode with `data-state` + a ref, both of which reach the root\n * `<div>` through `rest`. Height animates via grid-template-rows 0fr -> 1fr, and the inner\n * `min-h-0 overflow-hidden` track clips the group so it can shrink to zero. No fade (height only) —\n * the chevron handles the rotate. Motion-safe-gated; reduced-motion gets an instant snap.\n */\ndefineOptions({ name: 'TreeViewerGroupContent', inheritAttrs: false });\n\n/** The nested `TreeViewerGroup` / `TreeViewerItem` children. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = defineProps<TreeViewerGroupContentProps>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/* Live getter, not a snapshot — React re-provided on every render. */\nprovide<TreeViewerLevelValue>(TreeViewerLevelKey, {\n get level() {\n return props.level;\n },\n});\n\nconst classes = computed(() =>\n cn(\n 'grid',\n 'motion-safe:transition-[grid-template-rows] motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) motion-reduce:transition-none',\n 'data-[state=open]:grid-rows-[1fr] data-[state=closed]:grid-rows-[0fr]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div class=\"min-h-0 overflow-hidden\">\n <ul role=\"group\" class=\"flex flex-col\">\n <slot />\n </ul>\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\n/** Internal — the focusable `role=\"treeitem\"` row shared by `TreeViewerGroup` and `TreeViewerItem`. */\nexport interface TreeViewerNodeRowProps {\n /** The 1-based nesting depth. */\n readonly level: number;\n /** The selected state. */\n readonly isSelected: boolean;\n /** The expanded state — only meaningful when `hasChildren`. */\n readonly isExpanded?: boolean;\n /** Whether the row owns a child group. */\n readonly hasChildren: boolean;\n /** The disabled state. */\n readonly isDisabled: boolean;\n /** Toggles a branch or selects a leaf. Required, so it stays a prop rather than an emit. */\n readonly onActivate: () => void;\n}\n\n/* DOM-walking targets for the APG horizontal arrows. Anatomy per branch:\n <li role=presentation> → [row div role=treeitem, content → <ul role=group>].\n The tree root is role=\"tree\", so a root-level row has no `[role=\"group\"]`\n ancestor and ArrowLeft is a no-op there. */\n\n/** First child row of an expanded branch — ArrowRight descends into it. */\nfunction focusFirstChildRow(row: HTMLElement): void {\n row.closest('li')?.querySelector<HTMLElement>('[role=\"group\"] [role=\"treeitem\"]')?.focus();\n}\n\n/** Row of the branch owning this row — ArrowLeft climbs to it. */\nfunction findParentRow(row: HTMLElement): HTMLElement | null {\n return row.closest('[role=\"group\"]')?.closest('li')?.querySelector<HTMLElement>(':scope > [role=\"treeitem\"]') ?? null;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { ChevronRight } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { dataAttr } from '../../../foundation/dom';\nimport { useRovingFocusItem } from '../../../foundation/primitives';\n\n/** Renders one tree row — chevron, label, and the `treeitem` ARIA state of a branch or a leaf. */\ndefineOptions({ name: 'TreeViewerNodeRow' });\n\n/** The row label. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerNodeRowProps>(), {\n // `undefined` is meaningful: a leaf must render no `aria-expanded` at all.\n isExpanded: undefined,\n});\n\n// Reactive object: bound with `v-bind`, never destructured.\nconst item = useRovingFocusItem();\n\n/**\n * Runs after the roving group's own key handler — `v-bind=\"item\"` sits ahead of\n * this binding, so `defaultPrevented` reflects what that handler already did.\n */\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || props.isDisabled) return;\n const row = event.currentTarget as HTMLElement;\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n props.onActivate();\n return;\n }\n /* APG tree pattern — the vertical roving group above ignores the\n horizontal arrows, so they are free to drive expand/collapse here. */\n if (event.key === 'ArrowRight' && props.hasChildren) {\n event.preventDefault();\n if (props.isExpanded) focusFirstChildRow(row);\n else props.onActivate(); // Expand; focus stays on the branch.\n return;\n }\n if (event.key === 'ArrowLeft') {\n if (props.hasChildren && props.isExpanded) {\n event.preventDefault();\n props.onActivate(); // Collapse; focus stays on the branch.\n return;\n }\n // Leaf or collapsed branch: climb to the parent branch, if any.\n const parentRow = findParentRow(row);\n if (parentRow) {\n event.preventDefault();\n parentRow.focus();\n }\n }\n}\n\nfunction onClick(): void {\n if (!props.isDisabled) props.onActivate();\n}\n\n/** Vue does not append `px` to a numeric `:style` value — spelled out. */\nconst rowStyle = computed(() => ({ paddingLeft: `${(props.level - 1) * 16}px` }));\n\nconst classes = computed(() =>\n cn(\n 'flex cursor-pointer items-center gap-1 rounded-sm px-2 py-1 transition-colors',\n 'hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n props.isSelected && 'bg-primary-soft text-primary-soft-foreground',\n props.isDisabled && 'pointer-events-none opacity-50',\n ),\n);\n\nconst chevronClasses = computed(() =>\n cn('h-4 w-4 shrink-0 text-muted-foreground transition-transform', props.isExpanded && 'rotate-90'),\n);\n</script>\n\n<template>\n <div\n role=\"treeitem\"\n :aria-level=\"level\"\n :aria-selected=\"isSelected || undefined\"\n :aria-expanded=\"hasChildren ? isExpanded : undefined\"\n :aria-disabled=\"isDisabled || undefined\"\n :data-selected=\"dataAttr(isSelected)\"\n :data-disabled=\"dataAttr(isDisabled)\"\n :style=\"rowStyle\"\n :class=\"classes\"\n v-bind=\"item\"\n @keydown=\"onKeydown\"\n @click=\"onClick\"\n >\n <ChevronRight v-if=\"hasChildren\" :class=\"chevronClasses\" />\n <span v-else class=\"w-4 shrink-0\" />\n <span class=\"flex-1 truncate\"><slot /></span>\n </div>\n</template>\n","<script lang=\"ts\">\nexport interface TreeViewerGroupProps {\n /** The branch value — the key expansion is tracked under. */\n readonly value: string;\n /**\n * The branch label. React took a `ReactNode`; the scalar stays a prop and the\n * same-named `label` slot is the rich override.\n */\n readonly label: string | number;\n /** The disabled state. Default `false`. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { Presence } from '../../../foundation/primitives';\nimport { useTreeContext, useTreeLevel } from './TreeViewerContext';\nimport TreeViewerGroupContent from './TreeViewerGroupContent.vue';\nimport TreeViewerNodeRow from './TreeViewerNodeRow.vue';\n\n/** Renders an expandable branch of a `TreeViewer`; React shipped it as `TreeViewer.Group`. */\ndefineOptions({ name: 'TreeViewerGroup', inheritAttrs: false });\n\ndefineSlots<{\n /** The nested `TreeViewerGroup` / `TreeViewerItem` children — React's required `children`. */\n default(): unknown;\n /** Overrides the branch label. Falls back to the `label` prop. */\n label(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<TreeViewerGroupProps>(), { isDisabled: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLLIElement>('el');\nconst tree = useTreeContext();\nconst treeLevel = useTreeLevel();\n\nconst isExpanded = computed(() => tree.expanded.has(props.value));\n\nfunction activate(): void {\n tree.toggleExpanded(props.value);\n}\n\nconst classes = computed(() => cn('list-none', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <li ref=\"el\" role=\"presentation\" :data-state=\"isExpanded ? 'open' : 'closed'\" v-bind=\"rest\" :class=\"classes\">\n <TreeViewerNodeRow\n :level=\"treeLevel.level\"\n :is-selected=\"false\"\n :is-expanded=\"isExpanded\"\n has-children\n :is-disabled=\"isDisabled\"\n :on-activate=\"activate\"\n >\n <slot name=\"label\">{{ label }}</slot>\n </TreeViewerNodeRow>\n <!-- Presence keeps the group mounted through the collapse so the exit\n plays before unmount (a plain `v-if` hard-unmount would kill it).\n It injects ref + data-state onto TreeViewerGroupContent, which animates height\n via grid-template-rows 0fr -> 1fr. -->\n <Presence :is-present=\"isExpanded\">\n <TreeViewerGroupContent :level=\"treeLevel.level + 1\">\n <slot />\n </TreeViewerGroupContent>\n </Presence>\n </li>\n</template>\n","<script lang=\"ts\">\nexport interface TreeViewerItemProps {\n /** The leaf value — the key selection is tracked under. */\n readonly value: string;\n /** The disabled state. Default `false`. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useTreeContext, useTreeLevel } from './TreeViewerContext';\nimport TreeViewerNodeRow from './TreeViewerNodeRow.vue';\n\n/** Renders a selectable leaf of a `TreeViewer`; React shipped it as `TreeViewer.Item`. */\ndefineOptions({ name: 'TreeViewerItem', inheritAttrs: false });\n\n/** The leaf label — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TreeViewerItemProps>(), { isDisabled: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLLIElement>('el');\nconst tree = useTreeContext();\nconst treeLevel = useTreeLevel();\n\nconst isSelected = computed(() => tree.selectedValue === props.value);\n\nfunction activate(): void {\n tree.setSelectedValue(props.value);\n}\n\nconst classes = computed(() => cn('list-none', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <li ref=\"el\" role=\"presentation\" v-bind=\"rest\" :class=\"classes\">\n <TreeViewerNodeRow\n :level=\"treeLevel.level\"\n :is-selected=\"isSelected\"\n :has-children=\"false\"\n :is-disabled=\"isDisabled\"\n :on-activate=\"activate\"\n >\n <slot />\n </TreeViewerNodeRow>\n </li>\n</template>\n","import { inject, nextTick, onBeforeUnmount, onMounted, provide, shallowRef, type InjectionKey, type Ref } from 'vue';\n\ninterface FormResetScope {\n form(): HTMLFormElement | null;\n}\nconst FormResetKey: InjectionKey<FormResetScope> = Symbol('presentation.formReset');\n\n/** Routes one reset through the outer value owner; nested controls only reconcile their DOM. */\nexport function useNativeFormReset(\n element: Readonly<Ref<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null>>,\n reset: () => void,\n restore: () => void = () => {},\n): Readonly<Ref<number>> {\n const parent = inject(FormResetKey, null);\n const revision = shallowRef(0);\n const scope: FormResetScope = {\n form: () => {\n return element.value?.form ?? null;\n },\n };\n provide(FormResetKey, scope);\n let document: Document | undefined;\n function onReset(event: Event): void {\n const form = scope.form();\n if (!form || event.target !== form) return;\n const active = document?.activeElement as HTMLElement | null;\n const root = element.value?.parentElement;\n const hadFocus = Boolean(root && active && root.contains(active));\n const focusAttributes = ['type', 'name', 'role', 'aria-label'] as const;\n const matchingControls = (container: Element): Element[] =>\n active\n ? [container, ...container.querySelectorAll(active.tagName)].filter(\n (node) =>\n node.tagName === active.tagName &&\n focusAttributes.every((key) => node.getAttribute(key) === active.getAttribute(key)),\n )\n : [];\n const ordinal = root && active ? matchingControls(root).indexOf(active) : -1;\n queueMicrotask(() => {\n if (event.defaultPrevented || !element.value || scope.form() !== form) return;\n if (parent?.form() !== form) {\n reset();\n revision.value += 1;\n }\n void nextTick(() => {\n if (!element.value || scope.form() !== form) return;\n restore();\n if (!active || active.isConnected || !hadFocus) return;\n const currentRoot = element.value.parentElement;\n const candidates = currentRoot ? matchingControls(currentRoot) : [];\n const target =\n (active.id ? candidates.find((node) => node.id === active.id) : undefined) ?? candidates[ordinal];\n const elementType = target?.ownerDocument.defaultView?.HTMLElement;\n if (elementType && target instanceof elementType) {\n target.focus({ preventScroll: true });\n }\n });\n });\n }\n onMounted(() => {\n document = element.value?.ownerDocument;\n document?.addEventListener('reset', onReset, true);\n });\n onBeforeUnmount(() => document?.removeEventListener('reset', onReset, true));\n return revision;\n}\n","import { tv, type VariantProps, ColorTone } from '../../../foundation/styles';\n\n/** Defines the checkbox visual surface style. */\nexport const CheckboxInputVariant = {\n /** Refers to an opaque, filled surface. */\n Solid: 'solid',\n /** Refers to a soft tinted surface. */\n Soft: 'soft',\n /** Refers to a bordered, transparent surface. */\n Outline: 'outline',\n /** Refers to a borderless, transparent surface. */\n Ghost: 'ghost',\n /** Refers to a glass surface. */\n Glass: 'glass',\n /** Refers to a glass surface with a hairline border. */\n GlassSurface: 'glass-surface',\n} as const;\n\nexport type CheckboxInputVariant = (typeof CheckboxInputVariant)[keyof typeof CheckboxInputVariant];\n\nexport const checkboxVariants = tv({\n base: 'pointer-events-none grid h-full w-full place-items-center rounded-sm border transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-1 peer-disabled:opacity-50',\n variants: {\n variant: {\n solid: 'border-input bg-background',\n soft: 'border-transparent',\n outline: 'bg-transparent',\n ghost: 'border-transparent bg-transparent',\n glass: 'border-white/40 bg-black/40 backdrop-blur-sm',\n 'glass-surface': 'border-white/60 bg-black/40 backdrop-blur-sm',\n },\n tone: {\n primary: '',\n neutral: '',\n danger: '',\n success: '',\n warning: '',\n },\n },\n compoundVariants: [\n // === SOLID × tone — bg-background unchecked → tone fill checked ===\n {\n variant: 'solid',\n tone: 'primary',\n class: 'text-primary-foreground peer-checked:border-primary peer-checked:bg-primary',\n },\n {\n variant: 'solid',\n tone: 'neutral',\n class: 'text-background peer-checked:border-foreground peer-checked:bg-foreground',\n },\n {\n variant: 'solid',\n tone: 'danger',\n class: 'text-destructive-foreground peer-checked:border-destructive peer-checked:bg-destructive',\n },\n {\n variant: 'solid',\n tone: 'success',\n class: 'text-success-foreground peer-checked:border-success peer-checked:bg-success',\n },\n {\n variant: 'solid',\n tone: 'warning',\n class: 'text-warning-foreground peer-checked:border-warning peer-checked:bg-warning',\n },\n\n // === SOFT × tone — soft bg unchecked → strong tone fill checked ===\n {\n variant: 'soft',\n tone: 'primary',\n class:\n 'bg-primary-soft text-primary-soft-foreground peer-checked:bg-primary peer-checked:text-primary-foreground',\n },\n {\n variant: 'soft',\n tone: 'neutral',\n class: 'bg-muted text-foreground peer-checked:bg-foreground peer-checked:text-background',\n },\n {\n variant: 'soft',\n tone: 'danger',\n class:\n 'bg-destructive-soft text-destructive-soft-foreground peer-checked:bg-destructive peer-checked:text-destructive-foreground',\n },\n {\n variant: 'soft',\n tone: 'success',\n class:\n 'bg-success-soft text-success-soft-foreground peer-checked:bg-success peer-checked:text-success-foreground',\n },\n {\n variant: 'soft',\n tone: 'warning',\n class:\n 'bg-warning-soft text-warning-soft-foreground peer-checked:bg-warning peer-checked:text-warning-foreground',\n },\n\n // === OUTLINE × tone — tone border unchecked → tone fill checked ===\n {\n variant: 'outline',\n tone: 'primary',\n class: 'border-primary text-primary peer-checked:bg-primary peer-checked:text-primary-foreground',\n },\n {\n variant: 'outline',\n tone: 'neutral',\n class: 'border-border-strong text-foreground peer-checked:bg-foreground peer-checked:text-background',\n },\n {\n variant: 'outline',\n tone: 'danger',\n class: 'border-destructive text-destructive peer-checked:bg-destructive peer-checked:text-destructive-foreground',\n },\n {\n variant: 'outline',\n tone: 'success',\n class: 'border-success text-success peer-checked:bg-success peer-checked:text-success-foreground',\n },\n {\n variant: 'outline',\n tone: 'warning',\n class: 'border-warning text-warning peer-checked:bg-warning peer-checked:text-warning-foreground',\n },\n\n // === GHOST × tone — no border/bg unchecked → tone-tinted bg + tone check checked ===\n { variant: 'ghost', tone: 'primary', class: 'text-primary peer-checked:bg-primary/10' },\n { variant: 'ghost', tone: 'neutral', class: 'text-foreground peer-checked:bg-muted' },\n { variant: 'ghost', tone: 'danger', class: 'text-destructive peer-checked:bg-destructive/10' },\n { variant: 'ghost', tone: 'success', class: 'text-success peer-checked:bg-success/10' },\n { variant: 'ghost', tone: 'warning', class: 'text-warning peer-checked:bg-warning/10' },\n\n // === GLASS × tone — dark glass stays on check; only the white check icon appears\n // (peer-checked:opacity-100 on Check). Tone stays text-white, bg never swaps — photo-overlay look. ===\n { variant: 'glass', tone: 'primary', class: 'text-white' },\n { variant: 'glass', tone: 'neutral', class: 'text-white' },\n { variant: 'glass', tone: 'danger', class: 'text-white' },\n { variant: 'glass', tone: 'success', class: 'text-white' },\n { variant: 'glass', tone: 'warning', class: 'text-white' },\n\n // === GLASS-SURFACE × tone — same as glass, plus white/80 border emphasis on check. ===\n { variant: 'glass-surface', tone: 'primary', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'neutral', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'danger', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'success', class: 'text-white peer-checked:border-white/80' },\n { variant: 'glass-surface', tone: 'warning', class: 'text-white peer-checked:border-white/80' },\n ],\n defaultVariants: {\n variant: 'solid',\n tone: 'primary',\n },\n});\n\nexport type CheckboxInputVariants = VariantProps<typeof checkboxVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertCheckboxVariant: AssertExact<\n CheckboxInputVariant,\n NonNullable<VariantProps<typeof checkboxVariants>['variant']>\n> = true;\nconst _assertCheckboxTone: AssertExact<ColorTone, NonNullable<VariantProps<typeof checkboxVariants>['tone']>> = true;\nvoid _assertCheckboxVariant;\nvoid _assertCheckboxTone;\n","<script lang=\"ts\">\nimport type { ColorProp, ColorTone, SizePreset, SizeUnion } from '../../../foundation/styles';\nimport type { CheckboxInputVariant, CheckboxInputVariants } from './CheckboxInput.variants';\n\n/* CheckboxInput supports the 5-preset core (skips `2xl` — outsized for a form control). */\nexport type CheckboxInputSizePreset = Extract<SizePreset, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;\n\nexport interface CheckboxInputProps {\n /**\n * The size — preset (`xs|sm|md|lg|xl`) → box + icon scale · number/string → square inline ·\n * object → explicit dims.\n */\n readonly size?: SizeUnion<CheckboxInputSizePreset>;\n\n /** The visual surface style. */\n readonly variant?: CheckboxInputVariant;\n\n /** The semantic tone palette. */\n readonly tone?: ColorTone;\n\n /** The tristate visual state — input stays unchecked but renders as a dash with the same checked-state styling. */\n readonly isIndeterminate?: boolean;\n\n /** The color override (string seed or slot object) — replaces the active `tone`'s theme tokens locally. */\n readonly color?: ColorProp;\n\n /** The checked state, controlled. The `v-model` binding target. */\n readonly modelValue?: boolean;\n\n /** The initial checked state when uncontrolled. */\n readonly defaultValue?: boolean;\n\n /** The control's id. Auto-filled from `FormControl` context when omitted. */\n readonly id?: string;\n\n /** The disabled state. Falls back to the surrounding field's `isDisabled`. */\n readonly isDisabled?: boolean;\n\n /** @deprecated Use `isDisabled`; this alias is removed next release. */\n readonly disabled?: boolean;\n /** Keeps the value but blocks changes. Falls back to the surrounding field's `isReadOnly`. */\n readonly isReadOnly?: boolean;\n\n /** @deprecated Use `isReadOnly`; this alias is removed next release. */\n readonly readonly?: boolean;\n\n /** The required state. Falls back to the surrounding field's `isRequired`. */\n readonly isRequired?: boolean;\n\n /** @deprecated Use `isRequired`; this alias is removed next release. */\n readonly required?: boolean;\n\n /** Draws the box as its own placeholder, inert; defaults to the nearest `DataRegion` first load. */\n readonly isSkeleton?: boolean;\n}\n\nconst ComponentName = 'CheckboxInput';\n\n/* Outer wrapper box dim per preset. */\nconst BoxSizeClass: Record<CheckboxInputSizePreset, string> = {\n xs: 'h-3.5 w-3.5', // 14px — dense / mobile-tight (consumer must ensure ≥24px hit target via wrapping label)\n sm: 'h-4 w-4', // 16px\n md: 'h-5 w-5', // 20px (default)\n lg: 'h-6 w-6', // 24px (WCAG-compliant standalone)\n xl: 'h-7 w-7', // 28px (emphasis / a11y-first)\n};\n\n/* Inner icon dim per preset — scales proportionally to box. */\nconst IconSizeClass: Record<CheckboxInputSizePreset, string> = {\n xs: 'h-2.5 w-2.5',\n sm: 'h-3 w-3',\n md: 'h-3.5 w-3.5',\n lg: 'h-4 w-4',\n xl: 'h-5 w-5',\n};\n\n/* Fallback icon dim when raw/object size used — middle of scale. */\nconst DefaultIconClass = 'h-3 w-3';\n\n/* When indeterminate=true, apply the compound's checked classes regardless of peer-checked state. */\nconst IndeterminateCheckedClass: Record<\n NonNullable<CheckboxInputVariants['variant']>,\n Record<NonNullable<CheckboxInputVariants['tone']>, string>\n> = {\n solid: {\n primary: 'bg-primary border-primary text-primary-foreground',\n neutral: 'bg-foreground border-foreground text-background',\n danger: 'bg-destructive border-destructive text-destructive-foreground',\n success: 'bg-success border-success text-success-foreground',\n warning: 'bg-warning border-warning text-warning-foreground',\n },\n soft: {\n primary: 'bg-primary text-primary-foreground',\n neutral: 'bg-foreground text-background',\n danger: 'bg-destructive text-destructive-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n },\n outline: {\n primary: 'bg-primary text-primary-foreground',\n neutral: 'bg-foreground text-background',\n danger: 'bg-destructive text-destructive-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n },\n ghost: {\n primary: 'bg-primary/10 text-primary',\n neutral: 'bg-muted text-foreground',\n danger: 'bg-destructive/10 text-destructive',\n success: 'bg-success/10 text-success',\n warning: 'bg-warning/10 text-warning',\n },\n /* Glass family keeps the dark glass bg in the indeterminate state, matching checked. The Minus\n icon renders unconditionally; text-white from the variant base is what makes it visible. */\n glass: {\n primary: 'text-white',\n neutral: 'text-white',\n danger: 'text-white',\n success: 'text-white',\n warning: 'text-white',\n },\n 'glass-surface': {\n primary: 'text-white border-white/80',\n neutral: 'text-white border-white/80',\n danger: 'text-white border-white/80',\n success: 'text-white border-white/80',\n warning: 'text-white border-white/80',\n },\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { useNativeFormReset } from '../UseNativeFormReset';\nimport { computed, nextTick, useAttrs, useTemplateRef, watch, type StyleValue } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { Check, Minus } from 'lucide-vue-next';\nimport { cn, ColorExtensions, CssExtensions, ColorTone as ColorToneValue } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useFormControl } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { checkboxVariants, CheckboxInputVariant as CheckboxInputVariantValue } from './CheckboxInput.variants';\n\n/** Renders a native checkbox behind a custom visual — 6 variants × 5 tones, plus an indeterminate dash. */\n/* `inheritAttrs: false` so `class` folds into the wrapper's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: ComponentName, inheritAttrs: false });\n\nconst props = withDefaults(defineProps<CheckboxInputProps>(), {\n size: 'md',\n variant: CheckboxInputVariantValue.Solid,\n tone: ColorToneValue.Primary,\n /* Explicit `undefined` defaults are load-bearing: each flag falls back to the form control\n context or to a meaningful tri-state, and Vue casts an absent `boolean` prop to `false`. */\n isIndeterminate: undefined,\n modelValue: undefined,\n defaultValue: undefined,\n isDisabled: undefined,\n disabled: undefined,\n isReadOnly: undefined,\n readonly: undefined,\n isRequired: undefined,\n required: undefined,\n isSkeleton: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the user ticks or unticks the box — the `v-model` half. */\n 'update:modelValue': [checked: boolean];\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.modelValue,\n default: () => props.defaultValue ?? false,\n onChange: (next) => {\n emit('update:modelValue', next);\n },\n});\n\nconst isChecked = controlled.value;\n\nfunction onChange(event: Event): void {\n if (event.defaultPrevented || finalDisabled.value || finalReadOnly.value) {\n (event.target as HTMLInputElement).checked = isChecked.value;\n return;\n }\n const box = event.target as HTMLInputElement;\n controlled.setValue(box.checked);\n /* A controlled owner that declines the change keeps its prop, and Vue skips an unchanged binding — so the\n native box would keep the reader's toggle. Re-syncs it once the owner's update has flushed. */\n void nextTick(() => {\n box.checked = isChecked.value;\n });\n}\n\nconst input = useTemplateRef<HTMLInputElement>('input');\n\n/*\n * Syncs the native `indeterminate` property — it has no attribute, so it is only reachable\n * imperatively. `flush: 'post'` runs after the DOM patch; `immediate` is safe here ONLY\n * because the body touches the template ref rather than a browser global, and the ref is\n * `null` on the server, where the guard below short-circuits.\n */\nwatch(\n [input, () => props.isIndeterminate],\n ([node, indeterminate]) => {\n if (node) node.indeterminate = Boolean(indeterminate);\n },\n { immediate: true, flush: 'post' },\n);\n\n/* Parse union-typed `size` — preset routes to box+icon class lookup, raw/object routes to inline dims. */\nconst CheckboxInputSizePresets: ReadonlySet<string> = new Set<CheckboxInputSizePreset>(['xs', 'sm', 'md', 'lg', 'xl']);\n\nconst parsedSize = computed(() =>\n CssExtensions.parseSizeUnion<CheckboxInputSizePreset>(props.size, CheckboxInputSizePresets),\n);\n\nconst boxClass = computed(() => (parsedSize.value.preset ? BoxSizeClass[parsedSize.value.preset] : undefined));\nconst iconClass = computed(() => (parsedSize.value.preset ? IconSizeClass[parsedSize.value.preset] : DefaultIconClass));\n\n/* Per-instance color override → sets CSS vars on wrapper; the visual span inherits via cascade. */\nconst composedStyle = computed<StyleValue | undefined>(() => {\n const boxStyle = parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : undefined;\n const colorStyle = ColorExtensions.toneColorOverride(props.color, props.tone);\n return colorStyle || boxStyle ? { ...colorStyle, ...boxStyle } : undefined;\n});\n\nconst inputId = computed(() => props.id ?? ctx?.id);\nconst finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);\nconst finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly ?? false);\nconst finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);\nconst ariaChecked = computed(() => (props.isIndeterminate ? 'mixed' : undefined));\nconst isInvalid = computed(() => ctx?.isInvalid || undefined);\nconst describedBy = computed(() => ctx?.describedBy);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', 'checked']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst wrapperClass = computed(() => cn('relative inline-flex shrink-0', boxClass.value, attrs.class as ClassValue));\n\n/* In skeleton mode the box keeps its size, radius and border width as the placeholder; the tick hides. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\n\nconst visualClass = computed(() =>\n skeleton.isSkeleton.value\n ? cn('pointer-events-none grid h-full w-full place-items-center rounded-sm border', skeleton.boxClass.value)\n : visualStateClass.value,\n);\n\nconst visualStateClass = computed(() =>\n cn(\n checkboxVariants({ variant: props.variant, tone: props.tone }),\n props.isIndeterminate\n ? IndeterminateCheckedClass[props.variant][props.tone]\n : /* Opacity gate lives on this span (a peer sibling of the input) — the child selector\n targets the SVG, since `peer-checked:` cannot reach descendants. */\n '[&>svg]:opacity-0 peer-checked:[&>svg]:opacity-100',\n ),\n);\n\n/** The rendered `<input>` — the Vue stand-in for the React original's forwarded ref. */\nuseNativeFormReset(input, controlled.reset, () => {\n if (input.value) input.value.checked = Boolean(isChecked.value);\n});\n\ndefineExpose({ el: input });\n</script>\n\n<template>\n <span\n :class=\"wrapperClass\"\n :style=\"composedStyle\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :inert=\"skeleton.isSkeleton.value || undefined\"\n >\n <input\n ref=\"input\"\n type=\"checkbox\"\n :id=\"inputId\"\n :disabled=\"finalDisabled\"\n :required=\"finalRequired\"\n :checked=\"isChecked\"\n :aria-checked=\"ariaChecked\"\n :aria-invalid=\"isInvalid\"\n :aria-describedby=\"describedBy\"\n class=\"peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n v-bind=\"passthroughAttrs\"\n @change=\"onChange\"\n @click=\"finalReadOnly && $event.preventDefault()\"\n :aria-readonly=\"finalReadOnly || undefined\"\n />\n <span aria-hidden=\"true\" :class=\"visualClass\">\n <Minus v-if=\"isIndeterminate\" :class=\"iconClass\" />\n <Check v-else :class=\"iconClass\" />\n </span>\n </span>\n</template>\n","// Shared date helpers for CalendarPicker / DatePicker / DateInput / RangeCalendarPicker.\n// Co-located in `forms/` so imports stay within-domain.\n//\n// Temporal-based — the ecosystem standardizes on the Temporal API (dates =\n// `Temporal.*`). `Temporal.PlainDate` carries calendar math (no timezone), so\n// these helpers are inherently local/wall-clock, which is what calendar UIs want.\n// `Temporal.PlainTime` carries hour/minute for the time components.\n\nimport { Temporal } from 'temporal-polyfill';\n\nexport const WeekdayLabelsShort = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\nexport const MonthLabelsLong = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n];\n\n/** Sunday-anchored column index (0 = Sun … 6 = Sat) for a PlainDate. */\nexport function sundayIndex(d: Temporal.PlainDate): number {\n // Temporal `dayOfWeek` is 1 (Mon) … 7 (Sun); map Sunday to 0 for our Su-first grid.\n return d.dayOfWeek % 7;\n}\n\n/** Today as a PlainDate in the local time zone. */\nexport function today(): Temporal.PlainDate {\n return Temporal.Now.plainDateISO();\n}\n\nexport function isSameDay(a: Temporal.PlainDate | null | undefined, b: Temporal.PlainDate | null | undefined): boolean {\n if (!a || !b) return false;\n return a.equals(b);\n}\n\nexport function isToday(d: Temporal.PlainDate): boolean {\n return d.equals(today());\n}\n\n/** Add `n` months; Temporal clamps to the target month's last day (Jan 31 +1 → Feb 28). */\nexport function addMonths(d: Temporal.PlainDate, n: number): Temporal.PlainDate {\n return d.add({ months: n });\n}\n\nexport function addDays(d: Temporal.PlainDate, n: number): Temporal.PlainDate {\n return d.add({ days: n });\n}\n\n/** First day of `d`'s month. */\nexport function startOfMonth(d: Temporal.PlainDate): Temporal.PlainDate {\n return d.with({ day: 1 });\n}\n\n/** Number of days in the given year/month (1-indexed month). */\nexport function daysInMonth(year: number, month: number): number {\n return Temporal.PlainDate.from({ year, month, day: 1 }).daysInMonth;\n}\n\n/**\n * Build the 6-week (42-cell) grid that the calendar UI renders.\n * `year`/`month` are 1-indexed (Temporal convention). Cells outside the target\n * month carry `outOfMonth: true`.\n */\nexport function buildMonthGrid(\n year: number,\n month: number,\n): ReadonlyArray<{ date: Temporal.PlainDate; outOfMonth: boolean }> {\n const first = Temporal.PlainDate.from({ year, month, day: 1 });\n const start = first.subtract({ days: sundayIndex(first) });\n const cells: { date: Temporal.PlainDate; outOfMonth: boolean }[] = [];\n for (let i = 0; i < 42; i++) {\n const date = start.add({ days: i });\n cells.push({ date, outOfMonth: date.month !== month });\n }\n return cells;\n}\n\n/** Format PlainDate → \"YYYY-MM-DD\" for a native `<input type=\"date\">` value. */\nexport function formatISODate(d: Temporal.PlainDate | null | undefined): string {\n if (!d) return '';\n return d.toString();\n}\n\n/** Parse \"YYYY-MM-DD\" → PlainDate. Returns null for invalid input. */\nexport function parseISODate(s: string | null | undefined): Temporal.PlainDate | null {\n if (!s) return null;\n if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(s)) return null;\n try {\n return Temporal.PlainDate.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\n/** Format PlainTime → \"HH:MM\" for a native `<input type=\"time\">` value. */\nexport function formatISOTime(t: Temporal.PlainTime | null | undefined): string {\n if (!t) return '';\n return t.toString({ smallestUnit: 'minute' });\n}\n\n/** Parse \"HH:MM\" → PlainTime. Returns null for invalid input. */\nexport function parseISOTime(s: string | null | undefined): Temporal.PlainTime | null {\n if (!s) return null;\n if (!/^\\d{2}:\\d{2}$/.test(s)) return null;\n try {\n return Temporal.PlainTime.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\n/** Format PlainDateTime → \"YYYY-MM-DDTHH:MM\" for a native `<input type=\"datetime-local\">` value. */\nexport function formatISODateTime(dt: Temporal.PlainDateTime | null | undefined): string {\n if (!dt) return '';\n return dt.toString({ smallestUnit: 'minute' });\n}\n\n/** Parse \"YYYY-MM-DDTHH:MM\" (seconds optional) → PlainDateTime. Returns null for invalid input. */\nexport function parseISODateTime(s: string | null | undefined): Temporal.PlainDateTime | null {\n if (!s) return null;\n if (!/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$/.test(s)) return null;\n try {\n return Temporal.PlainDateTime.from(s, { overflow: 'reject' });\n } catch {\n return null;\n }\n}\n\nexport function clampDate(\n d: Temporal.PlainDate,\n min?: Temporal.PlainDate | null,\n max?: Temporal.PlainDate | null,\n): Temporal.PlainDate {\n if (min && Temporal.PlainDate.compare(d, min) < 0) return min;\n if (max && Temporal.PlainDate.compare(d, max) > 0) return max;\n return d;\n}\n\nexport function isDateDisabled(\n d: Temporal.PlainDate,\n options: {\n min?: Temporal.PlainDate | null;\n max?: Temporal.PlainDate | null;\n isDisabled?: (d: Temporal.PlainDate) => boolean;\n },\n): boolean {\n const { min, max, isDisabled } = options;\n if (min && Temporal.PlainDate.compare(d, min) < 0) return true;\n if (max && Temporal.PlainDate.compare(d, max) > 0) return true;\n if (isDisabled?.(d)) return true;\n return false;\n}\n\nexport function isInRange(\n d: Temporal.PlainDate,\n start: Temporal.PlainDate | null | undefined,\n end: Temporal.PlainDate | null | undefined,\n): boolean {\n if (!start || !end) return false;\n const lo = Temporal.PlainDate.compare(start, end) <= 0 ? start : end;\n const hi = Temporal.PlainDate.compare(start, end) <= 0 ? end : start;\n return Temporal.PlainDate.compare(d, lo) >= 0 && Temporal.PlainDate.compare(d, hi) <= 0;\n}\n\n/** Signed whole-day count from `a` to `b` (positive when `b` is later). */\nexport function daysBetween(a: Temporal.PlainDate, b: Temporal.PlainDate): number {\n return a.until(b, { largestUnit: 'day' }).days;\n}\n\n/** True when `d` falls on a Saturday or Sunday. */\nexport function isWeekend(d: Temporal.PlainDate): boolean {\n // Temporal `dayOfWeek`: 1 (Mon) … 7 (Sun); 6 = Sat, 7 = Sun.\n return d.dayOfWeek === 6 || d.dayOfWeek === 7;\n}\n\n// ── Datetime helpers (ZonedDateTime) ──────────────────────────────────────\n// EventCalendarViewer / ScheduleView model absolute instants (a wall-clock time in a\n// specific zone) — the `Temporal.ZonedDateTime` peer of .NET `DateTimeOffset`.\n// The grid + navigation still project down to `Temporal.PlainDate` (via the\n// helpers above); these cover the intra-day time-slot math the grid needs.\n\n/** Now as a ZonedDateTime in the local (system) time zone. */\nexport function nowZoned(): Temporal.ZonedDateTime {\n return Temporal.Now.zonedDateTimeISO();\n}\n\n/** The calendar day a ZonedDateTime falls on (its wall-clock PlainDate). */\nexport function zonedToPlainDate(z: Temporal.ZonedDateTime): Temporal.PlainDate {\n return z.toPlainDate();\n}\n\n/** True when two ZonedDateTimes land on the same wall-clock day (same zone assumed). */\nexport function isSameZonedDay(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): boolean {\n return a.toPlainDate().equals(b.toPlainDate());\n}\n\n/** True when a ZonedDateTime falls on `day` (its wall-clock date equals `day`). */\nexport function isZonedOnDay(z: Temporal.ZonedDateTime, day: Temporal.PlainDate): boolean {\n return z.toPlainDate().equals(day);\n}\n\n/** Start-of-day (00:00, zone-correct) for `day` in `z`'s time zone. */\nexport function startOfZonedDay(day: Temporal.PlainDate, timeZone: Temporal.TimeZoneLike): Temporal.ZonedDateTime {\n return day.toZonedDateTime({ timeZone, plainTime: Temporal.PlainTime.from('00:00') });\n}\n\n/** `day` at hour `hour` (minutes/seconds zeroed), zone-correct, in `timeZone`. */\nexport function zonedAtHour(\n day: Temporal.PlainDate,\n hour: number,\n timeZone: Temporal.TimeZoneLike,\n): Temporal.ZonedDateTime {\n return day.toZonedDateTime({\n timeZone,\n plainTime: new Temporal.PlainTime(hour),\n });\n}\n\n/** Signed minutes from `a` to `b` (positive when `b` is later). */\nexport function minutesBetween(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): number {\n return a.until(b, { largestUnit: 'minute', smallestUnit: 'minute' }).minutes;\n}\n\n/** Later of two instants. */\nexport function maxZoned(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): Temporal.ZonedDateTime {\n return Temporal.ZonedDateTime.compare(a, b) >= 0 ? a : b;\n}\n\n/** Earlier of two instants. */\nexport function minZoned(a: Temporal.ZonedDateTime, b: Temporal.ZonedDateTime): Temporal.ZonedDateTime {\n return Temporal.ZonedDateTime.compare(a, b) <= 0 ? a : b;\n}\n\n/** True when `z`'s calendar day lies within [start, end] (inclusive, by day). */\nexport function isZonedDayInRange(\n z: Temporal.ZonedDateTime,\n start: Temporal.ZonedDateTime,\n end: Temporal.ZonedDateTime,\n): boolean {\n return isInRange(z.toPlainDate(), start.toPlainDate(), end.toPlainDate());\n}\n\n/** Format a ZonedDateTime's time-of-day as \"HH:MM\" (locale-aware). */\nexport function formatZonedTime(z: Temporal.ZonedDateTime, locale?: string): string {\n return z.toLocaleString(locale, { hour: '2-digit', minute: '2-digit' });\n}\n\n/** Validates an offered minute interval without unbounded loops or fractional Temporal values. */\nexport function normalizeMinuteStep(step: number | undefined): number {\n return step !== undefined && Number.isInteger(step) && step >= 1 && step <= 60 ? step : 5;\n}\n\n/** Inclusive same-day bounds. A reversed interval has no valid values. */\nexport function isTimeInBounds(\n value: Temporal.PlainTime,\n min?: Temporal.PlainTime | null,\n max?: Temporal.PlainTime | null,\n): boolean {\n return (!min || Temporal.PlainTime.compare(value, min) >= 0) && (!max || Temporal.PlainTime.compare(value, max) <= 0);\n}\n\nexport function clampTime(\n value: Temporal.PlainTime,\n min?: Temporal.PlainTime | null,\n max?: Temporal.PlainTime | null,\n): Temporal.PlainTime {\n if (min && Temporal.PlainTime.compare(value, min) < 0) return min;\n if (max && Temporal.PlainTime.compare(value, max) > 0) return max;\n return value;\n}\n\nexport function isDateTimeInBounds(\n value: Temporal.PlainDateTime,\n min?: Temporal.PlainDateTime | null,\n max?: Temporal.PlainDateTime | null,\n): boolean {\n return (\n (!min || Temporal.PlainDateTime.compare(value, min) >= 0) &&\n (!max || Temporal.PlainDateTime.compare(value, max) <= 0)\n );\n}\n\nexport function clampDateTime(\n value: Temporal.PlainDateTime,\n min?: Temporal.PlainDateTime | null,\n max?: Temporal.PlainDateTime | null,\n): Temporal.PlainDateTime {\n if (min && Temporal.PlainDateTime.compare(value, min) < 0) return min;\n if (max && Temporal.PlainDateTime.compare(value, max) > 0) return max;\n return value;\n}\n","<script lang=\"ts\">\n/**\n * Defines props for a `LegendText`.\n *\n * React's `HTMLAttributes<HTMLLegendElement>` has no Vue counterpart — every\n * native attribute is a fallthrough attr and lands on the `<legend>` unchanged.\n * The name is kept so consumers importing `LegendTextProps` still resolve.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface LegendTextProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\n\n/** Renders a `<legend>` styled to match `LabelText`, naming the group of controls a `FieldsetLayout` wraps. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'LegendText', inheritAttrs: false });\n\ndefineSlots<{\n /** The group's name — React's `children`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() => cn('mb-2 text-sm font-medium text-foreground', attrs.class as ClassValue));\n\nconst root = useTemplateRef<HTMLLegendElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <legend ref=\"root\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </legend>\n</template>\n","<script lang=\"ts\">\nimport type { Size } from '../../../foundation/styles';\n\nexport interface LabelTextProps {\n /** The required state, showing a `*` indicator. Auto-derived from `FormControl.isRequired` when present. */\n readonly isRequired?: boolean;\n\n /** The visual size. Default `md`. */\n readonly size?: Size;\n\n /**\n * The id of the labelled control — React's `htmlFor`. Auto-filled from\n * `FormControl` context when omitted.\n */\n readonly htmlFor?: string;\n\n /** The DOM spelling of {@link LabelTextProps.htmlFor}, which wins when both are set. */\n readonly for?: string;\n\n /**\n * The label's own id. An explicit id detaches the node from the context's\n * `labelId`, so the label stops registering as the context's naming chrome.\n */\n readonly id?: string;\n}\n\n/* Sizes not listed fall back to the `md` row at the call site. */\nconst SizeClass: Partial<Record<Size, string>> = {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-sm',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Size as SizeValue } from '../../../foundation/styles';\nimport { useFormControl, useFormControlChrome } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { SkeletonStateLine } from '../../feedback/skeletonState/SkeletonStateLine';\n\n/** Renders a `<label>` that takes `htmlFor` and `id` from `FormControl`, plus the required-field asterisk. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'LabelText', inheritAttrs: false });\n\n/* `children` has no prop counterpart — the label copy is the default slot. */\nconst props = withDefaults(defineProps<LabelTextProps>(), {\n size: SizeValue.Md,\n /* `isRequired` must stay `undefined` when absent: the value falls back to the form\n control's own `isRequired`, and Vue's Boolean casting would turn an absent prop into\n an explicit `false` that shadows the context. */\n isRequired: undefined,\n});\n\ndefineSlots<{\n /** The label copy, rendered before the required asterisk. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\n/* Registration flips the context's `labelledBy` on — widgets that name themselves via\n `aria-labelledby` reference the label only while it exists. An explicit `id` prop\n detaches the node from the context's labelId. Passed as a getter to stay reactive. */\nuseFormControlChrome('label', () => props.id == null);\n\n/* Follows the nearest `DataRegion` or `Field` skeleton: the label keeps its line and turns into a bar. */\nconst skeleton = useSkeletonState();\n\nconst isRequired = computed(() => props.isRequired ?? ctx?.isRequired ?? false);\nconst labelFor = computed(() => props.for ?? props.htmlFor ?? ctx?.id);\nconst labelId = computed(() => props.id ?? ctx?.labelId);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n SizeClass[props.size] ?? SizeClass.md,\n 'font-medium text-foreground',\n ctx?.isDisabled && 'opacity-60',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<HTMLLabelElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <label\n ref=\"root\"\n :for=\"labelFor\"\n :id=\"labelId\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <SkeletonStateLine :is-skeleton=\"skeleton.isSkeleton.value\"><slot /></SkeletonStateLine>\n <span\n v-if=\"isRequired\"\n :class=\"cn('ml-0.5 text-destructive-soft-foreground', skeleton.isSkeleton.value && 'invisible')\"\n aria-hidden=\"true\"\n >*</span\n >\n </label>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the outline shape of a color swatch. */\nexport const SwatchShape = {\n /** Refers to a rounded-square swatch. */\n Square: 'square',\n /** Refers to a circular swatch. */\n Circle: 'circle',\n} as const;\n\nexport type SwatchShape = (typeof SwatchShape)[keyof typeof SwatchShape];\n\n/** Defines the size step of a color swatch. */\nexport const ColorSwatchPreviewSize = {\n /** Refers to the extra-small step (h-4). */\n Xs: 'xs',\n /** Refers to the small step (h-5). */\n Sm: 'sm',\n /** Refers to the medium (default) step (h-6). */\n Md: 'md',\n /** Refers to the large step (h-9). */\n Lg: 'lg',\n} as const;\n\nexport type ColorSwatchPreviewSize = (typeof ColorSwatchPreviewSize)[keyof typeof ColorSwatchPreviewSize];\n\nexport const colorSwatchVariants = tv({\n base: 'inline-block shrink-0 border border-border bg-[image:linear-gradient(45deg,_#ddd_25%,_transparent_25%),_linear-gradient(-45deg,_#ddd_25%,_transparent_25%),_linear-gradient(45deg,_transparent_75%,_#ddd_75%),_linear-gradient(-45deg,_transparent_75%,_#ddd_75%)] bg-[length:8px_8px] bg-[position:0_0,_0_4px,_4px_-4px,_-4px_0px]',\n variants: {\n size: {\n xs: 'h-4 w-4',\n sm: 'h-5 w-5',\n md: 'h-6 w-6',\n lg: 'h-9 w-9',\n },\n shape: {\n square: 'rounded-sm',\n circle: 'rounded-full',\n },\n interactive: {\n true: 'cursor-pointer transition-shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 hover:shadow-sm',\n false: '',\n },\n isSelected: {\n true: 'ring-2 ring-ring ring-offset-1',\n false: '',\n },\n isDisabled: {\n true: 'cursor-not-allowed opacity-50',\n false: '',\n },\n },\n defaultVariants: {\n size: 'md',\n shape: 'square',\n interactive: false,\n isSelected: false,\n isDisabled: false,\n },\n});\n\nexport type ColorSwatchPreviewVariants = VariantProps<typeof colorSwatchVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertColorSwatchSize: AssertExact<\n ColorSwatchPreviewSize,\n NonNullable<VariantProps<typeof colorSwatchVariants>['size']>\n> = true;\nconst _assertSwatchShape: AssertExact<\n SwatchShape,\n NonNullable<VariantProps<typeof colorSwatchVariants>['shape']>\n> = true;\nvoid _assertColorSwatchSize;\nvoid _assertSwatchShape;\n","<script lang=\"ts\">\nimport type { ColorSwatchPreviewSize, SwatchShape } from './ColorSwatchPreview.variants';\n\n/**\n * Defines props for a `ColorSwatchPreview`.\n *\n * React declared a discriminated union — `onClick` present selected the\n * `<button>` half and its `ButtonHTMLAttributes`, absent selected the `<div>`\n * half. The union collapses here: every native attribute is a fallthrough attr\n * and lands on whichever element renders, so only the styling axes remain\n * declared.\n *\n * `onClick` is deliberately NOT declared — see the note in `<script setup>`.\n */\nexport interface ColorSwatchPreviewProps {\n /** Any CSS color string. Default `#000000`. */\n readonly color?: string;\n /** The swatch size step. */\n readonly size?: ColorSwatchPreviewSize;\n /** The swatch outline shape. */\n readonly shape?: SwatchShape;\n /** The selected state — draws the selection ring. */\n readonly isSelected?: boolean;\n /** The disabled state. Also sets `disabled` on the interactive (`<button>`) form. */\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef, type StyleValue } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { colorSwatchVariants } from './ColorSwatchPreview.variants';\n\n/** Renders a color chip over a checkerboard backdrop — a `<button>` when given a click listener, else a `<div>`. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'ColorSwatchPreview', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ColorSwatchPreviewProps>(), {\n color: '#000000',\n /* Explicit `undefined` defaults: Vue casts an absent `boolean` prop to `false`, which would\n pin the tv axis to its explicit-false branch instead of letting `defaultVariants` apply. */\n isSelected: undefined,\n isDisabled: undefined,\n});\n\nconst attrs = useAttrs();\n\n/*\n * React switched the rendered element on `onClick`'s presence. `onClick` stays a FALLTHROUGH\n * ATTR here rather than a declared prop or an emit:\n * - an emit would be stripped out of `useAttrs()`, erasing the discriminator entirely;\n * - a declared prop would receive the merge ARRAY that `Primitive`'s `asChild` builds when\n * `ColorPicker` chains the popover's toggle onto this swatch, and an array is not callable.\n * As an attr it stays detectable AND Vue invokes the whole chained array natively.\n */\nconst isInteractive = computed(() => Boolean(attrs.onClick));\n\n/* `style` is owned so the inset box-shadow can be layered after the caller's declarations,\n the order React's `{ ...style, boxShadow }` spread gave it. */\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', 'style']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n colorSwatchVariants({\n size: props.size,\n shape: props.shape,\n interactive: isInteractive.value,\n isSelected: props.isSelected,\n isDisabled: props.isDisabled,\n }),\n attrs.class as ClassValue,\n ),\n);\n\n/* Layers the color on top of the checkerboard via an inset box-shadow — keeps the variant\n class's `bg-[image:…]` checkerboard visible behind a partial-alpha color. */\nconst rootStyle = computed<StyleValue>(() => [\n attrs.style as StyleValue,\n { boxShadow: `inset 0 0 0 100px ${props.color}` },\n]);\n\nconst root = useTemplateRef<HTMLElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <button\n v-if=\"isInteractive\"\n ref=\"root\"\n type=\"button\"\n :disabled=\"isDisabled\"\n :class=\"rootClass\"\n :style=\"rootStyle\"\n v-bind=\"passthroughAttrs\"\n />\n <div v-else ref=\"root\" :class=\"rootClass\" :style=\"rootStyle\" v-bind=\"passthroughAttrs\" />\n</template>\n","<script lang=\"ts\">\nexport interface FieldHelperTextProps {\n /**\n * The node's own id. An explicit id detaches it from the context's `helperId`,\n * so the control's `aria-describedby` stops referencing it.\n */\n readonly id?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useFormControl, useFormControlChrome } from '../../../foundation/primitives';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { SkeletonStateLine } from '../../feedback/skeletonState/SkeletonStateLine';\n\n/** Renders the hint text under a form control, registering its id with the control's `aria-describedby`. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'FieldHelperText', inheritAttrs: false });\n\n/* React took the copy as `children`; here it is the default slot. */\nconst props = defineProps<FieldHelperTextProps>();\n\ndefineSlots<{\n /** The hint copy — React's `children`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* `ctx` is a live-getter object — read fields off it, never destructure. */\nconst ctx = useFormControl();\n\n/* An explicit `id` prop detaches the node from the context's helperId — don't register.\n Passed as a getter so the registration re-runs if the prop changes. */\nuseFormControlChrome('helper', () => props.id == null);\n\nconst helperId = computed(() => props.id ?? ctx?.helperId);\n\n/* Follows the nearest `DataRegion` or `Field` skeleton: the hint keeps its lines and turns into bars. */\nconst skeleton = useSkeletonState();\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() => cn('text-sm text-muted-foreground', attrs.class as ClassValue));\n\nconst root = useTemplateRef<HTMLParagraphElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <p\n ref=\"root\"\n :id=\"helperId\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <SkeletonStateLine :is-skeleton=\"skeleton.isSkeleton.value\"><slot /></SkeletonStateLine>\n </p>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","_unref","_createVNode","Icon","_createBlock","_createElementVNode","_hoisted_1","_hoisted_2","TreeViewerNodeRow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