@auronui/vue 1.0.20 → 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 +284 -109
- 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/button/Button.js.map +1 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +2 -0
- 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/index.d.ts +652 -569
- 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 +4 -4
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
|
});
|
|
@@ -1119,6 +1123,7 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1119
1123
|
const resolvedVariant = (0, vue.computed)(() => {
|
|
1120
1124
|
const v = finalVariant.value;
|
|
1121
1125
|
if (!v) return v;
|
|
1126
|
+
if (v === "outline") return "bordered";
|
|
1122
1127
|
return LEGACY_VARIANTS[v]?.variant ?? v;
|
|
1123
1128
|
});
|
|
1124
1129
|
const resolvedColor = (0, vue.computed)(() => {
|
|
@@ -1185,7 +1190,7 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1185
1190
|
});
|
|
1186
1191
|
//#endregion
|
|
1187
1192
|
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1188
|
-
var _hoisted_1$
|
|
1193
|
+
var _hoisted_1$58 = ["data-orientation"];
|
|
1189
1194
|
//#endregion
|
|
1190
1195
|
//#region src/components/button/ButtonGroup.vue
|
|
1191
1196
|
var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1280,7 +1285,7 @@ var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1280
1285
|
"color",
|
|
1281
1286
|
"class"
|
|
1282
1287
|
]);
|
|
1283
|
-
}), 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);
|
|
1284
1289
|
};
|
|
1285
1290
|
}
|
|
1286
1291
|
});
|
|
@@ -1352,7 +1357,7 @@ var CloseButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1352
1357
|
var { useProvide: useToggleButtonGroupProvide, useInject: useToggleButtonGroupInject, key: toggleButtonGroupContextKey } = createContext("ToggleButtonGroup");
|
|
1353
1358
|
//#endregion
|
|
1354
1359
|
//#region src/components/button/ToggleButton.vue?vue&type=script&setup=true&lang.ts
|
|
1355
|
-
var _hoisted_1$
|
|
1360
|
+
var _hoisted_1$57 = ["disabled", "data-orientation"];
|
|
1356
1361
|
//#endregion
|
|
1357
1362
|
//#region src/components/button/ToggleButton.vue
|
|
1358
1363
|
var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1423,7 +1428,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1423
1428
|
disabled: isDisabled.value || void 0,
|
|
1424
1429
|
"data-orientation": (0, vue.unref)(groupCtx).orientation.value,
|
|
1425
1430
|
type: "button"
|
|
1426
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1431
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$57)]),
|
|
1427
1432
|
_: 3
|
|
1428
1433
|
}, 8, [
|
|
1429
1434
|
"disabled",
|
|
@@ -1435,7 +1440,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1435
1440
|
});
|
|
1436
1441
|
//#endregion
|
|
1437
1442
|
//#region src/components/button/ToggleButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1438
|
-
var _hoisted_1$
|
|
1443
|
+
var _hoisted_1$56 = ["data-orientation"];
|
|
1439
1444
|
//#endregion
|
|
1440
1445
|
//#region src/components/button/ToggleButtonGroup.vue
|
|
1441
1446
|
var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1526,7 +1531,7 @@ var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1526
1531
|
"disabled",
|
|
1527
1532
|
"class"
|
|
1528
1533
|
]);
|
|
1529
|
-
}), 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);
|
|
1530
1535
|
};
|
|
1531
1536
|
}
|
|
1532
1537
|
});
|
|
@@ -2022,7 +2027,7 @@ var FormField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2022
2027
|
});
|
|
2023
2028
|
//#endregion
|
|
2024
2029
|
//#region src/components/input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
2025
|
-
var _hoisted_1$
|
|
2030
|
+
var _hoisted_1$55 = [
|
|
2026
2031
|
"data-invalid",
|
|
2027
2032
|
"data-disabled",
|
|
2028
2033
|
"data-readonly",
|
|
@@ -2294,13 +2299,13 @@ var Input_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2294
2299
|
key: 1,
|
|
2295
2300
|
id: descriptionId.value,
|
|
2296
2301
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2297
|
-
}, (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);
|
|
2298
2303
|
};
|
|
2299
2304
|
}
|
|
2300
2305
|
});
|
|
2301
2306
|
//#endregion
|
|
2302
2307
|
//#region src/components/textarea/Textarea.vue?vue&type=script&setup=true&lang.ts
|
|
2303
|
-
var _hoisted_1$
|
|
2308
|
+
var _hoisted_1$54 = [
|
|
2304
2309
|
"data-invalid",
|
|
2305
2310
|
"data-disabled",
|
|
2306
2311
|
"data-readonly",
|
|
@@ -2524,13 +2529,13 @@ var Textarea_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2524
2529
|
key: 1,
|
|
2525
2530
|
id: descriptionId.value,
|
|
2526
2531
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2527
|
-
}, (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);
|
|
2528
2533
|
};
|
|
2529
2534
|
}
|
|
2530
2535
|
});
|
|
2531
2536
|
//#endregion
|
|
2532
2537
|
//#region src/components/number-field/NumberField.vue?vue&type=script&setup=true&lang.ts
|
|
2533
|
-
var _hoisted_1$
|
|
2538
|
+
var _hoisted_1$53 = ["for"];
|
|
2534
2539
|
//#endregion
|
|
2535
2540
|
//#region src/components/number-field/NumberField.vue
|
|
2536
2541
|
var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2617,7 +2622,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2617
2622
|
for: resolvedInputId.value,
|
|
2618
2623
|
class: (0, vue.normalizeClass)(isLabelVisible.value ? void 0 : "sr-only"),
|
|
2619
2624
|
"data-slot": "label"
|
|
2620
|
-
}, (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", {
|
|
2621
2626
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.group(), props.classNames?.group)),
|
|
2622
2627
|
"data-slot": "group"
|
|
2623
2628
|
}, [
|
|
@@ -2680,7 +2685,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2680
2685
|
});
|
|
2681
2686
|
//#endregion
|
|
2682
2687
|
//#region src/components/fieldset/Fieldset.vue?vue&type=script&setup=true&lang.ts
|
|
2683
|
-
var _hoisted_1$
|
|
2688
|
+
var _hoisted_1$52 = ["disabled"];
|
|
2684
2689
|
//#endregion
|
|
2685
2690
|
//#region src/components/fieldset/Fieldset.vue
|
|
2686
2691
|
var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2708,7 +2713,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2708
2713
|
}, [props.legend ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("legend", {
|
|
2709
2714
|
key: 0,
|
|
2710
2715
|
class: (0, vue.normalizeClass)((0, vue.unref)(styles).legend())
|
|
2711
|
-
}, (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);
|
|
2712
2717
|
};
|
|
2713
2718
|
}
|
|
2714
2719
|
});
|
|
@@ -2717,7 +2722,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2717
2722
|
var { useProvide: useCheckboxGroupProvide, useInject: useCheckboxGroupInject, key: checkboxGroupContextKey } = createContext("CheckboxGroup");
|
|
2718
2723
|
//#endregion
|
|
2719
2724
|
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
2720
|
-
var _hoisted_1$
|
|
2725
|
+
var _hoisted_1$51 = {
|
|
2721
2726
|
key: 0,
|
|
2722
2727
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2723
2728
|
width: "12",
|
|
@@ -2811,7 +2816,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2811
2816
|
"onUpdate:modelValue": handleUpdate
|
|
2812
2817
|
}), {
|
|
2813
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)) }, {
|
|
2814
|
-
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", {
|
|
2815
2820
|
x1: "5",
|
|
2816
2821
|
y1: "12",
|
|
2817
2822
|
x2: "19",
|
|
@@ -2832,7 +2837,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2832
2837
|
});
|
|
2833
2838
|
//#endregion
|
|
2834
2839
|
//#region src/components/checkbox/CheckboxGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2835
|
-
var _hoisted_1$
|
|
2840
|
+
var _hoisted_1$50 = ["aria-labelledby", "data-orientation"];
|
|
2836
2841
|
var _hoisted_2$27 = { class: "checkbox-group__wrapper" };
|
|
2837
2842
|
var _hoisted_3$17 = {
|
|
2838
2843
|
key: 1,
|
|
@@ -2900,7 +2905,7 @@ var CheckboxGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2900
2905
|
}, 1032, ["value", "disabled"]);
|
|
2901
2906
|
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
2902
2907
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$17, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
2903
|
-
], 10, _hoisted_1$
|
|
2908
|
+
], 10, _hoisted_1$50);
|
|
2904
2909
|
};
|
|
2905
2910
|
}
|
|
2906
2911
|
});
|
|
@@ -2961,7 +2966,7 @@ var Radio_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2961
2966
|
});
|
|
2962
2967
|
//#endregion
|
|
2963
2968
|
//#region src/components/radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2964
|
-
var _hoisted_1$
|
|
2969
|
+
var _hoisted_1$49 = { class: "radio-group__wrapper" };
|
|
2965
2970
|
var _hoisted_2$26 = {
|
|
2966
2971
|
key: 1,
|
|
2967
2972
|
class: "radio-group__description"
|
|
@@ -3012,7 +3017,7 @@ var RadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3012
3017
|
id: labelId,
|
|
3013
3018
|
class: "radio-group__label"
|
|
3014
3019
|
}, (0, vue.toDisplayString)(props.label), 1)) : (0, vue.createCommentVNode)("", true),
|
|
3015
|
-
(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) => {
|
|
3016
3021
|
return (0, vue.openBlock)(), (0, vue.createBlock)(Radio_default, {
|
|
3017
3022
|
key: item.value,
|
|
3018
3023
|
value: item.value,
|
|
@@ -3120,7 +3125,7 @@ var Switch_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3120
3125
|
});
|
|
3121
3126
|
//#endregion
|
|
3122
3127
|
//#region src/components/switch/SwitchGroup.vue?vue&type=script&setup=true&lang.ts
|
|
3123
|
-
var _hoisted_1$
|
|
3128
|
+
var _hoisted_1$48 = ["aria-labelledby", "data-orientation"];
|
|
3124
3129
|
var _hoisted_2$25 = {
|
|
3125
3130
|
key: 1,
|
|
3126
3131
|
class: "switch-group__description"
|
|
@@ -3187,7 +3192,7 @@ var SwitchGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3187
3192
|
}, 1032, ["value", "disabled"]);
|
|
3188
3193
|
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 2),
|
|
3189
3194
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$25, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
3190
|
-
], 10, _hoisted_1$
|
|
3195
|
+
], 10, _hoisted_1$48);
|
|
3191
3196
|
};
|
|
3192
3197
|
}
|
|
3193
3198
|
});
|
|
@@ -12678,7 +12683,7 @@ var ModalOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12678
12683
|
});
|
|
12679
12684
|
//#endregion
|
|
12680
12685
|
//#region src/components/modal/ModalContent.vue?vue&type=script&setup=true&lang.ts
|
|
12681
|
-
var _hoisted_1$
|
|
12686
|
+
var _hoisted_1$47 = { class: "modal__portal" };
|
|
12682
12687
|
//#endregion
|
|
12683
12688
|
//#region src/components/modal/ModalContent.vue
|
|
12684
12689
|
var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -12704,7 +12709,7 @@ var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12704
12709
|
const styles = modalVariants();
|
|
12705
12710
|
return (_ctx, _cache) => {
|
|
12706
12711
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogPortal), null, {
|
|
12707
|
-
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), {
|
|
12708
12713
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).container({ scroll: (0, vue.unref)(ctx).scroll }), props.class)),
|
|
12709
12714
|
"data-placement": (0, vue.unref)(ctx).placement,
|
|
12710
12715
|
"aria-hidden": !(0, vue.unref)(dialogRootContext).open.value || void 0,
|
|
@@ -13012,7 +13017,7 @@ var AlertDialogOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13012
13017
|
});
|
|
13013
13018
|
//#endregion
|
|
13014
13019
|
//#region src/components/alert-dialog/AlertDialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
13015
|
-
var _hoisted_1$
|
|
13020
|
+
var _hoisted_1$46 = ["data-placement"];
|
|
13016
13021
|
//#endregion
|
|
13017
13022
|
//#region src/components/alert-dialog/AlertDialogContent.vue
|
|
13018
13023
|
var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -13047,7 +13052,7 @@ var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13047
13052
|
}, {
|
|
13048
13053
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13049
13054
|
_: 3
|
|
13050
|
-
}, 8, ["class", "data-placement"])], 10, _hoisted_1$
|
|
13055
|
+
}, 8, ["class", "data-placement"])], 10, _hoisted_1$46)]),
|
|
13051
13056
|
_: 3
|
|
13052
13057
|
});
|
|
13053
13058
|
};
|
|
@@ -13197,7 +13202,7 @@ var AlertDialogDescription_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13197
13202
|
});
|
|
13198
13203
|
//#endregion
|
|
13199
13204
|
//#region src/components/alert-dialog/AlertDialogIcon.vue?vue&type=script&setup=true&lang.ts
|
|
13200
|
-
var _hoisted_1$
|
|
13205
|
+
var _hoisted_1$45 = {
|
|
13201
13206
|
key: 0,
|
|
13202
13207
|
"data-slot": "alert-dialog-default-icon",
|
|
13203
13208
|
viewBox: "0 0 24 24",
|
|
@@ -13259,7 +13264,7 @@ var AlertDialogIcon_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13259
13264
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
13260
13265
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).icon({ status: resolvedStatus() }), props.class)),
|
|
13261
13266
|
"aria-hidden": "true"
|
|
13262
|
-
}, [(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] = [
|
|
13263
13268
|
(0, vue.createElementVNode)("circle", {
|
|
13264
13269
|
cx: "12",
|
|
13265
13270
|
cy: "12",
|
|
@@ -13309,14 +13314,33 @@ var AlertDialogAction_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13309
13314
|
},
|
|
13310
13315
|
setup(__props) {
|
|
13311
13316
|
const props = __props;
|
|
13312
|
-
const
|
|
13313
|
-
|
|
13314
|
-
|
|
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;
|
|
13315
13335
|
});
|
|
13336
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
13337
|
+
variant: resolvedVariant.value,
|
|
13338
|
+
size: props.size
|
|
13339
|
+
}));
|
|
13316
13340
|
return (_ctx, _cache) => {
|
|
13317
13341
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AlertDialogAction), {
|
|
13318
13342
|
"as-child": props.asChild,
|
|
13319
|
-
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))
|
|
13320
13344
|
}, {
|
|
13321
13345
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13322
13346
|
_: 3
|
|
@@ -13346,14 +13370,33 @@ var AlertDialogCancel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13346
13370
|
},
|
|
13347
13371
|
setup(__props) {
|
|
13348
13372
|
const props = __props;
|
|
13349
|
-
const
|
|
13350
|
-
|
|
13351
|
-
|
|
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;
|
|
13352
13391
|
});
|
|
13392
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
13393
|
+
variant: resolvedVariant.value,
|
|
13394
|
+
size: props.size
|
|
13395
|
+
}));
|
|
13353
13396
|
return (_ctx, _cache) => {
|
|
13354
13397
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AlertDialogCancel), {
|
|
13355
13398
|
"as-child": props.asChild,
|
|
13356
|
-
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))
|
|
13357
13400
|
}, {
|
|
13358
13401
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13359
13402
|
_: 3
|
|
@@ -13362,6 +13405,59 @@ var AlertDialogCancel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13362
13405
|
}
|
|
13363
13406
|
});
|
|
13364
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
|
|
13365
13461
|
//#region src/components/drawer/drawer.context.ts
|
|
13366
13462
|
var { useProvide: useDrawerProvide, useInject: useDrawerInject, key: DrawerContextKey } = createContext("Drawer");
|
|
13367
13463
|
//#endregion
|
|
@@ -13388,24 +13484,57 @@ var Drawer_default = (0, vue.defineComponent)({
|
|
|
13388
13484
|
size: {
|
|
13389
13485
|
type: String,
|
|
13390
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
|
|
13391
13499
|
}
|
|
13392
13500
|
},
|
|
13393
13501
|
emits: ["update:open"],
|
|
13394
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
|
+
}
|
|
13395
13515
|
useDrawerProvide({
|
|
13396
13516
|
placement: (0, vue.toRef)(props, "placement"),
|
|
13397
|
-
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
|
|
13398
13524
|
});
|
|
13399
13525
|
const rootProps = (0, vue.computed)(() => {
|
|
13400
13526
|
const p = {
|
|
13401
13527
|
defaultOpen: props.defaultOpen,
|
|
13402
|
-
modal: props.modal,
|
|
13528
|
+
modal: props.inline || props.hideBackdrop ? false : props.modal,
|
|
13403
13529
|
"onUpdate:open": (val) => emit("update:open", val)
|
|
13404
13530
|
};
|
|
13405
13531
|
if (props.open !== void 0) p.open = props.open;
|
|
13406
13532
|
return p;
|
|
13407
13533
|
});
|
|
13408
|
-
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
|
+
};
|
|
13409
13538
|
}
|
|
13410
13539
|
});
|
|
13411
13540
|
//#endregion
|
|
@@ -13418,60 +13547,27 @@ var DrawerTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13418
13547
|
} },
|
|
13419
13548
|
setup(__props) {
|
|
13420
13549
|
const props = __props;
|
|
13550
|
+
const ctx = useDrawerInject();
|
|
13421
13551
|
return (_ctx, _cache) => {
|
|
13422
|
-
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
|
+
}, {
|
|
13423
13558
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13424
13559
|
_: 3
|
|
13425
|
-
}, 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"]));
|
|
13426
13567
|
};
|
|
13427
13568
|
}
|
|
13428
13569
|
});
|
|
13429
13570
|
//#endregion
|
|
13430
|
-
//#region ../styles/src/components/drawer/drawer.styles.ts
|
|
13431
|
-
var drawerVariants = (0, tailwind_variants.tv)({
|
|
13432
|
-
defaultVariants: {
|
|
13433
|
-
placement: "bottom",
|
|
13434
|
-
variant: "opaque"
|
|
13435
|
-
},
|
|
13436
|
-
slots: {
|
|
13437
|
-
backdrop: "drawer__backdrop",
|
|
13438
|
-
body: "drawer__body",
|
|
13439
|
-
closeTrigger: "drawer__close-trigger",
|
|
13440
|
-
content: "drawer__content",
|
|
13441
|
-
dialog: "drawer__dialog",
|
|
13442
|
-
footer: "drawer__footer",
|
|
13443
|
-
handle: "drawer__handle",
|
|
13444
|
-
header: "drawer__header",
|
|
13445
|
-
heading: "drawer__heading",
|
|
13446
|
-
trigger: "drawer__trigger"
|
|
13447
|
-
},
|
|
13448
|
-
variants: {
|
|
13449
|
-
placement: {
|
|
13450
|
-
bottom: {
|
|
13451
|
-
content: "drawer__content--bottom",
|
|
13452
|
-
dialog: "drawer__dialog--bottom"
|
|
13453
|
-
},
|
|
13454
|
-
left: {
|
|
13455
|
-
content: "drawer__content--left",
|
|
13456
|
-
dialog: "drawer__dialog--left"
|
|
13457
|
-
},
|
|
13458
|
-
right: {
|
|
13459
|
-
content: "drawer__content--right",
|
|
13460
|
-
dialog: "drawer__dialog--right"
|
|
13461
|
-
},
|
|
13462
|
-
top: {
|
|
13463
|
-
content: "drawer__content--top",
|
|
13464
|
-
dialog: "drawer__dialog--top"
|
|
13465
|
-
}
|
|
13466
|
-
},
|
|
13467
|
-
variant: {
|
|
13468
|
-
blur: { backdrop: "drawer__backdrop--blur" },
|
|
13469
|
-
opaque: { backdrop: "drawer__backdrop--opaque" },
|
|
13470
|
-
transparent: { backdrop: "drawer__backdrop--transparent" }
|
|
13471
|
-
}
|
|
13472
|
-
}
|
|
13473
|
-
});
|
|
13474
|
-
//#endregion
|
|
13475
13571
|
//#region src/components/drawer/DrawerOverlay.vue
|
|
13476
13572
|
var DrawerOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13477
13573
|
__name: "DrawerOverlay",
|
|
@@ -13483,6 +13579,9 @@ var DrawerOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13483
13579
|
}
|
|
13484
13580
|
});
|
|
13485
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
|
|
13486
13585
|
//#region src/components/drawer/DrawerContent.vue
|
|
13487
13586
|
var DrawerContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13488
13587
|
__name: "DrawerContent",
|
|
@@ -13499,22 +13598,86 @@ var DrawerContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13499
13598
|
const emit = __emit;
|
|
13500
13599
|
const ctx = useDrawerInject();
|
|
13501
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
|
+
}
|
|
13502
13624
|
return (_ctx, _cache) => {
|
|
13503
|
-
return (0, vue.
|
|
13504
|
-
|
|
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), {
|
|
13505
13655
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).dialog({ placement: (0, vue.unref)(ctx).placement.value }), props.class)),
|
|
13506
13656
|
"data-placement": (0, vue.unref)(ctx).placement.value,
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
onOpenAutoFocus: _cache[
|
|
13511
|
-
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))
|
|
13512
13662
|
}, {
|
|
13513
13663
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13514
13664
|
_: 3
|
|
13515
13665
|
}, 8, ["class", "data-placement"])]),
|
|
13516
13666
|
_: 3
|
|
13517
|
-
});
|
|
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);
|
|
13518
13681
|
};
|
|
13519
13682
|
}
|
|
13520
13683
|
});
|
|
@@ -13570,15 +13733,26 @@ var DrawerClose_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13570
13733
|
},
|
|
13571
13734
|
setup(__props) {
|
|
13572
13735
|
const props = __props;
|
|
13736
|
+
const ctx = useDrawerInject();
|
|
13573
13737
|
const styles = drawerVariants();
|
|
13574
13738
|
return (_ctx, _cache) => {
|
|
13575
|
-
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,
|
|
13576
13750
|
"as-child": props.asChild,
|
|
13577
13751
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).closeTrigger(), props.class))
|
|
13578
13752
|
}, {
|
|
13579
13753
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13580
13754
|
_: 3
|
|
13581
|
-
}, 8, ["as-child", "class"]);
|
|
13755
|
+
}, 8, ["as-child", "class"]));
|
|
13582
13756
|
};
|
|
13583
13757
|
}
|
|
13584
13758
|
});
|
|
@@ -28179,6 +28353,7 @@ exports.DrawerClose = DrawerClose_default;
|
|
|
28179
28353
|
exports.DrawerContent = DrawerContent_default;
|
|
28180
28354
|
exports.DrawerFooter = DrawerFooter_default;
|
|
28181
28355
|
exports.DrawerHeader = DrawerHeader_default;
|
|
28356
|
+
exports.DrawerMain = DrawerMain_default;
|
|
28182
28357
|
exports.DrawerOverlay = DrawerOverlay_default;
|
|
28183
28358
|
exports.DrawerTitle = DrawerTitle_default;
|
|
28184
28359
|
exports.DrawerTrigger = DrawerTrigger_default;
|