@wikicasa-dev/components 2.3.1-alpha.22 → 2.3.1-alpha.4
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.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +18 -15
- package/dist/UIKit/Accordion/BaseAccordionBtn.d.ts +34 -0
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordionContent.d.ts +30 -0
- package/dist/UIKit/Accordion/BaseAccordionContent.js +4 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +21 -12
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +1 -1
- package/dist/UIKit/BaseAutocomplete.d.ts +1 -1
- package/dist/UIKit/BaseButton.d.ts +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +1 -1
- package/dist/UIKit/BaseSnackbar.d.ts +1 -3
- package/dist/UIKit/BaseToggle.d.ts +2 -3
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +1 -1
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +15 -21
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +13 -17
- package/dist/assets/BaseAccordionItem.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseComplexToggle.css +1 -1
- package/dist/assets/BaseModal.css +1 -1
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/index.d.ts +2 -9
- package/dist/index.js +95 -111
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +14 -22
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +59 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js +34 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +36 -36
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +17 -17
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +3 -1
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +52 -54
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +15 -16
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +11 -12
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +11 -12
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +46 -45
- package/dist/types/index.d.ts +1 -11
- package/package.json +15 -15
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +0 -19
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +0 -11
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +0 -13
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +0 -13
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +0 -24
- package/dist/UIKit/Tab/v2/BaseTabs.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +0 -13
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +0 -66
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +0 -13
- package/dist/UIKit/Tab/v2/BaseTabsList.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +0 -20
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +0 -4
- package/dist/assets/BaseTabs.css +0 -1
- package/dist/assets/BaseTabsIndicator.css +0 -1
- package/dist/packages/components/lib/UIKit/Accordion/AccordionContentPrimitive.vue.js +0 -22
- package/dist/packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js +0 -24
- package/dist/packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +0 -22
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabs.vue.js +0 -39
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabsContent.vue.js +0 -24
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabsIndicator.vue.js +0 -34
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabsList.vue.js +0 -23
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabsTrigger.vue.js +0 -31
- /package/dist/assets/{swiper-autoplay.css → swiper-keyboard.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as z, mergeModels as k, useModel as j, ref as v, useId as q, useSlots as G, computed as H, provide as f, watch as x, createElementBlock as m, openBlock as i, normalizeClass as I, createElementVNode as J, createBlock as o, createCommentVNode as u, unref as y, toDisplayString as K, Fragment as g, renderList as O, withCtx as Q, resolveDynamicComponent as R } from "vue";
|
|
2
|
+
import U from "./BaseTabPanel.vue.js";
|
|
3
3
|
import P from "./BaseTabList.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const W = ["data-cy"], X = ["id"], te = /* @__PURE__ */ z({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseTabView",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ k({
|
|
8
8
|
tabsPosition: { default: "top" },
|
|
9
9
|
tabViewDescription: {},
|
|
10
10
|
tabListClasses: {},
|
|
@@ -13,94 +13,95 @@ const U = ["data-cy"], W = ["id"], ae = /* @__PURE__ */ S({
|
|
|
13
13
|
activeIdx: { default: 0 },
|
|
14
14
|
activeIdxModifiers: {}
|
|
15
15
|
}),
|
|
16
|
-
emits: /* @__PURE__ */
|
|
16
|
+
emits: /* @__PURE__ */ k(["tabClicked"], ["update:activeIdx"]),
|
|
17
17
|
setup(s, { emit: $ }) {
|
|
18
|
-
const B = $, c =
|
|
18
|
+
const B = $, c = j(s, "activeIdx"), A = v(""), b = v(null), F = v(null), d = q(), h = G(), r = (e) => e.props ?? null, p = (e) => e.type.__name === "BaseTab", C = (e, a) => ({
|
|
19
19
|
renderFn: e,
|
|
20
|
-
tabId:
|
|
20
|
+
tabId: T(a),
|
|
21
21
|
"active-tab-panel-idx": r(e)?.["active-tab-panel-idx"] ?? a,
|
|
22
22
|
"header-title": r(e)?.["header-title"] || "",
|
|
23
23
|
class: r(e)?.class || "",
|
|
24
24
|
"tab-panel-classes": r(e)?.["tab-panel-classes"] || "",
|
|
25
25
|
"data-cy": r(e)?.["data-cy"] || ""
|
|
26
|
-
}),
|
|
27
|
-
|
|
28
|
-
}) :
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const a =
|
|
32
|
-
(t, n,
|
|
26
|
+
}), l = H(() => h.default ? h.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
|
|
27
|
+
p(t) && e.push(C(t, e.length));
|
|
28
|
+
}) : p(a) && e.push(C(a, e.length)), e), []) : []);
|
|
29
|
+
f("tabs", l), f("isTabActive", (e) => c.value === e);
|
|
30
|
+
const V = (e = -1) => b.value === e, T = (e) => `base-tab-${e}-${d}`, w = (e = -1) => `base-tab-panel-${e}-${d}`, D = (e = -1) => {
|
|
31
|
+
const a = l.value.reduce(
|
|
32
|
+
(t, n, S) => (n["active-tab-panel-idx"] !== e || t.push({ tab: n, idx: S }), t),
|
|
33
33
|
[]
|
|
34
34
|
);
|
|
35
35
|
return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx === c.value)?.tab.tabId;
|
|
36
|
-
}, D = (e) => {
|
|
37
|
-
A.value = C(e);
|
|
38
36
|
}, L = (e) => {
|
|
39
|
-
|
|
37
|
+
A.value = T(e);
|
|
38
|
+
}, E = (e) => {
|
|
39
|
+
const a = l.value.at(e ?? -1);
|
|
40
40
|
b.value = a?.["active-tab-panel-idx"] ?? null;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
42
|
+
f("handleClick", (e, a) => {
|
|
43
|
+
L(e), c.value = e, B("tabClicked", { tabIdx: e, tabElement: a });
|
|
44
|
+
}), x(
|
|
45
45
|
c,
|
|
46
46
|
(e) => {
|
|
47
|
-
|
|
47
|
+
E(e ?? -1);
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
immediate: !0
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
const
|
|
53
|
+
const M = (e, a) => {
|
|
54
54
|
for (let t = 0; t < e.length; t++)
|
|
55
55
|
if (e[t] !== a[t]) return t;
|
|
56
56
|
return null;
|
|
57
|
-
},
|
|
58
|
-
return
|
|
59
|
-
() =>
|
|
57
|
+
}, N = (e = -1) => l.value.find((a) => a["active-tab-panel-idx"] === e);
|
|
58
|
+
return x(
|
|
59
|
+
() => l.value.map((e) => e["active-tab-panel-idx"]),
|
|
60
60
|
(e, a) => {
|
|
61
|
-
const t =
|
|
61
|
+
const t = M(e, a);
|
|
62
62
|
if (t === null) return;
|
|
63
|
-
const n =
|
|
63
|
+
const n = l.value[t]["active-tab-panel-idx"];
|
|
64
64
|
c.value !== t || n === void 0 || (b.value = n);
|
|
65
65
|
}
|
|
66
|
-
), (e, a) => (
|
|
67
|
-
|
|
66
|
+
), (e, a) => (i(), m("div", {
|
|
67
|
+
ref_key: "root",
|
|
68
|
+
ref: F,
|
|
68
69
|
class: I(e.$attrs.class),
|
|
69
70
|
"data-cy": s.dataCy
|
|
70
71
|
}, [
|
|
71
|
-
|
|
72
|
-
id: `tablist-${
|
|
72
|
+
J("span", {
|
|
73
|
+
id: `tablist-${y(d)}`,
|
|
73
74
|
class: "uikit-sr-only"
|
|
74
|
-
},
|
|
75
|
-
s.tabsPosition === "top" ? (
|
|
75
|
+
}, K(s.tabViewDescription), 9, X),
|
|
76
|
+
s.tabsPosition === "top" ? (i(), o(P, {
|
|
76
77
|
key: 0,
|
|
77
|
-
uid:
|
|
78
|
+
uid: y(d),
|
|
78
79
|
"tab-list-classes": s.tabListClasses,
|
|
79
80
|
"data-cy": s.dataCy ? `${s.dataCy}-tab-list` : ""
|
|
80
81
|
}, null, 8, ["uid", "tab-list-classes", "data-cy"])) : u("", !0),
|
|
81
|
-
(
|
|
82
|
-
|
|
82
|
+
(i(!0), m(g, null, O(l.value, (t, n) => (i(), m(g, { key: n }, [
|
|
83
|
+
N(n) ? (i(), o(U, {
|
|
83
84
|
key: 0,
|
|
84
|
-
id:
|
|
85
|
-
"labelled-by":
|
|
86
|
-
active:
|
|
85
|
+
id: w(t["active-tab-panel-idx"]),
|
|
86
|
+
"labelled-by": D(n) ?? "",
|
|
87
|
+
active: V(n),
|
|
87
88
|
class: I(t["tab-panel-classes"])
|
|
88
89
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
t.renderFn.children && t.renderFn.children.default ? (
|
|
90
|
+
default: Q(() => [
|
|
91
|
+
t.renderFn.children && t.renderFn.children.default ? (i(), o(R(t.renderFn.children.default), { key: 0 })) : u("", !0)
|
|
91
92
|
]),
|
|
92
93
|
_: 2
|
|
93
94
|
}, 1032, ["id", "labelled-by", "active", "class"])) : u("", !0)
|
|
94
95
|
], 64))), 128)),
|
|
95
|
-
s.tabsPosition === "bottom" ? (
|
|
96
|
+
s.tabsPosition === "bottom" ? (i(), o(P, {
|
|
96
97
|
key: 1,
|
|
97
|
-
uid:
|
|
98
|
+
uid: y(d),
|
|
98
99
|
"tab-list-classes": s.tabListClasses,
|
|
99
100
|
"data-cy": s.dataCy ? `${s.dataCy}-tab-list` : ""
|
|
100
101
|
}, null, 8, ["uid", "tab-list-classes", "data-cy"])) : u("", !0)
|
|
101
|
-
], 10,
|
|
102
|
+
], 10, W));
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
105
|
export {
|
|
105
|
-
|
|
106
|
+
te as default
|
|
106
107
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '../UIKit/types';
|
|
2
|
+
export type { AccordionItemDecorated, AccordionItem, } from '../UIKit/Accordion/BaseAccordion';
|
|
2
3
|
export type { CheckboxGroupProps, CheckboxButtonType, } from '../UIKit/Checkbox/CheckboxGroup';
|
|
3
4
|
export type { BaseTabProps } from '../UIKit/Tab/BaseTabView';
|
|
4
5
|
export type { RadioButtonType } from '../UIKit/Radio/RadioGroup';
|
|
@@ -13,14 +14,3 @@ export type { RadioGroupItemPrimitiveProps } from '../UIKit/Radio/v2/RadioGroupI
|
|
|
13
14
|
export type { CheckboxButtonGroupProps, CheckboxButtonItem, } from '../UIKit/Checkbox/v2/CheckboxButtonGroup';
|
|
14
15
|
export type { CheckboxGroupPrimitiveProps } from '../UIKit/Checkbox/v2/CheckboxGroupPrimitive';
|
|
15
16
|
export type { CheckboxGroupItemPrimitiveProps } from '../UIKit/Checkbox/v2/CheckboxGroupItemPrimitive';
|
|
16
|
-
export type { BaseAccordionProps } from '../UIKit/Accordion/BaseAccordion';
|
|
17
|
-
export type { BaseAccordionItemProps } from '../UIKit/Accordion/BaseAccordionItem';
|
|
18
|
-
export type { AccordionContentPrimitiveProps } from '../UIKit/Accordion/AccordionContentPrimitive';
|
|
19
|
-
export type { AccordionHeaderPrimitiveProps } from '../UIKit/Accordion/AccordionHeaderPrimitive';
|
|
20
|
-
export type { AccordionItemPrimitiveProps } from '../UIKit/Accordion/AccordionItemPrimitive';
|
|
21
|
-
export type { AccordionTriggerPrimitiveProps } from '../UIKit/Accordion/AccordionTriggerPrimitive';
|
|
22
|
-
export type { BaseTabsProps } from '../UIKit/Tab/v2/BaseTabs';
|
|
23
|
-
export type { BaseTabsContentProps } from '../UIKit/Tab/v2/BaseTabsContent';
|
|
24
|
-
export type { BaseTabsIndicatorProps } from '../UIKit/Tab/v2/BaseTabsIndicator';
|
|
25
|
-
export type { BaseTabsListProps } from '../UIKit/Tab/v2/BaseTabsList';
|
|
26
|
-
export type { BaseTabsTriggerProps } from '../UIKit/Tab/v2/BaseTabsTrigger';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.3.1-alpha.
|
|
3
|
+
"version": "2.3.1-alpha.4",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,41 +52,41 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"chart.js": "4.5.1",
|
|
54
54
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
55
|
-
"reka-ui": "^2.
|
|
55
|
+
"reka-ui": "^2.6.1",
|
|
56
56
|
"swiper": "^12.0.3",
|
|
57
|
-
"vue": "^3.5.
|
|
57
|
+
"vue": "^3.5.25",
|
|
58
58
|
"vue-chartjs": "5.3.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/eslint-parser": "^7.28.
|
|
62
|
-
"@histoire/plugin-vue": "^1.0.0-
|
|
63
|
-
"@types/node": "^
|
|
64
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
61
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
62
|
+
"@histoire/plugin-vue": "^1.0.0-alpha.5",
|
|
63
|
+
"@types/node": "^24.10.1",
|
|
64
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
65
65
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
66
66
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
67
67
|
"@wikicasa-dev/svg-icons": "1.3.0",
|
|
68
68
|
"@wikicasa-dev/vue-composables": "0.1.0",
|
|
69
69
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
70
|
-
"@wikicasa-dev/types": "2.5.
|
|
70
|
+
"@wikicasa-dev/types": "2.5.0",
|
|
71
71
|
"@wikicasa-dev/utilities": "1.2.0",
|
|
72
|
-
"autoprefixer": "^10.4.
|
|
72
|
+
"autoprefixer": "^10.4.22",
|
|
73
73
|
"date-fns": "4.1.0",
|
|
74
74
|
"eslint": "^9.39",
|
|
75
|
-
"eslint-plugin-vue": "^10.
|
|
75
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
76
76
|
"jiti": "^2.6.1",
|
|
77
77
|
"glob": "^13.0.0",
|
|
78
|
-
"histoire": "^1.0.0-
|
|
78
|
+
"histoire": "^1.0.0-alpha.5",
|
|
79
79
|
"postcss": "^8.5.6",
|
|
80
|
-
"prettier": "^3.
|
|
80
|
+
"prettier": "^3.7.4",
|
|
81
81
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
82
82
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
83
83
|
"tailwindcss": "3.4.15",
|
|
84
84
|
"typescript": "^5.9.3",
|
|
85
|
-
"vite": "7.
|
|
85
|
+
"vite": "7.2.6",
|
|
86
86
|
"vite-plugin-dts": "^4.5.4",
|
|
87
87
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
88
|
-
"vue-router": "^4.6.
|
|
89
|
-
"vue-tsc": "3.
|
|
88
|
+
"vue-router": "^4.6.3",
|
|
89
|
+
"vue-tsc": "3.1.5"
|
|
90
90
|
},
|
|
91
91
|
"readme": "ERROR: No README data found!",
|
|
92
92
|
"scripts": {
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AccordionContentProps } from 'reka-ui';
|
|
2
|
-
export type AccordionContentPrimitiveProps = AccordionContentProps;
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
|
-
slots: {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<AccordionContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AccordionHeaderProps } from 'reka-ui';
|
|
2
|
-
export type AccordionHeaderPrimitiveProps = AccordionHeaderProps;
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AccordionHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AccordionItemProps } from 'reka-ui';
|
|
2
|
-
export type AccordionItemPrimitiveProps = AccordionItemProps;
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
4
|
-
default?(_: {
|
|
5
|
-
open: boolean;
|
|
6
|
-
}): any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AccordionTriggerProps } from 'reka-ui';
|
|
2
|
-
export type AccordionTriggerPrimitiveProps = AccordionTriggerProps & {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AccordionTriggerPrimitiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionTriggerPrimitiveProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TabsRootProps } from 'reka-ui';
|
|
2
|
-
export interface BaseTabsProps<T extends string | number> extends TabsRootProps<T> {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: <T extends string | number>(__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"?: ((payload: T) => any) | undefined;
|
|
8
|
-
readonly onMounted?: (() => any) | undefined;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onMounted"> & BaseTabsProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
-
attrs: any;
|
|
12
|
-
slots: {
|
|
13
|
-
default?(_: {
|
|
14
|
-
modelValue: T;
|
|
15
|
-
}): any;
|
|
16
|
-
};
|
|
17
|
-
emit: ((evt: "update:modelValue", payload: T) => void) & ((evt: "mounted") => void);
|
|
18
|
-
}>) => import('vue').VNode & {
|
|
19
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
type __VLS_PrettifyLocal<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TabsContentProps } from 'reka-ui';
|
|
2
|
-
export interface BaseTabsContentProps extends TabsContentProps {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseTabsContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseTabsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { TabsIndicatorProps } from 'reka-ui';
|
|
2
|
-
export interface BaseTabsIndicatorProps extends TabsIndicatorProps {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseTabsIndicatorProps, {
|
|
6
|
-
updateIndicatorStyle: () => void | undefined;
|
|
7
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseTabsIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
-
tabIndicatorRef: ({
|
|
9
|
-
$: import('vue').ComponentInternalInstance;
|
|
10
|
-
$data: {};
|
|
11
|
-
$props: {
|
|
12
|
-
readonly asChild?: boolean | undefined;
|
|
13
|
-
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
14
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
15
|
-
$attrs: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
$refs: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
$slots: Readonly<{
|
|
22
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
25
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
26
|
-
$host: Element | null;
|
|
27
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
-
$el: any;
|
|
29
|
-
$options: import('vue').ComponentOptionsBase<Readonly<TabsIndicatorProps> & Readonly<{}>, {
|
|
30
|
-
updateIndicatorStyle: () => void;
|
|
31
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
32
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
33
|
-
created?: (() => void) | (() => void)[];
|
|
34
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
35
|
-
mounted?: (() => void) | (() => void)[];
|
|
36
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
37
|
-
updated?: (() => void) | (() => void)[];
|
|
38
|
-
activated?: (() => void) | (() => void)[];
|
|
39
|
-
deactivated?: (() => void) | (() => void)[];
|
|
40
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
41
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
42
|
-
destroyed?: (() => void) | (() => void)[];
|
|
43
|
-
unmounted?: (() => void) | (() => void)[];
|
|
44
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
45
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
46
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
47
|
-
};
|
|
48
|
-
$forceUpdate: () => void;
|
|
49
|
-
$nextTick: typeof import('vue').nextTick;
|
|
50
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
51
|
-
} & Readonly<{}> & Omit<Readonly<TabsIndicatorProps> & Readonly<{}>, "updateIndicatorStyle"> & import('vue').ShallowUnwrapRef<{
|
|
52
|
-
updateIndicatorStyle: () => void;
|
|
53
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
54
|
-
$slots: {
|
|
55
|
-
default?: (props: {}) => any;
|
|
56
|
-
};
|
|
57
|
-
}) | null;
|
|
58
|
-
}, any>, {
|
|
59
|
-
default?(_: {}): any;
|
|
60
|
-
}>;
|
|
61
|
-
export default _default;
|
|
62
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
-
new (): {
|
|
64
|
-
$slots: S;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TabsListProps } from 'reka-ui';
|
|
2
|
-
export interface BaseTabsListProps extends TabsListProps {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseTabsListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseTabsListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TabsTriggerProps } from 'reka-ui';
|
|
2
|
-
export interface BaseTabsTriggerProps<T extends string | number> extends Omit<TabsTriggerProps, "value"> {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
value: T;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: <T extends string | number>(__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<{
|
|
7
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & BaseTabsTriggerProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
|
-
attrs: any;
|
|
10
|
-
slots: {
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
emit: {};
|
|
14
|
-
}>) => import('vue').VNode & {
|
|
15
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_PrettifyLocal<T> = {
|
|
19
|
-
[K in keyof T]: T[K];
|
|
20
|
-
} & {};
|
package/dist/assets/BaseTabs.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uikit-base-tabs{--indicator-bg-color: #2B5DFF;--indicator-border-radius-top: 0;--indicator-border-radius-bottom: 0;--indicator-bottom: 0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uikit-base-tabs-indicator-element{background-color:var(--indicator-bg-color);border-radius:var(--indicator-border-radius-top) var(--indicator-border-radius-top) var(--indicator-border-radius-bottom) var(--indicator-border-radius-bottom)}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as n, openBlock as a, unref as c, normalizeProps as p, guardReactiveProps as i, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
-
import { AccordionContent as d } from "reka-ui";
|
|
3
|
-
const _ = /* @__PURE__ */ r({
|
|
4
|
-
__name: "AccordionContentPrimitive",
|
|
5
|
-
props: {
|
|
6
|
-
forceMount: { type: Boolean },
|
|
7
|
-
asChild: { type: Boolean },
|
|
8
|
-
as: {}
|
|
9
|
-
},
|
|
10
|
-
setup(o) {
|
|
11
|
-
const e = o;
|
|
12
|
-
return (t, f) => (a(), n(c(d), p(i(e)), {
|
|
13
|
-
default: s(() => [
|
|
14
|
-
l(t.$slots, "default")
|
|
15
|
-
]),
|
|
16
|
-
_: 3
|
|
17
|
-
}, 16));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
_ as default
|
|
22
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createBlock as a, openBlock as n, unref as c, normalizeProps as i, guardReactiveProps as p, withCtx as s, renderSlot as d } from "vue";
|
|
2
|
-
import { AccordionHeader as l } from "reka-ui";
|
|
3
|
-
const _ = /* @__PURE__ */ t({
|
|
4
|
-
__name: "AccordionHeaderPrimitive",
|
|
5
|
-
props: {
|
|
6
|
-
asChild: { type: Boolean },
|
|
7
|
-
as: {}
|
|
8
|
-
},
|
|
9
|
-
setup(e) {
|
|
10
|
-
const o = e;
|
|
11
|
-
return (r, m) => (n(), a(c(l), i(p(o)), {
|
|
12
|
-
default: s(() => [
|
|
13
|
-
d(r.$slots, "default")
|
|
14
|
-
]),
|
|
15
|
-
_: 3
|
|
16
|
-
}, 16));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
_ as default
|
|
21
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as p, openBlock as l, unref as s, normalizeProps as e, guardReactiveProps as o, withCtx as c, renderSlot as d } from "vue";
|
|
2
|
-
import { AccordionItem as m } from "reka-ui";
|
|
3
|
-
const B = /* @__PURE__ */ i({
|
|
4
|
-
__name: "AccordionItemPrimitive",
|
|
5
|
-
props: {
|
|
6
|
-
disabled: { type: Boolean },
|
|
7
|
-
value: {},
|
|
8
|
-
unmountOnHide: { type: Boolean },
|
|
9
|
-
asChild: { type: Boolean },
|
|
10
|
-
as: {}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const r = t;
|
|
14
|
-
return (n, u) => (l(), p(s(m), e(o(r)), {
|
|
15
|
-
default: c((a) => [
|
|
16
|
-
d(n.$slots, "default", e(o(a)))
|
|
17
|
-
]),
|
|
18
|
-
_: 3
|
|
19
|
-
}, 16));
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
B as default
|
|
24
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, createPropsRestProxy as a, createBlock as c, openBlock as n, unref as d, mergeProps as i, withCtx as s, renderSlot as p } from "vue";
|
|
2
|
-
import { AccordionTrigger as l } from "reka-ui";
|
|
3
|
-
const y = /* @__PURE__ */ o({
|
|
4
|
-
__name: "AccordionTriggerPrimitive",
|
|
5
|
-
props: {
|
|
6
|
-
asChild: { type: Boolean },
|
|
7
|
-
as: {},
|
|
8
|
-
dataCy: {}
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
const r = a(e, ["dataCy"]);
|
|
12
|
-
return (t, m) => (n(), c(d(l), i(r, { "data-cy": e.dataCy }), {
|
|
13
|
-
default: s(() => [
|
|
14
|
-
p(t.$slots, "default")
|
|
15
|
-
]),
|
|
16
|
-
_: 3
|
|
17
|
-
}, 16, ["data-cy"]));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
y as default
|
|
22
|
-
};
|