@vuecs/elements 1.1.0 → 1.2.1
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/components/alert/Alert.vue.d.ts +5 -5
- package/dist/components/alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/alert/AlertClose.vue.d.ts +4 -4
- package/dist/components/alert/AlertClose.vue.d.ts.map +1 -1
- package/dist/components/alert/AlertDescription.vue.d.ts +10 -10
- package/dist/components/alert/AlertDescription.vue.d.ts.map +1 -1
- package/dist/components/alert/AlertTitle.vue.d.ts +10 -10
- package/dist/components/alert/AlertTitle.vue.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/badge/Badge.vue.d.ts +1 -1
- package/dist/components/card/Card.vue.d.ts +4 -4
- package/dist/components/card/Card.vue.d.ts.map +1 -1
- package/dist/components/card/CardBody.vue.d.ts +4 -4
- package/dist/components/card/CardBody.vue.d.ts.map +1 -1
- package/dist/components/card/CardDescription.vue.d.ts +4 -4
- package/dist/components/card/CardDescription.vue.d.ts.map +1 -1
- package/dist/components/card/CardFooter.vue.d.ts +4 -4
- package/dist/components/card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/card/CardHeader.vue.d.ts +4 -4
- package/dist/components/card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/card/CardTitle.vue.d.ts +4 -4
- package/dist/components/card/CardTitle.vue.d.ts.map +1 -1
- package/dist/components/collapse/Collapse.vue.d.ts +4 -4
- package/dist/components/collapse/Collapse.vue.d.ts.map +1 -1
- package/dist/components/collapse/CollapseContent.vue.d.ts +10 -10
- package/dist/components/collapse/CollapseContent.vue.d.ts.map +1 -1
- package/dist/components/collapse/CollapseTrigger.vue.d.ts +4 -4
- package/dist/components/collapse/CollapseTrigger.vue.d.ts.map +1 -1
- package/dist/components/tag/Tag.vue.d.ts +1 -1
- package/dist/components/tag/Tags.vue.d.ts +1 -1
- package/dist/components/visually-hidden/VisuallyHidden.vue.d.ts +4 -4
- package/dist/components/visually-hidden/VisuallyHidden.vue.d.ts.map +1 -1
- package/dist/index.mjs +22 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
1
|
+
import type { Component, ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { CollapseChevron, CollapseTriggerThemeClasses } from './types';
|
|
3
3
|
declare const collapseTriggerProps: {
|
|
4
4
|
themeClass: {
|
|
@@ -22,7 +22,7 @@ declare const collapseTriggerProps: {
|
|
|
22
22
|
};
|
|
23
23
|
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
24
24
|
as: {
|
|
25
|
-
type:
|
|
25
|
+
type: PropType<string | Component>;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
/** Render the consumer's slot child as the trigger (Reka `asChild` pattern). */
|
|
@@ -56,7 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
56
|
};
|
|
57
57
|
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
58
58
|
as: {
|
|
59
|
-
type:
|
|
59
|
+
type: PropType<string | Component>;
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
62
|
/** Render the consumer's slot child as the trigger (Reka `asChild` pattern). */
|
|
@@ -88,7 +88,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
88
88
|
};
|
|
89
89
|
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
90
90
|
as: {
|
|
91
|
-
type:
|
|
91
|
+
type: PropType<string | Component>;
|
|
92
92
|
default: string;
|
|
93
93
|
};
|
|
94
94
|
/** Render the consumer's slot child as the trigger (Reka `asChild` pattern). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapseTrigger.vue.d.ts","sourceRoot":"","sources":["../../../src/components/collapse/CollapseTrigger.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"CollapseTrigger.vue.d.ts","sourceRoot":"","sources":["../../../src/components/collapse/CollapseTrigger.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AASvE,OAAO,KAAK,EACR,eAAe,EAEf,2BAA2B,EAC9B,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,oBAAoB;;;;;;;;;IACtB;;;;;;OAMG;;cACwB,QAAQ,CAAC,eAAe,CAAC;;;IACpD,sEAAsE;;cACtC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAC5D,gFAAgF;;;;;CAGnF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,OAAO,oBAAoB,CAAC,CAAC;wBAIlE,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IA3Bd;;;;;;OAMG;;cACwB,QAAQ,CAAC,eAAe,CAAC;;;IACpD,sEAAsE;;cACtC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAC5D,gFAAgF;;;;;;;;;;;;;;;;IAVhF;;;;;;OAMG;;cACwB,QAAQ,CAAC,eAAe,CAAC;;;IACpD,sEAAsE;;cACtC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAC5D,gFAAgF;;;;;;;;;;;4EAmElF,CAAC"}
|
|
@@ -131,9 +131,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
131
131
|
onRemove?: (...args: any[]) => any;
|
|
132
132
|
}>, {
|
|
133
133
|
icon: string;
|
|
134
|
+
size: TagSize;
|
|
134
135
|
themeClass: ThemeClassesOverride<TagThemeClasses>;
|
|
135
136
|
themeVariant: VariantValues;
|
|
136
|
-
size: TagSize;
|
|
137
137
|
value: string | number;
|
|
138
138
|
label: string;
|
|
139
139
|
removable: boolean;
|
|
@@ -104,9 +104,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
104
104
|
}>> & Readonly<{
|
|
105
105
|
onRemove?: (...args: any[]) => any;
|
|
106
106
|
}>, {
|
|
107
|
+
size: TagSize;
|
|
107
108
|
themeClass: ThemeClassesOverride<TagsThemeClasses>;
|
|
108
109
|
themeVariant: VariantValues;
|
|
109
|
-
size: TagSize;
|
|
110
110
|
removable: boolean;
|
|
111
111
|
items: TagsItem[];
|
|
112
112
|
}, SlotsType<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ExtractPublicPropTypes } from 'vue';
|
|
1
|
+
import type { Component, ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const visuallyHiddenProps: {
|
|
3
3
|
/** HTML tag to render. */
|
|
4
4
|
as: {
|
|
5
|
-
type:
|
|
5
|
+
type: PropType<string | Component>;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ export default _default;
|
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
13
|
/** HTML tag to render. */
|
|
14
14
|
as: {
|
|
15
|
-
type:
|
|
15
|
+
type: PropType<string | Component>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
20
20
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
/** HTML tag to render. */
|
|
22
22
|
as: {
|
|
23
|
-
type:
|
|
23
|
+
type: PropType<string | Component>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
26
|
}>> & Readonly<{}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.vue.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/VisuallyHidden.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.vue.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/VisuallyHidden.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGvE,QAAA,MAAM,mBAAmB;IACrB,0BAA0B;;cACM,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;CAC/D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,mBAAmB,CAAC,CAAC;wBAEhE,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;IAdd,0BAA0B;;cACM,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;IAD5D,0BAA0B;;cACM,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;4EAwB9D,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { installDefaultsManager, installThemeManager, themableProps, useComponentDefaults, useComponentTheme, useThemeProps } from "@vuecs/core";
|
|
1
|
+
import { VCPrimitive, installDefaultsManager, installThemeManager, themableProps, useComponentDefaults, useComponentTheme, useThemeProps } from "@vuecs/core";
|
|
2
2
|
import { computed, defineComponent, h, inject, mergeProps, provide, resolveComponent } from "vue";
|
|
3
|
-
import { AspectRatio, AvatarFallback, AvatarImage, AvatarRoot, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger,
|
|
3
|
+
import { AspectRatio, AvatarFallback, AvatarImage, AvatarRoot, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, Separator, VisuallyHidden } from "reka-ui";
|
|
4
4
|
import { VCPlaceholder } from "@vuecs/placeholder";
|
|
5
5
|
//#region src/components/alert/theme.ts
|
|
6
6
|
const alertThemeDefaults = { classes: {
|
|
@@ -52,7 +52,7 @@ const alertProps = {
|
|
|
52
52
|
},
|
|
53
53
|
/** HTML tag to render. */
|
|
54
54
|
as: {
|
|
55
|
-
type: String,
|
|
55
|
+
type: [String, Object],
|
|
56
56
|
default: "div"
|
|
57
57
|
},
|
|
58
58
|
...themableProps()
|
|
@@ -118,7 +118,7 @@ var AlertTitle_default = defineComponent({
|
|
|
118
118
|
* heading). Override via `:as` for nested-heading hierarchies.
|
|
119
119
|
*/
|
|
120
120
|
as: {
|
|
121
|
-
type: String,
|
|
121
|
+
type: [String, Object],
|
|
122
122
|
default: "h4"
|
|
123
123
|
},
|
|
124
124
|
...themableProps()
|
|
@@ -136,7 +136,7 @@ var AlertDescription_default = defineComponent({
|
|
|
136
136
|
props: {
|
|
137
137
|
/** HTML tag to render. */
|
|
138
138
|
as: {
|
|
139
|
-
type: String,
|
|
139
|
+
type: [String, Object],
|
|
140
140
|
default: "div"
|
|
141
141
|
},
|
|
142
142
|
...themableProps()
|
|
@@ -154,7 +154,7 @@ var AlertClose_default = defineComponent({
|
|
|
154
154
|
props: {
|
|
155
155
|
/** HTML tag to render. */
|
|
156
156
|
as: {
|
|
157
|
-
type: String,
|
|
157
|
+
type: [String, Object],
|
|
158
158
|
default: "button"
|
|
159
159
|
},
|
|
160
160
|
/**
|
|
@@ -402,7 +402,7 @@ var Card_default = defineComponent({
|
|
|
402
402
|
},
|
|
403
403
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
404
404
|
as: {
|
|
405
|
-
type: String,
|
|
405
|
+
type: [String, Object],
|
|
406
406
|
default: "div"
|
|
407
407
|
},
|
|
408
408
|
/** Render the consumer's slot child as the card root (Reka `asChild` pattern). */
|
|
@@ -416,7 +416,7 @@ var Card_default = defineComponent({
|
|
|
416
416
|
const themeProps = useThemeProps(props, "variant", "padding", "interactive");
|
|
417
417
|
const theme = useComponentTheme("card", themeProps, cardThemeDefaults);
|
|
418
418
|
provideCardContext({ themeVariant: () => themeProps.themeVariant });
|
|
419
|
-
return () => h(
|
|
419
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
420
420
|
as: props.as,
|
|
421
421
|
asChild: props.asChild,
|
|
422
422
|
class: theme.value.root || void 0
|
|
@@ -431,7 +431,7 @@ var CardHeader_default = defineComponent({
|
|
|
431
431
|
props: {
|
|
432
432
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
433
433
|
as: {
|
|
434
|
-
type: String,
|
|
434
|
+
type: [String, Object],
|
|
435
435
|
default: "header"
|
|
436
436
|
},
|
|
437
437
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -463,7 +463,7 @@ var CardHeader_default = defineComponent({
|
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
}, cardHeaderThemeDefaults);
|
|
466
|
-
return () => h(
|
|
466
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
467
467
|
as: props.as,
|
|
468
468
|
asChild: props.asChild,
|
|
469
469
|
class: theme.value.root || void 0
|
|
@@ -478,7 +478,7 @@ var CardTitle_default = defineComponent({
|
|
|
478
478
|
props: {
|
|
479
479
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
480
480
|
as: {
|
|
481
|
-
type: String,
|
|
481
|
+
type: [String, Object],
|
|
482
482
|
default: "h3"
|
|
483
483
|
},
|
|
484
484
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -510,7 +510,7 @@ var CardTitle_default = defineComponent({
|
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
}, cardTitleThemeDefaults);
|
|
513
|
-
return () => h(
|
|
513
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
514
514
|
as: props.as,
|
|
515
515
|
asChild: props.asChild,
|
|
516
516
|
class: theme.value.root || void 0
|
|
@@ -525,7 +525,7 @@ var CardDescription_default = defineComponent({
|
|
|
525
525
|
props: {
|
|
526
526
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
527
527
|
as: {
|
|
528
|
-
type: String,
|
|
528
|
+
type: [String, Object],
|
|
529
529
|
default: "p"
|
|
530
530
|
},
|
|
531
531
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -557,7 +557,7 @@ var CardDescription_default = defineComponent({
|
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
}, cardDescriptionThemeDefaults);
|
|
560
|
-
return () => h(
|
|
560
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
561
561
|
as: props.as,
|
|
562
562
|
asChild: props.asChild,
|
|
563
563
|
class: theme.value.root || void 0
|
|
@@ -572,7 +572,7 @@ var CardBody_default = defineComponent({
|
|
|
572
572
|
props: {
|
|
573
573
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
574
574
|
as: {
|
|
575
|
-
type: String,
|
|
575
|
+
type: [String, Object],
|
|
576
576
|
default: "div"
|
|
577
577
|
},
|
|
578
578
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -604,7 +604,7 @@ var CardBody_default = defineComponent({
|
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
}, cardBodyThemeDefaults);
|
|
607
|
-
return () => h(
|
|
607
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
608
608
|
as: props.as,
|
|
609
609
|
asChild: props.asChild,
|
|
610
610
|
class: theme.value.root || void 0
|
|
@@ -619,7 +619,7 @@ var CardFooter_default = defineComponent({
|
|
|
619
619
|
props: {
|
|
620
620
|
/** HTML tag to render. Use `:as-child` to compose onto an existing component. */
|
|
621
621
|
as: {
|
|
622
|
-
type: String,
|
|
622
|
+
type: [String, Object],
|
|
623
623
|
default: "footer"
|
|
624
624
|
},
|
|
625
625
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -651,7 +651,7 @@ var CardFooter_default = defineComponent({
|
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
653
|
}, cardFooterThemeDefaults);
|
|
654
|
-
return () => h(
|
|
654
|
+
return () => h(VCPrimitive, mergeProps(attrs, {
|
|
655
655
|
as: props.as,
|
|
656
656
|
asChild: props.asChild,
|
|
657
657
|
class: theme.value.root || void 0
|
|
@@ -794,7 +794,7 @@ var Collapse_default = defineComponent({
|
|
|
794
794
|
},
|
|
795
795
|
/** HTML tag to render. */
|
|
796
796
|
as: {
|
|
797
|
-
type: String,
|
|
797
|
+
type: [String, Object],
|
|
798
798
|
default: "div"
|
|
799
799
|
},
|
|
800
800
|
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
@@ -835,7 +835,7 @@ const collapseTriggerProps = {
|
|
|
835
835
|
},
|
|
836
836
|
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
837
837
|
as: {
|
|
838
|
-
type: String,
|
|
838
|
+
type: [String, Object],
|
|
839
839
|
default: "button"
|
|
840
840
|
},
|
|
841
841
|
/** Render the consumer's slot child as the trigger (Reka `asChild` pattern). */
|
|
@@ -889,7 +889,7 @@ var CollapseContent_default = defineComponent({
|
|
|
889
889
|
},
|
|
890
890
|
/** HTML tag to render. */
|
|
891
891
|
as: {
|
|
892
|
-
type: String,
|
|
892
|
+
type: [String, Object],
|
|
893
893
|
default: "div"
|
|
894
894
|
},
|
|
895
895
|
/** Render the consumer's slot child as the pane root (Reka `asChild` pattern). */
|
|
@@ -1139,7 +1139,7 @@ var VisuallyHidden_default = defineComponent({
|
|
|
1139
1139
|
props: {
|
|
1140
1140
|
/** HTML tag to render. */
|
|
1141
1141
|
as: {
|
|
1142
|
-
type: String,
|
|
1142
|
+
type: [String, Object],
|
|
1143
1143
|
default: "span"
|
|
1144
1144
|
} },
|
|
1145
1145
|
setup(props, { attrs, slots }) {
|