@arolariu/components 0.4.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{changelog.md → CHANGELOG.md} +36 -0
- package/CONTRIBUTING.md +344 -265
- package/DEBUGGING.md +185 -103
- package/EXAMPLES.md +470 -345
- package/{readme.md → README.md} +306 -203
- package/dist/components/ui/accordion.d.ts +157 -5
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +100 -22
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/accordion.module.js +12 -0
- package/dist/components/ui/accordion.module.js.map +1 -0
- package/dist/components/ui/accordion_module.css +72 -0
- package/dist/components/ui/accordion_module.css.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +321 -18
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +145 -52
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert-dialog.module.js +13 -0
- package/dist/components/ui/alert-dialog.module.js.map +1 -0
- package/dist/components/ui/alert-dialog_module.css +89 -0
- package/dist/components/ui/alert-dialog_module.css.map +1 -0
- package/dist/components/ui/alert.d.ts +109 -6
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +12 -21
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/alert.module.js +11 -0
- package/dist/components/ui/alert.module.js.map +1 -0
- package/dist/components/ui/alert_module.css +59 -0
- package/dist/components/ui/alert_module.css.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +24 -2
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.js +14 -3
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/aspect-ratio.module.js +7 -0
- package/dist/components/ui/aspect-ratio.module.js.map +1 -0
- package/dist/components/ui/aspect-ratio_module.css +10 -0
- package/dist/components/ui/aspect-ratio_module.css.map +1 -0
- package/dist/components/ui/async-boundary.js +17 -0
- package/dist/components/ui/async-boundary.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +97 -4
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +50 -21
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/avatar.module.js +9 -0
- package/dist/components/ui/avatar.module.js.map +1 -0
- package/dist/components/ui/avatar_module.css +35 -0
- package/dist/components/ui/avatar_module.css.map +1 -0
- package/dist/components/ui/background-beams.d.ts +21 -3
- package/dist/components/ui/background-beams.d.ts.map +1 -1
- package/dist/components/ui/background-beams.js +22 -11
- package/dist/components/ui/background-beams.js.map +1 -1
- package/dist/components/ui/background-beams.module.js +8 -0
- package/dist/components/ui/background-beams.module.js.map +1 -0
- package/dist/components/ui/background-beams_module.css +22 -0
- package/dist/components/ui/background-beams_module.css.map +1 -0
- package/dist/components/ui/badge.d.ts +79 -6
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +19 -23
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/badge.module.js +11 -0
- package/dist/components/ui/badge.module.js.map +1 -0
- package/dist/components/ui/badge_module.css +63 -0
- package/dist/components/ui/badge_module.css.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +158 -13
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +39 -30
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/breadcrumb.module.js +14 -0
- package/dist/components/ui/breadcrumb.module.js.map +1 -0
- package/dist/components/ui/breadcrumb_module.css +90 -0
- package/dist/components/ui/breadcrumb_module.css.map +1 -0
- package/dist/components/ui/bubble-background.d.ts +38 -10
- package/dist/components/ui/bubble-background.d.ts.map +1 -1
- package/dist/components/ui/bubble-background.js +33 -35
- package/dist/components/ui/bubble-background.js.map +1 -1
- package/dist/components/ui/bubble-background.module.js +20 -0
- package/dist/components/ui/bubble-background.module.js.map +1 -0
- package/dist/components/ui/bubble-background_module.css +99 -0
- package/dist/components/ui/bubble-background_module.css.map +1 -0
- package/dist/components/ui/button-group.d.ts +88 -8
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group.js +35 -32
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button-group.module.js +11 -0
- package/dist/components/ui/button-group.module.js.map +1 -0
- package/dist/components/ui/button-group_module.css +79 -0
- package/dist/components/ui/button-group_module.css.map +1 -0
- package/dist/components/ui/button.d.ts +82 -7
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +69 -34
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/button.module.js +17 -0
- package/dist/components/ui/button.module.js.map +1 -0
- package/dist/components/ui/button_module.css +137 -0
- package/dist/components/ui/button_module.css.map +1 -0
- package/dist/components/ui/calendar.d.ts +39 -5
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +72 -61
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/calendar.module.js +35 -0
- package/dist/components/ui/calendar.module.js.map +1 -0
- package/dist/components/ui/calendar_module.css +245 -0
- package/dist/components/ui/calendar_module.css.map +1 -0
- package/dist/components/ui/card-skeleton.js +41 -0
- package/dist/components/ui/card-skeleton.js.map +1 -0
- package/dist/components/ui/card-skeleton.module.js +15 -0
- package/dist/components/ui/card-skeleton.module.js.map +1 -0
- package/dist/components/ui/card-skeleton_module.css +54 -0
- package/dist/components/ui/card-skeleton_module.css.map +1 -0
- package/dist/components/ui/card.d.ts +162 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +13 -13
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/card.module.js +13 -0
- package/dist/components/ui/card.module.js.map +1 -0
- package/dist/components/ui/card_module.css +43 -0
- package/dist/components/ui/card_module.css.map +1 -0
- package/dist/components/ui/carousel.d.ts +127 -3
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +63 -36
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/carousel.module.js +17 -0
- package/dist/components/ui/carousel.module.js.map +1 -0
- package/dist/components/ui/carousel_module.css +82 -0
- package/dist/components/ui/carousel_module.css.map +1 -0
- package/dist/components/ui/chart.d.ts +323 -13
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +158 -53
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/chart.module.js +27 -0
- package/dist/components/ui/chart.module.js.map +1 -0
- package/dist/components/ui/chart_module.css +159 -0
- package/dist/components/ui/chart_module.css.map +1 -0
- package/dist/components/ui/checkbox-group.d.ts +31 -0
- package/dist/components/ui/checkbox-group.d.ts.map +1 -0
- package/dist/components/ui/checkbox-group.js +25 -0
- package/dist/components/ui/checkbox-group.js.map +1 -0
- package/dist/components/ui/checkbox-group.module.js +7 -0
- package/dist/components/ui/checkbox-group.module.js.map +1 -0
- package/dist/components/ui/checkbox-group_module.css +11 -0
- package/dist/components/ui/checkbox-group_module.css.map +1 -0
- package/dist/components/ui/checkbox.d.ts +33 -2
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +37 -12
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/checkbox.module.js +8 -0
- package/dist/components/ui/checkbox.module.js.map +1 -0
- package/dist/components/ui/checkbox_module.css +45 -0
- package/dist/components/ui/checkbox_module.css.map +1 -0
- package/dist/components/ui/collapsible.d.ts +87 -3
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +46 -32
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/collapsible.module.js +8 -0
- package/dist/components/ui/collapsible.module.js.map +1 -0
- package/dist/components/ui/collapsible_module.css +26 -0
- package/dist/components/ui/collapsible_module.css.map +1 -0
- package/dist/components/ui/command.d.ts +284 -51
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +391 -50
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/command.module.js +20 -0
- package/dist/components/ui/command.module.js.map +1 -0
- package/dist/components/ui/command_module.css +194 -0
- package/dist/components/ui/command_module.css.map +1 -0
- package/dist/components/ui/context-menu.d.ts +414 -21
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +190 -68
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/context-menu.module.js +19 -0
- package/dist/components/ui/context-menu.module.js.map +1 -0
- package/dist/components/ui/context-menu_module.css +114 -0
- package/dist/components/ui/context-menu_module.css.map +1 -0
- package/dist/components/ui/copy-button.d.ts +41 -0
- package/dist/components/ui/copy-button.d.ts.map +1 -0
- package/dist/components/ui/copy-button.js +51 -0
- package/dist/components/ui/copy-button.js.map +1 -0
- package/dist/components/ui/copy-button.module.js +8 -0
- package/dist/components/ui/copy-button.module.js.map +1 -0
- package/dist/components/ui/copy-button_module.css +37 -0
- package/dist/components/ui/copy-button_module.css.map +1 -0
- package/dist/components/ui/counting-number.d.ts +28 -2
- package/dist/components/ui/counting-number.d.ts.map +1 -1
- package/dist/components/ui/counting-number.js +31 -27
- package/dist/components/ui/counting-number.js.map +1 -1
- package/dist/components/ui/counting-number.module.js +7 -0
- package/dist/components/ui/counting-number.module.js.map +1 -0
- package/dist/components/ui/counting-number_module.css +7 -0
- package/dist/components/ui/counting-number_module.css.map +1 -0
- package/dist/components/ui/dialog.d.ts +287 -17
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +129 -52
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dialog.module.js +13 -0
- package/dist/components/ui/dialog.module.js.map +1 -0
- package/dist/components/ui/dialog_module.css +114 -0
- package/dist/components/ui/dialog_module.css.map +1 -0
- package/dist/components/ui/dot-background.d.ts +25 -35
- package/dist/components/ui/dot-background.d.ts.map +1 -1
- package/dist/components/ui/dot-background.js +31 -22
- package/dist/components/ui/dot-background.js.map +1 -1
- package/dist/components/ui/dot-background.module.js +8 -0
- package/dist/components/ui/dot-background.module.js.map +1 -0
- package/dist/components/ui/dot-background_module.css +15 -0
- package/dist/components/ui/dot-background_module.css.map +1 -0
- package/dist/components/ui/drawer.d.ts +287 -18
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +117 -40
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/drawer.module.js +14 -0
- package/dist/components/ui/drawer.module.js.map +1 -0
- package/dist/components/ui/drawer_module.css +86 -0
- package/dist/components/ui/drawer_module.css.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +414 -21
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +189 -68
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu.module.js +19 -0
- package/dist/components/ui/dropdown-menu.module.js.map +1 -0
- package/dist/components/ui/dropdown-menu_module.css +114 -0
- package/dist/components/ui/dropdown-menu_module.css.map +1 -0
- package/dist/components/ui/dropdrawer.d.ts +313 -17
- package/dist/components/ui/dropdrawer.d.ts.map +1 -1
- package/dist/components/ui/dropdrawer.js +423 -159
- package/dist/components/ui/dropdrawer.js.map +1 -1
- package/dist/components/ui/dropdrawer.module.js +43 -0
- package/dist/components/ui/dropdrawer.module.js.map +1 -0
- package/dist/components/ui/dropdrawer_module.css +307 -0
- package/dist/components/ui/dropdrawer_module.css.map +1 -0
- package/dist/components/ui/empty.d.ts +129 -10
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js +32 -47
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/empty.module.js +13 -0
- package/dist/components/ui/empty.module.js.map +1 -0
- package/dist/components/ui/empty_module.css +85 -0
- package/dist/components/ui/empty_module.css.map +1 -0
- package/dist/components/ui/error-boundary.js +61 -0
- package/dist/components/ui/error-boundary.js.map +1 -0
- package/dist/components/ui/error-boundary.module.js +10 -0
- package/dist/components/ui/error-boundary.module.js.map +1 -0
- package/dist/components/ui/error-boundary_module.css +41 -0
- package/dist/components/ui/error-boundary_module.css.map +1 -0
- package/dist/components/ui/field.d.ts +225 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +76 -86
- package/dist/components/ui/field.js.map +1 -1
- package/dist/components/ui/field.module.js +24 -0
- package/dist/components/ui/field.module.js.map +1 -0
- package/dist/components/ui/field_module.css +185 -0
- package/dist/components/ui/field_module.css.map +1 -0
- package/dist/components/ui/fireworks-background.d.ts +27 -3
- package/dist/components/ui/fireworks-background.d.ts.map +1 -1
- package/dist/components/ui/fireworks-background.js +36 -35
- package/dist/components/ui/fireworks-background.js.map +1 -1
- package/dist/components/ui/fireworks-background.module.js +8 -0
- package/dist/components/ui/fireworks-background.module.js.map +1 -0
- package/dist/components/ui/fireworks-background_module.css +17 -0
- package/dist/components/ui/fireworks-background_module.css.map +1 -0
- package/dist/components/ui/flip-button.d.ts +27 -3
- package/dist/components/ui/flip-button.d.ts.map +1 -1
- package/dist/components/ui/flip-button.js +27 -17
- package/dist/components/ui/flip-button.js.map +1 -1
- package/dist/components/ui/flip-button.module.js +11 -0
- package/dist/components/ui/flip-button.module.js.map +1 -0
- package/dist/components/ui/flip-button_module.css +47 -0
- package/dist/components/ui/flip-button_module.css.map +1 -0
- package/dist/components/ui/focus-scope.js +70 -0
- package/dist/components/ui/focus-scope.js.map +1 -0
- package/dist/components/ui/focus-scope.module.js +7 -0
- package/dist/components/ui/focus-scope.module.js.map +1 -0
- package/dist/components/ui/focus-scope_module.css +6 -0
- package/dist/components/ui/focus-scope_module.css.map +1 -0
- package/dist/components/ui/form-skeleton.js +32 -0
- package/dist/components/ui/form-skeleton.js.map +1 -0
- package/dist/components/ui/form-skeleton.module.js +11 -0
- package/dist/components/ui/form-skeleton.module.js.map +1 -0
- package/dist/components/ui/form-skeleton_module.css +30 -0
- package/dist/components/ui/form-skeleton_module.css.map +1 -0
- package/dist/components/ui/form.d.ts +143 -13
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +55 -21
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/form.module.js +10 -0
- package/dist/components/ui/form.module.js.map +1 -0
- package/dist/components/ui/form_module.css +22 -0
- package/dist/components/ui/form_module.css.map +1 -0
- package/dist/components/ui/gradient-background.d.ts +21 -3
- package/dist/components/ui/gradient-background.d.ts.map +1 -1
- package/dist/components/ui/gradient-background.js +8 -4
- package/dist/components/ui/gradient-background.js.map +1 -1
- package/dist/components/ui/gradient-background.module.js +7 -0
- package/dist/components/ui/gradient-background.module.js.map +1 -0
- package/dist/components/ui/gradient-background_module.css +9 -0
- package/dist/components/ui/gradient-background_module.css.map +1 -0
- package/dist/components/ui/gradient-text.d.ts +23 -2
- package/dist/components/ui/gradient-text.d.ts.map +1 -1
- package/dist/components/ui/gradient-text.js +8 -6
- package/dist/components/ui/gradient-text.js.map +1 -1
- package/dist/components/ui/gradient-text.module.js +9 -0
- package/dist/components/ui/gradient-text.module.js.map +1 -0
- package/dist/components/ui/gradient-text_module.css +24 -0
- package/dist/components/ui/gradient-text_module.css.map +1 -0
- package/dist/components/ui/highlight-text.d.ts +24 -2
- package/dist/components/ui/highlight-text.d.ts.map +1 -1
- package/dist/components/ui/highlight-text.js +7 -10
- package/dist/components/ui/highlight-text.js.map +1 -1
- package/dist/components/ui/highlight-text.module.js +7 -0
- package/dist/components/ui/highlight-text.module.js.map +1 -0
- package/dist/components/ui/highlight-text_module.css +16 -0
- package/dist/components/ui/highlight-text_module.css.map +1 -0
- package/dist/components/ui/hole-background.d.ts +23 -2
- package/dist/components/ui/hole-background.d.ts.map +1 -1
- package/dist/components/ui/hole-background.js +155 -118
- package/dist/components/ui/hole-background.js.map +1 -1
- package/dist/components/ui/hole-background.module.js +10 -0
- package/dist/components/ui/hole-background.module.js.map +1 -0
- package/dist/components/ui/hole-background_module.css +85 -0
- package/dist/components/ui/hole-background_module.css.map +1 -0
- package/dist/components/ui/hover-card.d.ts +85 -4
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +52 -10
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/hover-card.module.js +8 -0
- package/dist/components/ui/hover-card.module.js.map +1 -0
- package/dist/components/ui/hover-card_module.css +23 -0
- package/dist/components/ui/hover-card_module.css.map +1 -0
- package/dist/components/ui/input-group.d.ts +132 -13
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +62 -66
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-group.module.js +20 -0
- package/dist/components/ui/input-group.module.js.map +1 -0
- package/dist/components/ui/input-group_module.css +150 -0
- package/dist/components/ui/input-group_module.css.map +1 -0
- package/dist/components/ui/input-otp.d.ts +110 -30
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +24 -15
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input-otp.module.js +17 -0
- package/dist/components/ui/input-otp.module.js.map +1 -0
- package/dist/components/ui/input-otp_module.css +89 -0
- package/dist/components/ui/input-otp_module.css.map +1 -0
- package/dist/components/ui/input.d.ts +31 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +21 -8
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/input.module.js +7 -0
- package/dist/components/ui/input.module.js.map +1 -0
- package/dist/components/ui/input_module.css +40 -0
- package/dist/components/ui/input_module.css.map +1 -0
- package/dist/components/ui/item.d.ts +221 -19
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +66 -90
- package/dist/components/ui/item.js.map +1 -1
- package/dist/components/ui/item.module.js +22 -0
- package/dist/components/ui/item.module.js.map +1 -0
- package/dist/components/ui/item_module.css +143 -0
- package/dist/components/ui/item_module.css.map +1 -0
- package/dist/components/ui/kbd.d.ts +43 -2
- package/dist/components/ui/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd.js +12 -12
- package/dist/components/ui/kbd.js.map +1 -1
- package/dist/components/ui/kbd.module.js +8 -0
- package/dist/components/ui/kbd.module.js.map +1 -0
- package/dist/components/ui/kbd_module.css +35 -0
- package/dist/components/ui/kbd_module.css.map +1 -0
- package/dist/components/ui/label.d.ts +30 -3
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +7 -8
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/label.module.js +7 -0
- package/dist/components/ui/label.module.js.map +1 -0
- package/dist/components/ui/label_module.css +17 -0
- package/dist/components/ui/label_module.css.map +1 -0
- package/dist/components/ui/list-skeleton.js +35 -0
- package/dist/components/ui/list-skeleton.js.map +1 -0
- package/dist/components/ui/list-skeleton.module.js +12 -0
- package/dist/components/ui/list-skeleton.module.js.map +1 -0
- package/dist/components/ui/list-skeleton_module.css +39 -0
- package/dist/components/ui/list-skeleton_module.css.map +1 -0
- package/dist/components/ui/loading-overlay.js +21 -0
- package/dist/components/ui/loading-overlay.js.map +1 -0
- package/dist/components/ui/loading-overlay.module.js +9 -0
- package/dist/components/ui/loading-overlay.module.js.map +1 -0
- package/dist/components/ui/loading-overlay_module.css +22 -0
- package/dist/components/ui/loading-overlay_module.css.map +1 -0
- package/dist/components/ui/menubar.d.ts +422 -22
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +199 -100
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/menubar.module.js +21 -0
- package/dist/components/ui/menubar.module.js.map +1 -0
- package/dist/components/ui/menubar_module.css +145 -0
- package/dist/components/ui/menubar_module.css.map +1 -0
- package/dist/components/ui/meter.d.ts +101 -0
- package/dist/components/ui/meter.d.ts.map +1 -0
- package/dist/components/ui/meter.js +71 -0
- package/dist/components/ui/meter.js.map +1 -0
- package/dist/components/ui/meter.module.js +10 -0
- package/dist/components/ui/meter.module.js.map +1 -0
- package/dist/components/ui/meter_module.css +31 -0
- package/dist/components/ui/meter_module.css.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +242 -11
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +135 -49
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/navigation-menu.module.js +18 -0
- package/dist/components/ui/navigation-menu.module.js.map +1 -0
- package/dist/components/ui/navigation-menu_module.css +112 -0
- package/dist/components/ui/navigation-menu_module.css.map +1 -0
- package/dist/components/ui/number-field.d.ts +144 -0
- package/dist/components/ui/number-field.d.ts.map +1 -0
- package/dist/components/ui/number-field.js +111 -0
- package/dist/components/ui/number-field.js.map +1 -0
- package/dist/components/ui/number-field.module.js +15 -0
- package/dist/components/ui/number-field.module.js.map +1 -0
- package/dist/components/ui/number-field_module.css +125 -0
- package/dist/components/ui/number-field_module.css.map +1 -0
- package/dist/components/ui/pagination.d.ts +150 -24
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +41 -38
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/pagination.module.js +14 -0
- package/dist/components/ui/pagination.module.js.map +1 -0
- package/dist/components/ui/pagination_module.css +66 -0
- package/dist/components/ui/pagination_module.css.map +1 -0
- package/dist/components/ui/popover.d.ts +133 -5
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +68 -14
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/popover.module.js +9 -0
- package/dist/components/ui/popover.module.js.map +1 -0
- package/dist/components/ui/popover_module.css +28 -0
- package/dist/components/ui/popover_module.css.map +1 -0
- package/dist/components/ui/progress.d.ts +34 -2
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +22 -14
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/progress.module.js +8 -0
- package/dist/components/ui/progress.module.js.map +1 -0
- package/dist/components/ui/progress_module.css +20 -0
- package/dist/components/ui/progress_module.css.map +1 -0
- package/dist/components/ui/radio-group.d.ts +44 -3
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +38 -16
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/radio-group.module.js +10 -0
- package/dist/components/ui/radio-group.module.js.map +1 -0
- package/dist/components/ui/radio-group_module.css +44 -0
- package/dist/components/ui/radio-group_module.css.map +1 -0
- package/dist/components/ui/resizable.d.ts +79 -6
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +23 -13
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/resizable.module.js +10 -0
- package/dist/components/ui/resizable.module.js.map +1 -0
- package/dist/components/ui/resizable_module.css +70 -0
- package/dist/components/ui/resizable_module.css.map +1 -0
- package/dist/components/ui/ripple-button.d.ts +23 -2
- package/dist/components/ui/ripple-button.d.ts.map +1 -1
- package/dist/components/ui/ripple-button.js +26 -11
- package/dist/components/ui/ripple-button.js.map +1 -1
- package/dist/components/ui/ripple-button.module.js +9 -0
- package/dist/components/ui/ripple-button.module.js.map +1 -0
- package/dist/components/ui/ripple-button_module.css +38 -0
- package/dist/components/ui/ripple-button_module.css.map +1 -0
- package/dist/components/ui/scratcher.d.ts +25 -2
- package/dist/components/ui/scratcher.d.ts.map +1 -1
- package/dist/components/ui/scratcher.js +85 -87
- package/dist/components/ui/scratcher.js.map +1 -1
- package/dist/components/ui/scratcher.module.js +8 -0
- package/dist/components/ui/scratcher.module.js.map +1 -0
- package/dist/components/ui/scratcher_module.css +13 -0
- package/dist/components/ui/scratcher_module.css.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +46 -3
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +44 -19
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/scroll-area.module.js +14 -0
- package/dist/components/ui/scroll-area.module.js.map +1 -0
- package/dist/components/ui/scroll-area_module.css +51 -0
- package/dist/components/ui/scroll-area_module.css.map +1 -0
- package/dist/components/ui/select.d.ts +269 -11
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +152 -67
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/select.module.js +20 -0
- package/dist/components/ui/select.module.js.map +1 -0
- package/dist/components/ui/select_module.css +134 -0
- package/dist/components/ui/select_module.css.map +1 -0
- package/dist/components/ui/separator.d.ts +36 -2
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +20 -10
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/separator.module.js +9 -0
- package/dist/components/ui/separator.module.js.map +1 -0
- package/dist/components/ui/separator_module.css +17 -0
- package/dist/components/ui/separator_module.css.map +1 -0
- package/dist/components/ui/sheet.d.ts +297 -23
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +121 -63
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sheet.module.js +18 -0
- package/dist/components/ui/sheet.module.js.map +1 -0
- package/dist/components/ui/sheet_module.css +136 -0
- package/dist/components/ui/sheet_module.css.map +1 -0
- package/dist/components/ui/sidebar.d.ts +491 -23
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +214 -143
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/sidebar.module.js +50 -0
- package/dist/components/ui/sidebar.module.js.map +1 -0
- package/dist/components/ui/sidebar_module.css +569 -0
- package/dist/components/ui/sidebar_module.css.map +1 -0
- package/dist/components/ui/skeleton.d.ts +30 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +7 -7
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/skeleton.module.js +8 -0
- package/dist/components/ui/skeleton.module.js.map +1 -0
- package/dist/components/ui/skeleton_module.css +18 -0
- package/dist/components/ui/skeleton_module.css.map +1 -0
- package/dist/components/ui/slider.d.ts +48 -2
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +44 -17
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/slider.module.js +11 -0
- package/dist/components/ui/slider.module.js.map +1 -0
- package/dist/components/ui/slider_module.css +55 -0
- package/dist/components/ui/slider_module.css.map +1 -0
- package/dist/components/ui/sonner.d.ts +137 -4
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/sonner.js +450 -18
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/sonner.module.js +34 -0
- package/dist/components/ui/sonner.module.js.map +1 -0
- package/dist/components/ui/sonner_module.css +233 -0
- package/dist/components/ui/sonner_module.css.map +1 -0
- package/dist/components/ui/spinner.d.ts +20 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +29 -11
- package/dist/components/ui/spinner.js.map +1 -1
- package/dist/components/ui/spinner.module.js +10 -0
- package/dist/components/ui/spinner.module.js.map +1 -0
- package/dist/components/ui/spinner_module.css +28 -0
- package/dist/components/ui/spinner_module.css.map +1 -0
- package/dist/components/ui/stepper.d.ts +48 -0
- package/dist/components/ui/stepper.d.ts.map +1 -0
- package/dist/components/ui/stepper.js +41 -0
- package/dist/components/ui/stepper.js.map +1 -0
- package/dist/components/ui/stepper.module.js +12 -0
- package/dist/components/ui/stepper.module.js.map +1 -0
- package/dist/components/ui/stepper_module.css +75 -0
- package/dist/components/ui/stepper_module.css.map +1 -0
- package/dist/components/ui/switch.d.ts +29 -2
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +21 -9
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/switch.module.js +8 -0
- package/dist/components/ui/switch.module.js.map +1 -0
- package/dist/components/ui/switch_module.css +45 -0
- package/dist/components/ui/switch_module.css.map +1 -0
- package/dist/components/ui/table-skeleton.js +34 -0
- package/dist/components/ui/table-skeleton.js.map +1 -0
- package/dist/components/ui/table-skeleton.module.js +11 -0
- package/dist/components/ui/table-skeleton.module.js.map +1 -0
- package/dist/components/ui/table-skeleton_module.css +32 -0
- package/dist/components/ui/table-skeleton_module.css.map +1 -0
- package/dist/components/ui/table.d.ts +170 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +17 -17
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/table.module.js +15 -0
- package/dist/components/ui/table.module.js.map +1 -0
- package/dist/components/ui/table_module.css +71 -0
- package/dist/components/ui/table_module.css.map +1 -0
- package/dist/components/ui/tabs.d.ts +114 -5
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +71 -20
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/tabs.module.js +10 -0
- package/dist/components/ui/tabs.module.js.map +1 -0
- package/dist/components/ui/tabs_module.css +89 -0
- package/dist/components/ui/tabs_module.css.map +1 -0
- package/dist/components/ui/textarea.d.ts +24 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/textarea.module.js +7 -0
- package/dist/components/ui/textarea.module.js.map +1 -0
- package/dist/components/ui/textarea_module.css +33 -0
- package/dist/components/ui/textarea_module.css.map +1 -0
- package/dist/components/ui/timeline.d.ts +111 -0
- package/dist/components/ui/timeline.d.ts.map +1 -0
- package/dist/components/ui/timeline.js +34 -0
- package/dist/components/ui/timeline.js.map +1 -0
- package/dist/components/ui/timeline.module.js +10 -0
- package/dist/components/ui/timeline.module.js.map +1 -0
- package/dist/components/ui/timeline_module.css +47 -0
- package/dist/components/ui/timeline_module.css.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +81 -10
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +32 -23
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle-group.module.js +7 -0
- package/dist/components/ui/toggle-group.module.js.map +1 -0
- package/dist/components/ui/toggle-group_module.css +8 -0
- package/dist/components/ui/toggle-group_module.css.map +1 -0
- package/dist/components/ui/toggle.d.ts +60 -11
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +29 -29
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/toggle.module.js +12 -0
- package/dist/components/ui/toggle.module.js.map +1 -0
- package/dist/components/ui/toggle_module.css +62 -0
- package/dist/components/ui/toggle_module.css.map +1 -0
- package/dist/components/ui/toolbar.d.ts +127 -0
- package/dist/components/ui/toolbar.d.ts.map +1 -0
- package/dist/components/ui/toolbar.js +85 -0
- package/dist/components/ui/toolbar.js.map +1 -0
- package/dist/components/ui/toolbar.module.js +12 -0
- package/dist/components/ui/toolbar.module.js.map +1 -0
- package/dist/components/ui/toolbar_module.css +115 -0
- package/dist/components/ui/toolbar_module.css.map +1 -0
- package/dist/components/ui/tooltip.d.ts +119 -5
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +48 -13
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/ui/tooltip.module.js +9 -0
- package/dist/components/ui/tooltip.module.js.map +1 -0
- package/dist/components/ui/tooltip_module.css +35 -0
- package/dist/components/ui/tooltip_module.css.map +1 -0
- package/dist/components/ui/typewriter.d.ts +48 -13
- package/dist/components/ui/typewriter.d.ts.map +1 -1
- package/dist/components/ui/typewriter.js +46 -49
- package/dist/components/ui/typewriter.js.map +1 -1
- package/dist/components/ui/typewriter.module.js +16 -0
- package/dist/components/ui/typewriter.module.js.map +1 -0
- package/dist/components/ui/typewriter_module.css +102 -0
- package/dist/components/ui/typewriter_module.css.map +1 -0
- package/dist/components/ui/visually-hidden.d.ts +38 -0
- package/dist/components/ui/visually-hidden.d.ts.map +1 -0
- package/dist/components/ui/visually-hidden.js +13 -0
- package/dist/components/ui/visually-hidden.js.map +1 -0
- package/dist/components/ui/visually-hidden.module.js +7 -0
- package/dist/components/ui/visually-hidden.module.js.map +1 -0
- package/dist/components/ui/visually-hidden_module.css +14 -0
- package/dist/components/ui/visually-hidden_module.css.map +1 -0
- package/dist/hooks/useAnnounce.js +46 -0
- package/dist/hooks/useAnnounce.js.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +17 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.js +16 -0
- package/dist/hooks/useBreakpoint.js.map +1 -0
- package/dist/hooks/useColorScheme.d.ts +14 -0
- package/dist/hooks/useColorScheme.d.ts.map +1 -0
- package/dist/hooks/useColorScheme.js +9 -0
- package/dist/hooks/useColorScheme.js.map +1 -0
- package/dist/hooks/useFocusManager.js +51 -0
- package/dist/hooks/useFocusManager.js.map +1 -0
- package/dist/hooks/useFocusVisible.d.ts +50 -0
- package/dist/hooks/useFocusVisible.d.ts.map +1 -0
- package/dist/hooks/useFocusVisible.js +35 -0
- package/dist/hooks/useFocusVisible.js.map +1 -0
- package/dist/hooks/useIsMobile.d.ts +5 -11
- package/dist/hooks/useIsMobile.d.ts.map +1 -1
- package/dist/hooks/useIsMobile.js +2 -13
- package/dist/hooks/useIsMobile.js.map +1 -1
- package/dist/hooks/useMediaQuery.d.ts +14 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.js +20 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/usePrefersContrast.d.ts +19 -0
- package/dist/hooks/usePrefersContrast.d.ts.map +1 -0
- package/dist/hooks/usePrefersContrast.js +8 -0
- package/dist/hooks/usePrefersContrast.js.map +1 -0
- package/dist/hooks/useReducedMotion.d.ts +19 -0
- package/dist/hooks/useReducedMotion.d.ts.map +1 -0
- package/dist/hooks/useReducedMotion.js +2 -0
- package/dist/index.css +104 -5355
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +40 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -70
- package/dist/lib/color-conversion-utilities.d.ts +82 -0
- package/dist/lib/color-conversion-utilities.d.ts.map +1 -0
- package/dist/lib/color-conversion-utilities.js +94 -0
- package/dist/lib/color-conversion-utilities.js.map +1 -0
- package/dist/lib/utilities.d.ts +5 -4
- package/dist/lib/utilities.d.ts.map +1 -1
- package/dist/lib/utilities.js +1 -2
- package/dist/lib/utilities.js.map +1 -1
- package/dist/motion/Collapse.js +19 -0
- package/dist/motion/Collapse.js.map +1 -0
- package/dist/motion/Collapse.module.js +8 -0
- package/dist/motion/Collapse.module.js.map +1 -0
- package/dist/motion/Collapse_module.css +25 -0
- package/dist/motion/Collapse_module.css.map +1 -0
- package/dist/motion/Presence.js +14 -0
- package/dist/motion/Presence.js.map +1 -0
- package/dist/motion/index.js +5 -0
- package/dist/motion/presets.js +117 -0
- package/dist/motion/presets.js.map +1 -0
- package/dist/motion/tokens.js +41 -0
- package/dist/motion/tokens.js.map +1 -0
- package/package.json +159 -65
- package/src/components/ui/accordion.module.css +70 -0
- package/src/components/ui/accordion.tsx +278 -44
- package/src/components/ui/alert-dialog.module.css +87 -0
- package/src/components/ui/alert-dialog.tsx +474 -99
- package/src/components/ui/alert.module.css +57 -0
- package/src/components/ui/alert.tsx +136 -43
- package/src/components/ui/aspect-ratio.module.css +7 -0
- package/src/components/ui/aspect-ratio.tsx +38 -3
- package/src/components/ui/async-boundary.tsx +56 -0
- package/src/components/ui/avatar.module.css +31 -0
- package/src/components/ui/avatar.tsx +146 -36
- package/src/components/ui/background-beams.module.css +20 -0
- package/src/components/ui/background-beams.tsx +173 -134
- package/src/components/ui/badge.module.css +60 -0
- package/src/components/ui/badge.tsx +100 -32
- package/src/components/ui/breadcrumb.module.css +87 -0
- package/src/components/ui/breadcrumb.tsx +256 -74
- package/src/components/ui/bubble-background.module.css +97 -0
- package/src/components/ui/bubble-background.tsx +92 -52
- package/src/components/ui/button-group.module.css +76 -0
- package/src/components/ui/button-group.tsx +135 -46
- package/src/components/ui/button.module.css +138 -0
- package/src/components/ui/button.tsx +159 -41
- package/src/components/ui/calendar.module.css +250 -0
- package/src/components/ui/calendar.tsx +133 -103
- package/src/components/ui/card-skeleton.module.css +50 -0
- package/src/components/ui/card-skeleton.tsx +69 -0
- package/src/components/ui/card.module.css +41 -0
- package/src/components/ui/card.tsx +175 -22
- package/src/components/ui/carousel.module.css +80 -0
- package/src/components/ui/carousel.tsx +184 -43
- package/src/components/ui/chart.module.css +164 -0
- package/src/components/ui/chart.tsx +444 -102
- package/src/components/ui/checkbox-group.module.css +8 -0
- package/src/components/ui/checkbox-group.tsx +54 -0
- package/src/components/ui/checkbox.module.css +43 -0
- package/src/components/ui/checkbox.tsx +73 -19
- package/src/components/ui/collapsible.module.css +24 -0
- package/src/components/ui/collapsible.tsx +139 -3
- package/src/components/ui/command.module.css +193 -0
- package/src/components/ui/command.tsx +877 -113
- package/src/components/ui/context-menu.module.css +113 -0
- package/src/components/ui/context-menu.tsx +616 -157
- package/src/components/ui/copy-button.module.css +34 -0
- package/src/components/ui/copy-button.tsx +116 -0
- package/src/components/ui/counting-number.module.css +4 -0
- package/src/components/ui/counting-number.tsx +69 -31
- package/src/components/ui/dialog.module.css +113 -0
- package/src/components/ui/dialog.tsx +427 -81
- package/src/components/ui/dot-background.module.css +12 -0
- package/src/components/ui/dot-background.tsx +134 -126
- package/src/components/ui/drawer.module.css +85 -0
- package/src/components/ui/drawer.tsx +408 -80
- package/src/components/ui/dropdown-menu.module.css +113 -0
- package/src/components/ui/dropdown-menu.tsx +616 -159
- package/src/components/ui/dropdrawer.module.css +322 -0
- package/src/components/ui/dropdrawer.tsx +850 -398
- package/src/components/ui/empty.module.css +84 -0
- package/src/components/ui/empty.tsx +176 -52
- package/src/components/ui/error-boundary.module.css +36 -0
- package/src/components/ui/error-boundary.tsx +127 -0
- package/src/components/ui/field.module.css +179 -0
- package/src/components/ui/field.tsx +345 -139
- package/src/components/ui/fireworks-background.module.css +13 -0
- package/src/components/ui/fireworks-background.tsx +89 -51
- package/src/components/ui/flip-button.module.css +44 -0
- package/src/components/ui/flip-button.tsx +59 -28
- package/src/components/ui/focus-scope.module.css +3 -0
- package/src/components/ui/focus-scope.tsx +160 -0
- package/src/components/ui/form-skeleton.module.css +28 -0
- package/src/components/ui/form-skeleton.tsx +62 -0
- package/src/components/ui/form.module.css +20 -0
- package/src/components/ui/form.tsx +244 -33
- package/src/components/ui/gradient-background.module.css +6 -0
- package/src/components/ui/gradient-background.tsx +27 -5
- package/src/components/ui/gradient-text.module.css +23 -0
- package/src/components/ui/gradient-text.tsx +36 -9
- package/src/components/ui/highlight-text.module.css +14 -0
- package/src/components/ui/highlight-text.tsx +37 -15
- package/src/components/ui/hole-background.module.css +84 -0
- package/src/components/ui/hole-background.tsx +290 -162
- package/src/components/ui/hover-card.module.css +21 -0
- package/src/components/ui/hover-card.tsx +142 -21
- package/src/components/ui/input-group.module.css +148 -0
- package/src/components/ui/input-group.tsx +222 -98
- package/src/components/ui/input-otp.module.css +92 -0
- package/src/components/ui/input-otp.tsx +159 -33
- package/src/components/ui/input.module.css +37 -0
- package/src/components/ui/input.tsx +56 -14
- package/src/components/ui/item.module.css +143 -0
- package/src/components/ui/item.tsx +331 -104
- package/src/components/ui/kbd.module.css +31 -0
- package/src/components/ui/kbd.tsx +60 -17
- package/src/components/ui/label.module.css +13 -0
- package/src/components/ui/label.tsx +38 -14
- package/src/components/ui/list-skeleton.module.css +35 -0
- package/src/components/ui/list-skeleton.tsx +70 -0
- package/src/components/ui/loading-overlay.module.css +19 -0
- package/src/components/ui/loading-overlay.tsx +72 -0
- package/src/components/ui/menubar.module.css +144 -0
- package/src/components/ui/menubar.tsx +605 -192
- package/src/components/ui/meter.module.css +32 -0
- package/src/components/ui/meter.tsx +170 -0
- package/src/components/ui/navigation-menu.module.css +110 -0
- package/src/components/ui/navigation-menu.tsx +375 -101
- package/src/components/ui/number-field.module.css +126 -0
- package/src/components/ui/number-field.tsx +254 -0
- package/src/components/ui/pagination.module.css +64 -0
- package/src/components/ui/pagination.tsx +250 -72
- package/src/components/ui/popover.module.css +26 -0
- package/src/components/ui/popover.tsx +207 -25
- package/src/components/ui/progress.module.css +15 -0
- package/src/components/ui/progress.tsx +53 -16
- package/src/components/ui/radio-group.module.css +41 -0
- package/src/components/ui/radio-group.tsx +91 -34
- package/src/components/ui/resizable.module.css +67 -0
- package/src/components/ui/resizable.tsx +106 -26
- package/src/components/ui/ripple-button.module.css +35 -0
- package/src/components/ui/ripple-button.tsx +55 -21
- package/src/components/ui/scratcher.module.css +9 -0
- package/src/components/ui/scratcher.tsx +129 -99
- package/src/components/ui/scroll-area.module.css +47 -0
- package/src/components/ui/scroll-area.tsx +96 -34
- package/src/components/ui/select.module.css +131 -0
- package/src/components/ui/select.tsx +435 -124
- package/src/components/ui/separator.module.css +14 -0
- package/src/components/ui/separator.tsx +59 -18
- package/src/components/ui/sheet.module.css +138 -0
- package/src/components/ui/sheet.tsx +424 -95
- package/src/components/ui/sidebar.module.css +594 -0
- package/src/components/ui/sidebar.tsx +899 -425
- package/src/components/ui/skeleton.module.css +14 -0
- package/src/components/ui/skeleton.tsx +39 -9
- package/src/components/ui/slider.module.css +48 -0
- package/src/components/ui/slider.tsx +89 -16
- package/src/components/ui/sonner.module.css +246 -0
- package/src/components/ui/sonner.tsx +769 -25
- package/src/components/ui/spinner.module.css +25 -0
- package/src/components/ui/spinner.tsx +51 -12
- package/src/components/ui/stepper.module.css +72 -0
- package/src/components/ui/stepper.tsx +95 -0
- package/src/components/ui/switch.module.css +42 -0
- package/src/components/ui/switch.tsx +53 -20
- package/src/components/ui/table-skeleton.module.css +29 -0
- package/src/components/ui/table-skeleton.tsx +79 -0
- package/src/components/ui/table.module.css +66 -0
- package/src/components/ui/table.tsx +235 -61
- package/src/components/ui/tabs.module.css +89 -0
- package/src/components/ui/tabs.tsx +192 -45
- package/src/components/ui/textarea.module.css +30 -0
- package/src/components/ui/textarea.tsx +30 -10
- package/src/components/ui/timeline.module.css +43 -0
- package/src/components/ui/timeline.tsx +153 -0
- package/src/components/ui/toggle-group.module.css +5 -0
- package/src/components/ui/toggle-group.tsx +116 -35
- package/src/components/ui/toggle.module.css +57 -0
- package/src/components/ui/toggle.tsx +89 -33
- package/src/components/ui/toolbar.module.css +112 -0
- package/src/components/ui/toolbar.tsx +210 -0
- package/src/components/ui/tooltip.module.css +39 -0
- package/src/components/ui/tooltip.tsx +181 -24
- package/src/components/ui/typewriter.module.css +101 -0
- package/src/components/ui/typewriter.tsx +130 -128
- package/src/components/ui/visually-hidden.module.css +11 -0
- package/src/components/ui/visually-hidden.tsx +50 -0
- package/src/css-modules.d.ts +9 -0
- package/src/hooks/useAnnounce.tsx +73 -0
- package/src/hooks/useBreakpoint.tsx +41 -0
- package/src/hooks/useColorScheme.tsx +23 -0
- package/src/hooks/useFocusManager.tsx +89 -0
- package/src/hooks/useFocusVisible.tsx +88 -0
- package/src/hooks/useIsMobile.tsx +7 -28
- package/src/hooks/useMediaQuery.tsx +34 -0
- package/src/hooks/usePrefersContrast.tsx +24 -0
- package/src/hooks/useReducedMotion.tsx +20 -0
- package/src/index.css +127 -65
- package/src/index.ts +223 -16
- package/src/lib/color-conversion-utilities.ts +165 -0
- package/src/lib/utilities.ts +7 -6
- package/src/motion/Collapse.module.css +22 -0
- package/src/motion/Collapse.tsx +52 -0
- package/src/motion/Presence.tsx +44 -0
- package/src/motion/index.ts +13 -0
- package/src/motion/presets.ts +77 -0
- package/src/motion/tokens.ts +37 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
5
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { cn } from "../../lib/utilities.js";
|
|
8
|
+
import number_field_module from "./number-field.module.js";
|
|
9
|
+
function number_field_NumberField(props) {
|
|
10
|
+
const { className, children, render, ...otherProps } = props;
|
|
11
|
+
return /*#__PURE__*/ jsx(NumberField.Root, {
|
|
12
|
+
...otherProps,
|
|
13
|
+
render: useRender({
|
|
14
|
+
defaultTagName: "div",
|
|
15
|
+
render: render,
|
|
16
|
+
props: mergeProps({
|
|
17
|
+
className: cn(number_field_module.root, className)
|
|
18
|
+
}, {})
|
|
19
|
+
}),
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const NumberFieldGroup = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
24
|
+
const { className, children, render, ...otherProps } = props;
|
|
25
|
+
return /*#__PURE__*/ jsx(NumberField.Group, {
|
|
26
|
+
ref: ref,
|
|
27
|
+
...otherProps,
|
|
28
|
+
render: useRender({
|
|
29
|
+
defaultTagName: "div",
|
|
30
|
+
render: render,
|
|
31
|
+
props: mergeProps({
|
|
32
|
+
className: cn(number_field_module.group, className)
|
|
33
|
+
}, {})
|
|
34
|
+
}),
|
|
35
|
+
children: children
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const NumberFieldInput = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
39
|
+
const { className, render, ...otherProps } = props;
|
|
40
|
+
return /*#__PURE__*/ jsx(NumberField.Input, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
...otherProps,
|
|
43
|
+
render: useRender({
|
|
44
|
+
defaultTagName: "input",
|
|
45
|
+
render: render,
|
|
46
|
+
props: mergeProps({
|
|
47
|
+
className: cn(number_field_module.input, className)
|
|
48
|
+
}, {})
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
function NumberFieldIncrement(props) {
|
|
53
|
+
const { className, children, render, ...otherProps } = props;
|
|
54
|
+
return /*#__PURE__*/ jsx(NumberField.Increment, {
|
|
55
|
+
...otherProps,
|
|
56
|
+
render: useRender({
|
|
57
|
+
defaultTagName: "button",
|
|
58
|
+
render: render,
|
|
59
|
+
props: mergeProps({
|
|
60
|
+
className: cn(number_field_module.stepper, number_field_module.increment, className)
|
|
61
|
+
}, {})
|
|
62
|
+
}),
|
|
63
|
+
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
64
|
+
className: number_field_module.stepperSymbol,
|
|
65
|
+
children: "+"
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function NumberFieldDecrement(props) {
|
|
70
|
+
const { className, children, render, ...otherProps } = props;
|
|
71
|
+
return /*#__PURE__*/ jsx(NumberField.Decrement, {
|
|
72
|
+
...otherProps,
|
|
73
|
+
render: useRender({
|
|
74
|
+
defaultTagName: "button",
|
|
75
|
+
render: render,
|
|
76
|
+
props: mergeProps({
|
|
77
|
+
className: cn(number_field_module.stepper, number_field_module.decrement, className)
|
|
78
|
+
}, {})
|
|
79
|
+
}),
|
|
80
|
+
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
81
|
+
className: number_field_module.stepperSymbol,
|
|
82
|
+
children: "−"
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function NumberFieldScrubArea(props) {
|
|
87
|
+
const { className, children, render, ...otherProps } = props;
|
|
88
|
+
return /*#__PURE__*/ jsx(NumberField.ScrubArea, {
|
|
89
|
+
...otherProps,
|
|
90
|
+
render: useRender({
|
|
91
|
+
defaultTagName: "span",
|
|
92
|
+
render: render,
|
|
93
|
+
props: mergeProps({
|
|
94
|
+
className: cn(number_field_module.scrubArea, className)
|
|
95
|
+
}, {})
|
|
96
|
+
}),
|
|
97
|
+
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
98
|
+
className: number_field_module.scrubHandle,
|
|
99
|
+
children: "⋮⋮"
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
number_field_NumberField.displayName = "NumberField";
|
|
104
|
+
NumberFieldGroup.displayName = "NumberFieldGroup";
|
|
105
|
+
NumberFieldInput.displayName = "NumberFieldInput";
|
|
106
|
+
NumberFieldIncrement.displayName = "NumberFieldIncrement";
|
|
107
|
+
NumberFieldDecrement.displayName = "NumberFieldDecrement";
|
|
108
|
+
NumberFieldScrubArea.displayName = "NumberFieldScrubArea";
|
|
109
|
+
export { NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea, number_field_NumberField as NumberField };
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=number-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/ui/number-field.js","sources":["../../../src/components/ui/number-field.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {mergeProps} from \"@base-ui/react/merge-props\";\r\nimport {NumberField as BaseNumberField} from \"@base-ui/react/number-field\";\r\nimport {useRender} from \"@base-ui/react/use-render\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\nimport styles from \"./number-field.module.css\";\r\n\r\ntype NumberFieldProps = React.ComponentPropsWithRef<typeof BaseNumberField.Root>;\r\ntype NumberFieldGroupProps = React.ComponentPropsWithRef<typeof BaseNumberField.Group>;\r\ntype NumberFieldInputProps = React.ComponentPropsWithRef<typeof BaseNumberField.Input>;\r\ntype NumberFieldIncrementProps = React.ComponentPropsWithRef<typeof BaseNumberField.Increment>;\r\ntype NumberFieldDecrementProps = React.ComponentPropsWithRef<typeof BaseNumberField.Decrement>;\r\ntype NumberFieldScrubAreaProps = React.ComponentPropsWithRef<typeof BaseNumberField.ScrubArea>;\r\n\r\n/**\r\n * Provides a styled numeric input with optional steppers and scrub support.\r\n *\r\n * @remarks\r\n * - Renders a `<div>` element by default\r\n * - Built on Base UI Number Field primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberField defaultValue={2}>\r\n * <NumberFieldGroup>\r\n * <NumberFieldDecrement />\r\n * <NumberFieldInput />\r\n * <NumberFieldIncrement />\r\n * </NumberFieldGroup>\r\n * </NumberField>\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nfunction NumberField(props: Readonly<NumberField.Props>): React.ReactElement {\r\n const {className, children, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.Root\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"div\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.root, className)}, {}),\r\n })}>\r\n {children}\r\n </BaseNumberField.Root>\r\n );\r\n}\r\n\r\n/**\r\n * Wraps the interactive number-field controls in a shared container.\r\n *\r\n * @remarks\r\n * - Renders a `<div>` element by default\r\n * - Built on Base UI Number Field group primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberFieldGroup>\r\n * <NumberFieldInput />\r\n * </NumberFieldGroup>\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nconst NumberFieldGroup = React.forwardRef<React.ComponentRef<typeof BaseNumberField.Group>, NumberFieldGroup.Props>(\r\n (props: Readonly<NumberFieldGroup.Props>, ref): React.ReactElement => {\r\n const {className, children, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.Group\r\n ref={ref}\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"div\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.group, className)}, {}),\r\n })}>\r\n {children}\r\n </BaseNumberField.Group>\r\n );\r\n },\r\n);\r\n\r\n/**\r\n * Renders the text input used for numeric entry.\r\n *\r\n * @remarks\r\n * - Renders an `<input>` element by default\r\n * - Built on Base UI Number Field input primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberFieldInput aria-label='Quantity' />\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nconst NumberFieldInput = React.forwardRef<React.ComponentRef<typeof BaseNumberField.Input>, NumberFieldInput.Props>(\r\n (props: Readonly<NumberFieldInput.Props>, ref): React.ReactElement => {\r\n const {className, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.Input\r\n ref={ref}\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"input\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.input, className)}, {}),\r\n })}\r\n />\r\n );\r\n },\r\n);\r\n\r\n/**\r\n * Renders the increment control for a number field.\r\n *\r\n * @remarks\r\n * - Renders a `<button>` element by default\r\n * - Built on Base UI Number Field increment primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberFieldIncrement />\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nfunction NumberFieldIncrement(props: Readonly<NumberFieldIncrement.Props>): React.ReactElement {\r\n const {className, children, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.Increment\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"button\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.stepper, styles.increment, className)}, {}),\r\n })}>\r\n {children ?? <span className={styles.stepperSymbol}>+</span>}\r\n </BaseNumberField.Increment>\r\n );\r\n}\r\n\r\n/**\r\n * Renders the decrement control for a number field.\r\n *\r\n * @remarks\r\n * - Renders a `<button>` element by default\r\n * - Built on Base UI Number Field decrement primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberFieldDecrement />\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nfunction NumberFieldDecrement(props: Readonly<NumberFieldDecrement.Props>): React.ReactElement {\r\n const {className, children, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.Decrement\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"button\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.stepper, styles.decrement, className)}, {}),\r\n })}>\r\n {children ?? <span className={styles.stepperSymbol}>−</span>}\r\n </BaseNumberField.Decrement>\r\n );\r\n}\r\n\r\n/**\r\n * Renders the scrub handle used for drag-to-adjust interactions.\r\n *\r\n * @remarks\r\n * - Renders a `<span>` element by default\r\n * - Built on Base UI Number Field scrub-area primitives\r\n *\r\n * @example\r\n * ```tsx\r\n * <NumberFieldScrubArea />\r\n * ```\r\n *\r\n * @see {@link https://base-ui.com/react/components/number-field | Base UI Number Field Docs}\r\n */\r\nfunction NumberFieldScrubArea(props: Readonly<NumberFieldScrubArea.Props>): React.ReactElement {\r\n const {className, children, render, ...otherProps} = props;\r\n\r\n return (\r\n <BaseNumberField.ScrubArea\r\n {...otherProps}\r\n render={useRender({\r\n defaultTagName: \"span\",\r\n render: render as never,\r\n props: mergeProps({className: cn(styles.scrubArea, className)}, {}),\r\n })}>\r\n {children ?? <span className={styles.scrubHandle}>⋮⋮</span>}\r\n </BaseNumberField.ScrubArea>\r\n );\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberField {\r\n export type Props = NumberFieldProps;\r\n export type State = BaseNumberField.Root.State;\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberFieldGroup {\r\n export type Props = NumberFieldGroupProps;\r\n export type State = BaseNumberField.Group.State;\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberFieldInput {\r\n export type Props = NumberFieldInputProps;\r\n export type State = BaseNumberField.Input.State;\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberFieldIncrement {\r\n export type Props = NumberFieldIncrementProps;\r\n export type State = BaseNumberField.Increment.State;\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberFieldDecrement {\r\n export type Props = NumberFieldDecrementProps;\r\n export type State = BaseNumberField.Decrement.State;\r\n}\r\n\r\n// eslint-disable-next-line no-redeclare -- required for the canonical component namespace typing API\r\nnamespace NumberFieldScrubArea {\r\n export type Props = NumberFieldScrubAreaProps;\r\n export type State = BaseNumberField.ScrubArea.State;\r\n}\r\n\r\nNumberField.displayName = \"NumberField\";\r\nNumberFieldGroup.displayName = \"NumberFieldGroup\";\r\nNumberFieldInput.displayName = \"NumberFieldInput\";\r\nNumberFieldIncrement.displayName = \"NumberFieldIncrement\";\r\nNumberFieldDecrement.displayName = \"NumberFieldDecrement\";\r\nNumberFieldScrubArea.displayName = \"NumberFieldScrubArea\";\r\n\r\nexport {NumberField, NumberFieldDecrement, NumberFieldGroup, NumberFieldIncrement, NumberFieldInput, NumberFieldScrubArea};\r\n"],"names":["NumberField","props","className","children","render","otherProps","BaseNumberField","useRender","mergeProps","cn","styles","NumberFieldGroup","React","ref","NumberFieldInput","NumberFieldIncrement","NumberFieldDecrement","NumberFieldScrubArea"],"mappings":";;;;;;;;AAqCA,SAASA,yBAAYC,KAAkC;IACrD,MAAM,EAACC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAErD,OAAO,WAAP,GACE,IAACK,YAAAA,IAAoB;QAClB,GAAGD,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,IAAW,EAAER;YAAU,GAAG,CAAC;QAC9D;kBACCC;;AAGP;AAkBA,MAAMQ,mBAAmB,WAAHA,GAAGC,WACvB,CAACX,OAAyCY;IACxC,MAAM,EAACX,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAErD,OAAO,WAAP,GACE,IAACK,YAAAA,KAAqB;QACpB,KAAKO;QACJ,GAAGR,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,KAAY,EAAER;YAAU,GAAG,CAAC;QAC/D;kBACCC;;AAGP;AAiBF,MAAMW,mBAAmB,WAAHA,GAAGF,WACvB,CAACX,OAAyCY;IACxC,MAAM,EAACX,SAAS,EAAEE,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAE3C,OAAO,WAAP,GACE,IAACK,YAAAA,KAAqB;QACpB,KAAKO;QACJ,GAAGR,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,KAAY,EAAER;YAAU,GAAG,CAAC;QAC/D;;AAGN;AAiBF,SAASa,qBAAqBd,KAA2C;IACvE,MAAM,EAACC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAErD,OAAO,WAAP,GACE,IAACK,YAAAA,SAAyB;QACvB,GAAGD,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,OAAc,EAAEA,oBAAAA,SAAgB,EAAER;YAAU,GAAG,CAAC;QACnF;kBACCC,YAAY,WAAZA,GAAY,IAAC;YAAK,WAAWO,oBAAAA,aAAoB;sBAAE;;;AAG1D;AAgBA,SAASM,qBAAqBf,KAA2C;IACvE,MAAM,EAACC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAErD,OAAO,WAAP,GACE,IAACK,YAAAA,SAAyB;QACvB,GAAGD,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,OAAc,EAAEA,oBAAAA,SAAgB,EAAER;YAAU,GAAG,CAAC;QACnF;kBACCC,YAAY,WAAZA,GAAY,IAAC;YAAK,WAAWO,oBAAAA,aAAoB;sBAAE;;;AAG1D;AAgBA,SAASO,qBAAqBhB,KAA2C;IACvE,MAAM,EAACC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAE,GAAGC,YAAW,GAAGJ;IAErD,OAAO,WAAP,GACE,IAACK,YAAAA,SAAyB;QACvB,GAAGD,UAAU;QACd,QAAQE,UAAU;YAChB,gBAAgB;YAChB,QAAQH;YACR,OAAOI,WAAW;gBAAC,WAAWC,GAAGC,oBAAAA,SAAgB,EAAER;YAAU,GAAG,CAAC;QACnE;kBACCC,YAAY,WAAZA,GAAY,IAAC;YAAK,WAAWO,oBAAAA,WAAkB;sBAAE;;;AAGxD;AAsCAV,yBAAY,WAAW,GAAG;AAC1BW,iBAAiB,WAAW,GAAG;AAC/BG,iBAAiB,WAAW,GAAG;AAC/BC,qBAAqB,WAAW,GAAG;AACnCC,qBAAqB,WAAW,GAAG;AACnCC,qBAAqB,WAAW,GAAG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./number-field_module.css";
|
|
2
|
+
const number_field_module = {
|
|
3
|
+
root: "root-ejVg4g",
|
|
4
|
+
group: "group-HYti4C",
|
|
5
|
+
input: "input-LMfU0y",
|
|
6
|
+
scrubArea: "scrubArea-ntSf9c",
|
|
7
|
+
stepper: "stepper-LSMb_x",
|
|
8
|
+
decrement: "decrement-A0KYlz",
|
|
9
|
+
increment: "increment-p1P6uC",
|
|
10
|
+
stepperSymbol: "stepperSymbol-vhH9__",
|
|
11
|
+
scrubHandle: "scrubHandle-EQJcNH"
|
|
12
|
+
};
|
|
13
|
+
export default number_field_module;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=number-field.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/ui/number-field.module.js","sources":["../../../src/components/ui/number-field.module.css"],"sourcesContent":["// extracted by LIB_CSS_EXTRACT_LOADER\nimport \"./number-field_module.css\"\nexport default {\"root\":\"root-ejVg4g\",\"group\":\"group-HYti4C\",\"input\":\"input-LMfU0y\",\"scrubArea\":\"scrubArea-ntSf9c\",\"stepper\":\"stepper-LSMb_x\",\"decrement\":\"decrement-A0KYlz\",\"increment\":\"increment-p1P6uC\",\"stepperSymbol\":\"stepperSymbol-vhH9__\",\"scrubHandle\":\"scrubHandle-EQJcNH\"};"],"names":[],"mappings":";AAEA,4BAAe;IAAC,MAAO;IAAc,OAAQ;IAAe,OAAQ;IAAe,WAAY;IAAmB,SAAU;IAAiB,WAAY;IAAmB,WAAY;IAAmB,eAAgB;IAAuB,aAAc;AAAoB"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.root-ejVg4g {
|
|
2
|
+
gap: var(--ac-space-2);
|
|
3
|
+
display: grid;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.group-HYti4C {
|
|
7
|
+
background-color: var(--ac-background);
|
|
8
|
+
border: 1px solid var(--ac-input);
|
|
9
|
+
border-radius: var(--ac-radius-md);
|
|
10
|
+
min-height: var(--ac-size-default);
|
|
11
|
+
transition: border-color var(--ac-transition-fast),box-shadow var(--ac-transition-fast);
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
width: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-shadow: 0 1px 2px #0000000a;
|
|
17
|
+
|
|
18
|
+
&:focus-within {
|
|
19
|
+
border-color: var(--ac-ring);
|
|
20
|
+
box-shadow: 0 0 0 1px var(--ac-ring);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:has([aria-invalid="true"]), &:has([data-invalid]) {
|
|
24
|
+
border-color: var(--ac-destructive);
|
|
25
|
+
box-shadow: 0 0 0 1px color-mix(in oklch,var(--ac-destructive),transparent 65%);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.group-HYti4C > * + * {
|
|
30
|
+
border-inline-start: 1px solid var(--ac-border);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.input-LMfU0y {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
color: var(--ac-foreground);
|
|
36
|
+
font-size: var(--ac-text-sm);
|
|
37
|
+
min-width: 0;
|
|
38
|
+
padding: 0 var(--ac-space-3);
|
|
39
|
+
background-color: #0000;
|
|
40
|
+
border: 0;
|
|
41
|
+
outline: none;
|
|
42
|
+
flex: auto;
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
|
|
45
|
+
&::placeholder {
|
|
46
|
+
color: var(--ac-muted-foreground);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:focus-visible {
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:disabled {
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.scrubArea-ntSf9c, .stepper-LSMb_x {
|
|
59
|
+
background-color: color-mix(in oklch,var(--ac-secondary),var(--ac-background) 30%);
|
|
60
|
+
color: var(--ac-foreground);
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
font-size: var(--ac-text-xs);
|
|
63
|
+
min-width: var(--ac-size-default);
|
|
64
|
+
padding: 0 var(--ac-space-2);
|
|
65
|
+
transition: background-color var(--ac-transition-fast),color var(--ac-transition-fast);
|
|
66
|
+
-webkit-user-select: none;
|
|
67
|
+
user-select: none;
|
|
68
|
+
border: 0;
|
|
69
|
+
outline: none;
|
|
70
|
+
flex: none;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
line-height: 1;
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
|
|
77
|
+
&:focus-visible {
|
|
78
|
+
background-color: var(--ac-accent);
|
|
79
|
+
box-shadow: inset 0 0 0 1px var(--ac-ring);
|
|
80
|
+
z-index: 1;
|
|
81
|
+
position: relative;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-disabled] {
|
|
85
|
+
cursor: not-allowed;
|
|
86
|
+
opacity: .5;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (hover: hover) {
|
|
90
|
+
&:hover:not([data-disabled]) {
|
|
91
|
+
background-color: var(--ac-accent);
|
|
92
|
+
color: var(--ac-accent-foreground);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.decrement-A0KYlz, .increment-p1P6uC {
|
|
98
|
+
width: var(--ac-size-default);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.decrement-A0KYlz[data-pressed], .increment-p1P6uC[data-pressed], .scrubArea-ntSf9c[data-scrubbing] {
|
|
102
|
+
background-color: color-mix(in oklch,var(--ac-primary),var(--ac-background) 78%);
|
|
103
|
+
color: var(--ac-primary);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.stepperSymbol-vhH9__ {
|
|
107
|
+
justify-content: center;
|
|
108
|
+
align-items: center;
|
|
109
|
+
width: 1rem;
|
|
110
|
+
line-height: 1;
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.scrubArea-ntSf9c {
|
|
115
|
+
color: var(--ac-muted-foreground);
|
|
116
|
+
min-width: calc(var(--ac-size-default) - var(--ac-space-1));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.scrubHandle-EQJcNH {
|
|
120
|
+
font-size: var(--ac-text-sm);
|
|
121
|
+
letter-spacing: -.15em;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/*# sourceMappingURL=number-field_module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./home/runner/work/arolariu.ro/arolariu.ro/packages/components/src/components/ui/number-field.module.css","webpack://./src/components/ui/number-field.module.css"],"names":[],"mappings":"AADA;ECEE,sBAAsB;EACtB,aAAa;AACf;;AAEA;EACE,sCAAsC;EACtC,iCAAiC;EACjC,kCAAkC;EAClC,kCAAkC;EAClC,uFAAuF;EACvF,oBAAoB;EACpB,WAAW;EACX,aAAa;EACb,gBAAgB;EAChB,+BAA+B;;EAE/B;IACE,4BAA4B;IAC5B,oCAAoC;EACtC;;EAEA;IACE,mCAAmC;IACnC,+EAA+E;EACjF;AACF;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,sBAAsB;EACtB,2BAA2B;EAC3B,4BAA4B;EAC5B,YAAY;EACZ,4BAA4B;EAC5B,uBAAuB;EACvB,SAAS;EACT,aAAa;EACb,UAAU;EACV,gBAAgB;;EAEhB;IACE,iCAAiC;EACnC;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE,mBAAmB;EACrB;AACF;;AAEA;EACE,kFAAkF;EAClF,2BAA2B;EAC3B,eAAe;EACf,4BAA4B;EAC5B,iCAAiC;EACjC,4BAA4B;EAC5B,sFAAsF;EACtF,yBAAyB;EACzB,iBAAiB;EACjB,SAAS;EACT,aAAa;EACb,UAAU;EACV,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,cAAc;EACd,oBAAoB;;EAEpB;IACE,kCAAkC;IAClC,0CAA0C;IAC1C,UAAU;IACV,kBAAkB;EACpB;;EAEA;IACE,mBAAmB;IACnB,WAAW;EACb;;EAEA;IACE;MACE,kCAAkC;MAClC,kCAAkC;IACpC;EACF;AACF;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,gFAAgF;EAChF,wBAAwB;AAC1B;;AAEA;EACE,uBAAuB;EACvB,mBAAmB;EACnB,WAAW;EACX,cAAc;EACd,oBAAoB;AACtB;;AAEA;EACE,iCAAiC;EACjC,2DAA2D;AAC7D;;AAEA;EACE,4BAA4B;EAC5B,sBAAsB;AACxB","sourcesContent":[".root{display:grid;gap:var(--ac-space-2)}.group{align-items:stretch;background-color:var(--ac-background);border:1px solid var(--ac-input);border-radius:var(--ac-radius-md);box-shadow:0 1px 2px 0 rgba(0,0,0,.04);display:flex;min-height:var(--ac-size-default);overflow:hidden;transition:border-color var(--ac-transition-fast),box-shadow var(--ac-transition-fast);width:100%;&:focus-within{border-color:var(--ac-ring);box-shadow:0 0 0 1px var(--ac-ring)}&:has([aria-invalid=true]),&:has([data-invalid]){border-color:var(--ac-destructive);box-shadow:0 0 0 1px color-mix(in oklch,var(--ac-destructive),transparent 65%)}}.group>*+*{border-inline-start:1px solid var(--ac-border)}.input{background-color:transparent;border:0;box-sizing:border-box;color:var(--ac-foreground);flex:1 1 auto;font-size:var(--ac-text-sm);line-height:1.5;min-width:0;outline:none;padding:0 var(--ac-space-3);&::placeholder{color:var(--ac-muted-foreground)}&:focus-visible{box-shadow:none}&:disabled{cursor:not-allowed}}.scrubArea,.stepper{align-items:center;background-color:color-mix(in oklch,var(--ac-secondary),var(--ac-background) 30%);border:0;color:var(--ac-foreground);cursor:pointer;display:inline-flex;flex:0 0 auto;font-size:var(--ac-text-xs);font-weight:600;justify-content:center;line-height:1;min-width:var(--ac-size-default);outline:none;padding:0 var(--ac-space-2);transition:background-color var(--ac-transition-fast),color var(--ac-transition-fast);user-select:none;&:focus-visible{background-color:var(--ac-accent);box-shadow:inset 0 0 0 1px var(--ac-ring);position:relative;z-index:1}&[data-disabled]{cursor:not-allowed;opacity:.5}@media (hover:hover){&:hover:not([data-disabled]){background-color:var(--ac-accent);color:var(--ac-accent-foreground)}}}.decrement,.increment{width:var(--ac-size-default)}.decrement[data-pressed],.increment[data-pressed],.scrubArea[data-scrubbing]{background-color:color-mix(in oklch,var(--ac-primary),var(--ac-background) 78%);color:var(--ac-primary)}.stepperSymbol{align-items:center;display:inline-flex;justify-content:center;line-height:1;width:1rem}.scrubArea{color:var(--ac-muted-foreground);min-width:calc(var(--ac-size-default) - var(--ac-space-1))}.scrubHandle{font-size:var(--ac-text-sm);letter-spacing:-.15em}",".root {\n gap: var(--ac-space-2);\n display: grid;\n}\n\n.group {\n background-color: var(--ac-background);\n border: 1px solid var(--ac-input);\n border-radius: var(--ac-radius-md);\n min-height: var(--ac-size-default);\n transition: border-color var(--ac-transition-fast),box-shadow var(--ac-transition-fast);\n align-items: stretch;\n width: 100%;\n display: flex;\n overflow: hidden;\n box-shadow: 0 1px 2px #0000000a;\n\n &:focus-within {\n border-color: var(--ac-ring);\n box-shadow: 0 0 0 1px var(--ac-ring);\n }\n\n &:has([aria-invalid=\"true\"]), &:has([data-invalid]) {\n border-color: var(--ac-destructive);\n box-shadow: 0 0 0 1px color-mix(in oklch,var(--ac-destructive),transparent 65%);\n }\n}\n\n.group > * + * {\n border-inline-start: 1px solid var(--ac-border);\n}\n\n.input {\n box-sizing: border-box;\n color: var(--ac-foreground);\n font-size: var(--ac-text-sm);\n min-width: 0;\n padding: 0 var(--ac-space-3);\n background-color: #0000;\n border: 0;\n outline: none;\n flex: auto;\n line-height: 1.5;\n\n &::placeholder {\n color: var(--ac-muted-foreground);\n }\n\n &:focus-visible {\n box-shadow: none;\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n}\n\n.scrubArea, .stepper {\n background-color: color-mix(in oklch,var(--ac-secondary),var(--ac-background) 30%);\n color: var(--ac-foreground);\n cursor: pointer;\n font-size: var(--ac-text-xs);\n min-width: var(--ac-size-default);\n padding: 0 var(--ac-space-2);\n transition: background-color var(--ac-transition-fast),color var(--ac-transition-fast);\n -webkit-user-select: none;\n user-select: none;\n border: 0;\n outline: none;\n flex: none;\n justify-content: center;\n align-items: center;\n font-weight: 600;\n line-height: 1;\n display: inline-flex;\n\n &:focus-visible {\n background-color: var(--ac-accent);\n box-shadow: inset 0 0 0 1px var(--ac-ring);\n z-index: 1;\n position: relative;\n }\n\n &[data-disabled] {\n cursor: not-allowed;\n opacity: .5;\n }\n\n @media (hover: hover) {\n &:hover:not([data-disabled]) {\n background-color: var(--ac-accent);\n color: var(--ac-accent-foreground);\n }\n }\n}\n\n.decrement, .increment {\n width: var(--ac-size-default);\n}\n\n.decrement[data-pressed], .increment[data-pressed], .scrubArea[data-scrubbing] {\n background-color: color-mix(in oklch,var(--ac-primary),var(--ac-background) 78%);\n color: var(--ac-primary);\n}\n\n.stepperSymbol {\n justify-content: center;\n align-items: center;\n width: 1rem;\n line-height: 1;\n display: inline-flex;\n}\n\n.scrubArea {\n color: var(--ac-muted-foreground);\n min-width: calc(var(--ac-size-default) - var(--ac-space-1));\n}\n\n.scrubHandle {\n font-size: var(--ac-text-sm);\n letter-spacing: -.15em;\n}\n"],"sourceRoot":""}
|
|
@@ -1,29 +1,155 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ButtonProps } from "./button";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import type { ButtonProps } from "./button";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Pagination} component.
|
|
5
|
+
*/
|
|
6
|
+
export type PaginationProps = React.ComponentPropsWithoutRef<"nav">;
|
|
7
|
+
/**
|
|
8
|
+
* Props for the {@link PaginationContent} component.
|
|
9
|
+
*/
|
|
10
|
+
export type PaginationContentProps = React.ComponentPropsWithoutRef<"ul">;
|
|
11
|
+
/**
|
|
12
|
+
* Props for the {@link PaginationItem} component.
|
|
13
|
+
*/
|
|
14
|
+
export type PaginationItemProps = React.ComponentPropsWithoutRef<"li">;
|
|
15
|
+
/**
|
|
16
|
+
* Props for the {@link PaginationLink} component.
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginationLinkProps extends Pick<ButtonProps, "size">, React.ComponentPropsWithoutRef<"a"> {
|
|
19
|
+
/** Marks the link as the current active page. @default false */
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Props for the {@link PaginationPrevious} component.
|
|
24
|
+
*/
|
|
25
|
+
export type PaginationPreviousProps = React.ComponentPropsWithoutRef<typeof PaginationLink>;
|
|
26
|
+
/**
|
|
27
|
+
* Props for the {@link PaginationNext} component.
|
|
28
|
+
*/
|
|
29
|
+
export type PaginationNextProps = React.ComponentPropsWithoutRef<typeof PaginationLink>;
|
|
30
|
+
/**
|
|
31
|
+
* Props for the {@link PaginationEllipsis} component.
|
|
32
|
+
*/
|
|
33
|
+
export type PaginationEllipsisProps = React.ComponentPropsWithoutRef<"span">;
|
|
34
|
+
/**
|
|
35
|
+
* Provides semantic navigation for paginated content.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* - Pure CSS component (no Base UI primitive)
|
|
39
|
+
* - Renders a `<nav>` element
|
|
40
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <Pagination>
|
|
45
|
+
* <PaginationContent />
|
|
46
|
+
* </Pagination>
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @see {@link PaginationProps} for available props
|
|
50
|
+
*/
|
|
51
|
+
declare const Pagination: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Wraps pagination items in a flex-based list container.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* - Pure CSS component (no Base UI primitive)
|
|
57
|
+
* - Renders a `<ul>` element
|
|
58
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* <PaginationContent>
|
|
63
|
+
* <PaginationItem />
|
|
64
|
+
* </PaginationContent>
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @see {@link PaginationContentProps} for available props
|
|
68
|
+
*/
|
|
7
69
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
70
|
+
/**
|
|
71
|
+
* Wraps an individual pagination control.
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* - Pure CSS component (no Base UI primitive)
|
|
75
|
+
* - Renders an `<li>` element
|
|
76
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <PaginationItem>
|
|
81
|
+
* <PaginationLink href='?page=1'>1</PaginationLink>
|
|
82
|
+
* </PaginationItem>
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @see {@link PaginationItemProps} for available props
|
|
86
|
+
*/
|
|
8
87
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
88
|
+
/**
|
|
89
|
+
* Renders an anchor styled to match pagination controls.
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* - Pure CSS component (no Base UI primitive)
|
|
93
|
+
* - Renders an `<a>` element
|
|
94
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```tsx
|
|
98
|
+
* <PaginationLink href='?page=2' isActive>
|
|
99
|
+
* 2
|
|
100
|
+
* </PaginationLink>
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @see {@link PaginationLinkProps} for available props
|
|
104
|
+
*/
|
|
105
|
+
declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
106
|
+
/**
|
|
107
|
+
* Renders the pagination control for navigating to the previous page.
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* - Pure CSS component (no Base UI primitive)
|
|
111
|
+
* - Renders an `<a>` element through {@link PaginationLink}
|
|
112
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```tsx
|
|
116
|
+
* <PaginationPrevious href='?page=1' />
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @see {@link PaginationPreviousProps} for available props
|
|
120
|
+
*/
|
|
121
|
+
declare const PaginationPrevious: React.ForwardRefExoticComponent<Omit<PaginationLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
122
|
+
/**
|
|
123
|
+
* Renders the pagination control for navigating to the next page.
|
|
124
|
+
*
|
|
125
|
+
* @remarks
|
|
126
|
+
* - Pure CSS component (no Base UI primitive)
|
|
127
|
+
* - Renders an `<a>` element through {@link PaginationLink}
|
|
128
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```tsx
|
|
132
|
+
* <PaginationNext href='?page=3' />
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @see {@link PaginationNextProps} for available props
|
|
136
|
+
*/
|
|
137
|
+
declare const PaginationNext: React.ForwardRefExoticComponent<Omit<PaginationLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
138
|
+
/**
|
|
139
|
+
* Indicates truncated page ranges within pagination.
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
* - Pure CSS component (no Base UI primitive)
|
|
143
|
+
* - Renders a `<span>` element
|
|
144
|
+
* - Styling via CSS Modules with `--ac-*` custom properties
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```tsx
|
|
148
|
+
* <PaginationEllipsis />
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @see {@link PaginationEllipsisProps} for available props
|
|
152
|
+
*/
|
|
153
|
+
declare const PaginationEllipsis: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
28
154
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
29
155
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAKxD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC;IACzG,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5F;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAS7E;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,UAAU,0JAUf,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,iBAAiB,yKAQtB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,cAAc,kKAQnB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,cAAc,+FAiBnB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,kBAAkB,qJAYvB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,cAAc,qJAYnB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,kBAAkB,sKAWvB,CAAC;AAUF,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAC,CAAC"}
|
|
@@ -2,80 +2,83 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { buttonVariants } from "./button.js";
|
|
6
5
|
import { cn } from "../../lib/utilities.js";
|
|
7
|
-
|
|
6
|
+
import button_module from "./button.module.js";
|
|
7
|
+
import pagination_module from "./pagination.module.js";
|
|
8
|
+
const buttonSizeStyles = {
|
|
9
|
+
default: button_module.sizeDefault,
|
|
10
|
+
icon: button_module.sizeIcon,
|
|
11
|
+
lg: button_module.sizeLg,
|
|
12
|
+
sm: button_module.sizeSm
|
|
13
|
+
};
|
|
14
|
+
const Pagination = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("nav", {
|
|
15
|
+
ref: ref,
|
|
8
16
|
role: "navigation",
|
|
9
17
|
"aria-label": "pagination",
|
|
10
|
-
className: cn(
|
|
18
|
+
className: cn(pagination_module.root, className),
|
|
11
19
|
...props
|
|
12
|
-
});
|
|
13
|
-
Pagination.displayName = "Pagination";
|
|
20
|
+
}));
|
|
14
21
|
const PaginationContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("ul", {
|
|
15
22
|
ref: ref,
|
|
16
|
-
className: cn(
|
|
23
|
+
className: cn(pagination_module.content, className),
|
|
17
24
|
...props
|
|
18
25
|
}));
|
|
19
|
-
PaginationContent.displayName = "PaginationContent";
|
|
20
26
|
const PaginationItem = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("li", {
|
|
21
27
|
ref: ref,
|
|
22
|
-
className: cn(
|
|
28
|
+
className: cn(pagination_module.item, className),
|
|
23
29
|
...props
|
|
24
30
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
const PaginationLink = /*#__PURE__*/ forwardRef(({ className, isActive = false, size = "icon", ...props }, ref)=>/*#__PURE__*/ jsx("a", {
|
|
32
|
+
ref: ref,
|
|
27
33
|
"aria-current": isActive ? "page" : void 0,
|
|
28
|
-
className: cn(
|
|
29
|
-
variant: isActive ? "outline" : "ghost",
|
|
30
|
-
size
|
|
31
|
-
}), className),
|
|
34
|
+
className: cn(button_module.button, isActive ? button_module.outline : button_module.ghost, buttonSizeStyles[size], pagination_module.link, className),
|
|
32
35
|
...props
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
}));
|
|
37
|
+
const PaginationPrevious = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs(PaginationLink, {
|
|
38
|
+
ref: ref,
|
|
36
39
|
"aria-label": "Go to previous page",
|
|
37
40
|
size: "default",
|
|
38
|
-
className: cn(
|
|
41
|
+
className: cn(pagination_module.previous, className),
|
|
39
42
|
...props,
|
|
40
43
|
children: [
|
|
41
|
-
/*#__PURE__*/ jsx(ChevronLeft, {
|
|
42
|
-
className: "h-4 w-4"
|
|
43
|
-
}),
|
|
44
|
+
/*#__PURE__*/ jsx(ChevronLeft, {}),
|
|
44
45
|
/*#__PURE__*/ jsx("span", {
|
|
45
46
|
children: "Previous"
|
|
46
47
|
})
|
|
47
48
|
]
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
}));
|
|
50
|
+
const PaginationNext = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs(PaginationLink, {
|
|
51
|
+
ref: ref,
|
|
51
52
|
"aria-label": "Go to next page",
|
|
52
53
|
size: "default",
|
|
53
|
-
className: cn(
|
|
54
|
+
className: cn(pagination_module.next, className),
|
|
54
55
|
...props,
|
|
55
56
|
children: [
|
|
56
57
|
/*#__PURE__*/ jsx("span", {
|
|
57
58
|
children: "Next"
|
|
58
59
|
}),
|
|
59
|
-
/*#__PURE__*/ jsx(ChevronRight, {
|
|
60
|
-
className: "h-4 w-4"
|
|
61
|
-
})
|
|
60
|
+
/*#__PURE__*/ jsx(ChevronRight, {})
|
|
62
61
|
]
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"aria-hidden": true,
|
|
67
|
-
className: cn(
|
|
62
|
+
}));
|
|
63
|
+
const PaginationEllipsis = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs("span", {
|
|
64
|
+
ref: ref,
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
className: cn(pagination_module.ellipsis, className),
|
|
68
67
|
...props,
|
|
69
68
|
children: [
|
|
70
|
-
/*#__PURE__*/ jsx(MoreHorizontal, {
|
|
71
|
-
className: "h-4 w-4"
|
|
72
|
-
}),
|
|
69
|
+
/*#__PURE__*/ jsx(MoreHorizontal, {}),
|
|
73
70
|
/*#__PURE__*/ jsx("span", {
|
|
74
|
-
className:
|
|
71
|
+
className: pagination_module.srOnly,
|
|
75
72
|
children: "More pages"
|
|
76
73
|
})
|
|
77
74
|
]
|
|
78
|
-
});
|
|
75
|
+
}));
|
|
76
|
+
Pagination.displayName = "Pagination";
|
|
77
|
+
PaginationContent.displayName = "PaginationContent";
|
|
78
|
+
PaginationItem.displayName = "PaginationItem";
|
|
79
|
+
PaginationLink.displayName = "PaginationLink";
|
|
80
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
81
|
+
PaginationNext.displayName = "PaginationNext";
|
|
79
82
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
80
83
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
81
84
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/ui/pagination.js","sources":["../../../src/components/ui/pagination.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {ChevronLeft, ChevronRight, MoreHorizontal} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {ButtonProps, buttonVariants} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Pagination = ({className, ...props}: React.ComponentProps<\"nav\">) => (\r\n <nav\r\n role='navigation'\r\n aria-label='pagination'\r\n className={cn(\"mx-auto flex w-full justify-center\", className)}\r\n {...props}\r\n />\r\n);\r\nPagination.displayName = \"Pagination\";\r\n\r\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<\"ul\">>(({className, ...props}, ref) => (\r\n <ul\r\n ref={ref}\r\n className={cn(\"flex flex-row items-center gap-1\", className)}\r\n {...props}\r\n />\r\n));\r\nPaginationContent.displayName = \"PaginationContent\";\r\n\r\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<\"li\">>(({className, ...props}, ref) => (\r\n <li\r\n ref={ref}\r\n className={cn(\"\", className)}\r\n {...props}\r\n />\r\n));\r\nPaginationItem.displayName = \"PaginationItem\";\r\n\r\ntype PaginationLinkProps = {\r\n isActive?: boolean;\r\n} & Pick<ButtonProps, \"size\">\r\n & React.ComponentProps<\"a\">;\r\n\r\nconst PaginationLink = ({className, isActive, size = \"icon\", ...props}: PaginationLinkProps) => (\r\n // eslint-disable-next-line jsx-a11y/anchor-has-content -- the link will have children.\r\n <a\r\n aria-current={isActive ? \"page\" : undefined}\r\n className={cn(\r\n buttonVariants({\r\n variant: isActive ? \"outline\" : \"ghost\",\r\n size,\r\n }),\r\n className,\r\n )}\r\n {...props}\r\n />\r\n);\r\nPaginationLink.displayName = \"PaginationLink\";\r\n\r\nconst PaginationPrevious = ({className, ...props}: React.ComponentProps<typeof PaginationLink>) => (\r\n <PaginationLink\r\n aria-label='Go to previous page'\r\n size='default'\r\n className={cn(\"gap-1 pl-2.5\", className)}\r\n {...props}>\r\n <ChevronLeft className='h-4 w-4' />\r\n <span>Previous</span>\r\n </PaginationLink>\r\n);\r\nPaginationPrevious.displayName = \"PaginationPrevious\";\r\n\r\nconst PaginationNext = ({className, ...props}: React.ComponentProps<typeof PaginationLink>) => (\r\n <PaginationLink\r\n aria-label='Go to next page'\r\n size='default'\r\n className={cn(\"gap-1 pr-2.5\", className)}\r\n {...props}>\r\n <span>Next</span>\r\n <ChevronRight className='h-4 w-4' />\r\n </PaginationLink>\r\n);\r\nPaginationNext.displayName = \"PaginationNext\";\r\n\r\nconst PaginationEllipsis = ({className, ...props}: React.ComponentProps<\"span\">) => (\r\n <span\r\n aria-hidden\r\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\r\n {...props}>\r\n <MoreHorizontal className='h-4 w-4' />\r\n <span className='sr-only'>More pages</span>\r\n </span>\r\n);\r\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\r\n\r\nexport {Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious};\r\n"],"names":["Pagination","className","props","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","undefined","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;;AAQA,MAAMA,aAAa,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAmC,iBACpE,IAAC;QACC,MAAK;QACL,cAAW;QACX,WAAWC,GAAG,sCAAsCF;QACnD,GAAGC,KAAK;;AAGbF,WAAW,WAAW,GAAG;AAEzB,MAAMI,oBAAoB,WAApBA,GAAoBC,WAA+D,CAAC,EAACJ,SAAS,EAAE,GAAGC,OAAM,EAAEI,MAAAA,WAAAA,GAC/G,IAAC;QACC,KAAKA;QACL,WAAWH,GAAG,oCAAoCF;QACjD,GAAGC,KAAK;;AAGbE,kBAAkB,WAAW,GAAG;AAEhC,MAAMG,iBAAiB,WAAjBA,GAAiBF,WAA4D,CAAC,EAACJ,SAAS,EAAE,GAAGC,OAAM,EAAEI,MAAAA,WAAAA,GACzG,IAAC;QACC,KAAKA;QACL,WAAWH,GAAG,IAAIF;QACjB,GAAGC,KAAK;;AAGbK,eAAe,WAAW,GAAG;AAO7B,MAAMC,iBAAiB,CAAC,EAACP,SAAS,EAAEQ,QAAQ,EAAEC,OAAO,MAAM,EAAE,GAAGR,OAA2B,G,cAEzF,IAAC;QACC,gBAAcO,WAAW,SAASE;QAClC,WAAWR,GACTS,eAAe;YACb,SAASH,WAAW,YAAY;YAChCC;QACF,IACAT;QAED,GAAGC,KAAK;;AAGbM,eAAe,WAAW,GAAG;AAE7B,MAAMK,qBAAqB,CAAC,EAACZ,SAAS,EAAE,GAAGC,OAAmD,iBAC5F,KAACM,gBAAAA;QACC,cAAW;QACX,MAAK;QACL,WAAWL,GAAG,gBAAgBF;QAC7B,GAAGC,KAAK;;0BACT,IAACY,aAAWA;gBAAC,WAAU;;0BACvB,IAAC;0BAAK;;;;AAGVD,mBAAmB,WAAW,GAAG;AAEjC,MAAME,iBAAiB,CAAC,EAACd,SAAS,EAAE,GAAGC,OAAmD,iBACxF,KAACM,gBAAAA;QACC,cAAW;QACX,MAAK;QACL,WAAWL,GAAG,gBAAgBF;QAC7B,GAAGC,KAAK;;0BACT,IAAC;0BAAK;;0BACN,IAACc,cAAYA;gBAAC,WAAU;;;;AAG5BD,eAAe,WAAW,GAAG;AAE7B,MAAME,qBAAqB,CAAC,EAAChB,SAAS,EAAE,GAAGC,OAAoC,iBAC7E,KAAC;QACC,eAAW;QACX,WAAWC,GAAG,4CAA4CF;QACzD,GAAGC,KAAK;;0BACT,IAACgB,gBAAcA;gBAAC,WAAU;;0BAC1B,IAAC;gBAAK,WAAU;0BAAU;;;;AAG9BD,mBAAmB,WAAW,GAAG"}
|
|
1
|
+
{"version":3,"file":"components/ui/pagination.js","sources":["../../../src/components/ui/pagination.tsx"],"sourcesContent":["\"use client\";\r\n\r\n/* eslint-disable jsx-a11y/anchor-has-content */\r\n\r\nimport {ChevronLeft, ChevronRight, MoreHorizontal} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport type {ButtonProps} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\nimport buttonStyles from \"./button.module.css\";\r\nimport styles from \"./pagination.module.css\";\r\n\r\n/**\r\n * Props for the {@link Pagination} component.\r\n */\r\nexport type PaginationProps = React.ComponentPropsWithoutRef<\"nav\">;\r\n\r\n/**\r\n * Props for the {@link PaginationContent} component.\r\n */\r\nexport type PaginationContentProps = React.ComponentPropsWithoutRef<\"ul\">;\r\n\r\n/**\r\n * Props for the {@link PaginationItem} component.\r\n */\r\nexport type PaginationItemProps = React.ComponentPropsWithoutRef<\"li\">;\r\n\r\n/**\r\n * Props for the {@link PaginationLink} component.\r\n */\r\nexport interface PaginationLinkProps extends Pick<ButtonProps, \"size\">, React.ComponentPropsWithoutRef<\"a\"> {\r\n /** Marks the link as the current active page. @default false */\r\n isActive?: boolean;\r\n}\r\n\r\n/**\r\n * Props for the {@link PaginationPrevious} component.\r\n */\r\nexport type PaginationPreviousProps = React.ComponentPropsWithoutRef<typeof PaginationLink>;\r\n\r\n/**\r\n * Props for the {@link PaginationNext} component.\r\n */\r\nexport type PaginationNextProps = React.ComponentPropsWithoutRef<typeof PaginationLink>;\r\n\r\n/**\r\n * Props for the {@link PaginationEllipsis} component.\r\n */\r\nexport type PaginationEllipsisProps = React.ComponentPropsWithoutRef<\"span\">;\r\n\r\nconst buttonSizeStyles: Record<NonNullable<ButtonProps[\"size\"]>, string> = {\r\n default: buttonStyles.sizeDefault,\r\n icon: buttonStyles.sizeIcon,\r\n lg: buttonStyles.sizeLg,\r\n sm: buttonStyles.sizeSm,\r\n};\r\n\r\n/**\r\n * Provides semantic navigation for paginated content.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders a `<nav>` element\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <Pagination>\r\n * <PaginationContent />\r\n * </Pagination>\r\n * ```\r\n *\r\n * @see {@link PaginationProps} for available props\r\n */\r\nconst Pagination = React.forwardRef<HTMLElement, PaginationProps>(\r\n ({className, ...props}: Readonly<PaginationProps>, ref): React.JSX.Element => (\r\n <nav\r\n ref={ref}\r\n role='navigation'\r\n aria-label='pagination'\r\n className={cn(styles.root, className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\n\r\n/**\r\n * Wraps pagination items in a flex-based list container.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders a `<ul>` element\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationContent>\r\n * <PaginationItem />\r\n * </PaginationContent>\r\n * ```\r\n *\r\n * @see {@link PaginationContentProps} for available props\r\n */\r\nconst PaginationContent = React.forwardRef<HTMLUListElement, PaginationContentProps>(\r\n ({className, ...props}: Readonly<PaginationContentProps>, ref): React.JSX.Element => (\r\n <ul\r\n ref={ref}\r\n className={cn(styles.content, className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\n\r\n/**\r\n * Wraps an individual pagination control.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders an `<li>` element\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationItem>\r\n * <PaginationLink href='?page=1'>1</PaginationLink>\r\n * </PaginationItem>\r\n * ```\r\n *\r\n * @see {@link PaginationItemProps} for available props\r\n */\r\nconst PaginationItem = React.forwardRef<HTMLLIElement, PaginationItemProps>(\r\n ({className, ...props}: Readonly<PaginationItemProps>, ref): React.JSX.Element => (\r\n <li\r\n ref={ref}\r\n className={cn(styles.item, className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\n\r\n/**\r\n * Renders an anchor styled to match pagination controls.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders an `<a>` element\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationLink href='?page=2' isActive>\r\n * 2\r\n * </PaginationLink>\r\n * ```\r\n *\r\n * @see {@link PaginationLinkProps} for available props\r\n */\r\nconst PaginationLink = React.forwardRef<HTMLAnchorElement, PaginationLinkProps>(\r\n ({className, isActive = false, size = \"icon\", ...props}: Readonly<PaginationLinkProps>, ref): React.JSX.Element => {\r\n return (\r\n <a\r\n ref={ref}\r\n aria-current={isActive ? \"page\" : undefined}\r\n className={cn(\r\n buttonStyles.button,\r\n isActive ? buttonStyles.outline : buttonStyles.ghost,\r\n buttonSizeStyles[size],\r\n styles.link,\r\n className,\r\n )}\r\n {...props}\r\n />\r\n );\r\n },\r\n);\r\n\r\n/**\r\n * Renders the pagination control for navigating to the previous page.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders an `<a>` element through {@link PaginationLink}\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationPrevious href='?page=1' />\r\n * ```\r\n *\r\n * @see {@link PaginationPreviousProps} for available props\r\n */\r\nconst PaginationPrevious = React.forwardRef<HTMLAnchorElement, PaginationPreviousProps>(\r\n ({className, ...props}: Readonly<PaginationPreviousProps>, ref): React.JSX.Element => (\r\n <PaginationLink\r\n ref={ref}\r\n aria-label='Go to previous page'\r\n size='default'\r\n className={cn(styles.previous, className)}\r\n {...props}>\r\n <ChevronLeft />\r\n <span>Previous</span>\r\n </PaginationLink>\r\n ),\r\n);\r\n\r\n/**\r\n * Renders the pagination control for navigating to the next page.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders an `<a>` element through {@link PaginationLink}\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationNext href='?page=3' />\r\n * ```\r\n *\r\n * @see {@link PaginationNextProps} for available props\r\n */\r\nconst PaginationNext = React.forwardRef<HTMLAnchorElement, PaginationNextProps>(\r\n ({className, ...props}: Readonly<PaginationNextProps>, ref): React.JSX.Element => (\r\n <PaginationLink\r\n ref={ref}\r\n aria-label='Go to next page'\r\n size='default'\r\n className={cn(styles.next, className)}\r\n {...props}>\r\n <span>Next</span>\r\n <ChevronRight />\r\n </PaginationLink>\r\n ),\r\n);\r\n\r\n/**\r\n * Indicates truncated page ranges within pagination.\r\n *\r\n * @remarks\r\n * - Pure CSS component (no Base UI primitive)\r\n * - Renders a `<span>` element\r\n * - Styling via CSS Modules with `--ac-*` custom properties\r\n *\r\n * @example\r\n * ```tsx\r\n * <PaginationEllipsis />\r\n * ```\r\n *\r\n * @see {@link PaginationEllipsisProps} for available props\r\n */\r\nconst PaginationEllipsis = React.forwardRef<HTMLSpanElement, PaginationEllipsisProps>(\r\n ({className, ...props}: Readonly<PaginationEllipsisProps>, ref): React.JSX.Element => (\r\n <span\r\n ref={ref}\r\n aria-hidden='true'\r\n className={cn(styles.ellipsis, className)}\r\n {...props}>\r\n <MoreHorizontal />\r\n <span className={styles.srOnly}>More pages</span>\r\n </span>\r\n ),\r\n);\r\n\r\nPagination.displayName = \"Pagination\";\r\nPaginationContent.displayName = \"PaginationContent\";\r\nPaginationItem.displayName = \"PaginationItem\";\r\nPaginationLink.displayName = \"PaginationLink\";\r\nPaginationPrevious.displayName = \"PaginationPrevious\";\r\nPaginationNext.displayName = \"PaginationNext\";\r\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\r\n\r\nexport {Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious};\r\n"],"names":["buttonSizeStyles","buttonStyles","Pagination","React","className","props","ref","cn","styles","PaginationContent","PaginationItem","PaginationLink","isActive","size","undefined","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;;;AAkDA,MAAMA,mBAAqE;IACzE,SAASC,cAAAA,WAAwB;IACjC,MAAMA,cAAAA,QAAqB;IAC3B,IAAIA,cAAAA,MAAmB;IACvB,IAAIA,cAAAA,MAAmB;AACzB;AAmBA,MAAMC,aAAa,WAAHA,GAAGC,WACjB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAiC,EAAEC,MAAAA,WAAAA,GACjD,IAAC;QACC,KAAKA;QACL,MAAK;QACL,cAAW;QACX,WAAWC,GAAGC,kBAAAA,IAAW,EAAEJ;QAC1B,GAAGC,KAAK;;AAsBf,MAAMI,oBAAoB,WAAHA,GAAGN,WACxB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAwC,EAAEC,MAAAA,WAAAA,GACxD,IAAC;QACC,KAAKA;QACL,WAAWC,GAAGC,kBAAAA,OAAc,EAAEJ;QAC7B,GAAGC,KAAK;;AAsBf,MAAMK,iBAAiB,WAAHA,GAAGP,WACrB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAqC,EAAEC,MAAAA,WAAAA,GACrD,IAAC;QACC,KAAKA;QACL,WAAWC,GAAGC,kBAAAA,IAAW,EAAEJ;QAC1B,GAAGC,KAAK;;AAsBf,MAAMM,iBAAiB,WAAHA,GAAGR,WACrB,CAAC,EAACC,SAAS,EAAEQ,WAAW,KAAK,EAAEC,OAAO,MAAM,EAAE,GAAGR,OAAqC,EAAEC,MAC/E,WAAP,GACE,IAAC;QACC,KAAKA;QACL,gBAAcM,WAAW,SAASE;QAClC,WAAWP,GACTN,cAAAA,MAAmB,EACnBW,WAAWX,cAAAA,OAAoB,GAAGA,cAAAA,KAAkB,EACpDD,gBAAgB,CAACa,KAAK,EACtBL,kBAAAA,IAAW,EACXJ;QAED,GAAGC,KAAK;;AAqBjB,MAAMU,qBAAqB,WAAHA,GAAGZ,WACzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAyC,EAAEC,MAAAA,WAAAA,GACzD,KAACK,gBAAcA;QACb,KAAKL;QACL,cAAW;QACX,MAAK;QACL,WAAWC,GAAGC,kBAAAA,QAAe,EAAEJ;QAC9B,GAAGC,KAAK;;0BACT,IAACW,aAAWA,CAAAA;0BACZ,IAAC;0BAAK;;;;AAoBZ,MAAMC,iBAAiB,WAAHA,GAAGd,WACrB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAqC,EAAEC,MAAAA,WAAAA,GACrD,KAACK,gBAAcA;QACb,KAAKL;QACL,cAAW;QACX,MAAK;QACL,WAAWC,GAAGC,kBAAAA,IAAW,EAAEJ;QAC1B,GAAGC,KAAK;;0BACT,IAAC;0BAAK;;0BACN,IAACa,cAAYA,CAAAA;;;AAoBnB,MAAMC,qBAAqB,WAAHA,GAAGhB,WACzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAyC,EAAEC,MAAAA,WAAAA,GACzD,KAAC;QACC,KAAKA;QACL,eAAY;QACZ,WAAWC,GAAGC,kBAAAA,QAAe,EAAEJ;QAC9B,GAAGC,KAAK;;0BACT,IAACe,gBAAcA,CAAAA;0BACf,IAAC;gBAAK,WAAWZ,kBAAAA,MAAa;0BAAE;;;;AAKtCN,WAAW,WAAW,GAAG;AACzBO,kBAAkB,WAAW,GAAG;AAChCC,eAAe,WAAW,GAAG;AAC7BC,eAAe,WAAW,GAAG;AAC7BI,mBAAmB,WAAW,GAAG;AACjCE,eAAe,WAAW,GAAG;AAC7BE,mBAAmB,WAAW,GAAG"}
|