@lobehub/ui 6.15.2 → 6.15.4
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/es/A/index.d.mts +1 -2
- package/es/Accordion/Accordion.d.mts +1 -2
- package/es/Accordion/atoms.d.mts +1 -2
- package/es/Accordion/style.d.mts +1 -2
- package/es/Accordion/type.d.mts +1 -2
- package/es/ActionIcon/ActionIcon.d.mts +1 -2
- package/es/ActionIcon/style.d.mts +1 -2
- package/es/ActionIcon/type.d.mts +1 -2
- package/es/ActionIconGroup/ActionIconGroup.d.mts +1 -2
- package/es/ActionIconGroup/ActionIconGroup.mjs.map +1 -1
- package/es/ActionIconGroup/type.d.mts +1 -2
- package/es/AgentAvatar/AgentAvatar.d.mts +1 -2
- package/es/AgentAvatar/type.d.mts +1 -2
- package/es/AgentAvatar/utils.d.mts +1 -2
- package/es/Alert/Alert.d.mts +1 -2
- package/es/Alert/style.d.mts +1 -2
- package/es/Alert/type.d.mts +1 -2
- package/es/Anchor/Anchor.d.mts +1 -2
- package/es/Anchor/Anchor.mjs +1 -1
- package/es/Anchor/type.d.mts +1 -2
- package/es/AutoComplete/AutoComplete.d.mts +1 -2
- package/es/AutoComplete/style.d.mts +2 -3
- package/es/AutoComplete/type.d.mts +1 -2
- package/es/Avatar/AvatarGroup/index.d.mts +1 -2
- package/es/Avatar/index.d.mts +1 -2
- package/es/Avatar/type.d.mts +1 -2
- package/es/Badge/Badge.d.mts +1 -2
- package/es/Badge/type.d.mts +1 -2
- package/es/Block/Block.d.mts +1 -2
- package/es/Block/type.d.mts +1 -2
- package/es/Breadcrumb/Breadcrumb.d.mts +1 -2
- package/es/Breadcrumb/type.d.mts +1 -2
- package/es/Burger/Burger.d.mts +1 -2
- package/es/Burger/type.d.mts +1 -2
- package/es/Button/Button.d.mts +1 -2
- package/es/Button/SplitButton.d.mts +1 -2
- package/es/Button/SplitButton.mjs.map +1 -1
- package/es/Button/style.d.mts +1 -2
- package/es/Button/type.d.mts +1 -2
- package/es/Carousel/Carousel.d.mts +1 -2
- package/es/Carousel/type.d.mts +1 -2
- package/es/Checkbox/Checkbox.d.mts +1 -2
- package/es/Checkbox/Checkbox.mjs +6 -6
- package/es/Checkbox/Checkbox.mjs.map +1 -1
- package/es/Checkbox/CheckboxGroup.d.mts +1 -2
- package/es/Checkbox/CheckboxGroup.mjs +5 -5
- package/es/Checkbox/CheckboxGroup.mjs.map +1 -1
- package/es/Checkbox/style.d.mts +1 -2
- package/es/Checkbox/type.d.mts +1 -2
- package/es/CodeDiff/CodeDiff.d.mts +1 -2
- package/es/CodeDiff/PatchDiff.d.mts +1 -2
- package/es/CodeDiff/PatchDiff.mjs +5 -5
- package/es/CodeDiff/PatchDiff.mjs.map +1 -1
- package/es/CodeDiff/theme.mjs.map +1 -1
- package/es/CodeDiff/type.d.mts +1 -2
- package/es/CodeEditor/CodeEditor.d.mts +1 -2
- package/es/CodeEditor/type.d.mts +1 -2
- package/es/Collapsible/Collapsible.d.mts +1 -2
- package/es/Collapsible/Collapsible.mjs +5 -5
- package/es/Collapsible/Collapsible.mjs.map +1 -1
- package/es/Collapsible/type.d.mts +1 -2
- package/es/ColorPicker/ColorPicker.d.mts +1 -2
- package/es/ColorPicker/type.d.mts +1 -2
- package/es/ColorSwatches/ColorSwatches.d.mts +1 -2
- package/es/ColorSwatches/type.d.mts +1 -2
- package/es/ConfigProvider/AppElementContext.d.mts +1 -2
- package/es/ConfigProvider/index.d.mts +1 -2
- package/es/ContextMenu/ContextMenuHost.d.mts +1 -2
- package/es/ContextMenu/ContextMenuTrigger.d.mts +1 -2
- package/es/ContextMenu/renderItems.d.mts +1 -1
- package/es/ContextMenu/store.d.mts +1 -2
- package/es/ContextMenu/type.d.mts +1 -2
- package/es/CopyButton/CopyButton.d.mts +1 -2
- package/es/CopyButton/type.d.mts +1 -2
- package/es/DatePicker/DatePicker.d.mts +1 -2
- package/es/DatePicker/DateRangePicker.d.mts +1 -2
- package/es/DatePicker/DayjsDatePicker.d.mts +1 -2
- package/es/DatePicker/DayjsDateRangePicker.d.mts +1 -2
- package/es/DatePicker/RangePicker.mjs.map +1 -1
- package/es/DatePicker/SinglePicker.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Popup/Footer.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Popup/Footer.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs +4 -4
- package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Popup/index.mjs +14 -14
- package/es/DatePicker/core/PickerInput/Popup/index.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/RangePicker.d.mts +3 -4
- package/es/DatePicker/core/PickerInput/RangePicker.mjs +11 -11
- package/es/DatePicker/core/PickerInput/RangePicker.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/Icon.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/Icon.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/Input.mjs +15 -15
- package/es/DatePicker/core/PickerInput/Selector/Input.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/RangeSelector.d.mts +1 -2
- package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs +11 -11
- package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs +6 -6
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs +4 -4
- package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/SinglePicker.d.mts +6 -7
- package/es/DatePicker/core/PickerInput/SinglePicker.mjs +8 -8
- package/es/DatePicker/core/PickerInput/SinglePicker.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/context.mjs +2 -2
- package/es/DatePicker/core/PickerInput/context.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs +3 -3
- package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs +3 -3
- package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs +5 -5
- package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useHoverStore.mjs +3 -3
- package/es/DatePicker/core/PickerInput/hooks/useHoverStore.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/usePickerRef.mjs +3 -3
- package/es/DatePicker/core/PickerInput/hooks/usePickerRef.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs +4 -4
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs +3 -3
- package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs +5 -5
- package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/PanelBody.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/PanelBody.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/PanelHeader.mjs +6 -6
- package/es/DatePicker/core/PickerPanel/PanelHeader.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs +3 -3
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/geometry.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs +3 -3
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs +5 -5
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs +7 -7
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/context.mjs +6 -6
- package/es/DatePicker/core/PickerPanel/context.mjs.map +1 -1
- package/es/DatePicker/core/PickerPanel/index.mjs +12 -12
- package/es/DatePicker/core/PickerPanel/index.mjs.map +1 -1
- package/es/DatePicker/core/generate/index.d.mts +1 -2
- package/es/DatePicker/core/hooks/react.mjs +8 -8
- package/es/DatePicker/core/hooks/react.mjs.map +1 -1
- package/es/DatePicker/core/hooks/useSyncState.mjs +3 -3
- package/es/DatePicker/core/hooks/useSyncState.mjs.map +1 -1
- package/es/DatePicker/core/hooks/useTimeInfo.mjs +6 -6
- package/es/DatePicker/core/hooks/useTimeInfo.mjs.map +1 -1
- package/es/DatePicker/core/index.d.mts +28 -0
- package/es/DatePicker/core/interface.d.mts +1 -2
- package/es/DatePicker/generatePicker.d.mts +1 -2
- package/es/DatePicker/legacyDate.mjs.map +1 -1
- package/es/DatePicker/locale.d.mts +1 -2
- package/es/DatePicker/locale.mjs.map +1 -1
- package/es/DatePicker/type.d.mts +1 -2
- package/es/DatePicker/usePickerShared.mjs.map +1 -1
- package/es/Descriptions/Descriptions.d.mts +1 -2
- package/es/Descriptions/type.d.mts +1 -2
- package/es/Divider/Divider.d.mts +1 -2
- package/es/Divider/type.d.mts +1 -2
- package/es/DownloadButton/DownloadButton.d.mts +1 -2
- package/es/DownloadButton/type.d.mts +1 -2
- package/es/DraggablePanel/DraggablePanel.d.mts +1 -2
- package/es/DraggablePanel/atoms.d.mts +1 -2
- package/es/DraggablePanel/context.d.mts +1 -2
- package/es/DraggablePanel/core/axes.d.mts +1 -2
- package/es/DraggablePanel/core/controller.d.mts +1 -2
- package/es/DraggablePanel/type.d.mts +1 -2
- package/es/DraggableSideNav/DraggableSideNav.d.mts +1 -2
- package/es/DraggableSideNav/type.d.mts +1 -2
- package/es/Drawer/Drawer.d.mts +1 -2
- package/es/Drawer/atoms.d.mts +1 -2
- package/es/Drawer/constants.d.mts +1 -2
- package/es/Drawer/type.d.mts +1 -2
- package/es/DropdownMenu/DropdownMenu.d.mts +1 -2
- package/es/DropdownMenu/atoms.d.mts +1 -2
- package/es/DropdownMenu/renderItems.d.mts +1 -2
- package/es/DropdownMenu/style.d.mts +1 -2
- package/es/DropdownMenu/type.d.mts +1 -2
- package/es/EditableText/ControlInput.d.mts +1 -2
- package/es/EditableText/EditableText.d.mts +1 -2
- package/es/EditableText/EditableText.mjs.map +1 -1
- package/es/EditableText/type.d.mts +1 -2
- package/es/EditorSlashMenu/EditorSlashMenu.d.mts +1 -2
- package/es/EditorSlashMenu/EditorSlashMenu.mjs.map +1 -1
- package/es/EditorSlashMenu/atoms.d.mts +1 -2
- package/es/EditorSlashMenu/type.d.mts +1 -2
- package/es/EmojiPicker/EmojiPicker.d.mts +1 -2
- package/es/EmojiPicker/type.d.mts +1 -2
- package/es/Empty/Empty.d.mts +1 -2
- package/es/Empty/Empty.mjs.map +1 -1
- package/es/Empty/type.d.mts +1 -2
- package/es/FileTypeIcon/FileTypeIcon.d.mts +1 -2
- package/es/FileTypeIcon/type.d.mts +1 -2
- package/es/Flex/Center.d.mts +1 -2
- package/es/Flex/FlexBasic.d.mts +1 -2
- package/es/Flex/type.d.mts +1 -2
- package/es/FloatingPanel/FloatingPanel.d.mts +1 -2
- package/es/FloatingPanel/type.d.mts +1 -2
- package/es/FloatingSheet/FloatingSheet.d.mts +1 -2
- package/es/FloatingSheet/type.d.mts +1 -2
- package/es/FluentEmoji/FluentEmoji.d.mts +1 -2
- package/es/FluentEmoji/type.d.mts +1 -2
- package/es/FluentEmoji/utils.d.mts +1 -2
- package/es/FocusScope/FocusScope.d.mts +1 -2
- package/es/FocusScope/store.d.mts +1 -2
- package/es/FocusScope/style.d.mts +1 -2
- package/es/FocusScope/useScopeArrowNav.d.mts +1 -2
- package/es/FocusScope/useScopeSwitcher.d.mts +1 -2
- package/es/FontLoader/index.d.mts +1 -2
- package/es/FontLoader/index.mjs +2 -2
- package/es/FontLoader/index.mjs.map +1 -1
- package/es/Form/Form.mjs +5 -5
- package/es/Form/Form.mjs.map +1 -1
- package/es/Form/components/FormDivider.d.mts +1 -2
- package/es/Form/components/FormField.d.mts +1 -2
- package/es/Form/components/FormFlatGroup.d.mts +1 -2
- package/es/Form/components/FormFooter.d.mts +1 -2
- package/es/Form/components/FormGroup.d.mts +1 -2
- package/es/Form/components/FormSubmitFooter.d.mts +1 -2
- package/es/Form/components/FormTitle.d.mts +1 -2
- package/es/Form/context.d.mts +1 -2
- package/es/Form/index.d.mts +1 -2
- package/es/Form/type.d.mts +1 -2
- package/es/FormKit/Field.d.mts +1 -2
- package/es/FormKit/List.d.mts +1 -2
- package/es/FormKit/SubmitFooter.d.mts +1 -2
- package/es/FormKit/context.d.mts +1 -2
- package/es/FormKit/engine/tanstack.mjs.map +1 -1
- package/es/FormKit/engine/types.d.mts +1 -2
- package/es/FormKit/index.d.mts +1 -2
- package/es/FormKit/schema.d.mts +1 -2
- package/es/FormKit/type.d.mts +1 -2
- package/es/FormKit/useForm.d.mts +1 -2
- package/es/FormKit/useWatch.d.mts +1 -2
- package/es/Freeze/Freeze.d.mts +1 -2
- package/es/Freeze/type.d.mts +1 -2
- package/es/GlobalFocusRing/index.d.mts +1 -2
- package/es/Grid/Grid.d.mts +1 -2
- package/es/Grid/type.d.mts +1 -2
- package/es/GroupAvatar/GroupAvatar.d.mts +1 -2
- package/es/GroupAvatar/type.d.mts +1 -2
- package/es/GuideCard/GuideCard.d.mts +1 -2
- package/es/GuideCard/type.d.mts +1 -2
- package/es/Header/Header.d.mts +1 -2
- package/es/Header/type.d.mts +1 -2
- package/es/Highlighter/Highlighter.d.mts +1 -2
- package/es/Highlighter/SyntaxHighlighter/index.d.mts +1 -2
- package/es/Highlighter/const.d.mts +1 -2
- package/es/Highlighter/theme/lobe-highlights-theme.d.mts +1 -2
- package/es/Highlighter/theme/lobe-theme.d.mts +1 -2
- package/es/Highlighter/type.d.mts +1 -2
- package/es/Hotkey/Hotkey.d.mts +1 -2
- package/es/Hotkey/const.d.mts +1 -2
- package/es/Hotkey/type.d.mts +1 -2
- package/es/Hotkey/utils.d.mts +1 -2
- package/es/HotkeyInput/HotkeyInput.d.mts +1 -2
- package/es/HotkeyInput/type.d.mts +1 -2
- package/es/HtmlPreview/HtmlPreview.d.mts +1 -2
- package/es/HtmlPreview/HtmlPreview.mjs.map +1 -1
- package/es/HtmlPreview/Iframe.d.mts +1 -2
- package/es/HtmlPreview/Iframe.mjs.map +1 -1
- package/es/HtmlPreview/const.d.mts +1 -2
- package/es/HtmlPreview/injectAutoHeightScript.d.mts +1 -2
- package/es/HtmlPreview/type.d.mts +1 -2
- package/es/Icon/Icon.d.mts +1 -2
- package/es/Icon/components/IconProvider.d.mts +1 -2
- package/es/Icon/type.d.mts +1 -2
- package/es/Image/PreviewGroup.d.mts +1 -2
- package/es/Image/index.d.mts +1 -2
- package/es/Image/type.d.mts +1 -2
- package/es/Image/useImagePreview.d.mts +1 -2
- package/es/Image/viewer/geometry.d.mts +1 -2
- package/es/Image/viewer/registry.d.mts +1 -1
- package/es/ImageSelect/ImageSelect.d.mts +1 -2
- package/es/ImageSelect/type.d.mts +1 -2
- package/es/Input/Input.d.mts +1 -2
- package/es/Input/Input.mjs +5 -5
- package/es/Input/Input.mjs.map +1 -1
- package/es/Input/InputNumber.d.mts +1 -2
- package/es/Input/InputOTP.d.mts +1 -2
- package/es/Input/InputPassword.d.mts +1 -2
- package/es/Input/TextArea.d.mts +1 -2
- package/es/Input/style.d.mts +1 -2
- package/es/Input/type.d.mts +1 -2
- package/es/Layout/components/LayoutFooter.d.mts +1 -2
- package/es/Layout/components/LayoutHeader.d.mts +1 -2
- package/es/Layout/components/LayoutMain.d.mts +1 -2
- package/es/Layout/components/LayoutSidebar.d.mts +1 -2
- package/es/Layout/components/LayoutSidebarInner.d.mts +1 -2
- package/es/Layout/components/LayoutToc.d.mts +1 -2
- package/es/Layout/index.d.mts +1 -2
- package/es/Layout/type.d.mts +1 -2
- package/es/List/List.d.mts +1 -2
- package/es/List/ListRow.d.mts +1 -1
- package/es/List/type.d.mts +1 -2
- package/es/Markdown/Markdown.d.mts +1 -2
- package/es/Markdown/Typography.d.mts +1 -2
- package/es/Markdown/components/SearchResultCards/index.d.mts +1 -2
- package/es/Markdown/plugins/rehypeCustomFootnotes.d.mts +1 -2
- package/es/Markdown/plugins/rehypeKatexDir.d.mts +1 -2
- package/es/Markdown/plugins/remarkBr.d.mts +1 -2
- package/es/Markdown/plugins/remarkColor.d.mts +1 -2
- package/es/Markdown/plugins/remarkCustomFootnotes.d.mts +1 -2
- package/es/Markdown/plugins/remarkGfmPlus.d.mts +1 -2
- package/es/Markdown/plugins/remarkVideo.d.mts +1 -2
- package/es/Markdown/type.d.mts +1 -2
- package/es/MaskShadow/MaskShadow.d.mts +1 -2
- package/es/MaskShadow/type.d.mts +1 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.mts +1 -2
- package/es/MaterialFileTypeIcon/icon-map.json.d.mts +1 -2
- package/es/MaterialFileTypeIcon/{icon-map.mjs → icon-map.json.mjs} +1 -1
- package/es/MaterialFileTypeIcon/icon-map.json.mjs.map +1 -0
- package/es/MaterialFileTypeIcon/type.d.mts +1 -2
- package/es/MaterialFileTypeIcon/utils.mjs +1 -1
- package/es/Mermaid/Mermaid.d.mts +1 -2
- package/es/Mermaid/SyntaxMermaid/index.d.mts +1 -2
- package/es/Mermaid/const.d.mts +1 -2
- package/es/Mermaid/index.d.mts +1 -2
- package/es/Mermaid/themes.d.mts +2 -3
- package/es/Mermaid/type.d.mts +1 -2
- package/es/Meta/Meta.d.mts +1 -2
- package/es/Modal/Modal.d.mts +1 -2
- package/es/Modal/atoms.d.mts +1 -2
- package/es/Modal/constants.d.mts +1 -2
- package/es/Modal/context.d.mts +1 -2
- package/es/Modal/imperative.d.mts +1 -2
- package/es/Modal/type.d.mts +1 -2
- package/es/MotionProvider/index.d.mts +1 -2
- package/es/Pagination/Pagination.d.mts +1 -2
- package/es/Pagination/type.d.mts +1 -2
- package/es/Popover/ArrowIcon.d.mts +1 -2
- package/es/Popover/Popover.d.mts +1 -2
- package/es/Popover/PopoverGroup.d.mts +1 -2
- package/es/Popover/PopoverPortal.d.mts +1 -2
- package/es/Popover/atoms.d.mts +1 -2
- package/es/Popover/context.d.mts +1 -2
- package/es/Popover/groupContext.d.mts +1 -2
- package/es/Popover/type.d.mts +10 -12
- package/es/ProTable/ProTable.d.mts +1 -2
- package/es/ProTable/ProTable.mjs.map +1 -1
- package/es/ProTable/hooks/useFetchData.mjs.map +1 -1
- package/es/ProTable/hooks/useFullscreen.mjs.map +1 -1
- package/es/ProTable/hooks/useProRequest.mjs.map +1 -1
- package/es/ProTable/locale.d.mts +1 -2
- package/es/ProTable/parts/LightFilter.mjs.map +1 -1
- package/es/ProTable/parts/renderValue.mjs.map +1 -1
- package/es/ProTable/type.d.mts +1 -2
- package/es/Progress/Progress.d.mts +1 -2
- package/es/Progress/type.d.mts +1 -2
- package/es/ProgressiveBlur/ProgressiveBlur.d.mts +1 -2
- package/es/ProgressiveBlur/type.d.mts +1 -2
- package/es/QRCode/QRCode.d.mts +1 -2
- package/es/QRCode/type.d.mts +1 -2
- package/es/Radio/Radio.d.mts +1 -2
- package/es/Radio/Radio.mjs +6 -6
- package/es/Radio/Radio.mjs.map +1 -1
- package/es/Radio/RadioGroup.d.mts +1 -2
- package/es/Radio/RadioGroup.mjs +5 -5
- package/es/Radio/RadioGroup.mjs.map +1 -1
- package/es/Radio/style.d.mts +1 -2
- package/es/Radio/type.d.mts +1 -2
- package/es/Rate/Rate.d.mts +1 -2
- package/es/Rate/type.d.mts +1 -2
- package/es/Result/Result.d.mts +1 -2
- package/es/Result/type.d.mts +1 -2
- package/es/ScrollArea/ScrollArea.d.mts +1 -2
- package/es/ScrollArea/atoms.d.mts +1 -2
- package/es/ScrollArea/type.d.mts +1 -2
- package/es/ScrollShadow/ScrollShadow.d.mts +1 -2
- package/es/ScrollShadow/type.d.mts +1 -2
- package/es/SearchBar/SearchBar.d.mts +1 -2
- package/es/SearchBar/type.d.mts +1 -2
- package/es/Segmented/Segmented.d.mts +1 -2
- package/es/Segmented/Segmented.mjs.map +1 -1
- package/es/Segmented/atoms.d.mts +1 -2
- package/es/Segmented/type.d.mts +3 -4
- package/es/Select/Select.d.mts +1 -2
- package/es/Select/Select.mjs +9 -9
- package/es/Select/Select.mjs.map +1 -1
- package/es/Select/atoms.d.mts +1 -2
- package/es/Select/hooks.mjs.map +1 -1
- package/es/Select/type.d.mts +1 -2
- package/es/SideNav/SideNav.d.mts +1 -2
- package/es/SideNav/type.d.mts +1 -2
- package/es/Skeleton/SkeletonAvatar.d.mts +1 -2
- package/es/Skeleton/SkeletonText.d.mts +1 -2
- package/es/Skeleton/index.d.mts +1 -2
- package/es/Skeleton/type.d.mts +1 -2
- package/es/Slider/Slider.d.mts +1 -2
- package/es/Slider/Slider.mjs +7 -7
- package/es/Slider/Slider.mjs.map +1 -1
- package/es/Slider/SliderWithInput.d.mts +1 -2
- package/es/Slider/style.d.mts +1 -2
- package/es/Slider/type.d.mts +1 -2
- package/es/Snippet/Snippet.d.mts +1 -2
- package/es/Snippet/type.d.mts +1 -2
- package/es/SortableList/SortableList.d.mts +1 -2
- package/es/SortableList/components/DragHandle.d.mts +1 -2
- package/es/SortableList/components/SortableItem.d.mts +1 -2
- package/es/SortableList/type.d.mts +1 -2
- package/es/Spin/Spin.d.mts +1 -2
- package/es/Spin/type.d.mts +1 -2
- package/es/Statistic/Statistic.d.mts +1 -2
- package/es/Statistic/formatValue.d.mts +1 -2
- package/es/Statistic/type.d.mts +1 -2
- package/es/Steps/Steps.d.mts +1 -2
- package/es/Steps/type.d.mts +1 -2
- package/es/Switch/Switch.d.mts +1 -2
- package/es/Switch/atoms.d.mts +1 -2
- package/es/Switch/style.d.mts +1 -2
- package/es/Switch/type.d.mts +1 -2
- package/es/Table/Column.d.mts +1 -2
- package/es/Table/ColumnGroup.d.mts +1 -2
- package/es/Table/Table.d.mts +1 -2
- package/es/Table/atoms/cells.d.mts +1 -2
- package/es/Table/atoms/layout.d.mts +1 -2
- package/es/Table/engine/types.d.mts +1 -1
- package/es/Table/internal.d.mts +1 -1
- package/es/Table/pipeline/columnUtils.d.mts +1 -2
- package/es/Table/pipeline/selectionUtils.d.mts +2 -3
- package/es/Table/render/SelectionCells.mjs.map +1 -1
- package/es/Table/render/Summary.d.mts +2 -3
- package/es/Table/store/createTableStore.d.mts +1 -1
- package/es/Table/type.d.mts +1 -2
- package/es/Tabs/Tabs.d.mts +1 -2
- package/es/Tabs/atoms.d.mts +1 -2
- package/es/Tabs/style.d.mts +1 -2
- package/es/Tabs/type.d.mts +1 -2
- package/es/Tag/Tag.d.mts +1 -2
- package/es/Tag/type.d.mts +1 -2
- package/es/Tag/utils.d.mts +1 -2
- package/es/Text/Text.d.mts +1 -2
- package/es/Text/Text.mjs.map +1 -1
- package/es/Text/style.d.mts +1 -2
- package/es/Text/type.d.mts +1 -2
- package/es/Toast/imperative.d.mts +1 -2
- package/es/Toast/type.d.mts +1 -2
- package/es/Toc/Toc.d.mts +1 -2
- package/es/Toc/Toc.mjs +1 -1
- package/es/Toc/toFlatTocItems.d.mts +1 -2
- package/es/Toc/tocPath.d.mts +1 -2
- package/es/Toc/type.d.mts +1 -2
- package/es/ToggleGroup/ToggleGroup.d.mts +1 -2
- package/es/ToggleGroup/atoms.d.mts +1 -2
- package/es/ToggleGroup/style.d.mts +1 -2
- package/es/ToggleGroup/type.d.mts +1 -2
- package/es/Tooltip/Tooltip.d.mts +1 -2
- package/es/Tooltip/TooltipGroup.d.mts +1 -2
- package/es/Tooltip/type.d.mts +8 -10
- package/es/Tree/Tree.d.mts +1 -2
- package/es/Tree/style.d.mts +1 -2
- package/es/Tree/type.d.mts +1 -2
- package/es/Tree/utils.d.mts +1 -2
- package/es/Upload/Upload.d.mts +1 -2
- package/es/Upload/Upload.mjs +5 -5
- package/es/Upload/Upload.mjs.map +1 -1
- package/es/Upload/UploadDragger.d.mts +1 -2
- package/es/Upload/type.d.mts +1 -2
- package/es/Video/index.d.mts +1 -2
- package/es/Video/parts/Caption.d.mts +1 -2
- package/es/Video/parts/CenterPlay.d.mts +1 -2
- package/es/Video/parts/CenterPlay.mjs.map +1 -1
- package/es/Video/parts/Controls.d.mts +1 -2
- package/es/Video/parts/Frame.d.mts +1 -2
- package/es/Video/parts/LoadError.d.mts +1 -2
- package/es/Video/parts/Root.d.mts +1 -2
- package/es/Video/parts/SectionList.d.mts +1 -2
- package/es/Video/parts/Timeline.d.mts +1 -2
- package/es/Video/store.mjs.map +1 -1
- package/es/Video/type.d.mts +1 -2
- package/es/Video/useVideo.d.mts +1 -2
- package/es/_virtual/_rolldown/runtime.mjs +4 -4
- package/es/awesome/AgentSkillCard/AgentSkillCard.d.mts +1 -2
- package/es/awesome/AgentSkillCard/AgentSkillCard.mjs +2 -2
- package/es/awesome/AgentSkillCard/AgentSkillCard.mjs.map +1 -1
- package/es/awesome/AgentSkillCard/agents.d.mts +1 -2
- package/es/awesome/AgentSkillCard/type.d.mts +2 -3
- package/es/awesome/AuroraBackground/AuroraBackground.d.mts +1 -2
- package/es/awesome/AuroraBackground/type.d.mts +1 -2
- package/es/awesome/BentoGrid/BentoCard.d.mts +1 -2
- package/es/awesome/BentoGrid/BentoGrid.d.mts +1 -2
- package/es/awesome/BentoGrid/type.d.mts +1 -2
- package/es/awesome/BottomGradientButton/BottomGradientButton.d.mts +1 -2
- package/es/awesome/BottomGradientButton/type.d.mts +1 -2
- package/es/awesome/CodeShowcase/CodeShowcase.d.mts +1 -2
- package/es/awesome/CodeShowcase/type.d.mts +1 -2
- package/es/awesome/FeatureGrid/FeatureGrid.d.mts +1 -2
- package/es/awesome/FeatureGrid/type.d.mts +1 -2
- package/es/awesome/Features/Features.d.mts +1 -2
- package/es/awesome/Features/type.d.mts +1 -2
- package/es/awesome/FluidGradient/FluidGradient.d.mts +1 -2
- package/es/awesome/FluidGradient/type.d.mts +1 -2
- package/es/awesome/Giscus/Giscus.d.mts +1 -2
- package/es/awesome/Giscus/type.d.mts +1 -2
- package/es/awesome/GradientButton/GradientButton.d.mts +1 -2
- package/es/awesome/GradientButton/type.d.mts +1 -2
- package/es/awesome/Grainient/Grainient.d.mts +1 -2
- package/es/awesome/Grainient/type.d.mts +1 -2
- package/es/awesome/GridBackground/GridBackground.d.mts +1 -2
- package/es/awesome/GridBackground/GridShowcase.d.mts +1 -2
- package/es/awesome/GridBackground/type.d.mts +1 -2
- package/es/awesome/Hero/Hero.d.mts +1 -2
- package/es/awesome/Hero/type.d.mts +1 -2
- package/es/awesome/InstallBanner/InstallBanner.d.mts +1 -2
- package/es/awesome/InstallBanner/type.d.mts +1 -2
- package/es/awesome/LandingHero/LandingHero.d.mts +1 -2
- package/es/awesome/LandingHero/type.d.mts +1 -2
- package/es/awesome/LandingSection/LandingSection.d.mts +1 -2
- package/es/awesome/LandingSection/type.d.mts +1 -2
- package/es/awesome/LogoMarquee/LogoMarquee.d.mts +1 -2
- package/es/awesome/LogoMarquee/type.d.mts +1 -2
- package/es/awesome/Spotlight/Spotlight.d.mts +1 -2
- package/es/awesome/Spotlight/type.d.mts +1 -2
- package/es/awesome/SpotlightCard/SpotlightCard.d.mts +1 -2
- package/es/awesome/SpotlightCard/SpotlightCard.mjs.map +1 -1
- package/es/awesome/SpotlightCard/type.d.mts +1 -2
- package/es/awesome/TypewriterEffect/TypewriterEffect.d.mts +1 -2
- package/es/awesome/TypewriterEffect/type.d.mts +1 -2
- package/es/awesome/landingActions.d.mts +1 -2
- package/es/awesome/landingLink.d.mts +1 -2
- package/es/awesome/landingTokens.d.mts +1 -2
- package/es/brand/BrandLoading/index.d.mts +1 -2
- package/es/brand/LobeChat/index.d.mts +1 -2
- package/es/brand/LobeChatText/index.d.mts +1 -2
- package/es/brand/LobeHub/index.d.mts +1 -2
- package/es/brand/LobeHubText/index.d.mts +1 -2
- package/es/brand/Logo3d/index.d.mts +1 -2
- package/es/brand/LogoFlat/index.d.mts +1 -2
- package/es/chat/BackBottom/BackBottom.d.mts +1 -2
- package/es/chat/BackBottom/BackBottom.mjs.map +1 -1
- package/es/chat/BackBottom/type.d.mts +1 -2
- package/es/chat/ChatHeader/ChatHeaderTitle.d.mts +1 -2
- package/es/chat/ChatHeader/index.d.mts +1 -2
- package/es/chat/ChatHeader/type.d.mts +1 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.mts +1 -2
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.d.mts +1 -2
- package/es/chat/ChatInputArea/components/ChatSendButton.d.mts +1 -2
- package/es/chat/ChatInputArea/index.d.mts +1 -2
- package/es/chat/ChatInputArea/type.d.mts +1 -2
- package/es/chat/ChatItem/ChatItem.d.mts +1 -2
- package/es/chat/ChatItem/type.d.mts +1 -2
- package/es/chat/ChatList/ChatList.d.mts +1 -2
- package/es/chat/ChatList/components/ChatActionsBar.d.mts +1 -2
- package/es/chat/ChatList/type.d.mts +1 -2
- package/es/chat/EditableMessage/EditableMessage.d.mts +1 -2
- package/es/chat/EditableMessage/type.d.mts +1 -2
- package/es/chat/EditableMessageList/EditableMessageList.d.mts +1 -2
- package/es/chat/EditableMessageList/type.d.mts +1 -2
- package/es/chat/LoadingDots/LoadingDots.d.mts +1 -2
- package/es/chat/LoadingDots/type.d.mts +1 -2
- package/es/chat/MessageInput/MessageInput.d.mts +1 -2
- package/es/chat/MessageInput/type.d.mts +1 -2
- package/es/chat/MessageModal/MessageModal.d.mts +1 -2
- package/es/chat/MessageModal/type.d.mts +1 -2
- package/es/chat/TokenTag/TokenTag.d.mts +1 -2
- package/es/chat/TokenTag/type.d.mts +1 -2
- package/es/chat/types/chatMessage.d.mts +1 -2
- package/es/chat/types/error.d.mts +1 -2
- package/es/chat/types/llm.d.mts +1 -2
- package/es/chat/types/meta.d.mts +1 -2
- package/es/color/ColorScales/index.d.mts +1 -2
- package/es/color/CssVar/index.d.mts +1 -2
- package/es/color/colors/blue.d.mts +1 -2
- package/es/color/colors/cyan.d.mts +1 -2
- package/es/color/colors/geekblue.d.mts +1 -2
- package/es/color/colors/gold.d.mts +1 -2
- package/es/color/colors/gray.d.mts +1 -2
- package/es/color/colors/green.d.mts +1 -2
- package/es/color/colors/index.d.mts +1 -2
- package/es/color/colors/index.mjs.map +1 -1
- package/es/color/colors/lime.d.mts +1 -2
- package/es/color/colors/magenta.d.mts +1 -2
- package/es/color/colors/orange.d.mts +1 -2
- package/es/color/colors/primary.d.mts +1 -2
- package/es/color/colors/purple.d.mts +1 -2
- package/es/color/colors/red.d.mts +1 -2
- package/es/color/colors/volcano.d.mts +1 -2
- package/es/color/colors/yellow.d.mts +1 -2
- package/es/color/neutrals/index.d.mts +1 -2
- package/es/color/neutrals/mauve.d.mts +1 -2
- package/es/color/neutrals/olive.d.mts +1 -2
- package/es/color/neutrals/sage.d.mts +1 -2
- package/es/color/neutrals/sand.d.mts +1 -2
- package/es/color/neutrals/slate.d.mts +1 -2
- package/es/color/status/index.d.mts +1 -2
- package/es/color/types.d.mts +1 -2
- package/es/dashboard/AuthLayout/Aside.d.mts +1 -2
- package/es/dashboard/AuthLayout/AuthLayout.d.mts +1 -2
- package/es/dashboard/AuthLayout/type.d.mts +1 -2
- package/es/dashboard/AuthTools/AuthLocaleSwitch.d.mts +1 -2
- package/es/dashboard/AuthTools/AuthThemeSwitch.d.mts +1 -2
- package/es/dashboard/AuthTools/type.d.mts +1 -2
- package/es/dashboard/Breadcrumb/Breadcrumb.d.mts +1 -2
- package/es/dashboard/Breadcrumb/type.d.mts +1 -2
- package/es/dashboard/ChartGrid/ChartGrid.d.mts +1 -2
- package/es/dashboard/ChartGrid/type.d.mts +1 -2
- package/es/dashboard/ConsoleNav/ConsoleNav.d.mts +1 -2
- package/es/dashboard/ConsoleNav/Skeleton.d.mts +1 -2
- package/es/dashboard/ConsoleNav/active.d.mts +1 -2
- package/es/dashboard/ConsoleNav/type.d.mts +1 -2
- package/es/dashboard/ConsoleShell/ConsoleBrand.d.mts +1 -2
- package/es/dashboard/ConsoleShell/ConsoleShell.d.mts +1 -2
- package/es/dashboard/ConsoleShell/context.d.mts +1 -2
- package/es/dashboard/ConsoleShell/type.d.mts +1 -2
- package/es/dashboard/FilterSidebar/FilterSidebar.d.mts +1 -2
- package/es/dashboard/FilterSidebar/context.d.mts +2 -3
- package/es/dashboard/FilterSidebar/type.d.mts +1 -2
- package/es/dashboard/FilterStrip/FilterStrip.d.mts +1 -2
- package/es/dashboard/FilterStrip/type.d.mts +1 -2
- package/es/dashboard/LabelWithKey/LabelWithKey.d.mts +1 -2
- package/es/dashboard/LabelWithKey/type.d.mts +1 -2
- package/es/dashboard/MetricStrip/MetricStrip.d.mts +1 -2
- package/es/dashboard/MetricStrip/type.d.mts +1 -2
- package/es/dashboard/PageHeader/PageHeader.d.mts +1 -2
- package/es/dashboard/PageHeader/type.d.mts +1 -2
- package/es/dashboard/PageSkeleton/PageSkeleton.d.mts +1 -2
- package/es/dashboard/PageSkeleton/type.d.mts +1 -2
- package/es/dashboard/PageTabs/PageTabs.d.mts +1 -2
- package/es/dashboard/PageTabs/type.d.mts +1 -2
- package/es/dashboard/PageToolbar/PageToolbar.d.mts +1 -2
- package/es/dashboard/PageToolbar/type.d.mts +1 -2
- package/es/dashboard/PanelSurface/PanelSurface.d.mts +1 -2
- package/es/dashboard/PanelSurface/type.d.mts +1 -2
- package/es/dashboard/RouteProgress/RouteProgress.d.mts +1 -2
- package/es/dashboard/RouteProgress/type.d.mts +1 -2
- package/es/dashboard/Section/Section.d.mts +1 -2
- package/es/dashboard/Section/type.d.mts +1 -2
- package/es/dashboard/StatCard/StatCard.d.mts +1 -2
- package/es/dashboard/StatCard/type.d.mts +1 -2
- package/es/dashboard/Surface/Surface.d.mts +1 -2
- package/es/dashboard/Surface/link.d.mts +1 -2
- package/es/dashboard/Surface/style.d.mts +1 -2
- package/es/dashboard/Surface/type.d.mts +1 -2
- package/es/dashboard/TableIconActions/TableIconActions.d.mts +1 -2
- package/es/dashboard/TableIconActions/type.d.mts +1 -2
- package/es/dashboard/TitleWithTips/TitleWithTips.d.mts +1 -2
- package/es/dashboard/TitleWithTips/type.d.mts +1 -2
- package/es/eslint/index.d.mts +1 -2
- package/es/hooks/useMarkdown/utils.d.mts +1 -2
- package/es/hooks/useScroll.d.mts +1 -2
- package/es/i18n/context.d.mts +1 -2
- package/es/i18n/resources/en/burger.d.mts +1 -2
- package/es/i18n/resources/en/chat.d.mts +1 -2
- package/es/i18n/resources/en/colorPicker.d.mts +1 -2
- package/es/i18n/resources/en/common.d.mts +1 -2
- package/es/i18n/resources/en/datePicker.d.mts +1 -2
- package/es/i18n/resources/en/editableMessage.d.mts +1 -2
- package/es/i18n/resources/en/emojiPicker.d.mts +1 -2
- package/es/i18n/resources/en/form.d.mts +1 -2
- package/es/i18n/resources/en/hotkey.d.mts +1 -2
- package/es/i18n/resources/en/image.d.mts +1 -2
- package/es/i18n/resources/en/index.d.mts +1 -2
- package/es/i18n/resources/en/messageModal.d.mts +1 -2
- package/es/i18n/resources/en/qrCode.d.mts +1 -2
- package/es/i18n/resources/en/sideNav.d.mts +1 -2
- package/es/i18n/resources/en/table.d.mts +1 -2
- package/es/i18n/resources/en/toc.d.mts +1 -2
- package/es/i18n/resources/en/video.d.mts +1 -2
- package/es/i18n/resources/zhCn/burger.d.mts +1 -2
- package/es/i18n/resources/zhCn/chat.d.mts +1 -2
- package/es/i18n/resources/zhCn/colorPicker.d.mts +1 -2
- package/es/i18n/resources/zhCn/common.d.mts +1 -2
- package/es/i18n/resources/zhCn/datePicker.d.mts +1 -2
- package/es/i18n/resources/zhCn/editableMessage.d.mts +1 -2
- package/es/i18n/resources/zhCn/emojiPicker.d.mts +1 -2
- package/es/i18n/resources/zhCn/form.d.mts +1 -2
- package/es/i18n/resources/zhCn/hotkey.d.mts +1 -2
- package/es/i18n/resources/zhCn/image.d.mts +1 -2
- package/es/i18n/resources/zhCn/index.d.mts +1 -2
- package/es/i18n/resources/zhCn/messageModal.d.mts +1 -2
- package/es/i18n/resources/zhCn/qrCode.d.mts +1 -2
- package/es/i18n/resources/zhCn/sideNav.d.mts +1 -2
- package/es/i18n/resources/zhCn/table.d.mts +1 -2
- package/es/i18n/resources/zhCn/toc.d.mts +1 -2
- package/es/i18n/resources/zhCn/video.d.mts +1 -2
- package/es/i18n/types.d.mts +1 -2
- package/es/i18n/useTranslation.d.mts +1 -2
- package/es/icons/Auth0/components/Avatar.d.mts +1 -2
- package/es/icons/Auth0/components/Mono.d.mts +1 -2
- package/es/icons/Auth0/index.d.mts +1 -2
- package/es/icons/Authelia/components/Avatar.d.mts +1 -2
- package/es/icons/Authelia/components/Color.d.mts +1 -2
- package/es/icons/Authelia/components/Mono.d.mts +1 -2
- package/es/icons/Authelia/index.d.mts +1 -2
- package/es/icons/Authentik/components/Avatar.d.mts +1 -2
- package/es/icons/Authentik/components/Color.d.mts +1 -2
- package/es/icons/Authentik/components/Mono.d.mts +1 -2
- package/es/icons/Authentik/index.d.mts +1 -2
- package/es/icons/Casdoor/components/Avatar.d.mts +1 -2
- package/es/icons/Casdoor/components/Color.d.mts +1 -2
- package/es/icons/Casdoor/components/Mono.d.mts +1 -2
- package/es/icons/Casdoor/index.d.mts +1 -2
- package/es/icons/Clerk/components/Avatar.d.mts +1 -2
- package/es/icons/Clerk/components/Color.d.mts +1 -2
- package/es/icons/Clerk/components/Mono.d.mts +1 -2
- package/es/icons/Clerk/index.d.mts +1 -2
- package/es/icons/DingTalk/components/Avatar.d.mts +1 -2
- package/es/icons/DingTalk/components/Color.d.mts +1 -2
- package/es/icons/DingTalk/components/Mono.d.mts +1 -2
- package/es/icons/DingTalk/index.d.mts +1 -2
- package/es/icons/Discord/components/Avatar.d.mts +1 -2
- package/es/icons/Discord/components/Color.d.mts +1 -2
- package/es/icons/Discord/components/Mono.d.mts +1 -2
- package/es/icons/Discord/index.d.mts +1 -2
- package/es/icons/GoogleChat/components/Avatar.d.mts +1 -2
- package/es/icons/GoogleChat/components/Color.d.mts +1 -2
- package/es/icons/GoogleChat/components/Mono.d.mts +1 -2
- package/es/icons/GoogleChat/index.d.mts +1 -2
- package/es/icons/IMessage/components/Avatar.d.mts +1 -2
- package/es/icons/IMessage/components/Color.d.mts +1 -2
- package/es/icons/IMessage/components/Mono.d.mts +1 -2
- package/es/icons/IMessage/index.d.mts +1 -2
- package/es/icons/Lark/components/Avatar.d.mts +1 -2
- package/es/icons/Lark/components/Color.d.mts +1 -2
- package/es/icons/Lark/components/Mono.d.mts +1 -2
- package/es/icons/Lark/index.d.mts +1 -2
- package/es/icons/Line/components/Avatar.d.mts +1 -2
- package/es/icons/Line/components/Color.d.mts +1 -2
- package/es/icons/Line/components/Mono.d.mts +1 -2
- package/es/icons/Line/index.d.mts +1 -2
- package/es/icons/Logto/components/Avatar.d.mts +1 -2
- package/es/icons/Logto/components/Color.d.mts +1 -2
- package/es/icons/Logto/components/Mono.d.mts +1 -2
- package/es/icons/Logto/index.d.mts +1 -2
- package/es/icons/MicrosoftEntra/components/Avatar.d.mts +1 -2
- package/es/icons/MicrosoftEntra/components/Color.d.mts +1 -2
- package/es/icons/MicrosoftEntra/components/Mono.d.mts +1 -2
- package/es/icons/MicrosoftEntra/index.d.mts +1 -2
- package/es/icons/MicrosoftTeams/components/Avatar.d.mts +1 -2
- package/es/icons/MicrosoftTeams/components/Color.d.mts +1 -2
- package/es/icons/MicrosoftTeams/components/Mono.d.mts +1 -2
- package/es/icons/MicrosoftTeams/index.d.mts +1 -2
- package/es/icons/NextAuth/components/Avatar.d.mts +1 -2
- package/es/icons/NextAuth/components/Color.d.mts +1 -2
- package/es/icons/NextAuth/components/Mono.d.mts +1 -2
- package/es/icons/NextAuth/index.d.mts +1 -2
- package/es/icons/QQ/components/Avatar.d.mts +1 -2
- package/es/icons/QQ/components/Color.d.mts +1 -2
- package/es/icons/QQ/components/Mono.d.mts +1 -2
- package/es/icons/QQ/index.d.mts +1 -2
- package/es/icons/Slack/components/Avatar.d.mts +1 -2
- package/es/icons/Slack/components/Color.d.mts +1 -2
- package/es/icons/Slack/components/Mono.d.mts +1 -2
- package/es/icons/Slack/index.d.mts +1 -2
- package/es/icons/Telegram/components/Avatar.d.mts +1 -2
- package/es/icons/Telegram/components/Color.d.mts +1 -2
- package/es/icons/Telegram/components/Mono.d.mts +1 -2
- package/es/icons/Telegram/index.d.mts +1 -2
- package/es/icons/WeChat/components/Avatar.d.mts +1 -2
- package/es/icons/WeChat/components/Color.d.mts +1 -2
- package/es/icons/WeChat/components/Mono.d.mts +1 -2
- package/es/icons/WeChat/index.d.mts +1 -2
- package/es/icons/WhatsApp/components/Avatar.d.mts +1 -2
- package/es/icons/WhatsApp/components/Color.d.mts +1 -2
- package/es/icons/WhatsApp/components/Mono.d.mts +1 -2
- package/es/icons/WhatsApp/index.d.mts +1 -2
- package/es/icons/Zitadel/components/Avatar.d.mts +1 -2
- package/es/icons/Zitadel/components/Color.d.mts +1 -2
- package/es/icons/Zitadel/components/Mono.d.mts +1 -2
- package/es/icons/Zitadel/index.d.mts +1 -2
- package/es/icons/lucideExtra/AndroidIcon.d.mts +1 -2
- package/es/icons/lucideExtra/AppleIcon.d.mts +1 -2
- package/es/icons/lucideExtra/AppstoreIcon.d.mts +1 -2
- package/es/icons/lucideExtra/BotPromptIcon.d.mts +1 -2
- package/es/icons/lucideExtra/BrainOffIcon.d.mts +1 -2
- package/es/icons/lucideExtra/ChromeIcon.d.mts +1 -2
- package/es/icons/lucideExtra/CodepenIcon.d.mts +1 -2
- package/es/icons/lucideExtra/CodesandboxIcon.d.mts +1 -2
- package/es/icons/lucideExtra/CreateBotIcon.d.mts +1 -2
- package/es/icons/lucideExtra/DiscordIcon.d.mts +1 -2
- package/es/icons/lucideExtra/FacebookIcon.d.mts +1 -2
- package/es/icons/lucideExtra/FigmaIcon.d.mts +1 -2
- package/es/icons/lucideExtra/FramerIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GithubIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GitlabIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GlobeOffIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GooglePlayIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GroupBotIcon.d.mts +1 -2
- package/es/icons/lucideExtra/GroupBotSquareIcon.d.mts +1 -2
- package/es/icons/lucideExtra/InstagramIcon.d.mts +1 -2
- package/es/icons/lucideExtra/LeftClickIcon.d.mts +1 -2
- package/es/icons/lucideExtra/LeftDoubleClickIcon.d.mts +1 -2
- package/es/icons/lucideExtra/LinkedinIcon.d.mts +1 -2
- package/es/icons/lucideExtra/McpIcon.d.mts +1 -2
- package/es/icons/lucideExtra/NotionIcon.d.mts +1 -2
- package/es/icons/lucideExtra/PocketIcon.d.mts +1 -2
- package/es/icons/lucideExtra/ProviderIcon.d.mts +1 -2
- package/es/icons/lucideExtra/RailSymbolIcon.d.mts +1 -2
- package/es/icons/lucideExtra/RedditIcon.d.mts +1 -2
- package/es/icons/lucideExtra/RightClickIcon.d.mts +1 -2
- package/es/icons/lucideExtra/RightDoubleClickIcon.d.mts +1 -2
- package/es/icons/lucideExtra/ShapesUploadIcon.d.mts +1 -2
- package/es/icons/lucideExtra/SkillsIcon.d.mts +1 -2
- package/es/icons/lucideExtra/SlackIcon.d.mts +1 -2
- package/es/icons/lucideExtra/ThinkIcon.d.mts +1 -2
- package/es/icons/lucideExtra/TreeDownRightIcon.d.mts +1 -2
- package/es/icons/lucideExtra/TreeUpDownRightIcon.d.mts +1 -2
- package/es/internal/controlSize.d.mts +1 -2
- package/es/internal/floating/collisionPadding.d.mts +1 -2
- package/es/internal/menu/baseItem.d.mts +1 -2
- package/es/internal/menu/checkboxItem.d.mts +1 -2
- package/es/internal/menu/itemInterface.d.mts +1 -2
- package/es/internal/menu/renderUtils.d.mts +1 -2
- package/es/internal/menu/switchItem.d.mts +1 -2
- package/es/internal/menu/type.d.mts +1 -2
- package/es/internal/virtual/MenuVirtualList.d.mts +1 -1
- package/es/internal/virtual/VirtualScrollArea.d.mts +1 -1
- package/es/internal/virtual/type.d.mts +1 -2
- package/es/internal/virtual/useMenuVirtualList.d.mts +1 -1
- package/es/mdx/Callout/index.d.mts +1 -2
- package/es/mdx/Cards/Card.d.mts +1 -2
- package/es/mdx/Cards/index.d.mts +1 -2
- package/es/mdx/FileTree/File.d.mts +1 -2
- package/es/mdx/FileTree/File.mjs +3 -3
- package/es/mdx/FileTree/File.mjs.map +1 -1
- package/es/mdx/FileTree/Folder.d.mts +1 -2
- package/es/mdx/FileTree/Folder.mjs +3 -3
- package/es/mdx/FileTree/Folder.mjs.map +1 -1
- package/es/mdx/FileTree/index.d.mts +1 -2
- package/es/mdx/Mdx/index.d.mts +1 -2
- package/es/mdx/Steps/index.d.mts +1 -2
- package/es/mdx/Tabs/Tab.d.mts +1 -2
- package/es/mdx/Tabs/index.d.mts +1 -2
- package/es/mdx/mdxComponents/CodeBlock.d.mts +1 -2
- package/es/mdx/mdxComponents/Image.d.mts +1 -2
- package/es/mdx/mdxComponents/Link.d.mts +1 -2
- package/es/mdx/mdxComponents/Pre.d.mts +1 -2
- package/es/mdx/mdxComponents/Video.d.mts +1 -2
- package/es/mdx/mdxComponents/index.d.mts +1 -2
- package/es/mobile/ChatHeader/ChatHeaderTitle.d.mts +1 -2
- package/es/mobile/ChatHeader/index.d.mts +1 -2
- package/es/mobile/ChatHeader/type.d.mts +1 -2
- package/es/mobile/ChatInputArea/components/ChatSendButton.d.mts +1 -2
- package/es/mobile/ChatInputArea/index.d.mts +1 -2
- package/es/mobile/ChatInputArea/type.d.mts +1 -2
- package/es/mobile/SafeArea/SafeArea.d.mts +1 -2
- package/es/mobile/SafeArea/type.d.mts +1 -2
- package/es/mobile/TabBar/TabBar.d.mts +1 -2
- package/es/mobile/TabBar/type.d.mts +1 -2
- package/es/node_modules/.pnpm/@eslint_core@1.2.1/node_modules/@eslint/core/dist/esm/types.d.mts +4 -2
- package/es/node_modules/.pnpm/@eslint_plugin-kit@0.7.3/node_modules/@eslint/plugin-kit/dist/cjs/index.d.mts +1 -2
- package/es/node_modules/.pnpm/@eslint_plugin-kit@0.7.3/node_modules/@eslint/plugin-kit/dist/cjs/types.d.mts +5 -2
- package/es/node_modules/.pnpm/@types_estree@1.0.10/node_modules/@types/estree/index.d.mts +1 -2
- package/es/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.mts +1 -2
- package/es/node_modules/.pnpm/@types_mdx@2.0.14/node_modules/@types/mdx/types.d.mts +1 -2
- package/es/node_modules/.pnpm/@types_unist@3.0.3/node_modules/@types/unist/index.d.mts +1 -2
- package/es/node_modules/.pnpm/eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2/node_modules/eslint/lib/types/index.d.mts +5 -2
- package/es/node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.mjs +2 -2
- package/es/spline/LogoThree/LogoSpline.d.mts +1 -2
- package/es/spline/LogoThree/index.d.mts +1 -2
- package/es/spline/Spline/Spine.d.mts +2 -3
- package/es/spline/Spline/Spine.mjs.map +1 -1
- package/es/spline/Spline/type.d.mts +1 -2
- package/es/storybook/StoryBook/index.d.mts +1 -2
- package/es/styles/classNames.d.mts +1 -2
- package/es/styles/createGlobalStyle.d.mts +1 -2
- package/es/styles/css.d.mts +1 -2
- package/es/styles/customTheme.d.mts +1 -2
- package/es/styles/stylex/props.d.mts +1 -1
- package/es/styles/theme/createLobeToken.d.mts +1 -2
- package/es/styles/theme/customNeutral.d.mts +1 -2
- package/es/styles/theme/customPalette.d.mts +1 -2
- package/es/styles/theme/customPrimary.d.mts +1 -2
- package/es/styles/theme/customStylishStatic.d.mts +1 -2
- package/es/styles/theme/generateColorPalette.d.mts +1 -2
- package/es/styles/theme/scope.d.mts +1 -2
- package/es/styles/theme/themeCss.d.mts +1 -2
- package/es/styles/theme/token/font.d.mts +1 -2
- package/es/styles/theme/token/neutralText.d.mts +1 -2
- package/es/types/citation.d.mts +1 -2
- package/es/types/customStylish.d.mts +1 -2
- package/es/types/customToken.d.mts +1 -2
- package/es/types/index.d.mts +1 -2
- package/es/types/trigger.d.mts +1 -2
- package/es/utils/copyToClipboard.d.mts +1 -2
- package/es/utils/dom.d.mts +1 -2
- package/es/utils/genCdnUrl.d.mts +1 -2
- package/es/utils/parseTrigger.d.mts +1 -2
- package/es/utils/placement.d.mts +1 -2
- package/es/utils/smoothCorners.d.mts +2 -3
- package/package.json +1 -1
- package/es/MaterialFileTypeIcon/icon-map.mjs.map +0 -1
package/es/Tooltip/type.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import { HotkeyProps } from "../Hotkey/type.mjs";
|
|
|
2
2
|
import "../Hotkey/index.mjs";
|
|
3
3
|
import { Placement } from "../utils/placement.mjs";
|
|
4
4
|
import { CSSProperties, ComponentPropsWithRef, ReactElement, ReactNode } from "react";
|
|
5
|
-
import { Tooltip, TooltipPopupProps, TooltipPortalProps, TooltipPositionerProps, TooltipTriggerProps } from "@base-ui/react/tooltip";
|
|
5
|
+
import { Tooltip, TooltipPopupProps, TooltipPortalProps as TooltipPortalProps$1, TooltipPositionerProps as TooltipPositionerProps$1, TooltipTriggerProps } from "@base-ui/react/tooltip";
|
|
6
6
|
export type TooltipPlacement = Placement;
|
|
7
7
|
/**
|
|
8
8
|
* Base UI Positioner props that can be passed through
|
|
9
9
|
*/
|
|
10
|
-
type TooltipPositionerProps
|
|
10
|
+
export type TooltipPositionerProps = Omit<TooltipPositionerProps$1, 'className' | 'style' | 'children'>;
|
|
11
11
|
/**
|
|
12
12
|
* Base UI Trigger props that can be passed through
|
|
13
13
|
*/
|
|
@@ -19,7 +19,7 @@ export type TooltipPopupComponentProps = Omit<TooltipPopupProps, 'className' | '
|
|
|
19
19
|
/**
|
|
20
20
|
* Base UI Portal props that can be passed through
|
|
21
21
|
*/
|
|
22
|
-
type TooltipPortalProps
|
|
22
|
+
export type TooltipPortalProps = Omit<TooltipPortalProps$1, 'children' | 'container'>;
|
|
23
23
|
export interface TooltipProps {
|
|
24
24
|
/**
|
|
25
25
|
* Whether the tooltip has an arrow pointer.
|
|
@@ -102,11 +102,11 @@ export interface TooltipProps {
|
|
|
102
102
|
/**
|
|
103
103
|
* Base UI Portal 组件的 props
|
|
104
104
|
*/
|
|
105
|
-
portalProps?: TooltipPortalProps
|
|
105
|
+
portalProps?: TooltipPortalProps;
|
|
106
106
|
/**
|
|
107
107
|
* Base UI Positioner 组件的 props
|
|
108
108
|
*/
|
|
109
|
-
positionerProps?: TooltipPositionerProps
|
|
109
|
+
positionerProps?: TooltipPositionerProps;
|
|
110
110
|
ref?: ComponentPropsWithRef<typeof Tooltip.Trigger>['ref'];
|
|
111
111
|
/**
|
|
112
112
|
* When true, this tooltip will render independently even inside a TooltipGroup,
|
|
@@ -168,11 +168,9 @@ export interface TooltipGroupProps {
|
|
|
168
168
|
placement?: TooltipPlacement;
|
|
169
169
|
popupContainer?: TooltipProps['popupContainer'];
|
|
170
170
|
popupProps?: TooltipPopupComponentProps;
|
|
171
|
-
portalProps?: TooltipPortalProps
|
|
172
|
-
positionerProps?: TooltipPositionerProps
|
|
171
|
+
portalProps?: TooltipPortalProps;
|
|
172
|
+
positionerProps?: TooltipPositionerProps;
|
|
173
173
|
styles?: TooltipProps['styles'];
|
|
174
174
|
triggerProps?: TooltipTriggerComponentProps;
|
|
175
175
|
zIndex?: number;
|
|
176
|
-
}
|
|
177
|
-
export { TooltipPortalProps$1 as TooltipPortalProps, TooltipPositionerProps$1 as TooltipPositionerProps };
|
|
178
|
-
//# sourceMappingURL=type.d.mts.map
|
|
176
|
+
}
|
package/es/Tree/Tree.d.mts
CHANGED
package/es/Tree/style.d.mts
CHANGED
package/es/Tree/type.d.mts
CHANGED
package/es/Tree/utils.d.mts
CHANGED
|
@@ -4,5 +4,4 @@ export declare const getAllKeys: (data: TreeDataNode[], out?: string[]) => strin
|
|
|
4
4
|
export declare const conductCheck: (data: TreeDataNode[], checkedKeys: Iterable<string>) => {
|
|
5
5
|
checked: Set<string>;
|
|
6
6
|
halfChecked: Set<string>;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=utils.d.mts.map
|
|
7
|
+
};
|
package/es/Upload/Upload.d.mts
CHANGED
package/es/Upload/Upload.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { styles } from "./style.mjs";
|
|
|
8
8
|
import clsx$1 from "clsx";
|
|
9
9
|
import { memo, useCallback, useRef, useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { Upload } from "lucide-react";
|
|
11
|
+
import { Upload as Upload$1 } from "lucide-react";
|
|
12
12
|
// src/Upload/Upload.tsx
|
|
13
13
|
const resolveAcceptedFiles = async (files, beforeUpload) => {
|
|
14
14
|
if (!beforeUpload) return files;
|
|
@@ -24,7 +24,7 @@ const resolveAcceptedFiles = async (files, beforeUpload) => {
|
|
|
24
24
|
}
|
|
25
25
|
return accepted;
|
|
26
26
|
};
|
|
27
|
-
const Upload
|
|
27
|
+
const Upload = memo(({ accept, beforeUpload, children, className, description, directory, disabled, dragger, maxCount, multiple, onChange, onFiles, openFileDialogOnClick = true, ref, style, title, ...rest }) => {
|
|
28
28
|
const inputRef = useRef(null);
|
|
29
29
|
const [isDragOver, setIsDragOver] = useState(false);
|
|
30
30
|
const handleFiles = useCallback(async (rawFiles) => {
|
|
@@ -122,7 +122,7 @@ const Upload$1 = memo(({ accept, beforeUpload, children, className, description,
|
|
|
122
122
|
children: [inputEl, children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
123
123
|
/* @__PURE__ */ jsx(Icon, {
|
|
124
124
|
...styleProps(styles.draggerIcon, uploadClasses("icon")),
|
|
125
|
-
icon: Upload,
|
|
125
|
+
icon: Upload$1,
|
|
126
126
|
size: 24
|
|
127
127
|
}),
|
|
128
128
|
/* @__PURE__ */ jsx("b", {
|
|
@@ -147,7 +147,7 @@ const Upload$1 = memo(({ accept, beforeUpload, children, className, description,
|
|
|
147
147
|
children: [inputEl, children]
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
-
Upload
|
|
151
|
-
export { Upload
|
|
150
|
+
Upload.displayName = "Upload";
|
|
151
|
+
export { Upload as default };
|
|
152
152
|
|
|
153
153
|
//# sourceMappingURL=Upload.mjs.map
|
package/es/Upload/Upload.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Upload.mjs","names":["
|
|
1
|
+
{"version":3,"file":"Upload.mjs","names":["clsx","UploadIcon"],"sources":["../../src/Upload/Upload.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { Upload as UploadIcon } from 'lucide-react';\nimport type { ChangeEvent, DragEvent, KeyboardEvent, MouseEvent, Ref } from 'react';\nimport { memo, useCallback, useRef, useState } from 'react';\n\nimport Icon from '@/Icon';\nimport { styleProps } from '@/styles/stylex/props';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { filterFilesByAccept } from './helpers';\nimport { uploadClasses } from './stable';\nimport { styles } from './style';\nimport type { UploadProps } from './type';\n\nconst resolveAcceptedFiles = async (\n files: File[],\n beforeUpload: UploadProps['beforeUpload'],\n): Promise<File[]> => {\n if (!beforeUpload) return files;\n\n const accepted: File[] = [];\n for (const file of files) {\n let result: boolean | void;\n try {\n result = await beforeUpload(file, files);\n } catch {\n result = false;\n }\n if (result !== false) accepted.push(file);\n }\n return accepted;\n};\n\nconst Upload = memo<UploadProps>(\n ({\n accept,\n beforeUpload,\n children,\n className,\n description,\n directory,\n disabled,\n dragger,\n maxCount,\n multiple,\n onChange,\n onFiles,\n openFileDialogOnClick = true,\n ref,\n style,\n title,\n ...rest\n }) => {\n const inputRef = useRef<HTMLInputElement>(null);\n const [isDragOver, setIsDragOver] = useState(false);\n\n const handleFiles = useCallback(\n async (rawFiles: File[]) => {\n const filtered = filterFilesByAccept(rawFiles, accept);\n const accepted = await resolveAcceptedFiles(filtered, beforeUpload);\n const sliced = maxCount ? accepted.slice(0, maxCount) : accepted;\n\n if (sliced.length === 0) return;\n\n onFiles?.(sliced);\n for (const file of sliced) onChange?.({ file, fileList: sliced });\n },\n [accept, beforeUpload, maxCount, onFiles, onChange],\n );\n\n const openDialog = useCallback(() => {\n if (disabled) return;\n inputRef.current?.click();\n }, [disabled]);\n\n const handleInputChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n const files = event.target.files ? [...event.target.files] : [];\n event.target.value = '';\n if (files.length > 0) void handleFiles(files);\n },\n [handleFiles],\n );\n\n const handleClick = useCallback(\n (event: MouseEvent) => {\n if (event.target === inputRef.current) return;\n if (disabled || !openFileDialogOnClick) return;\n openDialog();\n },\n [disabled, openFileDialogOnClick, openDialog],\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (disabled || !openFileDialogOnClick) return;\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n openDialog();\n }\n },\n [disabled, openFileDialogOnClick, openDialog],\n );\n\n const handleDragOver = useCallback((event: DragEvent) => {\n event.preventDefault();\n }, []);\n\n const handleDragEnter = useCallback(\n (event: DragEvent) => {\n event.preventDefault();\n if (!disabled) setIsDragOver(true);\n },\n [disabled],\n );\n\n const handleDragLeave = useCallback((event: DragEvent) => {\n event.preventDefault();\n setIsDragOver(false);\n }, []);\n\n const handleDrop = useCallback(\n (event: DragEvent) => {\n event.preventDefault();\n setIsDragOver(false);\n if (disabled) return;\n const files = event.dataTransfer.files ? [...event.dataTransfer.files] : [];\n if (files.length > 0) void handleFiles(files);\n },\n [disabled, handleFiles],\n );\n\n const directoryProps: Record<string, string> = directory ? { webkitdirectory: '' } : {};\n\n const inputEl = (\n <input\n accept={accept}\n disabled={disabled}\n multiple={multiple}\n ref={inputRef}\n {...styleProps(styles.input, uploadClasses('input'))}\n type=\"file\"\n onChange={handleInputChange}\n {...directoryProps}\n />\n );\n\n if (dragger) {\n return (\n <div\n aria-disabled={disabled}\n ref={ref as Ref<HTMLDivElement>}\n role=\"button\"\n {...toDataAttributes({ dragOver: isDragOver, dragger: true })}\n {...styleProps(\n [styles.dragger, isDragOver && styles.draggerOver],\n clsx(uploadClasses(), className),\n style,\n )}\n tabIndex={disabled ? -1 : 0}\n onClick={handleClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n onKeyDown={handleKeyDown}\n {...rest}\n >\n {inputEl}\n {children ?? (\n <>\n <Icon\n {...styleProps(styles.draggerIcon, uploadClasses('icon'))}\n icon={UploadIcon}\n size={24}\n />\n <b {...styleProps(styles.draggerTitle, uploadClasses('title'))}>\n {title ?? 'Click or drag file to this area to upload'}\n </b>\n {description && (\n <span {...styleProps(styles.draggerDescription, uploadClasses('description'))}>\n {description}\n </span>\n )}\n </>\n )}\n </div>\n );\n }\n\n return (\n <span\n aria-disabled={disabled}\n ref={ref as Ref<HTMLSpanElement>}\n role=\"button\"\n {...styleProps(styles.trigger, clsx(uploadClasses(), className), style)}\n tabIndex={disabled ? -1 : 0}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n {...rest}\n >\n {inputEl}\n {children}\n </span>\n );\n },\n);\n\nUpload.displayName = 'Upload';\n\nexport default Upload;\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAM,uBAAuB,OAC3B,OACA,iBACoB;CACpB,IAAI,CAAC,cAAc,OAAO;CAE1B,MAAM,WAAmB,CAAC;CAC1B,KAAK,MAAM,QAAQ,OAAO;EACxB,IAAI;EACJ,IAAI;GACF,SAAS,MAAM,aAAa,MAAM,KAAK;EACzC,QAAQ;GACN,SAAS;EACX;EACA,IAAI,WAAW,OAAO,SAAS,KAAK,IAAI;CAC1C;CACA,OAAO;AACT;AAEA,MAAM,SAAS,MACZ,EACC,QACA,cACA,UACA,WACA,aACA,WACA,UACA,SACA,UACA,UACA,UACA,SACA,wBAAwB,MACxB,KACA,OACA,OACA,GAAG,WACC;CACJ,MAAM,WAAW,OAAyB,IAAI;CAC9C,MAAM,CAAC,YAAY,iBAAiB,SAAS,KAAK;CAElD,MAAM,cAAc,YAClB,OAAO,aAAqB;EAC1B,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,OAAO,SAASD,OAAK,cAAc,GAAG,SAAS,GAAG,KAAK;EACtE,UAAU,WAAW,KAAK;EAC1B,SAAS;EACT,WAAW;EACX,GAAI;EARN,UAAA,CAUG,SACA,QACG;;AAEV,CACF;AAEA,OAAO,cAAc"}
|
package/es/Upload/type.d.mts
CHANGED
package/es/Video/index.d.mts
CHANGED
|
@@ -21,5 +21,4 @@ export interface IVideo {
|
|
|
21
21
|
Timeline: typeof Timeline;
|
|
22
22
|
}
|
|
23
23
|
declare const Video: IVideo;
|
|
24
|
-
export { type VideoCaptionProps, type VideoControlsProps, type VideoFrameProps, type VideoMarker, type VideoMarkerColor, type VideoMediaProps, type VideoPlayer, type VideoProps, type VideoRootProps, type VideoSection, type VideoSectionListProps, type VideoState, type VideoStatus, type VideoTimelineProps, Video as default, useVideo, useVideoPlayer, useVideoState };
|
|
25
|
-
//# sourceMappingURL=index.d.mts.map
|
|
24
|
+
export { type VideoCaptionProps, type VideoControlsProps, type VideoFrameProps, type VideoMarker, type VideoMarkerColor, type VideoMediaProps, type VideoPlayer, type VideoProps, type VideoRootProps, type VideoSection, type VideoSectionListProps, type VideoState, type VideoStatus, type VideoTimelineProps, Video as default, useVideo, useVideoPlayer, useVideoState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CenterPlay.mjs","names":["videoMessages"],"sources":["../../../src/Video/parts/CenterPlay.tsx"],"sourcesContent":["'use client';\n\nimport { Play } from 'lucide-react';\n\nimport videoMessages from '@/i18n/resources/en/video';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { useVideoContext } from '../context';\nimport { videoClasses } from '../stable';\nimport { styles } from '../style';\nimport { useVideo } from '../useVideo';\n\nconst CenterPlay = () => {\n const { store } = useVideoContext();\n const { t } = useTranslation(videoMessages);\n const show = useVideo((state) => state.paused && state.status === 'ready' && state.time < 0.05);\n if (!show) return null;\n\n return (\n <button\n aria-label={t('video.play')}\n type=\"button\"\n {...styleProps(styles.centerPlay, videoClasses('center-play'))}\n onClick={(event) => {\n event.stopPropagation();\n void store.play();\n }}\n >\n <Play fill=\"currentColor\" size={24} strokeWidth={0} />\n </button>\n );\n};\n\nCenterPlay.displayName = 'VideoCenterPlay';\n\nexport default CenterPlay;\n"],"mappings":";;;;;;;;;;;AAaA,MAAM,mBAAmB;CACvB,MAAM,EAAE,UAAU,gBAAgB;CAClC,MAAM,EAAE,MAAM,eAAeA,aAAa;CAE1C,IAAI,CADS,UAAU,UAAU,MAAM,UAAU,MAAM,WAAW,WAAW,MAAM,OAAO,GAClF,GAAG,OAAO;CAElB,OACE,oBAAC,UAAD;EACE,cAAY,EAAE,YAAY;EAC1B,MAAK;EACL,GAAI,WAAW,OAAO,YAAY,aAAa,aAAa,CAAC;EAC7D,UAAU,UAAU;GAClB,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"CenterPlay.mjs","names":["videoMessages"],"sources":["../../../src/Video/parts/CenterPlay.tsx"],"sourcesContent":["'use client';\n\nimport { Play } from 'lucide-react';\n\nimport videoMessages from '@/i18n/resources/en/video';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { useVideoContext } from '../context';\nimport { videoClasses } from '../stable';\nimport { styles } from '../style';\nimport { useVideo } from '../useVideo';\n\nconst CenterPlay = () => {\n const { store } = useVideoContext();\n const { t } = useTranslation(videoMessages);\n const show = useVideo((state) => state.paused && state.status === 'ready' && state.time < 0.05);\n if (!show) return null;\n\n return (\n <button\n aria-label={t('video.play')}\n type=\"button\"\n {...styleProps(styles.centerPlay, videoClasses('center-play'))}\n onClick={(event) => {\n event.stopPropagation();\n void store.play();\n }}\n >\n <Play fill=\"currentColor\" size={24} strokeWidth={0} />\n </button>\n );\n};\n\nCenterPlay.displayName = 'VideoCenterPlay';\n\nexport default CenterPlay;\n"],"mappings":";;;;;;;;;;;AAaA,MAAM,mBAAmB;CACvB,MAAM,EAAE,UAAU,gBAAgB;CAClC,MAAM,EAAE,MAAM,eAAeA,aAAa;CAE1C,IAAI,CADS,UAAU,UAAU,MAAM,UAAU,MAAM,WAAW,WAAW,MAAM,OAAO,GAClF,GAAG,OAAO;CAElB,OACE,oBAAC,UAAD;EACE,cAAY,EAAE,YAAY;EAC1B,MAAK;EACL,GAAI,WAAW,OAAO,YAAY,aAAa,aAAa,CAAC;EAC7D,UAAU,UAAU;GAClB,MAAM,gBAAgB;GACjB,MAAM,KAAK;EAClB;EAEA,UAAA,oBAAC,MAAD;GAAM,MAAK;GAAe,MAAM;GAAI,aAAa;EAAI,CAAA;CAC/C,CAAA;AAEZ;AAEA,WAAW,cAAc"}
|
|
@@ -3,5 +3,4 @@ declare const Root: {
|
|
|
3
3
|
({ ref, player, src, poster, autoPlay, loop, preload, onPlay, onPause, onEnded, onError, onTimeUpdate, sections, markers, fps, playbackRates, defaultPlaybackRate, muted, onMutedChange, onRateChange, onMarkerClick, onRetry, captions, width, height, maxHeight, className, style, children }: VideoRootProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
|
-
export { Root as default };
|
|
7
|
-
//# sourceMappingURL=Root.d.mts.map
|
|
6
|
+
export { Root as default };
|
package/es/Video/store.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.mjs","names":[],"sources":["../../src/Video/store.ts"],"sourcesContent":["import { markersAt, sectionAt, sortSections, steppedTime } from './time';\nimport type { VideoMarker, VideoPlayer, VideoSection, VideoState } from './type';\n\nexport interface VideoStoreOptions {\n defaultPlaybackRate?: number;\n muted?: boolean;\n onMutedChange?: (muted: boolean) => void;\n onRateChange?: (rate: number) => void;\n}\n\nexport interface VideoStoreData {\n fps: number;\n markers: VideoMarker[];\n sections: VideoSection[];\n}\n\nexport interface VideoStore extends VideoPlayer {\n attach: (video: HTMLVideoElement) => () => void;\n attachRoot: (root: HTMLDivElement | null) => void;\n getData: () => VideoStoreData;\n reload: () => void;\n setData: (data: Partial<VideoStoreData>) => void;\n setOptions: (options: VideoStoreOptions) => void;\n toggleFullscreen: () => void;\n}\n\nconst EMPTY_MARKERS: VideoMarker[] = [];\n\nconst sameMarkers = (a: VideoMarker[], b: VideoMarker[]) =>\n a.length === b.length && a.every((marker, index) => marker === b[index]);\n\ntype FrameVideo = HTMLVideoElement & {\n cancelVideoFrameCallback?: (handle: number) => void;\n requestVideoFrameCallback?: (\n callback: (now: number, frame: { mediaTime: number }) => void,\n ) => number;\n};\n\nexport const createVideoStore = (): VideoStore => {\n let data: VideoStoreData = { fps: 30, markers: [], sections: [] };\n let options: VideoStoreOptions = {};\n let video: FrameVideo | null = null;\n let root: HTMLDivElement | null = null;\n // The frame actually on screen while playing. `currentTime` runs ahead of\n // the painted frame, and pausing would otherwise land a frame past it.\n let painted: number | undefined;\n let state: VideoState = {\n activeMarkers: EMPTY_MARKERS,\n activeSection: undefined,\n captions: true,\n duration: 0,\n muted: false,\n paused: true,\n rate: 1,\n size: undefined,\n status: 'loading',\n time: 0,\n };\n const listeners = new Set<(state: VideoState) => void>();\n\n const derive = (next: VideoState): VideoState => {\n const activeSection = sectionAt(data.sections, next.time);\n const found = markersAt(data.markers, next.time, data.fps);\n const activeMarkers =\n found.length === 0\n ? EMPTY_MARKERS\n : sameMarkers(found, state.activeMarkers)\n ? state.activeMarkers\n : found;\n return { ...next, activeMarkers, activeSection };\n };\n\n const commit = (patch: Partial<VideoState>) => {\n const next = derive({ ...state, ...patch });\n const changed = (Object.keys(next) as (keyof VideoState)[]).some(\n (key) => next[key] !== state[key],\n );\n if (!changed) return;\n state = next;\n for (const listener of listeners) listener(state);\n };\n\n const frameTime = () => {\n if (!video) return 0;\n return video.paused ? video.currentTime : (painted ?? video.currentTime);\n };\n\n // Before metadata the duration is NaN: only the lower bound applies, and the\n // element keeps the value as its start position.\n const clampToMedia = (seconds: number) => {\n const lower = Math.max(seconds, 0);\n return video && Number.isFinite(video.duration) ? Math.min(lower, video.duration) : lower;\n };\n\n const atEnd = () =>\n Boolean(video) &&\n (video!.ended ||\n (Number.isFinite(video!.duration) && video!.currentTime >= video!.duration - 0.5 / data.fps));\n\n const seek = (seconds: number) => {\n if (!video || !Number.isFinite(seconds)) return;\n painted = undefined;\n video.currentTime = clampToMedia(seconds);\n commit({ time: video.currentTime });\n };\n\n let attachedOnce = false;\n\n const store: VideoStore = {\n attach: (element) => {\n const target = element as FrameVideo;\n video = target;\n let handle = 0;\n let running = false;\n\n const cancel = () => {\n if (!running) return;\n running = false;\n if (target.cancelVideoFrameCallback) target.cancelVideoFrameCallback(handle);\n else cancelAnimationFrame(handle);\n };\n const schedule = () => {\n handle = target.requestVideoFrameCallback\n ? target.requestVideoFrameCallback(tick)\n : requestAnimationFrame(() => tick());\n };\n function tick(_now?: number, frame?: { mediaTime: number }) {\n if (!running) return;\n if (!target.paused) painted = frame?.mediaTime;\n commit({ time: target.paused ? target.currentTime : (painted ?? target.currentTime) });\n schedule();\n }\n const start = () => {\n if (running) return;\n running = true;\n schedule();\n };\n\n const onMeta = () =>\n commit({\n duration: target.duration,\n time: target.currentTime,\n size: { height: target.videoHeight, width: target.videoWidth },\n status: 'ready',\n });\n const onPlay = () => {\n commit({ paused: false });\n start();\n };\n const onPause = () => {\n cancel();\n const held = painted;\n painted = undefined;\n // At the end the element must stay ended, or play() would resume on\n // the last frame instead of restarting.\n if (!atEnd() && held !== undefined && Math.abs(target.currentTime - held) > 1e-3)\n target.currentTime = held;\n commit({ paused: true, time: target.currentTime });\n };\n const onSeeked = () => {\n painted = undefined;\n commit({ time: target.currentTime });\n };\n const onRate = () => {\n if (target.playbackRate === state.rate) return;\n commit({ rate: target.playbackRate });\n options.onRateChange?.(target.playbackRate);\n };\n const onVolume = () => {\n if (target.muted === state.muted) return;\n commit({ muted: target.muted });\n options.onMutedChange?.(target.muted);\n };\n const onError = () => commit({ status: 'error' });\n\n // Initial props apply once; a later video (a new src) keeps the viewer's choices.\n const muted = attachedOnce ? state.muted : (options.muted ?? false);\n const rate = attachedOnce ? state.rate : (options.defaultPlaybackRate ?? 1);\n attachedOnce = true;\n commit({\n duration: Number.isFinite(target.duration) ? target.duration : 0,\n muted,\n paused: target.paused,\n rate,\n size: undefined,\n status: 'loading',\n time: target.currentTime,\n });\n if (target.muted !== muted) target.muted = muted;\n if (target.playbackRate !== rate) target.playbackRate = rate;\n\n const events: [string, () => void][] = [\n ['loadedmetadata', onMeta],\n ['play', onPlay],\n ['pause', onPause],\n ['ended', onPause],\n ['seeked', onSeeked],\n ['ratechange', onRate],\n ['volumechange', onVolume],\n ['error', onError],\n ];\n for (const [type, handler] of events) target.addEventListener(type, handler);\n if (target.readyState >= 1) onMeta();\n if (!target.paused) start();\n\n return () => {\n cancel();\n for (const [type, handler] of events) target.removeEventListener(type, handler);\n if (video === target) video = null;\n };\n },\n attachRoot: (element) => {\n root = element;\n },\n getData: () => data,\n getState: () => state,\n pause: () => video?.pause(),\n play: async () => {\n await video?.play();\n },\n reload: () => {\n if (!video) return;\n commit({ status: 'loading' });\n video.load();\n },\n requestFullscreen: async () => {\n await root?.requestFullscreen?.();\n },\n get root() {\n return root;\n },\n seek,\n setCaptions: (captions) => commit({ captions }),\n setData: (next) => {\n data = {\n ...data,\n ...next,\n sections: next.sections ? sortSections(next.sections) : data.sections,\n };\n commit({});\n },\n setMuted: (muted) => {\n if (video) video.muted = muted;\n },\n setOptions: (next) => {\n options = { ...options, ...next };\n },\n setRate: (rate) => {\n if (video) video.playbackRate = rate;\n },\n step: (frames) => {\n if (!video) return;\n const from = frameTime();\n painted = undefined;\n video.pause();\n const limit = Number.isFinite(video.duration) ? video.duration : Number.POSITIVE_INFINITY;\n video.currentTime = steppedTime(from, frames, limit, data.fps);\n commit({ time: video.currentTime });\n },\n subscribe: (listener) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n toggle: () => {\n if (!video) return;\n if (!video.paused) return video.pause();\n if (atEnd()) video.currentTime = 0;\n void video.play();\n },\n toggleFullscreen: () => {\n if (typeof document !== 'undefined' && document.fullscreenElement) {\n void document.exitFullscreen?.();\n return;\n }\n void root?.requestFullscreen?.();\n },\n toggleMute: () => {\n if (video) video.muted = !video.muted;\n },\n get video() {\n return video;\n },\n };\n\n return store;\n};\n"],"mappings":";;AA0BA,MAAM,gBAA+B,CAAC;AAEtC,MAAM,eAAe,GAAkB,MACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,QAAQ,UAAU,WAAW,EAAE,MAAM;AASzE,MAAa,yBAAqC;CAChD,IAAI,OAAuB;EAAE,KAAK;EAAI,SAAS,CAAC;EAAG,UAAU,CAAC;CAAE;CAChE,IAAI,UAA6B,CAAC;CAClC,IAAI,QAA2B;CAC/B,IAAI,OAA8B;CAGlC,IAAI;CACJ,IAAI,QAAoB;EACtB,eAAe;EACf,eAAe,KAAA;EACf,UAAU;EACV,UAAU;EACV,OAAO;EACP,QAAQ;EACR,MAAM;EACN,MAAM,KAAA;EACN,QAAQ;EACR,MAAM;CACR;CACA,MAAM,4BAAY,IAAI,IAAiC;CAEvD,MAAM,UAAU,SAAiC;EAC/C,MAAM,gBAAgB,UAAU,KAAK,UAAU,KAAK,IAAI;EACxD,MAAM,QAAQ,UAAU,KAAK,SAAS,KAAK,MAAM,KAAK,GAAG;EACzD,MAAM,gBACJ,MAAM,WAAW,IACb,gBACA,YAAY,OAAO,MAAM,aAAa,IACpC,MAAM,gBACN;EACR,OAAO;GAAE,GAAG;GAAM;GAAe;EAAc;CACjD;CAEA,MAAM,UAAU,UAA+B;EAC7C,MAAM,OAAO,OAAO;GAAE,GAAG;GAAO,GAAG;EAAM,CAAC;EAI1C,IAAI,CAHa,OAAO,KAAK,IAAI,CAAC,CAA0B,MACzD,QAAQ,KAAK,SAAS,MAAM,IAEpB,GAAG;EACd,QAAQ;EACR,KAAK,MAAM,YAAY,WAAW,SAAS,KAAK;CAClD;CAEA,MAAM,kBAAkB;EACtB,IAAI,CAAC,OAAO,OAAO;EACnB,OAAO,MAAM,SAAS,MAAM,cAAe,WAAW,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YAAY,CAAC;EACpC;EACA,YAAY,aAAa;GACvB,UAAU,IAAI,QAAQ;GACtB,aAAa;IACX,UAAU,OAAO,QAAQ;GAC3B;EACF;EACA,cAAc;GACZ,IAAI,CAAC,OAAO;GACZ,IAAI,CAAC,MAAM,QAAQ,OAAO,MAAM,MAAM;GACtC,IAAI,MAAM,GAAG,MAAM,cAAc;GACjC,MAAW,KAAK;EAClB;EACA,wBAAwB;GACtB,IAAI,OAAO,aAAa,eAAe,SAAS,mBAAmB;IACjE,SAAc,iBAAiB;IAC/B;GACF;GACA,MAAW,oBAAoB;EACjC;EACA,kBAAkB;GAChB,IAAI,OAAO,MAAM,QAAQ,CAAC,MAAM;EAClC;EACA,IAAI,QAAQ;GACV,OAAO;EACT;CAGS;AACb"}
|
|
1
|
+
{"version":3,"file":"store.mjs","names":[],"sources":["../../src/Video/store.ts"],"sourcesContent":["import { markersAt, sectionAt, sortSections, steppedTime } from './time';\nimport type { VideoMarker, VideoPlayer, VideoSection, VideoState } from './type';\n\nexport interface VideoStoreOptions {\n defaultPlaybackRate?: number;\n muted?: boolean;\n onMutedChange?: (muted: boolean) => void;\n onRateChange?: (rate: number) => void;\n}\n\nexport interface VideoStoreData {\n fps: number;\n markers: VideoMarker[];\n sections: VideoSection[];\n}\n\nexport interface VideoStore extends VideoPlayer {\n attach: (video: HTMLVideoElement) => () => void;\n attachRoot: (root: HTMLDivElement | null) => void;\n getData: () => VideoStoreData;\n reload: () => void;\n setData: (data: Partial<VideoStoreData>) => void;\n setOptions: (options: VideoStoreOptions) => void;\n toggleFullscreen: () => void;\n}\n\nconst EMPTY_MARKERS: VideoMarker[] = [];\n\nconst sameMarkers = (a: VideoMarker[], b: VideoMarker[]) =>\n a.length === b.length && a.every((marker, index) => marker === b[index]);\n\ntype FrameVideo = HTMLVideoElement & {\n cancelVideoFrameCallback?: (handle: number) => void;\n requestVideoFrameCallback?: (\n callback: (now: number, frame: { mediaTime: number }) => void,\n ) => number;\n};\n\nexport const createVideoStore = (): VideoStore => {\n let data: VideoStoreData = { fps: 30, markers: [], sections: [] };\n let options: VideoStoreOptions = {};\n let video: FrameVideo | null = null;\n let root: HTMLDivElement | null = null;\n // The frame actually on screen while playing. `currentTime` runs ahead of\n // the painted frame, and pausing would otherwise land a frame past it.\n let painted: number | undefined;\n let state: VideoState = {\n activeMarkers: EMPTY_MARKERS,\n activeSection: undefined,\n captions: true,\n duration: 0,\n muted: false,\n paused: true,\n rate: 1,\n size: undefined,\n status: 'loading',\n time: 0,\n };\n const listeners = new Set<(state: VideoState) => void>();\n\n const derive = (next: VideoState): VideoState => {\n const activeSection = sectionAt(data.sections, next.time);\n const found = markersAt(data.markers, next.time, data.fps);\n const activeMarkers =\n found.length === 0\n ? EMPTY_MARKERS\n : sameMarkers(found, state.activeMarkers)\n ? state.activeMarkers\n : found;\n return { ...next, activeMarkers, activeSection };\n };\n\n const commit = (patch: Partial<VideoState>) => {\n const next = derive({ ...state, ...patch });\n const changed = (Object.keys(next) as (keyof VideoState)[]).some(\n (key) => next[key] !== state[key],\n );\n if (!changed) return;\n state = next;\n for (const listener of listeners) listener(state);\n };\n\n const frameTime = () => {\n if (!video) return 0;\n return video.paused ? video.currentTime : (painted ?? video.currentTime);\n };\n\n // Before metadata the duration is NaN: only the lower bound applies, and the\n // element keeps the value as its start position.\n const clampToMedia = (seconds: number) => {\n const lower = Math.max(seconds, 0);\n return video && Number.isFinite(video.duration) ? Math.min(lower, video.duration) : lower;\n };\n\n const atEnd = () =>\n Boolean(video) &&\n (video!.ended ||\n (Number.isFinite(video!.duration) && video!.currentTime >= video!.duration - 0.5 / data.fps));\n\n const seek = (seconds: number) => {\n if (!video || !Number.isFinite(seconds)) return;\n painted = undefined;\n video.currentTime = clampToMedia(seconds);\n commit({ time: video.currentTime });\n };\n\n let attachedOnce = false;\n\n const store: VideoStore = {\n attach: (element) => {\n const target = element as FrameVideo;\n video = target;\n let handle = 0;\n let running = false;\n\n const cancel = () => {\n if (!running) return;\n running = false;\n if (target.cancelVideoFrameCallback) target.cancelVideoFrameCallback(handle);\n else cancelAnimationFrame(handle);\n };\n const schedule = () => {\n handle = target.requestVideoFrameCallback\n ? target.requestVideoFrameCallback(tick)\n : requestAnimationFrame(() => tick());\n };\n function tick(_now?: number, frame?: { mediaTime: number }) {\n if (!running) return;\n if (!target.paused) painted = frame?.mediaTime;\n commit({ time: target.paused ? target.currentTime : (painted ?? target.currentTime) });\n schedule();\n }\n const start = () => {\n if (running) return;\n running = true;\n schedule();\n };\n\n const onMeta = () =>\n commit({\n duration: target.duration,\n time: target.currentTime,\n size: { height: target.videoHeight, width: target.videoWidth },\n status: 'ready',\n });\n const onPlay = () => {\n commit({ paused: false });\n start();\n };\n const onPause = () => {\n cancel();\n const held = painted;\n painted = undefined;\n // At the end the element must stay ended, or play() would resume on\n // the last frame instead of restarting.\n if (!atEnd() && held !== undefined && Math.abs(target.currentTime - held) > 1e-3)\n target.currentTime = held;\n commit({ paused: true, time: target.currentTime });\n };\n const onSeeked = () => {\n painted = undefined;\n commit({ time: target.currentTime });\n };\n const onRate = () => {\n if (target.playbackRate === state.rate) return;\n commit({ rate: target.playbackRate });\n options.onRateChange?.(target.playbackRate);\n };\n const onVolume = () => {\n if (target.muted === state.muted) return;\n commit({ muted: target.muted });\n options.onMutedChange?.(target.muted);\n };\n const onError = () => commit({ status: 'error' });\n\n // Initial props apply once; a later video (a new src) keeps the viewer's choices.\n const muted = attachedOnce ? state.muted : (options.muted ?? false);\n const rate = attachedOnce ? state.rate : (options.defaultPlaybackRate ?? 1);\n attachedOnce = true;\n commit({\n duration: Number.isFinite(target.duration) ? target.duration : 0,\n muted,\n paused: target.paused,\n rate,\n size: undefined,\n status: 'loading',\n time: target.currentTime,\n });\n if (target.muted !== muted) target.muted = muted;\n if (target.playbackRate !== rate) target.playbackRate = rate;\n\n const events: [string, () => void][] = [\n ['loadedmetadata', onMeta],\n ['play', onPlay],\n ['pause', onPause],\n ['ended', onPause],\n ['seeked', onSeeked],\n ['ratechange', onRate],\n ['volumechange', onVolume],\n ['error', onError],\n ];\n for (const [type, handler] of events) target.addEventListener(type, handler);\n if (target.readyState >= 1) onMeta();\n if (!target.paused) start();\n\n return () => {\n cancel();\n for (const [type, handler] of events) target.removeEventListener(type, handler);\n if (video === target) video = null;\n };\n },\n attachRoot: (element) => {\n root = element;\n },\n getData: () => data,\n getState: () => state,\n pause: () => video?.pause(),\n play: async () => {\n await video?.play();\n },\n reload: () => {\n if (!video) return;\n commit({ status: 'loading' });\n video.load();\n },\n requestFullscreen: async () => {\n await root?.requestFullscreen?.();\n },\n get root() {\n return root;\n },\n seek,\n setCaptions: (captions) => commit({ captions }),\n setData: (next) => {\n data = {\n ...data,\n ...next,\n sections: next.sections ? sortSections(next.sections) : data.sections,\n };\n commit({});\n },\n setMuted: (muted) => {\n if (video) video.muted = muted;\n },\n setOptions: (next) => {\n options = { ...options, ...next };\n },\n setRate: (rate) => {\n if (video) video.playbackRate = rate;\n },\n step: (frames) => {\n if (!video) return;\n const from = frameTime();\n painted = undefined;\n video.pause();\n const limit = Number.isFinite(video.duration) ? video.duration : Number.POSITIVE_INFINITY;\n video.currentTime = steppedTime(from, frames, limit, data.fps);\n commit({ time: video.currentTime });\n },\n subscribe: (listener) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n toggle: () => {\n if (!video) return;\n if (!video.paused) return video.pause();\n if (atEnd()) video.currentTime = 0;\n void video.play();\n },\n toggleFullscreen: () => {\n if (typeof document !== 'undefined' && document.fullscreenElement) {\n void document.exitFullscreen?.();\n return;\n }\n void root?.requestFullscreen?.();\n },\n toggleMute: () => {\n if (video) video.muted = !video.muted;\n },\n get video() {\n return video;\n },\n };\n\n return store;\n};\n"],"mappings":";;AA0BA,MAAM,gBAA+B,CAAC;AAEtC,MAAM,eAAe,GAAkB,MACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,QAAQ,UAAU,WAAW,EAAE,MAAM;AASzE,MAAa,yBAAqC;CAChD,IAAI,OAAuB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5D,SAAS,iBAAiB;IAC/B;GACF;GACK,MAAM,oBAAoB;EACjC;EACA,kBAAkB;GAChB,IAAI,OAAO,MAAM,QAAQ,CAAC,MAAM;EAClC;EACA,IAAI,QAAQ;GACV,OAAO;EACT;CAGS;AACb"}
|
package/es/Video/type.d.mts
CHANGED
package/es/Video/useVideo.d.mts
CHANGED
|
@@ -3,5 +3,4 @@ export declare function useVideoState(player: VideoPlayer): VideoState;
|
|
|
3
3
|
export declare function useVideoState<T>(player: VideoPlayer, selector: (state: VideoState) => T): T;
|
|
4
4
|
export declare function useVideo(): VideoState;
|
|
5
5
|
export declare function useVideo<T>(selector: (state: VideoState) => T): T;
|
|
6
|
-
export declare const useVideoPlayer: () => VideoPlayer;
|
|
7
|
-
//# sourceMappingURL=useVideo.d.mts.map
|
|
6
|
+
export declare const useVideoPlayer: () => VideoPlayer;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all,
|
|
4
|
-
let target = {};
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
5
|
for (var name in all) __defProp(target, name, {
|
|
6
6
|
get: all[name],
|
|
7
7
|
enumerable: true
|
|
8
8
|
});
|
|
9
|
-
if (!
|
|
10
|
-
return target;
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
11
|
};
|
|
12
12
|
export { __exportAll };
|
|
@@ -35,14 +35,14 @@ const AgentSkillCard = memo(({ agent, agents = DEFAULT_SKILL_AGENTS, className,
|
|
|
35
35
|
icon: Bot,
|
|
36
36
|
size: 16
|
|
37
37
|
}),
|
|
38
|
-
label: agent.label ?? "
|
|
38
|
+
label: agent.label ?? "Use with AI Agent",
|
|
39
39
|
value: "agent"
|
|
40
40
|
}, {
|
|
41
41
|
icon: /* @__PURE__ */ jsx(Icon, {
|
|
42
42
|
icon: UserRound,
|
|
43
43
|
size: 16
|
|
44
44
|
}),
|
|
45
|
-
label: human.label ?? "
|
|
45
|
+
label: human.label ?? "Install Manually",
|
|
46
46
|
value: "human"
|
|
47
47
|
}],
|
|
48
48
|
onChange: (next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentSkillCard.mjs","names":["clsx"],"sources":["../../../src/awesome/AgentSkillCard/AgentSkillCard.tsx"],"sourcesContent":["'use client';\n\nimport './style.css';\n\nimport clsx from 'clsx';\nimport { Bot, UserRound } from 'lucide-react';\nimport { memo, useState } from 'react';\n\nimport { renderLandingIcon } from '@/awesome/landingIcon';\nimport Icon from '@/Icon';\nimport Segmented from '@/Segmented';\nimport Snippet from '@/Snippet';\nimport { styleProps } from '@/styles/stylex/props';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { DEFAULT_SKILL_AGENTS } from './agents';\nimport { awesomeAgentSkillCardClasses } from './stable';\nimport { styles } from './style';\nimport type { AgentSkillCardMode, AgentSkillCardProps } from './type';\n\nconst AVATAR_SIZE = 28;\n\nconst AgentSkillCard = memo<AgentSkillCardProps>(\n ({\n agent,\n agents = DEFAULT_SKILL_AGENTS,\n className,\n defaultMode = 'agent',\n footer,\n human,\n mode: controlledMode,\n onModeChange,\n ...rest\n }) => {\n const [innerMode, setInnerMode] = useState<AgentSkillCardMode>(defaultMode);\n const mode = human ? (controlledMode ?? innerMode) : 'agent';\n const panel = mode === 'human' && human ? human : agent;\n const shell = panel.shell ?? mode === 'human';\n\n return (\n <div\n {...styleProps(styles.root, clsx(awesomeAgentSkillCardClasses(), className))}\n {...toDataAttributes({ mode })}\n {...rest}\n >\n {human && (\n <Segmented<AgentSkillCardMode>\n block\n className={awesomeAgentSkillCardClasses('mode-switch')}\n size={'large'}\n value={mode}\n variant={'outlined'}\n options={[\n {\n icon: <Icon icon={Bot} size={16} />,\n label: agent.label ??
|
|
1
|
+
{"version":3,"file":"AgentSkillCard.mjs","names":["clsx"],"sources":["../../../src/awesome/AgentSkillCard/AgentSkillCard.tsx"],"sourcesContent":["'use client';\n\nimport './style.css';\n\nimport clsx from 'clsx';\nimport { Bot, UserRound } from 'lucide-react';\nimport { memo, useState } from 'react';\n\nimport { renderLandingIcon } from '@/awesome/landingIcon';\nimport Icon from '@/Icon';\nimport Segmented from '@/Segmented';\nimport Snippet from '@/Snippet';\nimport { styleProps } from '@/styles/stylex/props';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { DEFAULT_SKILL_AGENTS } from './agents';\nimport { awesomeAgentSkillCardClasses } from './stable';\nimport { styles } from './style';\nimport type { AgentSkillCardMode, AgentSkillCardProps } from './type';\n\nconst AVATAR_SIZE = 28;\n\nconst AgentSkillCard = memo<AgentSkillCardProps>(\n ({\n agent,\n agents = DEFAULT_SKILL_AGENTS,\n className,\n defaultMode = 'agent',\n footer,\n human,\n mode: controlledMode,\n onModeChange,\n ...rest\n }) => {\n const [innerMode, setInnerMode] = useState<AgentSkillCardMode>(defaultMode);\n const mode = human ? (controlledMode ?? innerMode) : 'agent';\n const panel = mode === 'human' && human ? human : agent;\n const shell = panel.shell ?? mode === 'human';\n\n return (\n <div\n {...styleProps(styles.root, clsx(awesomeAgentSkillCardClasses(), className))}\n {...toDataAttributes({ mode })}\n {...rest}\n >\n {human && (\n <Segmented<AgentSkillCardMode>\n block\n className={awesomeAgentSkillCardClasses('mode-switch')}\n size={'large'}\n value={mode}\n variant={'outlined'}\n options={[\n {\n icon: <Icon icon={Bot} size={16} />,\n label: agent.label ?? 'Use with AI Agent',\n value: 'agent',\n },\n {\n icon: <Icon icon={UserRound} size={16} />,\n label: human.label ?? 'Install Manually',\n value: 'human',\n },\n ]}\n onChange={(next) => {\n setInnerMode(next);\n onModeChange?.(next);\n }}\n />\n )}\n <div {...styleProps(styles.panel, awesomeAgentSkillCardClasses('panel'))}>\n {mode === 'agent' && agents.length > 0 && (\n <div {...styleProps(styles.agents, awesomeAgentSkillCardClasses('agents'))}>\n {agents.map(({ avatar, title }) => (\n <span\n key={title}\n title={title}\n {...styleProps(styles.agent, awesomeAgentSkillCardClasses('agent'))}\n >\n {renderLandingIcon(avatar, AVATAR_SIZE)}\n </span>\n ))}\n </div>\n )}\n {panel.description && (\n <p {...styleProps(styles.description, awesomeAgentSkillCardClasses('description'))}>\n {panel.description}\n </p>\n )}\n <Snippet\n className={awesomeAgentSkillCardClasses('code')}\n language={'bash'}\n prefix={shell ? '$' : undefined}\n variant={'outlined'}\n >\n {panel.code}\n </Snippet>\n </div>\n {footer && (\n <div\n {...styleProps(\n styles.footer,\n clsx(awesomeAgentSkillCardClasses('footer'), 'lobe-agent-skill-card-footer'),\n )}\n >\n {footer}\n </div>\n )}\n </div>\n );\n },\n);\n\nAgentSkillCard.displayName = 'AgentSkillCard';\n\nexport default AgentSkillCard;\n"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAM,cAAc;AAEpB,MAAM,iBAAiB,MACpB,EACC,OACA,SAAS,sBACT,WACA,cAAc,SACd,QACA,OACA,MAAM,gBACN,cACA,GAAG,WACC;CACJ,MAAM,CAAC,WAAW,gBAAgB,SAA6B,WAAW;CAC1E,MAAM,OAAO,QAAS,kBAAkB,YAAa;CACrD,MAAM,QAAQ,SAAS,WAAW,QAAQ,QAAQ;CAClD,MAAM,QAAQ,MAAM,SAAS,SAAS;CAEtC,OACE,qBAAC,OAAD;EACE,GAAI,WAAW,OAAO,MAAMA,OAAK,6BAA6B,GAAG,SAAS,CAAC;EAC3E,GAAI,iBAAiB,EAAE,KAAK,CAAC;EAC7B,GAAI;EAHN,UAAA;GAKG,SACC,oBAAC,WAAD;IACE,OAAA;IACA,WAAW,6BAA6B,aAAa;IACrD,MAAM;IACN,OAAO;IACP,SAAS;IACT,SAAS,CACP;KACE,MAAM,oBAAC,MAAD;MAAM,MAAM;MAAK,MAAM;KAAK,CAAA;KAClC,OAAO,MAAM,SAAS;KACtB,OAAO;IACT,GACA;KACE,MAAM,oBAAC,MAAD;MAAM,MAAM;MAAW,MAAM;KAAK,CAAA;KACxC,OAAO,MAAM,SAAS;KACtB,OAAO;IACT,CACF;IACA,WAAW,SAAS;KAClB,aAAa,IAAI;KACjB,eAAe,IAAI;IACrB;GACD,CAAA;GAEH,qBAAC,OAAD;IAAK,GAAI,WAAW,OAAO,OAAO,6BAA6B,OAAO,CAAC;IAAvE,UAAA;KACG,SAAS,WAAW,OAAO,SAAS,KACnC,oBAAC,OAAD;MAAK,GAAI,WAAW,OAAO,QAAQ,6BAA6B,QAAQ,CAAC;MACtE,UAAA,OAAO,KAAK,EAAE,QAAQ,YACrB,oBAAC,QAAD;OAES;OACP,GAAI,WAAW,OAAO,OAAO,6BAA6B,OAAO,CAAC;OAEjE,UAAA,kBAAkB,QAAQ,WAAW;MAClC,GALC,KAKD,CACP;KACE,CAAA;KAEN,MAAM,eACL,oBAAC,KAAD;MAAG,GAAI,WAAW,OAAO,aAAa,6BAA6B,aAAa,CAAC;MAC9E,UAAA,MAAM;KACN,CAAA;KAEL,oBAAC,SAAD;MACE,WAAW,6BAA6B,MAAM;MAC9C,UAAU;MACV,QAAQ,QAAQ,MAAM,KAAA;MACtB,SAAS;MAER,UAAA,MAAM;KACA,CAAA;IACN;;GACJ,UACC,oBAAC,OAAD;IACE,GAAI,WACF,OAAO,QACPA,OAAK,6BAA6B,QAAQ,GAAG,8BAA8B,CAC7E;IAEC,UAAA;GACE,CAAA;EAEJ;;AAET,CACF;AAEA,eAAe,cAAc"}
|
|
@@ -13,7 +13,7 @@ export interface AgentSkillCardPanel {
|
|
|
13
13
|
code: string;
|
|
14
14
|
/** One-line instruction above the code block. */
|
|
15
15
|
description?: ReactNode;
|
|
16
|
-
/** Tab label. Defaults to "
|
|
16
|
+
/** Tab label. Defaults to "Use with AI Agent" / "Install Manually". */
|
|
17
17
|
label?: ReactNode;
|
|
18
18
|
/** Renders the code with a `$` shell prompt. Defaults to true for the human panel. */
|
|
19
19
|
shell?: boolean;
|
|
@@ -34,5 +34,4 @@ export interface AgentSkillCardProps extends DivProps {
|
|
|
34
34
|
human?: AgentSkillCardPanel;
|
|
35
35
|
mode?: AgentSkillCardMode;
|
|
36
36
|
onModeChange?: (mode: AgentSkillCardMode) => void;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=type.d.mts.map
|
|
37
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { AuroraBackgroundProps } from "./type.mjs";
|
|
2
2
|
declare const AuroraBackground: import("react").NamedExoticComponent<AuroraBackgroundProps>;
|
|
3
|
-
export { AuroraBackground as default };
|
|
4
|
-
//# sourceMappingURL=AuroraBackground.d.mts.map
|
|
3
|
+
export { AuroraBackground as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { BottomGradientButtonProps } from "./type.mjs";
|
|
2
2
|
declare const BottomGradientButton: import("react").NamedExoticComponent<BottomGradientButtonProps>;
|
|
3
|
-
export { BottomGradientButton as default };
|
|
4
|
-
//# sourceMappingURL=BottomGradientButton.d.mts.map
|
|
3
|
+
export { BottomGradientButton as default };
|