@auronui/vue 1.0.19 → 1.0.21
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/cjs/index.cjs +286 -110
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/alert-dialog/AlertDialogAction.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogAction.vue_vue_type_script_setup_true_lang.js +25 -5
- package/dist/components/alert-dialog/AlertDialogAction.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel.vue_vue_type_script_setup_true_lang.js +25 -5
- package/dist/components/alert-dialog/AlertDialogCancel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/Chip.vue_vue_type_script_setup_true_lang.js +6 -1
- package/dist/components/chip/Chip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/Drawer.vue_vue_type_script_lang.js +42 -4
- package/dist/components/drawer/Drawer.vue_vue_type_script_lang.js.map +1 -1
- package/dist/components/drawer/DrawerClose.js.map +1 -1
- package/dist/components/drawer/DrawerClose.vue_vue_type_script_setup_true_lang.js +15 -3
- package/dist/components/drawer/DrawerClose.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/drawer/DrawerContent.js.map +1 -1
- package/dist/components/drawer/DrawerContent.vue_vue_type_script_setup_true_lang.js +62 -10
- package/dist/components/drawer/DrawerContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/drawer/DrawerMain.js +7 -0
- package/dist/components/drawer/DrawerMain.js.map +1 -0
- package/dist/components/drawer/DrawerMain.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/components/drawer/DrawerMain.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/drawer/DrawerTrigger.js.map +1 -1
- package/dist/components/drawer/DrawerTrigger.vue_vue_type_script_setup_true_lang.js +16 -3
- package/dist/components/drawer/DrawerTrigger.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/drawer/drawer.context.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/index.d.ts +656 -573
- package/dist/index.js +2 -1
- package/dist/packages/styles/src/components/drawer/drawer.styles.js +13 -5
- package/dist/packages/styles/src/components/drawer/drawer.styles.js.map +1 -1
- package/dist/utils/warnDeprecated.js +6 -0
- package/dist/utils/warnDeprecated.js.map +1 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -373,7 +373,7 @@ function createContext(contextName) {
|
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
375
|
//#region src/components/spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
|
|
376
|
-
var _hoisted_1$
|
|
376
|
+
var _hoisted_1$64 = ["aria-label"];
|
|
377
377
|
var _hoisted_2$31 = {
|
|
378
378
|
"data-slot": "spinner-icon",
|
|
379
379
|
viewBox: "0 0 24 24",
|
|
@@ -447,13 +447,13 @@ var Spinner_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
447
447
|
fill: `url(#${gradId2})`,
|
|
448
448
|
transform: "translate(1.5 1.625)"
|
|
449
449
|
}, null, 8, _hoisted_5$9)
|
|
450
|
-
])]))], 10, _hoisted_1$
|
|
450
|
+
])]))], 10, _hoisted_1$64);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region src/components/separator/Separator.vue?vue&type=script&setup=true&lang.ts
|
|
456
|
-
var _hoisted_1$
|
|
456
|
+
var _hoisted_1$63 = { class: "separator__content" };
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/components/separator/Separator.vue
|
|
459
459
|
var Separator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -487,7 +487,7 @@ var Separator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
487
487
|
"aria-orientation": "horizontal"
|
|
488
488
|
}, [
|
|
489
489
|
_cache[0] || (_cache[0] = (0, vue.createElementVNode)("div", { class: "separator__line" }, null, -1)),
|
|
490
|
-
(0, vue.createElementVNode)("div", _hoisted_1$
|
|
490
|
+
(0, vue.createElementVNode)("div", _hoisted_1$63, [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
491
491
|
_cache[1] || (_cache[1] = (0, vue.createElementVNode)("div", { class: "separator__line" }, null, -1))
|
|
492
492
|
], 2));
|
|
493
493
|
};
|
|
@@ -546,7 +546,7 @@ var Text_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
546
546
|
});
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region src/components/label/Label.vue?vue&type=script&setup=true&lang.ts
|
|
549
|
-
var _hoisted_1$
|
|
549
|
+
var _hoisted_1$62 = ["for"];
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region src/components/label/Label.vue
|
|
552
552
|
var Label_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -578,13 +578,13 @@ var Label_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
578
578
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("label", {
|
|
579
579
|
class: (0, vue.normalizeClass)(classes.value),
|
|
580
580
|
for: props.for
|
|
581
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
581
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$62);
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region src/components/description/Description.vue?vue&type=script&setup=true&lang.ts
|
|
587
|
-
var _hoisted_1$
|
|
587
|
+
var _hoisted_1$61 = ["id"];
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region src/components/description/Description.vue
|
|
590
590
|
var Description_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -600,7 +600,7 @@ var Description_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
600
600
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("p", {
|
|
601
601
|
id: props.id,
|
|
602
602
|
class: (0, vue.normalizeClass)(classes.value)
|
|
603
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
603
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$61);
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
});
|
|
@@ -682,7 +682,7 @@ var Badge_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
682
682
|
});
|
|
683
683
|
//#endregion
|
|
684
684
|
//#region src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
685
|
-
var _hoisted_1$
|
|
685
|
+
var _hoisted_1$60 = ["aria-label"];
|
|
686
686
|
//#endregion
|
|
687
687
|
//#region src/components/chip/Chip.vue
|
|
688
688
|
var Chip_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -713,10 +713,14 @@ var Chip_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
713
713
|
setup(__props, { emit: __emit }) {
|
|
714
714
|
const props = __props;
|
|
715
715
|
const emit = __emit;
|
|
716
|
+
const resolvedVariant = (0, vue.computed)(() => {
|
|
717
|
+
if (props.variant === "outlined") return "bordered";
|
|
718
|
+
return props.variant;
|
|
719
|
+
});
|
|
716
720
|
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.chipVariants)({
|
|
717
721
|
color: props.color,
|
|
718
722
|
size: props.size,
|
|
719
|
-
variant:
|
|
723
|
+
variant: resolvedVariant.value
|
|
720
724
|
}));
|
|
721
725
|
return (_ctx, _cache) => {
|
|
722
726
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)) }, [
|
|
@@ -762,7 +766,7 @@ var Chip_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
762
766
|
y1: "6",
|
|
763
767
|
x2: "18",
|
|
764
768
|
y2: "18"
|
|
765
|
-
})], -1)])], 10, _hoisted_1$
|
|
769
|
+
})], -1)])], 10, _hoisted_1$60)) : (0, vue.createCommentVNode)("", true)
|
|
766
770
|
], 2);
|
|
767
771
|
};
|
|
768
772
|
}
|
|
@@ -795,7 +799,7 @@ var Surface_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
795
799
|
var { useProvide: useCardProvide, useInject: useCardInject, key: cardContextKey } = createContext("Card");
|
|
796
800
|
//#endregion
|
|
797
801
|
//#region src/components/card/Card.vue?vue&type=script&setup=true&lang.ts
|
|
798
|
-
var _hoisted_1$
|
|
802
|
+
var _hoisted_1$59 = [
|
|
799
803
|
"role",
|
|
800
804
|
"tabindex",
|
|
801
805
|
"aria-disabled",
|
|
@@ -878,7 +882,7 @@ var Card_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
878
882
|
"data-disabled": __props.isDisabled || void 0,
|
|
879
883
|
onClick,
|
|
880
884
|
onKeydown
|
|
881
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 42, _hoisted_1$
|
|
885
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 42, _hoisted_1$59);
|
|
882
886
|
};
|
|
883
887
|
}
|
|
884
888
|
});
|
|
@@ -1118,11 +1122,13 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1118
1122
|
};
|
|
1119
1123
|
const resolvedVariant = (0, vue.computed)(() => {
|
|
1120
1124
|
const v = finalVariant.value;
|
|
1125
|
+
if (!v) return v;
|
|
1126
|
+
if (v === "outline") return "bordered";
|
|
1121
1127
|
return LEGACY_VARIANTS[v]?.variant ?? v;
|
|
1122
1128
|
});
|
|
1123
1129
|
const resolvedColor = (0, vue.computed)(() => {
|
|
1124
1130
|
const v = finalVariant.value;
|
|
1125
|
-
if (props.color === void 0 && LEGACY_VARIANTS[v]) return LEGACY_VARIANTS[v].color;
|
|
1131
|
+
if (props.color === void 0 && v && LEGACY_VARIANTS[v]) return LEGACY_VARIANTS[v].color;
|
|
1126
1132
|
return finalColor.value;
|
|
1127
1133
|
});
|
|
1128
1134
|
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
@@ -1184,7 +1190,7 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1184
1190
|
});
|
|
1185
1191
|
//#endregion
|
|
1186
1192
|
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1187
|
-
var _hoisted_1$
|
|
1193
|
+
var _hoisted_1$58 = ["data-orientation"];
|
|
1188
1194
|
//#endregion
|
|
1189
1195
|
//#region src/components/button/ButtonGroup.vue
|
|
1190
1196
|
var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1279,7 +1285,7 @@ var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1279
1285
|
"color",
|
|
1280
1286
|
"class"
|
|
1281
1287
|
]);
|
|
1282
|
-
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$
|
|
1288
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$58);
|
|
1283
1289
|
};
|
|
1284
1290
|
}
|
|
1285
1291
|
});
|
|
@@ -1351,7 +1357,7 @@ var CloseButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1351
1357
|
var { useProvide: useToggleButtonGroupProvide, useInject: useToggleButtonGroupInject, key: toggleButtonGroupContextKey } = createContext("ToggleButtonGroup");
|
|
1352
1358
|
//#endregion
|
|
1353
1359
|
//#region src/components/button/ToggleButton.vue?vue&type=script&setup=true&lang.ts
|
|
1354
|
-
var _hoisted_1$
|
|
1360
|
+
var _hoisted_1$57 = ["disabled", "data-orientation"];
|
|
1355
1361
|
//#endregion
|
|
1356
1362
|
//#region src/components/button/ToggleButton.vue
|
|
1357
1363
|
var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1422,7 +1428,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1422
1428
|
disabled: isDisabled.value || void 0,
|
|
1423
1429
|
"data-orientation": (0, vue.unref)(groupCtx).orientation.value,
|
|
1424
1430
|
type: "button"
|
|
1425
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1431
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$57)]),
|
|
1426
1432
|
_: 3
|
|
1427
1433
|
}, 8, [
|
|
1428
1434
|
"disabled",
|
|
@@ -1434,7 +1440,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1434
1440
|
});
|
|
1435
1441
|
//#endregion
|
|
1436
1442
|
//#region src/components/button/ToggleButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1437
|
-
var _hoisted_1$
|
|
1443
|
+
var _hoisted_1$56 = ["data-orientation"];
|
|
1438
1444
|
//#endregion
|
|
1439
1445
|
//#region src/components/button/ToggleButtonGroup.vue
|
|
1440
1446
|
var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1525,7 +1531,7 @@ var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1525
1531
|
"disabled",
|
|
1526
1532
|
"class"
|
|
1527
1533
|
]);
|
|
1528
|
-
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$
|
|
1534
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$56);
|
|
1529
1535
|
};
|
|
1530
1536
|
}
|
|
1531
1537
|
});
|
|
@@ -2021,7 +2027,7 @@ var FormField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2021
2027
|
});
|
|
2022
2028
|
//#endregion
|
|
2023
2029
|
//#region src/components/input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
2024
|
-
var _hoisted_1$
|
|
2030
|
+
var _hoisted_1$55 = [
|
|
2025
2031
|
"data-invalid",
|
|
2026
2032
|
"data-disabled",
|
|
2027
2033
|
"data-readonly",
|
|
@@ -2293,13 +2299,13 @@ var Input_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2293
2299
|
key: 1,
|
|
2294
2300
|
id: descriptionId.value,
|
|
2295
2301
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2296
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_12)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
2302
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_12)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$55);
|
|
2297
2303
|
};
|
|
2298
2304
|
}
|
|
2299
2305
|
});
|
|
2300
2306
|
//#endregion
|
|
2301
2307
|
//#region src/components/textarea/Textarea.vue?vue&type=script&setup=true&lang.ts
|
|
2302
|
-
var _hoisted_1$
|
|
2308
|
+
var _hoisted_1$54 = [
|
|
2303
2309
|
"data-invalid",
|
|
2304
2310
|
"data-disabled",
|
|
2305
2311
|
"data-readonly",
|
|
@@ -2523,13 +2529,13 @@ var Textarea_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2523
2529
|
key: 1,
|
|
2524
2530
|
id: descriptionId.value,
|
|
2525
2531
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2526
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_9)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
2532
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_9)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$54);
|
|
2527
2533
|
};
|
|
2528
2534
|
}
|
|
2529
2535
|
});
|
|
2530
2536
|
//#endregion
|
|
2531
2537
|
//#region src/components/number-field/NumberField.vue?vue&type=script&setup=true&lang.ts
|
|
2532
|
-
var _hoisted_1$
|
|
2538
|
+
var _hoisted_1$53 = ["for"];
|
|
2533
2539
|
//#endregion
|
|
2534
2540
|
//#region src/components/number-field/NumberField.vue
|
|
2535
2541
|
var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2616,7 +2622,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2616
2622
|
for: resolvedInputId.value,
|
|
2617
2623
|
class: (0, vue.normalizeClass)(isLabelVisible.value ? void 0 : "sr-only"),
|
|
2618
2624
|
"data-slot": "label"
|
|
2619
|
-
}, (0, vue.toDisplayString)(props.label || props.ariaLabel), 11, _hoisted_1$
|
|
2625
|
+
}, (0, vue.toDisplayString)(props.label || props.ariaLabel), 11, _hoisted_1$53)) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("div", {
|
|
2620
2626
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.group(), props.classNames?.group)),
|
|
2621
2627
|
"data-slot": "group"
|
|
2622
2628
|
}, [
|
|
@@ -2679,7 +2685,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2679
2685
|
});
|
|
2680
2686
|
//#endregion
|
|
2681
2687
|
//#region src/components/fieldset/Fieldset.vue?vue&type=script&setup=true&lang.ts
|
|
2682
|
-
var _hoisted_1$
|
|
2688
|
+
var _hoisted_1$52 = ["disabled"];
|
|
2683
2689
|
//#endregion
|
|
2684
2690
|
//#region src/components/fieldset/Fieldset.vue
|
|
2685
2691
|
var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2707,7 +2713,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2707
2713
|
}, [props.legend ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("legend", {
|
|
2708
2714
|
key: 0,
|
|
2709
2715
|
class: (0, vue.normalizeClass)((0, vue.unref)(styles).legend())
|
|
2710
|
-
}, (0, vue.toDisplayString)(props.legend), 3)) : (0, vue.createCommentVNode)("", true), (0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
2716
|
+
}, (0, vue.toDisplayString)(props.legend), 3)) : (0, vue.createCommentVNode)("", true), (0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$52);
|
|
2711
2717
|
};
|
|
2712
2718
|
}
|
|
2713
2719
|
});
|
|
@@ -2716,7 +2722,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2716
2722
|
var { useProvide: useCheckboxGroupProvide, useInject: useCheckboxGroupInject, key: checkboxGroupContextKey } = createContext("CheckboxGroup");
|
|
2717
2723
|
//#endregion
|
|
2718
2724
|
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
2719
|
-
var _hoisted_1$
|
|
2725
|
+
var _hoisted_1$51 = {
|
|
2720
2726
|
key: 0,
|
|
2721
2727
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2722
2728
|
width: "12",
|
|
@@ -2810,7 +2816,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2810
2816
|
"onUpdate:modelValue": handleUpdate
|
|
2811
2817
|
}), {
|
|
2812
2818
|
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.control(), props.classNames?.control)) }, [(0, vue.createVNode)((0, vue.unref)(reka_ui.CheckboxIndicator), { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.indicator(), props.classNames?.indicator)) }, {
|
|
2813
|
-
default: (0, vue.withCtx)(() => [props.isIndeterminate ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$
|
|
2819
|
+
default: (0, vue.withCtx)(() => [props.isIndeterminate ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$51, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("line", {
|
|
2814
2820
|
x1: "5",
|
|
2815
2821
|
y1: "12",
|
|
2816
2822
|
x2: "19",
|
|
@@ -2831,7 +2837,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2831
2837
|
});
|
|
2832
2838
|
//#endregion
|
|
2833
2839
|
//#region src/components/checkbox/CheckboxGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2834
|
-
var _hoisted_1$
|
|
2840
|
+
var _hoisted_1$50 = ["aria-labelledby", "data-orientation"];
|
|
2835
2841
|
var _hoisted_2$27 = { class: "checkbox-group__wrapper" };
|
|
2836
2842
|
var _hoisted_3$17 = {
|
|
2837
2843
|
key: 1,
|
|
@@ -2899,7 +2905,7 @@ var CheckboxGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2899
2905
|
}, 1032, ["value", "disabled"]);
|
|
2900
2906
|
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
2901
2907
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$17, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
2902
|
-
], 10, _hoisted_1$
|
|
2908
|
+
], 10, _hoisted_1$50);
|
|
2903
2909
|
};
|
|
2904
2910
|
}
|
|
2905
2911
|
});
|
|
@@ -2960,7 +2966,7 @@ var Radio_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2960
2966
|
});
|
|
2961
2967
|
//#endregion
|
|
2962
2968
|
//#region src/components/radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2963
|
-
var _hoisted_1$
|
|
2969
|
+
var _hoisted_1$49 = { class: "radio-group__wrapper" };
|
|
2964
2970
|
var _hoisted_2$26 = {
|
|
2965
2971
|
key: 1,
|
|
2966
2972
|
class: "radio-group__description"
|
|
@@ -3011,7 +3017,7 @@ var RadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3011
3017
|
id: labelId,
|
|
3012
3018
|
class: "radio-group__label"
|
|
3013
3019
|
}, (0, vue.toDisplayString)(props.label), 1)) : (0, vue.createCommentVNode)("", true),
|
|
3014
|
-
(0, vue.createElementVNode)("div", _hoisted_1$
|
|
3020
|
+
(0, vue.createElementVNode)("div", _hoisted_1$49, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
3015
3021
|
return (0, vue.openBlock)(), (0, vue.createBlock)(Radio_default, {
|
|
3016
3022
|
key: item.value,
|
|
3017
3023
|
value: item.value,
|
|
@@ -3119,7 +3125,7 @@ var Switch_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3119
3125
|
});
|
|
3120
3126
|
//#endregion
|
|
3121
3127
|
//#region src/components/switch/SwitchGroup.vue?vue&type=script&setup=true&lang.ts
|
|
3122
|
-
var _hoisted_1$
|
|
3128
|
+
var _hoisted_1$48 = ["aria-labelledby", "data-orientation"];
|
|
3123
3129
|
var _hoisted_2$25 = {
|
|
3124
3130
|
key: 1,
|
|
3125
3131
|
class: "switch-group__description"
|
|
@@ -3186,7 +3192,7 @@ var SwitchGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3186
3192
|
}, 1032, ["value", "disabled"]);
|
|
3187
3193
|
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 2),
|
|
3188
3194
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$25, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
3189
|
-
], 10, _hoisted_1$
|
|
3195
|
+
], 10, _hoisted_1$48);
|
|
3190
3196
|
};
|
|
3191
3197
|
}
|
|
3192
3198
|
});
|
|
@@ -12677,7 +12683,7 @@ var ModalOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12677
12683
|
});
|
|
12678
12684
|
//#endregion
|
|
12679
12685
|
//#region src/components/modal/ModalContent.vue?vue&type=script&setup=true&lang.ts
|
|
12680
|
-
var _hoisted_1$
|
|
12686
|
+
var _hoisted_1$47 = { class: "modal__portal" };
|
|
12681
12687
|
//#endregion
|
|
12682
12688
|
//#region src/components/modal/ModalContent.vue
|
|
12683
12689
|
var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -12703,7 +12709,7 @@ var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12703
12709
|
const styles = modalVariants();
|
|
12704
12710
|
return (_ctx, _cache) => {
|
|
12705
12711
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogPortal), null, {
|
|
12706
|
-
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1$
|
|
12712
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1$47, [(0, vue.createVNode)(ModalOverlay_default), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
12707
12713
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).container({ scroll: (0, vue.unref)(ctx).scroll }), props.class)),
|
|
12708
12714
|
"data-placement": (0, vue.unref)(ctx).placement,
|
|
12709
12715
|
"aria-hidden": !(0, vue.unref)(dialogRootContext).open.value || void 0,
|
|
@@ -13011,7 +13017,7 @@ var AlertDialogOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13011
13017
|
});
|
|
13012
13018
|
//#endregion
|
|
13013
13019
|
//#region src/components/alert-dialog/AlertDialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
13014
|
-
var _hoisted_1$
|
|
13020
|
+
var _hoisted_1$46 = ["data-placement"];
|
|
13015
13021
|
//#endregion
|
|
13016
13022
|
//#region src/components/alert-dialog/AlertDialogContent.vue
|
|
13017
13023
|
var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -13046,7 +13052,7 @@ var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13046
13052
|
}, {
|
|
13047
13053
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13048
13054
|
_: 3
|
|
13049
|
-
}, 8, ["class", "data-placement"])], 10, _hoisted_1$
|
|
13055
|
+
}, 8, ["class", "data-placement"])], 10, _hoisted_1$46)]),
|
|
13050
13056
|
_: 3
|
|
13051
13057
|
});
|
|
13052
13058
|
};
|
|
@@ -13196,7 +13202,7 @@ var AlertDialogDescription_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13196
13202
|
});
|
|
13197
13203
|
//#endregion
|
|
13198
13204
|
//#region src/components/alert-dialog/AlertDialogIcon.vue?vue&type=script&setup=true&lang.ts
|
|
13199
|
-
var _hoisted_1$
|
|
13205
|
+
var _hoisted_1$45 = {
|
|
13200
13206
|
key: 0,
|
|
13201
13207
|
"data-slot": "alert-dialog-default-icon",
|
|
13202
13208
|
viewBox: "0 0 24 24",
|
|
@@ -13258,7 +13264,7 @@ var AlertDialogIcon_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13258
13264
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
13259
13265
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).icon({ status: resolvedStatus() }), props.class)),
|
|
13260
13266
|
"aria-hidden": "true"
|
|
13261
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [resolvedStatus() === "danger" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$
|
|
13267
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [resolvedStatus() === "danger" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$45, [..._cache[0] || (_cache[0] = [
|
|
13262
13268
|
(0, vue.createElementVNode)("circle", {
|
|
13263
13269
|
cx: "12",
|
|
13264
13270
|
cy: "12",
|
|
@@ -13308,14 +13314,33 @@ var AlertDialogAction_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13308
13314
|
},
|
|
13309
13315
|
setup(__props) {
|
|
13310
13316
|
const props = __props;
|
|
13311
|
-
const
|
|
13312
|
-
|
|
13313
|
-
|
|
13317
|
+
const LEGACY_VARIANTS = {
|
|
13318
|
+
primary: "primary",
|
|
13319
|
+
secondary: "secondary",
|
|
13320
|
+
tertiary: "secondary",
|
|
13321
|
+
danger: "danger",
|
|
13322
|
+
"danger-soft": "danger-soft",
|
|
13323
|
+
success: "success",
|
|
13324
|
+
"success-soft": "success-soft",
|
|
13325
|
+
warning: "warning",
|
|
13326
|
+
"warning-soft": "warning-soft",
|
|
13327
|
+
ghost: "ghost",
|
|
13328
|
+
bordered: "bordered"
|
|
13329
|
+
};
|
|
13330
|
+
const resolvedVariant = (0, vue.computed)(() => {
|
|
13331
|
+
const v = props.variant;
|
|
13332
|
+
if (!v) return v;
|
|
13333
|
+
if (v === "outline") return "bordered";
|
|
13334
|
+
return LEGACY_VARIANTS[v] ?? v;
|
|
13314
13335
|
});
|
|
13336
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
13337
|
+
variant: resolvedVariant.value,
|
|
13338
|
+
size: props.size
|
|
13339
|
+
}));
|
|
13315
13340
|
return (_ctx, _cache) => {
|
|
13316
13341
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AlertDialogAction), {
|
|
13317
13342
|
"as-child": props.asChild,
|
|
13318
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(
|
|
13343
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base))
|
|
13319
13344
|
}, {
|
|
13320
13345
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13321
13346
|
_: 3
|
|
@@ -13345,14 +13370,33 @@ var AlertDialogCancel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13345
13370
|
},
|
|
13346
13371
|
setup(__props) {
|
|
13347
13372
|
const props = __props;
|
|
13348
|
-
const
|
|
13349
|
-
|
|
13350
|
-
|
|
13373
|
+
const LEGACY_VARIANTS = {
|
|
13374
|
+
primary: "primary",
|
|
13375
|
+
secondary: "secondary",
|
|
13376
|
+
tertiary: "secondary",
|
|
13377
|
+
danger: "danger",
|
|
13378
|
+
"danger-soft": "danger-soft",
|
|
13379
|
+
success: "success",
|
|
13380
|
+
"success-soft": "success-soft",
|
|
13381
|
+
warning: "warning",
|
|
13382
|
+
"warning-soft": "warning-soft",
|
|
13383
|
+
ghost: "ghost",
|
|
13384
|
+
bordered: "bordered"
|
|
13385
|
+
};
|
|
13386
|
+
const resolvedVariant = (0, vue.computed)(() => {
|
|
13387
|
+
const v = props.variant;
|
|
13388
|
+
if (!v) return v;
|
|
13389
|
+
if (v === "outline") return "bordered";
|
|
13390
|
+
return LEGACY_VARIANTS[v] ?? v;
|
|
13351
13391
|
});
|
|
13392
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
13393
|
+
variant: resolvedVariant.value,
|
|
13394
|
+
size: props.size
|
|
13395
|
+
}));
|
|
13352
13396
|
return (_ctx, _cache) => {
|
|
13353
13397
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AlertDialogCancel), {
|
|
13354
13398
|
"as-child": props.asChild,
|
|
13355
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(
|
|
13399
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base))
|
|
13356
13400
|
}, {
|
|
13357
13401
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13358
13402
|
_: 3
|
|
@@ -13361,6 +13405,59 @@ var AlertDialogCancel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13361
13405
|
}
|
|
13362
13406
|
});
|
|
13363
13407
|
//#endregion
|
|
13408
|
+
//#region ../styles/src/components/drawer/drawer.styles.ts
|
|
13409
|
+
var drawerVariants = (0, tailwind_variants.tv)({
|
|
13410
|
+
defaultVariants: {
|
|
13411
|
+
placement: "bottom",
|
|
13412
|
+
variant: "opaque"
|
|
13413
|
+
},
|
|
13414
|
+
slots: {
|
|
13415
|
+
backdrop: "drawer__backdrop",
|
|
13416
|
+
body: "drawer__body",
|
|
13417
|
+
closeTrigger: "drawer__close-trigger",
|
|
13418
|
+
content: "drawer__content",
|
|
13419
|
+
dialog: "drawer__dialog",
|
|
13420
|
+
footer: "drawer__footer",
|
|
13421
|
+
handle: "drawer__handle",
|
|
13422
|
+
header: "drawer__header",
|
|
13423
|
+
heading: "drawer__heading",
|
|
13424
|
+
trigger: "drawer__trigger",
|
|
13425
|
+
dockContainer: "drawer__dock-container",
|
|
13426
|
+
main: "drawer__main"
|
|
13427
|
+
},
|
|
13428
|
+
variants: {
|
|
13429
|
+
inline: { true: { dialog: "drawer__dialog--inline" } },
|
|
13430
|
+
dock: { true: { dialog: "drawer__dialog--dock" } },
|
|
13431
|
+
placement: {
|
|
13432
|
+
bottom: {
|
|
13433
|
+
content: "drawer__content--bottom",
|
|
13434
|
+
dialog: "drawer__dialog--bottom",
|
|
13435
|
+
dockContainer: "drawer__dock-container--bottom"
|
|
13436
|
+
},
|
|
13437
|
+
left: {
|
|
13438
|
+
content: "drawer__content--left",
|
|
13439
|
+
dialog: "drawer__dialog--left",
|
|
13440
|
+
dockContainer: "drawer__dock-container--left"
|
|
13441
|
+
},
|
|
13442
|
+
right: {
|
|
13443
|
+
content: "drawer__content--right",
|
|
13444
|
+
dialog: "drawer__dialog--right",
|
|
13445
|
+
dockContainer: "drawer__dock-container--right"
|
|
13446
|
+
},
|
|
13447
|
+
top: {
|
|
13448
|
+
content: "drawer__content--top",
|
|
13449
|
+
dialog: "drawer__dialog--top",
|
|
13450
|
+
dockContainer: "drawer__dock-container--top"
|
|
13451
|
+
}
|
|
13452
|
+
},
|
|
13453
|
+
variant: {
|
|
13454
|
+
blur: { backdrop: "drawer__backdrop--blur" },
|
|
13455
|
+
opaque: { backdrop: "drawer__backdrop--opaque" },
|
|
13456
|
+
transparent: { backdrop: "drawer__backdrop--transparent" }
|
|
13457
|
+
}
|
|
13458
|
+
}
|
|
13459
|
+
});
|
|
13460
|
+
//#endregion
|
|
13364
13461
|
//#region src/components/drawer/drawer.context.ts
|
|
13365
13462
|
var { useProvide: useDrawerProvide, useInject: useDrawerInject, key: DrawerContextKey } = createContext("Drawer");
|
|
13366
13463
|
//#endregion
|
|
@@ -13387,24 +13484,57 @@ var Drawer_default = (0, vue.defineComponent)({
|
|
|
13387
13484
|
size: {
|
|
13388
13485
|
type: String,
|
|
13389
13486
|
default: "md"
|
|
13487
|
+
},
|
|
13488
|
+
inline: {
|
|
13489
|
+
type: Boolean,
|
|
13490
|
+
default: false
|
|
13491
|
+
},
|
|
13492
|
+
hideBackdrop: {
|
|
13493
|
+
type: Boolean,
|
|
13494
|
+
default: false
|
|
13495
|
+
},
|
|
13496
|
+
dock: {
|
|
13497
|
+
type: Boolean,
|
|
13498
|
+
default: false
|
|
13390
13499
|
}
|
|
13391
13500
|
},
|
|
13392
13501
|
emits: ["update:open"],
|
|
13393
13502
|
setup(props, { slots, emit }) {
|
|
13503
|
+
const styles = drawerVariants();
|
|
13504
|
+
const localPushOpen = (0, vue.ref)(props.defaultOpen ?? false);
|
|
13505
|
+
const dockOpen = (0, vue.computed)(() => props.open !== void 0 ? props.open : localPushOpen.value);
|
|
13506
|
+
function toggleDock() {
|
|
13507
|
+
const next = !dockOpen.value;
|
|
13508
|
+
if (props.open === void 0) localPushOpen.value = next;
|
|
13509
|
+
emit("update:open", next);
|
|
13510
|
+
}
|
|
13511
|
+
function closeDock() {
|
|
13512
|
+
if (props.open === void 0) localPushOpen.value = false;
|
|
13513
|
+
emit("update:open", false);
|
|
13514
|
+
}
|
|
13394
13515
|
useDrawerProvide({
|
|
13395
13516
|
placement: (0, vue.toRef)(props, "placement"),
|
|
13396
|
-
size: (0, vue.toRef)(props, "size")
|
|
13517
|
+
size: (0, vue.toRef)(props, "size"),
|
|
13518
|
+
inline: (0, vue.toRef)(props, "inline"),
|
|
13519
|
+
hideBackdrop: (0, vue.toRef)(props, "hideBackdrop"),
|
|
13520
|
+
dock: (0, vue.toRef)(props, "dock"),
|
|
13521
|
+
dockOpen,
|
|
13522
|
+
toggleDock,
|
|
13523
|
+
closeDock
|
|
13397
13524
|
});
|
|
13398
13525
|
const rootProps = (0, vue.computed)(() => {
|
|
13399
13526
|
const p = {
|
|
13400
13527
|
defaultOpen: props.defaultOpen,
|
|
13401
|
-
modal: props.modal,
|
|
13528
|
+
modal: props.inline || props.hideBackdrop ? false : props.modal,
|
|
13402
13529
|
"onUpdate:open": (val) => emit("update:open", val)
|
|
13403
13530
|
};
|
|
13404
13531
|
if (props.open !== void 0) p.open = props.open;
|
|
13405
13532
|
return p;
|
|
13406
13533
|
});
|
|
13407
|
-
return () =>
|
|
13534
|
+
return () => {
|
|
13535
|
+
if (props.dock) return (0, vue.h)("div", { class: styles.dockContainer({ placement: props.placement }) }, slots.default?.());
|
|
13536
|
+
return (0, vue.h)(reka_ui.DialogRoot, rootProps.value, slots);
|
|
13537
|
+
};
|
|
13408
13538
|
}
|
|
13409
13539
|
});
|
|
13410
13540
|
//#endregion
|
|
@@ -13417,60 +13547,27 @@ var DrawerTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13417
13547
|
} },
|
|
13418
13548
|
setup(__props) {
|
|
13419
13549
|
const props = __props;
|
|
13550
|
+
const ctx = useDrawerInject();
|
|
13420
13551
|
return (_ctx, _cache) => {
|
|
13421
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.
|
|
13552
|
+
return (0, vue.unref)(ctx).dock.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.Primitive), {
|
|
13553
|
+
key: 0,
|
|
13554
|
+
"as-child": props.asChild,
|
|
13555
|
+
as: "button",
|
|
13556
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(ctx).toggleDock())
|
|
13557
|
+
}, {
|
|
13422
13558
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13423
13559
|
_: 3
|
|
13424
|
-
}, 8, ["as-child"])
|
|
13560
|
+
}, 8, ["as-child"])) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogTrigger), {
|
|
13561
|
+
key: 1,
|
|
13562
|
+
"as-child": props.asChild
|
|
13563
|
+
}, {
|
|
13564
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13565
|
+
_: 3
|
|
13566
|
+
}, 8, ["as-child"]));
|
|
13425
13567
|
};
|
|
13426
13568
|
}
|
|
13427
13569
|
});
|
|
13428
13570
|
//#endregion
|
|
13429
|
-
//#region ../styles/src/components/drawer/drawer.styles.ts
|
|
13430
|
-
var drawerVariants = (0, tailwind_variants.tv)({
|
|
13431
|
-
defaultVariants: {
|
|
13432
|
-
placement: "bottom",
|
|
13433
|
-
variant: "opaque"
|
|
13434
|
-
},
|
|
13435
|
-
slots: {
|
|
13436
|
-
backdrop: "drawer__backdrop",
|
|
13437
|
-
body: "drawer__body",
|
|
13438
|
-
closeTrigger: "drawer__close-trigger",
|
|
13439
|
-
content: "drawer__content",
|
|
13440
|
-
dialog: "drawer__dialog",
|
|
13441
|
-
footer: "drawer__footer",
|
|
13442
|
-
handle: "drawer__handle",
|
|
13443
|
-
header: "drawer__header",
|
|
13444
|
-
heading: "drawer__heading",
|
|
13445
|
-
trigger: "drawer__trigger"
|
|
13446
|
-
},
|
|
13447
|
-
variants: {
|
|
13448
|
-
placement: {
|
|
13449
|
-
bottom: {
|
|
13450
|
-
content: "drawer__content--bottom",
|
|
13451
|
-
dialog: "drawer__dialog--bottom"
|
|
13452
|
-
},
|
|
13453
|
-
left: {
|
|
13454
|
-
content: "drawer__content--left",
|
|
13455
|
-
dialog: "drawer__dialog--left"
|
|
13456
|
-
},
|
|
13457
|
-
right: {
|
|
13458
|
-
content: "drawer__content--right",
|
|
13459
|
-
dialog: "drawer__dialog--right"
|
|
13460
|
-
},
|
|
13461
|
-
top: {
|
|
13462
|
-
content: "drawer__content--top",
|
|
13463
|
-
dialog: "drawer__dialog--top"
|
|
13464
|
-
}
|
|
13465
|
-
},
|
|
13466
|
-
variant: {
|
|
13467
|
-
blur: { backdrop: "drawer__backdrop--blur" },
|
|
13468
|
-
opaque: { backdrop: "drawer__backdrop--opaque" },
|
|
13469
|
-
transparent: { backdrop: "drawer__backdrop--transparent" }
|
|
13470
|
-
}
|
|
13471
|
-
}
|
|
13472
|
-
});
|
|
13473
|
-
//#endregion
|
|
13474
13571
|
//#region src/components/drawer/DrawerOverlay.vue
|
|
13475
13572
|
var DrawerOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13476
13573
|
__name: "DrawerOverlay",
|
|
@@ -13482,6 +13579,9 @@ var DrawerOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13482
13579
|
}
|
|
13483
13580
|
});
|
|
13484
13581
|
//#endregion
|
|
13582
|
+
//#region src/components/drawer/DrawerContent.vue?vue&type=script&setup=true&lang.ts
|
|
13583
|
+
var _hoisted_1$44 = ["data-placement", "data-state"];
|
|
13584
|
+
//#endregion
|
|
13485
13585
|
//#region src/components/drawer/DrawerContent.vue
|
|
13486
13586
|
var DrawerContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13487
13587
|
__name: "DrawerContent",
|
|
@@ -13498,22 +13598,86 @@ var DrawerContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13498
13598
|
const emit = __emit;
|
|
13499
13599
|
const ctx = useDrawerInject();
|
|
13500
13600
|
const styles = drawerVariants();
|
|
13601
|
+
const isHorizontal = (0, vue.computed)(() => ctx.placement.value === "left" || ctx.placement.value === "right");
|
|
13602
|
+
const dockTransitionName = (0, vue.computed)(() => isHorizontal.value ? "drawer-dock-h" : "drawer-dock-v");
|
|
13603
|
+
function handlePointerDownOutside(event) {
|
|
13604
|
+
if (ctx.hideBackdrop.value) {
|
|
13605
|
+
event.preventDefault();
|
|
13606
|
+
return;
|
|
13607
|
+
}
|
|
13608
|
+
emit("pointer-down-outside", event);
|
|
13609
|
+
}
|
|
13610
|
+
function handleInteractOutside(event) {
|
|
13611
|
+
if (ctx.hideBackdrop.value) {
|
|
13612
|
+
event.preventDefault();
|
|
13613
|
+
return;
|
|
13614
|
+
}
|
|
13615
|
+
emit("interact-outside", event);
|
|
13616
|
+
}
|
|
13617
|
+
function handleEscapeKeyDown(event) {
|
|
13618
|
+
if (ctx.hideBackdrop.value) {
|
|
13619
|
+
event.preventDefault();
|
|
13620
|
+
return;
|
|
13621
|
+
}
|
|
13622
|
+
emit("escape-key-down", event);
|
|
13623
|
+
}
|
|
13501
13624
|
return (_ctx, _cache) => {
|
|
13502
|
-
return (0, vue.
|
|
13503
|
-
|
|
13625
|
+
return (0, vue.unref)(ctx).dock.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(vue.Transition, {
|
|
13626
|
+
key: 0,
|
|
13627
|
+
name: dockTransitionName.value
|
|
13628
|
+
}, {
|
|
13629
|
+
default: (0, vue.withCtx)(() => [(0, vue.withDirectives)((0, vue.createElementVNode)("div", {
|
|
13630
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).dialog({
|
|
13631
|
+
placement: (0, vue.unref)(ctx).placement.value,
|
|
13632
|
+
dock: true
|
|
13633
|
+
}), props.class)),
|
|
13634
|
+
"data-placement": (0, vue.unref)(ctx).placement.value,
|
|
13635
|
+
"data-state": (0, vue.unref)(ctx).dockOpen.value ? "open" : "closed"
|
|
13636
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$44), [[vue.vShow, (0, vue.unref)(ctx).dockOpen.value]])]),
|
|
13637
|
+
_: 3
|
|
13638
|
+
}, 8, ["name"])) : (0, vue.unref)(ctx).inline.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogContent), {
|
|
13639
|
+
key: 1,
|
|
13640
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).dialog({
|
|
13641
|
+
placement: (0, vue.unref)(ctx).placement.value,
|
|
13642
|
+
inline: true
|
|
13643
|
+
}), props.class)),
|
|
13644
|
+
"data-placement": (0, vue.unref)(ctx).placement.value,
|
|
13645
|
+
onPointerDownOutside: handlePointerDownOutside,
|
|
13646
|
+
onInteractOutside: handleInteractOutside,
|
|
13647
|
+
onEscapeKeyDown: handleEscapeKeyDown,
|
|
13648
|
+
onOpenAutoFocus: _cache[0] || (_cache[0] = ($event) => emit("open-auto-focus", $event)),
|
|
13649
|
+
onCloseAutoFocus: _cache[1] || (_cache[1] = ($event) => emit("close-auto-focus", $event))
|
|
13650
|
+
}, {
|
|
13651
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13652
|
+
_: 3
|
|
13653
|
+
}, 8, ["class", "data-placement"])) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogPortal), { key: 2 }, {
|
|
13654
|
+
default: (0, vue.withCtx)(() => [!(0, vue.unref)(ctx).hideBackdrop.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(DrawerOverlay_default, { key: 0 })) : (0, vue.createCommentVNode)("", true), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
13504
13655
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).dialog({ placement: (0, vue.unref)(ctx).placement.value }), props.class)),
|
|
13505
13656
|
"data-placement": (0, vue.unref)(ctx).placement.value,
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
onOpenAutoFocus: _cache[
|
|
13510
|
-
onCloseAutoFocus: _cache[
|
|
13657
|
+
onPointerDownOutside: handlePointerDownOutside,
|
|
13658
|
+
onInteractOutside: handleInteractOutside,
|
|
13659
|
+
onEscapeKeyDown: handleEscapeKeyDown,
|
|
13660
|
+
onOpenAutoFocus: _cache[2] || (_cache[2] = ($event) => emit("open-auto-focus", $event)),
|
|
13661
|
+
onCloseAutoFocus: _cache[3] || (_cache[3] = ($event) => emit("close-auto-focus", $event))
|
|
13511
13662
|
}, {
|
|
13512
13663
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13513
13664
|
_: 3
|
|
13514
13665
|
}, 8, ["class", "data-placement"])]),
|
|
13515
13666
|
_: 3
|
|
13516
|
-
});
|
|
13667
|
+
}));
|
|
13668
|
+
};
|
|
13669
|
+
}
|
|
13670
|
+
});
|
|
13671
|
+
//#endregion
|
|
13672
|
+
//#region src/components/drawer/DrawerMain.vue
|
|
13673
|
+
var DrawerMain_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13674
|
+
__name: "DrawerMain",
|
|
13675
|
+
props: { class: {} },
|
|
13676
|
+
setup(__props) {
|
|
13677
|
+
const props = __props;
|
|
13678
|
+
const styles = drawerVariants();
|
|
13679
|
+
return (_ctx, _cache) => {
|
|
13680
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).main(), props.class)) }, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2);
|
|
13517
13681
|
};
|
|
13518
13682
|
}
|
|
13519
13683
|
});
|
|
@@ -13569,15 +13733,26 @@ var DrawerClose_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13569
13733
|
},
|
|
13570
13734
|
setup(__props) {
|
|
13571
13735
|
const props = __props;
|
|
13736
|
+
const ctx = useDrawerInject();
|
|
13572
13737
|
const styles = drawerVariants();
|
|
13573
13738
|
return (_ctx, _cache) => {
|
|
13574
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.
|
|
13739
|
+
return (0, vue.unref)(ctx).dock.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.Primitive), {
|
|
13740
|
+
key: 0,
|
|
13741
|
+
"as-child": props.asChild,
|
|
13742
|
+
as: "button",
|
|
13743
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).closeTrigger(), props.class)),
|
|
13744
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(ctx).closeDock())
|
|
13745
|
+
}, {
|
|
13746
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13747
|
+
_: 3
|
|
13748
|
+
}, 8, ["as-child", "class"])) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogClose), {
|
|
13749
|
+
key: 1,
|
|
13575
13750
|
"as-child": props.asChild,
|
|
13576
13751
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).closeTrigger(), props.class))
|
|
13577
13752
|
}, {
|
|
13578
13753
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13579
13754
|
_: 3
|
|
13580
|
-
}, 8, ["as-child", "class"]);
|
|
13755
|
+
}, 8, ["as-child", "class"]));
|
|
13581
13756
|
};
|
|
13582
13757
|
}
|
|
13583
13758
|
});
|
|
@@ -28178,6 +28353,7 @@ exports.DrawerClose = DrawerClose_default;
|
|
|
28178
28353
|
exports.DrawerContent = DrawerContent_default;
|
|
28179
28354
|
exports.DrawerFooter = DrawerFooter_default;
|
|
28180
28355
|
exports.DrawerHeader = DrawerHeader_default;
|
|
28356
|
+
exports.DrawerMain = DrawerMain_default;
|
|
28181
28357
|
exports.DrawerOverlay = DrawerOverlay_default;
|
|
28182
28358
|
exports.DrawerTitle = DrawerTitle_default;
|
|
28183
28359
|
exports.DrawerTrigger = DrawerTrigger_default;
|