@wikicasa-dev/components 2.3.1-alpha.19 → 2.3.1-alpha.2
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/Radio/v2/RadioGroupItemPrimitive.d.ts +3 -11
- package/dist/assets/BaseAccordionItem.css +1 -1
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/index.d.ts +2 -11
- package/dist/index.js +91 -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/BaseSnackbar.vue.js +52 -54
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +15 -16
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +10 -14
- package/dist/types/index.d.ts +1 -13
- package/package.json +1 -1
- 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/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +0 -26
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +0 -21
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +0 -23
- 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 -13
- 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/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +0 -33
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +0 -35
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabs.vue.js +0 -37
- 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 -32
- 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-thumbs.css → swiper-controller.css} +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, mergeModels as I, useModel as w, ref as b, watch as y, nextTick as $, createBlock as s, openBlock as r, unref as i, withCtx as a, renderSlot as f, createVNode as n, normalizeClass as m, createCommentVNode as p, normalizeStyle as B } from "vue";
|
|
2
2
|
import { CloseIcon as V } from "@wikicasa-dev/svg-icons";
|
|
3
3
|
import { ToastProvider as D, ToastRoot as M, ToastTitle as P, ToastDescription as z, ToastClose as S, ToastAction as A, ProgressRoot as N, ProgressIndicator as R, ToastPortal as U, ToastViewport as h } from "reka-ui";
|
|
4
|
-
const q = /* @__PURE__ */
|
|
4
|
+
const q = /* @__PURE__ */ x({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseSnackbar",
|
|
7
7
|
props: /* @__PURE__ */ I({
|
|
8
8
|
alertClass: { default: "primary" },
|
|
9
9
|
duration: { default: 3e3 },
|
|
10
|
-
swipeDirection: { default: "
|
|
10
|
+
swipeDirection: { default: "right" },
|
|
11
11
|
to: { type: [String, Boolean], default: "body" },
|
|
12
12
|
dataCy: { default: "" },
|
|
13
13
|
withCloseIcon: { type: Boolean, default: !0 },
|
|
14
|
-
closeClasses: {},
|
|
15
14
|
viewportClasses: { default: "" },
|
|
16
15
|
type: { default: "foreground" }
|
|
17
16
|
}, {
|
|
@@ -21,95 +20,94 @@ const q = /* @__PURE__ */ b({
|
|
|
21
20
|
refreshModifiers: {}
|
|
22
21
|
}),
|
|
23
22
|
emits: ["update:open", "update:refresh"],
|
|
24
|
-
setup(
|
|
25
|
-
const l = w(
|
|
26
|
-
let
|
|
27
|
-
const
|
|
23
|
+
setup(t) {
|
|
24
|
+
const l = w(t, "open"), v = w(t, "refresh"), o = b(0);
|
|
25
|
+
let k, c;
|
|
26
|
+
const g = (e = 3e3) => {
|
|
28
27
|
o.value = 0;
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
o.value = Math.min(100,
|
|
28
|
+
const u = Date.now();
|
|
29
|
+
c = setInterval(() => {
|
|
30
|
+
const C = Date.now() - u;
|
|
31
|
+
o.value = Math.min(100, C / e * 100), o.value >= 100 && clearInterval(c);
|
|
33
32
|
}, 30);
|
|
34
33
|
}, T = () => {
|
|
35
|
-
clearTimeout(
|
|
34
|
+
clearTimeout(k), k = setTimeout(() => {
|
|
36
35
|
l.value = !1;
|
|
37
|
-
},
|
|
36
|
+
}, t.duration), g(t.duration);
|
|
38
37
|
};
|
|
39
38
|
return y(
|
|
40
39
|
l,
|
|
41
|
-
(
|
|
42
|
-
|
|
43
|
-
if (
|
|
40
|
+
(e) => {
|
|
41
|
+
$(() => {
|
|
42
|
+
if (e) {
|
|
44
43
|
T();
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
clearInterval(
|
|
46
|
+
clearInterval(c), clearTimeout(k), o.value = 0;
|
|
48
47
|
});
|
|
49
48
|
},
|
|
50
49
|
{ immediate: !0 }
|
|
51
|
-
), y(v, (
|
|
52
|
-
|
|
50
|
+
), y(v, (e) => {
|
|
51
|
+
e && (l.value = !1, setTimeout(() => {
|
|
53
52
|
l.value = !0, v.value = !1;
|
|
54
53
|
}));
|
|
55
|
-
}), (
|
|
54
|
+
}), (e, u) => (r(), s(i(D), { "swipe-direction": t.swipeDirection }, {
|
|
56
55
|
default: a(() => [
|
|
57
|
-
|
|
56
|
+
f(e.$slots, "trigger", {
|
|
58
57
|
open: () => l.value = !0
|
|
59
58
|
}),
|
|
60
59
|
n(i(M), {
|
|
61
60
|
open: l.value,
|
|
62
|
-
"onUpdate:open":
|
|
63
|
-
duration:
|
|
64
|
-
class:
|
|
65
|
-
"data-cy":
|
|
66
|
-
type:
|
|
61
|
+
"onUpdate:open": u[1] || (u[1] = (d) => l.value = d),
|
|
62
|
+
duration: t.duration,
|
|
63
|
+
class: m(["uikit-toast-root uikit-relative uikit-flex uikit-gap-[8px] uikit-overflow-hidden uikit-rounded-[4px] uikit-p-[16px] uikit-text-16 uikit-font-medium uikit-shadow-surface sm:uikit-max-w-[460px]", ["uikit-alert", `uikit-alert-w-${t.alertClass}`, e.$attrs.class]]),
|
|
64
|
+
"data-cy": t.dataCy,
|
|
65
|
+
type: t.type
|
|
67
66
|
}, {
|
|
68
67
|
default: a(() => [
|
|
69
|
-
|
|
68
|
+
e.$slots.title ? (r(), s(i(P), {
|
|
70
69
|
key: 0,
|
|
71
70
|
"as-child": ""
|
|
72
71
|
}, {
|
|
73
72
|
default: a(() => [
|
|
74
|
-
|
|
73
|
+
f(e.$slots, "title")
|
|
75
74
|
]),
|
|
76
75
|
_: 3
|
|
77
76
|
})) : p("", !0),
|
|
78
77
|
n(i(z), { "as-child": "" }, {
|
|
79
78
|
default: a(() => [
|
|
80
|
-
|
|
79
|
+
f(e.$slots, "default"),
|
|
80
|
+
t.withCloseIcon ? (r(), s(i(S), {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "uikit-ml-[16px] uikit-flex uikit-size-[24px] uikit-shrink-0 uikit-cursor-pointer uikit-appearance-none uikit-items-center uikit-justify-center uikit-rounded-full uikit-bg-[#C1C8D5]",
|
|
83
|
+
"data-cy": "base-snackbar-close-btn"
|
|
84
|
+
}, {
|
|
85
|
+
default: a(() => [
|
|
86
|
+
n(i(V), {
|
|
87
|
+
width: 12,
|
|
88
|
+
height: 12,
|
|
89
|
+
"stroke-color": "#fff"
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : p("", !0)
|
|
81
94
|
]),
|
|
82
95
|
_: 3
|
|
83
96
|
}),
|
|
84
|
-
e
|
|
97
|
+
e.$slots["toast-action"] ? (r(), s(i(A), {
|
|
85
98
|
key: 1,
|
|
86
|
-
class:
|
|
87
|
-
"data-cy": "base-snackbar-close-btn"
|
|
88
|
-
}, {
|
|
89
|
-
default: a(() => [
|
|
90
|
-
d(t.$slots, "toast-close", {}, () => [
|
|
91
|
-
n(i(V), {
|
|
92
|
-
width: 12,
|
|
93
|
-
height: 12,
|
|
94
|
-
"stroke-color": "#fff"
|
|
95
|
-
})
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
_: 3
|
|
99
|
-
}, 8, ["class"])) : p("", !0),
|
|
100
|
-
t.$slots["toast-action"] ? (r(), u(i(A), {
|
|
101
|
-
key: 2,
|
|
99
|
+
class: "[grid-area:_action]",
|
|
102
100
|
"as-child": "",
|
|
103
101
|
"alt-text": "Goto schedule to undo"
|
|
104
102
|
}, {
|
|
105
103
|
default: a(() => [
|
|
106
|
-
|
|
104
|
+
f(e.$slots, "toast-action")
|
|
107
105
|
]),
|
|
108
106
|
_: 3
|
|
109
107
|
})) : p("", !0),
|
|
110
108
|
n(i(N), {
|
|
111
109
|
modelValue: o.value,
|
|
112
|
-
"onUpdate:modelValue":
|
|
110
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => o.value = d),
|
|
113
111
|
class: "uikit-absolute uikit-bottom-0 uikit-left-0 uikit-h-[4px] uikit-w-full uikit-overflow-hidden"
|
|
114
112
|
}, {
|
|
115
113
|
default: a(() => [
|
|
@@ -123,19 +121,19 @@ const q = /* @__PURE__ */ b({
|
|
|
123
121
|
]),
|
|
124
122
|
_: 3
|
|
125
123
|
}, 8, ["open", "duration", "class", "data-cy", "type"]),
|
|
126
|
-
|
|
124
|
+
t.to ? (r(), s(i(U), {
|
|
127
125
|
key: 0,
|
|
128
|
-
to:
|
|
126
|
+
to: t.to
|
|
129
127
|
}, {
|
|
130
128
|
default: a(() => [
|
|
131
129
|
n(i(h), {
|
|
132
|
-
class:
|
|
130
|
+
class: m(["uikit-alert-viewport uikit-m-0 uikit-w-full uikit-list-none uikit-gap-[8px]", t.viewportClasses])
|
|
133
131
|
}, null, 8, ["class"])
|
|
134
132
|
]),
|
|
135
133
|
_: 1
|
|
136
|
-
}, 8, ["to"])) : (r(),
|
|
134
|
+
}, 8, ["to"])) : (r(), s(i(h), {
|
|
137
135
|
key: 1,
|
|
138
|
-
class:
|
|
136
|
+
class: m(["uikit-alert-viewport uikit-m-0 uikit-w-full uikit-list-none uikit-gap-[8px]", t.viewportClasses])
|
|
139
137
|
}, null, 8, ["class"]))
|
|
140
138
|
]),
|
|
141
139
|
_: 3
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, mergeModels as n, useModel as d, createElementBlock as k, openBlock as c, renderSlot as u, createVNode as a, createCommentVNode as m, unref as o, withCtx as f, createElementVNode as p } from "vue";
|
|
2
2
|
import { SwitchRoot as b, SwitchThumb as h } from "reka-ui";
|
|
3
|
-
const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["innerHTML"],
|
|
3
|
+
const g = { class: "uikit-flex uikit-items-center uikit-gap-[8px]" }, w = ["innerHTML"], y = /* @__PURE__ */ s({
|
|
4
|
+
inheritAttrs: !1,
|
|
4
5
|
__name: "BaseToggle",
|
|
5
|
-
props: /* @__PURE__ */
|
|
6
|
-
label: {}
|
|
7
|
-
dataCy: {}
|
|
6
|
+
props: /* @__PURE__ */ n({
|
|
7
|
+
label: {}
|
|
8
8
|
}, {
|
|
9
9
|
modelValue: { type: Boolean, default: !1 },
|
|
10
10
|
modelModifiers: {}
|
|
11
11
|
}),
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const i =
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
setup(t) {
|
|
14
|
+
const i = d(t, "modelValue");
|
|
15
|
+
return (e, l) => (c(), k("div", g, [
|
|
16
|
+
u(e.$slots, "leftLabel"),
|
|
17
|
+
a(o(b), {
|
|
18
18
|
modelValue: i.value,
|
|
19
19
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => i.value = r),
|
|
20
|
-
"data-cy": e.dataCy,
|
|
21
20
|
class: "uikit-flex uikit-h-[20px] uikit-w-[40px] uikit-cursor-pointer uikit-rounded-full uikit-p-0 uikit-transition-[background] uikit-will-change-[background] focus-visible:uikit-outline-w-primary data-[state=checked]:uikit-bg-w-primary data-[state=unchecked]:uikit-bg-w-cultured"
|
|
22
21
|
}, {
|
|
23
22
|
default: f(() => [
|
|
24
|
-
|
|
23
|
+
a(o(h), { class: "uikit-box-border uikit-flex uikit-size-[20px] uikit-translate-x-0 uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-lightgray uikit-bg-white uikit-shadow-xl uikit-transition-transform uikit-will-change-transform data-[state=checked]:uikit-translate-x-full" })
|
|
25
24
|
]),
|
|
26
25
|
_: 1
|
|
27
|
-
}, 8, ["modelValue"
|
|
28
|
-
|
|
26
|
+
}, 8, ["modelValue"]),
|
|
27
|
+
e.$slots.leftLabel ? m("", !0) : u(e.$slots, "rightLabel", { key: 0 }, () => [
|
|
29
28
|
p("span", {
|
|
30
29
|
class: "uikit-ml-[10px]",
|
|
31
|
-
innerHTML:
|
|
30
|
+
innerHTML: t.label
|
|
32
31
|
}, null, 8, w)
|
|
33
32
|
])
|
|
34
33
|
]));
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
y as default
|
|
39
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { RadioGroupItem as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as n, unref as p, normalizeProps as i, guardReactiveProps as d, withCtx as l, renderSlot as s } from "vue";
|
|
2
|
+
import { RadioGroupItem as m } from "reka-ui";
|
|
3
|
+
const _ = /* @__PURE__ */ r({
|
|
4
4
|
__name: "RadioGroupItemPrimitive",
|
|
5
5
|
props: {
|
|
6
6
|
dataCy: {},
|
|
@@ -12,20 +12,16 @@ const v = /* @__PURE__ */ n({
|
|
|
12
12
|
name: {},
|
|
13
13
|
required: { type: Boolean }
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onSelect: o[0] || (o[0] = (e) => s("select", e))
|
|
21
|
-
}), {
|
|
22
|
-
default: u((e) => [
|
|
23
|
-
y(i.$slots, "default", f(C(e)))
|
|
15
|
+
setup(e) {
|
|
16
|
+
const o = e;
|
|
17
|
+
return (t, u) => (n(), a(p(m), i(d(o)), {
|
|
18
|
+
default: l(() => [
|
|
19
|
+
s(t.$slots, "default")
|
|
24
20
|
]),
|
|
25
21
|
_: 3
|
|
26
|
-
}, 16
|
|
22
|
+
}, 16));
|
|
27
23
|
}
|
|
28
24
|
});
|
|
29
25
|
export {
|
|
30
|
-
|
|
26
|
+
_ as default
|
|
31
27
|
};
|
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';
|
|
@@ -11,16 +12,3 @@ export type { RadioButtonGroupProps } from '../UIKit/Radio/v2/RadioButtonGroup';
|
|
|
11
12
|
export type { RadioButtonItemProps } from '../UIKit/Radio/v2/RadioButtonItem';
|
|
12
13
|
export type { RadioGroupItemPrimitiveProps } from '../UIKit/Radio/v2/RadioGroupItemPrimitive';
|
|
13
14
|
export type { CheckboxButtonGroupProps, CheckboxButtonItem, } from '../UIKit/Checkbox/v2/CheckboxButtonGroup';
|
|
14
|
-
export type { CheckboxGroupPrimitiveProps } from '../UIKit/Checkbox/v2/CheckboxGroupPrimitive';
|
|
15
|
-
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,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,26 +0,0 @@
|
|
|
1
|
-
import { CheckboxRootProps } from 'reka-ui';
|
|
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"> {
|
|
4
|
-
dataCy?: string;
|
|
5
|
-
value: CheckboxGroupItemPrimitiveValueType<T>;
|
|
6
|
-
}
|
|
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;
|
|
18
|
-
};
|
|
19
|
-
emit: (evt: "update:modelValue", value: boolean | "indeterminate") => void;
|
|
20
|
-
}>) => import('vue').VNode & {
|
|
21
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CheckboxGroupRootProps, AcceptableValue } from 'reka-ui';
|
|
2
|
-
export interface CheckboxGroupPrimitiveProps<T extends AcceptableValue> extends CheckboxGroupRootProps<T> {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
}
|
|
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;
|
|
13
|
-
};
|
|
14
|
-
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
15
|
-
}>) => import('vue').VNode & {
|
|
16
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_PrettifyLocal<T> = {
|
|
20
|
-
[K in keyof T]: T[K];
|
|
21
|
-
} & {};
|
|
@@ -1,23 +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
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & BaseTabsProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
9
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
10
|
-
attrs: any;
|
|
11
|
-
slots: {
|
|
12
|
-
default?(_: {
|
|
13
|
-
modelValue: T;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
emit: (evt: "update:modelValue", payload: T) => void;
|
|
17
|
-
}>) => import('vue').VNode & {
|
|
18
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
21
|
-
type __VLS_PrettifyLocal<T> = {
|
|
22
|
-
[K in keyof T]: T[K];
|
|
23
|
-
} & {};
|
|
@@ -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,13 +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, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseTabsIndicatorProps> & 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,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}
|
|
@@ -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
|
-
};
|