@snowui-design-system/components 0.2.0-alpha.9 → 0.3.0-alpha.1
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/LICENSE +236 -0
- package/README.md +30 -10
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/component-catalog.json +1084 -113
- package/dist/client/blocks/SearchPopup.d.ts +29 -0
- package/dist/client/blocks/SearchPopup.js +375 -0
- package/dist/client/blocks/Sidebar.d.ts +48 -0
- package/dist/client/blocks/Sidebar.js +869 -0
- package/dist/client/blocks/SidebarItem.d.ts +25 -0
- package/dist/client/blocks/SidebarItem.js +437 -0
- package/dist/client/blocks/SidebarSection.d.ts +22 -0
- package/dist/client/blocks/SidebarSection.js +326 -0
- package/dist/client/blocks/index.d.ts +4 -0
- package/dist/client/blocks/index.js +5 -0
- package/dist/client/blocks/sidebar-context.d.ts +30 -0
- package/dist/client/blocks/sidebar-context.js +9 -0
- package/dist/client/compat.d.ts +4 -0
- package/dist/client/compat.js +4 -0
- package/dist/client/components/Accordion.d.ts +35 -0
- package/dist/client/components/Accordion.js +302 -0
- package/dist/client/components/AccordionItem.d.ts +11 -0
- package/dist/client/components/AccordionItem.js +311 -0
- package/dist/client/components/Avatar.d.ts +21 -0
- package/dist/client/components/Avatar.js +641 -0
- package/dist/client/components/AvatarGroup.d.ts +16 -0
- package/dist/client/components/AvatarGroup.js +599 -0
- package/dist/client/components/Badge.d.ts +20 -0
- package/dist/client/components/Badge.js +581 -0
- package/dist/client/components/BarChart.d.ts +120 -0
- package/dist/client/components/BarChart.js +2481 -0
- package/dist/client/components/BlurText.d.ts +21 -0
- package/dist/client/components/BlurText.js +393 -0
- package/dist/client/components/Breadcrumb.d.ts +26 -0
- package/dist/client/components/Breadcrumb.js +372 -0
- package/dist/client/components/Button.d.ts +33 -0
- package/dist/client/components/Button.js +880 -0
- package/dist/client/components/ButtonGroup.d.ts +15 -0
- package/dist/client/components/ButtonGroup.js +221 -0
- package/dist/client/components/Card.d.ts +18 -0
- package/dist/client/components/Card.js +364 -0
- package/dist/client/components/ChartGroup.d.ts +53 -0
- package/dist/client/components/ChartGroup.js +608 -0
- package/dist/client/components/Checkbox.d.ts +20 -0
- package/dist/client/components/Checkbox.js +218 -0
- package/dist/client/components/Chip.d.ts +12 -0
- package/dist/client/components/Chip.js +154 -0
- package/dist/client/components/CircularChart.d.ts +73 -0
- package/dist/client/components/CircularChart.js +1554 -0
- package/dist/client/components/CodeBlock.d.ts +40 -0
- package/dist/client/components/CodeBlock.js +1322 -0
- package/dist/client/components/ColorSchemeButton.d.ts +20 -0
- package/dist/client/components/ColorSchemeButton.js +252 -0
- package/dist/client/components/CopyButton.d.ts +23 -0
- package/dist/client/components/CopyButton.js +285 -0
- package/dist/client/components/CopyLink.d.ts +20 -0
- package/dist/client/components/CopyLink.js +157 -0
- package/dist/client/components/DataTable.d.ts +116 -0
- package/dist/client/components/DataTable.js +752 -0
- package/dist/client/components/Dialog.d.ts +36 -0
- package/dist/client/components/Dialog.js +755 -0
- package/dist/client/components/ExpandButton.d.ts +18 -0
- package/dist/client/components/ExpandButton.js +198 -0
- package/dist/client/components/Field.d.ts +19 -0
- package/dist/client/components/Field.js +290 -0
- package/dist/client/components/FlowText.d.ts +46 -0
- package/dist/client/components/FlowText.js +1248 -0
- package/dist/client/components/Frame.d.ts +23 -0
- package/dist/client/components/Frame.js +409 -0
- package/dist/client/components/GaugeChart.d.ts +73 -0
- package/dist/client/components/GaugeChart.js +1570 -0
- package/dist/client/components/Gradient.d.ts +20 -0
- package/dist/client/components/Gradient.js +591 -0
- package/dist/client/components/GradientMotion.d.ts +30 -0
- package/dist/client/components/GradientMotion.js +707 -0
- package/dist/client/components/Icon.d.ts +19 -0
- package/dist/client/components/Icon.js +381 -0
- package/dist/client/components/IconProvider.d.ts +11 -0
- package/dist/client/components/IconProvider.js +28 -0
- package/dist/client/components/Image.d.ts +18 -0
- package/dist/client/components/Image.js +545 -0
- package/dist/client/components/ImageGroup.d.ts +18 -0
- package/dist/client/components/ImageGroup.js +167 -0
- package/dist/client/components/ImageViewer.d.ts +23 -0
- package/dist/client/components/ImageViewer.js +660 -0
- package/dist/client/components/Indicator.d.ts +31 -0
- package/dist/client/components/Indicator.js +418 -0
- package/dist/client/components/Input.d.ts +67 -0
- package/dist/client/components/Input.js +2108 -0
- package/dist/client/components/Kbd.d.ts +10 -0
- package/dist/client/components/Kbd.js +68 -0
- package/dist/client/components/LineChart.d.ts +118 -0
- package/dist/client/components/LineChart.js +2413 -0
- package/dist/client/components/Link.d.ts +29 -0
- package/dist/client/components/Link.js +461 -0
- package/dist/client/components/Listbox.d.ts +43 -0
- package/dist/client/components/Listbox.js +844 -0
- package/dist/client/components/LocaleProvider.d.ts +11 -0
- package/dist/client/components/LocaleProvider.js +23 -0
- package/dist/client/components/MenuItem.d.ts +28 -0
- package/dist/client/components/MenuItem.js +348 -0
- package/dist/client/components/NumberFlow.d.ts +38 -0
- package/dist/client/components/NumberFlow.js +1648 -0
- package/dist/client/components/NumericText.d.ts +30 -0
- package/dist/client/components/NumericText.js +355 -0
- package/dist/client/components/OverflowAction.d.ts +23 -0
- package/dist/client/components/OverflowAction.js +316 -0
- package/dist/client/components/OverflowActions.d.ts +57 -0
- package/dist/client/components/OverflowActions.js +694 -0
- package/dist/client/components/Pagination.d.ts +38 -0
- package/dist/client/components/Pagination.js +1262 -0
- package/dist/client/components/Popover.d.ts +25 -0
- package/dist/client/components/Popover.js +615 -0
- package/dist/client/components/Progress.d.ts +25 -0
- package/dist/client/components/Progress.js +315 -0
- package/dist/client/components/Radio.d.ts +18 -0
- package/dist/client/components/Radio.js +259 -0
- package/dist/client/components/ScrambleText.d.ts +62 -0
- package/dist/client/components/ScrambleText.js +456 -0
- package/dist/client/components/ScrollArea.d.ts +18 -0
- package/dist/client/components/ScrollArea.js +185 -0
- package/dist/client/components/SearchBox.d.ts +28 -0
- package/dist/client/components/SearchBox.js +313 -0
- package/dist/client/components/SearchInput.d.ts +20 -0
- package/dist/client/components/SearchInput.js +144 -0
- package/dist/client/components/Segmented.d.ts +23 -0
- package/dist/client/components/Segmented.js +123 -0
- package/dist/client/components/Select.d.ts +65 -0
- package/dist/client/components/Select.js +737 -0
- package/dist/client/components/SelectButton.d.ts +51 -0
- package/dist/client/components/SelectButton.js +351 -0
- package/dist/client/components/Separator.d.ts +15 -0
- package/dist/client/components/Separator.js +151 -0
- package/dist/client/components/SidePanel.d.ts +54 -0
- package/dist/client/components/SidePanel.js +961 -0
- package/dist/client/components/Skeleton.d.ts +41 -0
- package/dist/client/components/Skeleton.js +528 -0
- package/dist/client/components/Slider.d.ts +35 -0
- package/dist/client/components/Slider.js +531 -0
- package/dist/client/components/SlotText.d.ts +67 -0
- package/dist/client/components/SlotText.js +674 -0
- package/dist/client/components/SnowUILogo.d.ts +14 -0
- package/dist/client/components/SnowUILogo.js +624 -0
- package/dist/client/components/Spinner.d.ts +15 -0
- package/dist/client/components/Spinner.js +188 -0
- package/dist/client/components/StyleButton.d.ts +20 -0
- package/dist/client/components/StyleButton.js +206 -0
- package/dist/client/components/Switch.d.ts +16 -0
- package/dist/client/components/Switch.js +171 -0
- package/dist/client/components/Tab.d.ts +46 -0
- package/dist/client/components/Tab.js +482 -0
- package/dist/client/components/Table.d.ts +18 -0
- package/dist/client/components/Table.js +366 -0
- package/dist/client/components/TableBody.d.ts +24 -0
- package/dist/client/components/TableBody.js +315 -0
- package/dist/client/components/TableCell.d.ts +26 -0
- package/dist/client/components/TableCell.js +703 -0
- package/dist/client/components/TableHead.d.ts +29 -0
- package/dist/client/components/TableHead.js +558 -0
- package/dist/client/components/TableHeader.d.ts +9 -0
- package/dist/client/components/TableHeader.js +72 -0
- package/dist/client/components/TableRow.d.ts +12 -0
- package/dist/client/components/TableRow.js +225 -0
- package/dist/client/components/TableToolbar.d.ts +59 -0
- package/dist/client/components/TableToolbar.js +798 -0
- package/dist/client/components/Tag.d.ts +20 -0
- package/dist/client/components/Tag.js +363 -0
- package/dist/client/components/Text.d.ts +27 -0
- package/dist/client/components/Text.js +872 -0
- package/dist/client/components/Textarea.d.ts +50 -0
- package/dist/client/components/Textarea.js +479 -0
- package/dist/client/components/Toast.d.ts +33 -0
- package/dist/client/components/Toast.js +328 -0
- package/dist/client/components/Toaster.d.ts +28 -0
- package/dist/client/components/Toaster.js +528 -0
- package/dist/client/components/Tooltip.d.ts +17 -0
- package/dist/client/components/Tooltip.js +1920 -0
- package/dist/client/context.d.ts +234 -0
- package/dist/client/context.js +99 -0
- package/dist/client/dev.d.ts +0 -0
- package/dist/client/dev.js +7 -0
- package/dist/client/i18n/locale.d.ts +8 -0
- package/dist/client/i18n/locale.js +39 -0
- package/dist/client/i18n/messages.d.ts +6 -0
- package/dist/client/i18n/messages.js +36 -0
- package/dist/client/index.d.ts +125 -0
- package/dist/client/index.js +114 -0
- package/dist/client/internal/StyleButtonLogo.d.ts +6 -0
- package/dist/client/internal/StyleButtonLogo.js +69 -0
- package/dist/client/internal/code-block/format.d.ts +1 -0
- package/dist/client/internal/code-block/format.js +88 -0
- package/dist/client/internal/code-block/prettier-svelte.d.ts +8 -0
- package/dist/client/internal/component-icon/ComponentIcon.d.ts +14 -0
- package/dist/client/internal/component-icon/ComponentIcon.js +146 -0
- package/dist/client/internal/component-icon/builtin-icon-data.d.ts +7 -0
- package/dist/client/internal/component-icon/builtin-icon-data.js +236 -0
- package/dist/client/internal/component-icon/index.d.ts +2 -0
- package/dist/client/internal/component-icon/index.js +1 -0
- package/dist/client/internal/snow-ui-logo/Wordmark.d.ts +12 -0
- package/dist/client/internal/snow-ui-logo/Wordmark.js +554 -0
- package/dist/client/internal/snow-ui-logo/emoji-metrics.d.ts +7 -0
- package/dist/client/internal/snow-ui-logo/emoji-metrics.js +37 -0
- package/dist/client/keys.d.ts +33 -0
- package/dist/client/keys.js +33 -0
- package/dist/client/lib/AdaptiveContrastMask.d.ts +11 -0
- package/dist/client/lib/AdaptiveContrastMask.js +132 -0
- package/dist/client/lib/adaptive-contrast-renderer.d.ts +2 -0
- package/dist/client/lib/adaptive-contrast-renderer.js +2 -0
- package/dist/client/lib/adaptive-contrast.d.ts +9 -0
- package/dist/client/lib/adaptive-contrast.js +7 -0
- package/dist/client/lib/backdrop.d.ts +2 -0
- package/dist/client/lib/backdrop.js +1 -0
- package/dist/client/lib/chart/ChartHoverPanel.d.ts +17 -0
- package/dist/client/lib/chart/ChartHoverPanel.js +434 -0
- package/dist/client/lib/chart/appearance-timeline.d.ts +26 -0
- package/dist/client/lib/chart/appearance-timeline.js +142 -0
- package/dist/client/lib/chart/appearance-viewport.d.ts +24 -0
- package/dist/client/lib/chart/appearance-viewport.js +103 -0
- package/dist/client/lib/chart/arc-path.d.ts +1 -0
- package/dist/client/lib/chart/arc-path.js +83 -0
- package/dist/client/lib/chart/axis.d.ts +41 -0
- package/dist/client/lib/chart/axis.js +276 -0
- package/dist/client/lib/chart/colors.d.ts +26 -0
- package/dist/client/lib/chart/colors.js +46 -0
- package/dist/client/lib/chart/geometry.d.ts +12 -0
- package/dist/client/lib/chart/geometry.js +35 -0
- package/dist/client/lib/chart/gradients.d.ts +25 -0
- package/dist/client/lib/chart/gradients.js +86 -0
- package/dist/client/lib/chart/group-context.d.ts +36 -0
- package/dist/client/lib/chart/group-context.js +1 -0
- package/dist/client/lib/chart/hover-label.d.ts +20 -0
- package/dist/client/lib/chart/hover-label.js +47 -0
- package/dist/client/lib/chart/hover-panel.d.ts +28 -0
- package/dist/client/lib/chart/hover-panel.js +13 -0
- package/dist/client/lib/chart/interaction.d.ts +4 -0
- package/dist/client/lib/chart/interaction.js +17 -0
- package/dist/client/lib/chart/pointer.d.ts +18 -0
- package/dist/client/lib/chart/pointer.js +41 -0
- package/dist/client/lib/chart/size.d.ts +13 -0
- package/dist/client/lib/chart/size.js +40 -0
- package/dist/client/lib/clipboard.d.ts +1 -0
- package/dist/client/lib/clipboard.js +8 -0
- package/dist/client/lib/color.d.ts +51 -0
- package/dist/client/lib/color.js +53 -0
- package/dist/client/lib/data-table.d.ts +15 -0
- package/dist/client/lib/data-table.js +47 -0
- package/dist/client/lib/date-format.d.ts +19 -0
- package/dist/client/lib/date-format.js +106 -0
- package/dist/client/lib/edge-fade.d.ts +28 -0
- package/dist/client/lib/edge-fade.js +28 -0
- package/dist/client/lib/floating-position.d.ts +33 -0
- package/dist/client/lib/floating-position.js +57 -0
- package/dist/client/lib/number-format.d.ts +21 -0
- package/dist/client/lib/number-format.js +81 -0
- package/dist/client/lib/overflow-actions-motion.d.ts +7 -0
- package/dist/client/lib/overflow-actions-motion.js +40 -0
- package/dist/client/lib/overlay-scrollbar.d.ts +12 -0
- package/dist/client/lib/overlay-scrollbar.js +239 -0
- package/dist/client/lib/overlay-trigger-timing.d.ts +7 -0
- package/dist/client/lib/overlay-trigger-timing.js +7 -0
- package/dist/client/lib/progressive-blur.d.ts +38 -0
- package/dist/client/lib/progressive-blur.js +159 -0
- package/dist/client/lib/resizable.d.ts +27 -0
- package/dist/client/lib/resizable.js +181 -0
- package/dist/client/lib/responsive-exit.d.ts +7 -0
- package/dist/client/lib/responsive-exit.js +71 -0
- package/dist/client/lib/search-filter.d.ts +36 -0
- package/dist/client/lib/search-filter.js +52 -0
- package/dist/client/lib/side-panel.d.ts +20 -0
- package/dist/client/lib/side-panel.js +27 -0
- package/dist/client/lib/split-pane.d.ts +29 -0
- package/dist/client/lib/split-pane.js +278 -0
- package/dist/client/lib/table-column-motion.d.ts +13 -0
- package/dist/client/lib/table-column-motion.js +68 -0
- package/dist/client/lib/table-context.d.ts +95 -0
- package/dist/client/lib/table-context.js +73 -0
- package/dist/client/lib/table-responsive.d.ts +13 -0
- package/dist/client/lib/table-responsive.js +280 -0
- package/dist/client/lib/table-role-blur.d.ts +4 -0
- package/dist/client/lib/table-role-blur.js +36 -0
- package/dist/client/lib/table-row-context.d.ts +5 -0
- package/dist/client/lib/table-row-context.js +15 -0
- package/dist/client/lib/table-selection-fade.d.ts +8 -0
- package/dist/client/lib/table-selection-fade.js +95 -0
- package/dist/client/lib/table-truncation.d.ts +24 -0
- package/dist/client/lib/table-truncation.js +58 -0
- package/dist/client/lib/text-motion/animation.d.ts +4 -0
- package/dist/client/lib/text-motion/animation.js +31 -0
- package/dist/client/lib/text-motion/character.d.ts +80 -0
- package/dist/client/lib/text-motion/character.js +481 -0
- package/dist/client/lib/text-motion/color.d.ts +22 -0
- package/dist/client/lib/text-motion/color.js +74 -0
- package/dist/client/lib/text-motion/format.d.ts +3 -0
- package/dist/client/lib/text-motion/format.js +16 -0
- package/dist/client/lib/text-motion/layout.d.ts +17 -0
- package/dist/client/lib/text-motion/layout.js +68 -0
- package/dist/client/lib/text-motion/numeric.d.ts +19 -0
- package/dist/client/lib/text-motion/numeric.js +151 -0
- package/dist/client/lib/text-motion/preference.d.ts +1 -0
- package/dist/client/lib/text-motion/preference.js +5 -0
- package/dist/client/lib/text-motion/sequence.d.ts +7 -0
- package/dist/client/lib/text-motion/sequence.js +17 -0
- package/dist/client/lib/text-motion/timeline.d.ts +18 -0
- package/dist/client/lib/text-motion/timeline.js +41 -0
- package/dist/client/lib/text-motion/types.d.ts +16 -0
- package/dist/client/lib/text-motion/types.js +1 -0
- package/dist/client/lib/text-motion/typography.d.ts +3 -0
- package/dist/client/lib/text-motion/typography.js +38 -0
- package/dist/client/lib/tooltip-behavior.d.ts +15 -0
- package/dist/client/lib/tooltip-behavior.js +20 -0
- package/dist/client/lib/tooltip-delay.d.ts +12 -0
- package/dist/client/lib/tooltip-delay.js +37 -0
- package/dist/client/lib/tooltip-motion-dismiss.d.ts +14 -0
- package/dist/client/lib/tooltip-motion-dismiss.js +124 -0
- package/dist/client/lib/tooltip-overlay.d.ts +28 -0
- package/dist/client/lib/tooltip-overlay.js +60 -0
- package/dist/client/lib/tooltip-pointer-speed.d.ts +5 -0
- package/dist/client/lib/tooltip-pointer-speed.js +40 -0
- package/dist/client/lib/truncate.d.ts +28 -0
- package/dist/client/lib/truncate.js +270 -0
- package/dist/client/logic/collapse.d.ts +5 -0
- package/dist/client/logic/collapse.js +4 -0
- package/dist/client/logic/component-icon.d.ts +24 -0
- package/dist/client/logic/component-icon.js +6 -0
- package/dist/client/logic/component-parts.d.ts +29 -0
- package/dist/client/logic/component-parts.js +76 -0
- package/dist/client/logic/continuous-hover.d.ts +60 -0
- package/dist/client/logic/continuous-hover.js +392 -0
- package/dist/client/logic/dialog.d.ts +29 -0
- package/dist/client/logic/dialog.js +70 -0
- package/dist/client/logic/frame-actions.d.ts +18 -0
- package/dist/client/logic/frame-actions.js +42 -0
- package/dist/client/logic/frame-class-state.d.ts +48 -0
- package/dist/client/logic/frame-class-state.js +118 -0
- package/dist/client/logic/frame-dom-runtime.d.ts +77 -0
- package/dist/client/logic/frame-dom-runtime.js +196 -0
- package/dist/client/logic/frame-field-control.d.ts +21 -0
- package/dist/client/logic/frame-field-control.js +55 -0
- package/dist/client/logic/frame-identity.d.ts +6 -0
- package/dist/client/logic/frame-identity.js +25 -0
- package/dist/client/logic/frame-inline-style.d.ts +30 -0
- package/dist/client/logic/frame-inline-style.js +429 -0
- package/dist/client/logic/frame-layout.d.ts +17 -0
- package/dist/client/logic/frame-layout.js +120 -0
- package/dist/client/logic/frame-motion-defaults.d.ts +44 -0
- package/dist/client/logic/frame-motion-defaults.js +538 -0
- package/dist/client/logic/frame-motion.d.ts +26 -0
- package/dist/client/logic/frame-motion.js +312 -0
- package/dist/client/logic/frame-orchestrator.d.ts +36 -0
- package/dist/client/logic/frame-orchestrator.js +273 -0
- package/dist/client/logic/frame-perception.d.ts +8 -0
- package/dist/client/logic/frame-perception.js +322 -0
- package/dist/client/logic/frame-prop-filter.d.ts +27 -0
- package/dist/client/logic/frame-prop-filter.js +218 -0
- package/dist/client/logic/frame-responsive.d.ts +15 -0
- package/dist/client/logic/frame-responsive.js +358 -0
- package/dist/client/logic/frame-scale-observer.d.ts +25 -0
- package/dist/client/logic/frame-scale-observer.js +73 -0
- package/dist/client/logic/frame-scale-resolver.d.ts +9 -0
- package/dist/client/logic/frame-scale-resolver.js +41 -0
- package/dist/client/logic/frame-skeleton-runtime.d.ts +29 -0
- package/dist/client/logic/frame-skeleton-runtime.js +108 -0
- package/dist/client/logic/frame-state-value.d.ts +6 -0
- package/dist/client/logic/frame-state-value.js +15 -0
- package/dist/client/logic/frame-state.d.ts +39 -0
- package/dist/client/logic/frame-state.js +538 -0
- package/dist/client/logic/frame-truncation.d.ts +33 -0
- package/dist/client/logic/frame-truncation.js +216 -0
- package/dist/client/logic/frame-types.d.ts +416 -0
- package/dist/client/logic/frame-types.js +1 -0
- package/dist/client/logic/frame-utils.d.ts +26 -0
- package/dist/client/logic/frame-utils.js +255 -0
- package/dist/client/logic/geometry-cache.d.ts +40 -0
- package/dist/client/logic/geometry-cache.js +102 -0
- package/dist/client/logic/image-preview.d.ts +24 -0
- package/dist/client/logic/image-preview.js +165 -0
- package/dist/client/logic/layout-flip.d.ts +34 -0
- package/dist/client/logic/layout-flip.js +207 -0
- package/dist/client/logic/morph.d.ts +7 -0
- package/dist/client/logic/motion-config.d.ts +87 -0
- package/dist/client/logic/motion-config.js +37 -0
- package/dist/client/logic/motion-engine.d.ts +19 -0
- package/dist/client/logic/motion-engine.js +246 -0
- package/dist/client/logic/motion-orchestration.d.ts +17 -0
- package/dist/client/logic/motion-orchestration.js +224 -0
- package/dist/client/logic/motion-types.d.ts +75 -0
- package/dist/client/logic/motion-types.js +16 -0
- package/dist/client/logic/motion.d.ts +88 -0
- package/dist/client/logic/motion.js +523 -0
- package/dist/client/logic/observer.d.ts +18 -0
- package/dist/client/logic/observer.js +130 -0
- package/dist/client/logic/overflow-actions.d.ts +24 -0
- package/dist/client/logic/overflow-actions.js +9 -0
- package/dist/client/logic/overlay-presence.d.ts +8 -0
- package/dist/client/logic/overlay-presence.js +73 -0
- package/dist/client/logic/popover.d.ts +56 -0
- package/dist/client/logic/popover.js +241 -0
- package/dist/client/logic/resource-size.d.ts +7 -0
- package/dist/client/logic/resource-size.js +43 -0
- package/dist/client/logic/responsive.d.ts +55 -0
- package/dist/client/logic/responsive.js +83 -0
- package/dist/client/logic/text-collapse.d.ts +25 -0
- package/dist/client/logic/text-collapse.js +423 -0
- package/dist/client/logic/timeline.d.ts +55 -0
- package/dist/client/logic/timeline.js +164 -0
- package/dist/client/logic/toast.d.ts +66 -0
- package/dist/client/logic/toast.js +152 -0
- package/dist/client/logic/wc-adapter.d.ts +73 -0
- package/dist/client/logic/wc-adapter.js +116 -0
- package/dist/client/motion/bridge.d.ts +46 -0
- package/dist/client/motion/bridge.js +128 -0
- package/dist/client/motion/content-crossfade.d.ts +8 -0
- package/dist/client/motion/content-crossfade.js +18 -0
- package/dist/client/motion/expand.d.ts +9 -0
- package/dist/client/motion/expand.js +19 -0
- package/dist/client/motion/fade-in.d.ts +7 -0
- package/dist/client/motion/fade-in.js +11 -0
- package/dist/client/motion/fade-out.d.ts +7 -0
- package/dist/client/motion/fade-out.js +11 -0
- package/dist/client/motion/morph.d.ts +7 -0
- package/dist/client/motion/morph.js +11 -0
- package/dist/client/motion/move.d.ts +15 -0
- package/dist/client/motion/move.js +37 -0
- package/dist/client/motion/number.d.ts +12 -0
- package/dist/client/motion/number.js +20 -0
- package/dist/client/motion/presets/continuous-hover.d.ts +3 -0
- package/dist/client/motion/presets/continuous-hover.js +11 -0
- package/dist/client/motion/presets/dialog.d.ts +6 -0
- package/dist/client/motion/presets/dialog.js +33 -0
- package/dist/client/motion/presets/effects.d.ts +27 -0
- package/dist/client/motion/presets/effects.js +102 -0
- package/dist/client/motion/presets/generic.d.ts +5 -0
- package/dist/client/motion/presets/generic.js +19 -0
- package/dist/client/motion/presets/overlay.d.ts +3 -0
- package/dist/client/motion/presets/overlay.js +11 -0
- package/dist/client/motion/presets/replacement.d.ts +7 -0
- package/dist/client/motion/presets/replacement.js +14 -0
- package/dist/client/motion/presets/resize.d.ts +3 -0
- package/dist/client/motion/presets/resize.js +10 -0
- package/dist/client/motion/presets/tab.d.ts +4 -0
- package/dist/client/motion/presets/tab.js +13 -0
- package/dist/client/motion/presets/tooltip.d.ts +35 -0
- package/dist/client/motion/presets/tooltip.js +94 -0
- package/dist/client/motion/presets/utils.d.ts +3 -0
- package/dist/client/motion/presets/utils.js +8 -0
- package/dist/client/motion/primitives.d.ts +8 -0
- package/dist/client/motion/primitives.js +24 -0
- package/dist/client/motion/replace.d.ts +8 -0
- package/dist/client/motion/replace.js +18 -0
- package/dist/client/motion/rotate.d.ts +9 -0
- package/dist/client/motion/rotate.js +17 -0
- package/dist/client/motion/scale-in.d.ts +7 -0
- package/dist/client/motion/scale-in.js +11 -0
- package/dist/client/motion/spring.d.ts +5 -0
- package/dist/client/motion/spring.js +66 -0
- package/dist/client/motion/tokens.d.ts +112 -0
- package/dist/client/motion/tokens.js +108 -0
- package/dist/client/motion/while-2xl.d.ts +7 -0
- package/dist/client/motion/while-2xl.js +6 -0
- package/dist/client/motion/while-active.d.ts +7 -0
- package/dist/client/motion/while-active.js +9 -0
- package/dist/client/motion/while-appear.d.ts +7 -0
- package/dist/client/motion/while-appear.js +7 -0
- package/dist/client/motion/while-click.d.ts +7 -0
- package/dist/client/motion/while-click.js +6 -0
- package/dist/client/motion/while-collapsed.d.ts +7 -0
- package/dist/client/motion/while-collapsed.js +9 -0
- package/dist/client/motion/while-disabled.d.ts +7 -0
- package/dist/client/motion/while-disabled.js +11 -0
- package/dist/client/motion/while-disappear.d.ts +7 -0
- package/dist/client/motion/while-disappear.js +7 -0
- package/dist/client/motion/while-drag.d.ts +7 -0
- package/dist/client/motion/while-drag.js +6 -0
- package/dist/client/motion/while-editing.d.ts +7 -0
- package/dist/client/motion/while-editing.js +6 -0
- package/dist/client/motion/while-expanded.d.ts +7 -0
- package/dist/client/motion/while-expanded.js +9 -0
- package/dist/client/motion/while-focus.d.ts +7 -0
- package/dist/client/motion/while-focus.js +6 -0
- package/dist/client/motion/while-hover.d.ts +8 -0
- package/dist/client/motion/while-hover.js +10 -0
- package/dist/client/motion/while-idle.d.ts +7 -0
- package/dist/client/motion/while-idle.js +6 -0
- package/dist/client/motion/while-key.d.ts +7 -0
- package/dist/client/motion/while-key.js +6 -0
- package/dist/client/motion/while-lg.d.ts +7 -0
- package/dist/client/motion/while-lg.js +6 -0
- package/dist/client/motion/while-load.d.ts +7 -0
- package/dist/client/motion/while-load.js +9 -0
- package/dist/client/motion/while-md.d.ts +7 -0
- package/dist/client/motion/while-md.js +6 -0
- package/dist/client/motion/while-reload.d.ts +7 -0
- package/dist/client/motion/while-reload.js +9 -0
- package/dist/client/motion/while-scroll.d.ts +7 -0
- package/dist/client/motion/while-scroll.js +6 -0
- package/dist/client/motion/while-sm.d.ts +7 -0
- package/dist/client/motion/while-sm.js +6 -0
- package/dist/client/motion/while-uploading.d.ts +7 -0
- package/dist/client/motion/while-uploading.js +6 -0
- package/dist/client/motion/while-validating.d.ts +7 -0
- package/dist/client/motion/while-validating.js +6 -0
- package/dist/client/motion/while-xl.d.ts +7 -0
- package/dist/client/motion/while-xl.js +6 -0
- package/dist/client/motion/while-xs.d.ts +7 -0
- package/dist/client/motion/while-xs.js +6 -0
- package/dist/client/styles/auto-layout.css +275 -0
- package/dist/client/styles/backdrop.css +38 -0
- package/dist/client/styles/components.css +871 -0
- package/dist/client/styles/index.css +11 -0
- package/dist/client/styles/index.d.ts +1 -0
- package/dist/client/styles/layout.css +747 -0
- package/dist/client/styles/scale.css +106 -0
- package/dist/client/styles/scrollbar.css +314 -0
- package/dist/client/styles/themes.css +142 -0
- package/dist/client/styles/tokens.css +194 -0
- package/dist/client/vite-env.d.ts +9 -0
- package/dist/server/assets/gradient-avatar/blue.svg +1 -0
- package/dist/server/assets/gradient-avatar/cyan.svg +1 -0
- package/dist/server/assets/gradient-avatar/green.svg +1 -0
- package/dist/server/assets/gradient-avatar/orange.svg +1 -0
- package/dist/server/assets/gradient-avatar/purple.svg +1 -0
- package/dist/server/assets/gradient-avatar/red.svg +1 -0
- package/dist/server/blocks/SearchPopup.d.ts +29 -0
- package/dist/server/blocks/SearchPopup.js +236 -0
- package/dist/server/blocks/Sidebar.d.ts +48 -0
- package/dist/server/blocks/Sidebar.js +635 -0
- package/dist/server/blocks/SidebarItem.d.ts +25 -0
- package/dist/server/blocks/SidebarItem.js +276 -0
- package/dist/server/blocks/SidebarSection.d.ts +22 -0
- package/dist/server/blocks/SidebarSection.js +196 -0
- package/dist/server/blocks/index.d.ts +4 -0
- package/dist/server/blocks/index.js +5 -0
- package/dist/server/blocks/sidebar-context.d.ts +30 -0
- package/dist/server/blocks/sidebar-context.js +9 -0
- package/dist/server/compat.d.ts +4 -0
- package/dist/server/compat.js +4 -0
- package/dist/server/components/Accordion.d.ts +35 -0
- package/dist/server/components/Accordion.js +250 -0
- package/dist/server/components/AccordionItem.d.ts +11 -0
- package/dist/server/components/AccordionItem.js +258 -0
- package/dist/server/components/Avatar.d.ts +21 -0
- package/dist/server/components/Avatar.js +459 -0
- package/dist/server/components/AvatarGroup.d.ts +16 -0
- package/dist/server/components/AvatarGroup.js +497 -0
- package/dist/server/components/Badge.d.ts +20 -0
- package/dist/server/components/Badge.js +380 -0
- package/dist/server/components/BarChart.d.ts +120 -0
- package/dist/server/components/BarChart.js +1837 -0
- package/dist/server/components/BlurText.d.ts +21 -0
- package/dist/server/components/BlurText.js +241 -0
- package/dist/server/components/Breadcrumb.d.ts +26 -0
- package/dist/server/components/Breadcrumb.js +299 -0
- package/dist/server/components/Button.d.ts +33 -0
- package/dist/server/components/Button.js +689 -0
- package/dist/server/components/ButtonGroup.d.ts +15 -0
- package/dist/server/components/ButtonGroup.js +175 -0
- package/dist/server/components/Card.d.ts +18 -0
- package/dist/server/components/Card.js +234 -0
- package/dist/server/components/ChartGroup.d.ts +53 -0
- package/dist/server/components/ChartGroup.js +470 -0
- package/dist/server/components/Checkbox.d.ts +20 -0
- package/dist/server/components/Checkbox.js +130 -0
- package/dist/server/components/Chip.d.ts +12 -0
- package/dist/server/components/Chip.js +107 -0
- package/dist/server/components/CircularChart.d.ts +73 -0
- package/dist/server/components/CircularChart.js +1074 -0
- package/dist/server/components/CodeBlock.d.ts +40 -0
- package/dist/server/components/CodeBlock.js +825 -0
- package/dist/server/components/ColorSchemeButton.d.ts +20 -0
- package/dist/server/components/ColorSchemeButton.js +187 -0
- package/dist/server/components/CopyButton.d.ts +23 -0
- package/dist/server/components/CopyButton.js +200 -0
- package/dist/server/components/CopyLink.d.ts +20 -0
- package/dist/server/components/CopyLink.js +92 -0
- package/dist/server/components/DataTable.d.ts +116 -0
- package/dist/server/components/DataTable.js +551 -0
- package/dist/server/components/Dialog.d.ts +36 -0
- package/dist/server/components/Dialog.js +458 -0
- package/dist/server/components/ExpandButton.d.ts +18 -0
- package/dist/server/components/ExpandButton.js +140 -0
- package/dist/server/components/Field.d.ts +19 -0
- package/dist/server/components/Field.js +185 -0
- package/dist/server/components/FlowText.d.ts +46 -0
- package/dist/server/components/FlowText.js +1076 -0
- package/dist/server/components/Frame.d.ts +23 -0
- package/dist/server/components/Frame.js +298 -0
- package/dist/server/components/GaugeChart.d.ts +73 -0
- package/dist/server/components/GaugeChart.js +1085 -0
- package/dist/server/components/Gradient.d.ts +20 -0
- package/dist/server/components/Gradient.js +450 -0
- package/dist/server/components/GradientMotion.d.ts +30 -0
- package/dist/server/components/GradientMotion.js +637 -0
- package/dist/server/components/Icon.d.ts +19 -0
- package/dist/server/components/Icon.js +293 -0
- package/dist/server/components/IconProvider.d.ts +11 -0
- package/dist/server/components/IconProvider.js +22 -0
- package/dist/server/components/Image.d.ts +18 -0
- package/dist/server/components/Image.js +390 -0
- package/dist/server/components/ImageGroup.d.ts +18 -0
- package/dist/server/components/ImageGroup.js +116 -0
- package/dist/server/components/ImageViewer.d.ts +23 -0
- package/dist/server/components/ImageViewer.js +382 -0
- package/dist/server/components/Indicator.d.ts +31 -0
- package/dist/server/components/Indicator.js +267 -0
- package/dist/server/components/Input.d.ts +67 -0
- package/dist/server/components/Input.js +1481 -0
- package/dist/server/components/Kbd.d.ts +10 -0
- package/dist/server/components/Kbd.js +53 -0
- package/dist/server/components/LineChart.d.ts +118 -0
- package/dist/server/components/LineChart.js +1736 -0
- package/dist/server/components/Link.d.ts +29 -0
- package/dist/server/components/Link.js +276 -0
- package/dist/server/components/Listbox.d.ts +43 -0
- package/dist/server/components/Listbox.js +567 -0
- package/dist/server/components/LocaleProvider.d.ts +11 -0
- package/dist/server/components/LocaleProvider.js +16 -0
- package/dist/server/components/MenuItem.d.ts +28 -0
- package/dist/server/components/MenuItem.js +278 -0
- package/dist/server/components/NumberFlow.d.ts +38 -0
- package/dist/server/components/NumberFlow.js +1276 -0
- package/dist/server/components/NumericText.d.ts +30 -0
- package/dist/server/components/NumericText.js +253 -0
- package/dist/server/components/OverflowAction.d.ts +23 -0
- package/dist/server/components/OverflowAction.js +237 -0
- package/dist/server/components/OverflowActions.d.ts +57 -0
- package/dist/server/components/OverflowActions.js +555 -0
- package/dist/server/components/Pagination.d.ts +38 -0
- package/dist/server/components/Pagination.js +1071 -0
- package/dist/server/components/Popover.d.ts +25 -0
- package/dist/server/components/Popover.js +409 -0
- package/dist/server/components/Progress.d.ts +25 -0
- package/dist/server/components/Progress.js +212 -0
- package/dist/server/components/Radio.d.ts +18 -0
- package/dist/server/components/Radio.js +145 -0
- package/dist/server/components/ScrambleText.d.ts +62 -0
- package/dist/server/components/ScrambleText.js +370 -0
- package/dist/server/components/ScrollArea.d.ts +18 -0
- package/dist/server/components/ScrollArea.js +95 -0
- package/dist/server/components/SearchBox.d.ts +28 -0
- package/dist/server/components/SearchBox.js +196 -0
- package/dist/server/components/SearchInput.d.ts +20 -0
- package/dist/server/components/SearchInput.js +113 -0
- package/dist/server/components/Segmented.d.ts +23 -0
- package/dist/server/components/Segmented.js +96 -0
- package/dist/server/components/Select.d.ts +65 -0
- package/dist/server/components/Select.js +522 -0
- package/dist/server/components/SelectButton.d.ts +51 -0
- package/dist/server/components/SelectButton.js +186 -0
- package/dist/server/components/Separator.d.ts +15 -0
- package/dist/server/components/Separator.js +119 -0
- package/dist/server/components/SidePanel.d.ts +54 -0
- package/dist/server/components/SidePanel.js +622 -0
- package/dist/server/components/Skeleton.d.ts +41 -0
- package/dist/server/components/Skeleton.js +478 -0
- package/dist/server/components/Slider.d.ts +35 -0
- package/dist/server/components/Slider.js +370 -0
- package/dist/server/components/SlotText.d.ts +67 -0
- package/dist/server/components/SlotText.js +535 -0
- package/dist/server/components/SnowUILogo.d.ts +14 -0
- package/dist/server/components/SnowUILogo.js +372 -0
- package/dist/server/components/Spinner.d.ts +15 -0
- package/dist/server/components/Spinner.js +140 -0
- package/dist/server/components/StyleButton.d.ts +20 -0
- package/dist/server/components/StyleButton.js +146 -0
- package/dist/server/components/Switch.d.ts +16 -0
- package/dist/server/components/Switch.js +100 -0
- package/dist/server/components/Tab.d.ts +46 -0
- package/dist/server/components/Tab.js +368 -0
- package/dist/server/components/Table.d.ts +18 -0
- package/dist/server/components/Table.js +229 -0
- package/dist/server/components/TableBody.d.ts +24 -0
- package/dist/server/components/TableBody.js +185 -0
- package/dist/server/components/TableCell.d.ts +26 -0
- package/dist/server/components/TableCell.js +350 -0
- package/dist/server/components/TableHead.d.ts +29 -0
- package/dist/server/components/TableHead.js +352 -0
- package/dist/server/components/TableHeader.d.ts +9 -0
- package/dist/server/components/TableHeader.js +42 -0
- package/dist/server/components/TableRow.d.ts +12 -0
- package/dist/server/components/TableRow.js +143 -0
- package/dist/server/components/TableToolbar.d.ts +59 -0
- package/dist/server/components/TableToolbar.js +538 -0
- package/dist/server/components/Tag.d.ts +20 -0
- package/dist/server/components/Tag.js +273 -0
- package/dist/server/components/Text.d.ts +27 -0
- package/dist/server/components/Text.js +606 -0
- package/dist/server/components/Textarea.d.ts +50 -0
- package/dist/server/components/Textarea.js +303 -0
- package/dist/server/components/Toast.d.ts +33 -0
- package/dist/server/components/Toast.js +231 -0
- package/dist/server/components/Toaster.d.ts +28 -0
- package/dist/server/components/Toaster.js +368 -0
- package/dist/server/components/Tooltip.d.ts +17 -0
- package/dist/server/components/Tooltip.js +1410 -0
- package/dist/server/context.d.ts +234 -0
- package/dist/server/context.js +99 -0
- package/dist/server/dev.d.ts +0 -0
- package/dist/server/dev.js +7 -0
- package/dist/server/i18n/locale.d.ts +8 -0
- package/dist/server/i18n/locale.js +39 -0
- package/dist/server/i18n/messages.d.ts +6 -0
- package/dist/server/i18n/messages.js +36 -0
- package/dist/server/index.d.ts +125 -0
- package/dist/server/index.js +114 -0
- package/dist/server/internal/StyleButtonLogo.d.ts +6 -0
- package/dist/server/internal/StyleButtonLogo.js +44 -0
- package/dist/server/internal/code-block/format.d.ts +1 -0
- package/dist/server/internal/code-block/format.js +88 -0
- package/dist/server/internal/code-block/prettier-svelte.d.ts +8 -0
- package/dist/server/internal/component-icon/ComponentIcon.d.ts +14 -0
- package/dist/server/internal/component-icon/ComponentIcon.js +106 -0
- package/dist/server/internal/component-icon/builtin-icon-data.d.ts +7 -0
- package/dist/server/internal/component-icon/builtin-icon-data.js +236 -0
- package/dist/server/internal/component-icon/index.d.ts +2 -0
- package/dist/server/internal/component-icon/index.js +1 -0
- package/dist/server/internal/snow-ui-logo/Wordmark.d.ts +12 -0
- package/dist/server/internal/snow-ui-logo/Wordmark.js +339 -0
- package/dist/server/internal/snow-ui-logo/emoji-metrics.d.ts +7 -0
- package/dist/server/internal/snow-ui-logo/emoji-metrics.js +37 -0
- package/dist/server/keys.d.ts +33 -0
- package/dist/server/keys.js +33 -0
- package/dist/server/lib/AdaptiveContrastMask.d.ts +11 -0
- package/dist/server/lib/AdaptiveContrastMask.js +88 -0
- package/dist/server/lib/adaptive-contrast-renderer.d.ts +2 -0
- package/dist/server/lib/adaptive-contrast-renderer.js +2 -0
- package/dist/server/lib/adaptive-contrast.d.ts +9 -0
- package/dist/server/lib/adaptive-contrast.js +7 -0
- package/dist/server/lib/backdrop.d.ts +2 -0
- package/dist/server/lib/backdrop.js +1 -0
- package/dist/server/lib/chart/ChartHoverPanel.d.ts +17 -0
- package/dist/server/lib/chart/ChartHoverPanel.js +341 -0
- package/dist/server/lib/chart/appearance-timeline.d.ts +26 -0
- package/dist/server/lib/chart/appearance-timeline.js +142 -0
- package/dist/server/lib/chart/appearance-viewport.d.ts +24 -0
- package/dist/server/lib/chart/appearance-viewport.js +103 -0
- package/dist/server/lib/chart/arc-path.d.ts +1 -0
- package/dist/server/lib/chart/arc-path.js +83 -0
- package/dist/server/lib/chart/axis.d.ts +41 -0
- package/dist/server/lib/chart/axis.js +276 -0
- package/dist/server/lib/chart/colors.d.ts +26 -0
- package/dist/server/lib/chart/colors.js +46 -0
- package/dist/server/lib/chart/geometry.d.ts +12 -0
- package/dist/server/lib/chart/geometry.js +35 -0
- package/dist/server/lib/chart/gradients.d.ts +25 -0
- package/dist/server/lib/chart/gradients.js +86 -0
- package/dist/server/lib/chart/group-context.d.ts +36 -0
- package/dist/server/lib/chart/group-context.js +1 -0
- package/dist/server/lib/chart/hover-label.d.ts +20 -0
- package/dist/server/lib/chart/hover-label.js +47 -0
- package/dist/server/lib/chart/hover-panel.d.ts +28 -0
- package/dist/server/lib/chart/hover-panel.js +13 -0
- package/dist/server/lib/chart/interaction.d.ts +4 -0
- package/dist/server/lib/chart/interaction.js +17 -0
- package/dist/server/lib/chart/pointer.d.ts +18 -0
- package/dist/server/lib/chart/pointer.js +41 -0
- package/dist/server/lib/chart/size.d.ts +13 -0
- package/dist/server/lib/chart/size.js +40 -0
- package/dist/server/lib/clipboard.d.ts +1 -0
- package/dist/server/lib/clipboard.js +8 -0
- package/dist/server/lib/color.d.ts +51 -0
- package/dist/server/lib/color.js +53 -0
- package/dist/server/lib/data-table.d.ts +15 -0
- package/dist/server/lib/data-table.js +47 -0
- package/dist/server/lib/date-format.d.ts +19 -0
- package/dist/server/lib/date-format.js +106 -0
- package/dist/server/lib/edge-fade.d.ts +28 -0
- package/dist/server/lib/edge-fade.js +28 -0
- package/dist/server/lib/floating-position.d.ts +33 -0
- package/dist/server/lib/floating-position.js +57 -0
- package/dist/server/lib/number-format.d.ts +21 -0
- package/dist/server/lib/number-format.js +81 -0
- package/dist/server/lib/overflow-actions-motion.d.ts +7 -0
- package/dist/server/lib/overflow-actions-motion.js +40 -0
- package/dist/server/lib/overlay-scrollbar.d.ts +12 -0
- package/dist/server/lib/overlay-scrollbar.js +235 -0
- package/dist/server/lib/overlay-trigger-timing.d.ts +7 -0
- package/dist/server/lib/overlay-trigger-timing.js +7 -0
- package/dist/server/lib/progressive-blur.d.ts +38 -0
- package/dist/server/lib/progressive-blur.js +159 -0
- package/dist/server/lib/resizable.d.ts +27 -0
- package/dist/server/lib/resizable.js +181 -0
- package/dist/server/lib/responsive-exit.d.ts +7 -0
- package/dist/server/lib/responsive-exit.js +71 -0
- package/dist/server/lib/search-filter.d.ts +36 -0
- package/dist/server/lib/search-filter.js +52 -0
- package/dist/server/lib/side-panel.d.ts +20 -0
- package/dist/server/lib/side-panel.js +27 -0
- package/dist/server/lib/split-pane.d.ts +29 -0
- package/dist/server/lib/split-pane.js +278 -0
- package/dist/server/lib/table-column-motion.d.ts +13 -0
- package/dist/server/lib/table-column-motion.js +68 -0
- package/dist/server/lib/table-context.d.ts +95 -0
- package/dist/server/lib/table-context.js +73 -0
- package/dist/server/lib/table-responsive.d.ts +13 -0
- package/dist/server/lib/table-responsive.js +280 -0
- package/dist/server/lib/table-role-blur.d.ts +4 -0
- package/dist/server/lib/table-role-blur.js +36 -0
- package/dist/server/lib/table-row-context.d.ts +5 -0
- package/dist/server/lib/table-row-context.js +15 -0
- package/dist/server/lib/table-selection-fade.d.ts +8 -0
- package/dist/server/lib/table-selection-fade.js +95 -0
- package/dist/server/lib/table-truncation.d.ts +24 -0
- package/dist/server/lib/table-truncation.js +58 -0
- package/dist/server/lib/text-motion/animation.d.ts +4 -0
- package/dist/server/lib/text-motion/animation.js +31 -0
- package/dist/server/lib/text-motion/character.d.ts +80 -0
- package/dist/server/lib/text-motion/character.js +481 -0
- package/dist/server/lib/text-motion/color.d.ts +22 -0
- package/dist/server/lib/text-motion/color.js +74 -0
- package/dist/server/lib/text-motion/format.d.ts +3 -0
- package/dist/server/lib/text-motion/format.js +16 -0
- package/dist/server/lib/text-motion/layout.d.ts +17 -0
- package/dist/server/lib/text-motion/layout.js +68 -0
- package/dist/server/lib/text-motion/numeric.d.ts +19 -0
- package/dist/server/lib/text-motion/numeric.js +151 -0
- package/dist/server/lib/text-motion/preference.d.ts +1 -0
- package/dist/server/lib/text-motion/preference.js +5 -0
- package/dist/server/lib/text-motion/sequence.d.ts +7 -0
- package/dist/server/lib/text-motion/sequence.js +17 -0
- package/dist/server/lib/text-motion/timeline.d.ts +18 -0
- package/dist/server/lib/text-motion/timeline.js +41 -0
- package/dist/server/lib/text-motion/types.d.ts +16 -0
- package/dist/server/lib/text-motion/types.js +1 -0
- package/dist/server/lib/text-motion/typography.d.ts +3 -0
- package/dist/server/lib/text-motion/typography.js +38 -0
- package/dist/server/lib/tooltip-behavior.d.ts +15 -0
- package/dist/server/lib/tooltip-behavior.js +20 -0
- package/dist/server/lib/tooltip-delay.d.ts +12 -0
- package/dist/server/lib/tooltip-delay.js +37 -0
- package/dist/server/lib/tooltip-motion-dismiss.d.ts +14 -0
- package/dist/server/lib/tooltip-motion-dismiss.js +124 -0
- package/dist/server/lib/tooltip-overlay.d.ts +28 -0
- package/dist/server/lib/tooltip-overlay.js +60 -0
- package/dist/server/lib/tooltip-pointer-speed.d.ts +5 -0
- package/dist/server/lib/tooltip-pointer-speed.js +40 -0
- package/dist/server/lib/truncate.d.ts +28 -0
- package/dist/server/lib/truncate.js +270 -0
- package/dist/server/logic/collapse.d.ts +5 -0
- package/dist/server/logic/collapse.js +4 -0
- package/dist/server/logic/component-icon.d.ts +24 -0
- package/dist/server/logic/component-icon.js +6 -0
- package/dist/server/logic/component-parts.d.ts +29 -0
- package/dist/server/logic/component-parts.js +76 -0
- package/dist/server/logic/continuous-hover.d.ts +60 -0
- package/dist/server/logic/continuous-hover.js +392 -0
- package/dist/server/logic/dialog.d.ts +29 -0
- package/dist/server/logic/dialog.js +70 -0
- package/dist/server/logic/frame-actions.d.ts +18 -0
- package/dist/server/logic/frame-actions.js +42 -0
- package/dist/server/logic/frame-class-state.d.ts +48 -0
- package/dist/server/logic/frame-class-state.js +118 -0
- package/dist/server/logic/frame-dom-runtime.d.ts +77 -0
- package/dist/server/logic/frame-dom-runtime.js +196 -0
- package/dist/server/logic/frame-field-control.d.ts +21 -0
- package/dist/server/logic/frame-field-control.js +55 -0
- package/dist/server/logic/frame-identity.d.ts +6 -0
- package/dist/server/logic/frame-identity.js +25 -0
- package/dist/server/logic/frame-inline-style.d.ts +30 -0
- package/dist/server/logic/frame-inline-style.js +429 -0
- package/dist/server/logic/frame-layout.d.ts +17 -0
- package/dist/server/logic/frame-layout.js +120 -0
- package/dist/server/logic/frame-motion-defaults.d.ts +44 -0
- package/dist/server/logic/frame-motion-defaults.js +538 -0
- package/dist/server/logic/frame-motion.d.ts +26 -0
- package/dist/server/logic/frame-motion.js +176 -0
- package/dist/server/logic/frame-orchestrator.d.ts +36 -0
- package/dist/server/logic/frame-orchestrator.js +258 -0
- package/dist/server/logic/frame-perception.d.ts +8 -0
- package/dist/server/logic/frame-perception.js +322 -0
- package/dist/server/logic/frame-prop-filter.d.ts +27 -0
- package/dist/server/logic/frame-prop-filter.js +218 -0
- package/dist/server/logic/frame-responsive.d.ts +15 -0
- package/dist/server/logic/frame-responsive.js +340 -0
- package/dist/server/logic/frame-scale-observer.d.ts +25 -0
- package/dist/server/logic/frame-scale-observer.js +73 -0
- package/dist/server/logic/frame-scale-resolver.d.ts +9 -0
- package/dist/server/logic/frame-scale-resolver.js +41 -0
- package/dist/server/logic/frame-skeleton-runtime.d.ts +29 -0
- package/dist/server/logic/frame-skeleton-runtime.js +63 -0
- package/dist/server/logic/frame-state-value.d.ts +6 -0
- package/dist/server/logic/frame-state-value.js +15 -0
- package/dist/server/logic/frame-state.d.ts +39 -0
- package/dist/server/logic/frame-state.js +445 -0
- package/dist/server/logic/frame-truncation.d.ts +33 -0
- package/dist/server/logic/frame-truncation.js +96 -0
- package/dist/server/logic/frame-types.d.ts +416 -0
- package/dist/server/logic/frame-types.js +1 -0
- package/dist/server/logic/frame-utils.d.ts +26 -0
- package/dist/server/logic/frame-utils.js +255 -0
- package/dist/server/logic/geometry-cache.d.ts +40 -0
- package/dist/server/logic/geometry-cache.js +102 -0
- package/dist/server/logic/image-preview.d.ts +24 -0
- package/dist/server/logic/image-preview.js +165 -0
- package/dist/server/logic/layout-flip.d.ts +34 -0
- package/dist/server/logic/layout-flip.js +207 -0
- package/dist/server/logic/morph.d.ts +7 -0
- package/dist/server/logic/morph.js +7 -0
- package/dist/server/logic/motion-config.d.ts +87 -0
- package/dist/server/logic/motion-config.js +37 -0
- package/dist/server/logic/motion-engine.d.ts +19 -0
- package/dist/server/logic/motion-engine.js +246 -0
- package/dist/server/logic/motion-orchestration.d.ts +17 -0
- package/dist/server/logic/motion-orchestration.js +224 -0
- package/dist/server/logic/motion-types.d.ts +75 -0
- package/dist/server/logic/motion-types.js +16 -0
- package/dist/server/logic/motion.d.ts +88 -0
- package/dist/server/logic/motion.js +523 -0
- package/dist/server/logic/observer.d.ts +18 -0
- package/dist/server/logic/observer.js +130 -0
- package/dist/server/logic/overflow-actions.d.ts +24 -0
- package/dist/server/logic/overflow-actions.js +9 -0
- package/dist/server/logic/overlay-presence.d.ts +8 -0
- package/dist/server/logic/overlay-presence.js +42 -0
- package/dist/server/logic/popover.d.ts +56 -0
- package/dist/server/logic/popover.js +241 -0
- package/dist/server/logic/resource-size.d.ts +7 -0
- package/dist/server/logic/resource-size.js +43 -0
- package/dist/server/logic/responsive.d.ts +55 -0
- package/dist/server/logic/responsive.js +83 -0
- package/dist/server/logic/text-collapse.d.ts +25 -0
- package/dist/server/logic/text-collapse.js +423 -0
- package/dist/server/logic/timeline.d.ts +55 -0
- package/dist/server/logic/timeline.js +164 -0
- package/dist/server/logic/toast.d.ts +66 -0
- package/dist/server/logic/toast.js +152 -0
- package/dist/server/logic/wc-adapter.d.ts +73 -0
- package/dist/server/logic/wc-adapter.js +116 -0
- package/dist/server/motion/bridge.d.ts +46 -0
- package/dist/server/motion/bridge.js +128 -0
- package/dist/server/motion/content-crossfade.d.ts +8 -0
- package/dist/server/motion/content-crossfade.js +18 -0
- package/dist/server/motion/expand.d.ts +9 -0
- package/dist/server/motion/expand.js +19 -0
- package/dist/server/motion/fade-in.d.ts +7 -0
- package/dist/server/motion/fade-in.js +11 -0
- package/dist/server/motion/fade-out.d.ts +7 -0
- package/dist/server/motion/fade-out.js +11 -0
- package/dist/server/motion/morph.d.ts +7 -0
- package/dist/server/motion/morph.js +11 -0
- package/dist/server/motion/move.d.ts +15 -0
- package/dist/server/motion/move.js +37 -0
- package/dist/server/motion/number.d.ts +12 -0
- package/dist/server/motion/number.js +20 -0
- package/dist/server/motion/presets/continuous-hover.d.ts +3 -0
- package/dist/server/motion/presets/continuous-hover.js +11 -0
- package/dist/server/motion/presets/dialog.d.ts +6 -0
- package/dist/server/motion/presets/dialog.js +33 -0
- package/dist/server/motion/presets/effects.d.ts +27 -0
- package/dist/server/motion/presets/effects.js +102 -0
- package/dist/server/motion/presets/generic.d.ts +5 -0
- package/dist/server/motion/presets/generic.js +19 -0
- package/dist/server/motion/presets/overlay.d.ts +3 -0
- package/dist/server/motion/presets/overlay.js +11 -0
- package/dist/server/motion/presets/replacement.d.ts +7 -0
- package/dist/server/motion/presets/replacement.js +14 -0
- package/dist/server/motion/presets/resize.d.ts +3 -0
- package/dist/server/motion/presets/resize.js +10 -0
- package/dist/server/motion/presets/tab.d.ts +4 -0
- package/dist/server/motion/presets/tab.js +13 -0
- package/dist/server/motion/presets/tooltip.d.ts +35 -0
- package/dist/server/motion/presets/tooltip.js +94 -0
- package/dist/server/motion/presets/utils.d.ts +3 -0
- package/dist/server/motion/presets/utils.js +8 -0
- package/dist/server/motion/primitives.d.ts +8 -0
- package/dist/server/motion/primitives.js +24 -0
- package/dist/server/motion/replace.d.ts +8 -0
- package/dist/server/motion/replace.js +18 -0
- package/dist/server/motion/rotate.css +15 -0
- package/dist/server/motion/rotate.d.ts +9 -0
- package/dist/server/motion/rotate.js +17 -0
- package/dist/server/motion/scale-in.d.ts +7 -0
- package/dist/server/motion/scale-in.js +11 -0
- package/dist/server/motion/spring.d.ts +5 -0
- package/dist/server/motion/spring.js +66 -0
- package/dist/server/motion/tokens.d.ts +112 -0
- package/dist/server/motion/tokens.js +108 -0
- package/dist/server/motion/while-2xl.d.ts +7 -0
- package/dist/server/motion/while-2xl.js +6 -0
- package/dist/server/motion/while-active.d.ts +7 -0
- package/dist/server/motion/while-active.js +9 -0
- package/dist/server/motion/while-appear.d.ts +7 -0
- package/dist/server/motion/while-appear.js +7 -0
- package/dist/server/motion/while-click.d.ts +7 -0
- package/dist/server/motion/while-click.js +6 -0
- package/dist/server/motion/while-collapsed.d.ts +7 -0
- package/dist/server/motion/while-collapsed.js +9 -0
- package/dist/server/motion/while-disabled.d.ts +7 -0
- package/dist/server/motion/while-disabled.js +11 -0
- package/dist/server/motion/while-disappear.d.ts +7 -0
- package/dist/server/motion/while-disappear.js +7 -0
- package/dist/server/motion/while-drag.d.ts +7 -0
- package/dist/server/motion/while-drag.js +6 -0
- package/dist/server/motion/while-editing.d.ts +7 -0
- package/dist/server/motion/while-editing.js +6 -0
- package/dist/server/motion/while-expanded.d.ts +7 -0
- package/dist/server/motion/while-expanded.js +9 -0
- package/dist/server/motion/while-focus.d.ts +7 -0
- package/dist/server/motion/while-focus.js +6 -0
- package/dist/server/motion/while-hover.d.ts +8 -0
- package/dist/server/motion/while-hover.js +10 -0
- package/dist/server/motion/while-idle.d.ts +7 -0
- package/dist/server/motion/while-idle.js +6 -0
- package/dist/server/motion/while-key.d.ts +7 -0
- package/dist/server/motion/while-key.js +6 -0
- package/dist/server/motion/while-lg.d.ts +7 -0
- package/dist/server/motion/while-lg.js +6 -0
- package/dist/server/motion/while-load.d.ts +7 -0
- package/dist/server/motion/while-load.js +9 -0
- package/dist/server/motion/while-md.d.ts +7 -0
- package/dist/server/motion/while-md.js +6 -0
- package/dist/server/motion/while-reload.d.ts +7 -0
- package/dist/server/motion/while-reload.js +9 -0
- package/dist/server/motion/while-scroll.d.ts +7 -0
- package/dist/server/motion/while-scroll.js +6 -0
- package/dist/server/motion/while-sm.d.ts +7 -0
- package/dist/server/motion/while-sm.js +6 -0
- package/dist/server/motion/while-uploading.d.ts +7 -0
- package/dist/server/motion/while-uploading.js +6 -0
- package/dist/server/motion/while-validating.d.ts +7 -0
- package/dist/server/motion/while-validating.js +6 -0
- package/dist/server/motion/while-xl.d.ts +7 -0
- package/dist/server/motion/while-xl.js +6 -0
- package/dist/server/motion/while-xs.d.ts +7 -0
- package/dist/server/motion/while-xs.js +6 -0
- package/dist/server/styles/auto-layout.css +275 -0
- package/dist/server/styles/backdrop.css +38 -0
- package/dist/server/styles/components.css +871 -0
- package/dist/server/styles/index.css +11 -0
- package/dist/server/styles/layout.css +747 -0
- package/dist/server/styles/scale.css +106 -0
- package/dist/server/styles/scrollbar.css +314 -0
- package/dist/server/styles/themes.css +142 -0
- package/dist/server/styles/tokens.css +194 -0
- package/dist/server/vite-env.d.ts +9 -0
- package/package.json +95 -27
- package/src/components/Accordion.md +0 -218
- package/src/components/Accordion.svelte +0 -305
- package/src/components/Accordion.test.ts +0 -126
- package/src/components/AccordionItem.md +0 -114
- package/src/components/AccordionItem.svelte +0 -389
- package/src/components/AccordionItem.test.ts +0 -52
- package/src/components/Avatar.md +0 -507
- package/src/components/Avatar.svelte +0 -734
- package/src/components/Avatar.test.ts +0 -252
- package/src/components/AvatarGroup.md +0 -249
- package/src/components/AvatarGroup.svelte +0 -653
- package/src/components/AvatarGroup.test.ts +0 -143
- package/src/components/Badge.md +0 -238
- package/src/components/Badge.svelte +0 -720
- package/src/components/Badge.test.ts +0 -353
- package/src/components/Breadcrumb.md +0 -164
- package/src/components/Breadcrumb.svelte +0 -330
- package/src/components/Breadcrumb.test.ts +0 -154
- package/src/components/Button.md +0 -521
- package/src/components/Button.svelte +0 -903
- package/src/components/Button.test.ts +0 -731
- package/src/components/ButtonGroup.md +0 -140
- package/src/components/ButtonGroup.svelte +0 -491
- package/src/components/ButtonGroup.test.ts +0 -58
- package/src/components/Card.md +0 -186
- package/src/components/Card.svelte +0 -408
- package/src/components/Card.test.ts +0 -193
- package/src/components/Checkbox.md +0 -317
- package/src/components/Checkbox.svelte +0 -406
- package/src/components/Checkbox.test.ts +0 -57
- package/src/components/Chip.md +0 -185
- package/src/components/Chip.svelte +0 -241
- package/src/components/Chip.test.ts +0 -117
- package/src/components/CodeBlock.md +0 -289
- package/src/components/CodeBlock.svelte +0 -1246
- package/src/components/CodeBlock.test.ts +0 -247
- package/src/components/ColorSchemeButton.md +0 -50
- package/src/components/ColorSchemeButton.svelte +0 -144
- package/src/components/ColorSchemeButton.test.ts +0 -39
- package/src/components/CopyButton.md +0 -45
- package/src/components/CopyButton.svelte +0 -168
- package/src/components/CopyButton.test.ts +0 -26
- package/src/components/Dialog.md +0 -95
- package/src/components/Dialog.svelte +0 -417
- package/src/components/Dialog.test.ts +0 -145
- package/src/components/ExpandButton.md +0 -45
- package/src/components/ExpandButton.svelte +0 -104
- package/src/components/ExpandButton.test.ts +0 -18
- package/src/components/Form.md +0 -34
- package/src/components/Form.test.ts +0 -306
- package/src/components/Frame.md +0 -243
- package/src/components/Frame.svelte +0 -341
- package/src/components/Frame.test.ts +0 -121
- package/src/components/Gradient.md +0 -278
- package/src/components/Gradient.svelte +0 -1283
- package/src/components/Gradient.test.ts +0 -77
- package/src/components/Icon.md +0 -307
- package/src/components/Icon.svelte +0 -458
- package/src/components/Icon.test.ts +0 -82
- package/src/components/Image.md +0 -303
- package/src/components/Image.svelte +0 -551
- package/src/components/Image.test.ts +0 -42
- package/src/components/ImageGroup.md +0 -167
- package/src/components/ImageGroup.svelte +0 -124
- package/src/components/ImageGroup.test.ts +0 -46
- package/src/components/InView.test.ts +0 -55
- package/src/components/Indicator.md +0 -106
- package/src/components/Indicator.svelte +0 -630
- package/src/components/Indicator.test.ts +0 -82
- package/src/components/Input.md +0 -729
- package/src/components/Input.svelte +0 -2863
- package/src/components/Input.test.ts +0 -540
- package/src/components/Kbd.md +0 -97
- package/src/components/Kbd.svelte +0 -109
- package/src/components/Kbd.test.ts +0 -50
- package/src/components/Link.md +0 -192
- package/src/components/Link.svelte +0 -464
- package/src/components/Link.test.ts +0 -110
- package/src/components/Listbox.md +0 -292
- package/src/components/Listbox.svelte +0 -569
- package/src/components/Listbox.test.ts +0 -196
- package/src/components/LocaleProvider.md +0 -52
- package/src/components/LocaleProvider.svelte +0 -30
- package/src/components/LocaleProvider.test.ts +0 -32
- package/src/components/MenuItem.md +0 -203
- package/src/components/MenuItem.svelte +0 -342
- package/src/components/MenuItem.test.ts +0 -174
- package/src/components/Morph.test.ts +0 -53
- package/src/components/OverflowAction.md +0 -41
- package/src/components/OverflowAction.svelte +0 -209
- package/src/components/OverflowAction.test.ts +0 -11
- package/src/components/OverflowActions.md +0 -95
- package/src/components/OverflowActions.svelte +0 -501
- package/src/components/OverflowActions.test.ts +0 -87
- package/src/components/Pagination.md +0 -504
- package/src/components/Pagination.svelte +0 -958
- package/src/components/Pagination.test.ts +0 -316
- package/src/components/Popover.md +0 -295
- package/src/components/Popover.svelte +0 -642
- package/src/components/Popover.test.ts +0 -391
- package/src/components/Progress.md +0 -91
- package/src/components/Progress.svelte +0 -374
- package/src/components/Progress.test.ts +0 -56
- package/src/components/Radio.md +0 -316
- package/src/components/Radio.svelte +0 -410
- package/src/components/Radio.test.ts +0 -76
- package/src/components/ScrollArea.md +0 -120
- package/src/components/ScrollArea.svelte +0 -180
- package/src/components/ScrollArea.test.ts +0 -85
- package/src/components/SearchInput.md +0 -148
- package/src/components/SearchInput.svelte +0 -255
- package/src/components/SearchInput.test.ts +0 -76
- package/src/components/Select.md +0 -523
- package/src/components/Select.svelte +0 -686
- package/src/components/Select.test.ts +0 -184
- package/src/components/SelectButton.md +0 -50
- package/src/components/SelectButton.svelte +0 -192
- package/src/components/SelectButton.test.ts +0 -142
- package/src/components/Separator.md +0 -89
- package/src/components/Separator.svelte +0 -143
- package/src/components/Separator.test.ts +0 -35
- package/src/components/Skeleton.md +0 -332
- package/src/components/Skeleton.svelte +0 -1014
- package/src/components/Skeleton.test.ts +0 -121
- package/src/components/Slider.md +0 -163
- package/src/components/Slider.svelte +0 -874
- package/src/components/Slider.test.ts +0 -116
- package/src/components/SnowUILogo.md +0 -210
- package/src/components/SnowUILogo.svelte +0 -478
- package/src/components/SnowUILogo.test.ts +0 -62
- package/src/components/Spinner.md +0 -135
- package/src/components/Spinner.svelte +0 -284
- package/src/components/Spinner.test.ts +0 -88
- package/src/components/SplitText.test.ts +0 -142
- package/src/components/Stagger.test.ts +0 -57
- package/src/components/StyleButton.md +0 -58
- package/src/components/StyleButton.svelte +0 -144
- package/src/components/StyleButton.test.ts +0 -39
- package/src/components/Switch.md +0 -195
- package/src/components/Switch.svelte +0 -314
- package/src/components/Switch.test.ts +0 -57
- package/src/components/Table.md +0 -265
- package/src/components/Table.svelte +0 -160
- package/src/components/Table.test.ts +0 -64
- package/src/components/TableBody.md +0 -74
- package/src/components/TableBody.svelte +0 -102
- package/src/components/TableBody.test.ts +0 -16
- package/src/components/TableCell.md +0 -95
- package/src/components/TableCell.svelte +0 -429
- package/src/components/TableCell.test.ts +0 -51
- package/src/components/TableHead.md +0 -135
- package/src/components/TableHead.svelte +0 -294
- package/src/components/TableHead.test.ts +0 -44
- package/src/components/TableHeader.md +0 -26
- package/src/components/TableHeader.svelte +0 -10
- package/src/components/TableHeader.test.ts +0 -3
- package/src/components/TableRow.md +0 -46
- package/src/components/TableRow.svelte +0 -101
- package/src/components/TableRow.test.ts +0 -2
- package/src/components/TableToolbar.svelte +0 -272
- package/src/components/Tag.md +0 -270
- package/src/components/Tag.svelte +0 -462
- package/src/components/Tag.test.ts +0 -91
- package/src/components/Text.md +0 -518
- package/src/components/Text.svelte +0 -891
- package/src/components/Text.test.ts +0 -135
- package/src/components/Textarea.md +0 -255
- package/src/components/Textarea.svelte +0 -663
- package/src/components/Textarea.test.ts +0 -138
- package/src/components/Tooltip.md +0 -281
- package/src/components/Tooltip.svelte +0 -1000
- package/src/components/Tooltip.test.ts +0 -176
- package/src/context.ts +0 -400
- package/src/dev.ts +0 -6
- package/src/i18n/locale.svelte.ts +0 -60
- package/src/i18n/messages.ts +0 -57
- package/src/index.ts +0 -229
- package/src/internal/StyleButtonLogo.svelte +0 -49
- package/src/keys.ts +0 -33
- package/src/lib/clipboard.ts +0 -10
- package/src/lib/color.md +0 -36
- package/src/lib/color.ts +0 -57
- package/src/lib/date-format.md +0 -37
- package/src/lib/date-format.ts +0 -130
- package/src/lib/edge-fade.md +0 -102
- package/src/lib/edge-fade.ts +0 -55
- package/src/lib/floating-position.md +0 -20
- package/src/lib/floating-position.ts +0 -107
- package/src/lib/number-format.md +0 -40
- package/src/lib/number-format.ts +0 -132
- package/src/lib/overlay-scrollbar.md +0 -41
- package/src/lib/overlay-scrollbar.svelte.ts +0 -221
- package/src/lib/overlay-trigger-timing.md +0 -15
- package/src/lib/overlay-trigger-timing.ts +0 -8
- package/src/lib/progressive-blur.md +0 -95
- package/src/lib/progressive-blur.ts +0 -266
- package/src/lib/resizable.md +0 -41
- package/src/lib/resizable.ts +0 -211
- package/src/lib/search-filter.md +0 -82
- package/src/lib/search-filter.ts +0 -57
- package/src/lib/table-context.svelte.ts +0 -165
- package/src/lib/table-role-blur.ts +0 -46
- package/src/lib/table-row-context.svelte.ts +0 -16
- package/src/lib/table-truncation.md +0 -14
- package/src/lib/table-truncation.ts +0 -83
- package/src/lib/tooltip-behavior.ts +0 -39
- package/src/lib/tooltip-delay.md +0 -39
- package/src/lib/tooltip-delay.ts +0 -49
- package/src/lib/tooltip-motion-dismiss.md +0 -33
- package/src/lib/tooltip-motion-dismiss.ts +0 -160
- package/src/lib/tooltip-overlay.md +0 -48
- package/src/lib/tooltip-overlay.ts +0 -75
- package/src/lib/truncate.md +0 -30
- package/src/lib/truncate.ts +0 -329
- package/src/logic/README.md +0 -159
- package/src/logic/collapse.svelte.ts +0 -6
- package/src/logic/component-parts.md +0 -32
- package/src/logic/component-parts.svelte.ts +0 -130
- package/src/logic/continuous-hover.svelte.md +0 -22
- package/src/logic/continuous-hover.svelte.ts +0 -436
- package/src/logic/dialog.md +0 -30
- package/src/logic/dialog.svelte.ts +0 -88
- package/src/logic/frame-actions.md +0 -28
- package/src/logic/frame-actions.svelte.ts +0 -49
- package/src/logic/frame-class-state.md +0 -21
- package/src/logic/frame-class-state.svelte.ts +0 -163
- package/src/logic/frame-dom-runtime.md +0 -19
- package/src/logic/frame-dom-runtime.svelte.ts +0 -337
- package/src/logic/frame-field-control.md +0 -38
- package/src/logic/frame-field-control.ts +0 -95
- package/src/logic/frame-identity.md +0 -68
- package/src/logic/frame-identity.svelte.ts +0 -25
- package/src/logic/frame-inline-style.md +0 -56
- package/src/logic/frame-inline-style.svelte.ts +0 -623
- package/src/logic/frame-layout.md +0 -91
- package/src/logic/frame-layout.svelte.ts +0 -111
- package/src/logic/frame-motion-defaults.md +0 -261
- package/src/logic/frame-motion-defaults.ts +0 -717
- package/src/logic/frame-motion.svelte.ts +0 -173
- package/src/logic/frame-perception.md +0 -83
- package/src/logic/frame-perception.svelte.ts +0 -284
- package/src/logic/frame-prop-filter.md +0 -34
- package/src/logic/frame-prop-filter.ts +0 -260
- package/src/logic/frame-responsive.md +0 -91
- package/src/logic/frame-responsive.svelte.ts +0 -92
- package/src/logic/frame-scale-observer.md +0 -153
- package/src/logic/frame-scale-observer.svelte.ts +0 -98
- package/src/logic/frame-scale-resolver.md +0 -25
- package/src/logic/frame-scale-resolver.svelte.ts +0 -56
- package/src/logic/frame-skeleton-runtime.md +0 -20
- package/src/logic/frame-skeleton-runtime.svelte.ts +0 -160
- package/src/logic/frame-state-value.md +0 -74
- package/src/logic/frame-state-value.ts +0 -30
- package/src/logic/frame-state.svelte.ts +0 -426
- package/src/logic/frame-truncation.md +0 -147
- package/src/logic/frame-truncation.svelte.ts +0 -179
- package/src/logic/frame-types.md +0 -158
- package/src/logic/frame-types.ts +0 -468
- package/src/logic/frame-utils.md +0 -26
- package/src/logic/frame-utils.ts +0 -278
- package/src/logic/geometry-cache.ts +0 -120
- package/src/logic/image-preview.md +0 -31
- package/src/logic/image-preview.ts +0 -212
- package/src/logic/layout-flip.ts +0 -286
- package/src/logic/morph.md +0 -19
- package/src/logic/motion-config.ts +0 -148
- package/src/logic/motion-engine.md +0 -43
- package/src/logic/motion-engine.ts +0 -272
- package/src/logic/motion-types.md +0 -47
- package/src/logic/motion-types.ts +0 -119
- package/src/logic/observer.md +0 -20
- package/src/logic/observer.svelte.ts +0 -53
- package/src/logic/overflow-actions.svelte.ts +0 -33
- package/src/logic/overlay-presence.svelte.ts +0 -71
- package/src/logic/popover.md +0 -89
- package/src/logic/popover.svelte.ts +0 -236
- package/src/logic/resource-size.md +0 -21
- package/src/logic/resource-size.ts +0 -53
- package/src/logic/responsive.md +0 -64
- package/src/logic/responsive.svelte.ts +0 -118
- package/src/logic/text-collapse.md +0 -23
- package/src/logic/text-collapse.svelte.ts +0 -507
- package/src/logic/wc-adapter.ts +0 -188
- package/src/motion/README.md +0 -147
- package/src/motion/bridge.md +0 -73
- package/src/motion/bridge.ts +0 -182
- package/src/motion/content-crossfade.ts +0 -22
- package/src/motion/expand.md +0 -66
- package/src/motion/expand.ts +0 -23
- package/src/motion/fade-in.md +0 -40
- package/src/motion/fade-in.ts +0 -14
- package/src/motion/fade-out.md +0 -41
- package/src/motion/fade-out.ts +0 -14
- package/src/motion/morph.md +0 -42
- package/src/motion/morph.ts +0 -14
- package/src/motion/move.md +0 -179
- package/src/motion/move.ts +0 -74
- package/src/motion/number.md +0 -50
- package/src/motion/number.ts +0 -30
- package/src/motion/presets/README.md +0 -54
- package/src/motion/presets/continuous-hover.md +0 -11
- package/src/motion/presets/continuous-hover.ts +0 -18
- package/src/motion/presets/dialog.md +0 -20
- package/src/motion/presets/dialog.ts +0 -47
- package/src/motion/presets/effects.md +0 -32
- package/src/motion/presets/effects.ts +0 -111
- package/src/motion/presets/generic.md +0 -27
- package/src/motion/presets/generic.ts +0 -32
- package/src/motion/presets/overlay.md +0 -21
- package/src/motion/presets/overlay.ts +0 -18
- package/src/motion/presets/replacement.md +0 -19
- package/src/motion/presets/replacement.ts +0 -6
- package/src/motion/presets/resize.md +0 -23
- package/src/motion/presets/resize.ts +0 -16
- package/src/motion/presets/tab.md +0 -21
- package/src/motion/presets/tab.ts +0 -19
- package/src/motion/presets/tooltip.md +0 -58
- package/src/motion/presets/tooltip.ts +0 -35
- package/src/motion/presets/utils.md +0 -15
- package/src/motion/presets/utils.ts +0 -11
- package/src/motion/primitives.md +0 -22
- package/src/motion/primitives.ts +0 -46
- package/src/motion/replace.md +0 -56
- package/src/motion/replace.ts +0 -22
- package/src/motion/rotate.md +0 -60
- package/src/motion/rotate.ts +0 -21
- package/src/motion/scale-in.md +0 -40
- package/src/motion/scale-in.ts +0 -19
- package/src/motion/spring.md +0 -19
- package/src/motion/spring.ts +0 -96
- package/src/motion/tokens.md +0 -50
- package/src/motion/tokens.ts +0 -83
- package/src/motion/while-2xl.ts +0 -9
- package/src/motion/while-active.ts +0 -12
- package/src/motion/while-appear.ts +0 -10
- package/src/motion/while-click.ts +0 -9
- package/src/motion/while-collapsed.ts +0 -12
- package/src/motion/while-disabled.ts +0 -14
- package/src/motion/while-disappear.ts +0 -10
- package/src/motion/while-drag.ts +0 -9
- package/src/motion/while-editing.ts +0 -9
- package/src/motion/while-expanded.ts +0 -12
- package/src/motion/while-focus.ts +0 -9
- package/src/motion/while-hover.ts +0 -13
- package/src/motion/while-idle.ts +0 -9
- package/src/motion/while-key.ts +0 -9
- package/src/motion/while-lg.ts +0 -9
- package/src/motion/while-load.ts +0 -12
- package/src/motion/while-md.ts +0 -9
- package/src/motion/while-reload.ts +0 -12
- package/src/motion/while-scroll.ts +0 -9
- package/src/motion/while-sm.ts +0 -9
- package/src/motion/while-uploading.ts +0 -9
- package/src/motion/while-validating.ts +0 -9
- package/src/motion/while-xl.ts +0 -9
- package/src/motion/while-xs.ts +0 -9
- package/src/styles/README.md +0 -109
- package/src/styles/auto-layout.css +0 -202
- package/src/styles/components.css +0 -920
- package/src/styles/index.css +0 -9
- package/src/styles/layout.css +0 -703
- package/src/styles/scale.css +0 -106
- package/src/styles/scale.md +0 -218
- package/src/styles/scrollbar.css +0 -258
- package/src/styles/themes.css +0 -146
- package/src/styles/tokens.css +0 -192
- package/src/vite-env.d.ts +0 -9
- /package/{src → dist/client}/assets/gradient-avatar/blue.svg +0 -0
- /package/{src → dist/client}/assets/gradient-avatar/cyan.svg +0 -0
- /package/{src → dist/client}/assets/gradient-avatar/green.svg +0 -0
- /package/{src → dist/client}/assets/gradient-avatar/orange.svg +0 -0
- /package/{src → dist/client}/assets/gradient-avatar/purple.svg +0 -0
- /package/{src → dist/client}/assets/gradient-avatar/red.svg +0 -0
- /package/{src/logic/morph.ts → dist/client/logic/morph.js} +0 -0
- /package/{src → dist/client}/motion/rotate.css +0 -0
package/src/motion/README.md
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# Motion 目录总览
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.2.0
|
|
4
|
-
> **目录**: `src/motion/`
|
|
5
|
-
|
|
6
|
-
本目录放的是 Frame 默认动效的**资源文件层**(`while-*.ts`、`bridge.ts`、`rotate.css`、原子动效构建器等),以及 PRO 指定的复杂动效组件。不是 Motion 引擎本身。
|
|
7
|
-
底层编排、时间轴、共享元素转场等基础设施在 [`src/logic/`](../logic/README.md)。
|
|
8
|
-
|
|
9
|
-
创建新组件或新动效前,必须先读本文件,避免把本该复用的动效能力重复写进组件内部。
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 和 `src/logic/` 的分工
|
|
14
|
-
|
|
15
|
-
| 目录 | 定位 | 例子 |
|
|
16
|
-
| :--- | :--- | :--- |
|
|
17
|
-
| `src/logic/` | 动效基础设施、状态桥、编排器、默认动效解析 | `motion.svelte.ts`、`frame-motion-defaults.ts`、`timeline.svelte.ts` |
|
|
18
|
-
| `src/motion/` | Frame 默认动效资源文件(`while-*.ts`、`bridge.ts`、`rotate.css`、原子动效构建器) | `bridge.ts`、`while-hover.ts`、`primitives.ts` |
|
|
19
|
-
| `pro/src/motion/` | 复杂动效组件 / PRO 指定动效 | `SplitText.svelte`、`splitText.ts` |
|
|
20
|
-
|
|
21
|
-
简单理解:
|
|
22
|
-
|
|
23
|
-
- `logic` 解决"什么时候动、怎么编排、默认怎么注入"
|
|
24
|
-
- `motion` 是 `logic` 消费的**动效配置资源**(`while-*.ts` / `move.ts`)和**桥接层**(`bridge.ts`),也包含供组件组合使用的原子动效构建器(`primitives.ts`)
|
|
25
|
-
- `pro/src/motion` 是面向用户的**复杂动效组件**
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 文件说明
|
|
30
|
-
|
|
31
|
-
### `bridge.ts`
|
|
32
|
-
|
|
33
|
-
- 职责:提供 Frame 动效时序桥接变量(`FRAME_CONTROL_MOTION_BRIDGE` / `FRAME_BORDER_MOTION_BRIDGE` / `FRAME_APPEAR_MOTION_BRIDGE` / `FRAME_COLOR_MOTION_BRIDGE` / `FRAME_LOOP_MOTION_BRIDGE`)。
|
|
34
|
-
- 被 `frame-inline-style.svelte.ts` 消费,注入 CSS 变量供组件 `transition` 声明使用。
|
|
35
|
-
|
|
36
|
-
### `primitives.ts`
|
|
37
|
-
|
|
38
|
-
- 职责:提供可组合的原子动效构建器:
|
|
39
|
-
- `createFadeMotion(opacity, timing?)`
|
|
40
|
-
- `createScaleMotion(scale, timing?)`
|
|
41
|
-
- `createSlideYMotion(y, timing?)`
|
|
42
|
-
- `createStackTranslateMotion(y, timing?)`
|
|
43
|
-
- `composeMotionConfigs(...configs)`
|
|
44
|
-
- 归属:OSS。只描述**单个 Frame 自身**的动作与时序,不负责跨 Frame 编排。
|
|
45
|
-
- 典型用法:Toast 这类 PRO 组件在使用时传入具体数值,把 `slide + fade`、`stackTranslate + scale + opacity` 组合成完整效果。
|
|
46
|
-
|
|
47
|
-
### `tokens.ts` / `presets/`
|
|
48
|
-
|
|
49
|
-
- `tokens.ts` 是动效基础数值单一来源。
|
|
50
|
-
- `presets/` 是组件族默认动效 catalog,新增组件默认动效值前必须先查。
|
|
51
|
-
- 已转正组件族动效不得在组件内重复写 duration / easing / scale / delay。
|
|
52
|
-
|
|
53
|
-
### `spring.ts`
|
|
54
|
-
|
|
55
|
-
- 职责:把 `type: "spring"` 的 stiffness / damping / mass 物理参数采样为 CSS `linear()` timing function。
|
|
56
|
-
- Frame CSS lifecycle 与命令式 `motion-engine` 共用同一解析,保留轻微越界与高阻尼停靠,不再退化为固定 cubic-bezier。
|
|
57
|
-
|
|
58
|
-
### `fade-in.ts` / `scale-in.ts`
|
|
59
|
-
|
|
60
|
-
- 职责:提供 `fadeIn` 与 `scaleIn` 两个进入类原子动效。
|
|
61
|
-
- 原子动效只表达基础能力,具体组件族数值由 `presets/` 决定。
|
|
62
|
-
- `whileAppear` fallback 现在引用仅包含 opacity 的 `GENERIC_APPEAR_MOTION`;scale 必须显式声明或由组件族 preset 提供。
|
|
63
|
-
|
|
64
|
-
### `move.ts`
|
|
65
|
-
|
|
66
|
-
- 职责:提供通用位移类默认动效预设。
|
|
67
|
-
- `slideFromTop / slideFromBottom / slideToTop / slideToBottom` 现在由 `primitives.ts` 中的原子动效组合而成。
|
|
68
|
-
- `slideStack` 当前仅保留为“堆叠类过渡的通用时序预设”,不再代表完整的 Toast 叠层效果。
|
|
69
|
-
|
|
70
|
-
### `while-*.ts`
|
|
71
|
-
|
|
72
|
-
- 每个文件对应一个 `while*` 关键字的默认动效配置。
|
|
73
|
-
- 被 `frame-motion-defaults.ts` 集中 import,通过 `DEFAULT_WHILE_MOTION_MAP` 分发。
|
|
74
|
-
- 新增 `whileXxx` 关键字时:先在 `frame-types.ts` 定义类型,再新建 `while-xxx.ts`,最后在 `frame-motion-defaults.ts` 注册。
|
|
75
|
-
|
|
76
|
-
### `rotate.css`
|
|
77
|
-
|
|
78
|
-
- 定义 `@keyframes snowui-frame-loop-rotate-clockwise` 全局关键帧。
|
|
79
|
-
- 由 `Frame.svelte` 直接 import。
|
|
80
|
-
|
|
81
|
-
### `SplitText.svelte` / `splitText.ts` — 已迁入 PRO
|
|
82
|
-
|
|
83
|
-
- **归属**:`pro/src/motion/`(复杂动效 → PRO 原则,2026-05-07)
|
|
84
|
-
- 职责:只做文字拆分,把文本拆成 `chars / words / lines? / container`。
|
|
85
|
-
- 适用:Hero 标题逐字出现、强调文本入场、按字符/单词序列播放。
|
|
86
|
-
|
|
87
|
-
### `FlowText.md`
|
|
88
|
-
|
|
89
|
-
- 迁移说明,不是实现文件。
|
|
90
|
-
- 当前统一使用 `src/components/FlowText.svelte`,兼容层已删除。
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
## 复用建议
|
|
95
|
-
|
|
96
|
-
### 1. 什么时候修改本目录
|
|
97
|
-
|
|
98
|
-
- 修改某个 `while*` 关键字的默认动效配置 → 修改对应 `while-*.ts`
|
|
99
|
-
- 修改动效时序桥接变量 → 修改 `bridge.ts`
|
|
100
|
-
- 需要新增循环关键帧 → 修改 `rotate.css`(或新建对应 css 文件)
|
|
101
|
-
|
|
102
|
-
### 2. 什么时候不要在这里新增文件
|
|
103
|
-
|
|
104
|
-
- 如果需求是"状态变化怎么通知动效系统",应改 `logic/frame-motion.svelte.ts`
|
|
105
|
-
- 如果需求是"播放顺序、时间轴、滚动联动、共享元素转场",应改 `logic/motion*.ts`
|
|
106
|
-
- 如果需求是面向用户的复杂动效组件,应放入 `pro/src/motion/`
|
|
107
|
-
|
|
108
|
-
### 3. 最常见的重复问题
|
|
109
|
-
|
|
110
|
-
- 不要把 `SplitText` 做成"拆分 + 编排 + 动效一体化胖组件";现有设计明确要求只负责拆分。
|
|
111
|
-
- 不要再创建 `motion/FlowText.svelte` 一类兼容壳;统一从 `components/` 主实现导入。
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## 新组件接入建议
|
|
116
|
-
|
|
117
|
-
如果组件要支持文字序列动效,推荐顺序是:
|
|
118
|
-
|
|
119
|
-
1. 先用 PRO 包的 `SplitText.svelte` 或 `splitText.ts` 拆出元素
|
|
120
|
-
2. 再用 `logic/motion.svelte.ts` 的 `registerGroup()` 注册
|
|
121
|
-
3. 具体顺序、延迟、反向播放交给 Motion 编排器处理
|
|
122
|
-
|
|
123
|
-
如果组件只是普通的 hover/click/生命周期进入动效,不需要直接依赖本目录,优先复用 `Frame` 的 `while*` 协议与默认动效解析链。显式 `while*` 对象是完整视觉通道声明,只继承默认时序 / 动力学参数。`whileAppear` 是生命周期关键字,不是“出现”原子动效;默认 fallback 由仅渐显的 `GENERIC_APPEAR_MOTION` 提供。组件语义明确时应引用对应组件族 preset。
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
## 更新日志 (Changelog)
|
|
128
|
-
|
|
129
|
-
### v1.3.0 (2026-06-18)
|
|
130
|
-
|
|
131
|
-
#### 架构调整
|
|
132
|
-
- 新增 `tokens.ts` 与 `presets/` catalog,组件族动效值不再写散到组件或 Frame 默认动效中。
|
|
133
|
-
- `whileAppear` fallback 改为引用 `GENERIC_APPEAR_MOTION`。
|
|
134
|
-
|
|
135
|
-
### v1.2.0 (2026-05-23)
|
|
136
|
-
|
|
137
|
-
#### 新功能
|
|
138
|
-
- 新增 `fade-in.ts` 与 `scale-in.ts` 两个进入类原子动效。
|
|
139
|
-
- `whileAppear` 曾从 `replaceIn` 改为 `fadeIn + scaleIn`;自 2026-06-30 起 generic fallback 收敛为仅 fadeIn,scale 改为显式 opt-in。
|
|
140
|
-
- 明确原子动效组合为并行播放,组合后的默认持续时间由当时的默认组合统一管理。
|
|
141
|
-
|
|
142
|
-
### v1.1.0 (2026-05-12)
|
|
143
|
-
|
|
144
|
-
#### 新功能
|
|
145
|
-
- 新增 `primitives.ts`:将 `fade / scale / slide / stackTranslate` 作为 OSS 原子动效构建器纳入 `src/motion/`。
|
|
146
|
-
- 明确 `move.ts` 中的 slide 预设由原子动效组合而成。
|
|
147
|
-
- 明确跨 Frame 的动效编排仍归 PRO;OSS motion 目录只承载单 Frame 自身可复用的动效资源。
|
package/src/motion/bridge.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# bridge.ts 文档
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.3.2
|
|
4
|
-
> **职责**: 提供 Frame 通用动效桥接策略,将默认动效资源解析为可供组件消费的 CSS 变量。
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 导出
|
|
9
|
-
|
|
10
|
-
| 名称 | 类型 | 描述 |
|
|
11
|
-
| :--- | :--- | :--- |
|
|
12
|
-
| `FRAME_CONTROL_MOTION_BRIDGE` | `MotionTimingBridge` | 控制类内部过渡桥接,默认回退 `MORPH_MOTION` |
|
|
13
|
-
| `FRAME_BORDER_MOTION_BRIDGE` | `MotionTimingBridge` | 描边类内部过渡桥接,默认回退 `MORPH_MOTION` |
|
|
14
|
-
| `FRAME_APPEAR_MOTION_BRIDGE` | `MotionTimingBridge` | 生命周期进入过渡桥接,默认回退 `WHILE_APPEAR_DEFAULT_MOTION`(默认仅 fadeIn,250ms;scale 需显式声明) |
|
|
15
|
-
| `FRAME_COLOR_MOTION_BRIDGE` | `MotionTimingBridge` | 颜色过渡桥接,默认 150ms easeOut;CSS 消费:`transition: color var(--snowui-frame-color-motion-duration) var(--snowui-frame-color-motion-easing)` |
|
|
16
|
-
| `FRAME_SIZE_MOTION_BRIDGE` | `MotionTimingBridge` | 尺寸过渡桥接,默认 `MORPH_MOTION`(250ms easeOut);CSS 消费:`transition: width var(--snowui-frame-size-motion-duration) var(--snowui-frame-size-motion-easing)`;用途场景:Tab/Segmented icon-toggle 展开宽度、Chip 折叠展开等内容驱动尺寸变化 |
|
|
17
|
-
| `FRAME_LOOP_MOTION_BRIDGE` | `LoopMotionBridge` | 循环动画桥接,默认回退 `ROTATE_CLOCKWISE_MOTION` |
|
|
18
|
-
| `resolveMotionTiming()` | `function` | 将 `duration / easing` 解析为 CSS 可直接消费的结果 |
|
|
19
|
-
| `createMotionTimingBridgeStyle()` | `function` | 生成 control / border / appear / color 的桥接 CSS 变量字符串 |
|
|
20
|
-
| `createLoopMotionBridgeStyle()` | `function` | 生成 loop 的桥接 CSS 变量字符串 |
|
|
21
|
-
| `resolveLoopMotionPresetName()` | `function` | 将 `loopMotion.preset` 解析为 Frame 内建循环动画名 |
|
|
22
|
-
| `createLoopMotionPresetStyle()` | `function` | 当声明 `loopMotion.preset` 时,生成 Frame 根节点可直接消费的完整循环动画样式 |
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 典型用途
|
|
27
|
-
|
|
28
|
-
- `Frame.svelte` 内联输出 `--snowui-frame-control-motion-*`
|
|
29
|
-
- `Radio / Checkbox / Switch` 复用默认控制类时序
|
|
30
|
-
- `Tooltip` 复用生命周期进入时序
|
|
31
|
-
- `Spinner` 复用默认循环动画时序
|
|
32
|
-
- `Frame` 通过 `loopMotion.preset="rotateClockwise"` 直接启用根节点连续旋转默认能力(关键帧资源位于 `rotate.css`)
|
|
33
|
-
- `Select / Input / Field` 等表单组件使用 `--snowui-frame-color-motion-*` 变量实现 hover 颜色过渡,而非硬编码 `transition: color 0.15s ease`
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 更新日志 (Changelog)
|
|
38
|
-
|
|
39
|
-
### v1.3.2 (2026-06-30)
|
|
40
|
-
|
|
41
|
-
#### 调整
|
|
42
|
-
- `WHILE_APPEAR_DEFAULT_MOTION` 的 generic 视觉收敛为仅 fadeIn;bridge 名称与默认时序保持兼容。
|
|
43
|
-
|
|
44
|
-
### v1.3.1 (2026-05-23)
|
|
45
|
-
|
|
46
|
-
#### 调整
|
|
47
|
-
- `FRAME_APPEAR_MOTION_BRIDGE` 保持变量名兼容,但默认回退从 `REPLACE_IN_MOTION` 改为 `WHILE_APPEAR_DEFAULT_MOTION`。
|
|
48
|
-
- `WHILE_APPEAR_DEFAULT_MOTION` 由 `fadeIn + scaleIn` 原子动效并行组合得到,默认持续时间仍为 `250ms`。
|
|
49
|
-
- 明确 `appear` bridge 是生命周期时序桥接名,不代表内部存在“出现”原子动效。
|
|
50
|
-
|
|
51
|
-
### v1.3.0 (2026-05-20)
|
|
52
|
-
|
|
53
|
-
#### 新功能
|
|
54
|
-
- 新增 `FRAME_SIZE_MOTION_BRIDGE`,用于宽高(width/height/min-*)的 CSS transition 时序桥接;默认回退 `MORPH_MOTION`(250ms easeOut)。
|
|
55
|
-
- `frame-inline-style.svelte.ts` 在 `activeConfig` 非空时自动注入 `--snowui-frame-size-motion-duration` / `--snowui-frame-size-motion-easing`。
|
|
56
|
-
- 首批消费方:Tab / Segmented 的 `icon-toggle` variant 展开宽度过渡。
|
|
57
|
-
|
|
58
|
-
### v1.2.0 (2026-04-15)
|
|
59
|
-
|
|
60
|
-
#### 新功能
|
|
61
|
-
- 新增 `FRAME_COLOR_MOTION_BRIDGE`,用于前景色/背景色的 CSS transition 时序桥接。
|
|
62
|
-
- `MotionConfig` 新增 `color` 字段;`motionConfigToStyle` 支持将其映射为 `--su-motion-color`。
|
|
63
|
-
- `while-hover.ts` 默认时序填充为 `{ duration: 150, easing: "easeOut" }`,Frame 在有 `Hover` 关键字时自动注入颜色过渡时序变量。
|
|
64
|
-
|
|
65
|
-
### v1.1.0 (2026-03-06)
|
|
66
|
-
|
|
67
|
-
#### 新功能
|
|
68
|
-
- 新增 `loopMotion.preset` 解析与 `createLoopMotionPresetStyle()`,支持 `Frame` 根节点声明式启用完整连续旋转默认能力。
|
|
69
|
-
|
|
70
|
-
### v1.0.0 (2026-03-06)
|
|
71
|
-
|
|
72
|
-
#### 新功能
|
|
73
|
-
- 新增 Frame 通用动效桥接默认策略模块,并从 `Frame.svelte` 中抽离桥接实现。
|
package/src/motion/bridge.ts
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* bridge.ts
|
|
3
|
-
* v1.1.0
|
|
4
|
-
* Frame 通用动效桥接默认策略:
|
|
5
|
-
* - 将 control / border / appear / loop 的 CSS 变量桥接逻辑从 Frame.svelte 抽离
|
|
6
|
-
* - 统一管理桥接变量前缀与默认回退动效
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type {
|
|
10
|
-
LoopMotionConfig,
|
|
11
|
-
LoopMotionPreset,
|
|
12
|
-
} from "../logic/frame-types";
|
|
13
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
14
|
-
import { MORPH_MOTION } from "./morph";
|
|
15
|
-
import { ROTATE_CLOCKWISE_MOTION } from "./rotate";
|
|
16
|
-
import { WHILE_APPEAR_DEFAULT_MOTION } from "./while-appear";
|
|
17
|
-
|
|
18
|
-
type MotionTimingSource = Partial<Pick<MotionConfig, "duration" | "easing">>;
|
|
19
|
-
|
|
20
|
-
export interface MotionTimingBridge {
|
|
21
|
-
variablePrefix: string;
|
|
22
|
-
fallback: MotionConfig;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface LoopMotionBridge {
|
|
26
|
-
variablePrefix: string;
|
|
27
|
-
fallback: MotionConfig;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const FRAME_CONTROL_MOTION_BRIDGE: MotionTimingBridge = {
|
|
31
|
-
variablePrefix: "snowui-frame-control-motion",
|
|
32
|
-
fallback: MORPH_MOTION,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const FRAME_BORDER_MOTION_BRIDGE: MotionTimingBridge = {
|
|
36
|
-
variablePrefix: "snowui-frame-border-motion",
|
|
37
|
-
fallback: MORPH_MOTION,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const FRAME_APPEAR_MOTION_BRIDGE: MotionTimingBridge = {
|
|
41
|
-
variablePrefix: "snowui-frame-appear-motion",
|
|
42
|
-
fallback: WHILE_APPEAR_DEFAULT_MOTION,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 颜色过渡桥接:用于前景色(color)和背景色(background-color)的 CSS transition 时序管理。
|
|
47
|
-
* CSS 内消费方式:
|
|
48
|
-
* transition: color var(--snowui-frame-color-motion-duration) var(--snowui-frame-color-motion-easing);
|
|
49
|
-
*/
|
|
50
|
-
export const FRAME_COLOR_MOTION_BRIDGE: MotionTimingBridge = {
|
|
51
|
-
variablePrefix: "snowui-frame-color-motion",
|
|
52
|
-
fallback: { duration: 150, easing: "easeOut" },
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* 尺寸过渡桥接:用于宽高(width / height / min-width / min-height)的 CSS transition 时序管理。
|
|
57
|
-
* 用途场景:Tab/Segmented icon-toggle 子项展开宽度、Chip 折叠展开等"内容驱动尺寸变化"场景。
|
|
58
|
-
* CSS 内消费方式:
|
|
59
|
-
* transition: width var(--snowui-frame-size-motion-duration) var(--snowui-frame-size-motion-easing);
|
|
60
|
-
*/
|
|
61
|
-
export const FRAME_SIZE_MOTION_BRIDGE: MotionTimingBridge = {
|
|
62
|
-
variablePrefix: "snowui-frame-size-motion",
|
|
63
|
-
fallback: MORPH_MOTION,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const FRAME_LOOP_MOTION_BRIDGE: LoopMotionBridge = {
|
|
67
|
-
variablePrefix: "snowui-frame-loop-motion",
|
|
68
|
-
fallback: ROTATE_CLOCKWISE_MOTION,
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const LOOP_MOTION_PRESET_ANIMATION_NAMES: Record<
|
|
72
|
-
LoopMotionPreset,
|
|
73
|
-
string
|
|
74
|
-
> = {
|
|
75
|
-
rotateClockwise: "snowui-frame-loop-rotate-clockwise",
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export function resolveCssEasing(easing: unknown) {
|
|
79
|
-
if (!easing || typeof easing !== "string") return "ease-out";
|
|
80
|
-
const map: Record<string, string> = {
|
|
81
|
-
linear: "linear",
|
|
82
|
-
easeIn: "ease-in",
|
|
83
|
-
easeOut: "ease-out",
|
|
84
|
-
easeInOut: "ease-in-out",
|
|
85
|
-
};
|
|
86
|
-
return map[easing] || easing;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function resolveMotionTiming(
|
|
90
|
-
config: MotionTimingSource | undefined,
|
|
91
|
-
fallback?: MotionTimingSource,
|
|
92
|
-
) {
|
|
93
|
-
const fallbackDuration =
|
|
94
|
-
typeof fallback?.duration === "number" ? fallback.duration : 300;
|
|
95
|
-
const duration =
|
|
96
|
-
typeof config?.duration === "number"
|
|
97
|
-
? config.duration
|
|
98
|
-
: fallbackDuration;
|
|
99
|
-
const easing = resolveCssEasing(config?.easing ?? fallback?.easing);
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
durationCss: `${duration}ms`,
|
|
103
|
-
easing,
|
|
104
|
-
transition: `all ${duration}ms ${easing}`,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function createMotionTimingBridgeStyle(
|
|
109
|
-
bridge: MotionTimingBridge,
|
|
110
|
-
config: MotionConfig | undefined,
|
|
111
|
-
) {
|
|
112
|
-
const timing = resolveMotionTiming(config, bridge.fallback);
|
|
113
|
-
return [
|
|
114
|
-
`--${bridge.variablePrefix}-duration: ${timing.durationCss}`,
|
|
115
|
-
`--${bridge.variablePrefix}-easing: ${timing.easing}`,
|
|
116
|
-
`--${bridge.variablePrefix}-transition: ${timing.transition}`,
|
|
117
|
-
].join(";");
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function resolveLoopIterationCount(value: LoopMotionConfig["iterationCount"]) {
|
|
121
|
-
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
122
|
-
return String(value);
|
|
123
|
-
}
|
|
124
|
-
if (typeof value === "string" && value.trim()) {
|
|
125
|
-
return value.trim();
|
|
126
|
-
}
|
|
127
|
-
return "infinite";
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function resolveLoopDirection(value: LoopMotionConfig["direction"]) {
|
|
131
|
-
return value ?? "normal";
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function resolveLoopPlayState(value: LoopMotionConfig["playState"]) {
|
|
135
|
-
return value ?? "running";
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function createLoopMotionBridgeStyle(
|
|
139
|
-
config: LoopMotionConfig | undefined,
|
|
140
|
-
bridge: LoopMotionBridge = FRAME_LOOP_MOTION_BRIDGE,
|
|
141
|
-
) {
|
|
142
|
-
if (!config || typeof config !== "object") return "";
|
|
143
|
-
|
|
144
|
-
const timing = resolveMotionTiming(config, bridge.fallback);
|
|
145
|
-
|
|
146
|
-
return [
|
|
147
|
-
`--${bridge.variablePrefix}-duration: ${timing.durationCss}`,
|
|
148
|
-
`--${bridge.variablePrefix}-easing: ${timing.easing}`,
|
|
149
|
-
`--${bridge.variablePrefix}-iteration-count: ${resolveLoopIterationCount(config.iterationCount)}`,
|
|
150
|
-
`--${bridge.variablePrefix}-direction: ${resolveLoopDirection(config.direction)}`,
|
|
151
|
-
`--${bridge.variablePrefix}-play-state: ${resolveLoopPlayState(config.playState)}`,
|
|
152
|
-
].join(";");
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function resolveLoopMotionPresetName(
|
|
156
|
-
preset: LoopMotionConfig["preset"],
|
|
157
|
-
) {
|
|
158
|
-
if (!preset) return undefined;
|
|
159
|
-
return LOOP_MOTION_PRESET_ANIMATION_NAMES[preset];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export function createLoopMotionPresetStyle(
|
|
163
|
-
config: LoopMotionConfig | undefined,
|
|
164
|
-
bridge: LoopMotionBridge = FRAME_LOOP_MOTION_BRIDGE,
|
|
165
|
-
) {
|
|
166
|
-
if (!config || typeof config !== "object" || !config.preset) return "";
|
|
167
|
-
|
|
168
|
-
const animationName = resolveLoopMotionPresetName(config.preset);
|
|
169
|
-
if (!animationName) return "";
|
|
170
|
-
|
|
171
|
-
const timing = resolveMotionTiming(config, bridge.fallback);
|
|
172
|
-
|
|
173
|
-
return [
|
|
174
|
-
"will-change: transform",
|
|
175
|
-
`animation-name: ${animationName}`,
|
|
176
|
-
`animation-duration: var(--${bridge.variablePrefix}-duration, ${timing.durationCss})`,
|
|
177
|
-
`animation-timing-function: var(--${bridge.variablePrefix}-easing, ${timing.easing})`,
|
|
178
|
-
`animation-iteration-count: var(--${bridge.variablePrefix}-iteration-count, ${resolveLoopIterationCount(config.iterationCount)})`,
|
|
179
|
-
`animation-direction: var(--${bridge.variablePrefix}-direction, ${resolveLoopDirection(config.direction)})`,
|
|
180
|
-
`animation-play-state: var(--${bridge.variablePrefix}-play-state, ${resolveLoopPlayState(config.playState)})`,
|
|
181
|
-
].join(";");
|
|
182
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* content-crossfade.ts
|
|
3
|
-
* v1.0.0
|
|
4
|
-
* 状态内容切换自动补间动效:旧内容渐隐(前150ms),新内容渐现(后150ms),总时长300ms
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
8
|
-
|
|
9
|
-
export const CONTENT_CROSSFADE_OUT_MOTION: MotionConfig = {
|
|
10
|
-
opacity: [1, 0],
|
|
11
|
-
scale: [1, 0.01],
|
|
12
|
-
duration: 150,
|
|
13
|
-
easing: "linear",
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const CONTENT_CROSSFADE_IN_MOTION: MotionConfig = {
|
|
17
|
-
opacity: [0, 1],
|
|
18
|
-
scale: [0.01, 1],
|
|
19
|
-
duration: 150,
|
|
20
|
-
delay: 150,
|
|
21
|
-
easing: "ease",
|
|
22
|
-
};
|
package/src/motion/expand.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# expand.ts 文档
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.0.0
|
|
4
|
-
> **职责**: 提供展开/收起场景的默认进出场动效配置。
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 导出
|
|
9
|
-
|
|
10
|
-
| 名称 | 类型 | 描述 |
|
|
11
|
-
| :--- | :--- | :--- |
|
|
12
|
-
| `EXPAND_IN_MOTION` | `MotionConfig` | 元素从 95% 放大到正常比例并渐现(展开进场) |
|
|
13
|
-
| `EXPAND_OUT_MOTION` | `MotionConfig` | 元素从正常比例缩小到 95% 并渐隐(收起离场) |
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 默认参数
|
|
18
|
-
|
|
19
|
-
### EXPAND_IN_MOTION
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
{
|
|
23
|
-
opacity: [0, 1],
|
|
24
|
-
scale: [0.95, 1],
|
|
25
|
-
duration: MOTION_DURATION_BASE_MS, // 250ms
|
|
26
|
-
easing: "easeOut"
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### EXPAND_OUT_MOTION
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
{
|
|
34
|
-
opacity: [1, 0],
|
|
35
|
-
scale: [1, 0.95],
|
|
36
|
-
duration: MOTION_DURATION_BASE_MS, // 250ms
|
|
37
|
-
easing: "easeOut"
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 典型用途
|
|
44
|
-
|
|
45
|
-
- `whileExpanded` 默认动效(元素切换到展开态时的进场)
|
|
46
|
-
- `whileCollapsed` 默认动效(元素切换到收起态时的离场)
|
|
47
|
-
- 全屏放大(CodeBlock 全屏覆盖层进入 / 退出)
|
|
48
|
-
- 抽屉、面板、弹出层的中心缩放动效
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## 与 replace.ts 的区别
|
|
53
|
-
|
|
54
|
-
| 动效 | scale 起点 | 适用场景 |
|
|
55
|
-
| :--- | :--- | :--- |
|
|
56
|
-
| `REPLACE_IN_MOTION` | 0.88 | 元素替换、图标切换(较明显的缩放感) |
|
|
57
|
-
| `EXPAND_IN_MOTION` | 0.95 | 面板展开、全屏放大(轻微的放大感) |
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## 更新日志 (Changelog)
|
|
62
|
-
|
|
63
|
-
### v1.0.0 (2026-05-02)
|
|
64
|
-
|
|
65
|
-
#### 新功能
|
|
66
|
-
- 新增展开/收起场景默认进出场动效常量。
|
package/src/motion/expand.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* expand.ts
|
|
3
|
-
* v1.0.0
|
|
4
|
-
* 展开/收起场景的默认动效配置:元素从收起态放大出现,或从展开态缩小消失。
|
|
5
|
-
* 适用于全屏放大、抽屉展开、面板弹出等场景。
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
9
|
-
import { MOTION_DURATION_BASE_MS } from "./tokens";
|
|
10
|
-
|
|
11
|
-
export const EXPAND_IN_MOTION: MotionConfig = {
|
|
12
|
-
opacity: [0, 1],
|
|
13
|
-
scale: [0.95, 1],
|
|
14
|
-
duration: MOTION_DURATION_BASE_MS,
|
|
15
|
-
easing: "easeOut",
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const EXPAND_OUT_MOTION: MotionConfig = {
|
|
19
|
-
opacity: [1, 0],
|
|
20
|
-
scale: [1, 0.95],
|
|
21
|
-
duration: MOTION_DURATION_BASE_MS,
|
|
22
|
-
easing: "easeOut",
|
|
23
|
-
};
|
package/src/motion/fade-in.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# fade-in.ts 文档
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.1.0
|
|
4
|
-
> **职责**: 提供默认渐显原子动效配置。
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 导出
|
|
9
|
-
|
|
10
|
-
| 名称 | 类型 | 描述 |
|
|
11
|
-
| :--- | :--- | :--- |
|
|
12
|
-
| `FADE_IN_MOTION` | `MotionConfig` | 透明度从 0 过渡到 1 的进入动效 |
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 默认参数
|
|
17
|
-
|
|
18
|
-
默认参数从 `motion/tokens.ts` 读取。组件族数值应通过 `motion/presets/` 暴露,组件不直接复制 `FADE_IN_MOTION` 的默认值。
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 组合规则
|
|
23
|
-
|
|
24
|
-
- `FADE_IN_MOTION` 是原子动效,只负责 opacity。
|
|
25
|
-
- `whileAppear` fallback 由仅渐显的 `GENERIC_APPEAR_MOTION` 提供。
|
|
26
|
-
- 组件语义明确时应引用对应组件族 preset。
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 更新日志 (Changelog)
|
|
31
|
-
|
|
32
|
-
### v1.1.0 (2026-06-18)
|
|
33
|
-
|
|
34
|
-
#### 架构调整
|
|
35
|
-
- 默认数值改为从 `motion/tokens.ts` 读取;组件族数值归入 `motion/presets/`。
|
|
36
|
-
|
|
37
|
-
### v1.0.0 (2026-05-23)
|
|
38
|
-
|
|
39
|
-
#### 新功能
|
|
40
|
-
- 新增默认渐显原子动效常量。
|
package/src/motion/fade-in.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* fade-in.ts
|
|
3
|
-
* v1.0.0
|
|
4
|
-
* 默认渐显原子动效:只负责透明度进入。
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
8
|
-
import { MOTION_DURATION_STANDARD_APPEAR_MS, MOTION_EASING_STANDARD } from "./tokens";
|
|
9
|
-
|
|
10
|
-
export const FADE_IN_MOTION: MotionConfig = {
|
|
11
|
-
opacity: [0, 1],
|
|
12
|
-
duration: MOTION_DURATION_STANDARD_APPEAR_MS,
|
|
13
|
-
easing: MOTION_EASING_STANDARD,
|
|
14
|
-
};
|
package/src/motion/fade-out.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# fade-out.ts 文档
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.0.0
|
|
4
|
-
> **职责**: 提供默认消失动效(渐隐)配置。
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 导出
|
|
9
|
-
|
|
10
|
-
| 名称 | 类型 | 描述 |
|
|
11
|
-
| :--- | :--- | :--- |
|
|
12
|
-
| `FADE_OUT_MOTION` | `MotionConfig` | 透明度从 1 过渡到 0 的离场动效 |
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 默认参数
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
{
|
|
20
|
-
opacity: [1, 0],
|
|
21
|
-
duration: 150,
|
|
22
|
-
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 典型用途
|
|
29
|
-
|
|
30
|
-
- `whileDisappear`
|
|
31
|
-
- `whileDisabled`(可叠加透明度降级)
|
|
32
|
-
- 通用元素离场
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## 更新日志 (Changelog)
|
|
37
|
-
|
|
38
|
-
### v1.0.0 (2026-02-26)
|
|
39
|
-
|
|
40
|
-
#### 新功能
|
|
41
|
-
- 新增默认渐隐离场动效常量。
|
package/src/motion/fade-out.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* fade-out.ts
|
|
3
|
-
* v1.0.0
|
|
4
|
-
* 默认消失动效:渐隐。
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
8
|
-
import { MOTION_DURATION_STANDARD_DISAPPEAR_MS, MOTION_EASING_STANDARD } from "./tokens";
|
|
9
|
-
|
|
10
|
-
export const FADE_OUT_MOTION: MotionConfig = {
|
|
11
|
-
opacity: [1, 0],
|
|
12
|
-
duration: MOTION_DURATION_STANDARD_DISAPPEAR_MS,
|
|
13
|
-
easing: MOTION_EASING_STANDARD,
|
|
14
|
-
};
|
package/src/motion/morph.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# morph.ts 文档
|
|
2
|
-
|
|
3
|
-
> **版本**: v1.0.0
|
|
4
|
-
> **职责**: 提供默认形态变化动效配置(尺寸/形态平滑过渡)。
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 导出
|
|
9
|
-
|
|
10
|
-
| 名称 | 类型 | 描述 |
|
|
11
|
-
| :--- | :--- | :--- |
|
|
12
|
-
| `MORPH_MOTION` | `MotionConfig` | 轻微缩放并回到正常比例的形态过渡 |
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 默认参数
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
{
|
|
20
|
-
scale: [0.98, 1],
|
|
21
|
-
duration: MOTION_DURATION_BASE_MS, // 250ms
|
|
22
|
-
easing: "easeOut"
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 典型用途
|
|
29
|
-
|
|
30
|
-
- `whileHover`
|
|
31
|
-
- `whileFocus`
|
|
32
|
-
- `whileCollapsed` / `whileExpanded`
|
|
33
|
-
- 宽高变化时的默认平滑感
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 更新日志 (Changelog)
|
|
38
|
-
|
|
39
|
-
### v1.0.0 (2026-02-26)
|
|
40
|
-
|
|
41
|
-
#### 新功能
|
|
42
|
-
- 新增默认形态过渡动效常量。
|
package/src/motion/morph.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* morph.ts
|
|
3
|
-
* v1.0.0
|
|
4
|
-
* 默认形态变化动效:用于宽高/尺寸变化时的平滑过渡。
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { MotionConfig } from "../logic/motion-config";
|
|
8
|
-
import { MOTION_DURATION_BASE_MS } from "./tokens";
|
|
9
|
-
|
|
10
|
-
export const MORPH_MOTION: MotionConfig = {
|
|
11
|
-
scale: [0.98, 1],
|
|
12
|
-
duration: MOTION_DURATION_BASE_MS,
|
|
13
|
-
easing: "easeOut",
|
|
14
|
-
};
|