@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
package/es/A/index.d.mts
CHANGED
package/es/A/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ConfigContext } from "../ConfigProvider/index.mjs";
|
|
3
|
-
import { aClasses } from "./stable.mjs";
|
|
4
2
|
import clsx$1 from "clsx";
|
|
5
3
|
import { createElement, memo, use, useMemo } from "react";
|
|
4
|
+
import { ConfigContext } from "../ConfigProvider/index.mjs";
|
|
5
|
+
import { aClasses } from "./stable.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
// src/A/index.tsx
|
|
8
8
|
const createContainer = (as) => memo((props) => createElement(as, props));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
2
3
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
3
4
|
import { AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger } from "./atoms.mjs";
|
|
4
5
|
import { accordionClasses } from "./stable.mjs";
|
|
5
6
|
import { styles } from "./style.mjs";
|
|
6
|
-
import clsx$1 from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/Accordion/Accordion.tsx
|
|
9
9
|
const Accordion = ({ className, classNames, defaultValue, gap, hideIndicator, indicatorPlacement = "start", items, keepMounted, multiple = true, onValueChange, ref, style, styles: customStyles, value, variant = "borderless" }) => {
|
package/es/Accordion/atoms.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
1
2
|
import { AccordionHeaderProps, AccordionIndicatorPlacement, AccordionItemProps, AccordionPanelProps, AccordionRootProps, AccordionTriggerProps, AccordionVariant } from "./type.mjs";
|
|
2
3
|
import { accordionStyles } from "./style.mjs";
|
|
3
|
-
import { FC } from "react";
|
|
4
4
|
interface AccordionContextValue {
|
|
5
5
|
hideIndicator: boolean;
|
|
6
6
|
indicatorPlacement: AccordionIndicatorPlacement;
|
package/es/Accordion/atoms.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Accordion } from "@base-ui/react/accordion";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { ChevronDown, ChevronRight, Play } from "lucide-react";
|
|
5
|
+
import { createContext, use, useMemo } from "react";
|
|
2
6
|
import { focusRing } from "../styles/stylex/focusRing.mjs";
|
|
3
7
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
4
8
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
5
9
|
import { accordionHeaderMarker, accordionPanelMarker, accordionTriggerMarker } from "./marker.stylex.mjs";
|
|
6
10
|
import { accordionClasses } from "./stable.mjs";
|
|
7
11
|
import { accordionStyles, styles } from "./style.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { createContext, use, useMemo } from "react";
|
|
10
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { Accordion } from "@base-ui/react/accordion";
|
|
12
|
-
import { ChevronDown, ChevronRight, Play } from "lucide-react";
|
|
13
13
|
// src/Accordion/atoms.tsx
|
|
14
14
|
const triggerVariantStyles = {
|
|
15
15
|
borderless: styles.triggerBorderless,
|
package/es/Accordion/style.mjs
CHANGED
package/es/Accordion/type.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
|
|
2
1
|
import { Accordion } from "@base-ui/react/accordion";
|
|
2
|
+
import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
|
|
3
3
|
export type AccordionVariant = 'borderless' | 'filled' | 'outlined';
|
|
4
4
|
export type AccordionIndicatorPlacement = 'end' | 'inline' | 'start';
|
|
5
5
|
export interface AccordionClassNames {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
1
2
|
import "../styles/stylex/props.mjs";
|
|
2
3
|
import { ActionIconProps, ActionIconVariant } from "./type.mjs";
|
|
3
|
-
import { ReactElement } from "react";
|
|
4
4
|
declare const ActionIcon: <V extends ActionIconVariant = "borderless">(props: ActionIconProps<V>) => ReactElement;
|
|
5
5
|
export { ActionIcon as default };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
2
4
|
import { ButtonImpl } from "../Button/Button.mjs";
|
|
3
5
|
import Icon from "../Icon/Icon.mjs";
|
|
4
6
|
import { Tooltip } from "../Tooltip/Tooltip.mjs";
|
|
@@ -6,8 +8,6 @@ import { toDataAttributes } from "../utils/bem.mjs";
|
|
|
6
8
|
import { actionIconClasses } from "./stable.mjs";
|
|
7
9
|
import { styles } from "./style.mjs";
|
|
8
10
|
import { calcOutdent, calcSize } from "./utils.mjs";
|
|
9
|
-
import clsx$1 from "clsx";
|
|
10
|
-
import { memo, useMemo } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
// src/ActionIcon/ActionIcon.tsx
|
|
13
13
|
const resolveButtonType = (variant) => {
|
package/es/ActionIcon/type.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CenterProps } from "../Flex/type.mjs";
|
|
2
|
+
import { CSSProperties, ReactNode, Ref } from "react";
|
|
2
3
|
import "../Flex/index.mjs";
|
|
3
4
|
import { IconProps, IconSizeConfig, IconSizeType, LucideIconProps } from "../Icon/type.mjs";
|
|
4
5
|
import "../Icon/index.mjs";
|
|
5
6
|
import { TooltipProps } from "../Tooltip/type.mjs";
|
|
6
7
|
import "../Tooltip/index.mjs";
|
|
7
|
-
import { CSSProperties, ReactNode, Ref } from "react";
|
|
8
8
|
interface ActionIconSizeConfig extends IconSizeConfig {
|
|
9
9
|
blockSize?: number | string;
|
|
10
10
|
borderRadius?: number | string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { MoreHorizontal } from "lucide-react";
|
|
4
|
+
import { useMemo } from "react";
|
|
2
5
|
import ActionIcon from "../ActionIcon/ActionIcon.mjs";
|
|
3
6
|
import DropdownMenu from "../DropdownMenu/DropdownMenu.mjs";
|
|
4
7
|
import Center from "../Flex/Center.mjs";
|
|
@@ -8,10 +11,7 @@ import TooltipGroup from "../Tooltip/TooltipGroup.mjs";
|
|
|
8
11
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
9
12
|
import { actionIconGroupClasses } from "./stable.mjs";
|
|
10
13
|
import { styles } from "./style.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { useMemo } from "react";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { MoreHorizontal } from "lucide-react";
|
|
15
15
|
// src/ActionIconGroup/ActionIconGroup.tsx
|
|
16
16
|
const variantStyles = {
|
|
17
17
|
borderless: styles.borderless,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CenterProps } from "../Flex/type.mjs";
|
|
2
|
+
import { Ref } from "react";
|
|
2
3
|
import "../ActionIcon/index.mjs";
|
|
3
4
|
import { ActionIconProps } from "../ActionIcon/type.mjs";
|
|
4
5
|
import "../DropdownMenu/index.mjs";
|
|
@@ -7,7 +8,6 @@ import { MenuItemType } from "../internal/menu/type.mjs";
|
|
|
7
8
|
import "../Flex/index.mjs";
|
|
8
9
|
import { DropdownMenuProps } from "../DropdownMenu/type.mjs";
|
|
9
10
|
import "../internal/menu/index.mjs";
|
|
10
|
-
import { Ref } from "react";
|
|
11
11
|
export type ActionIconGroupEvent = Pick<MenuInfo, 'key' | 'keyPath' | 'domEvent'>;
|
|
12
12
|
export interface ActionIconGroupProps extends Omit<CenterProps, 'children'> {
|
|
13
13
|
actionIconProps?: Partial<Omit<ActionIconProps, 'icon' | 'size' | 'ref'>>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useId } from "react";
|
|
2
4
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
3
5
|
import { useThemeMode } from "../styles/theme/scope.mjs";
|
|
4
6
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
@@ -7,8 +9,6 @@ import { agentAvatarClasses } from "./stable.mjs";
|
|
|
7
9
|
import { styles } from "./style.mjs";
|
|
8
10
|
import { useReducedMotion } from "./useReducedMotion.mjs";
|
|
9
11
|
import { AGENT_AVATAR_COLOR_TOKENS, BLOCKED_PUPIL_RATIO, BLOCKED_SCLERA_SCALE, GAZE_UNIT_RADIUS, PUPIL_COLOR, PUPIL_RATIO, PUPIL_RATIO_SMALL, SCLERA_COLOR, STILL_GAZE, getAgentAvatarTraits, isAgentAvatarColor } from "./utils.mjs";
|
|
10
|
-
import clsx$1 from "clsx";
|
|
11
|
-
import { memo, useId } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
// src/AgentAvatar/AgentAvatar.tsx
|
|
14
14
|
const round = (value) => Math.round(value * 100) / 100;
|
package/es/AgentAvatar/utils.mjs
CHANGED
|
@@ -74,15 +74,15 @@ const PUPIL_COLOR = gray.light[12];
|
|
|
74
74
|
const SEED_SALT = "lh3174:";
|
|
75
75
|
/** FNV-1a followed by the murmur3 finalizer: cheap, deterministic and well spread. */
|
|
76
76
|
const hashSeed = (seed) => {
|
|
77
|
-
let hash =
|
|
77
|
+
let hash = 0x811c9dc5;
|
|
78
78
|
for (let index = 0; index < seed.length; index++) {
|
|
79
79
|
hash ^= seed.charCodeAt(index);
|
|
80
80
|
hash = Math.imul(hash, 16777619);
|
|
81
81
|
}
|
|
82
82
|
hash ^= hash >>> 16;
|
|
83
|
-
hash = Math.imul(hash,
|
|
83
|
+
hash = Math.imul(hash, 0x85ebca6b);
|
|
84
84
|
hash ^= hash >>> 13;
|
|
85
|
-
hash = Math.imul(hash,
|
|
85
|
+
hash = Math.imul(hash, 0xc2b2ae35);
|
|
86
86
|
hash ^= hash >>> 16;
|
|
87
87
|
return hash >>> 0;
|
|
88
88
|
};
|
package/es/Alert/Alert.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { AlertTriangle, CheckCircle, ChevronRight, Info, X, XCircle } from "lucide-react";
|
|
4
|
+
import { memo, useEffect, useRef, useState } from "react";
|
|
2
5
|
import Icon from "../Icon/Icon.mjs";
|
|
3
6
|
import { focusRing } from "../styles/stylex/focusRing.mjs";
|
|
4
7
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
5
8
|
import { alertSummaryMarker } from "./marker.stylex.mjs";
|
|
6
9
|
import { alertClasses } from "./stable.mjs";
|
|
7
10
|
import { styles } from "./style.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { memo, useEffect, useRef, useState } from "react";
|
|
10
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { AlertTriangle, CheckCircle, ChevronRight, Info, X, XCircle } from "lucide-react";
|
|
12
12
|
// src/Alert/Alert.tsx
|
|
13
13
|
const typeIcons = {
|
|
14
14
|
error: XCircle,
|
package/es/Alert/type.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconProps } from "../Icon/type.mjs";
|
|
2
|
-
import "../Icon/index.mjs";
|
|
3
2
|
import { ButtonHTMLAttributes, CSSProperties, HTMLAttributes, MouseEventHandler, ReactNode, Ref } from "react";
|
|
3
|
+
import "../Icon/index.mjs";
|
|
4
4
|
export type AlertType = 'success' | 'info' | 'warning' | 'error' | 'secondary';
|
|
5
5
|
export type AlertVariant = 'soft' | 'outlined' | 'plain' |
|
|
6
6
|
/** @deprecated Use `soft` instead. */
|
package/es/Anchor/Anchor.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
2
4
|
import { useControlledState } from "../hooks/useControlledState.mjs";
|
|
3
5
|
import { useEventCallback } from "../hooks/useEventCallback.mjs";
|
|
4
6
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
5
7
|
import { useMergeRefs } from "../utils/mergeRefs.mjs";
|
|
6
8
|
import { anchorClasses } from "./stable.mjs";
|
|
7
9
|
import { styles } from "./style.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { memo, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/Anchor/Anchor.tsx
|
|
12
12
|
const SCROLL_LOCK_FALLBACK_MS = 1e3;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { XIcon } from "lucide-react";
|
|
5
|
+
import { memo, useMemo, useRef } from "react";
|
|
2
6
|
import { useAppElement } from "../ConfigProvider/AppElementContext.mjs";
|
|
3
7
|
import Icon from "../Icon/Icon.mjs";
|
|
4
8
|
import { inputClassNames, rootVariants } from "../Input/style.mjs";
|
|
@@ -8,11 +12,7 @@ import { useThemeMode } from "../styles/theme/scope.mjs";
|
|
|
8
12
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
9
13
|
import { autoCompleteClasses } from "./stable.mjs";
|
|
10
14
|
import { styles } from "./style.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { memo, useMemo, useRef } from "react";
|
|
13
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { XIcon } from "lucide-react";
|
|
15
|
-
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
16
16
|
// src/AutoComplete/AutoComplete.tsx
|
|
17
17
|
const AutoComplete = memo(({ className, classNames, styles: customStyles, style, variant, shadow, size = "middle", options = [], onChange, onSearch, allowClear, disabled, placeholder, prefix, suffix, emptyText, ...rest }) => {
|
|
18
18
|
const { isDarkMode } = useThemeMode();
|
|
@@ -41,7 +41,7 @@ declare const styleArrays: {
|
|
|
41
41
|
}> | Readonly<{
|
|
42
42
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
43
43
|
readonly cursor: stylex.StyleXClassNameFor<"cursor", "default">;
|
|
44
|
-
readonly display: stylex.StyleXClassNameFor<"display", "
|
|
44
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex" | "none">;
|
|
45
45
|
}>)[];
|
|
46
46
|
item: Readonly<{
|
|
47
47
|
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { menuClassNames, menuStyles } from "../DropdownMenu/style.mjs";
|
|
2
|
-
import clsx$1 from "clsx";
|
|
3
1
|
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { menuClassNames, menuStyles } from "../DropdownMenu/style.mjs";
|
|
4
4
|
// src/AutoComplete/style.ts
|
|
5
5
|
const ownStyles = {
|
|
6
6
|
clear: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputProps } from "../Input/type.mjs";
|
|
2
|
-
import "../Input/index.mjs";
|
|
3
|
-
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
4
2
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
3
|
+
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
4
|
+
import "../Input/index.mjs";
|
|
5
5
|
export interface AutoCompleteOption {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
label?: ReactNode;
|
package/es/Avatar/Avatar.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { getEmoji } from "@lobehub/fluent-emoji";
|
|
3
|
+
import BoringAvatar from "boring-avatars";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { Loader2 } from "lucide-react";
|
|
6
|
+
import { memo, useMemo, useState } from "react";
|
|
2
7
|
import Center from "../Flex/Center.mjs";
|
|
3
8
|
import FluentEmoji from "../FluentEmoji/FluentEmoji.mjs";
|
|
4
9
|
import Icon from "../Icon/Icon.mjs";
|
|
@@ -10,19 +15,14 @@ import { safeReadableColor } from "../utils/safeReadableColor.mjs";
|
|
|
10
15
|
import { avatarClasses } from "./stable.mjs";
|
|
11
16
|
import { styles } from "./style.mjs";
|
|
12
17
|
import { AVATAR_FALLBACK_COLORS, calculateEmojiSize, formatAvatarText, getAvatarFallbackSeed, hasValidBackground, isDefaultAntAvatar } from "./utils.mjs";
|
|
13
|
-
import clsx$1 from "clsx";
|
|
14
|
-
import { memo, useMemo, useState } from "react";
|
|
15
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { Loader2 } from "lucide-react";
|
|
17
|
-
import { getEmoji } from "@lobehub/fluent-emoji";
|
|
18
|
-
import BoringAvatar from "boring-avatars";
|
|
19
19
|
// src/Avatar/Avatar.tsx
|
|
20
20
|
const variantStyles = {
|
|
21
21
|
borderless: stylish.variantBorderlessWithoutHover,
|
|
22
22
|
filled: stylish.variantFilledWithoutHover,
|
|
23
23
|
outlined: stylish.variantOutlinedWithoutHover
|
|
24
24
|
};
|
|
25
|
-
const AvatarImpl = memo(({ alt, animation, avatar, background, bordered, borderedColor, className, classNames, crossOrigin, draggable = false, emojiScaleWithBackground = true, fallbackColors, fallbackVariant = "marble", loading, ref, shadow, shape = "square", size: sizeProp, sliceText = true, style, styles: customStyles, title, tooltipProps, unoptimized, variant = "borderless", xstyle, contentXstyle, ...rest }) => {
|
|
25
|
+
const AvatarImpl = memo(({ alt, animation, avatar, background, bordered, borderedColor, className, classNames, crossOrigin, draggable = false, emojiScaleWithBackground = true, fallbackColors, fallbackVariant = "marble", loading, ref, shadow, shape = "square", size: sizeProp, sliceText = true, style, styles: customStyles, title, tooltipProps, unoptimized, variant = "borderless", xstyle, contentXstyle, nativeTitle, ...rest }) => {
|
|
26
26
|
const size = sizeProp ?? 48;
|
|
27
27
|
const isStringAvatar = typeof avatar === "string";
|
|
28
28
|
const [isImgError, setIsImgError] = useState(false);
|
|
@@ -66,6 +66,7 @@ const AvatarImpl = memo(({ alt, animation, avatar, background, bordered, bordere
|
|
|
66
66
|
}),
|
|
67
67
|
...rest,
|
|
68
68
|
ref,
|
|
69
|
+
title: nativeTitle,
|
|
69
70
|
className: styleProps([
|
|
70
71
|
styles.root,
|
|
71
72
|
variantStyles[variant],
|
package/es/Avatar/Avatar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.mjs","names":["clsx"],"sources":["../../src/Avatar/Avatar.tsx"],"sourcesContent":["'use client';\n\nimport { getEmoji } from '@lobehub/fluent-emoji';\nimport BoringAvatar from 'boring-avatars';\nimport clsx from 'clsx';\nimport { Loader2 } from 'lucide-react';\nimport { memo, type ReactNode, useMemo, useState } from 'react';\n\nimport { Center } from '@/Flex';\nimport FluentEmoji from '@/FluentEmoji';\nimport Icon from '@/Icon';\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\nimport { styleProps } from '@/styles/stylex/props';\nimport { stylish } from '@/styles/stylex/stylish';\nimport { toDataAttributes } from '@/utils/bem';\nimport { safeReadableColor } from '@/utils/safeReadableColor';\n\nimport { avatarClasses } from './stable';\nimport { styles } from './style';\nimport { type AvatarProps } from './type';\nimport {\n AVATAR_FALLBACK_COLORS,\n calculateEmojiSize,\n formatAvatarText,\n getAvatarFallbackSeed,\n hasValidBackground,\n isDefaultAntAvatar,\n} from './utils';\n\nconst variantStyles = {\n borderless: stylish.variantBorderlessWithoutHover,\n filled: stylish.variantFilledWithoutHover,\n outlined: stylish.variantOutlinedWithoutHover,\n};\n\ntype AvatarImplProps = AvatarProps & {\n contentXstyle?: Parameters<typeof styleProps>[0];\n xstyle?: Parameters<typeof styleProps>[0];\n};\n\nexport const AvatarImpl = memo<AvatarImplProps>(\n ({\n alt,\n animation,\n avatar,\n background,\n bordered,\n borderedColor,\n className,\n classNames,\n crossOrigin,\n draggable = false,\n emojiScaleWithBackground = true,\n fallbackColors,\n fallbackVariant = 'marble',\n loading,\n ref,\n shadow,\n shape = 'square',\n size: sizeProp,\n sliceText = true,\n style,\n styles: customStyles,\n title,\n tooltipProps,\n unoptimized,\n variant = 'borderless',\n xstyle,\n contentXstyle,\n ...rest\n }) => {\n const size = sizeProp ?? 48;\n const isStringAvatar = typeof avatar === 'string';\n\n const [isImgError, setIsImgError] = useState(false);\n\n const isUrlOrElement = useMemo(() => isDefaultAntAvatar(avatar), [avatar]);\n\n const emoji = useMemo(\n () => (avatar && isStringAvatar && !isUrlOrElement ? getEmoji(avatar) : undefined),\n [avatar, isStringAvatar, isUrlOrElement],\n );\n\n const text = isUrlOrElement ? title : typeof avatar === 'string' ? avatar : undefined;\n\n const imgAlt = alt || title || 'avatar';\n\n const hasBackground = hasValidBackground(background);\n const showImage = isUrlOrElement && isStringAvatar && !isImgError;\n const showElement = isUrlOrElement && !isStringAvatar && !isImgError;\n\n // Plain text avatars (a name, initials) are treated as a seed like `title`; only\n // `fallbackVariant=\"text\"` renders them as uppercase text.\n const fallbackSeed = getAvatarFallbackSeed(avatar, title, alt);\n const showFallback =\n fallbackVariant !== 'text' && !!fallbackSeed && !emoji && !showImage && !showElement;\n const colors = fallbackColors?.length ? fallbackColors : AVATAR_FALLBACK_COLORS;\n\n const customAvatar = useMemo(\n () =>\n emoji ? (\n <FluentEmoji\n emoji={emoji}\n size={calculateEmojiSize(size, hasBackground, emojiScaleWithBackground)}\n type={animation ? 'anim' : '3d'}\n unoptimized={unoptimized}\n />\n ) : (\n formatAvatarText(text || title, sliceText)\n ),\n [\n animation,\n emoji,\n hasBackground,\n size,\n sliceText,\n text,\n title,\n unoptimized,\n emojiScaleWithBackground,\n ],\n );\n\n const customSize = sizeProp !== undefined;\n const showDefaultBackground =\n !background && !showFallback && !((isUrlOrElement && !isImgError) || emoji);\n\n return (\n <div\n {...toDataAttributes({ shadow, shape, variant })}\n {...rest}\n ref={ref}\n className={\n styleProps(\n [\n styles.root,\n variantStyles[variant],\n shadow && styles.shadow,\n !customSize && styles.defaultSize,\n !customSize && !!emoji && styles.defaultEmojiFont,\n shape === 'circle' ? styles.circle : !customSize && styles.defaultSquare,\n showDefaultBackground && styles.defaultBackground,\n !background && styles.defaultColor,\n !!rest?.onClick && styles.clickable,\n xstyle,\n ],\n clsx(avatarClasses(), className, classNames?.root),\n ).className\n }\n style={{\n ...(background && { backgroundColor: background, color: safeReadableColor(background) }),\n ...(customSize && {\n fontSize: size * (emoji ? 0.7 : 0.5),\n height: size,\n width: size,\n ...(shape !== 'circle' && { borderRadius: size < 24 ? '33%' : Math.max(size / 6, 2) }),\n }),\n ...(bordered && {\n boxShadow: `${cssVar.colorBgLayout} 0 0 0 2px, ${borderedColor || cssVar.colorTextTertiary} 0 0 0 4px`,\n }),\n ...style,\n ...customStyles?.root,\n }}\n >\n {loading && (\n <Center\n flex={'none'}\n height={'100%'}\n width={'100%'}\n {...styleProps(\n styles.loading,\n clsx(avatarClasses('loading'), classNames?.loading),\n customStyles?.loading,\n )}\n >\n <Icon spin icon={Loader2} />\n </Center>\n )}\n {typeof avatar === 'string' && showImage && (\n <img\n alt={imgAlt}\n crossOrigin={crossOrigin}\n draggable={draggable}\n height={size}\n loading={'lazy'}\n src={avatar}\n width={size}\n {...styleProps(\n styles.img,\n clsx(avatarClasses('img'), classNames?.img),\n customStyles?.img,\n )}\n onError={() => setIsImgError(true)}\n />\n )}\n {showFallback && (\n <BoringAvatar\n square\n aria-label={imgAlt}\n colors={colors}\n name={fallbackSeed}\n size={'100%'}\n variant={fallbackVariant}\n {...styleProps(\n styles.fallback,\n clsx(avatarClasses('fallback'), classNames?.fallback),\n customStyles?.fallback,\n )}\n />\n )}\n {!showImage && !showFallback && (\n <span\n {...styleProps(\n [styles.content, contentXstyle],\n clsx(avatarClasses('content'), classNames?.content),\n customStyles?.content,\n )}\n >\n {showElement ? avatar : customAvatar}\n </span>\n )}\n </div>\n );\n },\n);\n\nAvatarImpl.displayName = 'Avatar';\n\nconst Avatar = AvatarImpl as (props: AvatarProps) => ReactNode;\n\nexport default Avatar;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6BA,MAAM,gBAAgB;CACpB,YAAY,QAAQ;CACpB,QAAQ,QAAQ;CAChB,UAAU,QAAQ;AACpB;
|
|
1
|
+
{"version":3,"file":"Avatar.mjs","names":["clsx"],"sources":["../../src/Avatar/Avatar.tsx"],"sourcesContent":["'use client';\n\nimport { getEmoji } from '@lobehub/fluent-emoji';\nimport BoringAvatar from 'boring-avatars';\nimport clsx from 'clsx';\nimport { Loader2 } from 'lucide-react';\nimport { memo, type ReactNode, useMemo, useState } from 'react';\n\nimport { Center } from '@/Flex';\nimport FluentEmoji from '@/FluentEmoji';\nimport Icon from '@/Icon';\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\nimport { styleProps } from '@/styles/stylex/props';\nimport { stylish } from '@/styles/stylex/stylish';\nimport { toDataAttributes } from '@/utils/bem';\nimport { safeReadableColor } from '@/utils/safeReadableColor';\n\nimport { avatarClasses } from './stable';\nimport { styles } from './style';\nimport { type AvatarProps } from './type';\nimport {\n AVATAR_FALLBACK_COLORS,\n calculateEmojiSize,\n formatAvatarText,\n getAvatarFallbackSeed,\n hasValidBackground,\n isDefaultAntAvatar,\n} from './utils';\n\nconst variantStyles = {\n borderless: stylish.variantBorderlessWithoutHover,\n filled: stylish.variantFilledWithoutHover,\n outlined: stylish.variantOutlinedWithoutHover,\n};\n\ntype AvatarImplProps = AvatarProps & {\n contentXstyle?: Parameters<typeof styleProps>[0];\n nativeTitle?: string;\n xstyle?: Parameters<typeof styleProps>[0];\n};\n\nexport const AvatarImpl = memo<AvatarImplProps>(\n ({\n alt,\n animation,\n avatar,\n background,\n bordered,\n borderedColor,\n className,\n classNames,\n crossOrigin,\n draggable = false,\n emojiScaleWithBackground = true,\n fallbackColors,\n fallbackVariant = 'marble',\n loading,\n ref,\n shadow,\n shape = 'square',\n size: sizeProp,\n sliceText = true,\n style,\n styles: customStyles,\n title,\n tooltipProps,\n unoptimized,\n variant = 'borderless',\n xstyle,\n contentXstyle,\n nativeTitle,\n ...rest\n }) => {\n const size = sizeProp ?? 48;\n const isStringAvatar = typeof avatar === 'string';\n\n const [isImgError, setIsImgError] = useState(false);\n\n const isUrlOrElement = useMemo(() => isDefaultAntAvatar(avatar), [avatar]);\n\n const emoji = useMemo(\n () => (avatar && isStringAvatar && !isUrlOrElement ? getEmoji(avatar) : undefined),\n [avatar, isStringAvatar, isUrlOrElement],\n );\n\n const text = isUrlOrElement ? title : typeof avatar === 'string' ? avatar : undefined;\n\n const imgAlt = alt || title || 'avatar';\n\n const hasBackground = hasValidBackground(background);\n const showImage = isUrlOrElement && isStringAvatar && !isImgError;\n const showElement = isUrlOrElement && !isStringAvatar && !isImgError;\n\n // Plain text avatars (a name, initials) are treated as a seed like `title`; only\n // `fallbackVariant=\"text\"` renders them as uppercase text.\n const fallbackSeed = getAvatarFallbackSeed(avatar, title, alt);\n const showFallback =\n fallbackVariant !== 'text' && !!fallbackSeed && !emoji && !showImage && !showElement;\n const colors = fallbackColors?.length ? fallbackColors : AVATAR_FALLBACK_COLORS;\n\n const customAvatar = useMemo(\n () =>\n emoji ? (\n <FluentEmoji\n emoji={emoji}\n size={calculateEmojiSize(size, hasBackground, emojiScaleWithBackground)}\n type={animation ? 'anim' : '3d'}\n unoptimized={unoptimized}\n />\n ) : (\n formatAvatarText(text || title, sliceText)\n ),\n [\n animation,\n emoji,\n hasBackground,\n size,\n sliceText,\n text,\n title,\n unoptimized,\n emojiScaleWithBackground,\n ],\n );\n\n const customSize = sizeProp !== undefined;\n const showDefaultBackground =\n !background && !showFallback && !((isUrlOrElement && !isImgError) || emoji);\n\n return (\n <div\n {...toDataAttributes({ shadow, shape, variant })}\n {...rest}\n ref={ref}\n title={nativeTitle}\n className={\n styleProps(\n [\n styles.root,\n variantStyles[variant],\n shadow && styles.shadow,\n !customSize && styles.defaultSize,\n !customSize && !!emoji && styles.defaultEmojiFont,\n shape === 'circle' ? styles.circle : !customSize && styles.defaultSquare,\n showDefaultBackground && styles.defaultBackground,\n !background && styles.defaultColor,\n !!rest?.onClick && styles.clickable,\n xstyle,\n ],\n clsx(avatarClasses(), className, classNames?.root),\n ).className\n }\n style={{\n ...(background && { backgroundColor: background, color: safeReadableColor(background) }),\n ...(customSize && {\n fontSize: size * (emoji ? 0.7 : 0.5),\n height: size,\n width: size,\n ...(shape !== 'circle' && { borderRadius: size < 24 ? '33%' : Math.max(size / 6, 2) }),\n }),\n ...(bordered && {\n boxShadow: `${cssVar.colorBgLayout} 0 0 0 2px, ${borderedColor || cssVar.colorTextTertiary} 0 0 0 4px`,\n }),\n ...style,\n ...customStyles?.root,\n }}\n >\n {loading && (\n <Center\n flex={'none'}\n height={'100%'}\n width={'100%'}\n {...styleProps(\n styles.loading,\n clsx(avatarClasses('loading'), classNames?.loading),\n customStyles?.loading,\n )}\n >\n <Icon spin icon={Loader2} />\n </Center>\n )}\n {typeof avatar === 'string' && showImage && (\n <img\n alt={imgAlt}\n crossOrigin={crossOrigin}\n draggable={draggable}\n height={size}\n loading={'lazy'}\n src={avatar}\n width={size}\n {...styleProps(\n styles.img,\n clsx(avatarClasses('img'), classNames?.img),\n customStyles?.img,\n )}\n onError={() => setIsImgError(true)}\n />\n )}\n {showFallback && (\n <BoringAvatar\n square\n aria-label={imgAlt}\n colors={colors}\n name={fallbackSeed}\n size={'100%'}\n variant={fallbackVariant}\n {...styleProps(\n styles.fallback,\n clsx(avatarClasses('fallback'), classNames?.fallback),\n customStyles?.fallback,\n )}\n />\n )}\n {!showImage && !showFallback && (\n <span\n {...styleProps(\n [styles.content, contentXstyle],\n clsx(avatarClasses('content'), classNames?.content),\n customStyles?.content,\n )}\n >\n {showElement ? avatar : customAvatar}\n </span>\n )}\n </div>\n );\n },\n);\n\nAvatarImpl.displayName = 'Avatar';\n\nconst Avatar = AvatarImpl as (props: AvatarProps) => ReactNode;\n\nexport default Avatar;\n"],"mappings":"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"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
3
5
|
import { cssVar } from "../../styles/stylex/cssVar.stylex.mjs";
|
|
4
6
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
5
7
|
import { AvatarImpl } from "../Avatar.mjs";
|
|
6
8
|
import { avatarGroupClasses } from "../stable.mjs";
|
|
7
9
|
import { styles } from "./style.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { memo } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/Avatar/AvatarGroup/index.tsx
|
|
12
|
+
const pressOnKey = (event) => {
|
|
13
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.currentTarget.click();
|
|
16
|
+
};
|
|
12
17
|
const AvatarGroup = memo(({ items, max, gap, variant = "borderless", bordered, shadow, size: sizeProp, background, animation, draggable, fallbackColors, fallbackVariant, classNames, shape, styles: customStyles, onClick, ref, zIndexReverse, className, ...rest }) => {
|
|
13
18
|
const size = sizeProp ?? 48;
|
|
14
19
|
const avatars = max ? items.slice(0, max) : items;
|
|
15
20
|
const restAvatars = items.slice(max, items.length);
|
|
16
21
|
const gapValue = gap ?? Math.floor(-size / 4);
|
|
22
|
+
const hiddenNames = restAvatars.map((item) => item.label ?? item.title ?? item.alt).filter(Boolean).join(", ");
|
|
17
23
|
const avatarProps = {
|
|
18
24
|
animation,
|
|
19
25
|
background,
|
|
@@ -33,31 +39,57 @@ const AvatarGroup = memo(({ items, max, gap, variant = "borderless", bordered, s
|
|
|
33
39
|
...styleProps(styles.root, clsx$1(avatarGroupClasses(), className)),
|
|
34
40
|
...rest,
|
|
35
41
|
children: [avatars.map((avatar, index) => {
|
|
36
|
-
const { key, style: avatarStyle, className: avatarClassName, ringColor, ...restAvatarProps } = avatar;
|
|
37
|
-
|
|
42
|
+
const { key, style: avatarStyle, className: avatarClassName, ringColor, label, pressed, disabled, badge, onClick: itemClick, ...restAvatarProps } = avatar;
|
|
43
|
+
const interactive = !disabled && (!!onClick || !!itemClick);
|
|
44
|
+
const stacking = {
|
|
45
|
+
marginLeft: index === 0 ? 0 : gapValue,
|
|
46
|
+
zIndex: badge ? items.length + 1 : zIndexReverse ? items.length - index : index
|
|
47
|
+
};
|
|
48
|
+
const node = /* @__PURE__ */ jsx(AvatarImpl, {
|
|
49
|
+
"aria-disabled": disabled || void 0,
|
|
50
|
+
"aria-label": label,
|
|
51
|
+
"aria-pressed": interactive ? !!pressed : void 0,
|
|
38
52
|
className: clsx$1(avatarGroupClasses("avatar"), classNames?.avatar, avatarClassName),
|
|
53
|
+
nativeTitle: label,
|
|
54
|
+
role: interactive ? "button" : void 0,
|
|
55
|
+
tabIndex: interactive ? 0 : void 0,
|
|
39
56
|
xstyle: styles.avatar,
|
|
40
57
|
style: {
|
|
41
|
-
|
|
42
|
-
zIndex: zIndexReverse ? items.length - index : index,
|
|
58
|
+
...!badge && stacking,
|
|
43
59
|
...ringColor && { boxShadow: `0 0 0 2px ${ringColor}` },
|
|
44
60
|
...customStyles?.avatar,
|
|
45
61
|
...avatarStyle
|
|
46
62
|
},
|
|
47
|
-
|
|
63
|
+
onKeyDown: interactive ? pressOnKey : void 0,
|
|
64
|
+
onClick: interactive ? itemClick ?? (() => onClick?.({
|
|
48
65
|
item: avatar,
|
|
49
66
|
key
|
|
50
|
-
}),
|
|
67
|
+
})) : void 0,
|
|
51
68
|
...avatarProps,
|
|
52
69
|
...restAvatarProps
|
|
70
|
+
}, badge ? void 0 : key);
|
|
71
|
+
if (!badge) return node;
|
|
72
|
+
const item = styleProps(styles.item, avatarGroupClasses("item"));
|
|
73
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
74
|
+
className: item.className,
|
|
75
|
+
style: {
|
|
76
|
+
...item.style,
|
|
77
|
+
...stacking
|
|
78
|
+
},
|
|
79
|
+
children: [node, /* @__PURE__ */ jsx("span", {
|
|
80
|
+
...styleProps(styles.badge, avatarGroupClasses("badge")),
|
|
81
|
+
children: badge
|
|
82
|
+
})]
|
|
53
83
|
}, key);
|
|
54
84
|
}), max && restAvatars.length > 0 && /* @__PURE__ */ jsx(AvatarImpl, {
|
|
55
85
|
...avatarProps,
|
|
86
|
+
"aria-label": hiddenNames || void 0,
|
|
56
87
|
avatar: `+${restAvatars.length}`,
|
|
57
88
|
background: cssVar.colorText,
|
|
58
89
|
className: clsx$1(avatarGroupClasses("count"), classNames?.count),
|
|
59
90
|
contentXstyle: styles.count,
|
|
60
91
|
fallbackVariant: "text",
|
|
92
|
+
nativeTitle: hiddenNames || void 0,
|
|
61
93
|
sliceText: false,
|
|
62
94
|
xstyle: styles.avatar,
|
|
63
95
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Flexbox","clsx","Avatar"],"sources":["../../../src/Avatar/AvatarGroup/index.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { AvatarImpl as Avatar } from '../Avatar';\nimport { avatarGroupClasses } from '../stable';\nimport type { AvatarGroupProps } from '../type';\nimport { styles } from './style';\n\nconst AvatarGroup = memo<AvatarGroupProps>(\n ({\n items,\n max,\n gap,\n variant = 'borderless',\n bordered,\n shadow,\n size: sizeProp,\n background,\n animation,\n draggable,\n fallbackColors,\n fallbackVariant,\n classNames,\n shape,\n styles: customStyles,\n onClick,\n ref,\n zIndexReverse,\n className,\n ...rest\n }) => {\n const size = sizeProp ?? 48;\n const avatars = max ? items.slice(0, max) : items;\n const restAvatars = items.slice(max, items.length);\n const gapValue = gap ?? Math.floor(-size / 4);\n\n const avatarProps = {\n animation,\n background,\n bordered,\n draggable,\n fallbackColors,\n fallbackVariant,\n shadow,\n shape,\n size: sizeProp,\n variant,\n };\n\n return (\n <Flexbox\n horizontal\n gap={gap}\n ref={ref}\n {...styleProps(styles.root, clsx(avatarGroupClasses(), className))}\n {...rest}\n >\n {avatars.map((avatar, index) => {\n const {\n key,\n style: avatarStyle,\n className: avatarClassName,\n ringColor,\n ...restAvatarProps\n } = avatar;\n
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Flexbox","clsx","Avatar"],"sources":["../../../src/Avatar/AvatarGroup/index.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { type KeyboardEvent, memo } from 'react';\n\nimport { Flexbox } from '@/Flex';\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { AvatarImpl as Avatar } from '../Avatar';\nimport { avatarGroupClasses } from '../stable';\nimport type { AvatarGroupProps } from '../type';\nimport { styles } from './style';\n\nconst pressOnKey = (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Enter' && event.key !== ' ') return;\n event.preventDefault();\n event.currentTarget.click();\n};\n\nconst AvatarGroup = memo<AvatarGroupProps>(\n ({\n items,\n max,\n gap,\n variant = 'borderless',\n bordered,\n shadow,\n size: sizeProp,\n background,\n animation,\n draggable,\n fallbackColors,\n fallbackVariant,\n classNames,\n shape,\n styles: customStyles,\n onClick,\n ref,\n zIndexReverse,\n className,\n ...rest\n }) => {\n const size = sizeProp ?? 48;\n const avatars = max ? items.slice(0, max) : items;\n const restAvatars = items.slice(max, items.length);\n const gapValue = gap ?? Math.floor(-size / 4);\n const hiddenNames = restAvatars\n .map((item) => item.label ?? item.title ?? item.alt)\n .filter(Boolean)\n .join(', ');\n\n const avatarProps = {\n animation,\n background,\n bordered,\n draggable,\n fallbackColors,\n fallbackVariant,\n shadow,\n shape,\n size: sizeProp,\n variant,\n };\n\n return (\n <Flexbox\n horizontal\n gap={gap}\n ref={ref}\n {...styleProps(styles.root, clsx(avatarGroupClasses(), className))}\n {...rest}\n >\n {avatars.map((avatar, index) => {\n const {\n key,\n style: avatarStyle,\n className: avatarClassName,\n ringColor,\n label,\n pressed,\n disabled,\n badge,\n onClick: itemClick,\n ...restAvatarProps\n } = avatar;\n const interactive = !disabled && (!!onClick || !!itemClick);\n const stacking = {\n marginLeft: index === 0 ? 0 : gapValue,\n zIndex: badge ? items.length + 1 : zIndexReverse ? items.length - index : index,\n };\n const node = (\n <Avatar\n aria-disabled={disabled || undefined}\n aria-label={label}\n aria-pressed={interactive ? !!pressed : undefined}\n className={clsx(avatarGroupClasses('avatar'), classNames?.avatar, avatarClassName)}\n key={badge ? undefined : key}\n nativeTitle={label}\n role={interactive ? 'button' : undefined}\n tabIndex={interactive ? 0 : undefined}\n xstyle={styles.avatar}\n style={{\n ...(!badge && stacking),\n ...(ringColor && { boxShadow: `0 0 0 2px ${ringColor}` }),\n ...customStyles?.avatar,\n ...avatarStyle,\n }}\n onKeyDown={interactive ? pressOnKey : undefined}\n onClick={\n interactive ? (itemClick ?? (() => onClick?.({ item: avatar, key }))) : undefined\n }\n {...avatarProps}\n {...restAvatarProps}\n />\n );\n if (!badge) return node;\n const item = styleProps(styles.item, avatarGroupClasses('item'));\n return (\n <span className={item.className} key={key} style={{ ...item.style, ...stacking }}>\n {node}\n <span {...styleProps(styles.badge, avatarGroupClasses('badge'))}>{badge}</span>\n </span>\n );\n })}\n {max && restAvatars.length > 0 && (\n <Avatar\n {...avatarProps}\n aria-label={hiddenNames || undefined}\n avatar={`+${restAvatars.length}`}\n background={cssVar.colorText}\n className={clsx(avatarGroupClasses('count'), classNames?.count)}\n contentXstyle={styles.count}\n fallbackVariant={'text'}\n nativeTitle={hiddenNames || undefined}\n sliceText={false}\n xstyle={styles.avatar}\n style={{\n marginLeft: gapValue,\n zIndex: zIndexReverse ? 0 : avatars.length,\n ...customStyles?.count,\n }}\n />\n )}\n </Flexbox>\n );\n },\n);\n\nAvatarGroup.displayName = 'AvatarGroup';\n\nexport default AvatarGroup;\n"],"mappings":"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"}
|
|
@@ -14,6 +14,21 @@ const styles = {
|
|
|
14
14
|
kMwMTN: "lb15g0kca",
|
|
15
15
|
kGuDYH: "lbsfzzmd",
|
|
16
16
|
$$css: true
|
|
17
|
+
},
|
|
18
|
+
item: {
|
|
19
|
+
kUk6DE: "lb1okw0bk",
|
|
20
|
+
k1xSpc: "lb3nfvp2",
|
|
21
|
+
kVAEAm: "lb1n2onr6",
|
|
22
|
+
$$css: true
|
|
23
|
+
},
|
|
24
|
+
badge: {
|
|
25
|
+
k1xSpc: "lb78zum5",
|
|
26
|
+
kt4wiu: "lbtijo5x",
|
|
27
|
+
kfzvcC: "lb47corl",
|
|
28
|
+
kVAEAm: "lb10l6tqk",
|
|
29
|
+
k3aq6I: "lbdu4413",
|
|
30
|
+
krVfgx: "lb1ey2m1c",
|
|
31
|
+
$$css: true
|
|
17
32
|
}
|
|
18
33
|
};
|
|
19
34
|
export { styles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/Avatar/AvatarGroup/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\nexport const styles = stylex.create({\n avatar: {\n borderColor: cssVar.colorBgContainer,\n borderStyle: 'solid',\n borderWidth: 2,\n },\n root: {\n position: 'relative',\n },\n count: {\n color: cssVar.colorBgLayout,\n fontSize: '0.8em',\n },\n});\n"],"mappings":";AAGA,MAAa,SAAS;CACpB,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;AACF"}
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/Avatar/AvatarGroup/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\nexport const styles = stylex.create({\n avatar: {\n borderColor: cssVar.colorBgContainer,\n borderStyle: 'solid',\n borderWidth: 2,\n },\n root: {\n position: 'relative',\n },\n count: {\n color: cssVar.colorBgLayout,\n fontSize: '0.8em',\n },\n item: {\n flex: 'none',\n display: 'inline-flex',\n position: 'relative',\n },\n badge: {\n display: 'flex',\n insetInlineEnd: 0,\n pointerEvents: 'none',\n position: 'absolute',\n transform: 'translate(40%, 30%)',\n bottom: 0,\n },\n});\n"],"mappings":";AAGA,MAAa,SAAS;CACpB,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;AACF"}
|
package/es/Avatar/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactNode, RefAttributes } from "react";
|
|
1
2
|
import AvatarGroup from "./AvatarGroup/index.mjs";
|
|
2
3
|
import { AvatarClassNames, AvatarFallbackVariant, AvatarGeneratedFallbackVariant, AvatarGroupItemType, AvatarGroupProps, AvatarProps, AvatarStyles } from "./type.mjs";
|
|
3
|
-
import { ReactNode, RefAttributes } from "react";
|
|
4
4
|
interface IAvatar {
|
|
5
5
|
(props: AvatarProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
6
6
|
Group: typeof AvatarGroup;
|
package/es/Avatar/stable.mjs
CHANGED
|
@@ -16,7 +16,12 @@ const avatarClasses = stableClasses({
|
|
|
16
16
|
});
|
|
17
17
|
const avatarGroupClasses = stableClasses({
|
|
18
18
|
block: "avatar-group",
|
|
19
|
-
elements: [
|
|
19
|
+
elements: [
|
|
20
|
+
"avatar",
|
|
21
|
+
"count",
|
|
22
|
+
"item",
|
|
23
|
+
"badge"
|
|
24
|
+
]
|
|
20
25
|
});
|
|
21
26
|
export { avatarClasses, avatarGroupClasses };
|
|
22
27
|
|
package/es/Avatar/stable.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stable.mjs","names":[],"sources":["../../src/Avatar/stable.ts"],"sourcesContent":["import { stableClasses } from '@/utils/bem';\n\nexport const avatarClasses = stableClasses({\n block: 'avatar',\n dataAttributes: ['shape', 'variant', 'shadow'],\n elements: ['loading', 'img', 'content', 'fallback'],\n});\n\nexport const avatarGroupClasses = stableClasses({\n block: 'avatar-group',\n elements: ['avatar', 'count'],\n});\n"],"mappings":";;AAEA,MAAa,gBAAgB,cAAc;CACzC,OAAO;CACP,gBAAgB;EAAC;EAAS;EAAW;CAAQ;CAC7C,UAAU;EAAC;EAAW;EAAO;EAAW;CAAU;AACpD,CAAC;AAED,MAAa,qBAAqB,cAAc;CAC9C,OAAO;CACP,UAAU
|
|
1
|
+
{"version":3,"file":"stable.mjs","names":[],"sources":["../../src/Avatar/stable.ts"],"sourcesContent":["import { stableClasses } from '@/utils/bem';\n\nexport const avatarClasses = stableClasses({\n block: 'avatar',\n dataAttributes: ['shape', 'variant', 'shadow'],\n elements: ['loading', 'img', 'content', 'fallback'],\n});\n\nexport const avatarGroupClasses = stableClasses({\n block: 'avatar-group',\n elements: ['avatar', 'count', 'item', 'badge'],\n});\n"],"mappings":";;AAEA,MAAa,gBAAgB,cAAc;CACzC,OAAO;CACP,gBAAgB;EAAC;EAAS;EAAW;CAAQ;CAC7C,UAAU;EAAC;EAAW;EAAO;EAAW;CAAU;AACpD,CAAC;AAED,MAAa,qBAAqB,cAAc;CAC9C,OAAO;CACP,UAAU;EAAC;EAAU;EAAS;EAAQ;CAAO;AAC/C,CAAC"}
|
package/es/Avatar/type.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlexboxProps } from "../Flex/type.mjs";
|
|
2
|
-
import "../Flex/index.mjs";
|
|
3
2
|
import { CSSProperties, ComponentProps, ReactNode, Ref } from "react";
|
|
3
|
+
import "../Flex/index.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Generated fallback styles rendered by `boring-avatars`.
|
|
6
6
|
*/
|
|
@@ -125,7 +125,23 @@ export interface AvatarProps extends ComponentProps<'div'> {
|
|
|
125
125
|
variant?: 'borderless' | 'filled' | 'outlined';
|
|
126
126
|
}
|
|
127
127
|
export interface AvatarGroupItemType extends Pick<AvatarProps, 'avatar' | 'title' | 'alt' | 'onClick' | 'style' | 'className' | 'loading' | 'fallbackVariant'> {
|
|
128
|
+
/**
|
|
129
|
+
* Shown at the bottom end of the avatar, outside its clipping; the item is lifted above its neighbours
|
|
130
|
+
*/
|
|
131
|
+
badge?: ReactNode;
|
|
132
|
+
/**
|
|
133
|
+
* Not clickable, not focusable, announced as disabled
|
|
134
|
+
*/
|
|
135
|
+
disabled?: boolean;
|
|
128
136
|
key: string;
|
|
137
|
+
/**
|
|
138
|
+
* Accessible name and native tooltip of the avatar; also names the item in the `+N` count tooltip
|
|
139
|
+
*/
|
|
140
|
+
label?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Announces a clickable item as pressed, e.g. the person being followed
|
|
143
|
+
*/
|
|
144
|
+
pressed?: boolean;
|
|
129
145
|
/**
|
|
130
146
|
* Draws a 2px ring in this color outside the separator border, e.g. a presence or status color
|
|
131
147
|
*/
|
package/es/Badge/Badge.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
3
5
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
4
6
|
import { badgeClasses } from "./stable.mjs";
|
|
5
7
|
import { statusColor, styles } from "./style.mjs";
|
|
6
|
-
import clsx$1 from "clsx";
|
|
7
|
-
import { memo } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/Badge/Badge.tsx
|
|
10
10
|
const pillSizeStyles = {
|