@spark-ui/components 13.0.7 → 13.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-C3xHNaGl.js +2 -0
- package/dist/Button-C3xHNaGl.js.map +1 -0
- package/dist/{chunk-2YM6GKWW.mjs → Button-D32Avk2j.mjs} +130 -173
- package/dist/Button-D32Avk2j.mjs.map +1 -0
- package/dist/DialogContent.styles-BrhKaHc_.js +2 -0
- package/dist/DialogContent.styles-BrhKaHc_.js.map +1 -0
- package/dist/{chunk-XZ47F6TP.mjs → DialogContent.styles-WGWJS9dj.mjs} +6 -8
- package/dist/DialogContent.styles-WGWJS9dj.mjs.map +1 -0
- package/dist/Icon-Bf0XrmiR.js +2 -0
- package/dist/Icon-Bf0XrmiR.js.map +1 -0
- package/dist/Icon-D1RueiPY.mjs +58 -0
- package/dist/Icon-D1RueiPY.mjs.map +1 -0
- package/dist/IconButton-BY3gYXtU.mjs +43 -0
- package/dist/IconButton-BY3gYXtU.mjs.map +1 -0
- package/dist/IconButton-Bf-EDzpI.js +2 -0
- package/dist/IconButton-Bf-EDzpI.js.map +1 -0
- package/dist/Slot-C98rL4yy.mjs +14 -0
- package/dist/Slot-C98rL4yy.mjs.map +1 -0
- package/dist/Slot-ghrohQLA.js +2 -0
- package/dist/Slot-ghrohQLA.js.map +1 -0
- package/dist/{chunk-GAK4SC2F.mjs → Spinner-CYL5kyzM.mjs} +29 -40
- package/dist/Spinner-CYL5kyzM.mjs.map +1 -0
- package/dist/Spinner-DK8VEsaR.js +2 -0
- package/dist/Spinner-DK8VEsaR.js.map +1 -0
- package/dist/{chunk-RKPP7ZOK.mjs → TextLink-3MEVs3No.mjs} +27 -36
- package/dist/TextLink-3MEVs3No.mjs.map +1 -0
- package/dist/TextLink-DD0VO37q.js +2 -0
- package/dist/TextLink-DD0VO37q.js.map +1 -0
- package/dist/VisuallyHidden-AoRh4WRK.js +2 -0
- package/dist/VisuallyHidden-AoRh4WRK.js.map +1 -0
- package/dist/VisuallyHidden-ByNP7ZUI.mjs +28 -0
- package/dist/VisuallyHidden-ByNP7ZUI.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.ts +10 -68
- package/dist/accordion/index.js +2 -325
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +632 -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.ts +26 -147
- package/dist/alert-dialog/index.js +35 -405
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs +2513 -258
- 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.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.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.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.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.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.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.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/{index.d.mts → types.d.ts} +13 -112
- 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.ts +2 -120
- package/dist/checkbox/index.js +2 -511
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +371 -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.ts +10 -92
- package/dist/chip/index.js +2 -908
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +390 -322
- 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.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.ts +4 -40
- package/dist/collapsible/index.js +2 -109
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs +214 -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.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.ts +14 -0
- package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
- package/dist/composite-Br3kM5N9.mjs +40 -0
- package/dist/composite-Br3kM5N9.mjs.map +1 -0
- package/dist/composite-fJD9R7R0.js +2 -0
- package/dist/composite-fJD9R7R0.js.map +1 -0
- package/dist/detectBrowser-Bc7rk5fI.mjs +44 -0
- package/dist/detectBrowser-Bc7rk5fI.mjs.map +1 -0
- package/dist/detectBrowser-DTbs_30X.js +2 -0
- package/dist/detectBrowser-DTbs_30X.js.map +1 -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.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.ts +4 -59
- package/dist/divider/index.js +2 -224
- package/dist/divider/index.js.map +1 -1
- package/dist/divider/index.mjs +97 -100
- package/dist/divider/index.mjs.map +1 -1
- package/dist/divider/variants/intents.d.ts +17 -0
- package/dist/downshift.esm-Ncwetv0s.mjs +3038 -0
- package/dist/downshift.esm-Ncwetv0s.mjs.map +1 -0
- package/dist/downshift.esm-PfCOUbxq.js +37 -0
- package/dist/downshift.esm-PfCOUbxq.js.map +1 -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.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.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.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/floating-ui.utils.dom-CCN4I08l.js +2 -0
- package/dist/floating-ui.utils.dom-CCN4I08l.js.map +1 -0
- package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +136 -0
- package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +1 -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.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.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.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/index-0KYGKeVg.js +2 -0
- package/dist/index-0KYGKeVg.js.map +1 -0
- package/dist/index-1WIgmEZh.js +2 -0
- package/dist/index-1WIgmEZh.js.map +1 -0
- package/dist/index-BRi38DTc.mjs +21 -0
- package/dist/index-BRi38DTc.mjs.map +1 -0
- package/dist/index-BZAtNKwE.mjs +71 -0
- package/dist/index-BZAtNKwE.mjs.map +1 -0
- package/dist/index-BZPx6jYI.mjs +9 -0
- package/dist/index-BZPx6jYI.mjs.map +1 -0
- package/dist/index-BlkdpEIe.mjs +55 -0
- package/dist/index-BlkdpEIe.mjs.map +1 -0
- package/dist/index-BmAFn37q.mjs +49 -0
- package/dist/index-BmAFn37q.mjs.map +1 -0
- package/dist/index-C-J_tHdS.js +6 -0
- package/dist/index-C-J_tHdS.js.map +1 -0
- package/dist/index-C1qb0595.mjs +28 -0
- package/dist/index-C1qb0595.mjs.map +1 -0
- package/dist/index-C34GgsKQ.mjs +54 -0
- package/dist/index-C34GgsKQ.mjs.map +1 -0
- package/dist/index-CCKe-Mpx.mjs +7 -0
- package/dist/index-CCKe-Mpx.mjs.map +1 -0
- package/dist/index-CDBBjNXc.js +2 -0
- package/dist/index-CDBBjNXc.js.map +1 -0
- package/dist/index-CYjGhVvU.mjs +243 -0
- package/dist/index-CYjGhVvU.mjs.map +1 -0
- package/dist/index-ChLwd62c.js +2 -0
- package/dist/index-ChLwd62c.js.map +1 -0
- package/dist/index-Cjj_rUPu.js +2 -0
- package/dist/index-Cjj_rUPu.js.map +1 -0
- package/dist/index-CyMbLkj0.js +2 -0
- package/dist/index-CyMbLkj0.js.map +1 -0
- package/dist/index-DFZozV_h.mjs +69 -0
- package/dist/index-DFZozV_h.mjs.map +1 -0
- package/dist/index-DKuHkHFX.js +2 -0
- package/dist/index-DKuHkHFX.js.map +1 -0
- package/dist/index-DLHLIYPI.mjs +16 -0
- package/dist/index-DLHLIYPI.mjs.map +1 -0
- package/dist/index-DO-atGp-.js +2 -0
- package/dist/index-DO-atGp-.js.map +1 -0
- package/dist/index-DWlg8lkk.mjs +179 -0
- package/dist/index-DWlg8lkk.mjs.map +1 -0
- package/dist/index-DYxWvftI.js +2 -0
- package/dist/index-DYxWvftI.js.map +1 -0
- package/dist/index-D_lWkK39.mjs +803 -0
- package/dist/index-D_lWkK39.mjs.map +1 -0
- package/dist/index-DdkVj7D0.js +18 -0
- package/dist/index-DdkVj7D0.js.map +1 -0
- package/dist/index-De-6atSi.js +2 -0
- package/dist/index-De-6atSi.js.map +1 -0
- package/dist/index-DhGWNzsz.mjs +83 -0
- package/dist/index-DhGWNzsz.mjs.map +1 -0
- package/dist/index-Dkj4QRX8.js +2 -0
- package/dist/index-Dkj4QRX8.js.map +1 -0
- package/dist/index-DlIFg0Eu.mjs +60 -0
- package/dist/index-DlIFg0Eu.mjs.map +1 -0
- package/dist/index-DnaHaH_0.js +2 -0
- package/dist/index-DnaHaH_0.js.map +1 -0
- package/dist/index-MHF2-CYX.js +2 -0
- package/dist/index-MHF2-CYX.js.map +1 -0
- package/dist/index-MQ0c3ZX_.js +2 -0
- package/dist/index-MQ0c3ZX_.js.map +1 -0
- package/dist/index-MSR-vgWR.mjs +37 -0
- package/dist/index-MSR-vgWR.mjs.map +1 -0
- package/dist/index-VL0YEmOW.mjs +125 -0
- package/dist/index-VL0YEmOW.mjs.map +1 -0
- package/dist/index-tXqxYME3.js +42 -0
- package/dist/index-tXqxYME3.js.map +1 -0
- package/dist/inertValue-Bif5Sqs6.mjs +522 -0
- package/dist/inertValue-Bif5Sqs6.mjs.map +1 -0
- package/dist/inertValue-ShwihJSN.js +5 -0
- package/dist/inertValue-ShwihJSN.js.map +1 -0
- 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.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.ts +14 -0
- package/dist/input-otp/index.js +2 -0
- package/dist/input-otp/index.js.map +1 -0
- package/dist/input-otp/index.mjs +390 -0
- package/dist/input-otp/index.mjs.map +1 -0
- package/dist/input-otp/useInputOTP.d.ts +45 -0
- package/dist/kbd/Kbd.d.ts +5 -0
- 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.ts +5 -9
- package/dist/label/index.js +2 -78
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +3 -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.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.ts +10 -135
- package/dist/pagination/index.js +2 -1353
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +893 -268
- 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.ts +17 -6
- package/dist/popover/index.js +2 -1339
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +1868 -11
- package/dist/popover/index.mjs.map +1 -1
- package/dist/portal/{index.d.mts → Portal.d.ts} +2 -5
- 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.ts +9 -48
- package/dist/progress/index.js +6 -239
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +241 -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.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.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 +332 -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.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.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 +358 -325
- package/dist/scrolling-list/index.mjs.map +1 -1
- package/dist/scrolling-list/useFocusWithinScroll.d.ts +3 -0
- package/dist/segmented-gauge/{index.d.mts → SegmentedGauge.d.ts} +4 -43
- 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.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.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.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 +55 -0
- package/dist/slider/Slider.styles.d.ts +1 -0
- package/dist/slider/SliderContext.d.ts +4 -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.ts +8 -97
- package/dist/slider/index.js +2 -220
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs +490 -107
- package/dist/slider/index.mjs.map +1 -1
- package/dist/slot/Slot.d.ts +12 -0
- 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.ts +13 -158
- package/dist/snackbar/index.js +2 -1756
- package/dist/snackbar/index.js.map +1 -1
- package/dist/snackbar/index.mjs +1153 -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.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.ts +9 -81
- package/dist/stepper/index.js +8 -1847
- package/dist/stepper/index.js.map +1 -1
- package/dist/stepper/index.mjs +2325 -197
- 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/{index.d.mts → SwitchInput.d.ts} +4 -17
- 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.ts +1 -64
- package/dist/switch/index.js +2 -327
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +213 -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.ts +13 -137
- package/dist/tabs/index.js +2 -1830
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +374 -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.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.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.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.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.ts +10 -53
- package/dist/toast/index.js +2 -1454
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +1016 -208
- 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/useCollapsiblePanel-D1dCo0lf.js +4 -0
- package/dist/useCollapsiblePanel-D1dCo0lf.js.map +1 -0
- package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +287 -0
- package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +1 -0
- package/dist/useFocusWithin-CFNEka2I.js +2 -0
- package/dist/useFocusWithin-CFNEka2I.js.map +1 -0
- package/dist/useFocusWithin-CoL4390f.mjs +796 -0
- package/dist/useFocusWithin-CoL4390f.mjs.map +1 -0
- package/dist/useOpenChangeComplete-Dk-u_f2y.js +2 -0
- package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +1 -0
- package/dist/useOpenChangeComplete-RUbg6RBw.mjs +582 -0
- package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +1 -0
- package/dist/useTransitionStatus-CktVVKxz.mjs +46 -0
- package/dist/useTransitionStatus-CktVVKxz.mjs.map +1 -0
- package/dist/useTransitionStatus-CqbEyvIj.js +2 -0
- package/dist/useTransitionStatus-CqbEyvIj.js.map +1 -0
- package/dist/visually-hidden/VisuallyHidden.d.ts +12 -0
- 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 -7
- 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/accordion/index.d.mts +0 -73
- package/dist/alert-dialog/index.d.mts +0 -159
- package/dist/avatar/index.d.mts +0 -66
- package/dist/badge/index.d.mts +0 -47
- package/dist/breadcrumb/index.d.mts +0 -64
- package/dist/button/index.d.mts +0 -41
- package/dist/card/index.d.mts +0 -61
- package/dist/checkbox/index.d.mts +0 -120
- package/dist/chip/index.d.mts +0 -97
- 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/collapsible/index.d.mts +0 -43
- package/dist/combobox/index.d.mts +0 -287
- package/dist/dialog/index.d.mts +0 -166
- package/dist/divider/index.d.mts +0 -61
- package/dist/docgen.json +0 -47767
- package/dist/drawer/index.d.mts +0 -152
- package/dist/dropdown/index.d.mts +0 -233
- package/dist/file-upload/index.d.mts +0 -270
- package/dist/form-field/index.d.mts +0 -186
- package/dist/icon/index.d.mts +0 -28
- package/dist/icon-button/index.d.mts +0 -16
- package/dist/index-Cno_GFuW.d.mts +0 -93
- package/dist/index-Cno_GFuW.d.ts +0 -93
- package/dist/input/index.d.mts +0 -78
- package/dist/kbd/index.d.mts +0 -9
- package/dist/label/index.d.mts +0 -11
- package/dist/link-box/index.d.mts +0 -34
- package/dist/pagination/index.d.mts +0 -143
- package/dist/popover/index.d.mts +0 -6
- package/dist/progress/index.d.mts +0 -52
- package/dist/progress-tracker/index.d.mts +0 -80
- package/dist/radio-group/index.d.mts +0 -100
- package/dist/rating/index.d.mts +0 -78
- package/dist/scrolling-list/index.d.mts +0 -118
- package/dist/select/index.d.mts +0 -167
- package/dist/skeleton/index.d.mts +0 -67
- package/dist/slider/index.d.mts +0 -97
- package/dist/slot/index.d.mts +0 -16
- package/dist/snackbar/index.d.mts +0 -158
- package/dist/spinner/index.d.mts +0 -21
- package/dist/stepper/index.d.mts +0 -81
- package/dist/tabs/index.d.mts +0 -137
- package/dist/tag/index.d.mts +0 -29
- package/dist/text-link/index.d.mts +0 -20
- package/dist/textarea/index.d.mts +0 -57
- package/dist/toast/index.d.mts +0 -63
- package/dist/visually-hidden/index.d.mts +0 -16
package/dist/popover/index.js
CHANGED
|
@@ -1,1339 +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/popover/index.ts
|
|
21
|
-
var popover_exports = {};
|
|
22
|
-
__export(popover_exports, {
|
|
23
|
-
Popover: () => Popover2
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(popover_exports);
|
|
26
|
-
|
|
27
|
-
// src/popover/Popover.tsx
|
|
28
|
-
var import_radix_ui = require("radix-ui");
|
|
29
|
-
|
|
30
|
-
// src/popover/PopoverContext.tsx
|
|
31
|
-
var import_react = require("react");
|
|
32
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
-
var PopoverContext = (0, import_react.createContext)(null);
|
|
34
|
-
var ID_PREFIX = ":popover";
|
|
35
|
-
var PopoverProvider = ({
|
|
36
|
-
children,
|
|
37
|
-
intent
|
|
38
|
-
}) => {
|
|
39
|
-
const [headerId, setHeaderId] = (0, import_react.useState)(null);
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
PopoverContext.Provider,
|
|
42
|
-
{
|
|
43
|
-
value: {
|
|
44
|
-
headerId,
|
|
45
|
-
setHeaderId,
|
|
46
|
-
intent
|
|
47
|
-
},
|
|
48
|
-
children
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
var usePopover = () => {
|
|
53
|
-
const context = (0, import_react.useContext)(PopoverContext);
|
|
54
|
-
if (!context) {
|
|
55
|
-
throw Error("usePopover must be used within a Popover provider");
|
|
56
|
-
}
|
|
57
|
-
return context;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// src/popover/Popover.tsx
|
|
61
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
62
|
-
var Popover = ({ children, intent = "surface", modal = false, ...rest }) => {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PopoverProvider, { intent, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_radix_ui.Popover.Root, { "data-spark-component": "popover", modal, ...rest, children }) });
|
|
64
|
-
};
|
|
65
|
-
Popover.displayName = "Popover";
|
|
66
|
-
|
|
67
|
-
// src/popover/PopoverAnchor.tsx
|
|
68
|
-
var import_radix_ui2 = require("radix-ui");
|
|
69
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
70
|
-
var Anchor = ({ asChild = false, children, ref, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_radix_ui2.Popover.Anchor, { "data-spark-component": "popover-anchor", ref, asChild, ...rest, children });
|
|
71
|
-
Anchor.displayName = "Popover.Anchor";
|
|
72
|
-
|
|
73
|
-
// src/popover/PopoverArrow.tsx
|
|
74
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
75
|
-
var import_radix_ui3 = require("radix-ui");
|
|
76
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
77
|
-
var Arrow = ({
|
|
78
|
-
asChild = false,
|
|
79
|
-
width = 16,
|
|
80
|
-
height = 8,
|
|
81
|
-
className,
|
|
82
|
-
ref,
|
|
83
|
-
...rest
|
|
84
|
-
}) => {
|
|
85
|
-
const { intent } = usePopover();
|
|
86
|
-
const styles2 = (0, import_class_variance_authority.cva)("visible", {
|
|
87
|
-
variants: {
|
|
88
|
-
intent: {
|
|
89
|
-
surface: "fill-surface",
|
|
90
|
-
main: "fill-main-container",
|
|
91
|
-
support: "fill-support-container",
|
|
92
|
-
accent: "fill-accent-container",
|
|
93
|
-
basic: "fill-basic-container",
|
|
94
|
-
success: "fill-success-container",
|
|
95
|
-
alert: "fill-alert-container",
|
|
96
|
-
danger: "fill-error-container",
|
|
97
|
-
info: "fill-info-container",
|
|
98
|
-
neutral: "fill-neutral-container"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
defaultVariants: {
|
|
102
|
-
intent: "surface"
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
106
|
-
import_radix_ui3.Popover.Arrow,
|
|
107
|
-
{
|
|
108
|
-
"data-spark-component": "popover-arrow",
|
|
109
|
-
ref,
|
|
110
|
-
className: styles2({ intent, className }),
|
|
111
|
-
asChild,
|
|
112
|
-
width,
|
|
113
|
-
height,
|
|
114
|
-
...rest
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
Arrow.displayName = "Popover.Arrow";
|
|
119
|
-
|
|
120
|
-
// src/popover/PopoverCloseButton.tsx
|
|
121
|
-
var import_Close = require("@spark-ui/icons/Close");
|
|
122
|
-
var import_class_variance_authority7 = require("class-variance-authority");
|
|
123
|
-
var import_radix_ui5 = require("radix-ui");
|
|
124
|
-
|
|
125
|
-
// src/icon/Icon.tsx
|
|
126
|
-
var import_react3 = require("react");
|
|
127
|
-
|
|
128
|
-
// src/slot/Slot.tsx
|
|
129
|
-
var import_radix_ui4 = require("radix-ui");
|
|
130
|
-
var import_react2 = require("react");
|
|
131
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
132
|
-
var Slottable = import_radix_ui4.Slot.Slottable;
|
|
133
|
-
var Slot = ({ ref, ...props }) => {
|
|
134
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_radix_ui4.Slot.Root, { ref, ...props });
|
|
135
|
-
};
|
|
136
|
-
var wrapPolymorphicSlot = (asChild, children, callback) => {
|
|
137
|
-
if (!asChild) return callback(children);
|
|
138
|
-
return (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(
|
|
139
|
-
children,
|
|
140
|
-
void 0,
|
|
141
|
-
callback(children.props.children)
|
|
142
|
-
) : null;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
// src/visually-hidden/VisuallyHidden.tsx
|
|
146
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
147
|
-
var VisuallyHidden = ({ asChild = false, ref, ...props }) => {
|
|
148
|
-
const Component = asChild ? Slot : "span";
|
|
149
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
150
|
-
Component,
|
|
151
|
-
{
|
|
152
|
-
...props,
|
|
153
|
-
ref,
|
|
154
|
-
style: {
|
|
155
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
156
|
-
position: "absolute",
|
|
157
|
-
border: 0,
|
|
158
|
-
width: 1,
|
|
159
|
-
height: 1,
|
|
160
|
-
padding: 0,
|
|
161
|
-
margin: -1,
|
|
162
|
-
overflow: "hidden",
|
|
163
|
-
clip: "rect(0, 0, 0, 0)",
|
|
164
|
-
whiteSpace: "nowrap",
|
|
165
|
-
wordWrap: "normal",
|
|
166
|
-
...props.style
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
};
|
|
171
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
172
|
-
|
|
173
|
-
// src/icon/Icon.styles.tsx
|
|
174
|
-
var import_internal_utils = require("@spark-ui/internal-utils");
|
|
175
|
-
var import_class_variance_authority2 = require("class-variance-authority");
|
|
176
|
-
var iconStyles = (0, import_class_variance_authority2.cva)(["fill-current shrink-0"], {
|
|
177
|
-
variants: {
|
|
178
|
-
/**
|
|
179
|
-
* Color scheme of the icon.
|
|
180
|
-
*/
|
|
181
|
-
intent: (0, import_internal_utils.makeVariants)({
|
|
182
|
-
current: ["text-current"],
|
|
183
|
-
main: ["text-main"],
|
|
184
|
-
support: ["text-support"],
|
|
185
|
-
accent: ["text-accent"],
|
|
186
|
-
basic: ["text-basic"],
|
|
187
|
-
success: ["text-success"],
|
|
188
|
-
alert: ["text-alert"],
|
|
189
|
-
error: ["text-error"],
|
|
190
|
-
info: ["text-info"],
|
|
191
|
-
neutral: ["text-neutral"]
|
|
192
|
-
}),
|
|
193
|
-
/**
|
|
194
|
-
* Sets the size of the icon.
|
|
195
|
-
*/
|
|
196
|
-
size: (0, import_internal_utils.makeVariants)({
|
|
197
|
-
current: ["u-current-font-size"],
|
|
198
|
-
sm: ["w-sz-16", "h-sz-16"],
|
|
199
|
-
md: ["w-sz-24", "h-sz-24"],
|
|
200
|
-
lg: ["w-sz-32", "h-sz-32"],
|
|
201
|
-
xl: ["w-sz-40", "h-sz-40"]
|
|
202
|
-
})
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
// src/icon/Icon.tsx
|
|
207
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
208
|
-
var Icon = ({
|
|
209
|
-
label,
|
|
210
|
-
className,
|
|
211
|
-
size = "current",
|
|
212
|
-
intent = "current",
|
|
213
|
-
children,
|
|
214
|
-
...others
|
|
215
|
-
}) => {
|
|
216
|
-
const child = import_react3.Children.only(children);
|
|
217
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
218
|
-
(0, import_react3.cloneElement)(child, {
|
|
219
|
-
className: iconStyles({ className, size, intent }),
|
|
220
|
-
"data-spark-component": "icon",
|
|
221
|
-
"aria-hidden": "true",
|
|
222
|
-
focusable: "false",
|
|
223
|
-
...others
|
|
224
|
-
}),
|
|
225
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(VisuallyHidden, { children: label })
|
|
226
|
-
] });
|
|
227
|
-
};
|
|
228
|
-
Icon.displayName = "Icon";
|
|
229
|
-
|
|
230
|
-
// src/button/Button.tsx
|
|
231
|
-
var import_class_variance_authority5 = require("class-variance-authority");
|
|
232
|
-
var import_react4 = require("react");
|
|
233
|
-
|
|
234
|
-
// src/spinner/Spinner.styles.tsx
|
|
235
|
-
var import_internal_utils2 = require("@spark-ui/internal-utils");
|
|
236
|
-
var import_class_variance_authority3 = require("class-variance-authority");
|
|
237
|
-
var defaultVariants = {
|
|
238
|
-
intent: "current",
|
|
239
|
-
size: "current",
|
|
240
|
-
isBackgroundVisible: false
|
|
241
|
-
};
|
|
242
|
-
var spinnerStyles = (0, import_class_variance_authority3.cva)(
|
|
243
|
-
["inline-block", "border-solid", "rounded-full", "border-md", "animate-spin"],
|
|
244
|
-
{
|
|
245
|
-
variants: {
|
|
246
|
-
/**
|
|
247
|
-
* Use `size` prop to set the size of the spinner. If you want to set the full size for the spinner, don't forget to add a wrapping container with its own size.
|
|
248
|
-
*/
|
|
249
|
-
size: {
|
|
250
|
-
current: ["u-current-font-size"],
|
|
251
|
-
sm: ["w-sz-20", "h-sz-20"],
|
|
252
|
-
md: ["w-sz-28", "h-sz-28"],
|
|
253
|
-
full: ["w-full", "h-full"]
|
|
254
|
-
},
|
|
255
|
-
/**
|
|
256
|
-
* Color scheme of the spinner.
|
|
257
|
-
*/
|
|
258
|
-
intent: (0, import_internal_utils2.makeVariants)({
|
|
259
|
-
current: ["border-current"],
|
|
260
|
-
main: ["border-main"],
|
|
261
|
-
support: ["border-support"],
|
|
262
|
-
accent: ["border-accent"],
|
|
263
|
-
basic: ["border-basic"],
|
|
264
|
-
success: ["border-success"],
|
|
265
|
-
alert: ["border-alert"],
|
|
266
|
-
error: ["border-error"],
|
|
267
|
-
info: ["border-info"],
|
|
268
|
-
neutral: ["border-neutral"]
|
|
269
|
-
}),
|
|
270
|
-
/**
|
|
271
|
-
* Size of the button.
|
|
272
|
-
*/
|
|
273
|
-
isBackgroundVisible: {
|
|
274
|
-
true: ["border-b-neutral-container", "border-l-neutral-container"],
|
|
275
|
-
false: ["border-b-transparent", "border-l-transparent"]
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
defaultVariants
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
|
|
282
|
-
// src/spinner/Spinner.tsx
|
|
283
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
284
|
-
var Spinner = ({
|
|
285
|
-
className,
|
|
286
|
-
size = "current",
|
|
287
|
-
intent = "current",
|
|
288
|
-
label,
|
|
289
|
-
isBackgroundVisible,
|
|
290
|
-
ref,
|
|
291
|
-
...others
|
|
292
|
-
}) => {
|
|
293
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
294
|
-
"span",
|
|
295
|
-
{
|
|
296
|
-
role: "status",
|
|
297
|
-
"data-spark-component": "spinner",
|
|
298
|
-
ref,
|
|
299
|
-
className: spinnerStyles({ className, size, intent, isBackgroundVisible }),
|
|
300
|
-
...others,
|
|
301
|
-
children: label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(VisuallyHidden, { children: label })
|
|
302
|
-
}
|
|
303
|
-
);
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
// src/button/Button.styles.tsx
|
|
307
|
-
var import_internal_utils8 = require("@spark-ui/internal-utils");
|
|
308
|
-
var import_class_variance_authority4 = require("class-variance-authority");
|
|
309
|
-
|
|
310
|
-
// src/button/variants/filled.ts
|
|
311
|
-
var import_internal_utils3 = require("@spark-ui/internal-utils");
|
|
312
|
-
var filledVariants = [
|
|
313
|
-
// Main
|
|
314
|
-
{
|
|
315
|
-
intent: "main",
|
|
316
|
-
design: "filled",
|
|
317
|
-
class: (0, import_internal_utils3.tw)([
|
|
318
|
-
"bg-main",
|
|
319
|
-
"text-on-main",
|
|
320
|
-
"hover:bg-main-hovered",
|
|
321
|
-
"enabled:active:bg-main-hovered",
|
|
322
|
-
"focus-visible:bg-main-hovered"
|
|
323
|
-
])
|
|
324
|
-
},
|
|
325
|
-
// Support
|
|
326
|
-
{
|
|
327
|
-
intent: "support",
|
|
328
|
-
design: "filled",
|
|
329
|
-
class: (0, import_internal_utils3.tw)([
|
|
330
|
-
"bg-support",
|
|
331
|
-
"text-on-support",
|
|
332
|
-
"hover:bg-support-hovered",
|
|
333
|
-
"enabled:active:bg-support-hovered",
|
|
334
|
-
"focus-visible:bg-support-hovered"
|
|
335
|
-
])
|
|
336
|
-
},
|
|
337
|
-
// Accent
|
|
338
|
-
{
|
|
339
|
-
intent: "accent",
|
|
340
|
-
design: "filled",
|
|
341
|
-
class: (0, import_internal_utils3.tw)([
|
|
342
|
-
"bg-accent",
|
|
343
|
-
"text-on-accent",
|
|
344
|
-
"hover:bg-accent-hovered",
|
|
345
|
-
"enabled:active:bg-accent-hovered",
|
|
346
|
-
"focus-visible:bg-accent-hovered"
|
|
347
|
-
])
|
|
348
|
-
},
|
|
349
|
-
// Basic
|
|
350
|
-
{
|
|
351
|
-
intent: "basic",
|
|
352
|
-
design: "filled",
|
|
353
|
-
class: (0, import_internal_utils3.tw)([
|
|
354
|
-
"bg-basic",
|
|
355
|
-
"text-on-basic",
|
|
356
|
-
"hover:bg-basic-hovered",
|
|
357
|
-
"enabled:active:bg-basic-hovered",
|
|
358
|
-
"focus-visible:bg-basic-hovered"
|
|
359
|
-
])
|
|
360
|
-
},
|
|
361
|
-
// Success
|
|
362
|
-
{
|
|
363
|
-
intent: "success",
|
|
364
|
-
design: "filled",
|
|
365
|
-
class: (0, import_internal_utils3.tw)([
|
|
366
|
-
"bg-success",
|
|
367
|
-
"text-on-success",
|
|
368
|
-
"hover:bg-success-hovered",
|
|
369
|
-
"enabled:active:bg-success-hovered",
|
|
370
|
-
"focus-visible:bg-success-hovered"
|
|
371
|
-
])
|
|
372
|
-
},
|
|
373
|
-
// Alert
|
|
374
|
-
{
|
|
375
|
-
intent: "alert",
|
|
376
|
-
design: "filled",
|
|
377
|
-
class: (0, import_internal_utils3.tw)([
|
|
378
|
-
"bg-alert",
|
|
379
|
-
"text-on-alert",
|
|
380
|
-
"hover:bg-alert-hovered",
|
|
381
|
-
"enabled:active:bg-alert-hovered",
|
|
382
|
-
"focus-visible:bg-alert-hovered"
|
|
383
|
-
])
|
|
384
|
-
},
|
|
385
|
-
// Danger
|
|
386
|
-
{
|
|
387
|
-
intent: "danger",
|
|
388
|
-
design: "filled",
|
|
389
|
-
class: (0, import_internal_utils3.tw)([
|
|
390
|
-
"text-on-error bg-error",
|
|
391
|
-
"hover:bg-error-hovered enabled:active:bg-error-hovered",
|
|
392
|
-
"focus-visible:bg-error-hovered"
|
|
393
|
-
])
|
|
394
|
-
},
|
|
395
|
-
// Info
|
|
396
|
-
{
|
|
397
|
-
intent: "info",
|
|
398
|
-
design: "filled",
|
|
399
|
-
class: (0, import_internal_utils3.tw)([
|
|
400
|
-
"text-on-error bg-info",
|
|
401
|
-
"hover:bg-info-hovered enabled:active:bg-info-hovered",
|
|
402
|
-
"focus-visible:bg-info-hovered"
|
|
403
|
-
])
|
|
404
|
-
},
|
|
405
|
-
// Neutral
|
|
406
|
-
{
|
|
407
|
-
intent: "neutral",
|
|
408
|
-
design: "filled",
|
|
409
|
-
class: (0, import_internal_utils3.tw)([
|
|
410
|
-
"bg-neutral",
|
|
411
|
-
"text-on-neutral",
|
|
412
|
-
"hover:bg-neutral-hovered",
|
|
413
|
-
"enabled:active:bg-neutral-hovered",
|
|
414
|
-
"focus-visible:bg-neutral-hovered"
|
|
415
|
-
])
|
|
416
|
-
},
|
|
417
|
-
// Surface
|
|
418
|
-
{
|
|
419
|
-
intent: "surface",
|
|
420
|
-
design: "filled",
|
|
421
|
-
class: (0, import_internal_utils3.tw)([
|
|
422
|
-
"bg-surface",
|
|
423
|
-
"text-on-surface",
|
|
424
|
-
"hover:bg-surface-hovered",
|
|
425
|
-
"enabled:active:bg-surface-hovered",
|
|
426
|
-
"focus-visible:bg-surface-hovered"
|
|
427
|
-
])
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
intent: "surfaceInverse",
|
|
431
|
-
design: "filled",
|
|
432
|
-
class: (0, import_internal_utils3.tw)([
|
|
433
|
-
"bg-surface-inverse",
|
|
434
|
-
"text-on-surface-inverse",
|
|
435
|
-
"hover:bg-surface-inverse-hovered",
|
|
436
|
-
"enabled:active:bg-surface-inverse-hovered",
|
|
437
|
-
"focus-visible:bg-surface-inverse-hovered"
|
|
438
|
-
])
|
|
439
|
-
}
|
|
440
|
-
];
|
|
441
|
-
|
|
442
|
-
// src/button/variants/ghost.ts
|
|
443
|
-
var import_internal_utils4 = require("@spark-ui/internal-utils");
|
|
444
|
-
var ghostVariants = [
|
|
445
|
-
{
|
|
446
|
-
intent: "main",
|
|
447
|
-
design: "ghost",
|
|
448
|
-
class: (0, import_internal_utils4.tw)([
|
|
449
|
-
"text-on-main-container",
|
|
450
|
-
"hover:bg-main/dim-5",
|
|
451
|
-
"enabled:active:bg-main/dim-5",
|
|
452
|
-
"focus-visible:bg-main/dim-5"
|
|
453
|
-
])
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
intent: "support",
|
|
457
|
-
design: "ghost",
|
|
458
|
-
class: (0, import_internal_utils4.tw)([
|
|
459
|
-
"text-on-support-container",
|
|
460
|
-
"hover:bg-support/dim-5",
|
|
461
|
-
"enabled:active:bg-support/dim-5",
|
|
462
|
-
"focus-visible:bg-support/dim-5"
|
|
463
|
-
])
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
intent: "accent",
|
|
467
|
-
design: "ghost",
|
|
468
|
-
class: (0, import_internal_utils4.tw)([
|
|
469
|
-
"text-on-accent-container",
|
|
470
|
-
"hover:bg-accent/dim-5",
|
|
471
|
-
"enabled:active:bg-accent/dim-5",
|
|
472
|
-
"focus-visible:bg-accent/dim-5"
|
|
473
|
-
])
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
intent: "basic",
|
|
477
|
-
design: "ghost",
|
|
478
|
-
class: (0, import_internal_utils4.tw)([
|
|
479
|
-
"text-on-basic-container",
|
|
480
|
-
"hover:bg-basic/dim-5",
|
|
481
|
-
"enabled:active:bg-basic/dim-5",
|
|
482
|
-
"focus-visible:bg-basic/dim-5"
|
|
483
|
-
])
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
intent: "success",
|
|
487
|
-
design: "ghost",
|
|
488
|
-
class: (0, import_internal_utils4.tw)([
|
|
489
|
-
"text-on-success-container",
|
|
490
|
-
"hover:bg-success/dim-5",
|
|
491
|
-
"enabled:active:bg-success/dim-5",
|
|
492
|
-
"focus-visible:bg-success/dim-5"
|
|
493
|
-
])
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
intent: "alert",
|
|
497
|
-
design: "ghost",
|
|
498
|
-
class: (0, import_internal_utils4.tw)([
|
|
499
|
-
"text-on-alert-container",
|
|
500
|
-
"hover:bg-alert/dim-5",
|
|
501
|
-
"enabled:active:bg-alert/dim-5",
|
|
502
|
-
"focus-visible:bg-alert/dim-5"
|
|
503
|
-
])
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
intent: "danger",
|
|
507
|
-
design: "ghost",
|
|
508
|
-
class: (0, import_internal_utils4.tw)([
|
|
509
|
-
"text-on-error-container",
|
|
510
|
-
"hover:bg-error/dim-5",
|
|
511
|
-
"enabled:active:bg-error/dim-5",
|
|
512
|
-
"focus-visible:bg-error/dim-5"
|
|
513
|
-
])
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
intent: "info",
|
|
517
|
-
design: "ghost",
|
|
518
|
-
class: (0, import_internal_utils4.tw)([
|
|
519
|
-
"text-on-info-container",
|
|
520
|
-
"hover:bg-info/dim-5",
|
|
521
|
-
"enabled:active:bg-info/dim-5",
|
|
522
|
-
"focus-visible:bg-info/dim-5"
|
|
523
|
-
])
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
intent: "neutral",
|
|
527
|
-
design: "ghost",
|
|
528
|
-
class: (0, import_internal_utils4.tw)([
|
|
529
|
-
"text-on-neutral-container",
|
|
530
|
-
"hover:bg-neutral/dim-5",
|
|
531
|
-
"enabled:active:bg-neutral/dim-5",
|
|
532
|
-
"focus-visible:bg-neutral/dim-5"
|
|
533
|
-
])
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
intent: "surface",
|
|
537
|
-
design: "ghost",
|
|
538
|
-
class: (0, import_internal_utils4.tw)([
|
|
539
|
-
"text-surface",
|
|
540
|
-
"hover:bg-surface/dim-5",
|
|
541
|
-
"enabled:active:bg-surface/dim-5",
|
|
542
|
-
"focus-visible:bg-surface/dim-5"
|
|
543
|
-
])
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
intent: "surfaceInverse",
|
|
547
|
-
design: "ghost",
|
|
548
|
-
class: (0, import_internal_utils4.tw)([
|
|
549
|
-
"text-surface-inverse",
|
|
550
|
-
"hover:bg-surface-inverse/dim-5",
|
|
551
|
-
"enabled:active:bg-surface-inverse/dim-5",
|
|
552
|
-
"focus-visible:bg-surface-inverse/dim-5"
|
|
553
|
-
])
|
|
554
|
-
}
|
|
555
|
-
];
|
|
556
|
-
|
|
557
|
-
// src/button/variants/outlined.ts
|
|
558
|
-
var import_internal_utils5 = require("@spark-ui/internal-utils");
|
|
559
|
-
var outlinedVariants = [
|
|
560
|
-
{
|
|
561
|
-
intent: "main",
|
|
562
|
-
design: "outlined",
|
|
563
|
-
class: (0, import_internal_utils5.tw)([
|
|
564
|
-
"hover:bg-main/dim-5",
|
|
565
|
-
"enabled:active:bg-main/dim-5",
|
|
566
|
-
"focus-visible:bg-main/dim-5",
|
|
567
|
-
"text-main"
|
|
568
|
-
])
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
intent: "support",
|
|
572
|
-
design: "outlined",
|
|
573
|
-
class: (0, import_internal_utils5.tw)([
|
|
574
|
-
"hover:bg-support/dim-5",
|
|
575
|
-
"enabled:active:bg-support/dim-5",
|
|
576
|
-
"focus-visible:bg-support/dim-5",
|
|
577
|
-
"text-support"
|
|
578
|
-
])
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
intent: "accent",
|
|
582
|
-
design: "outlined",
|
|
583
|
-
class: (0, import_internal_utils5.tw)([
|
|
584
|
-
"hover:bg-accent/dim-5",
|
|
585
|
-
"enabled:active:bg-accent/dim-5",
|
|
586
|
-
"focus-visible:bg-accent/dim-5",
|
|
587
|
-
"text-accent"
|
|
588
|
-
])
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
intent: "basic",
|
|
592
|
-
design: "outlined",
|
|
593
|
-
class: (0, import_internal_utils5.tw)([
|
|
594
|
-
"hover:bg-basic/dim-5",
|
|
595
|
-
"enabled:active:bg-basic/dim-5",
|
|
596
|
-
"focus-visible:bg-basic/dim-5",
|
|
597
|
-
"text-basic"
|
|
598
|
-
])
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
intent: "success",
|
|
602
|
-
design: "outlined",
|
|
603
|
-
class: (0, import_internal_utils5.tw)([
|
|
604
|
-
"hover:bg-success/dim-5",
|
|
605
|
-
"enabled:active:bg-success/dim-5",
|
|
606
|
-
"focus-visible:bg-success/dim-5",
|
|
607
|
-
"text-success"
|
|
608
|
-
])
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
intent: "alert",
|
|
612
|
-
design: "outlined",
|
|
613
|
-
class: (0, import_internal_utils5.tw)([
|
|
614
|
-
"hover:bg-alert/dim-5",
|
|
615
|
-
"enabled:active:bg-alert/dim-5",
|
|
616
|
-
"focus-visible:bg-alert/dim-5",
|
|
617
|
-
"text-alert"
|
|
618
|
-
])
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
intent: "danger",
|
|
622
|
-
design: "outlined",
|
|
623
|
-
class: (0, import_internal_utils5.tw)([
|
|
624
|
-
"hover:bg-error/dim-5",
|
|
625
|
-
"enabled:active:bg-error/dim-5",
|
|
626
|
-
"focus-visible:bg-error/dim-5",
|
|
627
|
-
"text-error"
|
|
628
|
-
])
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
intent: "info",
|
|
632
|
-
design: "outlined",
|
|
633
|
-
class: (0, import_internal_utils5.tw)([
|
|
634
|
-
"hover:bg-info/dim-5",
|
|
635
|
-
"enabled:active:bg-info/dim-5",
|
|
636
|
-
"focus-visible:bg-info/dim-5",
|
|
637
|
-
"text-info"
|
|
638
|
-
])
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
intent: "neutral",
|
|
642
|
-
design: "outlined",
|
|
643
|
-
class: (0, import_internal_utils5.tw)([
|
|
644
|
-
"hover:bg-neutral/dim-5",
|
|
645
|
-
"enabled:active:bg-neutral/dim-5",
|
|
646
|
-
"focus-visible:bg-neutral/dim-5",
|
|
647
|
-
"text-neutral"
|
|
648
|
-
])
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
intent: "surface",
|
|
652
|
-
design: "outlined",
|
|
653
|
-
class: (0, import_internal_utils5.tw)([
|
|
654
|
-
"hover:bg-surface/dim-5",
|
|
655
|
-
"enabled:active:bg-surface/dim-5",
|
|
656
|
-
"focus-visible:bg-surface/dim-5",
|
|
657
|
-
"text-surface"
|
|
658
|
-
])
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
intent: "surfaceInverse",
|
|
662
|
-
design: "outlined",
|
|
663
|
-
class: (0, import_internal_utils5.tw)([
|
|
664
|
-
"hover:bg-surface-inverse/dim-5",
|
|
665
|
-
"enabled:active:bg-surface-inverse/dim-5",
|
|
666
|
-
"focus-visible:bg-surface-inverse/dim-5",
|
|
667
|
-
"text-surface-inverse"
|
|
668
|
-
])
|
|
669
|
-
}
|
|
670
|
-
];
|
|
671
|
-
|
|
672
|
-
// src/button/variants/tinted.ts
|
|
673
|
-
var import_internal_utils6 = require("@spark-ui/internal-utils");
|
|
674
|
-
var tintedVariants = [
|
|
675
|
-
{
|
|
676
|
-
intent: "main",
|
|
677
|
-
design: "tinted",
|
|
678
|
-
class: (0, import_internal_utils6.tw)([
|
|
679
|
-
"bg-main-container",
|
|
680
|
-
"text-on-main-container",
|
|
681
|
-
"hover:bg-main-container-hovered",
|
|
682
|
-
"enabled:active:bg-main-container-hovered",
|
|
683
|
-
"focus-visible:bg-main-container-hovered"
|
|
684
|
-
])
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
intent: "support",
|
|
688
|
-
design: "tinted",
|
|
689
|
-
class: (0, import_internal_utils6.tw)([
|
|
690
|
-
"bg-support-container",
|
|
691
|
-
"text-on-support-container",
|
|
692
|
-
"hover:bg-support-container-hovered",
|
|
693
|
-
"enabled:active:bg-support-container-hovered",
|
|
694
|
-
"focus-visible:bg-support-container-hovered"
|
|
695
|
-
])
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
intent: "accent",
|
|
699
|
-
design: "tinted",
|
|
700
|
-
class: (0, import_internal_utils6.tw)([
|
|
701
|
-
"bg-accent-container",
|
|
702
|
-
"text-on-accent-container",
|
|
703
|
-
"hover:bg-accent-container-hovered",
|
|
704
|
-
"enabled:active:bg-accent-container-hovered",
|
|
705
|
-
"focus-visible:bg-accent-container-hovered"
|
|
706
|
-
])
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
intent: "basic",
|
|
710
|
-
design: "tinted",
|
|
711
|
-
class: (0, import_internal_utils6.tw)([
|
|
712
|
-
"bg-basic-container",
|
|
713
|
-
"text-on-basic-container",
|
|
714
|
-
"hover:bg-basic-container-hovered",
|
|
715
|
-
"enabled:active:bg-basic-container-hovered",
|
|
716
|
-
"focus-visible:bg-basic-container-hovered"
|
|
717
|
-
])
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
intent: "success",
|
|
721
|
-
design: "tinted",
|
|
722
|
-
class: (0, import_internal_utils6.tw)([
|
|
723
|
-
"bg-success-container",
|
|
724
|
-
"text-on-success-container",
|
|
725
|
-
"hover:bg-success-container-hovered",
|
|
726
|
-
"enabled:active:bg-success-container-hovered",
|
|
727
|
-
"focus-visible:bg-success-container-hovered"
|
|
728
|
-
])
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
intent: "alert",
|
|
732
|
-
design: "tinted",
|
|
733
|
-
class: (0, import_internal_utils6.tw)([
|
|
734
|
-
"bg-alert-container",
|
|
735
|
-
"text-on-alert-container",
|
|
736
|
-
"hover:bg-alert-container-hovered",
|
|
737
|
-
"enabled:active:bg-alert-container-hovered",
|
|
738
|
-
"focus-visible:bg-alert-container-hovered"
|
|
739
|
-
])
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
intent: "danger",
|
|
743
|
-
design: "tinted",
|
|
744
|
-
class: (0, import_internal_utils6.tw)([
|
|
745
|
-
"bg-error-container",
|
|
746
|
-
"text-on-error-container",
|
|
747
|
-
"hover:bg-error-container-hovered",
|
|
748
|
-
"enabled:active:bg-error-container-hovered",
|
|
749
|
-
"focus-visible:bg-error-container-hovered"
|
|
750
|
-
])
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
intent: "info",
|
|
754
|
-
design: "tinted",
|
|
755
|
-
class: (0, import_internal_utils6.tw)([
|
|
756
|
-
"bg-info-container",
|
|
757
|
-
"text-on-info-container",
|
|
758
|
-
"hover:bg-info-container-hovered",
|
|
759
|
-
"enabled:active:bg-info-container-hovered",
|
|
760
|
-
"focus-visible:bg-info-container-hovered"
|
|
761
|
-
])
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
intent: "neutral",
|
|
765
|
-
design: "tinted",
|
|
766
|
-
class: (0, import_internal_utils6.tw)([
|
|
767
|
-
"bg-neutral-container",
|
|
768
|
-
"text-on-neutral-container",
|
|
769
|
-
"hover:bg-neutral-container-hovered",
|
|
770
|
-
"enabled:active:bg-neutral-container-hovered",
|
|
771
|
-
"focus-visible:bg-neutral-container-hovered"
|
|
772
|
-
])
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
intent: "surface",
|
|
776
|
-
design: "tinted",
|
|
777
|
-
class: (0, import_internal_utils6.tw)([
|
|
778
|
-
"bg-surface",
|
|
779
|
-
"text-on-surface",
|
|
780
|
-
"hover:bg-surface-hovered",
|
|
781
|
-
"enabled:active:bg-surface-hovered",
|
|
782
|
-
"focus-visible:bg-surface-hovered"
|
|
783
|
-
])
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
intent: "surfaceInverse",
|
|
787
|
-
design: "tinted",
|
|
788
|
-
class: (0, import_internal_utils6.tw)([
|
|
789
|
-
"bg-surface-inverse",
|
|
790
|
-
"text-on-surface-inverse",
|
|
791
|
-
"hover:bg-surface-inverse-hovered",
|
|
792
|
-
"enabled:active:bg-surface-inverse-hovered",
|
|
793
|
-
"focus-visible:bg-surface-inverse-hovered"
|
|
794
|
-
])
|
|
795
|
-
}
|
|
796
|
-
];
|
|
797
|
-
|
|
798
|
-
// src/button/variants/contrast.ts
|
|
799
|
-
var import_internal_utils7 = require("@spark-ui/internal-utils");
|
|
800
|
-
var contrastVariants = [
|
|
801
|
-
{
|
|
802
|
-
intent: "main",
|
|
803
|
-
design: "contrast",
|
|
804
|
-
class: (0, import_internal_utils7.tw)([
|
|
805
|
-
"text-on-main-contaier bg-surface",
|
|
806
|
-
"hover:bg-main-container-hovered",
|
|
807
|
-
"enabled:active:bg-main-container-hovered",
|
|
808
|
-
"focus-visible:bg-main-container-hovered"
|
|
809
|
-
])
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
intent: "support",
|
|
813
|
-
design: "contrast",
|
|
814
|
-
class: (0, import_internal_utils7.tw)([
|
|
815
|
-
"text-on-support-container bg-surface",
|
|
816
|
-
"hover:bg-support-container-hovered",
|
|
817
|
-
"enabled:active:bg-support-container-hovered",
|
|
818
|
-
"focus-visible:bg-support-container-hovered"
|
|
819
|
-
])
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
intent: "accent",
|
|
823
|
-
design: "contrast",
|
|
824
|
-
class: (0, import_internal_utils7.tw)([
|
|
825
|
-
"text-on-accent-container bg-surface",
|
|
826
|
-
"hover:bg-accent-container-hovered",
|
|
827
|
-
"enabled:active:bg-accent-container-hovered",
|
|
828
|
-
"focus-visible:bg-accent-container-hovered"
|
|
829
|
-
])
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
intent: "basic",
|
|
833
|
-
design: "contrast",
|
|
834
|
-
class: (0, import_internal_utils7.tw)([
|
|
835
|
-
"text-on-basic-container bg-surface",
|
|
836
|
-
"hover:bg-basic-container-hovered",
|
|
837
|
-
"enabled:active:bg-basic-container-hovered",
|
|
838
|
-
"focus-visible:bg-basic-container-hovered"
|
|
839
|
-
])
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
intent: "success",
|
|
843
|
-
design: "contrast",
|
|
844
|
-
class: (0, import_internal_utils7.tw)([
|
|
845
|
-
"text-on-success-container bg-surface",
|
|
846
|
-
"hover:bg-success-container-hovered",
|
|
847
|
-
"enabled:active:bg-success-container-hovered",
|
|
848
|
-
"focus-visible:bg-success-container-hovered"
|
|
849
|
-
])
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
intent: "alert",
|
|
853
|
-
design: "contrast",
|
|
854
|
-
class: (0, import_internal_utils7.tw)([
|
|
855
|
-
"text-on-alert-container bg-surface",
|
|
856
|
-
"hover:bg-alert-container-hovered",
|
|
857
|
-
"enabled:active:bg-alert-container-hovered",
|
|
858
|
-
"focus-visible:bg-alert-container-hovered"
|
|
859
|
-
])
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
intent: "danger",
|
|
863
|
-
design: "contrast",
|
|
864
|
-
class: (0, import_internal_utils7.tw)([
|
|
865
|
-
"text-on-error-container bg-surface",
|
|
866
|
-
"hover:bg-error-container-hovered",
|
|
867
|
-
"enabled:active:bg-error-container-hovered",
|
|
868
|
-
"focus-visible:bg-error-container-hovered"
|
|
869
|
-
])
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
intent: "info",
|
|
873
|
-
design: "contrast",
|
|
874
|
-
class: (0, import_internal_utils7.tw)([
|
|
875
|
-
"text-on-info-container bg-surface",
|
|
876
|
-
"hover:bg-info-container-hovered",
|
|
877
|
-
"enabled:active:bg-info-container-hovered",
|
|
878
|
-
"focus-visible:bg-info-container-hovered"
|
|
879
|
-
])
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
intent: "neutral",
|
|
883
|
-
design: "contrast",
|
|
884
|
-
class: (0, import_internal_utils7.tw)([
|
|
885
|
-
"text-on-neutral-container bg-surface",
|
|
886
|
-
"hover:bg-neutral-container-hovered",
|
|
887
|
-
"enabled:active:bg-neutral-container-hovered",
|
|
888
|
-
"focus-visible:bg-neutral-container-hovered"
|
|
889
|
-
])
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
intent: "surface",
|
|
893
|
-
design: "contrast",
|
|
894
|
-
class: (0, import_internal_utils7.tw)([
|
|
895
|
-
"text-on-surface bg-surface",
|
|
896
|
-
"hover:bg-surface-hovered",
|
|
897
|
-
"enabled:active:bg-surface-hovered",
|
|
898
|
-
"focus-visible:bg-surface-hovered"
|
|
899
|
-
])
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
intent: "surfaceInverse",
|
|
903
|
-
design: "contrast",
|
|
904
|
-
class: (0, import_internal_utils7.tw)([
|
|
905
|
-
"text-on-surface-inverse bg-surface-inverse",
|
|
906
|
-
"hover:bg-surface-inverse-hovered",
|
|
907
|
-
"enabled:active:bg-surface-inverse-hovered",
|
|
908
|
-
"focus-visible:bg-surface-inverse-hovered"
|
|
909
|
-
])
|
|
910
|
-
}
|
|
911
|
-
];
|
|
912
|
-
|
|
913
|
-
// src/button/Button.styles.tsx
|
|
914
|
-
var buttonStyles = (0, import_class_variance_authority4.cva)(
|
|
915
|
-
[
|
|
916
|
-
"u-shadow-border-transition",
|
|
917
|
-
"box-border inline-flex items-center justify-center gap-md whitespace-nowrap",
|
|
918
|
-
"default:px-lg",
|
|
919
|
-
"text-body-1 font-bold",
|
|
920
|
-
"focus-visible:u-outline"
|
|
921
|
-
],
|
|
922
|
-
{
|
|
923
|
-
variants: {
|
|
924
|
-
/**
|
|
925
|
-
* Main style of the button.
|
|
926
|
-
*
|
|
927
|
-
* - `filled`: Button will be plain.
|
|
928
|
-
*
|
|
929
|
-
* - `outlined`: Button will be transparent with an outline.
|
|
930
|
-
*
|
|
931
|
-
* - `tinted`: Button will be filled but using a lighter color scheme.
|
|
932
|
-
*
|
|
933
|
-
* - `ghost`: Button will look like a link. No borders, plain text.
|
|
934
|
-
*
|
|
935
|
-
* - `contrast`: Button will be surface filled. No borders, plain text.
|
|
936
|
-
*
|
|
937
|
-
*/
|
|
938
|
-
design: (0, import_internal_utils8.makeVariants)({
|
|
939
|
-
filled: [],
|
|
940
|
-
outlined: ["bg-transparent", "border-sm", "border-current"],
|
|
941
|
-
tinted: [],
|
|
942
|
-
ghost: ["default:-mx-md px-md hover:bg-main/dim-5"],
|
|
943
|
-
contrast: []
|
|
944
|
-
}),
|
|
945
|
-
underline: {
|
|
946
|
-
true: ["underline"]
|
|
947
|
-
},
|
|
948
|
-
/**
|
|
949
|
-
* Color scheme of the button.
|
|
950
|
-
*/
|
|
951
|
-
intent: (0, import_internal_utils8.makeVariants)({
|
|
952
|
-
main: [],
|
|
953
|
-
support: [],
|
|
954
|
-
accent: [],
|
|
955
|
-
basic: [],
|
|
956
|
-
success: [],
|
|
957
|
-
alert: [],
|
|
958
|
-
danger: [],
|
|
959
|
-
info: [],
|
|
960
|
-
neutral: [],
|
|
961
|
-
surface: [],
|
|
962
|
-
surfaceInverse: []
|
|
963
|
-
}),
|
|
964
|
-
/**
|
|
965
|
-
* Size of the button.
|
|
966
|
-
*/
|
|
967
|
-
size: (0, import_internal_utils8.makeVariants)({
|
|
968
|
-
sm: ["min-w-sz-32", "h-sz-32"],
|
|
969
|
-
md: ["min-w-sz-44", "h-sz-44"],
|
|
970
|
-
lg: ["min-w-sz-56", "h-sz-56"]
|
|
971
|
-
}),
|
|
972
|
-
/**
|
|
973
|
-
* Shape of the button.
|
|
974
|
-
*/
|
|
975
|
-
shape: (0, import_internal_utils8.makeVariants)({
|
|
976
|
-
rounded: ["rounded-lg"],
|
|
977
|
-
square: ["rounded-0"],
|
|
978
|
-
pill: ["rounded-full"]
|
|
979
|
-
}),
|
|
980
|
-
/**
|
|
981
|
-
* Disable the button, preventing user interaction and adding opacity.
|
|
982
|
-
*/
|
|
983
|
-
disabled: {
|
|
984
|
-
true: ["cursor-not-allowed", "opacity-dim-3"],
|
|
985
|
-
false: ["cursor-pointer"]
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
compoundVariants: [
|
|
989
|
-
...filledVariants,
|
|
990
|
-
...outlinedVariants,
|
|
991
|
-
...tintedVariants,
|
|
992
|
-
...ghostVariants,
|
|
993
|
-
...contrastVariants
|
|
994
|
-
],
|
|
995
|
-
defaultVariants: {
|
|
996
|
-
design: "filled",
|
|
997
|
-
intent: "main",
|
|
998
|
-
size: "md",
|
|
999
|
-
shape: "rounded"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
);
|
|
1003
|
-
|
|
1004
|
-
// src/button/Button.tsx
|
|
1005
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1006
|
-
var blockedEventHandlers = [
|
|
1007
|
-
"onClick",
|
|
1008
|
-
"onMouseDown",
|
|
1009
|
-
"onMouseUp",
|
|
1010
|
-
"onMouseEnter",
|
|
1011
|
-
"onMouseLeave",
|
|
1012
|
-
"onMouseOver",
|
|
1013
|
-
"onMouseOut",
|
|
1014
|
-
"onKeyDown",
|
|
1015
|
-
"onKeyPress",
|
|
1016
|
-
"onKeyUp",
|
|
1017
|
-
"onSubmit"
|
|
1018
|
-
];
|
|
1019
|
-
var Button = ({
|
|
1020
|
-
children,
|
|
1021
|
-
design = "filled",
|
|
1022
|
-
disabled = false,
|
|
1023
|
-
intent = "main",
|
|
1024
|
-
isLoading = false,
|
|
1025
|
-
loadingLabel,
|
|
1026
|
-
loadingText,
|
|
1027
|
-
shape = "rounded",
|
|
1028
|
-
size = "md",
|
|
1029
|
-
asChild,
|
|
1030
|
-
className,
|
|
1031
|
-
underline = false,
|
|
1032
|
-
ref,
|
|
1033
|
-
...others
|
|
1034
|
-
}) => {
|
|
1035
|
-
const Component = asChild ? Slot : "button";
|
|
1036
|
-
const shouldNotInteract = !!disabled || isLoading;
|
|
1037
|
-
const disabledEventHandlers = (0, import_react4.useMemo)(() => {
|
|
1038
|
-
const result = {};
|
|
1039
|
-
if (shouldNotInteract) {
|
|
1040
|
-
blockedEventHandlers.forEach((eventHandler) => result[eventHandler] = void 0);
|
|
1041
|
-
}
|
|
1042
|
-
return result;
|
|
1043
|
-
}, [shouldNotInteract]);
|
|
1044
|
-
const spinnerProps = {
|
|
1045
|
-
size: "current",
|
|
1046
|
-
className: loadingText ? "inline-block" : "absolute",
|
|
1047
|
-
...loadingLabel && { "aria-label": loadingLabel }
|
|
1048
|
-
};
|
|
1049
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1050
|
-
Component,
|
|
1051
|
-
{
|
|
1052
|
-
"data-spark-component": "button",
|
|
1053
|
-
...Component === "button" && { type: "button" },
|
|
1054
|
-
ref,
|
|
1055
|
-
className: buttonStyles({
|
|
1056
|
-
className,
|
|
1057
|
-
design,
|
|
1058
|
-
disabled: shouldNotInteract,
|
|
1059
|
-
intent,
|
|
1060
|
-
shape,
|
|
1061
|
-
size,
|
|
1062
|
-
underline
|
|
1063
|
-
}),
|
|
1064
|
-
disabled: !!disabled,
|
|
1065
|
-
"aria-busy": isLoading,
|
|
1066
|
-
"aria-live": isLoading ? "assertive" : "off",
|
|
1067
|
-
...others,
|
|
1068
|
-
...disabledEventHandlers,
|
|
1069
|
-
children: wrapPolymorphicSlot(
|
|
1070
|
-
asChild,
|
|
1071
|
-
children,
|
|
1072
|
-
(slotted) => isLoading ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1073
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Spinner, { ...spinnerProps }),
|
|
1074
|
-
loadingText && loadingText,
|
|
1075
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1076
|
-
"div",
|
|
1077
|
-
{
|
|
1078
|
-
"aria-hidden": true,
|
|
1079
|
-
className: (0, import_class_variance_authority5.cx)("gap-md", loadingText ? "hidden" : "inline-flex opacity-0"),
|
|
1080
|
-
children: slotted
|
|
1081
|
-
}
|
|
1082
|
-
)
|
|
1083
|
-
] }) : slotted
|
|
1084
|
-
)
|
|
1085
|
-
}
|
|
1086
|
-
);
|
|
1087
|
-
};
|
|
1088
|
-
Button.displayName = "Button";
|
|
1089
|
-
|
|
1090
|
-
// src/icon-button/IconButton.styles.tsx
|
|
1091
|
-
var import_internal_utils9 = require("@spark-ui/internal-utils");
|
|
1092
|
-
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1093
|
-
var iconButtonStyles = (0, import_class_variance_authority6.cva)(["pl-0 pr-0"], {
|
|
1094
|
-
variants: {
|
|
1095
|
-
/**
|
|
1096
|
-
* Sets the size of the icon.
|
|
1097
|
-
*/
|
|
1098
|
-
size: (0, import_internal_utils9.makeVariants)({
|
|
1099
|
-
sm: ["text-body-1"],
|
|
1100
|
-
md: ["text-body-1"],
|
|
1101
|
-
lg: ["text-display-3"]
|
|
1102
|
-
})
|
|
1103
|
-
}
|
|
1104
|
-
});
|
|
1105
|
-
|
|
1106
|
-
// src/icon-button/IconButton.tsx
|
|
1107
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1108
|
-
var IconButton = ({
|
|
1109
|
-
design = "filled",
|
|
1110
|
-
disabled = false,
|
|
1111
|
-
intent = "main",
|
|
1112
|
-
shape = "rounded",
|
|
1113
|
-
size = "md",
|
|
1114
|
-
className,
|
|
1115
|
-
ref,
|
|
1116
|
-
...others
|
|
1117
|
-
}) => {
|
|
1118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1119
|
-
Button,
|
|
1120
|
-
{
|
|
1121
|
-
"data-spark-component": "icon-button",
|
|
1122
|
-
ref,
|
|
1123
|
-
className: iconButtonStyles({ size, className }),
|
|
1124
|
-
design,
|
|
1125
|
-
disabled,
|
|
1126
|
-
intent,
|
|
1127
|
-
shape,
|
|
1128
|
-
size,
|
|
1129
|
-
...others
|
|
1130
|
-
}
|
|
1131
|
-
);
|
|
1132
|
-
};
|
|
1133
|
-
IconButton.displayName = "IconButton";
|
|
1134
|
-
|
|
1135
|
-
// src/popover/PopoverCloseButton.tsx
|
|
1136
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1137
|
-
var CloseButton = ({
|
|
1138
|
-
"aria-label": ariaLabel,
|
|
1139
|
-
className,
|
|
1140
|
-
ref,
|
|
1141
|
-
...rest
|
|
1142
|
-
}) => {
|
|
1143
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1144
|
-
import_radix_ui5.Popover.Close,
|
|
1145
|
-
{
|
|
1146
|
-
"data-spark-component": "popover-close-button",
|
|
1147
|
-
ref,
|
|
1148
|
-
className: (0, import_class_variance_authority7.cx)("right-lg top-md absolute", className),
|
|
1149
|
-
asChild: true,
|
|
1150
|
-
...rest,
|
|
1151
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconButton, { size: "sm", intent: "neutral", design: "ghost", "aria-label": ariaLabel, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Close.Close, {}) }) })
|
|
1152
|
-
}
|
|
1153
|
-
);
|
|
1154
|
-
};
|
|
1155
|
-
CloseButton.displayName = "Popover.CloseButton";
|
|
1156
|
-
|
|
1157
|
-
// src/popover/PopoverContent.tsx
|
|
1158
|
-
var import_radix_ui6 = require("radix-ui");
|
|
1159
|
-
|
|
1160
|
-
// src/popover/PopoverContent.styles.ts
|
|
1161
|
-
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1162
|
-
var styles = (0, import_class_variance_authority8.cva)(
|
|
1163
|
-
[
|
|
1164
|
-
"rounded-md",
|
|
1165
|
-
"shadow-sm",
|
|
1166
|
-
"focus-visible:outline-hidden focus-visible:u-outline",
|
|
1167
|
-
"max-h-(--radix-popper-available-height) overflow-y-auto"
|
|
1168
|
-
],
|
|
1169
|
-
{
|
|
1170
|
-
variants: {
|
|
1171
|
-
intent: {
|
|
1172
|
-
surface: "bg-surface text-on-surface",
|
|
1173
|
-
main: "bg-main-container text-on-main-container",
|
|
1174
|
-
support: "bg-support-container text-on-support-container",
|
|
1175
|
-
accent: "bg-accent-container text-on-accent-container",
|
|
1176
|
-
basic: "bg-basic-container text-on-basic-container",
|
|
1177
|
-
success: "bg-success-container text-on-success-container",
|
|
1178
|
-
alert: "bg-alert-container text-on-alert-container",
|
|
1179
|
-
danger: "bg-error-container text-on-error-container",
|
|
1180
|
-
info: "bg-info-container text-on-info-container",
|
|
1181
|
-
neutral: "bg-neutral-container text-on-neutral-container"
|
|
1182
|
-
},
|
|
1183
|
-
matchTriggerWidth: {
|
|
1184
|
-
true: "w-(--radix-popper-anchor-width)"
|
|
1185
|
-
},
|
|
1186
|
-
enforceBoundaries: {
|
|
1187
|
-
true: ["max-w-(--radix-popper-available-width)"]
|
|
1188
|
-
},
|
|
1189
|
-
inset: {
|
|
1190
|
-
true: "overflow-hidden",
|
|
1191
|
-
false: "p-lg"
|
|
1192
|
-
},
|
|
1193
|
-
elevation: {
|
|
1194
|
-
dropdown: "z-dropdown",
|
|
1195
|
-
popover: "z-popover"
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
compoundVariants: [
|
|
1199
|
-
{
|
|
1200
|
-
inset: false,
|
|
1201
|
-
/**
|
|
1202
|
-
* When there is a close button, padding to the right side must be adjusted to avoid content overlapping with it.
|
|
1203
|
-
*/
|
|
1204
|
-
class: "has-data-[spark-component=popover-close-button]:pr-3xl"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
enforceBoundaries: false,
|
|
1208
|
-
matchTriggerWidth: false,
|
|
1209
|
-
class: "max-w-[min(var(--spacing-sz-384),100vw)]"
|
|
1210
|
-
}
|
|
1211
|
-
],
|
|
1212
|
-
defaultVariants: {
|
|
1213
|
-
matchTriggerWidth: false,
|
|
1214
|
-
enforceBoundaries: false,
|
|
1215
|
-
inset: false,
|
|
1216
|
-
intent: "surface",
|
|
1217
|
-
elevation: "popover"
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
);
|
|
1221
|
-
|
|
1222
|
-
// src/popover/PopoverContent.tsx
|
|
1223
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1224
|
-
var Content = ({
|
|
1225
|
-
// Spark props
|
|
1226
|
-
className,
|
|
1227
|
-
children,
|
|
1228
|
-
matchTriggerWidth = false,
|
|
1229
|
-
// Radix props
|
|
1230
|
-
align = "center",
|
|
1231
|
-
arrowPadding = 16,
|
|
1232
|
-
// In order not to overlap the arrow on the rounded corners of the popover.
|
|
1233
|
-
asChild = false,
|
|
1234
|
-
avoidCollisions = true,
|
|
1235
|
-
"aria-labelledby": ariaLabelledBy,
|
|
1236
|
-
collisionBoundary,
|
|
1237
|
-
collisionPadding = 0,
|
|
1238
|
-
hideWhenDetached = false,
|
|
1239
|
-
side = "bottom",
|
|
1240
|
-
sideOffset = 8,
|
|
1241
|
-
sticky = "partial",
|
|
1242
|
-
inset = false,
|
|
1243
|
-
elevation = "popover",
|
|
1244
|
-
ref,
|
|
1245
|
-
...rest
|
|
1246
|
-
}) => {
|
|
1247
|
-
const { headerId, intent } = usePopover();
|
|
1248
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1249
|
-
import_radix_ui6.Popover.Content,
|
|
1250
|
-
{
|
|
1251
|
-
"aria-labelledby": headerId || ariaLabelledBy,
|
|
1252
|
-
className: styles({
|
|
1253
|
-
enforceBoundaries: !!collisionBoundary,
|
|
1254
|
-
matchTriggerWidth,
|
|
1255
|
-
inset,
|
|
1256
|
-
elevation,
|
|
1257
|
-
intent,
|
|
1258
|
-
className
|
|
1259
|
-
}),
|
|
1260
|
-
"data-spark-component": "popover-content",
|
|
1261
|
-
ref,
|
|
1262
|
-
...{
|
|
1263
|
-
align,
|
|
1264
|
-
arrowPadding,
|
|
1265
|
-
asChild,
|
|
1266
|
-
avoidCollisions,
|
|
1267
|
-
collisionBoundary,
|
|
1268
|
-
collisionPadding,
|
|
1269
|
-
hideWhenDetached,
|
|
1270
|
-
side,
|
|
1271
|
-
sideOffset,
|
|
1272
|
-
sticky
|
|
1273
|
-
},
|
|
1274
|
-
...rest,
|
|
1275
|
-
children
|
|
1276
|
-
}
|
|
1277
|
-
);
|
|
1278
|
-
};
|
|
1279
|
-
Content.displayName = "Popover.Content";
|
|
1280
|
-
|
|
1281
|
-
// src/popover/PopoverHeader.tsx
|
|
1282
|
-
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1283
|
-
var import_react5 = require("react");
|
|
1284
|
-
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1285
|
-
var Header = ({ children, className, ref, ...rest }) => {
|
|
1286
|
-
const id = `${ID_PREFIX}-header-${(0, import_react5.useId)()}`;
|
|
1287
|
-
const { setHeaderId } = usePopover();
|
|
1288
|
-
(0, import_react5.useLayoutEffect)(() => {
|
|
1289
|
-
setHeaderId(id);
|
|
1290
|
-
return () => setHeaderId(null);
|
|
1291
|
-
}, [id, setHeaderId]);
|
|
1292
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("header", { id, ref, className: (0, import_class_variance_authority9.cx)("mb-md text-headline-2", className), ...rest, children });
|
|
1293
|
-
};
|
|
1294
|
-
Header.displayName = "Popover.Header";
|
|
1295
|
-
|
|
1296
|
-
// src/popover/PopoverPortal.tsx
|
|
1297
|
-
var import_radix_ui7 = require("radix-ui");
|
|
1298
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1299
|
-
var Portal = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_radix_ui7.Popover.Portal, { ...rest, children });
|
|
1300
|
-
Portal.displayName = "Popover.Portal";
|
|
1301
|
-
|
|
1302
|
-
// src/popover/PopoverTrigger.tsx
|
|
1303
|
-
var import_radix_ui8 = require("radix-ui");
|
|
1304
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1305
|
-
var Trigger = ({ asChild = false, children, ref, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1306
|
-
import_radix_ui8.Popover.Trigger,
|
|
1307
|
-
{
|
|
1308
|
-
"data-spark-component": "popover-trigger",
|
|
1309
|
-
ref,
|
|
1310
|
-
asChild,
|
|
1311
|
-
...rest,
|
|
1312
|
-
children
|
|
1313
|
-
}
|
|
1314
|
-
);
|
|
1315
|
-
Trigger.displayName = "Popover.Trigger";
|
|
1316
|
-
|
|
1317
|
-
// src/popover/index.ts
|
|
1318
|
-
var Popover2 = Object.assign(Popover, {
|
|
1319
|
-
Anchor,
|
|
1320
|
-
Arrow,
|
|
1321
|
-
CloseButton,
|
|
1322
|
-
Content,
|
|
1323
|
-
Header,
|
|
1324
|
-
Portal,
|
|
1325
|
-
Trigger
|
|
1326
|
-
});
|
|
1327
|
-
Popover2.displayName = "Popover";
|
|
1328
|
-
Anchor.displayName = "Popover.Anchor";
|
|
1329
|
-
Arrow.displayName = "Popover.Arrow";
|
|
1330
|
-
CloseButton.displayName = "Popover.CloseButton";
|
|
1331
|
-
Content.displayName = "Popover.Content";
|
|
1332
|
-
Header.displayName = "Popover.Header";
|
|
1333
|
-
Portal.displayName = "Popover.Portal";
|
|
1334
|
-
Trigger.displayName = "Popover.Trigger";
|
|
1335
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1336
|
-
0 && (module.exports = {
|
|
1337
|
-
Popover
|
|
1338
|
-
});
|
|
1339
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),Y=require("react"),U=require("../index-Dkj4QRX8.js"),ne=require("../index-1WIgmEZh.js"),Ye=require("../index-DO-atGp-.js"),ee=require("../index-tXqxYME3.js"),Ke=require("../index-CDBBjNXc.js"),p=require("../floating-ui.utils.dom-CCN4I08l.js"),zt=require("react-dom"),oe=require("../index-ChLwd62c.js"),je=require("../index-MQ0c3ZX_.js"),qt=require("../index-Cjj_rUPu.js"),Vt=require("../index-DKuHkHFX.js"),Ue=require("../index-MHF2-CYX.js"),de=require("../index-DnaHaH_0.js"),Xt=require("@spark-ui/icons/Close"),Yt=require("../Icon-Bf0XrmiR.js"),Kt=require("../IconButton-Bf-EDzpI.js");function Ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=Ge(Y),Ut=Ge(zt),Gt=["top","right","bottom","left"],V=Math.min,H=Math.max,ae=Math.round,se=Math.floor,B=e=>({x:e,y:e}),Zt={left:"right",right:"left",bottom:"top",top:"bottom"},Jt={start:"end",end:"start"};function xe(e,t,n){return H(e,V(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function we(e){return e==="x"?"y":"x"}function ye(e){return e==="y"?"height":"width"}const Qt=new Set(["top","bottom"]);function I(e){return Qt.has(q(e))?"y":"x"}function Pe(e){return we(I(e))}function en(e,t,n){n===void 0&&(n=!1);const o=J(e),r=Pe(e),i=ye(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=le(s)),[s,le(s)]}function tn(e){const t=le(e);return[ve(e),t,ve(t)]}function ve(e){return e.replace(/start|end/g,t=>Jt[t])}const Fe=["left","right"],ke=["right","left"],nn=["top","bottom"],on=["bottom","top"];function rn(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:Fe:t?Fe:ke;case"left":case"right":return t?nn:on;default:return[]}}function sn(e,t,n,o){const r=J(e);let i=rn(q(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ve)))),i}function le(e){return e.replace(/left|right|bottom|top/g,t=>Zt[t])}function cn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ze(e){return typeof e!="number"?cn(e):{top:e,right:e,bottom:e,left:e}}function fe(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function He(e,t,n){let{reference:o,floating:r}=e;const i=I(t),s=Pe(t),c=ye(s),a=q(t),l=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(a){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(J(t)){case"start":d[s]-=m*(n&&l?-1:1);break;case"end":d[s]+=m*(n&&l?-1:1);break}return d}const an=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:u}=He(l,o,a),m=o,d={},g=0;for(let h=0;h<c.length;h++){const{name:w,fn:x}=c[h],{x:P,y:b,data:A,reset:C}=await x({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:l,platform:s,elements:{reference:e,floating:t}});f=P??f,u=b??u,d={...d,[w]:{...d[w],...A}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:f,y:u}=He(l,m,a)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function te(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=z(t,e),g=Ze(d),w=c[m?u==="floating"?"reference":"floating":u],x=fe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),P=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),A=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:b,strategy:a}):P);return{top:(x.top-C.top+g.top)/A.y,bottom:(C.bottom-x.bottom+g.bottom)/A.y,left:(x.left-C.left+g.left)/A.x,right:(C.right-x.right+g.right)/A.x}}const ln=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:a}=t,{element:l,padding:f=0}=z(e,t)||{};if(l==null)return{};const u=Ze(f),m={x:n,y:o},d=Pe(r),g=ye(d),h=await s.getDimensions(l),w=d==="y",x=w?"top":"left",P=w?"bottom":"right",b=w?"clientHeight":"clientWidth",A=i.reference[g]+i.reference[d]-m[d]-i.floating[g],C=m[d]-i.reference[d],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let O=E?E[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(E)))&&(O=c.floating[b]||i.floating[g]);const L=A/2-C/2,F=O/2-h[g]/2-1,D=V(u[x],F),$=V(u[P],F),j=D,N=O-h[g]-$,S=O/2-h[g]/2+L,k=xe(j,S,N),T=!a.arrow&&J(r)!=null&&S!==k&&i.reference[g]/2-(S<j?D:$)-h[g]/2<0,M=T?S<j?S-j:S-N:0;return{[d]:m[d]+M,data:{[d]:k,centerOffset:S-k-M,...T&&{alignmentOffset:M}},reset:T}}}),fn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...w}=z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=q(r),P=I(c),b=q(c)===c,A=await(a.isRTL==null?void 0:a.isRTL(l.floating)),C=m||(b||!h?[le(c)]:tn(c)),E=g!=="none";!m&&E&&C.push(...sn(c,h,g,A));const O=[c,...C],L=await te(t,w),F=[];let D=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(L[x]),u){const S=en(r,s,A);F.push(L[S[0]],L[S[1]])}if(D=[...D,{placement:r,overflows:F}],!F.every(S=>S<=0)){var $,j;const S=((($=i.flip)==null?void 0:$.index)||0)+1,k=O[S];if(k&&(!(u==="alignment"?P!==I(k):!1)||D.every(R=>I(R.placement)===P?R.overflows[0]>0:!0)))return{data:{index:S,overflows:D},reset:{placement:k}};let T=(j=D.filter(M=>M.overflows[0]<=0).sort((M,R)=>M.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!T)switch(d){case"bestFit":{var N;const M=(N=D.filter(R=>{if(E){const _=I(R.placement);return _===P||_==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(_=>_>0).reduce((_,W)=>_+W,0)]).sort((R,_)=>R[1]-_[1])[0])==null?void 0:N[0];M&&(T=M);break}case"initialPlacement":T=c;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return Gt.some(t=>e[t]>=0)}const un=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=z(e,t);switch(o){case"referenceHidden":{const i=await te(t,{...r,elementContext:"reference"}),s=We(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ie(s)}}}case"escaped":{const i=await te(t,{...r,altBoundary:!0}),s=We(i,n.floating);return{data:{escapedOffsets:s,escaped:Ie(s)}}}default:return{}}}}},Je=new Set(["left","top"]);async function dn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=q(n),c=J(n),a=I(n)==="y",l=Je.has(s)?-1:1,f=i&&a?-1:1,u=z(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(d=c==="end"?g*-1:g),a?{x:d*f,y:m*l}:{x:m*l,y:d*f}}const pn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,a=await dn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},mn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x,y:P}=w;return{x,y:P}}},...a}=z(e,t),l={x:n,y:o},f=await te(t,a),u=I(q(r)),m=we(u);let d=l[m],g=l[u];if(i){const w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",P=d+f[w],b=d-f[x];d=xe(P,d,b)}if(s){const w=u==="y"?"top":"left",x=u==="y"?"bottom":"right",P=g+f[w],b=g-f[x];g=xe(P,g,b)}const h=c.fn({...t,[m]:d,[u]:g});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},gn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:a=!0,crossAxis:l=!0}=z(e,t),f={x:n,y:o},u=I(r),m=we(u);let d=f[m],g=f[u];const h=z(c,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const b=m==="y"?"height":"width",A=i.reference[m]-i.floating[b]+w.mainAxis,C=i.reference[m]+i.reference[b]-w.mainAxis;d<A?d=A:d>C&&(d=C)}if(l){var x,P;const b=m==="y"?"width":"height",A=Je.has(q(r)),C=i.reference[u]-i.floating[b]+(A&&((x=s.offset)==null?void 0:x[u])||0)+(A?0:w.crossAxis),E=i.reference[u]+i.reference[b]+(A?0:((P=s.offset)==null?void 0:P[u])||0)-(A?w.crossAxis:0);g<C?g=C:g>E&&(g=E)}return{[m]:d,[u]:g}}}},hn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:c}=t,{apply:a=()=>{},...l}=z(e,t),f=await te(t,l),u=q(r),m=J(r),d=I(r)==="y",{width:g,height:h}=i.floating;let w,x;u==="top"||u==="bottom"?(w=u,x=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(x=u,w=m==="end"?"top":"bottom");const P=h-f.top-f.bottom,b=g-f.left-f.right,A=V(h-f[w],P),C=V(g-f[x],b),E=!t.middlewareData.shift;let O=A,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(O=P),E&&!m){const D=H(f.left,0),$=H(f.right,0),j=H(f.top,0),N=H(f.bottom,0);d?L=g-2*(D!==0||$!==0?D+$:H(f.left,f.right)):O=h-2*(j!==0||N!==0?j+N:H(f.top,f.bottom))}await a({...t,availableWidth:L,availableHeight:O});const F=await s.getDimensions(c.floating);return g!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function Qe(e){const t=p.getComputedStyle(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=p.isHTMLElement(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=ae(n)!==i||ae(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function be(e){return p.isElement(e)?e:e.contextElement}function G(e){const t=be(e);if(!p.isHTMLElement(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Qe(t);let s=(i?ae(n.width):n.width)/o,c=(i?ae(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const xn=B(0);function et(e){const t=p.getWindow(e);return!p.isWebKit()||!t.visualViewport?xn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==p.getWindow(e)?!1:t}function K(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=be(e);let s=B(1);t&&(o?p.isElement(o)&&(s=G(o)):s=G(e));const c=vn(i,n,o)?et(i):B(0);let a=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=p.getWindow(i),d=o&&p.isElement(o)?p.getWindow(o):o;let g=m,h=p.getFrameElement(g);for(;h&&o&&d!==g;){const w=G(h),x=h.getBoundingClientRect(),P=p.getComputedStyle(h),b=x.left+(h.clientLeft+parseFloat(P.paddingLeft))*w.x,A=x.top+(h.clientTop+parseFloat(P.paddingTop))*w.y;a*=w.x,l*=w.y,f*=w.x,u*=w.y,a+=b,l+=A,g=p.getWindow(h),h=p.getFrameElement(g)}}return fe({width:f,height:u,x:a,y:l})}function pe(e,t){const n=p.getNodeScroll(e).scrollLeft;return t?t.left+n:K(p.getDocumentElement(e)).left+n}function tt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-pe(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function wn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=p.getDocumentElement(o),c=t?p.isTopLayer(t.floating):!1;if(o===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},l=B(1);const f=B(0),u=p.isHTMLElement(o);if((u||!u&&!i)&&((p.getNodeName(o)!=="body"||p.isOverflowElement(s))&&(a=p.getNodeScroll(o)),p.isHTMLElement(o))){const d=K(o);l=G(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?tt(s,a):B(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-a.scrollTop*l.y+f.y+m.y}}function yn(e){return Array.from(e.getClientRects())}function Pn(e){const t=p.getDocumentElement(e),n=p.getNodeScroll(e),o=e.ownerDocument.body,r=H(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=H(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+pe(e);const c=-n.scrollTop;return p.getComputedStyle(o).direction==="rtl"&&(s+=H(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Be=25;function bn(e,t){const n=p.getWindow(e),o=p.getDocumentElement(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,a=0;if(r){i=r.width,s=r.height;const f=p.isWebKit();(!f||f&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}const l=pe(o);if(l<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(o.clientWidth-u.clientWidth-d);g<=Be&&(i-=g)}else l<=Be&&(i+=l);return{width:i,height:s,x:c,y:a}}const An=new Set(["absolute","fixed"]);function Cn(e,t){const n=K(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=p.isHTMLElement(e)?G(e):B(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=r*i.x,l=o*i.y;return{width:s,height:c,x:a,y:l}}function ze(e,t,n){let o;if(t==="viewport")o=bn(e,n);else if(t==="document")o=Pn(p.getDocumentElement(e));else if(p.isElement(t))o=Cn(t,n);else{const r=et(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return fe(o)}function nt(e,t){const n=p.getParentNode(e);return n===t||!p.isElement(n)||p.isLastTraversableNode(n)?!1:p.getComputedStyle(n).position==="fixed"||nt(n,t)}function Rn(e,t){const n=t.get(e);if(n)return n;let o=p.getOverflowAncestors(e,[],!1).filter(c=>p.isElement(c)&&p.getNodeName(c)!=="body"),r=null;const i=p.getComputedStyle(e).position==="fixed";let s=i?p.getParentNode(e):e;for(;p.isElement(s)&&!p.isLastTraversableNode(s);){const c=p.getComputedStyle(s),a=p.isContainingBlock(s);!a&&c.position==="fixed"&&(r=null),(i?!a&&!r:!a&&c.position==="static"&&!!r&&An.has(r.position)||p.isOverflowElement(s)&&!a&&nt(e,s))?o=o.filter(f=>f!==s):r=c,s=p.getParentNode(s)}return t.set(e,o),o}function On(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?p.isTopLayer(t)?[]:Rn(t,this._c):[].concat(n),o],c=s[0],a=s.reduce((l,f)=>{const u=ze(t,f,r);return l.top=H(u.top,l.top),l.right=V(u.right,l.right),l.bottom=V(u.bottom,l.bottom),l.left=H(u.left,l.left),l},ze(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function En(e){const{width:t,height:n}=Qe(e);return{width:t,height:n}}function Sn(e,t,n){const o=p.isHTMLElement(t),r=p.getDocumentElement(t),i=n==="fixed",s=K(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=B(0);function l(){a.x=pe(r)}if(o||!o&&!i)if((p.getNodeName(t)!=="body"||p.isOverflowElement(r))&&(c=p.getNodeScroll(t)),o){const d=K(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else r&&l();i&&!o&&r&&l();const f=r&&!o&&!i?tt(r,c):B(0),u=s.left+c.scrollLeft-a.x-f.x,m=s.top+c.scrollTop-a.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function ge(e){return p.getComputedStyle(e).position==="static"}function qe(e,t){if(!p.isHTMLElement(e)||p.getComputedStyle(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return p.getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function ot(e,t){const n=p.getWindow(e);if(p.isTopLayer(e))return n;if(!p.isHTMLElement(e)){let r=p.getParentNode(e);for(;r&&!p.isLastTraversableNode(r);){if(p.isElement(r)&&!ge(r))return r;r=p.getParentNode(r)}return n}let o=qe(e,t);for(;o&&p.isTableElement(o)&&ge(o);)o=qe(o,t);return o&&p.isLastTraversableNode(o)&&ge(o)&&!p.isContainingBlock(o)?n:o||p.getContainingBlock(e)||n}const Nn=async function(e){const t=this.getOffsetParent||ot,n=this.getDimensions,o=await n(e.floating);return{reference:Sn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Tn(e){return p.getComputedStyle(e).direction==="rtl"}const Mn={convertOffsetParentRelativeRectToViewportRelativeRect:wn,getDocumentElement:p.getDocumentElement,getClippingRect:On,getOffsetParent:ot,getElementRects:Nn,getClientRects:yn,getDimensions:En,getScale:G,isElement:p.isElement,isRTL:Tn};function rt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dn(e,t){let n=null,o;const r=p.getDocumentElement(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),i();const l=e.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=l;if(c||t(),!m||!d)return;const g=se(u),h=se(r.clientWidth-(f+m)),w=se(r.clientHeight-(u+d)),x=se(f),b={rootMargin:-g+"px "+-h+"px "+-w+"px "+-x+"px",threshold:H(0,V(1,a))||1};let A=!0;function C(E){const O=E[0].intersectionRatio;if(O!==a){if(!A)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!rt(l,e.getBoundingClientRect())&&s(),A=!1}try{n=new IntersectionObserver(C,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return s(!0),i}function Ln(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=be(e),f=r||i?[...l?p.getOverflowAncestors(l):[],...p.getOverflowAncestors(t)]:[];f.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const u=l&&c?Dn(l,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(x=>{let[P]=x;P&&P.target===l&&d&&(d.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(t)})),n()}),l&&!a&&d.observe(l),d.observe(t));let g,h=a?K(e):null;a&&w();function w(){const x=K(e);h&&!rt(h,x)&&n(),h=x,g=requestAnimationFrame(w)}return n(),()=>{var x;f.forEach(P=>{r&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),u?.(),(x=d)==null||x.disconnect(),d=null,a&&cancelAnimationFrame(g)}}const _n=pn,$n=mn,jn=fn,Fn=hn,kn=un,Ve=ln,Hn=gn,Wn=(e,t,n)=>{const o=new Map,r={platform:Mn,...n},i={...r.platform,_c:o};return an(e,t,{...r,platform:i})};var In=typeof document<"u",Bn=function(){},ce=In?Y.useLayoutEffect:Bn;function ue(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ue(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ue(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function it(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xe(e,t){const n=it(e);return Math.round(t*n)/n}function he(e){const t=v.useRef(e);return ce(()=>{t.current=e}),t}function zn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:a,open:l}=e,[f,u]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,d]=v.useState(o);ue(m,o)||d(o);const[g,h]=v.useState(null),[w,x]=v.useState(null),P=v.useCallback(R=>{R!==E.current&&(E.current=R,h(R))},[]),b=v.useCallback(R=>{R!==O.current&&(O.current=R,x(R))},[]),A=i||g,C=s||w,E=v.useRef(null),O=v.useRef(null),L=v.useRef(f),F=a!=null,D=he(a),$=he(r),j=he(l),N=v.useCallback(()=>{if(!E.current||!O.current)return;const R={placement:t,strategy:n,middleware:m};$.current&&(R.platform=$.current),Wn(E.current,O.current,R).then(_=>{const W={..._,isPositioned:j.current!==!1};S.current&&!ue(L.current,W)&&(L.current=W,Ut.flushSync(()=>{u(W)}))})},[m,t,n,$,j]);ce(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[l]);const S=v.useRef(!1);ce(()=>(S.current=!0,()=>{S.current=!1}),[]),ce(()=>{if(A&&(E.current=A),C&&(O.current=C),A&&C){if(D.current)return D.current(A,C,N);N()}},[A,C,N,D,F]);const k=v.useMemo(()=>({reference:E,floating:O,setReference:P,setFloating:b}),[P,b]),T=v.useMemo(()=>({reference:A,floating:C}),[A,C]),M=v.useMemo(()=>{const R={position:n,left:0,top:0};if(!T.floating)return R;const _=Xe(T.floating,f.x),W=Xe(T.floating,f.y);return c?{...R,transform:"translate("+_+"px, "+W+"px)",...it(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:W}},[n,c,T.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:N,refs:k,elements:T,floatingStyles:M}),[f,N,k,T,M])}const qn=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Ve({element:o.current,padding:r}).fn(n):{}:o?Ve({element:o,padding:r}).fn(n):{}}}},Vn=(e,t)=>({..._n(e),options:[e,t]}),Xn=(e,t)=>({...$n(e),options:[e,t]}),Yn=(e,t)=>({...Hn(e),options:[e,t]}),Kn=(e,t)=>({...jn(e),options:[e,t]}),Un=(e,t)=>({...Fn(e),options:[e,t]}),Gn=(e,t)=>({...kn(e),options:[e,t]}),Zn=(e,t)=>({...qn(e),options:[e,t]});var Jn="Arrow",st=v.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return y.jsx(oe.Primitive.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});st.displayName=Jn;var Qn=st,Ae="Popper",[ct,at]=Ye.createContextScope(Ae),[eo,lt]=ct(Ae),ft=e=>{const{__scopePopper:t,children:n}=e,[o,r]=v.useState(null);return y.jsx(eo,{scope:t,anchor:o,onAnchorChange:r,children:n})};ft.displayName=Ae;var ut="PopperAnchor",dt=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=lt(ut,n),s=v.useRef(null),c=ne.useComposedRefs(t,s),a=v.useRef(null);return v.useEffect(()=>{const l=a.current;a.current=o?.current||s.current,l!==a.current&&i.onAnchorChange(a.current)}),o?null:y.jsx(oe.Primitive.div,{...r,ref:c})});dt.displayName=ut;var Ce="PopperContent",[to,no]=ct(Ce),pt=v.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:a=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:g,...h}=e,w=lt(Ce,n),[x,P]=v.useState(null),b=ne.useComposedRefs(t,Q=>P(Q)),[A,C]=v.useState(null),E=qt.useSize(A),O=E?.width??0,L=E?.height??0,F=o+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(l)?l:[l],j=$.length>0,N={padding:D,boundary:$.filter(ro),altBoundary:j},{refs:S,floatingStyles:k,placement:T,isPositioned:M,middlewareData:R}=zn({strategy:"fixed",placement:F,whileElementsMounted:(...Q)=>Ln(...Q,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[Vn({mainAxis:r+L,alignmentAxis:s}),a&&Xn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Yn():void 0,...N}),a&&Kn({...N}),Un({...N,apply:({elements:Q,rects:$e,availableWidth:Ht,availableHeight:Wt})=>{const{width:It,height:Bt}=$e.reference,ie=Q.floating.style;ie.setProperty("--radix-popper-available-width",`${Ht}px`),ie.setProperty("--radix-popper-available-height",`${Wt}px`),ie.setProperty("--radix-popper-anchor-width",`${It}px`),ie.setProperty("--radix-popper-anchor-height",`${Bt}px`)}}),A&&Zn({element:A,padding:c}),io({arrowWidth:O,arrowHeight:L}),m&&Gn({strategy:"referenceHidden",...N})]}),[_,W]=ht(T),_e=Ke.useCallbackRef(g);je.useLayoutEffect2(()=>{M&&_e?.()},[M,_e]);const _t=R.arrow?.x,$t=R.arrow?.y,jt=R.arrow?.centerOffset!==0,[Ft,kt]=v.useState();return je.useLayoutEffect2(()=>{x&&kt(window.getComputedStyle(x).zIndex)},[x]),y.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:M?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ft,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(to,{scope:n,placedSide:_,onArrowChange:C,arrowX:_t,arrowY:$t,shouldHideArrow:jt,children:y.jsx(oe.Primitive.div,{"data-side":_,"data-align":W,...h,ref:b,style:{...h.style,animation:M?void 0:"none"}})})})});pt.displayName=Ce;var mt="PopperArrow",oo={top:"bottom",right:"left",bottom:"top",left:"right"},gt=v.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=no(mt,o),s=oo[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(Qn,{...r,ref:n,style:{...r.style,display:"block"}})})});gt.displayName=mt;function ro(e){return e!==null}var io=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[l,f]=ht(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+a/2;let g="",h="";return l==="bottom"?(g=s?u:`${m}px`,h=`${-a}px`):l==="top"?(g=s?u:`${m}px`,h=`${o.floating.height+a}px`):l==="right"?(g=`${-a}px`,h=s?u:`${d}px`):l==="left"&&(g=`${o.floating.width+a}px`,h=s?u:`${d}px`),{data:{x:g,y:h}}}});function ht(e){const[t,n="center"]=e.split("-");return[t,n]}var so=ft,xt=dt,co=pt,ao=gt,me="Popover",[vt]=Ye.createContextScope(me,[at]),re=at(),[lo,X]=vt(me),wt=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,c=re(t),a=v.useRef(null),[l,f]=v.useState(!1),[u,m]=U.useControllableState({prop:o,defaultProp:r??!1,onChange:i,caller:me});return y.jsx(so,{...c,children:y.jsx(lo,{scope:t,contentId:Ke.useId(),triggerRef:a,open:u,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(d=>!d),[m]),hasCustomAnchor:l,onCustomAnchorAdd:v.useCallback(()=>f(!0),[]),onCustomAnchorRemove:v.useCallback(()=>f(!1),[]),modal:s,children:n})})};wt.displayName=me;var yt="PopoverAnchor",Pt=v.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=X(yt,n),i=re(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=r;return v.useEffect(()=>(s(),()=>c()),[s,c]),y.jsx(xt,{...i,...o,ref:t})});Pt.displayName=yt;var bt="PopoverTrigger",At=v.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=X(bt,n),i=re(n),s=ne.useComposedRefs(t,r.triggerRef),c=y.jsx(oe.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Tt(r.open),...o,ref:s,onClick:U.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:y.jsx(xt,{asChild:!0,...i,children:c})});At.displayName=bt;var Re="PopoverPortal",[fo,uo]=vt(Re,{forceMount:void 0}),Ct=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,i=X(Re,t);return y.jsx(fo,{scope:t,forceMount:n,children:y.jsx(Ue.Presence,{present:n||i.open,children:y.jsx(Vt.Portal,{asChild:!0,container:r,children:o})})})};Ct.displayName=Re;var Z="PopoverContent",Rt=v.forwardRef((e,t)=>{const n=uo(Z,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,i=X(Z,e.__scopePopover);return y.jsx(Ue.Presence,{present:o||i.open,children:i.modal?y.jsx(mo,{...r,ref:t}):y.jsx(go,{...r,ref:t})})});Rt.displayName=Z;var po=ne.createSlot("PopoverContent.RemoveScroll"),mo=v.forwardRef((e,t)=>{const n=X(Z,e.__scopePopover),o=v.useRef(null),r=ne.useComposedRefs(t,o),i=v.useRef(!1);return v.useEffect(()=>{const s=o.current;if(s)return ee.hideOthers(s)},[]),y.jsx(ee.ReactRemoveScroll,{as:po,allowPinchZoom:!0,children:y.jsx(Ot,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U.composeEventHandlers(e.onCloseAutoFocus,s=>{s.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:U.composeEventHandlers(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0,l=c.button===2||a;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:U.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),go=v.forwardRef((e,t)=>{const n=X(Z,e.__scopePopover),o=v.useRef(!1),r=v.useRef(!1);return y.jsx(Ot,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(o.current||n.triggerRef.current?.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Ot=v.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:f,...u}=e,m=X(Z,n),d=re(n);return ee.useFocusGuards(),y.jsx(ee.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:y.jsx(ee.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:a,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:y.jsx(co,{"data-state":Tt(m.open),role:"dialog",id:m.contentId,...d,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Et="PopoverClose",St=v.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=X(Et,n);return y.jsx(oe.Primitive.button,{type:"button",...o,ref:t,onClick:U.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});St.displayName=Et;var ho="PopoverArrow",Nt=v.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=re(n);return y.jsx(ao,{...r,...o,ref:t})});Nt.displayName=ho;function Tt(e){return e?"open":"closed"}var xo=wt,vo=Pt,wo=At,yo=Ct,Po=Rt,bo=St,Ao=Nt;const Mt=Y.createContext(null),Co=":popover",Ro=({children:e,intent:t})=>{const[n,o]=Y.useState(null);return y.jsx(Mt.Provider,{value:{headerId:n,setHeaderId:o,intent:t},children:e})},Oe=()=>{const e=Y.useContext(Mt);if(!e)throw Error("usePopover must be used within a Popover provider");return e},Dt=({children:e,intent:t="surface",modal:n=!1,...o})=>y.jsx(Ro,{intent:t,children:y.jsx(xo,{"data-spark-component":"popover",modal:n,...o,children:e})});Dt.displayName="Popover";const Ee=({asChild:e=!1,children:t,ref:n,...o})=>y.jsx(vo,{"data-spark-component":"popover-anchor",ref:n,asChild:e,...o,children:t});Ee.displayName="Popover.Anchor";const Se=({asChild:e=!1,width:t=16,height:n=8,className:o,ref:r,...i})=>{const{intent:s}=Oe(),c=de.cva("visible",{variants:{intent:{surface:"fill-surface",main:"fill-main-container",support:"fill-support-container",accent:"fill-accent-container",basic:"fill-basic-container",success:"fill-success-container",alert:"fill-alert-container",danger:"fill-error-container",info:"fill-info-container",neutral:"fill-neutral-container"}},defaultVariants:{intent:"surface"}});return y.jsx(Ao,{"data-spark-component":"popover-arrow",ref:r,className:c({intent:s,className:o}),asChild:e,width:t,height:n,...i})};Se.displayName="Popover.Arrow";const Ne=({"aria-label":e,className:t,ref:n,...o})=>y.jsx(bo,{"data-spark-component":"popover-close-button",ref:n,className:de.cx("right-lg top-md absolute",t),asChild:!0,...o,children:y.jsx(Kt.IconButton,{size:"sm",intent:"neutral",design:"ghost","aria-label":e,children:y.jsx(Yt.Icon,{children:y.jsx(Xt.Close,{})})})});Ne.displayName="Popover.CloseButton";const Oo=de.cva(["rounded-md","shadow-sm","focus-visible:outline-hidden focus-visible:u-outline","max-h-(--radix-popper-available-height) overflow-y-auto"],{variants:{intent:{surface:"bg-surface text-on-surface",main:"bg-main-container text-on-main-container",support:"bg-support-container text-on-support-container",accent:"bg-accent-container text-on-accent-container",basic:"bg-basic-container text-on-basic-container",success:"bg-success-container text-on-success-container",alert:"bg-alert-container text-on-alert-container",danger:"bg-error-container text-on-error-container",info:"bg-info-container text-on-info-container",neutral:"bg-neutral-container text-on-neutral-container"},matchTriggerWidth:{true:"w-(--radix-popper-anchor-width)"},enforceBoundaries:{true:["max-w-(--radix-popper-available-width)"]},inset:{true:"overflow-hidden",false:"p-lg"},elevation:{dropdown:"z-dropdown",popover:"z-popover"}},compoundVariants:[{inset:!1,class:"has-data-[spark-component=popover-close-button]:pr-3xl"},{enforceBoundaries:!1,matchTriggerWidth:!1,class:"max-w-[min(var(--spacing-sz-384),100vw)]"}],defaultVariants:{matchTriggerWidth:!1,enforceBoundaries:!1,inset:!1,intent:"surface",elevation:"popover"}}),Te=({className:e,children:t,matchTriggerWidth:n=!1,align:o="center",arrowPadding:r=16,asChild:i=!1,avoidCollisions:s=!0,"aria-labelledby":c,collisionBoundary:a,collisionPadding:l=0,hideWhenDetached:f=!1,side:u="bottom",sideOffset:m=8,sticky:d="partial",inset:g=!1,elevation:h="popover",ref:w,...x})=>{const{headerId:P,intent:b}=Oe();return y.jsx(Po,{"aria-labelledby":P||c,className:Oo({enforceBoundaries:!!a,matchTriggerWidth:n,inset:g,elevation:h,intent:b,className:e}),"data-spark-component":"popover-content",ref:w,align:o,arrowPadding:r,asChild:i,avoidCollisions:s,collisionBoundary:a,collisionPadding:l,hideWhenDetached:f,side:u,sideOffset:m,sticky:d,...x,children:t})};Te.displayName="Popover.Content";const Me=({children:e,className:t,ref:n,...o})=>{const r=`${Co}-header-${Y.useId()}`,{setHeaderId:i}=Oe();return Y.useLayoutEffect(()=>(i(r),()=>i(null)),[r,i]),y.jsx("header",{id:r,ref:n,className:de.cx("mb-md text-headline-2",t),...o,children:e})};Me.displayName="Popover.Header";const De=({children:e,...t})=>y.jsx(yo,{...t,children:e});De.displayName="Popover.Portal";const Le=({asChild:e=!1,children:t,ref:n,...o})=>y.jsx(wo,{"data-spark-component":"popover-trigger",ref:n,asChild:e,...o,children:t});Le.displayName="Popover.Trigger";const Lt=Object.assign(Dt,{Anchor:Ee,Arrow:Se,CloseButton:Ne,Content:Te,Header:Me,Portal:De,Trigger:Le});Lt.displayName="Popover";Ee.displayName="Popover.Anchor";Se.displayName="Popover.Arrow";Ne.displayName="Popover.CloseButton";Te.displayName="Popover.Content";Me.displayName="Popover.Header";De.displayName="Popover.Portal";Le.displayName="Popover.Trigger";exports.Popover=Lt;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|