@mkbabb/glass-ui 5.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -56
- package/dist/DropdownMenuTrigger-ClIq8RJE.js +93 -0
- package/dist/FeedbackMark-DZq5001h.js +23 -0
- package/dist/Input-9BlLluik.js +77 -0
- package/dist/PagerDots-BEq0MgtH.js +311 -0
- package/dist/Surface-kFQeYrYv.js +82 -0
- package/dist/accent-tone-solve-Cw7WkRD9.js +14 -0
- package/dist/animated-digit.js +5 -5
- package/dist/asElement-CRnm6A2v.js +9 -0
- package/dist/aurora.js +858 -793
- package/dist/axes.js +25 -14
- package/dist/badge-u65NClWn.js +62 -0
- package/dist/badge.js +1 -1
- package/dist/blob-config.d.ts +0 -4
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +490 -424
- package/dist/button-Bu9F4uU6.js +98 -0
- package/dist/button.js +2 -2
- package/dist/canvas.js +1 -1
- package/dist/card-Bk96VI2R.js +234 -0
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -2
- package/dist/carousel.js +109 -238
- package/dist/chip-DFZQr6rV.js +129 -0
- package/dist/chip.d.ts +0 -9
- package/dist/chip.js +2 -81
- package/dist/{class-names-5jotTFzp.js → class-names-Cpy5eaBk.js} +11 -4
- package/dist/collapsible-BAP95XTt.js +154 -0
- package/dist/collapsible.js +1 -1
- package/dist/color.js +83 -3
- package/dist/{procedural-color.wgsl-ByduxnzV.js → color.wgsl-Ct5o9dpf.js} +410 -3
- package/dist/command-SFqDQ65h.js +320 -0
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +72 -63
- package/dist/components/_shared/FeedbackMark.vue.d.ts +11 -0
- package/dist/components/_shared/axes.d.ts +9 -3
- package/dist/components/_shared/class-names.d.ts +9 -8
- package/dist/components/_shared/control-size.d.ts +2 -0
- package/dist/components/_shared/disclosure-context.d.ts +7 -0
- package/dist/components/_shared/disclosure.css +1 -0
- package/dist/components/_shared/feedback.d.ts +7 -0
- package/dist/components/_shared/field-control.css +1 -0
- package/dist/components/_shared/field-surfaces.css +1 -0
- package/dist/components/_shared/fieldControl.d.ts +13 -0
- package/dist/components/_shared/floating.d.ts +14 -0
- package/dist/components/_shared/index.d.ts +2 -6
- package/dist/components/_shared/interaction.d.ts +23 -0
- package/dist/components/_shared/menu.css +1 -0
- package/dist/components/_shared/menuRowClass.d.ts +2 -0
- package/dist/components/_shared/primitive.d.ts +19 -0
- package/dist/components/_shared/resolveSurfaceClass.d.ts +3 -0
- package/dist/components/_shared/selection.d.ts +7 -0
- package/dist/components/_shared/useMotionAxis.d.ts +5 -4
- package/dist/components/_shared/valueDomain.d.ts +6 -0
- package/dist/components/accordion/Accordion.vue.d.ts +41 -16
- package/dist/components/accordion/AccordionContent.vue.d.ts +11 -9
- package/dist/components/accordion/AccordionItem.vue.d.ts +12 -9
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +8 -11
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/alert/Alert.vue.d.ts +9 -5
- package/dist/components/alert/index.d.ts +17 -8
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +3 -4
- package/dist/components/aurora/Aurora.vue.d.ts +44 -43
- package/dist/components/aurora/composables/atoms-fields.d.ts +13 -2
- package/dist/components/aurora/composables/atoms.d.ts +52 -50
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +13 -13
- package/dist/components/aurora/composables/auroraImageSource.d.ts +4 -5
- package/dist/components/aurora/composables/color.d.ts +15 -20
- package/dist/components/aurora/composables/frameLoop.d.ts +14 -11
- package/dist/components/aurora/composables/glSetup.d.ts +19 -2
- package/dist/components/aurora/composables/runtime.d.ts +58 -60
- package/dist/components/aurora/composables/uniformBridge.d.ts +9 -14
- package/dist/components/aurora/composables/uniformBridgeWGPU.d.ts +21 -22
- package/dist/components/aurora/composables/uniformBridgeWGPUImage.d.ts +13 -13
- package/dist/components/aurora/composables/useAurora.d.ts +21 -30
- package/dist/components/aurora/composables/wgpuSetup.d.ts +10 -8
- package/dist/components/aurora/constants/budget.d.ts +12 -25
- package/dist/components/aurora/constants/presets.d.ts +47 -58
- package/dist/components/aurora/constants/renderMode.d.ts +21 -36
- package/dist/components/aurora/constants/shaders/aurora-image.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/metal-medium.glsl.d.ts +2 -2
- package/dist/components/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -1
- package/dist/components/aurora/index.d.ts +2 -1
- package/dist/components/avatar/Avatar.vue.d.ts +72 -11
- package/dist/components/avatar/AvatarFallback.vue.d.ts +1 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +12 -6
- package/dist/components/avatar/index.d.ts +3 -9
- package/dist/components/avatar/styles.css +1 -0
- package/dist/components/badge/Badge.vue.d.ts +2 -9
- package/dist/components/badge/index.d.ts +32 -9
- package/dist/components/blob/Blob.vue.d.ts +16 -12
- package/dist/components/blob/composables/blobSimulation.d.ts +80 -0
- package/dist/components/blob/composables/buildMetaballProgram.d.ts +1 -1
- package/dist/components/blob/composables/resolveBlobSurface.d.ts +6 -0
- package/dist/components/blob/composables/satelliteKinematics.d.ts +3 -3
- package/dist/components/blob/composables/uniformBridgeWGPU.d.ts +1 -1
- package/dist/components/blob/composables/uploadBlobUniforms.d.ts +4 -31
- package/dist/components/blob/composables/useBlobMood.d.ts +5 -5
- package/dist/components/blob/composables/useBlobPointer.d.ts +11 -12
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +29 -24
- package/dist/components/blob/composables/wgpuSetup.d.ts +7 -5
- package/dist/components/blob/config.d.ts +1 -1
- package/dist/components/blob/index.d.ts +2 -2
- package/dist/components/blob/presets.d.ts +2 -2
- package/dist/components/blob/shaders/metaball-palette.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/watercolor-edges.glsl.d.ts +1 -1
- package/dist/components/blob/types.d.ts +28 -60
- package/dist/components/button/Button.vue.d.ts +27 -19
- package/dist/components/button/index.d.ts +1 -9
- package/dist/components/button/styles.css +1 -0
- package/dist/components/card/Card.vue.d.ts +20 -155
- package/dist/components/card/CardAction.vue.d.ts +0 -7
- package/dist/components/card/CardContent.vue.d.ts +2 -2
- package/dist/components/card/CardDescription.vue.d.ts +2 -2
- package/dist/components/card/CardFooter.vue.d.ts +2 -2
- package/dist/components/card/CardHeader.vue.d.ts +3 -42
- package/dist/components/card/CardTitle.vue.d.ts +6 -3
- package/dist/components/card/card-scroll.css +1 -0
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/styles.css +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +0 -3
- package/dist/components/carousel/interface.d.ts +2 -0
- package/dist/components/carousel/useCarousel.d.ts +2 -2
- package/dist/components/checkbox/Checkbox.vue.d.ts +17 -9
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/styles.css +1 -0
- package/dist/components/chip/Chip.vue.d.ts +12 -7
- package/dist/components/chip/chipVariants.d.ts +20 -43
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/types.d.ts +45 -30
- package/dist/components/collapsible/Collapsible.vue.d.ts +22 -9
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +11 -5
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +12 -9
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/combobox/Combobox.vue.d.ts +10 -20
- package/dist/components/combobox/ComboboxAnchor.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +2 -7
- package/dist/components/combobox/ComboboxInput.vue.d.ts +7 -12
- package/dist/components/combobox/ComboboxItem.vue.d.ts +7 -11
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxList.vue.d.ts +14 -17
- package/dist/components/combobox/ComboboxTrigger.vue.d.ts +16 -0
- package/dist/components/combobox/index.d.ts +2 -3
- package/dist/components/combobox/types.d.ts +87 -0
- package/dist/components/command/Command.vue.d.ts +9 -23
- package/dist/components/command/CommandDialog.vue.d.ts +8 -10
- package/dist/components/command/CommandEmpty.vue.d.ts +2 -6
- package/dist/components/command/CommandGroup.vue.d.ts +2 -7
- package/dist/components/command/CommandInput.vue.d.ts +6 -7
- package/dist/components/command/CommandItem.vue.d.ts +7 -11
- package/dist/components/command/CommandList.vue.d.ts +12 -19
- package/dist/components/command/CommandSeparator.vue.d.ts +2 -6
- package/dist/components/command/CommandShortcut.vue.d.ts +2 -2
- package/dist/components/command/dialogContext.d.ts +6 -0
- package/dist/components/command/index.d.ts +10 -10
- package/dist/components/command/styles.css +1 -0
- package/dist/components/command/types.d.ts +27 -0
- package/dist/components/completion-seal/CompletionSeal.vue.d.ts +2 -2
- package/dist/components/completion-seal/constants.d.ts +2 -2
- package/dist/components/completion-seal/styles.css +1 -0
- package/dist/components/configurator/Configurator.vue.d.ts +6 -6
- package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +14 -18
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +14 -17
- package/dist/components/configurator/size.d.ts +5 -7
- package/dist/components/configurator/styles.css +1 -0
- package/dist/components/constellation/Constellation.vue.d.ts +7 -2
- package/dist/components/constellation/composables/createConstellationField.d.ts +2 -2
- package/dist/components/constellation/composables/useConstellation.d.ts +3 -16
- package/dist/components/constellation/constants.d.ts +14 -24
- package/dist/components/constellation/constellationField.d.ts +8 -11
- package/dist/components/constellation/constellationInteraction.d.ts +9 -9
- package/dist/components/constellation/constellationRender.d.ts +11 -21
- package/dist/components/constellation/constellationTypes.d.ts +64 -62
- package/dist/components/constellation/constellationWell.d.ts +2 -2
- package/dist/components/constellation/index.d.ts +1 -1
- package/dist/components/dark-mode-toggle/DarkModeToggle.vue.d.ts +12 -0
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -0
- package/dist/components/dark-mode-toggle/index.d.ts +2 -0
- package/dist/components/data-table/DataTable.vue.d.ts +12 -48
- package/dist/components/data-table/composables/useDataTableRowIdentity.d.ts +5 -23
- package/dist/components/data-table/index.d.ts +1 -2
- package/dist/components/data-table/styles.css +1 -0
- package/dist/components/data-table/types.d.ts +36 -13
- package/dist/components/deck/constants.d.ts +0 -10
- package/dist/components/deck/index.d.ts +0 -2
- package/dist/components/dialog/Dialog.vue.d.ts +8 -3
- package/dist/components/dialog/DialogClose.vue.d.ts +3 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +28 -85
- package/dist/components/dialog/DialogDescription.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTitle.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTrigger.vue.d.ts +3 -1
- package/dist/components/dialog/ModalOverlay.vue.d.ts +45 -0
- package/dist/components/dialog/dialogStageContext.d.ts +7 -0
- package/dist/components/dialog/index.d.ts +8 -9
- package/dist/components/dialog/placement.css +1 -0
- package/dist/components/dialog/sheet-motion.d.ts +17 -0
- package/dist/components/dock/DockControl.vue.d.ts +13 -16
- package/dist/components/dock/DockCrossfade.vue.d.ts +4 -8
- package/dist/components/dock/DockLayer.vue.d.ts +2 -3
- package/dist/components/dock/DockLayerGroup.vue.d.ts +6 -6
- package/dist/components/dock/DockSeparator.vue.d.ts +8 -8
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockContext.d.ts +4 -14
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +6 -7
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +6 -75
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +5 -1
- package/dist/components/dock/composables/useDockHold.d.ts +4 -5
- package/dist/components/dock/composables/useDockMorph.d.ts +26 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +7 -9
- package/dist/components/dock/composables/useDockSearch.d.ts +8 -8
- package/dist/components/dock/composables/useDockShellProps.d.ts +53 -43
- package/dist/components/dock/composables/useDockSpring.d.ts +7 -11
- package/dist/components/dock/composables/useDockState.d.ts +14 -5
- package/dist/components/dock/composables/useDockTouchGate.d.ts +14 -23
- package/dist/components/dock/constants.d.ts +5 -90
- package/dist/components/dock/index.d.ts +2 -6
- package/dist/components/dock/styles/adaptive-legibility.css +1 -0
- package/dist/components/dock/styles/controls/icon-button.css +1 -0
- package/dist/{styles/dock-controls → components/dock/styles/controls}/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -0
- package/dist/components/dock/styles/crossfade.css +1 -0
- package/dist/{styles/dock → components/dock/styles}/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -0
- package/dist/components/dock/styles/index.css +1 -0
- package/dist/components/dock/styles/layer-group.css +1 -0
- package/dist/components/dock/styles/layers.css +1 -0
- package/dist/components/dock/styles/morph.css +1 -0
- package/dist/components/dock/styles/overflow.css +1 -0
- package/dist/components/dock/styles/shape.css +1 -0
- package/dist/components/dock/styles/shell.css +1 -0
- package/dist/components/drawer/Drawer.vue.d.ts +20 -23
- package/dist/components/drawer/DrawerContent.vue.d.ts +15 -16
- package/dist/components/drawer/DrawerDescription.vue.d.ts +5 -6
- package/dist/components/drawer/DrawerOverlay.vue.d.ts +6 -6
- package/dist/components/drawer/DrawerTitle.vue.d.ts +5 -6
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +9 -1
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +10 -28
- package/dist/components/drawer/index.d.ts +13 -15
- package/dist/components/drawer/styles.css +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +43 -16
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +22 -13
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -19
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +6 -4
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +21 -9
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -6
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -11
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +5 -6
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts +7 -8
- package/dist/components/dropdown-menu/DropdownMenuSub.vue.d.ts +15 -7
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +24 -17
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -9
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -5
- package/dist/components/dropdown-menu/index.d.ts +15 -16
- package/dist/components/dropdown-menu/styles.css +1 -0
- package/dist/components/dropdown-menu/useMenuTrigger.d.ts +2 -9
- package/dist/components/easing/EasingConfigurator.vue.d.ts +1 -1
- package/dist/components/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/easing/composables/useEasingPicker.d.ts +8 -7
- package/dist/components/easing/constants.d.ts +3 -1
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +1 -25
- package/dist/components/expandable-container/styles.css +1 -0
- package/dist/components/fading-scroll/FadingScroll.vue.d.ts +4 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +7 -3
- package/dist/components/fading-scroll/constants.d.ts +1 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +10 -6
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +6 -5
- package/dist/components/fourier-field/constants.d.ts +10 -10
- package/dist/components/fourier-field/index.d.ts +3 -3
- package/dist/components/fourier-field/presets.d.ts +3 -3
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +2 -2
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -1
- package/dist/components/handmark/HandMark.vue.d.ts +2 -2
- package/dist/components/handmark/brush.d.ts +1 -1
- package/dist/components/handmark/composables/useHandMark.d.ts +4 -4
- package/dist/components/handmark/constants.d.ts +10 -10
- package/dist/components/handmark/geometry.d.ts +9 -9
- package/dist/components/handmark/index.d.ts +11 -14
- package/dist/components/handmark/noise.d.ts +3 -3
- package/dist/components/handmark/types.d.ts +2 -2
- package/dist/components/header-ribbon/HeaderRibbon.vue.d.ts +3 -21
- package/dist/components/header-ribbon/styles.css +1 -0
- package/dist/components/header-ribbon/types.d.ts +5 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/components/infinite-scroll/composables/types.d.ts +1 -1
- package/dist/components/infinite-scroll/index.d.ts +1 -0
- package/dist/components/input/Input.vue.d.ts +10 -35
- package/dist/components/input/index.d.ts +2 -1
- package/dist/components/input/types.d.ts +22 -0
- package/dist/components/instrument-chassis/InstrumentChassis.vue.d.ts +10 -84
- package/dist/components/instrument-chassis/index.d.ts +1 -2
- package/dist/components/instrument-chassis/styles.css +1 -0
- package/dist/components/instrument-chassis/types.d.ts +13 -0
- package/dist/components/label/Label.vue.d.ts +9 -14
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/labeled-field/LabeledField.vue.d.ts +11 -99
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +5 -18
- package/dist/components/labeled-field/LabeledSelect.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSlider.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +14 -17
- package/dist/components/labeled-field/index.d.ts +1 -0
- package/dist/components/labeled-field/types.d.ts +50 -0
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +4 -0
- package/dist/components/liquid-grid/composables/liquidGrid.d.ts +5 -5
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +2 -1
- package/dist/components/liquid-grid/constants.d.ts +6 -7
- package/dist/components/liquid-grid/shaders/liquid-grid.glsl.d.ts +1 -1
- package/dist/components/liquid-grid/shaders/liquid-grid.wgsl.d.ts +1 -1
- package/dist/components/metric/Metric.vue.d.ts +24 -0
- package/dist/components/metric/MetricCell.vue.d.ts +26 -0
- package/dist/components/metric/MetricRow.vue.d.ts +22 -0
- package/dist/components/metric/MetricStack.vue.d.ts +16 -0
- package/dist/components/metric/coalesce-metric.d.ts +7 -28
- package/dist/components/metric/index.d.ts +5 -0
- package/dist/components/metric/styles.css +1 -0
- package/dist/components/metric/types.d.ts +32 -0
- package/dist/components/number-field/NumberField.vue.d.ts +21 -9
- package/dist/components/number-field/NumberFieldContent.vue.d.ts +2 -2
- package/dist/components/number-field/NumberFieldDecrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldIncrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldInput.vue.d.ts +1 -6
- package/dist/components/number-field/context.d.ts +6 -0
- package/dist/components/number-field/index.d.ts +5 -5
- package/dist/components/number-field/styles.css +1 -0
- package/dist/components/pager-dots/PagerDots.vue.d.ts +1 -1
- package/dist/components/pager-dots/constants.d.ts +1 -2
- package/dist/components/pager-dots/index.d.ts +0 -2
- package/dist/components/paper-backdrop/PaperBackdrop.vue.d.ts +1 -14
- package/dist/components/paper-backdrop/index.d.ts +1 -1
- package/dist/components/popover/Popover.vue.d.ts +24 -36
- package/dist/components/popover/PopoverContent.vue.d.ts +23 -29
- package/dist/components/popover/PopoverTrigger.vue.d.ts +12 -7
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popoverContext.d.ts +3 -4
- package/dist/components/progress/Progress.vue.d.ts +6 -49
- package/dist/components/progress/index.d.ts +1 -5
- package/dist/components/progress/types.d.ts +19 -0
- package/dist/components/pulse/Pulse.vue.d.ts +8 -47
- package/dist/components/pulse/index.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.vue.d.ts +27 -15
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +9 -6
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/styles.css +1 -0
- package/dist/components/scroll-progress-rim/styles.css +1 -0
- package/dist/components/search/FuzzySearch.vue.d.ts +4 -2
- package/dist/components/search/SearchBar.vue.d.ts +3 -3
- package/dist/components/search/searchVariants.d.ts +15 -17
- package/dist/components/select/Select.vue.d.ts +25 -14
- package/dist/components/select/SelectContent.vue.d.ts +26 -29
- package/dist/components/select/SelectGroup.vue.d.ts +7 -11
- package/dist/components/select/SelectItem.vue.d.ts +24 -13
- package/dist/components/select/SelectLabel.vue.d.ts +7 -11
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +3 -4
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +3 -4
- package/dist/components/select/SelectSeparator.vue.d.ts +5 -6
- package/dist/components/select/SelectTrigger.vue.d.ts +15 -41
- package/dist/components/select/SelectValue.vue.d.ts +13 -7
- package/dist/components/select/index.d.ts +16 -10
- package/dist/components/separator/Separator.vue.d.ts +11 -6
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.vue.d.ts +3 -31
- package/dist/components/slider/Slider.vue.d.ts +10 -35
- package/dist/components/slider/index.d.ts +1 -45
- package/dist/components/slider/types.d.ts +25 -0
- package/dist/components/sortable-list/SortableList.vue.d.ts +1 -1
- package/dist/components/sortable-list/composables/ghostRenderer.d.ts +1 -1
- package/dist/components/sortable-list/composables/touchGate.d.ts +1 -1
- package/dist/components/sortable-list/composables/transitionTiming.d.ts +1 -1
- package/dist/components/status-dot/StatusDot.vue.d.ts +7 -10
- package/dist/components/status-dot/index.d.ts +1 -0
- package/dist/components/surface/Surface.vue.d.ts +13 -21
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/switch/Switch.vue.d.ts +20 -11
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/switch/styles.css +1 -0
- package/dist/components/table/Table.vue.d.ts +5 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +31 -13
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +6 -6
- package/dist/components/tabs/composables/useTabResponsive.d.ts +5 -6
- package/dist/components/tabs/composables/useTabRovingFocus.d.ts +16 -16
- package/dist/components/tabs/constants.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -0
- package/dist/components/tabs/styles/segmented.css +1 -0
- package/dist/components/tags-input/TagsInput.vue.d.ts +28 -15
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +8 -6
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +9 -8
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +5 -6
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +5 -6
- package/dist/components/tags-input/context.d.ts +5 -0
- package/dist/components/tags-input/index.d.ts +5 -5
- package/dist/components/tags-input/styles.css +1 -0
- package/dist/components/textarea/Textarea.vue.d.ts +10 -55
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/types.d.ts +22 -0
- package/dist/components/timeline/ContinuousMarkers.vue.d.ts +2 -4
- package/dist/components/timeline/ContinuousRail.vue.d.ts +3 -6
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +11 -12
- package/dist/components/timeline/GlassTimeline.vue.d.ts +9 -10
- package/dist/components/timeline/ScrubberTimeline.vue.d.ts +4 -4
- package/dist/components/timeline/SegmentedTimeline.vue.d.ts +2 -3
- package/dist/components/timeline/geometry.d.ts +3 -4
- package/dist/components/timeline/types.d.ts +3 -3
- package/dist/components/toast/Toast.vue.d.ts +38 -80
- package/dist/components/toast/ToastAction.vue.d.ts +5 -5
- package/dist/components/toast/ToastClose.vue.d.ts +4 -5
- package/dist/components/toast/ToastDescription.vue.d.ts +4 -5
- package/dist/components/toast/ToastTitle.vue.d.ts +4 -5
- package/dist/components/toast/Toaster.vue.d.ts +1 -1
- package/dist/components/toast/index.d.ts +8 -9
- package/dist/components/toast/use-toast.d.ts +20 -163
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +44 -22
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +11 -9
- package/dist/components/toggle-group/index.d.ts +3 -2
- package/dist/components/toggle-group/styles.css +1 -0
- package/dist/components/toggle-group/toggleGroupContext.d.ts +4 -15
- package/dist/components/tooltip/Tooltip.vue.d.ts +20 -7
- package/dist/components/tooltip/TooltipContent.vue.d.ts +20 -12
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +12 -5
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +12 -5
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +1 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +1 -1
- package/dist/components/typewriter/utils/graphemes.d.ts +1 -0
- package/dist/components/typewriter/utils/timing.d.ts +0 -2
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +5 -18
- package/dist/components/watercolor-dot/useWatercolorBlob.d.ts +1 -4
- package/dist/composables/color/accent-tone-solve.d.ts +2 -5
- package/dist/composables/color/index.d.ts +31 -38
- package/dist/composables/color/useAccentTone.d.ts +0 -3
- package/dist/composables/color/value.d.ts +21 -0
- package/dist/composables/context/createContext.d.ts +2 -2
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +7 -6
- package/dist/composables/dom/useBreakpoint.d.ts +2 -2
- package/dist/composables/dom/useClipboard.d.ts +28 -52
- package/dist/composables/dom/useDocumentVisibility.d.ts +3 -1
- package/dist/composables/dom/useIdleReady.d.ts +5 -6
- package/dist/composables/dom/useTokenColor.d.ts +2 -2
- package/dist/composables/dom/useUserInvalidAria.d.ts +2 -3
- package/dist/composables/dom/useViewportReady.d.ts +4 -4
- package/dist/composables/glass/backdropLuminanceSample.d.ts +7 -6
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +7 -1
- package/dist/composables/glass/textureUpload.d.ts +8 -10
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +42 -19
- package/dist/composables/glass/useSpecularPointer.d.ts +6 -6
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -15
- package/dist/composables/glass/wave/waveField.d.ts +2 -2
- package/dist/composables/glass/wave/waveField.glsl.d.ts +1 -1
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +1 -1
- package/dist/composables/glass/webgl/backingSize.d.ts +5 -8
- package/dist/composables/glass/webgl/compile.d.ts +1 -1
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +20 -20
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -28
- package/dist/composables/glass/webgl/visibility.d.ts +3 -4
- package/dist/composables/glass/webgpu/rendererStatus.d.ts +13 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +13 -10
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -1
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +14 -10
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +15 -16
- package/dist/composables/motion/core/asElement.d.ts +2 -0
- package/dist/composables/motion/{constants.d.ts → core/constants.d.ts} +2 -3
- package/dist/composables/motion/core/index.d.ts +20 -23
- package/dist/composables/motion/core/useReducedMotion.d.ts +5 -0
- package/dist/composables/motion/core/useViewTransition.d.ts +44 -0
- package/dist/composables/motion/index.d.ts +14 -16
- package/dist/composables/motion/{useDockCtaReceive.d.ts → morph/useDockCtaReceive.d.ts} +57 -3
- package/dist/composables/motion/{useDragMorph.d.ts → morph/useDragMorph.d.ts} +7 -7
- package/dist/composables/motion/morph/useElementMorph.d.ts +50 -0
- package/dist/composables/motion/{useLeadTrail.d.ts → morph/useLeadTrail.d.ts} +6 -6
- package/dist/composables/motion/{useSelectionGroup.d.ts → morph/useSelectionGroup.d.ts} +7 -5
- package/dist/composables/motion/{useSelectionIndicator.d.ts → morph/useSelectionIndicator.d.ts} +9 -16
- package/dist/composables/motion/{useAnimatedNumber.d.ts → number/useAnimatedNumber.d.ts} +1 -6
- package/dist/composables/motion/{useCountup.d.ts → number/useCountup.d.ts} +1 -6
- package/dist/composables/motion/{useNumericTransition.d.ts → number/useNumericTransition.d.ts} +4 -2
- package/dist/composables/motion/{pointerFieldMappings.d.ts → pointer/pointerFieldMappings.d.ts} +7 -10
- package/dist/composables/motion/{usePointerVelocityField.d.ts → pointer/usePointerVelocityField.d.ts} +1 -1
- package/dist/composables/motion/{bloomUpField.d.ts → reveal/bloomUpField.d.ts} +1 -1
- package/dist/composables/motion/reveal/useBloomUp.d.ts +33 -0
- package/dist/composables/motion/{useLiquidReveal.d.ts → reveal/useLiquidReveal.d.ts} +5 -5
- package/dist/composables/motion/{useStagger.d.ts → reveal/useStagger.d.ts} +3 -3
- package/dist/composables/motion/reveal/useStaggerReveal.d.ts +28 -0
- package/dist/composables/motion/{useTextHighlight.d.ts → reveal/useTextHighlight.d.ts} +2 -1
- package/dist/composables/motion/{useScrollChrome.d.ts → scroll/useScrollChrome.d.ts} +2 -2
- package/dist/composables/motion/{useScrollProgress.d.ts → scroll/useScrollProgress.d.ts} +12 -2
- package/dist/composables/motion/{springPresets.d.ts → spring/springPresets.d.ts} +8 -7
- package/dist/composables/motion/spring/springProjection.d.ts +19 -0
- package/dist/composables/motion/{useLiquidFlex.d.ts → spring/useLiquidFlex.d.ts} +11 -12
- package/dist/composables/motion/{useLiquidPress.d.ts → spring/useLiquidPress.d.ts} +15 -7
- package/dist/composables/motion/{useSpring.d.ts → spring/useSpring.d.ts} +5 -2
- package/dist/composables/motion/{useSpringMount.d.ts → spring/useSpringMount.d.ts} +8 -1
- package/dist/composables/sidebar/types.d.ts +3 -3
- package/dist/configurator-M5OaIlJd.js +311 -0
- package/dist/configurator.js +2 -3
- package/dist/{constants-D8lSMkOz.js → constants-nBz23tJE.js} +1 -1
- package/dist/constellation.js +230 -565
- package/dist/createCanvasLifecycle-DbXRwjU_.js +214 -0
- package/dist/dark-mode-toggle.d.ts +1 -0
- package/dist/dark-mode-toggle.js +43 -0
- package/dist/dark-z_P5QwqI.js +70 -0
- package/dist/dark.d.ts +1 -2
- package/dist/dark.js +2 -20
- package/dist/data-table-BygKg6ZA.js +491 -0
- package/dist/data-table.js +2 -2
- package/dist/deck.js +12 -23
- package/dist/dialog-TNRDkcE4.js +385 -0
- package/dist/dialog.js +2 -3
- package/dist/dock.js +624 -908
- package/dist/dockContext-BUTlGRNJ.js +13 -0
- package/dist/dom.js +134 -7
- package/dist/drawer.js +291 -193
- package/dist/dropdown-menu-BlbnvMaZ.js +507 -0
- package/dist/dropdown-menu.js +3 -2
- package/dist/easing.d.ts +0 -9
- package/dist/easing.js +385 -222
- package/dist/expandable-container.js +107 -85
- package/dist/fading-scroll-DhxXIhm2.js +96 -0
- package/dist/fading-scroll.js +1 -1
- package/dist/field-control.css_vue_type_style_index_0_src_true_lang-CeLay9Tk.js +21 -0
- package/dist/floating-dB5TD88k.js +7 -0
- package/dist/{flow.glsl-CVqPSj8_.js → flow.wgsl-Cd2GUkPx.js} +2 -2
- package/dist/fonts/README.md +14 -18
- package/dist/forms.js +268 -204
- package/dist/fourier-field.js +298 -288
- package/dist/fourier-math.d.ts +0 -6
- package/dist/fourier-math.js +112 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +512 -437
- package/dist/handmark.d.ts +0 -2
- package/dist/handmark.js +84 -84
- package/dist/header-ribbon.js +37 -57
- package/dist/index.d.ts +9 -19
- package/dist/infinite-scroll.d.ts +0 -1
- package/dist/infinite-scroll.js +39 -34
- package/dist/instrument-chassis.js +54 -2
- package/dist/keyboard.js +104 -2
- package/dist/label-DnMqH7jr.js +55 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +295 -192
- package/dist/liquid-grid.js +199 -198
- package/dist/menuRowClass-Nh7CtMON.js +12 -0
- package/dist/metric.d.ts +1 -0
- package/dist/metric.js +192 -0
- package/dist/motion-core.js +73 -166
- package/dist/motion.js +111 -167
- package/dist/number-field-Boe09SvX.js +154 -0
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -2
- package/dist/paper-backdrop.js +23 -2
- package/dist/{pointerFieldMappings-4VtmkOWv.js → pointerFieldMappings-DP5tla5z.js} +4 -7
- package/dist/popover-BQGYXZyO.js +244 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-B07HzyKd.js → presets-5myqNv59.js} +1 -1
- package/dist/primitive-B2t2jdqM.js +11 -0
- package/dist/progress-DClbhRAT.js +88 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +29 -41
- package/dist/reactive.js +19 -3
- package/dist/rendererStatus-BxUlBLVy.js +40 -0
- package/dist/resolveCanvasColor-DS_6DBxA.js +82 -0
- package/dist/resolveSurfaceClass-DCZ4PZcy.js +6 -0
- package/dist/scroll-progress-rim.js +1 -1
- package/dist/{scrollReader-DzYqPQ6V.js → scrollReader-Brf5cQNo.js} +1 -1
- package/dist/search.js +287 -218
- package/dist/select-BcBAyLXA.js +336 -0
- package/dist/select.js +2 -4
- package/dist/selection-DqIULxRG.js +6 -0
- package/dist/separator-CgZInrX-.js +75 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +53 -42
- package/dist/slider-DzqeQmMu.js +162 -0
- package/dist/slider.js +2 -2
- package/dist/sortable-list.js +51 -50
- package/dist/springPresets-rCii5KqX.js +52 -0
- package/dist/status-dot.js +26 -43
- package/dist/styles/accessibility.css +1 -0
- package/dist/styles/animations.css +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/a11y-fallback.css +1 -1
- package/dist/styles/glass/accent-tone.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/defined.css +1 -1
- package/dist/styles/glass/glass-atom.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/glass-chip.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/material-roles.css +1 -0
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass/squircle.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/glass/surfaces-pager.css +1 -1
- package/dist/styles/glass/surfaces.css +1 -1
- package/dist/styles/glass-refract.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/theme/radius.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm.css +1 -1
- package/dist/styles/tokens/glass-deep.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/manifest.d.ts +14 -0
- package/dist/styles/tokens/manifest.ts +56 -0
- package/dist/styles/tokens/motion-registers.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/property-regs-specular.css +1 -1
- package/dist/styles/tokens/property-regs.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/scroll-tokens.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens/sizing-config.css +1 -1
- package/dist/styles/tokens/sizing.css +1 -1
- package/dist/styles/tokens.d.ts +48 -0
- package/dist/styles/tokens.ts +54 -0
- package/dist/styles/transitions.css +1 -1
- package/dist/styles/typography/scale.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/utilities/a11y-overrides.css +1 -1
- package/dist/styles/utilities/base-misc.css +1 -1
- package/dist/styles/utilities/base.css +1 -1
- package/dist/styles/utilities/btn.css +1 -1
- package/dist/styles/utilities/components.css +1 -1
- package/dist/styles/utilities/metal.css +1 -1
- package/dist/styles/utilities/responsive.css +1 -0
- package/dist/styles/utilities.css +1 -1
- package/dist/styles/view-transition.css +1 -1
- package/dist/{supportsCssTimeline-Ie4xJFbD.js → supportsCssTimeline-C2zyWpl8.js} +1 -1
- package/dist/surface.js +2 -3
- package/dist/switch-DZjQuFLa.js +54 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +146 -168
- package/dist/timeline.js +86 -87
- package/dist/toast-CH5mnsYT.js +267 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-group-O6jBo7AE.js +150 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -53
- package/dist/tokens.js +96 -5
- package/dist/tooltip-Drx5qnw_.js +148 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +233 -219
- package/dist/{useAccentTone-D25DxviG.js → useAccentTone-DyInfHXE.js} +2 -2
- package/dist/{useAnimatedNumber-2XC4aRB6.js → useAnimatedNumber-WPtMz0AN.js} +2 -2
- package/dist/useClipboard-D36OTaeT.js +53 -0
- package/dist/useDockCtaReceive-DkrOTM0q.js +146 -0
- package/dist/useDocumentVisibility-Dh_TGXsU.js +21 -0
- package/dist/useDragMorph-BogSV_nv.js +293 -0
- package/dist/{useIntersectionPause-Cmt5Tnv9.js → useIntersectionPause-B5mAU6XY.js} +15 -15
- package/dist/useLeadTrail-AW1-zZcd.js +74 -0
- package/dist/{useLiquidFlex-Ch4exNvN.js → useLiquidFlex-TJZmRqyY.js} +1 -1
- package/dist/useLiquidPress-BOxuDkKa.js +101 -0
- package/dist/useMotionAxis-D-rtIhca.js +19 -0
- package/dist/usePointerVelocityField-DsIf7yyq.js +121 -0
- package/dist/useRAFLoop-B3YlWK4M.js +98 -0
- package/dist/useReducedMotion-vCXA_vyM.js +27 -0
- package/dist/useRoutePointer-B8itM7Ka.js +53 -0
- package/dist/useScrollProgress-CSFYXIZT.js +43 -0
- package/dist/useScrollTrigger-BDdqptlc.js +87 -0
- package/dist/useSelectionGroup-B5XplBbo.js +132 -0
- package/dist/{useSpring-BBSKFx_0.js → useSpring-9u2_shxV.js} +2 -2
- package/dist/useSpringMount-uQ8QL9Ff.js +74 -0
- package/dist/useTabRovingFocus-YnWh-Ytr.js +169 -0
- package/dist/useTextHighlight-mfwNIC1f.js +112 -0
- package/dist/{useTouchGate-BlegwvwL.js → useTouchGate-B4mzQcHJ.js} +1 -1
- package/dist/vSpecular-DMJo8pfD.js +68 -0
- package/dist/value-DMhh2R94.js +33 -0
- package/dist/valueDomain-SbVzoHMH.js +13 -0
- package/dist/watercolor-dot.js +77 -101
- package/package.json +166 -242
- package/dist/CardAction-2uUvjMQK.js +0 -285
- package/dist/CollapsibleContent-DiHcB_HH.js +0 -63
- package/dist/CommandShortcut-fmdbsEJL.js +0 -302
- package/dist/ConfiguratorRow-BV6zPjTM.js +0 -151
- package/dist/DataTable-Bxya8nBn.js +0 -518
- package/dist/DialogContent-Bl4v10AC.js +0 -192
- package/dist/DialogFooter-C0v4Hz2F.js +0 -168
- package/dist/FadingScroll-BSRLqQCx.js +0 -76
- package/dist/FocusScope-BzKwhsBn.js +0 -23
- package/dist/IconChip-CwLmBJ_K.js +0 -57
- package/dist/IconTooltip-D9sbK-Mk.js +0 -25
- package/dist/Input-DKf-XwUM.js +0 -57
- package/dist/InstrumentChassis-Dss5Tjcm.js +0 -65
- package/dist/Label-C84TaQiw.js +0 -36
- package/dist/Notification-DQv2cOh9.js +0 -43
- package/dist/NumberFieldContent-BkE7xPS9.js +0 -140
- package/dist/PagerDots-BP6jh7z4.js +0 -279
- package/dist/PaperBackdrop-BYwE8_kg.js +0 -31
- package/dist/PopoverContent-DOtszFWK.js +0 -251
- package/dist/Progress-uWLyXE7J.js +0 -308
- package/dist/SelectGroup-BuEptUsa.js +0 -31
- package/dist/SelectScrollDownButton-CDtwaWkZ.js +0 -261
- package/dist/SelectSeparator-4QGephvr.js +0 -49
- package/dist/Separator-DqJ6PfOd.js +0 -44
- package/dist/Surface-BWRfwyn8.js +0 -59
- package/dist/Switch-BPBfhMU3.js +0 -49
- package/dist/Toaster-C_-WeU9W.js +0 -281
- package/dist/ToggleGroupItem-DNWx2aSW.js +0 -175
- package/dist/TooltipProvider-GtfYdSVf.js +0 -110
- package/dist/accent-tone-solve-CBw3L0cy.js +0 -20
- package/dist/badge-C0C-rTBu.js +0 -80
- package/dist/button-BXzhydVB.js +0 -187
- package/dist/coalesce-metric-B8o7zT9u.js +0 -13
- package/dist/color-Bp5jmv4Z.js +0 -86
- package/dist/color-swatch.d.ts +0 -1
- package/dist/color-swatch.js +0 -47
- package/dist/components/_shared/ModalOverlay.vue.d.ts +0 -90
- package/dist/components/_shared/menuItemVariants.d.ts +0 -51
- package/dist/components/_shared/useControlSize.d.ts +0 -46
- package/dist/components/_shared/useStalePropWarning.d.ts +0 -27
- package/dist/components/_shared/useSurfaceAxis.d.ts +0 -64
- package/dist/components/card/ScrollCard.vue.d.ts +0 -33
- package/dist/components/card/ScrollCardHeader.vue.d.ts +0 -17
- package/dist/components/carousel/CarouselNext.vue.d.ts +0 -21
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +0 -21
- package/dist/components/carousel/GlassCarouselPager.vue.d.ts +0 -50
- package/dist/components/color-swatch/ColorSwatch.vue.d.ts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -1
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxViewport.vue.d.ts +0 -18
- package/dist/components/constellation/composables/constellationGLSetup.d.ts +0 -10
- package/dist/components/constellation/composables/constellationWGPUSetup.d.ts +0 -19
- package/dist/components/constellation/composables/uniformBridgeWGPU.d.ts +0 -66
- package/dist/components/constellation/shaders/constellation-lines.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-lines.wgsl.d.ts +0 -1
- package/dist/components/constellation/shaders/constellation-points.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-points.wgsl.d.ts +0 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -34
- package/dist/components/controls/index.d.ts +0 -1
- package/dist/components/data-table/DataTablePagination.vue.d.ts +0 -13
- package/dist/components/deck/composables/useDeckSpring.d.ts +0 -22
- package/dist/components/dialog/DialogScrollContent.vue.d.ts +0 -33
- package/dist/components/dock/DockSection.vue.d.ts +0 -69
- package/dist/components/dock/DockStack.vue.d.ts +0 -73
- package/dist/components/dock/composables/dockMorphContext.d.ts +0 -89
- package/dist/components/dock/composables/useDockFisheye.d.ts +0 -24
- package/dist/components/dock/composables/useDockPopover.d.ts +0 -68
- package/dist/components/focus-scope/FocusScope.vue.d.ts +0 -20
- package/dist/components/focus-scope/index.d.ts +0 -2
- package/dist/components/goo-filter/GooFilter.vue.d.ts +0 -22
- package/dist/components/goo-filter/index.d.ts +0 -1
- package/dist/components/icon-chip/IconChip.vue.d.ts +0 -4
- package/dist/components/icon-chip/index.d.ts +0 -2
- package/dist/components/icon-chip/types.d.ts +0 -92
- package/dist/components/icon-tooltip/IconTooltip.vue.d.ts +0 -16
- package/dist/components/icon-tooltip/index.d.ts +0 -1
- package/dist/components/instrument-chassis/ChassisDivider.vue.d.ts +0 -30
- package/dist/components/metric-badge/MetricBadge.vue.d.ts +0 -40
- package/dist/components/metric-badge/index.d.ts +0 -2
- package/dist/components/metric-cell/MetricCell.vue.d.ts +0 -108
- package/dist/components/metric-cell/index.d.ts +0 -2
- package/dist/components/metric-stack/MetricRow.vue.d.ts +0 -120
- package/dist/components/metric-stack/MetricStack.vue.d.ts +0 -92
- package/dist/components/metric-stack/index.d.ts +0 -4
- package/dist/components/notification/Notification.vue.d.ts +0 -16
- package/dist/components/notification/index.d.ts +0 -1
- package/dist/components/progress/ProgressDefault.vue.d.ts +0 -25
- package/dist/components/progress/ProgressGradient.vue.d.ts +0 -25
- package/dist/components/progress/ProgressLiquid.vue.d.ts +0 -21
- package/dist/components/progress/ProgressSectioned.vue.d.ts +0 -47
- package/dist/components/progress/useProgressGeometry.d.ts +0 -60
- package/dist/components/section/Section.vue.d.ts +0 -73
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/spa-view/SpaView.vue.d.ts +0 -50
- package/dist/components/spa-view/index.d.ts +0 -2
- package/dist/components/split-chars/SplitChars.vue.d.ts +0 -53
- package/dist/components/split-chars/index.d.ts +0 -1
- package/dist/components/stacked-icons/StackedIconGroup.vue.d.ts +0 -30
- package/dist/components/stacked-icons/index.d.ts +0 -2
- package/dist/components/stacked-icons/types.d.ts +0 -19
- package/dist/components/tabs/composables/useEyeglassLive.d.ts +0 -17
- package/dist/components/toggle/Toggle.vue.d.ts +0 -29
- package/dist/components/toggle/index.d.ts +0 -26
- package/dist/composables/glass/webgl/shaders/glass-refract.glsl.d.ts +0 -36
- package/dist/composables/motion/curves.d.ts +0 -48
- package/dist/composables/motion/gooBarbellGeometry.d.ts +0 -79
- package/dist/composables/motion/morphSignatures.d.ts +0 -88
- package/dist/composables/motion/suite.d.ts +0 -2
- package/dist/composables/motion/useBloomUp.d.ts +0 -97
- package/dist/composables/motion/useCharStagger.d.ts +0 -44
- package/dist/composables/motion/useElementMorph.d.ts +0 -99
- package/dist/composables/motion/useGooMorph.d.ts +0 -72
- package/dist/composables/motion/usePrioritizedTask.d.ts +0 -41
- package/dist/composables/motion/useStaggerReveal.d.ts +0 -52
- package/dist/composables/motion/useViewTransition.d.ts +0 -81
- package/dist/composables/virtual/index.d.ts +0 -4
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +0 -72
- package/dist/composables/virtual/useWindowedStore.d.ts +0 -43
- package/dist/composables/virtual/virtualSectionLayout.d.ts +0 -103
- package/dist/controls.d.ts +0 -1
- package/dist/controls.js +0 -91
- package/dist/createCanvasLifecycle-DlrcvWbb.js +0 -209
- package/dist/dockContext-d-WpJN2Z.js +0 -13
- package/dist/dropdown-menu-DaGlVdp9.js +0 -421
- package/dist/focus-scope.d.ts +0 -1
- package/dist/focus-scope.js +0 -2
- package/dist/icon-chip.d.ts +0 -1
- package/dist/icon-chip.js +0 -2
- package/dist/icon-tooltip.d.ts +0 -1
- package/dist/icon-tooltip.js +0 -2
- package/dist/math-CIEcwsYi.js +0 -112
- package/dist/menuItemVariants-DbO-Fr74.js +0 -36
- package/dist/metric-badge.d.ts +0 -1
- package/dist/metric-badge.js +0 -79
- package/dist/metric-cell.d.ts +0 -1
- package/dist/metric-cell.js +0 -61
- package/dist/metric-stack.d.ts +0 -1
- package/dist/metric-stack.js +0 -113
- package/dist/motion-curves.d.ts +0 -21
- package/dist/motion-curves.js +0 -146
- package/dist/notification.d.ts +0 -1
- package/dist/notification.js +0 -2
- package/dist/resolveCanvasColor-B3L-akX0.js +0 -93
- package/dist/slider-Cxuj_W_H.js +0 -151
- package/dist/spa-view.d.ts +0 -1
- package/dist/spa-view.js +0 -46
- package/dist/springPresets-h5VKJQqG.js +0 -58
- package/dist/stacked-icons.d.ts +0 -1
- package/dist/stacked-icons.js +0 -98
- package/dist/styles/card-scroll.css +0 -1
- package/dist/styles/cards.css +0 -1
- package/dist/styles/completion-seal.css +0 -1
- package/dist/styles/configurator.css +0 -1
- package/dist/styles/dialog-placement.css +0 -1
- package/dist/styles/dock/adaptive-legibility.css +0 -1
- package/dist/styles/dock/crossfade.css +0 -1
- package/dist/styles/dock/dock.css +0 -1
- package/dist/styles/dock/fisheye.css +0 -1
- package/dist/styles/dock/layer-group.css +0 -1
- package/dist/styles/dock/layers.css +0 -1
- package/dist/styles/dock/morph.css +0 -1
- package/dist/styles/dock/overflow.css +0 -1
- package/dist/styles/dock/popover.css +0 -1
- package/dist/styles/dock/section.css +0 -1
- package/dist/styles/dock/shape.css +0 -1
- package/dist/styles/dock/shell.css +0 -1
- package/dist/styles/dock-controls/dark-mode-toggle.css +0 -1
- package/dist/styles/dock-controls/icon-button.css +0 -1
- package/dist/styles/dock-controls.css +0 -1
- package/dist/styles/dock.css +0 -1
- package/dist/styles/drawer.css +0 -1
- package/dist/styles/glass/progress-rail.css +0 -1
- package/dist/styles/icon-chip.css +0 -1
- package/dist/styles/instrument-chassis.css +0 -1
- package/dist/styles/menu.css +0 -1
- package/dist/styles/scroll-progress-rim.css +0 -1
- package/dist/styles/segmented-tabs.css +0 -1
- package/dist/styles/select.css +0 -1
- package/dist/styles/tabs/segmented-tabs-drag.css +0 -1
- package/dist/styles/utilities/animate.css +0 -0
- package/dist/useConfiguratorState-Dq35N_7t.js +0 -167
- package/dist/useControlSize-DJwe-7ZQ.js +0 -9
- package/dist/useDockCtaReceive-BgMmeINo.js +0 -161
- package/dist/useDocumentVisibility-CpJGUgcJ.js +0 -17
- package/dist/useDragMorph-65ihHePq.js +0 -93
- package/dist/useGlobalDark-DjKMEQE2.js +0 -53
- package/dist/useGooMorph-CU1pwuC6.js +0 -268
- package/dist/useGpuSubstrate-DcY584kE.js +0 -347
- package/dist/useInterval-ZATRi-1T.js +0 -18
- package/dist/useKeyboardShortcuts-ynVmNFo3.js +0 -104
- package/dist/useLeadTrail-DOH4XkL1.js +0 -74
- package/dist/useLiquidPress-BXNHydZh.js +0 -40
- package/dist/useMotionAxis-DCCXMC-i.js +0 -20
- package/dist/usePointerVelocityField-CwXyeW0Z.js +0 -122
- package/dist/useRAFLoop-CvOo_kgb.js +0 -109
- package/dist/useRoutePointer-DL7I0gY4.js +0 -52
- package/dist/useScrollProgress-C-yImzhU.js +0 -35
- package/dist/useSelectionGroup-Btpf24aY.js +0 -215
- package/dist/useSpringMount-CNvvgGiC.js +0 -71
- package/dist/useSpringPress-BypV_KO-.js +0 -36
- package/dist/useSurfaceAxis-DudiZVOR.js +0 -10
- package/dist/useTabRovingFocus-CG1H1k1J.js +0 -143
- package/dist/useTextHighlight-C46Le9u_.js +0 -72
- package/dist/useViewportReady-c0isoKL8.js +0 -191
- package/dist/vReveal-DUmiEkX_.js +0 -10
- package/dist/vSpecular-DlYN0UZy.js +0 -68
- package/src/fonts/README.md +0 -124
- package/src/fonts/fira-code/OFL.txt +0 -93
- package/src/fonts/fira-code/fira-code-latin-ext.woff2 +0 -0
- package/src/fonts/fira-code/fira-code-latin.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/OFL.txt +0 -93
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2 +0 -0
- package/src/styles/animations.css +0 -468
- package/src/styles/card-scroll.css +0 -189
- package/src/styles/cards.css +0 -485
- package/src/styles/completion-seal.css +0 -205
- package/src/styles/configurator.css +0 -359
- package/src/styles/dialog-placement.css +0 -68
- package/src/styles/dock/adaptive-legibility.css +0 -119
- package/src/styles/dock/crossfade.css +0 -139
- package/src/styles/dock/cta-seat.css +0 -87
- package/src/styles/dock/density.css +0 -458
- package/src/styles/dock/dock.css +0 -199
- package/src/styles/dock/fisheye.css +0 -81
- package/src/styles/dock/layer-group.css +0 -329
- package/src/styles/dock/layers.css +0 -438
- package/src/styles/dock/morph.css +0 -455
- package/src/styles/dock/overflow.css +0 -332
- package/src/styles/dock/popover.css +0 -249
- package/src/styles/dock/search.css +0 -68
- package/src/styles/dock/section.css +0 -59
- package/src/styles/dock/shape.css +0 -188
- package/src/styles/dock/shell-regions.css +0 -73
- package/src/styles/dock/shell.css +0 -500
- package/src/styles/dock-controls/dark-mode-toggle.css +0 -123
- package/src/styles/dock-controls/icon-button.css +0 -221
- package/src/styles/dock-controls/tab-button.css +0 -143
- package/src/styles/dock-controls/touch-floor.css +0 -119
- package/src/styles/dock-controls/triggers.css +0 -157
- package/src/styles/dock-controls.css +0 -92
- package/src/styles/dock.css +0 -219
- package/src/styles/draw-in.css +0 -89
- package/src/styles/drawer.css +0 -434
- package/src/styles/feedback-tone.css +0 -104
- package/src/styles/fonts.css +0 -143
- package/src/styles/glass/a11y-fallback.css +0 -188
- package/src/styles/glass/accent-tone.css +0 -66
- package/src/styles/glass/control-surfaces.css +0 -171
- package/src/styles/glass/deep.css +0 -114
- package/src/styles/glass/defined.css +0 -88
- package/src/styles/glass/glass-atom.css +0 -247
- package/src/styles/glass/glass-capsule.css +0 -175
- package/src/styles/glass/glass-chip.css +0 -211
- package/src/styles/glass/grain-overlay.css +0 -79
- package/src/styles/glass/ladder-undershadow.css +0 -61
- package/src/styles/glass/ladder.css +0 -452
- package/src/styles/glass/liquid-enter.css +0 -240
- package/src/styles/glass/liquid-fill.css +0 -65
- package/src/styles/glass/material.css +0 -494
- package/src/styles/glass/progress-rail.css +0 -78
- package/src/styles/glass/reveal.css +0 -333
- package/src/styles/glass/rim.css +0 -122
- package/src/styles/glass/squircle.css +0 -58
- package/src/styles/glass/surface-axis.css +0 -136
- package/src/styles/glass/surfaces-pager.css +0 -79
- package/src/styles/glass/surfaces.css +0 -434
- package/src/styles/glass-refract.css +0 -112
- package/src/styles/glass-specular-track.css +0 -74
- package/src/styles/glass.css +0 -110
- package/src/styles/icon-chip.css +0 -256
- package/src/styles/index.css +0 -280
- package/src/styles/instrument-chassis.css +0 -449
- package/src/styles/menu.css +0 -187
- package/src/styles/paper.css +0 -187
- package/src/styles/scroll-choreography.css +0 -294
- package/src/styles/scroll-chrome.css +0 -123
- package/src/styles/scroll-driven.css +0 -123
- package/src/styles/scroll-progress-rim.css +0 -87
- package/src/styles/segmented-tabs.css +0 -424
- package/src/styles/select.css +0 -201
- package/src/styles/tabs/segmented-tabs-drag.css +0 -200
- package/src/styles/theme/bridges.css +0 -386
- package/src/styles/theme/dark.css +0 -7
- package/src/styles/theme/literals.css +0 -104
- package/src/styles/theme/radius.css +0 -148
- package/src/styles/theme.css +0 -33
- package/src/styles/tokens/color-radius.css +0 -308
- package/src/styles/tokens/dark-arm-glass.css +0 -55
- package/src/styles/tokens/dark-arm.css +0 -455
- package/src/styles/tokens/glass-deep.css +0 -126
- package/src/styles/tokens/glass-fx.css +0 -484
- package/src/styles/tokens/glass.css +0 -478
- package/src/styles/tokens/light-dark.css +0 -216
- package/src/styles/tokens/motion-registers.css +0 -93
- package/src/styles/tokens/offsets.css +0 -143
- package/src/styles/tokens/on-glass-fg.css +0 -39
- package/src/styles/tokens/property-regs-specular.css +0 -160
- package/src/styles/tokens/property-regs.css +0 -447
- package/src/styles/tokens/scale-paper.css +0 -496
- package/src/styles/tokens/scheme-motion.css +0 -422
- package/src/styles/tokens/scheme-spring.css +0 -292
- package/src/styles/tokens/scroll-tokens.css +0 -137
- package/src/styles/tokens/shadow.css +0 -232
- package/src/styles/tokens/sizing-config.css +0 -110
- package/src/styles/tokens/sizing.css +0 -505
- package/src/styles/tokens.css +0 -68
- package/src/styles/transitions.css +0 -228
- package/src/styles/typography/scale.css +0 -163
- package/src/styles/typography/semantic.css +0 -233
- package/src/styles/typography/utilities.css +0 -197
- package/src/styles/typography.css +0 -46
- package/src/styles/utilities/a11y-overrides.css +0 -184
- package/src/styles/utilities/animate.css +0 -29
- package/src/styles/utilities/base-misc.css +0 -307
- package/src/styles/utilities/base.css +0 -337
- package/src/styles/utilities/btn.css +0 -327
- package/src/styles/utilities/components.css +0 -337
- package/src/styles/utilities/metal.css +0 -272
- package/src/styles/utilities.css +0 -26
- package/src/styles/view-transition.css +0 -67
- package/src/styles/viz-reveal.css +0 -63
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/{compile-C55K3P9g.js → compile-D7VYG3gi.js} +0 -0
- /package/dist/{styles → components/_shared}/feedback-tone.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/tab-button.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/triggers.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/cta-seat.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/search.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/shell-regions.css +0 -0
- /package/dist/composables/glass/{webgl/shaders/procedural-color.glsl.d.ts → procedural/color.glsl.d.ts} +0 -0
- /package/dist/{components/aurora/constants/shaders/procedural-color.wgsl.d.ts → composables/glass/procedural/color.wgsl.d.ts} +0 -0
- /package/dist/composables/motion/{motionTempo.d.ts → core/motionTempo.d.ts} +0 -0
- /package/dist/composables/motion/{useIntersectionPause.d.ts → core/useIntersectionPause.d.ts} +0 -0
- /package/dist/composables/motion/{useRAFLoop.d.ts → core/useRAFLoop.d.ts} +0 -0
- /package/dist/composables/motion/{useYieldToMain.d.ts → core/useYieldToMain.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumberMap.d.ts → number/useAnimatedNumberMap.d.ts} +0 -0
- /package/dist/composables/motion/{useRoutePointer.d.ts → pointer/useRoutePointer.d.ts} +0 -0
- /package/dist/composables/motion/{vReveal.d.ts → reveal/vReveal.d.ts} +0 -0
- /package/dist/composables/motion/{scrollReader.d.ts → scroll/scrollReader.d.ts} +0 -0
- /package/dist/composables/motion/{supportsCssTimeline.d.ts → scroll/supportsCssTimeline.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollPin.d.ts → scroll/useScrollPin.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollScene.d.ts → scroll/useScrollScene.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollTrigger.d.ts → scroll/useScrollTrigger.d.ts} +0 -0
- /package/dist/composables/motion/{useSpringPress.d.ts → spring/useSpringPress.d.ts} +0 -0
- /package/dist/{createContext-BQ1Gy_LB.js → createContext-BhkE9mLH.js} +0 -0
- /package/dist/{motionTempo-CMS5b0Vu.js → motionTempo-tscp92Nm.js} +0 -0
- /package/dist/{prng-B0PLRmR6.js → prng-2uS6J_A1.js} +0 -0
- /package/dist/{useDragVelocity-BWcNMCux.js → useDragVelocity-6ONX0sr0.js} +0 -0
- /package/dist/{useFuzzySearch-KslRxiJY.js → useFuzzySearch-CUnZknpm.js} +0 -0
- /package/dist/{useResizeObserver-DDuoBeBo.js → useResizeObserver-CdUlm2QZ.js} +0 -0
- /package/dist/{useResolveTokenColor-DVT5kwv6.js → useResolveTokenColor-B2FfJnd9.js} +0 -0
- /package/dist/{useTimer-CkDV8SC2.js → useTimer-C3yfti4C.js} +0 -0
- /package/dist/{useUserInvalidAria-Bkruei7M.js → useUserInvalidAria-0GNrddMX.js} +0 -0
- /package/dist/{writeVelocityWeight-D1rvdxJu.js → writeVelocityWeight-DoGOCW3e.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import {
|
|
11
|
-
import { n as u
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
1
|
+
import { t as e } from "./class-names-Cpy5eaBk.js";
|
|
2
|
+
import { n as t } from "./useReducedMotion-vCXA_vyM.js";
|
|
3
|
+
import { t as n } from "./vSpecular-DMJo8pfD.js";
|
|
4
|
+
import { t as r } from "./motionTempo-tscp92Nm.js";
|
|
5
|
+
import { n as i } from "./springPresets-rCii5KqX.js";
|
|
6
|
+
import { t as a } from "./useLiquidPress-BOxuDkKa.js";
|
|
7
|
+
import { n as o } from "./createContext-BhkE9mLH.js";
|
|
8
|
+
import { t as s } from "./useMotionAxis-D-rtIhca.js";
|
|
9
|
+
import { t as c } from "./useResizeObserver-CdUlm2QZ.js";
|
|
10
|
+
import { t as l } from "./useTouchGate-B4mzQcHJ.js";
|
|
11
|
+
import { n as u } from "./useResolveTokenColor-B2FfJnd9.js";
|
|
12
|
+
import { t as d } from "./DropdownMenuTrigger-ClIq8RJE.js";
|
|
13
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./dockContext-BUTlGRNJ.js";
|
|
14
|
+
import { t as v } from "./useDragMorph-BogSV_nv.js";
|
|
15
|
+
import { n as y } from "./useDockCtaReceive-DkrOTM0q.js";
|
|
16
|
+
import { t as b } from "./useRAFLoop-B3YlWK4M.js";
|
|
17
|
+
import { t as x } from "./useIntersectionPause-B5mAU6XY.js";
|
|
18
|
+
import { n as S, t as C } from "./useSelectionGroup-B5XplBbo.js";
|
|
19
|
+
import { n as w, t as T } from "./value-DMhh2R94.js";
|
|
20
|
+
import { t as E } from "./useFuzzySearch-CUnZknpm.js";
|
|
21
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createVNode as N, defineComponent as P, mergeModels as ee, mergeProps as F, nextTick as I, normalizeClass as L, normalizeStyle as R, onBeforeUnmount as z, onMounted as B, onScopeDispose as V, onUnmounted as H, openBlock as U, readonly as W, ref as G, renderList as te, renderSlot as K, resolveDynamicComponent as ne, toDisplayString as q, unref as J, useId as re, useModel as ie, useTemplateRef as Y, watch as X, withCtx as Z, withDirectives as Q } from "vue";
|
|
22
|
+
import { PopoverTrigger as ae, Primitive as oe, SelectIcon as se, SelectTrigger as ce } from "reka-ui";
|
|
23
|
+
import { ChevronDown as le, Pause as ue, Play as de } from "@lucide/vue";
|
|
24
|
+
import { SpringProgress as fe } from "@mkbabb/keyframes.js";
|
|
25
|
+
import { useMediaQuery as pe } from "@vueuse/core";
|
|
26
|
+
import { convertColor as me, rgb as he } from "@mkbabb/value.js/color";
|
|
25
27
|
//#region src/composables/glass/backdropSampleMath.ts
|
|
26
|
-
function
|
|
28
|
+
function ge(e) {
|
|
27
29
|
let t = e / 255;
|
|
28
30
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
29
31
|
}
|
|
30
|
-
function
|
|
31
|
-
return .2126 *
|
|
32
|
+
function _e(e, t, n) {
|
|
33
|
+
return .2126 * ge(e) + .7152 * ge(t) + .0722 * ge(n);
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function ve(e) {
|
|
34
36
|
let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
|
|
35
37
|
return t ? [
|
|
36
38
|
Number(t[1]),
|
|
@@ -39,13 +41,13 @@ function xe(e) {
|
|
|
39
41
|
t[4] === void 0 ? 1 : Number(t[4])
|
|
40
42
|
] : null;
|
|
41
43
|
}
|
|
42
|
-
function
|
|
44
|
+
function ye(e) {
|
|
43
45
|
return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
44
46
|
}
|
|
45
47
|
//#endregion
|
|
46
48
|
//#region src/composables/glass/ambientHueHistogram.ts
|
|
47
|
-
var $ = 12,
|
|
48
|
-
function
|
|
49
|
+
var $ = 12, be = .72, xe = .06, Se = .004;
|
|
50
|
+
function Ce() {
|
|
49
51
|
return {
|
|
50
52
|
weight: new Float64Array($),
|
|
51
53
|
sumCos: new Float64Array($),
|
|
@@ -54,45 +56,45 @@ function Ee() {
|
|
|
54
56
|
n: 0
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
|
-
function
|
|
59
|
+
function we(e, t, n, r, i) {
|
|
58
60
|
e.n++;
|
|
59
|
-
let [a, o
|
|
60
|
-
if (!Number.isFinite(
|
|
61
|
-
let
|
|
62
|
-
if (
|
|
63
|
-
let
|
|
64
|
-
|
|
61
|
+
let [, a, o] = T("accumulateHuePixel:oklch", me(T("accumulateHuePixel:rgb", he(t, n, r)), "oklch")).channels, s = w(a, "accumulateHuePixel"), c = w(o, "accumulateHuePixel");
|
|
62
|
+
if (!Number.isFinite(s) || !Number.isFinite(c) || s <= 0) return;
|
|
63
|
+
let l = s * i;
|
|
64
|
+
if (l <= 0) return;
|
|
65
|
+
let u = c * Math.PI / 180, d = Math.floor(c / 360 * $) % $;
|
|
66
|
+
d < 0 && (d += $), e.weight[d] += l, e.sumCos[d] += l * Math.cos(u), e.sumSin[d] += l * Math.sin(u), e.totalMass += l;
|
|
65
67
|
}
|
|
66
|
-
function
|
|
67
|
-
if (e.n === 0 || e.totalMass / e.n <
|
|
68
|
+
function Te(e) {
|
|
69
|
+
if (e.n === 0 || e.totalMass / e.n < Se) return "transparent";
|
|
68
70
|
let t = 0;
|
|
69
71
|
for (let n = 1; n < $; n++) e.weight[n] > e.weight[t] && (t = n);
|
|
70
72
|
if (e.weight[t] <= 0) return "transparent";
|
|
71
73
|
let n = Math.atan2(e.sumSin[t], e.sumCos[t]) * 180 / Math.PI;
|
|
72
|
-
return n < 0 && (n += 360), `oklch(${
|
|
74
|
+
return n < 0 && (n += 360), `oklch(${be} ${xe} ${n.toFixed(1)})`;
|
|
73
75
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
+
var Ee = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
77
|
+
function De(e) {
|
|
76
78
|
if (!e) {
|
|
77
79
|
if (typeof document < "u") {
|
|
78
|
-
let e = document.querySelector(
|
|
79
|
-
if (
|
|
80
|
+
let e = document.querySelector(Ee);
|
|
81
|
+
if (ye(e)) return e;
|
|
80
82
|
}
|
|
81
83
|
return null;
|
|
82
84
|
}
|
|
83
|
-
if (
|
|
85
|
+
if (ye(e)) return e;
|
|
84
86
|
if (typeof e == "function") {
|
|
85
87
|
let t = e();
|
|
86
|
-
return
|
|
88
|
+
return ye(t) ? t : null;
|
|
87
89
|
}
|
|
88
90
|
if (typeof e == "string" && typeof document < "u") {
|
|
89
91
|
let t = document.querySelector(e);
|
|
90
|
-
return
|
|
92
|
+
return ye(t) ? t : null;
|
|
91
93
|
}
|
|
92
94
|
return null;
|
|
93
95
|
}
|
|
94
|
-
function
|
|
95
|
-
let n =
|
|
96
|
+
function Oe(e, t) {
|
|
97
|
+
let n = ve(e);
|
|
96
98
|
if (n) return n;
|
|
97
99
|
if (!t) return null;
|
|
98
100
|
try {
|
|
@@ -108,7 +110,7 @@ function je(e, t) {
|
|
|
108
110
|
return null;
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
|
-
function
|
|
113
|
+
function ke(e, t, n) {
|
|
112
114
|
if (!t || t.width === 0 || t.height === 0 || !n) return null;
|
|
113
115
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
114
116
|
if (i.width === 0 || i.height === 0) return null;
|
|
@@ -116,404 +118,394 @@ function Me(e, t, n) {
|
|
|
116
118
|
if (l <= 0 || u <= 0) return null;
|
|
117
119
|
try {
|
|
118
120
|
n.clearRect(0, 0, 32, 32), n.drawImage(t, s, c, l, u, 0, 0, 32, 32);
|
|
119
|
-
let e = n.getImageData(0, 0, 32, 32).data, r = 0, i = 0, a = 0, o =
|
|
121
|
+
let e = n.getImageData(0, 0, 32, 32).data, r = 0, i = 0, a = 0, o = Ce();
|
|
120
122
|
for (let t = 0; t < e.length; t += 4) {
|
|
121
123
|
let n = e[t + 3] / 255, s = e[t] * n + 255 * (1 - n), c = e[t + 1] * n + 255 * (1 - n), l = e[t + 2] * n + 255 * (1 - n);
|
|
122
|
-
r +=
|
|
124
|
+
r += _e(s, c, l), i += n, we(o, s, c, l, n), a++;
|
|
123
125
|
}
|
|
124
126
|
return a === 0 || i / a < .02 ? null : {
|
|
125
127
|
luma: r / a,
|
|
126
|
-
ambientHue:
|
|
128
|
+
ambientHue: Te(o)
|
|
127
129
|
};
|
|
128
130
|
} catch {
|
|
129
131
|
return null;
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function Ae(e, t) {
|
|
133
135
|
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = document.elementsFromPoint(r, i);
|
|
134
136
|
for (let n of a) {
|
|
135
137
|
if (!(n instanceof HTMLElement) || n === e || e.contains(n)) continue;
|
|
136
|
-
let r = getComputedStyle(n).backgroundColor, i =
|
|
137
|
-
if (i && !(i[3] < .5)) return
|
|
138
|
+
let r = getComputedStyle(n).backgroundColor, i = Oe(u(r, e), t);
|
|
139
|
+
if (i && !(i[3] < .5)) return je(i);
|
|
138
140
|
}
|
|
139
|
-
let o =
|
|
140
|
-
return o ?
|
|
141
|
+
let o = Oe(u(getComputedStyle(document.body).backgroundColor, e), t);
|
|
142
|
+
return o ? je(o) : null;
|
|
141
143
|
}
|
|
142
|
-
function
|
|
143
|
-
let t =
|
|
144
|
-
return
|
|
145
|
-
luma:
|
|
146
|
-
ambientHue:
|
|
144
|
+
function je(e) {
|
|
145
|
+
let t = Ce();
|
|
146
|
+
return we(t, e[0], e[1], e[2], e[3]), {
|
|
147
|
+
luma: _e(e[0], e[1], e[2]),
|
|
148
|
+
ambientHue: Te(t)
|
|
147
149
|
};
|
|
148
150
|
}
|
|
149
151
|
//#endregion
|
|
150
152
|
//#region src/composables/glass/useGlassBackdropLuminance.ts
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
let { lightThreshold:
|
|
154
|
-
function
|
|
155
|
-
return
|
|
153
|
+
var Me = "data-glass-backdrop-shared", Ne = "8%";
|
|
154
|
+
function Pe(e, n = {}) {
|
|
155
|
+
let { lightThreshold: r = .6, minSampleIntervalMs: i = 250, writeBucket: a = !0 } = n, o = Math.max(250, i), s = n.shared === !0;
|
|
156
|
+
function l(e) {
|
|
157
|
+
return !s && e.closest(`[${Me}]`) !== null;
|
|
156
158
|
}
|
|
157
|
-
let
|
|
159
|
+
let u = G(null), d = G(null), f = G({
|
|
160
|
+
state: "pending",
|
|
161
|
+
mode: n.live === !0 ? "live" : "static",
|
|
162
|
+
source: n.live === !0 ? "canvas" : "elements"
|
|
163
|
+
});
|
|
158
164
|
if (typeof window > "u") return {
|
|
159
|
-
luma:
|
|
160
|
-
bucket:
|
|
165
|
+
luma: W(u),
|
|
166
|
+
bucket: W(d),
|
|
167
|
+
sample: W(f),
|
|
161
168
|
sampleNow: () => {},
|
|
162
169
|
dispose: () => {}
|
|
163
170
|
};
|
|
164
|
-
let
|
|
165
|
-
function h() {
|
|
166
|
-
return p || (p = document.createElement("canvas"), p.width = 32, p.height = 32), m ||= p.getContext("2d", { willReadFrequently: !0 }), m;
|
|
167
|
-
}
|
|
171
|
+
let p = t(), m = null, h = null;
|
|
168
172
|
function g() {
|
|
169
|
-
return
|
|
173
|
+
return m || (m = document.createElement("canvas"), m.width = 32, m.height = 32), h ||= m.getContext("2d", { willReadFrequently: !0 }), h;
|
|
170
174
|
}
|
|
171
175
|
function _() {
|
|
172
|
-
return
|
|
173
|
-
}
|
|
174
|
-
function v(
|
|
175
|
-
let
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
176
|
+
return n.live === void 0 ? e.value?.dataset.glassSample === "live" || n.backgroundCanvas != null || De(void 0) !== null : n.live;
|
|
177
|
+
}
|
|
178
|
+
function v(e) {
|
|
179
|
+
let t = e.getBoundingClientRect();
|
|
180
|
+
return {
|
|
181
|
+
x: t.x,
|
|
182
|
+
y: t.y,
|
|
183
|
+
width: t.width,
|
|
184
|
+
height: t.height
|
|
185
|
+
};
|
|
182
186
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
function y(e, t, n, i) {
|
|
188
|
+
let o = e.luma;
|
|
189
|
+
u.value = o;
|
|
190
|
+
let s = o >= r ? "light" : "dark";
|
|
191
|
+
d.value = s, f.value = {
|
|
192
|
+
state: "sampled",
|
|
193
|
+
mode: n,
|
|
194
|
+
source: n === "live" ? "canvas" : "elements",
|
|
195
|
+
luma: o,
|
|
196
|
+
ambientHue: e.ambientHue,
|
|
197
|
+
sampledAt: i,
|
|
198
|
+
targetRect: v(t)
|
|
199
|
+
}, t.style.setProperty("--glass-backdrop-luma", o.toFixed(3)), t.style.setProperty("--glass-ambient-hue", e.ambientHue), t.style.setProperty("--glass-ambient-strength", e.ambientHue === "transparent" ? "0%" : Ne), t.setAttribute("data-backdrop-sampled", ""), t.setAttribute("data-backdrop-sample-state", "sampled"), t.setAttribute("data-backdrop-sample-source", n === "live" ? "canvas" : "elements"), t.removeAttribute("data-backdrop-sample-reason"), t.style.setProperty("--glass-backdrop-sampled", "1"), a && t.style.setProperty("--glass-backdrop", s);
|
|
200
|
+
}
|
|
201
|
+
function S(e, t, n, r) {
|
|
202
|
+
u.value = null, d.value = null, f.value = {
|
|
203
|
+
state: "unavailable",
|
|
204
|
+
mode: t,
|
|
205
|
+
source: t === "live" ? "canvas" : "elements",
|
|
206
|
+
reason: n,
|
|
207
|
+
sampledAt: r,
|
|
208
|
+
targetRect: v(e)
|
|
209
|
+
}, e.style.removeProperty("--glass-backdrop-luma"), e.style.removeProperty("--glass-ambient-hue"), e.style.removeProperty("--glass-ambient-strength"), e.style.removeProperty("--glass-backdrop-sampled"), a && e.style.removeProperty("--glass-backdrop"), e.removeAttribute("data-backdrop-sampled"), e.setAttribute("data-backdrop-sample-state", "unavailable"), e.setAttribute("data-backdrop-sample-source", t === "live" ? "canvas" : "elements"), e.setAttribute("data-backdrop-sample-reason", n);
|
|
210
|
+
}
|
|
211
|
+
let C = 0;
|
|
212
|
+
function w() {
|
|
213
|
+
let t = e.value;
|
|
214
|
+
if (!t || l(t)) return;
|
|
215
|
+
let r = g(), i = _() ? "live" : "static", a = i === "live" ? De(n.backgroundCanvas) : null, o = i === "live" ? ke(t, a, r) : Ae(t, r), s = Date.now();
|
|
216
|
+
o ? y(o, t, i, s) : S(t, i, i === "live" && !a ? "source-unavailable" : "sample-unavailable", s), C = typeof performance < "u" ? performance.now() : s;
|
|
189
217
|
}
|
|
190
|
-
let
|
|
191
|
-
|
|
218
|
+
let T = b(({ now: e }) => {
|
|
219
|
+
p.value || e - C < o || w();
|
|
192
220
|
}, {
|
|
193
221
|
immediate: !1,
|
|
194
222
|
pauseWhenHidden: !0,
|
|
195
223
|
respectReducedMotion: !0
|
|
196
|
-
}),
|
|
197
|
-
pause: () =>
|
|
224
|
+
}), E = x(() => e.value, {
|
|
225
|
+
pause: () => T.pause(),
|
|
198
226
|
resume: () => {
|
|
199
227
|
let t = e.value;
|
|
200
|
-
t &&
|
|
228
|
+
t && l(t) || _() && !p.value && T.resume();
|
|
201
229
|
}
|
|
202
|
-
}, { rootMargin: "200px" }),
|
|
203
|
-
function
|
|
204
|
-
f = d.matches;
|
|
230
|
+
}, { rootMargin: "200px" }), D = c(e, () => w());
|
|
231
|
+
function O() {
|
|
205
232
|
let t = e.value;
|
|
206
|
-
if (t &&
|
|
207
|
-
|
|
233
|
+
if (t && l(t)) {
|
|
234
|
+
T.stop();
|
|
208
235
|
return;
|
|
209
236
|
}
|
|
210
|
-
|
|
237
|
+
p.value ? (T.stop(), w()) : _() && T.start();
|
|
211
238
|
}
|
|
212
|
-
let
|
|
213
|
-
typeof d.addEventListener == "function" && d.addEventListener("change", D);
|
|
214
|
-
let O = X(() => e.value, (e) => {
|
|
239
|
+
let k = X(p, O, { flush: "sync" }), A = X(() => e.value, (e) => {
|
|
215
240
|
if (e) {
|
|
216
|
-
if (
|
|
217
|
-
else if (
|
|
218
|
-
|
|
241
|
+
if (s) e.setAttribute(Me, "");
|
|
242
|
+
else if (l(e)) return;
|
|
243
|
+
w(), O();
|
|
219
244
|
}
|
|
220
245
|
}, {
|
|
221
246
|
immediate: !0,
|
|
222
247
|
flush: "post"
|
|
223
248
|
});
|
|
224
|
-
function
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
return
|
|
228
|
-
luma:
|
|
229
|
-
bucket:
|
|
230
|
-
|
|
231
|
-
|
|
249
|
+
function j() {
|
|
250
|
+
A(), k(), T.dispose(), E.dispose(), D.stop(), m = null, h = null;
|
|
251
|
+
}
|
|
252
|
+
return V(j), {
|
|
253
|
+
luma: W(u),
|
|
254
|
+
bucket: W(d),
|
|
255
|
+
sample: W(f),
|
|
256
|
+
sampleNow: w,
|
|
257
|
+
dispose: j
|
|
232
258
|
};
|
|
233
259
|
}
|
|
234
260
|
//#endregion
|
|
235
261
|
//#region src/components/dock/composables/isTeleportedTarget.ts
|
|
236
|
-
function
|
|
262
|
+
function Fe(e, t) {
|
|
237
263
|
if (!(e instanceof Element)) return !1;
|
|
238
264
|
let n = e.closest("[data-glass-dock-portal]");
|
|
239
|
-
return n ? t
|
|
265
|
+
return n ? !t || n.getAttribute("data-glass-dock-owner") === t : !1;
|
|
240
266
|
}
|
|
241
267
|
//#endregion
|
|
242
268
|
//#region src/components/dock/composables/useDockState.ts
|
|
243
|
-
function
|
|
244
|
-
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1,
|
|
245
|
-
function y() {
|
|
246
|
-
v &&= (clearTimeout(v), null);
|
|
247
|
-
}
|
|
248
|
-
let b = l.value;
|
|
249
|
-
function x() {
|
|
250
|
-
s() && (l.value = "pinned"), u.value = l.value !== "collapsed", d.value = l.value === "pinned", o && b !== l.value && o(l.value, b), b = l.value;
|
|
251
|
-
}
|
|
269
|
+
function Ie(e) {
|
|
270
|
+
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1, interaction: i = "auto", initialExpanded: a = !1, isTransitioning: o, dockId: s, onStateChange: c } = e, l = () => typeof r == "boolean" ? r : r.value, u = () => typeof i == "string" ? i : i.value, d = () => l() || u() === "manual", f = G(l() ? "pinned" : a ? "hover" : "collapsed"), p = O(() => f.value !== "collapsed"), m = O(() => f.value === "pinned"), h = null, g = G(0), _ = O(() => g.value > 0), v = null, y = null, b = !1, x = null;
|
|
252
271
|
function S() {
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
function C() {
|
|
256
|
-
g !== null && (cancelAnimationFrame(g), g = null);
|
|
272
|
+
x &&= (clearTimeout(x), null);
|
|
257
273
|
}
|
|
274
|
+
let C = f.value;
|
|
258
275
|
function w() {
|
|
259
|
-
|
|
276
|
+
l() && (f.value = "pinned"), c && C !== f.value && c(f.value, C), C = f.value;
|
|
260
277
|
}
|
|
261
278
|
function T() {
|
|
262
|
-
|
|
263
|
-
l.value = "collapsed", x();
|
|
264
|
-
}, t));
|
|
279
|
+
h &&= (clearTimeout(h), null);
|
|
265
280
|
}
|
|
266
281
|
function E() {
|
|
267
|
-
|
|
268
|
-
|
|
282
|
+
y !== null && (cancelAnimationFrame(y), y = null);
|
|
283
|
+
}
|
|
284
|
+
function D() {
|
|
285
|
+
E(), v?.();
|
|
286
|
+
}
|
|
287
|
+
function k() {
|
|
288
|
+
d() || g.value > 0 || (T(), h = setTimeout(() => {
|
|
289
|
+
f.value = "collapsed", w();
|
|
290
|
+
}, t));
|
|
291
|
+
}
|
|
292
|
+
function A() {
|
|
293
|
+
if (l()) {
|
|
294
|
+
f.value = "pinned", w();
|
|
269
295
|
return;
|
|
270
296
|
}
|
|
271
|
-
|
|
297
|
+
b ||= (b = !0, T(), S(), f.value = "collapsed", w(), !1);
|
|
272
298
|
}
|
|
273
|
-
function
|
|
274
|
-
if (
|
|
275
|
-
|
|
299
|
+
function j() {
|
|
300
|
+
if (l()) {
|
|
301
|
+
f.value = "pinned", w();
|
|
276
302
|
return;
|
|
277
303
|
}
|
|
278
|
-
|
|
304
|
+
T(), S(), f.value = "hover", w();
|
|
279
305
|
}
|
|
280
|
-
function
|
|
281
|
-
|
|
282
|
-
|
|
306
|
+
function M() {
|
|
307
|
+
d() || (T(), f.value === "collapsed" && (S(), x = setTimeout(() => {
|
|
308
|
+
x = null, !d() && f.value === "collapsed" && (f.value = "hover", w());
|
|
283
309
|
}, 60)));
|
|
284
310
|
}
|
|
285
|
-
function
|
|
286
|
-
if (!
|
|
287
|
-
if (
|
|
311
|
+
function N(e) {
|
|
312
|
+
if (!d() && (S(), f.value === "hover")) {
|
|
313
|
+
if (g.value > 0) return;
|
|
288
314
|
if (e) {
|
|
289
315
|
let t = n.value;
|
|
290
|
-
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) ||
|
|
316
|
+
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || Fe(e.relatedTarget, s)) return;
|
|
291
317
|
}
|
|
292
|
-
|
|
318
|
+
k();
|
|
293
319
|
}
|
|
294
320
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
321
|
+
function P() {
|
|
322
|
+
d() || (T(), f.value === "collapsed" && (f.value = "hover", w()));
|
|
297
323
|
}
|
|
298
|
-
function
|
|
299
|
-
if (
|
|
324
|
+
function ee(e) {
|
|
325
|
+
if (d() || f.value !== "hover" || g.value > 0) return;
|
|
300
326
|
let t = e.currentTarget;
|
|
301
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
327
|
+
e.relatedTarget && t.contains(e.relatedTarget) || Fe(e.relatedTarget, s) || k();
|
|
302
328
|
}
|
|
303
|
-
function
|
|
304
|
-
|
|
305
|
-
l.value = "pinned", x();
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
S(), y(), l.value = "pinned", x();
|
|
329
|
+
function F() {
|
|
330
|
+
d() || (T(), S(), f.value = "pinned", w());
|
|
309
331
|
}
|
|
310
|
-
function
|
|
311
|
-
|
|
332
|
+
function I() {
|
|
333
|
+
g.value++, T();
|
|
312
334
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
315
|
-
|
|
335
|
+
function L() {
|
|
336
|
+
g.value = Math.max(0, g.value - 1), g.value === 0 && f.value === "hover" && (T(), h = setTimeout(() => {
|
|
337
|
+
g.value === 0 && f.value === "hover" && k();
|
|
316
338
|
}, Math.min(t, 800)));
|
|
317
339
|
}
|
|
318
|
-
function
|
|
319
|
-
if (
|
|
340
|
+
function R(e) {
|
|
341
|
+
if (d() || g.value > 0 || o?.value) return;
|
|
320
342
|
let t = n.value;
|
|
321
|
-
!t || t.contains(e.target) ||
|
|
343
|
+
!t || t.contains(e.target) || Fe(e.target, s) || A();
|
|
322
344
|
}
|
|
323
|
-
return X(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
345
|
+
return X(p, (e) => {
|
|
346
|
+
if (e) {
|
|
347
|
+
if (typeof document > "u") return;
|
|
348
|
+
D(), y = requestAnimationFrame(() => {
|
|
349
|
+
y = null, p.value && (document.addEventListener("pointerdown", R, !0), v = () => {
|
|
350
|
+
document.removeEventListener("pointerdown", R, !0), v = null;
|
|
351
|
+
});
|
|
327
352
|
});
|
|
328
|
-
}
|
|
329
|
-
}), typeof r == "boolean" ? r && (
|
|
353
|
+
} else D();
|
|
354
|
+
}, { immediate: !0 }), typeof r == "boolean" ? r && (f.value = "pinned", w()) : X(r, (e) => {
|
|
330
355
|
if (e) {
|
|
331
|
-
|
|
356
|
+
T(), f.value = "pinned", w();
|
|
332
357
|
return;
|
|
333
358
|
}
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
|
|
359
|
+
f.value = "collapsed", w();
|
|
360
|
+
}), typeof i != "string" && X(i, (e) => {
|
|
361
|
+
e === "manual" && (T(), S());
|
|
362
|
+
}), H(() => {
|
|
363
|
+
T(), S(), D();
|
|
337
364
|
}), {
|
|
338
|
-
state:
|
|
339
|
-
expanded:
|
|
340
|
-
isPinned:
|
|
341
|
-
isHeld:
|
|
342
|
-
onMouseEnter:
|
|
343
|
-
onMouseLeave:
|
|
344
|
-
onFocusIn:
|
|
345
|
-
onFocusOut:
|
|
346
|
-
onClickCollapsed:
|
|
347
|
-
keepOpen:
|
|
348
|
-
release:
|
|
349
|
-
expand:
|
|
350
|
-
collapse:
|
|
365
|
+
state: f,
|
|
366
|
+
expanded: p,
|
|
367
|
+
isPinned: m,
|
|
368
|
+
isHeld: _,
|
|
369
|
+
onMouseEnter: M,
|
|
370
|
+
onMouseLeave: N,
|
|
371
|
+
onFocusIn: P,
|
|
372
|
+
onFocusOut: ee,
|
|
373
|
+
onClickCollapsed: F,
|
|
374
|
+
keepOpen: I,
|
|
375
|
+
release: L,
|
|
376
|
+
expand: j,
|
|
377
|
+
collapse: A
|
|
351
378
|
};
|
|
352
379
|
}
|
|
353
380
|
//#endregion
|
|
354
381
|
//#region src/components/dock/composables/useDockSpring.ts
|
|
355
|
-
function
|
|
356
|
-
let
|
|
382
|
+
function Le(e) {
|
|
383
|
+
let t = null, n = () => t !== null && !t.settled;
|
|
357
384
|
function i() {
|
|
358
|
-
|
|
385
|
+
t &&= (t.dispose(), null);
|
|
359
386
|
}
|
|
360
387
|
function a(a, o, s) {
|
|
361
|
-
let c =
|
|
388
|
+
let c = n() ? t.velocity * (s.inheritVelocityScale ?? 1) : 0;
|
|
362
389
|
i();
|
|
363
|
-
let l = new
|
|
364
|
-
response: e.response *
|
|
390
|
+
let l = new fe({
|
|
391
|
+
response: e.response * r(),
|
|
365
392
|
dampingFraction: e.dampingFraction,
|
|
366
393
|
initial: a,
|
|
367
394
|
respectReducedMotion: !0
|
|
368
395
|
});
|
|
369
|
-
|
|
370
|
-
s.onFrame(e,
|
|
396
|
+
t = l, l.reset(a, c), l.target = o, l.play((e, n) => {
|
|
397
|
+
s.onFrame(e, n), l.settled && (s.onSettle?.(), t === l && i());
|
|
371
398
|
});
|
|
372
399
|
}
|
|
373
400
|
function o(e) {
|
|
374
|
-
|
|
401
|
+
n() && (t.target = e);
|
|
375
402
|
}
|
|
376
403
|
return {
|
|
377
404
|
playTo: a,
|
|
378
405
|
retarget: o,
|
|
379
406
|
get live() {
|
|
380
|
-
return
|
|
407
|
+
return n();
|
|
381
408
|
},
|
|
382
409
|
get velocity() {
|
|
383
|
-
return
|
|
410
|
+
return n() ? t.velocity : 0;
|
|
384
411
|
},
|
|
385
412
|
dispose: i
|
|
386
413
|
};
|
|
387
414
|
}
|
|
388
415
|
//#endregion
|
|
389
|
-
//#region src/components/dock/composables/
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
function Ge(e) {
|
|
396
|
-
let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = Ve({
|
|
397
|
-
response: _.response,
|
|
398
|
-
dampingFraction: _.dampingFraction
|
|
399
|
-
}), o = /* @__PURE__ */ new Set();
|
|
416
|
+
//#region src/components/dock/composables/useDockMorph.ts
|
|
417
|
+
function Re(e) {
|
|
418
|
+
let { rootEl: t, outerActiveLayer: n } = e, r = G(n.value), i = G(null), a = Le({
|
|
419
|
+
response: h.response,
|
|
420
|
+
dampingFraction: h.dampingFraction
|
|
421
|
+
}), o = pe("(prefers-reduced-motion: reduce)");
|
|
400
422
|
function s() {
|
|
401
423
|
return t.value;
|
|
402
424
|
}
|
|
403
425
|
function c() {
|
|
404
|
-
|
|
405
|
-
return !!e && e.hasAttribute("data-morphing");
|
|
406
|
-
}
|
|
407
|
-
function l(e) {
|
|
408
|
-
e.leavingLayer.value = null;
|
|
409
|
-
}
|
|
410
|
-
function u() {
|
|
426
|
+
i.value = null;
|
|
411
427
|
let t = s();
|
|
412
|
-
t && (t.removeAttribute("data-morphing"), t.
|
|
428
|
+
t && (t.removeAttribute("data-morphing"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
413
429
|
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
430
|
+
X(o, (e) => {
|
|
431
|
+
e && s()?.hasAttribute("data-morphing") && c();
|
|
432
|
+
});
|
|
433
|
+
function l() {
|
|
434
|
+
let t = s();
|
|
435
|
+
if (!t) return;
|
|
436
|
+
e.onMorphActiveChange?.(!0), t.setAttribute("data-morphing", "");
|
|
437
|
+
let n = Number.parseFloat(t.style.getPropertyValue("--dock-morph-t")), r = a.live && !Number.isNaN(n), i = r ? 1 - n : 0;
|
|
438
|
+
t.style.setProperty("--dock-morph-t", `${i}`), a.playTo(i, 1, {
|
|
439
|
+
inheritVelocityScale: r ? -1 : 1,
|
|
421
440
|
onFrame: (e) => {
|
|
422
|
-
|
|
423
|
-
t && t.style.setProperty("--dock-morph-t", `${e}`);
|
|
441
|
+
s()?.style.setProperty("--dock-morph-t", `${e}`);
|
|
424
442
|
},
|
|
425
|
-
onSettle:
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
}));
|
|
443
|
+
onSettle: c
|
|
444
|
+
});
|
|
429
445
|
}
|
|
430
|
-
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
e.leavingLayer.value = n, e.currentLayer.value = t, f(!e.isOuter);
|
|
446
|
+
let u = X(n, (e, t) => {
|
|
447
|
+
if (e === t) return;
|
|
448
|
+
let n = s();
|
|
449
|
+
if (r.value = e, !n) {
|
|
450
|
+
i.value = null;
|
|
451
|
+
return;
|
|
437
452
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
axis: e.axis,
|
|
443
|
-
activeLayer: e.activeLayer,
|
|
444
|
-
currentLayer: W(e.activeLayer.value),
|
|
445
|
-
leavingLayer: W(null),
|
|
446
|
-
isOuter: t,
|
|
447
|
-
stop: () => {}
|
|
448
|
-
};
|
|
449
|
-
return n.stop = X(e.activeLayer, (e, t) => {
|
|
450
|
-
p(n, e, t);
|
|
451
|
-
}), o.add(n), n;
|
|
452
|
-
}
|
|
453
|
-
function h(e) {
|
|
454
|
-
e.stop(), o.delete(e), c() || a.dispose();
|
|
455
|
-
}
|
|
456
|
-
let g = m({
|
|
457
|
-
containerEl: n,
|
|
458
|
-
activeLayer: r,
|
|
459
|
-
axis: i
|
|
460
|
-
}, !0);
|
|
461
|
-
return V(() => {
|
|
462
|
-
for (let e of o) e.stop();
|
|
463
|
-
o.clear(), a.dispose();
|
|
453
|
+
i.value = t, l();
|
|
454
|
+
});
|
|
455
|
+
return H(() => {
|
|
456
|
+
u(), a.dispose();
|
|
464
457
|
}), {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return {
|
|
468
|
-
currentLayer: U(t.currentLayer),
|
|
469
|
-
leavingLayer: U(t.leavingLayer),
|
|
470
|
-
release: () => h(t)
|
|
471
|
-
};
|
|
472
|
-
} },
|
|
473
|
-
outerCurrentLayer: U(g.currentLayer)
|
|
458
|
+
outerCurrentLayer: W(r),
|
|
459
|
+
outerLeavingLayer: W(i)
|
|
474
460
|
};
|
|
475
461
|
}
|
|
476
462
|
//#endregion
|
|
477
463
|
//#region src/components/dock/composables/dockMorphMeasure.ts
|
|
478
|
-
function
|
|
479
|
-
return
|
|
480
|
-
}
|
|
481
|
-
function qe(e, t) {
|
|
482
|
-
return e.getBoundingClientRect()[Ke(t)];
|
|
483
|
-
}
|
|
484
|
-
function Je(e) {
|
|
485
|
-
if (!e || typeof getComputedStyle != "function") return 44;
|
|
486
|
-
let t = getComputedStyle(e).getPropertyValue("--dock-morph-min").trim(), n = Number.parseFloat(t);
|
|
487
|
-
return Number.isFinite(n) && n > 0 ? n : 44;
|
|
464
|
+
function ze(e, t) {
|
|
465
|
+
return t === "vertical" ? e.offsetHeight : e.offsetWidth;
|
|
488
466
|
}
|
|
489
|
-
function
|
|
490
|
-
let { rootEl: t, contentEl: n,
|
|
491
|
-
function
|
|
492
|
-
|
|
467
|
+
function Be(e) {
|
|
468
|
+
let { rootEl: t, contentEl: n, expandedEl: r, collapsedEl: i, axis: a, expanded: o } = e, s = null, c = 0, l = 0, u = !1;
|
|
469
|
+
function d() {
|
|
470
|
+
let e = t.value, s = n.value, u = r.value, d = i.value;
|
|
471
|
+
if (!e || !s || !u || !d || e.hasAttribute("data-morphing")) return;
|
|
472
|
+
let f = a.value, p = ze(e, f), m = ze(u, f), h = ze(d, f);
|
|
473
|
+
if (p <= 0 || m < 0 || h < 0) return;
|
|
474
|
+
o.value ? c = p : l = p;
|
|
475
|
+
let g = o.value ? m : h, _ = Math.max(0, p - g), v = c || _ + m, y = l || _ + h;
|
|
476
|
+
v <= 0 || y <= 0 || (e.style.setProperty("--dock-collapsed-px", `${y}px`), e.style.setProperty("--dock-expanded-px", `${Math.max(v, y)}px`));
|
|
493
477
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
478
|
+
function f() {
|
|
479
|
+
s?.disconnect(), s = null;
|
|
480
|
+
let e = t.value;
|
|
481
|
+
if (e) {
|
|
482
|
+
if (typeof ResizeObserver < "u") {
|
|
483
|
+
s = new ResizeObserver(d);
|
|
484
|
+
for (let t of [
|
|
485
|
+
e,
|
|
486
|
+
n.value,
|
|
487
|
+
r.value,
|
|
488
|
+
i.value
|
|
489
|
+
]) t && s.observe(t);
|
|
490
|
+
}
|
|
491
|
+
d();
|
|
501
492
|
}
|
|
502
|
-
let d = o > 0 ? o : Math.max(qe(a, l), s), f = Math.max(d, s);
|
|
503
|
-
e.style.setProperty("--dock-collapsed-px", `${s}px`), e.style.setProperty("--dock-expanded-px", `${f}px`);
|
|
504
493
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
494
|
+
X([
|
|
495
|
+
t,
|
|
496
|
+
n,
|
|
497
|
+
r,
|
|
498
|
+
i,
|
|
499
|
+
a
|
|
500
|
+
], f, { immediate: !0 }), X(o, d);
|
|
501
|
+
let p = typeof document < "u" ? document.fonts : void 0;
|
|
502
|
+
p && p.ready.then(() => !u && d()), V(() => {
|
|
503
|
+
u = !0, s?.disconnect(), s = null;
|
|
512
504
|
});
|
|
513
505
|
}
|
|
514
506
|
//#endregion
|
|
515
507
|
//#region src/components/dock/composables/useDockShellProps.ts
|
|
516
|
-
function
|
|
508
|
+
function Ve(e) {
|
|
517
509
|
let t = O(() => {
|
|
518
510
|
if (e.containerName) return {
|
|
519
511
|
"container-type": "inline-size",
|
|
@@ -524,6 +516,7 @@ function Xe(e) {
|
|
|
524
516
|
containerStyle: t,
|
|
525
517
|
collapseDelay: n,
|
|
526
518
|
startCollapsed: O(() => c.value ? !1 : e.startCollapsed ?? !0),
|
|
519
|
+
interaction: O(() => c.value ? "auto" : e.interaction ?? "auto"),
|
|
527
520
|
layoutValue: r,
|
|
528
521
|
shape: i,
|
|
529
522
|
orientation: a,
|
|
@@ -535,60 +528,91 @@ function Xe(e) {
|
|
|
535
528
|
}
|
|
536
529
|
//#endregion
|
|
537
530
|
//#region src/components/dock/composables/useDockClickIntegrity.ts
|
|
538
|
-
function
|
|
539
|
-
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null;
|
|
540
|
-
function
|
|
531
|
+
function He(e) {
|
|
532
|
+
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s = G(null), c = null, l = [];
|
|
533
|
+
function u() {
|
|
534
|
+
c?.removeAttribute("data-dock-press-origin"), c = null;
|
|
535
|
+
for (let { element: e, wasInert: t } of l.splice(0)) e.toggleAttribute("inert", t);
|
|
536
|
+
s.value = null;
|
|
537
|
+
}
|
|
538
|
+
function d(e) {
|
|
539
|
+
let n = (e instanceof Element ? e : null)?.closest("button, a[href], input, select, textarea, [role='button'], [tabindex]"), r = n?.closest(".dock-layer--full");
|
|
540
|
+
if (!(!n || !r || !t.value?.contains(r))) {
|
|
541
|
+
c = n, n.setAttribute("data-dock-press-origin", ""), s.value = "full";
|
|
542
|
+
for (let e = n; e !== r;) {
|
|
543
|
+
let t = e.parentElement;
|
|
544
|
+
if (!t) break;
|
|
545
|
+
for (let n of t.children) n === e || !(n instanceof HTMLElement) || (l.push({
|
|
546
|
+
element: n,
|
|
547
|
+
wasInert: n.inert
|
|
548
|
+
}), n.inert = !0);
|
|
549
|
+
e = t;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function f() {
|
|
541
554
|
o !== null && (clearTimeout(o), o = null);
|
|
542
555
|
}
|
|
543
|
-
function
|
|
544
|
-
a =
|
|
556
|
+
function p() {
|
|
557
|
+
a = m() + 840, f(), o = setTimeout(() => {
|
|
545
558
|
o = null;
|
|
546
559
|
}, 840);
|
|
547
560
|
}
|
|
548
|
-
function
|
|
561
|
+
function m() {
|
|
549
562
|
return typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now();
|
|
550
563
|
}
|
|
551
|
-
function
|
|
564
|
+
function h() {
|
|
552
565
|
let e = t.value;
|
|
553
|
-
return e && e.hasAttribute("data-morphing") ? !0 :
|
|
566
|
+
return e && e.hasAttribute("data-morphing") ? !0 : m() < a;
|
|
554
567
|
}
|
|
555
|
-
function
|
|
568
|
+
function g() {
|
|
556
569
|
let e = t.value;
|
|
557
570
|
return !!e && e.hasAttribute("data-morphing");
|
|
558
571
|
}
|
|
559
|
-
function
|
|
560
|
-
r = e.target, n.value, i =
|
|
572
|
+
function _(e) {
|
|
573
|
+
u(), r = e.target, n.value, i = g();
|
|
561
574
|
}
|
|
562
|
-
|
|
575
|
+
X(n, (e, t) => {
|
|
576
|
+
t && !e && r && d(r);
|
|
577
|
+
});
|
|
578
|
+
function v() {
|
|
579
|
+
u(), r = null, i = !1;
|
|
580
|
+
}
|
|
581
|
+
function y(e) {
|
|
563
582
|
if (!r || !e) return !1;
|
|
564
583
|
if (e === r) return !0;
|
|
565
584
|
let t = r instanceof Node ? r : null, n = e instanceof Node ? e : null;
|
|
566
585
|
return !t || !n ? !1 : t.contains(n) || n.contains(t);
|
|
567
586
|
}
|
|
568
|
-
function
|
|
587
|
+
function b(e) {
|
|
588
|
+
u();
|
|
569
589
|
let t = i;
|
|
570
|
-
if (i = !1, !
|
|
590
|
+
if (i = !1, !h()) {
|
|
571
591
|
r = null;
|
|
572
592
|
return;
|
|
573
593
|
}
|
|
574
594
|
if (!(!r && !t)) {
|
|
575
|
-
if (!t &&
|
|
595
|
+
if (!t && y(e.target)) {
|
|
576
596
|
r = null;
|
|
577
597
|
return;
|
|
578
598
|
}
|
|
579
599
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
580
600
|
}
|
|
581
601
|
}
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
602
|
+
return z(() => {
|
|
603
|
+
f(), u();
|
|
604
|
+
}), {
|
|
605
|
+
onPointerDownCapture: _,
|
|
606
|
+
onPointerCancelCapture: v,
|
|
607
|
+
onClickCapture: b,
|
|
608
|
+
markExpandFlip: p,
|
|
609
|
+
pressKeepaliveLayer: W(s)
|
|
586
610
|
};
|
|
587
611
|
}
|
|
588
612
|
//#endregion
|
|
589
613
|
//#region src/components/dock/composables/useDockTouchGate.ts
|
|
590
|
-
function
|
|
591
|
-
let { collapseDelay: t, rootEl: n,
|
|
614
|
+
function Ue(e) {
|
|
615
|
+
let { collapseDelay: t, rootEl: n, quiet: r, visualExpanded: i, expanded: a, isPinned: o, expand: s, collapse: c } = e, u = l(t);
|
|
592
616
|
function d() {
|
|
593
617
|
return !r.value;
|
|
594
618
|
}
|
|
@@ -606,7 +630,7 @@ function Qe(e) {
|
|
|
606
630
|
u.handleTouchEnd(), !e && u.isActive.value && !i.value && s();
|
|
607
631
|
}
|
|
608
632
|
return X(u.isActive, (e) => {
|
|
609
|
-
!e && a.value && !o.value && !r.value &&
|
|
633
|
+
!e && a.value && !o.value && !r.value && c();
|
|
610
634
|
}), {
|
|
611
635
|
onTouchStart: f,
|
|
612
636
|
onTouchMove: p,
|
|
@@ -616,7 +640,7 @@ function Qe(e) {
|
|
|
616
640
|
}
|
|
617
641
|
//#endregion
|
|
618
642
|
//#region src/components/dock/composables/useDockOverflowFit.ts
|
|
619
|
-
function
|
|
643
|
+
function We(e) {
|
|
620
644
|
let t = null, n = null, r = 0;
|
|
621
645
|
function i() {
|
|
622
646
|
return e.value?.querySelector(".dock-layer--full") ?? null;
|
|
@@ -624,53 +648,60 @@ function $e(e) {
|
|
|
624
648
|
function a() {
|
|
625
649
|
let t = e.value, n = i();
|
|
626
650
|
if (!t || !n) return;
|
|
627
|
-
let r = n.scrollWidth -
|
|
628
|
-
t.toggleAttribute("data-dock-overflow",
|
|
651
|
+
let r = t.classList.contains("vertical"), a = r ? t : n, o = r ? a.scrollHeight - a.clientHeight > 1 : a.scrollWidth - a.clientWidth > 1;
|
|
652
|
+
t.toggleAttribute("data-dock-overflow", o);
|
|
629
653
|
}
|
|
630
654
|
function o() {
|
|
631
655
|
cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
632
656
|
}
|
|
633
|
-
return
|
|
657
|
+
return B(() => {
|
|
634
658
|
let r = e.value, a = i();
|
|
635
|
-
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)),
|
|
659
|
+
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)), r && (n = new MutationObserver(o), n.observe(r, {
|
|
636
660
|
childList: !0,
|
|
637
661
|
subtree: !0,
|
|
638
|
-
characterData: !0
|
|
662
|
+
characterData: !0,
|
|
663
|
+
attributes: !0,
|
|
664
|
+
attributeFilter: ["class", "hidden"]
|
|
639
665
|
}));
|
|
640
|
-
}), X(() => e.value, () => o()),
|
|
666
|
+
}), X(() => e.value, () => o()), H(() => {
|
|
641
667
|
t?.disconnect(), n?.disconnect(), cancelAnimationFrame(r);
|
|
642
668
|
}), { measure: a };
|
|
643
669
|
}
|
|
644
670
|
//#endregion
|
|
645
671
|
//#region src/components/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
646
|
-
var
|
|
672
|
+
var Ge = [
|
|
647
673
|
"data-size",
|
|
674
|
+
"data-backdrop-mode",
|
|
675
|
+
"data-interaction",
|
|
648
676
|
"data-held",
|
|
649
677
|
"data-search",
|
|
650
678
|
"data-container-name"
|
|
651
|
-
],
|
|
679
|
+
], Ke = { class: "dock-controls" }, qe = {
|
|
652
680
|
key: 0,
|
|
653
681
|
class: "dock-persistent"
|
|
654
|
-
},
|
|
682
|
+
}, Je = ["inert"], Ye = ["inert"], Xe = {
|
|
655
683
|
key: 0,
|
|
656
684
|
class: "dock-search-field"
|
|
657
|
-
},
|
|
685
|
+
}, Ze = {
|
|
658
686
|
key: 1,
|
|
659
687
|
class: "dock-persistent dock-persistent-end"
|
|
660
|
-
},
|
|
688
|
+
}, Qe = /* @__PURE__ */ P({
|
|
661
689
|
inheritAttrs: !1,
|
|
662
690
|
__name: "GlassDock",
|
|
663
691
|
props: {
|
|
664
692
|
fitContent: { type: Boolean },
|
|
665
693
|
position: {},
|
|
694
|
+
backdropMode: { default: "live" },
|
|
666
695
|
alwaysExpanded: { type: Boolean },
|
|
667
696
|
shape: {},
|
|
668
697
|
orientation: {},
|
|
669
698
|
size: {},
|
|
670
699
|
overflow: {},
|
|
671
700
|
containerName: {},
|
|
701
|
+
viewTransitionName: {},
|
|
672
702
|
collapseDelay: {},
|
|
673
703
|
startCollapsed: { type: Boolean },
|
|
704
|
+
interaction: {},
|
|
674
705
|
layout: {},
|
|
675
706
|
autoLuminance: {
|
|
676
707
|
type: Boolean,
|
|
@@ -680,142 +711,155 @@ var et = [
|
|
|
680
711
|
search: { type: Boolean }
|
|
681
712
|
},
|
|
682
713
|
setup(e, { expose: t }) {
|
|
683
|
-
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a,
|
|
684
|
-
|
|
714
|
+
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a, interaction: o, layoutValue: s, shape: c, orientation: l, size: u, scrollClass: d, alwaysExpanded: f, fitContent: p } = Ve(n), h = s, g = Y("dockEl"), _ = Y("layersEl"), v = Y("fullEl"), y = Y("summaryEl");
|
|
715
|
+
We(g), n.backdropMode === "live" && n.autoLuminance !== !1 && Pe(g, { backgroundCanvas: () => {
|
|
685
716
|
let e = n.backgroundCanvas;
|
|
686
717
|
return typeof e == "function" ? e() : e instanceof HTMLCanvasElement ? e : null;
|
|
687
718
|
} });
|
|
688
|
-
let
|
|
719
|
+
let b = G(!1), x = `glass-dock-${re()}`, { expanded: S, isPinned: C, isHeld: w, onMouseEnter: T, onMouseLeave: E, onFocusIn: D, onFocusOut: k, onClickCollapsed: N, keepOpen: P, release: ee, expand: I, collapse: R } = Ie({
|
|
689
720
|
collapseDelay: i.value,
|
|
690
|
-
rootEl:
|
|
691
|
-
alwaysExpanded:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
721
|
+
rootEl: g,
|
|
722
|
+
alwaysExpanded: f,
|
|
723
|
+
interaction: o,
|
|
724
|
+
initialExpanded: !a.value,
|
|
725
|
+
isTransitioning: b,
|
|
726
|
+
dockId: x
|
|
727
|
+
}), z = O(() => f.value || o.value === "manual");
|
|
695
728
|
m({
|
|
696
|
-
id:
|
|
697
|
-
orientation:
|
|
698
|
-
layout:
|
|
699
|
-
keepOpen:
|
|
700
|
-
release:
|
|
701
|
-
held:
|
|
729
|
+
id: x,
|
|
730
|
+
orientation: l,
|
|
731
|
+
layout: h,
|
|
732
|
+
keepOpen: P,
|
|
733
|
+
release: ee,
|
|
734
|
+
held: w
|
|
702
735
|
});
|
|
703
|
-
let
|
|
704
|
-
rootEl:
|
|
705
|
-
|
|
706
|
-
outerActiveLayer: L,
|
|
707
|
-
outerAxis: z,
|
|
736
|
+
let B = O(() => f.value || S.value), V = O(() => B.value ? "full" : "summary"), H = O(() => l.value), { outerCurrentLayer: W, outerLeavingLayer: te } = Re({
|
|
737
|
+
rootEl: g,
|
|
738
|
+
outerActiveLayer: V,
|
|
708
739
|
onMorphActiveChange: (e) => {
|
|
709
|
-
|
|
740
|
+
b.value = e;
|
|
710
741
|
}
|
|
711
742
|
});
|
|
712
|
-
|
|
713
|
-
rootEl:
|
|
714
|
-
contentEl:
|
|
715
|
-
|
|
716
|
-
|
|
743
|
+
Be({
|
|
744
|
+
rootEl: g,
|
|
745
|
+
contentEl: _,
|
|
746
|
+
expandedEl: v,
|
|
747
|
+
collapsedEl: y,
|
|
748
|
+
axis: H,
|
|
749
|
+
expanded: B
|
|
717
750
|
});
|
|
718
|
-
let
|
|
719
|
-
rootEl:
|
|
720
|
-
visualExpanded:
|
|
721
|
-
})
|
|
722
|
-
te(() => {
|
|
723
|
-
(n.alwaysExpanded || !a.value) && N();
|
|
724
|
-
});
|
|
725
|
-
let { onTouchStart: q, onTouchMove: ne, onTouchEnd: re, deactivate: ae } = Qe({
|
|
751
|
+
let ne = O(() => n.viewTransitionName ? { "view-transition-name": n.viewTransitionName } : void 0), { onPointerDownCapture: q, onPointerCancelCapture: ie, onClickCapture: Z, markExpandFlip: Q, pressKeepaliveLayer: ae } = He({
|
|
752
|
+
rootEl: g,
|
|
753
|
+
visualExpanded: B
|
|
754
|
+
}), { onTouchStart: oe, onTouchMove: se, onTouchEnd: ce, deactivate: le } = Ue({
|
|
726
755
|
collapseDelay: i.value,
|
|
727
|
-
rootEl:
|
|
728
|
-
|
|
729
|
-
visualExpanded:
|
|
730
|
-
expanded:
|
|
731
|
-
isPinned:
|
|
732
|
-
expand:
|
|
733
|
-
collapse:
|
|
756
|
+
rootEl: g,
|
|
757
|
+
quiet: z,
|
|
758
|
+
visualExpanded: B,
|
|
759
|
+
expanded: S,
|
|
760
|
+
isPinned: C,
|
|
761
|
+
expand: I,
|
|
762
|
+
collapse: R
|
|
734
763
|
});
|
|
735
|
-
return X(
|
|
736
|
-
e ?
|
|
764
|
+
return X(B, (e) => {
|
|
765
|
+
e ? Q() : le();
|
|
737
766
|
}), t({
|
|
738
|
-
expanded:
|
|
739
|
-
isPinned:
|
|
740
|
-
isHeld:
|
|
741
|
-
isTransitioning:
|
|
742
|
-
expand:
|
|
743
|
-
collapse:
|
|
744
|
-
keepOpen:
|
|
745
|
-
release:
|
|
746
|
-
}), (t,
|
|
767
|
+
expanded: S,
|
|
768
|
+
isPinned: C,
|
|
769
|
+
isHeld: w,
|
|
770
|
+
isTransitioning: b,
|
|
771
|
+
expand: I,
|
|
772
|
+
collapse: R,
|
|
773
|
+
keepOpen: P,
|
|
774
|
+
release: ee
|
|
775
|
+
}), (t, i) => (U(), j("div", F({
|
|
747
776
|
ref_key: "dockEl",
|
|
748
|
-
ref:
|
|
777
|
+
ref: g
|
|
749
778
|
}, t.$attrs, {
|
|
750
779
|
class: ["glass-dock", [
|
|
751
|
-
J(
|
|
752
|
-
`shape-${J(
|
|
753
|
-
`layout-${J(
|
|
754
|
-
J(
|
|
780
|
+
J(l),
|
|
781
|
+
`shape-${J(c)}`,
|
|
782
|
+
`layout-${J(h)}`,
|
|
783
|
+
J(d),
|
|
755
784
|
{
|
|
756
|
-
expanded:
|
|
757
|
-
collapsed: !
|
|
758
|
-
pinned: J(
|
|
759
|
-
"fit-content": J(
|
|
760
|
-
"always-expanded": J(
|
|
761
|
-
"dock-overflow-wrap": e.overflow === "wrap" && J(
|
|
785
|
+
expanded: B.value,
|
|
786
|
+
collapsed: !B.value,
|
|
787
|
+
pinned: J(C),
|
|
788
|
+
"fit-content": J(p),
|
|
789
|
+
"always-expanded": J(f),
|
|
790
|
+
"dock-overflow-wrap": e.overflow === "wrap" && J(l) !== "vertical"
|
|
762
791
|
},
|
|
763
792
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) inset-x-0 mx-auto w-max" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
764
793
|
]],
|
|
765
|
-
"data-
|
|
766
|
-
"data-
|
|
794
|
+
"data-material": "functional",
|
|
795
|
+
"data-size": J(u),
|
|
796
|
+
"data-backdrop-mode": n.backdropMode,
|
|
797
|
+
"data-interaction": J(o) === "manual" ? "manual" : void 0,
|
|
798
|
+
"data-held": J(w) || void 0,
|
|
767
799
|
"data-search": e.search || void 0,
|
|
768
800
|
"data-container-name": e.containerName || void 0,
|
|
769
|
-
style: [J(r),
|
|
770
|
-
onMouseenter:
|
|
771
|
-
onMouseleave:
|
|
772
|
-
onFocusin:
|
|
773
|
-
onFocusout:
|
|
774
|
-
onTouchstart:
|
|
775
|
-
onTouchmove:
|
|
776
|
-
onTouchend:
|
|
777
|
-
onPointerdownCapture:
|
|
778
|
-
|
|
779
|
-
|
|
801
|
+
style: [J(r), ne.value],
|
|
802
|
+
onMouseenter: i[1] ||= (...e) => J(T) && J(T)(...e),
|
|
803
|
+
onMouseleave: i[2] ||= (e) => J(E)(e),
|
|
804
|
+
onFocusin: i[3] ||= (...e) => J(D) && J(D)(...e),
|
|
805
|
+
onFocusout: i[4] ||= (...e) => J(k) && J(k)(...e),
|
|
806
|
+
onTouchstart: i[5] ||= (...e) => J(oe) && J(oe)(...e),
|
|
807
|
+
onTouchmove: i[6] ||= (...e) => J(se) && J(se)(...e),
|
|
808
|
+
onTouchend: i[7] ||= (...e) => J(ce) && J(ce)(...e),
|
|
809
|
+
onPointerdownCapture: i[8] ||= (...e) => J(q) && J(q)(...e),
|
|
810
|
+
onPointercancelCapture: i[9] ||= (...e) => J(ie) && J(ie)(...e),
|
|
811
|
+
onClickCapture: i[10] ||= (...e) => J(Z) && J(Z)(...e)
|
|
812
|
+
}), [i[11] ||= M("div", {
|
|
780
813
|
class: "dock-plate",
|
|
781
814
|
"aria-hidden": "true"
|
|
782
|
-
}, null, -1), M("div",
|
|
783
|
-
t.$slots.persistent ? (
|
|
815
|
+
}, null, -1), M("div", Ke, [
|
|
816
|
+
t.$slots.persistent ? (U(), j("div", qe, [K(t.$slots, "persistent")])) : A("", !0),
|
|
784
817
|
M("div", {
|
|
785
818
|
ref_key: "layersEl",
|
|
786
|
-
ref:
|
|
819
|
+
ref: _,
|
|
787
820
|
class: "dock-layers"
|
|
788
821
|
}, [
|
|
789
822
|
M("div", {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
823
|
+
ref_key: "fullEl",
|
|
824
|
+
ref: v,
|
|
825
|
+
class: L(["dock-layer dock-layer--full", {
|
|
826
|
+
"is-active": J(W) === "full",
|
|
827
|
+
"is-leaving": J(te) === "full" || J(ae) === "full" && J(W) !== "full",
|
|
828
|
+
"is-press-keepalive": J(ae) === "full"
|
|
829
|
+
}]),
|
|
830
|
+
inert: J(W) !== "full" && J(ae) !== "full" || void 0
|
|
831
|
+
}, [K(t.$slots, "default")], 10, Je),
|
|
793
832
|
M("div", {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
833
|
+
ref_key: "summaryEl",
|
|
834
|
+
ref: y,
|
|
835
|
+
class: L(["dock-layer dock-layer--summary", {
|
|
836
|
+
"is-active": J(W) === "summary",
|
|
837
|
+
"is-leaving": J(te) === "summary"
|
|
838
|
+
}]),
|
|
839
|
+
inert: J(W) !== "summary" || void 0,
|
|
840
|
+
onClick: i[0] ||= (...e) => J(N) && J(N)(...e)
|
|
841
|
+
}, [K(t.$slots, "collapsed")], 10, Ye),
|
|
842
|
+
e.search ? (U(), j("div", Xe, [K(t.$slots, "search")])) : A("", !0)
|
|
799
843
|
], 512),
|
|
800
|
-
t.$slots["persistent-end"] ? (
|
|
801
|
-
])], 16,
|
|
844
|
+
t.$slots["persistent-end"] ? (U(), j("div", Ze, [K(t.$slots, "persistent-end")])) : A("", !0)
|
|
845
|
+
])], 16, Ge));
|
|
802
846
|
}
|
|
803
|
-
}),
|
|
804
|
-
function
|
|
805
|
-
|
|
847
|
+
}), $e = o(f, "[glass-ui:dock] <DockLayer> must be used inside <DockCrossfade> (or <DockLayerGroup>)"), { KEY: et } = $e;
|
|
848
|
+
function tt(e) {
|
|
849
|
+
$e.provide(e);
|
|
806
850
|
}
|
|
807
|
-
var
|
|
808
|
-
|
|
851
|
+
var nt = $e.use;
|
|
852
|
+
$e.useOptional;
|
|
809
853
|
//#endregion
|
|
810
854
|
//#region src/components/dock/DockCrossfade.vue
|
|
811
|
-
var
|
|
855
|
+
var rt = /* @__PURE__ */ P({
|
|
812
856
|
__name: "DockCrossfade",
|
|
813
857
|
props: {
|
|
814
858
|
active: {},
|
|
815
859
|
reserve: { default: "block" }
|
|
816
860
|
},
|
|
817
861
|
setup(e, { expose: t }) {
|
|
818
|
-
let n = e, r =
|
|
862
|
+
let n = e, r = G(null), i = G(/* @__PURE__ */ new Map()), a = O(() => [...i.value.values()].map(({ id: e, label: t, icon: n }) => ({
|
|
819
863
|
id: e,
|
|
820
864
|
label: t,
|
|
821
865
|
icon: n
|
|
@@ -824,20 +868,20 @@ var ft = /* @__PURE__ */ P({
|
|
|
824
868
|
let t = new Map(i.value);
|
|
825
869
|
t.set(e.id, e), i.value = t, p();
|
|
826
870
|
}
|
|
827
|
-
function
|
|
871
|
+
function s(e) {
|
|
828
872
|
if (!i.value.has(e)) return;
|
|
829
873
|
let t = new Map(i.value);
|
|
830
874
|
t.delete(e), i.value = t, p();
|
|
831
875
|
}
|
|
832
|
-
let l = O(() => n.active), u =
|
|
833
|
-
|
|
876
|
+
let l = O(() => n.active), u = G(null);
|
|
877
|
+
tt({
|
|
834
878
|
register: o,
|
|
835
|
-
unregister:
|
|
879
|
+
unregister: s,
|
|
836
880
|
activeId: l,
|
|
837
881
|
leavingId: u,
|
|
838
882
|
faces: a
|
|
839
883
|
});
|
|
840
|
-
let d =
|
|
884
|
+
let d = G(0), f = O(() => n.reserve === "inline" ? "min-inline-size" : "min-block-size");
|
|
841
885
|
function p() {
|
|
842
886
|
let e = 0;
|
|
843
887
|
for (let { el: t } of i.value.values()) {
|
|
@@ -850,72 +894,74 @@ var ft = /* @__PURE__ */ P({
|
|
|
850
894
|
[f.value]: `${d.value}px`,
|
|
851
895
|
"--dock-crossfade-peak": `${d.value}px`
|
|
852
896
|
} : void 0);
|
|
853
|
-
|
|
854
|
-
let
|
|
855
|
-
response:
|
|
856
|
-
dampingFraction:
|
|
897
|
+
c(r, () => p());
|
|
898
|
+
let g = Le({
|
|
899
|
+
response: h.response,
|
|
900
|
+
dampingFraction: h.dampingFraction
|
|
857
901
|
});
|
|
858
|
-
function
|
|
902
|
+
function _(e) {
|
|
859
903
|
return e ? i.value.get(e)?.el : void 0;
|
|
860
904
|
}
|
|
861
905
|
function v(e, t) {
|
|
862
|
-
|
|
906
|
+
_(e)?.style.setProperty("--dock-t", `${t}`);
|
|
863
907
|
}
|
|
864
908
|
function y(e) {
|
|
865
|
-
|
|
909
|
+
_(e)?.style.removeProperty("--dock-t");
|
|
866
910
|
}
|
|
867
911
|
function b(e) {
|
|
868
912
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
869
913
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
914
|
+
let x = pe("(prefers-reduced-motion: reduce)"), S = null, C = 1;
|
|
915
|
+
X(x, (e) => {
|
|
916
|
+
e && (g.dispose(), S?.());
|
|
917
|
+
});
|
|
918
|
+
async function w(e, t) {
|
|
874
919
|
if (typeof document > "u") return;
|
|
875
|
-
let n =
|
|
876
|
-
!n || !r || !n.contains(r) || (await
|
|
920
|
+
let n = _(e), r = document.activeElement;
|
|
921
|
+
!n || !r || !n.contains(r) || (await I(), (_(t) ?? document.body).focus?.());
|
|
877
922
|
}
|
|
878
923
|
return X(l, (e, t) => {
|
|
879
924
|
if (e === t) return;
|
|
880
925
|
p();
|
|
881
|
-
let n =
|
|
926
|
+
let n = _(e), i = _(t);
|
|
882
927
|
if (!n || !i) {
|
|
883
|
-
u.value = null, y(e);
|
|
928
|
+
u.value = null, y(e), C = 1;
|
|
884
929
|
return;
|
|
885
930
|
}
|
|
886
|
-
let a = u.value;
|
|
887
|
-
a && a !== e && a !== t && y(a), u.value = t;
|
|
888
|
-
let
|
|
889
|
-
|
|
890
|
-
let s = () => {
|
|
891
|
-
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null;
|
|
931
|
+
let a = u.value, o = Number.parseFloat(n.style.getPropertyValue("--dock-t")), s = Number.parseFloat(i.style.getPropertyValue("--dock-t")), c = a === e && Number.isFinite(o) ? 1 - b(o) : 0, l = Number.isFinite(s) ? b(s) : 1;
|
|
932
|
+
a && a !== e && a !== t && y(a), u.value = t, v(e, c), v(t, 1 - l), w(t, e), r.value?.setAttribute("data-crossfading", "");
|
|
933
|
+
let d = () => {
|
|
934
|
+
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null, C = 1, S === d && (S = null);
|
|
892
935
|
};
|
|
893
|
-
if (x
|
|
894
|
-
|
|
936
|
+
if (S = d, x.value) {
|
|
937
|
+
d();
|
|
895
938
|
return;
|
|
896
939
|
}
|
|
897
|
-
|
|
940
|
+
let f = l > .001 ? -C / l : 0;
|
|
941
|
+
C = 1 - c, g.playTo(0, 1, {
|
|
942
|
+
inheritVelocityScale: f,
|
|
898
943
|
onFrame: (n) => {
|
|
899
|
-
|
|
900
|
-
v(e, r), v(t, r);
|
|
944
|
+
v(e, b(c + (1 - c) * n)), v(t, b(1 - l * (1 - n)));
|
|
901
945
|
},
|
|
902
|
-
onSettle:
|
|
946
|
+
onSettle: d
|
|
903
947
|
});
|
|
904
|
-
}),
|
|
948
|
+
}), z(() => {
|
|
949
|
+
g.dispose(), S = null;
|
|
950
|
+
}), t({ faces: a }), (e, t) => (U(), j("div", {
|
|
905
951
|
ref_key: "rootEl",
|
|
906
952
|
ref: r,
|
|
907
953
|
class: "dock-crossfade",
|
|
908
|
-
style:
|
|
954
|
+
style: R(m.value)
|
|
909
955
|
}, [K(e.$slots, "default")], 4));
|
|
910
956
|
}
|
|
911
|
-
}),
|
|
957
|
+
}), it = ["data-motion"], at = ["aria-orientation"], ot = [
|
|
912
958
|
"tabindex",
|
|
913
959
|
"title",
|
|
914
960
|
"aria-label",
|
|
915
961
|
"onClick"
|
|
916
|
-
],
|
|
962
|
+
], st = { key: 1 }, ct = { key: 2 }, lt = /* @__PURE__ */ P({
|
|
917
963
|
__name: "DockLayerGroup",
|
|
918
|
-
props:
|
|
964
|
+
props: /*@__PURE__*/ ee({
|
|
919
965
|
orientation: {},
|
|
920
966
|
showRail: {
|
|
921
967
|
type: Boolean,
|
|
@@ -929,7 +975,7 @@ var ft = /* @__PURE__ */ P({
|
|
|
929
975
|
}),
|
|
930
976
|
emits: ["update:active"],
|
|
931
977
|
setup(e) {
|
|
932
|
-
let t = e, n =
|
|
978
|
+
let t = e, n = s(() => t.motion), r = ie(e, "active"), i = p(), a = O(() => t.orientation ?? i?.orientation.value ?? "horizontal"), o = Y("crossfade"), c = O(() => o.value?.faces ?? []), l = O(() => a.value === "vertical" ? "horizontal" : "vertical"), u = O(() => l.value === "vertical"), d = G(null), f = G(null), m = G([]), h = C({
|
|
933
979
|
options: O(() => c.value.map((e) => ({ value: e.id }))),
|
|
934
980
|
model: r,
|
|
935
981
|
mode: "single",
|
|
@@ -951,8 +997,9 @@ var ft = /* @__PURE__ */ P({
|
|
|
951
997
|
};
|
|
952
998
|
});
|
|
953
999
|
}
|
|
954
|
-
let
|
|
955
|
-
|
|
1000
|
+
let y = v({
|
|
1001
|
+
handle: d,
|
|
1002
|
+
surface: f,
|
|
956
1003
|
axis: () => g.value,
|
|
957
1004
|
snapTargets: _,
|
|
958
1005
|
onSnap: (e) => {
|
|
@@ -964,41 +1011,38 @@ var ft = /* @__PURE__ */ P({
|
|
|
964
1011
|
l.value,
|
|
965
1012
|
n.armed.value
|
|
966
1013
|
], () => {
|
|
967
|
-
n.armed.value &&
|
|
968
|
-
}),
|
|
969
|
-
n.armed.value &&
|
|
1014
|
+
n.armed.value && I(() => y.refresh());
|
|
1015
|
+
}), B(() => {
|
|
1016
|
+
n.armed.value && I(() => y.refresh());
|
|
970
1017
|
});
|
|
971
|
-
function
|
|
1018
|
+
function b(e) {
|
|
972
1019
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
973
1020
|
}
|
|
974
|
-
let x =
|
|
1021
|
+
let x = G(!1);
|
|
975
1022
|
function S() {
|
|
976
1023
|
x.value || (x.value = !0, i?.keepOpen());
|
|
977
1024
|
}
|
|
978
|
-
function
|
|
1025
|
+
function w(e) {
|
|
979
1026
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
980
1027
|
t && n?.contains(t) || x.value && (x.value = !1, i?.release());
|
|
981
1028
|
}
|
|
982
|
-
return (
|
|
983
|
-
|
|
1029
|
+
return z(() => {
|
|
1030
|
+
x.value && i?.release();
|
|
1031
|
+
}), (t, i) => (U(), j("div", {
|
|
1032
|
+
class: L(["dock-layer-group", [a.value, `rail-${e.railPosition}`]]),
|
|
984
1033
|
"data-motion": J(n).dataMotion.value,
|
|
985
|
-
style:
|
|
986
|
-
}, [e.showRail && c.value.length > 1 ? (
|
|
1034
|
+
style: R(J(n).hostStyle.value)
|
|
1035
|
+
}, [e.showRail && c.value.length > 1 ? (U(), j("div", {
|
|
987
1036
|
key: 0,
|
|
988
1037
|
ref_key: "railListEl",
|
|
989
1038
|
ref: d,
|
|
990
1039
|
role: "tablist",
|
|
991
|
-
class:
|
|
992
|
-
e.railPosition,
|
|
993
|
-
J(n).armed.value && "glass-drag-grabbable",
|
|
994
|
-
J(n).armed.value && J(v).dragging.value && "glass-drag-lift"
|
|
995
|
-
]]),
|
|
1040
|
+
class: L(["dock-layer-rail", [e.railPosition, J(n).armed.value && "glass-drag-grabbable"]]),
|
|
996
1041
|
"aria-orientation": l.value,
|
|
997
|
-
style: z(J(n).armed.value ? J(v).dragStyle.value : void 0),
|
|
998
1042
|
onKeydown: i[0] ||= (...e) => J(h).onKeydown && J(h).onKeydown(...e),
|
|
999
1043
|
onFocusin: S,
|
|
1000
|
-
onFocusout:
|
|
1001
|
-
}, [(
|
|
1044
|
+
onFocusout: w
|
|
1045
|
+
}, [(U(!0), j(D, null, te(c.value, (e, t) => (U(), j("button", F({
|
|
1002
1046
|
key: e.id,
|
|
1003
1047
|
ref_for: !0,
|
|
1004
1048
|
ref: (e) => {
|
|
@@ -1011,30 +1055,29 @@ var ft = /* @__PURE__ */ P({
|
|
|
1011
1055
|
title: e.label,
|
|
1012
1056
|
"aria-label": e.label ?? e.id,
|
|
1013
1057
|
onClick: (n) => J(h).select(e.id, t)
|
|
1014
|
-
}), [
|
|
1058
|
+
}), [b(e.icon) ? (U(), k(ne(e.icon), {
|
|
1015
1059
|
key: 0,
|
|
1016
1060
|
class: "size-4"
|
|
1017
|
-
})) : typeof e.icon == "string" ? (
|
|
1061
|
+
})) : typeof e.icon == "string" ? (U(), j("span", st, q(e.icon), 1)) : (U(), j("span", ct, q((e.label ?? e.id).charAt(0)), 1))], 16, ot))), 128)), M("div", {
|
|
1018
1062
|
ref_key: "railIndicatorEl",
|
|
1019
1063
|
ref: f,
|
|
1020
|
-
class: "dock-layer-tab-indicator",
|
|
1021
|
-
style:
|
|
1064
|
+
class: L(["dock-layer-tab-indicator", J(n).armed.value && J(y).dragging.value && "glass-drag-lift"]),
|
|
1065
|
+
style: R(J(h).singleSliderStyle.value),
|
|
1022
1066
|
"aria-hidden": "true"
|
|
1023
|
-
}, null,
|
|
1067
|
+
}, null, 6)], 42, at)) : A("", !0), N(rt, {
|
|
1024
1068
|
ref_key: "crossfade",
|
|
1025
|
-
ref:
|
|
1026
|
-
active: r.value
|
|
1027
|
-
class: "dock-layer-stack"
|
|
1069
|
+
ref: o,
|
|
1070
|
+
active: r.value
|
|
1028
1071
|
}, {
|
|
1029
1072
|
default: Z(() => [K(t.$slots, "default")]),
|
|
1030
1073
|
_: 3
|
|
1031
|
-
}, 8, ["active"])], 14,
|
|
1074
|
+
}, 8, ["active"])], 14, it));
|
|
1032
1075
|
}
|
|
1033
|
-
}),
|
|
1076
|
+
}), ut = [
|
|
1034
1077
|
"inert",
|
|
1035
1078
|
"aria-hidden",
|
|
1036
1079
|
"tabindex"
|
|
1037
|
-
],
|
|
1080
|
+
], dt = { class: "dock-face-content" }, ft = /* @__PURE__ */ P({
|
|
1038
1081
|
__name: "DockLayer",
|
|
1039
1082
|
props: {
|
|
1040
1083
|
id: {},
|
|
@@ -1042,8 +1085,8 @@ var ft = /* @__PURE__ */ P({
|
|
|
1042
1085
|
icon: {}
|
|
1043
1086
|
},
|
|
1044
1087
|
setup(e) {
|
|
1045
|
-
let t = e, n =
|
|
1046
|
-
|
|
1088
|
+
let t = e, n = nt(), r = Y("hostEl");
|
|
1089
|
+
B(() => {
|
|
1047
1090
|
r.value && n.register({
|
|
1048
1091
|
id: t.id,
|
|
1049
1092
|
label: t.label,
|
|
@@ -1061,21 +1104,21 @@ var ft = /* @__PURE__ */ P({
|
|
|
1061
1104
|
icon: t.icon,
|
|
1062
1105
|
el: r.value
|
|
1063
1106
|
});
|
|
1064
|
-
}),
|
|
1107
|
+
}), z(() => n.unregister(t.id));
|
|
1065
1108
|
let i = O(() => n.activeId.value === t.id), a = O(() => n.leavingId.value === t.id);
|
|
1066
|
-
return (e, t) => (
|
|
1109
|
+
return (e, t) => (U(), j("div", {
|
|
1067
1110
|
ref_key: "hostEl",
|
|
1068
1111
|
ref: r,
|
|
1069
|
-
class:
|
|
1112
|
+
class: L(["dock-face", {
|
|
1070
1113
|
"is-active": i.value,
|
|
1071
1114
|
"is-leaving": a.value
|
|
1072
1115
|
}]),
|
|
1073
|
-
inert: i.value
|
|
1074
|
-
"aria-hidden": i.value
|
|
1116
|
+
inert: !i.value || void 0,
|
|
1117
|
+
"aria-hidden": !i.value || void 0,
|
|
1075
1118
|
tabindex: i.value ? -1 : void 0
|
|
1076
|
-
}, [M("div",
|
|
1119
|
+
}, [M("div", dt, [K(e.$slots, "default")])], 10, ut));
|
|
1077
1120
|
}
|
|
1078
|
-
}),
|
|
1121
|
+
}), pt = /* @__PURE__ */ P({
|
|
1079
1122
|
__name: "DockControl",
|
|
1080
1123
|
props: {
|
|
1081
1124
|
shape: { default: "icon" },
|
|
@@ -1106,16 +1149,17 @@ var ft = /* @__PURE__ */ P({
|
|
|
1106
1149
|
] }
|
|
1107
1150
|
},
|
|
1108
1151
|
setup(t) {
|
|
1109
|
-
let
|
|
1110
|
-
...
|
|
1152
|
+
let r = t, o = O(() => r.shape === "tab"), s = O(() => o.value ? e("dock-tab-button glass-specular-track", r.class) : e("dock-icon-button glass-specular-track glass-capsule-hover", { "glass-capsule": r.active }, { "dock-icon-button--compact": r.compact }, r.class)), c = O(() => ({
|
|
1153
|
+
...r.active ? {
|
|
1111
1154
|
"aria-pressed": "true",
|
|
1112
1155
|
"data-active": ""
|
|
1113
1156
|
} : {},
|
|
1114
|
-
...
|
|
1115
|
-
...
|
|
1157
|
+
...r.disabled ? {
|
|
1158
|
+
...r.as === "button" && !r.asChild ? { disabled: !0 } : {},
|
|
1116
1159
|
"aria-disabled": "true"
|
|
1117
1160
|
} : {}
|
|
1118
|
-
})), l = O(() => !
|
|
1161
|
+
})), l = O(() => !r.asChild && r.as === "button" ? { type: r.type } : {}), u = i("press"), d = a({
|
|
1162
|
+
disabled: () => r.disabled || o.value,
|
|
1119
1163
|
squish: !0,
|
|
1120
1164
|
response: u.response,
|
|
1121
1165
|
dampingFraction: u.dampingFraction,
|
|
@@ -1123,7 +1167,10 @@ var ft = /* @__PURE__ */ P({
|
|
|
1123
1167
|
shrinkDepth: .04,
|
|
1124
1168
|
maxStretch: 1.03
|
|
1125
1169
|
}), f = O(() => o.value ? {} : { ...d.pressStyle.value });
|
|
1126
|
-
|
|
1170
|
+
function p(e) {
|
|
1171
|
+
r.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1172
|
+
}
|
|
1173
|
+
return (e, r) => Q((U(), k(J(oe), F({
|
|
1127
1174
|
as: t.as,
|
|
1128
1175
|
"as-child": t.asChild
|
|
1129
1176
|
}, {
|
|
@@ -1132,10 +1179,16 @@ var ft = /* @__PURE__ */ P({
|
|
|
1132
1179
|
}, {
|
|
1133
1180
|
class: s.value,
|
|
1134
1181
|
style: f.value,
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1182
|
+
"data-press-armed": !o.value && J(d).armed ? "" : void 0,
|
|
1183
|
+
onPointerdown: J(d).handlers.onPointerdown,
|
|
1184
|
+
onPointerup: J(d).handlers.onPointerup,
|
|
1185
|
+
onPointercancel: J(d).handlers.onPointercancel,
|
|
1186
|
+
onPointerleave: J(d).handlers.onPointerleave,
|
|
1187
|
+
onPointerenter: J(d).handlers.onPointerenter,
|
|
1188
|
+
onKeydown: J(d).handlers.onKeydown,
|
|
1189
|
+
onKeyup: J(d).handlers.onKeyup,
|
|
1190
|
+
onBlur: J(d).handlers.onBlur,
|
|
1191
|
+
onClickCapture: p
|
|
1139
1192
|
}), {
|
|
1140
1193
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1141
1194
|
_: 3
|
|
@@ -1143,10 +1196,19 @@ var ft = /* @__PURE__ */ P({
|
|
|
1143
1196
|
"as",
|
|
1144
1197
|
"as-child",
|
|
1145
1198
|
"class",
|
|
1146
|
-
"style"
|
|
1147
|
-
|
|
1199
|
+
"style",
|
|
1200
|
+
"data-press-armed",
|
|
1201
|
+
"onPointerdown",
|
|
1202
|
+
"onPointerup",
|
|
1203
|
+
"onPointercancel",
|
|
1204
|
+
"onPointerleave",
|
|
1205
|
+
"onPointerenter",
|
|
1206
|
+
"onKeydown",
|
|
1207
|
+
"onKeyup",
|
|
1208
|
+
"onBlur"
|
|
1209
|
+
])), [[J(n)]]);
|
|
1148
1210
|
}
|
|
1149
|
-
}),
|
|
1211
|
+
}), mt = /* @__PURE__ */ P({
|
|
1150
1212
|
inheritAttrs: !1,
|
|
1151
1213
|
__name: "DockTrigger",
|
|
1152
1214
|
props: {
|
|
@@ -1160,22 +1222,28 @@ var ft = /* @__PURE__ */ P({
|
|
|
1160
1222
|
] }
|
|
1161
1223
|
},
|
|
1162
1224
|
setup(t) {
|
|
1163
|
-
let
|
|
1164
|
-
return (e, t) =>
|
|
1165
|
-
default: Z(() => [K(e.$slots, "default"), N(J(
|
|
1166
|
-
default: Z(() => [K(e.$slots, "icon", {}, () => [N(J(
|
|
1225
|
+
let r = t, i = O(() => e("dock-trigger", r.for === "select" && "dock-select-trigger", r.for !== "select" && "dock-dropdown-trigger", r.class));
|
|
1226
|
+
return (e, t) => r.for === "select" ? Q((U(), k(J(ce), F({ key: 0 }, e.$attrs, { class: i.value }), {
|
|
1227
|
+
default: Z(() => [K(e.$slots, "default"), N(J(se), { "as-child": "" }, {
|
|
1228
|
+
default: Z(() => [K(e.$slots, "icon", {}, () => [N(J(le), {
|
|
1229
|
+
class: "dock-select-trigger__chevron",
|
|
1230
|
+
"aria-hidden": "true"
|
|
1231
|
+
})])]),
|
|
1167
1232
|
_: 3
|
|
1168
1233
|
})]),
|
|
1169
1234
|
_: 3
|
|
1170
|
-
}, 16, ["class"])), [[J(
|
|
1235
|
+
}, 16, ["class"])), [[J(n)]]) : r.for === "dropdown" ? Q((U(), k(d, F({ key: 1 }, e.$attrs, {
|
|
1236
|
+
action: "pointerdown",
|
|
1237
|
+
class: i.value
|
|
1238
|
+
}), {
|
|
1171
1239
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1172
1240
|
_: 3
|
|
1173
|
-
}, 16, ["class"])), [[J(
|
|
1241
|
+
}, 16, ["class"])), [[J(n)]]) : Q((U(), k(J(ae), F({ key: 2 }, e.$attrs, { class: i.value }), {
|
|
1174
1242
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1175
1243
|
_: 3
|
|
1176
|
-
}, 16, ["class"])), [[J(
|
|
1244
|
+
}, 16, ["class"])), [[J(n)]]);
|
|
1177
1245
|
}
|
|
1178
|
-
}),
|
|
1246
|
+
}), ht = /* @__PURE__ */ P({
|
|
1179
1247
|
__name: "DockBackgroundToggle",
|
|
1180
1248
|
props: {
|
|
1181
1249
|
paused: {
|
|
@@ -1191,34 +1259,36 @@ var ft = /* @__PURE__ */ P({
|
|
|
1191
1259
|
function a() {
|
|
1192
1260
|
r("update:paused", !n.paused);
|
|
1193
1261
|
}
|
|
1194
|
-
return (t, n) => (
|
|
1262
|
+
return (t, n) => (U(), k(pt, {
|
|
1195
1263
|
type: "button",
|
|
1264
|
+
active: e.paused,
|
|
1196
1265
|
"aria-pressed": e.paused,
|
|
1197
1266
|
"aria-label": i.value,
|
|
1198
1267
|
title: i.value,
|
|
1199
1268
|
onClick: a
|
|
1200
1269
|
}, {
|
|
1201
|
-
default: Z(() => [e.paused ? (
|
|
1270
|
+
default: Z(() => [e.paused ? (U(), k(J(de), {
|
|
1202
1271
|
key: 0,
|
|
1203
1272
|
size: 18,
|
|
1204
1273
|
"aria-hidden": "true"
|
|
1205
|
-
})) : (
|
|
1274
|
+
})) : (U(), k(J(ue), {
|
|
1206
1275
|
key: 1,
|
|
1207
1276
|
size: 18,
|
|
1208
1277
|
"aria-hidden": "true"
|
|
1209
1278
|
}))]),
|
|
1210
1279
|
_: 1
|
|
1211
1280
|
}, 8, [
|
|
1281
|
+
"active",
|
|
1212
1282
|
"aria-pressed",
|
|
1213
1283
|
"aria-label",
|
|
1214
1284
|
"title"
|
|
1215
1285
|
]));
|
|
1216
1286
|
}
|
|
1217
|
-
}),
|
|
1287
|
+
}), gt = [
|
|
1218
1288
|
"data-orientation",
|
|
1219
1289
|
"data-rail-anchor",
|
|
1220
1290
|
"aria-orientation"
|
|
1221
|
-
],
|
|
1291
|
+
], _t = /* @__PURE__ */ P({
|
|
1222
1292
|
__name: "DockSeparator",
|
|
1223
1293
|
props: { anchor: {
|
|
1224
1294
|
type: Boolean,
|
|
@@ -1226,301 +1296,19 @@ var ft = /* @__PURE__ */ P({
|
|
|
1226
1296
|
} },
|
|
1227
1297
|
setup(e) {
|
|
1228
1298
|
let t = p(), n = O(() => t?.orientation.value ?? "horizontal"), r = O(() => n.value), i = O(() => n.value === "vertical" ? "horizontal" : "vertical");
|
|
1229
|
-
return (t, n) => (
|
|
1230
|
-
class:
|
|
1299
|
+
return (t, n) => (U(), j("div", {
|
|
1300
|
+
class: L(["dock-separator", { "dock-separator--anchor": e.anchor }]),
|
|
1231
1301
|
role: "separator",
|
|
1232
1302
|
"data-orientation": r.value,
|
|
1233
1303
|
"data-rail-anchor": e.anchor || void 0,
|
|
1234
1304
|
"aria-orientation": i.value
|
|
1235
|
-
}, null, 10,
|
|
1236
|
-
}
|
|
1237
|
-
});
|
|
1238
|
-
//#endregion
|
|
1239
|
-
//#region src/components/dock/composables/useDockPopover.ts
|
|
1240
|
-
function Dt(e) {
|
|
1241
|
-
let t = W(!1), n = e.gap ?? 8, r = e.viewportMargin ?? 8, i = e.hoverIntentMs ?? 60, a = e.hoverGraceMs ?? 120, o = null, s = null, c = !1;
|
|
1242
|
-
function l() {
|
|
1243
|
-
o != null && (clearTimeout(o), o = null);
|
|
1244
|
-
}
|
|
1245
|
-
function u() {
|
|
1246
|
-
s != null && (clearTimeout(s), s = null);
|
|
1247
|
-
}
|
|
1248
|
-
function d() {
|
|
1249
|
-
let t = e.anchor(), i = e.popover.value;
|
|
1250
|
-
if (!t || !i) return;
|
|
1251
|
-
let a = t.getBoundingClientRect(), o = i.offsetWidth, s = i.offsetHeight, c = re(e.side) ?? "top", l = re(e.align) ?? "center", u = (e, t, n) => l === "start" ? e : l === "end" ? e + t - n : e + t / 2 - n / 2, d = 0, f = 0;
|
|
1252
|
-
switch (c) {
|
|
1253
|
-
case "bottom":
|
|
1254
|
-
d = a.bottom + n, f = u(a.left, a.width, o);
|
|
1255
|
-
break;
|
|
1256
|
-
case "left":
|
|
1257
|
-
f = a.left - o - n, d = u(a.top, a.height, s);
|
|
1258
|
-
break;
|
|
1259
|
-
case "right":
|
|
1260
|
-
f = a.right + n, d = u(a.top, a.height, s);
|
|
1261
|
-
break;
|
|
1262
|
-
default:
|
|
1263
|
-
d = a.top - s - n, f = u(a.left, a.width, o);
|
|
1264
|
-
break;
|
|
1265
|
-
}
|
|
1266
|
-
let p = Math.max(r, window.innerWidth - o - r), m = Math.max(r, window.innerHeight - s - r);
|
|
1267
|
-
f = Math.min(Math.max(f, r), p), d = Math.min(Math.max(d, r), m), i.style.position = "fixed", i.style.margin = "0", i.style.inset = "auto", i.style.top = `${Math.round(d)}px`, i.style.left = `${Math.round(f)}px`;
|
|
1268
|
-
}
|
|
1269
|
-
function f() {
|
|
1270
|
-
d();
|
|
1271
|
-
}
|
|
1272
|
-
function p(t) {
|
|
1273
|
-
let n = t.target, r = e.popover.value, i = e.anchor();
|
|
1274
|
-
n && (r && r.contains(n) || i && i.contains(n)) || _();
|
|
1275
|
-
}
|
|
1276
|
-
function m() {
|
|
1277
|
-
c || (c = !0, window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), document.addEventListener("pointerdown", p, !0));
|
|
1278
|
-
}
|
|
1279
|
-
function h() {
|
|
1280
|
-
c && (c = !1, window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0), document.removeEventListener("pointerdown", p, !0));
|
|
1281
|
-
}
|
|
1282
|
-
function g() {
|
|
1283
|
-
l(), u();
|
|
1284
|
-
let n = e.popover.value;
|
|
1285
|
-
if (!(!n || t.value)) {
|
|
1286
|
-
try {
|
|
1287
|
-
n.showPopover();
|
|
1288
|
-
} catch {}
|
|
1289
|
-
t.value = !0, d(), m();
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
function _() {
|
|
1293
|
-
l(), u();
|
|
1294
|
-
let n = e.popover.value;
|
|
1295
|
-
if (!n || !t.value) return;
|
|
1296
|
-
let r = n.contains(document.activeElement);
|
|
1297
|
-
try {
|
|
1298
|
-
n.hidePopover();
|
|
1299
|
-
} catch {}
|
|
1300
|
-
t.value = !1, h(), r && e.anchor()?.focus();
|
|
1301
|
-
}
|
|
1302
|
-
function v() {
|
|
1303
|
-
t.value ? _() : g();
|
|
1304
|
-
}
|
|
1305
|
-
function y() {
|
|
1306
|
-
u(), !t.value && (l(), o = setTimeout(() => {
|
|
1307
|
-
o = null, g();
|
|
1308
|
-
}, i));
|
|
1309
|
-
}
|
|
1310
|
-
function b() {
|
|
1311
|
-
l(), T();
|
|
1312
|
-
}
|
|
1313
|
-
function x() {
|
|
1314
|
-
l(), u();
|
|
1315
|
-
}
|
|
1316
|
-
function S() {
|
|
1317
|
-
T();
|
|
1318
|
-
}
|
|
1319
|
-
function C() {
|
|
1320
|
-
l(), u(), g();
|
|
1321
|
-
}
|
|
1322
|
-
function w(t) {
|
|
1323
|
-
let n = t.relatedTarget, r = e.popover.value, i = e.anchor();
|
|
1324
|
-
n && (r && r.contains(n) || i && i.contains(n)) || _();
|
|
1325
|
-
}
|
|
1326
|
-
function T() {
|
|
1327
|
-
u(), s = setTimeout(() => {
|
|
1328
|
-
s = null, _();
|
|
1329
|
-
}, a);
|
|
1330
|
-
}
|
|
1331
|
-
return B(() => {
|
|
1332
|
-
l(), u(), h();
|
|
1333
|
-
let n = e.popover.value;
|
|
1334
|
-
if (n && t.value) try {
|
|
1335
|
-
n.hidePopover();
|
|
1336
|
-
} catch {}
|
|
1337
|
-
}), {
|
|
1338
|
-
open: t,
|
|
1339
|
-
show: g,
|
|
1340
|
-
hide: _,
|
|
1341
|
-
toggle: v,
|
|
1342
|
-
place: d,
|
|
1343
|
-
onAnchorEnter: y,
|
|
1344
|
-
onAnchorLeave: b,
|
|
1345
|
-
onPopoverEnter: x,
|
|
1346
|
-
onPopoverLeave: S,
|
|
1347
|
-
onFocusIn: C,
|
|
1348
|
-
onFocusOut: w
|
|
1349
|
-
};
|
|
1350
|
-
}
|
|
1351
|
-
//#endregion
|
|
1352
|
-
//#region src/components/dock/DockStack.vue?vue&type=script&setup=true&lang.ts
|
|
1353
|
-
var Ot = ["data-orientation", "data-mode"], kt = ["data-scrolls", "data-wrap"], At = /* @__PURE__ */ P({
|
|
1354
|
-
__name: "DockStack",
|
|
1355
|
-
props: /* @__PURE__ */ F({
|
|
1356
|
-
items: {},
|
|
1357
|
-
mode: { default: "stack" },
|
|
1358
|
-
core: {},
|
|
1359
|
-
coreLabel: { default: "Open stack" },
|
|
1360
|
-
visibleCount: { default: 3 },
|
|
1361
|
-
wrap: {
|
|
1362
|
-
type: Boolean,
|
|
1363
|
-
default: !1
|
|
1364
|
-
},
|
|
1365
|
-
position: { default: "end" }
|
|
1366
|
-
}, {
|
|
1367
|
-
selected: {},
|
|
1368
|
-
selectedModifiers: {}
|
|
1369
|
-
}),
|
|
1370
|
-
emits: /* @__PURE__ */ F(["select"], ["update:selected"]),
|
|
1371
|
-
setup(e, { emit: t }) {
|
|
1372
|
-
let n = e, r = t, i = ae(e, "selected"), a = p(), o = O(() => a?.orientation.value ?? "vertical"), s = O(() => n.core ?? pe), c = O(() => [...n.items]), l = O(() => n.mode === "facets"), u = O(() => c.value.length > n.visibleCount), d = `dock-stack-fan-${ie()}`, f = Y("stackRoot"), m = Y("fanEl"), h = Dt({
|
|
1373
|
-
anchor: () => f.value?.querySelector(".dock-stack-core") ?? null,
|
|
1374
|
-
popover: m,
|
|
1375
|
-
side: () => o.value === "vertical" ? "right" : "top",
|
|
1376
|
-
align: O(() => n.position === "start" ? "start" : "end")
|
|
1377
|
-
});
|
|
1378
|
-
function g(e) {
|
|
1379
|
-
i.value = e.id, e.onSelect?.(), r("select", e.id), h.hide();
|
|
1380
|
-
}
|
|
1381
|
-
return (t, n) => (H(), j("div", {
|
|
1382
|
-
ref_key: "stackRoot",
|
|
1383
|
-
ref: f,
|
|
1384
|
-
class: R(["dock-stack", [
|
|
1385
|
-
o.value,
|
|
1386
|
-
`mode-${e.mode}`,
|
|
1387
|
-
`at-${e.position}`
|
|
1388
|
-
]]),
|
|
1389
|
-
"data-orientation": o.value,
|
|
1390
|
-
"data-mode": e.mode,
|
|
1391
|
-
onFocusin: n[3] ||= (...e) => J(h).onFocusIn && J(h).onFocusIn(...e),
|
|
1392
|
-
onFocusout: n[4] ||= (e) => J(h).onFocusOut(e)
|
|
1393
|
-
}, [N(St, {
|
|
1394
|
-
type: "button",
|
|
1395
|
-
class: "dock-stack-core",
|
|
1396
|
-
"aria-label": e.coreLabel,
|
|
1397
|
-
"aria-expanded": J(h).open.value,
|
|
1398
|
-
"aria-controls": d,
|
|
1399
|
-
title: e.coreLabel,
|
|
1400
|
-
onPointerenter: J(h).onAnchorEnter,
|
|
1401
|
-
onPointerleave: J(h).onAnchorLeave,
|
|
1402
|
-
onClick: J(h).toggle
|
|
1403
|
-
}, {
|
|
1404
|
-
default: Z(() => [(H(), k(q(s.value), {
|
|
1405
|
-
class: "size-4",
|
|
1406
|
-
"aria-hidden": "true"
|
|
1407
|
-
}))]),
|
|
1408
|
-
_: 1
|
|
1409
|
-
}, 8, [
|
|
1410
|
-
"aria-label",
|
|
1411
|
-
"aria-expanded",
|
|
1412
|
-
"title",
|
|
1413
|
-
"onPointerenter",
|
|
1414
|
-
"onPointerleave",
|
|
1415
|
-
"onClick"
|
|
1416
|
-
]), M("div", {
|
|
1417
|
-
id: d,
|
|
1418
|
-
ref_key: "fanEl",
|
|
1419
|
-
ref: m,
|
|
1420
|
-
popover: "manual",
|
|
1421
|
-
class: R(["dock-stack-fan", [
|
|
1422
|
-
o.value,
|
|
1423
|
-
`mode-${e.mode}`,
|
|
1424
|
-
{ "mode-facets": l.value }
|
|
1425
|
-
]]),
|
|
1426
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1427
|
-
"data-wrap": e.wrap || void 0,
|
|
1428
|
-
onPointerenter: n[0] ||= (...e) => J(h).onPopoverEnter && J(h).onPopoverEnter(...e),
|
|
1429
|
-
onPointerleave: n[1] ||= (...e) => J(h).onPopoverLeave && J(h).onPopoverLeave(...e),
|
|
1430
|
-
onKeydown: n[2] ||= oe((...e) => J(h).hide && J(h).hide(...e), ["escape"])
|
|
1431
|
-
}, [N(y, {
|
|
1432
|
-
axis: o.value === "vertical" ? "x" : "y",
|
|
1433
|
-
class: "dock-stack-fan-scroll",
|
|
1434
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1435
|
-
"data-wrap": e.wrap || void 0
|
|
1436
|
-
}, {
|
|
1437
|
-
default: Z(() => [(H(!0), j(D, null, G(c.value, (e, t) => (H(), k(St, {
|
|
1438
|
-
key: e.id,
|
|
1439
|
-
type: "button",
|
|
1440
|
-
class: R(["dock-stack-member", {
|
|
1441
|
-
"is-active": i.value === e.id,
|
|
1442
|
-
"dock-facet-chip": l.value
|
|
1443
|
-
}]),
|
|
1444
|
-
style: z({
|
|
1445
|
-
"--i": t,
|
|
1446
|
-
...l.value && e.accent ? {
|
|
1447
|
-
"--glass-accent": e.accent,
|
|
1448
|
-
"--glass-accent-strength": "var(--dock-facet-accent-strength)"
|
|
1449
|
-
} : {}
|
|
1450
|
-
}),
|
|
1451
|
-
"aria-label": e.label,
|
|
1452
|
-
"aria-pressed": i.value === e.id,
|
|
1453
|
-
title: e.label,
|
|
1454
|
-
onClick: (t) => g(e)
|
|
1455
|
-
}, {
|
|
1456
|
-
default: Z(() => [(H(), k(q(e.icon ?? s.value), {
|
|
1457
|
-
class: "size-4",
|
|
1458
|
-
"aria-hidden": "true"
|
|
1459
|
-
}))]),
|
|
1460
|
-
_: 2
|
|
1461
|
-
}, 1032, [
|
|
1462
|
-
"class",
|
|
1463
|
-
"style",
|
|
1464
|
-
"aria-label",
|
|
1465
|
-
"aria-pressed",
|
|
1466
|
-
"title",
|
|
1467
|
-
"onClick"
|
|
1468
|
-
]))), 128))]),
|
|
1469
|
-
_: 1
|
|
1470
|
-
}, 8, [
|
|
1471
|
-
"axis",
|
|
1472
|
-
"data-scrolls",
|
|
1473
|
-
"data-wrap"
|
|
1474
|
-
])], 42, kt)], 42, Ot));
|
|
1475
|
-
}
|
|
1476
|
-
}), jt = ["aria-label"], Mt = [
|
|
1477
|
-
"data-kind",
|
|
1478
|
-
"data-section-id",
|
|
1479
|
-
"aria-label"
|
|
1480
|
-
], Nt = /* @__PURE__ */ P({
|
|
1481
|
-
__name: "DockSection",
|
|
1482
|
-
props: {
|
|
1483
|
-
sections: {},
|
|
1484
|
-
anchorId: {},
|
|
1485
|
-
ariaLabel: { default: "Dock sections" }
|
|
1486
|
-
},
|
|
1487
|
-
setup(e) {
|
|
1488
|
-
let t = e, n = O(() => {
|
|
1489
|
-
if (t.anchorId) return t.anchorId;
|
|
1490
|
-
let e = t.sections.find((e) => e.kind === "nav");
|
|
1491
|
-
return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
|
|
1492
|
-
});
|
|
1493
|
-
function r(e) {
|
|
1494
|
-
return e > 0;
|
|
1495
|
-
}
|
|
1496
|
-
function i(e) {
|
|
1497
|
-
return e.id === n.value;
|
|
1498
|
-
}
|
|
1499
|
-
function a(e) {
|
|
1500
|
-
return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
|
|
1501
|
-
}
|
|
1502
|
-
return (t, n) => (H(), j("div", {
|
|
1503
|
-
class: "dock-section",
|
|
1504
|
-
role: "group",
|
|
1505
|
-
"aria-label": e.ariaLabel
|
|
1506
|
-
}, [(H(!0), j(D, null, G(e.sections, (e, n) => (H(), j(D, { key: e.id }, [r(n) ? (H(), k(Et, {
|
|
1507
|
-
key: 0,
|
|
1508
|
-
anchor: i(e)
|
|
1509
|
-
}, null, 8, ["anchor"])) : A("", !0), M("div", {
|
|
1510
|
-
class: R(["dock-section-zone", a(e.kind)]),
|
|
1511
|
-
"data-kind": e.kind,
|
|
1512
|
-
"data-section-id": e.id,
|
|
1513
|
-
"aria-label": e.label || void 0
|
|
1514
|
-
}, [K(t.$slots, e.id, {
|
|
1515
|
-
section: e,
|
|
1516
|
-
kind: e.kind
|
|
1517
|
-
})], 10, Mt)], 64))), 128))], 8, jt));
|
|
1305
|
+
}, null, 10, gt));
|
|
1518
1306
|
}
|
|
1519
1307
|
});
|
|
1520
1308
|
//#endregion
|
|
1521
1309
|
//#region src/components/dock/composables/useDockSearch.ts
|
|
1522
|
-
function
|
|
1523
|
-
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i =
|
|
1310
|
+
function vt(e) {
|
|
1311
|
+
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = G([]), a = null, o = e.items ? e.items : () => i.value;
|
|
1524
1312
|
function s(t) {
|
|
1525
1313
|
let n = t.item.id;
|
|
1526
1314
|
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
@@ -1558,19 +1346,19 @@ function Pt(e) {
|
|
|
1558
1346
|
let e = l.value;
|
|
1559
1347
|
e && (c.query.value = c.query.value + e);
|
|
1560
1348
|
}
|
|
1561
|
-
let d =
|
|
1349
|
+
let d = G(!1);
|
|
1562
1350
|
function f() {
|
|
1563
|
-
d.value || (d.value = !0, t.
|
|
1351
|
+
d.value || (d.value = !0, t.expand(), t.keepOpen(), c.open());
|
|
1564
1352
|
}
|
|
1565
1353
|
function p() {
|
|
1566
1354
|
d.value && (d.value = !1, c.close(), t.release());
|
|
1567
1355
|
}
|
|
1568
1356
|
let m = null;
|
|
1569
|
-
return e.collapseOnScroll && e.scrollContainer && (m =
|
|
1357
|
+
return e.collapseOnScroll && e.scrollContainer && (m = S(e.scrollContainer, {
|
|
1570
1358
|
collapseOnScroll: !0,
|
|
1571
1359
|
chromeRef: e.chromeRef
|
|
1572
|
-
})),
|
|
1573
|
-
a?.abort(), a = null;
|
|
1360
|
+
})), V(() => {
|
|
1361
|
+
d.value && t.release(), a?.abort(), a = null;
|
|
1574
1362
|
}), {
|
|
1575
1363
|
fuzzy: c,
|
|
1576
1364
|
autocompleteText: l,
|
|
@@ -1582,76 +1370,4 @@ function Pt(e) {
|
|
|
1582
1370
|
};
|
|
1583
1371
|
}
|
|
1584
1372
|
//#endregion
|
|
1585
|
-
|
|
1586
|
-
var Ft = {
|
|
1587
|
-
class: "goo-filter-host",
|
|
1588
|
-
"aria-hidden": "true",
|
|
1589
|
-
focusable: "false",
|
|
1590
|
-
width: "1",
|
|
1591
|
-
height: "1"
|
|
1592
|
-
}, It = ["id"], Lt = ["stdDeviation"], Rt = ["values"], zt = /* @__PURE__ */ o(/* @__PURE__ */ P({
|
|
1593
|
-
__name: "GooFilter",
|
|
1594
|
-
props: { extra: { default: () => [] } },
|
|
1595
|
-
setup(e) {
|
|
1596
|
-
let t = [
|
|
1597
|
-
{
|
|
1598
|
-
id: "glass-goo",
|
|
1599
|
-
blur: 10,
|
|
1600
|
-
slope: 15,
|
|
1601
|
-
offset: -7
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
id: "dock-fission-goo",
|
|
1605
|
-
blur: 7,
|
|
1606
|
-
slope: 20,
|
|
1607
|
-
offset: -9
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
id: "pager-worm-goo",
|
|
1611
|
-
blur: 4,
|
|
1612
|
-
slope: 18,
|
|
1613
|
-
offset: -6
|
|
1614
|
-
},
|
|
1615
|
-
{
|
|
1616
|
-
id: "dock-morph-goo",
|
|
1617
|
-
blur: 16,
|
|
1618
|
-
slope: 14,
|
|
1619
|
-
offset: -7
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
id: "morph-goo",
|
|
1623
|
-
blur: 10,
|
|
1624
|
-
slope: 18,
|
|
1625
|
-
offset: -7
|
|
1626
|
-
}
|
|
1627
|
-
], n = e, r = [...t, ...n.extra];
|
|
1628
|
-
return (e, t) => (H(), j("svg", Ft, [M("defs", null, [(H(), j(D, null, G(r, (e) => M("filter", {
|
|
1629
|
-
key: e.id,
|
|
1630
|
-
id: e.id,
|
|
1631
|
-
"color-interpolation-filters": "sRGB",
|
|
1632
|
-
x: "-50%",
|
|
1633
|
-
y: "-50%",
|
|
1634
|
-
width: "200%",
|
|
1635
|
-
height: "200%"
|
|
1636
|
-
}, [
|
|
1637
|
-
M("feGaussianBlur", {
|
|
1638
|
-
in: "SourceGraphic",
|
|
1639
|
-
stdDeviation: e.blur,
|
|
1640
|
-
result: "blur"
|
|
1641
|
-
}, null, 8, Lt),
|
|
1642
|
-
M("feColorMatrix", {
|
|
1643
|
-
in: "blur",
|
|
1644
|
-
mode: "matrix",
|
|
1645
|
-
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${e.slope} ${e.offset}`,
|
|
1646
|
-
result: "goo"
|
|
1647
|
-
}, null, 8, Rt),
|
|
1648
|
-
t[0] ||= M("feComposite", {
|
|
1649
|
-
in: "SourceGraphic",
|
|
1650
|
-
in2: "goo",
|
|
1651
|
-
operator: "atop"
|
|
1652
|
-
}, null, -1)
|
|
1653
|
-
], 8, It)), 64))])]));
|
|
1654
|
-
}
|
|
1655
|
-
}), [["__scopeId", "data-v-f8d28853"]]);
|
|
1656
|
-
//#endregion
|
|
1657
|
-
export { v as DOCK_CONTEXT_KEY, wt as DockBackgroundToggle, St as DockControl, ft as DockCrossfade, xt as DockLayer, vt as DockLayerGroup, Nt as DockSection, Et as DockSeparator, At as DockStack, Ct as DockTrigger, st as GlassDock, zt as GooFilter, m as provideDockContext, g as useDockContext, x as useDockCtaReceive, Pt as useDockSearch, p as useOptionalDockContext };
|
|
1373
|
+
export { _ as DOCK_CONTEXT_KEY, ht as DockBackgroundToggle, pt as DockControl, rt as DockCrossfade, ft as DockLayer, lt as DockLayerGroup, _t as DockSeparator, mt as DockTrigger, Qe as GlassDock, m as provideDockContext, g as useDockContext, y as useDockCtaReceive, vt as useDockSearch, p as useOptionalDockContext };
|