@dicehub/kappa 0.0.0-stage → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/THIRD_PARTY_NOTICES.md +103 -0
- package/dist/AspectRatio-lM9NSX81.js +20 -0
- package/dist/AspectRatio-lM9NSX81.js.map +1 -0
- package/dist/Badge-CdxZ5LnX.js +43 -0
- package/dist/Badge-CdxZ5LnX.js.map +1 -0
- package/dist/Button-Da1Xjklh.js +104 -0
- package/dist/Button-Da1Xjklh.js.map +1 -0
- package/dist/Chart-BCy4ngVv.js +183 -0
- package/dist/Chart-BCy4ngVv.js.map +1 -0
- package/dist/ClientOnly-DKyNRMrE.js +19 -0
- package/dist/ClientOnly-DKyNRMrE.js.map +1 -0
- package/dist/DeleteResource-vqXN2M_j.js +162 -0
- package/dist/DeleteResource-vqXN2M_j.js.map +1 -0
- package/dist/DialogTrigger-CFQbmKkQ.js +312 -0
- package/dist/DialogTrigger-CFQbmKkQ.js.map +1 -0
- package/dist/DirectionProvider-FKGoOxrA.js +22 -0
- package/dist/DirectionProvider-FKGoOxrA.js.map +1 -0
- package/dist/DragSelection-CUTndue5.js +236 -0
- package/dist/DragSelection-CUTndue5.js.map +1 -0
- package/dist/DropdownSubTrigger-CBmdRDUH.js +839 -0
- package/dist/DropdownSubTrigger-CBmdRDUH.js.map +1 -0
- package/dist/ExpandableText-BUfUSjQj.js +97 -0
- package/dist/ExpandableText-BUfUSjQj.js.map +1 -0
- package/dist/ImageCropper-Dfjf3OuM.js +454 -0
- package/dist/ImageCropper-Dfjf3OuM.js.map +1 -0
- package/dist/KbdGroup-CNwqr4vX.js +26 -0
- package/dist/KbdGroup-CNwqr4vX.js.map +1 -0
- package/dist/Label-cI7Flyrk.js +44 -0
- package/dist/Label-cI7Flyrk.js.map +1 -0
- package/dist/Loader-DclnxBId.js +135 -0
- package/dist/Loader-DclnxBId.js.map +1 -0
- package/dist/LoginLayout-Bd6p50eG.js +63 -0
- package/dist/LoginLayout-Bd6p50eG.js.map +1 -0
- package/dist/MatrixLoader-Bouc_K_5.js +102 -0
- package/dist/MatrixLoader-Bouc_K_5.js.map +1 -0
- package/dist/MessageComposer-CUmvAfHE.js +409 -0
- package/dist/MessageComposer-CUmvAfHE.js.map +1 -0
- package/dist/Meter-CtLJmSa2.js +88 -0
- package/dist/Meter-CtLJmSa2.js.map +1 -0
- package/dist/PoweredByDicehub-BD-y1NZA.js +92 -0
- package/dist/PoweredByDicehub-BD-y1NZA.js.map +1 -0
- package/dist/ResourceListLayout-tdcdS-jp.js +80 -0
- package/dist/ResourceListLayout-tdcdS-jp.js.map +1 -0
- package/dist/ResourcePicker-BbzGyL_F.js +335 -0
- package/dist/ResourcePicker-BbzGyL_F.js.map +1 -0
- package/dist/SensitiveInput-Bgd_izff.js +254 -0
- package/dist/SensitiveInput-Bgd_izff.js.map +1 -0
- package/dist/SidebarLayout-Cs6OnqU2.js +183 -0
- package/dist/SidebarLayout-Cs6OnqU2.js.map +1 -0
- package/dist/SkeletonLine-D380ca6G.js +43 -0
- package/dist/SkeletonLine-D380ca6G.js.map +1 -0
- package/dist/Text-BzGaLkmD.js +197 -0
- package/dist/Text-BzGaLkmD.js.map +1 -0
- package/dist/Toggle-DnanCmnK.js +65 -0
- package/dist/Toggle-DnanCmnK.js.map +1 -0
- package/dist/VirtualTree-YuREicRD.js +594 -0
- package/dist/VirtualTree-YuREicRD.js.map +1 -0
- package/dist/accordion-ASMeZdHJ.js +180 -0
- package/dist/accordion-ASMeZdHJ.js.map +1 -0
- package/dist/activity-feed-Bi9JkNi2.js +167 -0
- package/dist/activity-feed-Bi9JkNi2.js.map +1 -0
- package/dist/attachment-BnKXnid1.js +148 -0
- package/dist/attachment-BnKXnid1.js.map +1 -0
- package/dist/autocomplete-DIxFhw8k.js +497 -0
- package/dist/autocomplete-DIxFhw8k.js.map +1 -0
- package/dist/avatar-BTIZnxA-.js +118 -0
- package/dist/avatar-BTIZnxA-.js.map +1 -0
- package/dist/banner-DJkCoAw-.js +129 -0
- package/dist/banner-DJkCoAw-.js.map +1 -0
- package/dist/blocks/delete-resource/DeleteResource.vue.d.ts +34 -0
- package/dist/blocks/delete-resource/delete-resource.d.ts +46 -0
- package/dist/blocks/delete-resource/index.d.ts +3 -0
- package/dist/blocks/delete-resource.js +2 -0
- package/dist/blocks/file-browser/FileBrowser.vue.d.ts +47 -0
- package/dist/blocks/file-browser/FileBrowserControlIcon.vue.d.ts +6 -0
- package/dist/blocks/file-browser/FileBrowserIcon.vue.d.ts +6 -0
- package/dist/blocks/file-browser/FileBrowserItemActions.vue.d.ts +19 -0
- package/dist/blocks/file-browser/FileBrowserNameDialog.vue.d.ts +22 -0
- package/dist/blocks/file-browser/file-browser-logic.d.ts +6 -0
- package/dist/blocks/file-browser/file-browser.d.ts +126 -0
- package/dist/blocks/file-browser/index.d.ts +7 -0
- package/dist/blocks/file-browser/use-file-browser-state.d.ts +82 -0
- package/dist/blocks/file-browser.js +2 -0
- package/dist/blocks/index.d.ts +7 -0
- package/dist/blocks/login-layout/LoginLayout.vue.d.ts +15 -0
- package/dist/blocks/login-layout/index.d.ts +2 -0
- package/dist/blocks/login-layout/login-layout.d.ts +32 -0
- package/dist/blocks/login-layout.js +2 -0
- package/dist/blocks/message-composer/MessageComposer.vue.d.ts +36 -0
- package/dist/blocks/message-composer/MessageComposerAttachments.vue.d.ts +14 -0
- package/dist/blocks/message-composer/index.d.ts +3 -0
- package/dist/blocks/message-composer/message-composer-helpers.d.ts +26 -0
- package/dist/blocks/message-composer/message-composer.d.ts +72 -0
- package/dist/blocks/message-composer.js +2 -0
- package/dist/blocks/resource-list-layout/ResourceListLayout.vue.d.ts +15 -0
- package/dist/blocks/resource-list-layout/index.d.ts +2 -0
- package/dist/blocks/resource-list-layout/resource-list-layout.d.ts +42 -0
- package/dist/blocks/resource-list-layout.js +2 -0
- package/dist/blocks/resource-picker/ResourcePicker.vue.d.ts +36 -0
- package/dist/blocks/resource-picker/index.d.ts +3 -0
- package/dist/blocks/resource-picker/resource-picker.d.ts +85 -0
- package/dist/blocks/resource-picker/use-resource-picker-state.d.ts +16 -0
- package/dist/blocks/resource-picker.js +2 -0
- package/dist/blocks/sidebar-layout/SidebarLayout.vue.d.ts +51 -0
- package/dist/blocks/sidebar-layout/SidebarLayoutSecondary.vue.d.ts +6 -0
- package/dist/blocks/sidebar-layout/index.d.ts +3 -0
- package/dist/blocks/sidebar-layout/sidebar-layout.d.ts +38 -0
- package/dist/blocks/sidebar-layout.js +2 -0
- package/dist/breadcrumbs-CIxUxZVD.js +127 -0
- package/dist/breadcrumbs-CIxUxZVD.js.map +1 -0
- package/dist/button-DSgFcDoO.js +128 -0
- package/dist/button-DSgFcDoO.js.map +1 -0
- package/dist/button-group-B2PicHua.js +57 -0
- package/dist/button-group-B2PicHua.js.map +1 -0
- package/dist/card-CFUgQ5lO.js +171 -0
- package/dist/card-CFUgQ5lO.js.map +1 -0
- package/dist/chart-theme-Dc7oFmwb.js +185 -0
- package/dist/chart-theme-Dc7oFmwb.js.map +1 -0
- package/dist/checkbox-DAdzHZnd.js +264 -0
- package/dist/checkbox-DAdzHZnd.js.map +1 -0
- package/dist/clipboard-text-Ob056Gly.js +233 -0
- package/dist/clipboard-text-Ob056Gly.js.map +1 -0
- package/dist/collapsible-BzqY29LA.js +184 -0
- package/dist/collapsible-BzqY29LA.js.map +1 -0
- package/dist/collapsible-section-BKhZBD4w.js +159 -0
- package/dist/collapsible-section-BKhZBD4w.js.map +1 -0
- package/dist/color-picker-unuRvv1J.js +714 -0
- package/dist/color-picker-unuRvv1J.js.map +1 -0
- package/dist/combobox-7fEzrzGe.js +918 -0
- package/dist/combobox-7fEzrzGe.js.map +1 -0
- package/dist/command-palette-CGREegfE.js +680 -0
- package/dist/command-palette-CGREegfE.js.map +1 -0
- package/dist/components/accordion/Accordion.vue.d.ts +38 -0
- package/dist/components/accordion/AccordionContent.vue.d.ts +11 -0
- package/dist/components/accordion/AccordionIndicator.vue.d.ts +11 -0
- package/dist/components/accordion/AccordionItem.vue.d.ts +14 -0
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +11 -0
- package/dist/components/accordion/accordion.d.ts +45 -0
- package/dist/components/accordion/index.d.ts +15 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/activity-feed/ActivityFeed.vue.d.ts +13 -0
- package/dist/components/activity-feed/ActivityFeedActions.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedContent.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedDescription.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedGroup.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedGroupLabel.vue.d.ts +13 -0
- package/dist/components/activity-feed/ActivityFeedHeader.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedItem.vue.d.ts +13 -0
- package/dist/components/activity-feed/ActivityFeedList.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedMarker.vue.d.ts +13 -0
- package/dist/components/activity-feed/ActivityFeedTime.vue.d.ts +11 -0
- package/dist/components/activity-feed/ActivityFeedTitle.vue.d.ts +13 -0
- package/dist/components/activity-feed/activity-feed.d.ts +70 -0
- package/dist/components/activity-feed/index.d.ts +28 -0
- package/dist/components/activity-feed.js +2 -0
- package/dist/components/aspect-ratio/AspectRatio.vue.d.ts +11 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +12 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/aspect-ratio.js +2 -0
- package/dist/components/attachment/Attachment.vue.d.ts +15 -0
- package/dist/components/attachment/AttachmentAction.vue.d.ts +14 -0
- package/dist/components/attachment/AttachmentActions.vue.d.ts +11 -0
- package/dist/components/attachment/AttachmentContent.vue.d.ts +11 -0
- package/dist/components/attachment/AttachmentDescription.vue.d.ts +11 -0
- package/dist/components/attachment/AttachmentGroup.vue.d.ts +11 -0
- package/dist/components/attachment/AttachmentMedia.vue.d.ts +13 -0
- package/dist/components/attachment/AttachmentTitle.vue.d.ts +11 -0
- package/dist/components/attachment/AttachmentTrigger.vue.d.ts +14 -0
- package/dist/components/attachment/attachment.d.ts +85 -0
- package/dist/components/attachment/index.d.ts +22 -0
- package/dist/components/attachment.js +2 -0
- package/dist/components/autocomplete/Autocomplete.vue.d.ts +65 -0
- package/dist/components/autocomplete/AutocompleteContent.vue.d.ts +7 -0
- package/dist/components/autocomplete/AutocompleteEmpty.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteGroup.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteGroupLabel.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteInputGroup.vue.d.ts +8 -0
- package/dist/components/autocomplete/AutocompleteItem.vue.d.ts +5 -0
- package/dist/components/autocomplete/AutocompleteItemIndicator.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteItemText.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteLabel.vue.d.ts +3 -0
- package/dist/components/autocomplete/AutocompleteList.vue.d.ts +18 -0
- package/dist/components/autocomplete/AutocompleteSeparator.vue.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-context.d.ts +7 -0
- package/dist/components/autocomplete/autocomplete.d.ts +123 -0
- package/dist/components/autocomplete/index.d.ts +32 -0
- package/dist/components/autocomplete.js +2 -0
- package/dist/components/avatar/Avatar.vue.d.ts +26 -0
- package/dist/components/avatar/AvatarBadge.vue.d.ts +11 -0
- package/dist/components/avatar/AvatarFallback.vue.d.ts +12 -0
- package/dist/components/avatar/AvatarGroup.vue.d.ts +11 -0
- package/dist/components/avatar/AvatarGroupCount.vue.d.ts +11 -0
- package/dist/components/avatar/AvatarImage.vue.d.ts +11 -0
- package/dist/components/avatar/avatar.d.ts +45 -0
- package/dist/components/avatar/index.d.ts +16 -0
- package/dist/components/avatar.js +2 -0
- package/dist/components/badge/Badge.vue.d.ts +7 -0
- package/dist/components/badge/badge.d.ts +31 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/banner/Banner.vue.d.ts +15 -0
- package/dist/components/banner/BannerAction.vue.d.ts +15 -0
- package/dist/components/banner/banner-context.d.ts +7 -0
- package/dist/components/banner/banner.d.ts +68 -0
- package/dist/components/banner/index.d.ts +7 -0
- package/dist/components/banner.js +2 -0
- package/dist/components/breadcrumbs/Breadcrumbs.vue.d.ts +13 -0
- package/dist/components/breadcrumbs/BreadcrumbsEllipsis.vue.d.ts +11 -0
- package/dist/components/breadcrumbs/BreadcrumbsItem.vue.d.ts +11 -0
- package/dist/components/breadcrumbs/BreadcrumbsLink.vue.d.ts +13 -0
- package/dist/components/breadcrumbs/BreadcrumbsList.vue.d.ts +11 -0
- package/dist/components/breadcrumbs/BreadcrumbsPage.vue.d.ts +11 -0
- package/dist/components/breadcrumbs/BreadcrumbsSeparator.vue.d.ts +11 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +44 -0
- package/dist/components/breadcrumbs/index.d.ts +20 -0
- package/dist/components/breadcrumbs.js +2 -0
- package/dist/components/button/Button.vue.d.ts +23 -0
- package/dist/components/button/LinkButton.vue.d.ts +24 -0
- package/dist/components/button/button.d.ts +63 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button-group/ButtonGroup.vue.d.ts +13 -0
- package/dist/components/button-group/ButtonGroupSeparator.vue.d.ts +6 -0
- package/dist/components/button-group/ButtonGroupText.vue.d.ts +13 -0
- package/dist/components/button-group/button-group.d.ts +26 -0
- package/dist/components/button-group/index.d.ts +10 -0
- package/dist/components/button-group.js +2 -0
- package/dist/components/button.js +3 -0
- package/dist/components/card/Card.vue.d.ts +14 -0
- package/dist/components/card/CardAction.vue.d.ts +13 -0
- package/dist/components/card/CardContent.vue.d.ts +13 -0
- package/dist/components/card/CardDescription.vue.d.ts +13 -0
- package/dist/components/card/CardFooter.vue.d.ts +13 -0
- package/dist/components/card/CardHeader.vue.d.ts +13 -0
- package/dist/components/card/CardPrimary.vue.d.ts +13 -0
- package/dist/components/card/CardSecondary.vue.d.ts +13 -0
- package/dist/components/card/CardTitle.vue.d.ts +13 -0
- package/dist/components/card/card.d.ts +95 -0
- package/dist/components/card/index.d.ts +22 -0
- package/dist/components/card.js +2 -0
- package/dist/components/chart/Chart.vue.d.ts +38 -0
- package/dist/components/chart/chart.d.ts +58 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart.js +2 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +36 -0
- package/dist/components/checkbox/CheckboxContext.vue.d.ts +11 -0
- package/dist/components/checkbox/CheckboxControl.vue.d.ts +13 -0
- package/dist/components/checkbox/CheckboxGroup.vue.d.ts +26 -0
- package/dist/components/checkbox/CheckboxIndicator.vue.d.ts +14 -0
- package/dist/components/checkbox/CheckboxLabel.vue.d.ts +13 -0
- package/dist/components/checkbox/CheckboxRootProvider.vue.d.ts +13 -0
- package/dist/components/checkbox/checkbox-indeterminate.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +73 -0
- package/dist/components/checkbox/index.d.ts +19 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/client-only/ClientOnly.vue.d.ts +11 -0
- package/dist/components/client-only/client-only.d.ts +10 -0
- package/dist/components/client-only/index.d.ts +2 -0
- package/dist/components/client-only.js +2 -0
- package/dist/components/clipboard-text/ClipboardText.vue.d.ts +32 -0
- package/dist/components/clipboard-text/ClipboardTextContext.vue.d.ts +11 -0
- package/dist/components/clipboard-text/ClipboardTextControl.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextIndicator.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextInput.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextLabel.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextRootProvider.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextTrigger.vue.d.ts +13 -0
- package/dist/components/clipboard-text/ClipboardTextValueText.vue.d.ts +13 -0
- package/dist/components/clipboard-text/clipboard-text.d.ts +63 -0
- package/dist/components/clipboard-text/index.d.ts +23 -0
- package/dist/components/clipboard-text.js +2 -0
- package/dist/components/code-highlighted/CodeHighlighted.vue.d.ts +9 -0
- package/dist/components/code-highlighted/ShikiProvider.vue.d.ts +7 -0
- package/dist/components/code-highlighted/code-highlighted-context.d.ts +11 -0
- package/dist/components/code-highlighted/code-highlighted-languages.d.ts +4 -0
- package/dist/components/code-highlighted/code-highlighted.d.ts +40 -0
- package/dist/components/code-highlighted/index.d.ts +9 -0
- package/dist/components/code-highlighted/shiki-lifecycle.d.ts +11 -0
- package/dist/components/code-highlighted/use-shiki-highlighter.d.ts +10 -0
- package/dist/components/code-highlighted.js +307 -0
- package/dist/components/code-highlighted.js.map +1 -0
- package/dist/components/collapsible/Collapsible.vue.d.ts +35 -0
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +13 -0
- package/dist/components/collapsible/CollapsibleContext.vue.d.ts +11 -0
- package/dist/components/collapsible/CollapsibleIndicator.vue.d.ts +13 -0
- package/dist/components/collapsible/CollapsibleRootProvider.vue.d.ts +13 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +14 -0
- package/dist/components/collapsible/collapsible.d.ts +57 -0
- package/dist/components/collapsible/index.d.ts +17 -0
- package/dist/components/collapsible-section/CollapsibleSection.vue.d.ts +33 -0
- package/dist/components/collapsible-section/CollapsibleSectionActions.vue.d.ts +11 -0
- package/dist/components/collapsible-section/CollapsibleSectionContent.vue.d.ts +13 -0
- package/dist/components/collapsible-section/CollapsibleSectionHeader.vue.d.ts +11 -0
- package/dist/components/collapsible-section/CollapsibleSectionIndicator.vue.d.ts +13 -0
- package/dist/components/collapsible-section/CollapsibleSectionTrigger.vue.d.ts +13 -0
- package/dist/components/collapsible-section/collapsible-section.d.ts +42 -0
- package/dist/components/collapsible-section/index.d.ts +17 -0
- package/dist/components/collapsible-section.js +2 -0
- package/dist/components/collapsible.js +2 -0
- package/dist/components/color-picker/ColorPicker.vue.d.ts +51 -0
- package/dist/components/color-picker/ColorPickerArea.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerAreaBackground.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerAreaThumb.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerChannelInput.vue.d.ts +4 -0
- package/dist/components/color-picker/ColorPickerChannelSlider.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerChannelSliderLabel.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerChannelSliderThumb.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerChannelSliderTrack.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerChannelSliderValueText.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerContent.vue.d.ts +20 -0
- package/dist/components/color-picker/ColorPickerContext.vue.d.ts +11 -0
- package/dist/components/color-picker/ColorPickerControl.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerEyeDropperTrigger.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerFormatSelect.vue.d.ts +4 -0
- package/dist/components/color-picker/ColorPickerFormatTrigger.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerHiddenInput.vue.d.ts +4 -0
- package/dist/components/color-picker/ColorPickerLabel.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerRootProvider.vue.d.ts +16 -0
- package/dist/components/color-picker/ColorPickerSwatch.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerSwatchGroup.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerSwatchIndicator.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerSwatchTrigger.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerTransparencyGrid.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerTrigger.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerValueSwatch.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerValueText.vue.d.ts +12 -0
- package/dist/components/color-picker/ColorPickerView.vue.d.ts +12 -0
- package/dist/components/color-picker/color-picker.d.ts +71 -0
- package/dist/components/color-picker/index.d.ts +61 -0
- package/dist/components/color-picker.js +2 -0
- package/dist/components/combobox/Combobox.vue.d.ts +68 -0
- package/dist/components/combobox/ComboboxChip.vue.d.ts +7 -0
- package/dist/components/combobox/ComboboxClearTrigger.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxContent.vue.d.ts +142 -0
- package/dist/components/combobox/ComboboxContext.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxControl.vue.d.ts +4 -0
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +6 -0
- package/dist/components/combobox/ComboboxGroupLabel.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxInput.vue.d.ts +6 -0
- package/dist/components/combobox/ComboboxItem.vue.d.ts +5 -0
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxItemText.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxLabel.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxList.vue.d.ts +18 -0
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxTrigger.vue.d.ts +3 -0
- package/dist/components/combobox/ComboboxTriggerInput.vue.d.ts +19 -0
- package/dist/components/combobox/ComboboxTriggerMultipleWithInput.vue.d.ts +21 -0
- package/dist/components/combobox/ComboboxTriggerValue.vue.d.ts +19 -0
- package/dist/components/combobox/ComboboxValue.vue.d.ts +4 -0
- package/dist/components/combobox/combobox-context.d.ts +16 -0
- package/dist/components/combobox/combobox.d.ts +162 -0
- package/dist/components/combobox/index.d.ts +50 -0
- package/dist/components/combobox.js +2 -0
- package/dist/components/command-palette/CommandPaletteDialog.vue.d.ts +21 -0
- package/dist/components/command-palette/CommandPaletteEmpty.vue.d.ts +3 -0
- package/dist/components/command-palette/CommandPaletteFooter.vue.d.ts +3 -0
- package/dist/components/command-palette/CommandPaletteGroup.vue.d.ts +8 -0
- package/dist/components/command-palette/CommandPaletteGroupLabel.vue.d.ts +3 -0
- package/dist/components/command-palette/CommandPaletteHighlightedText.vue.d.ts +8 -0
- package/dist/components/command-palette/CommandPaletteInput.vue.d.ts +8 -0
- package/dist/components/command-palette/CommandPaletteItem.vue.d.ts +11 -0
- package/dist/components/command-palette/CommandPaletteItems.vue.d.ts +19 -0
- package/dist/components/command-palette/CommandPaletteList.vue.d.ts +3 -0
- package/dist/components/command-palette/CommandPaletteLoading.vue.d.ts +3 -0
- package/dist/components/command-palette/CommandPalettePanel.vue.d.ts +28 -0
- package/dist/components/command-palette/CommandPaletteResultItem.vue.d.ts +12 -0
- package/dist/components/command-palette/CommandPaletteResults.vue.d.ts +16 -0
- package/dist/components/command-palette/CommandPaletteRoot.vue.d.ts +40 -0
- package/dist/components/command-palette/command-palette-context.d.ts +19 -0
- package/dist/components/command-palette/command-palette.d.ts +99 -0
- package/dist/components/command-palette/index.d.ts +35 -0
- package/dist/components/command-palette.js +2 -0
- package/dist/components/content-loader/ContentLoader.vue.d.ts +26 -0
- package/dist/components/content-loader/content-loader.d.ts +30 -0
- package/dist/components/content-loader/index.d.ts +2 -0
- package/dist/components/content-loader.js +2 -0
- package/dist/components/context-menu/ContextMenu.vue.d.ts +68 -0
- package/dist/components/context-menu/context-menu.d.ts +12 -0
- package/dist/components/context-menu/index.d.ts +51 -0
- package/dist/components/context-menu.js +3 -0
- package/dist/components/data-grid/DataGrid.vue.d.ts +42 -0
- package/dist/components/data-grid/DataGridColumnVisibility.vue.d.ts +6 -0
- package/dist/components/data-grid/DataGridContext.vue.d.ts +11 -0
- package/dist/components/data-grid/DataGridPagination.vue.d.ts +7 -0
- package/dist/components/data-grid/data-grid-context.d.ts +3 -0
- package/dist/components/data-grid/data-grid-engine.d.ts +31 -0
- package/dist/components/data-grid/data-grid-resize.d.ts +12 -0
- package/dist/components/data-grid/data-grid.d.ts +199 -0
- package/dist/components/data-grid/index.d.ts +12 -0
- package/dist/components/data-grid/use-data-grid-focus.d.ts +35 -0
- package/dist/components/data-grid/use-data-grid-state.d.ts +37 -0
- package/dist/components/data-grid.js +2 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +95 -0
- package/dist/components/date-picker/DatePickerCalendar.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerClearTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerContent.vue.d.ts +15 -0
- package/dist/components/date-picker/DatePickerContext.vue.d.ts +11 -0
- package/dist/components/date-picker/DatePickerControl.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerInput.vue.d.ts +14 -0
- package/dist/components/date-picker/DatePickerLabel.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerMonthSelect.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerNextTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerPresetTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerPrevTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerRangeText.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerRootProvider.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTable.vue.d.ts +15 -0
- package/dist/components/date-picker/DatePickerTableBody.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTableCell.vue.d.ts +19 -0
- package/dist/components/date-picker/DatePickerTableCellTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTableHead.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTableHeader.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTableRow.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerValueText.vue.d.ts +14 -0
- package/dist/components/date-picker/DatePickerView.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerViewControl.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerViewTrigger.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerWeekNumberCell.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerWeekNumberHeaderCell.vue.d.ts +13 -0
- package/dist/components/date-picker/DatePickerYearSelect.vue.d.ts +13 -0
- package/dist/components/date-picker/date-picker.d.ts +219 -0
- package/dist/components/date-picker/index.d.ts +63 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/dialog/Dialog.vue.d.ts +63 -0
- package/dist/components/dialog/DialogBackdrop.vue.d.ts +13 -0
- package/dist/components/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/components/dialog/DialogContent.vue.d.ts +18 -0
- package/dist/components/dialog/DialogContext.vue.d.ts +11 -0
- package/dist/components/dialog/DialogDescription.vue.d.ts +13 -0
- package/dist/components/dialog/DialogFooter.vue.d.ts +11 -0
- package/dist/components/dialog/DialogHeader.vue.d.ts +11 -0
- package/dist/components/dialog/DialogPositioner.vue.d.ts +13 -0
- package/dist/components/dialog/DialogRootProvider.vue.d.ts +18 -0
- package/dist/components/dialog/DialogTitle.vue.d.ts +13 -0
- package/dist/components/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/components/dialog/dialog.d.ts +121 -0
- package/dist/components/dialog/index.d.ts +31 -0
- package/dist/components/dialog-layout/DialogLayoutActions.vue.d.ts +14 -0
- package/dist/components/dialog-layout/DialogLayoutAlert.vue.d.ts +39 -0
- package/dist/components/dialog-layout/DialogLayoutBody.vue.d.ts +11 -0
- package/dist/components/dialog-layout/DialogLayoutContent.vue.d.ts +19 -0
- package/dist/components/dialog-layout/DialogLayoutHeader.vue.d.ts +11 -0
- package/dist/components/dialog-layout/DialogLayoutPrimaryAction.vue.d.ts +17 -0
- package/dist/components/dialog-layout/dialog-layout.d.ts +40 -0
- package/dist/components/dialog-layout/index.d.ts +30 -0
- package/dist/components/dialog-layout.js +3 -0
- package/dist/components/dialog.js +3 -0
- package/dist/components/dicehub-logo/DicehubLogo.vue.d.ts +13 -0
- package/dist/components/dicehub-logo/PoweredByDicehub.vue.d.ts +14 -0
- package/dist/components/dicehub-logo/dicehub-logo.d.ts +19 -0
- package/dist/components/dicehub-logo/index.d.ts +3 -0
- package/dist/components/dicehub-logo.js +2 -0
- package/dist/components/diff-viewer/DiffViewer.vue.d.ts +11 -0
- package/dist/components/diff-viewer/DiffViewerLine.vue.d.ts +9 -0
- package/dist/components/diff-viewer/diff-viewer-rows.d.ts +6 -0
- package/dist/components/diff-viewer/diff-viewer.d.ts +57 -0
- package/dist/components/diff-viewer/index.d.ts +8 -0
- package/dist/components/diff-viewer/parse-unified-diff.d.ts +3 -0
- package/dist/components/diff-viewer.js +2 -0
- package/dist/components/direction-provider/DirectionProvider.vue.d.ts +13 -0
- package/dist/components/direction-provider/direction-provider.d.ts +13 -0
- package/dist/components/direction-provider/index.d.ts +2 -0
- package/dist/components/direction-provider.js +2 -0
- package/dist/components/download-trigger/DownloadTrigger.vue.d.ts +26 -0
- package/dist/components/download-trigger/download-trigger.d.ts +29 -0
- package/dist/components/download-trigger/index.d.ts +3 -0
- package/dist/components/download-trigger.js +2 -0
- package/dist/components/drag-selection/DragSelection.vue.d.ts +37 -0
- package/dist/components/drag-selection/drag-selection.d.ts +59 -0
- package/dist/components/drag-selection/index.d.ts +2 -0
- package/dist/components/drag-selection/use-drag-selection.d.ts +9 -0
- package/dist/components/drag-selection.js +2 -0
- package/dist/components/drawer/Drawer.vue.d.ts +64 -0
- package/dist/components/drawer/DrawerBackdrop.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerClose.vue.d.ts +14 -0
- package/dist/components/drawer/DrawerContent.vue.d.ts +19 -0
- package/dist/components/drawer/DrawerContext.vue.d.ts +11 -0
- package/dist/components/drawer/DrawerDescription.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerFooter.vue.d.ts +11 -0
- package/dist/components/drawer/DrawerGrabber.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerGrabberIndicator.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerHeader.vue.d.ts +11 -0
- package/dist/components/drawer/DrawerIndent.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerIndentBackground.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerPositioner.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerRootProvider.vue.d.ts +18 -0
- package/dist/components/drawer/DrawerStack.vue.d.ts +11 -0
- package/dist/components/drawer/DrawerSwipeArea.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerTitle.vue.d.ts +13 -0
- package/dist/components/drawer/DrawerTrigger.vue.d.ts +14 -0
- package/dist/components/drawer/drawer.d.ts +140 -0
- package/dist/components/drawer/index.d.ts +43 -0
- package/dist/components/drawer.js +2 -0
- package/dist/components/dropdown/Dropdown.vue.d.ts +68 -0
- package/dist/components/dropdown/DropdownArrow.vue.d.ts +13 -0
- package/dist/components/dropdown/DropdownCheckboxItem.vue.d.ts +25 -0
- package/dist/components/dropdown/DropdownContent.vue.d.ts +15 -0
- package/dist/components/dropdown/DropdownContext.vue.d.ts +11 -0
- package/dist/components/dropdown/DropdownContextTrigger.vue.d.ts +14 -0
- package/dist/components/dropdown/DropdownGroup.vue.d.ts +14 -0
- package/dist/components/dropdown/DropdownIndicator.vue.d.ts +13 -0
- package/dist/components/dropdown/DropdownItem.vue.d.ts +25 -0
- package/dist/components/dropdown/DropdownItemContext.vue.d.ts +11 -0
- package/dist/components/dropdown/DropdownItemIndicator.vue.d.ts +13 -0
- package/dist/components/dropdown/DropdownItemText.vue.d.ts +13 -0
- package/dist/components/dropdown/DropdownLabel.vue.d.ts +14 -0
- package/dist/components/dropdown/DropdownLinkItem.vue.d.ts +26 -0
- package/dist/components/dropdown/DropdownRadioGroup.vue.d.ts +22 -0
- package/dist/components/dropdown/DropdownRadioItem.vue.d.ts +17 -0
- package/dist/components/dropdown/DropdownRootProvider.vue.d.ts +18 -0
- package/dist/components/dropdown/DropdownSeparator.vue.d.ts +13 -0
- package/dist/components/dropdown/DropdownShortcut.vue.d.ts +11 -0
- package/dist/components/dropdown/DropdownSub.vue.d.ts +68 -0
- package/dist/components/dropdown/DropdownSubContent.vue.d.ts +15 -0
- package/dist/components/dropdown/DropdownSubTrigger.vue.d.ts +17 -0
- package/dist/components/dropdown/DropdownTrigger.vue.d.ts +14 -0
- package/dist/components/dropdown/dropdown-aria-label.d.ts +2 -0
- package/dist/components/dropdown/dropdown.d.ts +224 -0
- package/dist/components/dropdown/index.d.ts +55 -0
- package/dist/components/dropdown.js +3 -0
- package/dist/components/editable/Editable.vue.d.ts +68 -0
- package/dist/components/editable/EditableArea.vue.d.ts +13 -0
- package/dist/components/editable/EditableCancelTrigger.vue.d.ts +13 -0
- package/dist/components/editable/EditableContext.vue.d.ts +11 -0
- package/dist/components/editable/EditableControl.vue.d.ts +13 -0
- package/dist/components/editable/EditableEditTrigger.vue.d.ts +13 -0
- package/dist/components/editable/EditableInput.vue.d.ts +13 -0
- package/dist/components/editable/EditableLabel.vue.d.ts +13 -0
- package/dist/components/editable/EditablePreview.vue.d.ts +13 -0
- package/dist/components/editable/EditableRootProvider.vue.d.ts +14 -0
- package/dist/components/editable/EditableSubmitTrigger.vue.d.ts +13 -0
- package/dist/components/editable/editable.d.ts +84 -0
- package/dist/components/editable/index.d.ts +27 -0
- package/dist/components/editable.js +2 -0
- package/dist/components/empty/Empty.vue.d.ts +13 -0
- package/dist/components/empty/EmptyContent.vue.d.ts +11 -0
- package/dist/components/empty/EmptyDescription.vue.d.ts +11 -0
- package/dist/components/empty/EmptyHeader.vue.d.ts +11 -0
- package/dist/components/empty/EmptyMedia.vue.d.ts +13 -0
- package/dist/components/empty/EmptyTitle.vue.d.ts +13 -0
- package/dist/components/empty/empty.d.ts +48 -0
- package/dist/components/empty/index.d.ts +16 -0
- package/dist/components/empty.js +2 -0
- package/dist/components/expandable-text/ExpandableText.vue.d.ts +26 -0
- package/dist/components/expandable-text/expandable-text.d.ts +34 -0
- package/dist/components/expandable-text/index.d.ts +4 -0
- package/dist/components/expandable-text.js +2 -0
- package/dist/components/field/Field.vue.d.ts +21 -0
- package/dist/components/field/FieldContext.vue.d.ts +11 -0
- package/dist/components/field/FieldErrorText.vue.d.ts +16 -0
- package/dist/components/field/FieldHelperText.vue.d.ts +16 -0
- package/dist/components/field/FieldInput.vue.d.ts +18 -0
- package/dist/components/field/FieldItem.vue.d.ts +14 -0
- package/dist/components/field/FieldLabel.vue.d.ts +16 -0
- package/dist/components/field/FieldRequiredIndicator.vue.d.ts +16 -0
- package/dist/components/field/FieldRootProvider.vue.d.ts +14 -0
- package/dist/components/field/FieldSelect.vue.d.ts +18 -0
- package/dist/components/field/FieldTextarea.vue.d.ts +19 -0
- package/dist/components/field/field.d.ts +72 -0
- package/dist/components/field/index.d.ts +28 -0
- package/dist/components/field.js +2 -0
- package/dist/components/fieldset/Fieldset.vue.d.ts +17 -0
- package/dist/components/fieldset/FieldsetContext.vue.d.ts +11 -0
- package/dist/components/fieldset/FieldsetErrorText.vue.d.ts +16 -0
- package/dist/components/fieldset/FieldsetHelperText.vue.d.ts +16 -0
- package/dist/components/fieldset/FieldsetLegend.vue.d.ts +16 -0
- package/dist/components/fieldset/FieldsetRootProvider.vue.d.ts +14 -0
- package/dist/components/fieldset/fieldset.d.ts +38 -0
- package/dist/components/fieldset/index.d.ts +18 -0
- package/dist/components/fieldset.js +2 -0
- package/dist/components/file-upload/FileUpload.vue.d.ts +55 -0
- package/dist/components/file-upload/FileUploadClearTrigger.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadContext.vue.d.ts +11 -0
- package/dist/components/file-upload/FileUploadDropzone.vue.d.ts +15 -0
- package/dist/components/file-upload/FileUploadHiddenInput.vue.d.ts +7 -0
- package/dist/components/file-upload/FileUploadItem.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadItemDeleteTrigger.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadItemGroup.vue.d.ts +15 -0
- package/dist/components/file-upload/FileUploadItemName.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadItemPreview.vue.d.ts +15 -0
- package/dist/components/file-upload/FileUploadItemPreviewImage.vue.d.ts +7 -0
- package/dist/components/file-upload/FileUploadItemSizeText.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadLabel.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadRootProvider.vue.d.ts +14 -0
- package/dist/components/file-upload/FileUploadTrigger.vue.d.ts +14 -0
- package/dist/components/file-upload/file-upload.d.ts +70 -0
- package/dist/components/file-upload/index.d.ts +35 -0
- package/dist/components/file-upload.js +2 -0
- package/dist/components/filter-bar/FilterBar.vue.d.ts +26 -0
- package/dist/components/filter-bar/filter-bar.d.ts +58 -0
- package/dist/components/filter-bar/index.d.ts +3 -0
- package/dist/components/filter-bar.js +2 -0
- package/dist/components/floating-panel/FloatingPanel.vue.d.ts +48 -0
- package/dist/components/floating-panel/FloatingPanelBody.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelClose.vue.d.ts +13 -0
- package/dist/components/floating-panel/FloatingPanelContent.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelContext.vue.d.ts +11 -0
- package/dist/components/floating-panel/FloatingPanelControl.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelDragTrigger.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelHeader.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelPositioner.vue.d.ts +14 -0
- package/dist/components/floating-panel/FloatingPanelResizeTrigger.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelRootProvider.vue.d.ts +20 -0
- package/dist/components/floating-panel/FloatingPanelStageTrigger.vue.d.ts +11 -0
- package/dist/components/floating-panel/FloatingPanelTitle.vue.d.ts +12 -0
- package/dist/components/floating-panel/FloatingPanelTrigger.vue.d.ts +12 -0
- package/dist/components/floating-panel/floating-panel.d.ts +75 -0
- package/dist/components/floating-panel/index.d.ts +35 -0
- package/dist/components/floating-panel.js +2 -0
- package/dist/components/flow/Flow.vue.d.ts +16 -0
- package/dist/components/flow/FlowAnchor.vue.d.ts +11 -0
- package/dist/components/flow/FlowConnectorLayer.vue.d.ts +8 -0
- package/dist/components/flow/FlowList.vue.d.ts +11 -0
- package/dist/components/flow/FlowNode.vue.d.ts +14 -0
- package/dist/components/flow/FlowParallel.vue.d.ts +13 -0
- package/dist/components/flow/flow-connectors.d.ts +2 -0
- package/dist/components/flow/flow-dom.d.ts +4 -0
- package/dist/components/flow/flow.d.ts +129 -0
- package/dist/components/flow/index.d.ts +15 -0
- package/dist/components/flow.js +2 -0
- package/dist/components/format/Format.vue.d.ts +13 -0
- package/dist/components/format/FormatByte.vue.d.ts +9 -0
- package/dist/components/format/FormatNumber.vue.d.ts +13 -0
- package/dist/components/format/FormatRelativeTime.vue.d.ts +9 -0
- package/dist/components/format/FormatTime.vue.d.ts +10 -0
- package/dist/components/format/format.d.ts +62 -0
- package/dist/components/format/index.d.ts +14 -0
- package/dist/components/format.js +2 -0
- package/dist/components/grid/Grid.vue.d.ts +15 -0
- package/dist/components/grid/GridItem.vue.d.ts +13 -0
- package/dist/components/grid/grid.d.ts +88 -0
- package/dist/components/grid/index.d.ts +8 -0
- package/dist/components/grid.js +2 -0
- package/dist/components/highlight/Highlight.vue.d.ts +8 -0
- package/dist/components/highlight/highlight.d.ts +19 -0
- package/dist/components/highlight/index.d.ts +5 -0
- package/dist/components/highlight.js +2 -0
- package/dist/components/hover-card/HoverCard.vue.d.ts +48 -0
- package/dist/components/hover-card/HoverCardArrow.vue.d.ts +13 -0
- package/dist/components/hover-card/HoverCardArrowTip.vue.d.ts +13 -0
- package/dist/components/hover-card/HoverCardContent.vue.d.ts +16 -0
- package/dist/components/hover-card/HoverCardContext.vue.d.ts +11 -0
- package/dist/components/hover-card/HoverCardPositioner.vue.d.ts +13 -0
- package/dist/components/hover-card/HoverCardRootProvider.vue.d.ts +18 -0
- package/dist/components/hover-card/HoverCardTrigger.vue.d.ts +15 -0
- package/dist/components/hover-card/hover-card.d.ts +88 -0
- package/dist/components/hover-card/index.d.ts +22 -0
- package/dist/components/hover-card.js +2 -0
- package/dist/components/image-cropper/ImageCropper.vue.d.ts +28 -0
- package/dist/components/image-cropper/ImageCropperEditor.vue.d.ts +19 -0
- package/dist/components/image-cropper/image-cropper-geometry.d.ts +32 -0
- package/dist/components/image-cropper/image-cropper-source.d.ts +23 -0
- package/dist/components/image-cropper/image-cropper.d.ts +85 -0
- package/dist/components/image-cropper/index.d.ts +3 -0
- package/dist/components/image-cropper.js +2 -0
- package/dist/components/index.d.ts +95 -0
- package/dist/components/input/Input.vue.d.ts +9 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/input.d.ts +20 -0
- package/dist/components/input-area/InputArea.vue.d.ts +28 -0
- package/dist/components/input-area/index.d.ts +2 -0
- package/dist/components/input-area/input-area.d.ts +23 -0
- package/dist/components/input-area.js +2 -0
- package/dist/components/input-group/InputGroup.vue.d.ts +15 -0
- package/dist/components/input-group/InputGroupAddon.vue.d.ts +13 -0
- package/dist/components/input-group/InputGroupButton.vue.d.ts +24 -0
- package/dist/components/input-group/InputGroupInput.vue.d.ts +17 -0
- package/dist/components/input-group/InputGroupText.vue.d.ts +11 -0
- package/dist/components/input-group/InputGroupTextarea.vue.d.ts +17 -0
- package/dist/components/input-group/context.d.ts +6 -0
- package/dist/components/input-group/index.d.ts +16 -0
- package/dist/components/input-group/input-group.d.ts +74 -0
- package/dist/components/input-group.js +2 -0
- package/dist/components/input-otp/InputOtp.vue.d.ts +53 -0
- package/dist/components/input-otp/InputOtpContext.vue.d.ts +11 -0
- package/dist/components/input-otp/InputOtpControl.vue.d.ts +14 -0
- package/dist/components/input-otp/InputOtpHiddenInput.vue.d.ts +14 -0
- package/dist/components/input-otp/InputOtpInput.vue.d.ts +12 -0
- package/dist/components/input-otp/InputOtpLabel.vue.d.ts +14 -0
- package/dist/components/input-otp/InputOtpRootProvider.vue.d.ts +14 -0
- package/dist/components/input-otp/index.d.ts +19 -0
- package/dist/components/input-otp/input-otp.d.ts +66 -0
- package/dist/components/input-otp.js +2 -0
- package/dist/components/input.js +2 -0
- package/dist/components/item/Item.vue.d.ts +15 -0
- package/dist/components/item/ItemActions.vue.d.ts +11 -0
- package/dist/components/item/ItemContent.vue.d.ts +11 -0
- package/dist/components/item/ItemDescription.vue.d.ts +11 -0
- package/dist/components/item/ItemFooter.vue.d.ts +11 -0
- package/dist/components/item/ItemGroup.vue.d.ts +11 -0
- package/dist/components/item/ItemHeader.vue.d.ts +11 -0
- package/dist/components/item/ItemMedia.vue.d.ts +13 -0
- package/dist/components/item/ItemSeparator.vue.d.ts +3 -0
- package/dist/components/item/ItemTitle.vue.d.ts +13 -0
- package/dist/components/item/index.d.ts +24 -0
- package/dist/components/item/item.d.ts +70 -0
- package/dist/components/item.js +2 -0
- package/dist/components/kbd/Kbd.vue.d.ts +11 -0
- package/dist/components/kbd/KbdGroup.vue.d.ts +11 -0
- package/dist/components/kbd/index.d.ts +3 -0
- package/dist/components/kbd/kbd.d.ts +15 -0
- package/dist/components/kbd.js +2 -0
- package/dist/components/label/Label.vue.d.ts +17 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/label.d.ts +23 -0
- package/dist/components/label.js +2 -0
- package/dist/components/layer-card/LayerCard.vue.d.ts +13 -0
- package/dist/components/layer-card/LayerCardPrimary.vue.d.ts +13 -0
- package/dist/components/layer-card/LayerCardSecondary.vue.d.ts +13 -0
- package/dist/components/layer-card/index.d.ts +10 -0
- package/dist/components/layer-card/layer-card.d.ts +36 -0
- package/dist/components/layer-card.js +2 -0
- package/dist/components/link/Link.vue.d.ts +16 -0
- package/dist/components/link/LinkExternalIcon.vue.d.ts +3 -0
- package/dist/components/link/index.d.ts +7 -0
- package/dist/components/link/link.d.ts +21 -0
- package/dist/components/link.js +2 -0
- package/dist/components/loader/Loader.vue.d.ts +10 -0
- package/dist/components/loader/LoaderGraphic.vue.d.ts +8 -0
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/loader.d.ts +30 -0
- package/dist/components/loader.js +2 -0
- package/dist/components/map-view/MapView.vue.d.ts +44 -0
- package/dist/components/map-view/index.d.ts +2 -0
- package/dist/components/map-view/map-view.d.ts +72 -0
- package/dist/components/map-view.js +230 -0
- package/dist/components/map-view.js.map +1 -0
- package/dist/components/matrix-loader/MatrixLoader.vue.d.ts +11 -0
- package/dist/components/matrix-loader/index.d.ts +2 -0
- package/dist/components/matrix-loader/matrix-loader.d.ts +46 -0
- package/dist/components/matrix-loader.js +2 -0
- package/dist/components/menu-bar/MenuBar.vue.d.ts +18 -0
- package/dist/components/menu-bar/MenuBarContent.vue.d.ts +15 -0
- package/dist/components/menu-bar/MenuBarMenu.vue.d.ts +15 -0
- package/dist/components/menu-bar/MenuBarSubTrigger.vue.d.ts +11 -0
- package/dist/components/menu-bar/MenuBarTrigger.vue.d.ts +14 -0
- package/dist/components/menu-bar/index.d.ts +27 -0
- package/dist/components/menu-bar/menu-bar.d.ts +50 -0
- package/dist/components/menu-bar.js +2 -0
- package/dist/components/meter/Meter.vue.d.ts +11 -0
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/meter.d.ts +44 -0
- package/dist/components/meter.js +2 -0
- package/dist/components/native-select/NativeSelect.vue.d.ts +16 -0
- package/dist/components/native-select/NativeSelectOptGroup.vue.d.ts +11 -0
- package/dist/components/native-select/NativeSelectOption.vue.d.ts +11 -0
- package/dist/components/native-select/index.d.ts +10 -0
- package/dist/components/native-select/native-select.d.ts +26 -0
- package/dist/components/native-select.js +2 -0
- package/dist/components/number-input/NumberInput.vue.d.ts +60 -0
- package/dist/components/number-input/NumberInputContext.vue.d.ts +11 -0
- package/dist/components/number-input/NumberInputControl.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputDecrementTrigger.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputIncrementTrigger.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputInput.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputLabel.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputMachine.vue.d.ts +11 -0
- package/dist/components/number-input/NumberInputRootProvider.vue.d.ts +18 -0
- package/dist/components/number-input/NumberInputScrubbableInput.vue.d.ts +19 -0
- package/dist/components/number-input/NumberInputScrubber.vue.d.ts +13 -0
- package/dist/components/number-input/NumberInputUnit.vue.d.ts +11 -0
- package/dist/components/number-input/NumberInputValueText.vue.d.ts +13 -0
- package/dist/components/number-input/index.d.ts +29 -0
- package/dist/components/number-input/number-input-decimal.d.ts +1 -0
- package/dist/components/number-input/number-input-scrub-steps.d.ts +18 -0
- package/dist/components/number-input/number-input.d.ts +120 -0
- package/dist/components/number-input/use-scrubbable-number-input.d.ts +18 -0
- package/dist/components/number-input.js +2 -0
- package/dist/components/pagination/Pagination.vue.d.ts +41 -0
- package/dist/components/pagination/PaginationArrow.vue.d.ts +7 -0
- package/dist/components/pagination/PaginationContext.vue.d.ts +11 -0
- package/dist/components/pagination/PaginationControls.vue.d.ts +12 -0
- package/dist/components/pagination/PaginationEllipsis.vue.d.ts +14 -0
- package/dist/components/pagination/PaginationFirstTrigger.vue.d.ts +18 -0
- package/dist/components/pagination/PaginationItem.vue.d.ts +14 -0
- package/dist/components/pagination/PaginationLastTrigger.vue.d.ts +18 -0
- package/dist/components/pagination/PaginationNextTrigger.vue.d.ts +18 -0
- package/dist/components/pagination/PaginationPrevTrigger.vue.d.ts +18 -0
- package/dist/components/pagination/PaginationRootProvider.vue.d.ts +13 -0
- package/dist/components/pagination/index.d.ts +25 -0
- package/dist/components/pagination/pagination.d.ts +64 -0
- package/dist/components/pagination.js +2 -0
- package/dist/components/popover/Popover.vue.d.ts +64 -0
- package/dist/components/popover/PopoverAnchor.vue.d.ts +13 -0
- package/dist/components/popover/PopoverArrow.vue.d.ts +13 -0
- package/dist/components/popover/PopoverArrowTip.vue.d.ts +13 -0
- package/dist/components/popover/PopoverCloseTrigger.vue.d.ts +13 -0
- package/dist/components/popover/PopoverContent.vue.d.ts +16 -0
- package/dist/components/popover/PopoverContext.vue.d.ts +11 -0
- package/dist/components/popover/PopoverDescription.vue.d.ts +13 -0
- package/dist/components/popover/PopoverIndicator.vue.d.ts +13 -0
- package/dist/components/popover/PopoverPositioner.vue.d.ts +13 -0
- package/dist/components/popover/PopoverRootProvider.vue.d.ts +18 -0
- package/dist/components/popover/PopoverTitle.vue.d.ts +13 -0
- package/dist/components/popover/PopoverTrigger.vue.d.ts +15 -0
- package/dist/components/popover/index.d.ts +33 -0
- package/dist/components/popover/popover.d.ts +126 -0
- package/dist/components/popover.js +2 -0
- package/dist/components/presence/Presence.vue.d.ts +24 -0
- package/dist/components/presence/index.d.ts +3 -0
- package/dist/components/presence/presence.d.ts +26 -0
- package/dist/components/presence.js +2 -0
- package/dist/components/progress/Progress.vue.d.ts +35 -0
- package/dist/components/progress/ProgressContext.vue.d.ts +11 -0
- package/dist/components/progress/ProgressLabel.vue.d.ts +14 -0
- package/dist/components/progress/ProgressRange.vue.d.ts +14 -0
- package/dist/components/progress/ProgressRootProvider.vue.d.ts +13 -0
- package/dist/components/progress/ProgressTrack.vue.d.ts +14 -0
- package/dist/components/progress/ProgressValueText.vue.d.ts +14 -0
- package/dist/components/progress/ProgressView.vue.d.ts +14 -0
- package/dist/components/progress/index.d.ts +21 -0
- package/dist/components/progress/progress.d.ts +51 -0
- package/dist/components/progress-circle/ProgressCircle.vue.d.ts +35 -0
- package/dist/components/progress-circle/ProgressCircleContext.vue.d.ts +11 -0
- package/dist/components/progress-circle/ProgressCircleGraphic.vue.d.ts +14 -0
- package/dist/components/progress-circle/ProgressCircleLabel.vue.d.ts +14 -0
- package/dist/components/progress-circle/ProgressCircleRange.vue.d.ts +14 -0
- package/dist/components/progress-circle/ProgressCircleRootProvider.vue.d.ts +13 -0
- package/dist/components/progress-circle/ProgressCircleTrack.vue.d.ts +14 -0
- package/dist/components/progress-circle/ProgressCircleValueText.vue.d.ts +14 -0
- package/dist/components/progress-circle/ProgressCircleView.vue.d.ts +14 -0
- package/dist/components/progress-circle/index.d.ts +23 -0
- package/dist/components/progress-circle/progress-circle.d.ts +53 -0
- package/dist/components/progress-circle.js +2 -0
- package/dist/components/progress.js +2 -0
- package/dist/components/property-list/PropertyList.vue.d.ts +15 -0
- package/dist/components/property-list/PropertyListItem.vue.d.ts +11 -0
- package/dist/components/property-list/PropertyListTerm.vue.d.ts +11 -0
- package/dist/components/property-list/PropertyListValue.vue.d.ts +11 -0
- package/dist/components/property-list/index.d.ts +12 -0
- package/dist/components/property-list/property-list.d.ts +24 -0
- package/dist/components/property-list.js +2 -0
- package/dist/components/qr-code/QrCodeContext.vue.d.ts +11 -0
- package/dist/components/qr-code/QrCodeDownloadTrigger.vue.d.ts +26 -0
- package/dist/components/qr-code/QrCodeFrame.vue.d.ts +13 -0
- package/dist/components/qr-code/QrCodeOverlay.vue.d.ts +13 -0
- package/dist/components/qr-code/QrCodePattern.vue.d.ts +13 -0
- package/dist/components/qr-code/QrCodeRoot.vue.d.ts +29 -0
- package/dist/components/qr-code/QrCodeRootProvider.vue.d.ts +13 -0
- package/dist/components/qr-code/index.d.ts +20 -0
- package/dist/components/qr-code/qr-code.d.ts +49 -0
- package/dist/components/qr-code/use-qr-code.d.ts +3 -0
- package/dist/components/qr-code.js +2 -0
- package/dist/components/radio/Radio.vue.d.ts +40 -0
- package/dist/components/radio/RadioContext.vue.d.ts +11 -0
- package/dist/components/radio/RadioIndicator.vue.d.ts +14 -0
- package/dist/components/radio/RadioItem.vue.d.ts +14 -0
- package/dist/components/radio/RadioItemContext.vue.d.ts +11 -0
- package/dist/components/radio/RadioItemControl.vue.d.ts +14 -0
- package/dist/components/radio/RadioItemText.vue.d.ts +14 -0
- package/dist/components/radio/RadioLabel.vue.d.ts +14 -0
- package/dist/components/radio/RadioRootProvider.vue.d.ts +13 -0
- package/dist/components/radio/index.d.ts +23 -0
- package/dist/components/radio/radio.d.ts +64 -0
- package/dist/components/radio.js +2 -0
- package/dist/components/rating/Rating.vue.d.ts +44 -0
- package/dist/components/rating/RatingContext.vue.d.ts +11 -0
- package/dist/components/rating/RatingControl.vue.d.ts +14 -0
- package/dist/components/rating/RatingItem.vue.d.ts +13 -0
- package/dist/components/rating/RatingItemContext.vue.d.ts +11 -0
- package/dist/components/rating/RatingLabel.vue.d.ts +14 -0
- package/dist/components/rating/RatingRootProvider.vue.d.ts +15 -0
- package/dist/components/rating/index.d.ts +20 -0
- package/dist/components/rating/rating.d.ts +70 -0
- package/dist/components/rating.js +2 -0
- package/dist/components/resizable/Resizable.vue.d.ts +41 -0
- package/dist/components/resizable/ResizableContext.vue.d.ts +11 -0
- package/dist/components/resizable/ResizableHandle.vue.d.ts +15 -0
- package/dist/components/resizable/ResizablePanel.vue.d.ts +14 -0
- package/dist/components/resizable/ResizableResizeTrigger.vue.d.ts +15 -0
- package/dist/components/resizable/ResizableResizeTriggerIndicator.vue.d.ts +14 -0
- package/dist/components/resizable/ResizableRootProvider.vue.d.ts +14 -0
- package/dist/components/resizable/index.d.ts +20 -0
- package/dist/components/resizable/resizable.d.ts +43 -0
- package/dist/components/resizable.js +2 -0
- package/dist/components/scroll-area/ScrollArea.vue.d.ts +22 -0
- package/dist/components/scroll-area/ScrollAreaContent.vue.d.ts +14 -0
- package/dist/components/scroll-area/ScrollAreaContext.vue.d.ts +11 -0
- package/dist/components/scroll-area/ScrollAreaCorner.vue.d.ts +14 -0
- package/dist/components/scroll-area/ScrollAreaRootProvider.vue.d.ts +13 -0
- package/dist/components/scroll-area/ScrollAreaScrollbar.vue.d.ts +15 -0
- package/dist/components/scroll-area/ScrollAreaThumb.vue.d.ts +14 -0
- package/dist/components/scroll-area/ScrollAreaViewport.vue.d.ts +14 -0
- package/dist/components/scroll-area/index.d.ts +21 -0
- package/dist/components/scroll-area/scroll-area.d.ts +43 -0
- package/dist/components/scroll-area.js +2 -0
- package/dist/components/select/Select.vue.d.ts +60 -0
- package/dist/components/select/SelectClearTrigger.vue.d.ts +14 -0
- package/dist/components/select/SelectContent.vue.d.ts +14 -0
- package/dist/components/select/SelectContext.vue.d.ts +11 -0
- package/dist/components/select/SelectControl.vue.d.ts +14 -0
- package/dist/components/select/SelectGroup.vue.d.ts +14 -0
- package/dist/components/select/SelectGroupLabel.vue.d.ts +14 -0
- package/dist/components/select/SelectHiddenSelect.vue.d.ts +14 -0
- package/dist/components/select/SelectIndicator.vue.d.ts +14 -0
- package/dist/components/select/SelectItem.vue.d.ts +17 -0
- package/dist/components/select/SelectItemContext.vue.d.ts +11 -0
- package/dist/components/select/SelectItemIndicator.vue.d.ts +14 -0
- package/dist/components/select/SelectItemText.vue.d.ts +14 -0
- package/dist/components/select/SelectLabel.vue.d.ts +14 -0
- package/dist/components/select/SelectList.vue.d.ts +16 -0
- package/dist/components/select/SelectPositioner.vue.d.ts +15 -0
- package/dist/components/select/SelectRootProvider.vue.d.ts +20 -0
- package/dist/components/select/SelectSeparator.vue.d.ts +13 -0
- package/dist/components/select/SelectTrigger.vue.d.ts +14 -0
- package/dist/components/select/SelectValueText.vue.d.ts +15 -0
- package/dist/components/select/index.d.ts +50 -0
- package/dist/components/select/select-context.d.ts +14 -0
- package/dist/components/select/select-positioning.d.ts +11 -0
- package/dist/components/select/select.d.ts +180 -0
- package/dist/components/select.js +2 -0
- package/dist/components/selection-list/SelectionList.vue.d.ts +50 -0
- package/dist/components/selection-list/SelectionListContent.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListContext.vue.d.ts +12 -0
- package/dist/components/selection-list/SelectionListEmpty.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListInput.vue.d.ts +16 -0
- package/dist/components/selection-list/SelectionListItem.vue.d.ts +15 -0
- package/dist/components/selection-list/SelectionListItemContent.vue.d.ts +11 -0
- package/dist/components/selection-list/SelectionListItemContext.vue.d.ts +11 -0
- package/dist/components/selection-list/SelectionListItemDescription.vue.d.ts +11 -0
- package/dist/components/selection-list/SelectionListItemGroup.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListItemGroupLabel.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListItemIndicator.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListItemMedia.vue.d.ts +11 -0
- package/dist/components/selection-list/SelectionListItemMeta.vue.d.ts +11 -0
- package/dist/components/selection-list/SelectionListItemText.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListLabel.vue.d.ts +14 -0
- package/dist/components/selection-list/SelectionListRootProvider.vue.d.ts +16 -0
- package/dist/components/selection-list/SelectionListValueText.vue.d.ts +15 -0
- package/dist/components/selection-list/index.d.ts +41 -0
- package/dist/components/selection-list/selection-list.d.ts +68 -0
- package/dist/components/selection-list.js +2 -0
- package/dist/components/sensitive-input/SensitiveInput.vue.d.ts +43 -0
- package/dist/components/sensitive-input/index.d.ts +2 -0
- package/dist/components/sensitive-input/sensitive-input.d.ts +39 -0
- package/dist/components/sensitive-input.js +2 -0
- package/dist/components/separator/Separator.vue.d.ts +7 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/separator.d.ts +12 -0
- package/dist/components/separator.js +2 -0
- package/dist/components/sidebar/Sidebar.vue.d.ts +14 -0
- package/dist/components/sidebar/SidebarClose.vue.d.ts +14 -0
- package/dist/components/sidebar/SidebarCollapsible.vue.d.ts +21 -0
- package/dist/components/sidebar/SidebarCollapsibleContent.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarCollapsibleTrigger.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarContent.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarContext.vue.d.ts +14 -0
- package/dist/components/sidebar/SidebarFooter.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarGroup.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarGroupLabel.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarHeader.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarLoading.vue.d.ts +7 -0
- package/dist/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarMenuBadge.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarMenuButton.vue.d.ts +15 -0
- package/dist/components/sidebar/SidebarMenuChevron.vue.d.ts +3 -0
- package/dist/components/sidebar/SidebarMenuChild.d.ts +11 -0
- package/dist/components/sidebar/SidebarMenuItem.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarMenuLabel.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarMenuSub.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarMenuSubItem.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarProvider.vue.d.ts +44 -0
- package/dist/components/sidebar/SidebarResizeControl.vue.d.ts +4 -0
- package/dist/components/sidebar/SidebarResizeHandle.vue.d.ts +7 -0
- package/dist/components/sidebar/SidebarSeparator.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarSlidingView.vue.d.ts +11 -0
- package/dist/components/sidebar/SidebarSlidingViews.vue.d.ts +13 -0
- package/dist/components/sidebar/SidebarTrigger.vue.d.ts +18 -0
- package/dist/components/sidebar/index.d.ts +59 -0
- package/dist/components/sidebar/sidebar-context.d.ts +29 -0
- package/dist/components/sidebar/sidebar-peek.d.ts +4 -0
- package/dist/components/sidebar/sidebar-resize.d.ts +36 -0
- package/dist/components/sidebar/sidebar-sliding-context.d.ts +8 -0
- package/dist/components/sidebar/sidebar.d.ts +134 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/skeleton-line/SkeletonLine.vue.d.ts +9 -0
- package/dist/components/skeleton-line/index.d.ts +2 -0
- package/dist/components/skeleton-line/skeleton-line.d.ts +14 -0
- package/dist/components/skeleton-line.js +2 -0
- package/dist/components/slider/Slider.vue.d.ts +62 -0
- package/dist/components/slider/SliderContext.vue.d.ts +11 -0
- package/dist/components/slider/SliderControl.vue.d.ts +14 -0
- package/dist/components/slider/SliderDraggingIndicator.vue.d.ts +14 -0
- package/dist/components/slider/SliderHiddenInput.vue.d.ts +13 -0
- package/dist/components/slider/SliderLabel.vue.d.ts +14 -0
- package/dist/components/slider/SliderMarker.vue.d.ts +14 -0
- package/dist/components/slider/SliderMarkerGroup.vue.d.ts +14 -0
- package/dist/components/slider/SliderRange.vue.d.ts +14 -0
- package/dist/components/slider/SliderRootProvider.vue.d.ts +14 -0
- package/dist/components/slider/SliderThumb.vue.d.ts +16 -0
- package/dist/components/slider/SliderTrack.vue.d.ts +14 -0
- package/dist/components/slider/SliderValueText.vue.d.ts +14 -0
- package/dist/components/slider/index.d.ts +32 -0
- package/dist/components/slider/slider.d.ts +83 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/steps/Steps.vue.d.ts +34 -0
- package/dist/components/steps/StepsCompletedContent.vue.d.ts +14 -0
- package/dist/components/steps/StepsContent.vue.d.ts +14 -0
- package/dist/components/steps/StepsContext.vue.d.ts +11 -0
- package/dist/components/steps/StepsIndicator.vue.d.ts +14 -0
- package/dist/components/steps/StepsItem.vue.d.ts +14 -0
- package/dist/components/steps/StepsItemContext.vue.d.ts +11 -0
- package/dist/components/steps/StepsList.vue.d.ts +14 -0
- package/dist/components/steps/StepsNextTrigger.vue.d.ts +14 -0
- package/dist/components/steps/StepsPrevTrigger.vue.d.ts +14 -0
- package/dist/components/steps/StepsProgress.vue.d.ts +14 -0
- package/dist/components/steps/StepsRootProvider.vue.d.ts +13 -0
- package/dist/components/steps/StepsSeparator.vue.d.ts +14 -0
- package/dist/components/steps/StepsTrigger.vue.d.ts +14 -0
- package/dist/components/steps/index.d.ts +33 -0
- package/dist/components/steps/steps.d.ts +75 -0
- package/dist/components/steps.js +2 -0
- package/dist/components/switch/Switch.vue.d.ts +40 -0
- package/dist/components/switch/SwitchContext.vue.d.ts +11 -0
- package/dist/components/switch/SwitchControl.vue.d.ts +14 -0
- package/dist/components/switch/SwitchLabel.vue.d.ts +14 -0
- package/dist/components/switch/SwitchRootProvider.vue.d.ts +14 -0
- package/dist/components/switch/SwitchThumb.vue.d.ts +14 -0
- package/dist/components/switch/index.d.ts +17 -0
- package/dist/components/switch/switch.d.ts +57 -0
- package/dist/components/switch.js +2 -0
- package/dist/components/table/Table.vue.d.ts +14 -0
- package/dist/components/table/TableBody.vue.d.ts +11 -0
- package/dist/components/table/TableCaption.vue.d.ts +11 -0
- package/dist/components/table/TableCell.vue.d.ts +13 -0
- package/dist/components/table/TableCheckCell.vue.d.ts +25 -0
- package/dist/components/table/TableCheckHead.vue.d.ts +25 -0
- package/dist/components/table/TableFooter.vue.d.ts +11 -0
- package/dist/components/table/TableHead.vue.d.ts +13 -0
- package/dist/components/table/TableHeader.vue.d.ts +14 -0
- package/dist/components/table/TableResizeHandle.vue.d.ts +13 -0
- package/dist/components/table/TableRow.vue.d.ts +13 -0
- package/dist/components/table/index.d.ts +38 -0
- package/dist/components/table/table.d.ts +129 -0
- package/dist/components/table-of-contents/TableOfContentsContent.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsContext.vue.d.ts +11 -0
- package/dist/components/table-of-contents/TableOfContentsIndicator.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsItem.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsLink.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsList.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsNav.vue.d.ts +15 -0
- package/dist/components/table-of-contents/TableOfContentsRoot.vue.d.ts +16 -0
- package/dist/components/table-of-contents/TableOfContentsRootProvider.vue.d.ts +14 -0
- package/dist/components/table-of-contents/TableOfContentsTitle.vue.d.ts +14 -0
- package/dist/components/table-of-contents/index.d.ts +26 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +34 -0
- package/dist/components/table-of-contents.js +2 -0
- package/dist/components/table.js +2 -0
- package/dist/components/tabs/Tabs.vue.d.ts +42 -0
- package/dist/components/tabs/TabsContent.vue.d.ts +14 -0
- package/dist/components/tabs/TabsContext.vue.d.ts +11 -0
- package/dist/components/tabs/TabsIndicator.vue.d.ts +14 -0
- package/dist/components/tabs/TabsList.vue.d.ts +15 -0
- package/dist/components/tabs/TabsRootProvider.vue.d.ts +15 -0
- package/dist/components/tabs/TabsTrigger.vue.d.ts +15 -0
- package/dist/components/tabs/index.d.ts +20 -0
- package/dist/components/tabs/tabs.d.ts +74 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/tag-input/TagInput.vue.d.ts +70 -0
- package/dist/components/tag-input/TagInputClearTrigger.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputContext.vue.d.ts +11 -0
- package/dist/components/tag-input/TagInputControl.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputHiddenInput.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputInput.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputItem.vue.d.ts +15 -0
- package/dist/components/tag-input/TagInputItemContext.vue.d.ts +11 -0
- package/dist/components/tag-input/TagInputItemDeleteTrigger.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputItemInput.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputItemPreview.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputItemText.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputLabel.vue.d.ts +14 -0
- package/dist/components/tag-input/TagInputRootProvider.vue.d.ts +14 -0
- package/dist/components/tag-input/index.d.ts +33 -0
- package/dist/components/tag-input/tag-input.d.ts +92 -0
- package/dist/components/tag-input.js +2 -0
- package/dist/components/text/Text.vue.d.ts +11 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +172 -0
- package/dist/components/text.js +2 -0
- package/dist/components/timer/Timer.vue.d.ts +32 -0
- package/dist/components/timer/TimerActionTrigger.vue.d.ts +14 -0
- package/dist/components/timer/TimerArea.vue.d.ts +14 -0
- package/dist/components/timer/TimerContext.vue.d.ts +11 -0
- package/dist/components/timer/TimerControl.vue.d.ts +14 -0
- package/dist/components/timer/TimerItem.vue.d.ts +7 -0
- package/dist/components/timer/TimerRootProvider.vue.d.ts +14 -0
- package/dist/components/timer/TimerSeparator.vue.d.ts +14 -0
- package/dist/components/timer/index.d.ts +22 -0
- package/dist/components/timer/timer.d.ts +54 -0
- package/dist/components/timer.js +2 -0
- package/dist/components/timeseries-chart/TimeseriesChart.vue.d.ts +44 -0
- package/dist/components/timeseries-chart/index.d.ts +2 -0
- package/dist/components/timeseries-chart/timeseries-chart.d.ts +87 -0
- package/dist/components/timeseries-chart.js +336 -0
- package/dist/components/timeseries-chart.js.map +1 -0
- package/dist/components/toast/Toast.vue.d.ts +11 -0
- package/dist/components/toast/ToastActionTrigger.vue.d.ts +11 -0
- package/dist/components/toast/ToastCloseTrigger.vue.d.ts +11 -0
- package/dist/components/toast/ToastContent.d.ts +12 -0
- package/dist/components/toast/ToastContext.vue.d.ts +11 -0
- package/dist/components/toast/ToastDescription.vue.d.ts +11 -0
- package/dist/components/toast/ToastIndicator.vue.d.ts +11 -0
- package/dist/components/toast/ToastTitle.vue.d.ts +11 -0
- package/dist/components/toast/Toaster.vue.d.ts +16 -0
- package/dist/components/toast/index.d.ts +21 -0
- package/dist/components/toast/store.d.ts +2 -0
- package/dist/components/toast/store.js +2 -0
- package/dist/components/toast/toast-context.d.ts +10 -0
- package/dist/components/toast/toast.d.ts +48 -0
- package/dist/components/toast.js +3 -0
- package/dist/components/toggle/Toggle.vue.d.ts +24 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggle.d.ts +36 -0
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +36 -0
- package/dist/components/toggle-group/ToggleGroupContext.vue.d.ts +11 -0
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +15 -0
- package/dist/components/toggle-group/ToggleGroupRootProvider.vue.d.ts +16 -0
- package/dist/components/toggle-group/index.d.ts +14 -0
- package/dist/components/toggle-group/toggle-group.d.ts +63 -0
- package/dist/components/toggle-group.js +2 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toolbar/Toolbar.vue.d.ts +16 -0
- package/dist/components/toolbar/ToolbarButton.vue.d.ts +18 -0
- package/dist/components/toolbar/ToolbarInput.vue.d.ts +22 -0
- package/dist/components/toolbar/ToolbarInputGroup.vue.d.ts +14 -0
- package/dist/components/toolbar/ToolbarLink.vue.d.ts +20 -0
- package/dist/components/toolbar/ToolbarSeparator.vue.d.ts +14 -0
- package/dist/components/toolbar/context.d.ts +9 -0
- package/dist/components/toolbar/index.d.ts +17 -0
- package/dist/components/toolbar/toolbar.d.ts +54 -0
- package/dist/components/toolbar.js +2 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +48 -0
- package/dist/components/tooltip/TooltipArrow.vue.d.ts +13 -0
- package/dist/components/tooltip/TooltipArrowTip.vue.d.ts +13 -0
- package/dist/components/tooltip/TooltipContent.vue.d.ts +16 -0
- package/dist/components/tooltip/TooltipContext.vue.d.ts +11 -0
- package/dist/components/tooltip/TooltipRootProvider.vue.d.ts +18 -0
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/components/tooltip/index.d.ts +20 -0
- package/dist/components/tooltip/tooltip.d.ts +84 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tree-view/TreeView.vue.d.ts +47 -0
- package/dist/components/tree-view/TreeViewBranch.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchContent.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchControl.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchIndentGuide.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchIndicator.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchText.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewBranchTrigger.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewContext.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewItem.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewItemIndicator.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewItemText.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewLabel.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewNodeCheckbox.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewNodeCheckboxIndicator.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewNodeContext.vue.d.ts +12 -0
- package/dist/components/tree-view/TreeViewNodeProvider.vue.d.ts +13 -0
- package/dist/components/tree-view/TreeViewNodeRenameInput.vue.d.ts +4 -0
- package/dist/components/tree-view/TreeViewRootProvider.vue.d.ts +13 -0
- package/dist/components/tree-view/TreeViewTree.vue.d.ts +12 -0
- package/dist/components/tree-view/index.d.ts +45 -0
- package/dist/components/tree-view/tree-view.d.ts +56 -0
- package/dist/components/tree-view.js +2 -0
- package/dist/components/virtual-tree/VirtualTree.vue.d.ts +28 -0
- package/dist/components/virtual-tree/VirtualTreeIndicator.vue.d.ts +7 -0
- package/dist/components/virtual-tree/index.d.ts +2 -0
- package/dist/components/virtual-tree/use-virtual-tree-keyboard.d.ts +30 -0
- package/dist/components/virtual-tree/use-virtual-tree-selection.d.ts +24 -0
- package/dist/components/virtual-tree/use-virtual-tree-window.d.ts +22 -0
- package/dist/components/virtual-tree/virtual-tree-engine.d.ts +41 -0
- package/dist/components/virtual-tree/virtual-tree.d.ts +128 -0
- package/dist/components/virtual-tree.js +2 -0
- package/dist/components/xy-plot/XYPlot.vue.d.ts +49 -0
- package/dist/components/xy-plot/index.d.ts +2 -0
- package/dist/components/xy-plot/xy-plot-paths.d.ts +3 -0
- package/dist/components/xy-plot/xy-plot-wheel.d.ts +3 -0
- package/dist/components/xy-plot/xy-plot.d.ts +73 -0
- package/dist/components/xy-plot.js +372 -0
- package/dist/components/xy-plot.js.map +1 -0
- package/dist/content-loader-DZ6nNruO.js +113 -0
- package/dist/content-loader-DZ6nNruO.js.map +1 -0
- package/dist/context-menu-C_XGS00V.js +169 -0
- package/dist/context-menu-C_XGS00V.js.map +1 -0
- package/dist/data-grid-C7ZyN-nX.js +874 -0
- package/dist/data-grid-C7ZyN-nX.js.map +1 -0
- package/dist/date-picker-DWjKCcTm.js +878 -0
- package/dist/date-picker-DWjKCcTm.js.map +1 -0
- package/dist/dialog-BgI1aM8y.js +81 -0
- package/dist/dialog-BgI1aM8y.js.map +1 -0
- package/dist/dialog-layout-BG_HOOgK.js +225 -0
- package/dist/dialog-layout-BG_HOOgK.js.map +1 -0
- package/dist/diff-viewer-DpDGXsGd.js +350 -0
- package/dist/diff-viewer-DpDGXsGd.js.map +1 -0
- package/dist/download-trigger-BSz2kZmR.js +98 -0
- package/dist/download-trigger-BSz2kZmR.js.map +1 -0
- package/dist/drawer-Bfge-Zj4.js +516 -0
- package/dist/drawer-Bfge-Zj4.js.map +1 -0
- package/dist/dropdown-B4YZ7mck.js +213 -0
- package/dist/dropdown-B4YZ7mck.js.map +1 -0
- package/dist/editable-C5y_u6Wv.js +337 -0
- package/dist/editable-C5y_u6Wv.js.map +1 -0
- package/dist/empty-DT_j6Liv.js +89 -0
- package/dist/empty-DT_j6Liv.js.map +1 -0
- package/dist/field-C3ILdu4m.js +306 -0
- package/dist/field-C3ILdu4m.js.map +1 -0
- package/dist/fieldset-DDjyqOed.js +146 -0
- package/dist/fieldset-DDjyqOed.js.map +1 -0
- package/dist/file-browser-BU08V7Lh.js +1088 -0
- package/dist/file-browser-BU08V7Lh.js.map +1 -0
- package/dist/file-upload-Blfbt_0Y.js +424 -0
- package/dist/file-upload-Blfbt_0Y.js.map +1 -0
- package/dist/filter-bar-yEkaxil8.js +256 -0
- package/dist/filter-bar-yEkaxil8.js.map +1 -0
- package/dist/floating-panel-DxTx3Dwx.js +392 -0
- package/dist/floating-panel-DxTx3Dwx.js.map +1 -0
- package/dist/flow-B2GfZ2Ak.js +629 -0
- package/dist/flow-B2GfZ2Ak.js.map +1 -0
- package/dist/format-iV9Yj1Qq.js +244 -0
- package/dist/format-iV9Yj1Qq.js.map +1 -0
- package/dist/grid-BeFjLA6k.js +89 -0
- package/dist/grid-BeFjLA6k.js.map +1 -0
- package/dist/highlight-Dxqagl08.js +53 -0
- package/dist/highlight-Dxqagl08.js.map +1 -0
- package/dist/hover-card-Cm6poLuF.js +276 -0
- package/dist/hover-card-Cm6poLuF.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +108 -0
- package/dist/input-C2XpksEe.js +44 -0
- package/dist/input-C2XpksEe.js.map +1 -0
- package/dist/input-area-DRW5dRCj.js +60 -0
- package/dist/input-area-DRW5dRCj.js.map +1 -0
- package/dist/input-group-CxVV-Ae0.js +214 -0
- package/dist/input-group-CxVV-Ae0.js.map +1 -0
- package/dist/input-otp-uJ8_zLk-.js +262 -0
- package/dist/input-otp-uJ8_zLk-.js.map +1 -0
- package/dist/internal/chart/ChartFrame.vue.d.ts +20 -0
- package/dist/internal/chart/chart-frame.d.ts +26 -0
- package/dist/internal/chart/chart-theme.d.ts +121 -0
- package/dist/item-DNLry_Sb.js +160 -0
- package/dist/item-DNLry_Sb.js.map +1 -0
- package/dist/layer-card-Dzqga5oT.js +69 -0
- package/dist/layer-card-Dzqga5oT.js.map +1 -0
- package/dist/link-DXyBKAed.js +76 -0
- package/dist/link-DXyBKAed.js.map +1 -0
- package/dist/menu-bar-CraWEpaF.js +248 -0
- package/dist/menu-bar-CraWEpaF.js.map +1 -0
- package/dist/native-select-BfZ3riNH.js +95 -0
- package/dist/native-select-BfZ3riNH.js.map +1 -0
- package/dist/number-input-D59rbYIn.js +616 -0
- package/dist/number-input-D59rbYIn.js.map +1 -0
- package/dist/pagination-6tJDQnxd.js +353 -0
- package/dist/pagination-6tJDQnxd.js.map +1 -0
- package/dist/popover-BjtxLD-R.js +444 -0
- package/dist/popover-BjtxLD-R.js.map +1 -0
- package/dist/presence-C6D7AeHd.js +64 -0
- package/dist/presence-C6D7AeHd.js.map +1 -0
- package/dist/progress-M-dJAxFh.js +201 -0
- package/dist/progress-M-dJAxFh.js.map +1 -0
- package/dist/progress-circle-Dq6uHdc6.js +220 -0
- package/dist/progress-circle-Dq6uHdc6.js.map +1 -0
- package/dist/property-list-DKe5oQS0.js +70 -0
- package/dist/property-list-DKe5oQS0.js.map +1 -0
- package/dist/qr-code-aU0Zy9G6.js +222 -0
- package/dist/qr-code-aU0Zy9G6.js.map +1 -0
- package/dist/radio-Bj0ehtmE.js +242 -0
- package/dist/radio-Bj0ehtmE.js.map +1 -0
- package/dist/rating-BcsPoiz6.js +255 -0
- package/dist/rating-BcsPoiz6.js.map +1 -0
- package/dist/registry/component-registry.json +924 -0
- package/dist/registry/generated.d.ts +6638 -0
- package/dist/registry/index.d.ts +5 -0
- package/dist/registry/types.d.ts +24 -0
- package/dist/registry-C1WQys9g.js +8024 -0
- package/dist/registry-C1WQys9g.js.map +1 -0
- package/dist/registry.js +2 -0
- package/dist/resizable-C9p_l-MV.js +212 -0
- package/dist/resizable-C9p_l-MV.js.map +1 -0
- package/dist/scroll-area-C1IfwI8x.js +175 -0
- package/dist/scroll-area-C1IfwI8x.js.map +1 -0
- package/dist/select-Bxs-8rkj.js +744 -0
- package/dist/select-Bxs-8rkj.js.map +1 -0
- package/dist/selection-list-C4yUsi8U.js +431 -0
- package/dist/selection-list-C4yUsi8U.js.map +1 -0
- package/dist/separator-DhUckB82.js +33 -0
- package/dist/separator-DhUckB82.js.map +1 -0
- package/dist/sidebar-DkQJmgBd.js +1104 -0
- package/dist/sidebar-DkQJmgBd.js.map +1 -0
- package/dist/slider-Ciczc8Tk.js +360 -0
- package/dist/slider-Ciczc8Tk.js.map +1 -0
- package/dist/steps-tSipfJTn.js +327 -0
- package/dist/steps-tSipfJTn.js.map +1 -0
- package/dist/styles/kappa.css +2 -0
- package/dist/styles/theme-kappa.css +300 -0
- package/dist/styles/tokens.json +986 -0
- package/dist/switch-FGk5YkX-.js +203 -0
- package/dist/switch-FGk5YkX-.js.map +1 -0
- package/dist/table-GDu-HsB6.js +274 -0
- package/dist/table-GDu-HsB6.js.map +1 -0
- package/dist/table-of-contents-BqztwNQh.js +246 -0
- package/dist/table-of-contents-BqztwNQh.js.map +1 -0
- package/dist/tabs-CRy_d_f-.js +253 -0
- package/dist/tabs-CRy_d_f-.js.map +1 -0
- package/dist/tag-input-BOG4SLuu.js +403 -0
- package/dist/tag-input-BOG4SLuu.js.map +1 -0
- package/dist/timer-IMf_WPOv.js +219 -0
- package/dist/timer-IMf_WPOv.js.map +1 -0
- package/dist/toast-BjQJAFvX.js +252 -0
- package/dist/toast-BjQJAFvX.js.map +1 -0
- package/dist/toast-pldzvzIj.js +18 -0
- package/dist/toast-pldzvzIj.js.map +1 -0
- package/dist/toggle-group-BUSeT6AP.js +173 -0
- package/dist/toggle-group-BUSeT6AP.js.map +1 -0
- package/dist/toolbar-DC-4XdHD.js +372 -0
- package/dist/toolbar-DC-4XdHD.js.map +1 -0
- package/dist/tooltip-DHEsr__-.js +275 -0
- package/dist/tooltip-DHEsr__-.js.map +1 -0
- package/dist/tree-view-CB_EbLew.js +418 -0
- package/dist/tree-view-CB_EbLew.js.map +1 -0
- package/licenses/kumo.LICENSE +21 -0
- package/licenses/phosphor.LICENSE +21 -0
- package/package.json +172 -4
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { t as e } from "./Button-Da1Xjklh.js";
|
|
2
|
+
import { t } from "./slider-Ciczc8Tk.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderList as g, shallowRef as _, toDisplayString as v, unref as y, watch as b, withCtx as x } from "vue";
|
|
4
|
+
import { ImageCropper as S, useImageCropper as C } from "@ark-ui/vue/image-cropper";
|
|
5
|
+
//#region src/components/image-cropper/image-cropper.ts
|
|
6
|
+
var w = 1, T = 5, E = {
|
|
7
|
+
region: "Image cropper",
|
|
8
|
+
selection: "Crop position",
|
|
9
|
+
instructions: "Drag the crop area to move it. Drag an edge or corner to resize it. Use arrow keys to move, Alt plus an arrow to resize, and plus or minus to zoom.",
|
|
10
|
+
zoom: "Zoom",
|
|
11
|
+
reset: "Reset crop",
|
|
12
|
+
preview: "Crop preview",
|
|
13
|
+
empty: "Choose an image to start.",
|
|
14
|
+
loading: "Loading image…",
|
|
15
|
+
error: "The image could not be loaded."
|
|
16
|
+
};
|
|
17
|
+
function D(e) {
|
|
18
|
+
if (e !== "free") return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 1;
|
|
19
|
+
}
|
|
20
|
+
function O(e) {
|
|
21
|
+
return typeof e == "number" && Number.isFinite(e) ? Math.min(20, Math.max(1, e)) : 5;
|
|
22
|
+
}
|
|
23
|
+
function k(e = {}) {
|
|
24
|
+
let { width: t = 2048, height: n = 2048 } = e.maxSize ?? {};
|
|
25
|
+
if (![t, n].every((e) => Number.isFinite(e) && e >= 1 && e <= 8192)) throw RangeError("Image export dimensions must be between 1 and 8192 pixels.");
|
|
26
|
+
if (e.quality !== void 0 && (!Number.isFinite(e.quality) || e.quality < 0 || e.quality > 1)) throw RangeError("Image export quality must be between 0 and 1.");
|
|
27
|
+
return {
|
|
28
|
+
type: e.type ?? "image/png",
|
|
29
|
+
quality: e.quality ?? .92,
|
|
30
|
+
maxSize: {
|
|
31
|
+
width: Math.floor(t),
|
|
32
|
+
height: Math.floor(n)
|
|
33
|
+
},
|
|
34
|
+
output: "blob"
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/image-cropper/image-cropper-geometry.ts
|
|
39
|
+
function A(e, t) {
|
|
40
|
+
let { naturalSize: n, viewportRect: r, crop: i, offset: a, zoom: o } = e;
|
|
41
|
+
if (![
|
|
42
|
+
n.width,
|
|
43
|
+
n.height,
|
|
44
|
+
r.width,
|
|
45
|
+
r.height,
|
|
46
|
+
i.width,
|
|
47
|
+
i.height,
|
|
48
|
+
o
|
|
49
|
+
].every((e) => Number.isFinite(e) && e > 0)) return null;
|
|
50
|
+
let s = Math.max(r.width / n.width, r.height / n.height) * o, c = typeof t == "number" && Number.isFinite(t) && t > 0 ? t : i.width / i.height, l = Math.min(i.width / s, i.height / s * c, n.width, n.height * c), u = l / c, d = (i.x - r.width / 2 - a.x) / s + n.width / 2, f = (i.y - r.height / 2 - a.y) / s + n.height / 2;
|
|
51
|
+
return {
|
|
52
|
+
x: Math.max(0, Math.min(n.width - l, d)),
|
|
53
|
+
y: Math.max(0, Math.min(n.height - u, f)),
|
|
54
|
+
width: l,
|
|
55
|
+
height: u,
|
|
56
|
+
zoom: o,
|
|
57
|
+
naturalWidth: n.width,
|
|
58
|
+
naturalHeight: n.height
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function j(e, t) {
|
|
62
|
+
let n = Math.min(1, t.width / e.width, t.height / e.height);
|
|
63
|
+
return {
|
|
64
|
+
width: Math.max(1, Math.round(e.width * n)),
|
|
65
|
+
height: Math.max(1, Math.round(e.height * n))
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/image-cropper/ImageCropperEditor.vue?vue&type=script&setup=true&lang.ts
|
|
70
|
+
var M = { class: "kappa-image-cropper__controls" }, N = {
|
|
71
|
+
class: "kappa-image-cropper__zoom-value",
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
}, P = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "kappa-image-cropper__preview"
|
|
76
|
+
}, F = ["src", "alt"], I = { key: 0 }, L = /* @__PURE__ */ u({
|
|
77
|
+
__name: "ImageCropperEditor",
|
|
78
|
+
props: {
|
|
79
|
+
source: {},
|
|
80
|
+
aspectRatio: {},
|
|
81
|
+
maxZoom: {},
|
|
82
|
+
disabled: { type: Boolean },
|
|
83
|
+
readOnly: { type: Boolean },
|
|
84
|
+
showPreview: { type: Boolean },
|
|
85
|
+
crossOrigin: {},
|
|
86
|
+
labels: {}
|
|
87
|
+
},
|
|
88
|
+
emits: ["change"],
|
|
89
|
+
setup(i, { expose: u, emit: p }) {
|
|
90
|
+
let _ = i, w = p, T = h(), E = !1, D = [
|
|
91
|
+
"n",
|
|
92
|
+
"e",
|
|
93
|
+
"s",
|
|
94
|
+
"w",
|
|
95
|
+
"ne",
|
|
96
|
+
"se",
|
|
97
|
+
"sw",
|
|
98
|
+
"nw"
|
|
99
|
+
], O = r(() => _.disabled || _.readOnly), L = C(r(() => ({
|
|
100
|
+
aspectRatio: _.aspectRatio,
|
|
101
|
+
fixedCropArea: !1,
|
|
102
|
+
minWidth: 1,
|
|
103
|
+
minHeight: 1,
|
|
104
|
+
minZoom: 1,
|
|
105
|
+
maxZoom: _.maxZoom,
|
|
106
|
+
translations: {
|
|
107
|
+
rootLabel: _.labels.region,
|
|
108
|
+
selectionLabel: () => _.labels.selection,
|
|
109
|
+
selectionInstructions: _.labels.instructions,
|
|
110
|
+
selectionValueText: () => {
|
|
111
|
+
let e = R();
|
|
112
|
+
return e ? `X ${Math.round(e.x)}, Y ${Math.round(e.y)}. ${Math.round(e.width)} by ${Math.round(e.height)} pixels.` : "";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
})));
|
|
116
|
+
function R() {
|
|
117
|
+
return A(L.value, _.aspectRatio);
|
|
118
|
+
}
|
|
119
|
+
let z = r(() => R()), B = r(() => _.source.width / _.source.height), V = r(() => z.value ? z.value.width / z.value.height : _.aspectRatio ?? 1), H = r(() => {
|
|
120
|
+
let e = z.value;
|
|
121
|
+
return e ? {
|
|
122
|
+
width: `${e.naturalWidth / e.width * 100}%`,
|
|
123
|
+
height: `${e.naturalHeight / e.height * 100}%`,
|
|
124
|
+
left: `${-e.x / e.width * 100}%`,
|
|
125
|
+
top: `${-e.y / e.height * 100}%`
|
|
126
|
+
} : {};
|
|
127
|
+
});
|
|
128
|
+
b(z, (e) => {
|
|
129
|
+
e && w("change", e);
|
|
130
|
+
}, { flush: "post" }), b(() => _.aspectRatio, () => L.value.reset(), { flush: "post" }), b(() => _.maxZoom, (e) => {
|
|
131
|
+
L.value.zoom > e && L.value.setZoom(e);
|
|
132
|
+
});
|
|
133
|
+
function U() {
|
|
134
|
+
O.value || L.value.reset();
|
|
135
|
+
}
|
|
136
|
+
function W(e) {
|
|
137
|
+
!O.value && Number.isFinite(e) && L.value.setZoom(Math.min(_.maxZoom, Math.max(1, e)));
|
|
138
|
+
}
|
|
139
|
+
async function G(e) {
|
|
140
|
+
let t = R(), n = T.value?.querySelector("[data-part=\"image\"]");
|
|
141
|
+
if (_.disabled || !t || !n?.complete) throw Error("The image cropper is not ready to export.");
|
|
142
|
+
let r = k(e), i = j(t, r.maxSize), a = n.ownerDocument.createElement("canvas");
|
|
143
|
+
a.width = i.width, a.height = i.height;
|
|
144
|
+
let o = a.getContext("2d");
|
|
145
|
+
if (!o) throw Error("The browser could not create an image canvas.");
|
|
146
|
+
o.drawImage(n, t.x, t.y, t.width, t.height, 0, 0, i.width, i.height);
|
|
147
|
+
let s = await new Promise((e) => a.toBlob(e, r.type, r.quality));
|
|
148
|
+
if (E) throw new DOMException("The image source changed during export.", "AbortError");
|
|
149
|
+
if (!(s instanceof Blob)) throw Error("The crop could not be exported. Check image access and output size.");
|
|
150
|
+
return s;
|
|
151
|
+
}
|
|
152
|
+
function K(e) {
|
|
153
|
+
e instanceof KeyboardEvent && e.key === "Tab" || O.value && (e.preventDefault(), e.stopImmediatePropagation());
|
|
154
|
+
}
|
|
155
|
+
function q(e) {
|
|
156
|
+
if (O.value) {
|
|
157
|
+
K(e);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
let t = e.target;
|
|
161
|
+
t instanceof Element && t.closest("[data-scope=\"image-cropper\"][data-part=\"selection\"]") || (e.preventDefault(), e.stopImmediatePropagation());
|
|
162
|
+
}
|
|
163
|
+
return f(() => {
|
|
164
|
+
E = !0;
|
|
165
|
+
}), u({
|
|
166
|
+
reset: U,
|
|
167
|
+
setZoom: W,
|
|
168
|
+
getCrop: R,
|
|
169
|
+
exportBlob: G
|
|
170
|
+
}), (r, u) => (m(), o("div", {
|
|
171
|
+
ref_key: "host",
|
|
172
|
+
ref: T,
|
|
173
|
+
class: "kappa-image-cropper__editor"
|
|
174
|
+
}, [l(y(S).RootProvider, {
|
|
175
|
+
value: y(L),
|
|
176
|
+
class: "kappa-image-cropper__workspace"
|
|
177
|
+
}, {
|
|
178
|
+
default: x(() => [s("div", {
|
|
179
|
+
class: "kappa-image-cropper__stage",
|
|
180
|
+
onPointerdownCapture: q,
|
|
181
|
+
onKeydownCapture: K,
|
|
182
|
+
onWheelCapture: K,
|
|
183
|
+
onTouchstartCapture: q,
|
|
184
|
+
onTouchmoveCapture: K
|
|
185
|
+
}, [l(y(S).Viewport, {
|
|
186
|
+
class: "kappa-image-cropper__viewport",
|
|
187
|
+
style: d({
|
|
188
|
+
aspectRatio: B.value,
|
|
189
|
+
maxWidth: `${B.value * 320}px`
|
|
190
|
+
})
|
|
191
|
+
}, {
|
|
192
|
+
default: x(() => [l(y(S).Image, {
|
|
193
|
+
src: i.source.url,
|
|
194
|
+
crossorigin: i.crossOrigin,
|
|
195
|
+
class: "kappa-image-cropper__image"
|
|
196
|
+
}, null, 8, ["src", "crossorigin"]), l(y(S).Selection, {
|
|
197
|
+
class: "kappa-image-cropper__selection",
|
|
198
|
+
tabindex: i.disabled ? -1 : 0,
|
|
199
|
+
"aria-disabled": i.disabled || void 0,
|
|
200
|
+
"aria-readonly": i.readOnly || void 0
|
|
201
|
+
}, {
|
|
202
|
+
default: x(() => [
|
|
203
|
+
l(y(S).Grid, {
|
|
204
|
+
axis: "horizontal",
|
|
205
|
+
class: "kappa-image-cropper__grid"
|
|
206
|
+
}),
|
|
207
|
+
l(y(S).Grid, {
|
|
208
|
+
axis: "vertical",
|
|
209
|
+
class: "kappa-image-cropper__grid"
|
|
210
|
+
}),
|
|
211
|
+
(m(), o(n, null, g(D, (e) => l(y(S).Handle, {
|
|
212
|
+
key: e,
|
|
213
|
+
position: e,
|
|
214
|
+
class: "kappa-image-cropper__handle"
|
|
215
|
+
}, null, 8, ["position"])), 64))
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, [
|
|
219
|
+
"tabindex",
|
|
220
|
+
"aria-disabled",
|
|
221
|
+
"aria-readonly"
|
|
222
|
+
])]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["style"])], 32), s("div", M, [l(y(t).Root, {
|
|
225
|
+
"model-value": [y(L).zoom],
|
|
226
|
+
min: 1,
|
|
227
|
+
max: Math.max(1.01, i.maxZoom),
|
|
228
|
+
step: .01,
|
|
229
|
+
"large-step": .1,
|
|
230
|
+
"aria-label": [i.labels.zoom],
|
|
231
|
+
disabled: i.disabled || i.maxZoom === 1,
|
|
232
|
+
"read-only": i.readOnly,
|
|
233
|
+
size: "sm",
|
|
234
|
+
"get-aria-value-text": ({ value: e }) => `${Math.round(e * 100)}%`,
|
|
235
|
+
"onUpdate:modelValue": u[0] ||= (e) => W(e[0] ?? 1)
|
|
236
|
+
}, {
|
|
237
|
+
default: x(() => [
|
|
238
|
+
l(y(t).Label, null, {
|
|
239
|
+
default: x(() => [c(v(i.labels.zoom), 1)]),
|
|
240
|
+
_: 1
|
|
241
|
+
}),
|
|
242
|
+
s("span", N, v(Math.round(y(L).zoom * 100)) + "%", 1),
|
|
243
|
+
l(y(t).Control, null, {
|
|
244
|
+
default: x(() => [l(y(t).Track, null, {
|
|
245
|
+
default: x(() => [l(y(t).Range)]),
|
|
246
|
+
_: 1
|
|
247
|
+
}), l(y(t).Thumb, { index: 0 }, {
|
|
248
|
+
default: x(() => [l(y(t).HiddenInput)]),
|
|
249
|
+
_: 1
|
|
250
|
+
})]),
|
|
251
|
+
_: 1
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, [
|
|
256
|
+
"model-value",
|
|
257
|
+
"max",
|
|
258
|
+
"aria-label",
|
|
259
|
+
"disabled",
|
|
260
|
+
"read-only",
|
|
261
|
+
"get-aria-value-text"
|
|
262
|
+
]), l(y(e), {
|
|
263
|
+
variant: "ghost",
|
|
264
|
+
size: "sm",
|
|
265
|
+
disabled: O.value,
|
|
266
|
+
onClick: U
|
|
267
|
+
}, {
|
|
268
|
+
default: x(() => [c(v(i.labels.reset), 1)]),
|
|
269
|
+
_: 1
|
|
270
|
+
}, 8, ["disabled"])])]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["value"]), i.showPreview ? (m(), o("figure", P, [s("div", {
|
|
273
|
+
class: "kappa-image-cropper__preview-frame",
|
|
274
|
+
style: d({ aspectRatio: V.value })
|
|
275
|
+
}, [z.value ? (m(), o("img", {
|
|
276
|
+
key: 0,
|
|
277
|
+
src: i.source.url,
|
|
278
|
+
alt: i.labels.preview,
|
|
279
|
+
style: d(H.value),
|
|
280
|
+
draggable: "false"
|
|
281
|
+
}, null, 12, F)) : a("", !0)], 4), s("figcaption", null, [c(v(i.labels.preview), 1), z.value ? (m(), o("span", I, v(Math.round(z.value.width)) + " × " + v(Math.round(z.value.height)) + " px", 1)) : a("", !0)])])) : a("", !0)], 512));
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/components/image-cropper/image-cropper-source.ts
|
|
286
|
+
function R(e, t) {
|
|
287
|
+
let n = t ?? {
|
|
288
|
+
createImage: () => new Image(),
|
|
289
|
+
createObjectURL: (e) => URL.createObjectURL(e),
|
|
290
|
+
revokeObjectURL: (e) => URL.revokeObjectURL(e)
|
|
291
|
+
}, r = 0, i = !1, a, o;
|
|
292
|
+
function s() {
|
|
293
|
+
r += 1, a &&= (a.onload = null, a.onerror = null, a.removeAttribute("src"), void 0), o && n.revokeObjectURL(o), o = void 0;
|
|
294
|
+
}
|
|
295
|
+
function c(t, c) {
|
|
296
|
+
if (i) return;
|
|
297
|
+
if (s(), !t) {
|
|
298
|
+
e.status("empty");
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
e.status("loading");
|
|
302
|
+
let l = r, u = () => !i && l === r;
|
|
303
|
+
function d() {
|
|
304
|
+
u() && (s(), e.status("error"), e.error(/* @__PURE__ */ Error("The image could not be loaded. Check its format and cross-origin access.")));
|
|
305
|
+
}
|
|
306
|
+
try {
|
|
307
|
+
let r = typeof t == "string" ? t : o = n.createObjectURL(t), i = n.createImage();
|
|
308
|
+
a = i, i.crossOrigin = c, i.onload = () => {
|
|
309
|
+
if (u()) {
|
|
310
|
+
if (!(i.naturalWidth > 0 && i.naturalHeight > 0)) {
|
|
311
|
+
d();
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
e.load({
|
|
315
|
+
url: r,
|
|
316
|
+
width: i.naturalWidth,
|
|
317
|
+
height: i.naturalHeight,
|
|
318
|
+
revision: l
|
|
319
|
+
}), e.status("ready");
|
|
320
|
+
}
|
|
321
|
+
}, i.onerror = d, i.src = r;
|
|
322
|
+
} catch {
|
|
323
|
+
d();
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return {
|
|
327
|
+
load: c,
|
|
328
|
+
dispose() {
|
|
329
|
+
i = !0, s();
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/components/image-cropper/ImageCropper.vue?vue&type=script&setup=true&lang.ts
|
|
335
|
+
var z = [
|
|
336
|
+
"data-state",
|
|
337
|
+
"data-disabled",
|
|
338
|
+
"data-readonly",
|
|
339
|
+
"aria-busy"
|
|
340
|
+
], B = ["role"], V = {
|
|
341
|
+
key: 2,
|
|
342
|
+
class: "kappa-image-cropper__instructions"
|
|
343
|
+
}, H = /* @__PURE__ */ u({
|
|
344
|
+
__name: "ImageCropper",
|
|
345
|
+
props: {
|
|
346
|
+
src: { default: null },
|
|
347
|
+
aspectRatio: { default: 1 },
|
|
348
|
+
maxZoom: { default: 5 },
|
|
349
|
+
disabled: {
|
|
350
|
+
type: Boolean,
|
|
351
|
+
default: !1
|
|
352
|
+
},
|
|
353
|
+
readOnly: {
|
|
354
|
+
type: Boolean,
|
|
355
|
+
default: !1
|
|
356
|
+
},
|
|
357
|
+
showPreview: {
|
|
358
|
+
type: Boolean,
|
|
359
|
+
default: !0
|
|
360
|
+
},
|
|
361
|
+
crossOrigin: { default: "anonymous" },
|
|
362
|
+
labels: {}
|
|
363
|
+
},
|
|
364
|
+
emits: [
|
|
365
|
+
"change",
|
|
366
|
+
"load",
|
|
367
|
+
"error",
|
|
368
|
+
"statusChange"
|
|
369
|
+
],
|
|
370
|
+
setup(e, { expose: t, emit: n }) {
|
|
371
|
+
let c = e, l = n, u = h(c.src ? "loading" : "empty"), d = _(), g = h(), x = r(() => ({
|
|
372
|
+
...E,
|
|
373
|
+
...c.labels
|
|
374
|
+
})), S, C = !1;
|
|
375
|
+
p(() => {
|
|
376
|
+
S = R({
|
|
377
|
+
status(e) {
|
|
378
|
+
u.value = e, e !== "ready" && (d.value = void 0), l("statusChange", e);
|
|
379
|
+
},
|
|
380
|
+
load(e) {
|
|
381
|
+
d.value = e, l("load", {
|
|
382
|
+
width: e.width,
|
|
383
|
+
height: e.height
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
error(e) {
|
|
387
|
+
l("error", {
|
|
388
|
+
phase: "load",
|
|
389
|
+
error: e
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
}), S.load(c.src, c.crossOrigin);
|
|
393
|
+
}), b(() => [c.src, c.crossOrigin], () => S?.load(c.src, c.crossOrigin), { flush: "sync" }), f(() => {
|
|
394
|
+
C = !0, S?.dispose();
|
|
395
|
+
});
|
|
396
|
+
async function w(e) {
|
|
397
|
+
let t = d.value?.revision, n = g.value;
|
|
398
|
+
try {
|
|
399
|
+
if (u.value !== "ready" || !n) throw Error("The image cropper is not ready to export.");
|
|
400
|
+
let r = await n.exportBlob(e);
|
|
401
|
+
if (C || t !== d.value?.revision) throw new DOMException("The image source changed during export.", "AbortError");
|
|
402
|
+
return r;
|
|
403
|
+
} catch (e) {
|
|
404
|
+
throw !C && !(e instanceof DOMException && e.name === "AbortError") && l("error", {
|
|
405
|
+
phase: "export",
|
|
406
|
+
error: e instanceof Error ? e : Error(String(e))
|
|
407
|
+
}), e;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return t({
|
|
411
|
+
reset: () => g.value?.reset(),
|
|
412
|
+
setZoom: (e) => g.value?.setZoom(e),
|
|
413
|
+
getCrop: () => u.value === "ready" ? g.value?.getCrop() ?? null : null,
|
|
414
|
+
exportBlob: w
|
|
415
|
+
}), (t, n) => (m(), o("div", {
|
|
416
|
+
class: "kappa-image-cropper",
|
|
417
|
+
"data-slot": "image-cropper",
|
|
418
|
+
"data-state": u.value,
|
|
419
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
420
|
+
"data-readonly": e.readOnly ? "" : void 0,
|
|
421
|
+
"aria-busy": u.value === "loading" || void 0
|
|
422
|
+
}, [d.value ? (m(), i(L, {
|
|
423
|
+
key: d.value.revision,
|
|
424
|
+
ref_key: "editor",
|
|
425
|
+
ref: g,
|
|
426
|
+
source: d.value,
|
|
427
|
+
"aspect-ratio": y(D)(e.aspectRatio),
|
|
428
|
+
"max-zoom": y(O)(e.maxZoom),
|
|
429
|
+
disabled: e.disabled,
|
|
430
|
+
"read-only": e.readOnly,
|
|
431
|
+
"show-preview": e.showPreview,
|
|
432
|
+
"cross-origin": e.crossOrigin,
|
|
433
|
+
labels: x.value,
|
|
434
|
+
onChange: n[0] ||= (e) => l("change", e)
|
|
435
|
+
}, null, 8, [
|
|
436
|
+
"source",
|
|
437
|
+
"aspect-ratio",
|
|
438
|
+
"max-zoom",
|
|
439
|
+
"disabled",
|
|
440
|
+
"read-only",
|
|
441
|
+
"show-preview",
|
|
442
|
+
"cross-origin",
|
|
443
|
+
"labels"
|
|
444
|
+
])) : (m(), o("div", {
|
|
445
|
+
key: 1,
|
|
446
|
+
class: "kappa-image-cropper__placeholder",
|
|
447
|
+
role: u.value === "error" ? "alert" : "status"
|
|
448
|
+
}, [s("span", null, v(u.value === "loading" ? x.value.loading : u.value === "error" ? x.value.error : x.value.empty), 1)], 8, B)), d.value && !e.disabled && !e.readOnly ? (m(), o("p", V, v(x.value.instructions), 1)) : a("", !0)], 8, z));
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
//#endregion
|
|
452
|
+
export { E as i, w as n, T as r, H as t };
|
|
453
|
+
|
|
454
|
+
//# sourceMappingURL=ImageCropper-Dfjf3OuM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageCropper-Dfjf3OuM.js","names":[],"sources":["../src/components/image-cropper/image-cropper.ts","../src/components/image-cropper/image-cropper-geometry.ts","../src/components/image-cropper/ImageCropperEditor.vue","../src/components/image-cropper/ImageCropperEditor.vue","../src/components/image-cropper/image-cropper-source.ts","../src/components/image-cropper/ImageCropper.vue","../src/components/image-cropper/ImageCropper.vue"],"sourcesContent":["export const IMAGE_CROPPER_DEFAULT_ASPECT_RATIO = 1;\nexport const IMAGE_CROPPER_DEFAULT_MAX_ZOOM = 5;\n\nexport type ImageCropperSource = string | Blob | null;\nexport type ImageCropperStatus = \"empty\" | \"loading\" | \"ready\" | \"error\";\nexport type ImageCropperAspectRatio = number | \"free\";\n\nexport interface ImageCropperCrop {\n /** Crop coordinates in original image pixels. */\n x: number;\n y: number;\n width: number;\n height: number;\n zoom: number;\n naturalWidth: number;\n naturalHeight: number;\n}\n\nexport interface ImageCropperExportOptions {\n /** Browser-supported image MIME type. Defaults to image/png. */\n type?: \"image/png\" | \"image/jpeg\" | \"image/webp\";\n /** Encoding quality from 0 to 1 for JPEG and WebP. */\n quality?: number;\n /** Proportional output limit. Defaults to 2048 × 2048 pixels. */\n maxSize?: { width: number; height: number };\n}\n\nexport interface ImageCropperLabels {\n region: string;\n selection: string;\n instructions: string;\n zoom: string;\n reset: string;\n preview: string;\n empty: string;\n loading: string;\n error: string;\n}\n\nexport const IMAGE_CROPPER_LABELS: ImageCropperLabels = {\n region: \"Image cropper\",\n selection: \"Crop position\",\n instructions: \"Drag the crop area to move it. Drag an edge or corner to resize it. Use arrow keys to move, Alt plus an arrow to resize, and plus or minus to zoom.\",\n zoom: \"Zoom\",\n reset: \"Reset crop\",\n preview: \"Crop preview\",\n empty: \"Choose an image to start.\",\n loading: \"Loading image…\",\n error: \"The image could not be loaded.\",\n};\n\nexport interface ImageCropperProps {\n /** A URL or local Blob/File. Selection and upload belong to the application. */\n src?: ImageCropperSource;\n /** Crop width divided by height, or `free` for independent width and height. Invalid values fall back to 1. */\n aspectRatio?: ImageCropperAspectRatio;\n /** Maximum zoom, from 1 to 20. */\n maxZoom?: number;\n disabled?: boolean;\n readOnly?: boolean;\n /** Show the live, rectangular preview. */\n showPreview?: boolean;\n /** Remote images must permit CORS before they can be exported. */\n crossOrigin?: \"anonymous\" | \"use-credentials\";\n /** Replace visible and assistive labels for localization. */\n labels?: Partial<ImageCropperLabels>;\n}\n\nexport interface ImageCropperApi {\n reset: () => void;\n setZoom: (value: number) => void;\n getCrop: () => ImageCropperCrop | null;\n /** Rejects if unavailable, canvas export fails, or the source changes. */\n exportBlob: (options?: ImageCropperExportOptions) => Promise<Blob>;\n}\n\nexport interface ImageCropperErrorDetails {\n phase: \"load\" | \"export\";\n error: Error;\n}\n\nexport type ImageCropperEmits = {\n change: [crop: ImageCropperCrop];\n load: [details: { width: number; height: number }];\n error: [details: ImageCropperErrorDetails];\n statusChange: [status: ImageCropperStatus];\n};\n\nexport function resolveImageCropperAspectRatio(value: unknown): number | undefined {\n if (value === \"free\") return undefined;\n return typeof value === \"number\" && Number.isFinite(value) && value > 0\n ? value : IMAGE_CROPPER_DEFAULT_ASPECT_RATIO;\n}\n\nexport function resolveImageCropperMaxZoom(value: unknown): number {\n return typeof value === \"number\" && Number.isFinite(value)\n ? Math.min(20, Math.max(1, value)) : IMAGE_CROPPER_DEFAULT_MAX_ZOOM;\n}\n\nexport function resolveImageCropperExportOptions(options: ImageCropperExportOptions = {}) {\n const { width = 2048, height = 2048 } = options.maxSize ?? {};\n if (![width, height].every(value => Number.isFinite(value) && value >= 1 && value <= 8192)) {\n throw new RangeError(\"Image export dimensions must be between 1 and 8192 pixels.\");\n }\n if (options.quality !== undefined && (!Number.isFinite(options.quality) || options.quality < 0 || options.quality > 1)) {\n throw new RangeError(\"Image export quality must be between 0 and 1.\");\n }\n return { type: options.type ?? \"image/png\", quality: options.quality ?? 0.92,\n maxSize: { width: Math.floor(width), height: Math.floor(height) }, output: \"blob\" as const };\n}\n","import type { ImageCropperCrop } from \"./image-cropper.ts\";\n\ninterface Geometry {\n naturalSize: { width: number; height: number };\n viewportRect: { width: number; height: number };\n crop: { x: number; y: number; width: number; height: number };\n offset: { x: number; y: number };\n zoom: number;\n}\n\n/** Rectangular exports use fractional viewport measurements, not integer offsetWidth. */\nexport function getImageCropperSourceRect(value: Geometry, aspectRatio?: number): ImageCropperCrop | null {\n const { naturalSize, viewportRect, crop, offset, zoom } = value;\n if (![naturalSize.width, naturalSize.height, viewportRect.width, viewportRect.height, crop.width, crop.height, zoom]\n .every(dimension => Number.isFinite(dimension) && dimension > 0)) return null;\n const scale = Math.max(viewportRect.width / naturalSize.width, viewportRect.height / naturalSize.height) * zoom;\n const ratio = typeof aspectRatio === \"number\" && Number.isFinite(aspectRatio) && aspectRatio > 0\n ? aspectRatio : crop.width / crop.height;\n const width = Math.min(crop.width / scale, crop.height / scale * ratio, naturalSize.width, naturalSize.height * ratio);\n const height = width / ratio;\n const x = (crop.x - viewportRect.width / 2 - offset.x) / scale + naturalSize.width / 2;\n const y = (crop.y - viewportRect.height / 2 - offset.y) / scale + naturalSize.height / 2;\n return {\n x: Math.max(0, Math.min(naturalSize.width - width, x)),\n y: Math.max(0, Math.min(naturalSize.height - height, y)), width, height, zoom,\n naturalWidth: naturalSize.width, naturalHeight: naturalSize.height,\n };\n}\n\nexport function getImageCropperOutputSize(crop: ImageCropperCrop, maxSize: { width: number; height: number }) {\n const scale = Math.min(1, maxSize.width / crop.width, maxSize.height / crop.height);\n return { width: Math.max(1, Math.round(crop.width * scale)), height: Math.max(1, Math.round(crop.height * scale)) };\n}\n","<script setup lang=\"ts\">\nimport { ImageCropper as ArkImageCropper, useImageCropper } from \"@ark-ui/vue/image-cropper\";\nimport { computed, onBeforeUnmount, ref, watch } from \"vue\";\nimport { Button } from \"../button\";\nimport { Slider } from \"../slider\";\nimport { resolveImageCropperExportOptions, type ImageCropperApi, type ImageCropperCrop,\n type ImageCropperExportOptions, type ImageCropperLabels } from \"./image-cropper\";\nimport type { ImageCropperLoadedSource } from \"./image-cropper-source\";\nimport { getImageCropperOutputSize, getImageCropperSourceRect } from \"./image-cropper-geometry\";\n\nconst props = defineProps<{\n source: ImageCropperLoadedSource;\n aspectRatio?: number;\n maxZoom: number;\n disabled: boolean;\n readOnly: boolean;\n showPreview: boolean;\n crossOrigin: \"anonymous\" | \"use-credentials\";\n labels: ImageCropperLabels;\n}>();\nconst emit = defineEmits<{ change: [crop: ImageCropperCrop] }>();\nconst host = ref<HTMLDivElement>();\nlet disposed = false;\nconst HANDLE_POSITIONS = [\"n\", \"e\", \"s\", \"w\", \"ne\", \"se\", \"sw\", \"nw\"] as const;\nconst locked = computed(() => props.disabled || props.readOnly);\nconst api = useImageCropper(computed(() => ({\n aspectRatio: props.aspectRatio, fixedCropArea: false,\n minWidth: 1, minHeight: 1, minZoom: 1, maxZoom: props.maxZoom,\n translations: {\n rootLabel: props.labels.region,\n selectionLabel: () => props.labels.selection,\n selectionInstructions: props.labels.instructions,\n selectionValueText: () => {\n const crop = getCrop();\n return crop ? `X ${Math.round(crop.x)}, Y ${Math.round(crop.y)}. ${Math.round(crop.width)} by ${Math.round(crop.height)} pixels.` : \"\";\n },\n },\n})));\n\nfunction getCrop(): ImageCropperCrop | null {\n return getImageCropperSourceRect(api.value, props.aspectRatio);\n}\n\nconst crop = computed(() => getCrop());\nconst imageRatio = computed(() => props.source.width / props.source.height);\nconst previewRatio = computed(() => crop.value ? crop.value.width / crop.value.height : props.aspectRatio ?? 1);\nconst previewStyle = computed(() => {\n const area = crop.value;\n if (!area) return {};\n return {\n width: `${area.naturalWidth / area.width * 100}%`, height: `${area.naturalHeight / area.height * 100}%`,\n left: `${-area.x / area.width * 100}%`, top: `${-area.y / area.height * 100}%`,\n };\n});\n\nwatch(crop, value => { if (value) emit(\"change\", value); }, { flush: \"post\" });\nwatch(() => props.aspectRatio, () => api.value.reset(), { flush: \"post\" });\nwatch(() => props.maxZoom, value => { if (api.value.zoom > value) api.value.setZoom(value); });\n\nfunction reset() { if (!locked.value) api.value.reset(); }\nfunction setZoom(value: number) {\n if (!locked.value && Number.isFinite(value)) api.value.setZoom(Math.min(props.maxZoom, Math.max(1, value)));\n}\nasync function exportBlob(options?: ImageCropperExportOptions): Promise<Blob> {\n const area = getCrop();\n const image = host.value?.querySelector<HTMLImageElement>('[data-part=\"image\"]');\n if (props.disabled || !area || !image?.complete) throw new Error(\"The image cropper is not ready to export.\");\n const resolved = resolveImageCropperExportOptions(options);\n const size = getImageCropperOutputSize(area, resolved.maxSize);\n const canvas = image.ownerDocument.createElement(\"canvas\");\n canvas.width = size.width; canvas.height = size.height;\n const context = canvas.getContext(\"2d\");\n if (!context) throw new Error(\"The browser could not create an image canvas.\");\n context.drawImage(image, area.x, area.y, area.width, area.height, 0, 0, size.width, size.height);\n const result = await new Promise<Blob | null>(resolve => canvas.toBlob(resolve, resolved.type, resolved.quality));\n if (disposed) throw new DOMException(\"The image source changed during export.\", \"AbortError\");\n if (!(result instanceof Blob)) throw new Error(\"The crop could not be exported. Check image access and output size.\");\n return result;\n}\n\nfunction blockInteraction(event: Event) {\n // A read-only crop can receive focus. Tab must still leave the control.\n if (event instanceof KeyboardEvent && event.key === \"Tab\") return;\n if (locked.value) { event.preventDefault(); event.stopImmediatePropagation(); }\n}\nfunction handlePointerStart(event: Event) {\n if (locked.value) {\n blockInteraction(event);\n return;\n }\n const target = event.target;\n if (target instanceof Element && target.closest('[data-scope=\"image-cropper\"][data-part=\"selection\"]')) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\nonBeforeUnmount(() => {\n disposed = true;\n});\ndefineExpose<ImageCropperApi>({ reset, setZoom, getCrop, exportBlob });\n</script>\n\n<template>\n <div ref=\"host\" class=\"kappa-image-cropper__editor\">\n <ArkImageCropper.RootProvider :value=\"api\" class=\"kappa-image-cropper__workspace\">\n <div class=\"kappa-image-cropper__stage\"\n @pointerdown.capture=\"handlePointerStart\" @keydown.capture=\"blockInteraction\"\n @wheel.capture=\"blockInteraction\" @touchstart.capture=\"handlePointerStart\" @touchmove.capture=\"blockInteraction\">\n <ArkImageCropper.Viewport class=\"kappa-image-cropper__viewport\"\n :style=\"{ aspectRatio: imageRatio, maxWidth: `${imageRatio * 320}px` }\">\n <ArkImageCropper.Image :src=\"source.url\" :crossorigin=\"crossOrigin\" class=\"kappa-image-cropper__image\" />\n <ArkImageCropper.Selection class=\"kappa-image-cropper__selection\"\n :tabindex=\"disabled ? -1 : 0\" :aria-disabled=\"disabled || undefined\" :aria-readonly=\"readOnly || undefined\">\n <ArkImageCropper.Grid axis=\"horizontal\" class=\"kappa-image-cropper__grid\" />\n <ArkImageCropper.Grid axis=\"vertical\" class=\"kappa-image-cropper__grid\" />\n <ArkImageCropper.Handle v-for=\"position in HANDLE_POSITIONS\" :key=\"position\"\n :position=\"position\" class=\"kappa-image-cropper__handle\" />\n </ArkImageCropper.Selection>\n </ArkImageCropper.Viewport>\n </div>\n <div class=\"kappa-image-cropper__controls\">\n <Slider.Root :model-value=\"[api.zoom]\" :min=\"1\" :max=\"Math.max(1.01, maxZoom)\" :step=\"0.01\" :large-step=\"0.1\"\n :aria-label=\"[labels.zoom]\" :disabled=\"disabled || maxZoom === 1\" :read-only=\"readOnly\" size=\"sm\"\n :get-aria-value-text=\"({ value }) => `${Math.round(value * 100)}%`\"\n @update:model-value=\"setZoom($event[0] ?? 1)\">\n <Slider.Label>{{ labels.zoom }}</Slider.Label>\n <span class=\"kappa-image-cropper__zoom-value\" aria-hidden=\"true\">{{ Math.round(api.zoom * 100) }}%</span>\n <Slider.Control><Slider.Track><Slider.Range /></Slider.Track><Slider.Thumb :index=\"0\"><Slider.HiddenInput /></Slider.Thumb></Slider.Control>\n </Slider.Root>\n <Button variant=\"ghost\" size=\"sm\" :disabled=\"locked\" @click=\"reset\">{{ labels.reset }}</Button>\n </div>\n </ArkImageCropper.RootProvider>\n <figure v-if=\"showPreview\" class=\"kappa-image-cropper__preview\">\n <div class=\"kappa-image-cropper__preview-frame\" :style=\"{ aspectRatio: previewRatio }\">\n <img v-if=\"crop\" :src=\"source.url\" :alt=\"labels.preview\" :style=\"previewStyle\" draggable=\"false\" />\n </div>\n <figcaption>{{ labels.preview }}<span v-if=\"crop\">{{ Math.round(crop.width) }} × {{ Math.round(crop.height) }} px</span></figcaption>\n </figure>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { ImageCropper as ArkImageCropper, useImageCropper } from \"@ark-ui/vue/image-cropper\";\nimport { computed, onBeforeUnmount, ref, watch } from \"vue\";\nimport { Button } from \"../button\";\nimport { Slider } from \"../slider\";\nimport { resolveImageCropperExportOptions, type ImageCropperApi, type ImageCropperCrop,\n type ImageCropperExportOptions, type ImageCropperLabels } from \"./image-cropper\";\nimport type { ImageCropperLoadedSource } from \"./image-cropper-source\";\nimport { getImageCropperOutputSize, getImageCropperSourceRect } from \"./image-cropper-geometry\";\n\nconst props = defineProps<{\n source: ImageCropperLoadedSource;\n aspectRatio?: number;\n maxZoom: number;\n disabled: boolean;\n readOnly: boolean;\n showPreview: boolean;\n crossOrigin: \"anonymous\" | \"use-credentials\";\n labels: ImageCropperLabels;\n}>();\nconst emit = defineEmits<{ change: [crop: ImageCropperCrop] }>();\nconst host = ref<HTMLDivElement>();\nlet disposed = false;\nconst HANDLE_POSITIONS = [\"n\", \"e\", \"s\", \"w\", \"ne\", \"se\", \"sw\", \"nw\"] as const;\nconst locked = computed(() => props.disabled || props.readOnly);\nconst api = useImageCropper(computed(() => ({\n aspectRatio: props.aspectRatio, fixedCropArea: false,\n minWidth: 1, minHeight: 1, minZoom: 1, maxZoom: props.maxZoom,\n translations: {\n rootLabel: props.labels.region,\n selectionLabel: () => props.labels.selection,\n selectionInstructions: props.labels.instructions,\n selectionValueText: () => {\n const crop = getCrop();\n return crop ? `X ${Math.round(crop.x)}, Y ${Math.round(crop.y)}. ${Math.round(crop.width)} by ${Math.round(crop.height)} pixels.` : \"\";\n },\n },\n})));\n\nfunction getCrop(): ImageCropperCrop | null {\n return getImageCropperSourceRect(api.value, props.aspectRatio);\n}\n\nconst crop = computed(() => getCrop());\nconst imageRatio = computed(() => props.source.width / props.source.height);\nconst previewRatio = computed(() => crop.value ? crop.value.width / crop.value.height : props.aspectRatio ?? 1);\nconst previewStyle = computed(() => {\n const area = crop.value;\n if (!area) return {};\n return {\n width: `${area.naturalWidth / area.width * 100}%`, height: `${area.naturalHeight / area.height * 100}%`,\n left: `${-area.x / area.width * 100}%`, top: `${-area.y / area.height * 100}%`,\n };\n});\n\nwatch(crop, value => { if (value) emit(\"change\", value); }, { flush: \"post\" });\nwatch(() => props.aspectRatio, () => api.value.reset(), { flush: \"post\" });\nwatch(() => props.maxZoom, value => { if (api.value.zoom > value) api.value.setZoom(value); });\n\nfunction reset() { if (!locked.value) api.value.reset(); }\nfunction setZoom(value: number) {\n if (!locked.value && Number.isFinite(value)) api.value.setZoom(Math.min(props.maxZoom, Math.max(1, value)));\n}\nasync function exportBlob(options?: ImageCropperExportOptions): Promise<Blob> {\n const area = getCrop();\n const image = host.value?.querySelector<HTMLImageElement>('[data-part=\"image\"]');\n if (props.disabled || !area || !image?.complete) throw new Error(\"The image cropper is not ready to export.\");\n const resolved = resolveImageCropperExportOptions(options);\n const size = getImageCropperOutputSize(area, resolved.maxSize);\n const canvas = image.ownerDocument.createElement(\"canvas\");\n canvas.width = size.width; canvas.height = size.height;\n const context = canvas.getContext(\"2d\");\n if (!context) throw new Error(\"The browser could not create an image canvas.\");\n context.drawImage(image, area.x, area.y, area.width, area.height, 0, 0, size.width, size.height);\n const result = await new Promise<Blob | null>(resolve => canvas.toBlob(resolve, resolved.type, resolved.quality));\n if (disposed) throw new DOMException(\"The image source changed during export.\", \"AbortError\");\n if (!(result instanceof Blob)) throw new Error(\"The crop could not be exported. Check image access and output size.\");\n return result;\n}\n\nfunction blockInteraction(event: Event) {\n // A read-only crop can receive focus. Tab must still leave the control.\n if (event instanceof KeyboardEvent && event.key === \"Tab\") return;\n if (locked.value) { event.preventDefault(); event.stopImmediatePropagation(); }\n}\nfunction handlePointerStart(event: Event) {\n if (locked.value) {\n blockInteraction(event);\n return;\n }\n const target = event.target;\n if (target instanceof Element && target.closest('[data-scope=\"image-cropper\"][data-part=\"selection\"]')) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\nonBeforeUnmount(() => {\n disposed = true;\n});\ndefineExpose<ImageCropperApi>({ reset, setZoom, getCrop, exportBlob });\n</script>\n\n<template>\n <div ref=\"host\" class=\"kappa-image-cropper__editor\">\n <ArkImageCropper.RootProvider :value=\"api\" class=\"kappa-image-cropper__workspace\">\n <div class=\"kappa-image-cropper__stage\"\n @pointerdown.capture=\"handlePointerStart\" @keydown.capture=\"blockInteraction\"\n @wheel.capture=\"blockInteraction\" @touchstart.capture=\"handlePointerStart\" @touchmove.capture=\"blockInteraction\">\n <ArkImageCropper.Viewport class=\"kappa-image-cropper__viewport\"\n :style=\"{ aspectRatio: imageRatio, maxWidth: `${imageRatio * 320}px` }\">\n <ArkImageCropper.Image :src=\"source.url\" :crossorigin=\"crossOrigin\" class=\"kappa-image-cropper__image\" />\n <ArkImageCropper.Selection class=\"kappa-image-cropper__selection\"\n :tabindex=\"disabled ? -1 : 0\" :aria-disabled=\"disabled || undefined\" :aria-readonly=\"readOnly || undefined\">\n <ArkImageCropper.Grid axis=\"horizontal\" class=\"kappa-image-cropper__grid\" />\n <ArkImageCropper.Grid axis=\"vertical\" class=\"kappa-image-cropper__grid\" />\n <ArkImageCropper.Handle v-for=\"position in HANDLE_POSITIONS\" :key=\"position\"\n :position=\"position\" class=\"kappa-image-cropper__handle\" />\n </ArkImageCropper.Selection>\n </ArkImageCropper.Viewport>\n </div>\n <div class=\"kappa-image-cropper__controls\">\n <Slider.Root :model-value=\"[api.zoom]\" :min=\"1\" :max=\"Math.max(1.01, maxZoom)\" :step=\"0.01\" :large-step=\"0.1\"\n :aria-label=\"[labels.zoom]\" :disabled=\"disabled || maxZoom === 1\" :read-only=\"readOnly\" size=\"sm\"\n :get-aria-value-text=\"({ value }) => `${Math.round(value * 100)}%`\"\n @update:model-value=\"setZoom($event[0] ?? 1)\">\n <Slider.Label>{{ labels.zoom }}</Slider.Label>\n <span class=\"kappa-image-cropper__zoom-value\" aria-hidden=\"true\">{{ Math.round(api.zoom * 100) }}%</span>\n <Slider.Control><Slider.Track><Slider.Range /></Slider.Track><Slider.Thumb :index=\"0\"><Slider.HiddenInput /></Slider.Thumb></Slider.Control>\n </Slider.Root>\n <Button variant=\"ghost\" size=\"sm\" :disabled=\"locked\" @click=\"reset\">{{ labels.reset }}</Button>\n </div>\n </ArkImageCropper.RootProvider>\n <figure v-if=\"showPreview\" class=\"kappa-image-cropper__preview\">\n <div class=\"kappa-image-cropper__preview-frame\" :style=\"{ aspectRatio: previewRatio }\">\n <img v-if=\"crop\" :src=\"source.url\" :alt=\"labels.preview\" :style=\"previewStyle\" draggable=\"false\" />\n </div>\n <figcaption>{{ labels.preview }}<span v-if=\"crop\">{{ Math.round(crop.width) }} × {{ Math.round(crop.height) }} px</span></figcaption>\n </figure>\n </div>\n</template>\n","import type { ImageCropperSource, ImageCropperStatus } from \"./image-cropper.ts\";\n\nexport interface ImageCropperLoadedSource {\n url: string;\n width: number;\n height: number;\n revision: number;\n}\n\ninterface SourceCallbacks {\n status: (status: ImageCropperStatus) => void;\n load: (source: ImageCropperLoadedSource) => void;\n error: (error: Error) => void;\n}\n\ninterface SourceEnvironment {\n createImage: () => HTMLImageElement;\n createObjectURL: (blob: Blob) => string;\n revokeObjectURL: (url: string) => void;\n}\n\n/** Own only URLs created here. Superseded image callbacks cannot publish state. */\nexport function createImageCropperSourceLoader(callbacks: SourceCallbacks, environment?: SourceEnvironment) {\n const env = environment ?? {\n createImage: () => new Image(),\n createObjectURL: (blob: Blob) => URL.createObjectURL(blob),\n revokeObjectURL: (url: string) => URL.revokeObjectURL(url),\n };\n let revision = 0;\n let disposed = false;\n let image: HTMLImageElement | undefined;\n let ownedUrl: string | undefined;\n\n function clear() {\n revision += 1;\n if (image) {\n image.onload = null;\n image.onerror = null;\n image.removeAttribute(\"src\");\n image = undefined;\n }\n if (ownedUrl) env.revokeObjectURL(ownedUrl);\n ownedUrl = undefined;\n }\n\n function load(source: ImageCropperSource | undefined, crossOrigin: \"anonymous\" | \"use-credentials\") {\n if (disposed) return;\n clear();\n if (!source) { callbacks.status(\"empty\"); return; }\n callbacks.status(\"loading\");\n const request = revision;\n const current = () => !disposed && request === revision;\n function fail() {\n if (!current()) return;\n clear();\n callbacks.status(\"error\");\n callbacks.error(new Error(\"The image could not be loaded. Check its format and cross-origin access.\"));\n }\n try {\n const url = typeof source === \"string\" ? source : (ownedUrl = env.createObjectURL(source));\n const pending = env.createImage();\n image = pending;\n pending.crossOrigin = crossOrigin;\n pending.onload = () => {\n if (!current()) return;\n if (!(pending.naturalWidth > 0 && pending.naturalHeight > 0)) { fail(); return; }\n callbacks.load({ url, width: pending.naturalWidth, height: pending.naturalHeight, revision: request });\n callbacks.status(\"ready\");\n };\n pending.onerror = fail;\n pending.src = url;\n } catch { fail(); }\n }\n\n return { load, dispose() { disposed = true; clear(); } };\n}\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, shallowRef, watch } from \"vue\";\nimport ImageCropperEditor from \"./ImageCropperEditor.vue\";\nimport { createImageCropperSourceLoader, type ImageCropperLoadedSource } from \"./image-cropper-source\";\nimport { IMAGE_CROPPER_LABELS, resolveImageCropperAspectRatio, resolveImageCropperMaxZoom,\n type ImageCropperProps, type ImageCropperEmits, type ImageCropperApi, type ImageCropperStatus,\n type ImageCropperExportOptions } from \"./image-cropper\";\n\nconst props = withDefaults(defineProps<ImageCropperProps>(), {\n src: null, aspectRatio: 1, maxZoom: 5, disabled: false, readOnly: false,\n showPreview: true, crossOrigin: \"anonymous\",\n});\nconst emit = defineEmits<ImageCropperEmits>();\nconst status = ref<ImageCropperStatus>(props.src ? \"loading\" : \"empty\");\nconst source = shallowRef<ImageCropperLoadedSource>();\nconst editor = ref<ImageCropperApi>();\nconst labels = computed(() => ({ ...IMAGE_CROPPER_LABELS, ...props.labels }));\nlet loader: ReturnType<typeof createImageCropperSourceLoader> | undefined;\nlet disposed = false;\n\nonMounted(() => {\n loader = createImageCropperSourceLoader({\n status(value) {\n status.value = value;\n if (value !== \"ready\") source.value = undefined;\n emit(\"statusChange\", value);\n },\n load(value) { source.value = value; emit(\"load\", { width: value.width, height: value.height }); },\n error(error) { emit(\"error\", { phase: \"load\", error }); },\n });\n loader.load(props.src, props.crossOrigin);\n});\nwatch(() => [props.src, props.crossOrigin] as const, () => loader?.load(props.src, props.crossOrigin), { flush: \"sync\" });\nonBeforeUnmount(() => { disposed = true; loader?.dispose(); });\n\nasync function exportBlob(options?: ImageCropperExportOptions): Promise<Blob> {\n const revision = source.value?.revision;\n const current = editor.value;\n try {\n if (status.value !== \"ready\" || !current) throw new Error(\"The image cropper is not ready to export.\");\n const blob = await current.exportBlob(options);\n if (disposed || revision !== source.value?.revision) throw new DOMException(\"The image source changed during export.\", \"AbortError\");\n return blob;\n } catch (error) {\n if (!disposed && !(error instanceof DOMException && error.name === \"AbortError\")) {\n emit(\"error\", { phase: \"export\", error: error instanceof Error ? error : new Error(String(error)) });\n }\n throw error;\n }\n}\ndefineExpose<ImageCropperApi>({\n reset: () => editor.value?.reset(), setZoom: value => editor.value?.setZoom(value),\n getCrop: () => status.value === \"ready\" ? editor.value?.getCrop() ?? null : null,\n exportBlob,\n});\n</script>\n\n<template>\n <div class=\"kappa-image-cropper\" data-slot=\"image-cropper\" :data-state=\"status\"\n :data-disabled=\"disabled ? '' : undefined\" :data-readonly=\"readOnly ? '' : undefined\"\n :aria-busy=\"status === 'loading' || undefined\">\n <ImageCropperEditor v-if=\"source\" :key=\"source.revision\" ref=\"editor\" :source=\"source\"\n :aspect-ratio=\"resolveImageCropperAspectRatio(aspectRatio)\" :max-zoom=\"resolveImageCropperMaxZoom(maxZoom)\"\n :disabled=\"disabled\" :read-only=\"readOnly\" :show-preview=\"showPreview\" :cross-origin=\"crossOrigin\" :labels=\"labels\"\n @change=\"emit('change', $event)\" />\n <div v-else class=\"kappa-image-cropper__placeholder\" :role=\"status === 'error' ? 'alert' : 'status'\">\n <span>{{ status === 'loading' ? labels.loading : status === 'error' ? labels.error : labels.empty }}</span>\n </div>\n <p v-if=\"source && !disabled && !readOnly\" class=\"kappa-image-cropper__instructions\">{{ labels.instructions }}</p>\n </div>\n</template>\n\n<style src=\"./image-cropper.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, shallowRef, watch } from \"vue\";\nimport ImageCropperEditor from \"./ImageCropperEditor.vue\";\nimport { createImageCropperSourceLoader, type ImageCropperLoadedSource } from \"./image-cropper-source\";\nimport { IMAGE_CROPPER_LABELS, resolveImageCropperAspectRatio, resolveImageCropperMaxZoom,\n type ImageCropperProps, type ImageCropperEmits, type ImageCropperApi, type ImageCropperStatus,\n type ImageCropperExportOptions } from \"./image-cropper\";\n\nconst props = withDefaults(defineProps<ImageCropperProps>(), {\n src: null, aspectRatio: 1, maxZoom: 5, disabled: false, readOnly: false,\n showPreview: true, crossOrigin: \"anonymous\",\n});\nconst emit = defineEmits<ImageCropperEmits>();\nconst status = ref<ImageCropperStatus>(props.src ? \"loading\" : \"empty\");\nconst source = shallowRef<ImageCropperLoadedSource>();\nconst editor = ref<ImageCropperApi>();\nconst labels = computed(() => ({ ...IMAGE_CROPPER_LABELS, ...props.labels }));\nlet loader: ReturnType<typeof createImageCropperSourceLoader> | undefined;\nlet disposed = false;\n\nonMounted(() => {\n loader = createImageCropperSourceLoader({\n status(value) {\n status.value = value;\n if (value !== \"ready\") source.value = undefined;\n emit(\"statusChange\", value);\n },\n load(value) { source.value = value; emit(\"load\", { width: value.width, height: value.height }); },\n error(error) { emit(\"error\", { phase: \"load\", error }); },\n });\n loader.load(props.src, props.crossOrigin);\n});\nwatch(() => [props.src, props.crossOrigin] as const, () => loader?.load(props.src, props.crossOrigin), { flush: \"sync\" });\nonBeforeUnmount(() => { disposed = true; loader?.dispose(); });\n\nasync function exportBlob(options?: ImageCropperExportOptions): Promise<Blob> {\n const revision = source.value?.revision;\n const current = editor.value;\n try {\n if (status.value !== \"ready\" || !current) throw new Error(\"The image cropper is not ready to export.\");\n const blob = await current.exportBlob(options);\n if (disposed || revision !== source.value?.revision) throw new DOMException(\"The image source changed during export.\", \"AbortError\");\n return blob;\n } catch (error) {\n if (!disposed && !(error instanceof DOMException && error.name === \"AbortError\")) {\n emit(\"error\", { phase: \"export\", error: error instanceof Error ? error : new Error(String(error)) });\n }\n throw error;\n }\n}\ndefineExpose<ImageCropperApi>({\n reset: () => editor.value?.reset(), setZoom: value => editor.value?.setZoom(value),\n getCrop: () => status.value === \"ready\" ? editor.value?.getCrop() ?? null : null,\n exportBlob,\n});\n</script>\n\n<template>\n <div class=\"kappa-image-cropper\" data-slot=\"image-cropper\" :data-state=\"status\"\n :data-disabled=\"disabled ? '' : undefined\" :data-readonly=\"readOnly ? '' : undefined\"\n :aria-busy=\"status === 'loading' || undefined\">\n <ImageCropperEditor v-if=\"source\" :key=\"source.revision\" ref=\"editor\" :source=\"source\"\n :aspect-ratio=\"resolveImageCropperAspectRatio(aspectRatio)\" :max-zoom=\"resolveImageCropperMaxZoom(maxZoom)\"\n :disabled=\"disabled\" :read-only=\"readOnly\" :show-preview=\"showPreview\" :cross-origin=\"crossOrigin\" :labels=\"labels\"\n @change=\"emit('change', $event)\" />\n <div v-else class=\"kappa-image-cropper__placeholder\" :role=\"status === 'error' ? 'alert' : 'status'\">\n <span>{{ status === 'loading' ? labels.loading : status === 'error' ? labels.error : labels.empty }}</span>\n </div>\n <p v-if=\"source && !disabled && !readOnly\" class=\"k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aAAkB,KAAA;EACV,GAAA,CAAA,EAAA,SAA1B,EAAA,GAAA,EAGqC,GAAA;GAHF,KAAK,EAAA,MAAO;GAAc,SAAA;GAAJ,KAAI;GAAU,QAAQ,EAAA;GAC5E,gBAAc,EAAA,CAAA,CAA8B,CAAC,EAAA,WAAW;GAAI,YAAU,EAAA,CAAA,CAA0B,CAAC,EAAA,OAAO;GACxG,UAAU,EAAA;GAAW,aAAW,EAAA;GAAW,gBAAc,EAAA;GAAc,gBAAc,EAAA;GAAc,QAAQ,EAAA;GAC3G,UAAM,AAAA,EAAA,QAAA,MAAE,EAAI,UAAW,CAAM;;;;;;;;;;EAChC,CAAA,MAAA,EAAA,GAAA,EAEM,OAAA;;GAFM,OAAM;GAAoC,MAAM,EAAA,UAAM,UAAA,UAAA;EAChE,GAAA,CAAA,EAA2G,QAAA,MAAA,EAAlG,EAAA,UAAM,YAAiB,EAAA,MAAO,UAAU,EAAA,UAAM,UAAe,EAAA,MAAO,QAAQ,EAAA,MAAO,KAAK,GAAA,CAAA,CAAA,GAAA,GAAA,CAAA,IAE1F,EAAA,SAAM,CAAK,EAAA,YAAQ,CAAK,EAAA,YAAjC,EAAA,GAAA,EAAkH,KAAlH,GAAkH,EAA1B,EAAA,MAAO,YAAY,GAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,GAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/components/kbd/Kbd.vue
|
|
4
|
+
var a = /* @__PURE__ */ t({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "Kbd",
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (t, a) => (r(), e("kbd", n(t.$attrs, {
|
|
9
|
+
class: "kappa-kbd",
|
|
10
|
+
"data-slot": "kbd"
|
|
11
|
+
}), [i(t.$slots, "default")], 16));
|
|
12
|
+
}
|
|
13
|
+
}), o = /* @__PURE__ */ t({
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
__name: "KbdGroup",
|
|
16
|
+
setup(t) {
|
|
17
|
+
return (t, a) => (r(), e("span", n(t.$attrs, {
|
|
18
|
+
class: "kappa-kbd-group",
|
|
19
|
+
"data-slot": "kbd-group"
|
|
20
|
+
}), [i(t.$slots, "default")], 16));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as n, o as t };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=KbdGroup-CNwqr4vX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KbdGroup-CNwqr4vX.js","names":["$attrs","$attrs"],"sources":["../src/components/kbd/Kbd.vue","../src/components/kbd/Kbd.vue","../src/components/kbd/KbdGroup.vue","../src/components/kbd/KbdGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { KbdProps, KbdSlots } from \"./kbd\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<KbdProps>();\ndefineSlots<KbdSlots>();\n</script>\n\n<template>\n <kbd v-bind=\"$attrs\" class=\"kappa-kbd\" data-slot=\"kbd\">\n <slot />\n </kbd>\n</template>\n\n<style src=\"./kbd.css\"></style>\n","<script setup lang=\"ts\">\nimport type { KbdProps, KbdSlots } from \"./kbd\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<KbdProps>();\ndefineSlots<KbdSlots>();\n</script>\n\n<template>\n <kbd v-bind=\"$attrs\" class=\"kappa-kbd\" data-slot=\"kbd\">\n <slot />\n </kbd>\n</template>\n\n<style src=\"./kbd.css\"></style>\n","<script setup lang=\"ts\">\nimport type { KbdGroupProps, KbdGroupSlots } from \"./kbd\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<KbdGroupProps>();\ndefineSlots<KbdGroupSlots>();\n</script>\n\n<template>\n <span v-bind=\"$attrs\" class=\"kappa-kbd-group\" data-slot=\"kbd-group\">\n <slot />\n </span>\n</template>\n\n<style src=\"./kbd.css\"></style>\n","<script setup lang=\"ts\">\nimport type { KbdGroupProps, KbdGroupSlots } from \"./kbd\";\n\ndefineOptions({ inheritAttrs: false });\n\ndefineProps<KbdGroupProps>();\ndefineSlots<KbdGroupSlots>();\n</script>\n\n<template>\n <span v-bind=\"$attrs\" class=\"kappa-kbd-group\" data-slot=\"kbd-group\">\n <slot />\n </span>\n</template>\n\n<style src=\"./kbd.css\"></style>\n"],"mappings":";;;;;;;oBAUE,EAAA,GAAA,EAEM,OAFN,EAAaA,EAEP,QAFa;GAAE,OAAM;GAAY,aAAU;EAC/C,CAAA,GAAA,CAAA,EAAQ,EAAA,QAAA,SAAA,CAAA,GAAA,EAAA;;;;;;oBEDV,EAAA,GAAA,EAEO,QAFP,EAAcC,EAEP,QAFa;GAAE,OAAM;GAAkB,aAAU;EACtD,CAAA,GAAA,CAAA,EAAQ,EAAA,QAAA,SAAA,CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, resolveDynamicComponent as c, toDisplayString as l, useAttrs as u, withCtx as d } from "vue";
|
|
2
|
+
//#region src/components/label/label.ts
|
|
3
|
+
var f = ["label", "span"], p = "label", m = "optional", h = (e) => e === "label" || e === "span", g = (e, t = !1) => t ? "span" : h(e) ? e : p, _ = (e) => typeof e == "string" && e.trim().length > 0 ? e : m, v = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "kappa-label__optional",
|
|
6
|
+
"data-slot": "label-optional"
|
|
7
|
+
}, y = /* @__PURE__ */ i({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "Label",
|
|
10
|
+
props: {
|
|
11
|
+
as: { default: p },
|
|
12
|
+
asContent: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
htmlFor: { default: void 0 },
|
|
17
|
+
showOptional: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
optionalText: { default: m }
|
|
22
|
+
},
|
|
23
|
+
setup(i) {
|
|
24
|
+
let f = i, p = u(), m = e(() => g(f.as, f.asContent)), h = e(() => _(f.optionalText)), y = e(() => {
|
|
25
|
+
if (m.value === "label") return f.htmlFor === void 0 ? typeof p.for == "string" ? p.for : void 0 : f.htmlFor;
|
|
26
|
+
}), b = e(() => {
|
|
27
|
+
let { for: e, ...t } = p;
|
|
28
|
+
return t;
|
|
29
|
+
});
|
|
30
|
+
return (e, i) => (o(), t(c(m.value), a(b.value, {
|
|
31
|
+
class: "kappa-label",
|
|
32
|
+
"data-slot": "label",
|
|
33
|
+
"data-content": f.asContent ? "" : void 0,
|
|
34
|
+
for: y.value
|
|
35
|
+
}), {
|
|
36
|
+
default: d(() => [s(e.$slots, "default"), f.showOptional ? (o(), r("span", v, " (" + l(h.value) + ") ", 1)) : n("", !0)]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["data-content", "for"]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { h as a, f as i, p as n, g as o, m as r, _ as s, y as t };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=Label-cI7Flyrk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label-cI7Flyrk.js","names":[],"sources":["../src/components/label/label.ts","../src/components/label/Label.vue","../src/components/label/Label.vue"],"sourcesContent":["import type { VNodeChild } from \"vue\";\n\nexport const LABEL_ELEMENTS = [\"label\", \"span\"] as const;\n\nexport type LabelElement = (typeof LABEL_ELEMENTS)[number];\n\nexport const LABEL_DEFAULT_ELEMENT = \"label\" satisfies LabelElement;\nexport const LABEL_DEFAULT_OPTIONAL_TEXT = \"optional\";\n\nexport interface LabelProps {\n /** Native element rendered by the component. */\n as?: LabelElement;\n /** Renders a span and inherits the surrounding typography for nested composition. */\n asContent?: boolean;\n /** Control id associated with a native label. Native `for` is also supported. */\n htmlFor?: string;\n /** Shows a quiet optional marker after the label text. */\n showOptional?: boolean;\n /** Translated text used by the optional marker. */\n optionalText?: string;\n}\n\nexport interface LabelSlots {\n default?: () => VNodeChild;\n}\n\nexport const isLabelElement = (value: unknown): value is LabelElement =>\n value === \"label\" || value === \"span\";\n\nexport const resolveLabelElement = (value: unknown, asContent = false): LabelElement =>\n asContent ? \"span\" : isLabelElement(value) ? value : LABEL_DEFAULT_ELEMENT;\n\nexport const resolveLabelOptionalText = (value: unknown): string =>\n typeof value === \"string\" && value.trim().length > 0\n ? value\n : LABEL_DEFAULT_OPTIONAL_TEXT;\n","<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport {\n LABEL_DEFAULT_ELEMENT,\n LABEL_DEFAULT_OPTIONAL_TEXT,\n resolveLabelElement,\n resolveLabelOptionalText,\n type LabelProps,\n type LabelSlots,\n} from \"./label\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<LabelProps>(), {\n as: LABEL_DEFAULT_ELEMENT,\n asContent: false,\n htmlFor: undefined,\n optionalText: LABEL_DEFAULT_OPTIONAL_TEXT,\n showOptional: false,\n});\n\ndefineSlots<LabelSlots>();\n\nconst attrs = useAttrs();\nconst resolvedElement = computed(() => resolveLabelElement(props.as, props.asContent));\nconst resolvedOptionalText = computed(() => resolveLabelOptionalText(props.optionalText));\nconst resolvedFor = computed(() => {\n if (resolvedElement.value !== \"label\") return undefined;\n if (props.htmlFor !== undefined) return props.htmlFor;\n return typeof attrs.for === \"string\" ? attrs.for : undefined;\n});\nconst forwardedAttrs = computed(() => {\n const { for: _for, ...rest } = attrs;\n return rest;\n});\n</script>\n\n<template>\n <component\n :is=\"resolvedElement\"\n v-bind=\"forwardedAttrs\"\n class=\"kappa-label\"\n data-slot=\"label\"\n :data-content=\"props.asContent ? '' : undefined\"\n :for=\"resolvedFor\"\n >\n <slot />\n <span v-if=\"props.showOptional\" class=\"kappa-label__optional\" data-slot=\"label-optional\">\n ({{ resolvedOptionalText }})\n </span>\n </component>\n</template>\n\n<style src=\"./label.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, useAttrs } from \"vue\";\nimport {\n LABEL_DEFAULT_ELEMENT,\n LABEL_DEFAULT_OPTIONAL_TEXT,\n resolveLabelElement,\n resolveLabelOptionalText,\n type LabelProps,\n type LabelSlots,\n} from \"./label\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<LabelProps>(), {\n as: LABEL_DEFAULT_ELEMENT,\n asContent: false,\n htmlFor: undefined,\n optionalText: LABEL_DEFAULT_OPTIONAL_TEXT,\n showOptional: false,\n});\n\ndefineSlots<LabelSlots>();\n\nconst attrs = useAttrs();\nconst resolvedElement = computed(() => resolveLabelElement(props.as, props.asContent));\nconst resolvedOptionalText = computed(() => resolveLabelOptionalText(props.optionalText));\nconst resolvedFor = computed(() => {\n if (resolvedElement.value !== \"label\") return undefined;\n if (props.htmlFor !== undefined) return props.htmlFor;\n return typeof attrs.for === \"string\" ? attrs.for : undefined;\n});\nconst forwardedAttrs = computed(() => {\n const { for: _for, ...rest } = attrs;\n return rest;\n});\n</script>\n\n<template>\n <component\n :is=\"resolvedElement\"\n v-bind=\"forwardedAttrs\"\n class=\"kappa-label\"\n data-slot=\"label\"\n :data-content=\"props.asContent ? '' : undefined\"\n :for=\"resolvedFor\"\n >\n <slot />\n <span v-if=\"props.showOptional\" class=\"kappa-label__optional\" data-slot=\"label-optional\">\n ({{ resolvedOptionalText }})\n </span>\n </component>\n</template>\n\n<style src=\"./label.css\"></style>\n"],"mappings":";;AAEA,IAAa,IAAiB,CAAC,SAAS,MAAM,GAIjC,IAAwB,SACxB,IAA8B,YAmB9B,KAAkB,MAC7B,MAAU,WAAW,MAAU,QAEpB,KAAuB,GAAgB,IAAY,OAC9D,IAAY,SAAS,EAAe,CAAK,IAAI,IAAQ,GAE1C,KAA4B,MACvC,OAAO,KAAU,YAAY,EAAM,KAAK,CAAC,CAAC,SAAS,IAC/C,IACA;;;;;;;;;;;;;;;;;;;;;ECtBN,IAAM,IAAQ,GAUR,IAAQ,EAAS,GACjB,IAAkB,QAAe,EAAoB,EAAM,IAAI,EAAM,SAAS,CAAC,GAC/E,IAAuB,QAAe,EAAyB,EAAM,YAAY,CAAC,GAClF,IAAc,QAAe;GAC7B,MAAgB,UAAU,SAE9B,OADI,EAAM,YAAY,KAAA,IACf,OAAO,EAAM,OAAQ,WAAW,EAAM,MAAM,KAAA,IADX,EAAM;EAEhD,CAAC,GACK,IAAiB,QAAe;GACpC,IAAM,EAAE,KAAK,GAAM,GAAG,MAAS;GAC/B,OAAO;EACT,CAAC;oBAIC,EAAA,GAAA,EAYY,EAXL,EAAA,KAAe,GADtB,EAEU,EAUE,OAVY;GACtB,OAAM;GACN,aAAU;GACT,gBAAc,EAAM,YAAS,KAAQ,KAAA;GACrC,KAAK,EAAA;;GAEN,SAAA,QAAQ,CAAR,EAAQ,EAAA,QAAA,SAAA,GACI,EAAM,gBAAlB,EAAA,GAAA,EAEO,QAFP,GAAyF,OACtF,EAAG,EAAA,KAAoB,IAAG,MAC7B,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA"}
|