@mkbabb/glass-ui 6.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 +36 -34
- package/dist/DropdownMenuTrigger-ClIq8RJE.js +93 -0
- package/dist/FeedbackMark-DZq5001h.js +23 -0
- package/dist/Input-9BlLluik.js +77 -0
- package/dist/{PagerDots-BoTQ7g5l.js → PagerDots-BEq0MgtH.js} +85 -81
- 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 +831 -776
- package/dist/axes.js +25 -14
- package/dist/badge-u65NClWn.js +62 -0
- package/dist/badge.js +1 -1
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +442 -395
- 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.js +109 -169
- package/dist/chip-DFZQr6rV.js +129 -0
- 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 +46 -50
- package/dist/{procedural-color.wgsl-B9mLK7v0.js → color.wgsl-Ct5o9dpf.js} +155 -121
- package/dist/command-SFqDQ65h.js +320 -0
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +54 -54
- 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 -1
- 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 -1
- 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 +3 -2
- 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 +2 -3
- package/dist/components/aurora/Aurora.vue.d.ts +37 -42
- 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 +56 -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 +19 -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 -8
- 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 +5 -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 +27 -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 +26 -20
- 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 -1
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/styles.css +1 -1
- package/dist/components/carousel/index.d.ts +0 -2
- package/dist/components/carousel/interface.d.ts +2 -0
- 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 -1
- 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 +4 -9
- 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/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 -1
- package/dist/components/constellation/Constellation.vue.d.ts +1 -1
- package/dist/components/constellation/composables/createConstellationField.d.ts +2 -2
- package/dist/components/constellation/constants.d.ts +8 -8
- package/dist/components/constellation/constellationField.d.ts +5 -6
- package/dist/components/constellation/constellationInteraction.d.ts +8 -8
- package/dist/components/constellation/constellationTypes.d.ts +53 -54
- package/dist/components/constellation/constellationWell.d.ts +2 -2
- 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 +11 -59
- package/dist/components/data-table/composables/useDataTableRowIdentity.d.ts +5 -23
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/styles.css +1 -0
- package/dist/components/data-table/types.d.ts +10 -12
- package/dist/components/deck/index.d.ts +0 -1
- 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 +27 -90
- 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/{_shared → dialog}/ModalOverlay.vue.d.ts +18 -16
- package/dist/components/dialog/dialogStageContext.d.ts +7 -0
- package/dist/components/dialog/index.d.ts +8 -8
- package/dist/components/dialog/placement.css +1 -1
- package/dist/components/dialog/sheet-motion.d.ts +17 -0
- package/dist/components/dock/DockControl.vue.d.ts +9 -12
- 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/composables/dockContext.d.ts +4 -14
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +6 -7
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +7 -86
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +1 -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 +4 -6
- package/dist/components/dock/composables/useDockSearch.d.ts +8 -8
- package/dist/components/dock/composables/useDockShellProps.d.ts +46 -43
- package/dist/components/dock/composables/useDockSpring.d.ts +7 -11
- package/dist/components/dock/composables/useDockState.d.ts +12 -3
- package/dist/components/dock/composables/useDockTouchGate.d.ts +14 -23
- package/dist/components/dock/constants.d.ts +5 -78
- package/dist/components/dock/index.d.ts +2 -7
- package/dist/components/dock/styles/controls.css +1 -1
- package/dist/components/dock/styles/crossfade.css +1 -1
- package/dist/components/dock/styles/density.css +1 -1
- package/dist/components/dock/styles/index.css +1 -1
- package/dist/components/dock/styles/layer-group.css +1 -1
- package/dist/components/dock/styles/layers.css +1 -1
- package/dist/components/dock/styles/morph.css +1 -1
- package/dist/components/dock/styles/shape.css +1 -1
- package/dist/components/dock/styles/shell.css +1 -1
- package/dist/components/drawer/Drawer.vue.d.ts +17 -20
- 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 +7 -1
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +7 -25
- package/dist/components/drawer/index.d.ts +10 -10
- package/dist/components/drawer/styles.css +1 -1
- 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 +15 -8
- package/dist/components/dropdown-menu/index.d.ts +15 -15
- package/dist/components/dropdown-menu/styles.css +1 -0
- package/dist/components/dropdown-menu/useMenuTrigger.d.ts +2 -9
- package/dist/components/easing/composables/useEasingPicker.d.ts +5 -8
- package/dist/components/easing/constants.d.ts +1 -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 +4 -0
- package/dist/components/fading-scroll/constants.d.ts +1 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +3 -5
- 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 +4 -4
- 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 +1 -1
- 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 +8 -8
- package/dist/components/handmark/index.d.ts +7 -8
- 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 -3
- package/dist/components/infinite-scroll/composables/types.d.ts +1 -1
- 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 -1
- 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 +10 -108
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +3 -23
- 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/composables/liquidGrid.d.ts +5 -5
- 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/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 +5 -13
- package/dist/components/progress/index.d.ts +1 -0
- 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 -1
- package/dist/components/search/FuzzySearch.vue.d.ts +2 -2
- package/dist/components/search/SearchBar.vue.d.ts +2 -2
- 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 -8
- 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 -37
- 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 +1 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +21 -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 -1
- package/dist/components/tabs/styles/segmented.css +1 -1
- 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 +12 -13
- package/dist/components/timeline/GlassTimeline.vue.d.ts +7 -8
- 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 +37 -79
- 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/composables/useTypewriter.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 +11 -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/useGpuSubstrate.d.ts +10 -10
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -1
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +12 -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} +2 -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/{useNumericTransition.d.ts → number/useNumericTransition.d.ts} +2 -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/{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/{springProjection.d.ts → spring/springProjection.d.ts} +3 -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} +3 -3
- 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-CSENXXSy.js → configurator-M5OaIlJd.js} +11 -11
- package/dist/configurator.js +1 -1
- package/dist/{constants-DRZmNIY-.js → constants-nBz23tJE.js} +1 -1
- package/dist/constellation.js +125 -124
- package/dist/{createCanvasLifecycle-hsFkQVdl.js → createCanvasLifecycle-DbXRwjU_.js} +87 -82
- package/dist/dark-mode-toggle.d.ts +1 -0
- package/dist/dark-mode-toggle.js +43 -0
- package/dist/dark.js +1 -1
- package/dist/data-table-BygKg6ZA.js +491 -0
- package/dist/data-table.js +1 -1
- package/dist/deck.js +3 -3
- package/dist/dialog-TNRDkcE4.js +385 -0
- package/dist/dialog.js +1 -1
- package/dist/dock.js +523 -940
- package/dist/dockContext-BUTlGRNJ.js +13 -0
- package/dist/dom.js +52 -114
- package/dist/drawer.js +262 -209
- package/dist/dropdown-menu-BlbnvMaZ.js +507 -0
- package/dist/dropdown-menu.js +2 -2
- package/dist/easing.js +294 -278
- package/dist/expandable-container.js +107 -93
- 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-DEGFGE11.js → flow.wgsl-Cd2GUkPx.js} +2 -2
- package/dist/fonts/README.md +14 -18
- package/dist/forms.js +279 -174
- package/dist/fourier-field.js +148 -148
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +512 -373
- package/dist/handmark.js +4 -4
- package/dist/header-ribbon.js +37 -68
- package/dist/index.d.ts +9 -18
- package/dist/infinite-scroll.js +31 -28
- package/dist/instrument-chassis.js +54 -2
- package/dist/label-DnMqH7jr.js +55 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +291 -214
- package/dist/liquid-grid.js +141 -151
- 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 -165
- package/dist/motion.js +104 -161
- 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 +16 -24
- package/dist/{pointerFieldMappings-CZojkgKj.js → pointerFieldMappings-DP5tla5z.js} +4 -7
- package/dist/popover-BQGYXZyO.js +244 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-CxeNvxuO.js → presets-5myqNv59.js} +1 -1
- package/dist/primitive-B2t2jdqM.js +11 -0
- package/dist/progress-DClbhRAT.js +88 -0
- package/dist/progress.js +1 -1
- package/dist/pulse.js +29 -43
- package/dist/reactive.js +1 -1
- package/dist/resolveCanvasColor-DS_6DBxA.js +82 -0
- package/dist/resolveSurfaceClass-DCZ4PZcy.js +6 -0
- package/dist/{scrollReader-C2oK9Hb8.js → scrollReader-Brf5cQNo.js} +1 -1
- package/dist/search.js +241 -213
- package/dist/select-BcBAyLXA.js +336 -0
- package/dist/select.js +1 -1
- 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 +9 -8
- package/dist/springPresets-rCii5KqX.js +52 -0
- package/dist/status-dot.js +26 -43
- package/dist/styles/accessibility.css +1 -1
- 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 -1
- 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 +4 -9
- package/dist/styles/tokens.ts +5 -9
- 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/view-transition.css +1 -1
- package/dist/{supportsCssTimeline-Dz-GVxXM.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 +141 -169
- 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.js +96 -5
- package/dist/tooltip-Drx5qnw_.js +148 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +222 -193
- package/dist/{useAccentTone-C-p6WdPe.js → useAccentTone-DyInfHXE.js} +2 -2
- package/dist/{useAnimatedNumber-BRVVaFFc.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-B-dbxl9w.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-Cj5fOkTv.js → useTouchGate-B4mzQcHJ.js} +1 -1
- package/dist/vSpecular-DMJo8pfD.js +68 -0
- package/dist/value-DMhh2R94.js +33 -0
- package/dist/watercolor-dot.js +77 -103
- package/package.json +163 -232
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +0 -65
- package/dist/FadingScroll-C1ZWEjmG.js +0 -83
- package/dist/Input-B4WQ_CMc.js +0 -57
- package/dist/Surface-BWRfwyn8.js +0 -59
- package/dist/accent-tone-solve-Dii9ePhK.js +0 -20
- package/dist/badge-C0C-rTBu.js +0 -80
- package/dist/button-32mg6xA8.js +0 -194
- package/dist/card-16xmzIr3.js +0 -303
- package/dist/coalesce-metric-znAcLzkB.js +0 -13
- package/dist/collapsible-bPzS1aQk.js +0 -63
- package/dist/color-swatch.d.ts +0 -1
- package/dist/color-swatch.js +0 -48
- package/dist/command-BjPjUU9z.js +0 -307
- 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/color-swatch/ColorSwatch.vue.d.ts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -32
- package/dist/components/controls/dark-mode-toggle.css +0 -1
- package/dist/components/controls/index.d.ts +0 -1
- package/dist/components/data-table/DataTablePagination.vue.d.ts +0 -13
- 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 -91
- package/dist/components/dock/composables/useDockFisheye.d.ts +0 -24
- package/dist/components/dock/composables/useDockPopover.d.ts +0 -70
- package/dist/components/dock/styles/fisheye.css +0 -1
- package/dist/components/dock/styles/popover.css +0 -1
- package/dist/components/dock/styles/section.css +0 -1
- 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/styles.css +0 -1
- 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 -9
- package/dist/components/progress/ProgressGradient.vue.d.ts +0 -26
- package/dist/components/progress/ProgressLiquid.vue.d.ts +0 -22
- package/dist/components/progress/valueMarks.css +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/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 -107
- 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 -83
- package/dist/data-table-DveMdgBM.js +0 -629
- package/dist/dialog-BzQxKrUr.js +0 -281
- package/dist/dockContext-4S9qP0Z4.js +0 -13
- package/dist/dropdown-menu-DORIA52F.js +0 -378
- package/dist/focus-scope-DUTKveod.js +0 -23
- package/dist/focus-scope.d.ts +0 -1
- package/dist/focus-scope.js +0 -2
- package/dist/icon-chip-BWuxz1-u.js +0 -57
- package/dist/icon-chip.d.ts +0 -1
- package/dist/icon-chip.js +0 -2
- package/dist/icon-tooltip-CO6rw0dZ.js +0 -25
- package/dist/icon-tooltip.d.ts +0 -1
- package/dist/icon-tooltip.js +0 -2
- package/dist/instrument-chassis-Cvstg4_U.js +0 -65
- package/dist/label-Cj38tJKG.js +0 -36
- package/dist/menuItemVariants-D6AOzzND.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 -1
- package/dist/motion-curves.js +0 -146
- package/dist/notification-DVs7ODMg.js +0 -52
- package/dist/notification.d.ts +0 -1
- package/dist/notification.js +0 -2
- package/dist/number-field-PvkGedHk.js +0 -140
- package/dist/popover-WMgyRSyN.js +0 -256
- package/dist/progress-C-HHuFZy.js +0 -192
- package/dist/resolveCanvasColor-yarP5bdk.js +0 -93
- package/dist/select-BIv4R3Ir.js +0 -326
- package/dist/separator-CBU94kTM.js +0 -62
- package/dist/slider-Cc_qw6GA.js +0 -166
- package/dist/spa-view.d.ts +0 -1
- package/dist/spa-view.js +0 -46
- package/dist/springPresets-h5VKJQqG.js +0 -58
- package/dist/styles/glass/progress-rail.css +0 -1
- package/dist/switch-Boj4Ucn5.js +0 -49
- package/dist/toast-kAbchIN2.js +0 -281
- package/dist/toggle-group-BPchFsns.js +0 -178
- package/dist/tooltip-BmOQJzh0.js +0 -111
- package/dist/useControlSize-CFfOk8I-.js +0 -9
- package/dist/useDockCtaReceive-CK-RLASa.js +0 -257
- package/dist/useDocumentVisibility-YeBDGqtI.js +0 -17
- package/dist/useDragMorph-7ygF9O0m.js +0 -93
- package/dist/useGooMorph-D1F6QJlH.js +0 -349
- package/dist/useLeadTrail-BYu8dq4G.js +0 -74
- package/dist/useLiquidPress-BYcwwGQV.js +0 -68
- package/dist/useMotionAxis-DCCXMC-i.js +0 -20
- package/dist/usePointerVelocityField-BdvnO0py.js +0 -122
- package/dist/useRAFLoop-BtwQ9DyY.js +0 -109
- package/dist/useRoutePointer-BDNMFN73.js +0 -52
- package/dist/useScrollProgress-DZI4nf4v.js +0 -35
- package/dist/useSelectionGroup-LDzBdR1Y.js +0 -215
- package/dist/useSpringMount-C6-DBx4e.js +0 -71
- package/dist/useSpringPress-BypV_KO-.js +0 -36
- package/dist/useSurfaceAxis-DudiZVOR.js +0 -10
- package/dist/useTabRovingFocus-DkLYwo4L.js +0 -143
- package/dist/vReveal-DZfWl9XI.js +0 -10
- package/dist/vSpecular-CQFmLNzA.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/accessibility.css +0 -48
- package/src/styles/animations.css +0 -468
- package/src/styles/draw-in.css +0 -89
- 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-roles.css +0 -18
- package/src/styles/glass/material.css +0 -500
- 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/index.css +0 -288
- 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/theme/bridges.css +0 -380
- 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 -480
- package/src/styles/tokens/glass.css +0 -477
- 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 -142
- 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 -448
- package/src/styles/tokens/scale-paper.css +0 -495
- package/src/styles/tokens/scheme-motion.css +0 -425
- package/src/styles/tokens/scheme-spring.css +0 -282
- package/src/styles/tokens/scroll-tokens.css +0 -137
- package/src/styles/tokens/shadow.css +0 -206
- 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/tokens.ts +0 -58
- package/src/styles/transitions.css +0 -228
- package/src/styles/typography/scale.css +0 -166
- 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/base-misc.css +0 -307
- package/src/styles/utilities/base.css +0 -337
- package/src/styles/utilities/btn.css +0 -306
- package/src/styles/utilities/components.css +0 -337
- package/src/styles/utilities/metal.css +0 -272
- package/src/styles/utilities.css +0 -24
- 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-DK3Fri1B.js → compile-D7VYG3gi.js} +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/{useAnimatedNumber.d.ts → number/useAnimatedNumber.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumberMap.d.ts → number/useAnimatedNumberMap.d.ts} +0 -0
- /package/dist/composables/motion/{useCountup.d.ts → number/useCountup.d.ts} +0 -0
- /package/dist/composables/motion/{useRoutePointer.d.ts → pointer/useRoutePointer.d.ts} +0 -0
- /package/dist/composables/motion/{useTextHighlight.d.ts → reveal/useTextHighlight.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-FU0n5MGK.js → createContext-BhkE9mLH.js} +0 -0
- /package/dist/{dark-DIH-blY1.js → dark-z_P5QwqI.js} +0 -0
- /package/dist/{motionTempo-CMS5b0Vu.js → motionTempo-tscp92Nm.js} +0 -0
- /package/dist/{prng-Dz2_9RJu.js → prng-2uS6J_A1.js} +0 -0
- /package/dist/{rendererStatus-C2-zC2Q-.js → rendererStatus-BxUlBLVy.js} +0 -0
- /package/dist/{useDragVelocity-CbMZEBaC.js → useDragVelocity-6ONX0sr0.js} +0 -0
- /package/dist/{useFuzzySearch-BOgep7RE.js → useFuzzySearch-CUnZknpm.js} +0 -0
- /package/dist/{useResizeObserver-BcUTquV7.js → useResizeObserver-CdUlm2QZ.js} +0 -0
- /package/dist/{useResolveTokenColor-C07e-qaT.js → useResolveTokenColor-B2FfJnd9.js} +0 -0
- /package/dist/{useTimer-D8koDvJS.js → useTimer-C3yfti4C.js} +0 -0
- /package/dist/{useUserInvalidAria-Cr4nR3tu.js → useUserInvalidAria-0GNrddMX.js} +0 -0
- /package/dist/{valueDomain-B8L04u3U.js → valueDomain-SbVzoHMH.js} +0 -0
- /package/dist/{writeVelocityWeight-D_AcvTsE.js → writeVelocityWeight-DoGOCW3e.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,38 +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 {
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import { PopoverTrigger as
|
|
23
|
-
import { ChevronDown as
|
|
24
|
-
import { SpringProgress as
|
|
25
|
-
import { useMediaQuery as
|
|
26
|
-
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";
|
|
27
27
|
//#region src/composables/glass/backdropSampleMath.ts
|
|
28
|
-
function
|
|
28
|
+
function ge(e) {
|
|
29
29
|
let t = e / 255;
|
|
30
30
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return .2126 *
|
|
32
|
+
function _e(e, t, n) {
|
|
33
|
+
return .2126 * ge(e) + .7152 * ge(t) + .0722 * ge(n);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ve(e) {
|
|
36
36
|
let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
|
|
37
37
|
return t ? [
|
|
38
38
|
Number(t[1]),
|
|
@@ -41,13 +41,13 @@ function Se(e) {
|
|
|
41
41
|
t[4] === void 0 ? 1 : Number(t[4])
|
|
42
42
|
] : null;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ye(e) {
|
|
45
45
|
return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/composables/glass/ambientHueHistogram.ts
|
|
49
|
-
var $ = 12,
|
|
50
|
-
function
|
|
49
|
+
var $ = 12, be = .72, xe = .06, Se = .004;
|
|
50
|
+
function Ce() {
|
|
51
51
|
return {
|
|
52
52
|
weight: new Float64Array($),
|
|
53
53
|
sumCos: new Float64Array($),
|
|
@@ -56,45 +56,45 @@ function De() {
|
|
|
56
56
|
n: 0
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function we(e, t, n, r, i) {
|
|
60
60
|
e.n++;
|
|
61
|
-
let [a, o
|
|
62
|
-
if (!Number.isFinite(
|
|
63
|
-
let
|
|
64
|
-
if (
|
|
65
|
-
let
|
|
66
|
-
|
|
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;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
if (e.n === 0 || e.totalMass / e.n <
|
|
68
|
+
function Te(e) {
|
|
69
|
+
if (e.n === 0 || e.totalMass / e.n < Se) return "transparent";
|
|
70
70
|
let t = 0;
|
|
71
71
|
for (let n = 1; n < $; n++) e.weight[n] > e.weight[t] && (t = n);
|
|
72
72
|
if (e.weight[t] <= 0) return "transparent";
|
|
73
73
|
let n = Math.atan2(e.sumSin[t], e.sumCos[t]) * 180 / Math.PI;
|
|
74
|
-
return n < 0 && (n += 360), `oklch(${
|
|
74
|
+
return n < 0 && (n += 360), `oklch(${be} ${xe} ${n.toFixed(1)})`;
|
|
75
75
|
}
|
|
76
|
-
var
|
|
77
|
-
function
|
|
76
|
+
var Ee = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
77
|
+
function De(e) {
|
|
78
78
|
if (!e) {
|
|
79
79
|
if (typeof document < "u") {
|
|
80
|
-
let e = document.querySelector(
|
|
81
|
-
if (
|
|
80
|
+
let e = document.querySelector(Ee);
|
|
81
|
+
if (ye(e)) return e;
|
|
82
82
|
}
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
85
|
+
if (ye(e)) return e;
|
|
86
86
|
if (typeof e == "function") {
|
|
87
87
|
let t = e();
|
|
88
|
-
return
|
|
88
|
+
return ye(t) ? t : null;
|
|
89
89
|
}
|
|
90
90
|
if (typeof e == "string" && typeof document < "u") {
|
|
91
91
|
let t = document.querySelector(e);
|
|
92
|
-
return
|
|
92
|
+
return ye(t) ? t : null;
|
|
93
93
|
}
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
let n =
|
|
96
|
+
function Oe(e, t) {
|
|
97
|
+
let n = ve(e);
|
|
98
98
|
if (n) return n;
|
|
99
99
|
if (!t) return null;
|
|
100
100
|
try {
|
|
@@ -110,7 +110,7 @@ function Me(e, t) {
|
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ke(e, t, n) {
|
|
114
114
|
if (!t || t.width === 0 || t.height === 0 || !n) return null;
|
|
115
115
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
116
116
|
if (i.width === 0 || i.height === 0) return null;
|
|
@@ -118,62 +118,62 @@ function Ne(e, t, n) {
|
|
|
118
118
|
if (l <= 0 || u <= 0) return null;
|
|
119
119
|
try {
|
|
120
120
|
n.clearRect(0, 0, 32, 32), n.drawImage(t, s, c, l, u, 0, 0, 32, 32);
|
|
121
|
-
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();
|
|
122
122
|
for (let t = 0; t < e.length; t += 4) {
|
|
123
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);
|
|
124
|
-
r +=
|
|
124
|
+
r += _e(s, c, l), i += n, we(o, s, c, l, n), a++;
|
|
125
125
|
}
|
|
126
126
|
return a === 0 || i / a < .02 ? null : {
|
|
127
127
|
luma: r / a,
|
|
128
|
-
ambientHue:
|
|
128
|
+
ambientHue: Te(o)
|
|
129
129
|
};
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ae(e, t) {
|
|
135
135
|
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = document.elementsFromPoint(r, i);
|
|
136
136
|
for (let n of a) {
|
|
137
137
|
if (!(n instanceof HTMLElement) || n === e || e.contains(n)) continue;
|
|
138
|
-
let r = getComputedStyle(n).backgroundColor, i =
|
|
139
|
-
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);
|
|
140
140
|
}
|
|
141
|
-
let o =
|
|
142
|
-
return o ?
|
|
141
|
+
let o = Oe(u(getComputedStyle(document.body).backgroundColor, e), t);
|
|
142
|
+
return o ? je(o) : null;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
let t =
|
|
146
|
-
return
|
|
147
|
-
luma:
|
|
148
|
-
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)
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region src/composables/glass/useGlassBackdropLuminance.ts
|
|
153
|
-
var
|
|
154
|
-
function
|
|
155
|
-
let { lightThreshold:
|
|
156
|
-
function
|
|
157
|
-
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;
|
|
158
158
|
}
|
|
159
|
-
let
|
|
159
|
+
let u = G(null), d = G(null), f = G({
|
|
160
160
|
state: "pending",
|
|
161
|
-
mode:
|
|
162
|
-
source:
|
|
161
|
+
mode: n.live === !0 ? "live" : "static",
|
|
162
|
+
source: n.live === !0 ? "canvas" : "elements"
|
|
163
163
|
});
|
|
164
164
|
if (typeof window > "u") return {
|
|
165
|
-
luma:
|
|
166
|
-
bucket:
|
|
167
|
-
sample:
|
|
165
|
+
luma: W(u),
|
|
166
|
+
bucket: W(d),
|
|
167
|
+
sample: W(f),
|
|
168
168
|
sampleNow: () => {},
|
|
169
169
|
dispose: () => {}
|
|
170
170
|
};
|
|
171
|
-
let
|
|
171
|
+
let p = t(), m = null, h = null;
|
|
172
172
|
function g() {
|
|
173
173
|
return m || (m = document.createElement("canvas"), m.width = 32, m.height = 32), h ||= m.getContext("2d", { willReadFrequently: !0 }), h;
|
|
174
174
|
}
|
|
175
175
|
function _() {
|
|
176
|
-
return
|
|
176
|
+
return n.live === void 0 ? e.value?.dataset.glassSample === "live" || n.backgroundCanvas != null || De(void 0) !== null : n.live;
|
|
177
177
|
}
|
|
178
178
|
function v(e) {
|
|
179
179
|
let t = e.getBoundingClientRect();
|
|
@@ -184,401 +184,352 @@ function ze(e, t = {}) {
|
|
|
184
184
|
height: t.height
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function y(e, t,
|
|
187
|
+
function y(e, t, n, i) {
|
|
188
188
|
let o = e.luma;
|
|
189
|
-
|
|
190
|
-
let s = o >=
|
|
191
|
-
|
|
189
|
+
u.value = o;
|
|
190
|
+
let s = o >= r ? "light" : "dark";
|
|
191
|
+
d.value = s, f.value = {
|
|
192
192
|
state: "sampled",
|
|
193
|
-
mode:
|
|
194
|
-
source:
|
|
193
|
+
mode: n,
|
|
194
|
+
source: n === "live" ? "canvas" : "elements",
|
|
195
195
|
luma: o,
|
|
196
196
|
ambientHue: e.ambientHue,
|
|
197
|
-
sampledAt:
|
|
197
|
+
sampledAt: i,
|
|
198
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%" :
|
|
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
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
function S(e, t, n, r) {
|
|
202
|
+
u.value = null, d.value = null, f.value = {
|
|
203
203
|
state: "unavailable",
|
|
204
204
|
mode: t,
|
|
205
205
|
source: t === "live" ? "canvas" : "elements",
|
|
206
206
|
reason: n,
|
|
207
207
|
sampledAt: r,
|
|
208
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"),
|
|
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
210
|
}
|
|
211
|
-
let
|
|
212
|
-
function
|
|
213
|
-
let
|
|
214
|
-
if (!
|
|
215
|
-
let r = g(), i = _() ? "live" : "static", a = i === "live" ?
|
|
216
|
-
o ? y(o,
|
|
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;
|
|
217
217
|
}
|
|
218
|
-
let T =
|
|
219
|
-
p || e -
|
|
218
|
+
let T = b(({ now: e }) => {
|
|
219
|
+
p.value || e - C < o || w();
|
|
220
220
|
}, {
|
|
221
221
|
immediate: !1,
|
|
222
222
|
pauseWhenHidden: !0,
|
|
223
223
|
respectReducedMotion: !0
|
|
224
|
-
}), E =
|
|
224
|
+
}), E = x(() => e.value, {
|
|
225
225
|
pause: () => T.pause(),
|
|
226
226
|
resume: () => {
|
|
227
227
|
let t = e.value;
|
|
228
|
-
t &&
|
|
228
|
+
t && l(t) || _() && !p.value && T.resume();
|
|
229
229
|
}
|
|
230
|
-
}, { rootMargin: "200px" }), D =
|
|
230
|
+
}, { rootMargin: "200px" }), D = c(e, () => w());
|
|
231
231
|
function O() {
|
|
232
|
-
p = f.matches;
|
|
233
232
|
let t = e.value;
|
|
234
|
-
if (t &&
|
|
233
|
+
if (t && l(t)) {
|
|
235
234
|
T.stop();
|
|
236
235
|
return;
|
|
237
236
|
}
|
|
238
|
-
p ? (T.stop(),
|
|
237
|
+
p.value ? (T.stop(), w()) : _() && T.start();
|
|
239
238
|
}
|
|
240
|
-
let k = () =>
|
|
241
|
-
typeof f.addEventListener == "function" && f.addEventListener("change", k);
|
|
242
|
-
let A = X(() => e.value, (e) => {
|
|
239
|
+
let k = X(p, O, { flush: "sync" }), A = X(() => e.value, (e) => {
|
|
243
240
|
if (e) {
|
|
244
|
-
if (
|
|
245
|
-
else if (
|
|
246
|
-
|
|
241
|
+
if (s) e.setAttribute(Me, "");
|
|
242
|
+
else if (l(e)) return;
|
|
243
|
+
w(), O();
|
|
247
244
|
}
|
|
248
245
|
}, {
|
|
249
246
|
immediate: !0,
|
|
250
247
|
flush: "post"
|
|
251
248
|
});
|
|
252
249
|
function j() {
|
|
253
|
-
A(), T.dispose(), E.dispose(), D.stop(),
|
|
250
|
+
A(), k(), T.dispose(), E.dispose(), D.stop(), m = null, h = null;
|
|
254
251
|
}
|
|
255
252
|
return V(j), {
|
|
256
|
-
luma:
|
|
257
|
-
bucket:
|
|
258
|
-
sample:
|
|
259
|
-
sampleNow:
|
|
253
|
+
luma: W(u),
|
|
254
|
+
bucket: W(d),
|
|
255
|
+
sample: W(f),
|
|
256
|
+
sampleNow: w,
|
|
260
257
|
dispose: j
|
|
261
258
|
};
|
|
262
259
|
}
|
|
263
260
|
//#endregion
|
|
264
261
|
//#region src/components/dock/composables/isTeleportedTarget.ts
|
|
265
|
-
function
|
|
262
|
+
function Fe(e, t) {
|
|
266
263
|
if (!(e instanceof Element)) return !1;
|
|
267
264
|
let n = e.closest("[data-glass-dock-portal]");
|
|
268
|
-
return n ? t
|
|
265
|
+
return n ? !t || n.getAttribute("data-glass-dock-owner") === t : !1;
|
|
269
266
|
}
|
|
270
267
|
//#endregion
|
|
271
268
|
//#region src/components/dock/composables/useDockState.ts
|
|
272
|
-
function
|
|
273
|
-
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1,
|
|
274
|
-
function y() {
|
|
275
|
-
v &&= (clearTimeout(v), null);
|
|
276
|
-
}
|
|
277
|
-
let b = l.value;
|
|
278
|
-
function x() {
|
|
279
|
-
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;
|
|
280
|
-
}
|
|
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;
|
|
281
271
|
function S() {
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
function C() {
|
|
285
|
-
g !== null && (cancelAnimationFrame(g), g = null);
|
|
272
|
+
x &&= (clearTimeout(x), null);
|
|
286
273
|
}
|
|
274
|
+
let C = f.value;
|
|
287
275
|
function w() {
|
|
288
|
-
|
|
276
|
+
l() && (f.value = "pinned"), c && C !== f.value && c(f.value, C), C = f.value;
|
|
289
277
|
}
|
|
290
278
|
function T() {
|
|
291
|
-
|
|
292
|
-
l.value = "collapsed", x();
|
|
293
|
-
}, t));
|
|
279
|
+
h &&= (clearTimeout(h), null);
|
|
294
280
|
}
|
|
295
281
|
function E() {
|
|
296
|
-
|
|
297
|
-
|
|
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();
|
|
298
295
|
return;
|
|
299
296
|
}
|
|
300
|
-
|
|
297
|
+
b ||= (b = !0, T(), S(), f.value = "collapsed", w(), !1);
|
|
301
298
|
}
|
|
302
|
-
function
|
|
303
|
-
if (
|
|
304
|
-
|
|
299
|
+
function j() {
|
|
300
|
+
if (l()) {
|
|
301
|
+
f.value = "pinned", w();
|
|
305
302
|
return;
|
|
306
303
|
}
|
|
307
|
-
|
|
304
|
+
T(), S(), f.value = "hover", w();
|
|
308
305
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
311
|
-
|
|
306
|
+
function M() {
|
|
307
|
+
d() || (T(), f.value === "collapsed" && (S(), x = setTimeout(() => {
|
|
308
|
+
x = null, !d() && f.value === "collapsed" && (f.value = "hover", w());
|
|
312
309
|
}, 60)));
|
|
313
310
|
}
|
|
314
|
-
function
|
|
315
|
-
if (!
|
|
316
|
-
if (
|
|
311
|
+
function N(e) {
|
|
312
|
+
if (!d() && (S(), f.value === "hover")) {
|
|
313
|
+
if (g.value > 0) return;
|
|
317
314
|
if (e) {
|
|
318
315
|
let t = n.value;
|
|
319
|
-
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;
|
|
320
317
|
}
|
|
321
|
-
|
|
318
|
+
k();
|
|
322
319
|
}
|
|
323
320
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
321
|
+
function P() {
|
|
322
|
+
d() || (T(), f.value === "collapsed" && (f.value = "hover", w()));
|
|
326
323
|
}
|
|
327
|
-
function
|
|
328
|
-
if (
|
|
324
|
+
function ee(e) {
|
|
325
|
+
if (d() || f.value !== "hover" || g.value > 0) return;
|
|
329
326
|
let t = e.currentTarget;
|
|
330
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
327
|
+
e.relatedTarget && t.contains(e.relatedTarget) || Fe(e.relatedTarget, s) || k();
|
|
331
328
|
}
|
|
332
|
-
function
|
|
333
|
-
|
|
334
|
-
l.value = "pinned", x();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
S(), y(), l.value = "pinned", x();
|
|
329
|
+
function F() {
|
|
330
|
+
d() || (T(), S(), f.value = "pinned", w());
|
|
338
331
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
332
|
+
function I() {
|
|
333
|
+
g.value++, T();
|
|
341
334
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
344
|
-
|
|
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();
|
|
345
338
|
}, Math.min(t, 800)));
|
|
346
339
|
}
|
|
347
|
-
function
|
|
348
|
-
if (
|
|
340
|
+
function R(e) {
|
|
341
|
+
if (d() || g.value > 0 || o?.value) return;
|
|
349
342
|
let t = n.value;
|
|
350
|
-
!t || t.contains(e.target) ||
|
|
343
|
+
!t || t.contains(e.target) || Fe(e.target, s) || A();
|
|
351
344
|
}
|
|
352
|
-
return X(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
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
|
+
});
|
|
356
352
|
});
|
|
357
|
-
}
|
|
358
|
-
}), typeof r == "boolean" ? r && (
|
|
353
|
+
} else D();
|
|
354
|
+
}, { immediate: !0 }), typeof r == "boolean" ? r && (f.value = "pinned", w()) : X(r, (e) => {
|
|
359
355
|
if (e) {
|
|
360
|
-
|
|
356
|
+
T(), f.value = "pinned", w();
|
|
361
357
|
return;
|
|
362
358
|
}
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
359
|
+
f.value = "collapsed", w();
|
|
360
|
+
}), typeof i != "string" && X(i, (e) => {
|
|
361
|
+
e === "manual" && (T(), S());
|
|
362
|
+
}), H(() => {
|
|
363
|
+
T(), S(), D();
|
|
366
364
|
}), {
|
|
367
|
-
state:
|
|
368
|
-
expanded:
|
|
369
|
-
isPinned:
|
|
370
|
-
isHeld:
|
|
371
|
-
onMouseEnter:
|
|
372
|
-
onMouseLeave:
|
|
373
|
-
onFocusIn:
|
|
374
|
-
onFocusOut:
|
|
375
|
-
onClickCollapsed:
|
|
376
|
-
keepOpen:
|
|
377
|
-
release:
|
|
378
|
-
expand:
|
|
379
|
-
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
|
|
380
378
|
};
|
|
381
379
|
}
|
|
382
380
|
//#endregion
|
|
383
381
|
//#region src/components/dock/composables/useDockSpring.ts
|
|
384
|
-
function
|
|
385
|
-
let
|
|
382
|
+
function Le(e) {
|
|
383
|
+
let t = null, n = () => t !== null && !t.settled;
|
|
386
384
|
function i() {
|
|
387
|
-
|
|
385
|
+
t &&= (t.dispose(), null);
|
|
388
386
|
}
|
|
389
387
|
function a(a, o, s) {
|
|
390
|
-
let c =
|
|
388
|
+
let c = n() ? t.velocity * (s.inheritVelocityScale ?? 1) : 0;
|
|
391
389
|
i();
|
|
392
|
-
let l = new
|
|
393
|
-
response: e.response *
|
|
390
|
+
let l = new fe({
|
|
391
|
+
response: e.response * r(),
|
|
394
392
|
dampingFraction: e.dampingFraction,
|
|
395
393
|
initial: a,
|
|
396
394
|
respectReducedMotion: !0
|
|
397
395
|
});
|
|
398
|
-
|
|
399
|
-
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());
|
|
400
398
|
});
|
|
401
399
|
}
|
|
402
400
|
function o(e) {
|
|
403
|
-
|
|
401
|
+
n() && (t.target = e);
|
|
404
402
|
}
|
|
405
403
|
return {
|
|
406
404
|
playTo: a,
|
|
407
405
|
retarget: o,
|
|
408
406
|
get live() {
|
|
409
|
-
return
|
|
407
|
+
return n();
|
|
410
408
|
},
|
|
411
409
|
get velocity() {
|
|
412
|
-
return
|
|
410
|
+
return n() ? t.velocity : 0;
|
|
413
411
|
},
|
|
414
412
|
dispose: i
|
|
415
413
|
};
|
|
416
414
|
}
|
|
417
415
|
//#endregion
|
|
418
|
-
//#region src/components/dock/composables/
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
function
|
|
425
|
-
let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = He({
|
|
426
|
-
response: v.response,
|
|
427
|
-
dampingFraction: v.dampingFraction
|
|
428
|
-
}), o = _e("(prefers-reduced-motion: reduce)"), s = /* @__PURE__ */ new Set();
|
|
429
|
-
function c() {
|
|
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)");
|
|
422
|
+
function s() {
|
|
430
423
|
return t.value;
|
|
431
424
|
}
|
|
432
|
-
function
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
function u(e) {
|
|
437
|
-
e.leavingLayer.value = null;
|
|
438
|
-
}
|
|
439
|
-
function d() {
|
|
440
|
-
let t = c();
|
|
441
|
-
t && (t.removeAttribute("data-morphing"), t.removeAttribute("data-pane-swap"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
442
|
-
}
|
|
443
|
-
function f() {
|
|
444
|
-
for (let e of s) u(e);
|
|
445
|
-
d();
|
|
425
|
+
function c() {
|
|
426
|
+
i.value = null;
|
|
427
|
+
let t = s();
|
|
428
|
+
t && (t.removeAttribute("data-morphing"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
446
429
|
}
|
|
447
430
|
X(o, (e) => {
|
|
448
|
-
e &&
|
|
431
|
+
e && s()?.hasAttribute("data-morphing") && c();
|
|
449
432
|
});
|
|
450
|
-
function
|
|
451
|
-
let
|
|
452
|
-
|
|
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,
|
|
453
440
|
onFrame: (e) => {
|
|
454
|
-
|
|
455
|
-
t && t.style.setProperty("--dock-morph-t", `${e}`);
|
|
441
|
+
s()?.style.setProperty("--dock-morph-t", `${e}`);
|
|
456
442
|
},
|
|
457
|
-
onSettle:
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
}));
|
|
443
|
+
onSettle: c
|
|
444
|
+
});
|
|
461
445
|
}
|
|
462
|
-
|
|
463
|
-
if (
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
e.leavingLayer.value = n, e.currentLayer.value = t, p(!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;
|
|
469
452
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
axis: e.axis,
|
|
475
|
-
activeLayer: e.activeLayer,
|
|
476
|
-
currentLayer: W(e.activeLayer.value),
|
|
477
|
-
leavingLayer: W(null),
|
|
478
|
-
isOuter: t,
|
|
479
|
-
stop: () => {}
|
|
480
|
-
};
|
|
481
|
-
return n.stop = X(e.activeLayer, (e, t) => {
|
|
482
|
-
m(n, e, t);
|
|
483
|
-
}), s.add(n), n;
|
|
484
|
-
}
|
|
485
|
-
function g(e) {
|
|
486
|
-
e.stop(), s.delete(e), l() || a.dispose();
|
|
487
|
-
}
|
|
488
|
-
let _ = h({
|
|
489
|
-
containerEl: n,
|
|
490
|
-
activeLayer: r,
|
|
491
|
-
axis: i
|
|
492
|
-
}, !0);
|
|
493
|
-
return ne(() => {
|
|
494
|
-
for (let e of s) e.stop();
|
|
495
|
-
s.clear(), a.dispose();
|
|
453
|
+
i.value = t, l();
|
|
454
|
+
});
|
|
455
|
+
return H(() => {
|
|
456
|
+
u(), a.dispose();
|
|
496
457
|
}), {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
return {
|
|
500
|
-
currentLayer: U(t.currentLayer),
|
|
501
|
-
leavingLayer: U(t.leavingLayer),
|
|
502
|
-
release: () => g(t)
|
|
503
|
-
};
|
|
504
|
-
} },
|
|
505
|
-
outerCurrentLayer: U(_.currentLayer),
|
|
506
|
-
outerLeavingLayer: U(_.leavingLayer)
|
|
458
|
+
outerCurrentLayer: W(r),
|
|
459
|
+
outerLeavingLayer: W(i)
|
|
507
460
|
};
|
|
508
461
|
}
|
|
509
462
|
//#endregion
|
|
510
463
|
//#region src/components/dock/composables/dockMorphMeasure.ts
|
|
511
|
-
function
|
|
512
|
-
return
|
|
513
|
-
}
|
|
514
|
-
function Je(e, t) {
|
|
515
|
-
return e.getBoundingClientRect()[qe(t)];
|
|
516
|
-
}
|
|
517
|
-
function Ye(e) {
|
|
518
|
-
let t = e.ownerDocument.createElement("i");
|
|
519
|
-
t.style.cssText = "position:absolute;visibility:hidden;pointer-events:none;contain:strict;inline-size:var(--dock-morph-min);block-size:0", e.append(t);
|
|
520
|
-
let n = Number.parseFloat(e.ownerDocument.defaultView?.getComputedStyle(t).inlineSize ?? "");
|
|
521
|
-
return t.remove(), Number.isFinite(n) && n > 0 ? n : null;
|
|
464
|
+
function ze(e, t) {
|
|
465
|
+
return t === "vertical" ? e.offsetHeight : e.offsetWidth;
|
|
522
466
|
}
|
|
523
|
-
function
|
|
524
|
-
let { rootEl: t, contentEl: n,
|
|
525
|
-
function u(e) {
|
|
526
|
-
return e.hasAttribute("data-morphing");
|
|
527
|
-
}
|
|
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;
|
|
528
469
|
function d() {
|
|
529
|
-
let e = t.value,
|
|
530
|
-
if (!e || !
|
|
531
|
-
let
|
|
532
|
-
if (
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
token: t
|
|
537
|
-
}), e.style.removeProperty("--dock-collapsed-px"), e.style.removeProperty("--dock-expanded-px");
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
if (a.value = null, l || (c = f), !u(e)) {
|
|
541
|
-
let t = Je(e, d);
|
|
542
|
-
t > 0 && (i.value ? s = t : (c = t, l = !0));
|
|
543
|
-
}
|
|
544
|
-
let p = s > 0 ? s : Math.max(Je(o, d), c), m = Math.max(p, c);
|
|
545
|
-
e.style.setProperty("--dock-collapsed-px", `${c}px`), e.style.setProperty("--dock-expanded-px", `${m}px`);
|
|
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`));
|
|
546
477
|
}
|
|
547
|
-
function f(
|
|
548
|
-
|
|
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();
|
|
492
|
+
}
|
|
549
493
|
}
|
|
550
|
-
X(
|
|
494
|
+
X([
|
|
495
|
+
t,
|
|
496
|
+
n,
|
|
497
|
+
r,
|
|
498
|
+
i,
|
|
499
|
+
a
|
|
500
|
+
], f, { immediate: !0 }), X(o, d);
|
|
551
501
|
let p = typeof document < "u" ? document.fonts : void 0;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
})
|
|
502
|
+
p && p.ready.then(() => !u && d()), V(() => {
|
|
503
|
+
u = !0, s?.disconnect(), s = null;
|
|
504
|
+
});
|
|
555
505
|
}
|
|
556
506
|
//#endregion
|
|
557
507
|
//#region src/components/dock/composables/useDockShellProps.ts
|
|
558
|
-
function
|
|
559
|
-
let t =
|
|
508
|
+
function Ve(e) {
|
|
509
|
+
let t = O(() => {
|
|
560
510
|
if (e.containerName) return {
|
|
561
511
|
"container-type": "inline-size",
|
|
562
512
|
"container-name": e.containerName
|
|
563
513
|
};
|
|
564
|
-
}), n =
|
|
514
|
+
}), n = O(() => e.collapseDelay ?? 3600), r = O(() => e.layout ?? "linear"), i = O(() => e.shape ?? "pill"), a = O(() => e.orientation ?? "horizontal"), o = O(() => e.size ?? "md"), s = O(() => a.value === "vertical" || e.overflow === "wrap" ? null : "dock-scroll-x"), c = O(() => e.alwaysExpanded || r.value === "grid");
|
|
565
515
|
return {
|
|
566
516
|
containerStyle: t,
|
|
567
517
|
collapseDelay: n,
|
|
568
|
-
startCollapsed:
|
|
518
|
+
startCollapsed: O(() => c.value ? !1 : e.startCollapsed ?? !0),
|
|
519
|
+
interaction: O(() => c.value ? "auto" : e.interaction ?? "auto"),
|
|
569
520
|
layoutValue: r,
|
|
570
521
|
shape: i,
|
|
571
522
|
orientation: a,
|
|
572
523
|
size: o,
|
|
573
524
|
scrollClass: s,
|
|
574
525
|
alwaysExpanded: c,
|
|
575
|
-
fitContent:
|
|
526
|
+
fitContent: O(() => e.fitContent ?? !1)
|
|
576
527
|
};
|
|
577
528
|
}
|
|
578
529
|
//#endregion
|
|
579
530
|
//#region src/components/dock/composables/useDockClickIntegrity.ts
|
|
580
|
-
function
|
|
581
|
-
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s =
|
|
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 = [];
|
|
582
533
|
function u() {
|
|
583
534
|
c?.removeAttribute("data-dock-press-origin"), c = null;
|
|
584
535
|
for (let { element: e, wasInert: t } of l.splice(0)) e.toggleAttribute("inert", t);
|
|
@@ -648,20 +599,20 @@ function Qe(e) {
|
|
|
648
599
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
649
600
|
}
|
|
650
601
|
}
|
|
651
|
-
return
|
|
602
|
+
return z(() => {
|
|
652
603
|
f(), u();
|
|
653
604
|
}), {
|
|
654
605
|
onPointerDownCapture: _,
|
|
655
606
|
onPointerCancelCapture: v,
|
|
656
607
|
onClickCapture: b,
|
|
657
608
|
markExpandFlip: p,
|
|
658
|
-
pressKeepaliveLayer:
|
|
609
|
+
pressKeepaliveLayer: W(s)
|
|
659
610
|
};
|
|
660
611
|
}
|
|
661
612
|
//#endregion
|
|
662
613
|
//#region src/components/dock/composables/useDockTouchGate.ts
|
|
663
|
-
function
|
|
664
|
-
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);
|
|
665
616
|
function d() {
|
|
666
617
|
return !r.value;
|
|
667
618
|
}
|
|
@@ -679,7 +630,7 @@ function $e(e) {
|
|
|
679
630
|
u.handleTouchEnd(), !e && u.isActive.value && !i.value && s();
|
|
680
631
|
}
|
|
681
632
|
return X(u.isActive, (e) => {
|
|
682
|
-
!e && a.value && !o.value && !r.value &&
|
|
633
|
+
!e && a.value && !o.value && !r.value && c();
|
|
683
634
|
}), {
|
|
684
635
|
onTouchStart: f,
|
|
685
636
|
onTouchMove: p,
|
|
@@ -689,7 +640,7 @@ function $e(e) {
|
|
|
689
640
|
}
|
|
690
641
|
//#endregion
|
|
691
642
|
//#region src/components/dock/composables/useDockOverflowFit.ts
|
|
692
|
-
function
|
|
643
|
+
function We(e) {
|
|
693
644
|
let t = null, n = null, r = 0;
|
|
694
645
|
function i() {
|
|
695
646
|
return e.value?.querySelector(".dock-layer--full") ?? null;
|
|
@@ -703,7 +654,7 @@ function et(e) {
|
|
|
703
654
|
function o() {
|
|
704
655
|
cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
705
656
|
}
|
|
706
|
-
return
|
|
657
|
+
return B(() => {
|
|
707
658
|
let r = e.value, a = i();
|
|
708
659
|
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)), r && (n = new MutationObserver(o), n.observe(r, {
|
|
709
660
|
childList: !0,
|
|
@@ -712,28 +663,29 @@ function et(e) {
|
|
|
712
663
|
attributes: !0,
|
|
713
664
|
attributeFilter: ["class", "hidden"]
|
|
714
665
|
}));
|
|
715
|
-
}), X(() => e.value, () => o()),
|
|
666
|
+
}), X(() => e.value, () => o()), H(() => {
|
|
716
667
|
t?.disconnect(), n?.disconnect(), cancelAnimationFrame(r);
|
|
717
668
|
}), { measure: a };
|
|
718
669
|
}
|
|
719
670
|
//#endregion
|
|
720
671
|
//#region src/components/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
721
|
-
var
|
|
672
|
+
var Ge = [
|
|
722
673
|
"data-size",
|
|
723
674
|
"data-backdrop-mode",
|
|
675
|
+
"data-interaction",
|
|
724
676
|
"data-held",
|
|
725
677
|
"data-search",
|
|
726
678
|
"data-container-name"
|
|
727
|
-
],
|
|
679
|
+
], Ke = { class: "dock-controls" }, qe = {
|
|
728
680
|
key: 0,
|
|
729
681
|
class: "dock-persistent"
|
|
730
|
-
},
|
|
682
|
+
}, Je = ["inert"], Ye = ["inert"], Xe = {
|
|
731
683
|
key: 0,
|
|
732
684
|
class: "dock-search-field"
|
|
733
|
-
},
|
|
685
|
+
}, Ze = {
|
|
734
686
|
key: 1,
|
|
735
687
|
class: "dock-persistent dock-persistent-end"
|
|
736
|
-
},
|
|
688
|
+
}, Qe = /* @__PURE__ */ P({
|
|
737
689
|
inheritAttrs: !1,
|
|
738
690
|
__name: "GlassDock",
|
|
739
691
|
props: {
|
|
@@ -746,8 +698,10 @@ var tt = [
|
|
|
746
698
|
size: {},
|
|
747
699
|
overflow: {},
|
|
748
700
|
containerName: {},
|
|
701
|
+
viewTransitionName: {},
|
|
749
702
|
collapseDelay: {},
|
|
750
703
|
startCollapsed: { type: Boolean },
|
|
704
|
+
interaction: {},
|
|
751
705
|
layout: {},
|
|
752
706
|
autoLuminance: {
|
|
753
707
|
type: Boolean,
|
|
@@ -757,152 +711,155 @@ var tt = [
|
|
|
757
711
|
search: { type: Boolean }
|
|
758
712
|
},
|
|
759
713
|
setup(e, { expose: t }) {
|
|
760
|
-
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a,
|
|
761
|
-
|
|
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: () => {
|
|
762
716
|
let e = n.backgroundCanvas;
|
|
763
717
|
return typeof e == "function" ? e() : e instanceof HTMLCanvasElement ? e : null;
|
|
764
718
|
} });
|
|
765
|
-
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({
|
|
766
720
|
collapseDelay: i.value,
|
|
767
|
-
rootEl:
|
|
768
|
-
alwaysExpanded:
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
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");
|
|
728
|
+
m({
|
|
729
|
+
id: x,
|
|
730
|
+
orientation: l,
|
|
731
|
+
layout: h,
|
|
732
|
+
keepOpen: P,
|
|
733
|
+
release: ee,
|
|
734
|
+
held: w
|
|
779
735
|
});
|
|
780
|
-
let
|
|
781
|
-
rootEl:
|
|
782
|
-
|
|
783
|
-
outerActiveLayer: I,
|
|
784
|
-
outerAxis: ee,
|
|
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,
|
|
785
739
|
onMorphActiveChange: (e) => {
|
|
786
|
-
|
|
740
|
+
b.value = e;
|
|
787
741
|
}
|
|
788
742
|
});
|
|
789
|
-
|
|
790
|
-
rootEl:
|
|
791
|
-
contentEl:
|
|
792
|
-
|
|
793
|
-
|
|
743
|
+
Be({
|
|
744
|
+
rootEl: g,
|
|
745
|
+
contentEl: _,
|
|
746
|
+
expandedEl: v,
|
|
747
|
+
collapsedEl: y,
|
|
748
|
+
axis: H,
|
|
749
|
+
expanded: B
|
|
794
750
|
});
|
|
795
|
-
let ne =
|
|
796
|
-
rootEl:
|
|
797
|
-
visualExpanded:
|
|
798
|
-
})
|
|
799
|
-
te(() => {
|
|
800
|
-
(n.alwaysExpanded || !a.value) && A();
|
|
801
|
-
});
|
|
802
|
-
let { onTouchStart: oe, onTouchMove: Z, onTouchEnd: Q, deactivate: se } = $e({
|
|
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({
|
|
803
755
|
collapseDelay: i.value,
|
|
804
|
-
rootEl:
|
|
805
|
-
|
|
806
|
-
visualExpanded:
|
|
807
|
-
expanded:
|
|
808
|
-
isPinned:
|
|
809
|
-
expand:
|
|
810
|
-
collapse:
|
|
756
|
+
rootEl: g,
|
|
757
|
+
quiet: z,
|
|
758
|
+
visualExpanded: B,
|
|
759
|
+
expanded: S,
|
|
760
|
+
isPinned: C,
|
|
761
|
+
expand: I,
|
|
762
|
+
collapse: R
|
|
811
763
|
});
|
|
812
|
-
return X(
|
|
813
|
-
e ?
|
|
764
|
+
return X(B, (e) => {
|
|
765
|
+
e ? Q() : le();
|
|
814
766
|
}), t({
|
|
815
|
-
expanded:
|
|
816
|
-
isPinned:
|
|
817
|
-
isHeld:
|
|
818
|
-
isTransitioning:
|
|
819
|
-
expand:
|
|
820
|
-
collapse:
|
|
821
|
-
keepOpen:
|
|
822
|
-
release:
|
|
823
|
-
}), (t, i) => (
|
|
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({
|
|
824
776
|
ref_key: "dockEl",
|
|
825
|
-
ref:
|
|
777
|
+
ref: g
|
|
826
778
|
}, t.$attrs, {
|
|
827
779
|
class: ["glass-dock", [
|
|
828
|
-
J(
|
|
829
|
-
`shape-${J(
|
|
830
|
-
`layout-${J(
|
|
831
|
-
J(
|
|
780
|
+
J(l),
|
|
781
|
+
`shape-${J(c)}`,
|
|
782
|
+
`layout-${J(h)}`,
|
|
783
|
+
J(d),
|
|
832
784
|
{
|
|
833
|
-
expanded:
|
|
834
|
-
collapsed: !
|
|
835
|
-
pinned: J(
|
|
836
|
-
"fit-content": J(
|
|
837
|
-
"always-expanded": J(
|
|
838
|
-
"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"
|
|
839
791
|
},
|
|
840
792
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) inset-x-0 mx-auto w-max" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
841
793
|
]],
|
|
842
|
-
"data-material": "functional
|
|
843
|
-
"data-size": J(
|
|
794
|
+
"data-material": "functional",
|
|
795
|
+
"data-size": J(u),
|
|
844
796
|
"data-backdrop-mode": n.backdropMode,
|
|
845
|
-
"data-
|
|
797
|
+
"data-interaction": J(o) === "manual" ? "manual" : void 0,
|
|
798
|
+
"data-held": J(w) || void 0,
|
|
846
799
|
"data-search": e.search || void 0,
|
|
847
800
|
"data-container-name": e.containerName || void 0,
|
|
848
801
|
style: [J(r), ne.value],
|
|
849
|
-
onMouseenter: i[1] ||= (...e) => J(
|
|
850
|
-
onMouseleave: i[2] ||= (e) => J(
|
|
851
|
-
onFocusin: i[3] ||= (...e) => J(
|
|
852
|
-
onFocusout: i[4] ||= (...e) => J(
|
|
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),
|
|
853
806
|
onTouchstart: i[5] ||= (...e) => J(oe) && J(oe)(...e),
|
|
854
|
-
onTouchmove: i[6] ||= (...e) => J(
|
|
855
|
-
onTouchend: i[7] ||= (...e) => J(
|
|
856
|
-
onPointerdownCapture: i[8] ||= (...e) => J(
|
|
857
|
-
onPointercancelCapture: i[9] ||= (...e) => J(
|
|
858
|
-
onClickCapture: i[10] ||= (...e) => J(
|
|
859
|
-
}), [i[11] ||=
|
|
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", {
|
|
860
813
|
class: "dock-plate",
|
|
861
814
|
"aria-hidden": "true"
|
|
862
|
-
}, null, -1),
|
|
863
|
-
t.$slots.persistent ? (
|
|
864
|
-
|
|
815
|
+
}, null, -1), M("div", Ke, [
|
|
816
|
+
t.$slots.persistent ? (U(), j("div", qe, [K(t.$slots, "persistent")])) : A("", !0),
|
|
817
|
+
M("div", {
|
|
865
818
|
ref_key: "layersEl",
|
|
866
|
-
ref:
|
|
819
|
+
ref: _,
|
|
867
820
|
class: "dock-layers"
|
|
868
821
|
}, [
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
"is-
|
|
822
|
+
M("div", {
|
|
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"
|
|
874
829
|
}]),
|
|
875
|
-
inert: J(
|
|
876
|
-
}, [K(t.$slots, "default")], 10,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
830
|
+
inert: J(W) !== "full" && J(ae) !== "full" || void 0
|
|
831
|
+
}, [K(t.$slots, "default")], 10, Je),
|
|
832
|
+
M("div", {
|
|
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"
|
|
881
838
|
}]),
|
|
882
|
-
inert: J(
|
|
883
|
-
onClick: i[0] ||= (...e) => J(
|
|
884
|
-
}, [K(t.$slots, "collapsed")], 10,
|
|
885
|
-
e.search ? (
|
|
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)
|
|
886
843
|
], 512),
|
|
887
|
-
t.$slots["persistent-end"] ? (
|
|
888
|
-
])], 16,
|
|
844
|
+
t.$slots["persistent-end"] ? (U(), j("div", Ze, [K(t.$slots, "persistent-end")])) : A("", !0)
|
|
845
|
+
])], 16, Ge));
|
|
889
846
|
}
|
|
890
|
-
}),
|
|
891
|
-
function
|
|
892
|
-
|
|
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);
|
|
893
850
|
}
|
|
894
|
-
var
|
|
895
|
-
|
|
851
|
+
var nt = $e.use;
|
|
852
|
+
$e.useOptional;
|
|
896
853
|
//#endregion
|
|
897
854
|
//#region src/components/dock/DockCrossfade.vue
|
|
898
|
-
var
|
|
855
|
+
var rt = /* @__PURE__ */ P({
|
|
899
856
|
__name: "DockCrossfade",
|
|
900
857
|
props: {
|
|
901
858
|
active: {},
|
|
902
859
|
reserve: { default: "block" }
|
|
903
860
|
},
|
|
904
861
|
setup(e, { expose: t }) {
|
|
905
|
-
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 }) => ({
|
|
906
863
|
id: e,
|
|
907
864
|
label: t,
|
|
908
865
|
icon: n
|
|
@@ -911,20 +868,20 @@ var pt = /* @__PURE__ */ F({
|
|
|
911
868
|
let t = new Map(i.value);
|
|
912
869
|
t.set(e.id, e), i.value = t, p();
|
|
913
870
|
}
|
|
914
|
-
function
|
|
871
|
+
function s(e) {
|
|
915
872
|
if (!i.value.has(e)) return;
|
|
916
873
|
let t = new Map(i.value);
|
|
917
874
|
t.delete(e), i.value = t, p();
|
|
918
875
|
}
|
|
919
|
-
let l =
|
|
920
|
-
|
|
876
|
+
let l = O(() => n.active), u = G(null);
|
|
877
|
+
tt({
|
|
921
878
|
register: o,
|
|
922
|
-
unregister:
|
|
879
|
+
unregister: s,
|
|
923
880
|
activeId: l,
|
|
924
881
|
leavingId: u,
|
|
925
882
|
faces: a
|
|
926
883
|
});
|
|
927
|
-
let d =
|
|
884
|
+
let d = G(0), f = O(() => n.reserve === "inline" ? "min-inline-size" : "min-block-size");
|
|
928
885
|
function p() {
|
|
929
886
|
let e = 0;
|
|
930
887
|
for (let { el: t } of i.value.values()) {
|
|
@@ -933,79 +890,78 @@ var pt = /* @__PURE__ */ F({
|
|
|
933
890
|
}
|
|
934
891
|
e > d.value && (d.value = e);
|
|
935
892
|
}
|
|
936
|
-
let m =
|
|
893
|
+
let m = O(() => d.value > 0 ? {
|
|
937
894
|
[f.value]: `${d.value}px`,
|
|
938
895
|
"--dock-crossfade-peak": `${d.value}px`
|
|
939
896
|
} : void 0);
|
|
940
|
-
|
|
941
|
-
let
|
|
942
|
-
response:
|
|
943
|
-
dampingFraction:
|
|
897
|
+
c(r, () => p());
|
|
898
|
+
let g = Le({
|
|
899
|
+
response: h.response,
|
|
900
|
+
dampingFraction: h.dampingFraction
|
|
944
901
|
});
|
|
945
|
-
function
|
|
902
|
+
function _(e) {
|
|
946
903
|
return e ? i.value.get(e)?.el : void 0;
|
|
947
904
|
}
|
|
948
|
-
function
|
|
949
|
-
|
|
905
|
+
function v(e, t) {
|
|
906
|
+
_(e)?.style.setProperty("--dock-t", `${t}`);
|
|
950
907
|
}
|
|
951
908
|
function y(e) {
|
|
952
|
-
|
|
909
|
+
_(e)?.style.removeProperty("--dock-t");
|
|
953
910
|
}
|
|
954
911
|
function b(e) {
|
|
955
912
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
956
913
|
}
|
|
957
|
-
let x =
|
|
914
|
+
let x = pe("(prefers-reduced-motion: reduce)"), S = null, C = 1;
|
|
958
915
|
X(x, (e) => {
|
|
959
|
-
e && (
|
|
916
|
+
e && (g.dispose(), S?.());
|
|
960
917
|
});
|
|
961
|
-
async function
|
|
918
|
+
async function w(e, t) {
|
|
962
919
|
if (typeof document > "u") return;
|
|
963
|
-
let n =
|
|
964
|
-
!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?.());
|
|
965
922
|
}
|
|
966
923
|
return X(l, (e, t) => {
|
|
967
924
|
if (e === t) return;
|
|
968
925
|
p();
|
|
969
|
-
let n =
|
|
926
|
+
let n = _(e), i = _(t);
|
|
970
927
|
if (!n || !i) {
|
|
971
|
-
u.value = null, y(e);
|
|
928
|
+
u.value = null, y(e), C = 1;
|
|
972
929
|
return;
|
|
973
930
|
}
|
|
974
|
-
let a = u.value;
|
|
975
|
-
a && a !== e && a !== t && y(a), u.value = t;
|
|
976
|
-
let
|
|
977
|
-
|
|
978
|
-
let s = () => {
|
|
979
|
-
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null, S === s && (S = 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);
|
|
980
935
|
};
|
|
981
|
-
if (S =
|
|
982
|
-
|
|
936
|
+
if (S = d, x.value) {
|
|
937
|
+
d();
|
|
983
938
|
return;
|
|
984
939
|
}
|
|
985
|
-
|
|
940
|
+
let f = l > .001 ? -C / l : 0;
|
|
941
|
+
C = 1 - c, g.playTo(0, 1, {
|
|
942
|
+
inheritVelocityScale: f,
|
|
986
943
|
onFrame: (n) => {
|
|
987
|
-
|
|
988
|
-
_(e, r), _(t, r);
|
|
944
|
+
v(e, b(c + (1 - c) * n)), v(t, b(1 - l * (1 - n)));
|
|
989
945
|
},
|
|
990
|
-
onSettle:
|
|
946
|
+
onSettle: d
|
|
991
947
|
});
|
|
992
|
-
}),
|
|
993
|
-
|
|
994
|
-
}), t({ faces: a }), (e, t) => (
|
|
948
|
+
}), z(() => {
|
|
949
|
+
g.dispose(), S = null;
|
|
950
|
+
}), t({ faces: a }), (e, t) => (U(), j("div", {
|
|
995
951
|
ref_key: "rootEl",
|
|
996
952
|
ref: r,
|
|
997
953
|
class: "dock-crossfade",
|
|
998
|
-
style:
|
|
954
|
+
style: R(m.value)
|
|
999
955
|
}, [K(e.$slots, "default")], 4));
|
|
1000
956
|
}
|
|
1001
|
-
}),
|
|
957
|
+
}), it = ["data-motion"], at = ["aria-orientation"], ot = [
|
|
1002
958
|
"tabindex",
|
|
1003
959
|
"title",
|
|
1004
960
|
"aria-label",
|
|
1005
961
|
"onClick"
|
|
1006
|
-
],
|
|
962
|
+
], st = { key: 1 }, ct = { key: 2 }, lt = /* @__PURE__ */ P({
|
|
1007
963
|
__name: "DockLayerGroup",
|
|
1008
|
-
props:
|
|
964
|
+
props: /*@__PURE__*/ ee({
|
|
1009
965
|
orientation: {},
|
|
1010
966
|
showRail: {
|
|
1011
967
|
type: Boolean,
|
|
@@ -1019,16 +975,16 @@ var pt = /* @__PURE__ */ F({
|
|
|
1019
975
|
}),
|
|
1020
976
|
emits: ["update:active"],
|
|
1021
977
|
setup(e) {
|
|
1022
|
-
let t = e, n =
|
|
1023
|
-
options:
|
|
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({
|
|
979
|
+
options: O(() => c.value.map((e) => ({ value: e.id }))),
|
|
1024
980
|
model: r,
|
|
1025
981
|
mode: "single",
|
|
1026
982
|
role: "tablist",
|
|
1027
983
|
vertical: u,
|
|
1028
984
|
containerRef: d,
|
|
1029
985
|
indicatorRef: f,
|
|
1030
|
-
buttonRefs:
|
|
1031
|
-
}), g =
|
|
986
|
+
buttonRefs: m
|
|
987
|
+
}), g = O(() => u.value ? "y" : "x");
|
|
1032
988
|
function _() {
|
|
1033
989
|
let e = d.value;
|
|
1034
990
|
if (!e) return [];
|
|
@@ -1041,8 +997,9 @@ var pt = /* @__PURE__ */ F({
|
|
|
1041
997
|
};
|
|
1042
998
|
});
|
|
1043
999
|
}
|
|
1044
|
-
let
|
|
1045
|
-
|
|
1000
|
+
let y = v({
|
|
1001
|
+
handle: d,
|
|
1002
|
+
surface: f,
|
|
1046
1003
|
axis: () => g.value,
|
|
1047
1004
|
snapTargets: _,
|
|
1048
1005
|
onSnap: (e) => {
|
|
@@ -1054,47 +1011,42 @@ var pt = /* @__PURE__ */ F({
|
|
|
1054
1011
|
l.value,
|
|
1055
1012
|
n.armed.value
|
|
1056
1013
|
], () => {
|
|
1057
|
-
n.armed.value &&
|
|
1058
|
-
}),
|
|
1059
|
-
n.armed.value &&
|
|
1014
|
+
n.armed.value && I(() => y.refresh());
|
|
1015
|
+
}), B(() => {
|
|
1016
|
+
n.armed.value && I(() => y.refresh());
|
|
1060
1017
|
});
|
|
1061
|
-
function
|
|
1018
|
+
function b(e) {
|
|
1062
1019
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
1063
1020
|
}
|
|
1064
|
-
let
|
|
1021
|
+
let x = G(!1);
|
|
1065
1022
|
function S() {
|
|
1066
|
-
|
|
1023
|
+
x.value || (x.value = !0, i?.keepOpen());
|
|
1067
1024
|
}
|
|
1068
|
-
function
|
|
1025
|
+
function w(e) {
|
|
1069
1026
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
1070
|
-
t && n?.contains(t) ||
|
|
1027
|
+
t && n?.contains(t) || x.value && (x.value = !1, i?.release());
|
|
1071
1028
|
}
|
|
1072
|
-
return
|
|
1073
|
-
|
|
1074
|
-
}), (t, i) => (
|
|
1075
|
-
class:
|
|
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}`]]),
|
|
1076
1033
|
"data-motion": J(n).dataMotion.value,
|
|
1077
|
-
style:
|
|
1078
|
-
}, [e.showRail && c.value.length > 1 ? (
|
|
1034
|
+
style: R(J(n).hostStyle.value)
|
|
1035
|
+
}, [e.showRail && c.value.length > 1 ? (U(), j("div", {
|
|
1079
1036
|
key: 0,
|
|
1080
1037
|
ref_key: "railListEl",
|
|
1081
1038
|
ref: d,
|
|
1082
1039
|
role: "tablist",
|
|
1083
|
-
class:
|
|
1084
|
-
e.railPosition,
|
|
1085
|
-
J(n).armed.value && "glass-drag-grabbable",
|
|
1086
|
-
J(n).armed.value && J(v).dragging.value && "glass-drag-lift"
|
|
1087
|
-
]]),
|
|
1040
|
+
class: L(["dock-layer-rail", [e.railPosition, J(n).armed.value && "glass-drag-grabbable"]]),
|
|
1088
1041
|
"aria-orientation": l.value,
|
|
1089
|
-
style: z(J(n).armed.value ? J(v).dragStyle.value : void 0),
|
|
1090
1042
|
onKeydown: i[0] ||= (...e) => J(h).onKeydown && J(h).onKeydown(...e),
|
|
1091
1043
|
onFocusin: S,
|
|
1092
|
-
onFocusout:
|
|
1093
|
-
}, [(
|
|
1044
|
+
onFocusout: w
|
|
1045
|
+
}, [(U(!0), j(D, null, te(c.value, (e, t) => (U(), j("button", F({
|
|
1094
1046
|
key: e.id,
|
|
1095
1047
|
ref_for: !0,
|
|
1096
1048
|
ref: (e) => {
|
|
1097
|
-
e && (
|
|
1049
|
+
e && (m.value[t] = e);
|
|
1098
1050
|
},
|
|
1099
1051
|
type: "button",
|
|
1100
1052
|
class: "dock-layer-tab",
|
|
@@ -1103,30 +1055,29 @@ var pt = /* @__PURE__ */ F({
|
|
|
1103
1055
|
title: e.label,
|
|
1104
1056
|
"aria-label": e.label ?? e.id,
|
|
1105
1057
|
onClick: (n) => J(h).select(e.id, t)
|
|
1106
|
-
}), [
|
|
1058
|
+
}), [b(e.icon) ? (U(), k(ne(e.icon), {
|
|
1107
1059
|
key: 0,
|
|
1108
1060
|
class: "size-4"
|
|
1109
|
-
})) : 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", {
|
|
1110
1062
|
ref_key: "railIndicatorEl",
|
|
1111
1063
|
ref: f,
|
|
1112
|
-
class: "dock-layer-tab-indicator",
|
|
1113
|
-
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),
|
|
1114
1066
|
"aria-hidden": "true"
|
|
1115
|
-
}, null,
|
|
1067
|
+
}, null, 6)], 42, at)) : A("", !0), N(rt, {
|
|
1116
1068
|
ref_key: "crossfade",
|
|
1117
|
-
ref:
|
|
1118
|
-
active: r.value
|
|
1119
|
-
class: "dock-layer-stack"
|
|
1069
|
+
ref: o,
|
|
1070
|
+
active: r.value
|
|
1120
1071
|
}, {
|
|
1121
1072
|
default: Z(() => [K(t.$slots, "default")]),
|
|
1122
1073
|
_: 3
|
|
1123
|
-
}, 8, ["active"])], 14,
|
|
1074
|
+
}, 8, ["active"])], 14, it));
|
|
1124
1075
|
}
|
|
1125
|
-
}),
|
|
1076
|
+
}), ut = [
|
|
1126
1077
|
"inert",
|
|
1127
1078
|
"aria-hidden",
|
|
1128
1079
|
"tabindex"
|
|
1129
|
-
],
|
|
1080
|
+
], dt = { class: "dock-face-content" }, ft = /* @__PURE__ */ P({
|
|
1130
1081
|
__name: "DockLayer",
|
|
1131
1082
|
props: {
|
|
1132
1083
|
id: {},
|
|
@@ -1134,8 +1085,8 @@ var pt = /* @__PURE__ */ F({
|
|
|
1134
1085
|
icon: {}
|
|
1135
1086
|
},
|
|
1136
1087
|
setup(e) {
|
|
1137
|
-
let t = e, n =
|
|
1138
|
-
|
|
1088
|
+
let t = e, n = nt(), r = Y("hostEl");
|
|
1089
|
+
B(() => {
|
|
1139
1090
|
r.value && n.register({
|
|
1140
1091
|
id: t.id,
|
|
1141
1092
|
label: t.label,
|
|
@@ -1153,21 +1104,21 @@ var pt = /* @__PURE__ */ F({
|
|
|
1153
1104
|
icon: t.icon,
|
|
1154
1105
|
el: r.value
|
|
1155
1106
|
});
|
|
1156
|
-
}),
|
|
1157
|
-
let i =
|
|
1158
|
-
return (e, t) => (
|
|
1107
|
+
}), z(() => n.unregister(t.id));
|
|
1108
|
+
let i = O(() => n.activeId.value === t.id), a = O(() => n.leavingId.value === t.id);
|
|
1109
|
+
return (e, t) => (U(), j("div", {
|
|
1159
1110
|
ref_key: "hostEl",
|
|
1160
1111
|
ref: r,
|
|
1161
|
-
class:
|
|
1112
|
+
class: L(["dock-face", {
|
|
1162
1113
|
"is-active": i.value,
|
|
1163
1114
|
"is-leaving": a.value
|
|
1164
1115
|
}]),
|
|
1165
|
-
inert: i.value
|
|
1166
|
-
"aria-hidden": i.value
|
|
1116
|
+
inert: !i.value || void 0,
|
|
1117
|
+
"aria-hidden": !i.value || void 0,
|
|
1167
1118
|
tabindex: i.value ? -1 : void 0
|
|
1168
|
-
}, [
|
|
1119
|
+
}, [M("div", dt, [K(e.$slots, "default")])], 10, ut));
|
|
1169
1120
|
}
|
|
1170
|
-
}),
|
|
1121
|
+
}), pt = /* @__PURE__ */ P({
|
|
1171
1122
|
__name: "DockControl",
|
|
1172
1123
|
props: {
|
|
1173
1124
|
shape: { default: "icon" },
|
|
@@ -1198,28 +1149,28 @@ var pt = /* @__PURE__ */ F({
|
|
|
1198
1149
|
] }
|
|
1199
1150
|
},
|
|
1200
1151
|
setup(t) {
|
|
1201
|
-
let
|
|
1202
|
-
...
|
|
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 ? {
|
|
1203
1154
|
"aria-pressed": "true",
|
|
1204
1155
|
"data-active": ""
|
|
1205
1156
|
} : {},
|
|
1206
|
-
...
|
|
1207
|
-
...
|
|
1157
|
+
...r.disabled ? {
|
|
1158
|
+
...r.as === "button" && !r.asChild ? { disabled: !0 } : {},
|
|
1208
1159
|
"aria-disabled": "true"
|
|
1209
1160
|
} : {}
|
|
1210
|
-
})), l =
|
|
1211
|
-
disabled: () =>
|
|
1161
|
+
})), l = O(() => !r.asChild && r.as === "button" ? { type: r.type } : {}), u = i("press"), d = a({
|
|
1162
|
+
disabled: () => r.disabled || o.value,
|
|
1212
1163
|
squish: !0,
|
|
1213
1164
|
response: u.response,
|
|
1214
1165
|
dampingFraction: u.dampingFraction,
|
|
1215
1166
|
pressVar: "--dock-press-t",
|
|
1216
1167
|
shrinkDepth: .04,
|
|
1217
1168
|
maxStretch: 1.03
|
|
1218
|
-
}), f =
|
|
1169
|
+
}), f = O(() => o.value ? {} : { ...d.pressStyle.value });
|
|
1219
1170
|
function p(e) {
|
|
1220
|
-
|
|
1171
|
+
r.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1221
1172
|
}
|
|
1222
|
-
return (e,
|
|
1173
|
+
return (e, r) => Q((U(), k(J(oe), F({
|
|
1223
1174
|
as: t.as,
|
|
1224
1175
|
"as-child": t.asChild
|
|
1225
1176
|
}, {
|
|
@@ -1255,9 +1206,9 @@ var pt = /* @__PURE__ */ F({
|
|
|
1255
1206
|
"onKeydown",
|
|
1256
1207
|
"onKeyup",
|
|
1257
1208
|
"onBlur"
|
|
1258
|
-
])), [[J(
|
|
1209
|
+
])), [[J(n)]]);
|
|
1259
1210
|
}
|
|
1260
|
-
}),
|
|
1211
|
+
}), mt = /* @__PURE__ */ P({
|
|
1261
1212
|
inheritAttrs: !1,
|
|
1262
1213
|
__name: "DockTrigger",
|
|
1263
1214
|
props: {
|
|
@@ -1271,28 +1222,28 @@ var pt = /* @__PURE__ */ F({
|
|
|
1271
1222
|
] }
|
|
1272
1223
|
},
|
|
1273
1224
|
setup(t) {
|
|
1274
|
-
let
|
|
1275
|
-
return (e, t) =>
|
|
1276
|
-
default: Z(() => [K(e.$slots, "default"),
|
|
1277
|
-
default: Z(() => [K(e.$slots, "icon", {}, () => [
|
|
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), {
|
|
1278
1229
|
class: "dock-select-trigger__chevron",
|
|
1279
1230
|
"aria-hidden": "true"
|
|
1280
1231
|
})])]),
|
|
1281
1232
|
_: 3
|
|
1282
1233
|
})]),
|
|
1283
1234
|
_: 3
|
|
1284
|
-
}, 16, ["class"])), [[J(
|
|
1235
|
+
}, 16, ["class"])), [[J(n)]]) : r.for === "dropdown" ? Q((U(), k(d, F({ key: 1 }, e.$attrs, {
|
|
1285
1236
|
action: "pointerdown",
|
|
1286
|
-
class:
|
|
1237
|
+
class: i.value
|
|
1287
1238
|
}), {
|
|
1288
1239
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1289
1240
|
_: 3
|
|
1290
|
-
}, 16, ["class"])), [[J(
|
|
1241
|
+
}, 16, ["class"])), [[J(n)]]) : Q((U(), k(J(ae), F({ key: 2 }, e.$attrs, { class: i.value }), {
|
|
1291
1242
|
default: Z(() => [K(e.$slots, "default")]),
|
|
1292
1243
|
_: 3
|
|
1293
|
-
}, 16, ["class"])), [[J(
|
|
1244
|
+
}, 16, ["class"])), [[J(n)]]);
|
|
1294
1245
|
}
|
|
1295
|
-
}),
|
|
1246
|
+
}), ht = /* @__PURE__ */ P({
|
|
1296
1247
|
__name: "DockBackgroundToggle",
|
|
1297
1248
|
props: {
|
|
1298
1249
|
paused: {
|
|
@@ -1304,11 +1255,11 @@ var pt = /* @__PURE__ */ F({
|
|
|
1304
1255
|
},
|
|
1305
1256
|
emits: ["update:paused"],
|
|
1306
1257
|
setup(e, { emit: t }) {
|
|
1307
|
-
let n = e, r = t, i =
|
|
1258
|
+
let n = e, r = t, i = O(() => n.paused ? n.playLabel : n.pauseLabel);
|
|
1308
1259
|
function a() {
|
|
1309
1260
|
r("update:paused", !n.paused);
|
|
1310
1261
|
}
|
|
1311
|
-
return (t, n) => (
|
|
1262
|
+
return (t, n) => (U(), k(pt, {
|
|
1312
1263
|
type: "button",
|
|
1313
1264
|
active: e.paused,
|
|
1314
1265
|
"aria-pressed": e.paused,
|
|
@@ -1316,11 +1267,11 @@ var pt = /* @__PURE__ */ F({
|
|
|
1316
1267
|
title: i.value,
|
|
1317
1268
|
onClick: a
|
|
1318
1269
|
}, {
|
|
1319
|
-
default: Z(() => [e.paused ? (
|
|
1270
|
+
default: Z(() => [e.paused ? (U(), k(J(de), {
|
|
1320
1271
|
key: 0,
|
|
1321
1272
|
size: 18,
|
|
1322
1273
|
"aria-hidden": "true"
|
|
1323
|
-
})) : (
|
|
1274
|
+
})) : (U(), k(J(ue), {
|
|
1324
1275
|
key: 1,
|
|
1325
1276
|
size: 18,
|
|
1326
1277
|
"aria-hidden": "true"
|
|
@@ -1333,332 +1284,36 @@ var pt = /* @__PURE__ */ F({
|
|
|
1333
1284
|
"title"
|
|
1334
1285
|
]));
|
|
1335
1286
|
}
|
|
1336
|
-
}),
|
|
1287
|
+
}), gt = [
|
|
1337
1288
|
"data-orientation",
|
|
1338
1289
|
"data-rail-anchor",
|
|
1339
1290
|
"aria-orientation"
|
|
1340
|
-
],
|
|
1291
|
+
], _t = /* @__PURE__ */ P({
|
|
1341
1292
|
__name: "DockSeparator",
|
|
1342
1293
|
props: { anchor: {
|
|
1343
1294
|
type: Boolean,
|
|
1344
1295
|
default: !1
|
|
1345
1296
|
} },
|
|
1346
1297
|
setup(e) {
|
|
1347
|
-
let t =
|
|
1348
|
-
return (t, n) => (
|
|
1349
|
-
class:
|
|
1298
|
+
let t = p(), n = O(() => t?.orientation.value ?? "horizontal"), r = O(() => n.value), i = O(() => n.value === "vertical" ? "horizontal" : "vertical");
|
|
1299
|
+
return (t, n) => (U(), j("div", {
|
|
1300
|
+
class: L(["dock-separator", { "dock-separator--anchor": e.anchor }]),
|
|
1350
1301
|
role: "separator",
|
|
1351
1302
|
"data-orientation": r.value,
|
|
1352
1303
|
"data-rail-anchor": e.anchor || void 0,
|
|
1353
1304
|
"aria-orientation": i.value
|
|
1354
|
-
}, null, 10,
|
|
1355
|
-
}
|
|
1356
|
-
});
|
|
1357
|
-
//#endregion
|
|
1358
|
-
//#region src/components/dock/composables/useDockPopover.ts
|
|
1359
|
-
function Ot(e) {
|
|
1360
|
-
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, l = !1;
|
|
1361
|
-
function u() {
|
|
1362
|
-
o != null && (clearTimeout(o), o = null);
|
|
1363
|
-
}
|
|
1364
|
-
function d() {
|
|
1365
|
-
s != null && (clearTimeout(s), s = null);
|
|
1366
|
-
}
|
|
1367
|
-
function f() {
|
|
1368
|
-
let t = e.anchor(), i = e.popover.value;
|
|
1369
|
-
if (!t || !i) return;
|
|
1370
|
-
let a = t.getBoundingClientRect(), o = i.offsetWidth, s = i.offsetHeight, c = ie(e.side) ?? "top", l = ie(e.align) ?? "center", u = (e, t, n) => l === "start" ? e : l === "end" ? e + t - n : e + t / 2 - n / 2, d = 0, f = 0;
|
|
1371
|
-
switch (c) {
|
|
1372
|
-
case "bottom":
|
|
1373
|
-
d = a.bottom + n, f = u(a.left, a.width, o);
|
|
1374
|
-
break;
|
|
1375
|
-
case "left":
|
|
1376
|
-
f = a.left - o - n, d = u(a.top, a.height, s);
|
|
1377
|
-
break;
|
|
1378
|
-
case "right":
|
|
1379
|
-
f = a.right + n, d = u(a.top, a.height, s);
|
|
1380
|
-
break;
|
|
1381
|
-
default:
|
|
1382
|
-
d = a.top - s - n, f = u(a.left, a.width, o);
|
|
1383
|
-
break;
|
|
1384
|
-
}
|
|
1385
|
-
let p = Math.max(r, window.innerWidth - o - r), m = Math.max(r, window.innerHeight - s - r);
|
|
1386
|
-
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`;
|
|
1387
|
-
}
|
|
1388
|
-
function p() {
|
|
1389
|
-
f();
|
|
1390
|
-
}
|
|
1391
|
-
function m(t) {
|
|
1392
|
-
let n = t.target, r = e.popover.value, i = e.anchor();
|
|
1393
|
-
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1394
|
-
}
|
|
1395
|
-
function h() {
|
|
1396
|
-
c || (c = !0, window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), document.addEventListener("pointerdown", m, !0));
|
|
1397
|
-
}
|
|
1398
|
-
function g() {
|
|
1399
|
-
c && (c = !1, window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0), document.removeEventListener("pointerdown", m, !0));
|
|
1400
|
-
}
|
|
1401
|
-
function _() {
|
|
1402
|
-
u(), d();
|
|
1403
|
-
let n = e.popover.value;
|
|
1404
|
-
if (!(!n || t.value)) {
|
|
1405
|
-
try {
|
|
1406
|
-
n.showPopover();
|
|
1407
|
-
} catch {
|
|
1408
|
-
return;
|
|
1409
|
-
}
|
|
1410
|
-
t.value = !0, f(), h();
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
function v() {
|
|
1414
|
-
u(), d();
|
|
1415
|
-
let n = e.popover.value;
|
|
1416
|
-
if (!n || !t.value) return;
|
|
1417
|
-
let r = n.contains(document.activeElement);
|
|
1418
|
-
try {
|
|
1419
|
-
n.hidePopover();
|
|
1420
|
-
} catch {}
|
|
1421
|
-
if (t.value = !1, g(), r) {
|
|
1422
|
-
l = !0;
|
|
1423
|
-
try {
|
|
1424
|
-
e.anchor()?.focus();
|
|
1425
|
-
} finally {
|
|
1426
|
-
l = !1;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
function y() {
|
|
1431
|
-
t.value ? v() : _();
|
|
1432
|
-
}
|
|
1433
|
-
function b() {
|
|
1434
|
-
d(), !t.value && (u(), o = setTimeout(() => {
|
|
1435
|
-
o = null, _();
|
|
1436
|
-
}, i));
|
|
1437
|
-
}
|
|
1438
|
-
function x() {
|
|
1439
|
-
u(), D();
|
|
1440
|
-
}
|
|
1441
|
-
function S() {
|
|
1442
|
-
u(), d();
|
|
1443
|
-
}
|
|
1444
|
-
function C() {
|
|
1445
|
-
D();
|
|
1446
|
-
}
|
|
1447
|
-
function w() {
|
|
1448
|
-
l || (u(), d(), _());
|
|
1449
|
-
}
|
|
1450
|
-
function T(t) {
|
|
1451
|
-
let n = t.relatedTarget, r = e.popover.value, i = e.anchor();
|
|
1452
|
-
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1453
|
-
}
|
|
1454
|
-
function E(e) {
|
|
1455
|
-
t.value && (e.preventDefault(), e.stopPropagation(), v());
|
|
1456
|
-
}
|
|
1457
|
-
function D() {
|
|
1458
|
-
d(), s = setTimeout(() => {
|
|
1459
|
-
s = null, v();
|
|
1460
|
-
}, a);
|
|
1461
|
-
}
|
|
1462
|
-
return V(() => {
|
|
1463
|
-
u(), d(), g();
|
|
1464
|
-
let n = e.popover.value;
|
|
1465
|
-
if (n && t.value) try {
|
|
1466
|
-
n.hidePopover();
|
|
1467
|
-
} catch {}
|
|
1468
|
-
}), {
|
|
1469
|
-
open: t,
|
|
1470
|
-
show: _,
|
|
1471
|
-
hide: v,
|
|
1472
|
-
toggle: y,
|
|
1473
|
-
place: f,
|
|
1474
|
-
onAnchorEnter: b,
|
|
1475
|
-
onAnchorLeave: x,
|
|
1476
|
-
onPopoverEnter: S,
|
|
1477
|
-
onPopoverLeave: C,
|
|
1478
|
-
onFocusIn: w,
|
|
1479
|
-
onFocusOut: T,
|
|
1480
|
-
onEscape: E
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
//#endregion
|
|
1484
|
-
//#region src/components/dock/DockStack.vue?vue&type=script&setup=true&lang.ts
|
|
1485
|
-
var kt = ["data-orientation", "data-mode"], At = ["data-scrolls", "data-wrap"], jt = /* @__PURE__ */ F({
|
|
1486
|
-
__name: "DockStack",
|
|
1487
|
-
props: /* @__PURE__ */ I({
|
|
1488
|
-
items: {},
|
|
1489
|
-
mode: { default: "stack" },
|
|
1490
|
-
core: {},
|
|
1491
|
-
coreLabel: { default: "Open stack" },
|
|
1492
|
-
visibleCount: { default: 3 },
|
|
1493
|
-
wrap: {
|
|
1494
|
-
type: Boolean,
|
|
1495
|
-
default: !1
|
|
1496
|
-
},
|
|
1497
|
-
position: { default: "end" }
|
|
1498
|
-
}, {
|
|
1499
|
-
selected: {},
|
|
1500
|
-
selectedModifiers: {}
|
|
1501
|
-
}),
|
|
1502
|
-
emits: /* @__PURE__ */ I(["select"], ["update:selected"]),
|
|
1503
|
-
setup(e, { emit: t }) {
|
|
1504
|
-
let n = e, r = t, i = oe(e, "selected"), a = m(), o = k(() => a?.orientation.value ?? "vertical"), s = k(() => n.core ?? pe), c = k(() => [...n.items]), l = k(() => n.mode === "facets"), u = k(() => c.value.length > n.visibleCount), d = `dock-stack-fan-${ae()}`, f = Y("stackRoot"), p = Y("fanEl"), h = Ot({
|
|
1505
|
-
anchor: () => f.value?.querySelector(".dock-stack-core") ?? null,
|
|
1506
|
-
popover: p,
|
|
1507
|
-
side: () => o.value === "vertical" ? "right" : "top",
|
|
1508
|
-
align: k(() => n.position === "start" ? "start" : "end")
|
|
1509
|
-
});
|
|
1510
|
-
function g(e) {
|
|
1511
|
-
i.value = e.id, e.onSelect?.(), r("select", e.id), h.hide();
|
|
1512
|
-
}
|
|
1513
|
-
return (t, n) => (H(), M("div", {
|
|
1514
|
-
ref_key: "stackRoot",
|
|
1515
|
-
ref: f,
|
|
1516
|
-
class: R(["dock-stack", [
|
|
1517
|
-
o.value,
|
|
1518
|
-
`mode-${e.mode}`,
|
|
1519
|
-
`at-${e.position}`
|
|
1520
|
-
]]),
|
|
1521
|
-
"data-orientation": o.value,
|
|
1522
|
-
"data-mode": e.mode,
|
|
1523
|
-
onFocusin: n[2] ||= (...e) => J(h).onFocusIn && J(h).onFocusIn(...e),
|
|
1524
|
-
onFocusout: n[3] ||= (e) => J(h).onFocusOut(e),
|
|
1525
|
-
onKeydown: n[4] ||= se((...e) => J(h).onEscape && J(h).onEscape(...e), ["escape"])
|
|
1526
|
-
}, [P(Ct, {
|
|
1527
|
-
type: "button",
|
|
1528
|
-
class: "dock-stack-core",
|
|
1529
|
-
"aria-label": e.coreLabel,
|
|
1530
|
-
"aria-expanded": J(h).open.value,
|
|
1531
|
-
"aria-controls": d,
|
|
1532
|
-
title: e.coreLabel,
|
|
1533
|
-
onPointerenter: J(h).onAnchorEnter,
|
|
1534
|
-
onPointerleave: J(h).onAnchorLeave,
|
|
1535
|
-
onClick: J(h).toggle
|
|
1536
|
-
}, {
|
|
1537
|
-
default: Z(() => [(H(), A(q(s.value), {
|
|
1538
|
-
class: "size-4",
|
|
1539
|
-
"aria-hidden": "true"
|
|
1540
|
-
}))]),
|
|
1541
|
-
_: 1
|
|
1542
|
-
}, 8, [
|
|
1543
|
-
"aria-label",
|
|
1544
|
-
"aria-expanded",
|
|
1545
|
-
"title",
|
|
1546
|
-
"onPointerenter",
|
|
1547
|
-
"onPointerleave",
|
|
1548
|
-
"onClick"
|
|
1549
|
-
]), N("div", {
|
|
1550
|
-
id: d,
|
|
1551
|
-
ref_key: "fanEl",
|
|
1552
|
-
ref: p,
|
|
1553
|
-
popover: "manual",
|
|
1554
|
-
class: R(["dock-stack-fan", [
|
|
1555
|
-
o.value,
|
|
1556
|
-
`mode-${e.mode}`,
|
|
1557
|
-
{ "mode-facets": l.value }
|
|
1558
|
-
]]),
|
|
1559
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1560
|
-
"data-wrap": e.wrap || void 0,
|
|
1561
|
-
onPointerenter: n[0] ||= (...e) => J(h).onPopoverEnter && J(h).onPopoverEnter(...e),
|
|
1562
|
-
onPointerleave: n[1] ||= (...e) => J(h).onPopoverLeave && J(h).onPopoverLeave(...e)
|
|
1563
|
-
}, [P(b, {
|
|
1564
|
-
axis: o.value === "vertical" ? "x" : "y",
|
|
1565
|
-
class: "dock-stack-fan-scroll",
|
|
1566
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1567
|
-
"data-wrap": e.wrap || void 0
|
|
1568
|
-
}, {
|
|
1569
|
-
default: Z(() => [(H(!0), M(O, null, G(c.value, (e, t) => (H(), A(Ct, {
|
|
1570
|
-
key: e.id,
|
|
1571
|
-
type: "button",
|
|
1572
|
-
class: R(["dock-stack-member", {
|
|
1573
|
-
"is-active": i.value === e.id,
|
|
1574
|
-
"dock-facet-chip": l.value
|
|
1575
|
-
}]),
|
|
1576
|
-
style: z({
|
|
1577
|
-
"--i": t,
|
|
1578
|
-
...l.value && e.accent ? {
|
|
1579
|
-
"--glass-accent": e.accent,
|
|
1580
|
-
"--glass-accent-strength": "var(--dock-facet-accent-strength)"
|
|
1581
|
-
} : {}
|
|
1582
|
-
}),
|
|
1583
|
-
"aria-label": e.label,
|
|
1584
|
-
"aria-pressed": i.value === e.id,
|
|
1585
|
-
title: e.label,
|
|
1586
|
-
onClick: (t) => g(e)
|
|
1587
|
-
}, {
|
|
1588
|
-
default: Z(() => [(H(), A(q(e.icon ?? s.value), {
|
|
1589
|
-
class: "size-4",
|
|
1590
|
-
"aria-hidden": "true"
|
|
1591
|
-
}))]),
|
|
1592
|
-
_: 2
|
|
1593
|
-
}, 1032, [
|
|
1594
|
-
"class",
|
|
1595
|
-
"style",
|
|
1596
|
-
"aria-label",
|
|
1597
|
-
"aria-pressed",
|
|
1598
|
-
"title",
|
|
1599
|
-
"onClick"
|
|
1600
|
-
]))), 128))]),
|
|
1601
|
-
_: 1
|
|
1602
|
-
}, 8, [
|
|
1603
|
-
"axis",
|
|
1604
|
-
"data-scrolls",
|
|
1605
|
-
"data-wrap"
|
|
1606
|
-
])], 42, At)], 42, kt));
|
|
1607
|
-
}
|
|
1608
|
-
}), Mt = ["aria-label"], Nt = [
|
|
1609
|
-
"data-kind",
|
|
1610
|
-
"data-section-id",
|
|
1611
|
-
"aria-label"
|
|
1612
|
-
], Pt = /* @__PURE__ */ F({
|
|
1613
|
-
__name: "DockSection",
|
|
1614
|
-
props: {
|
|
1615
|
-
sections: {},
|
|
1616
|
-
anchorId: {},
|
|
1617
|
-
ariaLabel: { default: "Dock sections" }
|
|
1618
|
-
},
|
|
1619
|
-
setup(e) {
|
|
1620
|
-
let t = e, n = k(() => {
|
|
1621
|
-
if (t.anchorId) return t.anchorId;
|
|
1622
|
-
let e = t.sections.find((e) => e.kind === "nav");
|
|
1623
|
-
return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
|
|
1624
|
-
});
|
|
1625
|
-
function r(e) {
|
|
1626
|
-
return e > 0;
|
|
1627
|
-
}
|
|
1628
|
-
function i(e) {
|
|
1629
|
-
return e.id === n.value;
|
|
1630
|
-
}
|
|
1631
|
-
function a(e) {
|
|
1632
|
-
return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
|
|
1633
|
-
}
|
|
1634
|
-
return (t, n) => (H(), M("div", {
|
|
1635
|
-
class: "dock-section",
|
|
1636
|
-
role: "group",
|
|
1637
|
-
"aria-label": e.ariaLabel
|
|
1638
|
-
}, [(H(!0), M(O, null, G(e.sections, (e, n) => (H(), M(O, { key: e.id }, [r(n) ? (H(), A(Dt, {
|
|
1639
|
-
key: 0,
|
|
1640
|
-
anchor: i(e)
|
|
1641
|
-
}, null, 8, ["anchor"])) : j("", !0), N("div", {
|
|
1642
|
-
class: R(["dock-section-zone", a(e.kind)]),
|
|
1643
|
-
"data-kind": e.kind,
|
|
1644
|
-
"data-section-id": e.id,
|
|
1645
|
-
role: "group",
|
|
1646
|
-
"aria-label": e.label || void 0
|
|
1647
|
-
}, [K(t.$slots, e.id, {
|
|
1648
|
-
section: e,
|
|
1649
|
-
kind: e.kind
|
|
1650
|
-
})], 10, Nt)], 64))), 128))], 8, Mt));
|
|
1305
|
+
}, null, 10, gt));
|
|
1651
1306
|
}
|
|
1652
1307
|
});
|
|
1653
1308
|
//#endregion
|
|
1654
1309
|
//#region src/components/dock/composables/useDockSearch.ts
|
|
1655
|
-
function
|
|
1656
|
-
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;
|
|
1657
1312
|
function s(t) {
|
|
1658
1313
|
let n = t.item.id;
|
|
1659
1314
|
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
1660
1315
|
}
|
|
1661
|
-
let c =
|
|
1316
|
+
let c = E({
|
|
1662
1317
|
items: o,
|
|
1663
1318
|
debounceMs: n,
|
|
1664
1319
|
maxResults: r,
|
|
@@ -1679,7 +1334,7 @@ function Ft(e) {
|
|
|
1679
1334
|
});
|
|
1680
1335
|
});
|
|
1681
1336
|
}
|
|
1682
|
-
let l =
|
|
1337
|
+
let l = O(() => {
|
|
1683
1338
|
let e = c.query.value;
|
|
1684
1339
|
if (!e) return "";
|
|
1685
1340
|
let t = c.results.value[0];
|
|
@@ -1691,15 +1346,15 @@ function Ft(e) {
|
|
|
1691
1346
|
let e = l.value;
|
|
1692
1347
|
e && (c.query.value = c.query.value + e);
|
|
1693
1348
|
}
|
|
1694
|
-
let d =
|
|
1349
|
+
let d = G(!1);
|
|
1695
1350
|
function f() {
|
|
1696
|
-
d.value || (d.value = !0, t.
|
|
1351
|
+
d.value || (d.value = !0, t.expand(), t.keepOpen(), c.open());
|
|
1697
1352
|
}
|
|
1698
1353
|
function p() {
|
|
1699
1354
|
d.value && (d.value = !1, c.close(), t.release());
|
|
1700
1355
|
}
|
|
1701
1356
|
let m = null;
|
|
1702
|
-
return e.collapseOnScroll && e.scrollContainer && (m =
|
|
1357
|
+
return e.collapseOnScroll && e.scrollContainer && (m = S(e.scrollContainer, {
|
|
1703
1358
|
collapseOnScroll: !0,
|
|
1704
1359
|
chromeRef: e.chromeRef
|
|
1705
1360
|
})), V(() => {
|
|
@@ -1715,76 +1370,4 @@ function Ft(e) {
|
|
|
1715
1370
|
};
|
|
1716
1371
|
}
|
|
1717
1372
|
//#endregion
|
|
1718
|
-
|
|
1719
|
-
var It = {
|
|
1720
|
-
class: "goo-filter-host",
|
|
1721
|
-
"aria-hidden": "true",
|
|
1722
|
-
focusable: "false",
|
|
1723
|
-
width: "1",
|
|
1724
|
-
height: "1"
|
|
1725
|
-
}, Lt = ["id"], Rt = ["stdDeviation"], zt = ["values"], Bt = /* @__PURE__ */ o(/* @__PURE__ */ F({
|
|
1726
|
-
__name: "GooFilter",
|
|
1727
|
-
props: { extra: { default: () => [] } },
|
|
1728
|
-
setup(e) {
|
|
1729
|
-
let t = [
|
|
1730
|
-
{
|
|
1731
|
-
id: "glass-goo",
|
|
1732
|
-
blur: 10,
|
|
1733
|
-
slope: 15,
|
|
1734
|
-
offset: -7
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
id: "dock-fission-goo",
|
|
1738
|
-
blur: 7,
|
|
1739
|
-
slope: 20,
|
|
1740
|
-
offset: -9
|
|
1741
|
-
},
|
|
1742
|
-
{
|
|
1743
|
-
id: "pager-worm-goo",
|
|
1744
|
-
blur: 4,
|
|
1745
|
-
slope: 18,
|
|
1746
|
-
offset: -6
|
|
1747
|
-
},
|
|
1748
|
-
{
|
|
1749
|
-
id: "dock-morph-goo",
|
|
1750
|
-
blur: 16,
|
|
1751
|
-
slope: 14,
|
|
1752
|
-
offset: -7
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
id: "morph-goo",
|
|
1756
|
-
blur: 10,
|
|
1757
|
-
slope: 18,
|
|
1758
|
-
offset: -7
|
|
1759
|
-
}
|
|
1760
|
-
], n = e, r = k(() => [...t, ...n.extra]);
|
|
1761
|
-
return (e, t) => (H(), M("svg", It, [N("defs", null, [(H(!0), M(O, null, G(r.value, (e) => (H(), M("filter", {
|
|
1762
|
-
key: e.id,
|
|
1763
|
-
id: e.id,
|
|
1764
|
-
"color-interpolation-filters": "sRGB",
|
|
1765
|
-
x: "-50%",
|
|
1766
|
-
y: "-50%",
|
|
1767
|
-
width: "200%",
|
|
1768
|
-
height: "200%"
|
|
1769
|
-
}, [
|
|
1770
|
-
N("feGaussianBlur", {
|
|
1771
|
-
in: "SourceGraphic",
|
|
1772
|
-
stdDeviation: e.blur,
|
|
1773
|
-
result: "blur"
|
|
1774
|
-
}, null, 8, Rt),
|
|
1775
|
-
N("feColorMatrix", {
|
|
1776
|
-
in: "blur",
|
|
1777
|
-
mode: "matrix",
|
|
1778
|
-
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${e.slope} ${e.offset}`,
|
|
1779
|
-
result: "goo"
|
|
1780
|
-
}, null, 8, zt),
|
|
1781
|
-
t[0] ||= N("feComposite", {
|
|
1782
|
-
in: "SourceGraphic",
|
|
1783
|
-
in2: "goo",
|
|
1784
|
-
operator: "atop"
|
|
1785
|
-
}, null, -1)
|
|
1786
|
-
], 8, Lt))), 128))])]));
|
|
1787
|
-
}
|
|
1788
|
-
}), [["__scopeId", "data-v-0a04b2a9"]]);
|
|
1789
|
-
//#endregion
|
|
1790
|
-
export { y as DOCK_CONTEXT_KEY, Tt as DockBackgroundToggle, Ct as DockControl, pt as DockCrossfade, St as DockLayer, yt as DockLayerGroup, Pt as DockSection, Dt as DockSeparator, jt as DockStack, wt as DockTrigger, ct as GlassDock, Bt as GooFilter, h as provideDockContext, _ as useDockContext, S as useDockCtaReceive, Ft as useDockSearch, m 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 };
|