fancy-ui-vue 0.2.0 → 0.3.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/PORTING.md +123 -2
- package/README.md +15 -13
- package/dist/components/accordion/Accordion.vue.d.ts +44 -0
- package/dist/components/accordion/Accordion.vue.js +88 -0
- package/dist/components/accordion/Accordion.vue2.js +4 -0
- package/dist/components/accordion/AccordionContent.vue.d.ts +25 -0
- package/dist/components/accordion/AccordionContent.vue.js +42 -0
- package/dist/components/accordion/AccordionContent.vue2.js +4 -0
- package/dist/components/accordion/AccordionItem.vue.d.ts +21 -0
- package/dist/components/accordion/AccordionItem.vue.js +66 -0
- package/dist/components/accordion/AccordionItem.vue2.js +4 -0
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +24 -0
- package/dist/components/accordion/AccordionTrigger.vue.js +83 -0
- package/dist/components/accordion/AccordionTrigger.vue2.js +4 -0
- package/dist/components/accordion/accordion-core.d.ts +35 -0
- package/dist/components/accordion/accordion-core.js +44 -0
- package/dist/components/accordion/index.d.ts +11 -0
- package/dist/components/accordion/types.d.ts +45 -0
- package/dist/components/accordion/types.js +7 -0
- package/dist/components/alert-dialog/AlertDialog.vue.js +22 -3
- package/dist/components/animated-testimonials/AnimatedTestimonials.vue.js +3 -3
- package/dist/components/apple-card-carousel/AppleCard.vue.js +1 -1
- package/dist/components/autocomplete/Autocomplete.vue.js +1 -1
- package/dist/components/autocomplete/Autocomplete.vue2.js +22 -15
- package/dist/components/avatar/Avatar.vue.d.ts +27 -0
- package/dist/components/avatar/Avatar.vue.js +119 -0
- package/dist/components/avatar/Avatar.vue2.js +4 -0
- package/dist/components/avatar/avatar-core.d.ts +40 -0
- package/dist/components/avatar/avatar-core.js +57 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/Badge.vue.d.ts +21 -0
- package/dist/components/badge/Badge.vue.js +46 -0
- package/dist/components/badge/Badge.vue2.js +4 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/bento-grid/BentoFrame.vue.js +1 -1
- package/dist/components/bento-grid/BentoFrame.vue2.js +6 -5
- package/dist/components/bento-grid/BentoGrid.vue.js +1 -1
- package/dist/components/bento-grid/BentoGrid.vue2.js +12 -12
- package/dist/components/bento-grid/BentoGridCard.vue.js +6 -5
- package/dist/components/bento-grid/BentoGridItem.vue.js +6 -5
- package/dist/components/bg-falling-stars/FallingStarsBg.vue.d.ts +1 -1
- package/dist/components/bg-falling-stars/FallingStarsBg.vue.js +1 -1
- package/dist/components/bg-falling-stars/bg-falling-stars-core.d.ts +1 -1
- package/dist/components/bg-falling-stars/bg-falling-stars-core.js +47 -12
- package/dist/components/book/Book.vue.js +8 -9
- package/dist/components/book/BookDescription.vue.js +6 -5
- package/dist/components/book/BookHeader.vue.js +6 -5
- package/dist/components/book/BookTitle.vue.js +6 -5
- package/dist/components/box-reveal/BoxReveal.vue.js +6 -5
- package/dist/components/button/Button.vue.d.ts +6 -4
- package/dist/components/button/Button.vue.js +1 -1
- package/dist/components/button/Button.vue2.js +50 -22
- package/dist/components/card-3d/CardContainer.vue.js +1 -1
- package/dist/components/card-3d/CardItem.vue.js +1 -1
- package/dist/components/card-spotlight/CardSpotlight.vue.js +1 -1
- package/dist/components/chat-message/ChatMessageAction.vue.d.ts +4 -2
- package/dist/components/chat-message/ChatMessageAction.vue.js +4 -2
- package/dist/components/checkbox/Checkbox.vue.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.vue.js +1 -1
- package/dist/components/checkbox/Checkbox.vue2.js +17 -7
- package/dist/components/collapsible/Collapsible.vue.d.ts +31 -0
- package/dist/components/collapsible/Collapsible.vue.js +60 -0
- package/dist/components/collapsible/Collapsible.vue2.js +4 -0
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +26 -0
- package/dist/components/collapsible/CollapsibleContent.vue.js +81 -0
- package/dist/components/collapsible/CollapsibleContent.vue2.js +4 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +21 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue.js +57 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue2.js +4 -0
- package/dist/components/collapsible/collapsible-core.d.ts +47 -0
- package/dist/components/collapsible/collapsible-core.js +40 -0
- package/dist/components/collapsible/index.d.ts +8 -0
- package/dist/components/collapsible/types.d.ts +24 -0
- package/dist/components/collapsible/types.js +5 -0
- package/dist/components/combobox/Combobox.vue.js +1 -1
- package/dist/components/combobox/Combobox.vue2.js +24 -16
- package/dist/components/command-menu/CommandMenu.vue.d.ts +5 -0
- package/dist/components/command-menu/CommandMenu.vue.js +1 -1
- package/dist/components/command-menu/CommandMenu.vue2.js +5 -2
- package/dist/components/compare/Compare.vue.d.ts +15 -5
- package/dist/components/compare/Compare.vue.js +1 -1
- package/dist/components/compare/Compare.vue2.js +28 -13
- package/dist/components/composer/ComposerInput.vue.js +1 -1
- package/dist/components/composer/ComposerInput.vue2.js +11 -11
- package/dist/components/composer/ComposerModelPicker.vue.d.ts +4 -0
- package/dist/components/composer/ComposerModelPicker.vue.js +1 -1
- package/dist/components/composer/ComposerModelPicker.vue2.js +29 -15
- package/dist/components/composer/ComposerSubmit.vue.d.ts +2 -0
- package/dist/components/composer/ComposerSubmit.vue.js +16 -15
- package/dist/components/confetti/ConfettiButton.vue.d.ts +9 -2
- package/dist/components/confetti/ConfettiButton.vue.js +24 -6
- package/dist/components/container-text-flip/ContainerTextFlip.vue.js +1 -1
- package/dist/components/container-text-flip/ContainerTextFlip.vue2.js +12 -13
- package/dist/components/copy-button/CopyButton.vue.d.ts +5 -0
- package/dist/components/copy-button/CopyButton.vue.js +1 -1
- package/dist/components/copy-button/CopyButton.vue2.js +72 -11
- package/dist/components/datamosh-transition/DatamoshTransition.vue.d.ts +6 -2
- package/dist/components/datamosh-transition/DatamoshTransition.vue.js +7 -4
- package/dist/components/date-picker/DatePicker.vue.js +1 -1
- package/dist/components/date-picker/DatePicker.vue2.js +27 -21
- package/dist/components/dialog/Dialog.vue.js +20 -1
- package/dist/components/dialog/DialogSurface.vue.js +1 -1
- package/dist/components/dialog/DialogSurface.vue2.js +5 -2
- package/dist/components/dialog/types.d.ts +2 -0
- package/dist/components/direction-aware-hover/DirectionAwareHover.vue.js +1 -1
- package/dist/components/direction-aware-hover/DirectionAwareHover.vue2.js +9 -7
- package/dist/components/displacement-text/DisplacementText.vue.d.ts +4 -1
- package/dist/components/displacement-text/DisplacementText.vue.js +38 -11
- package/dist/components/displacement-text/displacement-text-core.d.ts +94 -4
- package/dist/components/displacement-text/displacement-text-core.js +287 -97
- package/dist/components/drawer/Drawer.vue.d.ts +5 -0
- package/dist/components/drawer/Drawer.vue.js +1 -1
- package/dist/components/drawer/Drawer.vue2.js +5 -2
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.js +2 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.js +17 -10
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +8 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.js +28 -13
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue2.js +20 -10
- package/dist/components/editorial-engine/EditorialEngine.vue.js +1 -1
- package/dist/components/editorial-engine/engine.js +13 -0
- package/dist/components/file-upload/FileUpload.vue.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.vue.js +1 -1
- package/dist/components/file-upload/FileUpload.vue2.js +20 -10
- package/dist/components/fireworks-hdr/FireworksHdr.vue.js +2 -2
- package/dist/components/flickering-grid/FlickeringGrid.vue.d.ts +1 -1
- package/dist/components/flickering-grid/FlickeringGrid.vue.js +1 -1
- package/dist/components/flickering-grid/flickering-grid-core.d.ts +1 -1
- package/dist/components/flickering-grid/flickering-grid-core.js +51 -9
- package/dist/components/flip-card/FlipCard.vue.d.ts +3 -1
- package/dist/components/flip-card/FlipCard.vue.js +1 -1
- package/dist/components/flip-card/FlipCard.vue2.js +5 -3
- package/dist/components/fluid-cursor/FluidCursor.vue.js +37 -9
- package/dist/components/fluid-cursor/fluid-cursor-core.js +3 -3
- package/dist/components/fluid-cursor/webgpu-engine.js +3 -3
- package/dist/components/focus/Focus.vue.js +1 -1
- package/dist/components/focus/Focus.vue2.js +2 -2
- package/dist/components/follow-button/FollowButton.vue.d.ts +69 -0
- package/dist/components/follow-button/FollowButton.vue.js +7 -0
- package/dist/components/follow-button/FollowButton.vue2.js +239 -0
- package/dist/components/follow-button/follow-core.d.ts +83 -0
- package/dist/components/follow-button/follow-core.js +92 -0
- package/dist/components/follow-button/index.d.ts +2 -0
- package/dist/components/frosted-glass/FrostedGlass.vue.js +1 -1
- package/dist/components/glare-card/GlareCard.vue.js +1 -1
- package/dist/components/glare-card/GlareCard.vue2.js +4 -4
- package/dist/components/glowing-effect/GlowingEffect.vue.js +3 -3
- package/dist/components/glowing-effect/glowing-effect-core.js +4 -1
- package/dist/components/gradient-button/GradientButton.vue.d.ts +6 -4
- package/dist/components/gradient-button/GradientButton.vue.js +1 -1
- package/dist/components/gradient-button/GradientButton.vue2.js +13 -3
- package/dist/components/icon-button/IconButton.vue.d.ts +6 -4
- package/dist/components/icon-button/IconButton.vue.js +11 -8
- package/dist/components/image-trail-cursor/ImageTrailCursor.vue.js +17 -7
- package/dist/components/image-trail-cursor/trail-variants.js +3 -6
- package/dist/components/inline-citation/InlineCitation.vue.js +1 -1
- package/dist/components/inline-citation/InlineCitation.vue2.js +20 -14
- package/dist/components/input/Input.vue.js +1 -1
- package/dist/components/input/Input.vue2.js +18 -8
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.vue.js +1 -1
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.vue2.js +1 -1
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue.d.ts +6 -3
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue.js +1 -1
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue2.js +12 -2
- package/dist/components/letter-pullup/LetterPullup.vue.js +4 -4
- package/dist/components/line-hover-link/LineHoverLink.vue.js +1 -1
- package/dist/components/line-hover-link/LineHoverLink.vue2.js +5 -6
- package/dist/components/link/Link.vue.d.ts +4 -2
- package/dist/components/link/Link.vue.js +1 -1
- package/dist/components/link/Link.vue2.js +11 -8
- package/dist/components/mosaic-glow/MosaicGlow.vue.d.ts +6 -0
- package/dist/components/mosaic-glow/MosaicGlow.vue.js +53 -9
- package/dist/components/mosaic-glow/mosaic-glow-core.d.ts +30 -0
- package/dist/components/mosaic-glow/mosaic-glow-core.js +27 -0
- package/dist/components/mosaic-glow/mosaic-glow-hdr.d.ts +24 -0
- package/dist/components/mosaic-glow/mosaic-glow-hdr.js +200 -0
- package/dist/components/navbar/NavbarLink.vue.d.ts +4 -2
- package/dist/components/navbar/NavbarLink.vue.js +1 -1
- package/dist/components/navbar/NavbarLink.vue2.js +16 -13
- package/dist/components/navigation-menu/NavigationMenu.vue.js +6 -3
- package/dist/components/navigation-menu/NavigationMenuLink.vue.js +1 -1
- package/dist/components/navigation-menu/NavigationMenuLink.vue2.js +8 -8
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.js +1 -1
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue2.js +36 -15
- package/dist/components/neon-border/NeonBorder.vue.js +1 -1
- package/dist/components/neon-border/NeonBorder.vue2.js +10 -11
- package/dist/components/number-input/NumberInput.vue.js +1 -1
- package/dist/components/number-input/NumberInput.vue2.js +22 -12
- package/dist/components/password-input/PasswordInput.vue.js +1 -1
- package/dist/components/password-input/PasswordInput.vue2.js +18 -11
- package/dist/components/pixel-loader/PixelLoader.vue.js +1 -1
- package/dist/components/pixel-loader/PixelLoader.vue2.js +6 -6
- package/dist/components/popover/Popover.vue.d.ts +4 -0
- package/dist/components/popover/Popover.vue.js +1 -1
- package/dist/components/popover/Popover.vue2.js +8 -6
- package/dist/components/popover/PopoverContent.vue.js +6 -2
- package/dist/components/pulse-beam/PulseBeam.vue.d.ts +6 -2
- package/dist/components/pulse-beam/PulseBeam.vue.js +1 -1
- package/dist/components/pulse-beam/PulseBeam.vue2.js +7 -4
- package/dist/components/radio-group/RadioGroup.vue.js +12 -11
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +2 -0
- package/dist/components/radio-group/RadioGroupItem.vue.js +1 -1
- package/dist/components/radio-group/RadioGroupItem.vue2.js +20 -7
- package/dist/components/rainbow-button/RainbowButton.vue.d.ts +11 -2
- package/dist/components/rainbow-button/RainbowButton.vue.js +1 -1
- package/dist/components/rainbow-button/RainbowButton.vue2.js +35 -18
- package/dist/components/ripple-button/RippleButton.vue.d.ts +6 -4
- package/dist/components/ripple-button/RippleButton.vue.js +1 -1
- package/dist/components/ripple-button/RippleButton.vue2.js +10 -5
- package/dist/components/search-input/SearchInput.vue.js +1 -1
- package/dist/components/search-input/SearchInput.vue2.js +19 -9
- package/dist/components/select/Select.vue.d.ts +1 -1
- package/dist/components/select/Select.vue.js +1 -1
- package/dist/components/select/Select.vue2.js +25 -17
- package/dist/components/sheet/Sheet.vue.d.ts +5 -0
- package/dist/components/sheet/Sheet.vue.js +5 -2
- package/dist/components/shimmer-button/ShimmerButton.vue.d.ts +2 -2
- package/dist/components/shimmer-button/ShimmerButton.vue.js +1 -1
- package/dist/components/shimmer-button/ShimmerButton.vue2.js +14 -6
- package/dist/components/sidebar/SidebarItem.vue.d.ts +4 -2
- package/dist/components/sidebar/SidebarItem.vue.js +1 -1
- package/dist/components/sidebar/SidebarItem.vue2.js +4 -2
- package/dist/components/slider/Slider.vue.d.ts +4 -0
- package/dist/components/slider/Slider.vue.js +1 -1
- package/dist/components/slider/Slider.vue2.js +20 -8
- package/dist/components/sources/SourcesTrigger.vue.js +1 -1
- package/dist/components/sources/SourcesTrigger.vue2.js +11 -11
- package/dist/components/sparkles/sparkles-core.d.ts +1 -1
- package/dist/components/sparkles/sparkles-core.js +36 -2
- package/dist/components/switch/Switch.vue.d.ts +2 -0
- package/dist/components/switch/Switch.vue.js +1 -1
- package/dist/components/switch/Switch.vue2.js +16 -6
- package/dist/components/tabs/TabsTrigger.vue.d.ts +6 -0
- package/dist/components/tabs/TabsTrigger.vue.js +1 -1
- package/dist/components/tabs/TabsTrigger.vue2.js +28 -15
- package/dist/components/terminal-block/TerminalBlock.vue.js +1 -1
- package/dist/components/terminal-block/TerminalBlock.vue2.js +10 -9
- package/dist/components/text-reveal-card/TextRevealCard.vue.js +1 -2
- package/dist/components/textarea/Textarea.vue.js +1 -1
- package/dist/components/textarea/Textarea.vue2.js +19 -12
- package/dist/components/tick-nav/TickNav.vue.d.ts +71 -0
- package/dist/components/tick-nav/TickNav.vue.js +7 -0
- package/dist/components/tick-nav/TickNav.vue2.js +285 -0
- package/dist/components/tick-nav/index.d.ts +3 -0
- package/dist/components/tick-nav/tick-nav-core.d.ts +102 -0
- package/dist/components/tick-nav/tick-nav-core.js +398 -0
- package/dist/components/tick-nav/tick-nav-hdr.d.ts +60 -0
- package/dist/components/tick-nav/tick-nav-hdr.js +284 -0
- package/dist/components/tick-nav/types.d.ts +13 -0
- package/dist/components/time-picker/TimePicker.vue.js +1 -1
- package/dist/components/time-picker/TimePicker.vue2.js +25 -17
- package/dist/components/toast/Toast.vue.js +1 -1
- package/dist/components/toast/Toast.vue2.js +16 -4
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/store.d.ts +23 -0
- package/dist/components/toast/store.js +35 -7
- package/dist/components/toggle/Toggle.vue.d.ts +12 -0
- package/dist/components/toggle/Toggle.vue.js +1 -1
- package/dist/components/toggle/Toggle.vue2.js +27 -11
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +11 -0
- package/dist/components/toggle-group/ToggleGroup.vue.js +1 -1
- package/dist/components/toggle-group/ToggleGroup.vue2.js +16 -3
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +6 -0
- package/dist/components/toggle-group/ToggleGroupItem.vue.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.vue2.js +27 -14
- package/dist/components/tooltip/Tooltip.vue.js +13 -0
- package/dist/components/typing-indicator/TypingIndicator.vue.js +1 -1
- package/dist/components/typing-indicator/TypingIndicator.vue2.js +7 -6
- package/dist/index.d.ts +6 -0
- package/dist/index.js +440 -413
- package/dist/internals/anchor-position.js +3 -0
- package/dist/internals/call-listener.d.ts +11 -0
- package/dist/internals/call-listener.js +31 -0
- package/dist/internals/dismissable.d.ts +17 -0
- package/dist/internals/dismissable.js +44 -1
- package/dist/internals/env.d.ts +1 -0
- package/dist/internals/env.js +11 -0
- package/dist/internals/focus-trap.js +29 -4
- package/dist/internals/merge-ids.d.ts +6 -0
- package/dist/internals/merge-ids.js +11 -0
- package/dist/internals/motion/presence-core.d.ts +1 -1
- package/dist/sound/engine.js +23 -9
- package/dist/sound/themes.d.ts +4 -3
- package/dist/sound/themes.js +49 -211
- package/dist/sound/types.d.ts +9 -1
- package/dist/sound/types.js +2 -2
- package/dist/styles.css +974 -571
- package/package.json +2 -2
- package/tailwind.css +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./FrostedGlass.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const FrostedGlass = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const FrostedGlass = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ddfbc5fd"]]);
|
|
5
5
|
export {
|
|
6
6
|
FrostedGlass as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./GlareCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const GlareCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const GlareCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e22c4654"]]);
|
|
5
5
|
export {
|
|
6
6
|
GlareCard as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, reactive, computed, createElementBlock, openBlock, normalizeStyle, createElementVNode, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
|
-
const _hoisted_1 = { class: "grid h-full origin-center [transform:rotateY(var(--r-x))_rotateX(var(--r-y))] overflow-hidden rounded-lg border border-slate-800
|
|
3
|
+
const _hoisted_1 = { class: "grid h-full origin-center [transform:rotateY(var(--r-x))_rotateX(var(--r-y))] overflow-hidden rounded-lg border border-slate-800 motion-safe:delay-[var(--delay)] motion-safe:duration-[var(--duration)] ease-[var(--easing)] will-change-transform hover:filter-none hover:[--duration:200ms] hover:[--easing:linear] hover:[--opacity:0.6] motion-safe:transition-transform" };
|
|
4
4
|
const _hoisted_2 = { class: "grid size-full mix-blend-soft-light [clip-path:inset(0_0_0_0_round_var(--radius))] [grid-area:1/1]" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
...{ name: "GlareCard", inheritAttrs: false },
|
|
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
return openBlock(), createElementBlock("div", {
|
|
76
76
|
ref_key: "refElement",
|
|
77
77
|
ref: refElement,
|
|
78
|
-
class: "glare-container relative isolate [aspect-ratio:17/21] w-[320px]
|
|
78
|
+
class: "glare-container relative isolate [aspect-ratio:17/21] w-[320px] motion-safe:delay-[var(--delay)] motion-safe:duration-[var(--duration)] ease-[var(--easing)] will-change-transform [contain:layout_style] [perspective:600px] motion-safe:transition-transform",
|
|
79
79
|
style: normalizeStyle(cssVars.value),
|
|
80
80
|
onPointermove: handlePointerMove,
|
|
81
81
|
onPointerenter: handlePointerEnter,
|
|
@@ -89,8 +89,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
90
90
|
], 2)
|
|
91
91
|
]),
|
|
92
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "will-change-background grid size-full opacity-[var(--opacity)] mix-blend-soft-light
|
|
93
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "glare-foil relative grid size-full opacity-[var(--opacity)] [background-blend-mode:hue_hue_hue_overlay] mix-blend-color-dodge
|
|
92
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "will-change-background grid size-full opacity-[var(--opacity)] mix-blend-soft-light motion-safe:delay-[var(--delay)] motion-safe:duration-[var(--duration)] ease-[var(--easing)] [background:radial-gradient(farthest-corner_circle_at_var(--m-x)_var(--m-y),_rgba(255,255,255,0.8)_10%,_rgba(255,255,255,0.65)_20%,_rgba(255,255,255,0)_90%)] [clip-path:inset(0_0_1px_0_round_var(--radius))] [grid-area:1/1] motion-safe:transition-opacity" }, null, -1)),
|
|
93
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "glare-foil relative grid size-full opacity-[var(--opacity)] [background-blend-mode:hue_hue_hue_overlay] mix-blend-color-dodge will-change-[background] [background:var(--pattern),_var(--rainbow),_var(--diagonal),_var(--shade)] [clip-path:inset(0_0_1px_0_round_var(--radius))] [grid-area:1/1] after:bg-[inherit] after:[background-size:var(--foil-size),_200%_400%,_800%,_200%] after:[background-position:center,_0%_var(--bg-y),_calc(var(--bg-x)*_-1)_calc(var(--bg-y)*_-1),_var(--bg-x)_var(--bg-y)] after:[background-blend-mode:soft-light,_hue,_hard-light] after:mix-blend-exclusion after:content-[''] after:[grid-area:1/1] motion-safe:transition-opacity" }, null, -1))
|
|
94
94
|
])
|
|
95
95
|
], 36);
|
|
96
96
|
};
|
|
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
createElementVNode("div", {
|
|
57
57
|
class: normalizeClass(
|
|
58
58
|
unref(cn)(
|
|
59
|
-
"pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 transition-opacity",
|
|
59
|
+
"pointer-events-none absolute -inset-px hidden rounded-[inherit] border opacity-0 motion-safe:transition-opacity",
|
|
60
60
|
__props.glow && "opacity-100",
|
|
61
61
|
__props.variant === "white" && "border-white",
|
|
62
62
|
__props.disabled && "!block"
|
|
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
style: normalizeStyle(containerStyle.value),
|
|
70
70
|
class: normalizeClass(
|
|
71
71
|
unref(cn)(
|
|
72
|
-
"pointer-events-none absolute inset-0 rounded-[inherit] opacity-100 transition-opacity",
|
|
72
|
+
"pointer-events-none absolute inset-0 rounded-[inherit] opacity-100 motion-safe:transition-opacity",
|
|
73
73
|
__props.glow && "opacity-100",
|
|
74
74
|
__props.blur > 0 && "blur-[var(--blur)]",
|
|
75
75
|
__props.class,
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
`after:absolute after:inset-[calc(-1*var(--glowingeffect-border-width))] after:rounded-[inherit] after:content-['']`,
|
|
87
87
|
"after:[border:var(--glowingeffect-border-width)_solid_transparent]",
|
|
88
88
|
"after:[background-attachment:fixed] after:[background:var(--gradient)]",
|
|
89
|
-
"after:opacity-[var(--active)] after:transition-opacity after:duration-300",
|
|
89
|
+
"after:opacity-[var(--active)] after:motion-safe:transition-opacity after:motion-safe:duration-300",
|
|
90
90
|
"after:[mask-clip:padding-box,border-box]",
|
|
91
91
|
"after:[mask-composite:intersect]",
|
|
92
92
|
"after:[mask-image:linear-gradient(#0000,#0000),conic-gradient(from_calc((var(--start)-var(--spread))*1deg),#00000000_0deg,#fff,#00000000_calc(var(--spread)*2deg))]"
|
|
@@ -3,6 +3,9 @@ const DEFAULT_PROXIMITY = 0;
|
|
|
3
3
|
const DEFAULT_MOVEMENT_DURATION = 2;
|
|
4
4
|
const BASE_LERP_SPEED = 0.08;
|
|
5
5
|
const ANGLE_EPSILON = 0.1;
|
|
6
|
+
function prefersReducedMotion() {
|
|
7
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
8
|
+
}
|
|
6
9
|
function createGlowingEffect(el, options, random) {
|
|
7
10
|
const { container } = el;
|
|
8
11
|
let inactiveZone = options.inactiveZone ?? DEFAULT_INACTIVE_ZONE;
|
|
@@ -48,7 +51,7 @@ function createGlowingEffect(el, options, random) {
|
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
function animateAngle() {
|
|
51
|
-
const speed = BASE_LERP_SPEED / Math.max(movementDuration, 0.1);
|
|
54
|
+
const speed = prefersReducedMotion() ? 1 : BASE_LERP_SPEED / Math.max(movementDuration, 0.1);
|
|
52
55
|
currentAngle = currentAngle + (targetAngle - currentAngle) * speed;
|
|
53
56
|
container.style.setProperty("--start", String(currentAngle));
|
|
54
57
|
if (Math.abs(targetAngle - currentAngle) > ANGLE_EPSILON) {
|
|
@@ -15,14 +15,16 @@ export interface GradientButtonProps {
|
|
|
15
15
|
/** Custom CSS class */
|
|
16
16
|
class?: HTMLAttributes["class"];
|
|
17
17
|
/**
|
|
18
|
-
* Plays the
|
|
19
|
-
* default; only audible once the user has enabled sound.
|
|
18
|
+
* Plays the `hover` cue on mouse/pen pointer enter and the `press` cue on
|
|
19
|
+
* click. Off by default; only audible once the user has enabled sound.
|
|
20
20
|
*/
|
|
21
21
|
sound?: boolean;
|
|
22
22
|
/** Native `disabled`, read to guard the sound cue. */
|
|
23
23
|
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/** Click handler, called after the sound cue. `@click` reaches it. */
|
|
25
|
+
onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
26
|
+
/** @deprecated Use `@click` / `onClick`. Only called when `onClick` is absent. */
|
|
27
|
+
onclick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* The beam as a conic gradient: a main arc carrying every colour over ~40%
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./GradientButton.vue2.js";
|
|
|
2
2
|
import { beamGradient } from "./GradientButton.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const GradientButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const GradientButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-936f4f76"]]);
|
|
6
6
|
export {
|
|
7
7
|
beamGradient,
|
|
8
8
|
GradientButton as default
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, createElementVNode, renderSlot } from "vue";
|
|
1
|
+
import { defineComponent, useTemplateRef, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, createElementVNode, renderSlot } from "vue";
|
|
2
|
+
import { callListener } from "../../internals/call-listener.js";
|
|
2
3
|
import { cn } from "../../utils.js";
|
|
3
4
|
import { sound } from "../../sound/sound.js";
|
|
5
|
+
import { useSoundFeedback } from "../../sound/use-sound-feedback.js";
|
|
4
6
|
const _hoisted_1 = ["disabled"];
|
|
5
7
|
const _hoisted_2 = { class: "gradient-content inline-flex size-full items-center justify-center px-5 py-2.5" };
|
|
6
8
|
function beamGradient(colors) {
|
|
@@ -29,9 +31,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
31
|
class: { type: [Boolean, null, String, Object, Array] },
|
|
30
32
|
sound: { type: Boolean, default: false },
|
|
31
33
|
disabled: { type: Boolean, default: false },
|
|
32
|
-
|
|
34
|
+
onClick: { type: [Function, Array] },
|
|
35
|
+
onclick: { type: [Function, Array] }
|
|
33
36
|
},
|
|
34
37
|
setup(__props) {
|
|
38
|
+
const el = useTemplateRef("el");
|
|
39
|
+
useSoundFeedback(el, () => ({
|
|
40
|
+
on: __props.sound ? { pointerenter: "hover" } : {},
|
|
41
|
+
disabled: __props.disabled
|
|
42
|
+
}));
|
|
35
43
|
const attrs = useAttrs();
|
|
36
44
|
const styleVars = computed(() => ({
|
|
37
45
|
"--gb-colors": __props.colors.join(", "),
|
|
@@ -44,10 +52,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
52
|
}));
|
|
45
53
|
function handleClick(event) {
|
|
46
54
|
if (__props.sound && !__props.disabled) sound.play("press");
|
|
47
|
-
__props.onclick
|
|
55
|
+
callListener(__props.onClick ?? __props.onclick, event);
|
|
48
56
|
}
|
|
49
57
|
return (_ctx, _cache) => {
|
|
50
58
|
return openBlock(), createElementBlock("button", mergeProps({
|
|
59
|
+
ref_key: "el",
|
|
60
|
+
ref: el,
|
|
51
61
|
class: unref(cn)(
|
|
52
62
|
"gradient-button relative flex min-h-10 min-w-28 cursor-pointer items-center justify-center overflow-hidden text-white",
|
|
53
63
|
__props.class
|
|
@@ -31,13 +31,15 @@ export interface IconButtonProps {
|
|
|
31
31
|
target?: string;
|
|
32
32
|
/** Anchor `rel`. Widened, never narrowed — see `target`. */
|
|
33
33
|
rel?: string;
|
|
34
|
-
/** Fires on activation. Never called while `disabled` or `loading`. */
|
|
35
|
-
|
|
34
|
+
/** Fires on activation. Never called while `disabled` or `loading`. `@click` reaches it. */
|
|
35
|
+
onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
36
|
+
/** @deprecated Use `@click` / `onClick`. Only called when `onClick` is absent. */
|
|
37
|
+
onclick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
36
38
|
/** Additional CSS classes. */
|
|
37
39
|
class?: HTMLAttributes["class"];
|
|
38
40
|
/**
|
|
39
|
-
* Plays the
|
|
40
|
-
* default; only audible once the user has enabled sound.
|
|
41
|
+
* Plays the `hover` cue on mouse/pen pointer enter and the `press` cue on
|
|
42
|
+
* click. Off by default; only audible once the user has enabled sound.
|
|
41
43
|
*/
|
|
42
44
|
sound?: boolean;
|
|
43
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, createBlock, openBlock, unref,
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
import Button from "../button/Button.vue.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -15,11 +15,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
href: { default: () => void 0 },
|
|
16
16
|
target: { default: () => void 0 },
|
|
17
17
|
rel: { default: () => void 0 },
|
|
18
|
-
|
|
18
|
+
onClick: { type: [Function, Array] },
|
|
19
|
+
onclick: { type: [Function, Array] },
|
|
19
20
|
class: { type: [Boolean, null, String, Object, Array] },
|
|
20
21
|
sound: { type: Boolean, default: false }
|
|
21
22
|
},
|
|
22
23
|
setup(__props, { expose: __expose }) {
|
|
24
|
+
const attrs = useAttrs();
|
|
23
25
|
const btn = useTemplateRef("btn");
|
|
24
26
|
__expose({ ref: computed(() => btn.value?.ref ?? null) });
|
|
25
27
|
const SIZE_CLASSES = {
|
|
@@ -40,9 +42,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
42
|
)
|
|
41
43
|
);
|
|
42
44
|
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createBlock(unref(Button), {
|
|
45
|
+
return openBlock(), createBlock(unref(Button), mergeProps({
|
|
44
46
|
ref_key: "btn",
|
|
45
|
-
ref: btn
|
|
47
|
+
ref: btn
|
|
48
|
+
}, unref(attrs), {
|
|
46
49
|
variant: __props.variant,
|
|
47
50
|
size: __props.size,
|
|
48
51
|
type: __props.type,
|
|
@@ -52,10 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
55
|
target: __props.target,
|
|
53
56
|
rel: __props.rel,
|
|
54
57
|
label: __props.label,
|
|
55
|
-
|
|
58
|
+
"on-click": __props.onClick ?? __props.onclick,
|
|
56
59
|
sound: __props.sound,
|
|
57
|
-
class:
|
|
58
|
-
}, createSlots({ _: 2 }, [
|
|
60
|
+
class: classes.value
|
|
61
|
+
}), createSlots({ _: 2 }, [
|
|
59
62
|
_ctx.$slots.default ? {
|
|
60
63
|
name: "iconStart",
|
|
61
64
|
fn: withCtx(() => [
|
|
@@ -63,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
66
|
]),
|
|
64
67
|
key: "0"
|
|
65
68
|
} : void 0
|
|
66
|
-
]),
|
|
69
|
+
]), 1040, ["variant", "size", "type", "disabled", "loading", "href", "target", "rel", "label", "on-click", "sound", "class"]);
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, normalizeStyle } from "vue";
|
|
2
|
+
import { useReducedMotion } from "../../internals/motion/use-media-query.js";
|
|
2
3
|
import { cn } from "../../utils.js";
|
|
3
4
|
import { variantMap } from "./trail-variants.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,6 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
setup(__props) {
|
|
13
14
|
const containerRef = useTemplateRef("container");
|
|
14
15
|
let currentInstance = null;
|
|
16
|
+
let currentVariant = null;
|
|
17
|
+
const reduced = useReducedMotion();
|
|
15
18
|
function resetImageStyles() {
|
|
16
19
|
const container = containerRef.value;
|
|
17
20
|
if (!container) return;
|
|
@@ -27,18 +30,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
|
-
function
|
|
31
|
-
if (!containerRef.value) return;
|
|
33
|
+
function teardownVariant() {
|
|
32
34
|
if (currentInstance) {
|
|
33
35
|
currentInstance.destroy();
|
|
34
36
|
currentInstance = null;
|
|
35
37
|
}
|
|
36
38
|
resetImageStyles();
|
|
39
|
+
}
|
|
40
|
+
function syncVariant() {
|
|
41
|
+
const container = containerRef.value;
|
|
42
|
+
const wanted = !!container && !reduced.value;
|
|
43
|
+
if (wanted && currentInstance && currentVariant === __props.variant) return;
|
|
44
|
+
teardownVariant();
|
|
45
|
+
if (!container || !wanted) return;
|
|
37
46
|
const Variant = variantMap[__props.variant] || variantMap.type1;
|
|
38
|
-
currentInstance = new Variant(
|
|
47
|
+
currentInstance = new Variant(container);
|
|
48
|
+
currentVariant = __props.variant;
|
|
39
49
|
}
|
|
40
50
|
onMounted(() => {
|
|
41
|
-
|
|
51
|
+
syncVariant();
|
|
42
52
|
});
|
|
43
53
|
onBeforeUnmount(() => {
|
|
44
54
|
if (currentInstance) {
|
|
@@ -47,9 +57,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
57
|
}
|
|
48
58
|
});
|
|
49
59
|
watch(
|
|
50
|
-
() => __props.variant,
|
|
60
|
+
() => [__props.variant, reduced.value],
|
|
51
61
|
() => {
|
|
52
|
-
|
|
62
|
+
syncVariant();
|
|
53
63
|
},
|
|
54
64
|
{ flush: "post" }
|
|
55
65
|
);
|
|
@@ -59,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
69
|
class: normalizeClass(
|
|
60
70
|
unref(cn)("relative z-[100] h-full w-full overflow-visible rounded-lg bg-transparent", __props.class)
|
|
61
71
|
),
|
|
62
|
-
style: { touchAction: "
|
|
72
|
+
style: { touchAction: "pan-y pinch-zoom" }
|
|
63
73
|
}, [
|
|
64
74
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.images, (image, i) => {
|
|
65
75
|
return openBlock(), createElementBlock("div", {
|
|
@@ -107,7 +107,6 @@ class BaseVariant {
|
|
|
107
107
|
this.lastMousePos = { x: 0, y: 0 };
|
|
108
108
|
this.cacheMousePos = { x: 0, y: 0 };
|
|
109
109
|
this.handlePointerMove = (ev) => {
|
|
110
|
-
if ("touches" in ev) ev.preventDefault();
|
|
111
110
|
const rect = this.container.getBoundingClientRect();
|
|
112
111
|
this.mousePos = getLocalPointerPos(ev, rect);
|
|
113
112
|
if (this.touchActive) {
|
|
@@ -115,9 +114,8 @@ class BaseVariant {
|
|
|
115
114
|
}
|
|
116
115
|
};
|
|
117
116
|
container.addEventListener("mousemove", this.handlePointerMove);
|
|
118
|
-
container.addEventListener("touchmove", this.handlePointerMove, { passive:
|
|
117
|
+
container.addEventListener("touchmove", this.handlePointerMove, { passive: true });
|
|
119
118
|
this.initRender = (ev) => {
|
|
120
|
-
if ("touches" in ev) ev.preventDefault();
|
|
121
119
|
const rect = this.container.getBoundingClientRect();
|
|
122
120
|
this.mousePos = getLocalPointerPos(ev, rect);
|
|
123
121
|
this.cacheMousePos = { ...this.mousePos };
|
|
@@ -126,9 +124,8 @@ class BaseVariant {
|
|
|
126
124
|
container.removeEventListener("touchmove", this.initRender);
|
|
127
125
|
};
|
|
128
126
|
container.addEventListener("mousemove", this.initRender);
|
|
129
|
-
container.addEventListener("touchmove", this.initRender, { passive:
|
|
127
|
+
container.addEventListener("touchmove", this.initRender, { passive: true });
|
|
130
128
|
this.handleTouchStart = (ev) => {
|
|
131
|
-
ev.preventDefault();
|
|
132
129
|
this.touchActive = true;
|
|
133
130
|
const rect = this.container.getBoundingClientRect();
|
|
134
131
|
const pos = getLocalPointerPos(ev, rect);
|
|
@@ -139,7 +136,7 @@ class BaseVariant {
|
|
|
139
136
|
this.pushPositionHistory(pos.x, pos.y);
|
|
140
137
|
this.startRafLoop();
|
|
141
138
|
};
|
|
142
|
-
container.addEventListener("touchstart", this.handleTouchStart, { passive:
|
|
139
|
+
container.addEventListener("touchstart", this.handleTouchStart, { passive: true });
|
|
143
140
|
this.handleTouchEnd = () => {
|
|
144
141
|
this.touchActive = false;
|
|
145
142
|
this.lastMousePos = { ...this.mousePos };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./InlineCitation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const InlineCitation = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const InlineCitation = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a4f677f1"]]);
|
|
5
5
|
export {
|
|
6
6
|
InlineCitation as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, watch, onBeforeUnmount, useTemplateRef, createElementBlock, openBlock, Fragment, createCommentVNode,
|
|
1
|
+
import { defineComponent, useSlots, computed, ref, watch, onBeforeUnmount, useTemplateRef, useAttrs, createElementBlock, openBlock, Fragment, createCommentVNode, mergeProps, toDisplayString, normalizeClass, renderSlot, createVNode, unref } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
import { useFloat } from "../../internals/use-float.js";
|
|
4
4
|
import { useFancyId } from "../../internals/use-id.js";
|
|
@@ -109,36 +109,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
const markerLabel = computed(() => `Source ${__props.index}: ${__props.source.title}`);
|
|
112
|
+
const attrs = useAttrs();
|
|
113
|
+
function describedBy() {
|
|
114
|
+
return [attrs["aria-describedby"], open.value ? previewId : void 0].filter(Boolean).join(" ") || void 0;
|
|
115
|
+
}
|
|
112
116
|
return (_ctx, _cache) => {
|
|
113
117
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
114
|
-
isLink.value ? (openBlock(), createElementBlock("a", {
|
|
118
|
+
isLink.value ? (openBlock(), createElementBlock("a", mergeProps({
|
|
115
119
|
key: 0,
|
|
116
120
|
ref_key: "marker",
|
|
117
121
|
ref: marker,
|
|
118
|
-
href: resolvedHref.value,
|
|
119
|
-
target: "_blank",
|
|
120
|
-
rel: "noopener noreferrer nofollow ugc",
|
|
121
|
-
class: normalizeClass(markerClass.value),
|
|
122
|
-
"aria-label": markerLabel.value,
|
|
123
|
-
"aria-describedby": open.value ? previewId : void 0,
|
|
124
122
|
onMouseenter: scheduleShow,
|
|
125
123
|
onMouseleave: scheduleHide,
|
|
126
124
|
onFocus: show,
|
|
127
125
|
onBlur: hide
|
|
128
|
-
},
|
|
126
|
+
}, _ctx.$attrs, {
|
|
127
|
+
href: resolvedHref.value,
|
|
128
|
+
target: "_blank",
|
|
129
|
+
rel: "noopener noreferrer nofollow ugc",
|
|
130
|
+
class: markerClass.value,
|
|
131
|
+
"aria-label": markerLabel.value,
|
|
132
|
+
"aria-describedby": describedBy()
|
|
133
|
+
}), "[" + toDisplayString(__props.index) + "]", 17, _hoisted_1)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
129
134
|
key: 1,
|
|
130
135
|
ref_key: "marker",
|
|
131
136
|
ref: marker,
|
|
132
|
-
type: "button",
|
|
133
|
-
class: normalizeClass(markerClass.value),
|
|
134
|
-
"aria-label": markerLabel.value,
|
|
135
|
-
"aria-describedby": open.value ? previewId : void 0,
|
|
136
137
|
onMouseenter: scheduleShow,
|
|
137
138
|
onMouseleave: scheduleHide,
|
|
138
139
|
onFocus: show,
|
|
139
140
|
onBlur: hide,
|
|
140
141
|
onClick: show
|
|
141
|
-
},
|
|
142
|
+
}, _ctx.$attrs, {
|
|
143
|
+
type: "button",
|
|
144
|
+
class: markerClass.value,
|
|
145
|
+
"aria-label": markerLabel.value,
|
|
146
|
+
"aria-describedby": describedBy()
|
|
147
|
+
}), "[" + toDisplayString(__props.index) + "]", 17, _hoisted_2)),
|
|
142
148
|
open.value ? (openBlock(), createElementBlock("span", {
|
|
143
149
|
key: 2,
|
|
144
150
|
ref: "preview",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./Input.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-76128dfc"]]);
|
|
5
5
|
export {
|
|
6
6
|
Input as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, computed, useTemplateRef, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, mergeModels, useModel, computed, useAttrs, useTemplateRef, createElementBlock, openBlock, mergeProps, unref } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
import { useField } from "../../internals/field.js";
|
|
4
|
+
import { mergeIds } from "../../internals/merge-ids.js";
|
|
4
5
|
const _hoisted_1 = ["type", "placeholder", "name", "autocomplete", "id", "value", "disabled", "readonly", "required", "aria-invalid", "aria-describedby", "aria-label"];
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
...{ name: "Input", inheritAttrs: false },
|
|
@@ -33,8 +34,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
34
|
const effectiveDisabled = computed(() => field?.disabled ?? props.disabled ?? false);
|
|
34
35
|
const effectiveRequired = computed(() => field?.required ?? props.required ?? false);
|
|
35
36
|
const effectiveInvalid = computed(() => field?.invalid ?? props.invalid ?? false);
|
|
37
|
+
const attrs = useAttrs();
|
|
38
|
+
const ariaLabelResolved = () => {
|
|
39
|
+
const own = props.label;
|
|
40
|
+
return own ?? attrs["aria-label"];
|
|
41
|
+
};
|
|
42
|
+
const ariaInvalidResolved = () => effectiveInvalid.value ? "true" : attrs["aria-invalid"];
|
|
43
|
+
const consumerDescribedBy = () => attrs["aria-describedby"];
|
|
36
44
|
const el = useTemplateRef("el");
|
|
37
45
|
__expose({ ref: el });
|
|
46
|
+
const describedBy = () => mergeIds(field?.describedBy, consumerDescribedBy());
|
|
38
47
|
const classes = computed(
|
|
39
48
|
() => cn(
|
|
40
49
|
"ft-input w-full rounded-[8px] border border-input bg-background px-[12px] py-[9px] text-[13px] text-foreground transition-colors",
|
|
@@ -52,9 +61,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
61
|
props.onValueChange?.(next);
|
|
53
62
|
}
|
|
54
63
|
return (_ctx, _cache) => {
|
|
55
|
-
return openBlock(), createElementBlock("input", {
|
|
64
|
+
return openBlock(), createElementBlock("input", mergeProps({
|
|
56
65
|
ref_key: "el",
|
|
57
66
|
ref: el,
|
|
67
|
+
onInput: handleInput
|
|
68
|
+
}, unref(attrs), {
|
|
58
69
|
type: effectiveType.value,
|
|
59
70
|
placeholder: props.placeholder,
|
|
60
71
|
name: props.name,
|
|
@@ -64,12 +75,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
75
|
disabled: effectiveDisabled.value,
|
|
65
76
|
readonly: props.readonly ?? false,
|
|
66
77
|
required: effectiveRequired.value,
|
|
67
|
-
"aria-invalid":
|
|
68
|
-
"aria-describedby":
|
|
69
|
-
"aria-label":
|
|
70
|
-
class:
|
|
71
|
-
|
|
72
|
-
}, null, 42, _hoisted_1);
|
|
78
|
+
"aria-invalid": ariaInvalidResolved(),
|
|
79
|
+
"aria-describedby": describedBy(),
|
|
80
|
+
"aria-label": ariaLabelResolved(),
|
|
81
|
+
class: classes.value
|
|
82
|
+
}), null, 16, _hoisted_1);
|
|
73
83
|
};
|
|
74
84
|
}
|
|
75
85
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./InteractiveGridPattern.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const InteractiveGridPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const InteractiveGridPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1994078a"]]);
|
|
5
5
|
export {
|
|
6
6
|
InteractiveGridPattern as default
|
|
7
7
|
};
|
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
height: __props.height,
|
|
43
43
|
class: normalizeClass(
|
|
44
44
|
unref(cn)(
|
|
45
|
-
"interactive-grid-square
|
|
45
|
+
"interactive-grid-square motion-safe:duration-100 ease-in-out motion-safe:transition-all",
|
|
46
46
|
__props.strokeClassName,
|
|
47
47
|
hoveredSquare.value === index ? "fill-gray-300/30" : "fill-transparent",
|
|
48
48
|
__props.squaresClassName
|
|
@@ -5,13 +5,16 @@ export interface InteractiveHoverButtonProps {
|
|
|
5
5
|
/** Custom CSS class */
|
|
6
6
|
class?: HTMLAttributes["class"];
|
|
7
7
|
/**
|
|
8
|
-
* Plays the
|
|
9
|
-
* default; only audible once the user has enabled sound.
|
|
8
|
+
* Plays the `hover` cue on mouse/pen pointer enter and the `press` cue on
|
|
9
|
+
* click. Off by default; only audible once the user has enabled sound.
|
|
10
10
|
*/
|
|
11
11
|
sound?: boolean;
|
|
12
12
|
/** Native disabled state — read by the click handler to gate the cue. */
|
|
13
13
|
disabled?: ButtonHTMLAttributes["disabled"];
|
|
14
|
-
|
|
14
|
+
/** Click handler, called after the sound cue. `@click` reaches it. */
|
|
15
|
+
onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
16
|
+
/** @deprecated Use `@click` / `onClick`. Only called when `onClick` is absent. */
|
|
17
|
+
onclick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
15
18
|
}
|
|
16
19
|
declare const _default: typeof __VLS_export;
|
|
17
20
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./InteractiveHoverButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const InteractiveHoverButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const InteractiveHoverButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b60913cb"]]);
|
|
5
5
|
export {
|
|
6
6
|
InteractiveHoverButton as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, createElementBlock, openBlock, mergeProps, unref, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { callListener } from "../../internals/call-listener.js";
|
|
2
3
|
import { cn } from "../../utils.js";
|
|
4
|
+
import { useSoundFeedback } from "../../sound/use-sound-feedback.js";
|
|
3
5
|
import { useSoundCue } from "../../sound/use-sound.js";
|
|
4
6
|
const _hoisted_1 = ["disabled"];
|
|
5
7
|
const _hoisted_2 = { class: "ihb-rest" };
|
|
@@ -17,18 +19,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
19
|
class: { type: [Boolean, null, String, Object, Array] },
|
|
18
20
|
sound: { type: Boolean, default: false },
|
|
19
21
|
disabled: { type: [Boolean, String] },
|
|
22
|
+
onClick: {},
|
|
20
23
|
onclick: {}
|
|
21
24
|
},
|
|
22
25
|
setup(__props) {
|
|
23
26
|
const props = __props;
|
|
24
27
|
const attrs = useAttrs();
|
|
25
28
|
const playCue = useSoundCue(() => props.sound);
|
|
29
|
+
const el = useTemplateRef("el");
|
|
30
|
+
useSoundFeedback(el, () => ({
|
|
31
|
+
on: props.sound ? { pointerenter: "hover" } : {},
|
|
32
|
+
disabled: !!props.disabled
|
|
33
|
+
}));
|
|
26
34
|
function handleClick(event) {
|
|
27
35
|
if (!props.disabled) playCue("press");
|
|
28
|
-
props.onclick
|
|
36
|
+
callListener(props.onClick ?? props.onclick, event);
|
|
29
37
|
}
|
|
30
38
|
return (_ctx, _cache) => {
|
|
31
39
|
return openBlock(), createElementBlock("button", mergeProps({
|
|
40
|
+
ref_key: "el",
|
|
41
|
+
ref: el,
|
|
32
42
|
class: unref(cn)(
|
|
33
43
|
"ihb group bg-background relative isolate w-auto cursor-pointer overflow-hidden rounded-full border px-6 py-2.5 text-center font-semibold",
|
|
34
44
|
props.class
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass,
|
|
1
|
+
import { defineComponent, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, Fragment, renderList, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
|
-
const _hoisted_1 = { class: "letter-pullup flex justify-center" };
|
|
4
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
4
|
...{ name: "LetterPullup", inheritAttrs: false },
|
|
6
5
|
__name: "LetterPullup",
|
|
@@ -10,9 +9,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
9
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
11
10
|
},
|
|
12
11
|
setup(__props) {
|
|
12
|
+
const attrs = useAttrs();
|
|
13
13
|
const letters = computed(() => __props.words.split(""));
|
|
14
14
|
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createElementBlock("div",
|
|
15
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(attrs), { class: "letter-pullup flex justify-center" }), [
|
|
16
16
|
(openBlock(true), createElementBlock(Fragment, null, renderList(letters.value, (letter, index) => {
|
|
17
17
|
return openBlock(), createElementBlock("span", {
|
|
18
18
|
key: index,
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
], 64))
|
|
32
32
|
], 6);
|
|
33
33
|
}), 128))
|
|
34
|
-
]);
|
|
34
|
+
], 16);
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./LineHoverLink.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const LineHoverLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const LineHoverLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a810b0eb"]]);
|
|
5
5
|
export {
|
|
6
6
|
LineHoverLink as default
|
|
7
7
|
};
|