@forthtilliath/forth-ui 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -22
- package/dist/components/accordion/accordion-items.d.ts +1 -1
- package/dist/components/accordion/accordion-items.d.ts.map +1 -1
- package/dist/components/accordion/accordion-items.js +3 -2
- package/dist/components/accordion/accordion-multiple.d.ts +1 -1
- package/dist/components/accordion/accordion-multiple.d.ts.map +1 -1
- package/dist/components/accordion/accordion-multiple.js +2 -2
- package/dist/components/accordion/accordion-single.d.ts +1 -1
- package/dist/components/accordion/accordion-single.d.ts.map +1 -1
- package/dist/components/accordion/accordion-single.js +2 -2
- package/dist/components/accordion/accordion-trigger.d.ts +15 -0
- package/dist/components/accordion/accordion-trigger.d.ts.map +1 -0
- package/dist/components/accordion/accordion-trigger.js +25 -0
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/accordion/types.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +8 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +5 -3
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/alert/variants.d.ts.map +1 -1
- package/dist/components/alert/variants.js +11 -4
- package/dist/components/avatar/avatar-group.d.ts +1 -1
- package/dist/components/avatar/avatar-group.d.ts.map +1 -1
- package/dist/components/avatar/avatar-group.js +1 -1
- package/dist/components/avatar/avatar.d.ts +9 -3
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +7 -4
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/index.d.ts.map +1 -1
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/avatar/variants.d.ts.map +1 -1
- package/dist/components/avatar/variants.js +39 -39
- package/dist/components/badge/badge.d.ts +8 -2
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +5 -3
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/variants.d.ts.map +1 -1
- package/dist/components/badge/variants.js +8 -4
- package/dist/components/banner/banner.d.ts +8 -2
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/components/banner/banner.js +5 -3
- package/dist/components/banner/index.d.ts +3 -3
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/bento-grid/index.d.ts +2 -2
- package/dist/components/bento-grid/index.d.ts.map +1 -1
- package/dist/components/bento-grid/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +8 -3
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/index.d.ts.map +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +5 -5
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts.map +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/chip.d.ts +2 -2
- package/dist/components/chip/chip.d.ts.map +1 -1
- package/dist/components/chip/chip.js +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/code-block/code-block.d.ts +7 -1
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +4 -2
- package/dist/components/code-block/index.d.ts +2 -2
- package/dist/components/code-block/index.d.ts.map +1 -1
- package/dist/components/code-block/index.js +1 -1
- package/dist/components/collapsible/index.d.ts +6 -6
- package/dist/components/collapsible/index.d.ts.map +1 -1
- package/dist/components/collapsible/index.js +3 -3
- package/dist/components/color-picker/color-picker.d.ts +7 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker.js +12 -4
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/column-menu/column-menu.d.ts +1 -1
- package/dist/components/column-menu/column-menu.d.ts.map +1 -1
- package/dist/components/column-menu/column-menu.js +3 -3
- package/dist/components/column-menu/index.d.ts +5 -5
- package/dist/components/column-menu/index.d.ts.map +1 -1
- package/dist/components/column-menu/index.js +3 -3
- package/dist/components/column-menu/sortable-column-row.d.ts +1 -1
- package/dist/components/column-menu/sortable-column-row.d.ts.map +1 -1
- package/dist/components/column-menu/sortable-column-row.js +1 -1
- package/dist/components/combobox/combobox.d.ts +16 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +7 -3
- package/dist/components/combobox/index.d.ts +4 -4
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/multi-select.d.ts +17 -2
- package/dist/components/combobox/multi-select.d.ts.map +1 -1
- package/dist/components/combobox/multi-select.js +8 -4
- package/dist/components/command-palette/command-palette.d.ts +7 -1
- package/dist/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/components/command-palette/command-palette.js +6 -2
- package/dist/components/command-palette/index.d.ts +2 -2
- package/dist/components/command-palette/index.d.ts.map +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +7 -1
- package/dist/components/confirm-dialog/confirm-dialog.d.ts.map +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.js +12 -6
- package/dist/components/confirm-dialog/index.d.ts +3 -3
- package/dist/components/confirm-dialog/index.d.ts.map +1 -1
- package/dist/components/confirm-dialog/index.js +2 -2
- package/dist/components/confirm-dialog/use-confirm.d.ts +1 -1
- package/dist/components/confirm-dialog/use-confirm.d.ts.map +1 -1
- package/dist/components/confirm-dialog/use-confirm.js +1 -1
- package/dist/components/copy-menu-item/copy-menu-item.d.ts +18 -0
- package/dist/components/copy-menu-item/copy-menu-item.d.ts.map +1 -0
- package/dist/components/copy-menu-item/copy-menu-item.js +23 -0
- package/dist/components/copy-menu-item/index.d.ts +3 -0
- package/dist/components/copy-menu-item/index.d.ts.map +1 -0
- package/dist/components/copy-menu-item/index.js +1 -0
- package/dist/components/count-animation/index.d.ts +2 -2
- package/dist/components/count-animation/index.d.ts.map +1 -1
- package/dist/components/count-animation/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +7 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +6 -3
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/description-list/index.d.ts +1 -1
- package/dist/components/description-list/index.d.ts.map +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dropdrawer/index.d.ts +2 -2
- package/dist/components/dropdrawer/index.d.ts.map +1 -1
- package/dist/components/dropdrawer/index.js +1 -1
- package/dist/components/dropzone/dropzone.d.ts +7 -1
- package/dist/components/dropzone/dropzone.d.ts.map +1 -1
- package/dist/components/dropzone/dropzone.js +5 -3
- package/dist/components/dropzone/index.d.ts +2 -2
- package/dist/components/dropzone/index.d.ts.map +1 -1
- package/dist/components/dropzone/index.js +1 -1
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/index.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/file-list/file-list.d.ts +4 -1
- package/dist/components/file-list/file-list.d.ts.map +1 -1
- package/dist/components/file-list/file-list.js +4 -1
- package/dist/components/file-list/index.d.ts +2 -2
- package/dist/components/file-list/index.d.ts.map +1 -1
- package/dist/components/file-list/index.js +1 -1
- package/dist/components/gradient-frame/index.d.ts +2 -2
- package/dist/components/gradient-frame/index.d.ts.map +1 -1
- package/dist/components/gradient-frame/index.js +1 -1
- package/dist/components/grid/context.d.ts.map +1 -1
- package/dist/components/grid/context.js +1 -0
- package/dist/components/grid/grid-item.d.ts +1 -1
- package/dist/components/grid/grid-item.d.ts.map +1 -1
- package/dist/components/grid/grid-item.js +3 -2
- package/dist/components/grid/grid.d.ts +3 -3
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +4 -3
- package/dist/components/grid/index.d.ts +2 -2
- package/dist/components/grid/index.d.ts.map +1 -1
- package/dist/components/grid/index.js +2 -2
- package/dist/components/grid/variants.d.ts +1 -1
- package/dist/components/icon-bubble/icon-bubble.d.ts +1 -1
- package/dist/components/icon-bubble/icon-bubble.d.ts.map +1 -1
- package/dist/components/icon-bubble/icon-bubble.js +1 -1
- package/dist/components/icon-bubble/index.d.ts +3 -3
- package/dist/components/icon-bubble/index.d.ts.map +1 -1
- package/dist/components/icon-bubble/index.js +1 -1
- package/dist/components/image-input/image-input.d.ts +7 -1
- package/dist/components/image-input/image-input.d.ts.map +1 -1
- package/dist/components/image-input/image-input.js +4 -2
- package/dist/components/image-input/index.d.ts +2 -2
- package/dist/components/image-input/index.d.ts.map +1 -1
- package/dist/components/image-input/index.js +1 -1
- package/dist/components/infinite-scroll/index.d.ts +2 -2
- package/dist/components/infinite-scroll/index.d.ts.map +1 -1
- package/dist/components/infinite-scroll/index.js +1 -1
- package/dist/components/kbd/index.d.ts +1 -1
- package/dist/components/kbd/index.d.ts.map +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/link/index.d.ts +6 -6
- package/dist/components/link/index.d.ts.map +1 -1
- package/dist/components/link/index.js +3 -3
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/marquee/index.d.ts.map +1 -1
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/mode-toggle/index.d.ts +4 -0
- package/dist/components/mode-toggle/index.d.ts.map +1 -0
- package/dist/components/mode-toggle/index.js +2 -0
- package/dist/components/mode-toggle/mode-toggle.d.ts +22 -0
- package/dist/components/mode-toggle/mode-toggle.d.ts.map +1 -0
- package/dist/components/mode-toggle/mode-toggle.js +26 -0
- package/dist/components/mode-toggle/theme-provider.d.ts +13 -0
- package/dist/components/mode-toggle/theme-provider.d.ts.map +1 -0
- package/dist/components/mode-toggle/theme-provider.js +15 -0
- package/dist/components/multi-step-loader/index.d.ts +2 -2
- package/dist/components/multi-step-loader/index.d.ts.map +1 -1
- package/dist/components/multi-step-loader/index.js +1 -1
- package/dist/components/multi-step-loader/multi-step-loader.js +2 -2
- package/dist/components/navbar/index.d.ts +4 -4
- package/dist/components/navbar/index.d.ts.map +1 -1
- package/dist/components/navbar/index.js +2 -2
- package/dist/components/navbar/navbar-mobile-menu.d.ts +7 -1
- package/dist/components/navbar/navbar-mobile-menu.d.ts.map +1 -1
- package/dist/components/navbar/navbar-mobile-menu.js +5 -3
- package/dist/components/notification-center/index.d.ts +2 -2
- package/dist/components/notification-center/index.d.ts.map +1 -1
- package/dist/components/notification-center/index.js +1 -1
- package/dist/components/notification-center/notification-center.d.ts +7 -1
- package/dist/components/notification-center/notification-center.d.ts.map +1 -1
- package/dist/components/notification-center/notification-center.js +7 -4
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.d.ts.map +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +11 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/number-input/number-input.js +51 -9
- package/dist/components/pagination/index.d.ts +4 -4
- package/dist/components/pagination/index.d.ts.map +1 -1
- package/dist/components/pagination/index.js +2 -2
- package/dist/components/pagination/pagination.d.ts +8 -2
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +12 -9
- package/dist/components/password-input/index.d.ts +4 -4
- package/dist/components/password-input/index.d.ts.map +1 -1
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/password-input/password-input.d.ts +9 -2
- package/dist/components/password-input/password-input.d.ts.map +1 -1
- package/dist/components/password-input/password-input.js +4 -2
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/progress/index.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.d.ts +5 -2
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/progress/progress.js +5 -3
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/qr-code/index.d.ts.map +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/qr-code.d.ts +7 -1
- package/dist/components/qr-code/qr-code.d.ts.map +1 -1
- package/dist/components/qr-code/qr-code.js +5 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/rating/index.d.ts +2 -2
- package/dist/components/rating/index.d.ts.map +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/rating/rating.d.ts +7 -1
- package/dist/components/rating/rating.d.ts.map +1 -1
- package/dist/components/rating/rating.js +23 -2
- package/dist/components/relative-time/index.d.ts +2 -2
- package/dist/components/relative-time/index.d.ts.map +1 -1
- package/dist/components/relative-time/index.js +1 -1
- package/dist/components/reparent/index.d.ts +2 -2
- package/dist/components/reparent/index.d.ts.map +1 -1
- package/dist/components/reparent/index.js +1 -1
- package/dist/components/repeat/index.d.ts +1 -1
- package/dist/components/repeat/index.d.ts.map +1 -1
- package/dist/components/repeat/index.js +1 -1
- package/dist/components/scroll-progress/index.d.ts +2 -2
- package/dist/components/scroll-progress/index.d.ts.map +1 -1
- package/dist/components/scroll-progress/index.js +1 -1
- package/dist/components/scroll-shadow/index.d.ts +2 -2
- package/dist/components/scroll-shadow/index.d.ts.map +1 -1
- package/dist/components/scroll-shadow/index.js +1 -1
- package/dist/components/scroll-shadow/scroll-shadow.d.ts.map +1 -1
- package/dist/components/scroll-shadow/scroll-shadow.js +3 -1
- package/dist/components/scrollspy/index.d.ts +2 -2
- package/dist/components/scrollspy/index.d.ts.map +1 -1
- package/dist/components/scrollspy/index.js +1 -1
- package/dist/components/separator/index.d.ts +2 -2
- package/dist/components/separator/index.d.ts.map +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/snippet/index.d.ts +2 -2
- package/dist/components/snippet/index.d.ts.map +1 -1
- package/dist/components/snippet/index.js +1 -1
- package/dist/components/snippet/snippet.d.ts +7 -1
- package/dist/components/snippet/snippet.d.ts.map +1 -1
- package/dist/components/snippet/snippet.js +6 -2
- package/dist/components/sortable/index.d.ts +2 -2
- package/dist/components/sortable/index.d.ts.map +1 -1
- package/dist/components/sortable/index.js +1 -1
- package/dist/components/spacer/index.d.ts +2 -2
- package/dist/components/spacer/index.d.ts.map +1 -1
- package/dist/components/spacer/index.js +1 -1
- package/dist/components/spinner/index.d.ts +3 -3
- package/dist/components/spinner/index.d.ts.map +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.d.ts +8 -2
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +6 -3
- package/dist/components/stepper/index.d.ts +2 -2
- package/dist/components/stepper/index.d.ts.map +1 -1
- package/dist/components/stepper/index.js +1 -1
- package/dist/components/submit-button/index.d.ts +2 -2
- package/dist/components/submit-button/index.d.ts.map +1 -1
- package/dist/components/submit-button/index.js +1 -1
- package/dist/components/submit-button/submit-button.d.ts +1 -1
- package/dist/components/submit-button/submit-button.d.ts.map +1 -1
- package/dist/components/submit-button/submit-button.js +1 -1
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/tags-input/index.d.ts.map +1 -1
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input.d.ts +14 -1
- package/dist/components/tags-input/tags-input.d.ts.map +1 -1
- package/dist/components/tags-input/tags-input.js +7 -4
- package/dist/components/theme-image/index.d.ts +3 -0
- package/dist/components/theme-image/index.d.ts.map +1 -0
- package/dist/components/theme-image/index.js +1 -0
- package/dist/components/theme-image/theme-image.d.ts +25 -0
- package/dist/components/theme-image/theme-image.d.ts.map +1 -0
- package/dist/components/theme-image/theme-image.js +19 -0
- package/dist/components/timeline/index.d.ts +2 -2
- package/dist/components/timeline/index.d.ts.map +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle-switch/index.d.ts +3 -3
- package/dist/components/toggle-switch/index.d.ts.map +1 -1
- package/dist/components/toggle-switch/index.js +1 -1
- package/dist/components/toggle-switch/toggle-switch.d.ts +1 -1
- package/dist/components/toggle-switch/toggle-switch.d.ts.map +1 -1
- package/dist/components/toggle-switch/toggle-switch.js +1 -1
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/index.d.ts.map +1 -1
- package/dist/components/tree/index.js +1 -1
- package/dist/components/tree/tree.js +1 -1
- package/dist/globals.css +1267 -81
- package/dist/locale/UiLocaleProvider.d.ts +19 -0
- package/dist/locale/UiLocaleProvider.d.ts.map +1 -0
- package/dist/locale/UiLocaleProvider.js +17 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/index.d.ts.map +1 -0
- package/dist/locale/index.js +3 -0
- package/dist/locale/locale.d.ts +15 -0
- package/dist/locale/locale.d.ts.map +1 -0
- package/dist/locale/locale.js +19 -0
- package/dist/locale/messages.d.ts +98 -0
- package/dist/locale/messages.d.ts.map +1 -0
- package/dist/locale/messages.js +99 -0
- package/package.json +31 -15
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
3
|
-
import { Pagination as PaginationPrimitive, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink,
|
|
3
|
+
import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeftIcon, ChevronsRightIcon, } from "lucide-react";
|
|
4
|
+
import { Pagination as PaginationPrimitive, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, } from "@forthtilliath/shadcn-ui/components/pagination";
|
|
4
5
|
import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
5
|
-
import {
|
|
6
|
+
import { useUiMessages } from "../../locale/locale.js";
|
|
7
|
+
import { getPaginationRange } from "./pagination-range.js";
|
|
6
8
|
/**
|
|
7
9
|
* Navigates between pages of a paginated set, computing the visible page
|
|
8
10
|
* numbers and ellipses itself from `page`/`totalPages` — shadcn-ui's own
|
|
@@ -17,7 +19,8 @@ import { getPaginationRange } from "./pagination-range";
|
|
|
17
19
|
* @author Forth
|
|
18
20
|
* @copyright 2026 Forth
|
|
19
21
|
*/
|
|
20
|
-
export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast = false, disabled = false, className, }) {
|
|
22
|
+
export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPageChange, showFirstLast = false, disabled = false, className, locale, }) {
|
|
23
|
+
const messages = useUiMessages(locale);
|
|
21
24
|
const items = getPaginationRange({
|
|
22
25
|
page,
|
|
23
26
|
totalPages,
|
|
@@ -29,19 +32,19 @@ export function Pagination({ page, totalPages, siblingCount, boundaryCount, onPa
|
|
|
29
32
|
onPageChange(target);
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
return (_jsx(PaginationPrimitive, { "data-slot": "pagination-root", className: cn(disabled && "pointer-events-none opacity-50", className), children: _jsxs(PaginationContent, { children: [showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label":
|
|
35
|
+
return (_jsx(PaginationPrimitive, { "data-slot": "pagination-root", className: cn(disabled && "pointer-events-none opacity-50", className), children: _jsxs(PaginationContent, { children: [showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": messages.pagination.first, size: "icon", "aria-disabled": page <= 1, className: cn(page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
|
|
33
36
|
e.preventDefault();
|
|
34
37
|
goTo(1);
|
|
35
|
-
}, children: _jsx(ChevronsLeftIcon, {}) }) })), _jsx(PaginationItem, { children:
|
|
38
|
+
}, children: _jsx(ChevronsLeftIcon, {}) }) })), _jsx(PaginationItem, { children: _jsxs(PaginationLink, { href: "#", "aria-label": messages.pagination.previousLabel, size: "default", "aria-disabled": page <= 1, className: cn("gap-1 px-2.5 sm:pl-2.5", page <= 1 && "pointer-events-none opacity-50"), onClick: (e) => {
|
|
36
39
|
e.preventDefault();
|
|
37
40
|
goTo(page - 1);
|
|
38
|
-
} }) }), items.map((item) => item === "ellipsis-start" || item === "ellipsis-end" ? (_jsx(PaginationItem, { children: _jsx(PaginationEllipsis, {}) }, item)) : (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", isActive: item === page, onClick: (e) => {
|
|
41
|
+
}, children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "hidden sm:block", children: messages.pagination.previous })] }) }), items.map((item) => item === "ellipsis-start" || item === "ellipsis-end" ? (_jsx(PaginationItem, { children: _jsx(PaginationEllipsis, {}) }, item)) : (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", isActive: item === page, onClick: (e) => {
|
|
39
42
|
e.preventDefault();
|
|
40
43
|
goTo(item);
|
|
41
|
-
}, children: item }) }, item))), _jsx(PaginationItem, { children:
|
|
44
|
+
}, children: item }) }, item))), _jsx(PaginationItem, { children: _jsxs(PaginationLink, { href: "#", "aria-label": messages.pagination.nextLabel, size: "default", "aria-disabled": page >= totalPages, className: cn("gap-1 px-2.5 sm:pr-2.5", page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
|
|
42
45
|
e.preventDefault();
|
|
43
46
|
goTo(page + 1);
|
|
44
|
-
} }) }), showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label":
|
|
47
|
+
}, children: [_jsx("span", { className: "hidden sm:block", children: messages.pagination.next }), _jsx(ChevronRightIcon, {})] }) }), showFirstLast && (_jsx(PaginationItem, { children: _jsx(PaginationLink, { href: "#", "aria-label": messages.pagination.last, size: "icon", "aria-disabled": page >= totalPages, className: cn(page >= totalPages && "pointer-events-none opacity-50"), onClick: (e) => {
|
|
45
48
|
e.preventDefault();
|
|
46
49
|
goTo(totalPages);
|
|
47
50
|
}, children: _jsx(ChevronsRightIcon, {}) }) }))] }) }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { PasswordInputProps } from "./password-input";
|
|
2
|
-
export { PasswordInput } from "./password-input";
|
|
3
|
-
export type { PasswordStrengthMeterProps } from "./password-strength-meter";
|
|
4
|
-
export { PasswordStrengthMeter } from "./password-strength-meter";
|
|
1
|
+
export type { PasswordInputProps } from "./password-input.js";
|
|
2
|
+
export { PasswordInput } from "./password-input.js";
|
|
3
|
+
export type { PasswordStrengthMeterProps } from "./password-strength-meter.js";
|
|
4
|
+
export { PasswordStrengthMeter } from "./password-strength-meter.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PasswordInput } from "./password-input";
|
|
2
|
-
export { PasswordStrengthMeter } from "./password-strength-meter";
|
|
1
|
+
export { PasswordInput } from "./password-input.js";
|
|
2
|
+
export { PasswordStrengthMeter } from "./password-strength-meter.js";
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
import { type UiLocale } from "../../locale/locale.js";
|
|
3
|
+
export type PasswordInputProps = Omit<React.ComponentProps<"input">, "type"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Language of the built-in labels — French by default, or the nearest
|
|
6
|
+
* `UiLocaleProvider`'s. Explicit text props still win.
|
|
7
|
+
*/
|
|
8
|
+
locale?: UiLocale;
|
|
9
|
+
};
|
|
3
10
|
/**
|
|
4
11
|
* A password `Input` with a show/hide visibility toggle.
|
|
5
12
|
*
|
|
@@ -11,5 +18,5 @@ export type PasswordInputProps = Omit<React.ComponentProps<"input">, "type">;
|
|
|
11
18
|
* @author Forth
|
|
12
19
|
* @copyright 2026 Forth
|
|
13
20
|
*/
|
|
14
|
-
export declare function PasswordInput({ className, ...props }: PasswordInputProps): React.JSX.Element;
|
|
21
|
+
export declare function PasswordInput({ className, locale, ...props }: PasswordInputProps): React.JSX.Element;
|
|
15
22
|
//# sourceMappingURL=password-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../src/components/password-input/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,GAAG;IAC7E;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,kBAAkB,qBA6BpB"}
|
|
@@ -4,6 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { EyeIcon, EyeOffIcon } from "lucide-react";
|
|
5
5
|
import { Input } from "@forthtilliath/shadcn-ui/components/input";
|
|
6
6
|
import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
7
|
+
import { useUiMessages } from "../../locale/locale.js";
|
|
7
8
|
/**
|
|
8
9
|
* A password `Input` with a show/hide visibility toggle.
|
|
9
10
|
*
|
|
@@ -15,9 +16,10 @@ import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
|
15
16
|
* @author Forth
|
|
16
17
|
* @copyright 2026 Forth
|
|
17
18
|
*/
|
|
18
|
-
export function PasswordInput({ className, ...props }) {
|
|
19
|
+
export function PasswordInput({ className, locale, ...props }) {
|
|
20
|
+
const messages = useUiMessages(locale);
|
|
19
21
|
const [visible, setVisible] = React.useState(false);
|
|
20
22
|
return (_jsxs("div", { className: cn("relative", className), children: [_jsx(Input, { type: visible ? "text" : "password", className: "w-full pr-9", ...props }), _jsx("button", { type: "button", onClick: () => {
|
|
21
23
|
setVisible((prev) => !prev);
|
|
22
|
-
}, "aria-label": visible ?
|
|
24
|
+
}, "aria-label": visible ? messages.passwordInput.hide : messages.passwordInput.show, className: "text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex items-center px-3", children: visible ? (_jsx(EyeOffIcon, { className: "size-4" })) : (_jsx(EyeIcon, { className: "size-4" })) })] }));
|
|
23
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ProgressProps } from "./progress";
|
|
2
|
-
export { Progress } from "./progress";
|
|
3
|
-
export type { ProgressVariants } from "./variants";
|
|
1
|
+
export type { ProgressProps } from "./progress.js";
|
|
2
|
+
export { Progress } from "./progress.js";
|
|
3
|
+
export type { ProgressVariants } from "./variants.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Progress } from "./progress";
|
|
1
|
+
export { Progress } from "./progress.js";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import { Progress as ProgressPrimitive } from "@forthtilliath/shadcn-ui/components/progress";
|
|
3
|
-
import type { ProgressVariants } from "./variants";
|
|
3
|
+
import type { ProgressVariants } from "./variants.js";
|
|
4
4
|
export type ProgressProps = React.ComponentProps<typeof ProgressPrimitive> & ProgressVariants & {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* A label rendered above the bar, on the left — also the bar's
|
|
7
|
+
* accessible name. Without one, pass an `aria-label`.
|
|
8
|
+
*/
|
|
6
9
|
label?: React.ReactNode;
|
|
7
10
|
/**
|
|
8
11
|
* Shows the numeric `value` (rounded, with a `%` suffix) above the bar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAG7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,GACxE,gBAAgB,GAAG;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAiB,EACjB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,qBAgCf"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
2
3
|
import { Progress as ProgressPrimitive } from "@forthtilliath/shadcn-ui/components/progress";
|
|
3
4
|
import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
4
|
-
import { progressVariants } from "./variants";
|
|
5
|
+
import { progressVariants } from "./variants.js";
|
|
5
6
|
/**
|
|
6
7
|
* Displays an indicator showing the completion progress of a task.
|
|
7
8
|
*
|
|
@@ -14,10 +15,11 @@ import { progressVariants } from "./variants";
|
|
|
14
15
|
* @copyright 2026 Forth
|
|
15
16
|
*/
|
|
16
17
|
export function Progress({ className, variant, size, label, showValue = false, value, ...props }) {
|
|
17
|
-
const
|
|
18
|
+
const labelId = useId();
|
|
18
19
|
const hasLabel = label !== undefined && label !== null;
|
|
20
|
+
const bar = (_jsx(ProgressPrimitive, { className: cn(progressVariants({ variant, size }), className), value: value, "aria-labelledby": hasLabel ? labelId : undefined, ...props }));
|
|
19
21
|
if (!hasLabel && !showValue) {
|
|
20
22
|
return bar;
|
|
21
23
|
}
|
|
22
|
-
return (_jsxs("div", { className: "w-full space-y-1.5", children: [(hasLabel || showValue) && (_jsxs("div", { className: "flex items-center justify-between text-sm", children: [hasLabel && _jsx("span", { children: label }), showValue && (_jsxs("span", { className: "text-muted-foreground tabular-nums", children: [Math.round(value ?? 0), "%"] }))] })), bar] }));
|
|
24
|
+
return (_jsxs("div", { className: "w-full space-y-1.5", children: [(hasLabel || showValue) && (_jsxs("div", { className: "flex items-center justify-between text-sm", children: [hasLabel && _jsx("span", { id: labelId, children: label }), showValue && (_jsxs("span", { className: "text-muted-foreground tabular-nums", children: [Math.round(value ?? 0), "%"] }))] })), bar] }));
|
|
23
25
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { QrCodeProps } from "./qr-code";
|
|
2
|
-
export { QrCode } from "./qr-code";
|
|
1
|
+
export type { QrCodeProps } from "./qr-code.js";
|
|
2
|
+
export { QrCode } from "./qr-code.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { QrCode } from "./qr-code";
|
|
1
|
+
export { QrCode } from "./qr-code.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import { type UiLocale } from "../../locale/locale.js";
|
|
2
3
|
export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBox"> {
|
|
3
4
|
/** The data to encode. */
|
|
4
5
|
value: string;
|
|
@@ -12,6 +13,11 @@ export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBo
|
|
|
12
13
|
foreground?: string;
|
|
13
14
|
/** @default "transparent" */
|
|
14
15
|
background?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Language of the built-in labels — French by default, or the nearest
|
|
18
|
+
* `UiLocaleProvider`'s. Explicit text props still win.
|
|
19
|
+
*/
|
|
20
|
+
locale?: UiLocale;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Generates a QR code from a string, rendered as SVG (no canvas — works in
|
|
@@ -24,5 +30,5 @@ export interface QrCodeProps extends Omit<React.SVGProps<SVGSVGElement>, "viewBo
|
|
|
24
30
|
* @author Forth
|
|
25
31
|
* @copyright 2026 Forth
|
|
26
32
|
*/
|
|
27
|
-
export declare function QrCode({ value, robustness, foreground, background, className, ...props }: QrCodeProps): React.JSX.Element;
|
|
33
|
+
export declare function QrCode({ value, robustness, foreground, background, className, locale, ...props }: QrCodeProps): React.JSX.Element;
|
|
28
34
|
//# sourceMappingURL=qr-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/qr-code.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qr-code.d.ts","sourceRoot":"","sources":["../../../src/components/qr-code/qr-code.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAC7B,SAAS,CACV;IACC,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,UAAgB,EAChB,UAA2B,EAC3B,UAA0B,EAC1B,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,WAAW,qBAkCb"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { create } from "qrcode";
|
|
3
4
|
import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
5
|
+
import { useUiMessages } from "../../locale/locale.js";
|
|
4
6
|
/**
|
|
5
7
|
* Generates a QR code from a string, rendered as SVG (no canvas — works in
|
|
6
8
|
* Server Components too).
|
|
@@ -12,7 +14,8 @@ import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
|
12
14
|
* @author Forth
|
|
13
15
|
* @copyright 2026 Forth
|
|
14
16
|
*/
|
|
15
|
-
export function QrCode({ value, robustness = "M", foreground = "currentColor", background = "transparent", className, ...props }) {
|
|
17
|
+
export function QrCode({ value, robustness = "M", foreground = "currentColor", background = "transparent", className, locale, ...props }) {
|
|
18
|
+
const messages = useUiMessages(locale);
|
|
16
19
|
const { modules } = create(value, { errorCorrectionLevel: robustness });
|
|
17
20
|
const size = modules.size;
|
|
18
21
|
const cells = [];
|
|
@@ -23,5 +26,5 @@ export function QrCode({ value, robustness = "M", foreground = "currentColor", b
|
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
|
-
return (_jsxs("svg", { viewBox: `0 0 ${size.toString()} ${size.toString()}`, role: "img", "aria-label":
|
|
29
|
+
return (_jsxs("svg", { viewBox: `0 0 ${size.toString()} ${size.toString()}`, role: "img", "aria-label": messages.qrCode.label(value), className: cn("size-32", className), ...props, children: [_jsx("rect", { width: size, height: size, fill: background }), _jsx("g", { fill: foreground, children: cells })] }));
|
|
27
30
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { RadioCardProps } from "./radio-card";
|
|
2
|
-
export { RadioCard } from "./radio-card";
|
|
1
|
+
export type { RadioCardProps } from "./radio-card.js";
|
|
2
|
+
export { RadioCard } from "./radio-card.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RadioCard } from "./radio-card";
|
|
1
|
+
export { RadioCard } from "./radio-card.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { RatingProps } from "./rating";
|
|
2
|
-
export { Rating } from "./rating";
|
|
1
|
+
export type { RatingProps } from "./rating.js";
|
|
2
|
+
export { Rating } from "./rating.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Rating } from "./rating";
|
|
1
|
+
export { Rating } from "./rating.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { type UiLocale } from "../../locale/locale.js";
|
|
2
3
|
export interface RatingProps {
|
|
3
4
|
value?: number;
|
|
4
5
|
defaultValue?: number;
|
|
@@ -8,6 +9,11 @@ export interface RatingProps {
|
|
|
8
9
|
readOnly?: boolean;
|
|
9
10
|
size?: "sm" | "default" | "lg";
|
|
10
11
|
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Language of the built-in labels — French by default, or the nearest
|
|
14
|
+
* `UiLocaleProvider`'s. Explicit text props still win.
|
|
15
|
+
*/
|
|
16
|
+
locale?: UiLocale;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* A star rating control with keyboard navigation (each star is a `radio`
|
|
@@ -19,5 +25,5 @@ export interface RatingProps {
|
|
|
19
25
|
* @author Forth
|
|
20
26
|
* @copyright 2026 Forth
|
|
21
27
|
*/
|
|
22
|
-
export declare function Rating({ value, defaultValue, onValueChange, max, disabled, readOnly, size, className, }: RatingProps): React.JSX.Element;
|
|
28
|
+
export declare function Rating({ value, defaultValue, onValueChange, max, disabled, readOnly, size, className, locale, }: RatingProps): React.JSX.Element;
|
|
23
29
|
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/components/rating/rating.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/components/rating/rating.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAQD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,YAAgB,EAChB,aAAa,EACb,GAAO,EACP,QAAgB,EAChB,QAAgB,EAChB,IAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,WAAW,qBAsFb"}
|
|
@@ -3,6 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { StarIcon } from "lucide-react";
|
|
5
5
|
import { cn } from "@forthtilliath/shadcn-ui/lib/utils";
|
|
6
|
+
import { useUiMessages } from "../../locale/locale.js";
|
|
6
7
|
const SIZE_CLASSES = {
|
|
7
8
|
sm: "size-4",
|
|
8
9
|
default: "size-5",
|
|
@@ -18,7 +19,8 @@ const SIZE_CLASSES = {
|
|
|
18
19
|
* @author Forth
|
|
19
20
|
* @copyright 2026 Forth
|
|
20
21
|
*/
|
|
21
|
-
export function Rating({ value, defaultValue = 0, onValueChange, max = 5, disabled = false, readOnly = false, size = "default", className, }) {
|
|
22
|
+
export function Rating({ value, defaultValue = 0, onValueChange, max = 5, disabled = false, readOnly = false, size = "default", className, locale, }) {
|
|
23
|
+
const messages = useUiMessages(locale);
|
|
22
24
|
const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);
|
|
23
25
|
const [hoverValue, setHoverValue] = React.useState(null);
|
|
24
26
|
const current = value ?? uncontrolledValue;
|
|
@@ -27,6 +29,25 @@ export function Rating({ value, defaultValue = 0, onValueChange, max = 5, disabl
|
|
|
27
29
|
setUncontrolledValue(next);
|
|
28
30
|
onValueChange?.(next);
|
|
29
31
|
}
|
|
32
|
+
// WAI-ARIA radio group: arrows move (and select) between stars, Home/End
|
|
33
|
+
// jump to the first/last one.
|
|
34
|
+
function handleKeyDown(e) {
|
|
35
|
+
const target = {
|
|
36
|
+
ArrowRight: current + 1,
|
|
37
|
+
ArrowUp: current + 1,
|
|
38
|
+
ArrowLeft: current - 1,
|
|
39
|
+
ArrowDown: current - 1,
|
|
40
|
+
Home: 1,
|
|
41
|
+
End: max,
|
|
42
|
+
}[e.key];
|
|
43
|
+
if (target === undefined || readOnly)
|
|
44
|
+
return;
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
const next = Math.min(max, Math.max(1, target));
|
|
47
|
+
commit(next);
|
|
48
|
+
const stars = e.currentTarget.parentElement?.querySelectorAll("button");
|
|
49
|
+
stars?.[next - 1]?.focus();
|
|
50
|
+
}
|
|
30
51
|
return (_jsx("div", { role: "radiogroup",
|
|
31
52
|
// Not a Tab stop itself — focus lives on the roving `role="radio"`
|
|
32
53
|
// children below — but jsx-a11y wants an interactive-role element with
|
|
@@ -34,7 +55,7 @@ export function Rating({ value, defaultValue = 0, onValueChange, max = 5, disabl
|
|
|
34
55
|
// to declare an explicit tabIndex.
|
|
35
56
|
tabIndex: -1, "aria-disabled": disabled, "data-slot": "rating", className: cn("inline-flex items-center gap-0.5", (disabled || readOnly) && "pointer-events-none", className), onMouseLeave: () => {
|
|
36
57
|
setHoverValue(null);
|
|
37
|
-
}, children: Array.from({ length: max }, (_, i) => i + 1).map((starValue) => (_jsx("button", { type: "button", role: "radio", "aria-checked": current === starValue, "aria-label":
|
|
58
|
+
}, children: Array.from({ length: max }, (_, i) => i + 1).map((starValue) => (_jsx("button", { type: "button", role: "radio", "aria-checked": current === starValue, "aria-label": messages.rating.stars(starValue), disabled: disabled, tabIndex: !readOnly && starValue === (current >= 1 ? current : 1) ? 0 : -1, onKeyDown: handleKeyDown, onMouseEnter: () => {
|
|
38
59
|
setHoverValue(starValue);
|
|
39
60
|
}, onClick: () => {
|
|
40
61
|
if (!readOnly) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { RelativeTimeProps } from "./relative-time";
|
|
2
|
-
export { RelativeTime } from "./relative-time";
|
|
1
|
+
export type { RelativeTimeProps } from "./relative-time.js";
|
|
2
|
+
export { RelativeTime } from "./relative-time.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/relative-time/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/relative-time/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RelativeTime } from "./relative-time";
|
|
1
|
+
export { RelativeTime } from "./relative-time.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ReparentProps, ReparentTarget } from "./reparent";
|
|
2
|
-
export { Reparent } from "./reparent";
|
|
1
|
+
export type { ReparentProps, ReparentTarget } from "./reparent.js";
|
|
2
|
+
export { Reparent } from "./reparent.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/reparent/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/reparent/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Reparent } from "./reparent";
|
|
1
|
+
export { Reparent } from "./reparent.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./repeat";
|
|
1
|
+
export * from "./repeat.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/repeat/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/repeat/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./repeat";
|
|
1
|
+
export * from "./repeat.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ScrollProgressProps } from "./scroll-progress";
|
|
2
|
-
export { ScrollProgress } from "./scroll-progress";
|
|
1
|
+
export type { ScrollProgressProps } from "./scroll-progress.js";
|
|
2
|
+
export { ScrollProgress } from "./scroll-progress.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-progress/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ScrollProgress } from "./scroll-progress";
|
|
1
|
+
export { ScrollProgress } from "./scroll-progress.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ScrollShadowProps } from "./scroll-shadow";
|
|
2
|
-
export { ScrollShadow } from "./scroll-shadow";
|
|
1
|
+
export type { ScrollShadowProps } from "./scroll-shadow.js";
|
|
2
|
+
export { ScrollShadow } from "./scroll-shadow.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-shadow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-shadow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ScrollShadow } from "./scroll-shadow";
|
|
1
|
+
export { ScrollShadow } from "./scroll-shadow.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-shadow.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-shadow/scroll-shadow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC5D,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,UAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"scroll-shadow.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-shadow/scroll-shadow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC5D,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,UAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,qBA2CnB"}
|
|
@@ -37,7 +37,9 @@ export function ScrollShadow({ className, shadowSize = 40, onScroll, ...props })
|
|
|
37
37
|
const maskFrom = atTop ? "black" : "transparent";
|
|
38
38
|
const maskTo = atBottom ? "black" : "transparent";
|
|
39
39
|
const mask = `linear-gradient(to bottom, ${maskFrom}, black ${shadowSize.toString()}px, black calc(100% - ${shadowSize.toString()}px), ${maskTo})`;
|
|
40
|
-
return (_jsx("div", { ref: ref, "data-slot": "scroll-shadow",
|
|
40
|
+
return (_jsx("div", { ref: ref, "data-slot": "scroll-shadow",
|
|
41
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- a scrollable region must be focusable for keyboard users to scroll it (axe scrollable-region-focusable)
|
|
42
|
+
tabIndex: 0, "data-at-top": atTop, "data-at-bottom": atBottom, onScroll: (e) => {
|
|
41
43
|
updateEdges(e.currentTarget);
|
|
42
44
|
onScroll?.(e);
|
|
43
45
|
}, style: { maskImage: mask, WebkitMaskImage: mask }, className: cn("overflow-y-auto", className), ...props }));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { UseScrollspyOptions } from "./use-scrollspy";
|
|
2
|
-
export { useScrollspy } from "./use-scrollspy";
|
|
1
|
+
export type { UseScrollspyOptions } from "./use-scrollspy.js";
|
|
2
|
+
export { useScrollspy } from "./use-scrollspy.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scrollspy/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scrollspy/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useScrollspy } from "./use-scrollspy";
|
|
1
|
+
export { useScrollspy } from "./use-scrollspy.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SeparatorProps } from "./separator";
|
|
2
|
-
export { Separator } from "./separator";
|
|
1
|
+
export type { SeparatorProps } from "./separator.js";
|
|
2
|
+
export { Separator } from "./separator.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/separator/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/separator/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Separator } from "./separator";
|
|
1
|
+
export { Separator } from "./separator.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SnippetItem, SnippetProps } from "./snippet";
|
|
2
|
-
export { Snippet } from "./snippet";
|
|
1
|
+
export type { SnippetItem, SnippetProps } from "./snippet.js";
|
|
2
|
+
export { Snippet } from "./snippet.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/snippet/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/snippet/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Snippet } from "./snippet";
|
|
1
|
+
export { Snippet } from "./snippet.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { type UiLocale } from "../../locale/locale.js";
|
|
2
3
|
export interface SnippetItem {
|
|
3
4
|
value: string;
|
|
4
5
|
label: React.ReactNode;
|
|
@@ -9,6 +10,11 @@ export interface SnippetProps {
|
|
|
9
10
|
/** @default items[0]?.value */
|
|
10
11
|
defaultValue?: string;
|
|
11
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Language of the built-in labels — French by default, or the nearest
|
|
15
|
+
* `UiLocaleProvider`'s. Explicit text props still win.
|
|
16
|
+
*/
|
|
17
|
+
locale?: UiLocale;
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
14
20
|
* Displays and copies code in a tabbed interface — the "npm install /
|
|
@@ -21,5 +27,5 @@ export interface SnippetProps {
|
|
|
21
27
|
* @author Forth
|
|
22
28
|
* @copyright 2026 Forth
|
|
23
29
|
*/
|
|
24
|
-
export declare function Snippet({ items, defaultValue, className }: SnippetProps): React.JSX.Element;
|
|
30
|
+
export declare function Snippet({ items, defaultValue, className, locale, }: SnippetProps): React.JSX.Element;
|
|
25
31
|
//# sourceMappingURL=snippet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippet.d.ts","sourceRoot":"","sources":["../../../src/components/snippet/snippet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"snippet.d.ts","sourceRoot":"","sources":["../../../src/components/snippet/snippet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,MAAM,GACP,EAAE,YAAY,qBA4Dd"}
|