@plexui/vue 0.42.0 → 0.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Icon/index.js +1 -0
- package/dist/es/components/Icon/index.js.map +1 -1
- package/dist/es/components/Icon/svg/Array.js +4 -4
- package/dist/es/components/Icon/svg/Array.js.map +1 -1
- package/dist/es/components/Icon/svg/Boolean.js +4 -4
- package/dist/es/components/Icon/svg/Boolean.js.map +1 -1
- package/dist/es/components/Icon/svg/Clipboard.js +4 -4
- package/dist/es/components/Icon/svg/Clipboard.js.map +1 -1
- package/dist/es/components/Icon/svg/Comment.js +4 -4
- package/dist/es/components/Icon/svg/Comment.js.map +1 -1
- package/dist/es/components/Icon/svg/Error.js +4 -4
- package/dist/es/components/Icon/svg/Error.js.map +1 -1
- package/dist/es/components/Icon/svg/Function.js +4 -4
- package/dist/es/components/Icon/svg/Function.js.map +1 -1
- package/dist/es/components/Icon/svg/LayoutGrid.js +13 -0
- package/dist/es/components/Icon/svg/LayoutGrid.js.map +1 -0
- package/dist/es/components/Icon/svg/Number.js +4 -4
- package/dist/es/components/Icon/svg/Number.js.map +1 -1
- package/dist/es/components/Icon/svg/Object.js +4 -4
- package/dist/es/components/Icon/svg/Object.js.map +1 -1
- package/dist/es/components/Icon/svg/Report.js +4 -4
- package/dist/es/components/Icon/svg/Report.js.map +1 -1
- package/dist/es/components/Icon/svg/Storage.js +4 -4
- package/dist/es/components/Icon/svg/Storage.js.map +1 -1
- package/dist/es/components/Icon/svg/String.js +4 -4
- package/dist/es/components/Icon/svg/String.js.map +1 -1
- package/dist/es/components/Icon/svg/Text.js +4 -4
- package/dist/es/components/Icon/svg/Text.js.map +1 -1
- package/dist/es/components/Page/Page.js +1 -1
- package/dist/es/components/Page/Page.js.map +1 -1
- package/dist/es/components/Sidebar/Sidebar.js +8 -1
- package/dist/es/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/es/components/Sidebar/index.js +1 -1
- package/dist/es/components/Sidebar/index.js.map +1 -1
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/svg/Array.d.ts +2 -2
- package/dist/types/components/Icon/svg/Boolean.d.ts +2 -2
- package/dist/types/components/Icon/svg/Clipboard.d.ts +2 -2
- package/dist/types/components/Icon/svg/Comment.d.ts +2 -2
- package/dist/types/components/Icon/svg/Error.d.ts +2 -2
- package/dist/types/components/Icon/svg/Function.d.ts +2 -2
- package/dist/types/components/Icon/svg/LayoutGrid.d.ts +3 -0
- package/dist/types/components/Icon/svg/Number.d.ts +2 -2
- package/dist/types/components/Icon/svg/Object.d.ts +2 -2
- package/dist/types/components/Icon/svg/Report.d.ts +2 -2
- package/dist/types/components/Icon/svg/Storage.d.ts +2 -2
- package/dist/types/components/Icon/svg/String.d.ts +2 -2
- package/dist/types/components/Icon/svg/Text.d.ts +2 -2
- package/dist/types/components/Page/Page.d.ts +2 -2
- package/dist/types/components/Sidebar/Sidebar.d.ts +20 -0
- package/dist/types/components/Sidebar/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/Sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,CAAC,EACD,MAAM,EACN,eAAe,EACf,SAAS,EACT,WAAW,EACX,OAAO,EACP,GAAG,EACH,IAAI,EACJ,KAAK,GAYN,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,IAAI,UAAU,EAAE,OAAO,IAAI,WAAW,EAAE,iBAAiB,EAAE,CAAC,EAAE,MAAM,kBAAkB,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AAc,CAAC,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC;SAC3D,CAAC,CAAA;QAEF,OAAO,GAAG,EAAE;YACV,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;YAC7C,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;gBAClC,CAAC,CACC,KAAK,EACL,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,EAClD,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAC5E;aACF,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CACF,CAA4B,CAAA;AAQ7B,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAA0B,oBAAoB,EAAE,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA","sourcesContent":["import {\n computed,\n defineComponent,\n Fragment,\n h,\n inject,\n onBeforeUnmount,\n onMounted,\n onUnmounted,\n provide,\n ref,\n Text,\n watch,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type DefineComponent,\n type HTMLAttributes,\n type InjectionKey,\n type LiHTMLAttributes,\n type PropType,\n type Ref,\n type Slots,\n type VNode,\n type VNodeArrayChildren,\n} from \"vue\"\nimport {\n attachDrawerSwipe,\n closeOnUnhandledEscape,\n drawerInitialFocus,\n returnDrawerFocus,\n loopDrawerFocus,\n} from \"../../lib/phoneDrawer.js\"\nimport { Button } from \"../Button/index.js\"\nimport { ChevronRightMd, Disclosure, Search as SearchIcon, Sidebar as SidebarIcon, SidebarMenuMobile, X } from \"../Icon/index.js\"\nimport { Input, type InputProps } from \"../Input/index.js\"\nimport { Tooltip } from \"../Tooltip/index.js\"\nimport { composeEventHandlers, firstElementChild, flattenSlot, mergeSlotProps } from \"../Tooltip/slot.js\"\nimport s from \"@plexui/styles/components/Sidebar/Sidebar.module.css\"\nimport {\n SidebarProvider,\n useSidebar,\n type SidebarCollapsible,\n type SidebarSide,\n type SidebarProviderVariant,\n type SidebarVariant,\n} from \"./useSidebarContext.js\"\n\n// Vue port of packages/ui/src/components/Sidebar/Sidebar.tsx. Exports are\n// flat, as in React's index. Every part renders its React element with the\n// caller's attributes applied after its own (React spreads `...props` last),\n// so a caller's attribute or listener replaces the part's own. `class` is\n// merged. An `@click` on SidebarTrigger or SidebarMobileMenuButton runs before\n// the toggle and cancels it with `preventDefault()`, as `onClick` does in\n// React. `data-toggle` (injected by MDX) is dropped, as React's `cleanProps`\n// does.\n// - `asChild` (SidebarGroupLabel, SidebarMenuButton, SidebarMenuSubButton)\n// merges into the first element of the default slot the way Radix's Slot\n// does. SidebarMenuButton puts its inner `<span>` inside that element,\n// around the element's own content, as React clones it; with no single\n// element child it merges into the inner `<span>` instead.\n// - ReactNode props are slots: SidebarMenuButton `tooltip` (prop or\n// `#tooltip` slot), SidebarTrigger's icon (default slot), SidebarInput's\n// `startAdornment` (slot, Search icon by default).\n// - Parts whose React children are fixed (SidebarMenuChevron,\n// SidebarMenuSkeleton, SidebarMobileMenuButton) ignore the default slot.\n\n// Re-export provider and composable\nexport { SidebarProvider, useSidebar }\nexport type { SidebarCollapsible, SidebarProviderVariant, SidebarSide, SidebarVariant }\n\ntype Attrs = Record<string, unknown>\n\n// Filter out attributes that shouldn't reach the DOM (e.g. injected by MDX)\nconst cleanAttrs = (attrs: Attrs) => {\n const { \"data-toggle\": _, class: className, ...rest } = attrs\n return { className, rest }\n}\n\n// An explicit type keeps the published declaration on Vue's `DefineComponent`\n// alias; an inferred one is expanded there and fails consumers' type checks\n// (`GlobalComponents` against `Record<string, Component>`, TS2344).\ntype Part<A> = DefineComponent & { new (): { $props: A } }\n\n/** A part that renders one element with its class and the caller's attributes. */\nconst part = <A>(name: string, tag: string, className: string | undefined): Part<A> => {\n const component = defineComponent({\n name,\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className: userClass, rest } = cleanAttrs(attrs)\n return h(tag, { ...rest, class: [className, userClass] }, slots.default?.())\n }\n },\n })\n return component as unknown as Part<A>\n}\n\n// =============================================\n// Sidebar Root\n// =============================================\n\nconst SidebarComponent = defineComponent({\n name: \"Sidebar\",\n inheritAttrs: false,\n props: {\n /** The side the sidebar is on. @default \"left\" */\n side: { type: String as PropType<SidebarSide>, default: \"left\" },\n /** The visual variant of the sidebar. @default \"sidebar\" */\n variant: { type: String as PropType<SidebarVariant>, default: \"sidebar\" },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n\n return () => {\n // Skip rendering sidebar on mobile for offcanvas mode\n if (sidebar.isMobile && sidebar.collapsible === \"offcanvas\") {\n return null\n }\n\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"aside\",\n { \"data-side\": props.side, \"data-variant\": props.variant, \"class\": [s.Sidebar, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarProps = InstanceType<typeof SidebarComponent>[\"$props\"] & HTMLAttributes\n\n/** The sidebar container, an `<aside>`. Renders nothing on mobile in offcanvas mode. */\nexport const Sidebar = SidebarComponent as typeof SidebarComponent & { new (): { $props: SidebarProps } }\n\n// =============================================\n// Sidebar Sections\n// =============================================\n\nexport type SidebarHeaderProps = HTMLAttributes\n\n/** Sticky top area of the sidebar. */\nexport const SidebarHeader = part<SidebarHeaderProps>(\"SidebarHeader\", \"div\", s.Header)\n\nexport type SidebarContentProps = HTMLAttributes\n\n/**\n * Scrollable content area. Sets `data-content-scrollable` on the sidebar\n * while its content overflows.\n */\nexport const SidebarContent = defineComponent({\n name: \"SidebarContent\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const contentEl = ref<HTMLDivElement | null>(null)\n let observer: ResizeObserver | undefined\n\n onMounted(() => {\n const el = contentEl.value\n if (!el) return\n const sidebar = el.parentElement\n if (!sidebar) return\n\n const update = () => {\n const hasOverflow = el.scrollHeight > el.clientHeight\n sidebar.setAttribute(\"data-content-scrollable\", hasOverflow ? \"true\" : \"false\")\n }\n update()\n observer = new ResizeObserver(update)\n observer.observe(el)\n })\n onBeforeUnmount(() => observer?.disconnect())\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { ref: contentEl, class: [s.Content, className], ...rest }, slots.default?.())\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarContentProps>>\n\nexport type SidebarFooterProps = HTMLAttributes\n\n/** Sticky bottom area of the sidebar, with a separator line on top. */\nexport const SidebarFooter = defineComponent({\n name: \"SidebarFooter\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { class: [s.Footer, className], ...rest }, [\n h(\"div\", { class: s.FooterSeparator }),\n slots.default?.(),\n ])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarFooterProps>>\n\nexport type SidebarRailProps = HTMLAttributes\n\nexport const SidebarRail = part<SidebarRailProps>(\"SidebarRail\", \"div\", s.Rail)\n\n// =============================================\n// Groups\n// =============================================\n\nconst SidebarGroupComponent = defineComponent({\n name: \"SidebarGroup\",\n inheritAttrs: false,\n props: {\n /** Whether the group is open initially. A closed group hides its `SidebarGroupContent`. @default true */\n defaultOpen: { type: Boolean, default: true },\n /** Controlled open state. The group has no toggle of its own: change `open` from your own control. */\n open: { type: Boolean, default: undefined },\n },\n setup(props, { attrs, slots }) {\n // The initial value only, like an uncontrolled input's defaultValue\n const internalOpen = ref(props.defaultOpen)\n\n return () => {\n const open = props.open ?? internalOpen.value\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"div\",\n { \"data-state\": open ? \"open\" : \"closed\", \"class\": [s.Group, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarGroupProps = InstanceType<typeof SidebarGroupComponent>[\"$props\"] & HTMLAttributes\n\n/** Section within the content. `data-state` follows `open` / `defaultOpen`. */\nexport const SidebarGroup = SidebarGroupComponent as typeof SidebarGroupComponent & {\n new (): { $props: SidebarGroupProps }\n}\n\n/** Radix Slot: the first element of the slot, with `slotProps` merged in. */\nconst renderAsChild = (children: VNodeArrayChildren | undefined, slotProps: Attrs) => {\n const child = firstElementChild(children)\n return child ? mergeSlotProps(child, slotProps) : null\n}\n\n/**\n * React's `cloneElement(child, undefined, wrap(child.props.children))`: the\n * same element (key and ref kept) with its content, or its default slot for a\n * component such as RouterLink, passed through `wrap`.\n */\nconst wrapChildContent = (child: VNode, wrap: (content: VNodeArrayChildren | undefined) => VNode): VNode => {\n const content = child.children\n let children: VNodeArrayChildren | Slots\n if (content && typeof content === \"object\" && !Array.isArray(content)) {\n // Drop the compiled-slots flag so the new default slot is always used\n const { _: _compiled, ...slotFns } = content as Slots & { _?: unknown }\n children = { ...slotFns, default: () => [wrap(slotFns.default?.())] }\n } else {\n children = [wrap(typeof content === \"string\" ? [content] : (content ?? undefined))]\n }\n return h(child.type as string, { ...child.props, key: child.key ?? undefined, ref: child.ref as never }, children as never)\n}\n\nconst SidebarGroupLabelComponent = defineComponent({\n name: \"SidebarGroupLabel\",\n inheritAttrs: false,\n props: {\n /** Merges into the slot's first element instead of rendering a `<span>`. @default false */\n asChild: { type: Boolean, default: false },\n /**\n * Size variant for the label.\n * - \"sm\": Compact style for dashboard/settings sidebars\n * - \"lg\": Documentation style with larger text and more spacing\n * @default \"lg\"\n */\n size: { type: String as PropType<\"sm\" | \"lg\">, default: \"lg\" },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const ownProps = { \"data-size\": props.size, \"class\": [s.GroupLabel, className], ...rest }\n return props.asChild ? renderAsChild(slots.default?.(), ownProps) : h(\"span\", ownProps, slots.default?.())\n }\n },\n})\n\nexport type SidebarGroupLabelProps = InstanceType<typeof SidebarGroupLabelComponent>[\"$props\"] & HTMLAttributes\n\n/** Section label within a SidebarGroup. */\nexport const SidebarGroupLabel = SidebarGroupLabelComponent as typeof SidebarGroupLabelComponent & {\n new (): { $props: SidebarGroupLabelProps }\n}\n\nexport type SidebarGroupActionProps = HTMLAttributes\n\nexport const SidebarGroupAction = part<SidebarGroupActionProps>(\"SidebarGroupAction\", \"div\", s.GroupAction)\n\nexport type SidebarGroupContentProps = HTMLAttributes\n\nexport const SidebarGroupContent = part<SidebarGroupContentProps>(\"SidebarGroupContent\", \"div\", s.GroupContent)\n\n// =============================================\n// Menu\n// =============================================\n\nexport type SidebarMenuProps = HTMLAttributes\n\n/** Navigation menu, a `<ul>`. */\nexport const SidebarMenu = part<SidebarMenuProps>(\"SidebarMenu\", \"ul\", s.Menu)\n\nconst SidebarMenuItemComponent = defineComponent({\n name: \"SidebarMenuItem\",\n inheritAttrs: false,\n props: {\n /** Marks the item as expanded (`data-expanded`), for chevrons and sub menus. */\n expanded: { type: Boolean, default: undefined },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"li\",\n { \"data-expanded\": props.expanded ? \"true\" : undefined, \"class\": [s.MenuItem, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarMenuItemProps = InstanceType<typeof SidebarMenuItemComponent>[\"$props\"] & LiHTMLAttributes\n\n/** Menu item, an `<li>`. */\nexport const SidebarMenuItem = SidebarMenuItemComponent as typeof SidebarMenuItemComponent & {\n new (): { $props: SidebarMenuItemProps }\n}\n\n// =============================================\n// Menu Button\n// =============================================\n\n// Shared by every row of the rail: moving to the next one shows its label at once.\nlet railLeftAt = 0\n\n// Rows inside the mobile drawer end with a disclosure chevron (see the drawer list in the styles), unless the drawer\n// leaves it out (`:disclosure=\"false\"`).\nconst sidebarDrawerKey: InjectionKey<Ref<boolean>> = Symbol(\"SidebarDrawer\")\nconst notInDrawer = computed(() => false)\n\n/** The chevron of a drawer row that leads to another page. */\nconst menuDisclosure = () => h(\"span\", { \"class\": s.MenuDisclosure, \"aria-hidden\": \"true\" }, [h(Disclosure)])\n\nconst SidebarMenuButtonComponent = defineComponent({\n name: \"SidebarMenuButton\",\n inheritAttrs: false,\n props: {\n /** Whether the button is in an active/highlighted state. @default false */\n isActive: { type: Boolean, default: false },\n /**\n * Optional tooltip to show when the sidebar is collapsed (or the\n * `#tooltip` slot). Hidden on mobile.\n */\n tooltip: String,\n /** Whether to render the button as a custom element via Slot. @default false */\n asChild: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n const drawerRows = inject(sidebarDrawerKey, notInDrawer)\n const openDelay = ref<number>()\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const hasTooltip = !!(props.tooltip || slots.tooltip)\n const ownProps: Record<string, unknown> = {\n \"data-active\": props.isActive ? \"true\" : \"false\",\n \"aria-current\": props.isActive ? \"page\" : undefined,\n \"class\": [s.MenuButton, className],\n ...rest,\n }\n if (hasTooltip) {\n ownProps.onPointerenter = composeEventHandlers(rest.onPointerenter, () => {\n openDelay.value = Date.now() - railLeftAt < 300 ? 0 : undefined\n })\n ownProps.onPointerleave = composeEventHandlers(rest.onPointerleave, () => {\n railLeftAt = Date.now()\n })\n }\n const content = slots.default?.()\n const wrap = (children: VNodeArrayChildren | undefined) =>\n h(\"span\", { class: s.MenuButtonInner }, drawerRows.value ? [children, menuDisclosure()] : children)\n let button: VNode\n if (props.asChild) {\n // With asChild the child element is the button, so the inner wrapper\n // goes inside it. Wrapping the child instead would merge the button\n // attributes onto the wrapper span.\n // A lone text child is wrapped below rather than slotted\n const nodes = flattenSlot(content)\n const child = nodes.length === 1 && nodes[0].type !== Text ? nodes[0] : undefined\n button = mergeSlotProps(child ? wrapChildContent(child, wrap) : wrap(content), ownProps)\n } else {\n button = h(\"button\", ownProps, [wrap(content)])\n }\n\n // The tooltip shows when collapsed (icon mode) and not on mobile. It wraps\n // the row in every state, so the row stays mounted and its label can fade.\n if (hasTooltip) {\n const shown = sidebar.state === \"collapsed\" && !sidebar.isMobile\n return h(\n Tooltip,\n { content: shown ? props.tooltip : null, openDelay: openDelay.value, side: \"right\" },\n { default: () => button, ...(slots.tooltip && shown ? { content: slots.tooltip } : {}) },\n )\n }\n\n return button\n }\n },\n})\n\nexport type SidebarMenuButtonProps = InstanceType<typeof SidebarMenuButtonComponent>[\"$props\"] & ButtonHTMLAttributes\n\n/** Menu item button. Shows its `tooltip` when the sidebar is collapsed to icons. */\nexport const SidebarMenuButton = SidebarMenuButtonComponent as typeof SidebarMenuButtonComponent & {\n new (): { $props: SidebarMenuButtonProps }\n}\n\n// =============================================\n// Menu Button Parts\n// =============================================\n\nexport type SidebarMenuButtonIconProps = HTMLAttributes\n\nexport const SidebarMenuButtonIcon = part<SidebarMenuButtonIconProps>(\n \"SidebarMenuButtonIcon\",\n \"span\",\n s.MenuButtonIcon,\n)\n\nconst SidebarMenuButtonLabelComponent = defineComponent({\n name: \"SidebarMenuButtonLabel\",\n inheritAttrs: false,\n props: {\n /** Shorter label rendered next to the full one (`data-short-label`). */\n shortLabel: String,\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return [\n h(\n \"span\",\n { \"data-long-label\": \"true\", \"class\": [s.MenuButtonLabel, className], ...rest },\n slots.default?.(),\n ),\n props.shortLabel\n ? h(\"span\", { \"data-short-label\": \"true\", \"class\": [s.MenuButtonLabel, className] }, props.shortLabel)\n : null,\n ]\n }\n },\n})\n\nexport type SidebarMenuButtonLabelProps = InstanceType<typeof SidebarMenuButtonLabelComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuButtonLabel = SidebarMenuButtonLabelComponent as typeof SidebarMenuButtonLabelComponent & {\n new (): { $props: SidebarMenuButtonLabelProps }\n}\n\n// =============================================\n// Menu Chevron (Expand/Collapse Toggle)\n// =============================================\n\nexport type SidebarMenuChevronProps = HTMLAttributes\n\nexport const SidebarMenuChevron = defineComponent({\n name: \"SidebarMenuChevron\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"span\", { class: [s.MenuChevron, className], ...rest }, [h(ChevronRightMd)])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarMenuChevronProps>>\n\n// =============================================\n// Menu Badge & Action\n// =============================================\n\nexport type SidebarMenuBadgeProps = HTMLAttributes\n\nexport const SidebarMenuBadge = part<SidebarMenuBadgeProps>(\"SidebarMenuBadge\", \"span\", s.MenuBadge)\n\nexport type SidebarMenuActionProps = HTMLAttributes\n\nexport const SidebarMenuAction = part<SidebarMenuActionProps>(\"SidebarMenuAction\", \"div\", s.MenuAction)\n\n// =============================================\n// Menu Skeleton\n// =============================================\n\nconst SidebarMenuSkeletonComponent = defineComponent({\n name: \"SidebarMenuSkeleton\",\n inheritAttrs: false,\n props: {\n /** Renders the icon placeholder. @default true */\n showIcon: { type: Boolean, default: true },\n /** Width of the label skeleton (e.g., \"60%\", \"80%\", \"100px\"). @default \"60%\" */\n labelWidth: { type: String, default: \"60%\" },\n },\n setup(props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { \"data-skeleton\": \"true\", \"class\": [s.MenuSkeleton, className], ...rest }, [\n props.showIcon ? h(\"div\", { class: s.MenuSkeletonIcon }) : null,\n h(\"div\", { class: s.MenuSkeletonLabel, style: { width: props.labelWidth } }),\n ])\n }\n },\n})\n\nexport type SidebarMenuSkeletonProps = InstanceType<typeof SidebarMenuSkeletonComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuSkeleton = SidebarMenuSkeletonComponent as typeof SidebarMenuSkeletonComponent & {\n new (): { $props: SidebarMenuSkeletonProps }\n}\n\n// =============================================\n// Submenu\n// =============================================\n\nconst SidebarMenuSubComponent = defineComponent({\n name: \"SidebarMenuSub\",\n inheritAttrs: false,\n props: {\n /** Whether the submenu is expanded. @default true */\n open: { type: Boolean, default: true },\n /**\n * When true, child items align with parent text that has icons.\n * This adjusts the padding so level 2 text aligns with level 1 text.\n * @default false\n */\n hasIcons: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"ul\",\n {\n \"data-state\": props.open ? \"open\" : \"closed\",\n \"data-has-icons\": props.hasIcons ? \"true\" : undefined,\n // Collapsed items are only hidden visually: keep them out of the tab\n // order. \"\" renders `inert=\"\"` (a DOM property in browsers)\n \"inert\": props.open ? undefined : \"\",\n \"class\": [s.MenuSub, className],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarMenuSubProps = InstanceType<typeof SidebarMenuSubComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuSub = SidebarMenuSubComponent as typeof SidebarMenuSubComponent & {\n new (): { $props: SidebarMenuSubProps }\n}\n\nexport type SidebarMenuSubItemProps = LiHTMLAttributes\n\nexport const SidebarMenuSubItem = part<SidebarMenuSubItemProps>(\"SidebarMenuSubItem\", \"li\", s.MenuSubItem)\n\nconst SidebarMenuSubButtonComponent = defineComponent({\n name: \"SidebarMenuSubButton\",\n inheritAttrs: false,\n props: {\n /** Whether the button is in an active/highlighted state. @default false */\n isActive: { type: Boolean, default: false },\n /** Merges into the slot's first element instead of rendering a `<button>`. @default false */\n asChild: { type: Boolean, default: false },\n /**\n * Indent level for nested items (0-3).\n * Each level adds 12px of left margin.\n * @default 0\n */\n indent: { type: Number as PropType<0 | 1 | 2 | 3>, default: 0 },\n },\n setup(props, { attrs, slots }) {\n const drawerRows = inject(sidebarDrawerKey, notInDrawer)\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const ownProps = {\n \"data-active\": props.isActive ? \"true\" : \"false\",\n \"aria-current\": props.isActive ? \"page\" : undefined,\n \"class\": [s.MenuSubButton, s[`indent${props.indent}`], className],\n ...rest,\n }\n const content = slots.default?.()\n if (!drawerRows.value) return props.asChild ? renderAsChild(content, ownProps) : h(\"button\", ownProps, content)\n // In the drawer the disclosure follows the content, inside the child element with asChild\n if (props.asChild) {\n const child = firstElementChild(content)\n return child ? mergeSlotProps(wrapChildContent(child, (inner) => h(Fragment, null, [inner, menuDisclosure()])), ownProps) : null\n }\n return h(\"button\", ownProps, [content, menuDisclosure()])\n }\n },\n})\n\nexport type SidebarMenuSubButtonProps = InstanceType<typeof SidebarMenuSubButtonComponent>[\"$props\"] & ButtonHTMLAttributes\n\nexport const SidebarMenuSubButton = SidebarMenuSubButtonComponent as typeof SidebarMenuSubButtonComponent & {\n new (): { $props: SidebarMenuSubButtonProps }\n}\n\n// =============================================\n// Separator\n// =============================================\n\nexport type SidebarSeparatorProps = HTMLAttributes\n\nexport const SidebarSeparator = defineComponent({\n name: \"SidebarSeparator\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"hr\", { class: [s.Separator, className], ...rest })\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarSeparatorProps>>\n\n// =============================================\n// Card\n// =============================================\n\nconst SidebarCardComponent = defineComponent({\n name: \"SidebarCard\",\n inheritAttrs: false,\n props: {\n /** Visual variant. @default \"default\" */\n variant: { type: String as PropType<\"default\" | \"elevated\">, default: \"default\" },\n /** Shows a dismiss button. @default false */\n dismissible: { type: Boolean, default: false },\n },\n emits: {\n /** The dismiss button was clicked */\n dismiss: (_event: MouseEvent) => true,\n },\n setup(props, { attrs, slots, emit }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { \"data-variant\": props.variant, \"class\": [s.Card, className], ...rest }, [\n props.dismissible\n ? h(\n Button,\n {\n \"uniform\": true,\n \"size\": \"3xs\",\n \"variant\": \"ghost\",\n \"color\": \"secondary\",\n \"class\": s.CardDismiss,\n \"onClick\": (event: MouseEvent) => emit(\"dismiss\", event),\n \"aria-label\": \"Dismiss\",\n },\n { default: () => h(X) },\n )\n : null,\n slots.default?.(),\n ])\n }\n },\n})\n\nexport type SidebarCardProps = InstanceType<typeof SidebarCardComponent>[\"$props\"] & HTMLAttributes\n\n/** Promotional card for CTAs, upgrades or announcements. */\nexport const SidebarCard = SidebarCardComponent as typeof SidebarCardComponent & {\n new (): { $props: SidebarCardProps }\n}\n\nexport type SidebarCardHeaderProps = HTMLAttributes\n\nexport const SidebarCardHeader = part<SidebarCardHeaderProps>(\"SidebarCardHeader\", \"div\", s.CardHeader)\n\nexport type SidebarCardTitleProps = HTMLAttributes\n\nexport const SidebarCardTitle = part<SidebarCardTitleProps>(\"SidebarCardTitle\", \"div\", s.CardTitle)\n\nexport type SidebarCardTitleLinkProps = AnchorHTMLAttributes\n\nexport const SidebarCardTitleLink = defineComponent({\n name: \"SidebarCardTitleLink\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"a\", { class: [s.CardTitleLink, className], ...rest }, [\n slots.default?.(),\n h(ChevronRightMd, { class: s.CardTitleChevron }),\n ])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarCardTitleLinkProps>>\n\nexport type SidebarCardContentProps = HTMLAttributes\n\nexport const SidebarCardContent = part<SidebarCardContentProps>(\"SidebarCardContent\", \"div\", s.CardContent)\n\nexport type SidebarCardFooterProps = HTMLAttributes\n\nexport const SidebarCardFooter = part<SidebarCardFooterProps>(\"SidebarCardFooter\", \"div\", s.CardFooter)\n\n// =============================================\n// Inset (Main Content Area)\n// =============================================\n\nexport type SidebarInsetProps = HTMLAttributes\n\n/**\n * Main content area next to the sidebar, a `<main>`. Behind the open phone drawer it takes no focus or touch\n * (`inert`); an `inert` of your own wins.\n */\nexport const SidebarInset = defineComponent({\n name: \"SidebarInset\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const sidebar = useSidebar()\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"main\",\n { inert: sidebar.isMobile && sidebar.openMobile ? \"\" : undefined, ...rest, class: [s.Inset, className] },\n slots.default?.(),\n )\n }\n },\n}) as unknown as Part<SidebarInsetProps>\n\n// =============================================\n// Layout Container\n// =============================================\n\nexport type SidebarLayoutProps = HTMLAttributes\n\n/** Wrapper for the sidebar and the main content. */\nexport const SidebarLayout = part<SidebarLayoutProps>(\"SidebarLayout\", \"div\", s.SidebarLayout)\n\n// =============================================\n// Trigger (Collapse Button)\n// =============================================\n\nexport type SidebarTriggerProps = ButtonHTMLAttributes\n\n/**\n * Collapse button. The default slot replaces the icon. Renders nothing when\n * `collapsible=\"none\"`.\n */\nexport const SidebarTrigger = defineComponent({\n name: \"SidebarTrigger\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const sidebar = useSidebar()\n\n return () => {\n // Don't render if collapsible=\"none\" (text-only sidebars)\n if (sidebar.collapsible === \"none\") {\n return null\n }\n\n const { className, rest } = cleanAttrs(attrs)\n const { onClick, ...others } = rest\n return h(\n \"button\",\n {\n \"type\": \"button\",\n \"class\": [s.Trigger, className],\n // The caller's listener runs first and can cancel the toggle\n \"onClick\": composeEventHandlers(onClick, () => sidebar.toggleSidebar()),\n \"aria-label\": sidebar.isMobile\n ? \"Open menu\"\n : sidebar.state === \"expanded\"\n ? \"Collapse sidebar\"\n : \"Expand sidebar\",\n ...others,\n },\n [\n h(\"span\", { class: s.TriggerInner }, [\n // One icon for both states: the tooltip, not the icon, says what a press does\n h(\"span\", { class: s.TriggerIcon }, slots.default ? slots.default() : [h(SidebarIcon)]),\n ]),\n ],\n )\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarTriggerProps>>\n\n// =============================================\n// Mobile Menu Button (SidebarMenuMobile icon → X)\n// =============================================\n\nexport type SidebarMobileMenuButtonProps = ButtonHTMLAttributes\n\nexport const SidebarMobileMenuButton = defineComponent({\n name: \"SidebarMobileMenuButton\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n const sidebar = useSidebar()\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const { onClick, ...others } = rest\n return h(\n \"button\",\n {\n \"type\": \"button\",\n \"data-expanded\": sidebar.openMobile ? \"\" : undefined,\n // Where focus goes when a drawer closes and what opened it can no longer take it (lib/phoneDrawer)\n \"data-sidebar-mobile-menu-button\": \"\",\n \"class\": [s.MobileMenuButton, className],\n // The caller's listener runs first and can cancel the toggle\n \"onClick\": composeEventHandlers(onClick, () => sidebar.setOpenMobile(!sidebar.openMobile)),\n \"aria-label\": sidebar.openMobile ? \"Close menu\" : \"Open menu\",\n ...others,\n },\n [\n h(\"span\", { class: s.MobileMenuIcon }, [\n h(SidebarMenuMobile, { \"class\": s.MobileMenuGlyph, \"data-glyph\": \"menu\" }),\n h(X, { \"class\": s.MobileMenuGlyph, \"data-glyph\": \"close\" }),\n ]),\n ],\n )\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarMobileMenuButtonProps>>\n\n// =============================================\n// Mobile Sidebar\n// =============================================\n\n/**\n * The phone drawer: a modal dialog while it is open. Focus moves into it and Tab goes round its controls, the page\n * behind is inert (SidebarInset), Escape inside it closes it after any layer over it has taken its own, and focus\n * goes back to the control that opened it. A swipe in from the edge it slides from opens it and a swipe back closes\n * it (lib/phoneDrawer).\n */\n/** Runs `run` once `element` has left the page: a leaving `<Transition>` keeps it there for its animation */\nconst whenDetached = (element: Element, run: () => void) => {\n if (!element.isConnected) return run()\n const observer = new MutationObserver(() => {\n if (element.isConnected) return\n observer.disconnect()\n run()\n })\n observer.observe(element.ownerDocument, { childList: true, subtree: true })\n}\n\nconst SidebarMobileComponent = defineComponent({\n name: \"SidebarMobile\",\n inheritAttrs: false,\n props: {\n /** When true, drawer is positioned absolute instead of fixed (for contained demos) */\n contained: { type: Boolean, default: undefined },\n /** Rows that lead to another page end with a disclosure chevron, as in an iOS list. `false` leaves it out. @default true */\n disclosure: { type: Boolean, default: true },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n provide(sidebarDrawerKey, computed(() => props.disclosure))\n const drawer = ref<HTMLElement>()\n const setDrawer = (el: unknown) => {\n drawer.value = el instanceof HTMLElement ? el : ((el as { $el?: unknown } | null)?.$el as HTMLElement | undefined)\n }\n\n let detachSwipe: (() => void) | undefined\n // Vue runs a watcher's cleanup on unmount while the drawer is still on the page, where React runs it once the\n // drawer has left: focus goes back once the drawer has left (after unmount, or after a leaving <Transition>), so a\n // menu button that leaves with the drawer is not picked\n let unmounting = false\n let restoreAfterUnmount: (() => void) | undefined\n onMounted(() => {\n // Focus moves in on open and back to what opened the drawer on close, or to a menu button when that can no longer\n // take it (from mount, as React's effect). A drawer that is not contained shows only at phone width, so going\n // back to it from a wide window moves focus in again.\n watch(\n () => sidebar.openMobile && (sidebar.isMobile || Boolean(props.contained)),\n (open, _, onCleanup) => {\n const el = drawer.value\n if (!open || !el) return\n const trigger = document.activeElement\n // Taken now: after unmount the drawer has left the page, with no provider around it\n const root = el.closest(\"[data-mobile-menu]\")\n if (!el.contains(document.activeElement)) drawerInitialFocus(el).focus({ preventScroll: true })\n onCleanup(() => {\n const restore = () => {\n const active = document.activeElement\n const lost = !active || active === document.body || el.contains(active)\n if (lost) returnDrawerFocus(trigger, el, root)\n }\n if (unmounting) restoreAfterUnmount = () => whenDetached(el, restore)\n else restore()\n })\n },\n { flush: \"post\", immediate: true },\n )\n\n const el = drawer.value\n const root = el?.closest<HTMLElement>(\"[data-mobile-menu]\")\n if (!el || !root) return\n detachSwipe = attachDrawerSwipe({\n root,\n drawer: el,\n isOpen: () => sidebar.openMobile,\n setOpen: (open) => sidebar.setOpenMobile(open),\n enabled: () => sidebar.isMobile,\n })\n })\n onBeforeUnmount(() => {\n unmounting = true\n detachSwipe?.()\n })\n onUnmounted(() => {\n restoreAfterUnmount?.()\n restoreAfterUnmount = undefined\n })\n\n const onDrawerKeydown = (event: KeyboardEvent) => {\n const el = drawer.value\n if (!sidebar.openMobile || !el) return\n loopDrawerFocus(event, el)\n closeOnUnhandledEscape(event, el, () => sidebar.setOpenMobile(false))\n }\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const { onKeydown: userKeydown, ...drawerAttrs } = rest\n const contained = props.contained && s.contained\n const open = sidebar.openMobile\n return [\n // Backdrop\n h(\"div\", {\n \"class\": [s.MobileBackdrop, contained],\n \"onClick\": () => sidebar.setOpenMobile(false),\n \"aria-hidden\": \"true\",\n }),\n // Drawer\n h(\n \"div\",\n {\n \"ref\": setDrawer,\n \"role\": \"dialog\",\n \"aria-modal\": open ? \"true\" : undefined,\n \"aria-label\": \"Menu\",\n \"tabindex\": -1,\n \"inert\": open ? undefined : \"\",\n ...drawerAttrs,\n \"class\": [s.MobileSidebar, contained, className],\n // Your handler runs first and can keep the drawer open with preventDefault(), as onKeyDown in React\n \"onKeydown\": (event: KeyboardEvent) => {\n for (const handler of [userKeydown].flat()) if (typeof handler === \"function\") handler(event)\n onDrawerKeydown(event)\n },\n },\n slots.default?.(),\n ),\n ]\n }\n },\n})\n\nexport type SidebarMobileProps = InstanceType<typeof SidebarMobileComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMobile = SidebarMobileComponent as typeof SidebarMobileComponent & {\n new (): { $props: SidebarMobileProps }\n}\n\nexport type SidebarMobileHeaderProps = HTMLAttributes\n\nexport const SidebarMobileHeader = part<SidebarMobileHeaderProps>(\"SidebarMobileHeader\", \"div\", s.MobileHeader)\n\nexport type SidebarMobileFooterProps = HTMLAttributes\n\nexport const SidebarMobileFooter = part<SidebarMobileFooterProps>(\"SidebarMobileFooter\", \"div\", s.MobileFooter)\n\n// =============================================\n// Input (Search)\n// =============================================\n\nexport type SidebarInputProps = InputProps\n\n/**\n * Search input: an Input with a Search icon in its `startAdornment` slot.\n * Every attribute, listener and slot goes to the Input (`v-model:value`,\n * `@clear`, ...). A template ref gets the Input's `focus()` and `input`\n * (React forwards its ref to the <input>).\n */\nexport const SidebarInput = defineComponent({\n name: \"SidebarInput\",\n inheritAttrs: false,\n setup(_props, { attrs, slots, expose }) {\n // Input's exposed API\n const inputComponent = ref<{ input: HTMLInputElement | null; focus: () => void } | null>(null)\n\n expose({\n focus: () => inputComponent.value?.focus(),\n input: computed(() => inputComponent.value?.input ?? null),\n })\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { class: s.Input }, [\n h(\n Input,\n { class: className, ...rest, ref: inputComponent },\n { ...slots, startAdornment: slots.startAdornment ?? (() => h(SearchIcon)) },\n ),\n ])\n }\n },\n}) as unknown as typeof Input\n\n// =============================================\n// Footer Links\n// =============================================\n\nexport type SidebarFooterLinksProps = HTMLAttributes\n\nexport const SidebarFooterLinks = part<SidebarFooterLinksProps>(\"SidebarFooterLinks\", \"div\", s.FooterLinks)\n"]}
|
|
1
|
+
{"version":3,"file":"Sidebar.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/Sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,CAAC,EACD,MAAM,EACN,eAAe,EACf,SAAS,EACT,WAAW,EACX,OAAO,EACP,GAAG,EACH,IAAI,EACJ,KAAK,GAYN,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,IAAI,UAAU,EAAE,OAAO,IAAI,WAAW,EAAE,iBAAiB,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAA;AACjI,OAAO,EAAE,KAAK,EAAmB,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACzG,OAAO,CAAC,MAAM,sDAAsD,CAAA;AACpE,OAAO,EACL,eAAe,EACf,UAAU,GAKX,MAAM,wBAAwB,CAAA;AAE/B,0EAA0E;AAC1E,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,+EAA+E;AAC/E,0EAA0E;AA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EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;YAC7C,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;gBAClC,CAAC,CACC,KAAK,EACL,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,EAClD,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAC5E;aACF,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CACF,CAA4B,CAAA;AAQ7B,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAA0B,oBAAoB,EAAE,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA","sourcesContent":["import {\n computed,\n defineComponent,\n Fragment,\n h,\n inject,\n onBeforeUnmount,\n onMounted,\n onUnmounted,\n provide,\n ref,\n Text,\n watch,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type DefineComponent,\n type HTMLAttributes,\n type InjectionKey,\n type LiHTMLAttributes,\n type PropType,\n type Ref,\n type Slots,\n type VNode,\n type VNodeArrayChildren,\n} from \"vue\"\nimport {\n attachDrawerSwipe,\n closeOnUnhandledEscape,\n drawerInitialFocus,\n returnDrawerFocus,\n loopDrawerFocus,\n} from \"../../lib/phoneDrawer.js\"\nimport { Button } from \"../Button/index.js\"\nimport { ChevronRightMd, Disclosure, Search as SearchIcon, Sidebar as SidebarIcon, SidebarMenuMobile, X } from \"../Icon/index.js\"\nimport { Input, type InputProps } from \"../Input/index.js\"\nimport { Tooltip } from \"../Tooltip/index.js\"\nimport { composeEventHandlers, firstElementChild, flattenSlot, mergeSlotProps } from \"../Tooltip/slot.js\"\nimport s from \"@plexui/styles/components/Sidebar/Sidebar.module.css\"\nimport {\n SidebarProvider,\n useSidebar,\n type SidebarCollapsible,\n type SidebarSide,\n type SidebarProviderVariant,\n type SidebarVariant,\n} from \"./useSidebarContext.js\"\n\n// Vue port of packages/ui/src/components/Sidebar/Sidebar.tsx. Exports are\n// flat, as in React's index. Every part renders its React element with the\n// caller's attributes applied after its own (React spreads `...props` last),\n// so a caller's attribute or listener replaces the part's own. `class` is\n// merged. An `@click` on SidebarTrigger or SidebarMobileMenuButton runs before\n// the toggle and cancels it with `preventDefault()`, as `onClick` does in\n// React. `data-toggle` (injected by MDX) is dropped, as React's `cleanProps`\n// does.\n// - `asChild` (SidebarGroupLabel, SidebarMenuButton, SidebarMenuSubButton)\n// merges into the first element of the default slot the way Radix's Slot\n// does. SidebarMenuButton puts its inner `<span>` inside that element,\n// around the element's own content, as React clones it; with no single\n// element child it merges into the inner `<span>` instead.\n// - ReactNode props are slots: SidebarMenuButton `tooltip` (prop or\n// `#tooltip` slot), SidebarTrigger's icon (default slot), SidebarInput's\n// `startAdornment` (slot, Search icon by default).\n// - Parts whose React children are fixed (SidebarMenuChevron,\n// SidebarMenuSkeleton, SidebarMobileMenuButton) ignore the default slot.\n\n// Re-export provider and composable\nexport { SidebarProvider, useSidebar }\nexport type { SidebarCollapsible, SidebarProviderVariant, SidebarSide, SidebarVariant }\n\ntype Attrs = Record<string, unknown>\n\n// Filter out attributes that shouldn't reach the DOM (e.g. injected by MDX)\nconst cleanAttrs = (attrs: Attrs) => {\n const { \"data-toggle\": _, class: className, ...rest } = attrs\n return { className, rest }\n}\n\n// An explicit type keeps the published declaration on Vue's `DefineComponent`\n// alias; an inferred one is expanded there and fails consumers' type checks\n// (`GlobalComponents` against `Record<string, Component>`, TS2344).\ntype Part<A> = DefineComponent & { new (): { $props: A } }\n\n/** A part that renders one element with its class and the caller's attributes. */\nconst part = <A>(name: string, tag: string, className: string | undefined): Part<A> => {\n const component = defineComponent({\n name,\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className: userClass, rest } = cleanAttrs(attrs)\n return h(tag, { ...rest, class: [className, userClass] }, slots.default?.())\n }\n },\n })\n return component as unknown as Part<A>\n}\n\n// =============================================\n// Sidebar Root\n// =============================================\n\nconst SidebarComponent = defineComponent({\n name: \"Sidebar\",\n inheritAttrs: false,\n props: {\n /** The side the sidebar is on. @default \"left\" */\n side: { type: String as PropType<SidebarSide>, default: \"left\" },\n /** The visual variant of the sidebar. @default \"sidebar\" */\n variant: { type: String as PropType<SidebarVariant>, default: \"sidebar\" },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n\n return () => {\n // Skip rendering sidebar on mobile for offcanvas mode\n if (sidebar.isMobile && sidebar.collapsible === \"offcanvas\") {\n return null\n }\n\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"aside\",\n { \"data-side\": props.side, \"data-variant\": props.variant, \"class\": [s.Sidebar, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarProps = InstanceType<typeof SidebarComponent>[\"$props\"] & HTMLAttributes\n\n/** The sidebar container, an `<aside>`. Renders nothing on mobile in offcanvas mode. */\nexport const Sidebar = SidebarComponent as typeof SidebarComponent & { new (): { $props: SidebarProps } }\n\n// =============================================\n// Sidebar Sections\n// =============================================\n\nexport type SidebarHeaderProps = HTMLAttributes\n\n/** Sticky top area of the sidebar. */\nexport const SidebarHeader = part<SidebarHeaderProps>(\"SidebarHeader\", \"div\", s.Header)\n\nexport type SidebarContentProps = HTMLAttributes\n\n/**\n * Scrollable content area. Sets `data-content-scrollable` on the sidebar\n * while its content overflows.\n */\nexport const SidebarContent = defineComponent({\n name: \"SidebarContent\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const contentEl = ref<HTMLDivElement | null>(null)\n let observer: ResizeObserver | undefined\n\n onMounted(() => {\n const el = contentEl.value\n if (!el) return\n const sidebar = el.parentElement\n if (!sidebar) return\n\n const update = () => {\n const hasOverflow = el.scrollHeight > el.clientHeight\n sidebar.setAttribute(\"data-content-scrollable\", hasOverflow ? \"true\" : \"false\")\n }\n update()\n observer = new ResizeObserver(update)\n observer.observe(el)\n })\n onBeforeUnmount(() => observer?.disconnect())\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { ref: contentEl, class: [s.Content, className], ...rest }, slots.default?.())\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarContentProps>>\n\nexport type SidebarFooterProps = HTMLAttributes\n\n/** Sticky bottom area of the sidebar, with a separator line on top. */\nexport const SidebarFooter = defineComponent({\n name: \"SidebarFooter\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { class: [s.Footer, className], ...rest }, [\n h(\"div\", { class: s.FooterSeparator }),\n slots.default?.(),\n ])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarFooterProps>>\n\nexport type SidebarRailProps = HTMLAttributes\n\nexport const SidebarRail = part<SidebarRailProps>(\"SidebarRail\", \"div\", s.Rail)\n\n// =============================================\n// Groups\n// =============================================\n\nconst SidebarGroupComponent = defineComponent({\n name: \"SidebarGroup\",\n inheritAttrs: false,\n props: {\n /** Whether the group is open initially. A closed group hides its `SidebarGroupContent`. @default true */\n defaultOpen: { type: Boolean, default: true },\n /** Controlled open state. The group has no toggle of its own: change `open` from your own control. */\n open: { type: Boolean, default: undefined },\n },\n setup(props, { attrs, slots }) {\n // The initial value only, like an uncontrolled input's defaultValue\n const internalOpen = ref(props.defaultOpen)\n\n return () => {\n const open = props.open ?? internalOpen.value\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"div\",\n { \"data-state\": open ? \"open\" : \"closed\", \"class\": [s.Group, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarGroupProps = InstanceType<typeof SidebarGroupComponent>[\"$props\"] & HTMLAttributes\n\n/** Section within the content. `data-state` follows `open` / `defaultOpen`. */\nexport const SidebarGroup = SidebarGroupComponent as typeof SidebarGroupComponent & {\n new (): { $props: SidebarGroupProps }\n}\n\n/** Radix Slot: the first element of the slot, with `slotProps` merged in. */\nconst renderAsChild = (children: VNodeArrayChildren | undefined, slotProps: Attrs) => {\n const child = firstElementChild(children)\n return child ? mergeSlotProps(child, slotProps) : null\n}\n\n/**\n * React's `cloneElement(child, undefined, wrap(child.props.children))`: the\n * same element (key and ref kept) with its content, or its default slot for a\n * component such as RouterLink, passed through `wrap`.\n */\nconst wrapChildContent = (child: VNode, wrap: (content: VNodeArrayChildren | undefined) => VNode): VNode => {\n const content = child.children\n let children: VNodeArrayChildren | Slots\n if (content && typeof content === \"object\" && !Array.isArray(content)) {\n // Drop the compiled-slots flag so the new default slot is always used\n const { _: _compiled, ...slotFns } = content as Slots & { _?: unknown }\n children = { ...slotFns, default: () => [wrap(slotFns.default?.())] }\n } else {\n children = [wrap(typeof content === \"string\" ? [content] : (content ?? undefined))]\n }\n return h(child.type as string, { ...child.props, key: child.key ?? undefined, ref: child.ref as never }, children as never)\n}\n\nconst SidebarGroupLabelComponent = defineComponent({\n name: \"SidebarGroupLabel\",\n inheritAttrs: false,\n props: {\n /** Merges into the slot's first element instead of rendering a `<span>`. @default false */\n asChild: { type: Boolean, default: false },\n /**\n * Size variant for the label.\n * - \"sm\": Compact style for dashboard/settings sidebars\n * - \"lg\": Documentation style with larger text and more spacing\n * @default \"lg\"\n */\n size: { type: String as PropType<\"sm\" | \"lg\">, default: \"lg\" },\n /**\n * Starts the label 12px in, at the rows' text. Off, it starts at the group's edge: a label over a panel of fields.\n * @default true\n */\n inset: { type: Boolean, default: true },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const ownProps = { \"data-size\": props.size, \"data-inset\": props.inset ? undefined : \"false\", \"class\": [s.GroupLabel, className], ...rest }\n return props.asChild ? renderAsChild(slots.default?.(), ownProps) : h(\"span\", ownProps, slots.default?.())\n }\n },\n})\n\nexport type SidebarGroupLabelProps = InstanceType<typeof SidebarGroupLabelComponent>[\"$props\"] & HTMLAttributes\n\n/** Section label within a SidebarGroup. */\nexport const SidebarGroupLabel = SidebarGroupLabelComponent as typeof SidebarGroupLabelComponent & {\n new (): { $props: SidebarGroupLabelProps }\n}\n\nexport type SidebarGroupActionProps = HTMLAttributes\n\nexport const SidebarGroupAction = part<SidebarGroupActionProps>(\"SidebarGroupAction\", \"div\", s.GroupAction)\n\nexport type SidebarGroupContentProps = HTMLAttributes\n\nexport const SidebarGroupContent = part<SidebarGroupContentProps>(\"SidebarGroupContent\", \"div\", s.GroupContent)\n\n// =============================================\n// Menu\n// =============================================\n\nexport type SidebarMenuProps = HTMLAttributes\n\n/** Navigation menu, a `<ul>`. */\nexport const SidebarMenu = part<SidebarMenuProps>(\"SidebarMenu\", \"ul\", s.Menu)\n\nconst SidebarMenuItemComponent = defineComponent({\n name: \"SidebarMenuItem\",\n inheritAttrs: false,\n props: {\n /** Marks the item as expanded (`data-expanded`), for chevrons and sub menus. */\n expanded: { type: Boolean, default: undefined },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"li\",\n { \"data-expanded\": props.expanded ? \"true\" : undefined, \"class\": [s.MenuItem, className], ...rest },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarMenuItemProps = InstanceType<typeof SidebarMenuItemComponent>[\"$props\"] & LiHTMLAttributes\n\n/** Menu item, an `<li>`. */\nexport const SidebarMenuItem = SidebarMenuItemComponent as typeof SidebarMenuItemComponent & {\n new (): { $props: SidebarMenuItemProps }\n}\n\n// =============================================\n// Menu Button\n// =============================================\n\n// Shared by every row of the rail: moving to the next one shows its label at once.\nlet railLeftAt = 0\n\n// Rows inside the mobile drawer end with a disclosure chevron (see the drawer list in the styles), unless the drawer\n// leaves it out (`:disclosure=\"false\"`).\nconst sidebarDrawerKey: InjectionKey<Ref<boolean>> = Symbol(\"SidebarDrawer\")\nconst notInDrawer = computed(() => false)\n\n/** The chevron of a drawer row that leads to another page. */\nconst menuDisclosure = () => h(\"span\", { \"class\": s.MenuDisclosure, \"aria-hidden\": \"true\" }, [h(Disclosure)])\n\nconst SidebarMenuButtonComponent = defineComponent({\n name: \"SidebarMenuButton\",\n inheritAttrs: false,\n props: {\n /** Whether the button is in an active/highlighted state. @default false */\n isActive: { type: Boolean, default: false },\n /**\n * Optional tooltip to show when the sidebar is collapsed (or the\n * `#tooltip` slot). Hidden on mobile.\n */\n tooltip: String,\n /** Whether to render the button as a custom element via Slot. @default false */\n asChild: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n const drawerRows = inject(sidebarDrawerKey, notInDrawer)\n const openDelay = ref<number>()\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const hasTooltip = !!(props.tooltip || slots.tooltip)\n const ownProps: Record<string, unknown> = {\n \"data-active\": props.isActive ? \"true\" : \"false\",\n \"aria-current\": props.isActive ? \"page\" : undefined,\n \"class\": [s.MenuButton, className],\n ...rest,\n }\n if (hasTooltip) {\n ownProps.onPointerenter = composeEventHandlers(rest.onPointerenter, () => {\n openDelay.value = Date.now() - railLeftAt < 300 ? 0 : undefined\n })\n ownProps.onPointerleave = composeEventHandlers(rest.onPointerleave, () => {\n railLeftAt = Date.now()\n })\n }\n const content = slots.default?.()\n const wrap = (children: VNodeArrayChildren | undefined) =>\n h(\"span\", { class: s.MenuButtonInner }, drawerRows.value ? [children, menuDisclosure()] : children)\n let button: VNode\n if (props.asChild) {\n // With asChild the child element is the button, so the inner wrapper\n // goes inside it. Wrapping the child instead would merge the button\n // attributes onto the wrapper span.\n // A lone text child is wrapped below rather than slotted\n const nodes = flattenSlot(content)\n const child = nodes.length === 1 && nodes[0].type !== Text ? nodes[0] : undefined\n button = mergeSlotProps(child ? wrapChildContent(child, wrap) : wrap(content), ownProps)\n } else {\n button = h(\"button\", ownProps, [wrap(content)])\n }\n\n // The tooltip shows when collapsed (icon mode) and not on mobile. It wraps\n // the row in every state, so the row stays mounted and its label can fade.\n if (hasTooltip) {\n const shown = sidebar.state === \"collapsed\" && !sidebar.isMobile\n return h(\n Tooltip,\n { content: shown ? props.tooltip : null, openDelay: openDelay.value, side: \"right\" },\n { default: () => button, ...(slots.tooltip && shown ? { content: slots.tooltip } : {}) },\n )\n }\n\n return button\n }\n },\n})\n\nexport type SidebarMenuButtonProps = InstanceType<typeof SidebarMenuButtonComponent>[\"$props\"] & ButtonHTMLAttributes\n\n/** Menu item button. Shows its `tooltip` when the sidebar is collapsed to icons. */\nexport const SidebarMenuButton = SidebarMenuButtonComponent as typeof SidebarMenuButtonComponent & {\n new (): { $props: SidebarMenuButtonProps }\n}\n\n// =============================================\n// Menu Button Parts\n// =============================================\n\nexport type SidebarMenuButtonIconProps = HTMLAttributes\n\nexport const SidebarMenuButtonIcon = part<SidebarMenuButtonIconProps>(\n \"SidebarMenuButtonIcon\",\n \"span\",\n s.MenuButtonIcon,\n)\n\nconst SidebarMenuButtonLabelComponent = defineComponent({\n name: \"SidebarMenuButtonLabel\",\n inheritAttrs: false,\n props: {\n /** Shorter label rendered next to the full one (`data-short-label`). */\n shortLabel: String,\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return [\n h(\n \"span\",\n { \"data-long-label\": \"true\", \"class\": [s.MenuButtonLabel, className], ...rest },\n slots.default?.(),\n ),\n props.shortLabel\n ? h(\"span\", { \"data-short-label\": \"true\", \"class\": [s.MenuButtonLabel, className] }, props.shortLabel)\n : null,\n ]\n }\n },\n})\n\nexport type SidebarMenuButtonLabelProps = InstanceType<typeof SidebarMenuButtonLabelComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuButtonLabel = SidebarMenuButtonLabelComponent as typeof SidebarMenuButtonLabelComponent & {\n new (): { $props: SidebarMenuButtonLabelProps }\n}\n\n// =============================================\n// Menu Chevron (Expand/Collapse Toggle)\n// =============================================\n\nexport type SidebarMenuChevronProps = HTMLAttributes\n\nexport const SidebarMenuChevron = defineComponent({\n name: \"SidebarMenuChevron\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"span\", { class: [s.MenuChevron, className], ...rest }, [h(ChevronRightMd)])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarMenuChevronProps>>\n\n// =============================================\n// Menu Badge & Action\n// =============================================\n\nexport type SidebarMenuBadgeProps = HTMLAttributes\n\nexport const SidebarMenuBadge = part<SidebarMenuBadgeProps>(\"SidebarMenuBadge\", \"span\", s.MenuBadge)\n\nexport type SidebarMenuActionProps = HTMLAttributes\n\nexport const SidebarMenuAction = part<SidebarMenuActionProps>(\"SidebarMenuAction\", \"div\", s.MenuAction)\n\n// =============================================\n// Menu Skeleton\n// =============================================\n\nconst SidebarMenuSkeletonComponent = defineComponent({\n name: \"SidebarMenuSkeleton\",\n inheritAttrs: false,\n props: {\n /** Renders the icon placeholder. @default true */\n showIcon: { type: Boolean, default: true },\n /** Width of the label skeleton (e.g., \"60%\", \"80%\", \"100px\"). @default \"60%\" */\n labelWidth: { type: String, default: \"60%\" },\n },\n setup(props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { \"data-skeleton\": \"true\", \"class\": [s.MenuSkeleton, className], ...rest }, [\n props.showIcon ? h(\"div\", { class: s.MenuSkeletonIcon }) : null,\n h(\"div\", { class: s.MenuSkeletonLabel, style: { width: props.labelWidth } }),\n ])\n }\n },\n})\n\nexport type SidebarMenuSkeletonProps = InstanceType<typeof SidebarMenuSkeletonComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuSkeleton = SidebarMenuSkeletonComponent as typeof SidebarMenuSkeletonComponent & {\n new (): { $props: SidebarMenuSkeletonProps }\n}\n\n// =============================================\n// Submenu\n// =============================================\n\nconst SidebarMenuSubComponent = defineComponent({\n name: \"SidebarMenuSub\",\n inheritAttrs: false,\n props: {\n /** Whether the submenu is expanded. @default true */\n open: { type: Boolean, default: true },\n /**\n * When true, child items align with parent text that has icons.\n * This adjusts the padding so level 2 text aligns with level 1 text.\n * @default false\n */\n hasIcons: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"ul\",\n {\n \"data-state\": props.open ? \"open\" : \"closed\",\n \"data-has-icons\": props.hasIcons ? \"true\" : undefined,\n // Collapsed items are only hidden visually: keep them out of the tab\n // order. \"\" renders `inert=\"\"` (a DOM property in browsers)\n \"inert\": props.open ? undefined : \"\",\n \"class\": [s.MenuSub, className],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n\nexport type SidebarMenuSubProps = InstanceType<typeof SidebarMenuSubComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMenuSub = SidebarMenuSubComponent as typeof SidebarMenuSubComponent & {\n new (): { $props: SidebarMenuSubProps }\n}\n\nexport type SidebarMenuSubItemProps = LiHTMLAttributes\n\nexport const SidebarMenuSubItem = part<SidebarMenuSubItemProps>(\"SidebarMenuSubItem\", \"li\", s.MenuSubItem)\n\nconst SidebarMenuSubButtonComponent = defineComponent({\n name: \"SidebarMenuSubButton\",\n inheritAttrs: false,\n props: {\n /** Whether the button is in an active/highlighted state. @default false */\n isActive: { type: Boolean, default: false },\n /** Merges into the slot's first element instead of rendering a `<button>`. @default false */\n asChild: { type: Boolean, default: false },\n /**\n * Indent level for nested items (0-3).\n * Each level adds 12px of left margin.\n * @default 0\n */\n indent: { type: Number as PropType<0 | 1 | 2 | 3>, default: 0 },\n },\n setup(props, { attrs, slots }) {\n const drawerRows = inject(sidebarDrawerKey, notInDrawer)\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const ownProps = {\n \"data-active\": props.isActive ? \"true\" : \"false\",\n \"aria-current\": props.isActive ? \"page\" : undefined,\n \"class\": [s.MenuSubButton, s[`indent${props.indent}`], className],\n ...rest,\n }\n const content = slots.default?.()\n if (!drawerRows.value) return props.asChild ? renderAsChild(content, ownProps) : h(\"button\", ownProps, content)\n // In the drawer the disclosure follows the content, inside the child element with asChild\n if (props.asChild) {\n const child = firstElementChild(content)\n return child ? mergeSlotProps(wrapChildContent(child, (inner) => h(Fragment, null, [inner, menuDisclosure()])), ownProps) : null\n }\n return h(\"button\", ownProps, [content, menuDisclosure()])\n }\n },\n})\n\nexport type SidebarMenuSubButtonProps = InstanceType<typeof SidebarMenuSubButtonComponent>[\"$props\"] & ButtonHTMLAttributes\n\nexport const SidebarMenuSubButton = SidebarMenuSubButtonComponent as typeof SidebarMenuSubButtonComponent & {\n new (): { $props: SidebarMenuSubButtonProps }\n}\n\nexport type SidebarMenuSubButtonLabelProps = HTMLAttributes\n\n/** The text of a SidebarMenuSubButton: it fills the row, starts at its start and ends in an ellipsis. */\nexport const SidebarMenuSubButtonLabel = part<SidebarMenuSubButtonLabelProps>(\"SidebarMenuSubButtonLabel\", \"span\", s.MenuSubButtonLabel)\n\n// =============================================\n// Separator\n// =============================================\n\nexport type SidebarSeparatorProps = HTMLAttributes\n\nexport const SidebarSeparator = defineComponent({\n name: \"SidebarSeparator\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"hr\", { class: [s.Separator, className], ...rest })\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarSeparatorProps>>\n\n// =============================================\n// Card\n// =============================================\n\nconst SidebarCardComponent = defineComponent({\n name: \"SidebarCard\",\n inheritAttrs: false,\n props: {\n /** Visual variant. @default \"default\" */\n variant: { type: String as PropType<\"default\" | \"elevated\">, default: \"default\" },\n /** Shows a dismiss button. @default false */\n dismissible: { type: Boolean, default: false },\n },\n emits: {\n /** The dismiss button was clicked */\n dismiss: (_event: MouseEvent) => true,\n },\n setup(props, { attrs, slots, emit }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { \"data-variant\": props.variant, \"class\": [s.Card, className], ...rest }, [\n props.dismissible\n ? h(\n Button,\n {\n \"uniform\": true,\n \"size\": \"3xs\",\n \"variant\": \"ghost\",\n \"color\": \"secondary\",\n \"class\": s.CardDismiss,\n \"onClick\": (event: MouseEvent) => emit(\"dismiss\", event),\n \"aria-label\": \"Dismiss\",\n },\n { default: () => h(X) },\n )\n : null,\n slots.default?.(),\n ])\n }\n },\n})\n\nexport type SidebarCardProps = InstanceType<typeof SidebarCardComponent>[\"$props\"] & HTMLAttributes\n\n/** Promotional card for CTAs, upgrades or announcements. */\nexport const SidebarCard = SidebarCardComponent as typeof SidebarCardComponent & {\n new (): { $props: SidebarCardProps }\n}\n\nexport type SidebarCardHeaderProps = HTMLAttributes\n\nexport const SidebarCardHeader = part<SidebarCardHeaderProps>(\"SidebarCardHeader\", \"div\", s.CardHeader)\n\nexport type SidebarCardTitleProps = HTMLAttributes\n\nexport const SidebarCardTitle = part<SidebarCardTitleProps>(\"SidebarCardTitle\", \"div\", s.CardTitle)\n\nexport type SidebarCardTitleLinkProps = AnchorHTMLAttributes\n\nexport const SidebarCardTitleLink = defineComponent({\n name: \"SidebarCardTitleLink\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"a\", { class: [s.CardTitleLink, className], ...rest }, [\n slots.default?.(),\n h(ChevronRightMd, { class: s.CardTitleChevron }),\n ])\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarCardTitleLinkProps>>\n\nexport type SidebarCardContentProps = HTMLAttributes\n\nexport const SidebarCardContent = part<SidebarCardContentProps>(\"SidebarCardContent\", \"div\", s.CardContent)\n\nexport type SidebarCardFooterProps = HTMLAttributes\n\nexport const SidebarCardFooter = part<SidebarCardFooterProps>(\"SidebarCardFooter\", \"div\", s.CardFooter)\n\n// =============================================\n// Inset (Main Content Area)\n// =============================================\n\nexport type SidebarInsetProps = HTMLAttributes\n\n/**\n * Main content area next to the sidebar, a `<main>`. Behind the open phone drawer it takes no focus or touch\n * (`inert`); an `inert` of your own wins.\n */\nexport const SidebarInset = defineComponent({\n name: \"SidebarInset\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const sidebar = useSidebar()\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\n \"main\",\n { inert: sidebar.isMobile && sidebar.openMobile ? \"\" : undefined, ...rest, class: [s.Inset, className] },\n slots.default?.(),\n )\n }\n },\n}) as unknown as Part<SidebarInsetProps>\n\n// =============================================\n// Layout Container\n// =============================================\n\nexport type SidebarLayoutProps = HTMLAttributes\n\n/** Wrapper for the sidebar and the main content. */\nexport const SidebarLayout = part<SidebarLayoutProps>(\"SidebarLayout\", \"div\", s.SidebarLayout)\n\n// =============================================\n// Trigger (Collapse Button)\n// =============================================\n\nexport type SidebarTriggerProps = ButtonHTMLAttributes\n\n/**\n * Collapse button. The default slot replaces the icon. Renders nothing when\n * `collapsible=\"none\"`.\n */\nexport const SidebarTrigger = defineComponent({\n name: \"SidebarTrigger\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n const sidebar = useSidebar()\n\n return () => {\n // Don't render if collapsible=\"none\" (text-only sidebars)\n if (sidebar.collapsible === \"none\") {\n return null\n }\n\n const { className, rest } = cleanAttrs(attrs)\n const { onClick, ...others } = rest\n return h(\n \"button\",\n {\n \"type\": \"button\",\n \"class\": [s.Trigger, className],\n // The caller's listener runs first and can cancel the toggle\n \"onClick\": composeEventHandlers(onClick, () => sidebar.toggleSidebar()),\n \"aria-label\": sidebar.isMobile\n ? \"Open menu\"\n : sidebar.state === \"expanded\"\n ? \"Collapse sidebar\"\n : \"Expand sidebar\",\n ...others,\n },\n [\n h(\"span\", { class: s.TriggerInner }, [\n // One icon for both states: the tooltip, not the icon, says what a press does\n h(\"span\", { class: s.TriggerIcon }, slots.default ? slots.default() : [h(SidebarIcon)]),\n ]),\n ],\n )\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarTriggerProps>>\n\n// =============================================\n// Mobile Menu Button (SidebarMenuMobile icon → X)\n// =============================================\n\nexport type SidebarMobileMenuButtonProps = ButtonHTMLAttributes\n\nexport const SidebarMobileMenuButton = defineComponent({\n name: \"SidebarMobileMenuButton\",\n inheritAttrs: false,\n setup(_props, { attrs }) {\n const sidebar = useSidebar()\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const { onClick, ...others } = rest\n return h(\n \"button\",\n {\n \"type\": \"button\",\n \"data-expanded\": sidebar.openMobile ? \"\" : undefined,\n // Where focus goes when a drawer closes and what opened it can no longer take it (lib/phoneDrawer)\n \"data-sidebar-mobile-menu-button\": \"\",\n \"class\": [s.MobileMenuButton, className],\n // The caller's listener runs first and can cancel the toggle\n \"onClick\": composeEventHandlers(onClick, () => sidebar.setOpenMobile(!sidebar.openMobile)),\n \"aria-label\": sidebar.openMobile ? \"Close menu\" : \"Open menu\",\n ...others,\n },\n [\n h(\"span\", { class: s.MobileMenuIcon }, [\n h(SidebarMenuMobile, { \"class\": s.MobileMenuGlyph, \"data-glyph\": \"menu\" }),\n h(X, { \"class\": s.MobileMenuGlyph, \"data-glyph\": \"close\" }),\n ]),\n ],\n )\n }\n },\n}) as unknown as ReturnType<typeof part<SidebarMobileMenuButtonProps>>\n\n// =============================================\n// Mobile Sidebar\n// =============================================\n\n/**\n * The phone drawer: a modal dialog while it is open. Focus moves into it and Tab goes round its controls, the page\n * behind is inert (SidebarInset), Escape inside it closes it after any layer over it has taken its own, and focus\n * goes back to the control that opened it. A swipe in from the edge it slides from opens it and a swipe back closes\n * it (lib/phoneDrawer).\n */\n/** Runs `run` once `element` has left the page: a leaving `<Transition>` keeps it there for its animation */\nconst whenDetached = (element: Element, run: () => void) => {\n if (!element.isConnected) return run()\n const observer = new MutationObserver(() => {\n if (element.isConnected) return\n observer.disconnect()\n run()\n })\n observer.observe(element.ownerDocument, { childList: true, subtree: true })\n}\n\nconst SidebarMobileComponent = defineComponent({\n name: \"SidebarMobile\",\n inheritAttrs: false,\n props: {\n /** When true, drawer is positioned absolute instead of fixed (for contained demos) */\n contained: { type: Boolean, default: undefined },\n /** Rows that lead to another page end with a disclosure chevron, as in an iOS list. `false` leaves it out. @default true */\n disclosure: { type: Boolean, default: true },\n },\n setup(props, { attrs, slots }) {\n const sidebar = useSidebar()\n provide(sidebarDrawerKey, computed(() => props.disclosure))\n const drawer = ref<HTMLElement>()\n const setDrawer = (el: unknown) => {\n drawer.value = el instanceof HTMLElement ? el : ((el as { $el?: unknown } | null)?.$el as HTMLElement | undefined)\n }\n\n let detachSwipe: (() => void) | undefined\n // Vue runs a watcher's cleanup on unmount while the drawer is still on the page, where React runs it once the\n // drawer has left: focus goes back once the drawer has left (after unmount, or after a leaving <Transition>), so a\n // menu button that leaves with the drawer is not picked\n let unmounting = false\n let restoreAfterUnmount: (() => void) | undefined\n onMounted(() => {\n // Focus moves in on open and back to what opened the drawer on close, or to a menu button when that can no longer\n // take it (from mount, as React's effect). A drawer that is not contained shows only at phone width, so going\n // back to it from a wide window moves focus in again.\n watch(\n () => sidebar.openMobile && (sidebar.isMobile || Boolean(props.contained)),\n (open, _, onCleanup) => {\n const el = drawer.value\n if (!open || !el) return\n const trigger = document.activeElement\n // Taken now: after unmount the drawer has left the page, with no provider around it\n const root = el.closest(\"[data-mobile-menu]\")\n if (!el.contains(document.activeElement)) drawerInitialFocus(el).focus({ preventScroll: true })\n onCleanup(() => {\n const restore = () => {\n const active = document.activeElement\n const lost = !active || active === document.body || el.contains(active)\n if (lost) returnDrawerFocus(trigger, el, root)\n }\n if (unmounting) restoreAfterUnmount = () => whenDetached(el, restore)\n else restore()\n })\n },\n { flush: \"post\", immediate: true },\n )\n\n const el = drawer.value\n const root = el?.closest<HTMLElement>(\"[data-mobile-menu]\")\n if (!el || !root) return\n detachSwipe = attachDrawerSwipe({\n root,\n drawer: el,\n isOpen: () => sidebar.openMobile,\n setOpen: (open) => sidebar.setOpenMobile(open),\n enabled: () => sidebar.isMobile,\n })\n })\n onBeforeUnmount(() => {\n unmounting = true\n detachSwipe?.()\n })\n onUnmounted(() => {\n restoreAfterUnmount?.()\n restoreAfterUnmount = undefined\n })\n\n const onDrawerKeydown = (event: KeyboardEvent) => {\n const el = drawer.value\n if (!sidebar.openMobile || !el) return\n loopDrawerFocus(event, el)\n closeOnUnhandledEscape(event, el, () => sidebar.setOpenMobile(false))\n }\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n const { onKeydown: userKeydown, ...drawerAttrs } = rest\n const contained = props.contained && s.contained\n const open = sidebar.openMobile\n return [\n // Backdrop\n h(\"div\", {\n \"class\": [s.MobileBackdrop, contained],\n \"onClick\": () => sidebar.setOpenMobile(false),\n \"aria-hidden\": \"true\",\n }),\n // Drawer\n h(\n \"div\",\n {\n \"ref\": setDrawer,\n \"role\": \"dialog\",\n \"aria-modal\": open ? \"true\" : undefined,\n \"aria-label\": \"Menu\",\n \"tabindex\": -1,\n \"inert\": open ? undefined : \"\",\n ...drawerAttrs,\n \"class\": [s.MobileSidebar, contained, className],\n // Your handler runs first and can keep the drawer open with preventDefault(), as onKeyDown in React\n \"onKeydown\": (event: KeyboardEvent) => {\n for (const handler of [userKeydown].flat()) if (typeof handler === \"function\") handler(event)\n onDrawerKeydown(event)\n },\n },\n slots.default?.(),\n ),\n ]\n }\n },\n})\n\nexport type SidebarMobileProps = InstanceType<typeof SidebarMobileComponent>[\"$props\"] & HTMLAttributes\n\nexport const SidebarMobile = SidebarMobileComponent as typeof SidebarMobileComponent & {\n new (): { $props: SidebarMobileProps }\n}\n\nexport type SidebarMobileHeaderProps = HTMLAttributes\n\nexport const SidebarMobileHeader = part<SidebarMobileHeaderProps>(\"SidebarMobileHeader\", \"div\", s.MobileHeader)\n\nexport type SidebarMobileFooterProps = HTMLAttributes\n\nexport const SidebarMobileFooter = part<SidebarMobileFooterProps>(\"SidebarMobileFooter\", \"div\", s.MobileFooter)\n\n// =============================================\n// Input (Search)\n// =============================================\n\nexport type SidebarInputProps = InputProps\n\n/**\n * Search input: an Input with a Search icon in its `startAdornment` slot.\n * Every attribute, listener and slot goes to the Input (`v-model:value`,\n * `@clear`, ...). A template ref gets the Input's `focus()` and `input`\n * (React forwards its ref to the <input>).\n */\nexport const SidebarInput = defineComponent({\n name: \"SidebarInput\",\n inheritAttrs: false,\n setup(_props, { attrs, slots, expose }) {\n // Input's exposed API\n const inputComponent = ref<{ input: HTMLInputElement | null; focus: () => void } | null>(null)\n\n expose({\n focus: () => inputComponent.value?.focus(),\n input: computed(() => inputComponent.value?.input ?? null),\n })\n\n return () => {\n const { className, rest } = cleanAttrs(attrs)\n return h(\"div\", { class: s.Input }, [\n h(\n Input,\n { class: className, ...rest, ref: inputComponent },\n { ...slots, startAdornment: slots.startAdornment ?? (() => h(SearchIcon)) },\n ),\n ])\n }\n },\n}) as unknown as typeof Input\n\n// =============================================\n// Footer Links\n// =============================================\n\nexport type SidebarFooterLinksProps = HTMLAttributes\n\nexport const SidebarFooterLinks = part<SidebarFooterLinksProps>(\"SidebarFooterLinks\", \"div\", s.FooterLinks)\n"]}
|
|
@@ -16,7 +16,7 @@ SidebarInput, SidebarInset, SidebarLayout,
|
|
|
16
16
|
// Menu
|
|
17
17
|
SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuButtonIcon, SidebarMenuButtonLabel, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSkeleton,
|
|
18
18
|
// Submenu
|
|
19
|
-
SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader,
|
|
19
|
+
SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonLabel, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader,
|
|
20
20
|
// Mobile
|
|
21
21
|
SidebarMobileMenuButton,
|
|
22
22
|
// Provider and composable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,oEAAoE;AAEpE,OAAO;AACL,OAAO;AACP,OAAO;AACP,OAAO;AACP,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,aAAa;AACb,eAAe;AACf,kBAAkB;AAClB,SAAS;AACT,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB;AACjB,WAAW;AACX,aAAa;AACb,QAAQ;AACR,YAAY,EACZ,YAAY,EACZ,aAAa;AACb,OAAO;AACP,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB;AACnB,UAAU;AACV,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,mBAAmB;AACnB,SAAS;AACT,uBAAuB;AACvB,0BAA0B;AAC1B,eAAe,EACf,WAAW;AACX,YAAY;AACZ,gBAAgB;AAChB,UAAU;AACV,cAAc,EACd,UAAU,GACX,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,oEAAoE;AAEpE,OAAO;AACL,OAAO;AACP,OAAO;AACP,OAAO;AACP,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,aAAa;AACb,eAAe;AACf,kBAAkB;AAClB,SAAS;AACT,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB;AACjB,WAAW;AACX,aAAa;AACb,QAAQ;AACR,YAAY,EACZ,YAAY,EACZ,aAAa;AACb,OAAO;AACP,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB;AACnB,UAAU;AACV,cAAc,EACd,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,mBAAmB;AACnB,SAAS;AACT,uBAAuB;AACvB,0BAA0B;AAC1B,eAAe,EACf,WAAW;AACX,YAAY;AACZ,gBAAgB;AAChB,UAAU;AACV,cAAc,EACd,UAAU,GACX,MAAM,cAAc,CAAA;AAqDrB,mBAAmB;AACnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA","sourcesContent":["// Sidebar Component - Composable navigation sidebar\n// Re-export all components from Sidebar.ts and useSidebarContext.ts\n\nexport {\n // Core\n Sidebar,\n // Card\n SidebarCard,\n SidebarCardContent,\n SidebarCardFooter,\n SidebarCardHeader,\n SidebarCardTitle,\n SidebarCardTitleLink,\n SidebarContent,\n SidebarFooter,\n // Footer Links\n SidebarFooterLinks,\n // Groups\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n // Sections\n SidebarHeader,\n // Input\n SidebarInput,\n SidebarInset,\n SidebarLayout,\n // Menu\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuButtonIcon,\n SidebarMenuButtonLabel,\n SidebarMenuChevron,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n // Submenu\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubButtonLabel,\n SidebarMenuSubItem,\n SidebarMobile,\n SidebarMobileFooter,\n SidebarMobileHeader,\n // Mobile\n SidebarMobileMenuButton,\n // Provider and composable\n SidebarProvider,\n SidebarRail,\n // Separator\n SidebarSeparator,\n // Trigger\n SidebarTrigger,\n useSidebar,\n} from \"./Sidebar.js\"\n\n// Export types\nexport type {\n SidebarCardContentProps,\n SidebarCardFooterProps,\n SidebarCardHeaderProps,\n SidebarCardProps,\n SidebarCardTitleLinkProps,\n SidebarCardTitleProps,\n // Context types\n SidebarCollapsible,\n SidebarContentProps,\n SidebarFooterLinksProps,\n SidebarFooterProps,\n SidebarGroupActionProps,\n SidebarGroupContentProps,\n SidebarGroupLabelProps,\n SidebarGroupProps,\n SidebarHeaderProps,\n SidebarInputProps,\n SidebarInsetProps,\n SidebarLayoutProps,\n SidebarMenuActionProps,\n SidebarMenuBadgeProps,\n SidebarMenuButtonIconProps,\n SidebarMenuButtonLabelProps,\n SidebarMenuButtonProps,\n SidebarMenuChevronProps,\n SidebarMenuItemProps,\n SidebarMenuProps,\n SidebarMenuSkeletonProps,\n SidebarMenuSubButtonProps,\n SidebarMenuSubButtonLabelProps,\n SidebarMenuSubItemProps,\n SidebarMenuSubProps,\n SidebarMobileFooterProps,\n SidebarMobileHeaderProps,\n SidebarMobileMenuButtonProps,\n SidebarMobileProps,\n // Component props\n SidebarProps,\n SidebarRailProps,\n SidebarSeparatorProps,\n SidebarSide,\n SidebarTriggerProps,\n SidebarProviderVariant,\n SidebarVariant,\n} from \"./Sidebar.js\"\n\n// Export provider props and context types\nexport type { SidebarContextValue, SidebarProviderProps, SidebarState } from \"./useSidebarContext.js\"\n\n// Export constants\nexport { SIDEBAR_CONSTANTS } from \"./useSidebarContext.js\"\n"]}
|
|
@@ -308,6 +308,7 @@ export { default as Key } from "./svg/Key.js";
|
|
|
308
308
|
export { default as Keyboard } from "./svg/Keyboard.js";
|
|
309
309
|
export { default as KeyboardShortcut } from "./svg/KeyboardShortcut.js";
|
|
310
310
|
export { default as Language } from "./svg/Language.js";
|
|
311
|
+
export { default as LayoutGrid } from "./svg/LayoutGrid.js";
|
|
311
312
|
export { default as LayoutList } from "./svg/LayoutList.js";
|
|
312
313
|
export { default as Latency } from "./svg/Latency.js";
|
|
313
314
|
export { default as Lightbulb } from "./svg/Lightbulb.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ArrayIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default ArrayIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const BooleanIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default BooleanIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ClipboardIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default ClipboardIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const CommentIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default CommentIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ErrorIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default ErrorIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const FunctionIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default FunctionIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const NumberIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default NumberIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ObjectIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default ObjectIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const ReportIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default ReportIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const StorageIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default StorageIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const StringIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default StringIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FunctionalComponent, type SVGAttributes } from "vue";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const TextIcon: FunctionalComponent<SVGAttributes>;
|
|
3
|
+
export default TextIcon;
|
|
@@ -14,7 +14,7 @@ declare const PageComponent: import("vue").DefineComponent<import("vue").Extract
|
|
|
14
14
|
/**
|
|
15
15
|
* Width of the column that header and content share: `"full"` (edge to
|
|
16
16
|
* edge, for tables), `"wide"` (1280px, centred, for overviews) or `"column"`
|
|
17
|
-
* (
|
|
17
|
+
* (672px, the readable width of iOS, centred, for settings and forms). Set `--page-width` on the page
|
|
18
18
|
* for any other width.
|
|
19
19
|
* @default "full"
|
|
20
20
|
*/
|
|
@@ -33,7 +33,7 @@ declare const PageComponent: import("vue").DefineComponent<import("vue").Extract
|
|
|
33
33
|
/**
|
|
34
34
|
* Width of the column that header and content share: `"full"` (edge to
|
|
35
35
|
* edge, for tables), `"wide"` (1280px, centred, for overviews) or `"column"`
|
|
36
|
-
* (
|
|
36
|
+
* (672px, the readable width of iOS, centred, for settings and forms). Set `--page-width` on the page
|
|
37
37
|
* for any other width.
|
|
38
38
|
* @default "full"
|
|
39
39
|
*/
|
|
@@ -110,6 +110,14 @@ declare const SidebarGroupLabelComponent: DefineComponent<import("vue").ExtractP
|
|
|
110
110
|
type: PropType<"sm" | "lg">;
|
|
111
111
|
default: string;
|
|
112
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Starts the label 12px in, at the rows' text. Off, it starts at the group's edge: a label over a panel of fields.
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
inset: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
113
121
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
114
122
|
[key: string]: any;
|
|
115
123
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -128,9 +136,18 @@ declare const SidebarGroupLabelComponent: DefineComponent<import("vue").ExtractP
|
|
|
128
136
|
type: PropType<"sm" | "lg">;
|
|
129
137
|
default: string;
|
|
130
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Starts the label 12px in, at the rows' text. Off, it starts at the group's edge: a label over a panel of fields.
|
|
141
|
+
* @default true
|
|
142
|
+
*/
|
|
143
|
+
inset: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
131
147
|
}>> & Readonly<{}>, {
|
|
132
148
|
asChild: boolean;
|
|
133
149
|
size: "sm" | "lg";
|
|
150
|
+
inset: boolean;
|
|
134
151
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
152
|
export type SidebarGroupLabelProps = InstanceType<typeof SidebarGroupLabelComponent>["$props"] & HTMLAttributes;
|
|
136
153
|
/** Section label within a SidebarGroup. */
|
|
@@ -369,6 +386,9 @@ export declare const SidebarMenuSubButton: typeof SidebarMenuSubButtonComponent
|
|
|
369
386
|
$props: SidebarMenuSubButtonProps;
|
|
370
387
|
};
|
|
371
388
|
};
|
|
389
|
+
export type SidebarMenuSubButtonLabelProps = HTMLAttributes;
|
|
390
|
+
/** The text of a SidebarMenuSubButton: it fills the row, starts at its start and ends in an ellipsis. */
|
|
391
|
+
export declare const SidebarMenuSubButtonLabel: Part<HTMLAttributes>;
|
|
372
392
|
export type SidebarSeparatorProps = HTMLAttributes;
|
|
373
393
|
export declare const SidebarSeparator: ReturnType<typeof part<SidebarSeparatorProps>>;
|
|
374
394
|
declare const SidebarCardComponent: DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Sidebar, SidebarCard, SidebarCardContent, SidebarCardFooter, SidebarCardHeader, SidebarCardTitle, SidebarCardTitleLink, SidebarContent, SidebarFooter, SidebarFooterLinks, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuButtonIcon, SidebarMenuButtonLabel, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader, SidebarMobileMenuButton, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./Sidebar.js";
|
|
2
|
-
export type { SidebarCardContentProps, SidebarCardFooterProps, SidebarCardHeaderProps, SidebarCardProps, SidebarCardTitleLinkProps, SidebarCardTitleProps, SidebarCollapsible, SidebarContentProps, SidebarFooterLinksProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarLayoutProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonIconProps, SidebarMenuButtonLabelProps, SidebarMenuButtonProps, SidebarMenuChevronProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarMobileFooterProps, SidebarMobileHeaderProps, SidebarMobileMenuButtonProps, SidebarMobileProps, SidebarProps, SidebarRailProps, SidebarSeparatorProps, SidebarSide, SidebarTriggerProps, SidebarProviderVariant, SidebarVariant, } from "./Sidebar.js";
|
|
1
|
+
export { Sidebar, SidebarCard, SidebarCardContent, SidebarCardFooter, SidebarCardHeader, SidebarCardTitle, SidebarCardTitleLink, SidebarContent, SidebarFooter, SidebarFooterLinks, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuButtonIcon, SidebarMenuButtonLabel, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonLabel, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader, SidebarMobileMenuButton, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./Sidebar.js";
|
|
2
|
+
export type { SidebarCardContentProps, SidebarCardFooterProps, SidebarCardHeaderProps, SidebarCardProps, SidebarCardTitleLinkProps, SidebarCardTitleProps, SidebarCollapsible, SidebarContentProps, SidebarFooterLinksProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarLayoutProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonIconProps, SidebarMenuButtonLabelProps, SidebarMenuButtonProps, SidebarMenuChevronProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubButtonLabelProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarMobileFooterProps, SidebarMobileHeaderProps, SidebarMobileMenuButtonProps, SidebarMobileProps, SidebarProps, SidebarRailProps, SidebarSeparatorProps, SidebarSide, SidebarTriggerProps, SidebarProviderVariant, SidebarVariant, } from "./Sidebar.js";
|
|
3
3
|
export type { SidebarContextValue, SidebarProviderProps, SidebarState } from "./useSidebarContext.js";
|
|
4
4
|
export { SIDEBAR_CONSTANTS } from "./useSidebarContext.js";
|