@ansh-ui/vue 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunk-2VSROZ2N.js +1281 -0
  3. package/dist/chunk-2VSROZ2N.js.map +1 -0
  4. package/dist/chunk-5BQEZYG6.cjs +1294 -0
  5. package/dist/chunk-5BQEZYG6.cjs.map +1 -0
  6. package/dist/chunk-6732H4BQ.cjs +28 -0
  7. package/dist/chunk-6732H4BQ.cjs.map +1 -0
  8. package/dist/chunk-6ABPGOJP.js +722 -0
  9. package/dist/chunk-6ABPGOJP.js.map +1 -0
  10. package/dist/chunk-6XJOB6LE.js +62 -0
  11. package/dist/chunk-6XJOB6LE.js.map +1 -0
  12. package/dist/chunk-774WBLDR.cjs +24 -0
  13. package/dist/chunk-774WBLDR.cjs.map +1 -0
  14. package/dist/chunk-B6OXKW5Q.js +567 -0
  15. package/dist/chunk-B6OXKW5Q.js.map +1 -0
  16. package/dist/chunk-DMPNT3MY.cjs +64 -0
  17. package/dist/chunk-DMPNT3MY.cjs.map +1 -0
  18. package/dist/chunk-EISHOEB6.cjs +158 -0
  19. package/dist/chunk-EISHOEB6.cjs.map +1 -0
  20. package/dist/chunk-EVO23GUS.js +223 -0
  21. package/dist/chunk-EVO23GUS.js.map +1 -0
  22. package/dist/chunk-FVKLCGA4.js +1035 -0
  23. package/dist/chunk-FVKLCGA4.js.map +1 -0
  24. package/dist/chunk-IOXGBPOV.cjs +3681 -0
  25. package/dist/chunk-IOXGBPOV.cjs.map +1 -0
  26. package/dist/chunk-J2LA4GRP.cjs +1051 -0
  27. package/dist/chunk-J2LA4GRP.cjs.map +1 -0
  28. package/dist/chunk-JQ4YLXXM.cjs +580 -0
  29. package/dist/chunk-JQ4YLXXM.cjs.map +1 -0
  30. package/dist/chunk-KCA7RNJ4.cjs +781 -0
  31. package/dist/chunk-KCA7RNJ4.cjs.map +1 -0
  32. package/dist/chunk-NJDDNO4C.js +23 -0
  33. package/dist/chunk-NJDDNO4C.js.map +1 -0
  34. package/dist/chunk-OAQ7MDYX.js +22 -0
  35. package/dist/chunk-OAQ7MDYX.js.map +1 -0
  36. package/dist/chunk-PP6OYURM.cjs +238 -0
  37. package/dist/chunk-PP6OYURM.cjs.map +1 -0
  38. package/dist/chunk-SHX2JGID.cjs +269 -0
  39. package/dist/chunk-SHX2JGID.cjs.map +1 -0
  40. package/dist/chunk-SOYRICHU.js +3645 -0
  41. package/dist/chunk-SOYRICHU.js.map +1 -0
  42. package/dist/chunk-T425FIC7.js +773 -0
  43. package/dist/chunk-T425FIC7.js.map +1 -0
  44. package/dist/chunk-TMG3M6TK.js +152 -0
  45. package/dist/chunk-TMG3M6TK.js.map +1 -0
  46. package/dist/chunk-XLLSS464.cjs +286 -0
  47. package/dist/chunk-XLLSS464.cjs.map +1 -0
  48. package/dist/chunk-XZ5ZFLZM.js +280 -0
  49. package/dist/chunk-XZ5ZFLZM.js.map +1 -0
  50. package/dist/chunk-Z7XOFKM4.cjs +733 -0
  51. package/dist/chunk-Z7XOFKM4.cjs.map +1 -0
  52. package/dist/chunk-ZGMXOMCB.js +266 -0
  53. package/dist/chunk-ZGMXOMCB.js.map +1 -0
  54. package/dist/data.cjs +70 -0
  55. package/dist/data.cjs.map +1 -0
  56. package/dist/data.d.cts +963 -0
  57. package/dist/data.d.ts +963 -0
  58. package/dist/data.js +5 -0
  59. package/dist/data.js.map +1 -0
  60. package/dist/form.cjs +151 -0
  61. package/dist/form.cjs.map +1 -0
  62. package/dist/form.d.cts +2639 -0
  63. package/dist/form.d.ts +2639 -0
  64. package/dist/form.js +6 -0
  65. package/dist/form.js.map +1 -0
  66. package/dist/index.cjs +1158 -0
  67. package/dist/index.cjs.map +1 -0
  68. package/dist/index.d.cts +439 -0
  69. package/dist/index.d.ts +439 -0
  70. package/dist/index.js +547 -0
  71. package/dist/index.js.map +1 -0
  72. package/dist/layout.cjs +67 -0
  73. package/dist/layout.cjs.map +1 -0
  74. package/dist/layout.d.cts +729 -0
  75. package/dist/layout.d.ts +729 -0
  76. package/dist/layout.js +6 -0
  77. package/dist/layout.js.map +1 -0
  78. package/dist/motion.cjs +50 -0
  79. package/dist/motion.cjs.map +1 -0
  80. package/dist/motion.d.cts +681 -0
  81. package/dist/motion.d.ts +681 -0
  82. package/dist/motion.js +5 -0
  83. package/dist/motion.js.map +1 -0
  84. package/dist/navigation.cjs +48 -0
  85. package/dist/navigation.cjs.map +1 -0
  86. package/dist/navigation.d.cts +515 -0
  87. package/dist/navigation.d.ts +515 -0
  88. package/dist/navigation.js +7 -0
  89. package/dist/navigation.js.map +1 -0
  90. package/dist/overlay.cjs +61 -0
  91. package/dist/overlay.cjs.map +1 -0
  92. package/dist/overlay.d.cts +772 -0
  93. package/dist/overlay.d.ts +772 -0
  94. package/dist/overlay.js +8 -0
  95. package/dist/overlay.js.map +1 -0
  96. package/dist/position-Cn7qP1pn.d.cts +50 -0
  97. package/dist/position-Cn7qP1pn.d.ts +50 -0
  98. package/dist/primitives.cjs +129 -0
  99. package/dist/primitives.cjs.map +1 -0
  100. package/dist/primitives.d.cts +300 -0
  101. package/dist/primitives.d.ts +300 -0
  102. package/dist/primitives.js +8 -0
  103. package/dist/primitives.js.map +1 -0
  104. package/dist/sidebar-CQqEmpid.d.cts +124 -0
  105. package/dist/sidebar-CTZ-Ckko.d.ts +124 -0
  106. package/dist/styles.css +5593 -0
  107. package/dist/utils-IKPG3zcC.d.cts +46 -0
  108. package/dist/utils-IKPG3zcC.d.ts +46 -0
  109. package/package.json +91 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/text.ts","../src/components/providers.ts","../src/components/motion.ts"],"names":["defineComponent","computed","resolvePalette","createGradient","prefersReducedMotion","h","ref","onMounted","resolveEasing","stagger","getTicker","observeIntersection","onBeforeUnmount","watch","setReducedMotionMode","attachLifecycle","provide","inject","applyTheme","resolveTheme","Comment","Text","useAnimate","springs","useInView","onScopeD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C7E;AAAA,YACA;AAAA,WACF;AAAA,UACA,aAAA;AAAA,UACA,GAAG;AAAA,SACL;AAAA,QACA,MAAM,OAAA;AAAU,OAClB;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAC","file":"chunk-Z7XOFKM4.cjs","sourcesContent":["import {\n type CSSProperties,\n type PropType,\n computed,\n defineComponent,\n h,\n onBeforeUnmount,\n onMounted,\n ref,\n} from 'vue'\nimport {\n type ColorInput,\n type EasingInput,\n type StaggerFrom,\n createGradient,\n getTicker,\n observeIntersection,\n prefersReducedMotion,\n resolveEasing,\n resolvePalette,\n stagger,\n} from '@ansh-ui/core'\n\n/**\n * Text components.\n *\n * Hand-written rather than factory-generated, because text animation has a requirement no generic\n * factory can meet: **the accessible text must never be the animated text.** Splitting a heading\n * into per-character spans is fine visually and an accessibility failure if that structure is what\n * a screen reader reads — some engines announce \"W. E. L. C. O. M. E.\" and you cannot rely on which.\n *\n * The pattern used here: the real string lives in a visually-hidden element that remains the\n * accessible representation, and the whole animated structure is `aria-hidden`.\n */\n\nconst VISUALLY_HIDDEN: CSSProperties = {\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: '0',\n margin: '-1px',\n overflow: 'hidden',\n clipPath: 'inset(50%)',\n whiteSpace: 'nowrap',\n borderWidth: '0',\n}\n\n// ---------------------------------------------------------------------------\n// GradientText\n// ---------------------------------------------------------------------------\n\n/**\n * Text filled with a perceptual gradient.\n *\n * The stops are generated through the OKLab interpolator rather than handed to CSS as two\n * endpoints. That is the entire point: a CSS `linear-gradient(#0275f4, #9f0550)` passes through a\n * desaturated grey-brown at its midpoint, and on text — where the gradient crosses a narrow band —\n * the midpoint is exactly where the eye lands.\n *\n * The optional animation is a CSS `background-position` shift rather than a JS loop, because for a\n * single non-interactive property the browser's compositor beats anything we could do on the main\n * thread.\n */\nexport const GradientText = defineComponent({\n name: 'AnshGradientText',\n props: {\n text: { type: String, default: '' },\n colors: {\n type: [Array, String] as PropType<readonly ColorInput[] | string>,\n default: undefined,\n },\n /** Gradient angle in degrees. */\n angle: { type: Number, default: 100 },\n /** Seconds per cycle. `0` holds a static gradient. */\n duration: { type: Number, default: 0 },\n /** Interpolated stops handed to CSS. More is smoother. */\n stops: { type: Number, default: 16 },\n as: { type: String, default: 'span' },\n },\n\n setup(props, { slots }) {\n const gradient = computed(() => {\n const palette = resolvePalette(props.colors as never)\n // Duplicated so an animated background-position shift wraps seamlessly rather than jumping.\n const looped = props.duration > 0 ? [...palette, ...palette] : palette\n return createGradient(looped, { space: 'oklab' }).toCss(`${props.angle}deg`, props.stops)\n })\n\n const animated = computed(() => props.duration > 0 && !prefersReducedMotion())\n\n return () =>\n h(\n props.as,\n {\n style: {\n backgroundImage: gradient.value,\n backgroundSize: animated.value ? '200% 100%' : '100% 100%',\n backgroundClip: 'text',\n WebkitBackgroundClip: 'text',\n color: 'transparent',\n WebkitTextFillColor: 'transparent',\n display: 'inline-block',\n ...(animated.value\n ? { animation: `ansh-gradient-shift ${props.duration}s linear infinite` }\n : {}),\n } as CSSProperties,\n },\n [\n slots.default?.() ?? props.text,\n // The keyframes are injected inline so `<GradientText :duration=\"6\" />` works with no\n // stylesheet import. Identical rules from multiple instances are deduplicated by the\n // browser, so this costs nothing at scale.\n animated.value\n ? h('style', {\n innerHTML:\n '@keyframes ansh-gradient-shift{from{background-position:0% 50%}' +\n 'to{background-position:200% 50%}}',\n })\n : null,\n ],\n )\n },\n})\n\n// ---------------------------------------------------------------------------\n// AnimatedText\n// ---------------------------------------------------------------------------\n\ninterface Unit {\n text: string\n /** Whitespace is rendered as a plain gap rather than an animated unit. */\n space: boolean\n}\n\n/**\n * Text that reveals unit by unit.\n *\n * The split happens during render, so the markup is server-rendered and the real text is present in\n * the HTML source for SEO and for readers without JavaScript. The animation runs on the shared\n * ticker, so a page full of these shares one clock and cannot drift apart.\n *\n * Under `prefers-reduced-motion` the text renders in its final state and never animates.\n */\nexport const AnimatedText = defineComponent({\n name: 'AnshAnimatedText',\n props: {\n text: { type: String, required: true },\n /** Split granularity. */\n by: { type: String as PropType<'chars' | 'words'>, default: 'chars' },\n /** Seconds per unit. */\n duration: { type: Number, default: 0.6 },\n /** Seconds between units. */\n each: { type: Number, default: 0.03 },\n /** Where the reveal wave begins. */\n from: { type: [String, Number] as PropType<StaggerFrom>, default: 'first' },\n easing: { type: [String, Function, Array] as PropType<EasingInput>, default: 'cinematic' },\n /** Distance each unit travels into place, in pixels. */\n distance: { type: Number, default: 18 },\n /** Starting blur in pixels — the \"focus in\" look. */\n blur: { type: Number, default: 0 },\n /** Starting rotation in degrees. */\n rotate: { type: Number, default: 0 },\n /** Clip each unit so it rises from behind a mask. */\n mask: { type: Boolean, default: false },\n /** Wait until scrolled into view. */\n whenInView: { type: Boolean, default: true },\n /** Replay every time it re-enters the viewport. */\n repeat: { type: Boolean, default: false },\n /** Seconds to wait before starting. */\n delay: { type: Number, default: 0 },\n as: { type: String, default: 'span' },\n },\n emits: ['complete'],\n\n setup(props, { emit }) {\n const host = ref<HTMLElement | null>(null)\n const unitNodes = ref<(HTMLElement | null)[]>([])\n\n const units = computed<Unit[]>(() => {\n if (props.by === 'words') {\n return props.text\n .split(/(\\s+)/)\n .filter((token) => token.length > 0)\n .map((token) => ({ text: token, space: /^\\s+$/.test(token) }))\n }\n\n // Grapheme-aware: `[...string]` splits by code point, which breaks emoji with modifiers and\n // combining accents into multiple \"characters\".\n const graphemes =\n typeof Intl !== 'undefined' && 'Segmenter' in Intl\n ? Array.from(\n new Intl.Segmenter(undefined, { granularity: 'grapheme' }).segment(props.text),\n (s) => s.segment,\n )\n : Array.from(props.text)\n\n return graphemes.map((character) => ({ text: character, space: /^\\s$/.test(character) }))\n })\n\n let stopTicker: (() => void) | null = null\n let stopObserver: (() => void) | null = null\n\n onMounted(() => {\n const element = host.value\n if (!element) return\n\n if (prefersReducedMotion()) {\n emit('complete')\n return\n }\n\n const ease = resolveEasing(props.easing)\n const animatedUnits = units.value.filter((u) => !u.space)\n const delayFor = stagger(animatedUnits.length, { each: props.each, from: props.from })\n\n const targets: { node: HTMLElement; delay: number }[] = []\n let animationIndex = 0\n units.value.forEach((unit, i) => {\n if (unit.space) return\n const node = unitNodes.value[i]\n if (node) targets.push({ node, delay: props.delay + delayFor(animationIndex) })\n animationIndex++\n })\n\n const apply = (node: HTMLElement, progress: number): void => {\n const eased = ease(progress)\n const inverse = 1 - eased\n node.style.opacity = String(eased)\n const parts = [`translate3d(0, ${(props.distance * inverse).toFixed(2)}px, 0)`]\n if (props.rotate !== 0) parts.push(`rotate(${(props.rotate * inverse).toFixed(2)}deg)`)\n node.style.transform = parts.join(' ')\n if (props.blur > 0) {\n const amount = props.blur * inverse\n node.style.filter = amount > 0.05 ? `blur(${amount.toFixed(2)}px)` : ''\n }\n }\n\n const settle = (node: HTMLElement): void => {\n node.style.opacity = ''\n node.style.transform = ''\n node.style.filter = ''\n // Drop the compositor promotion once at rest, so a page of these doesn't hold hundreds of\n // permanent layers.\n node.style.willChange = ''\n }\n\n const reset = (): void => {\n for (const { node } of targets) apply(node, 0)\n }\n\n let elapsed = 0\n let running = false\n\n const start = (): void => {\n if (running) return\n running = true\n elapsed = 0\n for (const { node } of targets) node.style.willChange = 'opacity, transform'\n reset()\n\n stopTicker = getTicker().add(\n ({ delta }) => {\n elapsed += delta\n let allDone = true\n\n for (const target of targets) {\n const local = elapsed - target.delay\n if (local < 0) {\n allDone = false\n continue\n }\n const progress = props.duration <= 0 ? 1 : local / props.duration\n if (progress >= 1) {\n settle(target.node)\n continue\n }\n apply(target.node, progress)\n allDone = false\n }\n\n if (allDone) {\n stopTicker?.()\n stopTicker = null\n running = false\n emit('complete')\n }\n },\n { phase: 'write', name: 'AnimatedText' },\n )\n }\n\n // Hide before the browser paints. `onMounted` in Vue runs after the DOM is inserted but\n // before paint, so unlike React's `useEffect` there is no flash to guard against here.\n reset()\n\n if (!props.whenInView) {\n start()\n return\n }\n\n stopObserver = observeIntersection(\n element,\n (entry) => {\n if (entry.isIntersecting) {\n start()\n } else if (props.repeat) {\n stopTicker?.()\n stopTicker = null\n running = false\n reset()\n }\n },\n { threshold: 0.2, rootMargin: '0px 0px -8% 0px' },\n )\n })\n\n onBeforeUnmount(() => {\n stopObserver?.()\n stopTicker?.()\n stopObserver = null\n stopTicker = null\n })\n\n return () =>\n h(props.as, { ref: host, style: { display: 'inline-block' } as CSSProperties }, [\n // The accessible representation: the real string, unfragmented.\n h('span', { style: VISUALLY_HIDDEN }, props.text),\n\n h(\n 'span',\n { 'aria-hidden': 'true' },\n units.value.map((unit, i) => {\n if (unit.space) return h('span', {}, unit.text)\n\n const inner = h(\n 'span',\n {\n ref: (node: unknown) => {\n unitNodes.value[i] = (node as HTMLElement | null) ?? null\n },\n style: { display: 'inline-block' } as CSSProperties,\n },\n unit.text,\n )\n\n return props.mask\n ? h(\n 'span',\n {\n style: {\n display: 'inline-block',\n overflow: 'hidden',\n // Without this, descenders (g, y, p) are clipped by the mask box.\n verticalAlign: 'top',\n } as CSSProperties,\n },\n [inner],\n )\n : inner\n }),\n ),\n ])\n },\n})\n","import {\n type ComputedRef,\n type InjectionKey,\n type PropType,\n computed,\n defineComponent,\n inject,\n onBeforeUnmount,\n provide,\n ref,\n watch,\n} from 'vue'\nimport {\n type ReducedMotionMode,\n attachLifecycle,\n getTicker,\n setReducedMotionMode,\n} from '@ansh-ui/core'\nimport { applyTheme, resolveTheme } from '@ansh-ui/tokens'\n\n/**\n * Application-level configuration providers — the Vue counterpart of `@ansh-ui/react`'s\n * `providers.tsx`. `provide`/`inject` replace React context; everything else about the two designs\n * is intentionally identical, because the underlying correctness constraints (no hydration\n * mismatch, no theme flash) don't change with the framework.\n */\n\n// ---------------------------------------------------------------------------\n// MotionConfig\n// ---------------------------------------------------------------------------\n\nexport interface MotionConfigValue {\n reducedMotion: ReducedMotionMode\n /** Global playback rate. `0.5` is slow motion across every animation on the page. */\n timeScale: number\n /** Pin adaptive quality, or `null` to let the frame budget decide. */\n quality: number | null\n}\n\nconst DEFAULT_MOTION_CONFIG: MotionConfigValue = {\n reducedMotion: 'auto',\n timeScale: 1,\n quality: null,\n}\n\nconst MotionConfigKey: InjectionKey<ComputedRef<MotionConfigValue>> = Symbol('ansh-motion-config')\n\n/**\n * Application-level motion configuration.\n *\n * Optional — every component works without it. Mount it once at the root when you need app-wide\n * control:\n *\n * ```vue\n * <MotionConfig :reduced-motion=\"userPrefersCalm ? 'always' : 'auto'\">\n * <App />\n * </MotionConfig>\n * ```\n *\n * `reducedMotion=\"always\"` is genuinely useful in production, as the backing for an in-app \"reduce\n * motion\" setting — many users who want calmer interfaces have never found the OS toggle.\n */\nexport const MotionConfig = defineComponent({\n name: 'AnshMotionConfig',\n props: {\n reducedMotion: { type: String as PropType<ReducedMotionMode>, default: 'auto' },\n timeScale: { type: Number, default: 1 },\n quality: { type: Number as PropType<number | null>, default: null },\n /**\n * Pause every animation while the document is hidden. Default `true`.\n *\n * Leave this on. Animating a background tab burns battery and spins fans for output nobody can\n * see, and it is the most common performance complaint about animation-heavy sites.\n */\n pauseWhenHidden: { type: Boolean, default: true },\n pauseWhenBlurred: { type: Boolean, default: false },\n respectBattery: { type: Boolean, default: true },\n },\n setup(props, { slots }) {\n watch(\n () => props.reducedMotion,\n (mode) => setReducedMotionMode(mode),\n { immediate: true },\n )\n watch(\n () => props.timeScale,\n (scale) => {\n getTicker().timeScale = scale\n },\n { immediate: true },\n )\n watch(\n () => props.quality,\n (quality) => {\n if (quality !== null) getTicker().lockQuality(quality)\n },\n { immediate: true },\n )\n\n let detach: (() => void) | null = null\n watch(\n () => [props.pauseWhenHidden, props.pauseWhenBlurred, props.respectBattery] as const,\n ([pauseWhenHidden, pauseWhenBlurred, respectBattery]) => {\n detach?.()\n detach = attachLifecycle(getTicker(), { pauseWhenHidden, pauseWhenBlurred, respectBattery })\n },\n { immediate: true },\n )\n onBeforeUnmount(() => detach?.())\n\n provide(\n MotionConfigKey,\n computed(() => ({\n reducedMotion: props.reducedMotion,\n timeScale: props.timeScale,\n quality: props.quality,\n })),\n )\n\n return () => slots.default?.()\n },\n})\n\n/** Read the nearest {@link MotionConfig}. Returns sensible defaults with no provider present. */\nexport function useMotionConfig(): ComputedRef<MotionConfigValue> {\n return inject(\n MotionConfigKey,\n computed(() => DEFAULT_MOTION_CONFIG),\n )\n}\n\n// ---------------------------------------------------------------------------\n// ThemeProvider\n// ---------------------------------------------------------------------------\n\nexport type ThemeSetting = 'light' | 'dark' | 'system'\n\nexport interface ThemeContextValue {\n /** What was requested, including `'system'`. */\n theme: ThemeSetting\n /** What is actually rendering. `'system'` is resolved to one or the other. */\n resolved: 'light' | 'dark'\n setTheme: (theme: ThemeSetting) => void\n}\n\nconst DEFAULT_THEME: ThemeContextValue = { theme: 'system', resolved: 'light', setTheme: () => {} }\n\nconst ThemeKey: InjectionKey<ComputedRef<ThemeContextValue>> = Symbol('ansh-theme')\n\n/**\n * Theme control over the `@ansh-ui/tokens` stylesheet.\n *\n * Sets `data-theme` on `<html>`, which the token stylesheet already understands. Two details that\n * are easy to get wrong and are handled here:\n *\n * **`'system'` removes the attribute rather than writing a resolved value.** The token stylesheet\n * guards its `prefers-color-scheme` rule with `:root:not([data-theme])`, so removing the attribute\n * hands control back to the OS — and, importantly, means the theme keeps following the OS if the\n * user changes it while the page is open.\n *\n * **The initial render always reports `'light'`.** Reading `localStorage` during setup would be a\n * hydration mismatch, since the server has no access to it. The stored value is applied `onMounted`.\n * To avoid a flash of the wrong theme, ship the small inline script from {@link themeScript} in your\n * document `<head>` — that is the only way to set the attribute before first paint. `@ansh-ui/nuxt`\n * does this automatically.\n */\nexport const ThemeProvider = defineComponent({\n name: 'AnshThemeProvider',\n props: {\n /** Initial setting. Default `'system'`. */\n defaultTheme: { type: String as PropType<ThemeSetting>, default: 'system' },\n /** Persist the choice under this `localStorage` key. Pass `null` to disable. */\n storageKey: { type: String as PropType<string | null>, default: 'ansh-theme' },\n },\n setup(props, { slots }) {\n const theme = ref<ThemeSetting>(props.defaultTheme)\n const resolved = ref<'light' | 'dark'>('light')\n\n const setTheme = (next: ThemeSetting): void => {\n theme.value = next\n }\n\n // Read the stored preference after mount, never during setup.\n let mediaQuery: MediaQueryList | null = null\n let onMediaChange: (() => void) | null = null\n\n const syncMedia = (): void => {\n mediaQuery?.removeEventListener('change', onMediaChange!)\n mediaQuery = null\n onMediaChange = null\n if (theme.value !== 'system' || typeof matchMedia !== 'function') return\n mediaQuery = matchMedia('(prefers-color-scheme: dark)')\n onMediaChange = () => {\n resolved.value = mediaQuery!.matches ? 'dark' : 'light'\n }\n mediaQuery.addEventListener('change', onMediaChange)\n }\n\n watch(\n theme,\n (next) => {\n applyTheme(next)\n resolved.value = resolveTheme()\n syncMedia()\n if (props.storageKey) {\n try {\n localStorage.setItem(props.storageKey, next)\n } catch {\n // Storage can throw in private browsing or with cookies disabled. A theme preference\n // is not worth breaking the page over.\n }\n }\n },\n { flush: 'post' },\n )\n\n // Runs once, after mount — the `watch` above has already applied `defaultTheme` by then, and\n // this only overrides it if something was actually stored.\n if (typeof document !== 'undefined') {\n queueMicrotask(() => {\n if (!props.storageKey) return\n try {\n const stored = localStorage.getItem(props.storageKey)\n if (stored === 'light' || stored === 'dark' || stored === 'system') theme.value = stored\n } catch {\n // As above.\n }\n })\n // Apply the default immediately too, so there is no gap before the microtask above runs.\n applyTheme(theme.value)\n resolved.value = resolveTheme()\n syncMedia()\n }\n\n onBeforeUnmount(() => mediaQuery?.removeEventListener('change', onMediaChange!))\n\n provide(\n ThemeKey,\n computed(() => ({ theme: theme.value, resolved: resolved.value, setTheme })),\n )\n\n return () => slots.default?.()\n },\n})\n\nexport function useTheme(): ComputedRef<ThemeContextValue> {\n return inject(\n ThemeKey,\n computed(() => DEFAULT_THEME),\n )\n}\n\n/**\n * The blocking script that prevents a theme flash.\n *\n * Inject this in `<head>`, before any stylesheet. It reads the stored preference and sets\n * `data-theme` synchronously, before the browser paints — the only point at which it can be done\n * without a visible flash. Deliberately tiny and dependency-free.\n *\n * `@ansh-ui/nuxt` injects this automatically; a bare Vue app should call it from `index.html`.\n */\nexport function themeScript(storageKey = 'ansh-theme'): string {\n return (\n `(function(){try{var t=localStorage.getItem(${JSON.stringify(storageKey)});` +\n `if(t==='light'||t==='dark'){document.documentElement.setAttribute('data-theme',t)}}` +\n `catch(e){}})()`\n )\n}\n","import {\n Comment,\n type PropType,\n Text,\n type VNode,\n cloneVNode,\n computed,\n defineComponent,\n h,\n onMounted,\n onScopeDispose,\n ref,\n watch,\n} from 'vue'\nimport {\n type AnimationOptions,\n type EasingInput,\n type SpringOptions,\n getTicker,\n prefersReducedMotion,\n springs,\n} from '@ansh-ui/core'\nimport { useAnimate } from '../composables/use-motion'\nimport { useInView } from '../composables/use-observers'\nimport { cx } from '../primitives/utils'\n\n/**\n * Declarative motion — the Vue counterpart of `@ansh-ui/react`'s `Motion`/`AnimatePresence`/\n * `Draggable`.\n *\n * A deliberately **small** subset of what a full motion library does: transform properties and\n * opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation\n * when paired with `AnimatePresence`.\n *\n * That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and\n * variant propagation each need machinery an order of magnitude larger than this file, and a\n * half-implementation of them is worse than none — it works in the demo and fails on the real page.\n * For those, use a dedicated library; for the 90% case of \"fade this in, slide that up, spring the\n * card on hover\", this costs a fraction of the bundle.\n *\n * Values are written straight to the element's `style` from the ticker's write phase, outside Vue's\n * reactivity — the same principle `useMotionStyle` documents in `composables/use-motion.ts`. `Motion`\n * and `Draggable` are built on `useAnimate()` (scope-bound imperative animation, auto-stopping the\n * previous run) and `useInView()` (the `whileInView` trigger) rather than calling the ticker\n * primitives from scratch, so cleanup and scope-disposal are inherited for free.\n */\n\nexport interface MotionValues {\n opacity?: number\n x?: number\n y?: number\n scale?: number\n scaleX?: number\n scaleY?: number\n rotate?: number\n /** Blur radius in px. */\n blur?: number\n}\n\nexport interface MotionTransition {\n /** Seconds. Ignored when `spring` is set. Default `0.4`. */\n duration?: number\n /** Seconds to wait. Default `0`. */\n delay?: number\n easing?: EasingInput\n /** Use a spring instead of a tween. `true` uses the `smooth` preset. */\n spring?: boolean | SpringOptions | keyof typeof springs\n}\n\nconst DEFAULTS: Required<MotionValues> = {\n opacity: 1,\n x: 0,\n y: 0,\n scale: 1,\n scaleX: 1,\n scaleY: 1,\n rotate: 0,\n blur: 0,\n}\n\n/** Compose the values into a transform string plus the properties that aren't transforms. */\nfunction applyValues(node: HTMLElement, values: Required<MotionValues>): void {\n const transform =\n `translate3d(${values.x}px, ${values.y}px, 0)` +\n ` scale(${values.scale * values.scaleX}, ${values.scale * values.scaleY})` +\n ` rotate(${values.rotate}deg)`\n\n node.style.transform = transform\n node.style.opacity = String(values.opacity)\n // Only written when non-zero: an always-present `filter` creates a containing block and a new\n // stacking context, which changes how `position: fixed` descendants resolve.\n node.style.filter = values.blur > 0 ? `blur(${values.blur}px)` : ''\n}\n\nfunction resolve(\n values: MotionValues | undefined,\n base: Required<MotionValues>,\n): Required<MotionValues> {\n return { ...base, ...values }\n}\n\n/** Drop whitespace-only text nodes and `v-if=\"false\"` comment placeholders from a slot's output. */\nfunction normalizeChildren(nodes: VNode[] | undefined): VNode[] {\n return (nodes ?? []).filter((node) => {\n if (node.type === Comment) return false\n if (node.type === Text && typeof node.children === 'string' && node.children.trim() === '') {\n return false\n }\n return true\n })\n}\n\n// --- Motion -----------------------------------------------------------------\n\n/**\n * An animated element.\n *\n * ```vue\n * <Motion :initial=\"{ opacity: 0, y: 24 }\" :animate=\"{ opacity: 1, y: 0 }\" while-in-view>\n * <Card />\n * </Motion>\n * ```\n */\nexport const Motion = defineComponent({\n name: 'AnshMotion',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n /** Starting values. Applied before the first paint. */\n initial: { type: Object as PropType<MotionValues>, default: undefined },\n /** Target values. Changing these animates to the new target. */\n animate: { type: Object as PropType<MotionValues>, default: undefined },\n // Declared so it lands here rather than in `attrs`: `AnimatePresence` reads it off the vnode's\n // props when the child is removed and swaps it into `animate`. Left undeclared, it would reach\n // the DOM as an unknown `exit` attribute.\n exit: { type: Object as PropType<MotionValues>, default: undefined },\n transition: { type: Object as PropType<MotionTransition>, default: undefined },\n whileHover: { type: Object as PropType<MotionValues>, default: undefined },\n whileTap: { type: Object as PropType<MotionValues>, default: undefined },\n /** Animate to `animate` only once scrolled into view. */\n whileInView: { type: Boolean, default: false },\n /** Fraction visible before `whileInView` triggers. Default `0.2`. */\n inViewAmount: { type: Number, default: 0.2 },\n },\n setup(props, { attrs, slots, expose }) {\n const node = ref<HTMLElement | null>(null)\n // Plain closure state, deliberately outside Vue's reactivity — a value driven by the ticker\n // changes up to 60 times a second, and a `ref` here would flush a reactive effect on every one.\n let current = resolve(props.initial, DEFAULTS)\n const start = useAnimate()\n\n expose({\n get element() {\n return node.value\n },\n })\n\n // Applied in `onMounted`, not a plain function call during setup: the DOM node the template\n // `ref` points at only exists once Vue has patched it in, which — for the initial render — is\n // still before the browser's next paint. That ordering is what avoids the element flashing at\n // full opacity for one frame before the \"hidden\" `initial` state ever gets applied.\n //\n // The first run of the `animate` target is kicked off here too, rather than from the `watch`\n // below with `immediate: true`. Vue runs an immediate watcher's callback *synchronously during\n // `setup()`*, regardless of `flush` — `flush: 'post'` only defers a watcher's *subsequent*\n // re-runs, not its immediate one. `node.value` is still null at that point (the element hasn't\n // mounted yet), so `runTo` would silently no-op and the component would never animate to its\n // initial `animate` target. `onMounted` is the actual first point at which `node.value` exists.\n onMounted(() => {\n if (!node.value) return\n applyValues(node.value, current)\n if (inView.value) runTo(resolve(props.animate, DEFAULTS))\n })\n\n const runTo = (next: Required<MotionValues>, options?: MotionTransition): void => {\n const element = node.value\n if (!element) return\n\n const from = { ...current }\n const springOption = options?.spring ?? props.transition?.spring\n\n const animationOptions: AnimationOptions<number> = {\n ...((options?.delay ?? props.transition?.delay) !== undefined\n ? { delay: options?.delay ?? props.transition?.delay ?? 0 }\n : null),\n ...(springOption\n ? {\n spring:\n springOption === true\n ? springs.default\n : typeof springOption === 'string'\n ? springs[springOption]\n : springOption,\n }\n : {\n duration: options?.duration ?? props.transition?.duration ?? 0.4,\n ...((options?.easing ?? props.transition?.easing)\n ? { easing: (options?.easing ?? props.transition?.easing)! }\n : null),\n }),\n onUpdate: (t: number) => {\n // One scalar drives every property, so all of them stay in lockstep. Animating each\n // independently would need one ticker subscription per property and they would drift\n // apart under a spring, which is not time-based.\n const frame = {} as Required<MotionValues>\n for (const key of Object.keys(DEFAULTS) as Array<keyof MotionValues>) {\n frame[key] = from[key] + (next[key] - from[key]) * t\n }\n current = frame\n applyValues(element, frame)\n },\n onComplete: () => {\n current = next\n applyValues(element, next)\n },\n }\n\n // `useAnimate()` stops any in-flight run of its own before starting the next, and again on\n // scope disposal — the two cleanup spots the React version's `controlsRef` handles by hand.\n start(0, 1, animationOptions)\n }\n\n // `whileInView` gating, via the same observer composable `useElementSize`/`useScrollProgress`\n // are built on. Always attached (harmless when `whileInView` is false — the observer simply\n // goes unused) rather than conditionally, since `inViewAmount` and `whileInView` are expected\n // to be set once and not toggled.\n const inViewState = useInView(node, { threshold: props.inViewAmount, once: true })\n const inView = computed(() => !props.whileInView || inViewState.value)\n\n // Animate to the target whenever it changes after mount (or when it scrolls into view). The\n // *first* run is handled explicitly in `onMounted` above, not here — see the comment there.\n // No `immediate: true`: this only needs to react to changes from here on.\n watch(\n [() => JSON.stringify(props.animate ?? null), inView],\n ([, isInView]) => {\n if (!isInView) return\n runTo(resolve(props.animate, DEFAULTS))\n },\n { flush: 'post' },\n )\n\n return () => {\n const { class: attrClass, style: attrStyle, ...restAttrs } = attrs as Record<string, unknown>\n\n const interaction: Record<string, unknown> = {}\n if (props.whileHover) {\n interaction.onMouseenter = () =>\n runTo(resolve({ ...props.animate, ...props.whileHover }, DEFAULTS))\n interaction.onMouseleave = () => runTo(resolve(props.animate, DEFAULTS))\n }\n if (props.whileTap) {\n interaction.onPointerdown = () =>\n runTo(resolve({ ...props.animate, ...props.whileTap }, DEFAULTS), { duration: 0.12 })\n interaction.onPointerup = () =>\n runTo(resolve({ ...props.animate, ...props.whileHover }, DEFAULTS))\n }\n\n return h(\n props.as,\n {\n ref: node,\n class: attrClass,\n // `will-change` is set once, statically. Toggling it per animation causes the compositor\n // to create and destroy a layer on every interaction, which is more expensive than the\n // hint saves.\n style: [{ willChange: 'transform, opacity' }, attrStyle],\n ...interaction,\n ...restAttrs,\n },\n slots.default?.(),\n )\n }\n },\n})\n\n// --- AnimatePresence ----------------------------------------------------------\n\nexport interface AnimatePresenceProps {\n /** Seconds to keep a removed child mounted. Default `0.35`. */\n exitDuration?: number\n}\n\n/**\n * Keep removed children mounted long enough to animate out.\n *\n * Vue unmounts a `v-for`/`v-if` item the instant it disappears from its source array, so an exit\n * animation never gets a chance to run. This holds departing children in its own state, plays their\n * `exit` values (swapped into `animate` on a cloned vnode), then drops them.\n *\n * Children **must** have stable `:key`s — that is how removals are detected at all. Without keys,\n * Vue reuses vnode positions and this sees no removal to animate, same as the React version.\n *\n * Vue's own `<TransitionGroup>` was considered instead of this hand-rolled reconciliation, but it\n * drives *CSS* transition/animation classes on move — it has no hook for \"swap this prop and let the\n * child's own animation system take it from here,\" which is what `exit` needs to compose with\n * `Motion`. Cloning the departing vnode with its `animate` prop swapped to `exit` is the direct\n * Vue-side equivalent of the React version's `cloneElement`.\n */\nexport const AnimatePresence = defineComponent({\n name: 'AnshAnimatePresence',\n props: {\n exitDuration: { type: Number, default: 0.35 },\n },\n setup(props, { slots }) {\n // Reading `slots.default()` inside a `computed` tracks whatever reactive state the parent's\n // slot closure reads (e.g. `v-for=\"item in items\"`), the same way Vue's own `<Transition>` and\n // `<KeepAlive>` track slot content — dependency tracking isn't scoped to \"this component's own\n // state\", it follows whichever reactive effect is active when the read happens.\n const currentChildren = computed(() => normalizeChildren(slots.default?.()))\n const keyOf = (node: VNode): string => String(node.key)\n const keysSignature = computed(() => currentChildren.value.map(keyOf).join('|'))\n\n const rendered = ref<VNode[]>(currentChildren.value)\n const timers = new Map<string, ReturnType<typeof setTimeout>>()\n\n watch(\n [keysSignature, () => props.exitDuration],\n () => {\n const next = currentChildren.value\n const nextKeys = new Set(next.map(keyOf))\n const departing = rendered.value.filter((node) => !nextKeys.has(keyOf(node)))\n\n if (departing.length === 0) {\n // Straight replacement keeps updated props flowing to children that are still present.\n rendered.value = next\n return\n }\n\n // Keep the departing children in place, appended after the current set so they don't\n // reorder the survivors while they animate out.\n rendered.value = [...next, ...departing]\n\n const delay = prefersReducedMotion() ? 0 : props.exitDuration * 1000\n for (const node of departing) {\n const key = keyOf(node)\n const existing = timers.get(key)\n if (existing !== undefined) clearTimeout(existing)\n timers.set(\n key,\n setTimeout(() => {\n rendered.value = rendered.value.filter((entry) => keyOf(entry) !== key)\n timers.delete(key)\n }, delay),\n )\n }\n },\n { flush: 'post' },\n )\n\n onScopeDispose(() => {\n for (const timer of timers.values()) clearTimeout(timer)\n timers.clear()\n })\n\n return () => {\n const nextKeys = new Set(currentChildren.value.map(keyOf))\n\n return rendered.value.map((node) => {\n const leaving = !nextKeys.has(keyOf(node))\n if (!leaving) return node\n\n // A departing child animates to its `exit` values by having them swapped into `animate`.\n const nodeProps = (node.props ?? {}) as {\n exit?: MotionValues\n transition?: MotionTransition\n }\n return cloneVNode(node, {\n animate: nodeProps.exit ?? { opacity: 0, scale: 0.96 },\n transition: { duration: props.exitDuration, ...nodeProps.transition },\n })\n })\n }\n },\n})\n\n// --- Draggable ----------------------------------------------------------------\n\nexport interface DraggableProps {\n /** Constrain movement. */\n axis?: 'x' | 'y' | 'both'\n /** Bounds relative to the starting position, in px. */\n bounds?: { left?: number; right?: number; top?: number; bottom?: number }\n /** Spring back to the origin on release. */\n snapBack?: boolean\n /** Carry momentum after release. Default `true` when not snapping back. */\n momentum?: boolean\n}\n\n/**\n * A draggable surface with inertia.\n *\n * The momentum on release is what separates a drag that feels physical from one that stops dead.\n * Velocity is measured over the last few pointer samples rather than the last two — a single pair\n * of events is dominated by whatever jitter the final sample had, which produces a flick in the\n * wrong direction often enough to be noticeable.\n *\n * `onDragStart`/`onDragEnd` from the React version become `dragStart`/`dragEnd` emits — this\n * package's convention for event-callback props (see `Input`'s `change`/`clear` emits).\n */\nexport const Draggable = defineComponent({\n name: 'AnshDraggable',\n inheritAttrs: false,\n props: {\n axis: { type: String as PropType<'x' | 'y' | 'both'>, default: 'both' },\n bounds: {\n type: Object as PropType<{ left?: number; right?: number; top?: number; bottom?: number }>,\n default: undefined,\n },\n snapBack: { type: Boolean, default: false },\n momentum: { type: Boolean, default: undefined },\n },\n emits: ['dragStart', 'dragEnd'],\n setup(props, { attrs, slots, emit, expose }) {\n const node = ref<HTMLDivElement | null>(null)\n let offset = { x: 0, y: 0 }\n const dragging = ref(false)\n const runAnimation = useAnimate()\n\n let stopMomentum: (() => void) | null = null\n // Not a concern the React version handles — Vue's pervasive scope-disposal discipline makes it\n // cheap to add here: stop an in-flight momentum glide if the component unmounts mid-gesture,\n // rather than leaving a ticker subscription writing to a detached node.\n onScopeDispose(() => stopMomentum?.())\n\n expose({\n get element() {\n return node.value\n },\n get offset() {\n return offset\n },\n })\n\n const clamp = (value: { x: number; y: number }): { x: number; y: number } => ({\n x: Math.min(\n Math.max(value.x, props.bounds?.left ?? -Infinity),\n props.bounds?.right ?? Infinity,\n ),\n y: Math.min(\n Math.max(value.y, props.bounds?.top ?? -Infinity),\n props.bounds?.bottom ?? Infinity,\n ),\n })\n\n const write = (value: { x: number; y: number }): void => {\n if (node.value) node.value.style.transform = `translate3d(${value.x}px, ${value.y}px, 0)`\n }\n\n const onPointerdown = (event: PointerEvent): void => {\n stopMomentum?.()\n stopMomentum = null\n\n ;(event.currentTarget as HTMLElement).setPointerCapture(event.pointerId)\n dragging.value = true\n emit('dragStart')\n\n const useMomentum = props.momentum ?? !props.snapBack\n const start = { x: event.clientX, y: event.clientY }\n const origin = { ...offset }\n // A short ring of recent samples, for a velocity estimate that isn't hostage to the last\n // event.\n const samples: Array<{ x: number; y: number; t: number }> = []\n\n const onMove = (moveEvent: PointerEvent): void => {\n const next = clamp({\n x: props.axis === 'y' ? origin.x : origin.x + (moveEvent.clientX - start.x),\n y: props.axis === 'x' ? origin.y : origin.y + (moveEvent.clientY - start.y),\n })\n offset = next\n write(next)\n\n samples.push({ x: next.x, y: next.y, t: performance.now() })\n if (samples.length > 5) samples.shift()\n }\n\n const onUp = (): void => {\n dragging.value = false\n window.removeEventListener('pointermove', onMove)\n window.removeEventListener('pointerup', onUp)\n window.removeEventListener('pointercancel', onUp)\n\n if (props.snapBack) {\n runAnimation(0, 1, {\n spring: springs.subtle,\n onUpdate: (t: number) => {\n const value = { x: offset.x * (1 - t), y: offset.y * (1 - t) }\n write(value)\n },\n onComplete: () => {\n offset = { x: 0, y: 0 }\n write(offset)\n emit('dragEnd', offset)\n },\n })\n return\n }\n\n if (useMomentum && samples.length >= 2) {\n const first = samples[0]!\n const last = samples[samples.length - 1]!\n const elapsed = Math.max(1, last.t - first.t)\n let velocity = {\n x: ((last.x - first.x) / elapsed) * 1000,\n y: ((last.y - first.y) / elapsed) * 1000,\n }\n\n const decay = 0.95\n const stop = getTicker().add(\n ({ delta }) => {\n // Exponential decay, frame-rate independent: raising the per-second factor to the\n // power of the frame time keeps the glide identical at 60 and 120 Hz.\n const factor = Math.pow(decay, delta * 60)\n velocity = { x: velocity.x * factor, y: velocity.y * factor }\n\n const next = clamp({\n x: offset.x + velocity.x * delta,\n y: offset.y + velocity.y * delta,\n })\n offset = next\n write(next)\n\n if (Math.hypot(velocity.x, velocity.y) < 8) {\n stop()\n stopMomentum = null\n emit('dragEnd', offset)\n }\n },\n { phase: 'write', name: 'Draggable' },\n )\n stopMomentum = stop\n return\n }\n\n emit('dragEnd', offset)\n }\n\n window.addEventListener('pointermove', onMove)\n window.addEventListener('pointerup', onUp)\n window.addEventListener('pointercancel', onUp)\n }\n\n return () => {\n const { class: attrClass, style: attrStyle, ...restAttrs } = attrs as Record<string, unknown>\n\n return h(\n 'div',\n {\n ref: node,\n class: cx(\n 'ansh-draggable',\n dragging.value && 'ansh-draggable--active',\n attrClass as string,\n ),\n style: [\n {\n touchAction: props.axis === 'x' ? 'pan-y' : props.axis === 'y' ? 'pan-x' : 'none',\n },\n attrStyle,\n ],\n onPointerdown,\n ...restAttrs,\n },\n slots.default?.(),\n )\n }\n },\n})\n"]}
@@ -0,0 +1,266 @@
1
+ import { useControllableState } from './chunk-OAQ7MDYX.js';
2
+ import { useId, cx, resolveSlotContent } from './chunk-NJDDNO4C.js';
3
+ import { defineComponent, computed, ref, watch, h } from 'vue';
4
+
5
+ var SidebarItem = defineComponent({
6
+ name: "AnshSidebarItem",
7
+ props: {
8
+ item: { type: Object, required: true },
9
+ activeId: { type: String, default: void 0 },
10
+ collapsed: { type: Boolean, required: true },
11
+ depth: { type: Number, required: true }
12
+ },
13
+ emits: ["navigate"],
14
+ setup(props, { emit }) {
15
+ const hasChildren = computed(() => Boolean(props.item.items && props.item.items.length > 0));
16
+ const containsActive = computed(
17
+ () => hasChildren.value && props.item.items.some((child) => child.id === props.activeId)
18
+ );
19
+ const open = ref(containsActive.value);
20
+ const panelId = useId();
21
+ watch(containsActive, (value) => {
22
+ if (value) open.value = true;
23
+ });
24
+ const isActive = computed(() => props.item.id === props.activeId);
25
+ return () => {
26
+ const item = props.item;
27
+ if (hasChildren.value) {
28
+ return h("li", { class: "ansh-sidebar__item" }, [
29
+ h(
30
+ "button",
31
+ {
32
+ type: "button",
33
+ class: cx(
34
+ "ansh-sidebar__link",
35
+ "ansh-sidebar__link--group",
36
+ containsActive.value && "ansh-sidebar__link--within",
37
+ "ansh-focusable"
38
+ ),
39
+ "aria-expanded": open.value,
40
+ "aria-controls": panelId,
41
+ disabled: item.disabled,
42
+ onClick: () => {
43
+ open.value = !open.value;
44
+ }
45
+ },
46
+ [
47
+ item.icon !== void 0 ? h("span", { class: "ansh-sidebar__icon" }, [resolveSlotContent(item.icon)]) : null,
48
+ h(
49
+ "span",
50
+ { class: cx("ansh-sidebar__label", props.collapsed && "ansh-visually-hidden") },
51
+ item.label
52
+ ),
53
+ h(
54
+ "span",
55
+ {
56
+ class: cx("ansh-sidebar__chevron", open.value && "ansh-sidebar__chevron--open"),
57
+ "aria-hidden": "true"
58
+ },
59
+ [
60
+ h("svg", { viewBox: "0 0 12 12", width: "10", height: "10" }, [
61
+ h("path", {
62
+ d: "M3 4.5L6 7.5l3-3",
63
+ stroke: "currentColor",
64
+ "stroke-width": "1.5",
65
+ fill: "none",
66
+ "stroke-linecap": "round",
67
+ "stroke-linejoin": "round"
68
+ })
69
+ ])
70
+ ]
71
+ )
72
+ ]
73
+ ),
74
+ // `hidden` rather than unmounting: the group's open state is cheap to keep, and
75
+ // unmounting would lose scroll position within a long nested list.
76
+ h(
77
+ "ul",
78
+ {
79
+ class: "ansh-sidebar__list ansh-sidebar__list--nested",
80
+ id: panelId,
81
+ hidden: !open.value
82
+ },
83
+ item.items.map(
84
+ (child) => h(SidebarItem, {
85
+ key: child.id,
86
+ item: child,
87
+ activeId: props.activeId,
88
+ collapsed: props.collapsed,
89
+ depth: props.depth + 1,
90
+ onNavigate: (navigated) => emit("navigate", navigated)
91
+ })
92
+ )
93
+ )
94
+ ]);
95
+ }
96
+ const tag = item.href ? "a" : "button";
97
+ return h("li", { class: "ansh-sidebar__item" }, [
98
+ h(
99
+ tag,
100
+ {
101
+ ...item.href ? { href: item.href } : { type: "button" },
102
+ class: cx(
103
+ "ansh-sidebar__link",
104
+ isActive.value && "ansh-sidebar__link--active",
105
+ "ansh-focusable"
106
+ ),
107
+ // The current page, announced. A colour change alone conveys nothing.
108
+ "aria-current": isActive.value ? "page" : void 0,
109
+ "aria-disabled": item.disabled || void 0,
110
+ // A collapsed rail shows only icons, so the label becomes the accessible name via
111
+ // `title` for pointer users and stays in the DOM for everyone else.
112
+ title: props.collapsed ? item.label : void 0,
113
+ onClick: (event) => {
114
+ if (item.disabled) {
115
+ event.preventDefault();
116
+ return;
117
+ }
118
+ item.onClick?.();
119
+ emit("navigate", item);
120
+ }
121
+ },
122
+ [
123
+ item.icon !== void 0 ? h("span", { class: "ansh-sidebar__icon" }, [resolveSlotContent(item.icon)]) : null,
124
+ h(
125
+ "span",
126
+ { class: cx("ansh-sidebar__label", props.collapsed && "ansh-visually-hidden") },
127
+ item.label
128
+ ),
129
+ item.badge !== void 0 && !props.collapsed ? h("span", { class: "ansh-sidebar__badge" }, [resolveSlotContent(item.badge)]) : null
130
+ ]
131
+ )
132
+ ]);
133
+ };
134
+ }
135
+ });
136
+ var Sidebar = defineComponent({
137
+ name: "AnshSidebar",
138
+ inheritAttrs: false,
139
+ props: {
140
+ sections: { type: Array, required: true },
141
+ /** Id of the active item. */
142
+ activeId: { type: String, default: void 0 },
143
+ /** Collapse to an icon rail. */
144
+ collapsed: { type: Boolean, default: void 0 },
145
+ defaultCollapsed: { type: Boolean, default: false },
146
+ /** Show the collapse toggle. Default `true`. */
147
+ collapsible: { type: Boolean, default: true },
148
+ label: { type: String, default: "Main" }
149
+ },
150
+ emits: ["update:collapsed", "navigate"],
151
+ setup(props, { attrs, emit, slots }) {
152
+ const [isCollapsed, setCollapsed] = useControllableState(
153
+ () => props.collapsed,
154
+ props.defaultCollapsed,
155
+ (next) => emit("update:collapsed", next)
156
+ );
157
+ return () => {
158
+ const { class: attrClass, ...restAttrs } = attrs;
159
+ return h(
160
+ "nav",
161
+ {
162
+ class: cx(
163
+ "ansh-sidebar",
164
+ isCollapsed.value && "ansh-sidebar--collapsed",
165
+ attrClass
166
+ ),
167
+ "aria-label": props.label,
168
+ "data-collapsed": isCollapsed.value || void 0,
169
+ ...restAttrs
170
+ },
171
+ [
172
+ slots.header ? h("div", { class: "ansh-sidebar__header" }, slots.header()) : null,
173
+ h(
174
+ "div",
175
+ { class: "ansh-sidebar__scroll" },
176
+ props.sections.map(
177
+ (section) => h("div", { class: "ansh-sidebar__section", key: section.id }, [
178
+ section.label ? h(
179
+ "h2",
180
+ {
181
+ // Hidden visually when collapsed but kept for assistive technology, so the
182
+ // grouping survives the rail layout.
183
+ class: cx(
184
+ "ansh-sidebar__heading",
185
+ isCollapsed.value && "ansh-visually-hidden"
186
+ )
187
+ },
188
+ section.label
189
+ ) : null,
190
+ h(
191
+ "ul",
192
+ { class: "ansh-sidebar__list" },
193
+ section.items.map(
194
+ (item) => h(SidebarItem, {
195
+ key: item.id,
196
+ item,
197
+ activeId: props.activeId,
198
+ collapsed: isCollapsed.value,
199
+ depth: 0,
200
+ onNavigate: (navigated) => emit("navigate", navigated)
201
+ })
202
+ )
203
+ )
204
+ ])
205
+ )
206
+ ),
207
+ slots.footer ? h("div", { class: "ansh-sidebar__footer" }, slots.footer()) : null,
208
+ props.collapsible ? h(
209
+ "button",
210
+ {
211
+ type: "button",
212
+ class: "ansh-sidebar__toggle ansh-focusable",
213
+ "aria-label": isCollapsed.value ? "Expand sidebar" : "Collapse sidebar",
214
+ "aria-pressed": isCollapsed.value,
215
+ onClick: () => setCollapsed(!isCollapsed.value)
216
+ },
217
+ [
218
+ h(
219
+ "svg",
220
+ { viewBox: "0 0 16 16", width: "14", height: "14", "aria-hidden": "true" },
221
+ [
222
+ h("path", {
223
+ d: isCollapsed.value ? "M6 3.5L10.5 8L6 12.5" : "M10 3.5L5.5 8L10 12.5",
224
+ stroke: "currentColor",
225
+ "stroke-width": "1.6",
226
+ fill: "none",
227
+ "stroke-linecap": "round",
228
+ "stroke-linejoin": "round"
229
+ })
230
+ ]
231
+ )
232
+ ]
233
+ ) : null
234
+ ]
235
+ );
236
+ };
237
+ }
238
+ });
239
+ var AppShell = defineComponent({
240
+ name: "AnshAppShell",
241
+ inheritAttrs: false,
242
+ setup(_props, { attrs, slots }) {
243
+ return () => {
244
+ const { class: attrClass } = attrs;
245
+ const hasSidebar = Boolean(slots.sidebar);
246
+ return h(
247
+ "div",
248
+ { class: cx("ansh-shell", hasSidebar && "ansh-shell--with-sidebar", attrClass) },
249
+ [
250
+ h("a", { href: "#ansh-main", class: "ansh-skip-link" }, "Skip to main content"),
251
+ slots.header ? h("header", { class: "ansh-shell__header" }, slots.header()) : null,
252
+ hasSidebar ? h("aside", { class: "ansh-shell__sidebar" }, slots.sidebar()) : null,
253
+ h(
254
+ "main",
255
+ { class: "ansh-shell__main", id: "ansh-main", tabindex: "-1" },
256
+ slots.default?.()
257
+ )
258
+ ]
259
+ );
260
+ };
261
+ }
262
+ });
263
+
264
+ export { AppShell, Sidebar };
265
+ //# sourceMappingURL=chunk-ZGMXOMCB.js.map
266
+ //# sourceMappingURL=chunk-ZGMXOMCB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/navigation/sidebar.ts"],"names":[],"mappings":";;;;AAyBA,IAAM,cAAc,eAAA,CAAgB;AAAA,EAClC,IAAA,EAAM,iBAAA;AAAA,EACN,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAE,IAAA,EAAM,MAAA,EAA6B,UAAU,IAAA,EAAK;AAAA,IAC1D,QAAA,EAAU,EAAE,IAAA,EAAM,MAAA,EAAQ,SAAS,MAAA,EAAU;AAAA,IAC7C,SAAA,EAAW,EAAE,IAAA,EAAM,OAAA,EAAS,UAAU,IAAA,EAAK;AAAA,IAC3C,KAAA,EAAO,EAAE,IAAA,EAAM,MAAA,EAAQ,UAAU,IAAA;AAAK,GACxC;AAAA,EACA,KAAA,EAAO,CAAC,UAAU,CAAA;AAAA,EAClB,KAAA,CAAM,KAAA,EAAO,EAAE,IAAA,EAAK,EAAG;AACrB,IAAA,MAAM,WAAA,GAAc,QAAA,CAAS,MAAM,OAAA,CAAQ,KAAA,CAAM,IAAA,CAAK,KAAA,IAAS,KAAA,CAAM,IAAA,CAAK,KAAA,CAAM,MAAA,GAAS,CAAC,CAAC,CAAA;AAC3F,IAAA,MAAM,cAAA,GAAiB,QAAA;AAAA,MACrB,MAAM,WAAA,CAAY,KAAA,IAAS,KAAA,CAAM,IAAA,CAAK,KAAA,CAAO,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,EAAA,KAAO,KAAA,CAAM,QAAQ;AAAA,KAC1F;AAGA,IAAA,MAAM,IAAA,GAAO,GAAA,CAAI,cAA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UAAA,GAAa,OAAA,CAAQ,KAAA,CAAM,OAAO,CAAA;AAExC,MAAA,OAAO,CAAA;AAAA,QACL,KAAA;AAAA,QACA,EAAE,KAAA,EAAO,EAAA,CAAG,cAAc,UAAA,IAAc,0BAAA,EAA4B,SAAmB,CAAA,EAAE;AAAA,QACzF;AAAA,UACE,CAAA,CAAE,KAAK,EAAE,IAAA,EAAM,cAAc,KAAA,EAAO,gBAAA,IAAoB,sBAAsB,CAAA;AAAA,UAC9E,KAAA,CAAM,MAAA,GAAS,CAAA,CAAE,QAAA,EAAU,EAAE,KAAA,EAAO,oBAAA,EAAqB,EAAG,KAAA,CAAM,MAAA,EAAQ,CAAA,GAAI,IAAA;AAAA,UAC9E,UAAA,GAAa,CAAA,CAAE,OAAA,EAAS,EAAE,KAAA,EAAO,uBAAsB,EAAG,KAAA,CAAM,OAAA,EAAU,CAAA,GAAI,IAAA;AAAA,UAC9E,CAAA;AAAA,YACE,MAAA;AAAA,YACA,EAAE,KAAA,EAAO,kBAAA,EAAoB,EAAA,EAAI,WAAA,EAAa,UAAU,IAAA,EAAK;AAAA,YAC7D,MAAM,OAAA;AAAU;AAClB;AACF,OACF;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAC","file":"chunk-ZGMXOMCB.js","sourcesContent":["import { type PropType, type VNode, computed, defineComponent, h, ref, watch } from 'vue'\nimport { type SlotContent, cx, resolveSlotContent, useId } from '../../primitives/utils'\nimport { useControllableState } from '../../primitives/use-controllable-state'\n\nexport interface NavItem {\n id: string\n label: string\n href?: string\n icon?: SlotContent\n /** Count or status shown on the right. */\n badge?: SlotContent\n disabled?: boolean\n onClick?: () => void\n /** Nested items, rendered in a collapsible group. */\n items?: readonly NavItem[]\n}\n\nexport interface NavSection {\n id: string\n /** Heading above the group. Omit for an unlabelled block. */\n label?: string\n items: readonly NavItem[]\n}\n\n/** Internal — a single entry (leaf link or expandable group) inside `Sidebar`. Not exported. */\nconst SidebarItem = defineComponent({\n name: 'AnshSidebarItem',\n props: {\n item: { type: Object as PropType<NavItem>, required: true },\n activeId: { type: String, default: undefined },\n collapsed: { type: Boolean, required: true },\n depth: { type: Number, required: true },\n },\n emits: ['navigate'],\n setup(props, { emit }) {\n const hasChildren = computed(() => Boolean(props.item.items && props.item.items.length > 0))\n const containsActive = computed(\n () => hasChildren.value && props.item.items!.some((child) => child.id === props.activeId),\n )\n // Groups start open when they contain the active page — landing on a nested route with the\n // group collapsed leaves the user with no visible indication of where they are.\n const open = ref(containsActive.value)\n const panelId = useId()\n\n watch(containsActive, (value) => {\n if (value) open.value = true\n })\n\n const isActive = computed(() => props.item.id === props.activeId)\n\n return (): VNode => {\n const item = props.item\n\n if (hasChildren.value) {\n return h('li', { class: 'ansh-sidebar__item' }, [\n h(\n 'button',\n {\n type: 'button',\n class: cx(\n 'ansh-sidebar__link',\n 'ansh-sidebar__link--group',\n containsActive.value && 'ansh-sidebar__link--within',\n 'ansh-focusable',\n ),\n 'aria-expanded': open.value,\n 'aria-controls': panelId,\n disabled: item.disabled,\n onClick: () => {\n open.value = !open.value\n },\n },\n [\n item.icon !== undefined\n ? h('span', { class: 'ansh-sidebar__icon' }, [resolveSlotContent(item.icon)])\n : null,\n h(\n 'span',\n { class: cx('ansh-sidebar__label', props.collapsed && 'ansh-visually-hidden') },\n item.label,\n ),\n h(\n 'span',\n {\n class: cx('ansh-sidebar__chevron', open.value && 'ansh-sidebar__chevron--open'),\n 'aria-hidden': 'true',\n },\n [\n h('svg', { viewBox: '0 0 12 12', width: '10', height: '10' }, [\n h('path', {\n d: 'M3 4.5L6 7.5l3-3',\n stroke: 'currentColor',\n 'stroke-width': '1.5',\n fill: 'none',\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round',\n }),\n ]),\n ],\n ),\n ],\n ),\n\n // `hidden` rather than unmounting: the group's open state is cheap to keep, and\n // unmounting would lose scroll position within a long nested list.\n h(\n 'ul',\n {\n class: 'ansh-sidebar__list ansh-sidebar__list--nested',\n id: panelId,\n hidden: !open.value,\n },\n item.items!.map((child) =>\n h(SidebarItem, {\n key: child.id,\n item: child,\n activeId: props.activeId,\n collapsed: props.collapsed,\n depth: props.depth + 1,\n onNavigate: (navigated: NavItem) => emit('navigate', navigated),\n }),\n ),\n ),\n ])\n }\n\n const tag = item.href ? 'a' : 'button'\n\n return h('li', { class: 'ansh-sidebar__item' }, [\n h(\n tag,\n {\n ...(item.href ? { href: item.href } : { type: 'button' as const }),\n class: cx(\n 'ansh-sidebar__link',\n isActive.value && 'ansh-sidebar__link--active',\n 'ansh-focusable',\n ),\n // The current page, announced. A colour change alone conveys nothing.\n 'aria-current': isActive.value ? 'page' : undefined,\n 'aria-disabled': item.disabled || undefined,\n // A collapsed rail shows only icons, so the label becomes the accessible name via\n // `title` for pointer users and stays in the DOM for everyone else.\n title: props.collapsed ? item.label : undefined,\n onClick: (event: MouseEvent) => {\n if (item.disabled) {\n event.preventDefault()\n return\n }\n item.onClick?.()\n emit('navigate', item)\n },\n },\n [\n item.icon !== undefined\n ? h('span', { class: 'ansh-sidebar__icon' }, [resolveSlotContent(item.icon)])\n : null,\n h(\n 'span',\n { class: cx('ansh-sidebar__label', props.collapsed && 'ansh-visually-hidden') },\n item.label,\n ),\n item.badge !== undefined && !props.collapsed\n ? h('span', { class: 'ansh-sidebar__badge' }, [resolveSlotContent(item.badge)])\n : null,\n ],\n ),\n ])\n }\n },\n})\n\n/**\n * The application sidebar — the Vue counterpart of `@ansh-ui/react`'s `Sidebar`.\n *\n * A `<nav>` containing lists of links — the structure a screen reader user navigates by landmark,\n * and the reason this isn't a stack of divs. Nested groups are `<button aria-expanded>` controlling\n * a `<ul>`, so their state is announced.\n *\n * Collapsing to an icon rail keeps the labels in the DOM (visually hidden), rather than removing\n * them. Removing them would leave a rail of unlabelled icons for anyone using assistive technology,\n * which is exactly the population for whom the space saving is irrelevant.\n *\n * `header`/`footer` are React props of arbitrary content in the source; here they are the `#header`\n * and `#footer` slots — passing a whole render tree through a prop is idiomatic React and awkward\n * Vue, the same reasoning `HoverCard`'s `#content` slot documents.\n */\nexport const Sidebar = defineComponent({\n name: 'AnshSidebar',\n inheritAttrs: false,\n props: {\n sections: { type: Array as PropType<readonly NavSection[]>, required: true },\n /** Id of the active item. */\n activeId: { type: String, default: undefined },\n /** Collapse to an icon rail. */\n collapsed: { type: Boolean, default: undefined },\n defaultCollapsed: { type: Boolean, default: false },\n /** Show the collapse toggle. Default `true`. */\n collapsible: { type: Boolean, default: true },\n label: { type: String, default: 'Main' },\n },\n emits: ['update:collapsed', 'navigate'],\n setup(props, { attrs, emit, slots }) {\n const [isCollapsed, setCollapsed] = useControllableState(\n () => props.collapsed,\n props.defaultCollapsed,\n (next) => emit('update:collapsed', next),\n )\n\n return () => {\n const { class: attrClass, ...restAttrs } = attrs as Record<string, unknown>\n\n return h(\n 'nav',\n {\n class: cx(\n 'ansh-sidebar',\n isCollapsed.value && 'ansh-sidebar--collapsed',\n attrClass as string,\n ),\n 'aria-label': props.label,\n 'data-collapsed': isCollapsed.value || undefined,\n ...restAttrs,\n },\n [\n slots.header ? h('div', { class: 'ansh-sidebar__header' }, slots.header()) : null,\n\n h(\n 'div',\n { class: 'ansh-sidebar__scroll' },\n props.sections.map((section) =>\n h('div', { class: 'ansh-sidebar__section', key: section.id }, [\n section.label\n ? h(\n 'h2',\n {\n // Hidden visually when collapsed but kept for assistive technology, so the\n // grouping survives the rail layout.\n class: cx(\n 'ansh-sidebar__heading',\n isCollapsed.value && 'ansh-visually-hidden',\n ),\n },\n section.label,\n )\n : null,\n\n h(\n 'ul',\n { class: 'ansh-sidebar__list' },\n section.items.map((item) =>\n h(SidebarItem, {\n key: item.id,\n item,\n activeId: props.activeId,\n collapsed: isCollapsed.value,\n depth: 0,\n onNavigate: (navigated: NavItem) => emit('navigate', navigated),\n }),\n ),\n ),\n ]),\n ),\n ),\n\n slots.footer ? h('div', { class: 'ansh-sidebar__footer' }, slots.footer()) : null,\n\n props.collapsible\n ? h(\n 'button',\n {\n type: 'button',\n class: 'ansh-sidebar__toggle ansh-focusable',\n 'aria-label': isCollapsed.value ? 'Expand sidebar' : 'Collapse sidebar',\n 'aria-pressed': isCollapsed.value,\n onClick: () => setCollapsed(!isCollapsed.value),\n },\n [\n h(\n 'svg',\n { viewBox: '0 0 16 16', width: '14', height: '14', 'aria-hidden': 'true' },\n [\n h('path', {\n d: isCollapsed.value ? 'M6 3.5L10.5 8L6 12.5' : 'M10 3.5L5.5 8L10 12.5',\n stroke: 'currentColor',\n 'stroke-width': '1.6',\n fill: 'none',\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round',\n }),\n ],\n ),\n ],\n )\n : null,\n ],\n )\n }\n },\n})\n\n/**\n * The header + sidebar + content frame — the Vue counterpart of `@ansh-ui/react`'s `AppShell`.\n *\n * A grid rather than nested flex containers, so the sidebar and header can be `position: sticky`\n * without the content needing compensating margins — the arrangement that breaks the moment the\n * header's height changes.\n *\n * The skip link is the first focusable element on the page. It is the cheapest accessibility win\n * available and it is missing from almost every application shell: without it, a keyboard user\n * traverses the entire navigation on every single page load.\n *\n * `sidebar`/`header` are the `#sidebar`/`#header` slots (see `Sidebar`'s doc comment for why); the\n * main content is the default slot.\n */\nexport const AppShell = defineComponent({\n name: 'AnshAppShell',\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { class: attrClass } = attrs as Record<string, unknown>\n const hasSidebar = Boolean(slots.sidebar)\n\n return h(\n 'div',\n { class: cx('ansh-shell', hasSidebar && 'ansh-shell--with-sidebar', attrClass as string) },\n [\n h('a', { href: '#ansh-main', class: 'ansh-skip-link' }, 'Skip to main content'),\n slots.header ? h('header', { class: 'ansh-shell__header' }, slots.header()) : null,\n hasSidebar ? h('aside', { class: 'ansh-shell__sidebar' }, slots.sidebar!()) : null,\n h(\n 'main',\n { class: 'ansh-shell__main', id: 'ansh-main', tabindex: '-1' },\n slots.default?.(),\n ),\n ],\n )\n }\n },\n})\n"]}
package/dist/data.cjs ADDED
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var chunkJ2LA4GRP_cjs = require('./chunk-J2LA4GRP.cjs');
4
+ require('./chunk-774WBLDR.cjs');
5
+ require('./chunk-6732H4BQ.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Avatar", {
10
+ enumerable: true,
11
+ get: function () { return chunkJ2LA4GRP_cjs.Avatar; }
12
+ });
13
+ Object.defineProperty(exports, "AvatarGroup", {
14
+ enumerable: true,
15
+ get: function () { return chunkJ2LA4GRP_cjs.AvatarGroup; }
16
+ });
17
+ Object.defineProperty(exports, "Badge", {
18
+ enumerable: true,
19
+ get: function () { return chunkJ2LA4GRP_cjs.Badge; }
20
+ });
21
+ Object.defineProperty(exports, "CircularProgress", {
22
+ enumerable: true,
23
+ get: function () { return chunkJ2LA4GRP_cjs.CircularProgress; }
24
+ });
25
+ Object.defineProperty(exports, "CodeBlock", {
26
+ enumerable: true,
27
+ get: function () { return chunkJ2LA4GRP_cjs.CodeBlock; }
28
+ });
29
+ Object.defineProperty(exports, "DataTable", {
30
+ enumerable: true,
31
+ get: function () { return chunkJ2LA4GRP_cjs.DataTable; }
32
+ });
33
+ Object.defineProperty(exports, "DescriptionList", {
34
+ enumerable: true,
35
+ get: function () { return chunkJ2LA4GRP_cjs.DescriptionList; }
36
+ });
37
+ Object.defineProperty(exports, "EmptyState", {
38
+ enumerable: true,
39
+ get: function () { return chunkJ2LA4GRP_cjs.EmptyState; }
40
+ });
41
+ Object.defineProperty(exports, "Kbd", {
42
+ enumerable: true,
43
+ get: function () { return chunkJ2LA4GRP_cjs.Kbd; }
44
+ });
45
+ Object.defineProperty(exports, "Meter", {
46
+ enumerable: true,
47
+ get: function () { return chunkJ2LA4GRP_cjs.Meter; }
48
+ });
49
+ Object.defineProperty(exports, "Pagination", {
50
+ enumerable: true,
51
+ get: function () { return chunkJ2LA4GRP_cjs.Pagination; }
52
+ });
53
+ Object.defineProperty(exports, "Progress", {
54
+ enumerable: true,
55
+ get: function () { return chunkJ2LA4GRP_cjs.Progress; }
56
+ });
57
+ Object.defineProperty(exports, "Stat", {
58
+ enumerable: true,
59
+ get: function () { return chunkJ2LA4GRP_cjs.Stat; }
60
+ });
61
+ Object.defineProperty(exports, "Table", {
62
+ enumerable: true,
63
+ get: function () { return chunkJ2LA4GRP_cjs.Table; }
64
+ });
65
+ Object.defineProperty(exports, "Timeline", {
66
+ enumerable: true,
67
+ get: function () { return chunkJ2LA4GRP_cjs.Timeline; }
68
+ });
69
+ //# sourceMappingURL=data.cjs.map
70
+ //# sourceMappingURL=data.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"data.cjs"}