@editora/ui-core 0.1.9 → 0.1.10
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/README.md +35 -0
- package/dist/ElementBase-1b301e7f.js +1 -0
- package/dist/ElementBase-909688f3.mjs +79 -0
- package/dist/accordion.cjs.js +360 -0
- package/dist/accordion.esm.js +647 -0
- package/dist/alert-dialog.cjs.js +567 -0
- package/dist/alert-dialog.esm.js +1043 -0
- package/dist/alert.cjs.js +351 -0
- package/dist/alert.esm.js +450 -0
- package/dist/anchor.cjs.js +30 -0
- package/dist/anchor.esm.js +62 -0
- package/dist/animated-beam.cjs.js +720 -0
- package/dist/animated-beam.esm.js +1540 -0
- package/dist/animated-list.cjs.js +672 -0
- package/dist/animated-list.esm.js +1137 -0
- package/dist/animated-text.cjs.js +683 -0
- package/dist/animated-text.esm.js +1020 -0
- package/dist/app-header.cjs.js +345 -0
- package/dist/app-header.esm.js +398 -0
- package/dist/aspect-ratio.cjs.js +294 -0
- package/dist/aspect-ratio.esm.js +416 -0
- package/dist/avatar.cjs.js +365 -0
- package/dist/avatar.esm.js +513 -0
- package/dist/badge.cjs.js +432 -0
- package/dist/badge.esm.js +554 -0
- package/dist/block-controls.cjs.js +347 -0
- package/dist/block-controls.esm.js +556 -0
- package/dist/box.cjs.js +226 -0
- package/dist/box.esm.js +556 -0
- package/dist/breadcrumb.cjs.js +288 -0
- package/dist/breadcrumb.esm.js +523 -0
- package/dist/button.cjs.js +521 -0
- package/dist/button.esm.js +671 -0
- package/dist/calendar-2c11b824.mjs +1685 -0
- package/dist/calendar-a8735e40.js +741 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.esm.js +11 -0
- package/dist/card.cjs.js +306 -0
- package/dist/card.esm.js +378 -0
- package/dist/chart.cjs.js +783 -0
- package/dist/chart.esm.js +1369 -0
- package/dist/checkbox.cjs.js +338 -0
- package/dist/checkbox.esm.js +455 -0
- package/dist/collapsible.cjs.js +381 -0
- package/dist/collapsible.esm.js +548 -0
- package/dist/collection-a1aac0c6.mjs +56 -0
- package/dist/collection-a2969ad2.js +1 -0
- package/dist/collection.cjs.js +1 -0
- package/dist/collection.esm.js +136 -0
- package/dist/color-picker.cjs.js +803 -0
- package/dist/color-picker.esm.js +1809 -0
- package/dist/combobox.cjs.js +525 -0
- package/dist/combobox.esm.js +1023 -0
- package/dist/command-palette.cjs.js +67 -0
- package/dist/command-palette.esm.js +181 -0
- package/dist/command.cjs.js +130 -0
- package/dist/command.esm.js +307 -0
- package/dist/container.cjs.js +115 -0
- package/dist/container.esm.js +156 -0
- package/dist/context-menu.cjs.js +357 -0
- package/dist/context-menu.esm.js +1204 -0
- package/dist/control-group.cjs.js +80 -0
- package/dist/control-group.esm.js +110 -0
- package/dist/data-table.cjs.js +682 -0
- package/dist/data-table.esm.js +1660 -0
- package/dist/date-field.cjs.js +142 -0
- package/dist/date-field.esm.js +384 -0
- package/dist/date-picker.cjs.js +570 -0
- package/dist/date-picker.esm.js +1067 -0
- package/dist/date-range-picker.cjs.js +455 -0
- package/dist/date-range-picker.esm.js +973 -0
- package/dist/date-range-time-picker.cjs.js +573 -0
- package/dist/date-range-time-picker.esm.js +1137 -0
- package/dist/date-time-picker.cjs.js +495 -0
- package/dist/date-time-picker.esm.js +1062 -0
- package/dist/date-time-utils-5cf58cd0.js +1 -0
- package/dist/date-time-utils-bdceb7af.mjs +273 -0
- package/dist/description.cjs.js +85 -0
- package/dist/description.esm.js +136 -0
- package/dist/dialog.cjs.js +406 -0
- package/dist/dialog.esm.js +822 -0
- package/dist/direction-provider.cjs.js +30 -0
- package/dist/direction-provider.esm.js +74 -0
- package/dist/dismissable-layer-193e3bed.js +1 -0
- package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
- package/dist/dismissable-layer.cjs.js +6 -0
- package/dist/dismissable-layer.esm.js +115 -0
- package/dist/dock.cjs.js +347 -0
- package/dist/dock.esm.js +826 -0
- package/dist/drawer.cjs.js +538 -0
- package/dist/drawer.esm.js +872 -0
- package/dist/dropdown.cjs.js +511 -0
- package/dist/dropdown.esm.js +1084 -0
- package/dist/dropzone.cjs.js +1 -0
- package/dist/dropzone.esm.js +11 -0
- package/dist/empty-state.cjs.js +169 -0
- package/dist/empty-state.esm.js +199 -0
- package/dist/field-error.cjs.js +74 -0
- package/dist/field-error.esm.js +125 -0
- package/dist/field.cjs.js +398 -0
- package/dist/field.esm.js +542 -0
- package/dist/fieldset.cjs.js +214 -0
- package/dist/fieldset.esm.js +298 -0
- package/dist/file-upload.cjs.js +353 -0
- package/dist/file-upload.esm.js +740 -0
- package/dist/flex.cjs.js +54 -0
- package/dist/flex.esm.js +168 -0
- package/dist/floating-toolbar.cjs.js +223 -0
- package/dist/floating-toolbar.esm.js +513 -0
- package/dist/focus-scope-103833ee.mjs +147 -0
- package/dist/focus-scope-2b12b4e7.js +1 -0
- package/dist/focus-scope.cjs.js +6 -0
- package/dist/focus-scope.esm.js +97 -0
- package/dist/form.cjs.js +377 -0
- package/dist/form.esm.js +862 -0
- package/dist/gantt.cjs.js +157 -0
- package/dist/gantt.esm.js +214 -0
- package/dist/grid.cjs.js +67 -0
- package/dist/grid.esm.js +211 -0
- package/dist/hover-card.cjs.js +284 -0
- package/dist/hover-card.esm.js +470 -0
- package/dist/icon-9ed13093.mjs +364 -0
- package/dist/icon-cloud.cjs.js +495 -0
- package/dist/icon-cloud.esm.js +828 -0
- package/dist/icon-eaa486b3.js +207 -0
- package/dist/icon.cjs.js +1 -0
- package/dist/icon.esm.js +6 -0
- package/dist/index.cjs.js +1 -36010
- package/dist/index.esm.js +440 -66615
- package/dist/inline-edit.cjs.js +118 -0
- package/dist/inline-edit.esm.js +206 -0
- package/dist/input.cjs.js +535 -0
- package/dist/input.esm.js +790 -0
- package/dist/label.cjs.js +195 -0
- package/dist/label.esm.js +301 -0
- package/dist/layout.cjs.js +266 -0
- package/dist/layout.esm.js +408 -0
- package/dist/listbox-308789a0.mjs +210 -0
- package/dist/listbox-ef2f708e.js +46 -0
- package/dist/listbox.cjs.js +1 -0
- package/dist/listbox.esm.js +6 -0
- package/dist/marquee.cjs.js +513 -0
- package/dist/marquee.esm.js +767 -0
- package/dist/masonry-grid.cjs.js +65 -0
- package/dist/masonry-grid.esm.js +180 -0
- package/dist/menu-item-styles-27fdbac4.mjs +181 -0
- package/dist/menu-item-styles-83ad1e22.js +152 -0
- package/dist/menu.cjs.js +275 -0
- package/dist/menu.esm.js +743 -0
- package/dist/menubar.cjs.js +455 -0
- package/dist/menubar.esm.js +1195 -0
- package/dist/meter.cjs.js +241 -0
- package/dist/meter.esm.js +334 -0
- package/dist/multi-select.cjs.js +549 -0
- package/dist/multi-select.esm.js +914 -0
- package/dist/navigation-menu.cjs.js +382 -0
- package/dist/navigation-menu.esm.js +614 -0
- package/dist/number-field.cjs.js +351 -0
- package/dist/number-field.esm.js +771 -0
- package/dist/number-ticker.cjs.js +209 -0
- package/dist/number-ticker.esm.js +749 -0
- package/dist/odometer.cjs.js +313 -0
- package/dist/odometer.esm.js +565 -0
- package/dist/orbiter.cjs.js +495 -0
- package/dist/orbiter.esm.js +831 -0
- package/dist/overlayManager-86454af7.mjs +58 -0
- package/dist/overlayManager-ece06517.js +1 -0
- package/dist/pagination.cjs.js +201 -0
- package/dist/pagination.esm.js +297 -0
- package/dist/panel-group-40254cdd.js +36 -0
- package/dist/panel-group-a376cc5e.mjs +326 -0
- package/dist/panel-group.cjs.js +1 -0
- package/dist/panel-group.esm.js +7 -0
- package/dist/panel.cjs.js +22 -0
- package/dist/panel.esm.js +46 -0
- package/dist/password-field.cjs.js +626 -0
- package/dist/password-field.esm.js +925 -0
- package/dist/pin-input.cjs.js +185 -0
- package/dist/pin-input.esm.js +412 -0
- package/dist/placement-grid.cjs.js +99 -0
- package/dist/placement-grid.esm.js +486 -0
- package/dist/plugin-panel.cjs.js +131 -0
- package/dist/plugin-panel.esm.js +173 -0
- package/dist/popover.cjs.js +286 -0
- package/dist/popover.esm.js +483 -0
- package/dist/portal-1cf392ca.mjs +114 -0
- package/dist/portal-d8d7fbca.js +1 -0
- package/dist/portal.cjs.js +39 -0
- package/dist/portal.esm.js +187 -0
- package/dist/positioner-accc6e5f.js +1 -0
- package/dist/positioner-fbd61bf1.mjs +132 -0
- package/dist/positioner.cjs.js +6 -0
- package/dist/positioner.esm.js +137 -0
- package/dist/presence.cjs.js +164 -0
- package/dist/presence.esm.js +301 -0
- package/dist/progress.cjs.js +329 -0
- package/dist/progress.esm.js +453 -0
- package/dist/quick-actions.cjs.js +202 -0
- package/dist/quick-actions.esm.js +357 -0
- package/dist/radio-group.cjs.js +257 -0
- package/dist/radio-group.esm.js +477 -0
- package/dist/rating.cjs.js +355 -0
- package/dist/rating.esm.js +637 -0
- package/dist/roving-focus-group-4350c9a7.mjs +50 -0
- package/dist/roving-focus-group-5c059bf9.js +1 -0
- package/dist/roving-focus-group.cjs.js +1 -0
- package/dist/roving-focus-group.esm.js +72 -0
- package/dist/{runtime-3cc1c386.mjs → runtime-4ac0107b.mjs} +348 -459
- package/dist/runtime-5f282bc8.js +1 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.esm.js +24 -23
- package/dist/scroll-area.cjs.js +294 -0
- package/dist/scroll-area.esm.js +478 -0
- package/dist/scroll-lock-48793569.js +1 -0
- package/dist/scroll-lock-9de6d328.mjs +53 -0
- package/dist/section.cjs.js +167 -0
- package/dist/section.esm.js +202 -0
- package/dist/select.cjs.js +799 -0
- package/dist/select.esm.js +1266 -0
- package/dist/selection-popup.cjs.js +203 -0
- package/dist/selection-popup.esm.js +392 -0
- package/dist/separator.cjs.js +221 -0
- package/dist/separator.esm.js +241 -0
- package/dist/sidebar.cjs.js +769 -0
- package/dist/sidebar.esm.js +1219 -0
- package/dist/skeleton.cjs.js +205 -0
- package/dist/skeleton.esm.js +249 -0
- package/dist/slider.cjs.js +493 -0
- package/dist/slider.esm.js +694 -0
- package/dist/slot.cjs.js +159 -0
- package/dist/slot.esm.js +227 -0
- package/dist/sortable.cjs.js +855 -1
- package/dist/sortable.esm.js +2176 -2
- package/dist/spinning-text.cjs.js +395 -0
- package/dist/spinning-text.esm.js +635 -0
- package/dist/split-button.cjs.js +410 -0
- package/dist/split-button.esm.js +619 -0
- package/dist/splitter.cjs.js +70 -0
- package/dist/splitter.esm.js +105 -0
- package/dist/standalone/accordion.d.ts +2 -0
- package/dist/standalone/accordion.d.ts.map +1 -0
- package/dist/standalone/alert-dialog.d.ts +2 -0
- package/dist/standalone/alert-dialog.d.ts.map +1 -0
- package/dist/standalone/alert.d.ts +2 -0
- package/dist/standalone/alert.d.ts.map +1 -0
- package/dist/standalone/anchor.d.ts +2 -0
- package/dist/standalone/anchor.d.ts.map +1 -0
- package/dist/standalone/animated-beam.d.ts +2 -0
- package/dist/standalone/animated-beam.d.ts.map +1 -0
- package/dist/standalone/animated-list.d.ts +2 -0
- package/dist/standalone/animated-list.d.ts.map +1 -0
- package/dist/standalone/animated-text.d.ts +2 -0
- package/dist/standalone/animated-text.d.ts.map +1 -0
- package/dist/standalone/app-header.d.ts +2 -0
- package/dist/standalone/app-header.d.ts.map +1 -0
- package/dist/standalone/aspect-ratio.d.ts +2 -0
- package/dist/standalone/aspect-ratio.d.ts.map +1 -0
- package/dist/standalone/avatar.d.ts +2 -0
- package/dist/standalone/avatar.d.ts.map +1 -0
- package/dist/standalone/badge.d.ts +2 -0
- package/dist/standalone/badge.d.ts.map +1 -0
- package/dist/standalone/block-controls.d.ts +2 -0
- package/dist/standalone/block-controls.d.ts.map +1 -0
- package/dist/standalone/box.d.ts +2 -0
- package/dist/standalone/box.d.ts.map +1 -0
- package/dist/standalone/breadcrumb.d.ts +2 -0
- package/dist/standalone/breadcrumb.d.ts.map +1 -0
- package/dist/standalone/button.d.ts +2 -0
- package/dist/standalone/button.d.ts.map +1 -0
- package/dist/standalone/calendar.d.ts +2 -0
- package/dist/standalone/calendar.d.ts.map +1 -0
- package/dist/standalone/card.d.ts +2 -0
- package/dist/standalone/card.d.ts.map +1 -0
- package/dist/standalone/chart.d.ts +2 -0
- package/dist/standalone/chart.d.ts.map +1 -0
- package/dist/standalone/checkbox.d.ts +2 -0
- package/dist/standalone/checkbox.d.ts.map +1 -0
- package/dist/standalone/collapsible.d.ts +2 -0
- package/dist/standalone/collapsible.d.ts.map +1 -0
- package/dist/standalone/collection.d.ts +2 -0
- package/dist/standalone/collection.d.ts.map +1 -0
- package/dist/standalone/color-picker.d.ts +2 -0
- package/dist/standalone/color-picker.d.ts.map +1 -0
- package/dist/standalone/combobox.d.ts +2 -0
- package/dist/standalone/combobox.d.ts.map +1 -0
- package/dist/standalone/command-palette.d.ts +2 -0
- package/dist/standalone/command-palette.d.ts.map +1 -0
- package/dist/standalone/command.d.ts +2 -0
- package/dist/standalone/command.d.ts.map +1 -0
- package/dist/standalone/container.d.ts +2 -0
- package/dist/standalone/container.d.ts.map +1 -0
- package/dist/standalone/context-menu.d.ts +2 -0
- package/dist/standalone/context-menu.d.ts.map +1 -0
- package/dist/standalone/control-group.d.ts +2 -0
- package/dist/standalone/control-group.d.ts.map +1 -0
- package/dist/standalone/data-table.d.ts +2 -0
- package/dist/standalone/data-table.d.ts.map +1 -0
- package/dist/standalone/date-field.d.ts +2 -0
- package/dist/standalone/date-field.d.ts.map +1 -0
- package/dist/standalone/date-picker.d.ts +2 -0
- package/dist/standalone/date-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-picker.d.ts +2 -0
- package/dist/standalone/date-range-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-time-picker.d.ts +2 -0
- package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
- package/dist/standalone/date-time-picker.d.ts +2 -0
- package/dist/standalone/date-time-picker.d.ts.map +1 -0
- package/dist/standalone/description.d.ts +2 -0
- package/dist/standalone/description.d.ts.map +1 -0
- package/dist/standalone/dialog.d.ts +2 -0
- package/dist/standalone/dialog.d.ts.map +1 -0
- package/dist/standalone/direction-provider.d.ts +2 -0
- package/dist/standalone/direction-provider.d.ts.map +1 -0
- package/dist/standalone/dismissable-layer.d.ts +2 -0
- package/dist/standalone/dismissable-layer.d.ts.map +1 -0
- package/dist/standalone/dock.d.ts +2 -0
- package/dist/standalone/dock.d.ts.map +1 -0
- package/dist/standalone/drawer.d.ts +2 -0
- package/dist/standalone/drawer.d.ts.map +1 -0
- package/dist/standalone/dropdown.d.ts +2 -0
- package/dist/standalone/dropdown.d.ts.map +1 -0
- package/dist/standalone/dropzone.d.ts +2 -0
- package/dist/standalone/dropzone.d.ts.map +1 -0
- package/dist/standalone/empty-state.d.ts +2 -0
- package/dist/standalone/empty-state.d.ts.map +1 -0
- package/dist/standalone/field-error.d.ts +2 -0
- package/dist/standalone/field-error.d.ts.map +1 -0
- package/dist/standalone/field.d.ts +2 -0
- package/dist/standalone/field.d.ts.map +1 -0
- package/dist/standalone/fieldset.d.ts +2 -0
- package/dist/standalone/fieldset.d.ts.map +1 -0
- package/dist/standalone/file-upload.d.ts +2 -0
- package/dist/standalone/file-upload.d.ts.map +1 -0
- package/dist/standalone/flex.d.ts +2 -0
- package/dist/standalone/flex.d.ts.map +1 -0
- package/dist/standalone/floating-toolbar.d.ts +2 -0
- package/dist/standalone/floating-toolbar.d.ts.map +1 -0
- package/dist/standalone/focus-scope.d.ts +2 -0
- package/dist/standalone/focus-scope.d.ts.map +1 -0
- package/dist/standalone/form.d.ts +2 -0
- package/dist/standalone/form.d.ts.map +1 -0
- package/dist/standalone/gantt.d.ts +2 -0
- package/dist/standalone/gantt.d.ts.map +1 -0
- package/dist/standalone/grid.d.ts +2 -0
- package/dist/standalone/grid.d.ts.map +1 -0
- package/dist/standalone/hover-card.d.ts +2 -0
- package/dist/standalone/hover-card.d.ts.map +1 -0
- package/dist/standalone/icon-cloud.d.ts +2 -0
- package/dist/standalone/icon-cloud.d.ts.map +1 -0
- package/dist/standalone/icon.d.ts +2 -0
- package/dist/standalone/icon.d.ts.map +1 -0
- package/dist/standalone/inline-edit.d.ts +2 -0
- package/dist/standalone/inline-edit.d.ts.map +1 -0
- package/dist/standalone/input.d.ts +2 -0
- package/dist/standalone/input.d.ts.map +1 -0
- package/dist/standalone/label.d.ts +2 -0
- package/dist/standalone/label.d.ts.map +1 -0
- package/dist/standalone/layout.d.ts +2 -0
- package/dist/standalone/layout.d.ts.map +1 -0
- package/dist/standalone/listbox.d.ts +2 -0
- package/dist/standalone/listbox.d.ts.map +1 -0
- package/dist/standalone/marquee.d.ts +2 -0
- package/dist/standalone/marquee.d.ts.map +1 -0
- package/dist/standalone/masonry-grid.d.ts +2 -0
- package/dist/standalone/masonry-grid.d.ts.map +1 -0
- package/dist/standalone/menu.d.ts +2 -0
- package/dist/standalone/menu.d.ts.map +1 -0
- package/dist/standalone/menubar.d.ts +2 -0
- package/dist/standalone/menubar.d.ts.map +1 -0
- package/dist/standalone/meter.d.ts +2 -0
- package/dist/standalone/meter.d.ts.map +1 -0
- package/dist/standalone/multi-select.d.ts +2 -0
- package/dist/standalone/multi-select.d.ts.map +1 -0
- package/dist/standalone/navigation-menu.d.ts +2 -0
- package/dist/standalone/navigation-menu.d.ts.map +1 -0
- package/dist/standalone/number-field.d.ts +2 -0
- package/dist/standalone/number-field.d.ts.map +1 -0
- package/dist/standalone/number-ticker.d.ts +2 -0
- package/dist/standalone/number-ticker.d.ts.map +1 -0
- package/dist/standalone/odometer.d.ts +2 -0
- package/dist/standalone/odometer.d.ts.map +1 -0
- package/dist/standalone/orbiter.d.ts +2 -0
- package/dist/standalone/orbiter.d.ts.map +1 -0
- package/dist/standalone/pagination.d.ts +2 -0
- package/dist/standalone/pagination.d.ts.map +1 -0
- package/dist/standalone/panel-group.d.ts +2 -0
- package/dist/standalone/panel-group.d.ts.map +1 -0
- package/dist/standalone/panel.d.ts +2 -0
- package/dist/standalone/panel.d.ts.map +1 -0
- package/dist/standalone/password-field.d.ts +2 -0
- package/dist/standalone/password-field.d.ts.map +1 -0
- package/dist/standalone/pin-input.d.ts +2 -0
- package/dist/standalone/pin-input.d.ts.map +1 -0
- package/dist/standalone/placement-grid.d.ts +2 -0
- package/dist/standalone/placement-grid.d.ts.map +1 -0
- package/dist/standalone/plugin-panel.d.ts +2 -0
- package/dist/standalone/plugin-panel.d.ts.map +1 -0
- package/dist/standalone/popover.d.ts +2 -0
- package/dist/standalone/popover.d.ts.map +1 -0
- package/dist/standalone/portal.d.ts +2 -0
- package/dist/standalone/portal.d.ts.map +1 -0
- package/dist/standalone/positioner.d.ts +2 -0
- package/dist/standalone/positioner.d.ts.map +1 -0
- package/dist/standalone/presence.d.ts +2 -0
- package/dist/standalone/presence.d.ts.map +1 -0
- package/dist/standalone/progress.d.ts +2 -0
- package/dist/standalone/progress.d.ts.map +1 -0
- package/dist/standalone/quick-actions.d.ts +2 -0
- package/dist/standalone/quick-actions.d.ts.map +1 -0
- package/dist/standalone/radio-group.d.ts +2 -0
- package/dist/standalone/radio-group.d.ts.map +1 -0
- package/dist/standalone/rating.d.ts +2 -0
- package/dist/standalone/rating.d.ts.map +1 -0
- package/dist/standalone/roving-focus-group.d.ts +2 -0
- package/dist/standalone/roving-focus-group.d.ts.map +1 -0
- package/dist/standalone/scroll-area.d.ts +2 -0
- package/dist/standalone/scroll-area.d.ts.map +1 -0
- package/dist/standalone/section.d.ts +2 -0
- package/dist/standalone/section.d.ts.map +1 -0
- package/dist/standalone/select.d.ts +2 -0
- package/dist/standalone/select.d.ts.map +1 -0
- package/dist/standalone/selection-popup.d.ts +2 -0
- package/dist/standalone/selection-popup.d.ts.map +1 -0
- package/dist/standalone/separator.d.ts +2 -0
- package/dist/standalone/separator.d.ts.map +1 -0
- package/dist/standalone/sidebar.d.ts +2 -0
- package/dist/standalone/sidebar.d.ts.map +1 -0
- package/dist/standalone/skeleton.d.ts +2 -0
- package/dist/standalone/skeleton.d.ts.map +1 -0
- package/dist/standalone/slider.d.ts +2 -0
- package/dist/standalone/slider.d.ts.map +1 -0
- package/dist/standalone/slot.d.ts +2 -0
- package/dist/standalone/slot.d.ts.map +1 -0
- package/dist/standalone/spinning-text.d.ts +2 -0
- package/dist/standalone/spinning-text.d.ts.map +1 -0
- package/dist/standalone/split-button.d.ts +2 -0
- package/dist/standalone/split-button.d.ts.map +1 -0
- package/dist/standalone/splitter.d.ts +2 -0
- package/dist/standalone/splitter.d.ts.map +1 -0
- package/dist/standalone/stepper.d.ts +2 -0
- package/dist/standalone/stepper.d.ts.map +1 -0
- package/dist/standalone/switch.d.ts +2 -0
- package/dist/standalone/switch.d.ts.map +1 -0
- package/dist/standalone/table.d.ts +2 -0
- package/dist/standalone/table.d.ts.map +1 -0
- package/dist/standalone/tabs.d.ts +2 -0
- package/dist/standalone/tabs.d.ts.map +1 -0
- package/dist/standalone/tags-input.d.ts +2 -0
- package/dist/standalone/tags-input.d.ts.map +1 -0
- package/dist/standalone/textarea.d.ts +2 -0
- package/dist/standalone/textarea.d.ts.map +1 -0
- package/dist/standalone/time-field.d.ts +2 -0
- package/dist/standalone/time-field.d.ts.map +1 -0
- package/dist/standalone/time-picker.d.ts +2 -0
- package/dist/standalone/time-picker.d.ts.map +1 -0
- package/dist/standalone/timeline.d.ts +2 -0
- package/dist/standalone/timeline.d.ts.map +1 -0
- package/dist/standalone/toast.d.ts +2 -0
- package/dist/standalone/toast.d.ts.map +1 -0
- package/dist/standalone/toggle-group.d.ts +2 -0
- package/dist/standalone/toggle-group.d.ts.map +1 -0
- package/dist/standalone/toggle.d.ts +2 -0
- package/dist/standalone/toggle.d.ts.map +1 -0
- package/dist/standalone/toolbar.d.ts +2 -0
- package/dist/standalone/toolbar.d.ts.map +1 -0
- package/dist/standalone/tooltip.d.ts +2 -0
- package/dist/standalone/tooltip.d.ts.map +1 -0
- package/dist/standalone/transfer-list.d.ts +2 -0
- package/dist/standalone/transfer-list.d.ts.map +1 -0
- package/dist/standalone/tree-item.d.ts +2 -0
- package/dist/standalone/tree-item.d.ts.map +1 -0
- package/dist/standalone/tree.d.ts +2 -0
- package/dist/standalone/tree.d.ts.map +1 -0
- package/dist/standalone/visually-hidden.d.ts +2 -0
- package/dist/standalone/visually-hidden.d.ts.map +1 -0
- package/dist/standalone/wizard.d.ts +2 -0
- package/dist/standalone/wizard.d.ts.map +1 -0
- package/dist/stepper.cjs.js +337 -0
- package/dist/stepper.esm.js +578 -0
- package/dist/switch.cjs.js +397 -0
- package/dist/switch.esm.js +543 -0
- package/dist/table.cjs.js +212 -0
- package/dist/table.esm.js +432 -0
- package/dist/tabs.cjs.js +515 -0
- package/dist/tabs.esm.js +808 -0
- package/dist/tags-input.cjs.js +202 -0
- package/dist/tags-input.esm.js +436 -0
- package/dist/textarea.cjs.js +329 -0
- package/dist/textarea.esm.js +520 -0
- package/dist/time-field.cjs.js +142 -0
- package/dist/time-field.esm.js +387 -0
- package/dist/time-picker.cjs.js +284 -0
- package/dist/time-picker.esm.js +686 -0
- package/dist/timeline.cjs.js +198 -0
- package/dist/timeline.esm.js +248 -0
- package/dist/toast.cjs.js +234 -0
- package/dist/toast.esm.js +399 -0
- package/dist/toggle-group.cjs.js +131 -0
- package/dist/toggle-group.esm.js +382 -0
- package/dist/toggle.cjs.js +237 -0
- package/dist/toggle.esm.js +346 -0
- package/dist/toolbar.cjs.js +126 -0
- package/dist/toolbar.esm.js +240 -0
- package/dist/tooltip.cjs.js +159 -0
- package/dist/tooltip.esm.js +376 -0
- package/dist/transfer-list.cjs.js +734 -0
- package/dist/transfer-list.esm.js +969 -0
- package/dist/tree-0a7a8d05.js +39 -0
- package/dist/tree-dcd74a4a.mjs +294 -0
- package/dist/tree-item.cjs.js +103 -0
- package/dist/tree-item.esm.js +143 -0
- package/dist/tree.cjs.js +1 -0
- package/dist/tree.esm.js +7 -0
- package/dist/visually-hidden.cjs.js +42 -0
- package/dist/visually-hidden.esm.js +68 -0
- package/dist/wizard.cjs.js +677 -0
- package/dist/wizard.esm.js +1068 -0
- package/package.json +7 -1
- package/dist/runtime-41717c1e.js +0 -1
- package/dist/sortable-06a3bd6c.js +0 -855
- package/dist/sortable-23bf110b.mjs +0 -2254
|
@@ -0,0 +1,1137 @@
|
|
|
1
|
+
import { E as _ } from "./ElementBase-909688f3.mjs";
|
|
2
|
+
const o = "520ms", l = "90ms", d = "0ms", x = 1400, p = 0.24, y = /* @__PURE__ */ new Set(["none", "sm", "md", "lg", "full"]), v = /* @__PURE__ */ new Set(["load", "visible", "manual"]), A = /* @__PURE__ */ new Set(["calm", "smooth", "snappy", "bouncy"]), S = `
|
|
3
|
+
:host {
|
|
4
|
+
--ui-animated-list-duration: ${o};
|
|
5
|
+
--ui-animated-list-stagger: ${l};
|
|
6
|
+
--ui-animated-list-delay: ${d};
|
|
7
|
+
--ui-animated-list-gap: 12px;
|
|
8
|
+
--ui-animated-list-padding: 16px;
|
|
9
|
+
--ui-animated-list-motion-easing: cubic-bezier(0.2, 0.9, 0.24, 1);
|
|
10
|
+
--ui-animated-list-motion-duration-scale: 1;
|
|
11
|
+
--ui-animated-list-motion-distance-scale: 1;
|
|
12
|
+
--ui-animated-list-motion-blur-scale: 1;
|
|
13
|
+
--ui-animated-list-motion-rotate-scale: 1;
|
|
14
|
+
--ui-animated-list-motion-overshoot-y: -2px;
|
|
15
|
+
--ui-animated-list-motion-overshoot-scale: 1.02;
|
|
16
|
+
--ui-animated-list-radius: var(--base-animated-list-radius, 20px);
|
|
17
|
+
--ui-animated-list-bg:
|
|
18
|
+
linear-gradient(
|
|
19
|
+
180deg,
|
|
20
|
+
color-mix(in srgb, var(--ui-color-surface, #ffffff) 98%, transparent) 0%,
|
|
21
|
+
color-mix(in srgb, var(--ui-color-surface-elevated, #f8fafc) 24%, var(--ui-color-surface, #ffffff)) 100%
|
|
22
|
+
);
|
|
23
|
+
--ui-animated-list-color: var(--ui-color-text, #0f172a);
|
|
24
|
+
--ui-animated-list-border-color:
|
|
25
|
+
color-mix(in srgb, var(--ui-color-border, rgba(15, 23, 42, 0.16)) 80%, transparent);
|
|
26
|
+
--ui-animated-list-border: 1px solid var(--ui-animated-list-border-color);
|
|
27
|
+
--ui-animated-list-shadow:
|
|
28
|
+
0 1px 2px rgba(15, 23, 42, 0.05),
|
|
29
|
+
0 16px 30px rgba(15, 23, 42, 0.08);
|
|
30
|
+
--ui-animated-list-backdrop: none;
|
|
31
|
+
--ui-animated-list-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
|
|
32
|
+
--ui-animated-list-focus-ring: var(--ui-color-focus-ring, var(--ui-focus-ring, #2563eb));
|
|
33
|
+
|
|
34
|
+
--ui-animated-list-item-radius: 16px;
|
|
35
|
+
--ui-animated-list-item-padding: 14px 16px;
|
|
36
|
+
--ui-animated-list-item-min-block-size: 56px;
|
|
37
|
+
--ui-animated-list-item-gap: 6px;
|
|
38
|
+
--ui-animated-list-item-bg:
|
|
39
|
+
linear-gradient(
|
|
40
|
+
180deg,
|
|
41
|
+
color-mix(in srgb, var(--ui-color-surface, #ffffff) 92%, transparent),
|
|
42
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 4%, var(--ui-color-surface, #ffffff))
|
|
43
|
+
);
|
|
44
|
+
--ui-animated-list-item-border:
|
|
45
|
+
1px solid color-mix(in srgb, var(--ui-animated-list-accent) 10%, var(--ui-animated-list-border-color));
|
|
46
|
+
--ui-animated-list-item-shadow:
|
|
47
|
+
0 1px 2px rgba(15, 23, 42, 0.04),
|
|
48
|
+
0 10px 18px rgba(15, 23, 42, 0.06);
|
|
49
|
+
--ui-animated-list-item-color: inherit;
|
|
50
|
+
--ui-animated-list-item-muted: var(--ui-color-muted, #64748b);
|
|
51
|
+
--ui-animated-list-item-backdrop: none;
|
|
52
|
+
|
|
53
|
+
display: block;
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
color-scheme: light dark;
|
|
57
|
+
color: var(--ui-animated-list-color);
|
|
58
|
+
font-family: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
59
|
+
contain: layout style;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([size="sm"]),
|
|
63
|
+
:host([size="1"]) {
|
|
64
|
+
--ui-animated-list-gap: 10px;
|
|
65
|
+
--ui-animated-list-padding: 12px;
|
|
66
|
+
--ui-animated-list-radius: 16px;
|
|
67
|
+
--ui-animated-list-item-radius: 14px;
|
|
68
|
+
--ui-animated-list-item-padding: 11px 13px;
|
|
69
|
+
--ui-animated-list-item-min-block-size: 48px;
|
|
70
|
+
--ui-animated-list-item-gap: 4px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host([size="md"]),
|
|
74
|
+
:host([size="2"]) {
|
|
75
|
+
--ui-animated-list-gap: 12px;
|
|
76
|
+
--ui-animated-list-padding: 16px;
|
|
77
|
+
--ui-animated-list-radius: var(--base-animated-list-radius, 20px);
|
|
78
|
+
--ui-animated-list-item-radius: 16px;
|
|
79
|
+
--ui-animated-list-item-padding: 14px 16px;
|
|
80
|
+
--ui-animated-list-item-min-block-size: 56px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([size="lg"]),
|
|
84
|
+
:host([size="3"]) {
|
|
85
|
+
--ui-animated-list-gap: 14px;
|
|
86
|
+
--ui-animated-list-padding: 20px;
|
|
87
|
+
--ui-animated-list-radius: 24px;
|
|
88
|
+
--ui-animated-list-item-radius: 18px;
|
|
89
|
+
--ui-animated-list-item-padding: 16px 18px;
|
|
90
|
+
--ui-animated-list-item-min-block-size: 64px;
|
|
91
|
+
--ui-animated-list-item-gap: 8px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([animation="calm"]) {
|
|
95
|
+
--ui-animated-list-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
96
|
+
--ui-animated-list-motion-duration-scale: 1.12;
|
|
97
|
+
--ui-animated-list-motion-distance-scale: 0.78;
|
|
98
|
+
--ui-animated-list-motion-blur-scale: 0.75;
|
|
99
|
+
--ui-animated-list-motion-rotate-scale: 0.82;
|
|
100
|
+
--ui-animated-list-motion-overshoot-y: -1px;
|
|
101
|
+
--ui-animated-list-motion-overshoot-scale: 1.01;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host(:not([animation])),
|
|
105
|
+
:host([animation="smooth"]) {
|
|
106
|
+
--ui-animated-list-motion-easing: cubic-bezier(0.2, 0.9, 0.24, 1);
|
|
107
|
+
--ui-animated-list-motion-duration-scale: 1;
|
|
108
|
+
--ui-animated-list-motion-distance-scale: 1;
|
|
109
|
+
--ui-animated-list-motion-blur-scale: 1;
|
|
110
|
+
--ui-animated-list-motion-rotate-scale: 1;
|
|
111
|
+
--ui-animated-list-motion-overshoot-y: -2px;
|
|
112
|
+
--ui-animated-list-motion-overshoot-scale: 1.02;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host([animation="snappy"]) {
|
|
116
|
+
--ui-animated-list-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
117
|
+
--ui-animated-list-motion-duration-scale: 0.88;
|
|
118
|
+
--ui-animated-list-motion-distance-scale: 1.12;
|
|
119
|
+
--ui-animated-list-motion-blur-scale: 0.92;
|
|
120
|
+
--ui-animated-list-motion-rotate-scale: 1.08;
|
|
121
|
+
--ui-animated-list-motion-overshoot-y: -2.5px;
|
|
122
|
+
--ui-animated-list-motion-overshoot-scale: 1.028;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host([animation="bouncy"]) {
|
|
126
|
+
--ui-animated-list-motion-easing: cubic-bezier(0.2, 1.18, 0.28, 1);
|
|
127
|
+
--ui-animated-list-motion-duration-scale: 1.08;
|
|
128
|
+
--ui-animated-list-motion-distance-scale: 1.18;
|
|
129
|
+
--ui-animated-list-motion-blur-scale: 1;
|
|
130
|
+
--ui-animated-list-motion-rotate-scale: 1.18;
|
|
131
|
+
--ui-animated-list-motion-overshoot-y: -4px;
|
|
132
|
+
--ui-animated-list-motion-overshoot-scale: 1.05;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host([tone="neutral"]) {
|
|
136
|
+
--ui-animated-list-accent: #64748b;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([tone="info"]) {
|
|
140
|
+
--ui-animated-list-accent: #0ea5e9;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([tone="success"]) {
|
|
144
|
+
--ui-animated-list-accent: var(--ui-color-success, #16a34a);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([tone="warning"]) {
|
|
148
|
+
--ui-animated-list-accent: var(--ui-color-warning, #d97706);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([tone="danger"]) {
|
|
152
|
+
--ui-animated-list-accent: var(--ui-color-danger, #dc2626);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([variant="soft"]) {
|
|
156
|
+
--ui-animated-list-bg:
|
|
157
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 6%, var(--ui-color-surface, #ffffff));
|
|
158
|
+
--ui-animated-list-border-color:
|
|
159
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 18%, var(--ui-color-border, rgba(15, 23, 42, 0.16)));
|
|
160
|
+
--ui-animated-list-shadow: none;
|
|
161
|
+
--ui-animated-list-item-bg:
|
|
162
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 10%, rgba(255, 255, 255, 0.82));
|
|
163
|
+
--ui-animated-list-item-border:
|
|
164
|
+
1px solid color-mix(in srgb, var(--ui-animated-list-accent) 20%, transparent);
|
|
165
|
+
--ui-animated-list-item-shadow: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([variant="solid"]) {
|
|
169
|
+
--ui-animated-list-bg:
|
|
170
|
+
linear-gradient(
|
|
171
|
+
180deg,
|
|
172
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 12%, var(--ui-color-surface, #ffffff)),
|
|
173
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 6%, var(--ui-color-surface-elevated, #f8fafc))
|
|
174
|
+
);
|
|
175
|
+
--ui-animated-list-border-color:
|
|
176
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 24%, var(--ui-color-border, rgba(15, 23, 42, 0.16)));
|
|
177
|
+
--ui-animated-list-shadow:
|
|
178
|
+
0 1px 3px rgba(15, 23, 42, 0.06),
|
|
179
|
+
0 18px 36px color-mix(in srgb, var(--ui-animated-list-accent) 10%, rgba(15, 23, 42, 0.08));
|
|
180
|
+
--ui-animated-list-item-bg:
|
|
181
|
+
linear-gradient(
|
|
182
|
+
180deg,
|
|
183
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 14%, rgba(255, 255, 255, 0.92)),
|
|
184
|
+
color-mix(in srgb, var(--ui-animated-list-accent) 8%, rgba(255, 255, 255, 0.84))
|
|
185
|
+
);
|
|
186
|
+
--ui-animated-list-item-border:
|
|
187
|
+
1px solid color-mix(in srgb, var(--ui-animated-list-accent) 28%, transparent);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:host([variant="glass"]) {
|
|
191
|
+
--ui-animated-list-bg:
|
|
192
|
+
linear-gradient(
|
|
193
|
+
180deg,
|
|
194
|
+
color-mix(in srgb, var(--ui-color-surface, #ffffff) 84%, #ffffff 16%),
|
|
195
|
+
color-mix(in srgb, var(--ui-color-surface, #ffffff) 74%, transparent)
|
|
196
|
+
);
|
|
197
|
+
--ui-animated-list-border-color:
|
|
198
|
+
color-mix(in srgb, #ffffff 28%, var(--ui-color-border, rgba(15, 23, 42, 0.16)));
|
|
199
|
+
--ui-animated-list-shadow:
|
|
200
|
+
0 1px 3px rgba(15, 23, 42, 0.08),
|
|
201
|
+
0 24px 48px rgba(15, 23, 42, 0.12);
|
|
202
|
+
--ui-animated-list-backdrop: blur(16px) saturate(1.08);
|
|
203
|
+
--ui-animated-list-item-bg: color-mix(in srgb, #ffffff 48%, transparent);
|
|
204
|
+
--ui-animated-list-item-border: 1px solid color-mix(in srgb, #ffffff 36%, transparent);
|
|
205
|
+
--ui-animated-list-item-backdrop: blur(10px) saturate(1.05);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([variant="contrast"]) {
|
|
209
|
+
--ui-animated-list-bg:
|
|
210
|
+
linear-gradient(
|
|
211
|
+
180deg,
|
|
212
|
+
color-mix(in srgb, #07162d 92%, var(--ui-animated-list-accent) 8%),
|
|
213
|
+
color-mix(in srgb, #0f2d57 84%, var(--ui-animated-list-accent) 16%)
|
|
214
|
+
);
|
|
215
|
+
--ui-animated-list-color: #f8fbff;
|
|
216
|
+
--ui-animated-list-border-color: color-mix(in srgb, #9ec5ff 18%, transparent);
|
|
217
|
+
--ui-animated-list-shadow: 0 28px 56px rgba(2, 6, 23, 0.32);
|
|
218
|
+
--ui-animated-list-item-bg: color-mix(in srgb, #ffffff 10%, transparent);
|
|
219
|
+
--ui-animated-list-item-border: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
|
|
220
|
+
--ui-animated-list-item-color: #f8fbff;
|
|
221
|
+
--ui-animated-list-item-muted: color-mix(in srgb, #f8fbff 68%, transparent);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host([variant="minimal"]) {
|
|
225
|
+
--ui-animated-list-bg: transparent;
|
|
226
|
+
--ui-animated-list-border: none;
|
|
227
|
+
--ui-animated-list-shadow: none;
|
|
228
|
+
--ui-animated-list-item-bg: color-mix(in srgb, var(--ui-animated-list-accent) 8%, transparent);
|
|
229
|
+
--ui-animated-list-item-border: 1px solid color-mix(in srgb, var(--ui-animated-list-accent) 16%, transparent);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host([radius="none"]) {
|
|
233
|
+
--ui-animated-list-radius: 0px;
|
|
234
|
+
--ui-animated-list-item-radius: 0px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host([radius="sm"]) {
|
|
238
|
+
--ui-animated-list-radius: 12px;
|
|
239
|
+
--ui-animated-list-item-radius: 12px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([radius="md"]) {
|
|
243
|
+
--ui-animated-list-radius: 18px;
|
|
244
|
+
--ui-animated-list-item-radius: 16px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host([radius="lg"]) {
|
|
248
|
+
--ui-animated-list-radius: 24px;
|
|
249
|
+
--ui-animated-list-item-radius: 18px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:host([radius="full"]) {
|
|
253
|
+
--ui-animated-list-radius: 999px;
|
|
254
|
+
--ui-animated-list-item-radius: 999px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:host([elevation="none"]) {
|
|
258
|
+
--ui-animated-list-shadow: none;
|
|
259
|
+
--ui-animated-list-item-shadow: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host([elevation="low"]) {
|
|
263
|
+
--ui-animated-list-shadow:
|
|
264
|
+
0 1px 2px rgba(15, 23, 42, 0.05),
|
|
265
|
+
0 16px 30px rgba(15, 23, 42, 0.08);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host([elevation="high"]) {
|
|
269
|
+
--ui-animated-list-shadow:
|
|
270
|
+
0 2px 8px rgba(15, 23, 42, 0.08),
|
|
271
|
+
0 28px 54px rgba(15, 23, 42, 0.16);
|
|
272
|
+
--ui-animated-list-item-shadow:
|
|
273
|
+
0 2px 8px rgba(15, 23, 42, 0.06),
|
|
274
|
+
0 18px 34px rgba(15, 23, 42, 0.1);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.root {
|
|
278
|
+
display: block;
|
|
279
|
+
min-inline-size: 0;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.surface {
|
|
283
|
+
display: block;
|
|
284
|
+
min-inline-size: 0;
|
|
285
|
+
padding: var(--ui-animated-list-padding);
|
|
286
|
+
border-radius: var(--ui-animated-list-radius);
|
|
287
|
+
border: var(--ui-animated-list-border);
|
|
288
|
+
background: var(--ui-animated-list-bg);
|
|
289
|
+
color: var(--ui-animated-list-color);
|
|
290
|
+
box-shadow: var(--ui-animated-list-shadow);
|
|
291
|
+
backdrop-filter: var(--ui-animated-list-backdrop);
|
|
292
|
+
box-sizing: border-box;
|
|
293
|
+
transition:
|
|
294
|
+
background-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
295
|
+
border-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
296
|
+
box-shadow 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
297
|
+
color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
298
|
+
backdrop-filter 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.list {
|
|
302
|
+
display: grid;
|
|
303
|
+
gap: var(--ui-animated-list-gap);
|
|
304
|
+
min-inline-size: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
::slotted([data-ui-animated-list-item]) {
|
|
308
|
+
display: grid !important;
|
|
309
|
+
gap: var(--ui-animated-list-item-gap);
|
|
310
|
+
min-inline-size: 0;
|
|
311
|
+
min-block-size: var(--ui-animated-list-item-min-block-size);
|
|
312
|
+
align-content: center;
|
|
313
|
+
box-sizing: border-box;
|
|
314
|
+
padding: var(--ui-animated-list-item-padding);
|
|
315
|
+
border-radius: var(--ui-animated-list-item-radius);
|
|
316
|
+
border: var(--ui-animated-list-item-border);
|
|
317
|
+
background: var(--ui-animated-list-item-bg);
|
|
318
|
+
color: var(--ui-animated-list-item-color);
|
|
319
|
+
box-shadow: var(--ui-animated-list-item-shadow);
|
|
320
|
+
backdrop-filter: var(--ui-animated-list-item-backdrop);
|
|
321
|
+
transform-origin: 50% 50%;
|
|
322
|
+
will-change: transform, opacity, filter;
|
|
323
|
+
transition:
|
|
324
|
+
background-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
325
|
+
border-color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
326
|
+
box-shadow 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
327
|
+
color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
|
|
328
|
+
backdrop-filter 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
:host([data-phase="ready"]) ::slotted([data-ui-animated-list-item]),
|
|
332
|
+
:host([data-phase="idle"]) ::slotted([data-ui-animated-list-item]) {
|
|
333
|
+
opacity: 0;
|
|
334
|
+
transform: var(--ui-animated-list-effect-from-transform, translate3d(0, 20px, 0));
|
|
335
|
+
filter: var(--ui-animated-list-effect-from-filter, none);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
:host([data-phase="running"]) ::slotted([data-ui-animated-list-item]) {
|
|
339
|
+
opacity: 0;
|
|
340
|
+
animation-duration: var(--ui-animated-list-duration);
|
|
341
|
+
animation-delay:
|
|
342
|
+
calc(var(--ui-animated-list-delay) + var(--ui-animated-list-index, 0) * var(--ui-animated-list-stagger));
|
|
343
|
+
animation-fill-mode: both;
|
|
344
|
+
animation-timing-function: var(--ui-animated-list-motion-easing);
|
|
345
|
+
animation-play-state: running;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
:host([paused][data-phase="running"]) ::slotted([data-ui-animated-list-item]) {
|
|
349
|
+
animation-play-state: paused;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:host([data-phase="complete"]) ::slotted([data-ui-animated-list-item]) {
|
|
353
|
+
opacity: 1;
|
|
354
|
+
transform: none;
|
|
355
|
+
filter: none;
|
|
356
|
+
animation: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
:host(:not([effect])),
|
|
360
|
+
:host([effect="fade-up"]) {
|
|
361
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 18px, 0);
|
|
362
|
+
--ui-animated-list-effect-from-filter: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
:host([effect="fade-down"]) {
|
|
366
|
+
--ui-animated-list-effect-from-transform: translate3d(0, -18px, 0);
|
|
367
|
+
--ui-animated-list-effect-from-filter: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
:host([effect="slide-left"]) {
|
|
371
|
+
--ui-animated-list-effect-from-transform: translate3d(28px, 0, 0);
|
|
372
|
+
--ui-animated-list-effect-from-filter: none;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
:host([effect="slide-right"]) {
|
|
376
|
+
--ui-animated-list-effect-from-transform: translate3d(-28px, 0, 0);
|
|
377
|
+
--ui-animated-list-effect-from-filter: none;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
:host([effect="scale-in"]) {
|
|
381
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 10px, 0) scale(0.94);
|
|
382
|
+
--ui-animated-list-effect-from-filter: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
:host([effect="blur-in"]) {
|
|
386
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 14px, 0) scale(0.98);
|
|
387
|
+
--ui-animated-list-effect-from-filter: blur(12px);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
:host([effect="pop"]) {
|
|
391
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 8px, 0) scale(0.88);
|
|
392
|
+
--ui-animated-list-effect-from-filter: none;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:host([effect="flip-in"]) {
|
|
396
|
+
--ui-animated-list-effect-from-transform: perspective(900px) rotateX(-18deg) translate3d(0, 14px, 0);
|
|
397
|
+
--ui-animated-list-effect-from-filter: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
:host([effect="rotate-in"]) {
|
|
401
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 12px, 0) rotate(-10deg) scale(0.97);
|
|
402
|
+
--ui-animated-list-effect-from-filter: none;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
:host([effect="tilt-in"]) {
|
|
406
|
+
--ui-animated-list-effect-from-transform: perspective(900px) rotateY(-14deg) translate3d(0, 12px, 0);
|
|
407
|
+
--ui-animated-list-effect-from-filter: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
:host([effect="float-up"]) {
|
|
411
|
+
--ui-animated-list-effect-from-transform: translate3d(0, 26px, 0) scale(0.985);
|
|
412
|
+
--ui-animated-list-effect-from-filter: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
:host([effect="swing-in"]) {
|
|
416
|
+
--ui-animated-list-effect-from-transform: translate3d(-16px, 0, 0) rotate(-7deg);
|
|
417
|
+
--ui-animated-list-effect-from-filter: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
:host([data-phase="running"]:not([effect])) ::slotted([data-ui-animated-list-item]),
|
|
421
|
+
:host([data-phase="running"][effect="fade-up"]) ::slotted([data-ui-animated-list-item]) {
|
|
422
|
+
animation-name: ui-animated-list-fade-up;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
:host([data-phase="running"][effect="fade-down"]) ::slotted([data-ui-animated-list-item]) {
|
|
426
|
+
animation-name: ui-animated-list-fade-down;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
:host([data-phase="running"][effect="slide-left"]) ::slotted([data-ui-animated-list-item]) {
|
|
430
|
+
animation-name: ui-animated-list-slide-left;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
:host([data-phase="running"][effect="slide-right"]) ::slotted([data-ui-animated-list-item]) {
|
|
434
|
+
animation-name: ui-animated-list-slide-right;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
:host([data-phase="running"][effect="scale-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
438
|
+
animation-name: ui-animated-list-scale-in;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
:host([data-phase="running"][effect="blur-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
442
|
+
animation-name: ui-animated-list-blur-in;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
:host([data-phase="running"][effect="pop"]) ::slotted([data-ui-animated-list-item]) {
|
|
446
|
+
animation-name: ui-animated-list-pop;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
:host([data-phase="running"][effect="flip-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
450
|
+
animation-name: ui-animated-list-flip-in;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
:host([data-phase="running"][effect="rotate-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
454
|
+
animation-name: ui-animated-list-rotate-in;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
:host([data-phase="running"][effect="tilt-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
458
|
+
animation-name: ui-animated-list-tilt-in;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
:host([data-phase="running"][effect="float-up"]) ::slotted([data-ui-animated-list-item]) {
|
|
462
|
+
animation-name: ui-animated-list-float-up;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
:host([data-phase="running"][effect="swing-in"]) ::slotted([data-ui-animated-list-item]) {
|
|
466
|
+
animation-name: ui-animated-list-swing-in;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
@keyframes ui-animated-list-fade-up {
|
|
470
|
+
from {
|
|
471
|
+
opacity: 0;
|
|
472
|
+
transform: translate3d(0, 18px, 0);
|
|
473
|
+
}
|
|
474
|
+
to {
|
|
475
|
+
opacity: 1;
|
|
476
|
+
transform: translate3d(0, 0, 0);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
@keyframes ui-animated-list-fade-down {
|
|
481
|
+
from {
|
|
482
|
+
opacity: 0;
|
|
483
|
+
transform: translate3d(0, -18px, 0);
|
|
484
|
+
}
|
|
485
|
+
to {
|
|
486
|
+
opacity: 1;
|
|
487
|
+
transform: translate3d(0, 0, 0);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
@keyframes ui-animated-list-slide-left {
|
|
492
|
+
from {
|
|
493
|
+
opacity: 0;
|
|
494
|
+
transform: translate3d(28px, 0, 0);
|
|
495
|
+
}
|
|
496
|
+
to {
|
|
497
|
+
opacity: 1;
|
|
498
|
+
transform: translate3d(0, 0, 0);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
@keyframes ui-animated-list-slide-right {
|
|
503
|
+
from {
|
|
504
|
+
opacity: 0;
|
|
505
|
+
transform: translate3d(-28px, 0, 0);
|
|
506
|
+
}
|
|
507
|
+
to {
|
|
508
|
+
opacity: 1;
|
|
509
|
+
transform: translate3d(0, 0, 0);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
@keyframes ui-animated-list-scale-in {
|
|
514
|
+
from {
|
|
515
|
+
opacity: 0;
|
|
516
|
+
transform: translate3d(0, 10px, 0) scale(0.94);
|
|
517
|
+
}
|
|
518
|
+
to {
|
|
519
|
+
opacity: 1;
|
|
520
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@keyframes ui-animated-list-blur-in {
|
|
525
|
+
from {
|
|
526
|
+
opacity: 0;
|
|
527
|
+
transform: translate3d(0, 14px, 0) scale(0.98);
|
|
528
|
+
filter: blur(12px);
|
|
529
|
+
}
|
|
530
|
+
to {
|
|
531
|
+
opacity: 1;
|
|
532
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
533
|
+
filter: blur(0);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
@keyframes ui-animated-list-pop {
|
|
538
|
+
from {
|
|
539
|
+
opacity: 0;
|
|
540
|
+
transform: translate3d(0, 8px, 0) scale(0.88);
|
|
541
|
+
}
|
|
542
|
+
60% {
|
|
543
|
+
opacity: 1;
|
|
544
|
+
transform: translate3d(0, -2px, 0) scale(1.02);
|
|
545
|
+
}
|
|
546
|
+
to {
|
|
547
|
+
opacity: 1;
|
|
548
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
@keyframes ui-animated-list-flip-in {
|
|
553
|
+
from {
|
|
554
|
+
opacity: 0;
|
|
555
|
+
transform: perspective(900px) rotateX(-18deg) translate3d(0, 14px, 0);
|
|
556
|
+
}
|
|
557
|
+
to {
|
|
558
|
+
opacity: 1;
|
|
559
|
+
transform: perspective(900px) rotateX(0deg) translate3d(0, 0, 0);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
@keyframes ui-animated-list-rotate-in {
|
|
564
|
+
from {
|
|
565
|
+
opacity: 0;
|
|
566
|
+
transform: translate3d(0, 12px, 0) rotate(-10deg) scale(0.97);
|
|
567
|
+
}
|
|
568
|
+
to {
|
|
569
|
+
opacity: 1;
|
|
570
|
+
transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@keyframes ui-animated-list-tilt-in {
|
|
575
|
+
from {
|
|
576
|
+
opacity: 0;
|
|
577
|
+
transform: perspective(900px) rotateY(-14deg) translate3d(0, 12px, 0);
|
|
578
|
+
}
|
|
579
|
+
to {
|
|
580
|
+
opacity: 1;
|
|
581
|
+
transform: perspective(900px) rotateY(0deg) translate3d(0, 0, 0);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@keyframes ui-animated-list-float-up {
|
|
586
|
+
from {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
transform: translate3d(0, 26px, 0) scale(0.985);
|
|
589
|
+
}
|
|
590
|
+
60% {
|
|
591
|
+
opacity: 1;
|
|
592
|
+
transform: translate3d(0, -2px, 0) scale(1.01);
|
|
593
|
+
}
|
|
594
|
+
to {
|
|
595
|
+
opacity: 1;
|
|
596
|
+
transform: translate3d(0, 0, 0) scale(1);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@keyframes ui-animated-list-swing-in {
|
|
601
|
+
from {
|
|
602
|
+
opacity: 0;
|
|
603
|
+
transform: translate3d(-16px, 0, 0) rotate(-7deg);
|
|
604
|
+
}
|
|
605
|
+
70% {
|
|
606
|
+
opacity: 1;
|
|
607
|
+
transform: translate3d(1px, 0, 0) rotate(1deg);
|
|
608
|
+
}
|
|
609
|
+
to {
|
|
610
|
+
opacity: 1;
|
|
611
|
+
transform: translate3d(0, 0, 0) rotate(0deg);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
:host(:focus-visible) .surface {
|
|
616
|
+
outline: none;
|
|
617
|
+
border-color: color-mix(in srgb, var(--ui-animated-list-focus-ring) 24%, transparent);
|
|
618
|
+
box-shadow:
|
|
619
|
+
0 0 0 3px color-mix(in srgb, var(--ui-animated-list-focus-ring) 18%, transparent),
|
|
620
|
+
var(--ui-animated-list-shadow);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
@media (prefers-reduced-motion: reduce) {
|
|
624
|
+
:host {
|
|
625
|
+
--ui-animated-list-duration: 1ms;
|
|
626
|
+
--ui-animated-list-stagger: 0ms;
|
|
627
|
+
--ui-animated-list-delay: 0ms;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
:host([data-phase="running"]) ::slotted([data-ui-animated-list-item]) {
|
|
631
|
+
animation-duration: 1ms !important;
|
|
632
|
+
animation-delay: 0ms !important;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
@media (prefers-contrast: more) {
|
|
637
|
+
.surface,
|
|
638
|
+
::slotted([data-ui-animated-list-item]) {
|
|
639
|
+
box-shadow: none;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.surface {
|
|
643
|
+
border-width: 2px;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
@media (forced-colors: active) {
|
|
648
|
+
:host {
|
|
649
|
+
--ui-animated-list-bg: Canvas;
|
|
650
|
+
--ui-animated-list-color: CanvasText;
|
|
651
|
+
--ui-animated-list-border-color: CanvasText;
|
|
652
|
+
--ui-animated-list-shadow: none;
|
|
653
|
+
--ui-animated-list-item-bg: Canvas;
|
|
654
|
+
--ui-animated-list-item-border: 1px solid CanvasText;
|
|
655
|
+
--ui-animated-list-item-color: CanvasText;
|
|
656
|
+
--ui-animated-list-item-shadow: none;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.surface,
|
|
660
|
+
::slotted([data-ui-animated-list-item]) {
|
|
661
|
+
forced-color-adjust: none;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
`;
|
|
665
|
+
function n(s, t) {
|
|
666
|
+
if (s == null || s === "")
|
|
667
|
+
return t;
|
|
668
|
+
const e = s.trim();
|
|
669
|
+
return e ? /^-?\d+(\.\d+)?ms$/i.test(e) ? Math.max(0, Number.parseFloat(e)) : /^-?\d+(\.\d+)?s$/i.test(e) ? Math.max(0, Number.parseFloat(e) * 1e3) : /^-?\d+(\.\d+)?$/i.test(e) ? Math.max(0, Number.parseFloat(e)) : t : t;
|
|
670
|
+
}
|
|
671
|
+
function m(s, t) {
|
|
672
|
+
if (s == null || s === "")
|
|
673
|
+
return t;
|
|
674
|
+
const e = s.trim();
|
|
675
|
+
return e ? /^-?\d+(\.\d+)?(ms|s)$/i.test(e) ? e : /^-?\d+(\.\d+)?$/i.test(e) ? `${e}ms` : t : t;
|
|
676
|
+
}
|
|
677
|
+
function u(s) {
|
|
678
|
+
if (s == null || s === "")
|
|
679
|
+
return null;
|
|
680
|
+
const t = s.trim();
|
|
681
|
+
if (!t)
|
|
682
|
+
return null;
|
|
683
|
+
const e = t.split(/\s+/).filter(Boolean);
|
|
684
|
+
return e.length ? e.map((i) => /^-?\d+(\.\d+)?$/.test(i) ? `${i}px` : i).join(" ") : null;
|
|
685
|
+
}
|
|
686
|
+
function g(s) {
|
|
687
|
+
if (s == null || s === "")
|
|
688
|
+
return p;
|
|
689
|
+
const t = Number.parseFloat(s);
|
|
690
|
+
return Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : p;
|
|
691
|
+
}
|
|
692
|
+
class T extends _ {
|
|
693
|
+
constructor() {
|
|
694
|
+
super(...arguments), this._slotEl = null, this._items = [], this._phase = "idle", this._playToken = 0, this._hasTriggeredOnce = !1, this._inView = !1, this._completionTimer = null, this._completionStartedAt = 0, this._completionRemaining = 0, this._loopTimer = null, this._loopStartedAt = 0, this._loopRemaining = 0, this._rafA = 0, this._rafB = 0, this._intersectionObserver = null, this._mediaQuery = null, this._animations = [], this._boundSlotChange = this._handleSlotChange.bind(this), this._boundReducedMotionChange = this._handleReducedMotionChange.bind(this);
|
|
695
|
+
}
|
|
696
|
+
static get observedAttributes() {
|
|
697
|
+
return [
|
|
698
|
+
"effect",
|
|
699
|
+
"trigger",
|
|
700
|
+
"duration",
|
|
701
|
+
"stagger",
|
|
702
|
+
"delay",
|
|
703
|
+
"animation",
|
|
704
|
+
"loop",
|
|
705
|
+
"loop-delay",
|
|
706
|
+
"paused",
|
|
707
|
+
"threshold",
|
|
708
|
+
"variant",
|
|
709
|
+
"tone",
|
|
710
|
+
"size",
|
|
711
|
+
"radius",
|
|
712
|
+
"elevation",
|
|
713
|
+
"padding",
|
|
714
|
+
"gap"
|
|
715
|
+
];
|
|
716
|
+
}
|
|
717
|
+
connectedCallback() {
|
|
718
|
+
super.connectedCallback(), this._bindReducedMotionWatcher();
|
|
719
|
+
}
|
|
720
|
+
disconnectedCallback() {
|
|
721
|
+
var t, e, i, a;
|
|
722
|
+
this._clearTimers(), this._disconnectIntersectionObserver(), (e = (t = this._mediaQuery) == null ? void 0 : t.removeEventListener) == null || e.call(t, "change", this._boundReducedMotionChange), (a = (i = this._mediaQuery) == null ? void 0 : i.removeListener) == null || a.call(i, this._boundReducedMotionChange), this._mediaQuery = null, super.disconnectedCallback();
|
|
723
|
+
}
|
|
724
|
+
attributeChangedCallback(t, e, i) {
|
|
725
|
+
if (!(e === i || !this.isConnected)) {
|
|
726
|
+
if (t === "paused") {
|
|
727
|
+
this.hasAttribute("paused") ? (this._pauseTimers(), this._pauseAnimations()) : (this._resumeTimers(), this._resumeAnimations()), this._syncStateAttributes();
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
if (this._syncRuntimeStyles(), t === "trigger" || t === "threshold") {
|
|
731
|
+
this._syncTrigger(), this._autoStartIfNeeded();
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
if (t === "duration" || t === "stagger" || t === "delay" || t === "loop" || t === "loop-delay") {
|
|
735
|
+
this._phase === "running" && !this.hasAttribute("paused") ? this._scheduleCompletion(this._totalAnimationMs()) : this._phase === "complete" && this._hasLoop() && !this.hasAttribute("paused") && this._scheduleLoop(this._loopDelayMs());
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
if (t === "effect" || t === "animation") {
|
|
739
|
+
this._phase === "running" && !this.hasAttribute("paused") && this.replay();
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
play() {
|
|
745
|
+
if (this.hasAttribute("paused") && this._phase === "running") {
|
|
746
|
+
this.removeAttribute("paused");
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
if (this.hasAttribute("paused") && this.removeAttribute("paused"), this._hasTriggeredOnce = !0, this._clearTimers(), this._prefersReducedMotion() || this._items.length === 0) {
|
|
750
|
+
this._setPhase("complete");
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
const t = ++this._playToken;
|
|
754
|
+
this._setPhase("ready"), this._rafA = requestAnimationFrame(() => {
|
|
755
|
+
t !== this._playToken || !this.isConnected || (this._rafB = requestAnimationFrame(() => {
|
|
756
|
+
t !== this._playToken || !this.isConnected || (this._setPhase("running"), this._startAnimations(), this.hasAttribute("paused") || this._scheduleCompletion(this._totalAnimationMs()));
|
|
757
|
+
}));
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
pause() {
|
|
761
|
+
this.hasAttribute("paused") || this.setAttribute("paused", "");
|
|
762
|
+
}
|
|
763
|
+
replay() {
|
|
764
|
+
this.play();
|
|
765
|
+
}
|
|
766
|
+
refresh() {
|
|
767
|
+
this._syncItems(), this._syncRuntimeStyles(), this._syncTrigger(), this._phase === "complete" ? this._setPhase("complete") : this._phase === "running" && !this.hasAttribute("paused") && this._scheduleCompletion(this._totalAnimationMs()), this._autoStartIfNeeded();
|
|
768
|
+
}
|
|
769
|
+
render() {
|
|
770
|
+
var t;
|
|
771
|
+
this.setContent(`
|
|
772
|
+
<style>${S}</style>
|
|
773
|
+
<div class="root" part="root">
|
|
774
|
+
<div class="surface" part="surface">
|
|
775
|
+
<div class="list" part="list">
|
|
776
|
+
<slot></slot>
|
|
777
|
+
</div>
|
|
778
|
+
</div>
|
|
779
|
+
</div>
|
|
780
|
+
`), this._slotEl = this.root.querySelector("slot"), (t = this._slotEl) == null || t.addEventListener("slotchange", this._boundSlotChange), this._syncRuntimeStyles(), this._syncItems(), this._syncTrigger(), this._autoStartIfNeeded();
|
|
781
|
+
}
|
|
782
|
+
shouldRenderOnAttributeChange() {
|
|
783
|
+
return !1;
|
|
784
|
+
}
|
|
785
|
+
_handleSlotChange() {
|
|
786
|
+
this._syncItems(), this._phase === "complete" && this._setPhase("complete"), this._autoStartIfNeeded();
|
|
787
|
+
}
|
|
788
|
+
_handleReducedMotionChange() {
|
|
789
|
+
if (this._prefersReducedMotion()) {
|
|
790
|
+
this._clearTimers(), this._setPhase("complete");
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
this._autoStartIfNeeded();
|
|
794
|
+
}
|
|
795
|
+
_bindReducedMotionWatcher() {
|
|
796
|
+
var t, e, i, a;
|
|
797
|
+
typeof window > "u" || typeof window.matchMedia != "function" || this._mediaQuery || (this._mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)"), (e = (t = this._mediaQuery).addEventListener) == null || e.call(t, "change", this._boundReducedMotionChange), (a = (i = this._mediaQuery).addListener) == null || a.call(i, this._boundReducedMotionChange));
|
|
798
|
+
}
|
|
799
|
+
_prefersReducedMotion() {
|
|
800
|
+
var t;
|
|
801
|
+
return !!((t = this._mediaQuery) != null && t.matches);
|
|
802
|
+
}
|
|
803
|
+
_itemsFromSlot() {
|
|
804
|
+
return this._slotEl ? this._slotEl.assignedElements({ flatten: !0 }).filter((t) => t instanceof HTMLElement) : [];
|
|
805
|
+
}
|
|
806
|
+
_syncItems() {
|
|
807
|
+
const t = this._itemsFromSlot(), e = new Set(t);
|
|
808
|
+
for (const i of this._items)
|
|
809
|
+
e.has(i) || (i.style.removeProperty("--ui-animated-list-index"), i.removeAttribute("data-ui-animated-list-managed"), i.hasAttribute("data-ui-animated-list-owned") && (i.removeAttribute("data-ui-animated-list-item"), i.removeAttribute("data-ui-animated-list-owned")));
|
|
810
|
+
t.forEach((i, a) => {
|
|
811
|
+
i.setAttribute("data-ui-animated-list-managed", ""), i.hasAttribute("data-ui-animated-list-item") || (i.setAttribute("data-ui-animated-list-item", ""), i.setAttribute("data-ui-animated-list-owned", "")), i.style.setProperty("--ui-animated-list-index", String(a));
|
|
812
|
+
}), this._items = t, this._items.length || this._setPhase("complete");
|
|
813
|
+
}
|
|
814
|
+
_syncRuntimeStyles() {
|
|
815
|
+
this.style.setProperty("--ui-animated-list-duration", m(this.getAttribute("duration"), o)), this.style.setProperty("--ui-animated-list-stagger", m(this.getAttribute("stagger"), l)), this.style.setProperty("--ui-animated-list-delay", m(this.getAttribute("delay"), d));
|
|
816
|
+
const t = u(this.getAttribute("padding"));
|
|
817
|
+
t ? this.style.setProperty("--ui-animated-list-padding", t) : this.style.removeProperty("--ui-animated-list-padding");
|
|
818
|
+
const e = u(this.getAttribute("gap"));
|
|
819
|
+
e ? this.style.setProperty("--ui-animated-list-gap", e) : this.style.removeProperty("--ui-animated-list-gap");
|
|
820
|
+
const i = this.getAttribute("radius");
|
|
821
|
+
if (!i || y.has(i.trim())) {
|
|
822
|
+
this.style.removeProperty("--ui-animated-list-radius"), this.style.removeProperty("--ui-animated-list-item-radius");
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
const a = u(i);
|
|
826
|
+
a ? (this.style.setProperty("--ui-animated-list-radius", a), this.style.setProperty("--ui-animated-list-item-radius", a)) : (this.style.removeProperty("--ui-animated-list-radius"), this.style.removeProperty("--ui-animated-list-item-radius"));
|
|
827
|
+
}
|
|
828
|
+
_trigger() {
|
|
829
|
+
const t = this.getAttribute("trigger");
|
|
830
|
+
return t && v.has(t) ? t : "load";
|
|
831
|
+
}
|
|
832
|
+
_hasLoop() {
|
|
833
|
+
return this.hasAttribute("loop");
|
|
834
|
+
}
|
|
835
|
+
_animationPreset() {
|
|
836
|
+
const t = this.getAttribute("animation");
|
|
837
|
+
return t && A.has(t) ? t : "smooth";
|
|
838
|
+
}
|
|
839
|
+
_motionProfile() {
|
|
840
|
+
switch (this._animationPreset()) {
|
|
841
|
+
case "calm":
|
|
842
|
+
return {
|
|
843
|
+
durationScale: 1.12,
|
|
844
|
+
distanceScale: 0.78,
|
|
845
|
+
blurScale: 0.75,
|
|
846
|
+
rotateScale: 0.82,
|
|
847
|
+
overshootY: -1,
|
|
848
|
+
overshootScale: 1.01,
|
|
849
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
850
|
+
};
|
|
851
|
+
case "snappy":
|
|
852
|
+
return {
|
|
853
|
+
durationScale: 0.88,
|
|
854
|
+
distanceScale: 1.12,
|
|
855
|
+
blurScale: 0.92,
|
|
856
|
+
rotateScale: 1.08,
|
|
857
|
+
overshootY: -2.5,
|
|
858
|
+
overshootScale: 1.028,
|
|
859
|
+
easing: "cubic-bezier(0.16, 1, 0.3, 1)"
|
|
860
|
+
};
|
|
861
|
+
case "bouncy":
|
|
862
|
+
return {
|
|
863
|
+
durationScale: 1.08,
|
|
864
|
+
distanceScale: 1.18,
|
|
865
|
+
blurScale: 1,
|
|
866
|
+
rotateScale: 1.18,
|
|
867
|
+
overshootY: -4,
|
|
868
|
+
overshootScale: 1.05,
|
|
869
|
+
easing: "cubic-bezier(0.2, 1.18, 0.28, 1)"
|
|
870
|
+
};
|
|
871
|
+
case "smooth":
|
|
872
|
+
default:
|
|
873
|
+
return {
|
|
874
|
+
durationScale: 1,
|
|
875
|
+
distanceScale: 1,
|
|
876
|
+
blurScale: 1,
|
|
877
|
+
rotateScale: 1,
|
|
878
|
+
overshootY: -2,
|
|
879
|
+
overshootScale: 1.02,
|
|
880
|
+
easing: "cubic-bezier(0.2, 0.9, 0.24, 1)"
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
_loopDelayMs() {
|
|
885
|
+
return n(this.getAttribute("loop-delay"), x);
|
|
886
|
+
}
|
|
887
|
+
_totalAnimationMs() {
|
|
888
|
+
const t = Math.max(this._items.length, 1), e = n(this.getAttribute("duration"), n(o, 520)) * this._motionProfile().durationScale, i = n(this.getAttribute("stagger"), n(l, 90)), a = n(this.getAttribute("delay"), n(d, 0));
|
|
889
|
+
return Math.max(0, a + e + i * Math.max(0, t - 1));
|
|
890
|
+
}
|
|
891
|
+
_scheduleCompletion(t) {
|
|
892
|
+
if (this._clearCompletionTimer(), this.hasAttribute("paused")) {
|
|
893
|
+
this._completionRemaining = t;
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
if (this._completionRemaining = t, t <= 0) {
|
|
897
|
+
queueMicrotask(() => this._completeRun());
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
this._completionStartedAt = Date.now();
|
|
901
|
+
const e = this._playToken;
|
|
902
|
+
this._completionTimer = setTimeout(() => {
|
|
903
|
+
e === this._playToken && (this._completionTimer = null, this._completionRemaining = 0, this._completeRun());
|
|
904
|
+
}, t);
|
|
905
|
+
}
|
|
906
|
+
_scheduleLoop(t) {
|
|
907
|
+
if (this._clearLoopTimer(), !this._hasLoop() || this.hasAttribute("paused")) {
|
|
908
|
+
this._loopRemaining = t;
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
if (this._loopRemaining = t, t <= 0) {
|
|
912
|
+
queueMicrotask(() => this.replay());
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
this._loopStartedAt = Date.now();
|
|
916
|
+
const e = this._playToken;
|
|
917
|
+
this._loopTimer = setTimeout(() => {
|
|
918
|
+
e === this._playToken && (this._loopTimer = null, this._loopRemaining = 0, this.replay());
|
|
919
|
+
}, t);
|
|
920
|
+
}
|
|
921
|
+
_completeRun() {
|
|
922
|
+
this._setPhase("complete"), this._hasLoop() && !this._prefersReducedMotion() && this._scheduleLoop(this._loopDelayMs());
|
|
923
|
+
}
|
|
924
|
+
_pauseTimers() {
|
|
925
|
+
if (this._completionTimer) {
|
|
926
|
+
const t = Date.now() - this._completionStartedAt;
|
|
927
|
+
this._completionRemaining = Math.max(0, this._completionRemaining - t), this._clearCompletionTimer();
|
|
928
|
+
}
|
|
929
|
+
if (this._loopTimer) {
|
|
930
|
+
const t = Date.now() - this._loopStartedAt;
|
|
931
|
+
this._loopRemaining = Math.max(0, this._loopRemaining - t), this._clearLoopTimer();
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
_resumeTimers() {
|
|
935
|
+
if (this._phase === "running") {
|
|
936
|
+
this._completionRemaining > 0 ? this._scheduleCompletion(this._completionRemaining) : this._scheduleCompletion(this._totalAnimationMs());
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
this._phase === "complete" && this._hasLoop() && (this._loopRemaining > 0 ? this._scheduleLoop(this._loopRemaining) : this._scheduleLoop(this._loopDelayMs()));
|
|
940
|
+
}
|
|
941
|
+
_clearTimers() {
|
|
942
|
+
this._playToken += 1, this._clearAnimations(), this._clearCompletionTimer(), this._clearLoopTimer(), this._rafA && cancelAnimationFrame(this._rafA), this._rafB && cancelAnimationFrame(this._rafB), this._rafA = 0, this._rafB = 0, this._completionRemaining = 0, this._loopRemaining = 0;
|
|
943
|
+
}
|
|
944
|
+
_clearCompletionTimer() {
|
|
945
|
+
this._completionTimer && (clearTimeout(this._completionTimer), this._completionTimer = null);
|
|
946
|
+
}
|
|
947
|
+
_clearLoopTimer() {
|
|
948
|
+
this._loopTimer && (clearTimeout(this._loopTimer), this._loopTimer = null);
|
|
949
|
+
}
|
|
950
|
+
_setPhase(t) {
|
|
951
|
+
this._phase = t, this.setAttribute("data-phase", t), this._syncStateAttributes();
|
|
952
|
+
}
|
|
953
|
+
_syncStateAttributes() {
|
|
954
|
+
const t = this.hasAttribute("paused") && (this._phase === "running" || this._loopRemaining > 0);
|
|
955
|
+
this.setAttribute("data-state", t ? "paused" : this._phase);
|
|
956
|
+
}
|
|
957
|
+
_syncTrigger() {
|
|
958
|
+
if (this._trigger() !== "visible") {
|
|
959
|
+
this._disconnectIntersectionObserver(), this._inView = !0;
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
if (typeof IntersectionObserver > "u") {
|
|
963
|
+
this._inView = !0;
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
this._disconnectIntersectionObserver(), this._intersectionObserver = new IntersectionObserver(
|
|
967
|
+
(t) => {
|
|
968
|
+
const e = t[0];
|
|
969
|
+
e && (this._inView = e.isIntersecting && e.intersectionRatio >= g(this.getAttribute("threshold")), this._inView && this._autoStartIfNeeded());
|
|
970
|
+
},
|
|
971
|
+
{ threshold: [0, g(this.getAttribute("threshold")), 1] }
|
|
972
|
+
), this._intersectionObserver.observe(this);
|
|
973
|
+
}
|
|
974
|
+
_disconnectIntersectionObserver() {
|
|
975
|
+
var t;
|
|
976
|
+
(t = this._intersectionObserver) == null || t.disconnect(), this._intersectionObserver = null;
|
|
977
|
+
}
|
|
978
|
+
_autoStartIfNeeded() {
|
|
979
|
+
if (!(!this.isConnected || this.hasAttribute("paused"))) {
|
|
980
|
+
if (this._prefersReducedMotion()) {
|
|
981
|
+
this._setPhase("complete");
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
if (this._trigger() === "manual") {
|
|
985
|
+
this._phase === "idle" && this._setPhase("ready");
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
if (this._trigger() === "visible" && !this._inView) {
|
|
989
|
+
this._phase === "idle" && this._setPhase("ready");
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
this._hasTriggeredOnce || this.play();
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
_pauseAnimations() {
|
|
996
|
+
for (const t of this._animations)
|
|
997
|
+
try {
|
|
998
|
+
t.pause();
|
|
999
|
+
} catch {
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
_resumeAnimations() {
|
|
1003
|
+
for (const t of this._animations)
|
|
1004
|
+
try {
|
|
1005
|
+
t.play();
|
|
1006
|
+
} catch {
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
_clearAnimations() {
|
|
1010
|
+
for (const t of this._animations)
|
|
1011
|
+
try {
|
|
1012
|
+
t.cancel();
|
|
1013
|
+
} catch {
|
|
1014
|
+
}
|
|
1015
|
+
this._animations = [];
|
|
1016
|
+
}
|
|
1017
|
+
_effectKeyframes() {
|
|
1018
|
+
const t = this.getAttribute("effect"), e = this._motionProfile(), i = e.distanceScale, a = 12 * e.blurScale, r = e.rotateScale;
|
|
1019
|
+
switch (t) {
|
|
1020
|
+
case "fade-down":
|
|
1021
|
+
return [
|
|
1022
|
+
{ opacity: 0, transform: `translate3d(0, ${-18 * i}px, 0)`, filter: "none" },
|
|
1023
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0)", filter: "none" }
|
|
1024
|
+
];
|
|
1025
|
+
case "slide-left":
|
|
1026
|
+
return [
|
|
1027
|
+
{ opacity: 0, transform: `translate3d(${28 * i}px, 0, 0)`, filter: "none" },
|
|
1028
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0)", filter: "none" }
|
|
1029
|
+
];
|
|
1030
|
+
case "slide-right":
|
|
1031
|
+
return [
|
|
1032
|
+
{ opacity: 0, transform: `translate3d(${-28 * i}px, 0, 0)`, filter: "none" },
|
|
1033
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0)", filter: "none" }
|
|
1034
|
+
];
|
|
1035
|
+
case "scale-in":
|
|
1036
|
+
return [
|
|
1037
|
+
{ opacity: 0, transform: `translate3d(0, ${10 * i}px, 0) scale(${1 - 0.06 * i})`, filter: "none" },
|
|
1038
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) scale(1)", filter: "none" }
|
|
1039
|
+
];
|
|
1040
|
+
case "blur-in":
|
|
1041
|
+
return [
|
|
1042
|
+
{
|
|
1043
|
+
opacity: 0,
|
|
1044
|
+
transform: `translate3d(0, ${14 * i}px, 0) scale(${1 - 0.02 * i})`,
|
|
1045
|
+
filter: `blur(${a}px)`
|
|
1046
|
+
},
|
|
1047
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) scale(1)", filter: "blur(0)" }
|
|
1048
|
+
];
|
|
1049
|
+
case "pop":
|
|
1050
|
+
return [
|
|
1051
|
+
{ opacity: 0, transform: `translate3d(0, ${8 * i}px, 0) scale(${1 - 0.12 * i})`, filter: "none", offset: 0 },
|
|
1052
|
+
{
|
|
1053
|
+
opacity: 1,
|
|
1054
|
+
transform: `translate3d(0, ${e.overshootY}px, 0) scale(${e.overshootScale})`,
|
|
1055
|
+
filter: "none",
|
|
1056
|
+
offset: 0.6
|
|
1057
|
+
},
|
|
1058
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) scale(1)", filter: "none", offset: 1 }
|
|
1059
|
+
];
|
|
1060
|
+
case "flip-in":
|
|
1061
|
+
return [
|
|
1062
|
+
{
|
|
1063
|
+
opacity: 0,
|
|
1064
|
+
transform: `perspective(900px) rotateX(${-18 * r}deg) translate3d(0, ${14 * i}px, 0)`,
|
|
1065
|
+
filter: "none"
|
|
1066
|
+
},
|
|
1067
|
+
{ opacity: 1, transform: "perspective(900px) rotateX(0deg) translate3d(0, 0, 0)", filter: "none" }
|
|
1068
|
+
];
|
|
1069
|
+
case "rotate-in":
|
|
1070
|
+
return [
|
|
1071
|
+
{
|
|
1072
|
+
opacity: 0,
|
|
1073
|
+
transform: `translate3d(0, ${12 * i}px, 0) rotate(${-10 * r}deg) scale(${1 - 0.03 * i})`,
|
|
1074
|
+
filter: "none"
|
|
1075
|
+
},
|
|
1076
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) rotate(0deg) scale(1)", filter: "none" }
|
|
1077
|
+
];
|
|
1078
|
+
case "tilt-in":
|
|
1079
|
+
return [
|
|
1080
|
+
{
|
|
1081
|
+
opacity: 0,
|
|
1082
|
+
transform: `perspective(900px) rotateY(${-14 * r}deg) translate3d(0, ${12 * i}px, 0)`,
|
|
1083
|
+
filter: "none"
|
|
1084
|
+
},
|
|
1085
|
+
{ opacity: 1, transform: "perspective(900px) rotateY(0deg) translate3d(0, 0, 0)", filter: "none" }
|
|
1086
|
+
];
|
|
1087
|
+
case "float-up":
|
|
1088
|
+
return [
|
|
1089
|
+
{ opacity: 0, transform: `translate3d(0, ${26 * i}px, 0) scale(${1 - 0.015 * i})`, filter: "none", offset: 0 },
|
|
1090
|
+
{
|
|
1091
|
+
opacity: 1,
|
|
1092
|
+
transform: `translate3d(0, ${Math.min(e.overshootY, -1)}px, 0) scale(${Math.max(1.01, e.overshootScale - 5e-3)})`,
|
|
1093
|
+
filter: "none",
|
|
1094
|
+
offset: 0.62
|
|
1095
|
+
},
|
|
1096
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) scale(1)", filter: "none", offset: 1 }
|
|
1097
|
+
];
|
|
1098
|
+
case "swing-in":
|
|
1099
|
+
return [
|
|
1100
|
+
{ opacity: 0, transform: `translate3d(${-16 * i}px, 0, 0) rotate(${-7 * r}deg)`, filter: "none", offset: 0 },
|
|
1101
|
+
{ opacity: 1, transform: "translate3d(1px, 0, 0) rotate(1deg)", filter: "none", offset: 0.7 },
|
|
1102
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0) rotate(0deg)", filter: "none", offset: 1 }
|
|
1103
|
+
];
|
|
1104
|
+
case "fade-up":
|
|
1105
|
+
default:
|
|
1106
|
+
return [
|
|
1107
|
+
{ opacity: 0, transform: `translate3d(0, ${18 * i}px, 0)`, filter: "none" },
|
|
1108
|
+
{ opacity: 1, transform: "translate3d(0, 0, 0)", filter: "none" }
|
|
1109
|
+
];
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
_startAnimations() {
|
|
1113
|
+
var c;
|
|
1114
|
+
if (this._clearAnimations(), typeof ((c = this._items[0]) == null ? void 0 : c.animate) != "function")
|
|
1115
|
+
return;
|
|
1116
|
+
const t = this._motionProfile(), e = n(this.getAttribute("duration"), n(o, 520)) * t.durationScale, i = n(this.getAttribute("stagger"), n(l, 90)), a = n(this.getAttribute("delay"), n(d, 0)), r = this._effectKeyframes();
|
|
1117
|
+
this._animations = this._items.map((f, b) => {
|
|
1118
|
+
f.style.animation = "none";
|
|
1119
|
+
const h = f.animate(r, {
|
|
1120
|
+
duration: e,
|
|
1121
|
+
delay: a + b * i,
|
|
1122
|
+
fill: "both",
|
|
1123
|
+
easing: t.easing
|
|
1124
|
+
});
|
|
1125
|
+
if (this.hasAttribute("paused"))
|
|
1126
|
+
try {
|
|
1127
|
+
h.pause();
|
|
1128
|
+
} catch {
|
|
1129
|
+
}
|
|
1130
|
+
return h;
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
typeof customElements < "u" && !customElements.get("ui-animated-list") && customElements.define("ui-animated-list", T);
|
|
1135
|
+
export {
|
|
1136
|
+
T as UIAnimatedList
|
|
1137
|
+
};
|