@tanglemedia/svelte-starter-ui-shadcn 0.0.2 → 0.0.4
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/lib/components/ui/alert-dialog/alert-dialog-action.svelte +2 -1
- package/dist/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +1 -1
- package/dist/lib/components/ui/calendar/calendar-day.svelte +1 -1
- package/dist/lib/components/ui/calendar/calendar-next-button.svelte +1 -1
- package/dist/lib/components/ui/calendar/calendar-prev-button.svelte +1 -1
- package/dist/lib/components/ui/pagination/pagination-next-button.svelte +1 -1
- package/dist/lib/components/ui/pagination/pagination-prev-button.svelte +1 -1
- package/dist/lib/components/ui/range-calendar/range-calendar-day.svelte +1 -1
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.svelte +1 -1
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.svelte +1 -1
- package/dist/lib/components/ui/sidebar/index.d.ts +25 -25
- package/dist/lib/components/ui/sidebar/index.js +26 -25
- package/dist/lib/components/ui/sidebar/sidebar-input.svelte.d.ts +1 -1
- package/dist/lib/components/ui/sidebar/sidebar-menu-button.svelte +1 -1
- package/dist/lib/components/ui/sidebar/sidebar-rail.svelte +1 -1
- package/dist/lib/components/ui/sidebar/sidebar-trigger.svelte +1 -1
- package/dist/lib/components/ui/sidebar/sidebar.svelte +1 -1
- package/package.json +1 -1
- package/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte +2 -1
- package/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +1 -1
- package/src/lib/components/ui/calendar/calendar-day.svelte +1 -1
- package/src/lib/components/ui/calendar/calendar-next-button.svelte +1 -1
- package/src/lib/components/ui/calendar/calendar-prev-button.svelte +1 -1
- package/src/lib/components/ui/carousel/carousel-next.svelte +1 -1
- package/src/lib/components/ui/carousel/carousel-previous.svelte +1 -1
- package/src/lib/components/ui/command/command-dialog.svelte +1 -1
- package/src/lib/components/ui/form/form-button.svelte +1 -1
- package/src/lib/components/ui/form/form-label.svelte +1 -1
- package/src/lib/components/ui/pagination/pagination-link.svelte +1 -1
- package/src/lib/components/ui/pagination/pagination-next-button.svelte +1 -1
- package/src/lib/components/ui/pagination/pagination-prev-button.svelte +1 -1
- package/src/lib/components/ui/range-calendar/range-calendar-day.svelte +1 -1
- package/src/lib/components/ui/range-calendar/range-calendar-next-button.svelte +1 -1
- package/src/lib/components/ui/range-calendar/range-calendar-prev-button.svelte +1 -1
- package/src/lib/components/ui/select/select-separator.svelte +1 -1
- package/src/lib/components/ui/sidebar/index.ts +73 -72
- package/src/lib/components/ui/sidebar/sidebar-input.svelte +1 -1
- package/src/lib/components/ui/sidebar/sidebar-menu-button.svelte +2 -2
- package/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte +1 -1
- package/src/lib/components/ui/sidebar/sidebar-provider.svelte +1 -1
- package/src/lib/components/ui/sidebar/sidebar-rail.svelte +1 -1
- package/src/lib/components/ui/sidebar/sidebar-separator.svelte +1 -1
- package/src/lib/components/ui/sidebar/sidebar-trigger.svelte +2 -2
- package/src/lib/components/ui/sidebar/sidebar.svelte +2 -2
- package/src/lib/components/ui/toggle-group/toggle-group-item.svelte +1 -1
- package/src/lib/components/ui/toggle-group/toggle-group.svelte +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
|
3
|
-
import { buttonVariants } from
|
|
3
|
+
// import { buttonVariants } from '../button/index';
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
4
5
|
import { cn } from "../../../utils";
|
|
5
6
|
|
|
6
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
|
-
import { buttonVariants } from
|
|
5
|
+
import { buttonVariants } from '../button/index';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
|
-
import { buttonVariants } from
|
|
5
|
+
import { buttonVariants } from '../button/index';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useSidebar } from
|
|
2
|
-
import Content from
|
|
3
|
-
import Footer from
|
|
4
|
-
import GroupAction from
|
|
5
|
-
import GroupContent from
|
|
6
|
-
import GroupLabel from
|
|
7
|
-
import Group from
|
|
8
|
-
import Header from
|
|
9
|
-
import Input from
|
|
10
|
-
import Inset from
|
|
11
|
-
import MenuAction from
|
|
12
|
-
import MenuBadge from
|
|
13
|
-
import MenuButton from
|
|
14
|
-
import MenuItem from
|
|
15
|
-
import MenuSkeleton from
|
|
16
|
-
import MenuSubButton from
|
|
17
|
-
import MenuSubItem from
|
|
18
|
-
import MenuSub from
|
|
19
|
-
import Menu from
|
|
20
|
-
import Provider from
|
|
21
|
-
import Rail from
|
|
22
|
-
import Separator from
|
|
23
|
-
import Trigger from
|
|
24
|
-
import Root from
|
|
25
|
-
export { Content, Footer, Group, GroupAction, GroupContent, GroupLabel, Header, Input, Inset, Menu, MenuAction, MenuBadge, MenuButton, MenuItem, MenuSkeleton, MenuSub, MenuSubButton, MenuSubItem, Provider, Rail, Root, Separator, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, GroupContent as SidebarGroupContent, GroupLabel as SidebarGroupLabel, Header as SidebarHeader, Input as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, Trigger, useSidebar
|
|
1
|
+
import { useSidebar } from './context.svelte';
|
|
2
|
+
import Content from './sidebar-content.svelte';
|
|
3
|
+
import Footer from './sidebar-footer.svelte';
|
|
4
|
+
import GroupAction from './sidebar-group-action.svelte';
|
|
5
|
+
import GroupContent from './sidebar-group-content.svelte';
|
|
6
|
+
import GroupLabel from './sidebar-group-label.svelte';
|
|
7
|
+
import Group from './sidebar-group.svelte';
|
|
8
|
+
import Header from './sidebar-header.svelte';
|
|
9
|
+
import Input from './sidebar-input.svelte';
|
|
10
|
+
import Inset from './sidebar-inset.svelte';
|
|
11
|
+
import MenuAction from './sidebar-menu-action.svelte';
|
|
12
|
+
import MenuBadge from './sidebar-menu-badge.svelte';
|
|
13
|
+
import MenuButton from './sidebar-menu-button.svelte';
|
|
14
|
+
import MenuItem from './sidebar-menu-item.svelte';
|
|
15
|
+
import MenuSkeleton from './sidebar-menu-skeleton.svelte';
|
|
16
|
+
import MenuSubButton from './sidebar-menu-sub-button.svelte';
|
|
17
|
+
import MenuSubItem from './sidebar-menu-sub-item.svelte';
|
|
18
|
+
import MenuSub from './sidebar-menu-sub.svelte';
|
|
19
|
+
import Menu from './sidebar-menu.svelte';
|
|
20
|
+
import Provider from './sidebar-provider.svelte';
|
|
21
|
+
import Rail from './sidebar-rail.svelte';
|
|
22
|
+
import Separator from './sidebar-separator.svelte';
|
|
23
|
+
import Trigger from './sidebar-trigger.svelte';
|
|
24
|
+
import Root from './sidebar.svelte';
|
|
25
|
+
export { Content, Footer, Group, GroupAction, GroupContent, GroupLabel, Header, Input, Inset, Menu, MenuAction, MenuBadge, MenuButton, MenuItem, MenuSkeleton, MenuSub, MenuSubButton, MenuSubItem, Provider, Rail, Root, Separator, Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, GroupContent as SidebarGroupContent, GroupLabel as SidebarGroupLabel, Header as SidebarHeader, Input as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, Trigger, useSidebar };
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { useSidebar } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
1
|
+
// import { useSidebar } from './context.svelte.js';
|
|
2
|
+
import { useSidebar } from './context.svelte';
|
|
3
|
+
import Content from './sidebar-content.svelte';
|
|
4
|
+
import Footer from './sidebar-footer.svelte';
|
|
5
|
+
import GroupAction from './sidebar-group-action.svelte';
|
|
6
|
+
import GroupContent from './sidebar-group-content.svelte';
|
|
7
|
+
import GroupLabel from './sidebar-group-label.svelte';
|
|
8
|
+
import Group from './sidebar-group.svelte';
|
|
9
|
+
import Header from './sidebar-header.svelte';
|
|
10
|
+
import Input from './sidebar-input.svelte';
|
|
11
|
+
import Inset from './sidebar-inset.svelte';
|
|
12
|
+
import MenuAction from './sidebar-menu-action.svelte';
|
|
13
|
+
import MenuBadge from './sidebar-menu-badge.svelte';
|
|
14
|
+
import MenuButton from './sidebar-menu-button.svelte';
|
|
15
|
+
import MenuItem from './sidebar-menu-item.svelte';
|
|
16
|
+
import MenuSkeleton from './sidebar-menu-skeleton.svelte';
|
|
17
|
+
import MenuSubButton from './sidebar-menu-sub-button.svelte';
|
|
18
|
+
import MenuSubItem from './sidebar-menu-sub-item.svelte';
|
|
19
|
+
import MenuSub from './sidebar-menu-sub.svelte';
|
|
20
|
+
import Menu from './sidebar-menu.svelte';
|
|
21
|
+
import Provider from './sidebar-provider.svelte';
|
|
22
|
+
import Rail from './sidebar-rail.svelte';
|
|
23
|
+
import Separator from './sidebar-separator.svelte';
|
|
24
|
+
import Trigger from './sidebar-trigger.svelte';
|
|
25
|
+
import Root from './sidebar.svelte';
|
|
25
26
|
export { Content, Footer, Group, GroupAction, GroupContent, GroupLabel, Header, Input, Inset, Menu, MenuAction, MenuBadge, MenuButton, MenuItem, MenuSkeleton, MenuSub, MenuSubButton, MenuSubItem, Provider, Rail, Root, Separator,
|
|
26
27
|
//
|
|
27
|
-
Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, GroupContent as SidebarGroupContent, GroupLabel as SidebarGroupLabel, Header as SidebarHeader, Input as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, Trigger, useSidebar
|
|
28
|
+
Root as Sidebar, Content as SidebarContent, Footer as SidebarFooter, Group as SidebarGroup, GroupAction as SidebarGroupAction, GroupContent as SidebarGroupContent, GroupLabel as SidebarGroupLabel, Header as SidebarHeader, Input as SidebarInput, Inset as SidebarInset, Menu as SidebarMenu, MenuAction as SidebarMenuAction, MenuBadge as SidebarMenuBadge, MenuButton as SidebarMenuButton, MenuItem as SidebarMenuItem, MenuSkeleton as SidebarMenuSkeleton, MenuSub as SidebarMenuSub, MenuSubButton as SidebarMenuSubButton, MenuSubItem as SidebarMenuSubItem, Provider as SidebarProvider, Rail as SidebarRail, Separator as SidebarSeparator, Trigger as SidebarTrigger, Trigger, useSidebar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SidebarInput: import("svelte").Component<(Omit<import("svelte/elements").HTMLInputAttributes, "type"> & ({
|
|
1
|
+
declare const SidebarInput: import("svelte").Component<(Omit<import("svelte/elements.js").HTMLInputAttributes, "type"> & ({
|
|
2
2
|
type: "file";
|
|
3
3
|
files?: FileList;
|
|
4
4
|
} | {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
import { mergeProps, type WithElementRef, type WithoutChildrenOrChild } from "bits-ui";
|
|
34
34
|
import type { ComponentProps, Snippet } from "svelte";
|
|
35
35
|
import type { HTMLAttributes } from "svelte/elements";
|
|
36
|
-
import { useSidebar } from
|
|
36
|
+
import { useSidebar } from './context.svelte';
|
|
37
37
|
|
|
38
38
|
let {
|
|
39
39
|
ref = $bindable(null),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../../../utils";
|
|
3
3
|
import type { WithElementRef } from "bits-ui";
|
|
4
4
|
import type { HTMLAttributes } from "svelte/elements";
|
|
5
|
-
import { useSidebar } from
|
|
5
|
+
import { useSidebar } from './context.svelte';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
4
|
import PanelLeft from "@lucide/svelte/icons/panel-left";
|
|
5
5
|
import type { ComponentProps } from "svelte";
|
|
6
|
-
import { useSidebar } from
|
|
6
|
+
import { useSidebar } from './context.svelte';
|
|
7
7
|
|
|
8
8
|
let {
|
|
9
9
|
ref = $bindable(null),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { WithElementRef } from "bits-ui";
|
|
5
5
|
import type { HTMLAttributes } from "svelte/elements";
|
|
6
6
|
import { SIDEBAR_WIDTH_MOBILE } from "./constants.js";
|
|
7
|
-
import { useSidebar } from
|
|
7
|
+
import { useSidebar } from './context.svelte';
|
|
8
8
|
|
|
9
9
|
let {
|
|
10
10
|
ref = $bindable(null),
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
|
3
|
-
import { buttonVariants } from
|
|
3
|
+
// import { buttonVariants } from '../button/index';
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
4
5
|
import { cn } from "../../../utils";
|
|
5
6
|
|
|
6
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { WithoutChildren } from "bits-ui";
|
|
4
4
|
import { getEmblaContext } from "./context.js";
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
|
-
import { Button, type Props } from "
|
|
6
|
+
import { Button, type Props } from "../button/index.js";
|
|
7
7
|
|
|
8
8
|
let {
|
|
9
9
|
ref = $bindable(null),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { WithoutChildren } from "bits-ui";
|
|
4
4
|
import { getEmblaContext } from "./context.js";
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
|
-
import { Button, type Props } from "
|
|
6
|
+
import { Button, type Props } from "../button/index.js";
|
|
7
7
|
|
|
8
8
|
let {
|
|
9
9
|
ref = $bindable(null),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
|
-
import { buttonVariants } from
|
|
5
|
+
import { buttonVariants } from '../button/index';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
|
-
import { buttonVariants } from
|
|
5
|
+
import { buttonVariants } from '../button/index';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRight from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from
|
|
4
|
+
import { buttonVariants } from '../button/index';
|
|
5
5
|
import { cn } from "../../../utils";
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
import { useSidebar } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
1
|
+
// import { useSidebar } from './context.svelte.js';
|
|
2
|
+
import { useSidebar } from './context.svelte';
|
|
3
|
+
import Content from './sidebar-content.svelte';
|
|
4
|
+
import Footer from './sidebar-footer.svelte';
|
|
5
|
+
import GroupAction from './sidebar-group-action.svelte';
|
|
6
|
+
import GroupContent from './sidebar-group-content.svelte';
|
|
7
|
+
import GroupLabel from './sidebar-group-label.svelte';
|
|
8
|
+
import Group from './sidebar-group.svelte';
|
|
9
|
+
import Header from './sidebar-header.svelte';
|
|
10
|
+
import Input from './sidebar-input.svelte';
|
|
11
|
+
import Inset from './sidebar-inset.svelte';
|
|
12
|
+
import MenuAction from './sidebar-menu-action.svelte';
|
|
13
|
+
import MenuBadge from './sidebar-menu-badge.svelte';
|
|
14
|
+
import MenuButton from './sidebar-menu-button.svelte';
|
|
15
|
+
import MenuItem from './sidebar-menu-item.svelte';
|
|
16
|
+
import MenuSkeleton from './sidebar-menu-skeleton.svelte';
|
|
17
|
+
import MenuSubButton from './sidebar-menu-sub-button.svelte';
|
|
18
|
+
import MenuSubItem from './sidebar-menu-sub-item.svelte';
|
|
19
|
+
import MenuSub from './sidebar-menu-sub.svelte';
|
|
20
|
+
import Menu from './sidebar-menu.svelte';
|
|
21
|
+
import Provider from './sidebar-provider.svelte';
|
|
22
|
+
import Rail from './sidebar-rail.svelte';
|
|
23
|
+
import Separator from './sidebar-separator.svelte';
|
|
24
|
+
import Trigger from './sidebar-trigger.svelte';
|
|
25
|
+
import Root from './sidebar.svelte';
|
|
25
26
|
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
28
|
+
Content,
|
|
29
|
+
Footer,
|
|
30
|
+
Group,
|
|
31
|
+
GroupAction,
|
|
32
|
+
GroupContent,
|
|
33
|
+
GroupLabel,
|
|
34
|
+
Header,
|
|
35
|
+
Input,
|
|
36
|
+
Inset,
|
|
37
|
+
Menu,
|
|
38
|
+
MenuAction,
|
|
39
|
+
MenuBadge,
|
|
40
|
+
MenuButton,
|
|
41
|
+
MenuItem,
|
|
42
|
+
MenuSkeleton,
|
|
43
|
+
MenuSub,
|
|
44
|
+
MenuSubButton,
|
|
45
|
+
MenuSubItem,
|
|
46
|
+
Provider,
|
|
47
|
+
Rail,
|
|
48
|
+
Root,
|
|
49
|
+
Separator,
|
|
50
|
+
//
|
|
51
|
+
Root as Sidebar,
|
|
52
|
+
Content as SidebarContent,
|
|
53
|
+
Footer as SidebarFooter,
|
|
54
|
+
Group as SidebarGroup,
|
|
55
|
+
GroupAction as SidebarGroupAction,
|
|
56
|
+
GroupContent as SidebarGroupContent,
|
|
57
|
+
GroupLabel as SidebarGroupLabel,
|
|
58
|
+
Header as SidebarHeader,
|
|
59
|
+
Input as SidebarInput,
|
|
60
|
+
Inset as SidebarInset,
|
|
61
|
+
Menu as SidebarMenu,
|
|
62
|
+
MenuAction as SidebarMenuAction,
|
|
63
|
+
MenuBadge as SidebarMenuBadge,
|
|
64
|
+
MenuButton as SidebarMenuButton,
|
|
65
|
+
MenuItem as SidebarMenuItem,
|
|
66
|
+
MenuSkeleton as SidebarMenuSkeleton,
|
|
67
|
+
MenuSub as SidebarMenuSub,
|
|
68
|
+
MenuSubButton as SidebarMenuSubButton,
|
|
69
|
+
MenuSubItem as SidebarMenuSubItem,
|
|
70
|
+
Provider as SidebarProvider,
|
|
71
|
+
Rail as SidebarRail,
|
|
72
|
+
Separator as SidebarSeparator,
|
|
73
|
+
Trigger as SidebarTrigger,
|
|
74
|
+
Trigger,
|
|
75
|
+
useSidebar
|
|
75
76
|
};
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<script lang="ts">
|
|
31
|
-
import * as Tooltip from "
|
|
31
|
+
import * as Tooltip from "../tooltip/index.js";
|
|
32
32
|
import { cn } from "../../../utils";
|
|
33
33
|
import { mergeProps, type WithElementRef, type WithoutChildrenOrChild } from "bits-ui";
|
|
34
34
|
import type { ComponentProps, Snippet } from "svelte";
|
|
35
35
|
import type { HTMLAttributes } from "svelte/elements";
|
|
36
|
-
import { useSidebar } from
|
|
36
|
+
import { useSidebar } from './context.svelte';
|
|
37
37
|
|
|
38
38
|
let {
|
|
39
39
|
ref = $bindable(null),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Skeleton } from "
|
|
2
|
+
import { Skeleton } from "../skeleton/index.js";
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
4
|
import type { WithElementRef } from "bits-ui";
|
|
5
5
|
import type { HTMLAttributes } from "svelte/elements";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import * as Tooltip from "
|
|
2
|
+
import * as Tooltip from "../tooltip/index.js";
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
4
|
import type { WithElementRef } from "bits-ui";
|
|
5
5
|
import type { HTMLAttributes } from "svelte/elements";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../../../utils";
|
|
3
3
|
import type { WithElementRef } from "bits-ui";
|
|
4
4
|
import type { HTMLAttributes } from "svelte/elements";
|
|
5
|
-
import { useSidebar } from
|
|
5
|
+
import { useSidebar } from './context.svelte';
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Button } from "
|
|
2
|
+
import { Button } from "../button/index.js";
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
4
|
import PanelLeft from "@lucide/svelte/icons/panel-left";
|
|
5
5
|
import type { ComponentProps } from "svelte";
|
|
6
|
-
import { useSidebar } from
|
|
6
|
+
import { useSidebar } from './context.svelte';
|
|
7
7
|
|
|
8
8
|
let {
|
|
9
9
|
ref = $bindable(null),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import * as Sheet from "
|
|
2
|
+
import * as Sheet from "../sheet/index.js";
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
4
|
import type { WithElementRef } from "bits-ui";
|
|
5
5
|
import type { HTMLAttributes } from "svelte/elements";
|
|
6
6
|
import { SIDEBAR_WIDTH_MOBILE } from "./constants.js";
|
|
7
|
-
import { useSidebar } from
|
|
7
|
+
import { useSidebar } from './context.svelte';
|
|
8
8
|
|
|
9
9
|
let {
|
|
10
10
|
ref = $bindable(null),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ToggleGroup as ToggleGroupPrimitive } from "bits-ui";
|
|
3
3
|
import { getToggleGroupCtx } from "./toggle-group.svelte";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
|
-
import { type ToggleVariants, toggleVariants } from "
|
|
5
|
+
import { type ToggleVariants, toggleVariants } from "../toggle/index.js";
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import { getContext, setContext } from "svelte";
|
|
3
|
-
import type { ToggleVariants } from "
|
|
3
|
+
import type { ToggleVariants } from "../toggle/index.js";
|
|
4
4
|
export function setToggleGroupCtx(props: ToggleVariants) {
|
|
5
5
|
setContext("toggleGroup", props);
|
|
6
6
|
}
|