@wow-two-beta/fe 0.0.29 → 0.0.30

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 (23) hide show
  1. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +1 -1
  2. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +1 -1
  3. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js → MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js} +576 -320
  4. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map +1 -0
  5. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js +29 -0
  6. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js.map +1 -0
  7. package/dist/chunks/{index-Dp6L9sX7.js → index-Clq52PIa.js} +5 -28
  8. package/dist/chunks/index-Clq52PIa.js.map +1 -0
  9. package/dist/foundation/primitives/index.js +5 -4
  10. package/dist/foundation/primitives/index.js.map +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/presentation/forms/InputStyles.d.ts +7 -0
  13. package/dist/presentation/forms/ReadOnlyHint.vue.d.ts +6 -0
  14. package/dist/presentation/forms/UseReadOnlyHint.d.ts +17 -0
  15. package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +2 -0
  16. package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +6 -0
  17. package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +3 -0
  18. package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +6 -0
  19. package/dist/presentation/forms/index.js +1 -1
  20. package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +2 -0
  21. package/package.json +1 -1
  22. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +0 -1
  23. package/dist/chunks/index-Dp6L9sX7.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Dp6L9sX7.js","sources":["../../src/foundation/primitives/visuallyHidden/VisuallyHidden.vue","../../src/foundation/primitives/directionProvider/DirectionProvider.vue","../../src/foundation/primitives/accessibleIcon/AccessibleIcon.ts","../../src/foundation/primitives/collection/Collection.ts","../../src/foundation/primitives/scrollViewport/ScrollViewport.vue","../../src/foundation/primitives/colorModeProvider/ColorModeScript.ts","../../src/foundation/primitives/colorModeProvider/ColorModeProvider.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport type VisuallyHiddenProps = HTMLAttributes;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { cn } from '../../styles/Cn';\n\n/**\n * Renders the slot in a visually hidden span — content removed from the visual\n * layout but still announced to screen readers. Use for accessible labels on\n * icon-only affordances and live-region announcements.\n *\n * `inheritAttrs: false` so a caller's `class` goes through `cn` (tailwind-merge\n * resolves the conflict) instead of being blindly concatenated by Vue's\n * automatic class fallthrough — a caller's `p-2` must be able to beat `p-0`.\n */\ndefineOptions({ name: 'VisuallyHidden', inheritAttrs: false });\n\ndefineSlots<{\n /** The content announced to screen readers but hidden from view. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst classes = computed(() =>\n cn(\n 'absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0',\n 'm-[-1px] [clip:rect(0_0_0_0)] [clip-path:inset(50%)]',\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</script>\n\n<template>\n <span v-bind=\"rest\" :class=\"classes\"><slot /></span>\n</template>\n","<script lang=\"ts\">\nimport type { Direction } from './DirectionContext';\n\nexport interface DirectionProviderProps {\n readonly dir: Direction;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { provideDirection } from './DirectionContext';\n\n/**\n * Renders no element of its own — the slot passes straight through — while providing reading direction to\n * descendants. Components that mirror in RTL (Tabs arrow keys, Slider, Carousel, etc.) read this via\n * `useDirection()`.\n */\ndefineOptions({ name: 'DirectionProvider' });\n\nconst props = defineProps<DirectionProviderProps>();\n\ndefineSlots<{\n /** The subtree that reads the provided reading direction. */\n default(): unknown;\n}>();\n\nprovideDirection(() => props.dir);\n</script>\n\n<template>\n <slot />\n</template>\n","import { Fragment, cloneVNode, defineComponent, h } from 'vue';\nimport { AriaAttribute } from '../../dom/enums/AriaAttribute';\nimport { renderableChildren } from '../slot/Slot';\nimport VisuallyHidden from '../visuallyHidden/VisuallyHidden.vue';\n\nexport interface AccessibleIconProps {\n /** The accessible label for the icon. */\n readonly label: string;\n}\n\n/**\n * Wrap an icon-only element with an accessible label. The icon is hidden\n * from assistive tech and a `VisuallyHidden` sibling provides the label.\n *\n * A render function rather than an SFC: the `aria-hidden` / `focusable` pair\n * has to land on the *consumer's* icon vnode, and only a render function can\n * rebuild someone else's vnode. `cloneVNode`'s prop merge is safe here — these\n * two attributes collide with neither class, style, nor a handler.\n */\nexport const AccessibleIcon = defineComponent({\n name: 'AccessibleIcon',\n props: {\n label: { type: String, required: true },\n },\n setup(props, { slots }) {\n return () => {\n const children = renderableChildren(slots.default?.());\n const target = children[0];\n const icon = target ? cloneVNode(target, { [AriaAttribute.Hidden]: 'true', focusable: 'false' }) : children;\n return h(Fragment, [icon, h(VisuallyHidden, null, { default: () => props.label })]);\n };\n },\n});\n","import { defineComponent, inject, provide, shallowRef, type Component, type InjectionKey } from 'vue';\n\nexport interface CollectionContextValue<T> {\n /** The registered items, in registration order. A live getter — read it, never destructure it. */\n readonly items: ReadonlyArray<T>;\n register: (item: T) => void;\n unregister: (item: T) => void;\n}\n\n/**\n * Factory for a typed children-registry context. Compound components\n * (Menu, Tabs, Listbox) use this so the parent can iterate ordered children\n * without prop-drilling.\n *\n * The registration model is unchanged from React — items call `register()` on\n * mount and `unregister()` on unmount. That already matched what Vue needs:\n * slots are functions, so there is no children array to walk.\n *\n * `Context` becomes `injectionKey` — Vue's `provide`/`inject` are keyed by\n * symbol rather than by a context object.\n */\nexport function createCollection<T>(): {\n Provider: Component;\n useCollection: () => CollectionContextValue<T>;\n injectionKey: InjectionKey<CollectionContextValue<T>>;\n} {\n const injectionKey: InjectionKey<CollectionContextValue<T>> = Symbol('wow-two.collection');\n\n const Provider = defineComponent({\n name: 'CollectionProvider',\n setup(_props, { slots }) {\n const items = shallowRef<ReadonlyArray<T>>([]);\n\n // Replaced wholesale rather than mutated: a `shallowRef` only notifies on\n // identity change, which is also what kept React's `useState` updates cheap.\n const register = (item: T): void => {\n if (!items.value.includes(item)) items.value = [...items.value, item];\n };\n const unregister = (item: T): void => {\n items.value = items.value.filter((existing) => existing !== item);\n };\n\n // A getter rather than `reactive()` — it keeps `T` intact (reactive would\n // deep-unwrap it) while still tracking as a dependency on read.\n const context: CollectionContextValue<T> = {\n get items() {\n return items.value;\n },\n register,\n unregister,\n };\n provide(injectionKey, context);\n\n return () => slots.default?.() ?? null;\n },\n });\n\n function useCollection(): CollectionContextValue<T> {\n const context = inject(injectionKey, null);\n if (!context) {\n throw new Error('useCollection must be used inside its Provider');\n }\n return context;\n }\n\n return { Provider, useCollection, injectionKey };\n}\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport interface ScrollViewportProps extends /* @vue-ignore */ HTMLAttributes {\n /**\n * The fixed viewport height. Number → pixels; string → any CSS length\n * (`'20rem'`, `'50vh'`). Content beyond this scrolls; the box does not grow.\n * Omit to let the container size to its context (still clips + scrolls via `maxHeight`).\n */\n readonly height?: number | string;\n\n /**\n * The height ceiling — grows with content up to this cap without pinning it,\n * then scrolls. Number → pixels; string → any CSS length.\n */\n readonly maxHeight?: number | string;\n\n /**\n * The height/opacity transition flag (a content swap, an expand). Respects\n * `prefers-reduced-motion` — the transition is dropped when the user opts out.\n * @default false\n */\n readonly isAnimated?: boolean;\n /** @deprecated Use `isAnimated`; this alias is removed next release. */\n readonly animate?: boolean;\n\n /**\n * Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track\n * keeps its space, so the layout never shifts.\n * @default false\n */\n readonly hasAutoHideScrollbar?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../styles/Cn';\nimport { useReducedMotion } from '../../device/hooks/UseReducedMotion';\nimport { useScrollActivity } from '../../dom/hooks/UseScrollActivity';\n\n/**\n * Renders the slot inside a headless fixed-height scroll container. A drop-in for\n * inline `h-[…] overflow-y-auto` viewport styling with two stability guarantees:\n *\n * - `scrollbar-gutter: stable` — reserves the scrollbar's track so content\n * doesn't shift horizontally when the bar appears/disappears (an overflow-y\n * toggle that would otherwise reflow the row).\n * - optional height/opacity transition (`isAnimated`) that short-circuits under\n * `prefers-reduced-motion`, so motion-sensitive users get an instant swap.\n *\n * No visual styling beyond layout — border/padding/rounding stay with the\n * consumer. The scrollable node is exposed as `el` so callers can drive\n * `scrollTop` (scroll-to-top on filter, virtualization measurements, etc.) —\n * the Vue stand-in for the original's `forwardRef`.\n */\ndefineOptions({ name: 'ScrollViewport', inheritAttrs: false });\n\nconst props = withDefaults(\n defineProps<{\n height?: number | string;\n maxHeight?: number | string;\n isAnimated?: boolean;\n animate?: boolean;\n hasAutoHideScrollbar?: boolean;\n }>(),\n { isAnimated: undefined, animate: undefined, hasAutoHideScrollbar: false },\n);\n\ndefineSlots<{\n /** The scrollable content inside the viewport. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\nconst reducedMotion = useReducedMotion();\nuseScrollActivity(el, () => props.hasAutoHideScrollbar);\n\nconst transitionsOn = computed(() => (props.isAnimated ?? props.animate ?? false) && !reducedMotion.value);\n\nconst sizeStyle = computed(() =>\n normalizeStyle([\n {\n height: typeof props.height === 'number' ? `${props.height}px` : props.height,\n maxHeight: typeof props.maxHeight === 'number' ? `${props.maxHeight}px` : props.maxHeight,\n scrollbarGutter: 'stable',\n },\n attrs.style,\n ]),\n);\n\nconst classes = computed(() =>\n cn(\n 'overflow-y-auto overflow-x-hidden',\n props.hasAutoHideScrollbar && 'scrollbar-auto-hide',\n transitionsOn.value && 'transition-[height,opacity] duration-200 ease-out',\n attrs.class as string | undefined,\n ),\n);\n\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\" :style=\"sizeStyle\"><slot /></div>\n</template>\n","import type { ColorMode } from './ColorModeContext';\n\n/** The `localStorage` key `ColorModeProvider` persists to by default. */\nexport const ColorModeStorageKey = 'wow-color-mode';\n\n/** Options for `colorModeScript` — pass the same values the app gives `ColorModeProvider`. */\nexport interface ColorModeScriptOptions {\n /** The provider's `storageKey`. Default `ColorModeStorageKey`. */\n readonly storageKey?: string;\n\n /** The provider's `defaultMode`. Default `'system'`. */\n readonly defaultMode?: ColorMode | 'system';\n}\n\n/* JSON is valid JavaScript; escaping `<` keeps a value from closing an inline `<script>` element. */\nfunction literal(value: string): string {\n return JSON.stringify(value).replace(/</g, '\\\\u003c');\n}\n\n/**\n * Returns the source of a pre-paint script that applies the remembered colour mode before the first frame, so a\n * dark app never flashes light. It reads the provider's storage key with the provider's rules: a stored `light` or\n * `dark` wins; a stored `system`, or nothing with a `system` default, follows the OS; otherwise the default mode.\n * It toggles `dark` and sets `color-scheme` on `<html>`, exactly as the provider will on mount.\n *\n * Inline it as a classic `<script>` in `index.html`'s `<head>` (a strict CSP needs its hash), or write it to a static\n * file served from the same origin. Storage failures leave the page to the provider.\n */\nexport function colorModeScript(options: ColorModeScriptOptions = {}): string {\n const key = literal(options.storageKey ?? ColorModeStorageKey);\n const fallback = literal(options.defaultMode ?? 'system');\n return (\n '(function(){try{' +\n `var s=localStorage.getItem(${key}),d=${fallback},m;` +\n \"if(s==='light'||s==='dark')m=s;\" +\n \"else if(s==='system'||d==='system')m=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\" +\n 'else m=d;' +\n \"var r=document.documentElement;r.classList.toggle('dark',m==='dark');r.style.colorScheme=m;\" +\n '}catch(e){}})();'\n );\n}\n","<script lang=\"ts\">\nimport type { InjectionKey } from 'vue';\n\ninterface ColorModeOwner {\n readonly parent: ColorModeOwner | null;\n readonly mode: () => ColorMode;\n}\ninterface RootColorModes {\n readonly owners: ColorModeOwner[];\n readonly dark: boolean;\n readonly colorScheme: string;\n readonly priority: string;\n}\nconst ColorModeOwnerKey: InjectionKey<ColorModeOwner> = Symbol('wow-two.colorModeOwner');\nconst RootOwners = new WeakMap<HTMLElement, RootColorModes>();\n\nfunction isDescendant(owner: ColorModeOwner, ancestor: ColorModeOwner): boolean {\n for (let entry: ColorModeOwner | null = owner; entry; entry = entry.parent) {\n if (entry === ancestor) return true;\n }\n return false;\n}\n\nfunction applyRootMode(root: HTMLElement): void {\n const state = RootOwners.get(root);\n if (!state) return;\n const owner = state.owners.at(-1);\n if (owner) {\n const mode = owner.mode();\n root.classList.toggle('dark', mode === 'dark');\n root.style.setProperty('color-scheme', mode);\n } else {\n root.classList.toggle('dark', state.dark);\n if (state.colorScheme) root.style.setProperty('color-scheme', state.colorScheme, state.priority);\n else root.style.removeProperty('color-scheme');\n RootOwners.delete(root);\n }\n}\n// `ColorMode` is imported as a value by `<script setup>` below; both blocks\n// share one module scope, so re-importing the type here would duplicate it.\nexport interface ColorModeProviderProps {\n /** The mode used when nothing is persisted. `'system'` follows the OS preference. Default `'system'`. */\n readonly defaultMode?: ColorMode | 'system';\n\n /** The `localStorage` key for persistence; pass `null` to disable. Default `'wow-color-mode'`. */\n readonly storageKey?: string | null;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { inject, onMounted, onScopeDispose, provide, shallowRef, watch } from 'vue';\nimport { useMediaQuery } from '../../device';\nimport { ColorMode, ColorModeKey, ColorModeSystemValue, type ColorModeContextValue } from './ColorModeContext';\nimport { ColorModeStorageKey } from './ColorModeScript';\n\n/**\n * Renders no element of its own — the slot passes straight through — while owning the app's light/dark mode:\n * toggles the `dark` class on `<html>` (which flips every semantic token) + sets `color-scheme`, persists the\n * choice, and falls back to the OS preference. Wrap the app once; read via `useColorMode()`. This is the\n * canonical `.dark` mechanism for the design tokens.\n */\ndefineOptions({ name: 'ColorModeProvider' });\n\nconst props = withDefaults(defineProps<ColorModeProviderProps>(), {\n defaultMode: 'system',\n storageKey: ColorModeStorageKey,\n});\n\ndefineSlots<{\n /** The subtree that reads the active color mode. */\n default(): unknown;\n}>();\n\n/** Explicit defaults are shared by SSR and the first client render. */\nconst mode = shallowRef<ColorMode>(props.defaultMode === 'system' ? ColorMode.Light : props.defaultMode);\nlet root: HTMLElement | undefined;\nconst owner: ColorModeOwner = { parent: inject(ColorModeOwnerKey, null), mode: () => mode.value };\nprovide(ColorModeOwnerKey, owner);\nconst followsSystem = shallowRef(false);\nconst prefersDark = useMediaQuery('(prefers-color-scheme: dark)');\n\nonMounted(() => {\n let stored: string | null = null;\n try {\n stored = props.storageKey ? window.localStorage.getItem(props.storageKey) : null;\n } catch {\n // Storage denial must not disable the in-memory theme control.\n }\n // A stored `system` choice follows the OS even when the default names a fixed mode.\n followsSystem.value =\n stored === ColorModeSystemValue ||\n (stored !== ColorMode.Light && stored !== ColorMode.Dark && props.defaultMode === 'system');\n mode.value =\n stored === ColorMode.Light || stored === ColorMode.Dark\n ? stored\n : followsSystem.value\n ? prefersDark.value\n ? ColorMode.Dark\n : ColorMode.Light\n : mode.value;\n root = document.documentElement;\n const state: RootColorModes = RootOwners.get(root) ?? {\n owners: [],\n dark: root.classList.contains('dark'),\n colorScheme: root.style.getPropertyValue('color-scheme'),\n priority: root.style.getPropertyPriority('color-scheme'),\n };\n RootOwners.set(root, state);\n const descendant = state.owners.findIndex((candidate) => isDescendant(candidate, owner));\n if (descendant < 0) state.owners.push(owner);\n else state.owners.splice(descendant, 0, owner);\n applyRootMode(root);\n});\n\nonScopeDispose(() => {\n if (!root) return;\n const state = RootOwners.get(root);\n const index = state?.owners.indexOf(owner) ?? -1;\n if (state && index >= 0) state.owners.splice(index, 1);\n applyRootMode(root);\n root = undefined;\n});\n\nwatch(prefersDark, (dark) => {\n if (followsSystem.value) mode.value = dark ? ColorMode.Dark : ColorMode.Light;\n});\n\nwatch(mode, () => {\n if (root) applyRootMode(root);\n});\n\nfunction setMode(next: ColorMode): void {\n followsSystem.value = false;\n mode.value = next;\n if (!props.storageKey || typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(props.storageKey, next);\n } catch {\n // Storage may be disabled or full; the chosen mode remains active.\n }\n}\n\nfunction followSystem(): void {\n followsSystem.value = true;\n mode.value = prefersDark.value ? ColorMode.Dark : ColorMode.Light;\n if (!props.storageKey || typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(props.storageKey, ColorModeSystemValue);\n } catch {\n // Storage may be disabled or full; following the OS stays active for this session.\n }\n}\n\n// A getter, so consumers read `ctx.mode` as a plain value exactly like the\n// React context object — and tracking still happens on access.\nconst context: ColorModeContextValue = {\n get mode() {\n return mode.value;\n },\n get followsSystem() {\n return followsSystem.value;\n },\n setMode,\n followSystem,\n toggle: () => setMode(mode.value === ColorMode.Dark ? ColorMode.Light : ColorMode.Dark),\n};\n\nprovide(ColorModeKey, context);\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","VisuallyHidden","index"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,QAAQ,SAAA;AAEd,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;;AAIC,aAAAA,UAAA,GAAAC,m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