@astryx-vue/core 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-EiGyPFbA.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-CYhGDT6f.js → Calendar-BG7wEsro.js} +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BTtHkKea.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DjNxw5gv.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DijdbUUu.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-CxTb6j9_.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-9MC08X39.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-BD2iODF5.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-D9iXd5cH.js} +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D2ErjXYO.js → DateInput-DE2TN1Rq.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-1bhPGG2s.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-SnPdgk6P.js} +3 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
- 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-BQiwE-GB.js} +2 -2
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +2 -0
- package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-CshKoB0r.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-D-Ua055V.js} +2 -2
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-sYph_d8Q.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-DD9D01aj.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-DiYov9sF.js} +2 -2
- 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 +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DspJO6z6.js → NumberInput-CTYiQxHq.js} +1 -1
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-DQfEBxlc.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-BU5VCntl.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-HdhtykeF.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- 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-BhSMfO5B.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DlZpQh42.js → Selector-Da-2BO3q.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-B-Om6Bz3.js} +2 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-BZ_8SEZt.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C411uNQU.js → TabList-Cnc2Hs1H.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-D-LhAy_J.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/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-Dc1UpykG.js} +2 -2
- package/dist/{TimeField-l3QzU6vC.js → TimeField-C7t9Knq9.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-BXxCOY98.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 +1 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-DlZSmgCJ.js} +3 -3
- 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-wt4e80IM.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-nmTqdS9n.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-notp-mJx.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-s1xBQ0qq.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-VAuiCurV.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-Dbo22sck.js} +54 -0
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/index-Bainr_3n.d.ts +31 -0
- package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
- package/dist/{index-C6RecznD.d.ts → index-BtPZKO20.d.ts} +2 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-CX97hlld.d.ts → index-C59PdX9L.d.ts} +2 -19
- package/dist/{index-Df2YvC8o.d.ts → index-C6iJwTL0.d.ts} +38 -31
- package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
- package/dist/index-CRizexSC.d.ts +147 -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-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-DGNqi2za.d.ts → index-DOUEn7V0.d.ts} +3 -3
- package/dist/{index-DYChvBOM.d.ts → index-DoFCm2Q2.d.ts} +29 -0
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-ZJyk8RtQ.d.ts → index-DtjAdYEc.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-NzLDrOkk.d.ts} +1 -1
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +71 -62
- package/dist/index.js +100 -92
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/types-DZoEm_DG.d.ts +97 -0
- package/package.json +25 -1
- package/styles/carousel.css +120 -0
- package/styles/heading.css +6 -2
- package/styles/lightbox.css +144 -0
- package/styles/media-theme.css +51 -0
- package/styles/outline.css +124 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles.css +6 -0
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-
|
|
1
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-ovx4cBjM.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -3,7 +3,7 @@ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
|
3
3
|
import { t as _sfc_main$2 } from "./Dialog-rfUt3y8P.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Heading-Dugosn6j.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./Stack-gGcYdOAh.js";
|
|
6
|
-
import { t as _sfc_main$5 } from "./Text-
|
|
6
|
+
import { t as _sfc_main$5 } from "./Text-BHVghsWo.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
8
8
|
import "../styles/alert-dialog.css";
|
|
9
9
|
//#region src/AlertDialog/context.ts
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../AppShell-
|
|
1
|
+
import { t as _sfc_main } from "../AppShell-EiGyPFbA.js";
|
|
2
2
|
export { _sfc_main as AppShell };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
2
2
|
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-C34uOq3e.js";
|
|
3
|
-
import { a as useAstryxMessages } from "./context-
|
|
4
|
-
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-
|
|
3
|
+
import { a as useAstryxMessages } from "./context-Dbo22sck.js";
|
|
4
|
+
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-DD9D01aj.js";
|
|
5
5
|
import { n as sideNavRenderModeKey } from "./context-BjNya0v8.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, reactive, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/app-shell.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-
|
|
1
|
+
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-C6iJwTL0.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowProps, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cr as _default, Dr as BannerSlots, Er as BannerProps, Or as BannerStatus, Tr as BannerEmits, wr as BannerContainer } from "../index-
|
|
1
|
+
import { Cr as _default, Dr as BannerSlots, Er as BannerProps, Or as BannerStatus, Tr as BannerEmits, wr as BannerContainer } from "../index-C6iJwTL0.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-WlmsNL1I.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-C7mxUcDR.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Sr as ButtonGroupOrientation, br as ButtonGroupProps, xr as ButtonGroupSlots, yr as _default } from "../index-
|
|
1
|
+
import { Sr as ButtonGroupOrientation, br as ButtonGroupProps, xr as ButtonGroupSlots, yr as _default } from "../index-C6iJwTL0.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Calendar-
|
|
1
|
+
import { t as _sfc_main } from "../Calendar-BG7wEsro.js";
|
|
2
2
|
export { _sfc_main as Calendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useGridRovingFocus } from "./useGridRovingFocus-DQQAOYH5.js";
|
|
2
|
-
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-
|
|
2
|
+
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-Dbo22sck.js";
|
|
3
3
|
import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
|
|
4
4
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, withKeys } from "vue";
|
|
5
5
|
import { CalendarDate, getLocalTimeZone, today } from "@internationalized/date";
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { a as useAstryxMessages } from "./context-Dbo22sck.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-Dfr4k6-S.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-DjNxw5gv.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,9 +2,9 @@ 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-
|
|
5
|
+
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-Dbo22sck.js";
|
|
6
6
|
import { t as _sfc_main$16 } from "./Badge-Ba0EwsTj.js";
|
|
7
|
-
import { t as _sfc_main$17 } from "./Icon-
|
|
7
|
+
import { t as _sfc_main$17 } from "./Icon-Dfr4k6-S.js";
|
|
8
8
|
import { t as _sfc_main$18 } from "./Spinner-9cYUCnDy.js";
|
|
9
9
|
import { t as _sfc_main$19 } from "./Divider-BtwnL18I.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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _r as CheckboxInputSlots, fr as _default, gr as CheckboxInputProps, hr as CheckboxInputEmits, mr as CheckboxInputChangeEvent, pr as CheckboxInputChangeAction, vr as CheckboxValue } from "../index-
|
|
1
|
+
import { _r as CheckboxInputSlots, fr as _default, gr as CheckboxInputProps, hr as CheckboxInputEmits, mr as CheckboxInputChangeEvent, pr as CheckboxInputChangeAction, vr as CheckboxValue } from "../index-C6iJwTL0.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 { cr as CheckboxListEmits, dr as CheckboxListProps, lr as CheckboxListItemEmits, or as _default$1, sr as _default, ur as CheckboxListItemProps } from "../index-
|
|
1
|
+
import { cr as CheckboxListEmits, dr as CheckboxListProps, lr as CheckboxListItemEmits, or as _default$1, sr as _default, ur as CheckboxListItemProps } from "../index-C6iJwTL0.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
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-DijdbUUu.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-Dbo22sck.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-Dfr4k6-S.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 { ar as ClickableCardSlots, ir as ClickableCardProps, nr as _default, rr as ClickableCardEmits } from "../index-
|
|
1
|
+
import { ar as ClickableCardSlots, ir as ClickableCardProps, nr as _default, rr as ClickableCardEmits } from "../index-C6iJwTL0.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-CxTb6j9_.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 };
|