@astryx-vue/core 0.1.3 → 0.2.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-b0PWt9Fz.js → AppShell-1wNIEtK_.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DqC3EDN1.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BGUnskjo.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DCjXRiOF.js} +8 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DunoAqVH.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +4 -2
- package/dist/Code-yb_KOFtJ.js +299 -0
- package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CAF-VJnh.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-DvMiYJp7.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-xfm9ldUI.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-B6lBTRhP.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-DUkED3Z3.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-Crcg-CCj.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-e9KSxBBK.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-fSOfuLex.js} +5 -3
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-8G0B1UND.js} +63 -16
- package/dist/DropdownMenu-XvW4BJob.js +164 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CmAfOpkA.js → FileInput-D-fchyQH.js} +2 -2
- package/dist/Icon/index.d.ts +4 -0
- package/dist/Icon/index.js +3 -0
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-Bku25g_K.js +193 -0
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-uuVGgHxW.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-DLICa3db.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-h492rqEN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-DkYi5az5.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-C2IS-EaU.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-CjfAsFwj.js +210 -0
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-BTmrtvXR.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-CRE8BE7V.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-BpGXPmc7.js} +76 -22
- package/dist/Popover/index.d.ts +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BuGKvU9I.js → Resizable-CE8XQDL2.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DkJOLZSR.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-DcDWBnXJ.js} +17 -17
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-DZKaqEoz.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C411uNQU.js → TabList-hm06QPiW.js} +10 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-DwehtMap.js} +4 -4
- package/dist/Text/index.d.ts +3 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/index.js +2 -0
- package/dist/Theme-BuUiiJNr.js +429 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-CAOYds8t.js} +11 -11
- package/dist/{TimeField-l3QzU6vC.js → TimeField-BGbxCoKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-DJP3l4ZS.js} +1 -1
- package/dist/Timer/index.d.ts +2 -0
- package/dist/Timer/index.js +2 -0
- package/dist/Timer-B7GV6hqd.js +134 -0
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-BzRp8uWc.js} +5 -122
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C4KD0fZD.js → Token-CjocuhzE.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-mYES5SPM.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CZokS7E_.js → TopNav-C2t6JkZb.js} +4 -4
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-THJ0KamE.js} +3 -3
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-D7VnvRpK.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-DzcK4T_C.js} +58 -2
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/index-3p2BDVHq.d.ts +31 -0
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/{index-CX97hlld.d.ts → index-CBym0hSq.d.ts} +2 -19
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/{index-DYChvBOM.d.ts → index-Clmz00IK.d.ts} +31 -0
- package/dist/index-Cm_TiLXU.d.ts +22 -0
- package/dist/index-Cn-sSds-.d.ts +68 -0
- package/dist/index-CsVS37na.d.ts +81 -0
- package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
- package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-DAiGhkNZ.d.ts} +15 -2
- package/dist/{index-DGNqi2za.d.ts → index-DQAnGHu7.d.ts} +5 -5
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Df2YvC8o.d.ts → index-DeOftUMq.d.ts} +191 -75
- package/dist/{index-DXDGk38y.d.ts → index-Dg3ZmwEg.d.ts} +11 -0
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
- package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-C6RecznD.d.ts → index-I4J7gwa1.d.ts} +51 -9
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-Z_onS2lR.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +78 -68
- package/dist/index.js +107 -96
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-BKcxXW--.d.ts +114 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/package.json +30 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/carousel.css +120 -0
- package/styles/chat.css +5 -2
- package/styles/dropdown-menu.css +11 -0
- package/styles/heading.css +6 -2
- package/styles/icon.css +38 -8
- package/styles/lightbox.css +144 -0
- package/styles/link.css +5 -0
- package/styles/media-theme.css +51 -0
- package/styles/number-input.css +22 -0
- package/styles/outline.css +124 -0
- package/styles/pagination.css +45 -1
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/styles.css +6 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-CYhGDT6f.js +0 -277
- package/dist/DateInput-D2ErjXYO.js +0 -250
- package/dist/Icon-5MdZQ18k.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-DspJO6z6.js +0 -147
- package/dist/Selector-DlZpQh42.js +0 -325
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/index-ZJyk8RtQ.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-Bku25g_K.js";
|
|
4
|
+
import { Comment, Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, unref, useSlots, watch, withCtx } from "vue";
|
|
5
|
+
import "../styles/carousel.css";
|
|
6
|
+
//#region src/Carousel/slides.ts
|
|
7
|
+
function flattenSlides(nodes) {
|
|
8
|
+
const slides = [];
|
|
9
|
+
for (const node of nodes) {
|
|
10
|
+
if (node.type === Comment) continue;
|
|
11
|
+
if (node.type === Fragment && Array.isArray(node.children)) {
|
|
12
|
+
slides.push(...flattenSlides(node.children));
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
if (node.type === Text && String(node.children ?? "").trim() === "") continue;
|
|
16
|
+
slides.push(node);
|
|
17
|
+
}
|
|
18
|
+
return slides;
|
|
19
|
+
}
|
|
20
|
+
const CarouselSlideHost = defineComponent({
|
|
21
|
+
name: "CarouselSlideHost",
|
|
22
|
+
props: { node: {
|
|
23
|
+
type: Object,
|
|
24
|
+
required: true
|
|
25
|
+
} },
|
|
26
|
+
setup(props) {
|
|
27
|
+
return () => props.node;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/Carousel/useCarouselScroll.ts
|
|
32
|
+
function prefersReducedMotion() {
|
|
33
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
34
|
+
}
|
|
35
|
+
function isRtlElement(element) {
|
|
36
|
+
return getComputedStyle(element).direction === "rtl";
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Track which logical edges of a horizontal scroller are hiding content.
|
|
40
|
+
* RTL uses the negative `scrollLeft` that Chromium and current Firefox share.
|
|
41
|
+
*/
|
|
42
|
+
function readOverflow(element) {
|
|
43
|
+
const max = element.scrollWidth - element.clientWidth;
|
|
44
|
+
if (!(max > 1)) return {
|
|
45
|
+
hasOverflow: false,
|
|
46
|
+
overflowStart: false,
|
|
47
|
+
overflowEnd: false
|
|
48
|
+
};
|
|
49
|
+
if (isRtlElement(element)) {
|
|
50
|
+
const left = element.scrollLeft;
|
|
51
|
+
return {
|
|
52
|
+
hasOverflow: true,
|
|
53
|
+
overflowStart: left < -1,
|
|
54
|
+
overflowEnd: left > -max + 1
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
hasOverflow: true,
|
|
59
|
+
overflowStart: element.scrollLeft > 1,
|
|
60
|
+
overflowEnd: element.scrollLeft < max - 1
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function useCarouselScroller(scroller) {
|
|
64
|
+
const overflow = ref({
|
|
65
|
+
hasOverflow: false,
|
|
66
|
+
overflowStart: false,
|
|
67
|
+
overflowEnd: false
|
|
68
|
+
});
|
|
69
|
+
let frame = 0;
|
|
70
|
+
let observer = null;
|
|
71
|
+
function measure() {
|
|
72
|
+
const element = scroller.value;
|
|
73
|
+
overflow.value = element == null ? {
|
|
74
|
+
hasOverflow: false,
|
|
75
|
+
overflowStart: false,
|
|
76
|
+
overflowEnd: false
|
|
77
|
+
} : readOverflow(element);
|
|
78
|
+
}
|
|
79
|
+
function schedule() {
|
|
80
|
+
if (typeof requestAnimationFrame !== "function") {
|
|
81
|
+
measure();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (frame !== 0) return;
|
|
85
|
+
frame = requestAnimationFrame(() => {
|
|
86
|
+
frame = 0;
|
|
87
|
+
measure();
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function scrollByDirection(direction, hasLoop) {
|
|
91
|
+
const element = scroller.value;
|
|
92
|
+
if (element == null) return;
|
|
93
|
+
const behavior = prefersReducedMotion() ? "auto" : "smooth";
|
|
94
|
+
const rtlSign = isRtlElement(element) ? -1 : 1;
|
|
95
|
+
const state = readOverflow(element);
|
|
96
|
+
if (hasLoop && state.hasOverflow) {
|
|
97
|
+
const atEnd = direction === 1 && !state.overflowEnd;
|
|
98
|
+
const atStart = direction === -1 && !state.overflowStart;
|
|
99
|
+
if (atEnd || atStart) {
|
|
100
|
+
element.scrollBy({
|
|
101
|
+
left: rtlSign * -direction * element.scrollWidth,
|
|
102
|
+
behavior
|
|
103
|
+
});
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const itemWidth = element.firstElementChild?.offsetWidth ?? 0;
|
|
108
|
+
const amount = Math.max(element.clientWidth - itemWidth * .5, itemWidth);
|
|
109
|
+
element.scrollBy({
|
|
110
|
+
left: rtlSign * direction * amount,
|
|
111
|
+
behavior
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function scrollToIndex(index) {
|
|
115
|
+
const element = scroller.value;
|
|
116
|
+
const items = element?.children;
|
|
117
|
+
if (element == null || items == null || items.length === 0) return;
|
|
118
|
+
const target = items[Math.max(0, Math.min(index, items.length - 1))];
|
|
119
|
+
const behavior = prefersReducedMotion() ? "auto" : "smooth";
|
|
120
|
+
const containerRect = element.getBoundingClientRect();
|
|
121
|
+
const itemRect = target.getBoundingClientRect();
|
|
122
|
+
const delta = isRtlElement(element) ? itemRect.right - containerRect.right : itemRect.left - containerRect.left;
|
|
123
|
+
element.scrollBy({
|
|
124
|
+
left: delta,
|
|
125
|
+
behavior
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function onWheel(event) {
|
|
129
|
+
if (!event.shiftKey || event.deltaY === 0 || event.deltaX !== 0) return;
|
|
130
|
+
const element = scroller.value;
|
|
131
|
+
if (element == null || element.scrollWidth <= element.clientWidth) return;
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
element.scrollBy({
|
|
134
|
+
left: event.deltaY,
|
|
135
|
+
behavior: "auto"
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function onKeyDown(event, hasLoop) {
|
|
139
|
+
if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
|
|
140
|
+
const element = scroller.value;
|
|
141
|
+
if (element == null || element.scrollWidth <= element.clientWidth) return;
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
const rtl = isRtlElement(element);
|
|
144
|
+
scrollByDirection((event.key === "ArrowRight" ? !rtl : rtl) ? 1 : -1, hasLoop);
|
|
145
|
+
}
|
|
146
|
+
onMounted(() => {
|
|
147
|
+
const element = scroller.value;
|
|
148
|
+
if (element == null) return;
|
|
149
|
+
measure();
|
|
150
|
+
element.addEventListener("scroll", schedule, { passive: true });
|
|
151
|
+
element.addEventListener("wheel", onWheel, { passive: false });
|
|
152
|
+
observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedule);
|
|
153
|
+
observer?.observe(element);
|
|
154
|
+
for (const child of element.children) observer?.observe(child);
|
|
155
|
+
});
|
|
156
|
+
onBeforeUnmount(() => {
|
|
157
|
+
const element = scroller.value;
|
|
158
|
+
element?.removeEventListener("scroll", schedule);
|
|
159
|
+
element?.removeEventListener("wheel", onWheel);
|
|
160
|
+
observer?.disconnect();
|
|
161
|
+
if (frame !== 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
|
|
162
|
+
});
|
|
163
|
+
return {
|
|
164
|
+
measure,
|
|
165
|
+
onKeyDown,
|
|
166
|
+
overflow,
|
|
167
|
+
scrollByDirection,
|
|
168
|
+
scrollToIndex
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/Carousel/Carousel.vue
|
|
173
|
+
const _hoisted_1 = ["aria-label"];
|
|
174
|
+
const _hoisted_2 = [
|
|
175
|
+
"data-gap",
|
|
176
|
+
"data-padding",
|
|
177
|
+
"data-snap",
|
|
178
|
+
"data-edge-fade",
|
|
179
|
+
"data-fade"
|
|
180
|
+
];
|
|
181
|
+
const _hoisted_3 = ["aria-label"];
|
|
182
|
+
const _hoisted_4 = {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: "astryx-carousel__controls"
|
|
185
|
+
};
|
|
186
|
+
const _hoisted_5 = ["data-hidden"];
|
|
187
|
+
const _hoisted_6 = ["data-hidden"];
|
|
188
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
189
|
+
name: "AstryxCarousel",
|
|
190
|
+
inheritAttrs: false,
|
|
191
|
+
__name: "Carousel",
|
|
192
|
+
props: {
|
|
193
|
+
gap: { default: 1 },
|
|
194
|
+
hasButtons: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: true
|
|
197
|
+
},
|
|
198
|
+
hasEdgeFade: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: true
|
|
201
|
+
},
|
|
202
|
+
hasLoop: {
|
|
203
|
+
type: Boolean,
|
|
204
|
+
default: false
|
|
205
|
+
},
|
|
206
|
+
hasSnap: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: false
|
|
209
|
+
},
|
|
210
|
+
padding: {},
|
|
211
|
+
label: {}
|
|
212
|
+
},
|
|
213
|
+
setup(__props, { expose: __expose }) {
|
|
214
|
+
const props = __props;
|
|
215
|
+
const slots = useSlots();
|
|
216
|
+
const messages = useAstryxMessages();
|
|
217
|
+
const scroller = ref(null);
|
|
218
|
+
const startButton = ref(null);
|
|
219
|
+
const endButton = ref(null);
|
|
220
|
+
const focusedNav = ref(null);
|
|
221
|
+
const { measure, onKeyDown, overflow, scrollByDirection, scrollToIndex } = useCarouselScroller(scroller);
|
|
222
|
+
const slides = computed(() => flattenSlides(slots.default?.() ?? []));
|
|
223
|
+
const regionLabel = computed(() => props.label ?? messages.value.carousel.label);
|
|
224
|
+
const canScrollStart = computed(() => props.hasLoop && overflow.value.hasOverflow ? true : overflow.value.overflowStart);
|
|
225
|
+
const canScrollEnd = computed(() => props.hasLoop && overflow.value.hasOverflow ? true : overflow.value.overflowEnd);
|
|
226
|
+
const fade = computed(() => {
|
|
227
|
+
if (!props.hasEdgeFade) return "none";
|
|
228
|
+
if (props.hasLoop && overflow.value.hasOverflow || overflow.value.overflowStart && overflow.value.overflowEnd) return "both";
|
|
229
|
+
if (overflow.value.overflowStart) return "start";
|
|
230
|
+
if (overflow.value.overflowEnd) return "end";
|
|
231
|
+
return "none";
|
|
232
|
+
});
|
|
233
|
+
const spacingName = computed(() => String(props.gap).replace(".", "-"));
|
|
234
|
+
const paddingName = computed(() => props.padding == null ? void 0 : String(props.padding).replace(".", "-"));
|
|
235
|
+
const scrollerStyle = computed(() => {
|
|
236
|
+
const style = { "--astryx-carousel-gap": `var(--astryx-spacing-${spacingName.value}, ${props.gap * 4}px)` };
|
|
237
|
+
if (paddingName.value != null) style["--astryx-carousel-padding"] = `var(--astryx-spacing-${paddingName.value})`;
|
|
238
|
+
return style;
|
|
239
|
+
});
|
|
240
|
+
let previousCanScroll = null;
|
|
241
|
+
watch([canScrollStart, canScrollEnd], async ([start, end]) => {
|
|
242
|
+
const previous = previousCanScroll;
|
|
243
|
+
previousCanScroll = {
|
|
244
|
+
start,
|
|
245
|
+
end
|
|
246
|
+
};
|
|
247
|
+
const side = focusedNav.value;
|
|
248
|
+
if (previous == null || side == null) return;
|
|
249
|
+
if (!(side === "start" ? previous.start : previous.end) || (side === "start" ? start : end)) return;
|
|
250
|
+
await nextTick();
|
|
251
|
+
const pressed = side === "start" ? startButton.value : endButton.value;
|
|
252
|
+
if (pressed == null) return;
|
|
253
|
+
const active = pressed.ownerDocument.activeElement;
|
|
254
|
+
if (active !== pressed && active !== pressed.ownerDocument.body) return;
|
|
255
|
+
const opposite = side === "start" ? endButton.value : startButton.value;
|
|
256
|
+
const receiver = opposite != null && !opposite.disabled ? opposite : scroller.value;
|
|
257
|
+
if (receiver == null) return;
|
|
258
|
+
focusedNav.value = null;
|
|
259
|
+
receiver.focus({ preventScroll: true });
|
|
260
|
+
});
|
|
261
|
+
function buttonElement(target) {
|
|
262
|
+
return target instanceof HTMLButtonElement ? target : null;
|
|
263
|
+
}
|
|
264
|
+
function onStartFocus(event) {
|
|
265
|
+
startButton.value = buttonElement(event.currentTarget);
|
|
266
|
+
focusedNav.value = "start";
|
|
267
|
+
}
|
|
268
|
+
function onEndFocus(event) {
|
|
269
|
+
endButton.value = buttonElement(event.currentTarget);
|
|
270
|
+
focusedNav.value = "end";
|
|
271
|
+
}
|
|
272
|
+
function onNavBlur(event) {
|
|
273
|
+
const button = buttonElement(event.currentTarget);
|
|
274
|
+
if (button != null && !button.disabled) focusedNav.value = null;
|
|
275
|
+
}
|
|
276
|
+
function scrollNext() {
|
|
277
|
+
scrollByDirection(1, props.hasLoop);
|
|
278
|
+
}
|
|
279
|
+
function scrollPrev() {
|
|
280
|
+
scrollByDirection(-1, props.hasLoop);
|
|
281
|
+
}
|
|
282
|
+
__expose({
|
|
283
|
+
canScrollNext: () => props.hasLoop ? overflow.value.hasOverflow : overflow.value.overflowEnd,
|
|
284
|
+
canScrollPrev: () => props.hasLoop ? overflow.value.hasOverflow : overflow.value.overflowStart,
|
|
285
|
+
scrollNext,
|
|
286
|
+
scrollPrev,
|
|
287
|
+
scrollTo: scrollToIndex
|
|
288
|
+
});
|
|
289
|
+
watch(slides, () => {
|
|
290
|
+
nextTick(measure);
|
|
291
|
+
});
|
|
292
|
+
return (_ctx, _cache) => {
|
|
293
|
+
return openBlock(), createElementBlock("div", {
|
|
294
|
+
class: normalizeClass(["astryx-carousel", _ctx.$attrs.class]),
|
|
295
|
+
style: normalizeStyle(_ctx.$attrs.style),
|
|
296
|
+
role: "region",
|
|
297
|
+
"aria-roledescription": "carousel",
|
|
298
|
+
"aria-label": regionLabel.value,
|
|
299
|
+
"data-component": "carousel"
|
|
300
|
+
}, [
|
|
301
|
+
createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- tabindex 把滚动区放进 Tab 序列;左右方向键只滚动这一行。 "),
|
|
302
|
+
createElementVNode("div", {
|
|
303
|
+
ref_key: "scroller",
|
|
304
|
+
ref: scroller,
|
|
305
|
+
class: "astryx-carousel__scroller",
|
|
306
|
+
"data-gap": __props.gap,
|
|
307
|
+
"data-padding": __props.padding,
|
|
308
|
+
"data-snap": __props.hasSnap || void 0,
|
|
309
|
+
"data-edge-fade": __props.hasEdgeFade || void 0,
|
|
310
|
+
"data-fade": fade.value,
|
|
311
|
+
tabindex: "0",
|
|
312
|
+
style: normalizeStyle(scrollerStyle.value),
|
|
313
|
+
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(onKeyDown)($event, __props.hasLoop))
|
|
314
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(slides.value, (slide, index) => {
|
|
315
|
+
return openBlock(), createElementBlock("div", {
|
|
316
|
+
key: index,
|
|
317
|
+
class: "astryx-carousel__item",
|
|
318
|
+
role: "group",
|
|
319
|
+
"aria-roledescription": "slide",
|
|
320
|
+
"aria-label": unref(messages).carousel.slide(index + 1, slides.value.length)
|
|
321
|
+
}, [createVNode(unref(CarouselSlideHost), { node: slide }, null, 8, ["node"])], 8, _hoisted_3);
|
|
322
|
+
}), 128))], 44, _hoisted_2),
|
|
323
|
+
__props.hasButtons ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", {
|
|
324
|
+
class: "astryx-carousel__pill astryx-carousel__pill--start",
|
|
325
|
+
"data-hidden": !canScrollStart.value || void 0
|
|
326
|
+
}, [createVNode(_sfc_main$1, {
|
|
327
|
+
variant: "ghost",
|
|
328
|
+
size: "sm",
|
|
329
|
+
label: unref(messages).carousel.scrollLeft,
|
|
330
|
+
"is-disabled": !canScrollStart.value,
|
|
331
|
+
onFocus: onStartFocus,
|
|
332
|
+
onBlur: onNavBlur,
|
|
333
|
+
onClick: scrollPrev
|
|
334
|
+
}, {
|
|
335
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
336
|
+
icon: "chevronLeft",
|
|
337
|
+
size: "xsm"
|
|
338
|
+
})]),
|
|
339
|
+
_: 1
|
|
340
|
+
}, 8, ["label", "is-disabled"])], 8, _hoisted_5), createElementVNode("div", {
|
|
341
|
+
class: "astryx-carousel__pill astryx-carousel__pill--end",
|
|
342
|
+
"data-hidden": !canScrollEnd.value || void 0
|
|
343
|
+
}, [createVNode(_sfc_main$1, {
|
|
344
|
+
variant: "ghost",
|
|
345
|
+
size: "sm",
|
|
346
|
+
label: unref(messages).carousel.scrollRight,
|
|
347
|
+
"is-disabled": !canScrollEnd.value,
|
|
348
|
+
onFocus: onEndFocus,
|
|
349
|
+
onBlur: onNavBlur,
|
|
350
|
+
onClick: scrollNext
|
|
351
|
+
}, {
|
|
352
|
+
default: withCtx(() => [createVNode(_sfc_main$2, {
|
|
353
|
+
icon: "chevronRight",
|
|
354
|
+
size: "xsm"
|
|
355
|
+
})]),
|
|
356
|
+
_: 1
|
|
357
|
+
}, 8, ["label", "is-disabled"])], 8, _hoisted_6)])) : createCommentVNode("v-if", true)
|
|
358
|
+
], 14, _hoisted_1);
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
//#endregion
|
|
363
|
+
export { _sfc_main as t };
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$6, c as _sfc_main$3, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$7, l as _sfc_main$2, m as _sfc_main$1, n as _sfc_main$9, o as _sfc_main$5, p as useChatMessageContext, r as _sfc_main$8, s as _sfc_main$4, t as _sfc_main$10, u as _sfc_main } from "../Chat-
|
|
1
|
+
import { a as _sfc_main$6, c as _sfc_main$3, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$7, l as _sfc_main$2, m as _sfc_main$1, n as _sfc_main$9, o as _sfc_main$5, p as useChatMessageContext, r as _sfc_main$8, s as _sfc_main$4, t as _sfc_main$10, u as _sfc_main } from "../Chat-DCjXRiOF.js";
|
|
2
2
|
export { _sfc_main as ChatLayout, _sfc_main$1 as ChatLayoutScrollButton, _sfc_main$2 as ChatMessage, _sfc_main$3 as ChatMessageBubble, _sfc_main$4 as ChatMessageList, _sfc_main$5 as ChatMessageMetadata, _sfc_main$6 as ChatReasoning, _sfc_main$7 as ChatSystemMessage, _sfc_main$8 as ChatToolCalls, _sfc_main$9 as ChatTypingIndicator, _sfc_main$10 as ChatUnreadDivider, useChatLayoutContext, useChatListContext, useChatMessageContext };
|
|
@@ -2,11 +2,11 @@ import { t as _sfc_main$14 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
|
2
2
|
import { t as _sfc_main$15 } from "./Button-DrqeomlE.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
4
4
|
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
5
|
-
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-
|
|
6
|
-
import { t as _sfc_main$16 } from "./Badge-
|
|
7
|
-
import { t as _sfc_main$17 } from "./Icon-
|
|
8
|
-
import { t as _sfc_main$18 } from "./
|
|
9
|
-
import { t as _sfc_main$19 } from "./
|
|
5
|
+
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-DzcK4T_C.js";
|
|
6
|
+
import { t as _sfc_main$16 } from "./Badge-CjDQPF5g.js";
|
|
7
|
+
import { t as _sfc_main$17 } from "./Icon-Bku25g_K.js";
|
|
8
|
+
import { t as _sfc_main$18 } from "./Divider-BtwnL18I.js";
|
|
9
|
+
import { t as _sfc_main$19 } from "./Spinner-9cYUCnDy.js";
|
|
10
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
11
11
|
import "../styles/chat.css";
|
|
12
12
|
//#region src/Chat/ChatLayoutScrollButton.vue
|
|
@@ -397,7 +397,7 @@ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
|
|
|
397
397
|
class: "astryx-chat-message-list__sentinel",
|
|
398
398
|
"aria-hidden": "true"
|
|
399
399
|
}, null, 512)) : createCommentVNode("v-if", true),
|
|
400
|
-
isLoadingTop.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$
|
|
400
|
+
isLoadingTop.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$19, {
|
|
401
401
|
size: "md",
|
|
402
402
|
"aria-label": unref(messages).chat.toolRunning
|
|
403
403
|
}, null, 8, ["aria-label"])])) : createCommentVNode("v-if", true),
|
|
@@ -659,7 +659,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
659
659
|
class: "astryx-chat-system-message",
|
|
660
660
|
"data-variant": "divider",
|
|
661
661
|
role: "status"
|
|
662
|
-
}), [createVNode(_sfc_main$
|
|
662
|
+
}), [createVNode(_sfc_main$18, null, {
|
|
663
663
|
label: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
664
664
|
_: 3
|
|
665
665
|
})], 16)) : (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
@@ -694,7 +694,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
694
694
|
class: "astryx-chat-status",
|
|
695
695
|
"data-status": __props.status,
|
|
696
696
|
title: __props.status === "error" ? __props.errorMessage : void 0
|
|
697
|
-
}, [__props.status === "pending" || __props.status === "running" ? (openBlock(), createBlock(_sfc_main$
|
|
697
|
+
}, [__props.status === "pending" || __props.status === "running" ? (openBlock(), createBlock(_sfc_main$19, {
|
|
698
698
|
key: 0,
|
|
699
699
|
size: "sm",
|
|
700
700
|
shade: "inherit",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cr as CheckboxInputChangeEvent, Dr as CheckboxValue, Er as CheckboxInputSlots, Sr as CheckboxInputChangeAction, Tr as CheckboxInputProps, wr as CheckboxInputEmits, xr as _default } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _r as CheckboxListEmits, br as CheckboxListProps, gr as _default, hr as _default$1, vr as CheckboxListItemEmits, yr as CheckboxListItemProps } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-BbCPiend.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
package/dist/Citation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Citation-
|
|
1
|
+
import { t as _sfc_main } from "../Citation-DunoAqVH.js";
|
|
2
2
|
export { _sfc_main as Citation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useAstryxMessages } from "./context-
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-Bku25g_K.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, toDisplayString, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/citation.css";
|
|
5
5
|
//#region src/Citation/Citation.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dr as _default, fr as ClickableCardEmits, mr as ClickableCardSlots, pr as ClickableCardProps } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as SyntaxTokenKey, c as githubDark, i as SyntaxThemeTokens, n as SyntaxThemeDefinition, o as SyntaxTokenValue, r as SyntaxThemeInput, s as defineSyntaxTheme, t as SYNTAX_TOKEN_KEYS } from "../syntaxTheme-Bcs1YMF7.js";
|
|
2
|
+
import { A as CodeBlockTokenizer, C as applyHighlightRanges, D as CodeBlockEmits, E as CodeBlockContainer, F as CodeSlots, I as SyntaxToken, L as TokenLine, M as CodeHighlightMode, N as CodeProps, O as CodeBlockProps, P as CodeSize, S as HIGHLIGHTED_TOKEN_TYPES, T as _default, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeColor, k as CodeBlockSize, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as _default$1, x as tokyoNightLight, y as solarizedLight } from "../index-DsyKhauk.js";
|
|
2
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
3
|
-
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, type SyntaxToken, type TokenLine, applyHighlightRanges, flatTokensToLines, tokenize, tokenizeAsync, useClipboard as useCopyToClipboard };
|
|
4
|
+
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
|
|
2
|
-
import { a as tokenizeAsync, c as _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$1 } from "../CodeBlock-
|
|
3
|
-
|
|
2
|
+
import { a as tokenizeAsync, c as _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$1 } from "../CodeBlock-CAF-VJnh.js";
|
|
3
|
+
import { n as defineSyntaxTheme, r as githubDark, t as SYNTAX_TOKEN_KEYS } from "../syntaxTheme-ClpWALZX.js";
|
|
4
|
+
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-yb_KOFtJ.js";
|
|
5
|
+
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|