@wow-two-beta/fe 0.0.41 → 0.0.43
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/README.md +21 -3
- package/dist/auth/BffSession.d.ts +5 -0
- package/dist/auth/BffSession.js +2 -0
- package/dist/auth/BffSession.js.map +1 -1
- package/dist/foundation/net/hooks/UseRunningVersion.d.ts +30 -0
- package/dist/foundation/net/hooks/UseRunningVersion.js +19 -0
- package/dist/foundation/net/hooks/UseRunningVersion.js.map +1 -0
- package/dist/foundation/net/index.d.ts +1 -0
- package/dist/foundation/net/index.js +2 -0
- package/dist/foundation/net/index.js.map +1 -1
- package/dist/foundation/storage/StorageBroker.d.ts +6 -0
- package/dist/foundation/storage/StorageBroker.js +41 -36
- package/dist/foundation/storage/StorageBroker.js.map +1 -1
- package/dist/foundation/storage/index.d.ts +1 -1
- package/dist/foundation/storage/index.js +2 -1
- package/dist/foundation/themes/constants/Authored.js +21 -0
- package/dist/foundation/themes/constants/Authored.js.map +1 -1
- package/dist/index.css +16 -0
- package/dist/index.js +812 -806
- package/dist/index.js.map +1 -1
- package/dist/presentation/display/index.d.ts +1 -0
- package/dist/presentation/display/index.js +6 -4
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/display/versionBadge/VersionBadge.vue.d.ts +27 -0
- package/dist/presentation/display/versionBadge/VersionBadge.vue.js +80 -0
- package/dist/presentation/display/versionBadge/VersionBadge.vue.js.map +1 -0
- package/dist/presentation/display/versionBadge/VersionBadge2.vue.js +5 -0
- package/dist/presentation/display/versionBadge/VersionBadge2.vue.js.map +1 -0
- package/dist/presentation/display/versionBadge/VersionBadgeExtensions.d.ts +9 -0
- package/dist/presentation/display/versionBadge/VersionBadgeExtensions.js +21 -0
- package/dist/presentation/display/versionBadge/VersionBadgeExtensions.js.map +1 -0
- package/dist/presentation/display/versionBadge/index.d.ts +1 -0
- package/dist/presentation/forms/imageEditor/ImageEditor.vue.d.ts +1 -1
- package/dist/presentation/layout/appFrame/AppFrame.vue.d.ts +168 -0
- package/dist/presentation/layout/appFrame/AppFrame.vue.js +408 -0
- package/dist/presentation/layout/appFrame/AppFrame.vue.js.map +1 -0
- package/dist/presentation/layout/appFrame/AppFrame2.vue.js +8 -0
- package/dist/presentation/layout/appFrame/AppFrame2.vue.js.map +1 -0
- package/dist/presentation/layout/appFrame/index.d.ts +1 -0
- package/dist/presentation/layout/index.d.ts +1 -0
- package/dist/presentation/layout/index.js +90 -86
- package/dist/presentation/layout/index.js.map +1 -1
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +7 -4
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.js +20 -5
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.js.map +1 -1
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +2 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.js +15 -8
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.js.map +1 -1
- package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.d.ts +8 -1
- package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.js +38 -19
- package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.js.map +1 -1
- package/dist/themes.css +14 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSwitcherMenu.vue.js","sources":["../../../../src/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { IconAdapter } from '../../../foundation/icons';\nimport type { SurfaceVariant } from '../../../foundation/styles';\nimport type { Breakpoint } from '../../layout/appShell/AppShell.vue';\n\n/** Defines which group of an `AppSwitcherMenu` a destination joins. */\nexport const AppSwitcherKind = {\n /** Refers to a workspace app — a tile that opens in the same tab. */\n App: 'app',\n /** Refers to a public site — a link under the divider that opens in a new tab. */\n Site: 'site',\n} as const;\n\nexport type AppSwitcherKind = (typeof AppSwitcherKind)[keyof typeof AppSwitcherKind];\n\n/** Represents one destination in an `AppSwitcherMenu`. */\nexport interface AppSwitcherItem {\n /** The stable identity; `current` names the open app by it. */\n readonly key: string;\n\n /** The app or site name, already translated. */\n readonly label: string;\n\n /** One line under an app's label naming what it is for. */\n readonly description?: string;\n\n /** The address: an absolute HTTPS URL without credentials, query or fragment, else the menu drops the item. */\n readonly href: string;\n\n /** An app tile's glyph. Default the label's first character. */\n readonly icon?: IconAdapter;\n\n /** The group — `app` tiles or `site` links. */\n readonly kind: AppSwitcherKind;\n}\n\n/** Defines props for the control that names the current app and opens the others. */\nexport interface AppSwitcherMenuProps<T extends AppSwitcherItem = AppSwitcherItem> {\n /** Every destination, in display order; each group keeps this order. */\n readonly items: ReadonlyArray<T>;\n\n /** The key of the open app or site; that entry renders as the current marker. */\n readonly current: string;\n\n /** The app name on the trigger. Default the current item's label, else `title`. */\n readonly label?: string;\n\n /** A second line on the trigger — the organisation or workspace. Hidden below `breakpoint`. */\n readonly subtitle?: string;\n\n /** The open state, controlled. The `v-model:open` binding target. */\n readonly open?: boolean;\n\n /** The initial open state when uncontrolled. Default `false`. */\n readonly defaultOpen?: boolean;\n\n /** From this breakpoint up the menu is a popover; below it, a dialog. Default `md`. */\n readonly breakpoint?: Breakpoint;\n\n /** The menu heading. Default `\"Apps\"`, localized. */\n readonly title?: string;\n\n /** The sites group heading. Default `\"Sites\"`, localized. */\n readonly sitesLabel?: string;\n\n /** The dialog's close button name. Default `\"Close\"`, localized. */\n readonly closeLabel?: string;\n\n /** The screen-reader text after each site link. Default `\"(opens in a new tab)\"`, localized. */\n readonly newTabLabel?: string;\n\n /** The trigger's accessible name; `{app}` becomes the app name. Default `\"{app} — switch app\"`, localized. */\n readonly triggerLabel?: string;\n\n /** The panel's surface recipe — `glass` or `glass-outline` for translucent chrome. Default the overlay's own. */\n readonly variant?: SurfaceVariant;\n\n /** The popover and dialog panel class — the hook for an app's own material. */\n readonly panelClass?: HTMLAttributes['class'];\n}\n\n/* Static per-breakpoint classes, so Tailwind finds every one in the source. */\nconst NarrowHiddenClass: Record<Breakpoint, string> = {\n sm: 'max-sm:hidden',\n md: 'max-md:hidden',\n lg: 'max-lg:hidden',\n xl: 'max-xl:hidden',\n '2xl': 'max-2xl:hidden',\n};\n</script>\n\n<script setup lang=\"ts\" generic=\"T extends AppSwitcherItem\">\nimport { computed, onMounted, useAttrs, useTemplateRef, watch } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ChevronDown, LayoutGrid } from 'lucide-vue-next';\nimport { TailwindBreakpoints, useMediaQuery } from '../../../foundation/device';\nimport { Icon } from '../../../foundation/icons';\nimport { useLocale, useLocaleDefaults } from '../../../foundation/i18n';\nimport { useId } from '../../../foundation/identifiers';\nimport { useControlled } from '../../../foundation/state';\nimport { cn } from '../../../foundation/styles';\nimport Modal from '../../overlays/modal/Modal.vue';\nimport ModalContent from '../../overlays/modal/ModalContent.vue';\nimport OverlayCloseButton from '../../overlays/OverlayCloseButton.vue';\nimport OverlayTitle from '../../overlays/OverlayTitle.vue';\nimport Popover from '../../overlays/popover/Popover.vue';\nimport PopoverContent from '../../overlays/popover/PopoverContent.vue';\nimport PopoverTrigger from '../../overlays/popover/PopoverTrigger.vue';\nimport AppSwitcherMenuPanel from './AppSwitcherMenuPanel.vue';\nimport { AppSwitcherMenuExtensions } from './AppSwitcherMenuExtensions';\n\n/**\n * Renders the app-switcher menu: one trigger naming the current app, which opens the suite's other apps as tiles\n * and its public sites as new-tab links — a popover under the trigger from `breakpoint` up, a dialog below it.\n */\ndefineOptions({ name: 'AppSwitcherMenu', inheritAttrs: false });\n\ndefineSlots<{\n /** The brand mark at the trigger's start. Default a grid glyph on the primary colour. */\n mark?(props: { current: T | undefined }): unknown;\n}>();\n\nconst componentProps = withDefaults(defineProps<AppSwitcherMenuProps<T>>(), {\n label: undefined,\n subtitle: undefined,\n open: undefined,\n defaultOpen: false,\n breakpoint: 'md',\n triggerLabel: undefined,\n variant: undefined,\n panelClass: undefined,\n});\n\nconst props = useLocaleDefaults(componentProps, 'AppSwitcherMenu', {\n title: 'Apps',\n sitesLabel: 'Sites',\n closeLabel: 'Close',\n newTabLabel: '(opens in a new tab)',\n});\n\nconst emit = defineEmits<{\n /** Fires when the menu opens or closes — the `v-model:open` half. */\n 'update:open': [open: boolean];\n\n /** Fires when the reader opens another app or site. The link navigates unless the listener prevents it. */\n select: [item: T, event: MouseEvent];\n}>();\n\nconst attrs = useAttrs();\nconst locale = useLocale();\nconst titleId = useId('app-switcher-title');\nconst trigger = useTemplateRef<InstanceType<typeof PopoverTrigger>>('trigger');\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.open,\n default: () => props.defaultOpen,\n onChange: (value) => {\n emit('update:open', value);\n },\n});\n\nconst isOpen = controlled.value;\n\nfunction setOpen(open: boolean): void {\n controlled.setValue(open);\n}\n\nfunction close(): void {\n controlled.setValue(false);\n}\n\n/** Whether the viewport reaches `breakpoint` — `false` on the server and in the first render. */\nconst isWide = useMediaQuery(() => `(min-width: ${TailwindBreakpoints[props.breakpoint]}px)`);\n\n/* An open menu closes when the viewport crosses the breakpoint, since its surface changes kind. Registered after\n mount, so the first media-query reading never closes a menu opened by `defaultOpen`. */\nonMounted(() => {\n watch(isWide, () => {\n if (isOpen.value) close();\n });\n});\n\nconst currentItem = computed(() => props.items.find((item) => item.key === props.current));\n\n/** The trigger's visible app name. */\nconst appName = computed(() => props.label ?? currentItem.value?.label ?? props.title);\n\nconst triggerName = computed(() =>\n props.triggerLabel === undefined\n ? locale.t('AppSwitcherMenu.triggerLabel', { app: appName.value }, '{app} — switch app')\n : props.triggerLabel.replaceAll('{app}', appName.value),\n);\n\n/** Every destination the menu can show: the current entry as given, the rest only with a safe href. */\nconst destinations = computed(() =>\n props.items.flatMap((item): AppSwitcherItem[] => {\n if (item.key === props.current) return [item];\n const href = AppSwitcherMenuExtensions.toSafeHref(item.href);\n return href === null ? [] : [{ ...item, href }];\n }),\n);\n\nconst apps = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.App));\nconst sites = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.Site));\n\n/** Reports the caller's own item, not the checked copy the panel rendered. */\nfunction select(item: AppSwitcherItem, event: MouseEvent): void {\n const original = props.items.find((entry) => entry.key === item.key);\n if (original) emit('select', original, event);\n}\n\nconst triggerClasses = computed(() =>\n cn(\n 'group/app-switcher inline-flex min-h-11 min-w-0 max-w-full shrink-0 items-center gap-2.5 rounded-xl border',\n 'border-transparent py-1 ps-1 pe-2 text-start text-foreground transition-colors motion-reduce:transition-none',\n 'hover:border-primary/15 hover:bg-primary-soft data-[state=open]:border-primary/15 data-[state=open]:bg-primary-soft',\n 'outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\nconst subtitleClasses = computed(() =>\n cn('block max-w-40 truncate text-xs leading-tight text-muted-foreground', NarrowHiddenClass[props.breakpoint]),\n);\n\nconst popoverClasses = computed(() => cn('w-[min(28rem,calc(100vw-2rem))]', props.panelClass as ClassValue));\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/** The trigger button. */\nconst el = computed(() => trigger.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <Popover :open=\"isOpen && isWide\" placement=\"bottom-start\" @update:open=\"setOpen\">\n <PopoverTrigger ref=\"trigger\" as-child>\n <button\n type=\"button\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"isOpen\"\n :aria-label=\"triggerName\"\n :data-state=\"isOpen ? 'open' : 'closed'\"\n v-bind=\"rest\"\n :class=\"triggerClasses\"\n >\n <span aria-hidden=\"true\" class=\"flex shrink-0\" data-app-switcher-mark>\n <slot name=\"mark\" :current=\"currentItem\">\n <span class=\"grid size-9 place-items-center rounded-lg bg-primary text-primary-foreground\">\n <Icon :icon=\"LayoutGrid\" :size=\"18\" />\n </span>\n </slot>\n </span>\n <span class=\"min-w-0\">\n <span class=\"block truncate text-sm font-semibold leading-tight\">{{ appName }}</span>\n <span v-if=\"props.subtitle\" :class=\"subtitleClasses\" data-app-switcher-subtitle>{{ props.subtitle }}</span>\n </span>\n <Icon\n :icon=\"ChevronDown\"\n :size=\"16\"\n class=\"shrink-0 text-muted-foreground transition-transform duration-200 group-data-[state=open]/app-switcher:rotate-180 motion-reduce:transition-none\"\n data-app-switcher-chevron\n />\n </button>\n </PopoverTrigger>\n <PopoverContent\n v-if=\"isWide\"\n :aria-labelledby=\"titleId\"\n :variant=\"props.variant\"\n radius=\"xl\"\n :class=\"popoverClasses\"\n >\n <h2 :id=\"titleId\" class=\"mb-3 px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground\">\n {{ props.title }}\n </h2>\n <AppSwitcherMenuPanel\n :apps=\"apps\"\n :sites=\"sites\"\n :current=\"props.current\"\n :sites-label=\"props.sitesLabel\"\n :new-tab-label=\"props.newTabLabel\"\n @select=\"select\"\n @close=\"close\"\n />\n </PopoverContent>\n </Popover>\n <Modal v-if=\"!isWide\" :open=\"isOpen\" @update:open=\"setOpen\">\n <ModalContent :variant=\"props.variant\" radius=\"xl\" padding=\"lg\" :class=\"props.panelClass\">\n <div class=\"mb-4 flex shrink-0 items-center justify-between gap-3\">\n <OverlayTitle>{{ props.title }}</OverlayTitle>\n <OverlayCloseButton :aria-label=\"props.closeLabel\" class=\"static -me-2 h-11 w-11 rounded-xl\" />\n </div>\n <AppSwitcherMenuPanel\n :apps=\"apps\"\n :sites=\"sites\"\n :current=\"props.current\"\n :sites-label=\"props.sitesLabel\"\n :new-tab-label=\"props.newTabLabel\"\n @select=\"select\"\n @close=\"close\"\n />\n </ModalContent>\n </Modal>\n</template>\n"],"names":["_createVNode","Popover","_unref","PopoverTrigger","_createElementVNode","_mergeProps","_renderSlot","Icon","_toDisplayString","_createElementBlock","_createBlock","PopoverContent","AppSwitcherMenuPanel","Modal","ModalContent","_normalizeClass","OverlayTitle","_createTextVN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f,eAAaA,MAAA,KAAA,EAAM;AAAA,kBACnB,iBAAeA,MAAA,KAAA,EAAM;AAAA,kBACrB,UAAQ;AAAA,kBACR,SAAO;AAAA,gBAAA;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"AppSwitcherMenu.vue.js","sources":["../../../../src/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { IconAdapter } from '../../../foundation/icons';\nimport type { SurfaceVariant } from '../../../foundation/styles';\nimport type { Breakpoint } from '../../layout/appShell/AppShell.vue';\n\n/** Defines which group of an `AppSwitcherMenu` a destination joins. */\nexport const AppSwitcherKind = {\n /** Refers to a workspace app — a tile that opens in the same tab. */\n App: 'app',\n /** Refers to a public site — a link under the divider that opens in a new tab. */\n Site: 'site',\n} as const;\n\nexport type AppSwitcherKind = (typeof AppSwitcherKind)[keyof typeof AppSwitcherKind];\n\n/** Represents one destination in an `AppSwitcherMenu`. */\nexport interface AppSwitcherItem {\n /** The stable identity; `current` names the open app by it. */\n readonly key: string;\n\n /** The app or site name, already translated. */\n readonly label: string;\n\n /** One line under an app's label naming what it is for. */\n readonly description?: string;\n\n /** The address: an absolute HTTPS URL without credentials, query or fragment, else the menu drops the item. */\n readonly href: string;\n\n /** An app tile's glyph. Default the label's first character. */\n readonly icon?: IconAdapter;\n\n /** The group — `app` tiles or `site` links. */\n readonly kind: AppSwitcherKind;\n}\n\n/** Defines props for the control that names the current app and opens the others. */\nexport interface AppSwitcherMenuProps<T extends AppSwitcherItem = AppSwitcherItem> {\n /** Every destination, in display order; each group keeps this order. */\n readonly items: ReadonlyArray<T>;\n\n /** The key of the open app or site; that entry renders as the current marker. */\n readonly current: string;\n\n /** The app name on the trigger. Default the current item's label, else `title`. */\n readonly label?: string;\n\n /** A second line on the trigger — the organisation or workspace. Hidden below `breakpoint`. */\n readonly subtitle?: string;\n\n /** The compact state — the trigger shows the mark alone, as above an icon rail; its accessible name stays. */\n readonly isCompact?: boolean;\n\n /** The open state, controlled. The `v-model:open` binding target. */\n readonly open?: boolean;\n\n /** The initial open state when uncontrolled. Default `false`. */\n readonly defaultOpen?: boolean;\n\n /** From this breakpoint up the menu is a popover; below it, a dialog. Default `md`. */\n readonly breakpoint?: Breakpoint;\n\n /** The menu heading. Default `\"Apps\"`, localized. */\n readonly title?: string;\n\n /** The sites group heading. Default `\"Sites\"`, localized. */\n readonly sitesLabel?: string;\n\n /** The dialog's close button name. Default `\"Close\"`, localized. */\n readonly closeLabel?: string;\n\n /** The screen-reader text after each site link. Default `\"(opens in a new tab)\"`, localized. */\n readonly newTabLabel?: string;\n\n /** The trigger's accessible name; `{app}` becomes the app name. Default `\"{app} — switch app\"`, localized. */\n readonly triggerLabel?: string;\n\n /** The panel's surface recipe — `glass` or `glass-outline` for translucent chrome. Default the overlay's own. */\n readonly variant?: SurfaceVariant;\n\n /** The popover and dialog panel class — the hook for an app's own material. */\n readonly panelClass?: HTMLAttributes['class'];\n}\n\n/* Static per-breakpoint classes, so Tailwind finds every one in the source. */\nconst NarrowHiddenClass: Record<Breakpoint, string> = {\n sm: 'max-sm:hidden',\n md: 'max-md:hidden',\n lg: 'max-lg:hidden',\n xl: 'max-xl:hidden',\n '2xl': 'max-2xl:hidden',\n};\n</script>\n\n<script setup lang=\"ts\" generic=\"T extends AppSwitcherItem\">\nimport { computed, onMounted, useAttrs, useTemplateRef, watch } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ChevronDown, LayoutGrid } from 'lucide-vue-next';\nimport { TailwindBreakpoints, useMediaQuery } from '../../../foundation/device';\nimport { Icon } from '../../../foundation/icons';\nimport { useLocale, useLocaleDefaults } from '../../../foundation/i18n';\nimport { useId } from '../../../foundation/identifiers';\nimport { useControlled } from '../../../foundation/state';\nimport { cn } from '../../../foundation/styles';\nimport Modal from '../../overlays/modal/Modal.vue';\nimport ModalContent from '../../overlays/modal/ModalContent.vue';\nimport OverlayCloseButton from '../../overlays/OverlayCloseButton.vue';\nimport OverlayTitle from '../../overlays/OverlayTitle.vue';\nimport Popover from '../../overlays/popover/Popover.vue';\nimport PopoverContent from '../../overlays/popover/PopoverContent.vue';\nimport PopoverTrigger from '../../overlays/popover/PopoverTrigger.vue';\nimport AppSwitcherMenuPanel from './AppSwitcherMenuPanel.vue';\nimport { AppSwitcherMenuExtensions } from './AppSwitcherMenuExtensions';\n\n/**\n * Renders the app-switcher menu: one trigger naming the current app, which opens the suite's other apps as tiles\n * and its public sites as new-tab links — a popover under the trigger from `breakpoint` up, a dialog below it.\n */\ndefineOptions({ name: 'AppSwitcherMenu', inheritAttrs: false });\n\ndefineSlots<{\n /** The brand mark at the trigger's start. Default a grid glyph on the primary colour. */\n mark?(props: { current: T | undefined }): unknown;\n}>();\n\nconst componentProps = withDefaults(defineProps<AppSwitcherMenuProps<T>>(), {\n label: undefined,\n subtitle: undefined,\n isCompact: false,\n open: undefined,\n defaultOpen: false,\n breakpoint: 'md',\n triggerLabel: undefined,\n variant: undefined,\n panelClass: undefined,\n});\n\nconst props = useLocaleDefaults(componentProps, 'AppSwitcherMenu', {\n title: 'Apps',\n sitesLabel: 'Sites',\n closeLabel: 'Close',\n newTabLabel: '(opens in a new tab)',\n});\n\nconst emit = defineEmits<{\n /** Fires when the menu opens or closes — the `v-model:open` half. */\n 'update:open': [open: boolean];\n\n /** Fires when the reader opens another app or site. The link navigates unless the listener prevents it. */\n select: [item: T, event: MouseEvent];\n}>();\n\nconst attrs = useAttrs();\nconst locale = useLocale();\nconst titleId = useId('app-switcher-title');\nconst trigger = useTemplateRef<InstanceType<typeof PopoverTrigger>>('trigger');\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.open,\n default: () => props.defaultOpen,\n onChange: (value) => {\n emit('update:open', value);\n },\n});\n\nconst isOpen = controlled.value;\n\nfunction setOpen(open: boolean): void {\n controlled.setValue(open);\n}\n\nfunction close(): void {\n controlled.setValue(false);\n}\n\n/** Whether the viewport reaches `breakpoint` — `false` on the server and in the first render. */\nconst isWide = useMediaQuery(() => `(min-width: ${TailwindBreakpoints[props.breakpoint]}px)`);\n\n/* An open menu closes when the viewport crosses the breakpoint, since its surface changes kind. Registered after\n mount, so the first media-query reading never closes a menu opened by `defaultOpen`. */\nonMounted(() => {\n watch(isWide, () => {\n if (isOpen.value) close();\n });\n});\n\nconst currentItem = computed(() => props.items.find((item) => item.key === props.current));\n\n/** The trigger's visible app name. */\nconst appName = computed(() => props.label ?? currentItem.value?.label ?? props.title);\n\nconst triggerName = computed(() =>\n props.triggerLabel === undefined\n ? locale.t('AppSwitcherMenu.triggerLabel', { app: appName.value }, '{app} — switch app')\n : props.triggerLabel.replaceAll('{app}', appName.value),\n);\n\n/** Every destination the menu can show: the current entry as given, the rest only with a safe href. */\nconst destinations = computed(() =>\n props.items.flatMap((item): AppSwitcherItem[] => {\n if (item.key === props.current) return [item];\n const href = AppSwitcherMenuExtensions.toSafeHref(item.href);\n return href === null ? [] : [{ ...item, href }];\n }),\n);\n\nconst apps = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.App));\nconst sites = computed(() => destinations.value.filter((item) => item.kind === AppSwitcherKind.Site));\n\n/** Reports the caller's own item, not the checked copy the panel rendered. */\nfunction select(item: AppSwitcherItem, event: MouseEvent): void {\n const original = props.items.find((entry) => entry.key === item.key);\n if (original) emit('select', original, event);\n}\n\nconst triggerClasses = computed(() =>\n cn(\n 'group/app-switcher inline-flex min-h-11 min-w-0 max-w-full shrink-0 items-center gap-2.5 rounded-xl border',\n 'border-transparent text-start text-foreground transition-colors motion-reduce:transition-none',\n props.isCompact ? 'p-1' : 'py-1 ps-1 pe-2',\n 'hover:border-primary/15 hover:bg-primary-soft data-[state=open]:border-primary/15 data-[state=open]:bg-primary-soft',\n 'outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\nconst subtitleClasses = computed(() =>\n cn('block max-w-40 truncate text-xs leading-tight text-muted-foreground', NarrowHiddenClass[props.breakpoint]),\n);\n\nconst popoverClasses = computed(() => cn('w-[min(28rem,calc(100vw-2rem))]', props.panelClass as ClassValue));\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/** The trigger button. */\nconst el = computed(() => trigger.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <Popover :open=\"isOpen && isWide\" placement=\"bottom-start\" @update:open=\"setOpen\">\n <PopoverTrigger ref=\"trigger\" as-child>\n <button\n type=\"button\"\n aria-haspopup=\"dialog\"\n :aria-expanded=\"isOpen\"\n :aria-label=\"triggerName\"\n :data-state=\"isOpen ? 'open' : 'closed'\"\n :data-compact=\"props.isCompact ? '' : undefined\"\n v-bind=\"rest\"\n :class=\"triggerClasses\"\n >\n <span aria-hidden=\"true\" class=\"flex shrink-0\" data-app-switcher-mark>\n <slot name=\"mark\" :current=\"currentItem\">\n <span class=\"grid size-9 place-items-center rounded-lg bg-primary text-primary-foreground\">\n <Icon :icon=\"LayoutGrid\" :size=\"18\" />\n </span>\n </slot>\n </span>\n <span v-if=\"!props.isCompact\" class=\"min-w-0\">\n <span class=\"block truncate text-sm font-semibold leading-tight\">{{ appName }}</span>\n <span v-if=\"props.subtitle\" :class=\"subtitleClasses\" data-app-switcher-subtitle>{{ props.subtitle }}</span>\n </span>\n <Icon\n v-if=\"!props.isCompact\"\n :icon=\"ChevronDown\"\n :size=\"16\"\n class=\"shrink-0 text-muted-foreground transition-transform duration-200 group-data-[state=open]/app-switcher:rotate-180 motion-reduce:transition-none\"\n data-app-switcher-chevron\n />\n </button>\n </PopoverTrigger>\n <PopoverContent\n v-if=\"isWide\"\n :aria-labelledby=\"titleId\"\n :variant=\"props.variant\"\n radius=\"xl\"\n :class=\"popoverClasses\"\n >\n <h2 :id=\"titleId\" class=\"mb-3 px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground\">\n {{ props.title }}\n </h2>\n <AppSwitcherMenuPanel\n :apps=\"apps\"\n :sites=\"sites\"\n :current=\"props.current\"\n :sites-label=\"props.sitesLabel\"\n :new-tab-label=\"props.newTabLabel\"\n @select=\"select\"\n @close=\"close\"\n />\n </PopoverContent>\n </Popover>\n <Modal v-if=\"!isWide\" :open=\"isOpen\" @update:open=\"setOpen\">\n <ModalContent :variant=\"props.variant\" radius=\"xl\" padding=\"lg\" :class=\"props.panelClass\">\n <div class=\"mb-4 flex shrink-0 items-center justify-between gap-3\">\n <OverlayTitle>{{ props.title }}</OverlayTitle>\n <OverlayCloseButton :aria-label=\"props.closeLabel\" class=\"static -me-2 h-11 w-11 rounded-xl\" />\n </div>\n <AppSwitcherMenuPanel\n :apps=\"apps\"\n :sites=\"sites\"\n :current=\"props.current\"\n :sites-label=\"props.sitesLabel\"\n :new-tab-label=\"props.newTabLabel\"\n @select=\"select\"\n @close=\"close\"\n />\n </ModalContent>\n </Modal>\n</template>\n"],"names":["_createVNode","Popover","_unref","PopoverTrigger","_createElementVNode","_mergeProps","_renderSlot","Icon","_openBlock","_createElementBlock","_toDisplayString","_createBlock","PopoverContent","AppSwitcherMenuPanel","Modal","ModalContent","_normalizeClass","OverlayTitle","_createTextVNode","OverlayCloseButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,kBAAkB;AAAA;AAAA,EAE7B,KAAK;AAAA;AAAA,EAEL,MAAM;AACR;AA0EA,MAAM,oBAAgD;AAAA,EACpD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAM,iBAAiB;AAYvB,UAAM,QAAQ,kBAAkB,gBAAgB,mBAAmB;AAAA,MACjE,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,aAAa;AAAA,IAAA,CACd;AAED,UAAM,OAAO;AAQb,UAAM,QAAQ,SAAA;AACd,UAAM,SAAS,UAAA;AACf,UAAM,UAA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AA,kBACN,OAAO,MAAA;AAAA,kBACP,SAASX,MAAA,KAAA,EAAM;AAAA,kBACf,eAAaA,MAAA,KAAA,EAAM;AAAA,kBACnB,iBAAeA,MAAA,KAAA,EAAM;AAAA,kBACrB,UAAQ;AAAA,kBACR,SAAO;AAAA,gBAAA;;;;;;;SAIAA,MAAA,MAAA,kBAAdS,YAgBQG,aAAA;AAAA;UAhBe,MAAMZ,MAAA,MAAA;AAAA,UAAS,iBAAa;AAAA,QAAA;2BACjD,MAce;AAAA,YAdfF,YAcee,aAAA;AAAA,cAdA,SAASb,MAAA,KAAA,EAAM;AAAA,cAAS,QAAO;AAAA,cAAK,SAAQ;AAAA,cAAM,OAAKc,eAAEd,MAAA,KAAA,EAAM,UAAU;AAAA,YAAA;+BACtF,MAGM;AAAA,gBAHNE,mBAGM,OAHN,YAGM;AAAA,kBAFJJ,YAA8CiB,aAAA,MAAA;AAAA,qCAAhC,MAAiB;AAAA,sBAAdC,gBAAAR,gBAAAR,MAAA,KAAA,EAAM,KAAK,GAAA,CAAA;AAAA,oBAAA;;;kBAC5BF,YAA+FmB,aAAA;AAAA,oBAA1E,cAAYjB,MAAA,KAAA,EAAM;AAAA,oBAAY,OAAM;AAAA,kBAAA;;gBAE3DF,YAQEa,aAAA;AAAA,kBAPC,MAAM,KAAA;AAAA,kBACN,OAAO,MAAA;AAAA,kBACP,SAASX,MAAA,KAAA,EAAM;AAAA,kBACf,eAAaA,MAAA,KAAA,EAAM;AAAA,kBACnB,iBAAeA,MAAA,KAAA,EAAM;AAAA,kBACrB,UAAQ;AAAA,kBACR,SAAO;AAAA,gBAAA;;;;;;;;;;;"}
|
|
@@ -6,10 +6,17 @@ export interface BreadcrumbItem {
|
|
|
6
6
|
}
|
|
7
7
|
export interface BreadcrumbProps {
|
|
8
8
|
readonly items: ReadonlyArray<BreadcrumbItem>;
|
|
9
|
+
/**
|
|
10
|
+
* Keeps the trail on one line, as in an app bar: items shorten with an ellipsis instead of wrapping, the current
|
|
11
|
+
* page takes the emphasis, and below `md` only the last two items show.
|
|
12
|
+
*/
|
|
13
|
+
readonly isSingleLine?: boolean;
|
|
9
14
|
}
|
|
10
15
|
declare const _default: __VLS_WithSlots<import('vue').DefineComponent<BreadcrumbProps, {
|
|
11
16
|
el: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {
|
|
18
|
+
readonly isSingleLine: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
13
20
|
/** The rich override for an item's `label`. */
|
|
14
21
|
label?(props: {
|
|
15
22
|
item: BreadcrumbItem;
|
|
@@ -1,30 +1,41 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { useLocale } from "../../../foundation/i18n/providers/LocaleContext.js";
|
|
3
3
|
import { UrlExtensions } from "../../../foundation/dom/UrlExtensions.js";
|
|
4
4
|
import { ChevronRight } from "lucide-vue-next";
|
|
5
5
|
import { cn } from "../../../foundation/styles/Cn.js";
|
|
6
6
|
import _sfc_main$1 from "../../../foundation/icons/icon/Icon.vue.js";
|
|
7
7
|
const _hoisted_1 = ["aria-label"];
|
|
8
|
-
const _hoisted_2 =
|
|
9
|
-
const _hoisted_3 = ["
|
|
10
|
-
const _hoisted_4 = ["aria-current"];
|
|
11
|
-
const _hoisted_5 = {
|
|
12
|
-
key: 0,
|
|
13
|
-
"aria-hidden": "true",
|
|
14
|
-
class: "text-subtle-foreground"
|
|
15
|
-
};
|
|
8
|
+
const _hoisted_2 = ["href"];
|
|
9
|
+
const _hoisted_3 = ["aria-current"];
|
|
16
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
11
|
...{ name: "Breadcrumb", inheritAttrs: false },
|
|
18
12
|
__name: "Breadcrumb",
|
|
19
13
|
props: {
|
|
20
|
-
items: {}
|
|
14
|
+
items: {},
|
|
15
|
+
isSingleLine: { type: Boolean, default: false }
|
|
21
16
|
},
|
|
22
17
|
setup(__props, { expose: __expose }) {
|
|
23
18
|
const locale = useLocale();
|
|
24
19
|
const props = __props;
|
|
25
20
|
const attrs = useAttrs();
|
|
26
21
|
const el = useTemplateRef("el");
|
|
27
|
-
const classes = computed(() => cn("text-sm", attrs.class));
|
|
22
|
+
const classes = computed(() => cn("text-sm", props.isSingleLine && "min-w-0", attrs.class));
|
|
23
|
+
const listClasses = computed(
|
|
24
|
+
() => props.isSingleLine ? "flex min-w-0 flex-nowrap items-center gap-1.5" : "flex flex-wrap items-center gap-1.5"
|
|
25
|
+
);
|
|
26
|
+
function itemClasses(index) {
|
|
27
|
+
if (!props.isSingleLine) return void 0;
|
|
28
|
+
const isLast = index === lastIndex.value;
|
|
29
|
+
const isEarly = index < lastIndex.value - 1;
|
|
30
|
+
return cn("min-w-0 truncate", isLast && "font-semibold", isEarly && "max-md:hidden");
|
|
31
|
+
}
|
|
32
|
+
function separatorClasses(index) {
|
|
33
|
+
return cn(
|
|
34
|
+
"text-subtle-foreground",
|
|
35
|
+
props.isSingleLine && "shrink-0",
|
|
36
|
+
props.isSingleLine && index < lastIndex.value - 1 && "max-md:hidden"
|
|
37
|
+
);
|
|
38
|
+
}
|
|
28
39
|
const rest = computed(() => {
|
|
29
40
|
const { class: _class, ...others } = attrs;
|
|
30
41
|
return others;
|
|
@@ -37,12 +48,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
48
|
ref: el,
|
|
38
49
|
"aria-label": unref(locale).t("Breadcrumb.breadcrumb", void 0, "Breadcrumb")
|
|
39
50
|
}, rest.value, { class: classes.value }), [
|
|
40
|
-
createElementVNode("ol",
|
|
51
|
+
createElementVNode("ol", {
|
|
52
|
+
class: normalizeClass(listClasses.value)
|
|
53
|
+
}, [
|
|
41
54
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, i) => {
|
|
42
55
|
return openBlock(), createElementBlock(Fragment, {
|
|
43
56
|
key: item.href ?? item.label
|
|
44
57
|
}, [
|
|
45
|
-
createElementVNode("li",
|
|
58
|
+
createElementVNode("li", {
|
|
59
|
+
class: normalizeClass(itemClasses(i))
|
|
60
|
+
}, [
|
|
46
61
|
item.href && i !== lastIndex.value ? (openBlock(), createElementBlock("a", {
|
|
47
62
|
key: 0,
|
|
48
63
|
href: unref(UrlExtensions).safeNavigation(item.href),
|
|
@@ -54,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
69
|
}, () => [
|
|
55
70
|
createTextVNode(toDisplayString(item.label), 1)
|
|
56
71
|
])
|
|
57
|
-
], 8,
|
|
72
|
+
], 8, _hoisted_2)) : (openBlock(), createElementBlock("span", {
|
|
58
73
|
key: 1,
|
|
59
74
|
"aria-current": i === lastIndex.value ? "page" : void 0,
|
|
60
75
|
class: "text-foreground"
|
|
@@ -65,19 +80,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
80
|
}, () => [
|
|
66
81
|
createTextVNode(toDisplayString(item.label), 1)
|
|
67
82
|
])
|
|
68
|
-
], 8,
|
|
69
|
-
]),
|
|
70
|
-
i !== lastIndex.value ? (openBlock(), createElementBlock("li",
|
|
83
|
+
], 8, _hoisted_3))
|
|
84
|
+
], 2),
|
|
85
|
+
i !== lastIndex.value ? (openBlock(), createElementBlock("li", {
|
|
86
|
+
key: 0,
|
|
87
|
+
"aria-hidden": "true",
|
|
88
|
+
class: normalizeClass(separatorClasses(i))
|
|
89
|
+
}, [
|
|
71
90
|
renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
72
91
|
createVNode(unref(_sfc_main$1), {
|
|
73
92
|
icon: unref(ChevronRight),
|
|
74
93
|
size: 14
|
|
75
94
|
}, null, 8, ["icon"])
|
|
76
95
|
])
|
|
77
|
-
])) : createCommentVNode("", true)
|
|
96
|
+
], 2)) : createCommentVNode("", true)
|
|
78
97
|
], 64);
|
|
79
98
|
}), 128))
|
|
80
|
-
])
|
|
99
|
+
], 2)
|
|
81
100
|
], 16, _hoisted_1);
|
|
82
101
|
};
|
|
83
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.vue.js","sources":["../../../../src/presentation/nav/breadcrumb/Breadcrumb.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface BreadcrumbItem {\n /** The item's label — scalar; an array item carries no rich content. The `#label` slot is the rich override. */\n readonly label: string | number;\n\n /** Make this item a link. Last item is typically rendered as plain text. */\n readonly href?: string;\n}\n\nexport interface BreadcrumbProps {\n readonly items: ReadonlyArray<BreadcrumbItem>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { UrlExtensions } from '../../../foundation/dom';\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { ChevronRight } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\n\nconst locale = useLocale();\n\n/**\n * Renders a linear trail of links and separators marking where the reader stands.\n * The last item is always rendered as `aria-current=\"page\"` and not a link. Use the L5\n * collapsing version when the chain gets long.\n */\ndefineOptions({ name: 'Breadcrumb', inheritAttrs: false });\n\ndefineSlots<{\n /** The rich override for an item's `label`. */\n label?(props: { item: BreadcrumbItem; index: number }): unknown;\n\n /** The custom separator element. React's `separator` prop; defaults to a chevron-right icon. */\n separator?(): unknown;\n}>();\n\nconst props = defineProps<BreadcrumbProps>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() => cn('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\nconst lastIndex = computed(() => props.items.length - 1);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <!-- `aria-label` sits before `v-bind=\"rest\"` so a consumer-supplied one wins,\n the precedence React got from spreading `{...props}` after it. -->\n <nav ref=\"el\" :aria-label=\"locale.t('Breadcrumb.breadcrumb', undefined, 'Breadcrumb')\" v-bind=\"rest\" :class=\"classes\">\n <ol class=\"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.vue.js","sources":["../../../../src/presentation/nav/breadcrumb/Breadcrumb.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface BreadcrumbItem {\n /** The item's label — scalar; an array item carries no rich content. The `#label` slot is the rich override. */\n readonly label: string | number;\n\n /** Make this item a link. Last item is typically rendered as plain text. */\n readonly href?: string;\n}\n\nexport interface BreadcrumbProps {\n readonly items: ReadonlyArray<BreadcrumbItem>;\n\n /**\n * Keeps the trail on one line, as in an app bar: items shorten with an ellipsis instead of wrapping, the current\n * page takes the emphasis, and below `md` only the last two items show.\n */\n readonly isSingleLine?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { UrlExtensions } from '../../../foundation/dom';\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { ChevronRight } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\n\nconst locale = useLocale();\n\n/**\n * Renders a linear trail of links and separators marking where the reader stands.\n * The last item is always rendered as `aria-current=\"page\"` and not a link. Use the L5\n * collapsing version when the chain gets long.\n */\ndefineOptions({ name: 'Breadcrumb', inheritAttrs: false });\n\ndefineSlots<{\n /** The rich override for an item's `label`. */\n label?(props: { item: BreadcrumbItem; index: number }): unknown;\n\n /** The custom separator element. React's `separator` prop; defaults to a chevron-right icon. */\n separator?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<BreadcrumbProps>(), { isSingleLine: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() => cn('text-sm', props.isSingleLine && 'min-w-0', attrs.class as string | undefined));\n\nconst listClasses = computed(() =>\n props.isSingleLine ? 'flex min-w-0 flex-nowrap items-center gap-1.5' : 'flex flex-wrap items-center gap-1.5',\n);\n\n/** An item's place from the end of the trail, separators included: the last item is 1, its separator 2. */\nfunction itemClasses(index: number): string | undefined {\n if (!props.isSingleLine) return undefined;\n const isLast = index === lastIndex.value;\n // Below `md` the trail keeps its last two items; the earlier ones return from `md` up.\n const isEarly = index < lastIndex.value - 1;\n return cn('min-w-0 truncate', isLast && 'font-semibold', isEarly && 'max-md:hidden');\n}\n\nfunction separatorClasses(index: number): string {\n return cn(\n 'text-subtle-foreground',\n props.isSingleLine && 'shrink-0',\n props.isSingleLine && index < lastIndex.value - 1 && 'max-md:hidden',\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\nconst lastIndex = computed(() => props.items.length - 1);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <!-- `aria-label` sits before `v-bind=\"rest\"` so a consumer-supplied one wins,\n the precedence React got from spreading `{...props}` after it. -->\n <nav ref=\"el\" :aria-label=\"locale.t('Breadcrumb.breadcrumb', undefined, 'Breadcrumb')\" v-bind=\"rest\" :class=\"classes\">\n <ol :class=\"listClasses\">\n <template v-for=\"(item, i) in props.items\" :key=\"item.href ?? item.label\">\n <li :class=\"itemClasses(i)\">\n <a\n v-if=\"item.href && i !== lastIndex\"\n :href=\"UrlExtensions.safeNavigation(item.href)\"\n class=\"text-muted-foreground hover:text-foreground hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring rounded-sm\"\n >\n <slot name=\"label\" :item=\"item\" :index=\"i\">{{ item.label }}</slot>\n </a>\n <span v-else :aria-current=\"i === lastIndex ? 'page' : undefined\" class=\"text-foreground\">\n <slot name=\"label\" :item=\"item\" :index=\"i\">{{ item.label }}</slot>\n </span>\n </li>\n <li v-if=\"i !== lastIndex\" aria-hidden=\"true\" :class=\"separatorClasses(i)\">\n <slot name=\"separator\"><Icon :icon=\"ChevronRight\" :size=\"14\" /></slot>\n </li>\n </template>\n </ol>\n </nav>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_createElementVNode","_Fragment","_normalizeClass","_renderSlot","_createTextVNode","_toDisplayString","_createVNode","Icon"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,UAAM,SAAS,UAAA;AAiBf,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UAAM,UAAU,SAAS,MAAM,GAAG,WAAW,MAAM,gBAAgB,WAAW,MAAM,KAA2B,CAAC;AAEhH,UAAM,cAAc;AAAA,MAAS,MAC3B,MAAM,eAAe,kDAAkD;AAAA,IAAA;AAIzE,aAAS,YAAY,OAAmC;AACtD,UAAI,CAAC,MAAM,aAAc,QAAO;AAChC,YAAM,SAAS,UAAU,UAAU;AAEnC,YAAM,UAAU,QAAQ,UAAU,QAAQ;AAC1C,aAAO,GAAG,oBAAoB,UAAU,iBAAiB,WAAW,eAAe;AAAA,IACrF;AAEA,aAAS,iBAAiB,OAAuB;AAC/C,aAAO;AAAA,QACL;AAAA,QACA,MAAM,gBAAgB;AAAA,QACtB,MAAM,gBAAgB,QAAQ,UAAU,QAAQ,KAAK;AAAA,MAAA;AAAA,IAEzD;AAGA,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;AAED,UAAM,YAAY,SAAS,MAAM,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sE,8BAAtE,MAAsE;AAAA,kBAA/CG,YAAwCP,MAAAQ,WAAA,GAAA;AAAA,oBAAjC,MAAMR,MAAA,YAAA;AAAA,oBAAe,MAAM;AAAA,kBAAA;;;;;;;;;;"}
|
package/dist/themes.css
CHANGED
|
@@ -43,6 +43,13 @@
|
|
|
43
43
|
--color-warning-soft: #faf0d9;
|
|
44
44
|
--color-warning-soft-foreground: #704900;
|
|
45
45
|
--theme-ambient: radial-gradient(ellipse 70rem 42rem at 0% 0%, #80aa9210, transparent 72%), radial-gradient(ellipse 58rem 42rem at 100% 10%, #d6b6750f, transparent 74%);
|
|
46
|
+
--glass-fill: #ffffffdb;
|
|
47
|
+
--glass-side-fill: transparent;
|
|
48
|
+
--glass-blur: 16px;
|
|
49
|
+
--glass-edge: #24433224;
|
|
50
|
+
--glass-highlight: #ffffffd9;
|
|
51
|
+
--glass-shadow: 0 10px 30px #203b2910, inset 0 1px 0 var(--glass-highlight);
|
|
52
|
+
--glass-bottom-shadow: 0 -10px 30px #203b2910, inset 0 1px 0 var(--glass-highlight);
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
.dark.theme-platform, .dark .theme-platform {
|
|
@@ -87,6 +94,13 @@
|
|
|
87
94
|
--color-warning-soft: #3e3320;
|
|
88
95
|
--color-warning-soft-foreground: #f4d6a0;
|
|
89
96
|
--theme-ambient: radial-gradient(ellipse 70rem 42rem at 0% 0%, #3d7b6229, transparent 72%), radial-gradient(ellipse 58rem 42rem at 100% 10%, #aa854d1a, transparent 74%);
|
|
97
|
+
--glass-fill: #1b2420e6;
|
|
98
|
+
--glass-side-fill: transparent;
|
|
99
|
+
--glass-blur: 16px;
|
|
100
|
+
--glass-edge: #c1dfcb26;
|
|
101
|
+
--glass-highlight: #d5ead91a;
|
|
102
|
+
--glass-shadow: 0 12px 32px #00000024, inset 0 1px 0 var(--glass-highlight);
|
|
103
|
+
--glass-bottom-shadow: 0 -12px 32px #00000024, inset 0 1px 0 var(--glass-highlight);
|
|
90
104
|
}
|
|
91
105
|
|
|
92
106
|
.theme-smart-qr {
|
package/package.json
CHANGED