@wikicasa-dev/components 2.6.0 → 2.6.1-alpha.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/Swiper/Autoplay/index.js +1 -1
- package/dist/Swiper/Controller/index.js +1 -1
- package/dist/Swiper/Keyboard/index.js +1 -1
- package/dist/Swiper/Thumbs/index.js +1 -1
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +24 -20
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +3 -4
- package/package.json +1 -1
- /package/dist/assets/{swiper-keyboard.css → swiper-controller.css} +0 -0
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { RadioGroupRootProps, RadioGroupItemProps } from 'reka-ui';
|
|
2
|
+
type AcceptableValue = RadioGroupRootProps["modelValue"];
|
|
3
|
+
export type RadioButtonItem<TValue extends AcceptableValue> = {
|
|
3
4
|
dataCy?: string;
|
|
4
|
-
value:
|
|
5
|
+
value: TValue;
|
|
5
6
|
required?: RadioGroupItemProps["required"];
|
|
6
7
|
as?: RadioGroupItemProps["as"];
|
|
7
8
|
label: string;
|
|
8
9
|
};
|
|
9
|
-
export interface RadioButtonGroupProps extends RadioGroupRootProps {
|
|
10
|
+
export interface RadioButtonGroupProps<TValue extends AcceptableValue> extends Omit<RadioGroupRootProps, "modelValue" | "defaultValue"> {
|
|
10
11
|
dataCy?: string;
|
|
11
|
-
items?: RadioButtonItem[];
|
|
12
|
+
items?: RadioButtonItem<TValue>[];
|
|
13
|
+
defaultValue?: TValue;
|
|
12
14
|
}
|
|
13
|
-
declare const _default:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
15
|
+
declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
17
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
18
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
19
|
+
modelValue?: T;
|
|
20
|
+
} & RadioButtonGroupProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
21
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: {
|
|
24
|
+
default?(_: {}): any;
|
|
28
25
|
};
|
|
26
|
+
emit: (evt: "update:modelValue", value: T) => void;
|
|
27
|
+
}>) => import('vue').VNode & {
|
|
28
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
29
|
};
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, mergeModels as f, createPropsRestProxy as p, useModel as c, createBlock as d, openBlock as o, unref as y, mergeProps as u, withCtx as m, renderSlot as
|
|
1
|
+
import { defineComponent as s, mergeModels as f, createPropsRestProxy as p, useModel as c, createBlock as d, openBlock as o, unref as y, mergeProps as u, withCtx as m, renderSlot as B, createElementBlock as V, Fragment as C, renderList as g, createTextVNode as k, toDisplayString as x } from "vue";
|
|
2
2
|
import { RadioGroupRoot as R } from "reka-ui";
|
|
3
3
|
import v from "./RadioButtonItem.vue.js";
|
|
4
4
|
import '../../../../../../assets/RadioButtonItem.css';/* empty css */
|
|
@@ -7,7 +7,6 @@ const S = /* @__PURE__ */ s({
|
|
|
7
7
|
props: /* @__PURE__ */ f({
|
|
8
8
|
dataCy: {},
|
|
9
9
|
items: { default: () => [] },
|
|
10
|
-
modelValue: {},
|
|
11
10
|
defaultValue: {},
|
|
12
11
|
disabled: { type: Boolean },
|
|
13
12
|
orientation: {},
|
|
@@ -29,8 +28,8 @@ const S = /* @__PURE__ */ s({
|
|
|
29
28
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => a.value = t)
|
|
30
29
|
}), {
|
|
31
30
|
default: m(() => [
|
|
32
|
-
|
|
33
|
-
(o(!0),
|
|
31
|
+
B(i.$slots, "default", {}, () => [
|
|
32
|
+
(o(!0), V(C, null, g(e.items, ({ label: t, ...r }) => (o(), d(v, u({ ref_for: !0 }, r, {
|
|
34
33
|
key: `radio-item-${r.value}`
|
|
35
34
|
}), {
|
|
36
35
|
default: m(() => [
|
package/package.json
CHANGED
|
File without changes
|