arvue-ui 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.css +1 -1
- package/dist/aspect-ratio/aspectRatio.js +24 -0
- package/dist/aspect-ratio/aspectRatio.js.map +1 -0
- package/dist/autocomplete/autocomplete.js +1 -1
- package/dist/autocomplete/autocompleteContent.js +38 -13
- package/dist/autocomplete/autocompleteContent.js.map +1 -1
- package/dist/autocomplete/autocompleteEmpty.js +1 -1
- package/dist/autocomplete/autocompleteInput.js +1 -1
- package/dist/autocomplete/autocompleteItem.js +3 -1
- package/dist/autocomplete/autocompleteItem.js.map +1 -1
- package/dist/autocomplete/autocompleteLabel.js +1 -1
- package/dist/autocomplete/autocompleteSeparator.js +1 -1
- package/dist/combobox/combobox.js +1 -1
- package/dist/combobox/comboboxContent.js +38 -13
- package/dist/combobox/comboboxContent.js.map +1 -1
- package/dist/combobox/comboboxEmpty.js +1 -1
- package/dist/combobox/comboboxInput.js +1 -1
- package/dist/combobox/comboboxItem.js +3 -1
- package/dist/combobox/comboboxItem.js.map +1 -1
- package/dist/combobox/comboboxLabel.js +1 -1
- package/dist/combobox/comboboxSeparator.js +1 -1
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dialog/dialogDescription.js +1 -1
- package/dist/dialog/dialogFooter.js +1 -1
- package/dist/dialog/dialogHeader.js +1 -1
- package/dist/dialog/dialogOverlay.js +1 -1
- package/dist/dialog/dialogTitle.js +1 -1
- package/dist/drawer/drawerContent.js +1 -1
- package/dist/drawer/drawerDescription.js +1 -1
- package/dist/drawer/drawerFooter.js +1 -1
- package/dist/drawer/drawerHeader.js +1 -1
- package/dist/drawer/drawerOverlay.js +1 -1
- package/dist/drawer/drawerTitle.js +1 -1
- package/dist/dropdown-menu/dropdownMenu.js +26 -0
- package/dist/dropdown-menu/dropdownMenu.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuCheckboxItem.js +42 -0
- package/dist/dropdown-menu/dropdownMenuCheckboxItem.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuContent.js +92 -0
- package/dist/dropdown-menu/dropdownMenuContent.js.map +1 -0
- package/dist/{autocomplete/autocompleteArrow.js → dropdown-menu/dropdownMenuGroup.js} +5 -8
- package/dist/dropdown-menu/dropdownMenuGroup.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuItem.js +36 -0
- package/dist/dropdown-menu/dropdownMenuItem.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuLabel.js +34 -0
- package/dist/dropdown-menu/dropdownMenuLabel.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuPortal.js +25 -0
- package/dist/dropdown-menu/dropdownMenuPortal.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuRadioGroup.js +25 -0
- package/dist/dropdown-menu/dropdownMenuRadioGroup.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuRadioItem.js +42 -0
- package/dist/dropdown-menu/dropdownMenuRadioItem.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuSeparator.js +30 -0
- package/dist/dropdown-menu/dropdownMenuSeparator.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuShortcut.js +33 -0
- package/dist/dropdown-menu/dropdownMenuShortcut.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuSub.js +24 -0
- package/dist/dropdown-menu/dropdownMenuSub.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuSubContent.js +92 -0
- package/dist/dropdown-menu/dropdownMenuSubContent.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuSubTrigger.js +36 -0
- package/dist/dropdown-menu/dropdownMenuSubTrigger.js.map +1 -0
- package/dist/dropdown-menu/dropdownMenuTrigger.js +24 -0
- package/dist/dropdown-menu/dropdownMenuTrigger.js.map +1 -0
- package/dist/index.d.ts +579 -163
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -14
- package/dist/index.js.map +1 -1
- package/dist/select/select.js +37 -0
- package/dist/select/select.js.map +1 -0
- package/dist/select/selectContent.js +101 -0
- package/dist/select/selectContent.js.map +1 -0
- package/dist/select/selectGroup.js +23 -0
- package/dist/select/selectGroup.js.map +1 -0
- package/dist/select/selectItem.js +43 -0
- package/dist/select/selectItem.js.map +1 -0
- package/dist/select/selectItemText.js +23 -0
- package/dist/select/selectItemText.js.map +1 -0
- package/dist/select/selectLabel.js +34 -0
- package/dist/select/selectLabel.js.map +1 -0
- package/dist/select/selectRootPatch.js +24 -0
- package/dist/select/selectRootPatch.js.map +1 -0
- package/dist/select/selectScrollDownButton.js +33 -0
- package/dist/select/selectScrollDownButton.js.map +1 -0
- package/dist/select/selectScrollUpButton.js +33 -0
- package/dist/select/selectScrollUpButton.js.map +1 -0
- package/dist/select/selectSeparator.js +30 -0
- package/dist/select/selectSeparator.js.map +1 -0
- package/dist/select/selectTrigger.js +41 -0
- package/dist/select/selectTrigger.js.map +1 -0
- package/dist/select/selectValue.js +34 -0
- package/dist/select/selectValue.js.map +1 -0
- package/dist/sheet/sheetContent.js +1 -1
- package/dist/sheet/sheetFooter.js +1 -1
- package/dist/sheet/sheetHeader.js +1 -1
- package/dist/style.css +34 -0
- package/package.json +1 -1
- package/src/aspect-ratio/AspectRatio.vue +20 -0
- package/src/aspect-ratio/index.ts +4 -0
- package/src/autocomplete/AutocompleteContent.vue +38 -10
- package/src/autocomplete/AutocompleteItem.vue +4 -1
- package/src/autocomplete/autocomplete-content.css +5 -6
- package/src/autocomplete/autocomplete-label.css +4 -3
- package/src/autocomplete/index.ts +0 -4
- package/src/combobox/ComboboxContent.vue +38 -10
- package/src/combobox/ComboboxItem.vue +4 -1
- package/src/combobox/combobox-content.css +5 -6
- package/src/combobox/combobox-label.css +4 -3
- package/src/dropdown-menu/DropdownMenu.vue +24 -0
- package/src/dropdown-menu/DropdownMenuCheckboxItem.vue +47 -0
- package/src/dropdown-menu/DropdownMenuContent.vue +75 -0
- package/src/dropdown-menu/DropdownMenuGroup.vue +17 -0
- package/src/dropdown-menu/DropdownMenuItem.vue +38 -0
- package/src/dropdown-menu/DropdownMenuLabel.vue +37 -0
- package/src/dropdown-menu/DropdownMenuPortal.vue +17 -0
- package/src/dropdown-menu/DropdownMenuRadioGroup.vue +27 -0
- package/src/dropdown-menu/DropdownMenuRadioItem.vue +48 -0
- package/src/dropdown-menu/DropdownMenuSeparator.vue +29 -0
- package/src/dropdown-menu/DropdownMenuShortcut.vue +33 -0
- package/src/dropdown-menu/DropdownMenuSub.vue +31 -0
- package/src/dropdown-menu/DropdownMenuSubContent.vue +74 -0
- package/src/dropdown-menu/DropdownMenuSubTrigger.vue +41 -0
- package/src/dropdown-menu/DropdownMenuTrigger.vue +19 -0
- package/src/dropdown-menu/dropdown-menu-checkbox-item.css +33 -0
- package/src/dropdown-menu/dropdown-menu-content.css +9 -0
- package/src/dropdown-menu/dropdown-menu-item.css +27 -0
- package/src/dropdown-menu/dropdown-menu-label.css +12 -0
- package/src/dropdown-menu/dropdown-menu-radio-item.css +33 -0
- package/src/dropdown-menu/dropdown-menu-separator.css +5 -0
- package/src/dropdown-menu/dropdown-menu-shortcut.css +7 -0
- package/src/dropdown-menu/dropdown-menu-sub-content.css +8 -0
- package/src/dropdown-menu/dropdown-menu-sub-trigger.css +33 -0
- package/src/dropdown-menu/index.ts +66 -0
- package/src/index.ts +3 -0
- package/src/select/Select.vue +27 -0
- package/src/select/SelectContent.vue +77 -0
- package/src/select/SelectGroup.vue +17 -0
- package/src/select/SelectItem.vue +46 -0
- package/src/select/SelectItemText.vue +17 -0
- package/src/select/SelectLabel.vue +31 -0
- package/src/select/SelectRootPatch.vue +24 -0
- package/src/select/SelectScrollDownButton.vue +33 -0
- package/src/select/SelectScrollUpButton.vue +33 -0
- package/src/select/SelectSeparator.vue +29 -0
- package/src/select/SelectTrigger.vue +40 -0
- package/src/select/SelectValue.vue +33 -0
- package/src/select/index.ts +46 -0
- package/src/select/select-content.css +16 -0
- package/src/select/select-item.css +39 -0
- package/src/select/select-label.css +7 -0
- package/src/select/select-scroll-button.css +8 -0
- package/src/select/select-separator.css +5 -0
- package/src/select/select-trigger.css +71 -0
- package/src/select/select-value.css +6 -0
- package/src/sonner/sonner.css +0 -1
- package/dist/autocomplete/autocompleteArrow.js.map +0 -1
- package/src/autocomplete/AutocompleteArrow.vue +0 -17
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectGroup } from "reka-ui";
|
|
3
|
+
//#region src/select/SelectGroup.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "SelectGroup",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(SelectGroup), normalizeProps(guardReactiveProps(props)), {
|
|
14
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _sfc_main };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=selectGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectGroup.js","names":[],"sources":["../../src/select/SelectGroup.vue"],"sourcesContent":["<template>\n <SelectGroup v-bind=\"props\">\n <slot/>\n </SelectGroup>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectGroupProps as RekaSelectGroupProps } from 'reka-ui'\n\nexport interface SelectGroupProps extends RekaSelectGroupProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { SelectGroup } from 'reka-ui'\n\nconst props = defineProps<SelectGroupProps>()\n</script>\n"],"mappings":";;;;;;;;;;EAeA,MAAM,QAAQ;;uBAdV,YAEc,MAAA,WAAA,GAAA,eAAA,mBAFO,KAAK,CAAA,GAAA;2BACf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectItem, SelectItemIndicator, SelectItemText, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectItem.vue
|
|
6
|
+
const _hoisted_1 = { class: "arvue-select-item-indicator-wrapper" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "SelectItem",
|
|
9
|
+
props: {
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] },
|
|
17
|
+
value: {},
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
textValue: {},
|
|
20
|
+
asChild: { type: Boolean },
|
|
21
|
+
as: {}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createBlock(unref(SelectItem), mergeProps(unref(forwardedProps), { class: unref(clsx)("arvue-select-item", props.class) }), {
|
|
28
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1, [createVNode(unref(SelectItemIndicator), null, {
|
|
29
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-check" }, null, -1)])]),
|
|
30
|
+
_: 1
|
|
31
|
+
})]), createVNode(unref(SelectItemText), null, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
})]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { _sfc_main };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=selectItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectItem.js","names":[],"sources":["../../src/select/SelectItem.vue"],"sourcesContent":["<style>\n@import './select-item.css';\n</style>\n\n<template>\n <SelectItem\n v-bind=\"forwardedProps\"\n :class=\"clsx('arvue-select-item', props.class)\"\n >\n <span class=\"arvue-select-item-indicator-wrapper\">\n <SelectItemIndicator>\n <i class=\"fas fa-check\"/>\n </SelectItemIndicator>\n </span>\n\n <SelectItemText>\n <slot/>\n </SelectItemText>\n </SelectItem>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectItemProps as RekaSelectItemProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectItemProps extends RekaSelectItemProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport {\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n useForwardProps,\n} from 'reka-ui'\n\nconst props = defineProps<SelectItemProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EAwCA,MAAM,QAAQ;EAId,MAAM,iBAAiB,gBAFA,aAAa,OAAO,OAEJ,CAAc;;uBAvCjD,YAaa,MAAA,UAAA,GAbb,WACY,MAYC,cAAA,GAZa,EACrB,OAAO,MAAA,IAAA,EAAI,qBAAsB,MAAM,KAAK,EAAA,CAAA,GAAA;2BAMtC,CAJP,mBAIO,QAJP,YAIO,CAHH,YAEsB,MAAA,mBAAA,GAAA,MAAA;4BADO,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAzB,mBAAyB,KAAA,EAAtB,OAAM,eAAc,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA;;UAI/B,YAEiB,MAAA,cAAA,GAAA,MAAA;4BADN,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectItemText } from "reka-ui";
|
|
3
|
+
//#region src/select/SelectItemText.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "SelectItemText",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(SelectItemText), normalizeProps(guardReactiveProps(props)), {
|
|
14
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _sfc_main };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=selectItemText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectItemText.js","names":[],"sources":["../../src/select/SelectItemText.vue"],"sourcesContent":["<template>\n <SelectItemText v-bind=\"props\">\n <slot/>\n </SelectItemText>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectItemTextProps as RekaSelectItemTextProps } from 'reka-ui'\n\nexport interface SelectItemTextProps extends RekaSelectItemTextProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { SelectItemText } from 'reka-ui'\n\nconst props = defineProps<SelectItemTextProps>()\n</script>\n"],"mappings":";;;;;;;;;;EAeA,MAAM,QAAQ;;uBAdV,YAEiB,MAAA,cAAA,GAAA,eAAA,mBAFO,KAAK,CAAA,GAAA;2BAClB,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectLabel } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectLabel.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectLabel",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
for: {},
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(SelectLabel), mergeProps({ class: unref(clsx)("arvue-select-label", props.class) }, unref(delegatedProps)), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _sfc_main };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=selectLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectLabel.js","names":[],"sources":["../../src/select/SelectLabel.vue"],"sourcesContent":["<style>\n@import './select-label.css';\n</style>\n\n<template>\n <SelectLabel\n :class=\"clsx('arvue-select-label', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </SelectLabel>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectLabelProps as RekaSelectLabelProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectLabelProps extends RekaSelectLabelProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectLabel } from 'reka-ui'\n\nconst props = defineProps<SelectLabelProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKc,MAAA,WAAA,GALd,WAKc,EAJT,OAAO,MAAA,IAAA,EAAI,sBAAuB,MAAM,KAAK,EAAA,GACtC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, onBeforeUnmount, renderSlot } from "vue";
|
|
2
|
+
import { injectSelectRootContext } from "reka-ui";
|
|
3
|
+
//#region src/select/SelectRootPatch.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "SelectRootPatch",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const ctx = injectSelectRootContext();
|
|
8
|
+
const original = ctx.onOptionRemove;
|
|
9
|
+
ctx.onOptionRemove = (option) => {
|
|
10
|
+
if (!ctx.open.value) return;
|
|
11
|
+
original(option);
|
|
12
|
+
};
|
|
13
|
+
onBeforeUnmount(() => {
|
|
14
|
+
ctx.onOptionRemove = original;
|
|
15
|
+
});
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return renderSlot(_ctx.$slots, "default");
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _sfc_main };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=selectRootPatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectRootPatch.js","names":[],"sources":["../../src/select/SelectRootPatch.vue"],"sourcesContent":["<!-- Фиксит мерцание SelectValue при закрытии -->\n<!-- TODO удалить после фикса https://github.com/unovue/reka-ui/issues/2160 -->\n<template>\n <slot/>\n</template>\n\n<script setup lang=\"ts\">\nimport { injectSelectRootContext } from 'reka-ui'\nimport { onBeforeUnmount } from 'vue'\n\nconst ctx = injectSelectRootContext()\nconst original = ctx.onOptionRemove\n\nctx.onOptionRemove = (option) => {\n if (!ctx.open.value) {\n return\n }\n original(option)\n}\n\nonBeforeUnmount(() => {\n ctx.onOptionRemove = original\n})\n</script>\n"],"mappings":";;;;;;EAUA,MAAM,MAAM,wBAAwB;EACpC,MAAM,WAAW,IAAI;EAErB,IAAI,kBAAkB,WAAW;GAC7B,IAAI,CAAC,IAAI,KAAK,OACV;GAEJ,SAAS,MAAM;EACnB;EAEA,sBAAsB;GAClB,IAAI,iBAAiB;EACzB,CAAC;;UAnBG,WAAO,KAAA,QAAA,SAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, createElementVNode, defineComponent, mergeProps, openBlock, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollDownButton, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectScrollDownButton.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectScrollDownButton",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(SelectScrollDownButton), mergeProps(unref(forwardedProps), { class: unref(clsx)("arvue-select-scroll-button", props.class) }), {
|
|
24
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-chevron-down" }, null, -1)])]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=selectScrollDownButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectScrollDownButton.js","names":[],"sources":["../../src/select/SelectScrollDownButton.vue"],"sourcesContent":["<style>\n@import './select-scroll-button.css';\n</style>\n\n<template>\n <SelectScrollDownButton\n v-bind=\"forwardedProps\"\n :class=\"clsx('arvue-select-scroll-button', props.class)\"\n >\n <i class=\"fas fa-chevron-down\"/>\n </SelectScrollDownButton>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectScrollDownButtonProps as RekaSelectScrollDownButtonProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectScrollDownButtonProps extends RekaSelectScrollDownButtonProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectScrollDownButton, useForwardProps } from 'reka-ui'\n\nconst props = defineProps<SelectScrollDownButtonProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,gBAFA,aAAa,OAAO,OAEJ,CAAc;;uBA1BjD,YAKyB,MAAA,sBAAA,GALzB,WACY,MAIa,cAAA,GAJC,EACrB,OAAO,MAAA,IAAA,EAAI,8BAA+B,MAAM,KAAK,EAAA,CAAA,GAAA;2BAEtB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAhC,mBAAgC,KAAA,EAA7B,OAAM,sBAAqB,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, createElementVNode, defineComponent, mergeProps, openBlock, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollUpButton, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectScrollUpButton.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectScrollUpButton",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(SelectScrollUpButton), mergeProps(unref(forwardedProps), { class: unref(clsx)("arvue-select-scroll-button", props.class) }), {
|
|
24
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-chevron-up" }, null, -1)])]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=selectScrollUpButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectScrollUpButton.js","names":[],"sources":["../../src/select/SelectScrollUpButton.vue"],"sourcesContent":["<style>\n@import './select-scroll-button.css';\n</style>\n\n<template>\n <SelectScrollUpButton\n v-bind=\"forwardedProps\"\n :class=\"clsx('arvue-select-scroll-button', props.class)\"\n >\n <i class=\"fas fa-chevron-up\"/>\n </SelectScrollUpButton>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectScrollUpButtonProps as RekaSelectScrollUpButtonProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectScrollUpButtonProps extends RekaSelectScrollUpButtonProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectScrollUpButton, useForwardProps } from 'reka-ui'\n\nconst props = defineProps<SelectScrollUpButtonProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,gBAFA,aAAa,OAAO,OAEJ,CAAc;;uBA1BjD,YAKuB,MAAA,oBAAA,GALvB,WACY,MAIW,cAAA,GAJG,EACrB,OAAO,MAAA,IAAA,EAAI,8BAA+B,MAAM,KAAK,EAAA,CAAA,GAAA;2BAExB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAA9B,mBAA8B,KAAA,EAA3B,OAAM,oBAAmB,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
3
|
+
import { SelectSeparator } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectSeparator.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectSeparator",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(SelectSeparator), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-select-separator", props.class) }), null, 16, ["class"]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _sfc_main };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=selectSeparator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectSeparator.js","names":[],"sources":["../../src/select/SelectSeparator.vue"],"sourcesContent":["<style>\n@import './select-separator.css';\n</style>\n\n<template>\n <SelectSeparator\n v-bind=\"delegatedProps\"\n :class=\"clsx('arvue-select-separator', props.class)\"\n />\n</template>\n\n<script lang=\"ts\">\nimport type { SelectSeparatorProps as RekaSelectSeparatorProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectSeparatorProps extends RekaSelectSeparatorProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectSeparator } from 'reka-ui'\n\nconst props = defineProps<SelectSeparatorProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAyBA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAtB9C,YAGE,MAAA,eAAA,GAHF,WACY,MAEV,cAAA,GAFwB,EACrB,OAAO,MAAA,IAAA,EAAI,0BAA2B,MAAM,KAAK,EAAA,CAAA,GAAA,MAAA,IAAA,CAAA,OAAA,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectIcon, SelectTrigger, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectTrigger.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectTrigger",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
reference: {},
|
|
18
|
+
asChild: { type: Boolean },
|
|
19
|
+
as: { default: "div" }
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createBlock(unref(SelectTrigger), mergeProps(unref(forwardedProps), {
|
|
26
|
+
class: unref(clsx)("arvue-select-trigger", props.class),
|
|
27
|
+
tabindex: __props.disabled ? -1 : 0
|
|
28
|
+
}), {
|
|
29
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createVNode(unref(SelectIcon), { "as-child": "" }, {
|
|
30
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "arvue-select-trigger-icon" }, [createElementVNode("i", { class: "fas fa-chevron-down" })], -1)])]),
|
|
31
|
+
_: 1
|
|
32
|
+
})]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["class", "tabindex"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { _sfc_main };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=selectTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectTrigger.js","names":[],"sources":["../../src/select/SelectTrigger.vue"],"sourcesContent":["<style>\n@import './select-trigger.css';\n</style>\n\n<template>\n <SelectTrigger\n v-bind=\"forwardedProps\"\n :class=\"clsx('arvue-select-trigger', props.class)\"\n :tabindex=\"disabled ? -1 : 0\"\n >\n <slot/>\n <SelectIcon as-child>\n <span class=\"arvue-select-trigger-icon\">\n <i class=\"fas fa-chevron-down\"/>\n </span>\n </SelectIcon>\n </SelectTrigger>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectTriggerProps as RekaSelectTriggerProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectTriggerProps extends RekaSelectTriggerProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectIcon, SelectTrigger, useForwardProps } from 'reka-ui'\n\nconst props = withDefaults(defineProps<SelectTriggerProps>(), {\n as: 'div',\n})\n\nconst delegatedProps = reactiveOmit(props, 'class')\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAiCA,MAAM,QAAQ;EAKd,MAAM,iBAAiB,gBADA,aAAa,OAAO,OACJ,CAAc;;uBAjCjD,YAWgB,MAAA,aAAA,GAXhB,WACY,MAUI,cAAA,GAVU;IACrB,OAAO,MAAA,IAAA,EAAI,wBAAyB,MAAM,KAAK;IAC/C,UAAU,QAAA,WAAQ,KAAA;;2BAEZ,CAAP,WAAO,KAAA,QAAA,SAAA,GACP,YAIa,MAAA,UAAA,GAAA,EAJD,YAAA,GAAQ,GAAA;4BAGT,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAFP,mBAEO,QAAA,EAFD,OAAM,4BAA2B,GAAA,CACnC,mBAAgC,KAAA,EAA7B,OAAM,sBAAqB,CAAA,CAAA,GAAA,EAAA,CAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectValue, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
//#region src/select/SelectValue.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectValue",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
placeholder: {},
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(SelectValue), mergeProps(unref(forwardedProps), { class: unref(clsx)("arvue-select-value", props.class) }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _sfc_main };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=selectValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectValue.js","names":[],"sources":["../../src/select/SelectValue.vue"],"sourcesContent":["<style>\n@import './select-value.css';\n</style>\n\n<template>\n <SelectValue\n v-bind=\"forwardedProps\"\n :class=\"clsx('arvue-select-value', props.class)\"\n >\n <slot/>\n </SelectValue>\n</template>\n\n<script lang=\"ts\">\nimport type { SelectValueProps as RekaSelectValueProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface SelectValueProps extends RekaSelectValueProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { SelectValue, useForwardProps } from 'reka-ui'\n\nconst props = defineProps<SelectValueProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n\nconst forwardedProps = useForwardProps(delegatedProps)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,gBAFA,aAAa,OAAO,OAEJ,CAAc;;uBA1BjD,YAKc,MAAA,WAAA,GALd,WACY,MAIE,cAAA,GAJY,EACrB,OAAO,MAAA,IAAA,EAAI,sBAAuB,MAAM,KAAK,EAAA,CAAA,GAAA;2BAEvC,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
2
|
import { _sfc_main as _sfc_main$1 } from "./sheetOverlay.js";
|
|
3
3
|
import { createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
5
4
|
import { useForwardPropsEmits } from "reka-ui";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
6
|
import { DrawerContent, DrawerPortal } from "vaul-vue";
|
|
7
7
|
//#region src/sheet/SheetContent.vue
|
|
8
8
|
const _hoisted_1 = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
2
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
3
|
import { Primitive } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
5
|
//#region src/sheet/SheetFooter.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "SheetFooter",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
2
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core";
|
|
4
3
|
import { Primitive } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
5
|
//#region src/sheet/SheetHeader.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "SheetHeader",
|
package/dist/style.css
CHANGED
|
@@ -51,6 +51,40 @@
|
|
|
51
51
|
|
|
52
52
|
@import './drawer-title.css';
|
|
53
53
|
|
|
54
|
+
@import './dropdown-menu-checkbox-item.css';
|
|
55
|
+
|
|
56
|
+
@import './dropdown-menu-content.css';
|
|
57
|
+
|
|
58
|
+
@import './dropdown-menu-item.css';
|
|
59
|
+
|
|
60
|
+
@import './dropdown-menu-label.css';
|
|
61
|
+
|
|
62
|
+
@import './dropdown-menu-radio-item.css';
|
|
63
|
+
|
|
64
|
+
@import './dropdown-menu-separator.css';
|
|
65
|
+
|
|
66
|
+
@import './dropdown-menu-shortcut.css';
|
|
67
|
+
|
|
68
|
+
@import './dropdown-menu-sub-content.css';
|
|
69
|
+
|
|
70
|
+
@import './dropdown-menu-sub-trigger.css';
|
|
71
|
+
|
|
72
|
+
@import './select-content.css';
|
|
73
|
+
|
|
74
|
+
@import './select-item.css';
|
|
75
|
+
|
|
76
|
+
@import './select-label.css';
|
|
77
|
+
|
|
78
|
+
@import './select-scroll-button.css';
|
|
79
|
+
|
|
80
|
+
@import './select-scroll-button.css';
|
|
81
|
+
|
|
82
|
+
@import './select-separator.css';
|
|
83
|
+
|
|
84
|
+
@import './select-trigger.css';
|
|
85
|
+
|
|
86
|
+
@import './select-value.css';
|
|
87
|
+
|
|
54
88
|
@import './sheet-content.css';
|
|
55
89
|
|
|
56
90
|
@import './sheet-description.css';
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<AspectRatio
|
|
3
|
+
v-slot="slotProps"
|
|
4
|
+
v-bind="props"
|
|
5
|
+
>
|
|
6
|
+
<slot v-bind="slotProps"/>
|
|
7
|
+
</AspectRatio>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import type { AspectRatioProps as RekaAspectRatioProps } from 'reka-ui'
|
|
12
|
+
|
|
13
|
+
export interface AspectRatioProps extends RekaAspectRatioProps {}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import { AspectRatio } from 'reka-ui'
|
|
18
|
+
|
|
19
|
+
const props = defineProps<AspectRatioProps>()
|
|
20
|
+
</script>
|
|
@@ -3,15 +3,37 @@
|
|
|
3
3
|
</style>
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
<AnimatePresence>
|
|
7
|
+
<AutocompleteContent
|
|
8
|
+
v-bind="{ ...$attrs, ...forwarded }"
|
|
9
|
+
:class="clsx('arvue-autocomplete-content', props.class)"
|
|
10
|
+
position="popper"
|
|
11
|
+
as-child
|
|
12
|
+
>
|
|
13
|
+
<Motion
|
|
14
|
+
:initial="{
|
|
15
|
+
y: '-5px',
|
|
16
|
+
opacity: 0,
|
|
17
|
+
}"
|
|
18
|
+
:animate="{
|
|
19
|
+
y: 0,
|
|
20
|
+
opacity: 1,
|
|
21
|
+
}"
|
|
22
|
+
:exit="{
|
|
23
|
+
y: '-5px',
|
|
24
|
+
opacity: 0,
|
|
25
|
+
}"
|
|
26
|
+
:transition="{
|
|
27
|
+
duration: .15,
|
|
28
|
+
ease: 'easeInOut',
|
|
29
|
+
}"
|
|
30
|
+
>
|
|
31
|
+
<AutocompleteViewport>
|
|
32
|
+
<slot/>
|
|
33
|
+
</AutocompleteViewport>
|
|
34
|
+
</Motion>
|
|
35
|
+
</AutocompleteContent>
|
|
36
|
+
</AnimatePresence>
|
|
15
37
|
</template>
|
|
16
38
|
|
|
17
39
|
<script lang="ts">
|
|
@@ -27,6 +49,7 @@ export interface AutocompleteContentEmits extends ComboboxContentEmits {}
|
|
|
27
49
|
<script setup lang="ts">
|
|
28
50
|
import { reactiveOmit } from '@vueuse/core'
|
|
29
51
|
import { clsx } from 'clsx'
|
|
52
|
+
import { AnimatePresence, Motion } from 'motion-v'
|
|
30
53
|
import { AutocompleteContent, useForwardPropsEmits } from 'reka-ui'
|
|
31
54
|
import { AutocompleteViewport } from '.'
|
|
32
55
|
|
|
@@ -34,7 +57,12 @@ defineOptions({
|
|
|
34
57
|
inheritAttrs: false,
|
|
35
58
|
})
|
|
36
59
|
|
|
37
|
-
const props =
|
|
60
|
+
const props = withDefaults(
|
|
61
|
+
defineProps<AutocompleteContentProps>(),
|
|
62
|
+
{
|
|
63
|
+
sideOffset: 8,
|
|
64
|
+
},
|
|
65
|
+
)
|
|
38
66
|
const emits = defineEmits<AutocompleteContentEmits>()
|
|
39
67
|
|
|
40
68
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
@@ -22,11 +22,14 @@ export interface AutocompleteItemEmits extends ComboboxItemEmits {}
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts">
|
|
25
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
25
26
|
import { clsx } from 'clsx'
|
|
26
27
|
import { AutocompleteItem, useForwardPropsEmits } from 'reka-ui'
|
|
27
28
|
|
|
28
29
|
const props = defineProps<AutocompleteItemProps>()
|
|
29
30
|
const emits = defineEmits<AutocompleteItemEmits>()
|
|
30
31
|
|
|
31
|
-
const
|
|
32
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
33
|
+
|
|
34
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
32
35
|
</script>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.arvue-autocomplete-content {
|
|
2
|
-
width: var(--reka-
|
|
2
|
+
width: var(--reka-combobox-trigger-width);
|
|
3
3
|
background: var(--background-color-blank);
|
|
4
4
|
box-shadow: 0 0.25rem 1rem -0.25rem rgba(0, 0, 0, 0.1);
|
|
5
|
-
|
|
5
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
6
6
|
border-radius: 0.5em;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
z-index: 110 !important;
|
|
7
|
+
max-height: var(--reka-combobox-content-available-height);
|
|
8
|
+
transform-origin: var(--reka-combobox-content-transform-origin);
|
|
9
|
+
z-index: 110;
|
|
11
10
|
}
|
|
@@ -7,10 +7,6 @@ export {
|
|
|
7
7
|
default as AutocompleteAnchor,
|
|
8
8
|
type AutocompleteAnchorProps,
|
|
9
9
|
} from './AutocompleteAnchor.vue'
|
|
10
|
-
export {
|
|
11
|
-
default as AutocompleteArrow,
|
|
12
|
-
type AutocompleteArrowProps,
|
|
13
|
-
} from './AutocompleteArrow.vue'
|
|
14
10
|
export {
|
|
15
11
|
default as AutocompleteCancel,
|
|
16
12
|
type AutocompleteCancelProps,
|