@bridge-ui/vue 0.16.0 → 0.17.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.
- package/ai/skills/bridge-ui-components/SKILL.md +2 -1
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +1 -1
- package/dist/Actions/actionHostRegistry.d.ts +2 -1
- package/dist/Actions/actionHostRegistry.js +11 -7
- package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Chart/composables/useChart.js +16 -14
- package/dist/Components/DataTable/DataTable.vue.d.ts +5 -3
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +114 -101
- package/dist/Components/DataTable/composables/useDataTable.d.ts +4 -2
- package/dist/Components/DataTable/composables/useDataTable.js +293 -273
- package/dist/Components/DataTable/dataTable.types.d.ts +35 -2
- package/dist/Components/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/Components/Drawer/composables/useDrawer.js +68 -67
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +3 -5
- package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/Components/Modal/composables/useModal.js +129 -119
- package/dist/Components/Pagination/Pagination.vue.d.ts +6 -0
- package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +23 -11
- package/dist/Components/Pagination/composables/usePagination.d.ts +3 -3
- package/dist/Components/Pagination/composables/usePagination.js +95 -84
- package/dist/Components/Pagination/pagination.types.d.ts +30 -2
- package/dist/Components/Resizable/Resizable.js +5 -0
- package/dist/Components/Resizable/Resizable.vue.d.ts +17 -0
- package/dist/Components/Resizable/Resizable.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/Resizable/composables/useResizable.d.ts +18 -0
- package/dist/Components/Resizable/composables/useResizable.js +195 -0
- package/dist/Components/Resizable/index.d.ts +4 -0
- package/dist/Components/Resizable/index.js +4 -0
- package/dist/Components/Resizable/resizable.types.d.ts +53 -0
- package/dist/Components/Resizable/resizableInjectionKey.d.ts +111 -0
- package/dist/Components/Resizable/resizableInjectionKey.js +4 -0
- package/dist/Components/ResizableHandle/ResizableHandle.js +5 -0
- package/dist/Components/ResizableHandle/ResizableHandle.vue.d.ts +14 -0
- package/dist/Components/ResizableHandle/ResizableHandle.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/ResizableHandle/composables/useResizableHandle.d.ts +35 -0
- package/dist/Components/ResizableHandle/composables/useResizableHandle.js +85 -0
- package/dist/Components/ResizableHandle/index.d.ts +3 -0
- package/dist/Components/ResizableHandle/index.js +3 -0
- package/dist/Components/ResizableHandle/resizableHandle.types.d.ts +58 -0
- package/dist/Components/ResizablePanel/ResizablePanel.js +5 -0
- package/dist/Components/ResizablePanel/ResizablePanel.vue.d.ts +24 -0
- package/dist/Components/ResizablePanel/ResizablePanel.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +21 -0
- package/dist/Components/ResizablePanel/composables/useResizablePanel.js +87 -0
- package/dist/Components/ResizablePanel/index.d.ts +3 -0
- package/dist/Components/ResizablePanel/index.js +3 -0
- package/dist/Components/ResizablePanel/resizablePanel.types.d.ts +71 -0
- package/dist/Components/Snackbar/composables/useSnackbar.js +140 -146
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +4 -6
- package/dist/Utils/LoadingSpin.js +5 -0
- package/dist/Utils/LoadingSpin.vue.d.ts +3 -0
- package/dist/Utils/LoadingSpin.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/augments.d.ts +15 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +70 -63
- package/docs/README.md +1 -0
- package/docs/components/Chart.md +3 -1
- package/docs/components/DataTable.md +19 -0
- package/docs/components/Pagination.md +17 -5
- package/docs/components/Resizable.md +224 -0
- package/package.json +2 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as ee } from "../../../Utils/index.js";
|
|
2
|
-
import { snackbarDefaultIcons as
|
|
3
|
-
import { computed as
|
|
4
|
-
import { get as
|
|
5
|
-
import { snackbarColorProps as
|
|
6
|
-
import { cn as
|
|
7
|
-
import {
|
|
2
|
+
import { snackbarDefaultIcons as te } from "../snackbarDefaultIcons.js";
|
|
3
|
+
import { computed as r, nextTick as ne, onBeforeUnmount as re, ref as i, toValue as ie, useAttrs as ae, watch as a } from "vue";
|
|
4
|
+
import { get as o, isNil as oe, isNull as se, isObject as ce, omit as le } from "es-toolkit/compat";
|
|
5
|
+
import { snackbarColorProps as ue, snackbarPaddingProps as de, snackbarPositionProps as fe, snackbarRoundedProps as pe, snackbarTransitionProps as me } from "@bridge-ui/core/Tokens";
|
|
6
|
+
import { cn as s, mergeBridgeUILayeredClasses as c, splitComponentProps as he } from "@bridge-ui/core/Utils";
|
|
7
|
+
import { requestAfterNextPaint as l } from "@bridge-ui/core/Runtime";
|
|
8
|
+
import { LAYER_STACK_BASE_Z_INDEX as u, SNACKBAR_LEAVE_FALLBACK_MS as ge, acquireLayerStackOrder as _e, getLayerStackEntry as ve, getSnackbarTransitionClass as ye, hasSnackbarTransition as be, pushLayerStack as xe, resolveEffectiveSnackbarTransition as Se, subscribeLayerStack as d } from "@bridge-ui/core/Layer";
|
|
8
9
|
//#region src/Components/Snackbar/composables/useSnackbar.ts
|
|
9
|
-
var
|
|
10
|
+
var Ce = [
|
|
10
11
|
"img",
|
|
11
12
|
"icon",
|
|
12
13
|
"color",
|
|
@@ -24,210 +25,203 @@ var be = [
|
|
|
24
25
|
"description",
|
|
25
26
|
"progressbar"
|
|
26
27
|
];
|
|
27
|
-
function
|
|
28
|
-
let
|
|
28
|
+
function f(f, we, p = {}) {
|
|
29
|
+
let Te = ae(), m = i(!1), h = i(""), g = i(1), _ = i(0), v = i(!1), y = i(!1), b = i(0), x = i(!1), S = null, C = i(0), w = i(null), T = null, E = null, D = i(u), O = null, k = i("closed"), A = i(null), j = null, M = r(() => he({
|
|
29
30
|
props: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
31
|
+
...Te,
|
|
32
|
+
...f
|
|
32
33
|
},
|
|
33
|
-
bridgeKeys:
|
|
34
|
-
})), { merged:
|
|
35
|
-
libDefaults:
|
|
34
|
+
bridgeKeys: Ce
|
|
35
|
+
})), { merged: N, entry: P } = n({
|
|
36
|
+
libDefaults: we,
|
|
36
37
|
componentName: "Snackbar",
|
|
37
|
-
props: () =>
|
|
38
|
-
}),
|
|
39
|
-
entry:
|
|
40
|
-
props: () =>
|
|
41
|
-
}),
|
|
42
|
-
let e =
|
|
43
|
-
return
|
|
44
|
-
}),
|
|
45
|
-
let e =
|
|
46
|
-
return
|
|
47
|
-
}),
|
|
48
|
-
let e =
|
|
49
|
-
return
|
|
50
|
-
}),
|
|
51
|
-
let e =
|
|
52
|
-
return
|
|
53
|
-
}),
|
|
54
|
-
if (!
|
|
55
|
-
let e =
|
|
56
|
-
return
|
|
38
|
+
props: () => M.value.componentProps
|
|
39
|
+
}), F = r(() => N.value.customProps), I = r(() => le(M.value.inheritedAttrs, ["onShowChange"])), L = ee({
|
|
40
|
+
entry: P,
|
|
41
|
+
props: () => M.value.componentProps
|
|
42
|
+
}), R = r(() => !oe(p.show) && ie(p.show)), z = r(() => {
|
|
43
|
+
let e = N.value.transition ?? "none", t = e in me ? e : "none";
|
|
44
|
+
return Se(t);
|
|
45
|
+
}), B = r(() => be(z.value)), Ee = r(() => ye(z.value)), V = r(() => {
|
|
46
|
+
let e = c(ue, P.value?.tokens?.color);
|
|
47
|
+
return o(e, N.value.color);
|
|
48
|
+
}), H = r(() => {
|
|
49
|
+
let e = c(de, P.value?.tokens?.padding);
|
|
50
|
+
return o(e, N.value.padding);
|
|
51
|
+
}), De = r(() => {
|
|
52
|
+
let e = c(pe, P.value?.tokens?.rounded);
|
|
53
|
+
return o(e, N.value.rounded);
|
|
54
|
+
}), Oe = r(() => se(N.value.icon) ? null : N.value.icon ? N.value.icon : o(V.value, "icon") ?? o(te, N.value.color)), U = r(() => N.value.duration === !1 ? 0 : N.value.duration ?? 0), W = r(() => R.value && m.value && U.value > 0 && N.value.progressbar !== !1), G = r(() => N.value.teleportTo !== !1), ke = r(() => {
|
|
55
|
+
if (!G.value) return "";
|
|
56
|
+
let e = c(fe, P.value?.tokens?.position);
|
|
57
|
+
return o(e, N.value.position ?? "bottom-center");
|
|
57
58
|
});
|
|
59
|
+
function K() {
|
|
60
|
+
A.value &&= (clearTimeout(A.value), null);
|
|
61
|
+
}
|
|
58
62
|
function q() {
|
|
59
|
-
|
|
63
|
+
j !== null && (clearTimeout(j), j = null);
|
|
60
64
|
}
|
|
61
65
|
function J() {
|
|
62
|
-
|
|
66
|
+
E?.(), E = null;
|
|
63
67
|
}
|
|
64
68
|
function Y(e) {
|
|
65
|
-
e ||
|
|
69
|
+
e || p.onClose?.(), ce(p.show) && "value" in p.show && (p.show.value = e), p.onShowChange?.(e);
|
|
66
70
|
}
|
|
67
71
|
function X() {
|
|
68
|
-
|
|
72
|
+
y.value && (y.value = !1, k.value = "closed", K(), q(), R.value ? Y(!1) : p.onLeaveComplete?.(), m.value = !1);
|
|
69
73
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
74
|
+
function Ae() {
|
|
75
|
+
if (J(), K(), y.value = !0, !B.value) {
|
|
72
76
|
X();
|
|
73
77
|
return;
|
|
74
78
|
}
|
|
75
|
-
|
|
79
|
+
k.value = "closed", q(), j = setTimeout(() => {
|
|
76
80
|
j = null, X();
|
|
77
|
-
},
|
|
81
|
+
}, ge);
|
|
78
82
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
|
|
83
|
+
function je() {
|
|
84
|
+
if (y.value = !1, q(), !B.value) {
|
|
85
|
+
k.value = "open";
|
|
82
86
|
return;
|
|
83
87
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
D.value = "open";
|
|
87
|
-
});
|
|
88
|
+
k.value = "closed", J(), E = l(() => {
|
|
89
|
+
k.value = "open";
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
function Z() {
|
|
91
|
-
|
|
93
|
+
R.value && Y(!1);
|
|
92
94
|
}
|
|
93
95
|
function Q(e) {
|
|
94
|
-
|
|
96
|
+
K(), _.value = e, b.value = Date.now(), C.value = e, A.value = setTimeout(() => {
|
|
95
97
|
Z();
|
|
96
98
|
}, e);
|
|
97
99
|
}
|
|
98
|
-
function
|
|
99
|
-
!
|
|
100
|
+
function Me() {
|
|
101
|
+
!A.value || U.value <= 0 || (K(), _.value -= Date.now() - b.value, g.value = Math.max(_.value / U.value, 0), x.value = !1, v.value = !0);
|
|
100
102
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
103
|
-
let e = Math.max(
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
function Ne() {
|
|
104
|
+
if (U.value <= 0 || !v.value) return;
|
|
105
|
+
let e = Math.max(_.value, 0);
|
|
106
|
+
v.value = !1, x.value = !1, requestAnimationFrame(() => {
|
|
107
|
+
x.value = !0;
|
|
106
108
|
}), Q(e);
|
|
107
109
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
+
function Pe(e) {
|
|
111
|
+
y.value && m.value && k.value === "closed" && e.target === e.currentTarget && e.propertyName !== "none" && e.elapsedTime !== 0 && X();
|
|
110
112
|
}
|
|
111
|
-
|
|
113
|
+
a(R, (e) => {
|
|
112
114
|
if (e) {
|
|
113
|
-
|
|
115
|
+
m.value = !0, je();
|
|
114
116
|
return;
|
|
115
117
|
}
|
|
116
|
-
|
|
117
|
-
}, { immediate: !0 }),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
m.value && Ae();
|
|
119
|
+
}, { immediate: !0 }), a([
|
|
120
|
+
R,
|
|
121
|
+
m,
|
|
122
|
+
U
|
|
121
123
|
], ([e, t, n]) => {
|
|
122
124
|
if (!e || !t || n <= 0) {
|
|
123
|
-
|
|
125
|
+
K();
|
|
124
126
|
return;
|
|
125
127
|
}
|
|
126
|
-
|
|
127
|
-
}, { immediate: !0 }),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
C.value = !1, v.value = 1;
|
|
133
|
-
let t = requestAnimationFrame(() => {
|
|
134
|
-
C.value = !0;
|
|
135
|
-
});
|
|
136
|
-
return () => {
|
|
137
|
-
cancelAnimationFrame(t);
|
|
138
|
-
};
|
|
128
|
+
v.value = !1, Q(n);
|
|
129
|
+
}, { immediate: !0 }), a([U, W], ([, e], t, n) => {
|
|
130
|
+
x.value = !1, g.value = 1, e && n(l(() => {
|
|
131
|
+
x.value = !0;
|
|
132
|
+
}));
|
|
139
133
|
}, { immediate: !0 });
|
|
140
134
|
function $() {
|
|
141
|
-
let e =
|
|
142
|
-
e && (
|
|
135
|
+
let e = ve(h.value);
|
|
136
|
+
e && (D.value = e.zIndex);
|
|
143
137
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
138
|
+
function Fe(e) {
|
|
139
|
+
w.value = t(e), T?.setContainer(w.value);
|
|
146
140
|
}
|
|
147
|
-
|
|
148
|
-
t && (e ? (
|
|
149
|
-
order:
|
|
141
|
+
a([m, G], ([e, t]) => {
|
|
142
|
+
t && (e ? (S = _e(), T = xe({
|
|
143
|
+
order: S,
|
|
150
144
|
lockScroll: !1,
|
|
151
|
-
id:
|
|
152
|
-
container:
|
|
145
|
+
id: p.stackId,
|
|
146
|
+
container: w.value ?? void 0,
|
|
153
147
|
onEscape: () => {
|
|
154
148
|
Z();
|
|
155
149
|
}
|
|
156
|
-
}),
|
|
157
|
-
|
|
158
|
-
})) : (
|
|
159
|
-
}, { immediate: !0 }),
|
|
160
|
-
q(), J(),
|
|
150
|
+
}), h.value = T.id, D.value = T.zIndex, $(), O = d($), ne(() => {
|
|
151
|
+
T?.setContainer(w.value);
|
|
152
|
+
})) : (O?.(), O = null, T?.release(), T = null, S = null, h.value = "", D.value = u));
|
|
153
|
+
}, { immediate: !0 }), re(() => {
|
|
154
|
+
K(), q(), J(), O?.(), O = null, T?.release(), T = null;
|
|
161
155
|
});
|
|
162
|
-
let
|
|
156
|
+
let Ie = r(() => e(F.value?.portal, {
|
|
163
157
|
"data-snackbar-layer": !0,
|
|
164
|
-
style: { zIndex:
|
|
165
|
-
},
|
|
158
|
+
style: { zIndex: D.value }
|
|
159
|
+
}, s({
|
|
166
160
|
"fixed inset-0 flex pointer-events-none px-4 py-6 sm:p-5 sm:pt-4": !0,
|
|
167
|
-
[
|
|
168
|
-
[
|
|
169
|
-
}))),
|
|
170
|
-
...
|
|
161
|
+
[ke.value ?? ""]: !0,
|
|
162
|
+
[o(L.value, "portal") ?? ""]: !0
|
|
163
|
+
}))), Le = r(() => e(F.value?.root, {
|
|
164
|
+
...I.value,
|
|
171
165
|
"data-snackbar-part": "panel",
|
|
172
|
-
onMouseenter:
|
|
173
|
-
onMouseleave:
|
|
174
|
-
"data-state":
|
|
175
|
-
onTransitionend:
|
|
176
|
-
role:
|
|
177
|
-
"aria-live":
|
|
178
|
-
},
|
|
166
|
+
onMouseenter: Me,
|
|
167
|
+
onMouseleave: Ne,
|
|
168
|
+
"data-state": k.value,
|
|
169
|
+
onTransitionend: Pe,
|
|
170
|
+
role: I.value.role ?? "status",
|
|
171
|
+
"aria-live": I.value["aria-live"] ?? "polite"
|
|
172
|
+
}, s({
|
|
179
173
|
"relative w-full max-w-sm overflow-hidden pointer-events-auto": !0,
|
|
180
174
|
"bg-white shadow-lg ring-1 ring-black/5": !0,
|
|
181
175
|
"dark:bg-dark-800 dark:border dark:border-dark-700": !0,
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
}))),
|
|
176
|
+
[o(De.value, "base") ?? ""]: !0,
|
|
177
|
+
[Ee.value]: B.value,
|
|
178
|
+
[o(L.value, "root") ?? ""]: !0
|
|
179
|
+
}))), Re = r(() => e(F.value?.icon, {}, s({
|
|
186
180
|
"w-6 h-6 shrink-0": !0,
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
}))),
|
|
181
|
+
[o(V.value, "iconColor") ?? ""]: !0,
|
|
182
|
+
[o(L.value, "icon") ?? ""]: !0
|
|
183
|
+
}))), ze = r(() => e(F.value?.title, {}, s({
|
|
190
184
|
"text-sm font-medium": !0,
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
}))),
|
|
185
|
+
[o(V.value, "titleColor") ?? ""]: !0,
|
|
186
|
+
[o(L.value, "title") ?? ""]: !0
|
|
187
|
+
}))), Be = r(() => e(F.value?.description, {}, s({
|
|
194
188
|
"mt-1 text-sm text-dark-500 dark:text-dark-500": !0,
|
|
195
|
-
[
|
|
196
|
-
}))),
|
|
197
|
-
class:
|
|
189
|
+
[o(L.value, "description") ?? ""]: !0
|
|
190
|
+
}))), Ve = r(() => e(F.value?.progress, {}, {
|
|
191
|
+
class: s({
|
|
198
192
|
"absolute bottom-0 left-0 h-0.5 w-full rounded-full": !0,
|
|
199
|
-
[
|
|
200
|
-
[
|
|
193
|
+
[o(V.value, "progressColor") ?? ""]: !0,
|
|
194
|
+
[o(L.value, "progress") ?? ""]: !0
|
|
201
195
|
}),
|
|
202
|
-
style:
|
|
196
|
+
style: W.value ? {
|
|
203
197
|
transformOrigin: "left center",
|
|
204
|
-
transform: `scaleX(${
|
|
205
|
-
transition:
|
|
198
|
+
transform: `scaleX(${x.value && !v.value ? 0 : g.value})`,
|
|
199
|
+
transition: x.value && !v.value ? `transform ${C.value}ms linear` : "none"
|
|
206
200
|
} : void 0
|
|
207
201
|
}));
|
|
208
|
-
function
|
|
209
|
-
return e(
|
|
210
|
-
[
|
|
211
|
-
[
|
|
212
|
-
[
|
|
202
|
+
function He(t) {
|
|
203
|
+
return e(F.value?.content, {}, s({
|
|
204
|
+
[o(H.value, "contentRight") ?? ""]: t,
|
|
205
|
+
[o(H.value, "content") ?? ""]: !t,
|
|
206
|
+
[o(L.value, "content") ?? ""]: !0
|
|
213
207
|
}));
|
|
214
208
|
}
|
|
215
209
|
return {
|
|
216
|
-
merged:
|
|
217
|
-
iconBind:
|
|
218
|
-
rendered:
|
|
219
|
-
panelBind:
|
|
220
|
-
titleBind:
|
|
221
|
-
isPortaled:
|
|
222
|
-
portalBind:
|
|
223
|
-
contentBind:
|
|
224
|
-
setPanelRef:
|
|
225
|
-
showProgress:
|
|
226
|
-
progressBind:
|
|
210
|
+
merged: N,
|
|
211
|
+
iconBind: Re,
|
|
212
|
+
rendered: m,
|
|
213
|
+
panelBind: Le,
|
|
214
|
+
titleBind: ze,
|
|
215
|
+
isPortaled: G,
|
|
216
|
+
portalBind: Ie,
|
|
217
|
+
contentBind: He,
|
|
218
|
+
setPanelRef: Fe,
|
|
219
|
+
showProgress: W,
|
|
220
|
+
progressBind: Ve,
|
|
227
221
|
requestClose: Z,
|
|
228
|
-
resolvedIcon:
|
|
229
|
-
descriptionBind:
|
|
222
|
+
resolvedIcon: Oe,
|
|
223
|
+
descriptionBind: Be
|
|
230
224
|
};
|
|
231
225
|
}
|
|
232
226
|
//#endregion
|
|
233
|
-
export {
|
|
227
|
+
export { f as useSnackbar };
|
|
@@ -57,16 +57,14 @@ var x = /*@__PURE__*/ d({
|
|
|
57
57
|
C.onShowChange?.(e), S("show-change", e);
|
|
58
58
|
}
|
|
59
59
|
}), P = a(() => T.value.teleportTo === !1), F = a(() => T.value.teleportTo === !1 ? "body" : T.value.teleportTo);
|
|
60
|
-
return (n, a) => (h(), c(r, null, [v(e)(v(x), "trigger") ? (h(), c("div", m(p({ key: 0 }, v(D))), [l("div", p({ ref: v(M) }, v(k)), [g(n.$slots, "trigger")], 16)], 16)) : s("", !0), (h(), o(i, {
|
|
60
|
+
return (n, a) => (h(), c(r, null, [v(e)(v(x), "trigger") ? (h(), c("div", m(p({ key: 0 }, v(D))), [l("div", p({ ref: v(M) }, v(k)), [g(n.$slots, "trigger")], 16)], 16)) : s("", !0), v(E) ? (h(), o(i, {
|
|
61
|
+
key: 1,
|
|
61
62
|
to: F.value,
|
|
62
63
|
disabled: P.value
|
|
63
|
-
}, [v(
|
|
64
|
-
key: 0,
|
|
65
|
-
ref: v(N)
|
|
66
|
-
}, v(A)), [v(e)(v(x), "default") ? g(n.$slots, "default", {}, void 0, void 0, 0) : v(t)(v(T).content) ? (h(), c(r, { key: 1 }, [u(_(v(T).content), 1)], 64)) : s("", !0), v(O) ? (h(), c("div", p({
|
|
64
|
+
}, [l("div", p({ ref: v(N) }, v(A)), [v(e)(v(x), "default") ? g(n.$slots, "default", {}, void 0, void 0, 0) : v(t)(v(T).content) ? (h(), c(r, { key: 1 }, [u(_(v(T).content), 1)], 64)) : s("", !0), v(O) ? (h(), c("div", p({
|
|
67
65
|
key: 2,
|
|
68
66
|
ref: v(j)
|
|
69
|
-
}, v(O)), null, 16)) : s("", !0)], 16)
|
|
67
|
+
}, v(O)), null, 16)) : s("", !0)], 16)], 8, ["to", "disabled"])) : s("", !0)], 64));
|
|
70
68
|
}
|
|
71
69
|
});
|
|
72
70
|
//#endregion
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useResolveMessage as e } from "../Adapters/I18n/useI18nAdapter.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
3
|
+
//#region src/Utils/LoadingSpin.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var o = ["aria-label"], s = /*@__PURE__*/ r({
|
|
5
|
+
__name: "LoadingSpin",
|
|
6
|
+
setup(r) {
|
|
7
|
+
let s = e();
|
|
8
|
+
return (e, r) => (i(), t("span", {
|
|
9
|
+
role: "status",
|
|
10
|
+
"aria-label": a(s)("Loading"),
|
|
11
|
+
class: "relative inline-block size-5 animate-spin motion-reduce:animate-none"
|
|
12
|
+
}, [...r[0] ||= [
|
|
13
|
+
n("span", { class: "absolute inset-s-0 top-0 size-2 rounded-full bg-primary-500 opacity-30 dark:bg-primary-400" }, null, -1),
|
|
14
|
+
n("span", { class: "absolute inset-e-0 top-0 size-2 rounded-full bg-primary-500 opacity-50 dark:bg-primary-400" }, null, -1),
|
|
15
|
+
n("span", { class: "absolute inset-e-0 bottom-0 size-2 rounded-full bg-primary-500 dark:bg-primary-400" }, null, -1),
|
|
16
|
+
n("span", { class: "absolute inset-s-0 bottom-0 size-2 rounded-full bg-primary-500 opacity-70 dark:bg-primary-400" }, null, -1)
|
|
17
|
+
]], 8, o));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { s as default };
|
package/dist/augments.d.ts
CHANGED
|
@@ -30,6 +30,9 @@ import { OtpFieldClasses, OtpFieldProps } from './Components/OtpField';
|
|
|
30
30
|
import { PasswordFieldClasses, PasswordFieldProps } from './Components/PasswordField';
|
|
31
31
|
import { ProgressClasses, ProgressProps } from './Components/Progress';
|
|
32
32
|
import { RadioClasses, RadioProps } from './Components/Radio';
|
|
33
|
+
import { ResizableClasses, ResizableProps } from './Components/Resizable/resizable.types';
|
|
34
|
+
import { ResizableHandleClasses, ResizableHandleProps } from './Components/ResizableHandle/resizableHandle.types';
|
|
35
|
+
import { ResizablePanelClasses, ResizablePanelProps } from './Components/ResizablePanel/resizablePanel.types';
|
|
33
36
|
import { RichTextEditorClasses, RichTextEditorProps } from './Components/RichTextEditor/richTextEditor.types';
|
|
34
37
|
import { SelectClasses, SelectProps } from './Components/Select';
|
|
35
38
|
import { SidebarClasses, SidebarInsetClasses, SidebarProps, SidebarProviderClasses, SidebarProviderProps } from './Components/Sidebar';
|
|
@@ -163,6 +166,18 @@ declare module "@bridge-ui/core/Config" {
|
|
|
163
166
|
classes: RadioClasses;
|
|
164
167
|
defaultProps: Partial<Pick<RadioProps, "size" | "color" | "rounded" | "hideErrorMessage">>;
|
|
165
168
|
}
|
|
169
|
+
interface ResizableConfigOverrides {
|
|
170
|
+
classes: ResizableClasses;
|
|
171
|
+
defaultProps: Partial<Pick<ResizableProps, "disabled" | "orientation" | "keyboardStep">>;
|
|
172
|
+
}
|
|
173
|
+
interface ResizableHandleConfigOverrides {
|
|
174
|
+
classes: ResizableHandleClasses;
|
|
175
|
+
defaultProps: Partial<Pick<ResizableHandleProps, "disabled" | "hideGrip">>;
|
|
176
|
+
}
|
|
177
|
+
interface ResizablePanelConfigOverrides {
|
|
178
|
+
classes: ResizablePanelClasses;
|
|
179
|
+
defaultProps: Partial<Pick<ResizablePanelProps, "maxSize" | "minSize" | "collapsible" | "collapsedSize">>;
|
|
180
|
+
}
|
|
166
181
|
interface RichTextEditorConfigOverrides {
|
|
167
182
|
classes: RichTextEditorClasses;
|
|
168
183
|
defaultProps: Partial<Pick<RichTextEditorProps, "size" | "color" | "format" | "rounded" | "variant" | "showErrorIcon" | "hideErrorMessage" | "showDescriptionOnError">>;
|
package/dist/index.d.ts
CHANGED
|
@@ -114,6 +114,12 @@ export { Radio, useRadio } from './Components/Radio';
|
|
|
114
114
|
export type { RadioClasses, RadioColorOverrides, RadioCustomProps, RadioOwnProps, RadioProps, RadioRoundedOverrides, RadioSizeOverrides, RadioSlots, } from './Components/Radio';
|
|
115
115
|
export { Rating, useRating } from './Components/Rating';
|
|
116
116
|
export type { RatingClasses, RatingColorOverrides, RatingCustomProps, RatingEmits, RatingItemState, RatingOwnProps, RatingProps, RatingSizeOverrides, RatingSlots, } from './Components/Rating';
|
|
117
|
+
export { RESIZABLE_INJECTION_KEY, Resizable, useResizable, } from './Components/Resizable';
|
|
118
|
+
export type { ResizableClasses, ResizableContextValue, ResizableEmits, ResizableOwnProps, ResizableProps, ResizableSlots, } from './Components/Resizable';
|
|
119
|
+
export { ResizableHandle, useResizableHandle, } from './Components/ResizableHandle';
|
|
120
|
+
export type { ResizableHandleClasses, ResizableHandleCustomProps, ResizableHandleOwnProps, ResizableHandleProps, ResizableHandleSlots, } from './Components/ResizableHandle';
|
|
121
|
+
export { ResizablePanel, useResizablePanel } from './Components/ResizablePanel';
|
|
122
|
+
export type { ResizablePanelClasses, ResizablePanelEmits, ResizablePanelOwnProps, ResizablePanelProps, ResizablePanelSlots, } from './Components/ResizablePanel';
|
|
117
123
|
export { Select, SelectOption } from './Components/Select';
|
|
118
124
|
export type { SelectAsyncData, SelectClasses, SelectEmits, SelectModel, SelectOptionData, SelectOptionProps, SelectProps, SelectSlots, SelectValue, } from './Components/Select';
|
|
119
125
|
export { Sidebar, SidebarInset, SidebarList, SidebarListItem, SidebarProvider, SidebarTrigger, useSidebar, useSidebarInset, useSidebarList, useSidebarListItem, useSidebarProvider, useSidebarShell, useSidebarTrigger, } from './Components/Sidebar';
|