@kayord/ui 2.1.13 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion/accordion-content.svelte +7 -2
- package/dist/components/ui/accordion/accordion-item.svelte +1 -1
- package/dist/components/ui/accordion/accordion-trigger.svelte +9 -3
- package/dist/components/ui/accordion/accordion.svelte +14 -2
- package/dist/components/ui/alert/alert-action.svelte +15 -0
- package/dist/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-description.svelte +1 -1
- package/dist/components/ui/alert/alert-title.svelte +4 -1
- package/dist/components/ui/alert/alert.svelte +2 -2
- package/dist/components/ui/alert/alert.svelte.d.ts +2 -2
- package/dist/components/ui/alert/index.d.ts +2 -1
- package/dist/components/ui/alert/index.js +3 -2
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte +12 -3
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +6 -1
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte +12 -3
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +6 -1
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte +4 -1
- package/dist/components/ui/alert-dialog/alert-dialog-media.svelte +23 -0
- package/dist/components/ui/alert-dialog/alert-dialog-media.svelte.d.ts +5 -0
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte +4 -1
- package/dist/components/ui/alert-dialog/index.d.ts +2 -1
- package/dist/components/ui/alert-dialog/index.js +3 -2
- package/dist/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte +4 -1
- package/dist/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-image.svelte +1 -1
- package/dist/components/ui/avatar/avatar.svelte +9 -2
- package/dist/components/ui/avatar/avatar.svelte.d.ts +4 -1
- package/dist/components/ui/avatar/index.d.ts +4 -1
- package/dist/components/ui/avatar/index.js +5 -2
- package/dist/components/ui/badge/badge.svelte +7 -5
- package/dist/components/ui/badge/badge.svelte.d.ts +8 -2
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +3 -3
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte +1 -6
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.svelte +8 -1
- package/dist/components/ui/button/button.svelte +18 -13
- package/dist/components/ui/button/button.svelte.d.ts +11 -5
- package/dist/components/ui/button-group/button-group-separator.svelte +4 -1
- package/dist/components/ui/button-group/button-group-text.svelte +2 -1
- package/dist/components/ui/button-group/button-group.svelte +3 -3
- package/dist/components/ui/button-group/button-group.svelte.d.ts +2 -2
- package/dist/components/ui/button-group/index.d.ts +2 -2
- package/dist/components/ui/button-group/index.js +2 -2
- package/dist/components/ui/calendar/calendar-cell.svelte +1 -1
- package/dist/components/ui/calendar/calendar-day.svelte +4 -6
- package/dist/components/ui/calendar/calendar-grid.svelte +1 -5
- package/dist/components/ui/calendar/calendar-month-select.svelte +2 -2
- package/dist/components/ui/calendar/calendar-month.svelte +1 -1
- package/dist/components/ui/calendar/calendar-next-button.svelte +7 -2
- package/dist/components/ui/calendar/calendar-prev-button.svelte +7 -2
- package/dist/components/ui/calendar/calendar-year-select.svelte +1 -1
- package/dist/components/ui/calendar/calendar.svelte +1 -1
- package/dist/components/ui/card/card-action.svelte +1 -1
- package/dist/components/ui/card/card-content.svelte +6 -1
- package/dist/components/ui/card/card-footer.svelte +1 -1
- package/dist/components/ui/card/card-header.svelte +1 -1
- package/dist/components/ui/card/card-title.svelte +6 -1
- package/dist/components/ui/card/card.svelte +7 -2
- package/dist/components/ui/card/card.svelte.d.ts +4 -1
- package/dist/components/ui/carousel/carousel-next.svelte +5 -4
- package/dist/components/ui/carousel/carousel-previous.svelte +5 -4
- package/dist/components/ui/carousel/carousel.svelte +1 -0
- package/dist/components/ui/chart/chart-container.svelte +1 -1
- package/dist/components/ui/chart/chart-tooltip.svelte +1 -0
- package/dist/components/ui/checkbox/checkbox.svelte +5 -5
- package/dist/components/ui/command/command-dialog.svelte +12 -10
- package/dist/components/ui/command/command-dialog.svelte.d.ts +3 -1
- package/dist/components/ui/command/command-group.svelte +4 -1
- package/dist/components/ui/command/command-input.svelte +17 -13
- package/dist/components/ui/command/command-item.svelte +9 -3
- package/dist/components/ui/command/command-list.svelte +1 -1
- package/dist/components/ui/command/command-shortcut.svelte +4 -1
- package/dist/components/ui/command/command.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +7 -4
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +1 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-item.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-label.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +9 -5
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +5 -1
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +4 -1
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +1 -1
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +3 -3
- package/dist/components/ui/context-menu/context-menu-trigger.svelte +8 -2
- package/dist/components/ui/dialog/dialog-close.svelte +2 -2
- package/dist/components/ui/dialog/dialog-content.svelte +10 -7
- package/dist/components/ui/dialog/dialog-description.svelte +4 -1
- package/dist/components/ui/dialog/dialog-footer.svelte +17 -2
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +4 -1
- package/dist/components/ui/dialog/dialog-header.svelte +1 -6
- package/dist/components/ui/dialog/dialog-overlay.svelte +1 -1
- package/dist/components/ui/dialog/dialog-title.svelte +1 -1
- package/dist/components/ui/dialog/dialog-trigger.svelte +2 -2
- package/dist/components/ui/drawer/drawer-content.svelte +2 -6
- package/dist/components/ui/drawer/drawer-header.svelte +9 -1
- package/dist/components/ui/drawer/drawer-overlay.svelte +1 -1
- package/dist/components/ui/drawer/drawer-title.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +9 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +3 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +7 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +4 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +2 -2
- package/dist/components/ui/empty/empty-content.svelte +1 -1
- package/dist/components/ui/empty/empty-description.svelte +1 -1
- package/dist/components/ui/empty/empty-header.svelte +1 -1
- package/dist/components/ui/empty/empty-media.svelte +1 -1
- package/dist/components/ui/empty/empty-title.svelte +1 -1
- package/dist/components/ui/empty/empty.svelte +1 -1
- package/dist/components/ui/field/field-content.svelte +1 -1
- package/dist/components/ui/field/field-description.svelte +2 -2
- package/dist/components/ui/field/field-error.svelte +1 -1
- package/dist/components/ui/field/field-group.svelte +1 -1
- package/dist/components/ui/field/field-label.svelte +2 -3
- package/dist/components/ui/field/field-legend.svelte +1 -1
- package/dist/components/ui/field/field-separator.svelte +1 -1
- package/dist/components/ui/field/field-set.svelte +1 -2
- package/dist/components/ui/field/field-title.svelte +1 -1
- package/dist/components/ui/field/field.svelte +6 -12
- package/dist/components/ui/field/field.svelte.d.ts +8 -8
- package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/input/input.svelte +2 -6
- package/dist/components/ui/input-group/input-group-addon.svelte +5 -5
- package/dist/components/ui/input-group/input-group-addon.svelte.d.ts +2 -2
- package/dist/components/ui/input-group/input-group-button.svelte +4 -4
- package/dist/components/ui/input-group/input-group-button.svelte.d.ts +2 -2
- package/dist/components/ui/input-group/input-group-input.svelte +1 -1
- package/dist/components/ui/input-group/input-group-textarea.svelte +1 -1
- package/dist/components/ui/input-group/input-group.svelte +1 -15
- package/dist/components/ui/input-otp/input-otp-group.svelte +9 -1
- package/dist/components/ui/input-otp/input-otp-separator.svelte +14 -2
- package/dist/components/ui/input-otp/input-otp-slot.svelte +3 -5
- package/dist/components/ui/input-otp/input-otp.svelte +5 -1
- package/dist/components/ui/item/item-content.svelte +4 -1
- package/dist/components/ui/item/item-description.svelte +1 -2
- package/dist/components/ui/item/item-group.svelte +4 -1
- package/dist/components/ui/item/item-media.svelte +4 -3
- package/dist/components/ui/item/item-media.svelte.d.ts +2 -2
- package/dist/components/ui/item/item-separator.svelte +1 -1
- package/dist/components/ui/item/item-title.svelte +4 -1
- package/dist/components/ui/item/item.svelte +6 -5
- package/dist/components/ui/item/item.svelte.d.ts +5 -2
- package/dist/components/ui/kbd/kbd.svelte +1 -3
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte +13 -8
- package/dist/components/ui/menubar/menubar-checkbox-item.svelte.d.ts +1 -0
- package/dist/components/ui/menubar/menubar-content.svelte +2 -2
- package/dist/components/ui/menubar/menubar-item.svelte +1 -1
- package/dist/components/ui/menubar/menubar-label.svelte +1 -1
- package/dist/components/ui/menubar/menubar-radio-item.svelte +11 -5
- package/dist/components/ui/menubar/menubar-radio-item.svelte.d.ts +5 -1
- package/dist/components/ui/menubar/menubar-shortcut.svelte +4 -1
- package/dist/components/ui/menubar/menubar-sub-content.svelte +1 -1
- package/dist/components/ui/menubar/menubar-sub-trigger.svelte +3 -3
- package/dist/components/ui/menubar/menubar-trigger.svelte +1 -1
- package/dist/components/ui/menubar/menubar.svelte +1 -1
- package/dist/components/ui/native-select/native-select.svelte +15 -10
- package/dist/components/ui/native-select/native-select.svelte.d.ts +4 -1
- package/dist/components/ui/navigation-menu/navigation-menu-content.svelte +1 -2
- package/dist/components/ui/navigation-menu/navigation-menu-indicator.svelte +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu-item.svelte +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu-link.svelte +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu-list.svelte +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu-trigger.svelte +2 -4
- package/dist/components/ui/navigation-menu/navigation-menu-trigger.svelte.d.ts +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu-viewport.svelte +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.svelte +1 -2
- package/dist/components/ui/pagination/index.d.ts +4 -4
- package/dist/components/ui/pagination/index.js +4 -4
- package/dist/components/ui/pagination/pagination-content.svelte +1 -6
- package/dist/components/ui/pagination/pagination-ellipsis.svelte +7 -4
- package/dist/components/ui/pagination/pagination-ellipsis.svelte.d.ts +1 -1
- package/dist/components/ui/pagination/pagination-link.svelte +14 -15
- package/dist/components/ui/pagination/pagination-link.svelte.d.ts +3 -2
- package/dist/components/ui/pagination/pagination-next-button.svelte +9 -11
- package/dist/components/ui/pagination/pagination-next.svelte +10 -20
- package/dist/components/ui/pagination/pagination-next.svelte.d.ts +13 -2
- package/dist/components/ui/pagination/pagination-prev-button.svelte +9 -11
- package/dist/components/ui/pagination/pagination-previous.svelte +10 -20
- package/dist/components/ui/pagination/pagination-previous.svelte.d.ts +13 -2
- package/dist/components/ui/pagination/pagination.svelte +1 -1
- package/dist/components/ui/popover/index.d.ts +4 -1
- package/dist/components/ui/popover/index.js +5 -2
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/popover/popover-description.svelte +15 -0
- package/dist/components/ui/popover/popover-description.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-header.svelte +15 -0
- package/dist/components/ui/popover/popover-header.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-title.svelte +15 -0
- package/dist/components/ui/popover/popover-title.svelte.d.ts +5 -0
- package/dist/components/ui/progress/progress.svelte +2 -2
- package/dist/components/ui/radio-group/radio-group-item.svelte +5 -3
- package/dist/components/ui/radio-group/radio-group.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +4 -7
- package/dist/components/ui/range-calendar/range-calendar-month-select.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +7 -2
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +7 -2
- package/dist/components/ui/range-calendar/range-calendar-year-select.svelte +1 -1
- package/dist/components/ui/range-calendar/range-calendar.svelte +1 -1
- package/dist/components/ui/resizable/resizable-handle.svelte +2 -5
- package/dist/components/ui/resizable/resizable-pane-group.svelte +2 -1
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +2 -3
- package/dist/components/ui/scroll-area/scroll-area.svelte +1 -1
- package/dist/components/ui/select/select-content.svelte +2 -2
- package/dist/components/ui/select/select-group.svelte +3 -2
- package/dist/components/ui/select/select-item.svelte +3 -3
- package/dist/components/ui/select/select-label.svelte +1 -1
- package/dist/components/ui/select/select-scroll-down-button.svelte +6 -3
- package/dist/components/ui/select/select-scroll-up-button.svelte +6 -3
- package/dist/components/ui/select/select-trigger.svelte +3 -3
- package/dist/components/ui/separator/separator.svelte +3 -1
- package/dist/components/ui/sheet/sheet-content.svelte +20 -27
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +2 -24
- package/dist/components/ui/sheet/sheet-header.svelte +1 -1
- package/dist/components/ui/sheet/sheet-overlay.svelte +1 -4
- package/dist/components/ui/sheet/sheet-title.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-content.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-group-action.svelte +1 -4
- package/dist/components/ui/sidebar/sidebar-group-label.svelte +1 -2
- package/dist/components/ui/sidebar/sidebar-inset.svelte +1 -2
- package/dist/components/ui/sidebar/sidebar-menu-action.svelte +2 -8
- package/dist/components/ui/sidebar/sidebar-menu-badge.svelte +1 -6
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte +2 -2
- package/dist/components/ui/sidebar/sidebar-menu-button.svelte.d.ts +2 -2
- package/dist/components/ui/sidebar/sidebar-menu-sub-button.svelte +1 -5
- package/dist/components/ui/sidebar/sidebar-menu-sub.svelte +1 -2
- package/dist/components/ui/sidebar/sidebar-menu.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-rail.svelte +4 -4
- package/dist/components/ui/sidebar/sidebar-separator.svelte +1 -1
- package/dist/components/ui/sidebar/sidebar-trigger.svelte +4 -3
- package/dist/components/ui/sidebar/sidebar.svelte +3 -3
- package/dist/components/ui/skeleton/skeleton.svelte +1 -1
- package/dist/components/ui/slider/slider.svelte +8 -8
- package/dist/components/ui/sonner/sonner.svelte +6 -6
- package/dist/components/ui/spinner/spinner.svelte +18 -4
- package/dist/components/ui/spinner/spinner.svelte.d.ts +2 -1
- package/dist/components/ui/stepper/ctx.d.ts +8 -0
- package/dist/components/ui/stepper/ctx.js +8 -0
- package/dist/components/ui/stepper/index.d.ts +8 -0
- package/dist/components/ui/stepper/index.js +8 -0
- package/dist/components/ui/stepper/stepper-description.svelte +7 -0
- package/dist/components/ui/stepper/stepper-description.svelte.d.ts +8 -0
- package/dist/components/ui/stepper/stepper-indicator.svelte +45 -0
- package/dist/components/ui/stepper/stepper-indicator.svelte.d.ts +10 -0
- package/dist/components/ui/stepper/stepper-item.svelte +33 -0
- package/dist/components/ui/stepper/stepper-item.svelte.d.ts +9 -0
- package/dist/components/ui/stepper/stepper-separator.svelte +28 -0
- package/dist/components/ui/stepper/stepper-separator.svelte.d.ts +6 -0
- package/dist/components/ui/stepper/stepper-title.svelte +7 -0
- package/dist/components/ui/stepper/stepper-title.svelte.d.ts +8 -0
- package/dist/components/ui/stepper/stepper-trigger.svelte +35 -0
- package/dist/components/ui/stepper/stepper-trigger.svelte.d.ts +10 -0
- package/dist/components/ui/stepper/stepper.svelte +35 -0
- package/dist/components/ui/stepper/stepper.svelte.d.ts +10 -0
- package/dist/components/ui/switch/switch.svelte +7 -5
- package/dist/components/ui/switch/switch.svelte.d.ts +5 -1
- package/dist/components/ui/table/table-cell.svelte +1 -1
- package/dist/components/ui/table/table-head.svelte +1 -1
- package/dist/components/ui/table/table-row.svelte +1 -4
- package/dist/components/ui/tabs/index.d.ts +2 -2
- package/dist/components/ui/tabs/index.js +2 -2
- package/dist/components/ui/tabs/tabs-content.svelte +6 -1
- package/dist/components/ui/tabs/tabs-list.svelte +29 -5
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +22 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte +4 -1
- package/dist/components/ui/tabs/tabs.svelte +7 -1
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte +5 -5
- package/dist/components/ui/toggle/toggle.svelte.d.ts +2 -2
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +1 -1
- package/dist/components/ui/toggle-group/toggle-group.svelte +21 -5
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +2 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +6 -6
- package/dist/components/ui/tooltip/tooltip-provider.svelte +2 -2
- package/dist/components/ui/tooltip/tooltip.svelte +4 -1
- package/package.json +15 -15
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
bind:ref
|
|
19
19
|
data-slot="navigation-menu"
|
|
20
20
|
data-viewport={viewport}
|
|
21
|
-
class={cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className)}
|
|
21
|
+
class={cn("group/navigation-menu relative flex max-w-max max-w-max flex-1 items-center justify-center", className)}
|
|
22
22
|
{...restProps}
|
|
23
23
|
>
|
|
24
24
|
{@render children?.()}
|
|
25
|
-
|
|
26
25
|
{#if viewport}
|
|
27
26
|
<NavigationMenuViewport />
|
|
28
27
|
{/if}
|
|
@@ -7,8 +7,8 @@ import NextButton from "./pagination-next-button.svelte";
|
|
|
7
7
|
import Ellipsis from "./pagination-ellipsis.svelte";
|
|
8
8
|
import Previous from "./pagination-previous.svelte";
|
|
9
9
|
import Next from "./pagination-next.svelte";
|
|
10
|
-
export { Root, Content, Item, Link, PrevButton, //old
|
|
11
|
-
NextButton, //old
|
|
12
|
-
Ellipsis, Previous, Next, Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, //old
|
|
13
|
-
NextButton as PaginationNextButton, //old
|
|
10
|
+
export { Root, Content, Item, Link, PrevButton, // old
|
|
11
|
+
NextButton, // old
|
|
12
|
+
Ellipsis, Previous, Next, Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, // old
|
|
13
|
+
NextButton as PaginationNextButton, // old
|
|
14
14
|
Ellipsis as PaginationEllipsis, Previous as PaginationPrevious, Next as PaginationNext, };
|
|
@@ -7,10 +7,10 @@ import NextButton from "./pagination-next-button.svelte";
|
|
|
7
7
|
import Ellipsis from "./pagination-ellipsis.svelte";
|
|
8
8
|
import Previous from "./pagination-previous.svelte";
|
|
9
9
|
import Next from "./pagination-next.svelte";
|
|
10
|
-
export { Root, Content, Item, Link, PrevButton, //old
|
|
11
|
-
NextButton, //old
|
|
10
|
+
export { Root, Content, Item, Link, PrevButton, // old
|
|
11
|
+
NextButton, // old
|
|
12
12
|
Ellipsis, Previous, Next,
|
|
13
13
|
//
|
|
14
|
-
Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, //old
|
|
15
|
-
NextButton as PaginationNextButton, //old
|
|
14
|
+
Root as Pagination, Content as PaginationContent, Item as PaginationItem, Link as PaginationLink, PrevButton as PaginationPrevButton, // old
|
|
15
|
+
NextButton as PaginationNextButton, // old
|
|
16
16
|
Ellipsis as PaginationEllipsis, Previous as PaginationPrevious, Next as PaginationNext, };
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
}: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<ul
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="pagination-content"
|
|
16
|
-
class={cn("flex flex-row items-center gap-1", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
13
|
+
<ul bind:this={ref} data-slot="pagination-content" class={cn("flex items-center gap-0.5", className)} {...restProps}>
|
|
19
14
|
{@render children?.()}
|
|
20
15
|
</ul>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import EllipsisIcon from "@lucide/svelte/icons/ellipsis";
|
|
3
|
-
import { cn, type WithElementRef, type WithoutChildren } from "../../../utils.js";
|
|
4
2
|
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef, type WithoutChildren } from "../../../utils.js";
|
|
4
|
+
import MoreHorizontalIcon from "@lucide/svelte/icons/more-horizontal";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
bind:this={ref}
|
|
15
15
|
aria-hidden="true"
|
|
16
16
|
data-slot="pagination-ellipsis"
|
|
17
|
-
class={cn(
|
|
17
|
+
class={cn(
|
|
18
|
+
"flex size-8 items-center items-center justify-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
19
|
+
className
|
|
20
|
+
)}
|
|
18
21
|
{...restProps}
|
|
19
22
|
>
|
|
20
|
-
<
|
|
23
|
+
<MoreHorizontalIcon />
|
|
21
24
|
<span class="sr-only">More pages</span>
|
|
22
25
|
</span>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type WithElementRef } from "../../../utils.js";
|
|
2
1
|
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
import { type WithElementRef } from "../../../utils.js";
|
|
3
3
|
declare const PaginationEllipsis: import("svelte").Component<Omit<WithElementRef<HTMLAttributes<HTMLSpanElement>>, "children">, {}, "ref">;
|
|
4
4
|
type PaginationEllipsis = ReturnType<typeof PaginationEllipsis>;
|
|
5
5
|
export default PaginationEllipsis;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import { cn } from "../../../utils.js";
|
|
4
|
-
import { type
|
|
5
|
-
|
|
4
|
+
import { buttonVariants, type ButtonSize } from "../button/index.js";
|
|
6
5
|
let {
|
|
7
6
|
ref = $bindable(null),
|
|
8
7
|
class: className,
|
|
@@ -11,10 +10,10 @@
|
|
|
11
10
|
page,
|
|
12
11
|
children,
|
|
13
12
|
...restProps
|
|
14
|
-
}: PaginationPrimitive.PageProps &
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
}: PaginationPrimitive.PageProps & {
|
|
14
|
+
size?: ButtonSize;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
} = $props();
|
|
18
17
|
</script>
|
|
19
18
|
|
|
20
19
|
{#snippet Fallback()}
|
|
@@ -27,13 +26,13 @@
|
|
|
27
26
|
aria-current={isActive ? "page" : undefined}
|
|
28
27
|
data-slot="pagination-link"
|
|
29
28
|
data-active={isActive}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
variant: isActive ? "outline" : "ghost",
|
|
33
|
-
size,
|
|
34
|
-
}),
|
|
35
|
-
className
|
|
36
|
-
)}
|
|
37
|
-
children={children || Fallback}
|
|
29
|
+
data-size={size}
|
|
30
|
+
class={cn(buttonVariants({ size, variant: isActive ? "outline" : "ghost" }), "cn-pagination-link", className)}
|
|
38
31
|
{...restProps}
|
|
39
|
-
|
|
32
|
+
>
|
|
33
|
+
{#if children}
|
|
34
|
+
{@render children?.()}
|
|
35
|
+
{:else}
|
|
36
|
+
{@render Fallback()}
|
|
37
|
+
{/if}
|
|
38
|
+
</PaginationPrimitive.Page>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
2
|
-
import { type
|
|
3
|
-
type $$ComponentProps = PaginationPrimitive.PageProps &
|
|
2
|
+
import { type ButtonSize } from "../button/index.js";
|
|
3
|
+
type $$ComponentProps = PaginationPrimitive.PageProps & {
|
|
4
|
+
size?: ButtonSize;
|
|
4
5
|
isActive: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const PaginationLink: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from "../button/index.js";
|
|
5
4
|
import { cn } from "../../../utils.js";
|
|
5
|
+
import { buttonVariants } from "../button/index.js";
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -20,14 +20,12 @@
|
|
|
20
20
|
<PaginationPrimitive.NextButton
|
|
21
21
|
bind:ref
|
|
22
22
|
aria-label="Go to next page"
|
|
23
|
-
class={cn(
|
|
24
|
-
buttonVariants({
|
|
25
|
-
size: "default",
|
|
26
|
-
variant: "ghost",
|
|
27
|
-
class: "gap-1 px-2.5 sm:pe-2.5",
|
|
28
|
-
}),
|
|
29
|
-
className
|
|
30
|
-
)}
|
|
31
|
-
children={children || Fallback}
|
|
23
|
+
class={cn(buttonVariants({ variant: "ghost" }), "pr-1.5!", className)}
|
|
32
24
|
{...restProps}
|
|
33
|
-
|
|
25
|
+
>
|
|
26
|
+
{#if children}
|
|
27
|
+
{@render children?.()}
|
|
28
|
+
{:else}
|
|
29
|
+
{@render Fallback()}
|
|
30
|
+
{/if}
|
|
31
|
+
</PaginationPrimitive.NextButton>
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { buttonVariants } from "../button/index.js";
|
|
2
|
+
import type { ComponentProps } from "svelte";
|
|
5
3
|
import { cn } from "../../../utils.js";
|
|
4
|
+
import { PaginationLink } from "./index.js";
|
|
5
|
+
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
6
|
+
|
|
7
|
+
type PaginationNextProps = ComponentProps<typeof PaginationLink>;
|
|
6
8
|
|
|
7
|
-
let {
|
|
9
|
+
let { class: className, ...restProps }: PaginationNextProps = $props();
|
|
8
10
|
</script>
|
|
9
11
|
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
buttonVariants({
|
|
15
|
-
size: "default",
|
|
16
|
-
variant: "ghost",
|
|
17
|
-
class: "gap-1 px-2.5 sm:pe-2.5",
|
|
18
|
-
}),
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
>
|
|
23
|
-
<span class="hidden sm:block">Next</span>
|
|
24
|
-
<ChevronRightIcon /></PaginationPrimitive.NextButton
|
|
25
|
-
>
|
|
12
|
+
<PaginationLink aria-label="Go to next page" size="default" class={cn("pr-1.5!", className)} {...restProps}>
|
|
13
|
+
<span class="cn-pagination-next-text hidden sm:block">Next</span>
|
|
14
|
+
<ChevronRightIcon data-icon="inline-end" />
|
|
15
|
+
</PaginationLink>
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const PaginationNext: import("svelte").Component<Omit<{
|
|
2
|
+
page: import("bits-ui").Page;
|
|
3
|
+
}, "child" | "children"> & {
|
|
4
|
+
child?: import("svelte").Snippet<[{
|
|
5
|
+
props: Record<string, unknown>;
|
|
6
|
+
}]> | undefined;
|
|
7
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
8
|
+
style?: import("bits-ui").StyleProperties | string | null | undefined;
|
|
9
|
+
ref?: HTMLElement | null | undefined;
|
|
10
|
+
} & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
|
|
11
|
+
size?: import("../button/button.svelte.js").ButtonSize;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}, {}, "">;
|
|
3
14
|
type PaginationNext = ReturnType<typeof PaginationNext>;
|
|
4
15
|
export default PaginationNext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
|
3
3
|
import ChevronLeftIcon from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from "../button/index.js";
|
|
5
4
|
import { cn } from "../../../utils.js";
|
|
5
|
+
import { buttonVariants } from "../button/index.js";
|
|
6
6
|
|
|
7
7
|
let {
|
|
8
8
|
ref = $bindable(null),
|
|
@@ -20,14 +20,12 @@
|
|
|
20
20
|
<PaginationPrimitive.PrevButton
|
|
21
21
|
bind:ref
|
|
22
22
|
aria-label="Go to previous page"
|
|
23
|
-
class={cn(
|
|
24
|
-
buttonVariants({
|
|
25
|
-
size: "default",
|
|
26
|
-
variant: "ghost",
|
|
27
|
-
class: "gap-1 px-2.5 sm:ps-2.5",
|
|
28
|
-
}),
|
|
29
|
-
className
|
|
30
|
-
)}
|
|
31
|
-
children={children || Fallback}
|
|
23
|
+
class={cn(buttonVariants({ variant: "ghost" }), "pl-1.5!", className)}
|
|
32
24
|
{...restProps}
|
|
33
|
-
|
|
25
|
+
>
|
|
26
|
+
{#if children}
|
|
27
|
+
{@render children?.()}
|
|
28
|
+
{:else}
|
|
29
|
+
{@render Fallback()}
|
|
30
|
+
{/if}
|
|
31
|
+
</PaginationPrimitive.PrevButton>
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import ChevronLeftIcon from "@lucide/svelte/icons/chevron-left";
|
|
4
|
-
import { buttonVariants } from "../button/index.js";
|
|
2
|
+
import type { ComponentProps } from "svelte";
|
|
5
3
|
import { cn } from "../../../utils.js";
|
|
4
|
+
import { PaginationLink } from "./index.js";
|
|
5
|
+
import ChevronLeftIcon from "@lucide/svelte/icons/chevron-left";
|
|
6
|
+
|
|
7
|
+
type PaginationPreviousProps = ComponentProps<typeof PaginationLink>;
|
|
6
8
|
|
|
7
|
-
let {
|
|
9
|
+
let { class: className, ...restProps }: PaginationPreviousProps = $props();
|
|
8
10
|
</script>
|
|
9
11
|
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
buttonVariants({
|
|
15
|
-
size: "default",
|
|
16
|
-
variant: "ghost",
|
|
17
|
-
class: "gap-1 px-2.5 sm:ps-2.5",
|
|
18
|
-
}),
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
>
|
|
23
|
-
<ChevronLeftIcon />
|
|
24
|
-
<span class="hidden sm:block">Previous</span></PaginationPrimitive.PrevButton
|
|
25
|
-
>
|
|
12
|
+
<PaginationLink aria-label="Go to previous page" size="default" class={cn("pl-1.5!", className)} {...restProps}>
|
|
13
|
+
<ChevronLeftIcon data-icon="inline-start" />
|
|
14
|
+
<span class="cn-pagination-previous-text hidden sm:block">Previous</span>
|
|
15
|
+
</PaginationLink>
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const PaginationPrevious: import("svelte").Component<Omit<{
|
|
2
|
+
page: import("bits-ui").Page;
|
|
3
|
+
}, "child" | "children"> & {
|
|
4
|
+
child?: import("svelte").Snippet<[{
|
|
5
|
+
props: Record<string, unknown>;
|
|
6
|
+
}]> | undefined;
|
|
7
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
8
|
+
style?: import("bits-ui").StyleProperties | string | null | undefined;
|
|
9
|
+
ref?: HTMLElement | null | undefined;
|
|
10
|
+
} & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
|
|
11
|
+
size?: import("../button/button.svelte.js").ButtonSize;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}, {}, "">;
|
|
3
14
|
type PaginationPrevious = ReturnType<typeof PaginationPrevious>;
|
|
4
15
|
export default PaginationPrevious;
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
role="navigation"
|
|
21
21
|
aria-label="pagination"
|
|
22
22
|
data-slot="pagination"
|
|
23
|
-
class={cn("mx-auto flex w-full justify-center", className)}
|
|
24
23
|
{count}
|
|
25
24
|
{perPage}
|
|
26
25
|
{siblingCount}
|
|
26
|
+
class={cn("cn-pagination mx-auto flex w-full justify-center", className)}
|
|
27
27
|
{...restProps}
|
|
28
28
|
/>
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import Root from "./popover.svelte";
|
|
2
2
|
import Close from "./popover-close.svelte";
|
|
3
3
|
import Content from "./popover-content.svelte";
|
|
4
|
+
import Description from "./popover-description.svelte";
|
|
5
|
+
import Header from "./popover-header.svelte";
|
|
6
|
+
import Title from "./popover-title.svelte";
|
|
4
7
|
import Trigger from "./popover-trigger.svelte";
|
|
5
8
|
import Portal from "./popover-portal.svelte";
|
|
6
|
-
export { Root, Content, Trigger, Close, Portal, Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal, };
|
|
9
|
+
export { Root, Content, Description, Header, Title, Trigger, Close, Portal, Root as Popover, Content as PopoverContent, Description as PopoverDescription, Header as PopoverHeader, Title as PopoverTitle, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal, };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import Root from "./popover.svelte";
|
|
2
2
|
import Close from "./popover-close.svelte";
|
|
3
3
|
import Content from "./popover-content.svelte";
|
|
4
|
+
import Description from "./popover-description.svelte";
|
|
5
|
+
import Header from "./popover-header.svelte";
|
|
6
|
+
import Title from "./popover-title.svelte";
|
|
4
7
|
import Trigger from "./popover-trigger.svelte";
|
|
5
8
|
import Portal from "./popover-portal.svelte";
|
|
6
|
-
export { Root, Content, Trigger, Close, Portal,
|
|
9
|
+
export { Root, Content, Description, Header, Title, Trigger, Close, Portal,
|
|
7
10
|
//
|
|
8
|
-
Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal, };
|
|
11
|
+
Root as Popover, Content as PopoverContent, Description as PopoverDescription, Header as PopoverHeader, Title as PopoverTitle, Trigger as PopoverTrigger, Close as PopoverClose, Portal as PopoverPortal, };
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{sideOffset}
|
|
24
24
|
{align}
|
|
25
25
|
class={cn(
|
|
26
|
-
"bg-popover text-popover-foreground data-
|
|
26
|
+
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
29
29
|
{...restProps}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div bind:this={ref} data-slot="popover-description" class={cn("text-muted-foreground", className)} {...restProps}>
|
|
14
|
+
{@render children?.()}
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
import { type WithElementRef } from "../../../utils.js";
|
|
3
|
+
declare const PopoverDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type PopoverDescription = ReturnType<typeof PopoverDescription>;
|
|
5
|
+
export default PopoverDescription;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div bind:this={ref} data-slot="popover-header" class={cn("flex flex-col gap-0.5 text-sm", className)} {...restProps}>
|
|
14
|
+
{@render children?.()}
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
import { type WithElementRef } from "../../../utils.js";
|
|
3
|
+
declare const PopoverHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type PopoverHeader = ReturnType<typeof PopoverHeader>;
|
|
5
|
+
export default PopoverHeader;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
ref = $bindable(null),
|
|
7
|
+
class: className,
|
|
8
|
+
children,
|
|
9
|
+
...restProps
|
|
10
|
+
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<div bind:this={ref} data-slot="popover-title" class={cn("font-medium", className)} {...restProps}>
|
|
14
|
+
{@render children?.()}
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
import { type WithElementRef } from "../../../utils.js";
|
|
3
|
+
declare const PopoverTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
|
+
type PopoverTitle = ReturnType<typeof PopoverTitle>;
|
|
5
|
+
export default PopoverTitle;
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
<ProgressPrimitive.Root
|
|
15
15
|
bind:ref
|
|
16
16
|
data-slot="progress"
|
|
17
|
-
class={cn("bg-
|
|
17
|
+
class={cn("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", className)}
|
|
18
18
|
{value}
|
|
19
19
|
{max}
|
|
20
20
|
{...restProps}
|
|
21
21
|
>
|
|
22
22
|
<div
|
|
23
23
|
data-slot="progress-indicator"
|
|
24
|
-
class="bg-primary
|
|
24
|
+
class="bg-primary size-full flex-1 transition-all"
|
|
25
25
|
style="transform: translateX(-{100 - (100 * (value ?? 0)) / (max ?? 1)}%)"
|
|
26
26
|
></div>
|
|
27
27
|
</ProgressPrimitive.Root>
|
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
bind:ref
|
|
15
15
|
data-slot="radio-group-item"
|
|
16
16
|
class={cn(
|
|
17
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive
|
|
17
|
+
"border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
18
18
|
className
|
|
19
19
|
)}
|
|
20
20
|
{...restProps}
|
|
21
21
|
>
|
|
22
22
|
{#snippet children({ checked })}
|
|
23
|
-
<div data-slot="radio-group-indicator" class="
|
|
23
|
+
<div data-slot="radio-group-indicator" class="flex size-4 items-center justify-center">
|
|
24
24
|
{#if checked}
|
|
25
|
-
<CircleIcon
|
|
25
|
+
<CircleIcon
|
|
26
|
+
class="bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full"
|
|
27
|
+
/>
|
|
26
28
|
{/if}
|
|
27
29
|
</div>
|
|
28
30
|
{/snippet}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<RangeCalendarPrimitive.Cell
|
|
9
9
|
bind:ref
|
|
10
10
|
class={cn(
|
|
11
|
-
"dark:[&:has([data-range-start])]:hover:bg-accent dark:[&:has([data-range-end])]:hover:bg-accent [&:has([data-range-middle])]:bg-accent dark:[&:has([data-range-middle])]:hover:bg-accent/50 [&:has([data-selected])]:bg-accent relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 data-[range-middle]:rounded-e-
|
|
11
|
+
"dark:[&:has([data-range-start])]:hover:bg-accent dark:[&:has([data-range-end])]:hover:bg-accent [&:has([data-range-middle])]:bg-accent dark:[&:has([data-range-middle])]:hover:bg-accent/50 [&:has([data-selected])]:bg-accent relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 data-[range-middle]:rounded-e-(--cell-radius) [&:first-child[data-selected]_[data-bits-day]]:rounded-s-(--cell-radius) [&:has([data-range-end])]:rounded-e-(--cell-radius) [&:has([data-range-middle])]:rounded-none first:[&:has([data-range-middle])]:rounded-s-(--cell-radius) last:[&:has([data-range-middle])]:rounded-e-(--cell-radius) [&:has([data-range-start])]:rounded-s-(--cell-radius) [&:last-child[data-selected]_[data-bits-day]]:rounded-e-(--cell-radius)",
|
|
12
12
|
className
|
|
13
13
|
)}
|
|
14
14
|
{...restProps}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
|
|
3
|
-
import { buttonVariants } from "../button/index.js";
|
|
4
3
|
import { cn } from "../../../utils.js";
|
|
5
4
|
|
|
6
5
|
let { ref = $bindable(null), class: className, ...restProps }: RangeCalendarPrimitive.DayProps = $props();
|
|
@@ -9,13 +8,13 @@
|
|
|
9
8
|
<RangeCalendarPrimitive.Day
|
|
10
9
|
bind:ref
|
|
11
10
|
class={cn(
|
|
12
|
-
|
|
13
|
-
"
|
|
11
|
+
"flex size-(--cell-size) flex-col items-center justify-center gap-1 rounded-(--cell-radius) p-0 leading-none font-normal whitespace-nowrap select-none",
|
|
12
|
+
"not-data-selected:hover:bg-accent/50 not-data-selected:hover:text-accent-foreground",
|
|
14
13
|
"[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground data-[range-middle]:rounded-none",
|
|
15
14
|
// range Start
|
|
16
|
-
"data-[range-start]:bg-primary
|
|
15
|
+
"data-[range-start]:bg-primary data-[range-start]:text-primary-foreground data-[range-start]:hover:text-foreground",
|
|
17
16
|
// range End
|
|
18
|
-
"data-[range-end]:bg-primary
|
|
17
|
+
"data-[range-end]:bg-primary data-[range-end]:text-primary-foreground data-[range-end]:hover:text-foreground",
|
|
19
18
|
// Outside months
|
|
20
19
|
"[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground",
|
|
21
20
|
// Disabled
|
|
@@ -23,8 +22,6 @@
|
|
|
23
22
|
// Unavailable
|
|
24
23
|
"data-[unavailable]:line-through",
|
|
25
24
|
"dark:data-[range-middle]:hover:bg-accent/0",
|
|
26
|
-
// hover
|
|
27
|
-
"dark:hover:text-accent-foreground",
|
|
28
25
|
// focus
|
|
29
26
|
"focus:border-ring focus:ring-ring/50 focus:relative",
|
|
30
27
|
// inner spans
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{/each}
|
|
32
32
|
</select>
|
|
33
33
|
<span
|
|
34
|
-
class="[&>svg]:text-muted-foreground flex h-
|
|
34
|
+
class="[&>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5"
|
|
35
35
|
aria-hidden="true"
|
|
36
36
|
>
|
|
37
37
|
{monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
29
|
-
children={children || Fallback}
|
|
30
29
|
{...restProps}
|
|
31
|
-
|
|
30
|
+
>
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children?.()}
|
|
33
|
+
{:else}
|
|
34
|
+
{@render Fallback()}
|
|
35
|
+
{/if}
|
|
36
|
+
</RangeCalendarPrimitive.NextButton>
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
29
|
-
children={children || Fallback}
|
|
30
29
|
{...restProps}
|
|
31
|
-
|
|
30
|
+
>
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children?.()}
|
|
33
|
+
{:else}
|
|
34
|
+
{@render Fallback()}
|
|
35
|
+
{/if}
|
|
36
|
+
</RangeCalendarPrimitive.PrevButton>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
{/each}
|
|
31
31
|
</select>
|
|
32
32
|
<span
|
|
33
|
-
class="[&>svg]:text-muted-foreground flex h-
|
|
33
|
+
class="[&>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5"
|
|
34
34
|
aria-hidden="true"
|
|
35
35
|
>
|
|
36
36
|
{yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
{weekdayFormat}
|
|
47
47
|
{disableDaysOutsideMonth}
|
|
48
48
|
class={cn(
|
|
49
|
-
"bg-background group/calendar p-3 [--cell-size:--spacing(
|
|
49
|
+
"bg-background group/calendar p-2 p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
50
50
|
className
|
|
51
51
|
)}
|
|
52
52
|
{locale}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import GripVerticalIcon from "@lucide/svelte/icons/grip-vertical";
|
|
3
2
|
import * as ResizablePrimitive from "paneforge";
|
|
4
3
|
import { cn, type WithoutChildrenOrChild } from "../../../utils.js";
|
|
5
4
|
|
|
@@ -17,14 +16,12 @@
|
|
|
17
16
|
bind:ref
|
|
18
17
|
data-slot="resizable-handle"
|
|
19
18
|
class={cn(
|
|
20
|
-
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:
|
|
19
|
+
"cn-resizable-handle bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[direction=vertical]:h-px data-[direction=vertical]:w-full data-[direction=vertical]:after:left-0 data-[direction=vertical]:after:h-1 data-[direction=vertical]:after:w-full data-[direction=vertical]:after:translate-x-0 data-[direction=vertical]:after:-translate-y-1/2 [&[data-direction=vertical]>div]:rotate-90",
|
|
21
20
|
className
|
|
22
21
|
)}
|
|
23
22
|
{...restProps}
|
|
24
23
|
>
|
|
25
24
|
{#if withHandle}
|
|
26
|
-
<div class="bg-border z-10 flex h-
|
|
27
|
-
<GripVerticalIcon class="size-2.5" />
|
|
28
|
-
</div>
|
|
25
|
+
<div class="bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg"></div>
|
|
29
26
|
{/if}
|
|
30
27
|
</ResizablePrimitive.PaneResizer>
|