@codefast/ui 0.3.13-canary.3 → 0.3.13-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/components/accordion.d.mts +37 -0
- package/dist/components/accordion.mjs +53 -0
- package/dist/components/alert-dialog.d.mts +74 -0
- package/dist/components/alert-dialog.mjs +92 -0
- package/dist/components/alert.d.mts +30 -0
- package/dist/components/alert.mjs +49 -0
- package/dist/components/aspect-ratio.d.mts +10 -0
- package/dist/components/aspect-ratio.mjs +12 -0
- package/dist/components/avatar.d.mts +21 -0
- package/dist/components/avatar.mjs +28 -0
- package/dist/components/badge.d.mts +24 -0
- package/dist/components/badge.mjs +56 -0
- package/dist/components/breadcrumb.d.mts +44 -0
- package/dist/components/breadcrumb.mjs +67 -0
- package/dist/components/button-group.d.mts +34 -0
- package/dist/components/button-group.mjs +53 -0
- package/dist/components/button.d.mts +38 -0
- package/dist/components/button.mjs +99 -0
- package/dist/components/calendar.d.mts +27 -0
- package/dist/components/calendar.mjs +114 -0
- package/dist/components/card.d.mts +41 -0
- package/dist/components/card.mjs +55 -0
- package/dist/components/carousel.d.mts +68 -0
- package/dist/components/carousel.mjs +135 -0
- package/dist/components/chart.d.mts +93 -0
- package/dist/components/chart.mjs +189 -0
- package/dist/components/checkbox-cards.d.mts +17 -0
- package/dist/components/checkbox-cards.mjs +30 -0
- package/dist/components/checkbox-group.d.mts +16 -0
- package/dist/components/checkbox-group.mjs +27 -0
- package/dist/components/checkbox.d.mts +11 -0
- package/dist/components/checkbox.mjs +20 -0
- package/dist/components/collapsible.d.mts +18 -0
- package/dist/components/collapsible.mjs +24 -0
- package/dist/components/command.d.mts +57 -0
- package/dist/components/command.mjs +92 -0
- package/dist/components/context-menu.d.mts +91 -0
- package/dist/components/context-menu.mjs +122 -0
- package/dist/components/dialog.d.mts +65 -0
- package/dist/components/dialog.mjs +93 -0
- package/dist/components/drawer.d.mts +65 -0
- package/dist/components/drawer.mjs +78 -0
- package/dist/components/dropdown-menu.d.mts +92 -0
- package/dist/components/dropdown-menu.mjs +129 -0
- package/dist/components/empty.d.mts +44 -0
- package/dist/components/empty.mjs +64 -0
- package/dist/components/field.d.mts +79 -0
- package/dist/components/field.mjs +132 -0
- package/dist/components/form.d.mts +48 -0
- package/dist/components/form.mjs +92 -0
- package/dist/components/hover-card.d.mts +26 -0
- package/dist/components/hover-card.mjs +35 -0
- package/dist/components/input-group.d.mts +61 -0
- package/dist/components/input-group.mjs +142 -0
- package/dist/components/input-number.d.mts +28 -0
- package/dist/components/input-number.mjs +61 -0
- package/dist/components/input-otp.d.mts +29 -0
- package/dist/components/input-otp.mjs +48 -0
- package/dist/components/input-password.d.mts +13 -0
- package/dist/components/input-password.mjs +38 -0
- package/dist/components/input-search.d.mts +20 -0
- package/dist/components/input-search.mjs +50 -0
- package/dist/components/input.d.mts +11 -0
- package/dist/components/input.mjs +14 -0
- package/dist/components/item.d.mts +82 -0
- package/dist/components/item.mjs +137 -0
- package/dist/components/kbd.d.mts +15 -0
- package/dist/components/kbd.mjs +19 -0
- package/dist/components/label.d.mts +11 -0
- package/dist/components/label.mjs +14 -0
- package/dist/components/menubar.d.mts +100 -0
- package/dist/components/menubar.mjs +133 -0
- package/dist/components/native-select.d.mts +19 -0
- package/dist/components/native-select.mjs +34 -0
- package/dist/components/navigation-menu.d.mts +44 -0
- package/dist/components/navigation-menu.mjs +79 -0
- package/dist/components/pagination.d.mts +46 -0
- package/dist/components/pagination.mjs +71 -0
- package/dist/components/popover.d.mts +30 -0
- package/dist/components/popover.mjs +41 -0
- package/dist/components/progress-circle.d.mts +124 -0
- package/dist/components/progress-circle.mjs +120 -0
- package/dist/components/progress.d.mts +12 -0
- package/dist/components/progress.mjs +19 -0
- package/dist/components/{radio-cards.d.ts → radio-cards.d.mts} +10 -5
- package/dist/components/radio-cards.mjs +29 -0
- package/dist/components/radio-group.d.mts +16 -0
- package/dist/components/radio-group.mjs +25 -0
- package/dist/components/radio.d.mts +14 -0
- package/dist/components/radio.mjs +16 -0
- package/dist/components/resizable.d.mts +23 -0
- package/dist/components/resizable.mjs +32 -0
- package/dist/components/scroll-area.d.mts +40 -0
- package/dist/components/scroll-area.mjs +101 -0
- package/dist/components/select.d.mts +62 -0
- package/dist/components/select.mjs +101 -0
- package/dist/components/separator.d.mts +32 -0
- package/dist/components/separator.mjs +45 -0
- package/dist/components/sheet.d.mts +75 -0
- package/dist/components/sheet.mjs +134 -0
- package/dist/components/sidebar.d.mts +195 -0
- package/dist/components/sidebar.mjs +375 -0
- package/dist/components/skeleton.d.mts +10 -0
- package/dist/components/skeleton.mjs +12 -0
- package/dist/components/slider.d.mts +15 -0
- package/dist/components/slider.mjs +40 -0
- package/dist/components/sonner.d.mts +10 -0
- package/dist/components/sonner.mjs +21 -0
- package/dist/components/spinner.d.mts +14 -0
- package/dist/components/spinner.mjs +40 -0
- package/dist/components/switch.d.mts +11 -0
- package/dist/components/switch.mjs +18 -0
- package/dist/components/table.d.mts +45 -0
- package/dist/components/table.mjs +65 -0
- package/dist/components/tabs.d.mts +26 -0
- package/dist/components/tabs.mjs +35 -0
- package/dist/components/textarea.d.mts +10 -0
- package/dist/components/textarea.mjs +12 -0
- package/dist/components/toggle-group.d.mts +30 -0
- package/dist/components/toggle-group.mjs +53 -0
- package/dist/components/toggle.d.mts +28 -0
- package/dist/components/toggle.mjs +53 -0
- package/dist/components/tooltip.d.mts +30 -0
- package/dist/components/tooltip.mjs +42 -0
- package/dist/hooks/{use-animated-value.d.ts → use-animated-value.d.mts} +4 -2
- package/dist/hooks/use-animated-value.mjs +62 -0
- package/dist/hooks/{use-copy-to-clipboard.d.ts → use-copy-to-clipboard.d.mts} +11 -6
- package/dist/hooks/use-copy-to-clipboard.mjs +43 -0
- package/dist/hooks/{use-is-mobile.d.ts → use-is-mobile.d.mts} +4 -2
- package/dist/hooks/use-is-mobile.mjs +26 -0
- package/dist/hooks/{use-media-query.d.ts → use-media-query.d.mts} +4 -2
- package/dist/hooks/use-media-query.mjs +50 -0
- package/dist/hooks/{use-mutation-observer.d.ts → use-mutation-observer.d.mts} +6 -3
- package/dist/hooks/use-mutation-observer.mjs +41 -0
- package/dist/hooks/use-pagination.d.mts +44 -0
- package/dist/hooks/use-pagination.mjs +107 -0
- package/dist/index.d.mts +69 -0
- package/dist/index.mjs +69 -0
- package/dist/lib/utils.d.mts +13 -0
- package/dist/lib/utils.mjs +10 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/clsx.d.mts +6 -0
- package/dist/primitives/checkbox-group.d.mts +144 -0
- package/dist/primitives/checkbox-group.mjs +126 -0
- package/dist/primitives/input-number.d.mts +73 -0
- package/dist/primitives/input-number.mjs +514 -0
- package/dist/primitives/input.d.mts +72 -0
- package/dist/primitives/input.mjs +75 -0
- package/dist/primitives/progress-circle.d.mts +146 -0
- package/dist/primitives/progress-circle.mjs +178 -0
- package/package.json +164 -170
- package/dist/components/accordion.d.ts +0 -19
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.js +0 -26
- package/dist/components/alert-dialog.d.ts +0 -39
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js +0 -39
- package/dist/components/alert.d.ts +0 -19
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/alert.js +0 -41
- package/dist/components/aspect-ratio.d.ts +0 -7
- package/dist/components/aspect-ratio.d.ts.map +0 -1
- package/dist/components/aspect-ratio.js +0 -10
- package/dist/components/avatar.d.ts +0 -11
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -17
- package/dist/components/badge.d.ts +0 -18
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -59
- package/dist/components/breadcrumb.d.ts +0 -22
- package/dist/components/breadcrumb.d.ts.map +0 -1
- package/dist/components/breadcrumb.js +0 -31
- package/dist/components/button-group.d.ts +0 -20
- package/dist/components/button-group.d.ts.map +0 -1
- package/dist/components/button-group.js +0 -48
- package/dist/components/button.d.ts +0 -29
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -92
- package/dist/components/calendar.d.ts +0 -13
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/calendar.js +0 -104
- package/dist/components/card.d.ts +0 -18
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -27
- package/dist/components/carousel.d.ts +0 -38
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js +0 -103
- package/dist/components/chart.d.ts +0 -58
- package/dist/components/chart.d.ts.map +0 -1
- package/dist/components/chart.js +0 -198
- package/dist/components/checkbox-cards.d.ts +0 -11
- package/dist/components/checkbox-cards.d.ts.map +0 -1
- package/dist/components/checkbox-cards.js +0 -16
- package/dist/components/checkbox-group.d.ts +0 -9
- package/dist/components/checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox-group.js +0 -15
- package/dist/components/checkbox.d.ts +0 -7
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.js +0 -12
- package/dist/components/collapsible.d.ts +0 -11
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -16
- package/dist/components/command.d.ts +0 -26
- package/dist/components/command.d.ts.map +0 -1
- package/dist/components/command.js +0 -41
- package/dist/components/context-menu.d.ts +0 -42
- package/dist/components/context-menu.d.ts.map +0 -1
- package/dist/components/context-menu.js +0 -54
- package/dist/components/dialog.d.ts +0 -35
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -41
- package/dist/components/drawer.d.ts +0 -34
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -36
- package/dist/components/dropdown-menu.d.ts +0 -42
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js +0 -54
- package/dist/components/empty.d.ts +0 -23
- package/dist/components/empty.d.ts.map +0 -1
- package/dist/components/empty.js +0 -47
- package/dist/components/field.d.ts +0 -42
- package/dist/components/field.d.ts.map +0 -1
- package/dist/components/field.js +0 -85
- package/dist/components/form.d.ts +0 -27
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.js +0 -76
- package/dist/components/hover-card.d.ts +0 -13
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js +0 -20
- package/dist/components/input-group.d.ts +0 -37
- package/dist/components/input-group.d.ts.map +0 -1
- package/dist/components/input-group.js +0 -127
- package/dist/components/input-number.d.ts +0 -8
- package/dist/components/input-number.d.ts.map +0 -1
- package/dist/components/input-number.js +0 -20
- package/dist/components/input-otp.d.ts +0 -16
- package/dist/components/input-otp.d.ts.map +0 -1
- package/dist/components/input-otp.js +0 -25
- package/dist/components/input-password.d.ts +0 -7
- package/dist/components/input-password.d.ts.map +0 -1
- package/dist/components/input-password.js +0 -17
- package/dist/components/input-search.d.ts +0 -11
- package/dist/components/input-search.d.ts.map +0 -1
- package/dist/components/input-search.js +0 -22
- package/dist/components/input.d.ts +0 -6
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -10
- package/dist/components/item.d.ts +0 -46
- package/dist/components/item.d.ts.map +0 -1
- package/dist/components/item.js +0 -94
- package/dist/components/kbd.d.ts +0 -8
- package/dist/components/kbd.d.ts.map +0 -1
- package/dist/components/kbd.js +0 -12
- package/dist/components/label.d.ts +0 -7
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js +0 -11
- package/dist/components/menubar.d.ts +0 -44
- package/dist/components/menubar.d.ts.map +0 -1
- package/dist/components/menubar.js +0 -57
- package/dist/components/native-select.d.ts +0 -10
- package/dist/components/native-select.d.ts.map +0 -1
- package/dist/components/native-select.js +0 -16
- package/dist/components/navigation-menu.d.ts +0 -21
- package/dist/components/navigation-menu.d.ts.map +0 -1
- package/dist/components/navigation-menu.js +0 -43
- package/dist/components/pagination.d.ts +0 -26
- package/dist/components/pagination.d.ts.map +0 -1
- package/dist/components/pagination.js +0 -29
- package/dist/components/popover.d.ts +0 -15
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js +0 -23
- package/dist/components/progress-circle.d.ts +0 -107
- package/dist/components/progress-circle.d.ts.map +0 -1
- package/dist/components/progress-circle.js +0 -83
- package/dist/components/progress.d.ts +0 -7
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js +0 -13
- package/dist/components/radio-cards.d.ts.map +0 -1
- package/dist/components/radio-cards.js +0 -15
- package/dist/components/radio-group.d.ts +0 -9
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js +0 -14
- package/dist/components/radio.d.ts +0 -8
- package/dist/components/radio.d.ts.map +0 -1
- package/dist/components/radio.js +0 -11
- package/dist/components/resizable.d.ts +0 -13
- package/dist/components/resizable.d.ts.map +0 -1
- package/dist/components/resizable.js +0 -18
- package/dist/components/scroll-area.d.ts +0 -28
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js +0 -77
- package/dist/components/select.d.ts +0 -29
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js +0 -49
- package/dist/components/separator.d.ts +0 -23
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -36
- package/dist/components/sheet.d.ts +0 -43
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -90
- package/dist/components/sidebar.d.ts +0 -102
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/sidebar.js +0 -241
- package/dist/components/skeleton.d.ts +0 -6
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -9
- package/dist/components/slider.d.ts +0 -7
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.js +0 -18
- package/dist/components/sonner.d.ts +0 -8
- package/dist/components/sonner.d.ts.map +0 -1
- package/dist/components/sonner.js +0 -18
- package/dist/components/spinner.d.ts +0 -8
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/spinner.js +0 -27
- package/dist/components/switch.d.ts +0 -7
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -11
- package/dist/components/table.d.ts +0 -20
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/table.js +0 -30
- package/dist/components/tabs.d.ts +0 -13
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.js +0 -20
- package/dist/components/textarea.d.ts +0 -6
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -9
- package/dist/components/toggle-group.d.ts +0 -16
- package/dist/components/toggle-group.d.ts.map +0 -1
- package/dist/components/toggle-group.js +0 -35
- package/dist/components/toggle.d.ts +0 -21
- package/dist/components/toggle.d.ts.map +0 -1
- package/dist/components/toggle.js +0 -49
- package/dist/components/tooltip.d.ts +0 -15
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -23
- package/dist/hooks/use-animated-value.d.ts.map +0 -1
- package/dist/hooks/use-animated-value.js +0 -71
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +0 -1
- package/dist/hooks/use-copy-to-clipboard.js +0 -46
- package/dist/hooks/use-is-mobile.d.ts.map +0 -1
- package/dist/hooks/use-is-mobile.js +0 -23
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-media-query.js +0 -53
- package/dist/hooks/use-mutation-observer.d.ts.map +0 -1
- package/dist/hooks/use-mutation-observer.js +0 -40
- package/dist/hooks/use-pagination.d.ts +0 -37
- package/dist/hooks/use-pagination.d.ts.map +0 -1
- package/dist/hooks/use-pagination.js +0 -107
- package/dist/index.d.ts +0 -131
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -68
- package/dist/lib/utils.d.ts +0 -10
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -10
- package/dist/primitives/checkbox-group.d.ts +0 -123
- package/dist/primitives/checkbox-group.d.ts.map +0 -1
- package/dist/primitives/checkbox-group.js +0 -112
- package/dist/primitives/input-number.d.ts +0 -63
- package/dist/primitives/input-number.d.ts.map +0 -1
- package/dist/primitives/input-number.js +0 -458
- package/dist/primitives/input.d.ts +0 -67
- package/dist/primitives/input.d.ts.map +0 -1
- package/dist/primitives/input.js +0 -76
- package/dist/primitives/progress-circle.d.ts +0 -116
- package/dist/primitives/progress-circle.d.ts.map +0 -1
- package/dist/primitives/progress-circle.js +0 -163
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Default options for MutationObserver observing common mutation types.
|
|
5
|
-
*/
|
|
6
|
-
const defaultOptions = {
|
|
7
|
-
attributes: true,
|
|
8
|
-
characterData: true,
|
|
9
|
-
childList: true,
|
|
10
|
-
subtree: true,
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Observe DOM mutations on a referenced element and invoke a callback.
|
|
14
|
-
*
|
|
15
|
-
* Attaches a MutationObserver to the provided element reference with the given
|
|
16
|
-
* options and calls the callback whenever mutations occur.
|
|
17
|
-
*
|
|
18
|
-
* @param ref - Ref to the target HTMLElement to observe.
|
|
19
|
-
* @param callback - Mutation callback invoked with observed records.
|
|
20
|
-
* @param options - Observer configuration. Defaults watch attributes, characterData, childList, subtree.
|
|
21
|
-
* @returns void
|
|
22
|
-
*
|
|
23
|
-
* @see [MutationObserver](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)
|
|
24
|
-
*/
|
|
25
|
-
export function useMutationObserver(ref, callback, options = defaultOptions) {
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
// Abort if ref is not attached
|
|
28
|
-
if (!ref.current) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
// Create observer
|
|
32
|
-
const observer = new MutationObserver(callback);
|
|
33
|
-
// Observe with provided options
|
|
34
|
-
observer.observe(ref.current, options);
|
|
35
|
-
// Cleanup on unmount or when deps change
|
|
36
|
-
return () => {
|
|
37
|
-
observer.disconnect();
|
|
38
|
-
};
|
|
39
|
-
}, [ref, callback, options]);
|
|
40
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface UsePaginationProps {
|
|
2
|
-
/** Current active page number. */
|
|
3
|
-
currentPage: number;
|
|
4
|
-
/** Number of results displayed per page. */
|
|
5
|
-
resultsPerPage: number;
|
|
6
|
-
/**
|
|
7
|
-
* Number of sibling pages to show on each side of the current page.
|
|
8
|
-
* Defaults to 1.
|
|
9
|
-
*/
|
|
10
|
-
siblingPagesCount?: number;
|
|
11
|
-
/** Total number of results across all pages. */
|
|
12
|
-
totalResults: number;
|
|
13
|
-
}
|
|
14
|
-
/** Ellipsis marker used to collapse ranges in pagination output. */
|
|
15
|
-
export declare const ELLIPSIS = "\u2022\u2022\u2022";
|
|
16
|
-
/**
|
|
17
|
-
* Compute a pagination structure for result sets.
|
|
18
|
-
*
|
|
19
|
-
* Returns a mixed array of page numbers and the `ELLIPSIS` marker representing
|
|
20
|
-
* collapsed ranges. The shape adapts to the total pages and the requested
|
|
21
|
-
* sibling window around the current page.
|
|
22
|
-
*
|
|
23
|
-
* @param props - Pagination options. See {@link UsePaginationProps}.
|
|
24
|
-
* @returns Array of page numbers and `ELLIPSIS` representing the pagination model.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const paginationRange = usePagination({
|
|
29
|
-
* currentPage: 3,
|
|
30
|
-
* resultsPerPage: 10,
|
|
31
|
-
* siblingPagesCount: 1,
|
|
32
|
-
* totalResults: 100
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare function usePagination({ currentPage, resultsPerPage, siblingPagesCount, totalResults }: UsePaginationProps): (number | string)[];
|
|
37
|
-
//# sourceMappingURL=use-pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-pagination.d.ts","sourceRoot":"","sources":["../../src/hooks/use-pagination.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,oEAAoE;AACpE,eAAO,MAAM,QAAQ,uBAAQ,CAAC;AAe9B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,cAAc,EACd,iBAAqB,EACrB,YAAY,EACb,EAAE,kBAAkB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAuF1C"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
/** Ellipsis marker used to collapse ranges in pagination output. */
|
|
4
|
-
export const ELLIPSIS = "•••";
|
|
5
|
-
/**
|
|
6
|
-
* Generate a numeric range from start to end inclusive.
|
|
7
|
-
*
|
|
8
|
-
* @param start - Starting number (inclusive).
|
|
9
|
-
* @param end - Ending number (inclusive).
|
|
10
|
-
* @returns Array of numbers from start to end.
|
|
11
|
-
*/
|
|
12
|
-
const createRange = (start, end) => {
|
|
13
|
-
const length = end - start + 1;
|
|
14
|
-
return Array.from({ length }, (_, index) => start + index);
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Compute a pagination structure for result sets.
|
|
18
|
-
*
|
|
19
|
-
* Returns a mixed array of page numbers and the `ELLIPSIS` marker representing
|
|
20
|
-
* collapsed ranges. The shape adapts to the total pages and the requested
|
|
21
|
-
* sibling window around the current page.
|
|
22
|
-
*
|
|
23
|
-
* @param props - Pagination options. See {@link UsePaginationProps}.
|
|
24
|
-
* @returns Array of page numbers and `ELLIPSIS` representing the pagination model.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const paginationRange = usePagination({
|
|
29
|
-
* currentPage: 3,
|
|
30
|
-
* resultsPerPage: 10,
|
|
31
|
-
* siblingPagesCount: 1,
|
|
32
|
-
* totalResults: 100
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export function usePagination({ currentPage, resultsPerPage, siblingPagesCount = 1, totalResults, }) {
|
|
37
|
-
return useMemo(() => {
|
|
38
|
-
// Total pages derived from results and page size
|
|
39
|
-
const totalPages = Math.ceil(totalResults / Math.floor(resultsPerPage));
|
|
40
|
-
// Return an empty array if there are no pages to display
|
|
41
|
-
if (totalPages <= 0) {
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Total visible items including: first, last, current, siblings, and two ellipses.
|
|
46
|
-
*/
|
|
47
|
-
const visiblePageNumbers = siblingPagesCount + 5;
|
|
48
|
-
/**
|
|
49
|
-
* Case 1: If the number of pages is less than or equal to the visible page
|
|
50
|
-
* numbers, return an array of all page numbers.
|
|
51
|
-
*/
|
|
52
|
-
if (visiblePageNumbers >= totalPages) {
|
|
53
|
-
return createRange(1, totalPages);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Left sibling boundary (min 1).
|
|
57
|
-
*/
|
|
58
|
-
const leftSiblingIndex = Math.max(currentPage - siblingPagesCount, 1);
|
|
59
|
-
/**
|
|
60
|
-
* Right sibling boundary (max totalPages).
|
|
61
|
-
*/
|
|
62
|
-
const rightSiblingIndex = Math.min(currentPage + siblingPagesCount, totalPages);
|
|
63
|
-
/**
|
|
64
|
-
* Whether a left-side ellipsis is needed.
|
|
65
|
-
*/
|
|
66
|
-
const shouldShowLeftEllipsis = leftSiblingIndex > 2;
|
|
67
|
-
/**
|
|
68
|
-
* Whether a right-side ellipsis is needed.
|
|
69
|
-
*/
|
|
70
|
-
const shouldShowRightEllipsis = rightSiblingIndex < totalPages - 2;
|
|
71
|
-
/** First page number (always 1). */
|
|
72
|
-
const firstPage = 1;
|
|
73
|
-
/** Last page number (equals totalPages). */
|
|
74
|
-
const lastPage = totalPages;
|
|
75
|
-
/**
|
|
76
|
-
* Case 2: No left ellipsis, but right ellipsis is necessary.
|
|
77
|
-
* This occurs when the current page is close to the start of the
|
|
78
|
-
* pagination range.
|
|
79
|
-
*/
|
|
80
|
-
if (!shouldShowLeftEllipsis && shouldShowRightEllipsis) {
|
|
81
|
-
// Range starting from page 1 through the right sibling window
|
|
82
|
-
const leftRange = createRange(1, 3 + 2 * siblingPagesCount);
|
|
83
|
-
return [...leftRange, ELLIPSIS, lastPage];
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Case 3: No right ellipsis, but left ellipsis is necessary.
|
|
87
|
-
* This occurs when the current page is close to the end of the pagination
|
|
88
|
-
* range.
|
|
89
|
-
*/
|
|
90
|
-
if (shouldShowLeftEllipsis && !shouldShowRightEllipsis) {
|
|
91
|
-
// Range ending at last page through the left sibling window
|
|
92
|
-
const rightRange = createRange(totalPages - (3 + 2 * siblingPagesCount) + 1, totalPages);
|
|
93
|
-
return [firstPage, ELLIPSIS, ...rightRange];
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Case 4: Both left and right ellipsis are necessary.
|
|
97
|
-
* This occurs when the current page is far enough from both the start and
|
|
98
|
-
* end of the pagination range.
|
|
99
|
-
*/
|
|
100
|
-
if (shouldShowLeftEllipsis && shouldShowRightEllipsis) {
|
|
101
|
-
// Middle window from left to right siblings
|
|
102
|
-
const middleRange = createRange(leftSiblingIndex, rightSiblingIndex);
|
|
103
|
-
return [firstPage, ELLIPSIS, ...middleRange, ELLIPSIS, lastPage];
|
|
104
|
-
}
|
|
105
|
-
return [];
|
|
106
|
-
}, [totalResults, resultsPerPage, siblingPagesCount, currentPage]);
|
|
107
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger, } from "#components/accordion";
|
|
2
|
-
export type { AccordionContentProps, AccordionIconProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, } from "#components/accordion";
|
|
3
|
-
export { Alert, AlertDescription, AlertTitle, alertVariants } from "#components/alert";
|
|
4
|
-
export type { AlertDescriptionProps, AlertProps, AlertTitleProps } from "#components/alert";
|
|
5
|
-
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "#components/alert-dialog";
|
|
6
|
-
export type { AlertDialogActionProps, AlertDialogBodyProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, } from "#components/alert-dialog";
|
|
7
|
-
export { AspectRatio } from "#components/aspect-ratio";
|
|
8
|
-
export type { AspectRatioProps } from "#components/aspect-ratio";
|
|
9
|
-
export { Avatar, AvatarFallback, AvatarImage } from "#components/avatar";
|
|
10
|
-
export type { AvatarFallbackProps, AvatarImageProps, AvatarProps } from "#components/avatar";
|
|
11
|
-
export { Badge, badgeVariants } from "#components/badge";
|
|
12
|
-
export type { BadgeProps } from "#components/badge";
|
|
13
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from "#components/button-group";
|
|
14
|
-
export type { ButtonGroupProps, ButtonGroupSeparatorProps, ButtonGroupTextProps, } from "#components/button-group";
|
|
15
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "#components/breadcrumb";
|
|
16
|
-
export type { BreadcrumbEllipsisProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, } from "#components/breadcrumb";
|
|
17
|
-
export { Button, buttonVariants } from "#components/button";
|
|
18
|
-
export type { ButtonProps } from "#components/button";
|
|
19
|
-
export { Calendar, CalendarDayButton } from "#components/calendar";
|
|
20
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "#components/card";
|
|
21
|
-
export type { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, } from "#components/card";
|
|
22
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from "#components/carousel";
|
|
23
|
-
export type { CarouselApi, CarouselContentProps, CarouselItemProps, CarouselNextProps, CarouselPreviousProps, CarouselProps, } from "#components/carousel";
|
|
24
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from "#components/chart";
|
|
25
|
-
export type { ChartConfig, ChartContainerProps, ChartLegendContentProps, ChartLegendProps, ChartStyleProps, ChartTooltipContentProps, ChartTooltipProps, } from "#components/chart";
|
|
26
|
-
export { Checkbox } from "#components/checkbox";
|
|
27
|
-
export type { CheckboxProps } from "#components/checkbox";
|
|
28
|
-
export { CheckboxCards, CheckboxCardsItem } from "#components/checkbox-cards";
|
|
29
|
-
export type { CheckboxCardsItemProps, CheckboxCardsProps } from "#components/checkbox-cards";
|
|
30
|
-
export { CheckboxGroup, CheckboxGroupItem } from "#components/checkbox-group";
|
|
31
|
-
export type { CheckboxGroupItemProps, CheckboxGroupProps } from "#components/checkbox-group";
|
|
32
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#components/collapsible";
|
|
33
|
-
export type { CollapsibleContentProps, CollapsibleProps, CollapsibleTriggerProps, } from "#components/collapsible";
|
|
34
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from "#components/command";
|
|
35
|
-
export type { CommandDialogProps, CommandEmptyProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandLoadingProps, CommandProps, CommandSeparatorProps, CommandShortcutProps, } from "#components/command";
|
|
36
|
-
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "#components/context-menu";
|
|
37
|
-
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuLabelProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, } from "#components/context-menu";
|
|
38
|
-
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "#components/dialog";
|
|
39
|
-
export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from "#components/dialog";
|
|
40
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "#components/drawer";
|
|
41
|
-
export type { DrawerBodyProps, DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DrawerTitleProps, DrawerTriggerProps, } from "#components/drawer";
|
|
42
|
-
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "#components/dropdown-menu";
|
|
43
|
-
export type { DropdownMenuArrowProps, DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuShortcutProps, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuTriggerProps, } from "#components/dropdown-menu";
|
|
44
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, } from "#components/empty";
|
|
45
|
-
export type { EmptyContentProps, EmptyDescriptionProps, EmptyHeaderProps, EmptyMediaProps, EmptyProps, EmptyTitleProps, } from "#components/empty";
|
|
46
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, } from "#components/field";
|
|
47
|
-
export type { FieldContentProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, } from "#components/field";
|
|
48
|
-
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "#components/form";
|
|
49
|
-
export type { FormControlProps, FormDescriptionProps, FormFieldProps, FormItemProps, FormLabelProps, FormMessageProps, FormProps, } from "#components/form";
|
|
50
|
-
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, } from "#components/hover-card";
|
|
51
|
-
export type { HoverCardArrowProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps, } from "#components/hover-card";
|
|
52
|
-
export { Input } from "#components/input";
|
|
53
|
-
export type { InputProps } from "#components/input";
|
|
54
|
-
export { InputGroup, InputGroupAddon, inputGroupAddonVariants, InputGroupButton, inputGroupButtonVariants, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupVariants, } from "#components/input-group";
|
|
55
|
-
export type { InputGroupAddonProps, InputGroupButtonProps, InputGroupInputProps, InputGroupProps, InputGroupTextareaProps, InputGroupTextProps, } from "#components/input-group";
|
|
56
|
-
export { InputNumber } from "#components/input-number";
|
|
57
|
-
export type { InputNumberProps } from "#components/input-number";
|
|
58
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "#components/input-otp";
|
|
59
|
-
export type { InputOTPGroupProps, InputOTPProps, InputOTPSeparatorProps, InputOTPSlotProps, } from "#components/input-otp";
|
|
60
|
-
export { InputPassword } from "#components/input-password";
|
|
61
|
-
export type { InputPasswordProps } from "#components/input-password";
|
|
62
|
-
export { InputSearch } from "#components/input-search";
|
|
63
|
-
export type { InputSearchProps } from "#components/input-search";
|
|
64
|
-
export { Kbd, KbdGroup } from "#components/kbd";
|
|
65
|
-
export type { KbdGroupProps, KbdProps } from "#components/kbd";
|
|
66
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, itemMediaVariants, ItemSeparator, ItemTitle, itemVariants, } from "#components/item";
|
|
67
|
-
export type { ItemActionsProps, ItemContentProps, ItemDescriptionProps, ItemFooterProps, ItemGroupProps, ItemHeaderProps, ItemMediaProps, ItemProps, ItemSeparatorProps, ItemTitleProps, } from "#components/item";
|
|
68
|
-
export { Label } from "#components/label";
|
|
69
|
-
export type { LabelProps } from "#components/label";
|
|
70
|
-
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "#components/menubar";
|
|
71
|
-
export type { MenubarArrowProps, MenubarCheckboxItemProps, MenubarContentProps, MenubarGroupProps, MenubarItemProps, MenubarLabelProps, MenubarMenuProps, MenubarProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarSeparatorProps, MenubarShortcutProps, MenubarSubContentProps, MenubarSubProps, MenubarSubTriggerProps, MenubarTriggerProps, } from "#components/menubar";
|
|
72
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerVariants, } from "#components/navigation-menu";
|
|
73
|
-
export type { NavigationMenuContentProps, NavigationMenuItemProps, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTriggerProps, } from "#components/navigation-menu";
|
|
74
|
-
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "#components/native-select";
|
|
75
|
-
export type { NativeSelectOptGroupProps, NativeSelectOptionProps, NativeSelectProps, } from "#components/native-select";
|
|
76
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "#components/pagination";
|
|
77
|
-
export type { PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPreviousProps, PaginationProps, } from "#components/pagination";
|
|
78
|
-
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, } from "#components/popover";
|
|
79
|
-
export type { PopoverAnchorProps, PopoverArrowProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, } from "#components/popover";
|
|
80
|
-
export { Progress } from "#components/progress";
|
|
81
|
-
export type { ProgressProps } from "#components/progress";
|
|
82
|
-
export { ProgressCircle, progressCircleVariants } from "#components/progress-circle";
|
|
83
|
-
export type { ProgressCircleProps } from "#components/progress-circle";
|
|
84
|
-
export { Radio } from "#components/radio";
|
|
85
|
-
export type { RadioProps } from "#components/radio";
|
|
86
|
-
export { RadioCards, RadioCardsItem } from "#components/radio-cards";
|
|
87
|
-
export type { RadioCardsItemProps, RadioCardsProps } from "#components/radio-cards";
|
|
88
|
-
export { RadioGroup, RadioGroupItem } from "#components/radio-group";
|
|
89
|
-
export type { RadioGroupItemProps, RadioGroupProps } from "#components/radio-group";
|
|
90
|
-
export { ResizableGroup, ResizablePanel, ResizableSeparator } from "#components/resizable";
|
|
91
|
-
export type { ResizableGroupProps, ResizablePanelProps, ResizableSeparatorProps, } from "#components/resizable";
|
|
92
|
-
export { ScrollArea, ScrollAreaScrollbar, scrollAreaScrollbarVariants, } from "#components/scroll-area";
|
|
93
|
-
export type { ScrollAreaProps, ScrollAreaScrollbarProps } from "#components/scroll-area";
|
|
94
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "#components/select";
|
|
95
|
-
export type { SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps, } from "#components/select";
|
|
96
|
-
export { Separator, SeparatorItem, separatorVariants } from "#components/separator";
|
|
97
|
-
export type { SeparatorItemProps, SeparatorProps } from "#components/separator";
|
|
98
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, sheetContentVariants, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "#components/sheet";
|
|
99
|
-
export type { SheetBodyProps, SheetCloseProps, SheetContentProps, SheetDescriptionProps, SheetFooterProps, SheetHeaderProps, SheetProps, SheetTitleProps, SheetTriggerProps, } from "#components/sheet";
|
|
100
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, sidebarMenuButtonVariants, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "#components/sidebar";
|
|
101
|
-
export type { SidebarContentProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProviderProps, SidebarRailProps, SidebarSeparatorProps, SidebarTriggerProps, } from "#components/sidebar";
|
|
102
|
-
export { Skeleton } from "#components/skeleton";
|
|
103
|
-
export type { SkeletonProps } from "#components/skeleton";
|
|
104
|
-
export { Slider } from "#components/slider";
|
|
105
|
-
export type { SliderProps } from "#components/slider";
|
|
106
|
-
export { toast, Toaster, useSonner } from "#components/sonner";
|
|
107
|
-
export type { ToasterProps } from "#components/sonner";
|
|
108
|
-
export { Spinner } from "#components/spinner";
|
|
109
|
-
export type { SpinnerProps } from "#components/spinner";
|
|
110
|
-
export { Switch } from "#components/switch";
|
|
111
|
-
export type { SwitchProps } from "#components/switch";
|
|
112
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "#components/table";
|
|
113
|
-
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderProps, TableHeadProps, TableProps, TableRowProps, } from "#components/table";
|
|
114
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from "#components/tabs";
|
|
115
|
-
export type { TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, } from "#components/tabs";
|
|
116
|
-
export { Textarea } from "#components/textarea";
|
|
117
|
-
export type { TextareaProps } from "#components/textarea";
|
|
118
|
-
export { Toggle, toggleVariants } from "#components/toggle";
|
|
119
|
-
export type { ToggleProps, ToggleVariants } from "#components/toggle";
|
|
120
|
-
export { ToggleGroup, ToggleGroupItem } from "#components/toggle-group";
|
|
121
|
-
export type { ToggleGroupItemProps, ToggleGroupProps } from "#components/toggle-group";
|
|
122
|
-
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, } from "#components/tooltip";
|
|
123
|
-
export type { TooltipArrowProps, TooltipContentProps, TooltipProps, TooltipProviderProps, TooltipTriggerProps, } from "#components/tooltip";
|
|
124
|
-
export { useAnimatedValue } from "#hooks/use-animated-value";
|
|
125
|
-
export { useCopyToClipboard } from "#hooks/use-copy-to-clipboard";
|
|
126
|
-
export { useIsMobile } from "#hooks/use-is-mobile";
|
|
127
|
-
export { useMediaQuery } from "#hooks/use-media-query";
|
|
128
|
-
export { useMutationObserver } from "#hooks/use-mutation-observer";
|
|
129
|
-
export { ELLIPSIS, usePagination } from "#hooks/use-pagination";
|
|
130
|
-
export type { UsePaginationProps } from "#hooks/use-pagination";
|
|
131
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvF,YAAY,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE5F,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,gBA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8BAA8B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger, } from "#components/accordion";
|
|
2
|
-
export { Alert, AlertDescription, AlertTitle, alertVariants } from "#components/alert";
|
|
3
|
-
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "#components/alert-dialog";
|
|
4
|
-
export { AspectRatio } from "#components/aspect-ratio";
|
|
5
|
-
export { Avatar, AvatarFallback, AvatarImage } from "#components/avatar";
|
|
6
|
-
export { Badge, badgeVariants } from "#components/badge";
|
|
7
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from "#components/button-group";
|
|
8
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "#components/breadcrumb";
|
|
9
|
-
export { Button, buttonVariants } from "#components/button";
|
|
10
|
-
export { Calendar, CalendarDayButton } from "#components/calendar";
|
|
11
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "#components/card";
|
|
12
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope, } from "#components/carousel";
|
|
13
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, createChartScope, } from "#components/chart";
|
|
14
|
-
export { Checkbox } from "#components/checkbox";
|
|
15
|
-
export { CheckboxCards, CheckboxCardsItem } from "#components/checkbox-cards";
|
|
16
|
-
export { CheckboxGroup, CheckboxGroupItem } from "#components/checkbox-group";
|
|
17
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#components/collapsible";
|
|
18
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, } from "#components/command";
|
|
19
|
-
export { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "#components/context-menu";
|
|
20
|
-
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "#components/dialog";
|
|
21
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "#components/drawer";
|
|
22
|
-
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "#components/dropdown-menu";
|
|
23
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, } from "#components/empty";
|
|
24
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, } from "#components/field";
|
|
25
|
-
export { createFormFieldScope, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "#components/form";
|
|
26
|
-
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, } from "#components/hover-card";
|
|
27
|
-
export { Input } from "#components/input";
|
|
28
|
-
export { InputGroup, InputGroupAddon, inputGroupAddonVariants, InputGroupButton, inputGroupButtonVariants, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupVariants, } from "#components/input-group";
|
|
29
|
-
export { InputNumber } from "#components/input-number";
|
|
30
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "#components/input-otp";
|
|
31
|
-
export { InputPassword } from "#components/input-password";
|
|
32
|
-
export { InputSearch } from "#components/input-search";
|
|
33
|
-
export { Kbd, KbdGroup } from "#components/kbd";
|
|
34
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, itemMediaVariants, ItemSeparator, ItemTitle, itemVariants, } from "#components/item";
|
|
35
|
-
export { Label } from "#components/label";
|
|
36
|
-
export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "#components/menubar";
|
|
37
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerVariants, } from "#components/navigation-menu";
|
|
38
|
-
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "#components/native-select";
|
|
39
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "#components/pagination";
|
|
40
|
-
export { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, } from "#components/popover";
|
|
41
|
-
export { Progress } from "#components/progress";
|
|
42
|
-
export { ProgressCircle, progressCircleVariants } from "#components/progress-circle";
|
|
43
|
-
export { Radio } from "#components/radio";
|
|
44
|
-
export { RadioCards, RadioCardsItem } from "#components/radio-cards";
|
|
45
|
-
export { RadioGroup, RadioGroupItem } from "#components/radio-group";
|
|
46
|
-
export { ResizableGroup, ResizablePanel, ResizableSeparator } from "#components/resizable";
|
|
47
|
-
export { ScrollArea, ScrollAreaScrollbar, scrollAreaScrollbarVariants, } from "#components/scroll-area";
|
|
48
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "#components/select";
|
|
49
|
-
export { Separator, SeparatorItem, separatorVariants } from "#components/separator";
|
|
50
|
-
export { Sheet, SheetBody, SheetClose, SheetContent, sheetContentVariants, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "#components/sheet";
|
|
51
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, sidebarMenuButtonVariants, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "#components/sidebar";
|
|
52
|
-
export { Skeleton } from "#components/skeleton";
|
|
53
|
-
export { Slider } from "#components/slider";
|
|
54
|
-
export { toast, Toaster, useSonner } from "#components/sonner";
|
|
55
|
-
export { Spinner } from "#components/spinner";
|
|
56
|
-
export { Switch } from "#components/switch";
|
|
57
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "#components/table";
|
|
58
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger } from "#components/tabs";
|
|
59
|
-
export { Textarea } from "#components/textarea";
|
|
60
|
-
export { Toggle, toggleVariants } from "#components/toggle";
|
|
61
|
-
export { ToggleGroup, ToggleGroupItem } from "#components/toggle-group";
|
|
62
|
-
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, } from "#components/tooltip";
|
|
63
|
-
export { useAnimatedValue } from "#hooks/use-animated-value";
|
|
64
|
-
export { useCopyToClipboard } from "#hooks/use-copy-to-clipboard";
|
|
65
|
-
export { useIsMobile } from "#hooks/use-is-mobile";
|
|
66
|
-
export { useMediaQuery } from "#hooks/use-media-query";
|
|
67
|
-
export { useMutationObserver } from "#hooks/use-mutation-observer";
|
|
68
|
-
export { ELLIPSIS, usePagination } from "#hooks/use-pagination";
|
package/dist/lib/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "@codefast/tailwind-variants";
|
|
2
|
-
/**
|
|
3
|
-
* Shared Tailwind Variants factory for `@codefast/ui`.
|
|
4
|
-
* Use these `cn` / `tv` helpers everywhere in this package so class merging stays consistent
|
|
5
|
-
* and optional `twMergeConfig` can be applied in one place later.
|
|
6
|
-
*/
|
|
7
|
-
declare const cn: (...classes: import("clsx").ClassValue[]) => string, tv: import("@codefast/tailwind-variants").TailwindVariantsFactory;
|
|
8
|
-
export { cn, tv };
|
|
9
|
-
export type { VariantProps };
|
|
10
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/lib/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE;;;;GAIG;AACH,QAAA,MAAQ,EAAE,uDAAE,EAAE,+DAEZ,CAAC;AAEH,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAClB,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/lib/utils.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createTV } from "@codefast/tailwind-variants";
|
|
2
|
-
/**
|
|
3
|
-
* Shared Tailwind Variants factory for `@codefast/ui`.
|
|
4
|
-
* Use these `cn` / `tv` helpers everywhere in this package so class merging stays consistent
|
|
5
|
-
* and optional `twMergeConfig` can be applied in one place later.
|
|
6
|
-
*/
|
|
7
|
-
const { cn, tv } = createTV({
|
|
8
|
-
twMerge: true,
|
|
9
|
-
});
|
|
10
|
-
export { cn, tv };
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { Scope } from "@radix-ui/react-context";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
-
import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
|
|
5
|
-
/**
|
|
6
|
-
* Type for components that can be scoped within the CheckboxGroup context
|
|
7
|
-
*/
|
|
8
|
-
type ScopedProps<P> = P & {
|
|
9
|
-
/**
|
|
10
|
-
* Optional scope for the CheckboxGroup component
|
|
11
|
-
*/
|
|
12
|
-
__scopeCheckboxGroup?: Scope;
|
|
13
|
-
};
|
|
14
|
-
declare const createCheckboxGroupScope: import("@radix-ui/react-context").CreateScope;
|
|
15
|
-
/**
|
|
16
|
-
* Context values shared between CheckboxGroup components
|
|
17
|
-
*/
|
|
18
|
-
interface CheckboxGroupContextValue {
|
|
19
|
-
/**
|
|
20
|
-
* Whether all checkbox items are disabled
|
|
21
|
-
*/
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Function called when a checkbox item is checked
|
|
25
|
-
* @param value - The value of the checked item
|
|
26
|
-
*/
|
|
27
|
-
onItemCheck: (value: string) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Function called when a checkbox item is unchecked
|
|
30
|
-
* @param value - The value of the unchecked item
|
|
31
|
-
*/
|
|
32
|
-
onItemUncheck: (value: string) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Whether checkbox selection is required
|
|
35
|
-
*/
|
|
36
|
-
required: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Optional name attribute for the checkbox group form field
|
|
39
|
-
*/
|
|
40
|
-
name?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Array of currently selected checkbox values
|
|
43
|
-
*/
|
|
44
|
-
value?: string[];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Base props for the CheckboxGroup component
|
|
48
|
-
*/
|
|
49
|
-
interface CheckboxGroupBaseProps {
|
|
50
|
-
/**
|
|
51
|
-
* Default values for the checkbox group when uncontrolled
|
|
52
|
-
*/
|
|
53
|
-
defaultValue?: string[];
|
|
54
|
-
/**
|
|
55
|
-
* Direction for roving focus navigation
|
|
56
|
-
*/
|
|
57
|
-
dir?: RovingFocusGroup.RovingFocusGroupProps["dir"];
|
|
58
|
-
/**
|
|
59
|
-
* Whether the entire checkbox group is disabled
|
|
60
|
-
*/
|
|
61
|
-
disabled?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether focus should loop to the start/end when reaching the boundaries
|
|
64
|
-
*/
|
|
65
|
-
loop?: RovingFocusGroup.RovingFocusGroupProps["loop"];
|
|
66
|
-
/**
|
|
67
|
-
* Name attribute for the checkbox group form field
|
|
68
|
-
*/
|
|
69
|
-
name?: CheckboxGroupContextValue["name"];
|
|
70
|
-
/**
|
|
71
|
-
* Callback fired when the selected values change
|
|
72
|
-
* @param value - The new array of selected values
|
|
73
|
-
*/
|
|
74
|
-
onValueChange?: (value?: string[]) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Orientation of the checkbox group (horizontal or vertical)
|
|
77
|
-
*/
|
|
78
|
-
orientation?: RovingFocusGroup.RovingFocusGroupProps["orientation"];
|
|
79
|
-
/**
|
|
80
|
-
* Whether at least one checkbox must be selected
|
|
81
|
-
*/
|
|
82
|
-
required?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Controlled values for the checkbox group
|
|
85
|
-
*/
|
|
86
|
-
value?: CheckboxGroupContextValue["value"];
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Props for the CheckboxGroup component
|
|
90
|
-
*/
|
|
91
|
-
type CheckboxGroupProps = CheckboxGroupBaseProps & ComponentProps<"div">;
|
|
92
|
-
/**
|
|
93
|
-
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
94
|
-
*/
|
|
95
|
-
declare function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled, loop, name, onValueChange, orientation, required, value: valueProperty, ...props }: ScopedProps<CheckboxGroupProps>): JSX.Element;
|
|
96
|
-
/**
|
|
97
|
-
* Props for the CheckboxGroupItem component
|
|
98
|
-
*/
|
|
99
|
-
interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>, "checked" | "defaultChecked" | "name" | "onCheckedChange"> {
|
|
100
|
-
/**
|
|
101
|
-
* Value of the checkbox item, used to identify the item within the group
|
|
102
|
-
*/
|
|
103
|
-
value: string;
|
|
104
|
-
/**
|
|
105
|
-
* Whether this specific checkbox item is disabled
|
|
106
|
-
*/
|
|
107
|
-
disabled?: boolean;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Individual checkbox item within a CheckboxGroup
|
|
111
|
-
*/
|
|
112
|
-
declare function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }: ScopedProps<CheckboxGroupItemProps>): JSX.Element;
|
|
113
|
-
/**
|
|
114
|
-
* Props for the CheckboxGroupIndicator component
|
|
115
|
-
*/
|
|
116
|
-
type CheckboxGroupIndicatorProps = ComponentProps<typeof CheckboxPrimitive.Indicator>;
|
|
117
|
-
/**
|
|
118
|
-
* Visual indicator component for a CheckboxGroupItem
|
|
119
|
-
*/
|
|
120
|
-
declare function CheckboxGroupIndicator({ __scopeCheckboxGroup, ...props }: ScopedProps<CheckboxGroupIndicatorProps>): JSX.Element;
|
|
121
|
-
export { CheckboxGroup, CheckboxGroupIndicator, CheckboxGroupItem, createCheckboxGroupScope, CheckboxGroupIndicator as Indicator, CheckboxGroupItem as Item, CheckboxGroup as Root, };
|
|
122
|
-
export type { CheckboxGroupIndicatorProps, CheckboxGroupItemProps, CheckboxGroupProps };
|
|
123
|
-
//# sourceMappingURL=checkb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