@spark-ui/components 13.1.4 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-B6rA3-e5.js +2 -0
- package/dist/Button-B6rA3-e5.js.map +1 -0
- package/dist/{chunk-2YM6GKWW.mjs → Button-C3C0aixy.mjs} +130 -173
- package/dist/Button-C3C0aixy.mjs.map +1 -0
- package/dist/DialogContent.styles-B5pR8ECK.js +2 -0
- package/dist/DialogContent.styles-B5pR8ECK.js.map +1 -0
- package/dist/{chunk-XZ47F6TP.mjs → DialogContent.styles-_lRDsl8c.mjs} +6 -8
- package/dist/DialogContent.styles-_lRDsl8c.mjs.map +1 -0
- package/dist/Icon-CF0W0LKr.js +2 -0
- package/dist/Icon-CF0W0LKr.js.map +1 -0
- package/dist/Icon-Ck-dhfLd.mjs +58 -0
- package/dist/Icon-Ck-dhfLd.mjs.map +1 -0
- package/dist/IconButton-C62-axzv.mjs +43 -0
- package/dist/IconButton-C62-axzv.mjs.map +1 -0
- package/dist/IconButton-D3g86WpZ.js +2 -0
- package/dist/IconButton-D3g86WpZ.js.map +1 -0
- package/dist/Slot-D2Bbf8Gw.mjs +14 -0
- package/dist/Slot-D2Bbf8Gw.mjs.map +1 -0
- package/dist/Slot-DQ8z2zsy.js +2 -0
- package/dist/Slot-DQ8z2zsy.js.map +1 -0
- package/dist/Spinner-_Kffli3B.js +2 -0
- package/dist/Spinner-_Kffli3B.js.map +1 -0
- package/dist/{chunk-GAK4SC2F.mjs → Spinner-jF3-zoh_.mjs} +29 -40
- package/dist/Spinner-jF3-zoh_.mjs.map +1 -0
- package/dist/{chunk-RKPP7ZOK.mjs → TextLink-BuzFRWO6.mjs} +27 -36
- package/dist/TextLink-BuzFRWO6.mjs.map +1 -0
- package/dist/TextLink-C3xDLsbC.js +2 -0
- package/dist/TextLink-C3xDLsbC.js.map +1 -0
- package/dist/VisuallyHidden-CB6Nx76j.js +2 -0
- package/dist/VisuallyHidden-CB6Nx76j.js.map +1 -0
- package/dist/VisuallyHidden-KH1biLx-.mjs +28 -0
- package/dist/VisuallyHidden-KH1biLx-.mjs.map +1 -0
- package/dist/accordion/Accordion.d.ts +27 -0
- package/dist/accordion/AccordionItem.d.ts +12 -0
- package/dist/accordion/AccordionItemContent.d.ts +12 -0
- package/dist/accordion/AccordionItemHeader.d.ts +9 -0
- package/dist/accordion/AccordionItemTrigger.d.ts +12 -0
- package/dist/accordion/index.d.mts +10 -68
- package/dist/accordion/index.d.ts +10 -68
- package/dist/accordion/index.js +2 -325
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +114 -154
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/accordion/useRenderSlot.d.ts +3 -0
- package/dist/alert-dialog/AlertDialog.d.ts +29 -0
- package/dist/alert-dialog/AlertDialogAction.d.ts +13 -0
- package/dist/alert-dialog/AlertDialogBody.d.ts +12 -0
- package/dist/alert-dialog/AlertDialogCancel.d.ts +13 -0
- package/dist/alert-dialog/AlertDialogContent.d.ts +9 -0
- package/dist/alert-dialog/AlertDialogContext.d.ts +12 -0
- package/dist/alert-dialog/AlertDialogDescription.d.ts +9 -0
- package/dist/alert-dialog/AlertDialogFooter.d.ts +10 -0
- package/dist/alert-dialog/AlertDialogHeader.d.ts +10 -0
- package/dist/alert-dialog/AlertDialogOverlay.d.ts +9 -0
- package/dist/alert-dialog/AlertDialogPortal.d.ts +7 -0
- package/dist/alert-dialog/AlertDialogTitle.d.ts +9 -0
- package/dist/alert-dialog/AlertDialogTrigger.d.ts +13 -0
- package/dist/alert-dialog/index.d.mts +26 -147
- package/dist/alert-dialog/index.d.ts +26 -147
- package/dist/alert-dialog/index.js +2 -405
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs +172 -260
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/alert-dialog/useRenderSlot.d.ts +3 -0
- package/dist/avatar/Avatar.d.ts +3 -0
- package/dist/avatar/AvatarAction.d.ts +9 -0
- package/dist/avatar/AvatarImage.d.ts +7 -0
- package/dist/avatar/AvatarOnlineBadge.d.ts +9 -0
- package/dist/avatar/AvatarPlaceholder.d.ts +8 -0
- package/dist/avatar/AvatarUser.d.ts +7 -0
- package/dist/avatar/context.d.ts +5 -0
- package/dist/avatar/index.d.mts +8 -59
- package/dist/avatar/index.d.ts +8 -59
- package/dist/avatar/index.js +2 -1323
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs +149 -207
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/avatar/types.d.ts +24 -0
- package/dist/badge/Badge.d.ts +9 -0
- package/dist/badge/BadgeItem.d.ts +31 -0
- package/dist/badge/BadgeItem.styles.d.ts +7 -0
- package/dist/badge/index.d.mts +1 -47
- package/dist/badge/index.d.ts +1 -47
- package/dist/badge/index.js +2 -122
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +32 -44
- package/dist/badge/index.mjs.map +1 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
- package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +11 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +9 -0
- package/dist/breadcrumb/BreadcrumbLink.d.ts +12 -0
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +10 -0
- package/dist/breadcrumb/index.d.mts +7 -59
- package/dist/breadcrumb/index.d.ts +7 -59
- package/dist/breadcrumb/index.js +2 -327
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +106 -146
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/button/Button.d.ts +26 -0
- package/dist/button/Button.styles.d.ts +10 -0
- package/dist/button/index.d.mts +1 -41
- package/dist/button/index.d.ts +1 -41
- package/dist/button/index.js +2 -935
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +3 -8
- package/dist/button/index.mjs.map +1 -1
- package/dist/button/variants/contrast.d.ts +45 -0
- package/dist/button/variants/filled.d.ts +45 -0
- package/dist/button/variants/ghost.d.ts +45 -0
- package/dist/button/variants/index.d.mts +5 -0
- package/dist/button/variants/index.d.ts +5 -0
- package/dist/button/variants/outlined.d.ts +45 -0
- package/dist/button/variants/tinted.d.ts +45 -0
- package/dist/card/Backdrop.d.ts +14 -0
- package/dist/card/Card.d.ts +16 -0
- package/dist/card/Card.styles.d.ts +7 -0
- package/dist/card/Content.d.ts +15 -0
- package/dist/card/Content.styles.d.ts +8 -0
- package/dist/card/context.d.ts +11 -0
- package/dist/card/index.d.mts +5 -58
- package/dist/card/index.d.ts +5 -58
- package/dist/card/index.js +2 -502
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +125 -178
- package/dist/card/index.mjs.map +1 -1
- package/dist/card/utils.d.ts +3 -0
- package/dist/carousel/Carousel.d.ts +12 -0
- package/dist/carousel/CarouselControls.d.ts +9 -0
- package/dist/carousel/CarouselNextButton.d.ts +5 -0
- package/dist/carousel/CarouselPageIndicator.d.ts +14 -0
- package/dist/carousel/CarouselPagePicker.d.ts +14 -0
- package/dist/carousel/CarouselPrevButton.d.ts +5 -0
- package/dist/carousel/CarouselSlide.d.ts +12 -0
- package/dist/carousel/CarouselSlides.d.ts +10 -0
- package/dist/carousel/CarouselViewport.d.ts +9 -0
- package/dist/carousel/index.d.mts +18 -263
- package/dist/carousel/index.d.ts +18 -263
- package/dist/carousel/index.js +2 -1882
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +428 -650
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/carousel/types.d.ts +165 -0
- package/dist/carousel/useCarousel.d.ts +2 -0
- package/dist/carousel/useCarouselVisibility.d.ts +13 -0
- package/dist/carousel/useEvent.d.ts +7 -0
- package/dist/carousel/useIsMounted.d.ts +1 -0
- package/dist/carousel/useIsVisible.d.ts +6 -0
- package/dist/carousel/useResizeObserver.d.ts +2 -0
- package/dist/carousel/useScrollEnd.d.ts +3 -0
- package/dist/carousel/useSnapPoints.d.ts +10 -0
- package/dist/carousel/utils.d.ts +24 -0
- package/dist/checkbox/Checkbox.d.ts +10 -0
- package/dist/checkbox/CheckboxGroup.d.ts +18 -0
- package/dist/checkbox/CheckboxGroup.styles.d.ts +5 -0
- package/dist/checkbox/CheckboxGroupContext.d.ts +41 -0
- package/dist/checkbox/CheckboxIndicator.d.ts +9 -0
- package/dist/checkbox/CheckboxInput.d.ts +47 -0
- package/dist/checkbox/CheckboxInput.styles.d.ts +5 -0
- package/dist/checkbox/CheckboxLabel.d.ts +12 -0
- package/dist/checkbox/CheckboxLabel.styles.d.ts +5 -0
- package/dist/checkbox/index.d.mts +2 -120
- package/dist/checkbox/index.d.ts +2 -120
- package/dist/checkbox/index.js +2 -511
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +135 -226
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/Chip.d.ts +34 -0
- package/dist/chip/Chip.styles.d.ts +8 -0
- package/dist/chip/ChipClearButton.d.ts +10 -0
- package/dist/chip/ChipClearButton.styles.d.ts +10 -0
- package/dist/chip/ChipContent.d.ts +8 -0
- package/dist/chip/ChipIcon.d.ts +8 -0
- package/dist/chip/ChipLeadingIcon.d.ts +9 -0
- package/dist/chip/ChipTrailingIcon.d.ts +9 -0
- package/dist/chip/index.d.mts +10 -92
- package/dist/chip/index.d.ts +10 -92
- package/dist/chip/index.js +2 -908
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +218 -324
- package/dist/chip/index.mjs.map +1 -1
- package/dist/chip/useChipContext.d.ts +4 -0
- package/dist/chip/useChipElement.d.ts +41 -0
- package/dist/chip/variants/dashed.d.ts +49 -0
- package/dist/chip/variants/index.d.mts +3 -0
- package/dist/chip/variants/index.d.ts +3 -0
- package/dist/chip/variants/outlined.d.ts +49 -0
- package/dist/chip/variants/tinted.d.ts +49 -0
- package/dist/collapsible/Content.d.ts +12 -0
- package/dist/collapsible/Root.d.ts +12 -0
- package/dist/collapsible/Trigger.d.ts +11 -0
- package/dist/collapsible/index.d.mts +4 -40
- package/dist/collapsible/index.d.ts +4 -40
- package/dist/collapsible/index.js +2 -109
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs +39 -58
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/collapsible/useRenderSlot.d.ts +3 -0
- package/dist/combobox/Combobox.d.ts +6 -0
- package/dist/combobox/ComboboxClearButton.d.ts +9 -0
- package/dist/combobox/ComboboxContext.d.ts +108 -0
- package/dist/combobox/ComboboxDisclosure.d.ts +13 -0
- package/dist/combobox/ComboboxEmpty.d.ts +11 -0
- package/dist/combobox/ComboboxGroup.d.ts +11 -0
- package/dist/combobox/ComboboxInput.d.ts +15 -0
- package/dist/combobox/ComboboxItem.d.ts +12 -0
- package/dist/combobox/ComboboxItemContext.d.ts +17 -0
- package/dist/combobox/ComboboxItemIndicator.d.ts +11 -0
- package/dist/combobox/ComboboxItemText.d.ts +10 -0
- package/dist/combobox/ComboboxItems.d.ts +11 -0
- package/dist/combobox/ComboboxItemsGroupContext.d.ts +8 -0
- package/dist/combobox/ComboboxLabel.d.ts +11 -0
- package/dist/combobox/ComboboxLeadingIcon.d.ts +7 -0
- package/dist/combobox/ComboboxPopover.d.ts +10 -0
- package/dist/combobox/ComboboxPortal.d.ts +2 -0
- package/dist/combobox/ComboboxSelectedItems.d.ts +4 -0
- package/dist/combobox/ComboboxTrigger.d.ts +11 -0
- package/dist/combobox/ComboboxTrigger.styles.d.ts +6 -0
- package/dist/combobox/index.d.mts +19 -271
- package/dist/combobox/index.d.ts +19 -271
- package/dist/combobox/index.js +2 -2588
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +623 -1017
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/combobox/tests/test-utils.d.ts +8 -0
- package/dist/combobox/types.d.ts +8 -0
- package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +13 -0
- package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +8 -0
- package/dist/combobox/utils/index.d.mts +14 -0
- package/dist/combobox/utils/index.d.ts +14 -0
- package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
- package/dist/dialog/Dialog.d.ts +32 -0
- package/dist/dialog/DialogBody.d.ts +12 -0
- package/dist/dialog/DialogClose.d.ts +9 -0
- package/dist/dialog/DialogCloseButton.d.ts +9 -0
- package/dist/dialog/DialogContent.d.ts +14 -0
- package/dist/dialog/DialogContent.styles.d.ts +6 -0
- package/dist/dialog/DialogContext.d.ts +11 -0
- package/dist/dialog/DialogDescription.d.ts +9 -0
- package/dist/dialog/DialogFooter.d.ts +10 -0
- package/dist/dialog/DialogHeader.d.ts +10 -0
- package/dist/dialog/DialogOverlay.d.ts +9 -0
- package/dist/dialog/DialogPortal.d.ts +7 -0
- package/dist/dialog/DialogTitle.d.ts +9 -0
- package/dist/dialog/DialogTrigger.d.ts +17 -0
- package/dist/dialog/index.d.mts +25 -154
- package/dist/dialog/index.d.ts +25 -154
- package/dist/dialog/index.js +2 -1389
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +163 -258
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/divider/Divider.d.ts +30 -0
- package/dist/divider/Divider.styles.d.ts +9 -0
- package/dist/divider/DividerContent.d.ts +13 -0
- package/dist/divider/index.d.mts +4 -59
- package/dist/divider/index.d.ts +4 -59
- package/dist/divider/index.js +2 -224
- package/dist/divider/index.js.map +1 -1
- package/dist/divider/index.mjs +79 -100
- package/dist/divider/index.mjs.map +1 -1
- package/dist/divider/variants/intents.d.ts +17 -0
- package/dist/drawer/Drawer.d.ts +39 -0
- package/dist/drawer/DrawerBody.d.ts +11 -0
- package/dist/drawer/DrawerBody.styles.d.ts +5 -0
- package/dist/drawer/DrawerClose.d.ts +9 -0
- package/dist/drawer/DrawerCloseButton.d.ts +7 -0
- package/dist/drawer/DrawerContent.d.ts +10 -0
- package/dist/drawer/DrawerContent.styles.d.ts +6 -0
- package/dist/drawer/DrawerContext.d.ts +9 -0
- package/dist/drawer/DrawerDescription.d.ts +9 -0
- package/dist/drawer/DrawerFooter.d.ts +8 -0
- package/dist/drawer/DrawerHeader.d.ts +10 -0
- package/dist/drawer/DrawerOverlay.d.ts +9 -0
- package/dist/drawer/DrawerPortal.d.ts +7 -0
- package/dist/drawer/DrawerTitle.d.ts +9 -0
- package/dist/drawer/DrawerTrigger.d.ts +13 -0
- package/dist/drawer/index.d.mts +24 -141
- package/dist/drawer/index.d.ts +24 -141
- package/dist/drawer/index.js +2 -1400
- package/dist/drawer/index.js.map +1 -1
- package/dist/drawer/index.mjs +141 -230
- package/dist/drawer/index.mjs.map +1 -1
- package/dist/dropdown/Dropdown.d.ts +6 -0
- package/dist/dropdown/DropdownContext.d.ts +81 -0
- package/dist/dropdown/DropdownDivider.d.ts +10 -0
- package/dist/dropdown/DropdownGroup.d.ts +11 -0
- package/dist/dropdown/DropdownItem.d.ts +12 -0
- package/dist/dropdown/DropdownItemContext.d.ts +17 -0
- package/dist/dropdown/DropdownItemIndicator.d.ts +11 -0
- package/dist/dropdown/DropdownItemText.d.ts +9 -0
- package/dist/dropdown/DropdownItems.d.ts +21 -0
- package/dist/dropdown/DropdownItemsGroupContext.d.ts +8 -0
- package/dist/dropdown/DropdownLabel.d.ts +11 -0
- package/dist/dropdown/DropdownLeadingIcon.d.ts +7 -0
- package/dist/dropdown/DropdownPopover.d.ts +6 -0
- package/dist/dropdown/DropdownPortal.d.ts +2 -0
- package/dist/dropdown/DropdownTrigger.d.ts +12 -0
- package/dist/dropdown/DropdownTrigger.styles.d.ts +5 -0
- package/dist/dropdown/DropdownValue.d.ts +11 -0
- package/dist/dropdown/index.d.mts +16 -220
- package/dist/dropdown/index.d.ts +16 -220
- package/dist/dropdown/index.js +2 -2051
- package/dist/dropdown/index.js.map +1 -1
- package/dist/dropdown/index.mjs +352 -584
- package/dist/dropdown/index.mjs.map +1 -1
- package/dist/dropdown/types.d.ts +8 -0
- package/dist/dropdown/useDropdown.d.ts +41 -0
- package/dist/dropdown/utils.d.ts +13 -0
- package/dist/file-upload/FileUpload.d.ts +130 -0
- package/dist/file-upload/FileUploadAcceptedFile.d.ts +25 -0
- package/dist/file-upload/FileUploadContext.d.ts +17 -0
- package/dist/file-upload/FileUploadDropzone.d.ts +10 -0
- package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +11 -0
- package/dist/file-upload/FileUploadPreviewImage.d.ts +17 -0
- package/dist/file-upload/FileUploadRejectedFile.d.ts +24 -0
- package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +12 -0
- package/dist/file-upload/FileUploadTrigger.d.ts +12 -0
- package/dist/file-upload/constants.d.ts +29 -0
- package/dist/file-upload/index.d.mts +14 -262
- package/dist/file-upload/index.d.ts +14 -262
- package/dist/file-upload/index.js +2 -2255
- package/dist/file-upload/index.js.map +1 -1
- package/dist/file-upload/index.mjs +506 -834
- package/dist/file-upload/index.mjs.map +1 -1
- package/dist/file-upload/test-utils.d.ts +9 -0
- package/dist/file-upload/useFileUploadState.d.ts +88 -0
- package/dist/file-upload/utils.d.ts +40 -0
- package/dist/form-field/FormField.d.ts +21 -0
- package/dist/form-field/FormFieldAlertMessage.d.ts +9 -0
- package/dist/form-field/FormFieldCharactersCount.d.ts +26 -0
- package/dist/form-field/FormFieldContext.d.ts +49 -0
- package/dist/form-field/FormFieldControl.d.ts +12 -0
- package/dist/form-field/FormFieldErrorMessage.d.ts +9 -0
- package/dist/form-field/FormFieldHelperMessage.d.ts +9 -0
- package/dist/form-field/FormFieldLabel.d.ts +13 -0
- package/dist/form-field/FormFieldMessage.d.ts +8 -0
- package/dist/form-field/FormFieldProvider.d.ts +9 -0
- package/dist/form-field/FormFieldRequiredIndicator.d.ts +9 -0
- package/dist/form-field/FormFieldStateMessage.d.ts +10 -0
- package/dist/form-field/FormFieldSuccessMessage.d.ts +9 -0
- package/dist/form-field/index.d.mts +21 -176
- package/dist/form-field/index.d.ts +21 -176
- package/dist/form-field/index.js +2 -553
- package/dist/form-field/index.js.map +1 -1
- package/dist/form-field/index.mjs +246 -349
- package/dist/form-field/index.mjs.map +1 -1
- package/dist/icon/Icon.d.ts +17 -0
- package/dist/icon/Icon.styles.d.ts +6 -0
- package/dist/icon/index.d.mts +1 -28
- package/dist/icon/index.d.ts +1 -28
- package/dist/icon/index.js +2 -127
- package/dist/icon/index.js.map +1 -1
- package/dist/icon/index.mjs +3 -7
- package/dist/icon/index.mjs.map +1 -1
- package/dist/icon-button/IconButton.d.ts +10 -0
- package/dist/icon-button/IconButton.styles.d.ts +5 -0
- package/dist/icon-button/index.d.mts +1 -16
- package/dist/icon-button/index.d.ts +1 -16
- package/dist/icon-button/index.js +2 -980
- package/dist/icon-button/index.js.map +1 -1
- package/dist/icon-button/index.mjs +3 -9
- package/dist/icon-button/index.mjs.map +1 -1
- package/dist/input/Input.d.ts +14 -0
- package/dist/input/Input.styles.d.ts +11 -0
- package/dist/input/InputAddon.d.ts +9 -0
- package/dist/input/InputAddon.styles.d.ts +9 -0
- package/dist/input/InputClearButton.d.ts +12 -0
- package/dist/input/InputGroup.d.ts +17 -0
- package/dist/input/InputGroup.styles.d.ts +6 -0
- package/dist/input/InputGroupContext.d.ts +14 -0
- package/dist/input/InputIcon.d.ts +6 -0
- package/dist/input/InputLeadingAddon.d.ts +11 -0
- package/dist/input/InputLeadingIcon.d.ts +7 -0
- package/dist/input/InputTrailingAddon.d.ts +11 -0
- package/dist/input/InputTrailingIcon.d.ts +7 -0
- package/dist/input/index.d.mts +15 -72
- package/dist/input/index.d.ts +15 -72
- package/dist/input/index.js +2 -724
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +453 -12
- package/dist/input/index.mjs.map +1 -1
- package/dist/input-otp/InputOTP.d.ts +85 -0
- package/dist/input-otp/InputOTP.styles.d.ts +10 -0
- package/dist/input-otp/InputOTPContext.d.ts +16 -0
- package/dist/input-otp/InputOTPGroup.d.ts +7 -0
- package/dist/input-otp/InputOTPSeparator.d.ts +7 -0
- package/dist/input-otp/InputOTPSlot.d.ts +12 -0
- package/dist/input-otp/index.d.mts +10 -128
- package/dist/input-otp/index.d.ts +10 -128
- package/dist/input-otp/index.js +2 -668
- package/dist/input-otp/index.js.map +1 -1
- package/dist/input-otp/index.mjs +295 -462
- package/dist/input-otp/index.mjs.map +1 -1
- package/dist/input-otp/useInputOTP.d.ts +45 -0
- package/dist/kbd/Kbd.d.ts +5 -0
- package/dist/kbd/index.d.mts +1 -9
- package/dist/kbd/index.d.ts +1 -9
- package/dist/kbd/index.js +2 -47
- package/dist/kbd/index.js.map +1 -1
- package/dist/kbd/index.mjs +15 -18
- package/dist/kbd/index.mjs.map +1 -1
- package/dist/label/Label.d.ts +9 -0
- package/dist/label/LabelRequiredIndicator.d.ts +6 -0
- package/dist/label/index.d.mts +5 -9
- package/dist/label/index.d.ts +5 -9
- package/dist/label/index.js +2 -78
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +38 -5
- package/dist/label/index.mjs.map +1 -1
- package/dist/link-box/LinkBox.d.ts +8 -0
- package/dist/link-box/LinkBoxLink.d.ts +8 -0
- package/dist/link-box/LinkBoxRaised.d.ts +9 -0
- package/dist/link-box/index.d.mts +6 -31
- package/dist/link-box/index.d.ts +6 -31
- package/dist/link-box/index.js +2 -92
- package/dist/link-box/index.js.map +1 -1
- package/dist/link-box/index.mjs +34 -56
- package/dist/link-box/index.mjs.map +1 -1
- package/dist/pagination/Pagination.d.ts +8 -0
- package/dist/pagination/PaginationContext.d.ts +43 -0
- package/dist/pagination/PaginationEllipsis.d.ts +9 -0
- package/dist/pagination/PaginationFirstPageTrigger.d.ts +16 -0
- package/dist/pagination/PaginationItem.d.ts +17 -0
- package/dist/pagination/PaginationLastPageTrigger.d.ts +16 -0
- package/dist/pagination/PaginationNextTrigger.d.ts +16 -0
- package/dist/pagination/PaginationPages.d.ts +16 -0
- package/dist/pagination/PaginationPrevTrigger.d.ts +16 -0
- package/dist/pagination/index.d.mts +10 -135
- package/dist/pagination/index.d.ts +10 -135
- package/dist/pagination/index.js +2 -1353
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +176 -269
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/pagination/utils.d.ts +1 -0
- package/dist/popover/Popover.d.ts +9 -0
- package/dist/popover/PopoverAnchor.d.ts +9 -0
- package/dist/popover/PopoverArrow.d.ts +9 -0
- package/dist/popover/PopoverCloseButton.d.ts +10 -0
- package/dist/popover/PopoverContent.d.ts +10 -0
- package/dist/popover/PopoverContent.styles.d.ts +9 -0
- package/dist/popover/PopoverContext.d.ts +15 -0
- package/dist/popover/PopoverHeader.d.ts +10 -0
- package/dist/popover/PopoverPortal.d.ts +7 -0
- package/dist/popover/PopoverTrigger.d.ts +9 -0
- package/dist/popover/index.d.mts +17 -6
- package/dist/popover/index.d.ts +17 -6
- package/dist/popover/index.js +2 -1339
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +239 -11
- package/dist/popover/index.mjs.map +1 -1
- package/dist/portal/Portal.d.ts +10 -0
- package/dist/portal/index.d.mts +1 -13
- package/dist/portal/index.d.ts +1 -13
- package/dist/portal/index.js +2 -37
- package/dist/portal/index.js.map +1 -1
- package/dist/portal/index.mjs +5 -8
- package/dist/portal/index.mjs.map +1 -1
- package/dist/progress/Progress.d.ts +16 -0
- package/dist/progress/ProgressBar.d.ts +6 -0
- package/dist/progress/ProgressBar.styles.d.ts +5 -0
- package/dist/progress/ProgressContext.d.ts +13 -0
- package/dist/progress/ProgressIndicator.d.ts +6 -0
- package/dist/progress/ProgressIndicator.styles.d.ts +7 -0
- package/dist/progress/ProgressLabel.d.ts +6 -0
- package/dist/progress/index.d.mts +9 -48
- package/dist/progress/index.d.ts +9 -48
- package/dist/progress/index.js +2 -240
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +166 -5
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progress-tracker/ProgressTracker.d.ts +27 -0
- package/dist/progress-tracker/ProgressTracker.styles.d.ts +1 -0
- package/dist/progress-tracker/ProgressTrackerContext.d.ts +15 -0
- package/dist/progress-tracker/ProgressTrackerStep.d.ts +12 -0
- package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +10 -0
- package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +15 -0
- package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +7 -0
- package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +9 -0
- package/dist/progress-tracker/index.d.mts +10 -80
- package/dist/progress-tracker/index.d.ts +10 -80
- package/dist/progress-tracker/index.js +2 -571
- package/dist/progress-tracker/index.js.map +1 -1
- package/dist/progress-tracker/index.mjs +115 -183
- package/dist/progress-tracker/index.mjs.map +1 -1
- package/dist/radio-group/Radio.d.ts +9 -0
- package/dist/radio-group/RadioGroup.d.ts +54 -0
- package/dist/radio-group/RadioGroup.styles.d.ts +5 -0
- package/dist/radio-group/RadioGroupContext.d.ts +5 -0
- package/dist/radio-group/RadioGroupProvider.d.ts +7 -0
- package/dist/radio-group/RadioIndicator.d.ts +18 -0
- package/dist/radio-group/RadioIndicator.styles.d.ts +5 -0
- package/dist/radio-group/RadioInput.d.ts +25 -0
- package/dist/radio-group/RadioInput.styles.d.ts +5 -0
- package/dist/radio-group/RadioLabel.d.ts +20 -0
- package/dist/radio-group/RadioLabel.styles.d.ts +5 -0
- package/dist/radio-group/index.d.mts +5 -98
- package/dist/radio-group/index.d.ts +5 -98
- package/dist/radio-group/index.js +2 -318
- package/dist/radio-group/index.js.map +1 -1
- package/dist/radio-group/index.mjs +105 -174
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/rating/Rating.d.ts +52 -0
- package/dist/rating/RatingStar.d.ts +10 -0
- package/dist/rating/RatingStar.styles.d.ts +14 -0
- package/dist/rating/index.d.mts +1 -78
- package/dist/rating/index.d.ts +1 -78
- package/dist/rating/index.js +2 -363
- package/dist/rating/index.js.map +1 -1
- package/dist/rating/index.mjs +125 -170
- package/dist/rating/index.mjs.map +1 -1
- package/dist/rating/types.d.ts +1 -0
- package/dist/rating/utils.d.ts +8 -0
- package/dist/scrolling-list/ScrollingList.d.ts +57 -0
- package/dist/scrolling-list/ScrollingListControls.d.ts +18 -0
- package/dist/scrolling-list/ScrollingListItem.d.ts +17 -0
- package/dist/scrolling-list/ScrollingListItems.d.ts +11 -0
- package/dist/scrolling-list/ScrollingListNextButton.d.ts +5 -0
- package/dist/scrolling-list/ScrollingListPrevButton.d.ts +5 -0
- package/dist/scrolling-list/ScrollingListSkipButton.d.ts +9 -0
- package/dist/scrolling-list/index.d.mts +14 -117
- package/dist/scrolling-list/index.d.ts +14 -117
- package/dist/scrolling-list/index.js +2 -1428
- package/dist/scrolling-list/index.js.map +1 -1
- package/dist/scrolling-list/index.mjs +193 -325
- package/dist/scrolling-list/index.mjs.map +1 -1
- package/dist/scrolling-list/useFocusWithinScroll.d.ts +3 -0
- package/dist/segmented-gauge/SegmentedGauge.d.ts +66 -0
- package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +14 -0
- package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +9 -0
- package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +12 -0
- package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +8 -0
- package/dist/segmented-gauge/index.d.mts +9 -101
- package/dist/segmented-gauge/index.d.ts +9 -101
- package/dist/segmented-gauge/index.js +2 -274
- package/dist/segmented-gauge/index.js.map +1 -1
- package/dist/segmented-gauge/index.mjs +132 -178
- package/dist/segmented-gauge/index.mjs.map +1 -1
- package/dist/select/Select.d.ts +6 -0
- package/dist/select/SelectContext.d.ts +59 -0
- package/dist/select/SelectGroup.d.ts +11 -0
- package/dist/select/SelectItem.d.ts +11 -0
- package/dist/select/SelectItems.d.ts +10 -0
- package/dist/select/SelectItemsGroupContext.d.ts +9 -0
- package/dist/select/SelectLabel.d.ts +8 -0
- package/dist/select/SelectLeadingIcon.d.ts +7 -0
- package/dist/select/SelectPlaceholder.d.ts +10 -0
- package/dist/select/SelectTrigger.d.ts +16 -0
- package/dist/select/SelectTrigger.styles.d.ts +5 -0
- package/dist/select/SelectValue.d.ts +15 -0
- package/dist/select/index.d.mts +12 -158
- package/dist/select/index.d.ts +12 -158
- package/dist/select/index.js +2 -581
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +207 -339
- package/dist/select/index.mjs.map +1 -1
- package/dist/select/types.d.ts +6 -0
- package/dist/select/utils.d.ts +4 -0
- package/dist/skeleton/Skeleton.d.ts +17 -0
- package/dist/skeleton/Skeleton.styles.d.ts +5 -0
- package/dist/skeleton/SkeletonItem.d.ts +31 -0
- package/dist/skeleton/SkeletonItem.styles.d.ts +8 -0
- package/dist/skeleton/index.d.mts +8 -67
- package/dist/skeleton/index.d.ts +8 -67
- package/dist/skeleton/index.js +2 -206
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +64 -96
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/Slider.d.ts +60 -0
- package/dist/slider/Slider.styles.d.ts +1 -0
- package/dist/slider/SliderContext.d.ts +7 -0
- package/dist/slider/SliderThumb.d.ts +14 -0
- package/dist/slider/SliderThumb.styles.d.ts +5 -0
- package/dist/slider/SliderTrack.d.ts +14 -0
- package/dist/slider/SliderTrack.styles.d.ts +9 -0
- package/dist/slider/index.d.mts +8 -97
- package/dist/slider/index.d.ts +8 -97
- package/dist/slider/index.js +2 -220
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs +94 -111
- package/dist/slider/index.mjs.map +1 -1
- package/dist/slot/Slot.d.ts +12 -0
- package/dist/slot/index.d.mts +1 -16
- package/dist/slot/index.d.ts +1 -16
- package/dist/slot/index.js +2 -51
- package/dist/slot/index.js.map +1 -1
- package/dist/slot/index.mjs +5 -9
- package/dist/slot/index.mjs.map +1 -1
- package/dist/snackbar/Snackbar.d.ts +29 -0
- package/dist/snackbar/SnackbarItem.d.ts +49 -0
- package/dist/snackbar/SnackbarItem.styles.d.ts +10 -0
- package/dist/snackbar/SnackbarItemAction.d.ts +10 -0
- package/dist/snackbar/SnackbarItemClose.d.ts +9 -0
- package/dist/snackbar/SnackbarItemContext.d.ts +8 -0
- package/dist/snackbar/SnackbarItemIcon.d.ts +7 -0
- package/dist/snackbar/SnackbarRegion.d.ts +30 -0
- package/dist/snackbar/SnackbarRegion.styles.d.ts +5 -0
- package/dist/snackbar/index.d.mts +13 -158
- package/dist/snackbar/index.d.ts +13 -158
- package/dist/snackbar/index.js +2 -1756
- package/dist/snackbar/index.js.map +1 -1
- package/dist/snackbar/index.mjs +237 -429
- package/dist/snackbar/index.mjs.map +1 -1
- package/dist/snackbar/snackbarVariants.d.ts +82 -0
- package/dist/snackbar/useSnackbarGlobalStore.d.ts +18 -0
- package/dist/snackbar/useSwipe.d.ts +15 -0
- package/dist/spinner/Spinner.d.ts +9 -0
- package/dist/spinner/Spinner.styles.d.ts +7 -0
- package/dist/spinner/index.d.mts +1 -21
- package/dist/spinner/index.d.ts +1 -21
- package/dist/spinner/index.js +2 -139
- package/dist/spinner/index.js.map +1 -1
- package/dist/spinner/index.mjs +3 -7
- package/dist/spinner/index.mjs.map +1 -1
- package/dist/stepper/Stepper.d.ts +9 -0
- package/dist/stepper/StepperButton.d.ts +14 -0
- package/dist/stepper/StepperInput.d.ts +7 -0
- package/dist/stepper/index.d.mts +9 -81
- package/dist/stepper/index.d.ts +9 -81
- package/dist/stepper/index.js +2 -1847
- package/dist/stepper/index.js.map +1 -1
- package/dist/stepper/index.mjs +143 -195
- package/dist/stepper/index.mjs.map +1 -1
- package/dist/stepper/types.d.ts +46 -0
- package/dist/stepper/useStepper.d.ts +2 -0
- package/dist/switch/Switch.d.ts +6 -0
- package/dist/switch/SwitchInput.d.ts +51 -0
- package/dist/switch/SwitchInput.styles.d.ts +16 -0
- package/dist/switch/SwitchLabel.d.ts +17 -0
- package/dist/switch/SwitchLabel.styles.d.ts +5 -0
- package/dist/switch/index.d.mts +1 -64
- package/dist/switch/index.d.ts +1 -64
- package/dist/switch/index.js +2 -327
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +90 -130
- package/dist/switch/index.mjs.map +1 -1
- package/dist/tabs/Tabs.d.ts +24 -0
- package/dist/tabs/TabsContent.d.ts +22 -0
- package/dist/tabs/TabsContent.styles.d.ts +3 -0
- package/dist/tabs/TabsContext.d.ts +7 -0
- package/dist/tabs/TabsList.d.ts +20 -0
- package/dist/tabs/TabsList.styles.d.ts +3 -0
- package/dist/tabs/TabsPopover.d.ts +29 -0
- package/dist/tabs/TabsPopoverAbstraction.d.ts +27 -0
- package/dist/tabs/TabsRoot.styles.d.ts +1 -0
- package/dist/tabs/TabsTrigger.d.ts +41 -0
- package/dist/tabs/TabsTrigger.styles.d.ts +8 -0
- package/dist/tabs/index.d.mts +13 -137
- package/dist/tabs/index.d.ts +13 -137
- package/dist/tabs/index.js +2 -1830
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +224 -350
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/tabs/useResizeObserver.d.ts +8 -0
- package/dist/tag/Tag.d.ts +17 -0
- package/dist/tag/Tag.styles.d.ts +8 -0
- package/dist/tag/index.d.mts +1 -29
- package/dist/tag/index.d.ts +1 -29
- package/dist/tag/index.js +2 -283
- package/dist/tag/index.js.map +1 -1
- package/dist/tag/index.mjs +66 -90
- package/dist/tag/index.mjs.map +1 -1
- package/dist/tag/variants/filled.d.ts +41 -0
- package/dist/tag/variants/index.d.mts +3 -0
- package/dist/tag/variants/index.d.ts +3 -0
- package/dist/tag/variants/outlined.d.ts +37 -0
- package/dist/tag/variants/tinted.d.ts +37 -0
- package/dist/text-link/TextLink.d.ts +16 -0
- package/dist/text-link/index.d.mts +1 -20
- package/dist/text-link/index.d.ts +1 -20
- package/dist/text-link/index.js +2 -100
- package/dist/text-link/index.js.map +1 -1
- package/dist/text-link/index.mjs +3 -6
- package/dist/text-link/index.mjs.map +1 -1
- package/dist/textarea/Textarea.d.ts +14 -0
- package/dist/textarea/TextareaClearButton.d.ts +10 -0
- package/dist/textarea/TextareaGroup.d.ts +6 -0
- package/dist/textarea/TextareaLeadingIcon.d.ts +7 -0
- package/dist/textarea/TextareaTrailingIcon.d.ts +7 -0
- package/dist/textarea/index.d.mts +10 -53
- package/dist/textarea/index.d.ts +10 -53
- package/dist/textarea/index.js +2 -797
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +50 -83
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/Toast.d.ts +4 -0
- package/dist/toast/Toast.styles.d.ts +10 -0
- package/dist/toast/index.d.mts +10 -53
- package/dist/toast/index.d.ts +10 -53
- package/dist/toast/index.js +2 -1454
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +126 -180
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toast/types.d.ts +41 -0
- package/dist/toast/useRenderSlot.d.ts +3 -0
- package/dist/toast/useToastManager.d.ts +2 -0
- package/dist/visually-hidden/VisuallyHidden.d.ts +12 -0
- package/dist/visually-hidden/index.d.mts +1 -16
- package/dist/visually-hidden/index.d.ts +1 -16
- package/dist/visually-hidden/index.js +2 -67
- package/dist/visually-hidden/index.js.map +1 -1
- package/dist/visually-hidden/index.mjs +3 -6
- package/dist/visually-hidden/index.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/Input-N8AWWSmt.d.mts +0 -41
- package/dist/Input-N8AWWSmt.d.ts +0 -41
- package/dist/InputTrailingIcon-BBp7sE6D.d.mts +0 -20
- package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +0 -20
- package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +0 -19
- package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +0 -19
- package/dist/chunk-2YM6GKWW.mjs.map +0 -1
- package/dist/chunk-6QCEPQ3U.mjs +0 -26
- package/dist/chunk-6QCEPQ3U.mjs.map +0 -1
- package/dist/chunk-7EWSMIZU.mjs +0 -214
- package/dist/chunk-7EWSMIZU.mjs.map +0 -1
- package/dist/chunk-DCXWGQVZ.mjs +0 -53
- package/dist/chunk-DCXWGQVZ.mjs.map +0 -1
- package/dist/chunk-GAK4SC2F.mjs.map +0 -1
- package/dist/chunk-GPJMLIHC.mjs +0 -308
- package/dist/chunk-GPJMLIHC.mjs.map +0 -1
- package/dist/chunk-HLXYG643.mjs +0 -52
- package/dist/chunk-HLXYG643.mjs.map +0 -1
- package/dist/chunk-KEGAAGJW.mjs +0 -36
- package/dist/chunk-KEGAAGJW.mjs.map +0 -1
- package/dist/chunk-RKPP7ZOK.mjs.map +0 -1
- package/dist/chunk-UMUMFMFB.mjs +0 -68
- package/dist/chunk-UMUMFMFB.mjs.map +0 -1
- package/dist/chunk-VBX7BTNU.mjs +0 -614
- package/dist/chunk-VBX7BTNU.mjs.map +0 -1
- package/dist/chunk-XZ47F6TP.mjs.map +0 -1
- package/dist/index-Cno_GFuW.d.mts +0 -93
- package/dist/index-Cno_GFuW.d.ts +0 -93
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
asChild?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const LinkBox$1: {
|
|
8
|
-
({ className, asChild, ref, ...props }: LinkBoxProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const LinkBoxLink: {
|
|
16
|
-
({ className, asChild, ref, ...props }: LinkBoxLinkProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
interface LinkBoxRaisedProps {
|
|
21
|
-
className?: string;
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
}
|
|
24
|
-
declare const LinkBoxRaised: {
|
|
25
|
-
({ className, ...props }: LinkBoxRaisedProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
declare const LinkBox: typeof LinkBox$1 & {
|
|
1
|
+
import { LinkBox as Root } from './LinkBox';
|
|
2
|
+
import { LinkBoxLink } from './LinkBoxLink';
|
|
3
|
+
import { LinkBoxRaised } from './LinkBoxRaised';
|
|
4
|
+
export declare const LinkBox: typeof Root & {
|
|
30
5
|
Link: typeof LinkBoxLink;
|
|
31
6
|
Raised: typeof LinkBoxRaised;
|
|
32
7
|
};
|
|
33
|
-
|
|
34
|
-
export {
|
|
8
|
+
export { type LinkBoxProps } from './LinkBox';
|
|
9
|
+
export { type LinkBoxLinkProps } from './LinkBoxLink';
|
package/dist/link-box/index.d.ts
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
asChild?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const LinkBox$1: {
|
|
8
|
-
({ className, asChild, ref, ...props }: LinkBoxProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const LinkBoxLink: {
|
|
16
|
-
({ className, asChild, ref, ...props }: LinkBoxLinkProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
interface LinkBoxRaisedProps {
|
|
21
|
-
className?: string;
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
}
|
|
24
|
-
declare const LinkBoxRaised: {
|
|
25
|
-
({ className, ...props }: LinkBoxRaisedProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
declare const LinkBox: typeof LinkBox$1 & {
|
|
1
|
+
import { LinkBox as Root } from './LinkBox';
|
|
2
|
+
import { LinkBoxLink } from './LinkBoxLink';
|
|
3
|
+
import { LinkBoxRaised } from './LinkBoxRaised';
|
|
4
|
+
export declare const LinkBox: typeof Root & {
|
|
30
5
|
Link: typeof LinkBoxLink;
|
|
31
6
|
Raised: typeof LinkBoxRaised;
|
|
32
7
|
};
|
|
33
|
-
|
|
34
|
-
export {
|
|
8
|
+
export { type LinkBoxProps } from './LinkBox';
|
|
9
|
+
export { type LinkBoxLinkProps } from './LinkBoxLink';
|
package/dist/link-box/index.js
CHANGED
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/link-box/index.ts
|
|
21
|
-
var link_box_exports = {};
|
|
22
|
-
__export(link_box_exports, {
|
|
23
|
-
LinkBox: () => LinkBox2
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(link_box_exports);
|
|
26
|
-
|
|
27
|
-
// src/link-box/LinkBox.tsx
|
|
28
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
29
|
-
|
|
30
|
-
// src/slot/Slot.tsx
|
|
31
|
-
var import_radix_ui = require("radix-ui");
|
|
32
|
-
var import_react = require("react");
|
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
var Slottable = import_radix_ui.Slot.Slottable;
|
|
35
|
-
var Slot = ({ ref, ...props }) => {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radix_ui.Slot.Root, { ref, ...props });
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// src/link-box/LinkBox.tsx
|
|
40
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
41
|
-
var LinkBox = ({ className, asChild, ref, ...props }) => {
|
|
42
|
-
const Component = asChild ? Slot : "div";
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
44
|
-
Component,
|
|
45
|
-
{
|
|
46
|
-
ref,
|
|
47
|
-
"data-spark-component": "link-box",
|
|
48
|
-
className: (0, import_class_variance_authority.cx)("default:relative", className),
|
|
49
|
-
...props
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
LinkBox.displayName = "LinkBox";
|
|
54
|
-
|
|
55
|
-
// src/link-box/LinkBoxLink.tsx
|
|
56
|
-
var import_class_variance_authority2 = require("class-variance-authority");
|
|
57
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
58
|
-
var LinkBoxLink = ({ className, asChild, ref, ...props }) => {
|
|
59
|
-
const Component = asChild ? Slot : "a";
|
|
60
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
61
|
-
Component,
|
|
62
|
-
{
|
|
63
|
-
ref,
|
|
64
|
-
"data-spark-component": "link-box-link",
|
|
65
|
-
className: (0, import_class_variance_authority2.cx)(
|
|
66
|
-
"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']",
|
|
67
|
-
className
|
|
68
|
-
),
|
|
69
|
-
...props
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
LinkBoxLink.displayName = "LinkBox.Link";
|
|
74
|
-
|
|
75
|
-
// src/link-box/LinkBoxRaised.tsx
|
|
76
|
-
var import_class_variance_authority3 = require("class-variance-authority");
|
|
77
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
78
|
-
var LinkBoxRaised = ({ className, ...props }) => {
|
|
79
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Slot, { className: (0, import_class_variance_authority3.cx)("default:z-raised default:relative", className), ...props });
|
|
80
|
-
};
|
|
81
|
-
LinkBoxRaised.displayName = "LinkBox.Raised";
|
|
82
|
-
|
|
83
|
-
// src/link-box/index.ts
|
|
84
|
-
var LinkBox2 = Object.assign(LinkBox, { Link: LinkBoxLink, Raised: LinkBoxRaised });
|
|
85
|
-
LinkBox2.displayName = "LinkBox";
|
|
86
|
-
LinkBox2.Link.displayName = "LinkBox.Link";
|
|
87
|
-
LinkBox2.Raised.displayName = "LinkBox.Raised";
|
|
88
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
89
|
-
0 && (module.exports = {
|
|
90
|
-
LinkBox
|
|
91
|
-
});
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("class-variance-authority"),r=require("../Slot-DQ8z2zsy.js"),c=({className:e,asChild:o,ref:n,...a})=>{const t=o?r.Slot:"div";return s.jsx(t,{ref:n,"data-spark-component":"link-box",className:l.cx("default:relative",e),...a})};c.displayName="LinkBox";const k=({className:e,asChild:o,ref:n,...a})=>{const t=o?r.Slot:"a";return s.jsx(t,{ref:n,"data-spark-component":"link-box-link",className:l.cx("before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']",e),...a})};k.displayName="LinkBox.Link";const d=({className:e,...o})=>s.jsx(r.Slot,{className:l.cx("default:z-raised default:relative",e),...o});d.displayName="LinkBox.Raised";const i=Object.assign(c,{Link:k,Raised:d});i.displayName="LinkBox";i.Link.displayName="LinkBox.Link";i.Raised.displayName="LinkBox.Raised";exports.LinkBox=i;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/link-box/LinkBox.tsx","../../src/link-box/LinkBoxLink.tsx","../../src/link-box/LinkBoxRaised.tsx","../../src/link-box/index.ts"],"sourcesContent":["import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxProps extends ComponentPropsWithRef<'div'> {\n asChild?: boolean\n}\n\nexport const LinkBox = ({ className, asChild, ref, ...props }: LinkBoxProps) => {\n const Component = asChild ? Slot : 'div'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box\"\n className={cx('default:relative', className)}\n {...props}\n />\n )\n}\n\nLinkBox.displayName = 'LinkBox'\n","import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {\n asChild?: boolean\n}\n\nexport const LinkBoxLink = ({ className, asChild, ref, ...props }: LinkBoxLinkProps) => {\n const Component = asChild ? Slot : 'a'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box-link\"\n className={cx(\n \"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']\",\n className\n )}\n {...props}\n />\n )\n}\n\nLinkBoxLink.displayName = 'LinkBox.Link'\n","import { cx } from 'class-variance-authority'\nimport { ReactNode } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxRaisedProps {\n className?: string\n children: ReactNode\n}\n\nexport const LinkBoxRaised = ({ className, ...props }: LinkBoxRaisedProps) => {\n return <Slot className={cx('default:z-raised default:relative', className)} {...props} />\n}\n\nLinkBoxRaised.displayName = 'LinkBox.Raised'\n","import { LinkBox as Root } from './LinkBox'\nimport { LinkBoxLink } from './LinkBoxLink'\nimport { LinkBoxRaised } from './LinkBoxRaised'\n\nexport const LinkBox: typeof Root & {\n Link: typeof LinkBoxLink\n Raised: typeof LinkBoxRaised\n} = Object.assign(Root, { Link: LinkBoxLink, Raised: LinkBoxRaised })\n\nLinkBox.displayName = 'LinkBox'\nLinkBox.Link.displayName = 'LinkBox.Link'\nLinkBox.Raised.displayName = 'LinkBox.Raised'\n\nexport { type LinkBoxProps } from './LinkBox'\nexport { type LinkBoxLinkProps } from './LinkBoxLink'\n"],"names":["LinkBox","className","asChild","ref","props","Component","Slot","jsx","cx","LinkBoxLink","LinkBoxRaised","Root"],"mappings":"4LASaA,EAAU,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,IAAAC,EAAK,GAAGC,KAA0B,CAC9E,MAAMC,EAAYH,EAAUI,EAAAA,KAAO,MAEnC,OACEC,EAAAA,IAACF,EAAA,CACC,IAAAF,EACA,uBAAqB,WACrB,UAAWK,EAAAA,GAAG,mBAAoBP,CAAS,EAC1C,GAAGG,CAAA,CAAA,CAGV,EAEAJ,EAAQ,YAAc,UCbf,MAAMS,EAAc,CAAC,CAAE,UAAAR,EAAW,QAAAC,EAAS,IAAAC,EAAK,GAAGC,KAA8B,CACtF,MAAMC,EAAYH,EAAUI,EAAAA,KAAO,IAEnC,OACEC,EAAAA,IAACF,EAAA,CACC,IAAAF,EACA,uBAAqB,gBACrB,UAAWK,EAAAA,GACT,oHACAP,CAAA,EAED,GAAGG,CAAA,CAAA,CAGV,EAEAK,EAAY,YAAc,eCfnB,MAAMC,EAAgB,CAAC,CAAE,UAAAT,EAAW,GAAGG,KACrCG,EAAAA,IAACD,QAAK,UAAWE,EAAAA,GAAG,oCAAqCP,CAAS,EAAI,GAAGG,EAAO,EAGzFM,EAAc,YAAc,iBCVrB,MAAMV,EAGT,OAAO,OAAOW,EAAM,CAAE,KAAMF,EAAa,OAAQC,CAAA,CAAe,EAEpEV,EAAQ,YAAc,UACtBA,EAAQ,KAAK,YAAc,eAC3BA,EAAQ,OAAO,YAAc"}
|
package/dist/link-box/index.mjs
CHANGED
|
@@ -1,58 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']",
|
|
34
|
-
className
|
|
35
|
-
),
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
LinkBoxLink.displayName = "LinkBox.Link";
|
|
41
|
-
|
|
42
|
-
// src/link-box/LinkBoxRaised.tsx
|
|
43
|
-
import { cx as cx3 } from "class-variance-authority";
|
|
44
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
45
|
-
var LinkBoxRaised = ({ className, ...props }) => {
|
|
46
|
-
return /* @__PURE__ */ jsx3(Slot, { className: cx3("default:z-raised default:relative", className), ...props });
|
|
47
|
-
};
|
|
48
|
-
LinkBoxRaised.displayName = "LinkBox.Raised";
|
|
49
|
-
|
|
50
|
-
// src/link-box/index.ts
|
|
51
|
-
var LinkBox2 = Object.assign(LinkBox, { Link: LinkBoxLink, Raised: LinkBoxRaised });
|
|
52
|
-
LinkBox2.displayName = "LinkBox";
|
|
53
|
-
LinkBox2.Link.displayName = "LinkBox.Link";
|
|
54
|
-
LinkBox2.Raised.displayName = "LinkBox.Raised";
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cx as t } from "class-variance-authority";
|
|
3
|
+
import { a as s } from "../Slot-D2Bbf8Gw.mjs";
|
|
4
|
+
const l = ({ className: e, asChild: o, ref: a, ...n }) => /* @__PURE__ */ i(
|
|
5
|
+
o ? s : "div",
|
|
6
|
+
{
|
|
7
|
+
ref: a,
|
|
8
|
+
"data-spark-component": "link-box",
|
|
9
|
+
className: t("default:relative", e),
|
|
10
|
+
...n
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
l.displayName = "LinkBox";
|
|
14
|
+
const k = ({ className: e, asChild: o, ref: a, ...n }) => /* @__PURE__ */ i(
|
|
15
|
+
o ? s : "a",
|
|
16
|
+
{
|
|
17
|
+
ref: a,
|
|
18
|
+
"data-spark-component": "link-box-link",
|
|
19
|
+
className: t(
|
|
20
|
+
"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']",
|
|
21
|
+
e
|
|
22
|
+
),
|
|
23
|
+
...n
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
k.displayName = "LinkBox.Link";
|
|
27
|
+
const m = ({ className: e, ...o }) => /* @__PURE__ */ i(s, { className: t("default:z-raised default:relative", e), ...o });
|
|
28
|
+
m.displayName = "LinkBox.Raised";
|
|
29
|
+
const r = Object.assign(l, { Link: k, Raised: m });
|
|
30
|
+
r.displayName = "LinkBox";
|
|
31
|
+
r.Link.displayName = "LinkBox.Link";
|
|
32
|
+
r.Raised.displayName = "LinkBox.Raised";
|
|
55
33
|
export {
|
|
56
|
-
|
|
34
|
+
r as LinkBox
|
|
57
35
|
};
|
|
58
|
-
//# sourceMappingURL=index.mjs.map
|
|
36
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/link-box/LinkBox.tsx","../../src/link-box/LinkBoxLink.tsx","../../src/link-box/LinkBoxRaised.tsx","../../src/link-box/index.ts"],"sourcesContent":["import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxProps extends ComponentPropsWithRef<'div'> {\n asChild?: boolean\n}\n\nexport const LinkBox = ({ className, asChild, ref, ...props }: LinkBoxProps) => {\n const Component = asChild ? Slot : 'div'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box\"\n className={cx('default:relative', className)}\n {...props}\n />\n )\n}\n\nLinkBox.displayName = 'LinkBox'\n","import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {\n asChild?: boolean\n}\n\nexport const LinkBoxLink = ({ className, asChild, ref, ...props }: LinkBoxLinkProps) => {\n const Component = asChild ? Slot : 'a'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box-link\"\n className={cx(\n \"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']\",\n className\n )}\n {...props}\n />\n )\n}\n\nLinkBoxLink.displayName = 'LinkBox.Link'\n","import { cx } from 'class-variance-authority'\nimport { ReactNode } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxRaisedProps {\n className?: string\n children: ReactNode\n}\n\nexport const LinkBoxRaised = ({ className, ...props }: LinkBoxRaisedProps) => {\n return <Slot className={cx('default:z-raised default:relative', className)} {...props} />\n}\n\nLinkBoxRaised.displayName = 'LinkBox.Raised'\n","import { LinkBox as Root } from './LinkBox'\nimport { LinkBoxLink } from './LinkBoxLink'\nimport { LinkBoxRaised } from './LinkBoxRaised'\n\nexport const LinkBox: typeof Root & {\n Link: typeof LinkBoxLink\n Raised: typeof LinkBoxRaised\n} = Object.assign(Root, { Link: LinkBoxLink, Raised: LinkBoxRaised })\n\nLinkBox.displayName = 'LinkBox'\nLinkBox.Link.displayName = 'LinkBox.Link'\nLinkBox.Raised.displayName = 'LinkBox.Raised'\n\nexport { type LinkBoxProps } from './LinkBox'\nexport { type LinkBoxLinkProps } from './LinkBoxLink'\n"],"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/link-box/LinkBox.tsx","../../src/link-box/LinkBoxLink.tsx","../../src/link-box/LinkBoxRaised.tsx","../../src/link-box/index.ts"],"sourcesContent":["import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxProps extends ComponentPropsWithRef<'div'> {\n asChild?: boolean\n}\n\nexport const LinkBox = ({ className, asChild, ref, ...props }: LinkBoxProps) => {\n const Component = asChild ? Slot : 'div'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box\"\n className={cx('default:relative', className)}\n {...props}\n />\n )\n}\n\nLinkBox.displayName = 'LinkBox'\n","import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithRef } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxLinkProps extends ComponentPropsWithRef<'a'> {\n asChild?: boolean\n}\n\nexport const LinkBoxLink = ({ className, asChild, ref, ...props }: LinkBoxLinkProps) => {\n const Component = asChild ? Slot : 'a'\n\n return (\n <Component\n ref={ref}\n data-spark-component=\"link-box-link\"\n className={cx(\n \"before:z-base static before:absolute before:top-0 before:left-0 before:block before:size-full before:content-['']\",\n className\n )}\n {...props}\n />\n )\n}\n\nLinkBoxLink.displayName = 'LinkBox.Link'\n","import { cx } from 'class-variance-authority'\nimport { ReactNode } from 'react'\n\nimport { Slot } from '../slot'\n\nexport interface LinkBoxRaisedProps {\n className?: string\n children: ReactNode\n}\n\nexport const LinkBoxRaised = ({ className, ...props }: LinkBoxRaisedProps) => {\n return <Slot className={cx('default:z-raised default:relative', className)} {...props} />\n}\n\nLinkBoxRaised.displayName = 'LinkBox.Raised'\n","import { LinkBox as Root } from './LinkBox'\nimport { LinkBoxLink } from './LinkBoxLink'\nimport { LinkBoxRaised } from './LinkBoxRaised'\n\nexport const LinkBox: typeof Root & {\n Link: typeof LinkBoxLink\n Raised: typeof LinkBoxRaised\n} = Object.assign(Root, { Link: LinkBoxLink, Raised: LinkBoxRaised })\n\nLinkBox.displayName = 'LinkBox'\nLinkBox.Link.displayName = 'LinkBox.Link'\nLinkBox.Raised.displayName = 'LinkBox.Raised'\n\nexport { type LinkBoxProps } from './LinkBox'\nexport { type LinkBoxLinkProps } from './LinkBoxLink'\n"],"names":["LinkBox","className","asChild","ref","props","jsx","Slot","cx","LinkBoxLink","LinkBoxRaised","Root"],"mappings":";;;AASO,MAAMA,IAAU,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,KAAAC,GAAK,GAAGC,QAIlD,gBAAAC;AAAA,EAHgBH,IAAUI,IAAO;AAAA,EAGhC;AAAA,IACC,KAAAH;AAAA,IACA,wBAAqB;AAAA,IACrB,WAAWI,EAAG,oBAAoBN,CAAS;AAAA,IAC1C,GAAGG;AAAA,EAAA;AAAA;AAKVJ,EAAQ,cAAc;ACbf,MAAMQ,IAAc,CAAC,EAAE,WAAAP,GAAW,SAAAC,GAAS,KAAAC,GAAK,GAAGC,QAItD,gBAAAC;AAAA,EAHgBH,IAAUI,IAAO;AAAA,EAGhC;AAAA,IACC,KAAAH;AAAA,IACA,wBAAqB;AAAA,IACrB,WAAWI;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AAAA;AAKVI,EAAY,cAAc;ACfnB,MAAMC,IAAgB,CAAC,EAAE,WAAAR,GAAW,GAAGG,QACrC,gBAAAC,EAACC,KAAK,WAAWC,EAAG,qCAAqCN,CAAS,GAAI,GAAGG,GAAO;AAGzFK,EAAc,cAAc;ACVrB,MAAMT,IAGT,OAAO,OAAOU,GAAM,EAAE,MAAMF,GAAa,QAAQC,EAAA,CAAe;AAEpET,EAAQ,cAAc;AACtBA,EAAQ,KAAK,cAAc;AAC3BA,EAAQ,OAAO,cAAc;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaginationProviderProps } from './PaginationContext';
|
|
2
|
+
export type PaginationProps = PaginationProviderProps & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const Pagination: {
|
|
6
|
+
({ children, visiblePageItems, type, noEllipsis, className, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PropTypes } from '@zag-js/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as pagination from '@zag-js/pagination';
|
|
4
|
+
export interface PaginationContextState<T extends PropTypes = PropTypes> {
|
|
5
|
+
type: pagination.Props['type'];
|
|
6
|
+
pagination: pagination.Api<T> & {
|
|
7
|
+
getFirstPageTriggerProps: () => ReturnType<pagination.Api<T>['getPrevTriggerProps']> & {
|
|
8
|
+
'data-part': string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
getLastPageTriggerProps: () => ReturnType<pagination.Api<T>['getNextTriggerProps']> & {
|
|
12
|
+
'data-part': string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PaginationProviderProps {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of data items available across all pages.
|
|
21
|
+
*/
|
|
22
|
+
count: number;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum amount of items displayed on a single page.
|
|
25
|
+
*/
|
|
26
|
+
pageSize: number;
|
|
27
|
+
/**
|
|
28
|
+
* Number of visible pages (or ellipsis) between previous and next page triggers.
|
|
29
|
+
*/
|
|
30
|
+
visiblePageItems?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The current page (active page)
|
|
33
|
+
*/
|
|
34
|
+
page?: pagination.Props['page'];
|
|
35
|
+
/**
|
|
36
|
+
* If your pagination contains buttons instead of links, set `type` to `button`, extra attributes will be applied on page items for a11y.
|
|
37
|
+
*/
|
|
38
|
+
type?: pagination.Props['type'];
|
|
39
|
+
onPageChange?: pagination.Props['onPageChange'];
|
|
40
|
+
noEllipsis?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const PaginationProvider: ({ children, count, visiblePageItems, pageSize, page, onPageChange, noEllipsis, type, }: PaginationProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const usePagination: () => PaginationContextState<PropTypes>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
interface EllipsisProps extends ComponentPropsWithRef<'span'> {
|
|
3
|
+
index: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Ellipsis: {
|
|
6
|
+
({ children, index, className, ref, ...rest }: EllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
6
|
+
href?: undefined;
|
|
7
|
+
}
|
|
8
|
+
export type FirstPageTriggerProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
ref?: Ref<HTMLButtonElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const FirstPageTrigger: {
|
|
13
|
+
({ children, className, href, ref, ...props }: FirstPageTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
6
|
+
href?: undefined;
|
|
7
|
+
}
|
|
8
|
+
export type ItemProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
value: number;
|
|
11
|
+
ref?: Ref<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
export declare const Item: {
|
|
14
|
+
({ children, value, className, href, ref, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
6
|
+
href?: undefined;
|
|
7
|
+
}
|
|
8
|
+
export type LastPageTriggerProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
ref?: Ref<HTMLButtonElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const LastPageTrigger: {
|
|
13
|
+
({ children, className, href, ref, ...props }: LastPageTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
6
|
+
href?: undefined;
|
|
7
|
+
}
|
|
8
|
+
export type NextTriggerProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
ref?: Ref<HTMLButtonElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const NextTrigger: {
|
|
13
|
+
({ children, className, href, ref, ...props }: NextTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import * as pagination from '@zag-js/pagination';
|
|
3
|
+
type PageItem = Extract<pagination.Api['pages'][number], {
|
|
4
|
+
type: 'page';
|
|
5
|
+
}>;
|
|
6
|
+
type TweakedPaginationApi<T extends 'noEllipsis' | ''> = Omit<pagination.Api, 'pages'> & {
|
|
7
|
+
pages: T extends 'noEllipsis' ? PageItem[] : pagination.Api['pages'];
|
|
8
|
+
};
|
|
9
|
+
interface PagesProps<T extends 'noEllipsis' | ''> {
|
|
10
|
+
children: (pagination: TweakedPaginationApi<T>) => ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Pages: {
|
|
13
|
+
<T extends "noEllipsis" | "" = "">({ children }: PagesProps<T>): ReactNode;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
6
|
+
href?: undefined;
|
|
7
|
+
}
|
|
8
|
+
export type PrevTriggerProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
ref?: Ref<HTMLButtonElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const PrevTrigger: {
|
|
13
|
+
({ children, className, href, ref, ...props }: PrevTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,136 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Maximum amount of items displayed on a single page.
|
|
13
|
-
*/
|
|
14
|
-
pageSize: number;
|
|
15
|
-
/**
|
|
16
|
-
* Number of visible pages (or ellipsis) between previous and next page triggers.
|
|
17
|
-
*/
|
|
18
|
-
visiblePageItems?: number;
|
|
19
|
-
/**
|
|
20
|
-
* The current page (active page)
|
|
21
|
-
*/
|
|
22
|
-
page?: pagination.Props['page'];
|
|
23
|
-
/**
|
|
24
|
-
* If your pagination contains buttons instead of links, set `type` to `button`, extra attributes will be applied on page items for a11y.
|
|
25
|
-
*/
|
|
26
|
-
type?: pagination.Props['type'];
|
|
27
|
-
onPageChange?: pagination.Props['onPageChange'];
|
|
28
|
-
noEllipsis?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type PaginationProps = PaginationProviderProps & {
|
|
32
|
-
className?: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
interface EllipsisProps extends ComponentPropsWithRef<'span'> {
|
|
36
|
-
index: number;
|
|
37
|
-
}
|
|
38
|
-
declare const Ellipsis: {
|
|
39
|
-
({ children, index, className, ref, ...rest }: EllipsisProps): react_jsx_runtime.JSX.Element;
|
|
40
|
-
displayName: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
interface AnchorProps$4 extends ComponentPropsWithoutRef<'a'> {
|
|
44
|
-
href: string;
|
|
45
|
-
}
|
|
46
|
-
interface ButtonProps$4 extends ComponentPropsWithoutRef<'button'> {
|
|
47
|
-
href?: undefined;
|
|
48
|
-
}
|
|
49
|
-
type FirstPageTriggerProps = Omit<AnchorProps$4 | ButtonProps$4, 'aria-label'> & {
|
|
50
|
-
'aria-label': string;
|
|
51
|
-
ref?: Ref<HTMLButtonElement>;
|
|
52
|
-
};
|
|
53
|
-
declare const FirstPageTrigger: {
|
|
54
|
-
({ children, className, href, ref, ...props }: FirstPageTriggerProps): react_jsx_runtime.JSX.Element;
|
|
55
|
-
displayName: string;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
interface AnchorProps$3 extends ComponentPropsWithoutRef<'a'> {
|
|
59
|
-
href: string;
|
|
60
|
-
}
|
|
61
|
-
interface ButtonProps$3 extends ComponentPropsWithoutRef<'button'> {
|
|
62
|
-
href?: undefined;
|
|
63
|
-
}
|
|
64
|
-
type ItemProps = Omit<AnchorProps$3 | ButtonProps$3, 'aria-label'> & {
|
|
65
|
-
'aria-label': string;
|
|
66
|
-
value: number;
|
|
67
|
-
ref?: Ref<HTMLButtonElement>;
|
|
68
|
-
};
|
|
69
|
-
declare const Item: {
|
|
70
|
-
({ children, value, className, href, ref, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
interface AnchorProps$2 extends ComponentPropsWithoutRef<'a'> {
|
|
75
|
-
href: string;
|
|
76
|
-
}
|
|
77
|
-
interface ButtonProps$2 extends ComponentPropsWithoutRef<'button'> {
|
|
78
|
-
href?: undefined;
|
|
79
|
-
}
|
|
80
|
-
type LastPageTriggerProps = Omit<AnchorProps$2 | ButtonProps$2, 'aria-label'> & {
|
|
81
|
-
'aria-label': string;
|
|
82
|
-
ref?: Ref<HTMLButtonElement>;
|
|
83
|
-
};
|
|
84
|
-
declare const LastPageTrigger: {
|
|
85
|
-
({ children, className, href, ref, ...props }: LastPageTriggerProps): react_jsx_runtime.JSX.Element;
|
|
86
|
-
displayName: string;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
interface AnchorProps$1 extends ComponentPropsWithoutRef<'a'> {
|
|
90
|
-
href: string;
|
|
91
|
-
}
|
|
92
|
-
interface ButtonProps$1 extends ComponentPropsWithoutRef<'button'> {
|
|
93
|
-
href?: undefined;
|
|
94
|
-
}
|
|
95
|
-
type NextTriggerProps = Omit<AnchorProps$1 | ButtonProps$1, 'aria-label'> & {
|
|
96
|
-
'aria-label': string;
|
|
97
|
-
ref?: Ref<HTMLButtonElement>;
|
|
98
|
-
};
|
|
99
|
-
declare const NextTrigger: {
|
|
100
|
-
({ children, className, href, ref, ...props }: NextTriggerProps): react_jsx_runtime.JSX.Element;
|
|
101
|
-
displayName: string;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
type PageItem = Extract<pagination.Api['pages'][number], {
|
|
105
|
-
type: 'page';
|
|
106
|
-
}>;
|
|
107
|
-
type TweakedPaginationApi<T extends 'noEllipsis' | ''> = Omit<pagination.Api, 'pages'> & {
|
|
108
|
-
pages: T extends 'noEllipsis' ? PageItem[] : pagination.Api['pages'];
|
|
109
|
-
};
|
|
110
|
-
interface PagesProps<T extends 'noEllipsis' | ''> {
|
|
111
|
-
children: (pagination: TweakedPaginationApi<T>) => ReactNode;
|
|
112
|
-
}
|
|
113
|
-
declare const Pages: {
|
|
114
|
-
<T extends "noEllipsis" | "" = "">({ children }: PagesProps<T>): ReactNode;
|
|
115
|
-
displayName: string;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
interface AnchorProps extends ComponentPropsWithoutRef<'a'> {
|
|
119
|
-
href: string;
|
|
120
|
-
}
|
|
121
|
-
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
122
|
-
href?: undefined;
|
|
123
|
-
}
|
|
124
|
-
type PrevTriggerProps = Omit<AnchorProps | ButtonProps, 'aria-label'> & {
|
|
125
|
-
'aria-label': string;
|
|
126
|
-
ref?: Ref<HTMLButtonElement>;
|
|
127
|
-
};
|
|
128
|
-
declare const PrevTrigger: {
|
|
129
|
-
({ children, className, href, ref, ...props }: PrevTriggerProps): react_jsx_runtime.JSX.Element;
|
|
130
|
-
displayName: string;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
declare const Pagination: FC<PaginationProps> & {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PaginationProps } from './Pagination';
|
|
3
|
+
import { Ellipsis } from './PaginationEllipsis';
|
|
4
|
+
import { FirstPageTrigger } from './PaginationFirstPageTrigger';
|
|
5
|
+
import { Item } from './PaginationItem';
|
|
6
|
+
import { LastPageTrigger } from './PaginationLastPageTrigger';
|
|
7
|
+
import { NextTrigger } from './PaginationNextTrigger';
|
|
8
|
+
import { Pages } from './PaginationPages';
|
|
9
|
+
import { PrevTrigger } from './PaginationPrevTrigger';
|
|
10
|
+
export declare const Pagination: FC<PaginationProps> & {
|
|
134
11
|
PrevTrigger: typeof PrevTrigger;
|
|
135
12
|
NextTrigger: typeof NextTrigger;
|
|
136
13
|
Pages: typeof Pages;
|
|
@@ -139,5 +16,3 @@ declare const Pagination: FC<PaginationProps> & {
|
|
|
139
16
|
FirstPageTrigger: typeof FirstPageTrigger;
|
|
140
17
|
LastPageTrigger: typeof LastPageTrigger;
|
|
141
18
|
};
|
|
142
|
-
|
|
143
|
-
export { Pagination };
|