@lobehub/ui 6.15.2 → 6.15.3
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/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/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/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/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/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/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/locale.d.mts +1 -2
- package/es/DatePicker/type.d.mts +1 -2
- 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/type.d.mts +1 -2
- package/es/EditorSlashMenu/EditorSlashMenu.d.mts +1 -2
- package/es/EditorSlashMenu/atoms.d.mts +1 -2
- package/es/EditorSlashMenu/atoms.mjs +1 -0
- package/es/EditorSlashMenu/atoms.mjs.map +1 -1
- 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/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/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/Iframe.d.mts +1 -2
- 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/locale.d.mts +1 -2
- 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/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/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/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/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/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/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/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/agents.d.mts +1 -2
- package/es/awesome/AgentSkillCard/type.d.mts +1 -2
- 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/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/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/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/global.css +2 -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/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/themeCss.mjs +2 -2
- package/es/styles/theme/themeCss.mjs.map +1 -1
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCallback, useInsertionEffect, useLayoutEffect, useReducer, useRef, useState } from "react";
|
|
1
|
+
import { useCallback, useInsertionEffect, useLayoutEffect as useLayoutEffect$1, useReducer, useRef, useState } from "react";
|
|
2
2
|
// src/DatePicker/core/hooks/react.ts
|
|
3
3
|
const useEvent = (callback) => {
|
|
4
4
|
const callbackRef = useRef(callback);
|
|
@@ -7,10 +7,10 @@ const useEvent = (callback) => {
|
|
|
7
7
|
});
|
|
8
8
|
return useCallback((...args) => callbackRef.current?.(...args), []);
|
|
9
9
|
};
|
|
10
|
-
const useLayoutEffect
|
|
10
|
+
const useLayoutEffect = (callback, deps) => {
|
|
11
11
|
const firstMountRef = useRef(true);
|
|
12
|
-
useLayoutEffect(() => callback(firstMountRef.current), deps);
|
|
13
|
-
useLayoutEffect(() => {
|
|
12
|
+
useLayoutEffect$1(() => callback(firstMountRef.current), deps);
|
|
13
|
+
useLayoutEffect$1(() => {
|
|
14
14
|
firstMountRef.current = false;
|
|
15
15
|
return () => {
|
|
16
16
|
firstMountRef.current = true;
|
|
@@ -18,14 +18,14 @@ const useLayoutEffect$1 = (callback, deps) => {
|
|
|
18
18
|
}, []);
|
|
19
19
|
};
|
|
20
20
|
const useLayoutUpdateEffect = (callback, deps) => {
|
|
21
|
-
useLayoutEffect
|
|
21
|
+
useLayoutEffect((firstMount) => {
|
|
22
22
|
if (!firstMount) return callback();
|
|
23
23
|
}, deps);
|
|
24
24
|
};
|
|
25
25
|
const useControlledState = (defaultStateValue, value) => {
|
|
26
26
|
const [innerValue, setInnerValue] = useState(defaultStateValue);
|
|
27
27
|
const mergedValue = value === void 0 ? innerValue : value;
|
|
28
|
-
useLayoutEffect
|
|
28
|
+
useLayoutEffect((firstMount) => {
|
|
29
29
|
if (!firstMount) setInnerValue(value);
|
|
30
30
|
}, [value]);
|
|
31
31
|
return [mergedValue, setInnerValue];
|
|
@@ -40,7 +40,7 @@ const useLatestState = (defaultValue) => {
|
|
|
40
40
|
};
|
|
41
41
|
const useResizeObserver = (ref, onResize, enabled = true) => {
|
|
42
42
|
const handleResize = useEvent(onResize);
|
|
43
|
-
useLayoutEffect(() => {
|
|
43
|
+
useLayoutEffect$1(() => {
|
|
44
44
|
const element = ref.current;
|
|
45
45
|
if (!enabled || !element || typeof ResizeObserver === "undefined") return;
|
|
46
46
|
const observer = new ResizeObserver(() => handleResize(element));
|
|
@@ -52,6 +52,6 @@ const useResizeObserver = (ref, onResize, enabled = true) => {
|
|
|
52
52
|
ref
|
|
53
53
|
]);
|
|
54
54
|
};
|
|
55
|
-
export { useControlledState, useEvent, useLatestState, useLayoutEffect
|
|
55
|
+
export { useControlledState, useEvent, useLatestState, useLayoutEffect, useLayoutUpdateEffect, useResizeObserver };
|
|
56
56
|
|
|
57
57
|
//# sourceMappingURL=react.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.mjs","names":[
|
|
1
|
+
{"version":3,"file":"react.mjs","names":[],"sources":["../../../../src/DatePicker/core/hooks/react.ts"],"sourcesContent":["import {\n type DependencyList,\n type RefObject,\n type SetStateAction,\n useCallback,\n useInsertionEffect,\n useLayoutEffect as useReactLayoutEffect,\n useReducer,\n useRef,\n useState,\n} from 'react';\n\nexport const useEvent = <T extends (...args: any[]) => any>(callback: T): T => {\n const callbackRef = useRef(callback);\n useInsertionEffect(() => {\n callbackRef.current = callback;\n });\n return useCallback((...args: Parameters<T>) => callbackRef.current?.(...args), []) as T;\n};\n\nexport const useLayoutEffect = (\n callback: (firstMount: boolean) => void | (() => void),\n deps?: DependencyList,\n) => {\n const firstMountRef = useRef(true);\n\n useReactLayoutEffect(() => callback(firstMountRef.current), deps);\n\n useReactLayoutEffect(() => {\n firstMountRef.current = false;\n return () => {\n firstMountRef.current = true;\n };\n }, []);\n};\n\nexport const useLayoutUpdateEffect = (\n callback: () => void | (() => void),\n deps?: DependencyList,\n) => {\n useLayoutEffect((firstMount) => {\n if (!firstMount) return callback();\n }, deps);\n};\n\nexport const useControlledState = <T>(\n defaultStateValue: T | (() => T),\n value?: T,\n): [T, (next: SetStateAction<T>) => void] => {\n const [innerValue, setInnerValue] = useState(defaultStateValue);\n const mergedValue = value === undefined ? innerValue : value;\n\n useLayoutEffect(\n (firstMount) => {\n if (!firstMount) setInnerValue(value as T);\n },\n [value],\n );\n\n return [mergedValue, setInnerValue];\n};\n\nexport const useLatestState = <T>(\n defaultValue: T,\n): [() => T, (next: T | ((prev: T) => T)) => void] => {\n const [, forceUpdate] = useReducer((count: number) => count + 1, 0);\n const valueRef = useRef(defaultValue);\n const getValue = useEvent(() => valueRef.current);\n const setValue = useEvent((next: T | ((prev: T) => T)) => {\n valueRef.current =\n typeof next === 'function' ? (next as (prev: T) => T)(valueRef.current) : next;\n forceUpdate();\n });\n return [getValue, setValue];\n};\n\nexport const useResizeObserver = (\n ref: RefObject<HTMLElement | null>,\n onResize: (element: HTMLElement) => void,\n enabled = true,\n) => {\n const handleResize = useEvent(onResize);\n\n useReactLayoutEffect(() => {\n const element = ref.current;\n if (!enabled || !element || typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => handleResize(element));\n observer.observe(element);\n return () => observer.disconnect();\n }, [enabled, handleResize, ref]);\n};\n"],"mappings":";;AAYA,MAA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xB,aAAa,SAAS,WAAW;CACnC,GAAG;EAAC;EAAS;EAAc;CAAG,CAAC;AACjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
// src/DatePicker/core/hooks/useSyncState.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sync value with state.
|
|
@@ -6,8 +6,8 @@ import * as React$1 from "react";
|
|
|
6
6
|
* Since it's not safe for suspense.
|
|
7
7
|
*/
|
|
8
8
|
function useSyncState(defaultValue, controlledValue) {
|
|
9
|
-
const valueRef = React
|
|
10
|
-
const [, forceUpdate] = React
|
|
9
|
+
const valueRef = React.useRef(defaultValue);
|
|
10
|
+
const [, forceUpdate] = React.useState({});
|
|
11
11
|
const getter = (useControlledValueFirst) => useControlledValueFirst && controlledValue !== void 0 ? controlledValue : valueRef.current;
|
|
12
12
|
const setter = (nextValue) => {
|
|
13
13
|
valueRef.current = nextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSyncState.mjs","names":[
|
|
1
|
+
{"version":3,"file":"useSyncState.mjs","names":[],"sources":["../../../../src/DatePicker/core/hooks/useSyncState.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Sync value with state.\n * This should only used for internal which not affect outside calculation.\n * Since it's not safe for suspense.\n */\nexport default function useSyncState<T>(\n defaultValue: T,\n controlledValue?: T,\n): [getter: (useControlledValueFirst?: boolean) => T, setter: (nextValue: T) => void, value: T] {\n const valueRef = React.useRef(defaultValue);\n const [, forceUpdate] = React.useState({});\n\n const getter = (useControlledValueFirst?: boolean) =>\n useControlledValueFirst && controlledValue !== undefined ? controlledValue : valueRef.current;\n\n const setter = (nextValue: T) => {\n valueRef.current = nextValue;\n forceUpdate({});\n };\n\n return [getter, setter, getter(true)];\n}\n"],"mappings":";;;;;;;AAOA,SAAwB,aACtB,cACA,iBAC8F;CAC9F,MAAM,WAAW,MAAM,OAAO,YAAY;CAC1C,MAAM,GAAG,eAAe,MAAM,SAAS,CAAC,CAAC;CAEzC,MAAM,UAAU,4BACd,2BAA2B,oBAAoB,KAAA,IAAY,kBAAkB,SAAS;CAExF,MAAM,UAAU,cAAiB;EAC/B,SAAS,UAAU;EACnB,YAAY,CAAC,CAAC;CAChB;CAEA,OAAO;EAAC;EAAQ;EAAQ,OAAO,IAAI;CAAC;AACtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findValidateTime } from "../PickerPanel/TimePanel/TimePanelBody/util.mjs";
|
|
2
2
|
import { warning } from "../utils/common.mjs";
|
|
3
3
|
import { leftPad } from "../utils/miscUtil.mjs";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
// src/DatePicker/core/hooks/useTimeInfo.ts
|
|
6
6
|
function emptyDisabled() {
|
|
7
7
|
return [];
|
|
@@ -24,7 +24,7 @@ function generateUnits(start, end, step = 1, hideDisabledOptions = false, disabl
|
|
|
24
24
|
*/
|
|
25
25
|
function useTimeInfo(generateConfig, props = {}, date) {
|
|
26
26
|
const { use12Hours, hourStep = 1, minuteStep = 1, secondStep = 1, millisecondStep = 100, hideDisabledOptions, disabledTime, disabledHours, disabledMinutes, disabledSeconds } = props || {};
|
|
27
|
-
const mergedDate = React
|
|
27
|
+
const mergedDate = React.useMemo(() => date || generateConfig.getNow(), [date, generateConfig]);
|
|
28
28
|
if (process.env.NODE_ENV !== "production") {
|
|
29
29
|
const isHourStepValid = 24 % hourStep === 0;
|
|
30
30
|
const isMinuteStepValid = 60 % minuteStep === 0;
|
|
@@ -33,7 +33,7 @@ function useTimeInfo(generateConfig, props = {}, date) {
|
|
|
33
33
|
warning(isMinuteStepValid, `\`minuteStep\` ${minuteStep} is invalid. It should be a factor of 60.`);
|
|
34
34
|
warning(isSecondStepValid, `\`secondStep\` ${secondStep} is invalid. It should be a factor of 60.`);
|
|
35
35
|
}
|
|
36
|
-
const getDisabledTimes = React
|
|
36
|
+
const getDisabledTimes = React.useCallback((targetDate) => {
|
|
37
37
|
const disabledConfig = disabledTime?.(targetDate) || {};
|
|
38
38
|
return [
|
|
39
39
|
disabledConfig.disabledHours || disabledHours || emptyDisabled,
|
|
@@ -47,8 +47,8 @@ function useTimeInfo(generateConfig, props = {}, date) {
|
|
|
47
47
|
disabledMinutes,
|
|
48
48
|
disabledSeconds
|
|
49
49
|
]);
|
|
50
|
-
const [mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds] = React
|
|
51
|
-
const getAllUnits = React
|
|
50
|
+
const [mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds] = React.useMemo(() => getDisabledTimes(mergedDate), [mergedDate, getDisabledTimes]);
|
|
51
|
+
const getAllUnits = React.useCallback((getDisabledHours, getDisabledMinutes, getDisabledSeconds, getDisabledMilliseconds) => {
|
|
52
52
|
const hours = generateUnits(0, 23, hourStep, hideDisabledOptions, getDisabledHours());
|
|
53
53
|
const rowHourUnits = use12Hours ? hours.map((unit) => ({
|
|
54
54
|
...unit,
|
|
@@ -71,7 +71,7 @@ function useTimeInfo(generateConfig, props = {}, date) {
|
|
|
71
71
|
minuteStep,
|
|
72
72
|
secondStep
|
|
73
73
|
]);
|
|
74
|
-
const [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits] = React
|
|
74
|
+
const [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits] = React.useMemo(() => getAllUnits(mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds), [
|
|
75
75
|
getAllUnits,
|
|
76
76
|
mergedDisabledHours,
|
|
77
77
|
mergedDisabledMinutes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTimeInfo.mjs","names":[
|
|
1
|
+
{"version":3,"file":"useTimeInfo.mjs","names":[],"sources":["../../../../src/DatePicker/core/hooks/useTimeInfo.ts"],"sourcesContent":["import * as React from 'react';\n\nimport type { GenerateConfig } from '../generate';\nimport type { DisabledTimes, SharedTimeProps } from '../interface';\nimport { findValidateTime } from '../PickerPanel/TimePanel/TimePanelBody/util';\nimport { warning } from '../utils/common';\nimport { leftPad } from '../utils/miscUtil';\n\nexport type Unit<ValueType = number | string> = {\n label: string | number;\n value: ValueType;\n disabled?: boolean;\n};\n\nfunction emptyDisabled<T>(): T[] {\n return [];\n}\n\nfunction generateUnits(\n start: number,\n end: number,\n step = 1,\n hideDisabledOptions = false,\n disabledUnits: number[] = [],\n pad = 2,\n) {\n const units: Unit<number>[] = [];\n const integerStep = step >= 1 ? step | 0 : 1;\n for (let i = start; i <= end; i += integerStep) {\n const disabled = disabledUnits.includes(i);\n\n if (!disabled || !hideDisabledOptions) {\n units.push({\n label: leftPad(i, pad),\n value: i,\n disabled,\n });\n }\n }\n return units;\n}\n\n/**\n * Parse time props to get util info\n */\nexport default function useTimeInfo<DateType extends object = any>(\n generateConfig: GenerateConfig<DateType>,\n props: SharedTimeProps<DateType> | null = {},\n date?: DateType | null,\n) {\n const {\n // Show\n use12Hours,\n\n // Steps\n hourStep = 1,\n minuteStep = 1,\n secondStep = 1,\n millisecondStep = 100,\n\n // Disabled\n hideDisabledOptions,\n disabledTime,\n disabledHours,\n disabledMinutes,\n disabledSeconds,\n } = props || {};\n\n const mergedDate = React.useMemo(() => date || generateConfig.getNow(), [date, generateConfig]);\n\n // ======================== Warnings ========================\n if (process.env.NODE_ENV !== 'production') {\n const isHourStepValid = 24 % hourStep === 0;\n const isMinuteStepValid = 60 % minuteStep === 0;\n const isSecondStepValid = 60 % secondStep === 0;\n\n warning(isHourStepValid, `\\`hourStep\\` ${hourStep} is invalid. It should be a factor of 24.`);\n warning(\n isMinuteStepValid,\n `\\`minuteStep\\` ${minuteStep} is invalid. It should be a factor of 60.`,\n );\n warning(\n isSecondStepValid,\n `\\`secondStep\\` ${secondStep} is invalid. It should be a factor of 60.`,\n );\n }\n\n // ======================== Disabled ========================\n const getDisabledTimes = React.useCallback(\n (targetDate: DateType) => {\n const disabledConfig = disabledTime?.(targetDate) || {};\n\n return [\n disabledConfig.disabledHours || disabledHours || emptyDisabled,\n disabledConfig.disabledMinutes || disabledMinutes || emptyDisabled,\n disabledConfig.disabledSeconds || disabledSeconds || emptyDisabled,\n disabledConfig.disabledMilliseconds || emptyDisabled,\n ] as const;\n },\n [disabledTime, disabledHours, disabledMinutes, disabledSeconds],\n );\n\n const [\n mergedDisabledHours,\n mergedDisabledMinutes,\n mergedDisabledSeconds,\n mergedDisabledMilliseconds,\n ] = React.useMemo(() => getDisabledTimes(mergedDate), [mergedDate, getDisabledTimes]);\n\n // ========================= Column =========================\n const getAllUnits = React.useCallback(\n (\n getDisabledHours: NonNullable<DisabledTimes['disabledHours']>,\n getDisabledMinutes: NonNullable<DisabledTimes['disabledMinutes']>,\n getDisabledSeconds: NonNullable<DisabledTimes['disabledSeconds']>,\n getDisabledMilliseconds: NonNullable<DisabledTimes['disabledMilliseconds']>,\n ) => {\n const hours = generateUnits(0, 23, hourStep, hideDisabledOptions, getDisabledHours());\n\n // Hours\n const rowHourUnits = use12Hours\n ? hours.map((unit) => ({\n ...unit,\n label: leftPad((unit.value as number) % 12 || 12, 2),\n }))\n : hours;\n\n // Minutes\n const getMinuteUnits = (nextHour: number) =>\n generateUnits(0, 59, minuteStep, hideDisabledOptions, getDisabledMinutes(nextHour));\n\n // Seconds\n const getSecondUnits = (nextHour: number, nextMinute: number) =>\n generateUnits(\n 0,\n 59,\n secondStep,\n hideDisabledOptions,\n getDisabledSeconds(nextHour, nextMinute),\n );\n\n // Milliseconds\n const getMillisecondUnits = (nextHour: number, nextMinute: number, nextSecond: number) =>\n generateUnits(\n 0,\n 999,\n millisecondStep,\n hideDisabledOptions,\n getDisabledMilliseconds(nextHour, nextMinute, nextSecond),\n 3,\n );\n\n return [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits] as const;\n },\n [hideDisabledOptions, hourStep, use12Hours, millisecondStep, minuteStep, secondStep],\n );\n\n const [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits] = React.useMemo(\n () =>\n getAllUnits(\n mergedDisabledHours,\n mergedDisabledMinutes,\n mergedDisabledSeconds,\n mergedDisabledMilliseconds,\n ),\n [\n getAllUnits,\n mergedDisabledHours,\n mergedDisabledMinutes,\n mergedDisabledSeconds,\n mergedDisabledMilliseconds,\n ],\n );\n\n // ======================== Validate ========================\n /**\n * Get validate time with `disabledTime`, `certainDate` to specific the date need to check\n */\n const getValidTime = (nextTime: DateType, certainDate?: DateType) => {\n let getCheckHourUnits = () => rowHourUnits;\n let getCheckMinuteUnits = getMinuteUnits;\n let getCheckSecondUnits = getSecondUnits;\n let getCheckMillisecondUnits = getMillisecondUnits;\n\n if (certainDate) {\n const [\n targetDisabledHours,\n targetDisabledMinutes,\n targetDisabledSeconds,\n targetDisabledMilliseconds,\n ] = getDisabledTimes(certainDate);\n\n const [\n targetRowHourUnits,\n targetGetMinuteUnits,\n targetGetSecondUnits,\n targetGetMillisecondUnits,\n ] = getAllUnits(\n targetDisabledHours,\n targetDisabledMinutes,\n targetDisabledSeconds,\n targetDisabledMilliseconds,\n );\n\n getCheckHourUnits = () => targetRowHourUnits;\n getCheckMinuteUnits = targetGetMinuteUnits;\n getCheckSecondUnits = targetGetSecondUnits;\n getCheckMillisecondUnits = targetGetMillisecondUnits;\n }\n\n const validateDate = findValidateTime(\n nextTime,\n getCheckHourUnits,\n getCheckMinuteUnits,\n getCheckSecondUnits,\n getCheckMillisecondUnits,\n generateConfig,\n );\n\n return validateDate;\n };\n\n return [\n // getValidTime\n getValidTime,\n\n // Units\n rowHourUnits,\n getMinuteUnits,\n getSecondUnits,\n getMillisecondUnits,\n ] as const;\n}\n"],"mappings":";;;;;AAcA,SAAS,gBAAwB;CAC/B,OAAO,CAAC;AACV;AAEA,SAAS,cACP,OACA,KACA,OAAO,GACP,sBAAsB,OACtB,gBAA0B,CAAC,GAC3B,MAAM,GACN;CACA,MAAM,QAAwB,CAAC;CAC/B,MAAM,cAAc,QAAQ,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C;EAGpF,MAAM,eAAe,aACjB,MAAM,KAAK,UAAU;GACnB,GAAG;GACH,OAAO,QAAS,KAAK,QAAmB,MAAM,IAAI,CAAC;EACrD,EAAE,IACF;EAGJ,MAAM,kBAAkB,aACtB,cAAc,GAAG,IAAI,YAAY,qBAAqB,mBAAmB,QAAQ,CAAC;EAGpF,MAAM,kBAAkB,UAAkB,eACxC,cACE,GACA,IACA,YACA,qBACA,mBAAmB,UAAU,UAAU,CACzC;EAGF,MAAM,uBAAuB,UAAkB,YAAoB,eACjE,cACE,GACA,KACA,iBACA,qBACA,wBAAwB,UAAU,YAAY,UAAU,GACxD,CACF;EAEF,OAAO;GAAC;GAAc;GAAgB;GAAgB;EAAmB;CAC3E,GACA;EAAC;EAAqB;EAAU;EAAY;EAAiB;EAAY;CAAU,CACrF;CAEA,MAAM,CAAC,cAAc,gBAAgB,gBAAgB,uBAAuB,MAAM,cAE9E,YACE,qBACA,uBACA,uBACA,0BACF,GACF;EACE;EACA;EACA;EACA;EACA;CACF,CACF;;;;CAMA,MAAM,gBAAgB,UAAoB,gBAA2B;EACnE,IAAI,0BAA0B;EAC9B,IAAI,sBAAsB;EAC1B,IAAI,sBAAsB;EAC1B,IAAI,2BAA2B;EAE/B,IAAI,aAAa;GACf,MAAM,CACJ,qBACA,uBACA,uBACA,8BACE,iBAAiB,WAAW;GAEhC,MAAM,CACJ,oBACA,sBACA,sBACA,6BACE,YACF,qBACA,uBACA,uBACA,0BACF;GAEA,0BAA0B;GAC1B,sBAAsB;GACtB,sBAAsB;GACtB,2BAA2B;EAC7B;EAWA,OATqB,iBACnB,UACA,mBACA,qBACA,qBACA,0BACA,cAGgB;CACpB;CAEA,OAAO;EAEL;EAGA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What's new?
|
|
3
|
+
* - Common
|
|
4
|
+
* - [Break] Support special year format, all the year will follow the locale config.
|
|
5
|
+
* - Blur all of field will trigger `onChange` if validate
|
|
6
|
+
* - Support `preserveInvalidOnBlur` to not to clean input if invalid and remove `changeOnBlur`
|
|
7
|
+
* - `pickerValue` is now full controlled
|
|
8
|
+
* - `defaultPickerValue` will take effect on every field active with popup opening.
|
|
9
|
+
* - [Break] clear button return the event with `onClick`
|
|
10
|
+
*
|
|
11
|
+
* - Locale
|
|
12
|
+
* - Remove `dateFormat` since it's never used
|
|
13
|
+
* - Remove `dateTimeFormat` since it's never used
|
|
14
|
+
*
|
|
15
|
+
* - Picker
|
|
16
|
+
* - TimePicker support `changeOnScroll`
|
|
17
|
+
* - TimePicker support `millisecond`
|
|
18
|
+
* - Support cellMeridiemFormat for AM/PM
|
|
19
|
+
* - Get correct `disabledHours` when set `use12Hours`
|
|
20
|
+
* - Support `showWeek`
|
|
21
|
+
*
|
|
22
|
+
* - RangePicker
|
|
23
|
+
* - [Break] RangePicker is now not limit the range of clicked field.
|
|
24
|
+
* - Trigger `onCalendarChange` when type correct
|
|
25
|
+
* - [Break] Not order `value` if given `value` is wrong order.
|
|
26
|
+
* - Hover `presets` will show date in input field.
|
|
27
|
+
* - [Break] RangePicker go to end field, `pickerValue` will follow the start field if not controlled.
|
|
28
|
+
*/
|
|
1
29
|
import { PickerRef, SharedTimeProps } from "./interface.mjs";
|
|
2
30
|
import { RangePickerProps } from "./PickerInput/RangePicker.mjs";
|
|
3
31
|
import { BasePickerProps, CustomTagProps, PickerProps } from "./PickerInput/SinglePicker.mjs";
|
|
@@ -319,5 +319,4 @@ export interface RangePickerRef extends Omit<PickerRef, 'focus'> {
|
|
|
319
319
|
}
|
|
320
320
|
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
321
321
|
export type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
322
|
-
export {};
|
|
323
|
-
//# sourceMappingURL=interface.d.mts.map
|
|
322
|
+
export {};
|
|
@@ -6,5 +6,4 @@ import { GeneratedDatePicker } from "./type.mjs";
|
|
|
6
6
|
* its `GenerateConfig` — e.g. `@rc-component/picker/generate/dateFns`, installed by the app.
|
|
7
7
|
*/
|
|
8
8
|
declare const generatePicker: <DateType extends object>(generateConfig: GenerateConfig<DateType>) => GeneratedDatePicker<DateType>;
|
|
9
|
-
export { generatePicker as default };
|
|
10
|
-
//# sourceMappingURL=generatePicker.d.mts.map
|
|
9
|
+
export { generatePicker as default };
|
|
@@ -9,5 +9,4 @@ export declare const createPickerLocale: (resources: TranslationResources, local
|
|
|
9
9
|
/** Default English locale, the counterpart of antd's `date-picker/locale/en_US`. */
|
|
10
10
|
export declare const datePickerLocaleEnUS: PickerLocale;
|
|
11
11
|
/** Default Simplified Chinese locale, the counterpart of antd's `date-picker/locale/zh_CN`. */
|
|
12
|
-
export declare const datePickerLocaleZhCN: PickerLocale;
|
|
13
|
-
//# sourceMappingURL=locale.d.mts.map
|
|
12
|
+
export declare const datePickerLocaleZhCN: PickerLocale;
|
package/es/DatePicker/type.d.mts
CHANGED
|
@@ -296,5 +296,4 @@ export type DayjsDatePickerProps<ValueType = Dayjs> = PickerPropsWithMultiple<Da
|
|
|
296
296
|
export type DayjsDateRangePickerProps = DateRangePickerProps<Dayjs>;
|
|
297
297
|
/** `DayjsDateRangePicker` value: `[Dayjs | null, Dayjs | null]`. */
|
|
298
298
|
export type DayjsDateRangeValue = DateRangeValue<Dayjs>;
|
|
299
|
-
export type { CellRender, CellRenderInfo, GenerateConfig, PanelMode, PickerMode, PickerRef, RangePickerRef };
|
|
300
|
-
//# sourceMappingURL=type.d.mts.map
|
|
299
|
+
export type { CellRender, CellRenderInfo, GenerateConfig, PanelMode, PickerMode, PickerRef, RangePickerRef };
|
package/es/Divider/Divider.d.mts
CHANGED
package/es/Divider/type.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DownloadButtonProps } from "./type.mjs";
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const DownloadButton: React.NamedExoticComponent<DownloadButtonProps>;
|
|
4
|
-
export { DownloadButton as default };
|
|
5
|
-
//# sourceMappingURL=DownloadButton.d.mts.map
|
|
4
|
+
export { DownloadButton as default };
|
|
@@ -40,5 +40,4 @@ export interface DraggablePanelHeaderProps extends Omit<DivProps, 'children' | '
|
|
|
40
40
|
onCollapse?: () => void;
|
|
41
41
|
title?: ReactNode;
|
|
42
42
|
}
|
|
43
|
-
export declare const DraggablePanelHeader: import("react").NamedExoticComponent<DraggablePanelHeaderProps>;
|
|
44
|
-
//# sourceMappingURL=atoms.d.mts.map
|
|
43
|
+
export declare const DraggablePanelHeader: import("react").NamedExoticComponent<DraggablePanelHeaderProps>;
|
|
@@ -10,5 +10,4 @@ export interface DraggablePanelContextValue {
|
|
|
10
10
|
state: PanelState;
|
|
11
11
|
toggleExpand: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const useDraggablePanelContext: () => DraggablePanelContextValue;
|
|
14
|
-
//# sourceMappingURL=context.d.mts.map
|
|
13
|
+
export declare const useDraggablePanelContext: () => DraggablePanelContextValue;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DraggableSideNavProps } from "./type.mjs";
|
|
2
2
|
declare const DraggableSideNav: import("react").NamedExoticComponent<DraggableSideNavProps>;
|
|
3
|
-
export { DraggableSideNav as default };
|
|
4
|
-
//# sourceMappingURL=DraggableSideNav.d.mts.map
|
|
3
|
+
export { DraggableSideNav as default };
|
package/es/Drawer/Drawer.d.mts
CHANGED
package/es/Drawer/atoms.d.mts
CHANGED
|
@@ -53,5 +53,4 @@ export type DrawerTriggerProps = Omit<React.ComponentPropsWithRef<typeof Dialog.
|
|
|
53
53
|
nativeButton?: boolean;
|
|
54
54
|
};
|
|
55
55
|
export declare const DrawerTrigger: ({ children, className, nativeButton, ref: refProp, ...rest }: DrawerTriggerProps) => React.JSX.Element;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=atoms.d.mts.map
|
|
56
|
+
export {};
|
package/es/Drawer/type.d.mts
CHANGED
|
@@ -137,5 +137,4 @@ export type DropdownMenuSwitchItemProps = Omit<React.ComponentProps<typeof Menu.
|
|
|
137
137
|
export declare const DropdownMenuSwitchItem: {
|
|
138
138
|
({ checked: checkedProp, className, closeOnClick, danger, defaultChecked, disabled, onCheckedChange, children, ...rest }: DropdownMenuSwitchItemProps): React.JSX.Element;
|
|
139
139
|
displayName: string;
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=atoms.d.mts.map
|
|
140
|
+
};
|
|
@@ -2,5 +2,4 @@ import { IconAlign, IconSpaceMode, RenderOptions } from "../internal/menu/render
|
|
|
2
2
|
import { DropdownItem } from "./type.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
export declare const renderDropdownMenuItems: (items: DropdownItem[], keyPath?: string[], options?: RenderOptions) => ReactNode[];
|
|
5
|
-
export type { IconSpaceMode };
|
|
6
|
-
//# sourceMappingURL=renderItems.d.mts.map
|
|
5
|
+
export type { IconSpaceMode };
|
|
@@ -73,5 +73,4 @@ export type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autoco
|
|
|
73
73
|
export declare const EditorSlashMenuHiddenInput: {
|
|
74
74
|
({ className, ...rest }: EditorSlashMenuHiddenInputProps): React.JSX.Element;
|
|
75
75
|
displayName: string;
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=atoms.d.mts.map
|
|
76
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useAppElement } from "../ConfigProvider/AppElementContext.mjs";
|
|
3
|
+
import "../ConfigProvider/index.mjs";
|
|
3
4
|
import { menuClassNames, menuStyles } from "../DropdownMenu/style.mjs";
|
|
4
5
|
import { editorSlashMenuClasses } from "./stable.mjs";
|
|
5
6
|
import { styles } from "./style.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atoms.mjs","names":["clsx"],"sources":["../../src/EditorSlashMenu/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Autocomplete } from '@base-ui/react/autocomplete';\nimport * as stylex from '@stylexjs/stylex';\nimport clsx from 'clsx';\nimport type React from 'react';\n\nimport { useAppElement } from '@/ConfigProvider';\nimport { menuClassNames, menuStyles } from '@/DropdownMenu/sharedStyle';\nimport { type styleProps } from '@/styles/stylex/props';\n\nimport { editorSlashMenuClasses } from './stable';\nimport { styles } from './style';\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => clsx(base, className(state));\n return clsx(base, className);\n};\n\nconst sx = (styles: Parameters<typeof styleProps>[0]) => stylex.props(styles).className ?? '';\n\nexport const EditorSlashMenuRoot = Autocomplete.Root;\nexport const EditorSlashMenuList = ({\n ref,\n className,\n ...rest\n}: React.ComponentProps<typeof Autocomplete.List> & {\n ref?: React.RefObject<HTMLDivElement | null>;\n}) => {\n return (\n <Autocomplete.List\n {...rest}\n ref={ref}\n className={\n mergeStateClassName(\n clsx(sx(styles.list), editorSlashMenuClasses('list')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuList.displayName = 'EditorSlashMenuList';\n\nexport type EditorSlashMenuPortalProps = React.ComponentProps<typeof Autocomplete.Portal> & {\n /**\n * When `container` is not provided, it uses a shared container created by `usePortalContainer`.\n */\n container?: HTMLElement | null;\n};\n\nexport const EditorSlashMenuPortal = ({ container, ...rest }: EditorSlashMenuPortalProps) => {\n const appElement = useAppElement();\n return <Autocomplete.Portal container={container ?? appElement ?? undefined} {...rest} />;\n};\nEditorSlashMenuPortal.displayName = 'EditorSlashMenuPortal';\n\nexport type EditorSlashMenuPositionerProps = React.ComponentProps<typeof Autocomplete.Positioner>;\n\nexport const EditorSlashMenuPositioner = ({\n className,\n align,\n positionMethod,\n side,\n sideOffset,\n ...rest\n}: EditorSlashMenuPositionerProps) => {\n return (\n <Autocomplete.Positioner\n {...rest}\n align={align ?? 'start'}\n positionMethod={positionMethod ?? 'fixed'}\n side={side ?? 'bottom'}\n sideOffset={sideOffset ?? 6}\n className={\n mergeStateClassName(\n clsx(\n sx(menuStyles.positioner),\n menuClassNames.positioner,\n editorSlashMenuClasses('positioner'),\n ),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPositioner.displayName = 'EditorSlashMenuPositioner';\n\nexport type EditorSlashMenuPopupProps = React.ComponentProps<typeof Autocomplete.Popup>;\n\nexport const EditorSlashMenuPopup = ({\n className,\n initialFocus = false,\n ...rest\n}: EditorSlashMenuPopupProps) => {\n return (\n <Autocomplete.Popup\n {...rest}\n initialFocus={initialFocus}\n className={\n mergeStateClassName(\n clsx(sx(menuStyles.popup), menuClassNames.popup, editorSlashMenuClasses()),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPopup.displayName = 'EditorSlashMenuPopup';\n\nexport type EditorSlashMenuItemProps = React.ComponentProps<typeof Autocomplete.Item> & {\n danger?: boolean;\n};\n\nexport const EditorSlashMenuItem = ({ className, danger, ...rest }: EditorSlashMenuItemProps) => {\n return (\n <Autocomplete.Item\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, danger && menuStyles.danger]),\n editorSlashMenuClasses('item'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuItem.displayName = 'EditorSlashMenuItem';\n\nexport type EditorSlashMenuGroupProps = React.ComponentProps<typeof Autocomplete.Group>;\nexport const EditorSlashMenuGroup = ({ className, ...rest }: EditorSlashMenuGroupProps) => (\n <Autocomplete.Group\n {...rest}\n className={mergeStateClassName(editorSlashMenuClasses('group'), className as any) as any}\n />\n);\nEditorSlashMenuGroup.displayName = 'EditorSlashMenuGroup';\n\nexport type EditorSlashMenuGroupLabelProps = React.ComponentProps<typeof Autocomplete.GroupLabel>;\n\nexport const EditorSlashMenuGroupLabel = ({\n className,\n ...rest\n}: EditorSlashMenuGroupLabelProps) => {\n return (\n <Autocomplete.GroupLabel\n {...rest}\n className={(state) =>\n clsx(\n sx(menuStyles.groupLabel),\n editorSlashMenuClasses('group-label'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuGroupLabel.displayName = 'EditorSlashMenuGroupLabel';\n\nexport type EditorSlashMenuEmptyProps = React.ComponentProps<typeof Autocomplete.Empty>;\n\nexport const EditorSlashMenuEmpty = ({ className, ...rest }: EditorSlashMenuEmptyProps) => {\n return (\n <Autocomplete.Empty\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, menuStyles.empty]),\n editorSlashMenuClasses('empty'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuEmpty.displayName = 'EditorSlashMenuEmpty';\n\nexport type EditorSlashMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;\nexport const EditorSlashMenuItemContent = ({\n className,\n ...rest\n}: EditorSlashMenuItemContentProps) => {\n return (\n <div\n {...rest}\n className={clsx(\n sx(menuStyles.itemContent),\n editorSlashMenuClasses('item-content'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemContent.displayName = 'EditorSlashMenuItemContent';\n\nexport type EditorSlashMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemIcon = ({ className, ...rest }: EditorSlashMenuItemIconProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.icon),\n menuClassNames.icon,\n editorSlashMenuClasses('icon'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemIcon.displayName = 'EditorSlashMenuItemIcon';\n\nexport type EditorSlashMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemLabel = ({ className, ...rest }: EditorSlashMenuItemLabelProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.label),\n menuClassNames.label,\n editorSlashMenuClasses('label'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemLabel.displayName = 'EditorSlashMenuItemLabel';\n\nexport type EditorSlashMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemExtra = ({ className, ...rest }: EditorSlashMenuItemExtraProps) => {\n return (\n <span\n {...rest}\n className={clsx(sx(menuStyles.extra), editorSlashMenuClasses('extra'), className)}\n />\n );\n};\nEditorSlashMenuItemExtra.displayName = 'EditorSlashMenuItemExtra';\n\nexport type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autocomplete.Input>;\nexport const EditorSlashMenuHiddenInput = ({\n className,\n ...rest\n}: EditorSlashMenuHiddenInputProps) => {\n return (\n <Autocomplete.Input\n {...rest}\n className={\n mergeStateClassName(\n clsx(sx(styles.hiddenInput), editorSlashMenuClasses('input')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuHiddenInput.displayName = 'EditorSlashMenuHiddenInput';\n"],"mappings":";;;;;;;;;;AAWA,MAAM,uBAAgC,MAAc,cAA4E;CAC9H,IAAI,OAAO,cAAc,YAAY,QAAQ,UAAkBA,OAAK,MAAM,UAAU,KAAK,CAAC;CAC1F,OAAOA,OAAK,MAAM,SAAS;AAC7B;AACA,MAAM,MAAM,WAA6C,OAAO,MAAM,MAAM,CAAC,CAAC,aAAa;AAC3F,MAAa,sBAAsB,aAAa;AAChD,MAAa,uBAAuB,EAClC,KACA,WACA,GAAG,WAGC;CACJ,OAAO,oBAAC,aAAa,MAAd;EAAmB,GAAI;EAAW;EAAK,WAAW,oBAAoBA,OAAK,GAAG,OAAO,IAAI,GAAG,uBAAuB,MAAM,CAAC,GAAG,SAAgB;CAAW,CAAA;AACjK;AACA,oBAAoB,cAAc;AAOlC,MAAa,yBAAyB,EACpC,WACA,GAAG,WAC6B;CAChC,MAAM,aAAa,cAAc;CACjC,OAAO,oBAAC,aAAa,QAAd;EAAqB,WAAW,aAAa,cAAc,KAAA;EAAW,GAAI;CAAO,CAAA;AAC1F;AACA,sBAAsB,cAAc;AAEpC,MAAa,6BAA6B,EACxC,WACA,OACA,gBACA,MACA,YACA,GAAG,WACiC;CACpC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ources":["../../src/EditorSlashMenu/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Autocomplete } from '@base-ui/react/autocomplete';\nimport * as stylex from '@stylexjs/stylex';\nimport clsx from 'clsx';\nimport type React from 'react';\n\nimport { useAppElement } from '@/ConfigProvider';\nimport { menuClassNames, menuStyles } from '@/DropdownMenu/sharedStyle';\nimport { type styleProps } from '@/styles/stylex/props';\n\nimport { editorSlashMenuClasses } from './stable';\nimport { styles } from './style';\n\nconst mergeStateClassName = <TState,>(\n base: string,\n className: string | ((state: TState) => string | undefined) | undefined,\n) => {\n if (typeof className === 'function') return (state: TState) => clsx(base, className(state));\n return clsx(base, className);\n};\n\nconst sx = (styles: Parameters<typeof styleProps>[0]) => stylex.props(styles).className ?? '';\n\nexport const EditorSlashMenuRoot = Autocomplete.Root;\nexport const EditorSlashMenuList = ({\n ref,\n className,\n ...rest\n}: React.ComponentProps<typeof Autocomplete.List> & {\n ref?: React.RefObject<HTMLDivElement | null>;\n}) => {\n return (\n <Autocomplete.List\n {...rest}\n ref={ref}\n className={\n mergeStateClassName(\n clsx(sx(styles.list), editorSlashMenuClasses('list')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuList.displayName = 'EditorSlashMenuList';\n\nexport type EditorSlashMenuPortalProps = React.ComponentProps<typeof Autocomplete.Portal> & {\n /**\n * When `container` is not provided, it uses a shared container created by `usePortalContainer`.\n */\n container?: HTMLElement | null;\n};\n\nexport const EditorSlashMenuPortal = ({ container, ...rest }: EditorSlashMenuPortalProps) => {\n const appElement = useAppElement();\n return <Autocomplete.Portal container={container ?? appElement ?? undefined} {...rest} />;\n};\nEditorSlashMenuPortal.displayName = 'EditorSlashMenuPortal';\n\nexport type EditorSlashMenuPositionerProps = React.ComponentProps<typeof Autocomplete.Positioner>;\n\nexport const EditorSlashMenuPositioner = ({\n className,\n align,\n positionMethod,\n side,\n sideOffset,\n ...rest\n}: EditorSlashMenuPositionerProps) => {\n return (\n <Autocomplete.Positioner\n {...rest}\n align={align ?? 'start'}\n positionMethod={positionMethod ?? 'fixed'}\n side={side ?? 'bottom'}\n sideOffset={sideOffset ?? 6}\n className={\n mergeStateClassName(\n clsx(\n sx(menuStyles.positioner),\n menuClassNames.positioner,\n editorSlashMenuClasses('positioner'),\n ),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPositioner.displayName = 'EditorSlashMenuPositioner';\n\nexport type EditorSlashMenuPopupProps = React.ComponentProps<typeof Autocomplete.Popup>;\n\nexport const EditorSlashMenuPopup = ({\n className,\n initialFocus = false,\n ...rest\n}: EditorSlashMenuPopupProps) => {\n return (\n <Autocomplete.Popup\n {...rest}\n initialFocus={initialFocus}\n className={\n mergeStateClassName(\n clsx(sx(menuStyles.popup), menuClassNames.popup, editorSlashMenuClasses()),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuPopup.displayName = 'EditorSlashMenuPopup';\n\nexport type EditorSlashMenuItemProps = React.ComponentProps<typeof Autocomplete.Item> & {\n danger?: boolean;\n};\n\nexport const EditorSlashMenuItem = ({ className, danger, ...rest }: EditorSlashMenuItemProps) => {\n return (\n <Autocomplete.Item\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, danger && menuStyles.danger]),\n editorSlashMenuClasses('item'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuItem.displayName = 'EditorSlashMenuItem';\n\nexport type EditorSlashMenuGroupProps = React.ComponentProps<typeof Autocomplete.Group>;\nexport const EditorSlashMenuGroup = ({ className, ...rest }: EditorSlashMenuGroupProps) => (\n <Autocomplete.Group\n {...rest}\n className={mergeStateClassName(editorSlashMenuClasses('group'), className as any) as any}\n />\n);\nEditorSlashMenuGroup.displayName = 'EditorSlashMenuGroup';\n\nexport type EditorSlashMenuGroupLabelProps = React.ComponentProps<typeof Autocomplete.GroupLabel>;\n\nexport const EditorSlashMenuGroupLabel = ({\n className,\n ...rest\n}: EditorSlashMenuGroupLabelProps) => {\n return (\n <Autocomplete.GroupLabel\n {...rest}\n className={(state) =>\n clsx(\n sx(menuStyles.groupLabel),\n editorSlashMenuClasses('group-label'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuGroupLabel.displayName = 'EditorSlashMenuGroupLabel';\n\nexport type EditorSlashMenuEmptyProps = React.ComponentProps<typeof Autocomplete.Empty>;\n\nexport const EditorSlashMenuEmpty = ({ className, ...rest }: EditorSlashMenuEmptyProps) => {\n return (\n <Autocomplete.Empty\n {...rest}\n className={(state) =>\n clsx(\n sx([menuStyles.item, menuStyles.empty]),\n editorSlashMenuClasses('empty'),\n typeof className === 'function' ? className(state) : className,\n )\n }\n />\n );\n};\nEditorSlashMenuEmpty.displayName = 'EditorSlashMenuEmpty';\n\nexport type EditorSlashMenuItemContentProps = React.HTMLAttributes<HTMLDivElement>;\nexport const EditorSlashMenuItemContent = ({\n className,\n ...rest\n}: EditorSlashMenuItemContentProps) => {\n return (\n <div\n {...rest}\n className={clsx(\n sx(menuStyles.itemContent),\n editorSlashMenuClasses('item-content'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemContent.displayName = 'EditorSlashMenuItemContent';\n\nexport type EditorSlashMenuItemIconProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemIcon = ({ className, ...rest }: EditorSlashMenuItemIconProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.icon),\n menuClassNames.icon,\n editorSlashMenuClasses('icon'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemIcon.displayName = 'EditorSlashMenuItemIcon';\n\nexport type EditorSlashMenuItemLabelProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemLabel = ({ className, ...rest }: EditorSlashMenuItemLabelProps) => {\n return (\n <span\n {...rest}\n className={clsx(\n sx(menuStyles.label),\n menuClassNames.label,\n editorSlashMenuClasses('label'),\n className,\n )}\n />\n );\n};\nEditorSlashMenuItemLabel.displayName = 'EditorSlashMenuItemLabel';\n\nexport type EditorSlashMenuItemExtraProps = React.HTMLAttributes<HTMLSpanElement>;\nexport const EditorSlashMenuItemExtra = ({ className, ...rest }: EditorSlashMenuItemExtraProps) => {\n return (\n <span\n {...rest}\n className={clsx(sx(menuStyles.extra), editorSlashMenuClasses('extra'), className)}\n />\n );\n};\nEditorSlashMenuItemExtra.displayName = 'EditorSlashMenuItemExtra';\n\nexport type EditorSlashMenuHiddenInputProps = React.ComponentProps<typeof Autocomplete.Input>;\nexport const EditorSlashMenuHiddenInput = ({\n className,\n ...rest\n}: EditorSlashMenuHiddenInputProps) => {\n return (\n <Autocomplete.Input\n {...rest}\n className={\n mergeStateClassName(\n clsx(sx(styles.hiddenInput), editorSlashMenuClasses('input')),\n className as any,\n ) as any\n }\n />\n );\n};\nEditorSlashMenuHiddenInput.displayName = 'EditorSlashMenuHiddenInput';\n"],"mappings":";;;;;;;;;;;AAWA,MAAM,uBAAgC,MAAc,cAA4E;CAC9H,IAAI,OAAO,cAAc,YAAY,QAAQ,UAAkBA,OAAK,MAAM,UAAU,KAAK,CAAC;CAC1F,OAAOA,OAAK,MAAM,SAAS;AAC7B;AACA,MAAM,MAAM,WAA6C,OAAO,MAAM,MAAM,CAAC,CAAC,aAAa;AAC3F,MAAa,sBAAsB,aAAa;AAChD,MAAa,uBAAuB,EAClC,KACA,WACA,GAAG,WAGC;CACJ,OAAO,oBAAC,aAAa,MAAd;EAAmB,GAAI;EAAW;EAAK,WAAW,oBAAoBA,OAAK,GAAG,OAAO,IAAI,GAAG,uBAAuB,MAAM,CAAC,GAAG,SAAgB;CAAW,CAAA;AACjK;AACA,oBAAoB,cAAc;AAOlC,MAAa,yBAAyB,EACpC,WACA,GAAG,WAC6B;CAChC,MAAM,aAAa,cAAc;CACjC,OAAO,oBAAC,aAAa,QAAd;EAAqB,WAAW,aAAa,cAAc,KAAA;EAAW,GAAI;CAAO,CAAA;AAC1F;AACA,sBAAsB,cAAc;AAEpC,MAAa,6BAA6B,EACxC,WACA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 -29,5 +29,4 @@ export type EditorSlashMenuOnSelect = (item: EditorSlashMenuOption, details: Aut
|
|
|
29
29
|
export type EditorSlashMenuValueToString = (item: EditorSlashMenuOption) => string;
|
|
30
30
|
export type EditorSlashMenuRenderItem = (item: EditorSlashMenuOption) => React.ReactNode;
|
|
31
31
|
export type EditorSlashMenuRenderGroupLabel = (label: string) => React.ReactNode;
|
|
32
|
-
export type EditorSlashMenuPlacement = 'top' | 'bottom';
|
|
33
|
-
//# sourceMappingURL=type.d.mts.map
|
|
32
|
+
export type EditorSlashMenuPlacement = 'top' | 'bottom';
|
package/es/Empty/Empty.d.mts
CHANGED
package/es/Empty/type.d.mts
CHANGED
package/es/Flex/Center.d.mts
CHANGED