@endfield-ui/react 1.2.0 → 1.3.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 +8 -3
- package/dist/components/accordion/Accordion.d.ts +46 -0
- package/dist/components/accordion/Accordion.js +2 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/alert/Alert.d.ts +28 -0
- package/dist/components/alert/Alert.js +2 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/avatar/Avatar.d.ts +24 -0
- package/dist/components/avatar/Avatar.js +2 -0
- package/dist/components/avatar/AvatarSwitcher.d.ts +46 -0
- package/dist/components/avatar/AvatarSwitcher.js +2 -0
- package/dist/components/avatar/index.d.ts +4 -0
- package/dist/components/back-to-top/BackToTop.d.ts +21 -0
- package/dist/components/back-to-top/BackToTop.js +2 -0
- package/dist/components/back-to-top/index.d.ts +3 -0
- package/dist/components/badge/Badge.d.ts +20 -0
- package/dist/components/badge/Badge.js +2 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/bracket-title/BracketTitle.d.ts +17 -0
- package/dist/components/bracket-title/BracketTitle.js +2 -0
- package/dist/components/bracket-title/index.d.ts +3 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +26 -0
- package/dist/components/breadcrumb/Breadcrumb.js +2 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/button/Button.d.ts +50 -0
- package/dist/components/button/Button.js +2 -0
- package/dist/components/button/ButtonGroup.d.ts +21 -0
- package/dist/components/button/ButtonGroup.js +2 -0
- package/dist/components/button/index.d.ts +4 -0
- package/dist/components/calendar/Calendar.d.ts +57 -0
- package/dist/components/calendar/Calendar.js +2 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/carousel/Carousel.d.ts +38 -0
- package/dist/components/carousel/Carousel.js +2 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/snap-track.js +2 -0
- package/dist/components/checkbox/Checkbox.d.ts +18 -0
- package/dist/components/checkbox/Checkbox.js +2 -0
- package/dist/components/checkbox/choice-style.js +2 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/chip/FilterChip.d.ts +18 -0
- package/dist/components/chip/FilterChip.js +2 -0
- package/dist/components/chip/ResourceChip.d.ts +16 -0
- package/dist/components/chip/ResourceChip.js +2 -0
- package/dist/components/chip/capsule-style.d.ts +4 -0
- package/dist/components/chip/capsule-style.js +2 -0
- package/dist/components/chip/index.d.ts +4 -0
- package/dist/components/combobox/Combobox.d.ts +105 -0
- package/dist/components/combobox/Combobox.js +2 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/completion-banner/CompletionBanner.d.ts +26 -0
- package/dist/components/completion-banner/CompletionBanner.js +2 -0
- package/dist/components/completion-banner/index.d.ts +3 -0
- package/dist/components/context-menu/ContextMenu.d.ts +30 -0
- package/dist/components/context-menu/ContextMenu.js +2 -0
- package/dist/components/context-menu/index.d.ts +3 -0
- package/dist/components/corner-brackets/CornerBrackets.d.ts +20 -0
- package/dist/components/corner-brackets/CornerBrackets.js +2 -0
- package/dist/components/corner-brackets/index.d.ts +3 -0
- package/dist/components/countdown/Countdown.d.ts +26 -0
- package/dist/components/countdown/Countdown.js +2 -0
- package/dist/components/countdown/index.d.ts +3 -0
- package/dist/components/dash-indicator/DashIndicator.d.ts +15 -0
- package/dist/components/dash-indicator/DashIndicator.js +2 -0
- package/dist/components/dash-indicator/index.d.ts +3 -0
- package/dist/components/data-row/DataRow.d.ts +58 -0
- package/dist/components/data-row/DataRow.js +2 -0
- package/dist/components/data-row/index.d.ts +3 -0
- package/dist/components/date-picker/DateField.js +2 -0
- package/dist/components/date-picker/DatePicker.d.ts +56 -0
- package/dist/components/date-picker/DatePicker.js +2 -0
- package/dist/components/date-picker/DateRangePicker.d.ts +57 -0
- package/dist/components/date-picker/DateRangePicker.js +2 -0
- package/dist/components/date-picker/index.d.ts +4 -0
- package/dist/components/dialog/Dialog.d.ts +55 -0
- package/dist/components/dialog/Dialog.js +2 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/dialog/initial-focus.js +2 -0
- package/dist/components/dialog/overlay-style.js +2 -0
- package/dist/components/drawer/Drawer.d.ts +48 -0
- package/dist/components/drawer/Drawer.js +2 -0
- package/dist/components/drawer/index.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +115 -0
- package/dist/components/dropdown-menu/DropdownMenu.js +2 -0
- package/dist/components/dropdown-menu/MenuCheck.js +2 -0
- package/dist/components/dropdown-menu/index.d.ts +3 -0
- package/dist/components/dropdown-menu/menu-style.d.ts +4 -0
- package/dist/components/dropdown-menu/menu-style.js +2 -0
- package/dist/components/empty-state/EmptyState.d.ts +22 -0
- package/dist/components/empty-state/EmptyState.js +2 -0
- package/dist/components/empty-state/index.d.ts +3 -0
- package/dist/components/field/Field.d.ts +58 -0
- package/dist/components/field/Field.js +2 -0
- package/dist/components/field/index.d.ts +3 -0
- package/dist/components/file-upload/FileItem.d.ts +50 -0
- package/dist/components/file-upload/FileItem.js +2 -0
- package/dist/components/file-upload/FileUpload.d.ts +82 -0
- package/dist/components/file-upload/FileUpload.js +2 -0
- package/dist/components/file-upload/index.d.ts +4 -0
- package/dist/components/flyout-bar/FlyoutBar.d.ts +46 -0
- package/dist/components/flyout-bar/FlyoutBar.js +2 -0
- package/dist/components/flyout-bar/index.d.ts +3 -0
- package/dist/components/ghost-text/GhostText.d.ts +21 -0
- package/dist/components/ghost-text/GhostText.js +2 -0
- package/dist/components/ghost-text/index.d.ts +3 -0
- package/dist/components/hatch/Hatch.d.ts +18 -0
- package/dist/components/hatch/Hatch.js +2 -0
- package/dist/components/hatch/index.d.ts +3 -0
- package/dist/components/hazard-stripe/HazardStripe.d.ts +15 -0
- package/dist/components/hazard-stripe/HazardStripe.js +2 -0
- package/dist/components/hazard-stripe/index.d.ts +3 -0
- package/dist/components/hover-card/HoverCard.d.ts +35 -0
- package/dist/components/hover-card/HoverCard.js +2 -0
- package/dist/components/hover-card/index.d.ts +3 -0
- package/dist/components/icon-button/IconButton.d.ts +21 -0
- package/dist/components/icon-button/IconButton.js +2 -0
- package/dist/components/icon-button/index.d.ts +3 -0
- package/dist/components/image-viewer/ImageViewer.d.ts +48 -0
- package/dist/components/image-viewer/ImageViewer.js +2 -0
- package/dist/components/image-viewer/index.d.ts +3 -0
- package/dist/components/input/Input.d.ts +27 -0
- package/dist/components/input/Input.js +2 -0
- package/dist/components/input/control-box.d.ts +5 -0
- package/dist/components/input/control-box.js +2 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/value-chip.js +2 -0
- package/dist/components/item-slot/ItemGrid.d.ts +12 -0
- package/dist/components/item-slot/ItemGrid.js +2 -0
- package/dist/components/item-slot/ItemSlot.d.ts +54 -0
- package/dist/components/item-slot/ItemSlot.js +2 -0
- package/dist/components/item-slot/index.d.ts +4 -0
- package/dist/components/kbd/Kbd.d.ts +15 -0
- package/dist/components/kbd/Kbd.js +2 -0
- package/dist/components/kbd/index.d.ts +3 -0
- package/dist/components/link-element/LinkElement.d.ts +6 -0
- package/dist/components/link-element/LinkElement.js +2 -0
- package/dist/components/list/List.d.ts +46 -0
- package/dist/components/list/List.js +2 -0
- package/dist/components/list/band-style.js +2 -0
- package/dist/components/list/index.d.ts +3 -0
- package/dist/components/loader/Loader.d.ts +23 -0
- package/dist/components/loader/Loader.js +2 -0
- package/dist/components/loader/index.d.ts +3 -0
- package/dist/components/marquee/Marquee.d.ts +22 -0
- package/dist/components/marquee/Marquee.js +2 -0
- package/dist/components/marquee/index.d.ts +3 -0
- package/dist/components/media-card/MediaCard.d.ts +36 -0
- package/dist/components/media-card/MediaCard.js +2 -0
- package/dist/components/media-card/index.d.ts +3 -0
- package/dist/components/nav-action/NavAction.d.ts +34 -0
- package/dist/components/nav-action/NavAction.js +2 -0
- package/dist/components/nav-action/index.d.ts +3 -0
- package/dist/components/nav-menu/NavMenu.d.ts +57 -0
- package/dist/components/nav-menu/NavMenu.js +2 -0
- package/dist/components/nav-menu/index.d.ts +3 -0
- package/dist/components/navigator/Navigator.d.ts +27 -0
- package/dist/components/navigator/Navigator.js +2 -0
- package/dist/components/navigator/index.d.ts +3 -0
- package/dist/components/otp-input/OtpInput.d.ts +52 -0
- package/dist/components/otp-input/OtpInput.js +2 -0
- package/dist/components/otp-input/index.d.ts +3 -0
- package/dist/components/page-header/PageHeader.d.ts +56 -0
- package/dist/components/page-header/PageHeader.js +2 -0
- package/dist/components/page-header/index.d.ts +3 -0
- package/dist/components/pagination/Pagination.d.ts +29 -0
- package/dist/components/pagination/Pagination.js +2 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/panel/Panel.d.ts +36 -0
- package/dist/components/panel/Panel.js +2 -0
- package/dist/components/panel/index.d.ts +3 -0
- package/dist/components/play-button/PlayButton.d.ts +20 -0
- package/dist/components/play-button/PlayButton.js +2 -0
- package/dist/components/play-button/index.d.ts +3 -0
- package/dist/components/popover/Popover.d.ts +36 -0
- package/dist/components/popover/Popover.js +2 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/panel-style.js +2 -0
- package/dist/components/progress/Progress.d.ts +27 -0
- package/dist/components/progress/Progress.js +2 -0
- package/dist/components/progress/ProgressRing.d.ts +23 -0
- package/dist/components/progress/ProgressRing.js +2 -0
- package/dist/components/progress/index.d.ts +4 -0
- package/dist/components/radio/Radio.d.ts +33 -0
- package/dist/components/radio/Radio.js +2 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/rec-indicator/RecIndicator.d.ts +16 -0
- package/dist/components/rec-indicator/RecIndicator.js +2 -0
- package/dist/components/rec-indicator/index.d.ts +3 -0
- package/dist/components/registration-strip/RegistrationStrip.d.ts +16 -0
- package/dist/components/registration-strip/RegistrationStrip.js +2 -0
- package/dist/components/registration-strip/index.d.ts +3 -0
- package/dist/components/rolling-number/RollingNumber.d.ts +25 -0
- package/dist/components/rolling-number/RollingNumber.js +2 -0
- package/dist/components/rolling-number/index.d.ts +3 -0
- package/dist/components/schedule/Schedule.d.ts +78 -0
- package/dist/components/schedule/Schedule.js +2 -0
- package/dist/components/schedule/index.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +26 -0
- package/dist/components/scroll-area/ScrollArea.js +2 -0
- package/dist/components/scroll-area/index.d.ts +3 -0
- package/dist/components/scroll-hint/ScrollHint.d.ts +23 -0
- package/dist/components/scroll-hint/ScrollHint.js +2 -0
- package/dist/components/scroll-hint/index.d.ts +3 -0
- package/dist/components/section-title/SectionTitle.d.ts +33 -0
- package/dist/components/section-title/SectionTitle.js +2 -0
- package/dist/components/section-title/index.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +49 -0
- package/dist/components/segmented-control/SegmentedControl.js +2 -0
- package/dist/components/segmented-control/index.d.ts +3 -0
- package/dist/components/select/Select.d.ts +95 -0
- package/dist/components/select/Select.js +2 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/side-rail/SideRail.d.ts +62 -0
- package/dist/components/side-rail/SideRail.js +2 -0
- package/dist/components/side-rail/SideRailSub.d.ts +47 -0
- package/dist/components/side-rail/SideRailSub.js +2 -0
- package/dist/components/side-rail/index.d.ts +4 -0
- package/dist/components/skeleton/Skeleton.d.ts +22 -0
- package/dist/components/skeleton/Skeleton.js +2 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/slider/Slider.d.ts +63 -0
- package/dist/components/slider/Slider.js +2 -0
- package/dist/components/slider/index.d.ts +3 -0
- package/dist/components/sparkline/Sparkline.d.ts +32 -0
- package/dist/components/sparkline/Sparkline.js +2 -0
- package/dist/components/sparkline/index.d.ts +3 -0
- package/dist/components/spinner/Spinner.d.ts +19 -0
- package/dist/components/spinner/Spinner.js +2 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/splash-screen/SplashScreen.d.ts +43 -0
- package/dist/components/splash-screen/SplashScreen.js +2 -0
- package/dist/components/splash-screen/index.d.ts +3 -0
- package/dist/components/stat/Stat.d.ts +22 -0
- package/dist/components/stat/Stat.js +2 -0
- package/dist/components/stat/index.d.ts +3 -0
- package/dist/components/stepper/Stepper.d.ts +29 -0
- package/dist/components/stepper/Stepper.js +2 -0
- package/dist/components/stepper/index.d.ts +3 -0
- package/dist/components/steps/Steps.d.ts +55 -0
- package/dist/components/steps/Steps.js +2 -0
- package/dist/components/steps/index.d.ts +3 -0
- package/dist/components/switch/Switch.d.ts +28 -0
- package/dist/components/switch/Switch.js +2 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/table/Table.d.ts +96 -0
- package/dist/components/table/Table.js +2 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/tabs/Tabs.d.ts +39 -0
- package/dist/components/tabs/Tabs.js +2 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tag/Tag.d.ts +25 -0
- package/dist/components/tag/Tag.js +2 -0
- package/dist/components/tag/TagPair.d.ts +16 -0
- package/dist/components/tag/TagPair.js +2 -0
- package/dist/components/tag/index.d.ts +4 -0
- package/dist/components/tag-input/TagInput.d.ts +66 -0
- package/dist/components/tag-input/TagInput.js +3 -0
- package/dist/components/tag-input/index.d.ts +3 -0
- package/dist/components/term/Term.d.ts +19 -0
- package/dist/components/term/Term.js +2 -0
- package/dist/components/term/index.d.ts +3 -0
- package/dist/components/textarea/Textarea.d.ts +17 -0
- package/dist/components/textarea/Textarea.js +2 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/texture/Texture.d.ts +19 -0
- package/dist/components/texture/Texture.js +2 -0
- package/dist/components/texture/index.d.ts +3 -0
- package/dist/components/tick-ring/TickRing.d.ts +22 -0
- package/dist/components/tick-ring/TickRing.js +2 -0
- package/dist/components/tick-ring/index.d.ts +3 -0
- package/dist/components/timeline/Timeline.d.ts +22 -0
- package/dist/components/timeline/Timeline.js +2 -0
- package/dist/components/timeline/index.d.ts +3 -0
- package/dist/components/toast/Toast.d.ts +45 -0
- package/dist/components/toast/Toast.js +2 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toc/Toc.d.ts +46 -0
- package/dist/components/toc/Toc.js +2 -0
- package/dist/components/toc/index.d.ts +3 -0
- package/dist/components/toolbar/Toolbar.d.ts +97 -0
- package/dist/components/toolbar/Toolbar.js +2 -0
- package/dist/components/toolbar/index.d.ts +3 -0
- package/dist/components/tooltip/Tooltip.d.ts +47 -0
- package/dist/components/tooltip/Tooltip.js +2 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/top-bar/TopBar.d.ts +21 -0
- package/dist/components/top-bar/TopBar.js +2 -0
- package/dist/components/top-bar/index.d.ts +3 -0
- package/dist/components/viewfinder/Viewfinder.d.ts +35 -0
- package/dist/components/viewfinder/Viewfinder.js +2 -0
- package/dist/components/viewfinder/index.d.ts +3 -0
- package/dist/game/animated-dialog/AnimatedDialog.d.ts +53 -0
- package/dist/game/animated-dialog/AnimatedDialog.js +2 -0
- package/dist/game/animated-dialog/index.d.ts +3 -0
- package/dist/game/banner-alert/AlertIcons.js +2 -0
- package/dist/game/banner-alert/AlertModal.js +2 -0
- package/dist/game/banner-alert/BannerAlert.d.ts +6 -0
- package/dist/game/banner-alert/BannerAlert.js +2 -0
- package/dist/game/banner-alert/index.d.ts +3 -0
- package/dist/game/banner-alert/types.d.ts +48 -0
- package/dist/game/banner-alert/types.js +2 -0
- package/dist/game/banner-alert/useAlertActions.js +2 -0
- package/dist/game/banner-alert/useAlertGlitch.js +2 -0
- package/dist/game/full-width-alert/FullWidthAlert.d.ts +7 -0
- package/dist/game/full-width-alert/FullWidthAlert.js +2 -0
- package/dist/game/full-width-alert/index.d.ts +3 -0
- package/dist/game/item-card/ItemCard.d.ts +48 -0
- package/dist/game/item-card/ItemCard.js +2 -0
- package/dist/game/item-card/index.d.ts +3 -0
- package/dist/game/item-hover-card/ItemHoverCard.d.ts +31 -0
- package/dist/game/item-hover-card/ItemHoverCard.js +2 -0
- package/dist/game/item-hover-card/events.js +2 -0
- package/dist/game/item-hover-card/index.d.ts +3 -0
- package/dist/game/item-icon/ItemIcon.d.ts +5 -0
- package/dist/game/item-icon/ItemIcon.js +2 -0
- package/dist/game/item-icon/helpers.d.ts +22 -0
- package/dist/game/item-icon/helpers.js +2 -0
- package/dist/game/item-icon/index.d.ts +5 -0
- package/dist/game/item-icon/types.d.ts +32 -0
- package/dist/game/item-tooltip-card/ItemTooltipCard.d.ts +6 -0
- package/dist/game/item-tooltip-card/ItemTooltipCard.js +2 -0
- package/dist/game/item-tooltip-card/icons.js +2 -0
- package/dist/game/item-tooltip-card/index.d.ts +4 -0
- package/dist/game/item-tooltip-card/types.d.ts +40 -0
- package/dist/game/lib/core.d.ts +8 -0
- package/dist/game/lib/first-focusable.js +2 -0
- package/dist/game/rounded-button/RoundedButton.d.ts +22 -0
- package/dist/game/rounded-button/RoundedButton.js +2 -0
- package/dist/game/rounded-button/RoundedIconButton.d.ts +10 -0
- package/dist/game/rounded-button/RoundedIconButton.js +2 -0
- package/dist/game/rounded-button/index.d.ts +4 -0
- package/dist/game/rounded-select/RoundedSelect.d.ts +43 -0
- package/dist/game/rounded-select/RoundedSelect.js +2 -0
- package/dist/game/rounded-select/index.d.ts +3 -0
- package/dist/game/rounded-switch/RoundedSwitch.d.ts +16 -0
- package/dist/game/rounded-switch/RoundedSwitch.js +2 -0
- package/dist/game/rounded-switch/index.d.ts +3 -0
- package/dist/game/rounded-toggle/RoundedToggle.d.ts +23 -0
- package/dist/game/rounded-toggle/RoundedToggle.js +2 -0
- package/dist/game/rounded-toggle/index.d.ts +3 -0
- package/dist/game/rounded-toggle/keyboard.js +2 -0
- package/dist/game/rounded-toggle/spring-highlight.js +2 -0
- package/dist/game/splash-screen/EndfieldSplashScreen.d.ts +14 -0
- package/dist/game/splash-screen/EndfieldSplashScreen.js +2 -0
- package/dist/game/splash-screen/index.d.ts +3 -0
- package/dist/game.d.ts +29 -383
- package/dist/game.js +1 -2068
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useAddedKeys.js +2 -0
- package/dist/hooks/useControllableState.d.ts +12 -0
- package/dist/hooks/useControllableState.js +2 -0
- package/dist/hooks/useFlip.js +2 -0
- package/dist/hooks/useInView.d.ts +15 -0
- package/dist/hooks/useInView.js +2 -0
- package/dist/hooks/useIndicator.js +2 -0
- package/dist/hooks/useLingering.js +2 -0
- package/dist/hooks/useOverflowing.js +2 -0
- package/dist/hooks/usePortalScope.d.ts +26 -0
- package/dist/hooks/usePortalScope.js +2 -0
- package/dist/hooks/usePresence.js +2 -0
- package/dist/hooks/useReducedMotion.d.ts +10 -0
- package/dist/hooks/useReducedMotion.js +2 -0
- package/dist/hooks/useScrollPosition.js +2 -0
- package/dist/hooks/useTheme.d.ts +21 -0
- package/dist/hooks/useTheme.js +2 -0
- package/dist/icons/ArrowCorner.d.ts +9 -0
- package/dist/icons/ArrowCorner.js +2 -0
- package/dist/icons/ArrowLeft.d.ts +8 -0
- package/dist/icons/ArrowLeft.js +2 -0
- package/dist/icons/ArrowRight.d.ts +8 -0
- package/dist/icons/ArrowRight.js +2 -0
- package/dist/icons/CalendarIcon.d.ts +12 -0
- package/dist/icons/CalendarIcon.js +2 -0
- package/dist/icons/Check.d.ts +9 -0
- package/dist/icons/Check.js +2 -0
- package/dist/icons/ChevronDown.d.ts +8 -0
- package/dist/icons/ChevronDown.js +2 -0
- package/dist/icons/ChevronLeft.d.ts +8 -0
- package/dist/icons/ChevronLeft.js +2 -0
- package/dist/icons/ChevronRight.d.ts +8 -0
- package/dist/icons/ChevronRight.js +2 -0
- package/dist/icons/Close.d.ts +8 -0
- package/dist/icons/Close.js +2 -0
- package/dist/icons/Crosshair.d.ts +9 -0
- package/dist/icons/Crosshair.js +2 -0
- package/dist/icons/Lock.d.ts +8 -0
- package/dist/icons/Lock.js +2 -0
- package/dist/icons/Menu.d.ts +9 -0
- package/dist/icons/Menu.js +2 -0
- package/dist/icons/Minus.d.ts +9 -0
- package/dist/icons/Minus.js +2 -0
- package/dist/icons/Plus.d.ts +8 -0
- package/dist/icons/Plus.js +2 -0
- package/dist/icons/StatusDanger.d.ts +9 -0
- package/dist/icons/StatusDanger.js +2 -0
- package/dist/icons/StatusInfo.d.ts +9 -0
- package/dist/icons/StatusInfo.js +2 -0
- package/dist/icons/StatusSuccess.d.ts +9 -0
- package/dist/icons/StatusSuccess.js +2 -0
- package/dist/icons/StatusWarning.d.ts +9 -0
- package/dist/icons/StatusWarning.js +2 -0
- package/dist/icons/TriangleRight.d.ts +9 -0
- package/dist/icons/TriangleRight.js +2 -0
- package/dist/icons/Upload.d.ts +9 -0
- package/dist/icons/Upload.js +2 -0
- package/dist/icons/createIcon.d.ts +16 -0
- package/dist/icons/createIcon.js +2 -0
- package/dist/icons/index.d.ts +23 -0
- package/dist/index.d.ts +209 -3546
- package/dist/index.js +1 -9848
- package/dist/lib/cn.d.ts +5 -0
- package/dist/lib/cn.js +2 -0
- package/dist/lib/create-lazy-context.js +2 -0
- package/dist/lib/date.js +2 -0
- package/dist/lib/decor.js +2 -0
- package/dist/lib/defined.js +2 -0
- package/dist/lib/file.js +2 -0
- package/dist/lib/focus-ring.js +2 -0
- package/dist/lib/inline-style.js +2 -0
- package/dist/lib/merge-refs.js +2 -0
- package/dist/lib/motion.js +2 -0
- package/dist/styles.css +1 -1
- package/package.json +17 -11
- package/src/components/accordion/Accordion.tsx +13 -5
- package/src/components/avatar/AvatarSwitcher.tsx +7 -5
- package/src/components/button/Button.tsx +77 -90
- package/src/components/carousel/Carousel.tsx +6 -5
- package/src/components/context-menu/ContextMenu.tsx +5 -2
- package/src/components/data-row/DataRow.tsx +10 -4
- package/src/components/date-picker/DateField.tsx +1 -1
- package/src/components/dropdown-menu/DropdownMenu.tsx +7 -4
- package/src/components/dropdown-menu/menu-style.ts +3 -2
- package/src/components/field/Field.tsx +10 -6
- package/src/components/flyout-bar/FlyoutBar.tsx +1 -1
- package/src/components/icon-button/IconButton.tsx +5 -5
- package/src/components/image-viewer/ImageViewer.tsx +6 -5
- package/src/components/list/List.tsx +7 -5
- package/src/components/nav-action/NavAction.tsx +6 -4
- package/src/components/nav-menu/NavMenu.tsx +13 -7
- package/src/components/page-header/PageHeader.tsx +1 -1
- package/src/components/play-button/PlayButton.tsx +1 -1
- package/src/components/radio/Radio.tsx +7 -5
- package/src/components/schedule/Schedule.tsx +7 -5
- package/src/components/segmented-control/SegmentedControl.tsx +7 -5
- package/src/components/select/Select.tsx +11 -9
- package/src/components/side-rail/SideRail.tsx +15 -9
- package/src/components/side-rail/SideRailSub.tsx +12 -7
- package/src/components/steps/Steps.tsx +7 -5
- package/src/components/table/Table.tsx +23 -17
- package/src/components/tabs/Tabs.tsx +7 -5
- package/src/components/toast/Toast.tsx +8 -5
- package/src/components/toc/Toc.tsx +5 -4
- package/src/components/toolbar/Toolbar.tsx +7 -6
- package/src/components/tooltip/Tooltip.tsx +7 -4
- package/src/components/top-bar/TopBar.tsx +7 -2
- package/src/icons/ArrowCorner.tsx +1 -1
- package/src/icons/ArrowLeft.tsx +1 -1
- package/src/icons/ArrowRight.tsx +1 -1
- package/src/icons/CalendarIcon.tsx +1 -1
- package/src/icons/Check.tsx +4 -1
- package/src/icons/ChevronDown.tsx +4 -1
- package/src/icons/ChevronLeft.tsx +1 -1
- package/src/icons/ChevronRight.tsx +1 -1
- package/src/icons/Close.tsx +4 -1
- package/src/icons/Crosshair.tsx +1 -1
- package/src/icons/Lock.tsx +1 -1
- package/src/icons/Menu.tsx +4 -1
- package/src/icons/Minus.tsx +1 -1
- package/src/icons/Plus.tsx +4 -1
- package/src/icons/StatusDanger.tsx +1 -1
- package/src/icons/StatusInfo.tsx +1 -1
- package/src/icons/StatusSuccess.tsx +1 -1
- package/src/icons/StatusWarning.tsx +1 -1
- package/src/icons/TriangleRight.tsx +1 -1
- package/src/icons/Upload.tsx +1 -1
- package/src/lib/cn.ts +1 -1
- package/src/lib/create-lazy-context.ts +6 -0
- package/src/styles/theme.css +37 -0
- package/src/components/README.md +0 -191
- package/src/hooks/README.md +0 -20
- package/src/icons/README.md +0 -31
- package/src/lib/README.md +0 -19
- package/src/styles/README.md +0 -77
package/dist/game.d.ts
CHANGED
|
@@ -1,384 +1,30 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/** 点遮罩是否请求关闭。默认允许。 */
|
|
32
|
-
dismissible?: boolean;
|
|
33
|
-
/** Esc 是否请求关闭。未传时跟随 dismissible。 */
|
|
34
|
-
keyboardCloseable?: boolean;
|
|
35
|
-
/** 所有内部关闭请求都会执行;返回 false 或失败时保持打开。 */
|
|
36
|
-
onClose?: CloseAction;
|
|
37
|
-
/** 遮罩与 Esc 请求先执行此回调,再执行 onClose。 */
|
|
38
|
-
onDismiss?: CloseAction;
|
|
39
|
-
closeLabel?: string;
|
|
40
|
-
initialFocus?: PopupProps$1["initialFocus"];
|
|
41
|
-
finalFocus?: PopupProps$1["finalFocus"];
|
|
42
|
-
keepMounted?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 是不是模态。默认是。传 `false` 时不锁焦点、不锁页面滚动,页面的其余部分照常能用——
|
|
45
|
-
* 配上 `container` 可以把弹窗嵌在页面的一块区域里展示。
|
|
46
|
-
*/
|
|
47
|
-
modal?: boolean;
|
|
48
|
-
/** 弹层挂到哪个元素里。默认挂在 `<body>` 下 */
|
|
49
|
-
container?: PortalProps$1["container"];
|
|
50
|
-
children?: ReactNode;
|
|
51
|
-
};
|
|
52
|
-
export declare function AnimatedDialog({ trigger, open: controlledOpen, defaultOpen, onOpenChange, title, description, icon, width, height, className, classNames, dismissible, keyboardCloseable, onClose, onDismiss, closeLabel, initialFocus, finalFocus, keepMounted, modal, container, children, ...popupProps }: AnimatedDialogProps): import("react").JSX.Element;
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/game/banner-alert/types.d.ts
|
|
55
|
-
type PopupProps = ComponentProps<typeof Dialog.Popup>;
|
|
56
|
-
type PortalProps = ComponentProps<typeof Dialog.Portal>;
|
|
57
|
-
type AlertAction = () => boolean | void | PromiseLike<boolean | void>;
|
|
58
|
-
type AlertClassName = string | ((open: boolean) => string);
|
|
59
|
-
type AlertClassNames = {
|
|
60
|
-
backdrop?: AlertClassName;
|
|
61
|
-
alert?: AlertClassName;
|
|
62
|
-
content?: AlertClassName;
|
|
63
|
-
};
|
|
64
|
-
type AlertModalProps = Omit<ComponentProps<"div">, "title" | "children" | "onClose" | "onCancel" | "style"> & {
|
|
65
|
-
trigger?: ReactElement<Record<string, unknown>>;
|
|
66
|
-
open?: boolean;
|
|
67
|
-
defaultOpen?: boolean;
|
|
68
|
-
onOpenChange?: (open: boolean) => void;
|
|
69
|
-
title: ReactNode;
|
|
70
|
-
description?: ReactNode;
|
|
71
|
-
dismissible?: boolean;
|
|
72
|
-
keyboardCloseable?: boolean;
|
|
73
|
-
hideCancel?: boolean;
|
|
74
|
-
cancelText?: string;
|
|
75
|
-
confirmText?: string;
|
|
76
|
-
loading?: boolean;
|
|
77
|
-
showIcon?: boolean;
|
|
78
|
-
width?: CSSProperties["width"];
|
|
79
|
-
height?: CSSProperties["height"];
|
|
80
|
-
classNames?: AlertClassNames;
|
|
81
|
-
onConfirm?: AlertAction;
|
|
82
|
-
onCancel?: AlertAction;
|
|
83
|
-
onDismiss?: AlertAction;
|
|
84
|
-
onClose?: AlertAction;
|
|
85
|
-
initialFocus?: PopupProps["initialFocus"];
|
|
86
|
-
finalFocus?: PopupProps["finalFocus"];
|
|
87
|
-
keepMounted?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* 是不是模态。默认是。传 `false` 时不锁焦点、不锁页面滚动,页面的其余部分照常能用——
|
|
90
|
-
* 配上 `container` 可以把弹窗嵌在页面的一块区域里展示。
|
|
91
|
-
*/
|
|
92
|
-
modal?: boolean;
|
|
93
|
-
/** 弹层挂到哪个元素里。默认挂在 `<body>` 下 */
|
|
94
|
-
container?: PortalProps["container"];
|
|
95
|
-
children?: ReactNode;
|
|
96
|
-
};
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/game/banner-alert/BannerAlert.d.ts
|
|
99
|
-
type BannerAlertProps = AlertModalProps;
|
|
100
|
-
export declare function BannerAlert({ children, width, hideCancel, cancelText, confirmText, showIcon, classNames, ...props }: BannerAlertProps): import("react").JSX.Element;
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/game/full-width-alert/FullWidthAlert.d.ts
|
|
103
|
-
type FullWidthAlertProps = Omit<AlertModalProps, "width">;
|
|
104
|
-
/** 横贯视口的确认面板,底部按钮突出于面板下沿。 */
|
|
105
|
-
export declare function FullWidthAlert({ hideCancel, cancelText, confirmText, showIcon, height, classNames, children, ...props }: FullWidthAlertProps): import("react").JSX.Element;
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region src/game/item-icon/types.d.ts
|
|
108
|
-
type ItemIconTrans = "" | "formula" | "bigGem";
|
|
109
|
-
interface ItemIconLayers {
|
|
110
|
-
iconUrl: string;
|
|
111
|
-
iconBgUrl?: string;
|
|
112
|
-
iconMarkUrl?: string;
|
|
113
|
-
iconOverlayUrl?: string;
|
|
114
|
-
iconContentUrl?: string;
|
|
115
|
-
iconTrans?: ItemIconTrans;
|
|
116
|
-
iconShowRarity?: boolean;
|
|
117
|
-
}
|
|
118
|
-
interface ItemIconImageProps {
|
|
119
|
-
src: string;
|
|
120
|
-
alt: string;
|
|
121
|
-
className?: string;
|
|
122
|
-
style?: CSSProperties;
|
|
123
|
-
fallback?: ReactNode;
|
|
124
|
-
loading?: "lazy" | "eager";
|
|
125
|
-
}
|
|
126
|
-
type ItemIconImageRenderer = (props: ItemIconImageProps) => ReactNode;
|
|
127
|
-
interface ItemIconProps {
|
|
128
|
-
layers: ItemIconLayers;
|
|
129
|
-
alt: string;
|
|
130
|
-
className?: string;
|
|
131
|
-
style?: CSSProperties;
|
|
132
|
-
fallback?: ReactNode;
|
|
133
|
-
loading?: "lazy" | "eager";
|
|
134
|
-
renderImage?: ItemIconImageRenderer;
|
|
135
|
-
}
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/game/item-icon/ItemIcon.d.ts
|
|
138
|
-
export declare function ItemIcon({ layers, alt, className, style, fallback, loading, renderImage }: ItemIconProps): import("react").JSX.Element;
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/game/item-icon/helpers.d.ts
|
|
141
|
-
export declare const EMPTY_ITEM_ICON_LAYERS: Readonly<Required<ItemIconLayers>>;
|
|
142
|
-
export declare const ITEM_ICON_TRANSFORMS: {
|
|
143
|
-
readonly formula: {
|
|
144
|
-
readonly scale: 0.72;
|
|
145
|
-
readonly pivotX: 1;
|
|
146
|
-
readonly pivotY: 0.5;
|
|
147
|
-
};
|
|
148
|
-
readonly bigGem: {
|
|
149
|
-
readonly scale: 1;
|
|
150
|
-
readonly offsetX: 3;
|
|
151
|
-
readonly offsetY: 4;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
type ItemIconTransformKey = keyof typeof ITEM_ICON_TRANSFORMS;
|
|
155
|
-
export declare function itemIconTransformStyle(key: ItemIconTransformKey): CSSProperties;
|
|
156
|
-
export declare function coerceItemIconTrans(value: unknown): ItemIconTrans;
|
|
157
|
-
export declare function pickItemIconLayers(source: object | null | undefined, prefix?: string): Required<ItemIconLayers>;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/game/item-card/ItemCard.d.ts
|
|
160
|
-
type ItemCardKind = "weapon" | "item" | "enemy" | "";
|
|
161
|
-
type ItemCardVariant = "banner" | "inventory";
|
|
162
|
-
type ItemCardSelectionAction = {
|
|
163
|
-
onSelect: () => void;
|
|
164
|
-
ariaLabel?: string;
|
|
165
|
-
selected?: boolean;
|
|
166
|
-
disabled?: boolean;
|
|
167
|
-
disabledReason?: string;
|
|
168
|
-
};
|
|
169
|
-
type ItemCardLinkProps = {
|
|
170
|
-
href: string;
|
|
171
|
-
children: ReactNode;
|
|
172
|
-
className: string;
|
|
173
|
-
"aria-label": string;
|
|
174
|
-
"data-item-tooltip-id"?: string;
|
|
175
|
-
};
|
|
176
|
-
type ItemCardLinkRenderer = (props: ItemCardLinkProps) => ReactNode;
|
|
177
|
-
type ItemCardProps = {
|
|
178
|
-
kind: ItemCardKind;
|
|
179
|
-
name: string;
|
|
180
|
-
imageUrl: string;
|
|
181
|
-
rarity: number;
|
|
182
|
-
itemId?: string;
|
|
183
|
-
/** 实际链接地址;组件不转换 Wiki 文章标题。 */
|
|
184
|
-
href?: string;
|
|
185
|
-
variant?: ItemCardVariant;
|
|
186
|
-
count?: number;
|
|
187
|
-
showName?: boolean;
|
|
188
|
-
className?: string;
|
|
189
|
-
style?: CSSProperties;
|
|
190
|
-
icon?: ItemIconLayers;
|
|
191
|
-
action?: ItemCardSelectionAction;
|
|
192
|
-
badges?: ReactNode;
|
|
193
|
-
ariaLabel?: string;
|
|
194
|
-
fallback?: ReactNode;
|
|
195
|
-
renderImage?: ItemIconImageRenderer;
|
|
196
|
-
renderLink?: ItemCardLinkRenderer;
|
|
197
|
-
renderName?: (name: string) => ReactNode;
|
|
198
|
-
renderCount?: (count: number) => ReactNode;
|
|
199
|
-
};
|
|
200
|
-
/** Wiki 物品卡片:名称横条或库存数量横条,共用完整图层图标。 */
|
|
201
|
-
export declare const ItemCard: import("react").MemoExoticComponent<({ kind, name, imageUrl, rarity, itemId, href, variant, count, showName, className, style, icon, action, badges, ariaLabel, fallback, renderImage, renderLink, renderName, renderCount }: ItemCardProps) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined>;
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/game/item-tooltip-card/types.d.ts
|
|
204
|
-
type ItemTooltipObtainWay = {
|
|
205
|
-
id?: string;
|
|
206
|
-
name: string;
|
|
207
|
-
iconUrl?: string;
|
|
208
|
-
href?: string;
|
|
209
|
-
};
|
|
210
|
-
type ItemTooltipItem = ItemIconLayers & {
|
|
211
|
-
name: string;
|
|
212
|
-
rarity: number;
|
|
213
|
-
category?: string;
|
|
214
|
-
usage?: string;
|
|
215
|
-
description?: string;
|
|
216
|
-
/** 实际 URL,由使用方转换自己的文章或路由地址。 */
|
|
217
|
-
href?: string;
|
|
218
|
-
obtainWays?: readonly ItemTooltipObtainWay[];
|
|
219
|
-
noObtainWayHint?: string;
|
|
220
|
-
};
|
|
221
|
-
type ItemTooltipLinkProps = {
|
|
222
|
-
href: string;
|
|
223
|
-
className: string;
|
|
224
|
-
children: ReactNode;
|
|
225
|
-
"aria-label"?: string;
|
|
226
|
-
};
|
|
227
|
-
type ItemTooltipLinkRenderer = (props: ItemTooltipLinkProps) => ReactNode;
|
|
228
|
-
type ItemTooltipCardProps = {
|
|
229
|
-
item: ItemTooltipItem;
|
|
230
|
-
className?: string;
|
|
231
|
-
style?: CSSProperties;
|
|
232
|
-
fontFamily?: string;
|
|
233
|
-
obtainLabel?: string;
|
|
234
|
-
renderText?: (text: string) => ReactNode;
|
|
235
|
-
renderImage?: ItemIconImageRenderer;
|
|
236
|
-
renderLink?: ItemTooltipLinkRenderer;
|
|
237
|
-
};
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region src/game/item-tooltip-card/ItemTooltipCard.d.ts
|
|
240
|
-
/** 固定灰色游戏皮肤的物品详情;文章路由与富文本由使用方接入。 */
|
|
241
|
-
export declare function ItemTooltipCard({ item, className, style, fontFamily, obtainLabel, renderText, renderImage, renderLink }: ItemTooltipCardProps): import("react").JSX.Element;
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region src/game/item-hover-card/ItemHoverCard.d.ts
|
|
244
|
-
type ItemHoverCardLayerProps = {
|
|
245
|
-
/** 由使用方的本地数据或缓存解析;组件不发请求。 */
|
|
246
|
-
resolveItem: (itemId: string, host: HTMLElement) => ItemTooltipItem | null | undefined;
|
|
247
|
-
root?: HTMLElement | Document;
|
|
248
|
-
rootRef?: RefObject<HTMLElement | null>;
|
|
249
|
-
disabled?: boolean;
|
|
250
|
-
/** 默认只在 768px 以上、支持精细指针悬停的设备启用。 */
|
|
251
|
-
disableOnMobile?: boolean;
|
|
252
|
-
openDelay?: number;
|
|
253
|
-
closeDelay?: number;
|
|
254
|
-
gap?: number;
|
|
255
|
-
width?: CSSProperties["width"];
|
|
256
|
-
className?: string;
|
|
257
|
-
style?: CSSProperties;
|
|
258
|
-
cardProps?: Omit<ItemTooltipCardProps, "item">;
|
|
259
|
-
onOpenChange?: (open: boolean, itemId: string | null) => void;
|
|
260
|
-
};
|
|
261
|
-
/** 一个监听层为网格内所有 data-item-tooltip-id 提供物品预览。 */
|
|
262
|
-
export declare function ItemHoverCardLayer({ resolveItem, root, rootRef, disabled, disableOnMobile, openDelay, closeDelay, gap, width, className, style, cardProps, onOpenChange }: ItemHoverCardLayerProps): import("react").JSX.Element | null;
|
|
263
|
-
type ItemHoverCardProps = Omit<ItemHoverCardLayerProps, "resolveItem" | "root" | "rootRef"> & {
|
|
264
|
-
item: ItemTooltipItem;
|
|
265
|
-
children: ReactNode;
|
|
266
|
-
triggerProps?: Omit<HTMLAttributes<HTMLSpanElement>, "children">;
|
|
267
|
-
};
|
|
268
|
-
export declare function ItemHoverCard({ item, children, triggerProps, ...layerProps }: ItemHoverCardProps): import("react").JSX.Element;
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region src/game/rounded-button/RoundedButton.d.ts
|
|
271
|
-
type RoundedButtonVariant = "primary" | "default";
|
|
272
|
-
type RoundedButtonSlotClass = string | ((isPrimary: boolean) => string);
|
|
273
|
-
type RoundedButtonProps = ComponentProps<"button"> & {
|
|
274
|
-
variant?: RoundedButtonVariant;
|
|
275
|
-
text?: string;
|
|
276
|
-
icon?: ReactNode;
|
|
277
|
-
showIcon?: boolean;
|
|
278
|
-
iconPosition?: "left" | "right";
|
|
279
|
-
loading?: boolean;
|
|
280
|
-
classNames?: {
|
|
281
|
-
button?: RoundedButtonSlotClass;
|
|
282
|
-
text?: RoundedButtonSlotClass;
|
|
283
|
-
icon?: RoundedButtonSlotClass;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
/** 原灰色圆角按钮;悬停闪动由浏览器动画执行。 */
|
|
287
|
-
export declare function RoundedButton({ variant, type, text, children, icon, showIcon, iconPosition, loading, disabled, className, classNames, onClick, onPointerEnter, onPointerLeave, ...props }: RoundedButtonProps): import("react").JSX.Element;
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/game/rounded-button/RoundedIconButton.d.ts
|
|
290
|
-
type RoundedIconButtonProps = ComponentProps<"button"> & {
|
|
291
|
-
"aria-label": string;
|
|
292
|
-
children: ReactNode;
|
|
293
|
-
};
|
|
294
|
-
/** 24px 圆形图标按钮;纹理与双边线只作装饰。 */
|
|
295
|
-
export declare function RoundedIconButton({ type, disabled, children, className, ...props }: RoundedIconButtonProps): import("react").JSX.Element;
|
|
296
|
-
//#endregion
|
|
297
|
-
//#region src/game/rounded-select/RoundedSelect.d.ts
|
|
298
|
-
type RoundedSelectOption<T extends string = string> = {
|
|
299
|
-
value: T;
|
|
300
|
-
label: ReactNode;
|
|
301
|
-
disabled?: boolean;
|
|
302
|
-
hidden?: boolean;
|
|
303
|
-
left?: ReactNode | ((selected: boolean) => ReactNode);
|
|
304
|
-
right?: ReactNode | ((selected: boolean) => ReactNode);
|
|
305
|
-
/** 自定义标签的键盘文字匹配名称。 */
|
|
306
|
-
textValue?: string;
|
|
307
|
-
};
|
|
308
|
-
type RoundedSelectProps<T extends string = string> = {
|
|
309
|
-
options: readonly RoundedSelectOption<T>[];
|
|
310
|
-
value?: T | null;
|
|
311
|
-
defaultValue?: T | null;
|
|
312
|
-
onValueChange?: (value: T) => void;
|
|
313
|
-
placeholder?: ReactNode;
|
|
314
|
-
name?: string;
|
|
315
|
-
form?: string;
|
|
316
|
-
required?: boolean;
|
|
317
|
-
disabled?: boolean;
|
|
318
|
-
invalid?: boolean;
|
|
319
|
-
open?: boolean;
|
|
320
|
-
defaultOpen?: boolean;
|
|
321
|
-
onOpenChange?: (open: boolean) => void;
|
|
322
|
-
id?: string;
|
|
323
|
-
"aria-label"?: string;
|
|
324
|
-
"aria-describedby"?: string;
|
|
325
|
-
className?: string;
|
|
326
|
-
classNames?: {
|
|
327
|
-
container?: string;
|
|
328
|
-
trigger?: string;
|
|
329
|
-
option?: string;
|
|
330
|
-
optionContainer?: string;
|
|
331
|
-
optionScrollArea?: string;
|
|
332
|
-
};
|
|
333
|
-
ref?: Ref<HTMLButtonElement>;
|
|
334
|
-
};
|
|
335
|
-
/** 圆角触发器与半覆盖面板;隐藏项不进入列表,禁用项不能选择。 */
|
|
336
|
-
export declare function RoundedSelect<T extends string = string>({ options, value, defaultValue, onValueChange, placeholder, name, form, required: requiredProp, disabled: disabledProp, invalid: invalidProp, open, defaultOpen, onOpenChange, id: idProp, "aria-label": ariaLabel, "aria-describedby": describedByProp, className, classNames, ref }: RoundedSelectProps<T>): import("react").JSX.Element;
|
|
337
|
-
//#endregion
|
|
338
|
-
//#region src/game/rounded-switch/RoundedSwitch.d.ts
|
|
339
|
-
type RoundedSwitchProps = Omit<ComponentProps<"div">, "defaultChecked" | "defaultValue" | "onChange" | "children"> & {
|
|
340
|
-
checked?: boolean;
|
|
341
|
-
defaultChecked?: boolean;
|
|
342
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
343
|
-
onText?: ReactNode;
|
|
344
|
-
offText?: ReactNode;
|
|
345
|
-
name?: string;
|
|
346
|
-
form?: string;
|
|
347
|
-
disabled?: boolean;
|
|
348
|
-
required?: boolean;
|
|
349
|
-
};
|
|
350
|
-
export declare function RoundedSwitch({ checked, defaultChecked, onCheckedChange, onText, offText, name, form, disabled: disabledProp, required: requiredProp, className, onKeyDown, ...props }: RoundedSwitchProps): import("react").JSX.Element;
|
|
351
|
-
//#endregion
|
|
352
|
-
//#region src/game/rounded-toggle/RoundedToggle.d.ts
|
|
353
|
-
type RoundedToggleOption = {
|
|
354
|
-
value: string;
|
|
355
|
-
label: ReactNode;
|
|
356
|
-
icon?: ReactNode;
|
|
357
|
-
disabled?: boolean;
|
|
358
|
-
"aria-label"?: string;
|
|
359
|
-
};
|
|
360
|
-
type RoundedToggleProps = Omit<ComponentProps<"div">, "defaultValue" | "onChange" | "children"> & {
|
|
361
|
-
options: readonly RoundedToggleOption[];
|
|
362
|
-
value?: string;
|
|
363
|
-
defaultValue?: string;
|
|
364
|
-
onValueChange?: (value: string) => void;
|
|
365
|
-
label?: string;
|
|
366
|
-
name?: string;
|
|
367
|
-
form?: string;
|
|
368
|
-
required?: boolean;
|
|
369
|
-
disabled?: boolean;
|
|
370
|
-
};
|
|
371
|
-
export declare function RoundedToggle({ options, value, defaultValue, onValueChange, label, name, form, required: requiredProp, disabled: disabledProp, className, onKeyDown, "aria-label": ariaLabel, ...props }: RoundedToggleProps): import("react").JSX.Element;
|
|
372
|
-
//#endregion
|
|
373
|
-
//#region src/game/splash-screen/EndfieldSplashScreen.d.ts
|
|
374
|
-
type EndfieldSplashScreenProps = Omit<SplashScreenProps, "backdrop" | "caption" | "decor">;
|
|
375
|
-
/**
|
|
376
|
-
* 官网的开屏页:主入口的 `SplashScreen` 填上官方的标志、底图和微标。
|
|
377
|
-
* 排法、动画、属性都是 `SplashScreen` 的,这里只管把图放进它的插槽。
|
|
378
|
-
*
|
|
379
|
-
* 标志、标语、状态字可以换(`logo`、`tagline`、`status`);底图和微标经变量换,
|
|
380
|
-
* 或者用 `data-ef-game-images="off"` 整类关掉,见 docs/design/game/splash-screen.md
|
|
381
|
-
*/
|
|
382
|
-
export declare function EndfieldSplashScreen({ logo, tagline, status, className, ...props }: EndfieldSplashScreenProps): import("react").JSX.Element;
|
|
383
|
-
//#endregion
|
|
384
|
-
export type { AnimatedDialogClassNames, AnimatedDialogProps, BannerAlertProps, EndfieldSplashScreenProps, FullWidthAlertProps, ItemCardKind, ItemCardLinkProps, ItemCardLinkRenderer, ItemCardProps, ItemCardSelectionAction, ItemCardVariant, ItemHoverCardLayerProps, ItemHoverCardProps, ItemIconImageProps, ItemIconImageRenderer, ItemIconLayers, ItemIconProps, ItemIconTrans, ItemIconTransformKey, ItemTooltipCardProps, ItemTooltipItem, ItemTooltipLinkProps, ItemTooltipLinkRenderer, ItemTooltipObtainWay, RoundedButtonProps, RoundedButtonVariant, RoundedIconButtonProps, RoundedSelectOption, RoundedSelectProps, RoundedSwitchProps, RoundedToggleOption, RoundedToggleProps };
|
|
2
|
+
import { AnimatedDialog, AnimatedDialogClassNames, AnimatedDialogProps } from "./game/animated-dialog/AnimatedDialog.js";
|
|
3
|
+
import "./game/animated-dialog/index.js";
|
|
4
|
+
import { BannerAlert, BannerAlertProps } from "./game/banner-alert/BannerAlert.js";
|
|
5
|
+
import "./game/banner-alert/index.js";
|
|
6
|
+
import { FullWidthAlert, FullWidthAlertProps } from "./game/full-width-alert/FullWidthAlert.js";
|
|
7
|
+
import "./game/full-width-alert/index.js";
|
|
8
|
+
import { ItemIconImageProps, ItemIconImageRenderer, ItemIconLayers, ItemIconProps, ItemIconTrans } from "./game/item-icon/types.js";
|
|
9
|
+
import { ItemIcon } from "./game/item-icon/ItemIcon.js";
|
|
10
|
+
import { EMPTY_ITEM_ICON_LAYERS, ITEM_ICON_TRANSFORMS, ItemIconTransformKey, coerceItemIconTrans, itemIconTransformStyle, pickItemIconLayers } from "./game/item-icon/helpers.js";
|
|
11
|
+
import "./game/item-icon/index.js";
|
|
12
|
+
import { ItemCard, ItemCardKind, ItemCardLinkProps, ItemCardLinkRenderer, ItemCardProps, ItemCardSelectionAction, ItemCardVariant } from "./game/item-card/ItemCard.js";
|
|
13
|
+
import "./game/item-card/index.js";
|
|
14
|
+
import { ItemTooltipCardProps, ItemTooltipItem, ItemTooltipLinkProps, ItemTooltipLinkRenderer, ItemTooltipObtainWay } from "./game/item-tooltip-card/types.js";
|
|
15
|
+
import { ItemTooltipCard } from "./game/item-tooltip-card/ItemTooltipCard.js";
|
|
16
|
+
import "./game/item-tooltip-card/index.js";
|
|
17
|
+
import { ItemHoverCard, ItemHoverCardLayer, ItemHoverCardLayerProps, ItemHoverCardProps } from "./game/item-hover-card/ItemHoverCard.js";
|
|
18
|
+
import "./game/item-hover-card/index.js";
|
|
19
|
+
import { RoundedButton, RoundedButtonProps, RoundedButtonVariant } from "./game/rounded-button/RoundedButton.js";
|
|
20
|
+
import { RoundedIconButton, RoundedIconButtonProps } from "./game/rounded-button/RoundedIconButton.js";
|
|
21
|
+
import "./game/rounded-button/index.js";
|
|
22
|
+
import { RoundedSelect, RoundedSelectOption, RoundedSelectProps } from "./game/rounded-select/RoundedSelect.js";
|
|
23
|
+
import "./game/rounded-select/index.js";
|
|
24
|
+
import { RoundedSwitch, RoundedSwitchProps } from "./game/rounded-switch/RoundedSwitch.js";
|
|
25
|
+
import "./game/rounded-switch/index.js";
|
|
26
|
+
import { RoundedToggle, RoundedToggleOption, RoundedToggleProps } from "./game/rounded-toggle/RoundedToggle.js";
|
|
27
|
+
import "./game/rounded-toggle/index.js";
|
|
28
|
+
import { EndfieldSplashScreen, EndfieldSplashScreenProps } from "./game/splash-screen/EndfieldSplashScreen.js";
|
|
29
|
+
import "./game/splash-screen/index.js";
|
|
30
|
+
export { AnimatedDialog, type AnimatedDialogClassNames, type AnimatedDialogProps, BannerAlert, type BannerAlertProps, EMPTY_ITEM_ICON_LAYERS, EndfieldSplashScreen, type EndfieldSplashScreenProps, FullWidthAlert, type FullWidthAlertProps, ITEM_ICON_TRANSFORMS, ItemCard, type ItemCardKind, type ItemCardLinkProps, type ItemCardLinkRenderer, type ItemCardProps, type ItemCardSelectionAction, type ItemCardVariant, ItemHoverCard, ItemHoverCardLayer, type ItemHoverCardLayerProps, type ItemHoverCardProps, ItemIcon, type ItemIconImageProps, type ItemIconImageRenderer, type ItemIconLayers, type ItemIconProps, type ItemIconTrans, type ItemIconTransformKey, ItemTooltipCard, type ItemTooltipCardProps, type ItemTooltipItem, type ItemTooltipLinkProps, type ItemTooltipLinkRenderer, type ItemTooltipObtainWay, RoundedButton, type RoundedButtonProps, type RoundedButtonVariant, RoundedIconButton, type RoundedIconButtonProps, RoundedSelect, type RoundedSelectOption, type RoundedSelectProps, RoundedSwitch, type RoundedSwitchProps, RoundedToggle, type RoundedToggleOption, type RoundedToggleProps, coerceItemIconTrans, itemIconTransformStyle, pickItemIconLayers };
|