@lobehub/ui 6.16.2 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/A/index.d.mts +1 -1
- package/es/A/index.mjs +2 -2
- package/es/Accordion/Accordion.d.mts +1 -1
- package/es/Accordion/Accordion.mjs +1 -1
- package/es/Accordion/atoms.d.mts +1 -1
- package/es/Accordion/atoms.mjs +4 -4
- package/es/Accordion/style.mjs +1 -1
- package/es/Accordion/type.d.mts +1 -1
- package/es/ActionIcon/ActionIcon.d.mts +1 -1
- package/es/ActionIcon/ActionIcon.mjs +2 -2
- package/es/ActionIcon/type.d.mts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.d.mts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.mjs +3 -3
- package/es/ActionIconGroup/type.d.mts +1 -1
- package/es/AgentAvatar/AgentAvatar.mjs +2 -2
- package/es/AgentAvatar/utils.mjs +3 -3
- package/es/Alert/Alert.mjs +3 -3
- package/es/Alert/type.d.mts +1 -1
- package/es/Anchor/Anchor.mjs +2 -2
- package/es/AutoComplete/AutoComplete.mjs +4 -4
- package/es/AutoComplete/style.d.mts +1 -1
- package/es/AutoComplete/style.mjs +2 -2
- package/es/AutoComplete/type.d.mts +2 -2
- package/es/Avatar/Avatar.mjs +7 -6
- package/es/Avatar/Avatar.mjs.map +1 -1
- package/es/Avatar/AvatarGroup/index.mjs +40 -8
- package/es/Avatar/AvatarGroup/index.mjs.map +1 -1
- package/es/Avatar/AvatarGroup/style.mjs +15 -0
- package/es/Avatar/AvatarGroup/style.mjs.map +1 -1
- package/es/Avatar/index.d.mts +1 -1
- package/es/Avatar/stable.mjs +6 -1
- package/es/Avatar/stable.mjs.map +1 -1
- package/es/Avatar/type.d.mts +17 -1
- package/es/Badge/Badge.mjs +2 -2
- package/es/Block/Block.d.mts +1 -1
- package/es/Block/Block.mjs +1 -1
- package/es/Block/type.d.mts +1 -1
- package/es/Breadcrumb/Breadcrumb.mjs +3 -3
- package/es/Burger/Burger.mjs +3 -3
- package/es/Burger/type.d.mts +1 -1
- package/es/Button/Button.d.mts +1 -1
- package/es/Button/Button.mjs +3 -3
- package/es/Button/SplitButton.d.mts +1 -1
- package/es/Button/SplitButton.mjs +3 -3
- package/es/Button/type.d.mts +1 -1
- package/es/Carousel/Carousel.mjs +3 -3
- package/es/Checkbox/Checkbox.mjs +5 -5
- package/es/Checkbox/CheckboxGroup.mjs +3 -3
- package/es/Checkbox/type.d.mts +3 -3
- package/es/CodeDiff/CodeDiff.mjs +2 -2
- package/es/CodeDiff/DiffPanel.mjs +3 -3
- package/es/CodeDiff/PatchDiff.mjs +2 -2
- package/es/CodeDiff/theme.mjs +1 -1
- package/es/CodeDiff/type.d.mts +2 -2
- package/es/CodeEditor/CodeEditor.mjs +2 -2
- package/es/CodeEditor/type.d.mts +1 -1
- package/es/Collapsible/Collapsible.mjs +2 -2
- package/es/ColorPicker/ColorInputs.mjs +3 -3
- package/es/ColorPicker/ColorPanel.mjs +2 -2
- package/es/ColorPicker/ColorPicker.mjs +1 -1
- package/es/ColorPicker/SaturationArea.mjs +2 -2
- package/es/ColorPicker/Swatch.mjs +1 -1
- package/es/ColorPicker/Swatches.mjs +2 -2
- package/es/ColorPicker/Trigger.mjs +3 -3
- package/es/ColorPicker/type.d.mts +1 -1
- package/es/ColorSwatches/ColorSwatches.d.mts +1 -1
- package/es/ColorSwatches/ColorSwatches.mjs +4 -4
- package/es/ColorSwatches/CustomPicker.mjs +2 -2
- package/es/ColorSwatches/type.d.mts +1 -1
- package/es/ConfigProvider/index.d.mts +1 -1
- package/es/ConfigProvider/index.mjs +1 -1
- package/es/ContextMenu/ContextMenuHost.mjs +4 -4
- package/es/ContextMenu/ContextMenuTrigger.d.mts +1 -1
- package/es/ContextMenu/ContextMenuTrigger.mjs +3 -3
- package/es/ContextMenu/renderItems.d.mts +1 -1
- package/es/ContextMenu/renderItems.mjs +5 -5
- package/es/ContextMenu/store.d.mts +1 -1
- package/es/CopyButton/CopyButton.mjs +3 -3
- package/es/DatePicker/PurePanel.mjs +1 -1
- package/es/DatePicker/RangePicker.mjs +2 -2
- package/es/DatePicker/SinglePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Popup/Footer.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Popup/index.mjs +2 -2
- package/es/DatePicker/core/PickerInput/RangePicker.d.mts +1 -1
- package/es/DatePicker/core/PickerInput/RangePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/Icon.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/Input.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/hooks/useClearIcon.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/SinglePicker.d.mts +1 -1
- package/es/DatePicker/core/PickerInput/SinglePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useDelayState.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs +2 -3
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/DatePanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/DateTimePanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/DecadePanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/MonthPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/PanelBody.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/PanelHeader.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/QuarterPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs +3 -3
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/WeekPanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/YearPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPopup.mjs +4 -4
- package/es/DatePicker/core/hooks/useTimeInfo.mjs +1 -1
- package/es/DatePicker/dateGenerateConfig.mjs +1 -1
- package/es/DatePicker/legacyDate.mjs +1 -1
- package/es/DatePicker/locale.mjs +2 -2
- package/es/DatePicker/type.d.mts +2 -2
- package/es/DatePicker/usePanelKeyboard.mjs +1 -1
- package/es/DatePicker/usePickerShared.mjs +3 -3
- package/es/DatePicker/usePresetActive.mjs +1 -1
- package/es/Descriptions/Descriptions.mjs +2 -2
- package/es/Divider/Divider.mjs +3 -3
- package/es/DownloadButton/DownloadButton.d.mts +1 -1
- package/es/DownloadButton/DownloadButton.mjs +3 -3
- package/es/DraggablePanel/DraggablePanel.mjs +1 -1
- package/es/DraggablePanel/atoms.d.mts +1 -1
- package/es/DraggablePanel/atoms.mjs +5 -5
- package/es/DraggablePanel/core/controller.d.mts +1 -1
- package/es/DraggablePanel/core/controller.mjs +1 -1
- package/es/DraggablePanel/type.d.mts +1 -1
- package/es/DraggableSideNav/DraggableSideNav.mjs +5 -5
- package/es/DraggableSideNav/type.d.mts +2 -2
- package/es/Drawer/Drawer.mjs +3 -3
- package/es/Drawer/atoms.d.mts +2 -2
- package/es/Drawer/atoms.mjs +7 -7
- package/es/Drawer/constants.d.mts +1 -1
- package/es/DropdownMenu/DropdownMenu.mjs +2 -2
- package/es/DropdownMenu/atoms.d.mts +2 -2
- package/es/DropdownMenu/atoms.mjs +5 -5
- package/es/DropdownMenu/renderItems.d.mts +1 -1
- package/es/DropdownMenu/renderItems.mjs +1 -1
- package/es/DropdownMenu/type.d.mts +2 -2
- package/es/EditableText/ControlInput.mjs +2 -2
- package/es/EditableText/EditableText.mjs +3 -3
- package/es/EditableText/type.d.mts +1 -1
- package/es/EditorSlashMenu/EditorSlashMenu.d.mts +2 -2
- package/es/EditorSlashMenu/EditorSlashMenu.mjs +1 -1
- package/es/EditorSlashMenu/MenuItemRenderer.mjs +1 -1
- package/es/EditorSlashMenu/atoms.d.mts +1 -1
- package/es/EditorSlashMenu/atoms.mjs +3 -3
- package/es/EditorSlashMenu/type.d.mts +1 -1
- package/es/EditorSlashMenu/useKeyboardNavigation.mjs +1 -1
- package/es/EditorSlashMenu/useNormalizedItems.mjs +1 -1
- package/es/EmojiPicker/AvatarUploader.mjs +3 -3
- package/es/EmojiPicker/EmojiPicker.mjs +7 -7
- package/es/EmojiPicker/type.d.mts +1 -1
- package/es/Empty/Empty.mjs +4 -4
- package/es/Empty/type.d.mts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.d.mts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.mjs +2 -2
- package/es/FileTypeIcon/type.d.mts +1 -1
- package/es/Flex/Center.d.mts +1 -1
- package/es/Flex/Center.mjs +1 -1
- package/es/Flex/FlexBasic.mjs +1 -1
- package/es/FloatingPanel/FloatingPanel.mjs +3 -3
- package/es/FloatingPanel/ToastDodge.mjs +1 -1
- package/es/FloatingPanel/type.d.mts +2 -2
- package/es/FloatingSheet/FloatingSheet.mjs +2 -2
- package/es/FloatingSheet/useSnapPoints.mjs +1 -1
- package/es/FluentEmoji/FluentEmoji.d.mts +1 -1
- package/es/FluentEmoji/FluentEmoji.mjs +2 -2
- package/es/FluentEmoji/type.d.mts +1 -1
- package/es/FocusScope/FocusScope.mjs +1 -1
- package/es/FocusScope/useScopeArrowNav.mjs +1 -1
- package/es/FocusScope/useScopeSwitcher.mjs +1 -1
- package/es/Form/Form.mjs +4 -4
- package/es/Form/components/FormDivider.d.mts +1 -1
- package/es/Form/components/FormDivider.mjs +1 -1
- package/es/Form/components/FormField.mjs +3 -3
- package/es/Form/components/FormFlatGroup.mjs +2 -2
- package/es/Form/components/FormFooter.d.mts +1 -1
- package/es/Form/components/FormFooter.mjs +1 -1
- package/es/Form/components/FormGroup.mjs +5 -5
- package/es/Form/components/FormSubmitFooter.mjs +4 -4
- package/es/Form/components/FormTitle.d.mts +1 -1
- package/es/Form/components/FormTitle.mjs +1 -1
- package/es/Form/stableContext.mjs +1 -1
- package/es/Form/type.d.mts +3 -3
- package/es/FormKit/Field.d.mts +1 -1
- package/es/FormKit/Field.mjs +2 -2
- package/es/FormKit/Form.mjs +2 -2
- package/es/FormKit/List.d.mts +1 -1
- package/es/FormKit/List.mjs +4 -4
- package/es/FormKit/SubmitFooter.mjs +1 -1
- package/es/FormKit/engine/tanstack.mjs +1 -1
- package/es/FormKit/type.d.mts +1 -1
- package/es/FormKit/useForm.mjs +1 -1
- package/es/Grid/Grid.d.mts +1 -1
- package/es/Grid/Grid.mjs +3 -3
- package/es/Grid/type.d.mts +1 -1
- package/es/GroupAvatar/GroupAvatar.d.mts +1 -1
- package/es/GroupAvatar/GroupAvatar.mjs +2 -2
- package/es/GroupAvatar/type.d.mts +1 -1
- package/es/GuideCard/GuideCard.mjs +3 -3
- package/es/GuideCard/type.d.mts +1 -1
- package/es/Header/Header.mjs +2 -2
- package/es/Header/type.d.mts +1 -1
- package/es/Highlighter/FullFeatured.mjs +3 -3
- package/es/Highlighter/Highlighter.mjs +2 -2
- package/es/Highlighter/LangSelect.mjs +3 -3
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +1 -1
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +2 -2
- package/es/Highlighter/SyntaxHighlighter/index.mjs +3 -3
- package/es/Highlighter/engine.mjs +1 -1
- package/es/Highlighter/style.mjs +1 -1
- package/es/Highlighter/type.d.mts +1 -1
- package/es/Hotkey/Hotkey.mjs +3 -3
- package/es/Hotkey/type.d.mts +1 -1
- package/es/HotkeyInput/HotkeyInput.mjs +5 -5
- package/es/HtmlPreview/HtmlPreview.mjs +4 -4
- package/es/HtmlPreview/Iframe.mjs +2 -2
- package/es/HtmlPreview/type.d.mts +1 -1
- package/es/Icon/Icon.mjs +2 -2
- package/es/Icon/components/IconProvider.d.mts +1 -1
- package/es/Icon/type.d.mts +2 -2
- package/es/Image/Image.mjs +2 -2
- package/es/Image/index.d.mts +1 -1
- package/es/Image/type.d.mts +1 -1
- package/es/Image/useImagePreview.d.mts +1 -1
- package/es/Image/useImagePreview.mjs +1 -1
- package/es/Image/viewer/ActualSizeIcon.mjs +2 -2
- package/es/Image/viewer/GalleryNav.mjs +2 -2
- package/es/Image/viewer/ImageViewer.mjs +2 -2
- package/es/Image/viewer/Toolbar.mjs +3 -3
- package/es/Image/viewer/ViewerChrome.mjs +3 -3
- package/es/Image/viewer/registry.d.mts +2 -2
- package/es/Image/viewer/useFlipTransition.mjs +1 -1
- package/es/Image/viewer/useGalleryNav.mjs +1 -1
- package/es/Image/viewer/useRefitTransition.mjs +2 -2
- package/es/Image/viewer/useZoomPan.mjs +2 -2
- package/es/ImageSelect/ImageSelect.mjs +2 -2
- package/es/ImageSelect/type.d.mts +1 -1
- package/es/Img/index.mjs +2 -2
- package/es/Input/ClearButton.mjs +3 -3
- package/es/Input/Input.mjs +3 -3
- package/es/Input/InputNumber.mjs +5 -5
- package/es/Input/InputOTP.mjs +3 -3
- package/es/Input/InputPassword.mjs +3 -3
- package/es/Input/TextArea.mjs +3 -3
- package/es/Input/style.d.mts +1 -1
- package/es/Input/style.mjs +1 -1
- package/es/Input/type.d.mts +1 -1
- package/es/Layout/Layout.mjs +2 -2
- package/es/Layout/components/LayoutFooter.mjs +2 -2
- package/es/Layout/components/LayoutHeader.mjs +2 -2
- package/es/Layout/components/LayoutMain.mjs +2 -2
- package/es/Layout/components/LayoutSidebar.mjs +2 -2
- package/es/Layout/components/LayoutSidebarInner.mjs +2 -2
- package/es/Layout/components/LayoutToc.mjs +1 -1
- package/es/Layout/index.d.mts +1 -1
- package/es/Layout/type.d.mts +1 -1
- package/es/List/List.d.mts +1 -1
- package/es/List/List.mjs +2 -2
- package/es/List/ListRow.d.mts +2 -2
- package/es/List/ListRow.mjs +2 -2
- package/es/List/type.d.mts +1 -1
- package/es/Markdown/Markdown.mjs +2 -2
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs +4 -4
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +2 -2
- package/es/Markdown/SyntaxMarkdown/parseCache.mjs +2 -2
- package/es/Markdown/Typography.mjs +2 -2
- package/es/Markdown/components/CodeBlock.mjs +1 -1
- package/es/Markdown/components/Footnotes.mjs +1 -1
- package/es/Markdown/components/MarkdownProvider.mjs +1 -1
- package/es/Markdown/components/MarkdownTable/index.mjs +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +2 -2
- package/es/Markdown/components/SearchResultCards/index.d.mts +1 -1
- package/es/Markdown/components/SearchResultCards/index.mjs +2 -2
- package/es/Markdown/plugins/remarkCjkAutolink.mjs +1 -1
- package/es/Markdown/type.d.mts +4 -4
- package/es/MaskShadow/MaskShadow.mjs +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.mts +1 -1
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.mjs +2 -2
- package/es/Mermaid/FullFeatured.mjs +3 -3
- package/es/Mermaid/Mermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/MermaidFallback.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/MermaidSvg.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/index.mjs +2 -2
- package/es/Mermaid/type.d.mts +1 -1
- package/es/Meta/Meta.mjs +1 -1
- package/es/Modal/Modal.d.mts +1 -1
- package/es/Modal/Modal.mjs +3 -3
- package/es/Modal/atoms.d.mts +2 -2
- package/es/Modal/atoms.mjs +7 -7
- package/es/Modal/imperative.mjs +2 -2
- package/es/Modal/type.d.mts +1 -1
- package/es/MotionProvider/index.d.mts +1 -1
- package/es/Pagination/Pagination.mjs +4 -4
- package/es/Pagination/type.d.mts +1 -1
- package/es/Popover/ArrowIcon.mjs +1 -1
- package/es/Popover/Popover.d.mts +1 -1
- package/es/Popover/Popover.mjs +1 -1
- package/es/Popover/PopoverGroup.d.mts +1 -1
- package/es/Popover/PopoverGroup.mjs +2 -2
- package/es/Popover/PopoverInGroup.mjs +4 -4
- package/es/Popover/PopoverStandalone.mjs +2 -2
- package/es/Popover/atoms.d.mts +3 -3
- package/es/Popover/atoms.mjs +5 -5
- package/es/Popover/groupContext.d.mts +1 -1
- package/es/Popover/type.d.mts +2 -2
- package/es/Popover/useMergedPopoverProps.mjs +1 -1
- package/es/ProTable/ProTable.mjs +2 -2
- package/es/ProTable/hooks/useColumnsState.mjs +1 -1
- package/es/ProTable/hooks/useDensity.mjs +1 -1
- package/es/ProTable/hooks/useFullscreen.mjs +1 -1
- package/es/ProTable/hooks/usePageInfo.mjs +1 -1
- package/es/ProTable/hooks/useProColumns.mjs +2 -2
- package/es/ProTable/hooks/useProLocale.mjs +1 -1
- package/es/ProTable/hooks/useProRequest.mjs +1 -1
- package/es/ProTable/hooks/useSearchForm.mjs +1 -1
- package/es/ProTable/hooks/useTableBindings.mjs +1 -1
- package/es/ProTable/locale.d.mts +1 -1
- package/es/ProTable/parts/ColumnSetting.mjs +1 -1
- package/es/ProTable/parts/FieldControl.mjs +1 -1
- package/es/ProTable/parts/SearchForm.mjs +2 -2
- package/es/ProTable/parts/TableAlert.mjs +1 -1
- package/es/ProTable/parts/Toolbar.mjs +2 -2
- package/es/ProTable/parts/ToolbarOptions.mjs +2 -2
- package/es/ProTable/parts/renderValue.mjs +2 -2
- package/es/ProTable/style.mjs +2 -2
- package/es/ProTable/type.d.mts +1 -1
- package/es/Progress/Progress.mjs +4 -4
- package/es/ProgressiveBlur/ProgressiveBlur.mjs +2 -2
- package/es/QRCode/QRCode.mjs +4 -4
- package/es/Radio/Radio.mjs +3 -3
- package/es/Radio/RadioGroup.mjs +3 -3
- package/es/Radio/type.d.mts +3 -3
- package/es/Rate/Rate.mjs +4 -4
- package/es/Result/Result.mjs +3 -3
- package/es/ScrollArea/ScrollArea.d.mts +1 -1
- package/es/ScrollArea/atoms.d.mts +2 -2
- package/es/ScrollArea/atoms.mjs +2 -2
- package/es/ScrollArea/type.d.mts +1 -1
- package/es/ScrollShadow/ScrollShadow.d.mts +1 -1
- package/es/ScrollShadow/ScrollShadow.mjs +2 -2
- package/es/ScrollShadow/type.d.mts +1 -1
- package/es/SearchBar/SearchBar.mjs +4 -4
- package/es/SearchBar/type.d.mts +1 -1
- package/es/Segmented/Segmented.mjs +2 -2
- package/es/Segmented/atoms.d.mts +2 -2
- package/es/Segmented/atoms.mjs +3 -3
- package/es/Segmented/type.d.mts +1 -1
- package/es/Select/Select.mjs +3 -3
- package/es/Select/atoms.d.mts +2 -2
- package/es/Select/atoms.mjs +5 -5
- package/es/Select/hooks.mjs +1 -1
- package/es/Select/parts.mjs +5 -5
- package/es/Select/renderOptions.mjs +3 -3
- package/es/Select/type.d.mts +2 -2
- package/es/SideNav/SideNav.mjs +2 -2
- package/es/SideNav/type.d.mts +1 -1
- package/es/Skeleton/Skeleton.mjs +1 -1
- package/es/Skeleton/SkeletonAvatar.d.mts +1 -1
- package/es/Skeleton/SkeletonAvatar.mjs +1 -1
- package/es/Skeleton/SkeletonText.d.mts +1 -1
- package/es/Skeleton/SkeletonText.mjs +1 -1
- package/es/Skeleton/index.d.mts +1 -1
- package/es/Slider/Slider.mjs +3 -3
- package/es/Slider/SliderWithInput.mjs +4 -4
- package/es/Slider/type.d.mts +2 -2
- package/es/Snippet/Snippet.d.mts +1 -1
- package/es/Snippet/Snippet.mjs +1 -1
- package/es/Snippet/type.d.mts +1 -1
- package/es/SortableList/SortableList.d.mts +1 -1
- package/es/SortableList/SortableList.mjs +5 -5
- package/es/SortableList/components/DragHandle.mjs +3 -3
- package/es/SortableList/components/SortableItem.d.mts +1 -1
- package/es/SortableList/components/SortableItem.mjs +4 -4
- package/es/SortableList/components/SortableOverlay.mjs +1 -1
- package/es/SortableList/type.d.mts +1 -1
- package/es/Spin/NetworkGlyph.mjs +2 -2
- package/es/Spin/Spin.mjs +4 -4
- package/es/Statistic/Statistic.mjs +2 -2
- package/es/Steps/Steps.mjs +3 -3
- package/es/Switch/Switch.mjs +4 -4
- package/es/Switch/atoms.d.mts +1 -1
- package/es/Switch/atoms.mjs +4 -4
- package/es/Switch/type.d.mts +1 -1
- package/es/Table/Column.d.mts +1 -1
- package/es/Table/ColumnGroup.d.mts +1 -1
- package/es/Table/Table.d.mts +1 -1
- package/es/Table/Table.mjs +4 -4
- package/es/Table/atoms/cells.d.mts +1 -1
- package/es/Table/atoms/cells.mjs +1 -1
- package/es/Table/atoms/layout.d.mts +1 -1
- package/es/Table/atoms/layout.mjs +2 -2
- package/es/Table/engine/useTableEngine.mjs +2 -2
- package/es/Table/internal.d.mts +2 -2
- package/es/Table/pipeline/selectionUtils.d.mts +1 -1
- package/es/Table/pipeline/useExpandable.mjs +1 -1
- package/es/Table/pipeline/useFilter.mjs +1 -1
- package/es/Table/pipeline/useSelection.mjs +1 -1
- package/es/Table/pipeline/useSorter.mjs +1 -1
- package/es/Table/pipeline/useTableLocale.mjs +1 -1
- package/es/Table/pipeline/useTableState.mjs +1 -1
- package/es/Table/pipeline/useVirtualLayout.mjs +1 -1
- package/es/Table/render/Body.mjs +2 -2
- package/es/Table/render/BodyCell.mjs +1 -1
- package/es/Table/render/CellShell.mjs +2 -2
- package/es/Table/render/ExpandIcon.mjs +2 -2
- package/es/Table/render/FilterDropdown.mjs +3 -3
- package/es/Table/render/FilterPanel.mjs +4 -4
- package/es/Table/render/FixedFrost.mjs +3 -3
- package/es/Table/render/FixedHolder.mjs +1 -1
- package/es/Table/render/Header.mjs +3 -3
- package/es/Table/render/LoadingSkeleton.mjs +2 -2
- package/es/Table/render/PaginationBar.mjs +2 -2
- package/es/Table/render/SelectionCells.mjs +4 -4
- package/es/Table/render/Summary.d.mts +1 -1
- package/es/Table/render/Summary.mjs +1 -1
- package/es/Table/render/TableView.mjs +2 -2
- package/es/Table/render/VirtualBody.mjs +1 -1
- package/es/Table/render/filterUtils.mjs +1 -1
- package/es/Table/render/useScrollSync.mjs +1 -1
- package/es/Table/render/useViewContexts.mjs +1 -1
- package/es/Table/semantic.mjs +1 -1
- package/es/Table/store/hooks.mjs +1 -1
- package/es/Table/type.d.mts +1 -1
- package/es/Table/useTableController.mjs +1 -1
- package/es/Tabs/Tabs.d.mts +1 -1
- package/es/Tabs/Tabs.mjs +2 -2
- package/es/Tabs/atoms.d.mts +1 -1
- package/es/Tabs/atoms.mjs +3 -3
- package/es/Tabs/style.d.mts +1 -1
- package/es/Tabs/style.mjs +1 -1
- package/es/Tabs/type.d.mts +1 -1
- package/es/Tag/Tag.mjs +3 -3
- package/es/Tag/utils.mjs +1 -1
- package/es/Text/Text.d.mts +1 -1
- package/es/Text/Text.mjs +2 -2
- package/es/Text/style.mjs +1 -1
- package/es/Text/type.d.mts +1 -1
- package/es/Toast/Toast.mjs +4 -4
- package/es/Toast/imperative.mjs +3 -3
- package/es/Toast/type.d.mts +2 -2
- package/es/Toc/Toc.mjs +2 -2
- package/es/Toc/toFlatTocItems.d.mts +1 -1
- package/es/Toc/type.d.mts +1 -1
- package/es/ToggleGroup/ToggleGroup.mjs +2 -2
- package/es/ToggleGroup/atoms.d.mts +3 -3
- package/es/ToggleGroup/atoms.mjs +3 -3
- package/es/Tooltip/ArrowIcon.mjs +1 -1
- package/es/Tooltip/Tooltip.d.mts +1 -1
- package/es/Tooltip/Tooltip.mjs +1 -1
- package/es/Tooltip/TooltipContent.mjs +1 -1
- package/es/Tooltip/TooltipGroup.d.mts +1 -1
- package/es/Tooltip/TooltipGroup.mjs +3 -3
- package/es/Tooltip/TooltipInGroup.mjs +4 -4
- package/es/Tooltip/TooltipStandalone.mjs +4 -4
- package/es/Tooltip/type.d.mts +2 -2
- package/es/Tooltip/useMergedTooltipProps.mjs +1 -1
- package/es/Tree/Tree.mjs +2 -2
- package/es/Tree/TreeNode.mjs +5 -5
- package/es/Tree/type.d.mts +1 -1
- package/es/Upload/Upload.mjs +3 -3
- package/es/Upload/UploadDragger.mjs +2 -2
- package/es/Video/Video.mjs +1 -1
- package/es/Video/index.d.mts +1 -1
- package/es/Video/parts/Caption.mjs +2 -2
- package/es/Video/parts/CenterPlay.mjs +1 -1
- package/es/Video/parts/Controls.mjs +3 -3
- package/es/Video/parts/Frame.mjs +2 -2
- package/es/Video/parts/HoverPreview.mjs +30 -6
- package/es/Video/parts/HoverPreview.mjs.map +1 -1
- package/es/Video/parts/LoadError.mjs +1 -1
- package/es/Video/parts/RateMenu.mjs +2 -2
- package/es/Video/parts/Root.mjs +2 -2
- package/es/Video/parts/SectionList.mjs +1 -1
- package/es/Video/parts/SectionMenu.mjs +2 -2
- package/es/Video/parts/Timeline.mjs +4 -2
- package/es/Video/parts/Timeline.mjs.map +1 -1
- package/es/Video/sizing.mjs +12 -1
- package/es/Video/sizing.mjs.map +1 -1
- package/es/Video/style.mjs +0 -2
- package/es/Video/style.mjs.map +1 -1
- package/es/Video/useVideo.mjs +1 -1
- package/es/awesome/AgentSkillCard/AgentSkillCard.mjs +3 -3
- package/es/awesome/AgentSkillCard/type.d.mts +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.mjs +2 -2
- package/es/awesome/AuroraBackground/type.d.mts +1 -1
- package/es/awesome/BentoGrid/BentoCard.mjs +2 -2
- package/es/awesome/BentoGrid/BentoGrid.mjs +2 -2
- package/es/awesome/BentoGrid/type.d.mts +1 -1
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +2 -2
- package/es/awesome/CodeShowcase/CodeShowcase.mjs +2 -2
- package/es/awesome/CodeShowcase/type.d.mts +1 -1
- package/es/awesome/FeatureGrid/FeatureGrid.mjs +2 -2
- package/es/awesome/FeatureGrid/type.d.mts +1 -1
- package/es/awesome/Features/FeatureItem.mjs +2 -2
- package/es/awesome/Features/Features.mjs +2 -2
- package/es/awesome/Features/type.d.mts +1 -1
- package/es/awesome/FluidGradient/FluidGradient.mjs +2 -2
- package/es/awesome/Giscus/Giscus.mjs +3 -3
- package/es/awesome/Giscus/style.mjs +1 -1
- package/es/awesome/Giscus/type.d.mts +1 -1
- package/es/awesome/GradientButton/GradientButton.mjs +2 -2
- package/es/awesome/Grainient/Grainient.mjs +2 -2
- package/es/awesome/GridBackground/GridBackground.mjs +4 -4
- package/es/awesome/GridBackground/GridShowcase.mjs +2 -2
- package/es/awesome/GridBackground/components/Grid.mjs +2 -2
- package/es/awesome/Hero/Hero.mjs +2 -2
- package/es/awesome/InstallBanner/InstallBanner.mjs +2 -2
- package/es/awesome/InstallBanner/type.d.mts +1 -1
- package/es/awesome/LandingHero/LandingHero.mjs +2 -2
- package/es/awesome/LandingHero/type.d.mts +1 -1
- package/es/awesome/LandingSection/LandingSection.mjs +2 -2
- package/es/awesome/LandingSection/type.d.mts +1 -1
- package/es/awesome/LogoMarquee/LogoMarquee.mjs +2 -2
- package/es/awesome/LogoMarquee/type.d.mts +1 -1
- package/es/awesome/Spotlight/Spotlight.mjs +2 -2
- package/es/awesome/SpotlightCard/SpotlightCard.mjs +2 -2
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs +1 -1
- package/es/awesome/SpotlightCard/type.d.mts +1 -1
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +2 -2
- package/es/awesome/landingActions.d.mts +1 -1
- package/es/awesome/landingActions.mjs +2 -2
- package/es/brand/BrandLoading/index.d.mts +1 -1
- package/es/brand/BrandLoading/index.mjs +1 -1
- package/es/brand/LobeChat/index.d.mts +1 -1
- package/es/brand/LobeChat/index.mjs +2 -2
- package/es/brand/LobeChatText/index.d.mts +1 -1
- package/es/brand/LobeChatText/index.mjs +1 -1
- package/es/brand/LobeHub/index.d.mts +1 -1
- package/es/brand/LobeHub/index.mjs +2 -2
- package/es/brand/LobeHubText/index.d.mts +1 -1
- package/es/brand/LobeHubText/index.mjs +1 -1
- package/es/brand/Logo3d/index.d.mts +1 -1
- package/es/brand/Logo3d/index.mjs +1 -1
- package/es/chat/BackBottom/BackBottom.mjs +3 -3
- package/es/chat/BackBottom/type.d.mts +1 -1
- package/es/chat/ChatHeader/ChatHeader.mjs +3 -3
- package/es/chat/ChatHeader/ChatHeaderTitle.d.mts +1 -1
- package/es/chat/ChatHeader/index.d.mts +1 -1
- package/es/chat/ChatHeader/type.d.mts +1 -1
- package/es/chat/ChatInputArea/ChatInputArea.mjs +2 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.mts +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +1 -1
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.d.mts +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs +2 -2
- package/es/chat/ChatInputArea/index.d.mts +1 -1
- package/es/chat/ChatInputArea/type.d.mts +1 -1
- package/es/chat/ChatItem/ChatItem.mjs +2 -2
- package/es/chat/ChatItem/components/Actions.mjs +1 -1
- package/es/chat/ChatItem/components/Avatar.mjs +1 -1
- package/es/chat/ChatItem/components/Loading.mjs +1 -1
- package/es/chat/ChatItem/components/MessageContent.mjs +2 -2
- package/es/chat/ChatItem/type.d.mts +1 -1
- package/es/chat/ChatList/ChatList.mjs +2 -2
- package/es/chat/ChatList/components/ChatActionsBar.d.mts +1 -1
- package/es/chat/ChatList/components/ChatActionsBar.mjs +1 -1
- package/es/chat/ChatList/components/ChatListItem.mjs +1 -1
- package/es/chat/ChatList/components/HistoryDivider.mjs +1 -1
- package/es/chat/ChatList/components/useChatListActionsBar.mjs +1 -1
- package/es/chat/ChatList/type.d.mts +1 -1
- package/es/chat/EditableMessage/EditableMessage.mjs +2 -2
- package/es/chat/EditableMessage/type.d.mts +1 -1
- package/es/chat/EditableMessageList/EditableMessageList.mjs +4 -4
- package/es/chat/EditableMessageList/type.d.mts +1 -1
- package/es/chat/LoadingDots/LoadingDots.d.mts +1 -1
- package/es/chat/LoadingDots/LoadingDots.mjs +2 -2
- package/es/chat/MessageInput/MessageInput.mjs +3 -3
- package/es/chat/MessageInput/type.d.mts +1 -1
- package/es/chat/MessageModal/MessageModal.mjs +2 -2
- package/es/chat/MessageModal/type.d.mts +1 -1
- package/es/chat/TokenTag/TokenTag.d.mts +1 -1
- package/es/chat/TokenTag/TokenTag.mjs +2 -2
- package/es/color/ColorScales/ScaleRow.mjs +2 -2
- package/es/color/ColorScales/index.d.mts +1 -1
- package/es/color/ColorScales/index.mjs +3 -3
- package/es/color/CssVar/ScaleRow.mjs +2 -2
- package/es/color/CssVar/VarRow.mjs +2 -2
- package/es/color/CssVar/index.d.mts +1 -1
- package/es/color/CssVar/index.mjs +3 -3
- package/es/css/Avatar.css +16 -0
- package/es/css/EmojiPicker.css +8 -0
- package/es/css/GroupAvatar.css +16 -0
- package/es/css/Markdown.css +0 -4
- package/es/css/Video.css +0 -4
- package/es/css/chat/ChatItem.css +4 -4
- package/es/css/chat/ChatList.css +4 -4
- package/es/css/chat/EditableMessage.css +0 -4
- package/es/css/chat/MessageModal.css +0 -4
- package/es/css/mdx/Mdx.css +0 -4
- package/es/css/mdx/mdxComponents.css +0 -4
- package/es/dashboard/AuthLayout/Aside.mjs +1 -1
- package/es/dashboard/AuthLayout/AuthLayout.mjs +2 -2
- package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs +2 -2
- package/es/dashboard/AuthTools/AuthThemeSwitch.mjs +2 -2
- package/es/dashboard/Breadcrumb/Breadcrumb.mjs +1 -1
- package/es/dashboard/ChartGrid/ChartGrid.mjs +1 -1
- package/es/dashboard/ConsoleNav/ConsoleNav.mjs +4 -4
- package/es/dashboard/ConsoleNav/Skeleton.mjs +1 -1
- package/es/dashboard/ConsoleNav/type.d.mts +1 -1
- package/es/dashboard/ConsoleShell/ConsoleBrand.mjs +1 -1
- package/es/dashboard/ConsoleShell/ConsoleShell.mjs +3 -3
- package/es/dashboard/FilterSidebar/FilterSidebar.mjs +3 -3
- package/es/dashboard/FilterStrip/FilterStrip.mjs +2 -2
- package/es/dashboard/LabelWithKey/LabelWithKey.mjs +1 -1
- package/es/dashboard/LabelWithKey/type.d.mts +1 -1
- package/es/dashboard/MetricStrip/MetricCell.mjs +1 -1
- package/es/dashboard/MetricStrip/MetricStrip.mjs +2 -2
- package/es/dashboard/MetricStrip/type.d.mts +1 -1
- package/es/dashboard/PageHeader/PageHeader.mjs +1 -1
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs +1 -1
- package/es/dashboard/PageTabs/PageTabs.mjs +1 -1
- package/es/dashboard/PageToolbar/PageToolbar.mjs +1 -1
- package/es/dashboard/PanelSurface/PanelSurface.mjs +1 -1
- package/es/dashboard/PanelSurface/type.d.mts +1 -1
- package/es/dashboard/RouteProgress/RouteProgress.mjs +2 -2
- package/es/dashboard/Section/Section.mjs +2 -2
- package/es/dashboard/Section/type.d.mts +1 -1
- package/es/dashboard/StatCard/StatCard.mjs +1 -1
- package/es/dashboard/StatCard/type.d.mts +1 -1
- package/es/dashboard/Surface/Surface.mjs +2 -2
- package/es/dashboard/Surface/link.d.mts +2 -2
- package/es/dashboard/Surface/link.mjs +2 -2
- package/es/dashboard/TableIconActions/TableIconActions.mjs +1 -1
- package/es/dashboard/TableIconActions/type.d.mts +1 -1
- package/es/dashboard/TitleWithTips/TitleWithTips.mjs +2 -2
- package/es/hooks/useControlledState.mjs +1 -1
- package/es/hooks/useHighlight.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownContent.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.mjs +4 -4
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs +5 -5
- package/es/hooks/useMermaid.mjs +1 -1
- package/es/hooks/useStableValue.mjs +1 -1
- package/es/hooks/useStreamHighlight.mjs +1 -1
- package/es/hooks/useStreamMermaid.mjs +1 -1
- package/es/i18n/context.d.mts +1 -1
- package/es/i18n/context.mjs +1 -1
- package/es/i18n/useTranslation.mjs +1 -1
- package/es/icons/Auth0/components/Avatar.d.mts +1 -1
- package/es/icons/Auth0/components/Avatar.mjs +1 -1
- package/es/icons/Auth0/components/Mono.mjs +1 -1
- package/es/icons/Authelia/components/Avatar.d.mts +1 -1
- package/es/icons/Authelia/components/Avatar.mjs +1 -1
- package/es/icons/Authelia/components/Color.mjs +2 -2
- package/es/icons/Authelia/components/Mono.mjs +1 -1
- package/es/icons/Authentik/components/Avatar.d.mts +1 -1
- package/es/icons/Authentik/components/Avatar.mjs +1 -1
- package/es/icons/Authentik/components/Color.mjs +1 -1
- package/es/icons/Authentik/components/Mono.mjs +1 -1
- package/es/icons/Casdoor/components/Avatar.d.mts +1 -1
- package/es/icons/Casdoor/components/Avatar.mjs +1 -1
- package/es/icons/Casdoor/components/Color.mjs +2 -2
- package/es/icons/Casdoor/components/Mono.mjs +1 -1
- package/es/icons/Clerk/components/Avatar.d.mts +1 -1
- package/es/icons/Clerk/components/Avatar.mjs +1 -1
- package/es/icons/Clerk/components/Color.mjs +1 -1
- package/es/icons/Clerk/components/Mono.mjs +1 -1
- package/es/icons/DingTalk/components/Avatar.d.mts +1 -1
- package/es/icons/DingTalk/components/Avatar.mjs +1 -1
- package/es/icons/DingTalk/components/Color.mjs +1 -1
- package/es/icons/DingTalk/components/Mono.mjs +1 -1
- package/es/icons/Discord/components/Avatar.d.mts +1 -1
- package/es/icons/Discord/components/Avatar.mjs +1 -1
- package/es/icons/Discord/components/Color.mjs +1 -1
- package/es/icons/Discord/components/Mono.mjs +1 -1
- package/es/icons/GoogleChat/components/Avatar.d.mts +1 -1
- package/es/icons/GoogleChat/components/Avatar.mjs +1 -1
- package/es/icons/GoogleChat/components/Color.mjs +1 -1
- package/es/icons/GoogleChat/components/Mono.mjs +1 -1
- package/es/icons/IMessage/components/Avatar.d.mts +1 -1
- package/es/icons/IMessage/components/Avatar.mjs +1 -1
- package/es/icons/IMessage/components/Color.mjs +1 -1
- package/es/icons/IMessage/components/Inner.mjs +1 -1
- package/es/icons/IMessage/components/Mono.mjs +1 -1
- package/es/icons/Lark/components/Avatar.d.mts +1 -1
- package/es/icons/Lark/components/Avatar.mjs +1 -1
- package/es/icons/Lark/components/Color.mjs +1 -1
- package/es/icons/Lark/components/Mono.mjs +1 -1
- package/es/icons/Line/components/Avatar.d.mts +1 -1
- package/es/icons/Line/components/Avatar.mjs +1 -1
- package/es/icons/Line/components/Color.mjs +1 -1
- package/es/icons/Line/components/Mono.mjs +1 -1
- package/es/icons/Logto/components/Avatar.d.mts +1 -1
- package/es/icons/Logto/components/Avatar.mjs +1 -1
- package/es/icons/Logto/components/Color.mjs +2 -2
- package/es/icons/Logto/components/Mono.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Avatar.d.mts +1 -1
- package/es/icons/MicrosoftEntra/components/Avatar.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Color.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Mono.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Avatar.d.mts +1 -1
- package/es/icons/MicrosoftTeams/components/Avatar.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Color.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Mono.mjs +1 -1
- package/es/icons/NextAuth/components/Avatar.d.mts +1 -1
- package/es/icons/NextAuth/components/Avatar.mjs +1 -1
- package/es/icons/NextAuth/components/Color.mjs +2 -2
- package/es/icons/NextAuth/components/Mono.mjs +1 -1
- package/es/icons/QQ/components/Avatar.d.mts +1 -1
- package/es/icons/QQ/components/Avatar.mjs +1 -1
- package/es/icons/Slack/components/Avatar.d.mts +1 -1
- package/es/icons/Slack/components/Avatar.mjs +1 -1
- package/es/icons/Slack/components/Color.mjs +1 -1
- package/es/icons/Slack/components/Mono.mjs +1 -1
- package/es/icons/Telegram/components/Avatar.d.mts +1 -1
- package/es/icons/Telegram/components/Avatar.mjs +1 -1
- package/es/icons/Telegram/components/Color.mjs +1 -1
- package/es/icons/Telegram/components/Inner.mjs +1 -1
- package/es/icons/Telegram/components/Mono.mjs +1 -1
- package/es/icons/WeChat/components/Avatar.d.mts +1 -1
- package/es/icons/WeChat/components/Avatar.mjs +1 -1
- package/es/icons/WeChat/components/Color.mjs +1 -1
- package/es/icons/WeChat/components/Mono.mjs +1 -1
- package/es/icons/WeCom/components/Avatar.d.mts +1 -1
- package/es/icons/WeCom/components/Avatar.mjs +1 -1
- package/es/icons/WeCom/components/Color.mjs +1 -1
- package/es/icons/WeCom/components/Mono.mjs +1 -1
- package/es/icons/WhatsApp/components/Avatar.d.mts +1 -1
- package/es/icons/WhatsApp/components/Avatar.mjs +1 -1
- package/es/icons/WhatsApp/components/Color.mjs +1 -1
- package/es/icons/WhatsApp/components/Mono.mjs +1 -1
- package/es/icons/Zitadel/components/Avatar.d.mts +1 -1
- package/es/icons/Zitadel/components/Avatar.mjs +1 -1
- package/es/icons/Zitadel/components/Color.mjs +2 -2
- package/es/icons/Zitadel/components/Mono.mjs +1 -1
- package/es/internal/menu/baseItem.d.mts +2 -2
- package/es/internal/menu/checkboxItem.d.mts +1 -1
- package/es/internal/menu/renderUtils.d.mts +1 -1
- package/es/internal/menu/renderUtils.mjs +1 -1
- package/es/internal/menu/switchItem.d.mts +1 -1
- package/es/internal/menu/type.d.mts +1 -1
- package/es/internal/virtual/MenuVirtualList.d.mts +2 -2
- package/es/internal/virtual/VirtualScrollArea.d.mts +2 -2
- package/es/internal/virtual/VirtualScrollArea.mjs +2 -2
- package/es/internal/virtual/useMenuVirtualList.d.mts +2 -2
- package/es/internal/virtual/useMenuVirtualList.mjs +1 -1
- package/es/internal/zIndex/useLayerZIndex.mjs +1 -1
- package/es/mdx/Callout/index.d.mts +1 -1
- package/es/mdx/Callout/index.mjs +2 -2
- package/es/mdx/Cards/Card.d.mts +1 -1
- package/es/mdx/Cards/Card.mjs +1 -1
- package/es/mdx/Cards/index.d.mts +1 -1
- package/es/mdx/Cards/index.mjs +1 -1
- package/es/mdx/FileTree/File.d.mts +1 -1
- package/es/mdx/FileTree/File.mjs +2 -2
- package/es/mdx/FileTree/Folder.d.mts +1 -1
- package/es/mdx/FileTree/Folder.mjs +3 -3
- package/es/mdx/FileTree/index.d.mts +1 -1
- package/es/mdx/FileTree/index.mjs +1 -1
- package/es/mdx/Mdx/index.d.mts +1 -1
- package/es/mdx/Mdx/index.mjs +8 -8
- package/es/mdx/Steps/index.d.mts +1 -1
- package/es/mdx/Steps/index.mjs +1 -1
- package/es/mdx/Tabs/Tab.d.mts +1 -1
- package/es/mdx/Tabs/Tab.mjs +1 -1
- package/es/mdx/Tabs/index.d.mts +1 -1
- package/es/mdx/Tabs/index.mjs +2 -2
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +3 -3
- package/es/mdx/mdxComponents/Citation/index.mjs +1 -1
- package/es/mdx/mdxComponents/CodeBlock.d.mts +1 -1
- package/es/mdx/mdxComponents/Image.d.mts +1 -1
- package/es/mdx/mdxComponents/Image.mjs +1 -1
- package/es/mdx/mdxComponents/Link.d.mts +1 -1
- package/es/mdx/mdxComponents/Link.mjs +1 -1
- package/es/mdx/mdxComponents/Pre.d.mts +1 -1
- package/es/mdx/mdxComponents/Pre.mjs +1 -1
- package/es/mdx/mdxComponents/Video.d.mts +1 -1
- package/es/mdx/mdxComponents/Video.mjs +1 -1
- package/es/mobile/ChatHeader/ChatHeader.mjs +3 -3
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +1 -1
- package/es/mobile/ChatHeader/index.d.mts +1 -1
- package/es/mobile/ChatHeader/type.d.mts +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.mjs +3 -3
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs +3 -3
- package/es/mobile/ChatInputArea/index.d.mts +1 -1
- package/es/mobile/ChatInputArea/type.d.mts +1 -1
- package/es/mobile/SafeArea/SafeArea.d.mts +1 -1
- package/es/mobile/SafeArea/SafeArea.mjs +1 -1
- package/es/mobile/TabBar/TabBar.mjs +2 -2
- package/es/mobile/TabBar/type.d.mts +1 -1
- package/es/spline/LogoThree/Loading.mjs +1 -1
- package/es/spline/LogoThree/LogoSpline.d.mts +1 -1
- package/es/spline/LogoThree/LogoSpline.mjs +1 -1
- package/es/spline/LogoThree/index.d.mts +1 -1
- package/es/spline/LogoThree/index.mjs +1 -1
- package/es/spline/Spline/ParentSize.mjs +2 -2
- package/es/spline/Spline/Spine.mjs +1 -1
- package/es/spline/Spline/type.d.mts +1 -1
- package/es/storybook/StoryBook/index.d.mts +1 -1
- package/es/storybook/StoryBook/index.mjs +3 -3
- package/es/style.css +4 -4
- package/es/styles/createGlobalStyle.d.mts +1 -1
- package/es/styles/createGlobalStyle.mjs +1 -1
- package/es/styles/css.d.mts +1 -1
- package/es/styles/css.mjs +1 -1
- package/es/styles/stylex/props.d.mts +2 -2
- package/es/styles/stylex/props.mjs +1 -1
- package/es/styles/theme/customNeutral.mjs +1 -1
- package/es/styles/theme/customPrimary.mjs +1 -1
- package/es/styles/theme/customToken.mjs +1 -1
- package/es/styles/theme/scope.d.mts +1 -1
- package/es/styles/theme/scope.mjs +2 -2
- package/es/types/index.d.mts +1 -1
- package/es/utils/hashString.mjs +8 -8
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { Check, Copy } from "lucide-react";
|
|
4
|
+
import { memo } from "react";
|
|
2
5
|
import ActionIcon from "../ActionIcon/ActionIcon.mjs";
|
|
3
6
|
import { useCopied } from "../hooks/useCopied.mjs";
|
|
4
7
|
import { copyToClipboard } from "../utils/copyToClipboard.mjs";
|
|
5
8
|
import { copyButtonClasses } from "./stable.mjs";
|
|
6
|
-
import clsx$1 from "clsx";
|
|
7
|
-
import { memo } from "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Check, Copy } from "lucide-react";
|
|
10
10
|
// src/CopyButton/CopyButton.tsx
|
|
11
11
|
const CopyButton = memo(({ active, className, content, size, icon, glass = true, onClick, ...rest }) => {
|
|
12
12
|
const { copied, setCopied } = useCopied();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { ArrowRight } from "lucide-react";
|
|
2
4
|
import Icon from "../Icon/Icon.mjs";
|
|
3
5
|
import RefRangePicker from "./core/PickerInput/RangePicker.mjs";
|
|
4
6
|
import { isNativeDateConfig, normalizeLegacyDateProps } from "./legacyDate.mjs";
|
|
@@ -7,9 +9,7 @@ import { dateRangePickerClasses } from "./stable.mjs";
|
|
|
7
9
|
import { usePanelKeyboard } from "./usePanelKeyboard.mjs";
|
|
8
10
|
import { usePickerShared } from "./usePickerShared.mjs";
|
|
9
11
|
import { usePresetActive } from "./usePresetActive.mjs";
|
|
10
|
-
import clsx$1 from "clsx";
|
|
11
12
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
import { ArrowRight } from "lucide-react";
|
|
13
13
|
// src/DatePicker/RangePicker.tsx
|
|
14
14
|
const generateRangePicker = (generateConfig) => {
|
|
15
15
|
const RangePicker = (rawProps) => {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { X } from "lucide-react";
|
|
2
4
|
import Icon from "../Icon/Icon.mjs";
|
|
3
5
|
import core_default from "./core/index.mjs";
|
|
4
6
|
import { normalizeLegacyDateProps } from "./legacyDate.mjs";
|
|
@@ -8,9 +10,7 @@ import { PREFIX_CLS } from "./style.mjs";
|
|
|
8
10
|
import { usePanelKeyboard } from "./usePanelKeyboard.mjs";
|
|
9
11
|
import { usePickerShared, withDefault } from "./usePickerShared.mjs";
|
|
10
12
|
import { usePresetActive } from "./usePresetActive.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
13
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
import { X } from "lucide-react";
|
|
14
14
|
// src/DatePicker/SinglePicker.tsx
|
|
15
15
|
const defaultRemoveIcon = /* @__PURE__ */ jsx(Icon, {
|
|
16
16
|
icon: X,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import useTimeInfo from "../../hooks/useTimeInfo.mjs";
|
|
2
4
|
import { isReactRenderable } from "../../utils/common.mjs";
|
|
3
5
|
import PickerContext from "../context.mjs";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerInput/Popup/Footer.tsx
|
|
8
8
|
function Footer(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import RefPanelPicker from "../../PickerPanel/index.mjs";
|
|
2
3
|
import { PickerHackContext } from "../../PickerPanel/context.mjs";
|
|
3
4
|
import PickerContext from "../context.mjs";
|
|
4
5
|
import { offsetPanelDate } from "../hooks/useRangePickerValue.mjs";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerInput/Popup/PopupPanel.tsx
|
|
8
8
|
function PopupPanel(props) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useMergeRefs } from "../../../../utils/mergeRefs.mjs";
|
|
2
4
|
import { useResizeObserver } from "../../hooks/react.mjs";
|
|
3
5
|
import { toArray } from "../../utils/miscUtil.mjs";
|
|
@@ -5,8 +7,6 @@ import PickerContext from "../context.mjs";
|
|
|
5
7
|
import Footer from "./Footer.mjs";
|
|
6
8
|
import PopupPanel from "./PopupPanel.mjs";
|
|
7
9
|
import PresetPanel from "./PresetPanel.mjs";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
|
-
import * as React from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/DatePicker/core/PickerInput/Popup/index.tsx
|
|
12
12
|
function Popup(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { BaseInfo, PanelMode, RangeTimeProps, SharedPickerProps, ValueDate } from "../interface.mjs";
|
|
2
3
|
import { SelectorIdType } from "./Selector/RangeSelector.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
export type RangeValueType<DateType> = [start: DateType | null | undefined, end: DateType | null | undefined];
|
|
5
5
|
/** Used for change event, it should always be not undefined */
|
|
6
6
|
export type NoUndefinedRangeValueType<DateType> = [start: DateType | null, end: DateType | null];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useControlledState, useEvent, useLayoutEffect as useLayoutEffect$1 } from "../hooks/react.mjs";
|
|
2
4
|
import useSemantic from "../hooks/useSemantic.mjs";
|
|
3
5
|
import PickerPopup from "../PickerPopup.mjs";
|
|
@@ -20,8 +22,6 @@ import useRangeValueChange from "./hooks/useRangeValueChange.mjs";
|
|
|
20
22
|
import useShowNow from "./hooks/useShowNow.mjs";
|
|
21
23
|
import Popup from "./Popup/index.mjs";
|
|
22
24
|
import RefRangeSelector from "./Selector/RangeSelector.mjs";
|
|
23
|
-
import { clsx } from "clsx";
|
|
24
|
-
import * as React from "react";
|
|
25
25
|
import { jsx } from "react/jsx-runtime";
|
|
26
26
|
// src/DatePicker/core/PickerInput/RangePicker.tsx
|
|
27
27
|
function separateConfig(config, defaultConfig) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import PickerContext from "../context.mjs";
|
|
2
1
|
import { clsx } from "clsx";
|
|
3
2
|
import * as React from "react";
|
|
3
|
+
import PickerContext from "../context.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/DatePicker/core/PickerInput/Selector/ClearIcon.tsx
|
|
6
6
|
function ClearIcon({ icon, onClear, ...restProps }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isReactRenderable } from "../../utils/common.mjs";
|
|
2
|
-
import PickerContext from "../context.mjs";
|
|
3
1
|
import { clsx } from "clsx";
|
|
4
2
|
import * as React from "react";
|
|
3
|
+
import { isReactRenderable } from "../../utils/common.mjs";
|
|
4
|
+
import PickerContext from "../context.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
// src/DatePicker/core/PickerInput/Selector/Icon.tsx
|
|
7
7
|
function Icon({ icon, ...restProps }) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useEvent, useLayoutEffect as useLayoutEffect$1 } from "../../hooks/react.mjs";
|
|
2
4
|
import { raf } from "../../utils/common.mjs";
|
|
3
5
|
import { leftPad } from "../../utils/miscUtil.mjs";
|
|
@@ -6,8 +8,6 @@ import useLockEffect from "../hooks/useLockEffect.mjs";
|
|
|
6
8
|
import Icon from "./Icon.mjs";
|
|
7
9
|
import MaskFormat from "./MaskFormat.mjs";
|
|
8
10
|
import { getMaskRange } from "./util.mjs";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import * as React from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
// src/DatePicker/core/PickerInput/Selector/Input.tsx
|
|
13
13
|
const Input = ({ ref, ...props }) => {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useEvent, useResizeObserver } from "../../hooks/react.mjs";
|
|
2
4
|
import { isReactRenderable } from "../../utils/common.mjs";
|
|
3
5
|
import PickerContext from "../context.mjs";
|
|
@@ -6,8 +8,6 @@ import useInputProps from "./hooks/useInputProps.mjs";
|
|
|
6
8
|
import useRootProps from "./hooks/useRootProps.mjs";
|
|
7
9
|
import Icon from "./Icon.mjs";
|
|
8
10
|
import Input from "./Input.mjs";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import * as React from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
// src/DatePicker/core/PickerInput/Selector/RangeSelector.tsx
|
|
13
13
|
function RangeSelector(props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useHoverSnapshot } from "../../hooks/useHoverStore.mjs";
|
|
2
3
|
import RefSingleSelector from "./index.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.tsx
|
|
6
6
|
function HoverSelector({ calendarValue, hoverStore, ref, ...props }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OverflowList } from "../../../../../internal/overflow/OverflowList.mjs";
|
|
2
1
|
import { clsx } from "clsx";
|
|
3
2
|
import "react";
|
|
3
|
+
import { OverflowList } from "../../../../../internal/overflow/OverflowList.mjs";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
// src/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.tsx
|
|
6
6
|
function MultipleDates(props) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { isReactRenderable } from "../../../utils/common.mjs";
|
|
2
4
|
import { isSame } from "../../../utils/dateUtil.mjs";
|
|
3
5
|
import PickerContext from "../../context.mjs";
|
|
@@ -7,8 +9,6 @@ import useRootProps from "../hooks/useRootProps.mjs";
|
|
|
7
9
|
import Icon from "../Icon.mjs";
|
|
8
10
|
import Input from "../Input.mjs";
|
|
9
11
|
import MultipleDates from "./MultipleDates.mjs";
|
|
10
|
-
import { clsx } from "clsx";
|
|
11
|
-
import * as React from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
// src/DatePicker/core/PickerInput/Selector/SingleSelector/index.tsx
|
|
14
14
|
function SingleSelector(props, ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isReactRenderable, warning } from "../../../utils/common.mjs";
|
|
2
1
|
import "react";
|
|
2
|
+
import { isReactRenderable, warning } from "../../../utils/common.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/DatePicker/core/PickerInput/Selector/hooks/useClearIcon.tsx
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { pickAttrs, warning } from "../../../utils/common.mjs";
|
|
2
3
|
import { formatValue } from "../../../utils/dateUtil.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerInput/Selector/hooks/useInputProps.ts
|
|
5
5
|
function useInputProps(props, postProps) {
|
|
6
6
|
const { format, maskFormat, generateConfig, locale, preserveInvalidOnBlur, inputReadOnly, required, "aria-required": ariaRequired, onSubmit, onFocus, onBlur, onInputChange, onInvalid, open, onOpenChange, onKeyDown, onChange, activeHelp, name, autoComplete, id, value, invalid, placeholder, disabled, activeIndex, allHelp, picker } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pickProps } from "../../../utils/miscUtil.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { pickProps } from "../../../utils/miscUtil.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/Selector/hooks/useRootProps.ts
|
|
4
4
|
const propNames = ["onMouseEnter", "onMouseLeave"];
|
|
5
5
|
function useRootProps(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseInfo, PanelMode, SharedPickerProps, SharedTimeProps, ValueDate } from "../interface.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { BaseInfo, PanelMode, SharedPickerProps, SharedTimeProps, ValueDate } from "../interface.mjs";
|
|
3
3
|
export interface CustomTagProps<DateType extends object = any> {
|
|
4
4
|
closable: boolean;
|
|
5
5
|
disabled: boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useControlledState, useEvent, useLayoutEffect as useLayoutEffect$1 } from "../hooks/react.mjs";
|
|
2
4
|
import useSemantic from "../hooks/useSemantic.mjs";
|
|
3
5
|
import useToggleDates from "../hooks/useToggleDates.mjs";
|
|
@@ -19,8 +21,6 @@ import useRangeValueChange from "./hooks/useRangeValueChange.mjs";
|
|
|
19
21
|
import useShowNow from "./hooks/useShowNow.mjs";
|
|
20
22
|
import Popup from "./Popup/index.mjs";
|
|
21
23
|
import HoverSelector from "./Selector/SingleSelector/HoverSelector.mjs";
|
|
22
|
-
import { clsx } from "clsx";
|
|
23
|
-
import * as React from "react";
|
|
24
24
|
import { jsx } from "react/jsx-runtime";
|
|
25
25
|
// src/DatePicker/core/PickerInput/SinglePicker.tsx
|
|
26
26
|
function Picker(props, ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { warning } from "../../utils/common.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { warning } from "../../utils/common.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/hooks/useCellRender.ts
|
|
4
4
|
function useCellRender(cellRender, dateRender, monthCellRender, range) {
|
|
5
5
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { useControlledState, useEvent } from "../../hooks/react.mjs";
|
|
2
3
|
import { raf } from "../../utils/common.mjs";
|
|
3
|
-
import React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerInput/hooks/useDelayState.ts
|
|
5
5
|
/**
|
|
6
6
|
* Will be `true` immediately for next effect.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getRowFormat, toArray } from "../../utils/miscUtil.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { getRowFormat, toArray } from "../../utils/miscUtil.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/hooks/useFieldFormat.ts
|
|
4
4
|
function useFieldFormat(picker, locale, format) {
|
|
5
5
|
return React.useMemo(() => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import useLocale from "../../hooks/useLocale.mjs";
|
|
2
3
|
import { fillShowTimeConfig, getTimeProps } from "../../hooks/useTimeConfig.mjs";
|
|
3
4
|
import { warning } from "../../utils/common.mjs";
|
|
@@ -7,7 +8,6 @@ import useDisabledBoundary from "./useDisabledBoundary.mjs";
|
|
|
7
8
|
import { useFieldFormat } from "./useFieldFormat.mjs";
|
|
8
9
|
import useInputReadOnly from "./useInputReadOnly.mjs";
|
|
9
10
|
import useInvalidate from "./useInvalidate.mjs";
|
|
10
|
-
import * as React from "react";
|
|
11
11
|
// src/DatePicker/core/PickerInput/hooks/useFilledProps.ts
|
|
12
12
|
function useList(value, fillMode = false) {
|
|
13
13
|
return React.useMemo(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEvent } from "../../hooks/react.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { useEvent } from "../../hooks/react.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/hooks/useFocusEvents.ts
|
|
4
4
|
/** Check whether the target belongs to any container. / 判断目标是否属于任意一个容器。 */
|
|
5
5
|
function isTargetInContainers(target, containers) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEvent, useLayoutEffect as useLayoutEffect$1 } from "../../hooks/react.mjs";
|
|
2
3
|
import { isTargetInContainers } from "./useFocusEvents.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerInput/hooks/useFocusLock.ts
|
|
5
5
|
/**
|
|
6
6
|
* Keep focus on the specified input field while focus moves inside the Picker.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useLayoutUpdateEffect } from "../../hooks/react.mjs";
|
|
2
3
|
import { raf } from "../../utils/common.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerInput/hooks/useLockEffect.ts
|
|
5
5
|
/**
|
|
6
6
|
* Trigger `callback` immediately when `condition` is `true`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { warning } from "../../utils/common.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { warning } from "../../utils/common.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/hooks/usePresets.ts
|
|
4
4
|
function usePresets(presets, legacyRanges) {
|
|
5
5
|
return React.useMemo(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useControlledState, useLayoutEffect as useLayoutEffect$1 } from "../../hooks/react.mjs";
|
|
2
3
|
import { fillTime, isSame } from "../../utils/dateUtil.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerInput/hooks/useRangePickerValue.ts
|
|
5
5
|
function offsetPanelDate(generateConfig, picker, date, offset) {
|
|
6
6
|
switch (picker) {
|
|
@@ -41,8 +41,7 @@ function useRangePickerValue(generateConfig, locale, calendarValue, modes, open,
|
|
|
41
41
|
timeDefaultValue
|
|
42
42
|
]);
|
|
43
43
|
const setCurrentPickerValue = (nextPickerValue, source = "panel") => {
|
|
44
|
-
|
|
45
|
-
updater(nextPickerValue);
|
|
44
|
+
(0, [setStartPickerValue, setEndPickerValue][mergedActiveIndex])(nextPickerValue);
|
|
46
45
|
const clone = [mergedStartPickerValue, mergedEndPickerValue];
|
|
47
46
|
clone[mergedActiveIndex] = nextPickerValue;
|
|
48
47
|
if (onPickerValueChange && (!isSame(generateConfig, locale, mergedStartPickerValue, clone[0], pickerMode) || !isSame(generateConfig, locale, mergedEndPickerValue, clone[1], pickerMode))) onPickerValueChange(clone, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRangePickerValue.mjs","names":["useLayoutEffect"],"sources":["../../../../../src/DatePicker/core/PickerInput/hooks/useRangePickerValue.ts"],"sourcesContent":["import * as React from 'react';\n\nimport type { GenerateConfig } from '../../generate';\nimport { useControlledState, useLayoutEffect } from '../../hooks/react';\nimport type { InternalMode, Locale, NullableDateType, PanelMode } from '../../interface';\nimport { fillTime, isSame } from '../../utils/dateUtil';\nimport type { RangePickerProps } from '../RangePicker';\n\nexport function offsetPanelDate<DateType = any>(\n generateConfig: GenerateConfig<DateType>,\n picker: InternalMode,\n date: DateType,\n offset: number,\n) {\n switch (picker) {\n case 'date':\n case 'week': {\n return generateConfig.addMonth(date, offset);\n }\n\n case 'month':\n case 'quarter': {\n return generateConfig.addYear(date, offset);\n }\n\n case 'year': {\n return generateConfig.addYear(date, offset * 10);\n }\n\n case 'decade': {\n return generateConfig.addYear(date, offset * 100);\n }\n\n default: {\n return date;\n }\n }\n}\n\nconst EMPTY_LIST: unknown[] = [];\n\nexport default function useRangePickerValue<DateType extends object>(\n generateConfig: GenerateConfig<DateType>,\n locale: Locale,\n calendarValue: NullableDateType<DateType>[],\n modes: PanelMode[],\n open: boolean,\n preserveOnFieldChange: boolean,\n activeIndex: number,\n pickerMode: InternalMode,\n multiplePanel: boolean,\n defaultPickerValue: DateType[] = EMPTY_LIST as DateType[],\n pickerValue: DateType[] = EMPTY_LIST as DateType[],\n // This is legacy from origin logic.\n // We will take `showTime.defaultValue` as the part of `pickerValue`\n timeDefaultValue: DateType[] = EMPTY_LIST as DateType[],\n onPickerValueChange?: RangePickerProps<DateType>['onPickerValueChange'],\n minDate?: DateType,\n maxDate?: DateType,\n): [currentIndexPickerValue: DateType, setCurrentIndexPickerValue: (value: DateType) => void] {\n const isTimePicker = pickerMode === 'time';\n\n // ======================== Active ========================\n // `activeIndex` must be valid to avoid getting empty `pickerValue`\n const mergedActiveIndex = activeIndex || 0;\n const [startCalendarValue, endCalendarValue] = calendarValue;\n const activeCalendarValue = mergedActiveIndex === 0 ? startCalendarValue : endCalendarValue;\n const inactiveCalendarValue = mergedActiveIndex === 0 ? endCalendarValue : startCalendarValue;\n\n // ===================== Picker Value =====================\n const getDefaultPickerValue = (index: number) => {\n let now = generateConfig.getNow();\n if (isTimePicker) {\n now = fillTime(generateConfig, now);\n }\n\n const calendarDate = index === 0 ? startCalendarValue : endCalendarValue;\n return defaultPickerValue[index] || calendarDate || now;\n };\n\n // Align `pickerValue` with `showTime.defaultValue`\n const [startPickerValue, endPickerValue] = pickerValue;\n\n // PickerValue state\n const [mergedStartPickerValue, setStartPickerValue] = useControlledState(\n () => getDefaultPickerValue(0),\n startPickerValue,\n );\n\n const [mergedEndPickerValue, setEndPickerValue] = useControlledState(\n () => getDefaultPickerValue(1),\n endPickerValue,\n );\n\n // Current PickerValue\n const currentPickerValue = React.useMemo(() => {\n const current = [mergedStartPickerValue, mergedEndPickerValue][mergedActiveIndex];\n\n // Merge the `showTime.defaultValue` into `pickerValue`\n return isTimePicker\n ? current\n : fillTime(generateConfig, current, timeDefaultValue[mergedActiveIndex]);\n }, [\n isTimePicker,\n mergedStartPickerValue,\n mergedEndPickerValue,\n mergedActiveIndex,\n generateConfig,\n timeDefaultValue,\n ]);\n\n const setCurrentPickerValue = (\n nextPickerValue: DateType,\n source: 'reset' | 'panel' = 'panel',\n ) => {\n const updater = [setStartPickerValue, setEndPickerValue][mergedActiveIndex];\n updater(nextPickerValue);\n\n const clone: [DateType, DateType] = [mergedStartPickerValue, mergedEndPickerValue];\n clone[mergedActiveIndex] = nextPickerValue;\n\n if (\n onPickerValueChange &&\n (!isSame(generateConfig, locale, mergedStartPickerValue, clone[0], pickerMode) ||\n !isSame(generateConfig, locale, mergedEndPickerValue, clone[1], pickerMode))\n ) {\n onPickerValueChange(clone, {\n source,\n range: mergedActiveIndex === 1 ? 'end' : 'start',\n mode: modes as any,\n });\n }\n };\n\n // ======================== Effect ========================\n // Check whether two dates belong to the same panel.\n // 判断两个日期是否属于同一个面板。\n const isSamePanel = (date1: DateType, date2: DateType) => {\n if (pickerMode === 'year') {\n return (\n Math.floor(generateConfig.getYear(date1) / 10) ===\n Math.floor(generateConfig.getYear(date2) / 10)\n );\n }\n\n const panelMode: PanelMode =\n pickerMode === 'month' || pickerMode === 'quarter' ? 'year' : 'month';\n return isSame(generateConfig, locale, date1, date2, panelMode);\n };\n\n // Keep both values in the two visible panels when possible. Otherwise put\n // the end value in the second panel.\n // 尽量在双面板内同时展示两个值;无法容纳时,将 end 值放在右侧面板。\n const getEndDatePickerValue = (startDate: NullableDateType<DateType>, endDate: DateType) => {\n if (!multiplePanel || !startDate) {\n return endDate;\n }\n\n const nextPanelDate = offsetPanelDate(generateConfig, pickerMode, startDate, 1);\n const endInPanels = isSamePanel(startDate, endDate) || isSamePanel(nextPanelDate, endDate);\n\n return endInPanels ? startDate : offsetPanelDate(generateConfig, pickerMode, endDate, -1);\n };\n\n // >>> When switch field, reset the picker value as prev field picker value\n const prevActiveIndexRef = React.useRef<number>(null);\n useLayoutEffect(() => {\n if (open && !defaultPickerValue[mergedActiveIndex]) {\n let nextPickerValue: NullableDateType<DateType> = isTimePicker\n ? null\n : generateConfig.getNow();\n\n /**\n * 1. If focus switches inside the open Picker, keep the current panels\n * 2. If current field has value, sync it to the panels\n * - Start: use the start value\n * - End: keep start when both values fit, otherwise put end on the second panel\n * 3. If current field has no value but another field has value, use another field value\n * 4. Else use now (not any `calendarValue` can ref)\n */\n\n if (\n preserveOnFieldChange &&\n prevActiveIndexRef.current !== null &&\n prevActiveIndexRef.current !== mergedActiveIndex\n ) {\n // If from another field, not jump picker value\n nextPickerValue = [mergedStartPickerValue, mergedEndPickerValue][mergedActiveIndex ^ 1];\n } else if (activeCalendarValue) {\n // Current field has value\n nextPickerValue =\n mergedActiveIndex === 0\n ? startCalendarValue\n : getEndDatePickerValue(startCalendarValue, endCalendarValue!);\n } else if (inactiveCalendarValue) {\n // Current field has no value but another field has value\n nextPickerValue = inactiveCalendarValue;\n }\n\n // Only sync when has value, this will sync in the `min-max` logic\n if (nextPickerValue) {\n // nextPickerValue < minDate\n if (minDate && generateConfig.isAfter(minDate, nextPickerValue)) {\n nextPickerValue = minDate;\n }\n\n // maxDate < nextPickerValue\n const offsetPickerValue = multiplePanel\n ? offsetPanelDate(generateConfig, pickerMode, nextPickerValue, 1)\n : nextPickerValue;\n if (maxDate && generateConfig.isAfter(offsetPickerValue, maxDate)) {\n nextPickerValue = multiplePanel\n ? offsetPanelDate(generateConfig, pickerMode, maxDate, -1)\n : maxDate;\n }\n\n setCurrentPickerValue(nextPickerValue, 'reset');\n }\n }\n }, [open, preserveOnFieldChange, mergedActiveIndex, calendarValue[mergedActiveIndex]]);\n\n // >>> Track previous field only during one continuous Picker focus session\n React.useEffect(() => {\n if (open && preserveOnFieldChange) {\n prevActiveIndexRef.current = mergedActiveIndex;\n } else {\n prevActiveIndexRef.current = null;\n }\n }, [open, preserveOnFieldChange, mergedActiveIndex]);\n\n // >>> defaultPickerValue: Resync to `defaultPickerValue` for each panel focused\n useLayoutEffect(() => {\n if (open && defaultPickerValue && defaultPickerValue[mergedActiveIndex]) {\n setCurrentPickerValue(defaultPickerValue[mergedActiveIndex], 'reset');\n }\n }, [open, mergedActiveIndex]);\n\n return [currentPickerValue, setCurrentPickerValue];\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"useRangePickerValue.mjs","names":["useLayoutEffect"],"sources":["../../../../../src/DatePicker/core/PickerInput/hooks/useRangePickerValue.ts"],"sourcesContent":["import * as React from 'react';\n\nimport type { GenerateConfig } from '../../generate';\nimport { useControlledState, useLayoutEffect } from '../../hooks/react';\nimport type { InternalMode, Locale, NullableDateType, PanelMode } from '../../interface';\nimport { fillTime, isSame } from '../../utils/dateUtil';\nimport type { RangePickerProps } from '../RangePicker';\n\nexport function offsetPanelDate<DateType = any>(\n generateConfig: GenerateConfig<DateType>,\n picker: InternalMode,\n date: DateType,\n offset: number,\n) {\n switch (picker) {\n case 'date':\n case 'week': {\n return generateConfig.addMonth(date, offset);\n }\n\n case 'month':\n case 'quarter': {\n return generateConfig.addYear(date, offset);\n }\n\n case 'year': {\n return generateConfig.addYear(date, offset * 10);\n }\n\n case 'decade': {\n return generateConfig.addYear(date, offset * 100);\n }\n\n default: {\n return date;\n }\n }\n}\n\nconst EMPTY_LIST: unknown[] = [];\n\nexport default function useRangePickerValue<DateType extends object>(\n generateConfig: GenerateConfig<DateType>,\n locale: Locale,\n calendarValue: NullableDateType<DateType>[],\n modes: PanelMode[],\n open: boolean,\n preserveOnFieldChange: boolean,\n activeIndex: number,\n pickerMode: InternalMode,\n multiplePanel: boolean,\n defaultPickerValue: DateType[] = EMPTY_LIST as DateType[],\n pickerValue: DateType[] = EMPTY_LIST as DateType[],\n // This is legacy from origin logic.\n // We will take `showTime.defaultValue` as the part of `pickerValue`\n timeDefaultValue: DateType[] = EMPTY_LIST as DateType[],\n onPickerValueChange?: RangePickerProps<DateType>['onPickerValueChange'],\n minDate?: DateType,\n maxDate?: DateType,\n): [currentIndexPickerValue: DateType, setCurrentIndexPickerValue: (value: DateType) => void] {\n const isTimePicker = pickerMode === 'time';\n\n // ======================== Active ========================\n // `activeIndex` must be valid to avoid getting empty `pickerValue`\n const mergedActiveIndex = activeIndex || 0;\n const [startCalendarValue, endCalendarValue] = calendarValue;\n const activeCalendarValue = mergedActiveIndex === 0 ? startCalendarValue : endCalendarValue;\n const inactiveCalendarValue = mergedActiveIndex === 0 ? endCalendarValue : startCalendarValue;\n\n // ===================== Picker Value =====================\n const getDefaultPickerValue = (index: number) => {\n let now = generateConfig.getNow();\n if (isTimePicker) {\n now = fillTime(generateConfig, now);\n }\n\n const calendarDate = index === 0 ? startCalendarValue : endCalendarValue;\n return defaultPickerValue[index] || calendarDate || now;\n };\n\n // Align `pickerValue` with `showTime.defaultValue`\n const [startPickerValue, endPickerValue] = pickerValue;\n\n // PickerValue state\n const [mergedStartPickerValue, setStartPickerValue] = useControlledState(\n () => getDefaultPickerValue(0),\n startPickerValue,\n );\n\n const [mergedEndPickerValue, setEndPickerValue] = useControlledState(\n () => getDefaultPickerValue(1),\n endPickerValue,\n );\n\n // Current PickerValue\n const currentPickerValue = React.useMemo(() => {\n const current = [mergedStartPickerValue, mergedEndPickerValue][mergedActiveIndex];\n\n // Merge the `showTime.defaultValue` into `pickerValue`\n return isTimePicker\n ? current\n : fillTime(generateConfig, current, timeDefaultValue[mergedActiveIndex]);\n }, [\n isTimePicker,\n mergedStartPickerValue,\n mergedEndPickerValue,\n mergedActiveIndex,\n generateConfig,\n timeDefaultValue,\n ]);\n\n const setCurrentPickerValue = (\n nextPickerValue: DateType,\n source: 'reset' | 'panel' = 'panel',\n ) => {\n const updater = [setStartPickerValue, setEndPickerValue][mergedActiveIndex];\n updater(nextPickerValue);\n\n const clone: [DateType, DateType] = [mergedStartPickerValue, mergedEndPickerValue];\n clone[mergedActiveIndex] = nextPickerValue;\n\n if (\n onPickerValueChange &&\n (!isSame(generateConfig, locale, mergedStartPickerValue, clone[0], pickerMode) ||\n !isSame(generateConfig, locale, mergedEndPickerValue, clone[1], pickerMode))\n ) {\n onPickerValueChange(clone, {\n source,\n range: mergedActiveIndex === 1 ? 'end' : 'start',\n mode: modes as any,\n });\n }\n };\n\n // ======================== Effect ========================\n // Check whether two dates belong to the same panel.\n // 判断两个日期是否属于同一个面板。\n const isSamePanel = (date1: DateType, date2: DateType) => {\n if (pickerMode === 'year') {\n return (\n Math.floor(generateConfig.getYear(date1) / 10) ===\n Math.floor(generateConfig.getYear(date2) / 10)\n );\n }\n\n const panelMode: PanelMode =\n pickerMode === 'month' || pickerMode === 'quarter' ? 'year' : 'month';\n return isSame(generateConfig, locale, date1, date2, panelMode);\n };\n\n // Keep both values in the two visible panels when possible. Otherwise put\n // the end value in the second panel.\n // 尽量在双面板内同时展示两个值;无法容纳时,将 end 值放在右侧面板。\n const getEndDatePickerValue = (startDate: NullableDateType<DateType>, endDate: DateType) => {\n if (!multiplePanel || !startDate) {\n return endDate;\n }\n\n const nextPanelDate = offsetPanelDate(generateConfig, pickerMode, startDate, 1);\n const endInPanels = isSamePanel(startDate, endDate) || isSamePanel(nextPanelDate, endDate);\n\n return endInPanels ? startDate : offsetPanelDate(generateConfig, pickerMode, endDate, -1);\n };\n\n // >>> When switch field, reset the picker value as prev field picker value\n const prevActiveIndexRef = React.useRef<number>(null);\n useLayoutEffect(() => {\n if (open && !defaultPickerValue[mergedActiveIndex]) {\n let nextPickerValue: NullableDateType<DateType> = isTimePicker\n ? null\n : generateConfig.getNow();\n\n /**\n * 1. If focus switches inside the open Picker, keep the current panels\n * 2. If current field has value, sync it to the panels\n * - Start: use the start value\n * - End: keep start when both values fit, otherwise put end on the second panel\n * 3. If current field has no value but another field has value, use another field value\n * 4. Else use now (not any `calendarValue` can ref)\n */\n\n if (\n preserveOnFieldChange &&\n prevActiveIndexRef.current !== null &&\n prevActiveIndexRef.current !== mergedActiveIndex\n ) {\n // If from another field, not jump picker value\n nextPickerValue = [mergedStartPickerValue, mergedEndPickerValue][mergedActiveIndex ^ 1];\n } else if (activeCalendarValue) {\n // Current field has value\n nextPickerValue =\n mergedActiveIndex === 0\n ? startCalendarValue\n : getEndDatePickerValue(startCalendarValue, endCalendarValue!);\n } else if (inactiveCalendarValue) {\n // Current field has no value but another field has value\n nextPickerValue = inactiveCalendarValue;\n }\n\n // Only sync when has value, this will sync in the `min-max` logic\n if (nextPickerValue) {\n // nextPickerValue < minDate\n if (minDate && generateConfig.isAfter(minDate, nextPickerValue)) {\n nextPickerValue = minDate;\n }\n\n // maxDate < nextPickerValue\n const offsetPickerValue = multiplePanel\n ? offsetPanelDate(generateConfig, pickerMode, nextPickerValue, 1)\n : nextPickerValue;\n if (maxDate && generateConfig.isAfter(offsetPickerValue, maxDate)) {\n nextPickerValue = multiplePanel\n ? offsetPanelDate(generateConfig, pickerMode, maxDate, -1)\n : maxDate;\n }\n\n setCurrentPickerValue(nextPickerValue, 'reset');\n }\n }\n }, [open, preserveOnFieldChange, mergedActiveIndex, calendarValue[mergedActiveIndex]]);\n\n // >>> Track previous field only during one continuous Picker focus session\n React.useEffect(() => {\n if (open && preserveOnFieldChange) {\n prevActiveIndexRef.current = mergedActiveIndex;\n } else {\n prevActiveIndexRef.current = null;\n }\n }, [open, preserveOnFieldChange, mergedActiveIndex]);\n\n // >>> defaultPickerValue: Resync to `defaultPickerValue` for each panel focused\n useLayoutEffect(() => {\n if (open && defaultPickerValue && defaultPickerValue[mergedActiveIndex]) {\n setCurrentPickerValue(defaultPickerValue[mergedActiveIndex], 'reset');\n }\n }, [open, mergedActiveIndex]);\n\n return [currentPickerValue, setCurrentPickerValue];\n}\n"],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useControlledState, useEvent } from "../../hooks/react.mjs";
|
|
2
3
|
import useSyncState from "../../hooks/useSyncState.mjs";
|
|
3
4
|
import { formatValue, isSame, isSameTimestamp } from "../../utils/dateUtil.mjs";
|
|
4
5
|
import { fillIndex } from "../../utils/miscUtil.mjs";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
// src/DatePicker/core/PickerInput/hooks/useRangeValue.ts
|
|
7
7
|
const EMPTY_VALUE = [];
|
|
8
8
|
function useUtil(generateConfig, locale, formatList) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEvent, useLatestState } from "../../hooks/react.mjs";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { useEvent, useLatestState } from "../../hooks/react.mjs";
|
|
3
3
|
// src/DatePicker/core/PickerInput/hooks/useRangeValueChange.ts
|
|
4
4
|
/**
|
|
5
5
|
* Coordinate CalendarValue updates, part submits and final submits for any
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import "react";
|
|
1
3
|
import { formatValue, getWeekStartDate, isSameDate, isSameMonth } from "../../utils/dateUtil.mjs";
|
|
2
4
|
import { PanelContext, useInfo } from "../context.mjs";
|
|
3
5
|
import PanelBody from "../PanelBody.mjs";
|
|
4
6
|
import PanelHeader from "../PanelHeader.mjs";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/DatePicker/core/PickerPanel/DatePanel/index.tsx
|
|
9
9
|
function DatePanel(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "react";
|
|
1
2
|
import useTimeInfo from "../../hooks/useTimeInfo.mjs";
|
|
2
3
|
import { fillTime } from "../../utils/dateUtil.mjs";
|
|
3
4
|
import DatePanel from "../DatePanel/index.mjs";
|
|
4
5
|
import TimePanel from "../TimePanel/index.mjs";
|
|
5
|
-
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/DateTimePanel/index.tsx
|
|
8
8
|
function DateTimePanel(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "react";
|
|
1
2
|
import { formatValue, isInRange, isSameDecade } from "../../utils/dateUtil.mjs";
|
|
2
3
|
import { PanelContext, useInfo } from "../context.mjs";
|
|
3
4
|
import PanelBody from "../PanelBody.mjs";
|
|
4
5
|
import PanelHeader from "../PanelHeader.mjs";
|
|
5
|
-
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/DecadePanel/index.tsx
|
|
8
8
|
function DecadePanel(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "react";
|
|
1
2
|
import { formatValue } from "../../utils/dateUtil.mjs";
|
|
2
3
|
import { PanelContext, useInfo } from "../context.mjs";
|
|
3
4
|
import PanelBody from "../PanelBody.mjs";
|
|
4
5
|
import PanelHeader from "../PanelHeader.mjs";
|
|
5
|
-
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/MonthPanel/index.tsx
|
|
8
8
|
function MonthPanel(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { isNonNullable } from "../utils/common.mjs";
|
|
2
4
|
import { formatValue, isInRange, isSame } from "../utils/dateUtil.mjs";
|
|
3
5
|
import { PickerHackContext, usePanelContext } from "./context.mjs";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/PanelBody.tsx
|
|
8
8
|
function PanelBody(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isSameOrAfter } from "../utils/dateUtil.mjs";
|
|
2
|
-
import { PickerHackContext, usePanelContext } from "./context.mjs";
|
|
3
1
|
import { clsx } from "clsx";
|
|
4
2
|
import * as React from "react";
|
|
3
|
+
import { isSameOrAfter } from "../utils/dateUtil.mjs";
|
|
4
|
+
import { PickerHackContext, usePanelContext } from "./context.mjs";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/DatePicker/core/PickerPanel/PanelHeader.tsx
|
|
7
7
|
const HIDDEN_STYLE = { visibility: "hidden" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "react";
|
|
1
2
|
import { formatValue } from "../../utils/dateUtil.mjs";
|
|
2
3
|
import { PanelContext, useInfo } from "../context.mjs";
|
|
3
4
|
import PanelBody from "../PanelBody.mjs";
|
|
4
5
|
import PanelHeader from "../PanelHeader.mjs";
|
|
5
|
-
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/QuarterPanel/index.tsx
|
|
8
8
|
function QuarterPanel(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { pointerToPolar, stepCircular, toPosition } from "./geometry.mjs";
|
|
2
1
|
import { clsx } from "clsx";
|
|
3
2
|
import * as React from "react";
|
|
3
|
+
import { pointerToPolar, stepCircular, toPosition } from "./geometry.mjs";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
// src/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.tsx
|
|
6
6
|
const STEP_KEYS = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
3
|
+
import * as React from "react";
|
|
1
4
|
import { usePanelContext } from "../../context.mjs";
|
|
2
5
|
import useTimeState from "../TimePanelBody/useTimeState.mjs";
|
|
3
6
|
import ClockDial from "./ClockDial.mjs";
|
|
4
7
|
import { isInnerRing, nearestOnCircle, pad, stepCircular } from "./geometry.mjs";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import * as React from "react";
|
|
7
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
9
9
|
// src/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.tsx
|
|
10
10
|
const enabledValues = (units) => units.filter((unit) => !unit.disabled).map((unit) => unit.value);
|
|
11
11
|
const isEnabled = (units, value) => units.some((unit) => unit.value === value && !unit.disabled);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../hooks/react.mjs";
|
|
2
4
|
import { usePanelContext } from "../../context.mjs";
|
|
3
5
|
import useScrollTo from "./useScrollTo.mjs";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.tsx
|
|
8
8
|
const SCROLL_DELAY = 300;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import * as React from "react";
|
|
1
3
|
import { PickerHackContext, usePanelContext } from "../../context.mjs";
|
|
2
4
|
import TimeColumn from "./TimeColumn.mjs";
|
|
3
5
|
import useTimeState from "./useTimeState.mjs";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.tsx
|
|
8
8
|
function TimePanelBody(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { useEvent } from "../../../hooks/react.mjs";
|
|
2
3
|
import { isVisible, raf } from "../../../utils/common.mjs";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
// src/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.ts
|
|
5
5
|
const SPEED_PTG = 1 / 3;
|
|
6
6
|
function useScrollTo(ulRef, value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import useTimeInfo from "../../../hooks/useTimeInfo.mjs";
|
|
2
3
|
import { isNonNullable } from "../../../utils/common.mjs";
|
|
3
4
|
import { formatValue } from "../../../utils/dateUtil.mjs";
|
|
4
5
|
import { usePanelContext } from "../../context.mjs";
|
|
5
|
-
import * as React from "react";
|
|
6
6
|
// src/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.ts
|
|
7
7
|
function isAM(hour) {
|
|
8
8
|
return hour < 12;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import "react";
|
|
1
3
|
import { formatValue } from "../../utils/dateUtil.mjs";
|
|
2
4
|
import { PanelContext, useInfo } from "../context.mjs";
|
|
3
5
|
import PanelHeader from "../PanelHeader.mjs";
|
|
4
6
|
import TimeClock from "./TimeClock/index.mjs";
|
|
5
7
|
import TimePanelBody from "./TimePanelBody/index.mjs";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/DatePicker/core/PickerPanel/TimePanel/index.tsx
|
|
10
10
|
function TimePanel(props) {
|