@getufy/flint-ui-react 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -40
- package/dist/accordion.d.ts +1 -1
- package/dist/alert.d.ts +1 -1
- package/dist/autocomplete.d.ts +1 -1
- package/dist/backdrop.d.ts +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/carousel.d.ts +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.js +2 -2
- package/dist/collapsible.d.ts +1 -1
- package/dist/command.d.ts +2 -2
- package/dist/components/FlintAccordion.d.ts +19 -5
- package/dist/components/FlintAccordion.js +15 -0
- package/dist/components/FlintAccordionActions.d.ts +6 -2
- package/dist/components/FlintAccordionActions.js +12 -0
- package/dist/components/FlintAccordionDetails.d.ts +8 -2
- package/dist/components/FlintAccordionDetails.js +12 -0
- package/dist/components/FlintAccordionSummary.d.ts +11 -5
- package/dist/components/FlintAccordionSummary.js +15 -0
- package/dist/components/FlintAlert.d.ts +21 -5
- package/dist/components/FlintAlert.js +15 -0
- package/dist/components/FlintAppBar.d.ts +16 -2
- package/dist/components/FlintAppBar.js +12 -0
- package/dist/components/FlintAutocomplete.d.ts +22 -5
- package/dist/components/FlintAutocomplete.js +15 -0
- package/dist/components/FlintAvatar.d.ts +13 -2
- package/dist/components/FlintAvatar.js +12 -0
- package/dist/components/FlintBackdrop.d.ts +19 -5
- package/dist/components/FlintBackdrop.js +15 -0
- package/dist/components/FlintBadge.d.ts +18 -2
- package/dist/components/FlintBadge.js +12 -0
- package/dist/components/FlintBottomNavigation.d.ts +16 -5
- package/dist/components/FlintBottomNavigation.js +15 -0
- package/dist/components/FlintBottomNavigationAction.d.ts +17 -2
- package/dist/components/FlintBottomNavigationAction.js +12 -0
- package/dist/components/FlintBox.d.ts +67 -5
- package/dist/components/FlintBox.js +15 -0
- package/dist/components/FlintBreadcrumbs.d.ts +18 -2
- package/dist/components/FlintBreadcrumbs.js +12 -0
- package/dist/components/FlintButton.d.ts +11 -2
- package/dist/components/FlintButton.js +12 -0
- package/dist/components/FlintButtonGroup.d.ts +3 -2
- package/dist/components/FlintButtonGroup.js +12 -0
- package/dist/components/FlintCard.d.ts +5 -2
- package/dist/components/FlintCard.js +12 -0
- package/dist/components/FlintCardActionArea.d.ts +3 -2
- package/dist/components/FlintCardActionArea.js +12 -0
- package/dist/components/FlintCardActions.d.ts +3 -2
- package/dist/components/FlintCardActions.js +12 -0
- package/dist/components/FlintCardContent.d.ts +3 -2
- package/dist/components/FlintCardContent.js +12 -0
- package/dist/components/FlintCardHeader.d.ts +12 -2
- package/dist/components/FlintCardHeader.js +12 -0
- package/dist/components/FlintCardMedia.d.ts +6 -2
- package/dist/components/FlintCardMedia.js +12 -0
- package/dist/components/FlintCarousel.d.ts +24 -5
- package/dist/components/FlintCarousel.js +15 -0
- package/dist/components/FlintCarouselContent.d.ts +9 -2
- package/dist/components/FlintCarouselContent.js +12 -0
- package/dist/components/FlintCarouselItem.d.ts +3 -2
- package/dist/components/FlintCarouselItem.js +12 -0
- package/dist/components/FlintCarouselNext.d.ts +12 -2
- package/dist/components/FlintCarouselNext.js +12 -0
- package/dist/components/FlintCarouselPrevious.d.ts +12 -2
- package/dist/components/FlintCarouselPrevious.js +12 -0
- package/dist/components/FlintCheckbox.d.ts +33 -5
- package/dist/components/FlintCheckbox.js +15 -0
- package/dist/components/FlintChip.d.ts +30 -6
- package/dist/components/FlintChip.js +16 -0
- package/dist/components/FlintCircularProgress.d.ts +18 -2
- package/dist/components/FlintCircularProgress.js +12 -0
- package/dist/components/FlintCollapsible.d.ts +22 -5
- package/dist/components/FlintCollapsible.js +15 -0
- package/dist/components/FlintCollapsibleContent.d.ts +11 -2
- package/dist/components/FlintCollapsibleContent.js +12 -0
- package/dist/components/FlintCollapsibleTrigger.d.ts +13 -2
- package/dist/components/FlintCollapsibleTrigger.js +12 -0
- package/dist/components/FlintCommand.d.ts +11 -5
- package/dist/components/FlintCommand.js +15 -0
- package/dist/components/FlintCommandDialog.d.ts +17 -5
- package/dist/components/FlintCommandDialog.js +15 -0
- package/dist/components/FlintCommandEmpty.d.ts +9 -2
- package/dist/components/FlintCommandEmpty.js +12 -0
- package/dist/components/FlintCommandGroup.d.ts +11 -2
- package/dist/components/FlintCommandGroup.js +12 -0
- package/dist/components/FlintCommandInput.d.ts +11 -2
- package/dist/components/FlintCommandInput.js +12 -0
- package/dist/components/FlintCommandItem.d.ts +22 -5
- package/dist/components/FlintCommandItem.js +15 -0
- package/dist/components/FlintCommandList.d.ts +8 -2
- package/dist/components/FlintCommandList.js +12 -0
- package/dist/components/FlintCommandSeparator.d.ts +6 -2
- package/dist/components/FlintCommandSeparator.js +12 -0
- package/dist/components/FlintCommandShortcut.d.ts +9 -2
- package/dist/components/FlintCommandShortcut.js +12 -0
- package/dist/components/FlintContainer.d.ts +9 -2
- package/dist/components/FlintContainer.js +12 -0
- package/dist/components/FlintCopyButton.d.ts +32 -6
- package/dist/components/FlintCopyButton.js +16 -0
- package/dist/components/FlintDateField.d.ts +34 -6
- package/dist/components/FlintDateField.js +16 -0
- package/dist/components/FlintDatePicker.d.ts +35 -5
- package/dist/components/FlintDatePicker.js +15 -0
- package/dist/components/FlintDatePickerCalendar.d.ts +20 -5
- package/dist/components/FlintDatePickerCalendar.js +15 -0
- package/dist/components/FlintDateRangeCalendar.d.ts +17 -5
- package/dist/components/FlintDateRangeCalendar.js +15 -0
- package/dist/components/FlintDateRangePicker.d.ts +36 -5
- package/dist/components/FlintDateRangePicker.js +15 -0
- package/dist/components/FlintDesktopTimePicker.d.ts +29 -5
- package/dist/components/FlintDesktopTimePicker.js +15 -0
- package/dist/components/FlintDialog.d.ts +23 -5
- package/dist/components/FlintDialog.js +15 -0
- package/dist/components/FlintDialogActions.d.ts +9 -2
- package/dist/components/FlintDialogActions.js +12 -0
- package/dist/components/FlintDialogContent.d.ts +6 -2
- package/dist/components/FlintDialogContent.js +12 -0
- package/dist/components/FlintDialogContentText.d.ts +6 -2
- package/dist/components/FlintDialogContentText.js +12 -0
- package/dist/components/FlintDialogTitle.d.ts +7 -2
- package/dist/components/FlintDialogTitle.js +12 -0
- package/dist/components/FlintDigitalClock.d.ts +17 -5
- package/dist/components/FlintDigitalClock.js +15 -0
- package/dist/components/FlintDivider.d.ts +16 -2
- package/dist/components/FlintDivider.js +12 -0
- package/dist/components/FlintDrawer.d.ts +27 -5
- package/dist/components/FlintDrawer.js +15 -0
- package/dist/components/FlintEmpty.d.ts +10 -2
- package/dist/components/FlintEmpty.js +12 -0
- package/dist/components/FlintEmptyContent.d.ts +8 -2
- package/dist/components/FlintEmptyContent.js +12 -0
- package/dist/components/FlintEmptyDescription.d.ts +8 -2
- package/dist/components/FlintEmptyDescription.js +12 -0
- package/dist/components/FlintEmptyHeader.d.ts +8 -2
- package/dist/components/FlintEmptyHeader.js +12 -0
- package/dist/components/FlintEmptyMedia.d.ts +10 -2
- package/dist/components/FlintEmptyMedia.js +12 -0
- package/dist/components/FlintEmptyTitle.d.ts +8 -2
- package/dist/components/FlintEmptyTitle.js +12 -0
- package/dist/components/FlintFab.d.ts +15 -2
- package/dist/components/FlintFab.js +12 -0
- package/dist/components/FlintFormatDate.d.ts +39 -2
- package/dist/components/FlintFormatDate.js +12 -0
- package/dist/components/FlintFormatNumber.d.ts +39 -2
- package/dist/components/FlintFormatNumber.js +12 -0
- package/dist/components/FlintGrid.d.ts +35 -2
- package/dist/components/FlintGrid.js +12 -0
- package/dist/components/FlintHoverCard.d.ts +23 -2
- package/dist/components/FlintHoverCard.js +16 -0
- package/dist/components/FlintHoverCardContent.d.ts +15 -2
- package/dist/components/FlintHoverCardContent.js +12 -0
- package/dist/components/FlintHoverCardTrigger.d.ts +9 -2
- package/dist/components/FlintHoverCardTrigger.js +12 -0
- package/dist/components/FlintImageComparer.d.ts +19 -5
- package/dist/components/FlintImageComparer.js +15 -0
- package/dist/components/FlintImageList.d.ts +19 -2
- package/dist/components/FlintImageList.js +12 -0
- package/dist/components/FlintImageListItem.d.ts +21 -2
- package/dist/components/FlintImageListItem.js +12 -0
- package/dist/components/FlintImageListItemBar.d.ts +12 -2
- package/dist/components/FlintImageListItemBar.js +12 -0
- package/dist/components/FlintInput.d.ts +44 -6
- package/dist/components/FlintInput.js +16 -0
- package/dist/components/FlintInputOtp.d.ts +36 -6
- package/dist/components/FlintInputOtp.js +16 -0
- package/dist/components/FlintInputOtpGroup.d.ts +9 -2
- package/dist/components/FlintInputOtpGroup.js +12 -0
- package/dist/components/FlintInputOtpSeparator.d.ts +7 -2
- package/dist/components/FlintInputOtpSeparator.js +12 -0
- package/dist/components/FlintInputOtpSlot.d.ts +15 -2
- package/dist/components/FlintInputOtpSlot.js +12 -0
- package/dist/components/FlintItem.d.ts +15 -2
- package/dist/components/FlintItem.js +12 -0
- package/dist/components/FlintItemActions.d.ts +9 -2
- package/dist/components/FlintItemActions.js +12 -0
- package/dist/components/FlintItemContent.d.ts +8 -2
- package/dist/components/FlintItemContent.js +12 -0
- package/dist/components/FlintItemDescription.d.ts +8 -2
- package/dist/components/FlintItemDescription.js +12 -0
- package/dist/components/FlintItemFooter.d.ts +10 -2
- package/dist/components/FlintItemFooter.js +12 -0
- package/dist/components/FlintItemGroup.d.ts +8 -2
- package/dist/components/FlintItemGroup.js +12 -0
- package/dist/components/FlintItemHeader.d.ts +10 -2
- package/dist/components/FlintItemHeader.js +12 -0
- package/dist/components/FlintItemMedia.d.ts +10 -2
- package/dist/components/FlintItemMedia.js +12 -0
- package/dist/components/FlintItemSeparator.d.ts +6 -2
- package/dist/components/FlintItemSeparator.js +12 -0
- package/dist/components/FlintItemTitle.d.ts +8 -2
- package/dist/components/FlintItemTitle.js +12 -0
- package/dist/components/FlintKbd.d.ts +15 -2
- package/dist/components/FlintKbd.js +12 -0
- package/dist/components/FlintKbdGroup.d.ts +9 -2
- package/dist/components/FlintKbdGroup.js +12 -0
- package/dist/components/FlintLinearProgress.d.ts +16 -2
- package/dist/components/FlintLinearProgress.js +12 -0
- package/dist/components/FlintLink.d.ts +28 -2
- package/dist/components/FlintLink.js +12 -0
- package/dist/components/FlintList.d.ts +10 -2
- package/dist/components/FlintList.js +12 -0
- package/dist/components/FlintListItem.d.ts +6 -2
- package/dist/components/FlintListItem.js +12 -0
- package/dist/components/FlintListItemAvatar.d.ts +6 -2
- package/dist/components/FlintListItemAvatar.js +12 -0
- package/dist/components/FlintListItemButton.d.ts +10 -2
- package/dist/components/FlintListItemButton.js +12 -0
- package/dist/components/FlintListItemIcon.d.ts +6 -2
- package/dist/components/FlintListItemIcon.js +12 -0
- package/dist/components/FlintListItemText.d.ts +10 -2
- package/dist/components/FlintListItemText.js +12 -0
- package/dist/components/FlintListSubheader.d.ts +6 -2
- package/dist/components/FlintListSubheader.js +12 -0
- package/dist/components/FlintMenu.d.ts +24 -5
- package/dist/components/FlintMenu.js +15 -0
- package/dist/components/FlintMenuDivider.d.ts +6 -2
- package/dist/components/FlintMenuDivider.js +12 -0
- package/dist/components/FlintMenuGroup.d.ts +11 -2
- package/dist/components/FlintMenuGroup.js +12 -0
- package/dist/components/FlintMenuItem.d.ts +23 -5
- package/dist/components/FlintMenuItem.js +15 -0
- package/dist/components/FlintMenubar.d.ts +17 -2
- package/dist/components/FlintMenubar.js +17 -0
- package/dist/components/FlintMenubarCheckboxItem.d.ts +20 -5
- package/dist/components/FlintMenubarCheckboxItem.js +15 -0
- package/dist/components/FlintMenubarContent.d.ts +13 -5
- package/dist/components/FlintMenubarContent.js +15 -0
- package/dist/components/FlintMenubarGroup.d.ts +8 -2
- package/dist/components/FlintMenubarGroup.js +12 -0
- package/dist/components/FlintMenubarItem.d.ts +21 -5
- package/dist/components/FlintMenubarItem.js +15 -0
- package/dist/components/FlintMenubarMenu.d.ts +8 -2
- package/dist/components/FlintMenubarMenu.js +12 -0
- package/dist/components/FlintMenubarRadioGroup.d.ts +13 -5
- package/dist/components/FlintMenubarRadioGroup.js +15 -0
- package/dist/components/FlintMenubarRadioItem.d.ts +18 -5
- package/dist/components/FlintMenubarRadioItem.js +15 -0
- package/dist/components/FlintMenubarSeparator.d.ts +6 -2
- package/dist/components/FlintMenubarSeparator.js +12 -0
- package/dist/components/FlintMenubarShortcut.d.ts +8 -2
- package/dist/components/FlintMenubarShortcut.js +12 -0
- package/dist/components/FlintMenubarSub.d.ts +7 -2
- package/dist/components/FlintMenubarSub.js +12 -0
- package/dist/components/FlintMenubarSubContent.d.ts +9 -2
- package/dist/components/FlintMenubarSubContent.js +12 -0
- package/dist/components/FlintMenubarSubTrigger.d.ts +14 -2
- package/dist/components/FlintMenubarSubTrigger.js +12 -0
- package/dist/components/FlintMenubarTrigger.d.ts +12 -2
- package/dist/components/FlintMenubarTrigger.js +12 -0
- package/dist/components/FlintMobileStepper.d.ts +25 -2
- package/dist/components/FlintMobileStepper.js +16 -0
- package/dist/components/FlintMobileTimePicker.d.ts +24 -5
- package/dist/components/FlintMobileTimePicker.js +15 -0
- package/dist/components/FlintMultiSectionDigitalClock.d.ts +17 -5
- package/dist/components/FlintMultiSectionDigitalClock.js +15 -0
- package/dist/components/FlintNavigationMenu.d.ts +8 -2
- package/dist/components/FlintNavigationMenu.js +12 -0
- package/dist/components/FlintNavigationMenuContent.d.ts +20 -5
- package/dist/components/FlintNavigationMenuContent.js +15 -0
- package/dist/components/FlintNavigationMenuItem.d.ts +18 -6
- package/dist/components/FlintNavigationMenuItem.js +16 -0
- package/dist/components/FlintNavigationMenuLink.d.ts +16 -2
- package/dist/components/FlintNavigationMenuLink.js +12 -0
- package/dist/components/FlintNavigationMenuList.d.ts +12 -2
- package/dist/components/FlintNavigationMenuList.js +12 -0
- package/dist/components/FlintNavigationMenuTrigger.d.ts +12 -5
- package/dist/components/FlintNavigationMenuTrigger.js +15 -0
- package/dist/components/FlintPagination.d.ts +48 -5
- package/dist/components/FlintPagination.js +15 -0
- package/dist/components/FlintPaper.d.ts +13 -2
- package/dist/components/FlintPaper.js +12 -0
- package/dist/components/FlintRadio.d.ts +25 -5
- package/dist/components/FlintRadio.js +15 -0
- package/dist/components/FlintRadioGroup.d.ts +27 -5
- package/dist/components/FlintRadioGroup.js +15 -0
- package/dist/components/FlintRangeSlider.d.ts +26 -5
- package/dist/components/FlintRangeSlider.js +15 -0
- package/dist/components/FlintRating.d.ts +31 -5
- package/dist/components/FlintRating.js +15 -0
- package/dist/components/FlintRelativeTime.d.ts +17 -2
- package/dist/components/FlintRelativeTime.js +12 -0
- package/dist/components/FlintResizableGroup.d.ts +16 -7
- package/dist/components/FlintResizableGroup.js +17 -0
- package/dist/components/FlintResizableHandle.d.ts +8 -2
- package/dist/components/FlintResizableHandle.js +12 -0
- package/dist/components/FlintResizablePanel.d.ts +15 -2
- package/dist/components/FlintResizablePanel.js +12 -0
- package/dist/components/FlintRichTreeView.d.ts +50 -8
- package/dist/components/FlintRichTreeView.js +18 -0
- package/dist/components/FlintScrollArea.d.ts +15 -2
- package/dist/components/FlintScrollArea.js +12 -0
- package/dist/components/FlintScrollBar.d.ts +11 -2
- package/dist/components/FlintScrollBar.js +12 -0
- package/dist/components/FlintSelect.d.ts +40 -5
- package/dist/components/FlintSelect.js +15 -0
- package/dist/components/FlintSimpleTreeView.d.ts +28 -6
- package/dist/components/FlintSimpleTreeView.js +16 -0
- package/dist/components/FlintSingleInputDateRangeField.d.ts +31 -6
- package/dist/components/FlintSingleInputDateRangeField.js +16 -0
- package/dist/components/FlintSkeleton.d.ts +18 -2
- package/dist/components/FlintSkeleton.js +12 -0
- package/dist/components/FlintSlider.d.ts +35 -5
- package/dist/components/FlintSlider.js +15 -0
- package/dist/components/FlintSnackbar.d.ts +36 -6
- package/dist/components/FlintSnackbar.js +16 -0
- package/dist/components/FlintSpeedDial.d.ts +38 -2
- package/dist/components/FlintSpeedDial.js +16 -0
- package/dist/components/FlintSpeedDialAction.d.ts +24 -5
- package/dist/components/FlintSpeedDialAction.js +15 -0
- package/dist/components/FlintSplitPanel.d.ts +31 -5
- package/dist/components/FlintSplitPanel.js +15 -0
- package/dist/components/FlintStack.d.ts +13 -2
- package/dist/components/FlintStack.js +12 -0
- package/dist/components/FlintStaticTimePicker.d.ts +14 -5
- package/dist/components/FlintStaticTimePicker.js +15 -0
- package/dist/components/FlintStep.d.ts +39 -5
- package/dist/components/FlintStep.js +15 -0
- package/dist/components/FlintStepConnector.d.ts +7 -2
- package/dist/components/FlintStepConnector.js +12 -0
- package/dist/components/FlintStepContent.d.ts +10 -2
- package/dist/components/FlintStepContent.js +12 -0
- package/dist/components/FlintStepLabel.d.ts +15 -2
- package/dist/components/FlintStepLabel.js +12 -0
- package/dist/components/FlintStepper.d.ts +23 -5
- package/dist/components/FlintStepper.js +15 -0
- package/dist/components/FlintSwitch.d.ts +33 -5
- package/dist/components/FlintSwitch.js +15 -0
- package/dist/components/FlintTab.d.ts +23 -5
- package/dist/components/FlintTab.js +15 -0
- package/dist/components/FlintTabList.d.ts +14 -5
- package/dist/components/FlintTabList.js +15 -0
- package/dist/components/FlintTabPanel.d.ts +5 -2
- package/dist/components/FlintTabPanel.js +12 -0
- package/dist/components/FlintTable.d.ts +8 -2
- package/dist/components/FlintTable.js +12 -0
- package/dist/components/FlintTableBody.d.ts +8 -2
- package/dist/components/FlintTableBody.js +12 -0
- package/dist/components/FlintTableCell.d.ts +12 -2
- package/dist/components/FlintTableCell.js +12 -0
- package/dist/components/FlintTableContainer.d.ts +10 -2
- package/dist/components/FlintTableContainer.js +12 -0
- package/dist/components/FlintTableFooter.d.ts +6 -2
- package/dist/components/FlintTableFooter.js +12 -0
- package/dist/components/FlintTableHead.d.ts +6 -2
- package/dist/components/FlintTableHead.js +12 -0
- package/dist/components/FlintTablePagination.d.ts +32 -6
- package/dist/components/FlintTablePagination.js +16 -0
- package/dist/components/FlintTableRow.d.ts +10 -2
- package/dist/components/FlintTableRow.js +12 -0
- package/dist/components/FlintTableSortLabel.d.ts +7 -2
- package/dist/components/FlintTableSortLabel.js +12 -0
- package/dist/components/FlintTabs.d.ts +27 -5
- package/dist/components/FlintTabs.js +15 -0
- package/dist/components/FlintTextField.d.ts +36 -6
- package/dist/components/FlintTextField.js +16 -0
- package/dist/components/FlintTextarea.d.ts +52 -6
- package/dist/components/FlintTextarea.js +16 -0
- package/dist/components/FlintTimeClock.d.ts +21 -6
- package/dist/components/FlintTimeClock.js +16 -0
- package/dist/components/FlintTimeField.d.ts +31 -6
- package/dist/components/FlintTimeField.js +16 -0
- package/dist/components/FlintTimePicker.d.ts +26 -5
- package/dist/components/FlintTimePicker.js +15 -0
- package/dist/components/FlintToaster.d.ts +13 -2
- package/dist/components/FlintToaster.js +12 -0
- package/dist/components/FlintToggle.d.ts +27 -5
- package/dist/components/FlintToggle.js +15 -0
- package/dist/components/FlintToggleButton.d.ts +20 -5
- package/dist/components/FlintToggleButton.js +15 -0
- package/dist/components/FlintToggleButtonGroup.d.ts +17 -5
- package/dist/components/FlintToggleButtonGroup.js +15 -0
- package/dist/components/FlintTooltip.d.ts +19 -2
- package/dist/components/FlintTooltip.js +12 -0
- package/dist/components/FlintTransferList.d.ts +25 -5
- package/dist/components/FlintTransferList.js +15 -0
- package/dist/components/FlintTreeItem.d.ts +34 -6
- package/dist/components/FlintTreeItem.js +16 -0
- package/dist/components/FlintTypography.d.ts +22 -2
- package/dist/components/FlintTypography.js +12 -0
- package/dist/components/FlintVisuallyHidden.d.ts +11 -2
- package/dist/components/FlintVisuallyHidden.js +12 -0
- package/dist/copy-button.d.ts +1 -1
- package/dist/date-field.d.ts +1 -1
- package/dist/date-picker.d.ts +2 -2
- package/dist/date-picker.js +2 -2
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +2 -2
- package/dist/drawer.d.ts +1 -1
- package/dist/events/flint-accordion-summary.js +7 -0
- package/dist/events/flint-accordion.js +7 -0
- package/dist/events/flint-alert.js +7 -0
- package/dist/events/flint-autocomplete.js +7 -0
- package/dist/events/flint-backdrop.js +7 -0
- package/dist/events/flint-bottom-navigation.js +7 -0
- package/dist/events/flint-box.js +7 -0
- package/dist/events/flint-carousel.js +7 -0
- package/dist/events/flint-checkbox.js +7 -0
- package/dist/events/flint-chip.d.ts +1 -1
- package/dist/events/flint-chip.js +8 -0
- package/dist/events/flint-collapsible.js +7 -0
- package/dist/events/flint-command-dialog.js +7 -0
- package/dist/events/flint-command-item.js +7 -0
- package/dist/events/flint-command.js +7 -0
- package/dist/events/flint-copy-button.js +8 -0
- package/dist/events/flint-date-field.js +8 -0
- package/dist/events/flint-date-picker-calendar.js +7 -0
- package/dist/events/flint-date-picker.d.ts +1 -1
- package/dist/events/flint-date-picker.js +7 -0
- package/dist/events/flint-date-range-calendar.js +7 -0
- package/dist/events/flint-date-range-picker.js +7 -0
- package/dist/events/flint-desktop-time-picker.d.ts +1 -1
- package/dist/events/flint-desktop-time-picker.js +7 -0
- package/dist/events/flint-dialog.d.ts +1 -1
- package/dist/events/flint-dialog.js +7 -0
- package/dist/events/flint-digital-clock.d.ts +1 -1
- package/dist/events/flint-digital-clock.js +7 -0
- package/dist/events/flint-drawer.js +7 -0
- package/dist/events/flint-hover-card.d.ts +4 -0
- package/dist/events/flint-hover-card.js +8 -0
- package/dist/events/flint-image-comparer.js +7 -0
- package/dist/events/flint-input-otp.js +8 -0
- package/dist/events/flint-input.js +8 -0
- package/dist/events/flint-menu-item.js +7 -0
- package/dist/events/flint-menu.js +7 -0
- package/dist/events/flint-menubar-checkbox-item.js +7 -0
- package/dist/events/flint-menubar-content.js +7 -0
- package/dist/events/flint-menubar-item.js +7 -0
- package/dist/events/flint-menubar-radio-group.js +7 -0
- package/dist/events/flint-menubar-radio-item.js +7 -0
- package/dist/events/flint-menubar.d.ts +5 -0
- package/dist/events/flint-menubar.js +9 -0
- package/dist/events/flint-mobile-stepper.d.ts +4 -0
- package/dist/events/flint-mobile-stepper.js +8 -0
- package/dist/events/flint-mobile-time-picker.d.ts +1 -1
- package/dist/events/flint-mobile-time-picker.js +7 -0
- package/dist/events/flint-multi-section-digital-clock.d.ts +1 -1
- package/dist/events/flint-multi-section-digital-clock.js +7 -0
- package/dist/events/flint-navigation-menu-content.js +7 -0
- package/dist/events/flint-navigation-menu-item.js +8 -0
- package/dist/events/flint-navigation-menu-trigger.js +7 -0
- package/dist/events/flint-pagination.js +7 -0
- package/dist/events/flint-radio-group.js +7 -0
- package/dist/events/flint-radio.js +7 -0
- package/dist/events/flint-range-slider.js +7 -0
- package/dist/events/flint-rating.js +7 -0
- package/dist/events/flint-resizable-group.js +9 -0
- package/dist/events/flint-rich-tree-view.js +10 -0
- package/dist/events/flint-select.js +7 -0
- package/dist/events/flint-simple-tree-view.js +8 -0
- package/dist/events/flint-single-input-date-range-field.js +8 -0
- package/dist/events/flint-slider.js +7 -0
- package/dist/events/flint-snackbar.js +8 -0
- package/dist/events/flint-speed-dial-action.js +7 -0
- package/dist/events/flint-speed-dial.d.ts +4 -0
- package/dist/events/flint-speed-dial.js +8 -0
- package/dist/events/flint-split-panel.js +7 -0
- package/dist/events/flint-static-time-picker.d.ts +1 -1
- package/dist/events/flint-static-time-picker.js +7 -0
- package/dist/events/flint-step.js +7 -0
- package/dist/events/flint-stepper.js +7 -0
- package/dist/events/flint-switch.js +7 -0
- package/dist/events/flint-tab-list.js +7 -0
- package/dist/events/flint-tab.js +7 -0
- package/dist/events/flint-table-pagination.js +8 -0
- package/dist/events/flint-tabs.js +7 -0
- package/dist/events/flint-text-field.d.ts +2 -2
- package/dist/events/flint-text-field.js +8 -0
- package/dist/events/flint-textarea.js +8 -0
- package/dist/events/flint-time-clock.d.ts +1 -1
- package/dist/events/flint-time-clock.js +8 -0
- package/dist/events/flint-time-field.d.ts +1 -1
- package/dist/events/flint-time-field.js +8 -0
- package/dist/events/flint-time-picker.d.ts +1 -1
- package/dist/events/flint-time-picker.js +7 -0
- package/dist/events/flint-toggle-button-group.js +7 -0
- package/dist/events/flint-toggle-button.js +7 -0
- package/dist/events/flint-toggle.js +7 -0
- package/dist/events/flint-transfer-list.d.ts +1 -1
- package/dist/events/flint-transfer-list.js +7 -0
- package/dist/events/flint-tree-item.js +8 -0
- package/dist/events/index.d.ts +4 -0
- package/dist/events/index.js +476 -0
- package/dist/flint-range-slider.d.ts +1 -1
- package/dist/hover-card.d.ts +2 -1
- package/dist/hover-card.js +12 -1
- package/dist/image-comparer.d.ts +1 -1
- package/dist/index.d.ts +57 -57
- package/dist/index.js +78 -32
- package/dist/input-otp.d.ts +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/menu.d.ts +1 -1
- package/dist/menubar.d.ts +6 -5
- package/dist/menubar.js +14 -1
- package/dist/navigation-menu.d.ts +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/radio.d.ts +2 -2
- package/dist/rating.d.ts +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/slider.d.ts +1 -1
- package/dist/snackbar.d.ts +1 -1
- package/dist/speed-dial.d.ts +3 -2
- package/dist/speed-dial.js +13 -2
- package/dist/split-panel.d.ts +1 -1
- package/dist/stepper.d.ts +3 -2
- package/dist/stepper.js +12 -1
- package/dist/switch.d.ts +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/tabs.d.ts +2 -2
- package/dist/text-field.d.ts +1 -1
- package/dist/text-field.js +4 -4
- package/dist/textarea.d.ts +1 -1
- package/dist/time-picker.d.ts +5 -5
- package/dist/time-picker.js +16 -16
- package/dist/toggle.d.ts +1 -1
- package/dist/transfer-list.d.ts +1 -1
- package/dist/transfer-list.js +2 -2
- package/dist/tree-view.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCheckbox as FlintCheckboxElement } from '@getufy/flint-ui/checkbox/flint-checkbox';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface FlintCheckboxChangeDetail {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
value: string;
|
|
6
|
+
indeterminate: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Checkbox: a form control for boolean selection.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlintCheckboxProps extends Omit<React.HTMLAttributes<FlintCheckboxElement>, 'defaultChecked'> {
|
|
12
|
+
/** Whether the checkbox is checked. */
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
/** Displays the checkbox in an indeterminate state. */
|
|
15
|
+
indeterminate?: boolean;
|
|
16
|
+
/** Disables the checkbox and prevents interaction. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Marks the checkbox as required for form validation. */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** Size of the checkbox control. */
|
|
21
|
+
size?: 'sm' | 'md' | 'lg';
|
|
22
|
+
/** Visible label text displayed next to the checkbox. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Form field name used when submitting form data. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** Value submitted with form data when checked. */
|
|
27
|
+
value?: string;
|
|
28
|
+
/** Initial checked state for uncontrolled usage. */
|
|
29
|
+
defaultChecked?: boolean;
|
|
30
|
+
/** Accessible label for screen readers when no visible label is provided. */
|
|
31
|
+
ariaLabel?: string | null;
|
|
32
|
+
/** Fired when the checked state changes. */
|
|
33
|
+
onFlintCheckboxChange?: (event: CustomEvent<FlintCheckboxChangeDetail>) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const FlintCheckbox: React.ForwardRefExoticComponent<FlintCheckboxProps & React.RefAttributes<FlintCheckboxElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/FlintCheckbox.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCheckbox as FlintCheckboxElement } from "@getufy/flint-ui/checkbox/flint-checkbox";
|
|
5
|
+
var FlintCheckbox = createComponent({
|
|
6
|
+
tagName: "flint-checkbox",
|
|
7
|
+
elementClass: FlintCheckboxElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCheckboxChange: "flint-checkbox-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
FlintCheckbox
|
|
15
|
+
};
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintChip as FlintChipElement } from '@getufy/flint-ui/chip/flint-chip';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface FlintChipDeleteDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Chip: a compact element representing an input, attribute, or action.
|
|
8
|
+
*
|
|
9
|
+
* @slot avatar - Avatar element shown at start.
|
|
10
|
+
* @slot icon - Icon shown at start when no avatar.
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintChipProps extends Omit<React.HTMLAttributes<FlintChipElement>, 'color'> {
|
|
13
|
+
/** Text content displayed inside the chip. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Visual style variant of the chip. */
|
|
16
|
+
variant?: 'filled' | 'outlined';
|
|
17
|
+
/** Color theme applied to the chip. */
|
|
18
|
+
color?: 'default' | 'primary' | 'secondary';
|
|
19
|
+
/** Size of the chip. */
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
21
|
+
/** Whether the chip responds to click interactions. */
|
|
22
|
+
clickable?: boolean;
|
|
23
|
+
/** Whether the chip shows a delete icon. */
|
|
24
|
+
deletable?: boolean;
|
|
25
|
+
/** Disables the chip and prevents interaction. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Fired when a clickable chip is clicked. */
|
|
28
|
+
onFlintChipClick?: (event: CustomEvent) => void;
|
|
29
|
+
/** Fired when the chip's delete icon is clicked. detail: `{ value: string }` */
|
|
30
|
+
onFlintChipDelete?: (event: CustomEvent<FlintChipDeleteDetail>) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const FlintChip: React.ForwardRefExoticComponent<FlintChipProps & React.RefAttributes<FlintChipElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/components/FlintChip.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintChip as FlintChipElement } from "@getufy/flint-ui/chip/flint-chip";
|
|
5
|
+
var FlintChip = createComponent({
|
|
6
|
+
tagName: "flint-chip",
|
|
7
|
+
elementClass: FlintChipElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintChipClick: "flint-chip-click",
|
|
11
|
+
onFlintChipDelete: "flint-chip-delete"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
FlintChip
|
|
16
|
+
};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCircularProgress as FlintCircularProgressElement } from '@getufy/flint-ui/progress/flint-circular-progress';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* flint-circular-progress: a circular progress indicator (spinner).
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintCircularProgressProps extends Omit<React.HTMLAttributes<FlintCircularProgressElement>, 'color'> {
|
|
7
|
+
/** Progress variant: determinate shows a specific value, indeterminate shows an animation. */
|
|
8
|
+
variant?: 'determinate' | 'indeterminate';
|
|
9
|
+
/** Current progress percentage (0-100) for determinate mode. */
|
|
10
|
+
value?: number;
|
|
11
|
+
/** Diameter of the circular indicator in pixels. */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** Stroke width of the circle in pixels. */
|
|
14
|
+
thickness?: number;
|
|
15
|
+
/** Color theme of the progress indicator. */
|
|
16
|
+
color?: 'primary' | 'success' | 'error' | 'warning';
|
|
17
|
+
/** Accessible label for the progress indicator. */
|
|
18
|
+
label?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const FlintCircularProgress: React.ForwardRefExoticComponent<FlintCircularProgressProps & React.RefAttributes<FlintCircularProgressElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCircularProgress.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCircularProgress as FlintCircularProgressElement } from "@getufy/flint-ui/progress/flint-circular-progress";
|
|
5
|
+
var FlintCircularProgress = createComponent({
|
|
6
|
+
tagName: "flint-circular-progress",
|
|
7
|
+
elementClass: FlintCircularProgressElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCircularProgress
|
|
12
|
+
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCollapsible as FlintCollapsibleElement } from '@getufy/flint-ui/collapsible/flint-collapsible';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintCollapsibleChangeDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Root container for a collapsible panel.
|
|
8
|
+
Manages open/closed state and coordinates child trigger and content.
|
|
9
|
+
*
|
|
10
|
+
* @slot - Accepts `flint-collapsible-trigger`, `flint-collapsible-content`, and any
|
|
11
|
+
other elements that should always be visible.
|
|
12
|
+
*/
|
|
13
|
+
export interface FlintCollapsibleProps extends React.HTMLAttributes<FlintCollapsibleElement> {
|
|
14
|
+
/** Whether the panel is open. Reflects to attribute for CSS targeting. */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
/** Initial open state for uncontrolled usage. */
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
/** Disables the trigger, preventing user interaction. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Fired when the open state changes.
|
|
21
|
+
`detail: { open: boolean }` */
|
|
22
|
+
onFlintCollapsibleChange?: (event: CustomEvent<FlintCollapsibleChangeDetail>) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const FlintCollapsible: React.ForwardRefExoticComponent<FlintCollapsibleProps & React.RefAttributes<FlintCollapsibleElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/FlintCollapsible.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCollapsible as FlintCollapsibleElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
5
|
+
var FlintCollapsible = createComponent({
|
|
6
|
+
tagName: "flint-collapsible",
|
|
7
|
+
elementClass: FlintCollapsibleElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCollapsibleChange: "flint-collapsible-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
FlintCollapsible
|
|
15
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCollapsibleContent as FlintCollapsibleContentElement } from '@getufy/flint-ui/collapsible/flint-collapsible';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The collapsible panel. Animates open/closed with a CSS grid transition.
|
|
5
|
+
Place inside `flint-collapsible`; its `open` state is managed automatically.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Content to reveal when expanded.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintCollapsibleContentProps extends React.HTMLAttributes<FlintCollapsibleContentElement> {
|
|
10
|
+
/** Whether the panel is visible. Managed by the parent `flint-collapsible`. */
|
|
11
|
+
open?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintCollapsibleContent: React.ForwardRefExoticComponent<FlintCollapsibleContentProps & React.RefAttributes<FlintCollapsibleContentElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCollapsibleContent.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCollapsibleContent as FlintCollapsibleContentElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
5
|
+
var FlintCollapsibleContent = createComponent({
|
|
6
|
+
tagName: "flint-collapsible-content",
|
|
7
|
+
elementClass: FlintCollapsibleContentElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCollapsibleContent
|
|
12
|
+
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCollapsibleTrigger as FlintCollapsibleTriggerElement } from '@getufy/flint-ui/collapsible/flint-collapsible';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Toggle button for a collapsible. Place inside `flint-collapsible`.
|
|
5
|
+
Automatically wires up to the nearest `flint-collapsible` ancestor.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Trigger label or any content (icon, text, avatar…).
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintCollapsibleTriggerProps extends React.HTMLAttributes<FlintCollapsibleTriggerElement> {
|
|
10
|
+
/** Reflects the parent collapsible's open state. Set by `flint-collapsible`. */
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
/** Disables the trigger. Set by `flint-collapsible` or directly. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const FlintCollapsibleTrigger: React.ForwardRefExoticComponent<FlintCollapsibleTriggerProps & React.RefAttributes<FlintCollapsibleTriggerElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCollapsibleTrigger.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCollapsibleTrigger as FlintCollapsibleTriggerElement } from "@getufy/flint-ui/collapsible/flint-collapsible";
|
|
5
|
+
var FlintCollapsibleTrigger = createComponent({
|
|
6
|
+
tagName: "flint-collapsible-trigger",
|
|
7
|
+
elementClass: FlintCollapsibleTriggerElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCollapsibleTrigger
|
|
12
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCommand as FlintCommandElement } from '@getufy/flint-ui/command/flint-command';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Root command menu component. Manages search filtering and keyboard navigation.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Command menu content.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintCommandProps extends React.HTMLAttributes<FlintCommandElement> {
|
|
9
|
+
/** Bubbles up from activated items.
|
|
10
|
+
detail: `{ value: string }` */
|
|
11
|
+
onFlintCommandItemSelect?: (event: CustomEvent) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintCommand: React.ForwardRefExoticComponent<FlintCommandProps & React.RefAttributes<FlintCommandElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/FlintCommand.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommand as FlintCommandElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommand = createComponent({
|
|
6
|
+
tagName: "flint-command",
|
|
7
|
+
elementClass: FlintCommandElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCommandItemSelect: "flint-command-item-select"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
FlintCommand
|
|
15
|
+
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCommandDialog as FlintCommandDialogElement } from '@getufy/flint-ui/command/flint-command';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintCommandDialogCloseDetail {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Modal dialog wrapper for a command menu. Opens with a smooth backdrop + scale
|
|
8
|
+
animation. Pressing `Escape` or clicking the backdrop fires `flint-command-dialog-close`.
|
|
9
|
+
*
|
|
10
|
+
* @slot - Place a `flint-command` element here.
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintCommandDialogProps extends React.HTMLAttributes<FlintCommandDialogElement> {
|
|
13
|
+
/** Controls the open/closed state of the dialog. */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** Fired when the dialog should close. detail: `{ open: false }`
|
|
16
|
+
The host is responsible for setting `open = false` in response. */
|
|
17
|
+
onFlintCommandDialogClose?: (event: CustomEvent<FlintCommandDialogCloseDetail>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const FlintCommandDialog: React.ForwardRefExoticComponent<FlintCommandDialogProps & React.RefAttributes<FlintCommandDialogElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/FlintCommandDialog.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandDialog as FlintCommandDialogElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandDialog = createComponent({
|
|
6
|
+
tagName: "flint-command-dialog",
|
|
7
|
+
elementClass: FlintCommandDialogElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCommandDialogClose: "flint-command-dialog-close"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
FlintCommandDialog
|
|
15
|
+
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandEmpty as FlintCommandEmptyElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Empty state message shown when no command items match the current query.
|
|
5
|
+
Managed automatically by the parent `flint-command` element.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Message text, e.g. "No results found."
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintCommandEmptyProps extends React.HTMLAttributes<FlintCommandEmptyElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintCommandEmpty: React.ForwardRefExoticComponent<FlintCommandEmptyProps & React.RefAttributes<FlintCommandEmptyElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandEmpty.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandEmpty as FlintCommandEmptyElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandEmpty = createComponent({
|
|
6
|
+
tagName: "flint-command-empty",
|
|
7
|
+
elementClass: FlintCommandEmptyElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandEmpty
|
|
12
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandGroup as FlintCommandGroupElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A labeled group of command items. The parent `flint-command` automatically
|
|
5
|
+
hides the whole group when all its items are filtered out.
|
|
6
|
+
*
|
|
7
|
+
* @slot - `flint-command-item` elements.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintCommandGroupProps extends React.HTMLAttributes<FlintCommandGroupElement> {
|
|
10
|
+
/** Label rendered above the group items. */
|
|
11
|
+
heading?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintCommandGroup: React.ForwardRefExoticComponent<FlintCommandGroupProps & React.RefAttributes<FlintCommandGroupElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandGroup.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandGroup as FlintCommandGroupElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandGroup = createComponent({
|
|
6
|
+
tagName: "flint-command-group",
|
|
7
|
+
elementClass: FlintCommandGroupElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandGroup
|
|
12
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandInput as FlintCommandInputElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Search input for the command menu. Dispatches `_cmd-filter` events that
|
|
5
|
+
the parent `flint-command` intercepts to apply filtering.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlintCommandInputProps extends React.HTMLAttributes<FlintCommandInputElement> {
|
|
8
|
+
/** Placeholder text shown when input is empty. */
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Current input value. */
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FlintCommandInput: React.ForwardRefExoticComponent<FlintCommandInputProps & React.RefAttributes<FlintCommandInputElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandInput.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandInput as FlintCommandInputElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandInput = createComponent({
|
|
6
|
+
tagName: "flint-command-input",
|
|
7
|
+
elementClass: FlintCommandInputElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandInput
|
|
12
|
+
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCommandItem as FlintCommandItemElement } from '@getufy/flint-ui/command/flint-command';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
3
|
+
export interface FlintCommandItemSelectDetail {
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A single interactive option inside a command menu.
|
|
8
|
+
*
|
|
9
|
+
* @slot - Item label text.
|
|
10
|
+
* @slot icon - Leading icon (16×16).
|
|
11
|
+
* @slot shortcut - Trailing shortcut hint; prefer `<flint-command-shortcut>`.
|
|
12
|
+
*/
|
|
13
|
+
export interface FlintCommandItemProps extends React.HTMLAttributes<FlintCommandItemElement> {
|
|
14
|
+
/** Machine-readable value used for filter matching. Falls back to textContent. */
|
|
15
|
+
value?: string;
|
|
16
|
+
/** Disables the item — non-interactive and skipped in keyboard nav. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Set by parent `flint-command` to indicate keyboard focus. */
|
|
19
|
+
highlighted?: boolean;
|
|
20
|
+
/** Fired when the item is activated.
|
|
21
|
+
detail: `{ value: string }` */
|
|
22
|
+
onFlintCommandItemSelect?: (event: CustomEvent<FlintCommandItemSelectDetail>) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const FlintCommandItem: React.ForwardRefExoticComponent<FlintCommandItemProps & React.RefAttributes<FlintCommandItemElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/components/FlintCommandItem.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandItem as FlintCommandItemElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandItem = createComponent({
|
|
6
|
+
tagName: "flint-command-item",
|
|
7
|
+
elementClass: FlintCommandItemElement,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onFlintCommandItemSelect: "flint-command-item-select"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
FlintCommandItem
|
|
15
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandList as FlintCommandListElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Scrollable list container for command items and groups.
|
|
5
|
+
*
|
|
6
|
+
* @slot - `flint-command-group`, `flint-command-item`, `flint-command-empty`, `flint-command-separator`.
|
|
7
|
+
*/
|
|
8
|
+
export interface FlintCommandListProps extends React.HTMLAttributes<FlintCommandListElement> {
|
|
9
|
+
}
|
|
10
|
+
export declare const FlintCommandList: React.ForwardRefExoticComponent<FlintCommandListProps & React.RefAttributes<FlintCommandListElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandList.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandList as FlintCommandListElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandList = createComponent({
|
|
6
|
+
tagName: "flint-command-list",
|
|
7
|
+
elementClass: FlintCommandListElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandList
|
|
12
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandSeparator as FlintCommandSeparatorElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A hairline separator between command groups.
|
|
5
|
+
*/
|
|
6
|
+
export interface FlintCommandSeparatorProps extends React.HTMLAttributes<FlintCommandSeparatorElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const FlintCommandSeparator: React.ForwardRefExoticComponent<FlintCommandSeparatorProps & React.RefAttributes<FlintCommandSeparatorElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandSeparator.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandSeparator as FlintCommandSeparatorElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandSeparator = createComponent({
|
|
6
|
+
tagName: "flint-command-separator",
|
|
7
|
+
elementClass: FlintCommandSeparatorElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandSeparator
|
|
12
|
+
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintCommandShortcut as FlintCommandShortcutElement } from '@getufy/flint-ui/command/flint-command';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Displays a keyboard shortcut hint inside a command item.
|
|
5
|
+
Slot the shortcut string (e.g. `⌘P`) as default slot content.
|
|
6
|
+
*
|
|
7
|
+
* @slot - Shortcut text, e.g. `⌘P` or `Ctrl+K`.
|
|
8
|
+
*/
|
|
9
|
+
export interface FlintCommandShortcutProps extends React.HTMLAttributes<FlintCommandShortcutElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintCommandShortcut: React.ForwardRefExoticComponent<FlintCommandShortcutProps & React.RefAttributes<FlintCommandShortcutElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintCommandShortcut.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintCommandShortcut as FlintCommandShortcutElement } from "@getufy/flint-ui/command/flint-command";
|
|
5
|
+
var FlintCommandShortcut = createComponent({
|
|
6
|
+
tagName: "flint-command-shortcut",
|
|
7
|
+
elementClass: FlintCommandShortcutElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintCommandShortcut
|
|
12
|
+
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlintContainer as FlintContainerElement } from '@getufy/flint-ui/container/flint-container';
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export interface FlintContainerProps extends React.HTMLAttributes<FlintContainerElement> {
|
|
4
|
+
/** Determine the max-width of the container. */
|
|
5
|
+
maxWidth?: FlintContainerElement['maxWidth'];
|
|
6
|
+
/** If `true`, the left and right padding is removed. */
|
|
7
|
+
disableGutters?: boolean;
|
|
8
|
+
/** Set the max-width to match the min-width of the current breakpoint. */
|
|
9
|
+
fixed?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const FlintContainer: React.ForwardRefExoticComponent<FlintContainerProps & React.RefAttributes<FlintContainerElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/components/FlintContainer.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { FlintContainer as FlintContainerElement } from "@getufy/flint-ui/container/flint-container";
|
|
5
|
+
var FlintContainer = createComponent({
|
|
6
|
+
tagName: "flint-container",
|
|
7
|
+
elementClass: FlintContainerElement,
|
|
8
|
+
react: React
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
FlintContainer
|
|
12
|
+
};
|
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type EventName } from '@lit/react';
|
|
3
2
|
import { FlintCopyButton as FlintCopyButtonElement } from '@getufy/flint-ui/copy-button/flint-copy-button';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface FlintCopyErrorDetail {
|
|
4
|
+
reason: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FlintCopyDetail {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Copy Button: copies text to the clipboard with visual feedback.
|
|
11
|
+
*/
|
|
12
|
+
export interface FlintCopyButtonProps extends React.HTMLAttributes<FlintCopyButtonElement> {
|
|
13
|
+
/** The text value to copy. */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** An id referencing another element to copy from. */
|
|
16
|
+
from?: string;
|
|
17
|
+
/** Disables the copy button. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Label shown in the tooltip (idle state). */
|
|
20
|
+
copyLabel?: string;
|
|
21
|
+
/** Label shown in the tooltip after successful copy. */
|
|
22
|
+
successLabel?: string;
|
|
23
|
+
/** Label shown in the tooltip on copy error. */
|
|
24
|
+
errorLabel?: string;
|
|
25
|
+
/** Duration (ms) to show feedback before returning to idle. */
|
|
26
|
+
feedbackDuration?: number;
|
|
27
|
+
/** Tooltip placement. */
|
|
28
|
+
tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
|
|
29
|
+
/** Fired when the copy operation fails. */
|
|
30
|
+
onFlintCopyError?: (event: CustomEvent<FlintCopyErrorDetail>) => void;
|
|
31
|
+
/** Fired after a successful copy operation. */
|
|
32
|
+
onFlintCopy?: (event: CustomEvent<FlintCopyDetail>) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const FlintCopyButton: React.ForwardRefExoticComponent<FlintCopyButtonProps & React.RefAttributes<FlintCopyButtonElement>>;
|