@wikicasa-dev/components 1.7.48 → 1.7.50

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.
6
6
  import { default as d } from "./CheckboxBtn.js";
7
7
  import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js";
8
8
  import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.BRubYI9e.js";
9
- import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CbqroZ_c.js";
9
+ import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.D9k4pe6N.js";
10
10
  import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
11
11
  import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BYlMCUWP.js";
12
12
  import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang._TveE6SF.js";
@@ -37,7 +37,7 @@ import { _ as Se } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_l
37
37
  import { _ as ge } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js";
38
38
  import { _ as he } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
39
39
  import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
40
- import { _ as we } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js";
40
+ import { _ as we } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.BiS3BhWj.js";
41
41
  import { default as ke } from "./SwiperSlide.js";
42
42
  import { useValidator as De } from "./useValidator.js";
43
43
  import './assets/index.css';export {
package/dist/types.d.ts CHANGED
@@ -1 +1,10 @@
1
1
  export type TwPrefix = "uikit-";
2
+ export type BaseTabProps = Partial<{
3
+ "header-title": string;
4
+ class: string;
5
+ "active-tab-panel-idx": number;
6
+ }>;
7
+ export type TabType = {
8
+ renderFn: any;
9
+ tabId: string;
10
+ } & BaseTabProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.7.48",
3
+ "version": "1.7.50",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "chart.js": "^4.4.3",
33
33
  "chartjs-adapter-date-fns": "^3.0.0",
34
34
  "date-fns": "^3.6.0",
35
- "swiper": "^11.1.4",
36
- "vue": "^3.4.31",
35
+ "swiper": "^11.1.7",
36
+ "vue": "^3.4.33",
37
37
  "vue-chartjs": "^5.3.1",
38
38
  "vue-router": "^4.4.0"
39
39
  },
@@ -51,7 +51,7 @@
51
51
  "@storybook/vue3": "^8.0.2",
52
52
  "@storybook/vue3-vite": "^8.0.2",
53
53
  "@types/node": "^20.14.9",
54
- "@vitejs/plugin-vue": "^5.0.5",
54
+ "@vitejs/plugin-vue": "^5.1.0",
55
55
  "@wikicasa-dev/svg-icons": "^0.0.36",
56
56
  "@wikicasa-dev/tailwind-plugins": "^0.0.2",
57
57
  "@wikicasa-dev/types": "^1.2.14",
@@ -61,20 +61,20 @@
61
61
  "chromatic": "^11.2.0",
62
62
  "eslint": "^8.57.0",
63
63
  "eslint-config-prettier": "^9.1.0",
64
- "eslint-plugin-prettier": "^5.1.3",
64
+ "eslint-plugin-prettier": "^5.2.1",
65
65
  "eslint-plugin-prettier-vue": "^5.0.0",
66
- "eslint-plugin-vue": "^9.23.0",
66
+ "eslint-plugin-vue": "^9.27.0",
67
67
  "glob": "^11.0.0",
68
68
  "postcss": "^8.4.39",
69
69
  "prettier": "^3.3.3",
70
70
  "prettier-plugin-tailwindcss": "^0.6.5",
71
71
  "storybook": "^7.4.5",
72
- "tailwindcss": "^3.4.4",
73
- "typescript": "^5.5.3",
74
- "vite": "^5.3.3",
72
+ "tailwindcss": "^3.4.6",
73
+ "typescript": "^5.5.4",
74
+ "vite": "^5.3.4",
75
75
  "vite-plugin-dts": "^3.9.1",
76
76
  "vite-plugin-lib-inject-css": "^2.1.1",
77
- "vue-tsc": "^2.0.26"
77
+ "vue-tsc": "^2.0.28"
78
78
  },
79
79
  "readme": "ERROR: No README data found!",
80
80
  "scripts": {
@@ -1,96 +0,0 @@
1
- import { defineComponent as S, mergeModels as y, useModel as z, ref as o, onMounted as U, useSlots as j, computed as q, watch as G, openBlock as l, createElementBlock as i, normalizeClass as v, createElementVNode as _, toDisplayString as T, Fragment as C, renderList as I, createBlock as p, resolveDynamicComponent as g, createCommentVNode as $, withCtx as H } from "vue";
2
- import { _ as J } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js";
3
- import { getUID as K } from "../utils.js";
4
- const O = ["id"], Q = ["aria-labelledby"], R = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], W = { key: 0 }, ee = /* @__PURE__ */ S({
5
- inheritAttrs: !1,
6
- __name: "BaseTabView",
7
- props: /* @__PURE__ */ y({
8
- tabViewDescription: {},
9
- tabListClasses: { default: "" }
10
- }, {
11
- activeIdx: { default: 0 },
12
- activeIdxModifiers: {}
13
- }),
14
- emits: /* @__PURE__ */ y(["tabClick"], ["update:activeIdx"]),
15
- setup(F, { emit: B }) {
16
- const w = B, c = z(F, "activeIdx"), P = o(""), m = o(null), V = o(null), r = o("");
17
- U(() => {
18
- r.value = K();
19
- });
20
- const f = j(), d = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", k = (e, t) => ({
21
- renderFn: e,
22
- tabId: b(t),
23
- "active-tab-panel-idx": d(e)?.["active-tab-panel-idx"] ?? t,
24
- "header-title": d(e)?.["header-title"] || "",
25
- class: d(e)?.class || ""
26
- }), s = q(() => f.default ? f.default().reduce((e, t) => (t.children && Array.isArray(t.children) ? t.children.forEach((a) => {
27
- h(a) && e.push(k(a, e.length));
28
- }) : h(t) && e.push(k(t, e.length)), e), []) : []), u = (e) => c.value === e, A = (e) => m.value === e, b = (e) => `base-tab-${e}-${r.value}`, D = (e) => `base-tab-panel-${e}-${r.value}`, M = (e) => s.value.find((t) => t["active-tab-panel-idx"] === e)?.tabId, E = (e) => {
29
- P.value = b(e);
30
- }, L = (e) => {
31
- const t = s.value.at(e ?? -1);
32
- m.value = t?.["active-tab-panel-idx"] ?? null;
33
- }, N = (e) => {
34
- E(e), c.value = e;
35
- };
36
- return G(
37
- c,
38
- (e) => {
39
- L(e ?? -1);
40
- },
41
- {
42
- immediate: !0
43
- }
44
- ), (e, t) => (l(), i("div", {
45
- ref_key: "root",
46
- ref: V,
47
- class: v(e.$attrs.class)
48
- }, [
49
- _("span", {
50
- id: `tablist-${r.value}`,
51
- class: "uikit-sr-only"
52
- }, T(e.tabViewDescription), 9, O),
53
- _("div", {
54
- role: "tablist",
55
- "aria-labelledby": `tablist-${r.value}`,
56
- class: v(e.tabListClasses)
57
- }, [
58
- (l(!0), i(C, null, I(s.value, (a, n) => (l(), i("button", {
59
- key: n,
60
- id: b(n),
61
- type: "button",
62
- role: "tab",
63
- "aria-selected": u(n),
64
- "aria-controls": `base-tab-panel-${n}-${r.value}`,
65
- tabindex: u(n) ? void 0 : -1,
66
- class: v([
67
- "uikit-bg-transparent uikit-p-5px",
68
- {
69
- "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": u(n)
70
- },
71
- a.class
72
- ]),
73
- onClick: (x) => {
74
- N(n), w("tabClick", x, n);
75
- }
76
- }, [
77
- a["header-title"] ? (l(), i("span", W, T(a["header-title"]), 1)) : a.renderFn.children && a.renderFn.children.header ? (l(), p(g(a.renderFn.children.header), { key: 1 })) : $("", !0)
78
- ], 10, R))), 128))
79
- ], 10, Q),
80
- (l(!0), i(C, null, I(s.value, (a, n) => (l(), p(J, {
81
- key: n,
82
- id: D(n),
83
- "labelled-by": M(n) || "",
84
- active: A(n)
85
- }, {
86
- default: H(() => [
87
- a.renderFn.children && a.renderFn.children.default ? (l(), p(g(a.renderFn.children.default), { key: 0 })) : $("", !0)
88
- ]),
89
- _: 2
90
- }, 1032, ["id", "labelled-by", "active"]))), 128))
91
- ], 2));
92
- }
93
- });
94
- export {
95
- ee as _
96
- };