@astryx-vue/core 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AppShell/index.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-b0PWt9Fz.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/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-DpYFXwgb.js → Calendar-CYhGDT6f.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-C1aWl5V3.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-EsIEXjK_.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-C1X0Rde8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-BS9ctCQV.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-u5h_E05P.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-BHmGWml0.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-D2ErjXYO.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-fmQlr_A7.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-Bs1JmcIp.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -4
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CmAfOpkA.js +238 -0
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-CwtLr3f_.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DlXQTLog.js +124 -0
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-DT8ZccMI.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-BqjdSCfJ.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-DI8ujXcT.js +122 -0
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BuGKvU9I.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-Cdrigq2A.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-DxmLfh8O.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-C411uNQU.js +380 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-7qRmlIQd.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-BWVzLLyI.js +163 -0
- package/dist/TimeField-l3QzU6vC.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-OkgX-xbQ.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DUoP9ari.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-BA8sTMPZ.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CjbMCbkC.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-CIbAGOMf.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +8 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{locale-56lkR7OK.js → context-D6ECRdc5.js} +267 -18
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-2u4l3wq8.d.ts} +2 -2
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-C6RecznD.d.ts} +3 -3
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/{index-Cz9ZHVf6.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-CxspvLBl.d.ts → index-CTolyeii.d.ts} +1 -1
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-JeZ0YTyd.d.ts → index-D-ZuubCK.d.ts} +4 -4
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-C8NW9xre.d.ts → index-DGNqi2za.d.ts} +7 -7
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/index-DXSs3rwa.d.ts +252 -0
- package/dist/{index-C0S2Xzoi.d.ts → index-DYChvBOM.d.ts} +135 -0
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-Df2YvC8o.d.ts} +717 -147
- package/dist/{index-DjOdQv5B.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-DBcbfStA.d.ts → index-SMh42NI8.d.ts} +182 -2
- package/dist/{index-Cdi82rTW.d.ts → index-ZJyk8RtQ.d.ts} +6 -2
- package/dist/{index-BeJqhW4l.d.ts → index-fa72tWIU.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +76 -59
- package/dist/index.js +119 -78
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Cp0NlzQv.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +97 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/card.css +5 -1
- package/styles/checkbox-list.css +15 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +14 -3
- package/styles/file-input.css +87 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/icon.css +32 -0
- package/styles/layout.css +280 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/selector.css +10 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +23 -0
- package/dist/Collapsible-ByXCGhT8.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-TnaIHsCS.d.ts +0 -87
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { n as useClickableContainer } from "./useClickableContainer-DyNpnSEa.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Card-HAjZQg2s.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, openBlock, renderSlot, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
import "../styles/clickable-card.css";
|
|
6
|
+
//#region src/ClickableCard/ClickableCard.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
name: "AstryxClickableCard",
|
|
9
|
+
__name: "ClickableCard",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
href: {},
|
|
13
|
+
target: {},
|
|
14
|
+
isDisabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
variant: { default: "default" },
|
|
19
|
+
elevation: { default: "none" },
|
|
20
|
+
padding: {},
|
|
21
|
+
width: {},
|
|
22
|
+
height: {},
|
|
23
|
+
maxWidth: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["click"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const cardRef = useTemplateRef("card");
|
|
30
|
+
const interactiveRef = useTemplateRef("interactive");
|
|
31
|
+
const containerRef = computed(() => cardRef.value?.element ?? null);
|
|
32
|
+
const controlRef = computed(() => interactiveRef.value?.element ?? null);
|
|
33
|
+
const handlers = useClickableContainer({
|
|
34
|
+
containerRef,
|
|
35
|
+
interactiveRef: controlRef,
|
|
36
|
+
get disabled() {
|
|
37
|
+
return props.isDisabled;
|
|
38
|
+
},
|
|
39
|
+
get href() {
|
|
40
|
+
return props.href;
|
|
41
|
+
},
|
|
42
|
+
get target() {
|
|
43
|
+
return props.target;
|
|
44
|
+
},
|
|
45
|
+
onClick(event) {
|
|
46
|
+
emit("click", event);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function onSurfaceClick(event) {
|
|
50
|
+
if (props.isDisabled) return;
|
|
51
|
+
handlers.onClick(event);
|
|
52
|
+
}
|
|
53
|
+
function onSurfaceMouseUp(event) {
|
|
54
|
+
if (props.isDisabled) return;
|
|
55
|
+
handlers.onMouseUp(event);
|
|
56
|
+
}
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
59
|
+
ref: "card",
|
|
60
|
+
class: "astryx-clickable-card",
|
|
61
|
+
"data-disabled": __props.isDisabled || void 0,
|
|
62
|
+
elevation: __props.elevation,
|
|
63
|
+
height: __props.height,
|
|
64
|
+
"max-width": __props.maxWidth,
|
|
65
|
+
padding: __props.padding,
|
|
66
|
+
variant: __props.variant,
|
|
67
|
+
width: __props.width,
|
|
68
|
+
onClick: onSurfaceClick,
|
|
69
|
+
onMouseup: onSurfaceMouseUp
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [__props.href ? (openBlock(), createBlock(_sfc_main$1, {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref: "interactive",
|
|
74
|
+
as: "a",
|
|
75
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
76
|
+
"aria-label": __props.label,
|
|
77
|
+
href: __props.isDisabled ? void 0 : __props.href,
|
|
78
|
+
tabindex: __props.isDisabled ? -1 : void 0,
|
|
79
|
+
target: __props.target
|
|
80
|
+
}, null, 8, [
|
|
81
|
+
"aria-disabled",
|
|
82
|
+
"aria-label",
|
|
83
|
+
"href",
|
|
84
|
+
"tabindex",
|
|
85
|
+
"target"
|
|
86
|
+
])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
87
|
+
key: 1,
|
|
88
|
+
ref: "interactive",
|
|
89
|
+
as: "button",
|
|
90
|
+
"aria-label": __props.label,
|
|
91
|
+
disabled: __props.isDisabled,
|
|
92
|
+
type: "button",
|
|
93
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
94
|
+
}, null, 8, ["aria-label", "disabled"])), renderSlot(_ctx.$slots, "default")]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, [
|
|
97
|
+
"data-disabled",
|
|
98
|
+
"elevation",
|
|
99
|
+
"height",
|
|
100
|
+
"max-width",
|
|
101
|
+
"padding",
|
|
102
|
+
"variant",
|
|
103
|
+
"width"
|
|
104
|
+
]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/ClickableCard/index.ts
|
|
110
|
+
var ClickableCard_default = _sfc_main;
|
|
111
|
+
//#endregion
|
|
112
|
+
export { _sfc_main as n, ClickableCard_default as t };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
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-BQdooQy2.js";
|
|
3
3
|
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, applyHighlightRanges, flatTokensToLines, tokenize, tokenizeAsync, useClipboard as useCopyToClipboard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
|
|
3
3
|
import { t as _sfc_main$4 } from "./IconButton-BNQuz9W_.js";
|
|
4
|
-
import { t as _sfc_main$5 } from "./Icon-
|
|
4
|
+
import { t as _sfc_main$5 } from "./Icon-5MdZQ18k.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
6
6
|
import "../styles/code.css";
|
|
7
7
|
//#region src/Code/Code.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollapsibleSlots, i as
|
|
2
|
-
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, type CollapsibleProps, type CollapsibleSlots };
|
|
1
|
+
import { a as CollapsibleGroupDensity, c as _default, d as CollapsibleProps, f as CollapsibleSlots, i as CollapsibleGroupSlots, l as CollapsibleChevronPosition, n as CollapsibleGroupEmits, o as CollapsibleGroupType, r as CollapsibleGroupProps, s as CollapsibleGroupValue, t as _default$1, u as CollapsibleEmits } from "../index-DA52oIdw.js";
|
|
2
|
+
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Collapsible-
|
|
2
|
-
export { _sfc_main as Collapsible };
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Collapsible-BS9ctCQV.js";
|
|
2
|
+
export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup };
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { t as _sfc_main$2 } from "./Icon-5MdZQ18k.js";
|
|
2
|
+
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, openBlock, provide, renderSlot, shallowRef, toDisplayString, useId, useModel, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
|
|
3
|
+
import "../styles/collapsible.css";
|
|
4
|
+
//#region src/Collapsible/context.ts
|
|
5
|
+
const collapsibleGroupKey = Symbol("collapsibleGroup");
|
|
6
|
+
const collapsibleGroupPresentationKey = Symbol("collapsibleGroupPresentation");
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/Collapsible/Collapsible.vue
|
|
9
|
+
const _hoisted_1$1 = ["data-density", "data-dividers"];
|
|
10
|
+
const _hoisted_2 = [
|
|
11
|
+
"data-chevron-position",
|
|
12
|
+
"data-open",
|
|
13
|
+
"data-disabled",
|
|
14
|
+
"aria-expanded",
|
|
15
|
+
"aria-disabled",
|
|
16
|
+
"tabindex"
|
|
17
|
+
];
|
|
18
|
+
const _hoisted_3 = { class: "astryx-collapsible-trigger-label" };
|
|
19
|
+
const _hoisted_4 = ["data-open"];
|
|
20
|
+
const _hoisted_5 = { class: "astryx-collapsible-content-inner" };
|
|
21
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
22
|
+
name: "AstryxCollapsible",
|
|
23
|
+
__name: "Collapsible",
|
|
24
|
+
props: /*@__PURE__*/ mergeModels({
|
|
25
|
+
trigger: {},
|
|
26
|
+
defaultIsOpen: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
isDisabled: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
chevronPosition: {},
|
|
35
|
+
value: {}
|
|
36
|
+
}, {
|
|
37
|
+
"isOpen": {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
"isOpenModifiers": {}
|
|
42
|
+
}),
|
|
43
|
+
emits: /*@__PURE__*/ mergeModels(["openChange"], ["update:isOpen"]),
|
|
44
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
const emit = __emit;
|
|
47
|
+
const open = useModel(__props, "isOpen");
|
|
48
|
+
const localIsOpen = shallowRef(props.defaultIsOpen);
|
|
49
|
+
const group = inject(collapsibleGroupKey, null);
|
|
50
|
+
const presentation = inject(collapsibleGroupPresentationKey, null);
|
|
51
|
+
const isGrouped = computed(() => group != null && props.value != null && props.value !== "");
|
|
52
|
+
const isOpen = computed(() => {
|
|
53
|
+
if (isGrouped.value && group != null && props.value != null) return group.isOpen(props.value);
|
|
54
|
+
return open.value ?? localIsOpen.value;
|
|
55
|
+
});
|
|
56
|
+
const density = computed(() => presentation?.density.value ?? null);
|
|
57
|
+
const hasDividers = computed(() => presentation?.hasDividers.value ?? false);
|
|
58
|
+
const chevronPosition = computed(() => props.chevronPosition ?? presentation?.chevronPosition.value ?? "end");
|
|
59
|
+
const isChevronAtStart = computed(() => chevronPosition.value === "start");
|
|
60
|
+
const contentId = `astryx-collapsible-${useId()}`;
|
|
61
|
+
const root = useTemplateRef("root");
|
|
62
|
+
__expose({ element: computed(() => root.value ?? null) });
|
|
63
|
+
function toggle() {
|
|
64
|
+
if (props.isDisabled) return;
|
|
65
|
+
if (isGrouped.value && group != null && props.value != null) {
|
|
66
|
+
group.toggle(props.value);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const next = !isOpen.value;
|
|
70
|
+
localIsOpen.value = next;
|
|
71
|
+
open.value = next;
|
|
72
|
+
emit("openChange", next);
|
|
73
|
+
}
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createElementBlock("div", {
|
|
76
|
+
ref_key: "root",
|
|
77
|
+
ref: root,
|
|
78
|
+
class: "astryx-collapsible",
|
|
79
|
+
"data-density": density.value || void 0,
|
|
80
|
+
"data-dividers": hasDividers.value || void 0
|
|
81
|
+
}, [createElementVNode("button", {
|
|
82
|
+
type: "button",
|
|
83
|
+
class: "astryx-collapsible-trigger",
|
|
84
|
+
"data-chevron-position": chevronPosition.value,
|
|
85
|
+
"data-open": isOpen.value ? "open" : void 0,
|
|
86
|
+
"data-disabled": __props.isDisabled ? "disabled" : void 0,
|
|
87
|
+
"aria-expanded": isOpen.value,
|
|
88
|
+
"aria-controls": contentId,
|
|
89
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
90
|
+
tabindex: __props.isDisabled ? -1 : void 0,
|
|
91
|
+
onClick: toggle
|
|
92
|
+
}, [
|
|
93
|
+
isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "astryx-collapsible-chevron",
|
|
96
|
+
color: "secondary",
|
|
97
|
+
icon: "chevronRight",
|
|
98
|
+
size: "sm"
|
|
99
|
+
})) : createCommentVNode("v-if", true),
|
|
100
|
+
createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.trigger), 1)])]),
|
|
101
|
+
!isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
102
|
+
key: 1,
|
|
103
|
+
class: "astryx-collapsible-chevron",
|
|
104
|
+
color: "secondary",
|
|
105
|
+
icon: "chevronDown",
|
|
106
|
+
size: "sm"
|
|
107
|
+
})) : createCommentVNode("v-if", true)
|
|
108
|
+
], 8, _hoisted_2), createVNode(Transition, {
|
|
109
|
+
name: "astryx-collapsible-reveal",
|
|
110
|
+
persisted: ""
|
|
111
|
+
}, {
|
|
112
|
+
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
113
|
+
id: contentId,
|
|
114
|
+
class: "astryx-collapsible-content",
|
|
115
|
+
"data-open": isOpen.value ? "open" : void 0
|
|
116
|
+
}, [createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_4), [[vShow, isOpen.value]])]),
|
|
117
|
+
_: 3
|
|
118
|
+
})], 8, _hoisted_1$1);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/Collapsible/CollapsibleGroup.vue
|
|
124
|
+
const _hoisted_1 = ["data-density"];
|
|
125
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
126
|
+
name: "AstryxCollapsibleGroup",
|
|
127
|
+
__name: "CollapsibleGroup",
|
|
128
|
+
props: /*@__PURE__*/ mergeModels({
|
|
129
|
+
type: { default: "single" },
|
|
130
|
+
defaultValue: {},
|
|
131
|
+
value: {},
|
|
132
|
+
hasDividers: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false
|
|
135
|
+
},
|
|
136
|
+
density: {},
|
|
137
|
+
chevronPosition: { default: "end" }
|
|
138
|
+
}, {
|
|
139
|
+
"value": {},
|
|
140
|
+
"valueModifiers": {}
|
|
141
|
+
}),
|
|
142
|
+
emits: /*@__PURE__*/ mergeModels(["change"], ["update:value"]),
|
|
143
|
+
setup(__props, { emit: __emit }) {
|
|
144
|
+
const props = __props;
|
|
145
|
+
const emit = __emit;
|
|
146
|
+
function initialValue() {
|
|
147
|
+
if (props.defaultValue != null) return props.defaultValue;
|
|
148
|
+
return props.type === "multiple" ? [] : "";
|
|
149
|
+
}
|
|
150
|
+
const value = useModel(__props, "value");
|
|
151
|
+
const localValue = shallowRef(initialValue());
|
|
152
|
+
const current = computed(() => value.value ?? localValue.value);
|
|
153
|
+
function asList(next) {
|
|
154
|
+
return Array.isArray(next) ? next : next === "" ? [] : [next];
|
|
155
|
+
}
|
|
156
|
+
const openValues = computed(() => asList(current.value));
|
|
157
|
+
function commit(next) {
|
|
158
|
+
const emitted = props.type === "single" ? next[0] ?? "" : next;
|
|
159
|
+
localValue.value = emitted;
|
|
160
|
+
value.value = emitted;
|
|
161
|
+
emit("change", emitted);
|
|
162
|
+
}
|
|
163
|
+
function isOpen(item) {
|
|
164
|
+
return openValues.value.includes(item);
|
|
165
|
+
}
|
|
166
|
+
function toggle(item) {
|
|
167
|
+
const open = openValues.value;
|
|
168
|
+
commit(props.type === "single" ? open.includes(item) ? [] : [item] : open.includes(item) ? open.filter((entry) => entry !== item) : [...open, item]);
|
|
169
|
+
}
|
|
170
|
+
const density = computed(() => props.density ?? (props.hasDividers ? "balanced" : null));
|
|
171
|
+
const hasDividers = computed(() => props.hasDividers);
|
|
172
|
+
const chevronPosition = computed(() => props.chevronPosition);
|
|
173
|
+
provide(collapsibleGroupKey, {
|
|
174
|
+
isOpen,
|
|
175
|
+
toggle
|
|
176
|
+
});
|
|
177
|
+
provide(collapsibleGroupPresentationKey, {
|
|
178
|
+
chevronPosition,
|
|
179
|
+
density,
|
|
180
|
+
hasDividers
|
|
181
|
+
});
|
|
182
|
+
return (_ctx, _cache) => {
|
|
183
|
+
return hasDividers.value ? (openBlock(), createElementBlock("div", {
|
|
184
|
+
key: 0,
|
|
185
|
+
class: "astryx-collapsible-group",
|
|
186
|
+
"data-density": density.value || void 0
|
|
187
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as _default$2, c as CommandPaletteEmits, d as CommandPaletteItemProps, f as CommandPaletteItemSlotProps, h as CommandPaletteSlots, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteProps, n as _default$5, o as _default$1, p as CommandPaletteListProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputProps } from "../index-Be1czg3M.js";
|
|
2
|
+
export { _default as CommandPalette, type CommandPaletteEmits, _default$1 as CommandPaletteEmpty, _default$2 as CommandPaletteFooter, _default$3 as CommandPaletteGroup, type CommandPaletteGroupProps, _default$4 as CommandPaletteInput, type CommandPaletteInputProps, _default$5 as CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteItemSlotProps, _default$6 as CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, type CommandPaletteSlots };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-u5h_E05P.js";
|
|
2
|
+
export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
|