@wikicasa-dev/components 2.6.0 → 2.6.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.
@@ -1,5 +1,5 @@
1
1
  import o from "../../packages/components/lib/UIKit/Card/BaseCard.vue.js";
2
- import '../../assets/BaseCard.css';/* empty css */
2
+ import '../../assets/CardRootPrimitive.css';/* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import o from "../../packages/components/lib/UIKit/Card/CardRootPrimitive.vue.js";
2
- import '../../assets/BaseCard.css';/* empty css */
2
+ import '../../assets/CardRootPrimitive.css';/* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,29 +1,33 @@
1
- import { AcceptableValue, RadioGroupRootProps, RadioGroupItemProps } from 'reka-ui';
2
- export type RadioButtonItem = {
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: RadioGroupItemProps["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: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
14
- modelValue?: AcceptableValue;
15
- } & RadioButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:modelValue": (value: AcceptableValue) => any;
17
- }, string, import('vue').PublicProps, Readonly<{
18
- modelValue?: AcceptableValue;
19
- } & RadioButtonGroupProps> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: AcceptableValue) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
22
- default?(_: {}): any;
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 +1 @@
1
- .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
1
+ .no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
@@ -0,0 +1 @@
1
+ .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
@@ -1,5 +1,5 @@
1
1
  import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
2
- import '../../../assets/SwiperCarousel.css';/* empty css */
2
+ import '../../../assets/SwiperPaginationPrimitive.css';/* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import o from "../../packages/components/lib/components/carousel/SwiperCarousel.vue.js";
2
- import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
2
+ import '../../assets/SwiperCarousel.css';import '../../assets/SwiperPaginationPrimitive.css';/* empty css */
3
3
  /* empty css */
4
4
  import r from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f8f3d52a"]]);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as P } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
2
2
  import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
3
- import './assets/BaseCard.css';import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperCarousel.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
3
+ import './assets/CardRootPrimitive.css';import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperPaginationPrimitive.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
4
4
  import { default as I } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
5
5
  import { default as h } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
6
6
  import { default as w } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
@@ -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 V, createElementBlock as B, Fragment as C, renderList as g, createTextVNode as k, toDisplayString as x } from "vue";
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
- V(i.$slots, "default", {}, () => [
33
- (o(!0), B(C, null, g(e.items, ({ label: t, ...r }) => (o(), d(v, u({ ref_for: !0 }, r, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- .no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}