@wikicasa-dev/components 2.3.1-alpha.4 → 2.3.1-alpha.5

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.
@@ -1,20 +1,26 @@
1
1
  import { CheckboxRootProps } from 'reka-ui';
2
- export interface CheckboxGroupItemPrimitiveProps extends CheckboxRootProps {
2
+ export type CheckboxGroupItemPrimitiveValueType<T extends undefined | CheckboxRootProps["value"] = undefined> = T;
3
+ export interface CheckboxGroupItemPrimitiveProps<T extends undefined | CheckboxRootProps["value"] = undefined> extends Omit<CheckboxRootProps, "value"> {
3
4
  dataCy?: string;
5
+ value: CheckboxGroupItemPrimitiveValueType<T>;
4
6
  }
5
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CheckboxGroupItemPrimitiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: boolean | "indeterminate") => any;
7
- }, string, import('vue').PublicProps, Readonly<CheckboxGroupItemPrimitiveProps> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
10
- default?(_: {
11
- modelValue: import('reka-ui').CheckboxCheckedState;
12
- state: import('reka-ui').CheckboxCheckedState;
13
- }): any;
14
- }>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
7
+ declare const _default: <T extends CheckboxRootProps["value"]>(__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<{
8
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
9
+ readonly "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & CheckboxGroupItemPrimitiveProps<T> & Partial<{}>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: {
14
+ default?(_: {
15
+ modelValue: import('reka-ui').CheckboxCheckedState;
16
+ state: import('reka-ui').CheckboxCheckedState;
17
+ }): any;
19
18
  };
19
+ emit: (evt: "update:modelValue", value: boolean | "indeterminate") => void;
20
+ }>) => import('vue').VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
20
22
  };
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -1,17 +1,21 @@
1
- import { CheckboxGroupRootProps } from 'reka-ui';
2
- export interface CheckboxGroupPrimitiveProps extends CheckboxGroupRootProps {
1
+ import { CheckboxGroupRootProps, AcceptableValue } from 'reka-ui';
2
+ export interface CheckboxGroupPrimitiveProps<T extends AcceptableValue> extends CheckboxGroupRootProps<T> {
3
3
  dataCy?: string;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CheckboxGroupPrimitiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: import('reka-ui').AcceptableValue[]) => any;
7
- }, string, import('vue').PublicProps, Readonly<CheckboxGroupPrimitiveProps> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: import('reka-ui').AcceptableValue[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
10
- default?(_: {}): any;
11
- }>;
12
- export default _default;
13
- type __VLS_WithTemplateSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
5
+ 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<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & CheckboxGroupPrimitiveProps<T> & Partial<{}>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: {
12
+ default?(_: {}): any;
16
13
  };
14
+ emit: (evt: "update:modelValue", value: T[]) => void;
15
+ }>) => import('vue').VNode & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
17
  };
18
+ export default _default;
19
+ type __VLS_PrettifyLocal<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
@@ -4,10 +4,10 @@ const g = /* @__PURE__ */ p({
4
4
  __name: "CheckboxGroupItemPrimitive",
5
5
  props: {
6
6
  dataCy: {},
7
+ value: {},
7
8
  defaultValue: { type: [Boolean, String] },
8
9
  modelValue: { type: [Boolean, String, null] },
9
10
  disabled: { type: Boolean },
10
- value: {},
11
11
  id: {},
12
12
  asChild: { type: Boolean },
13
13
  as: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.3.1-alpha.4",
3
+ "version": "2.3.1-alpha.5",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",