@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.
Files changed (61) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +2 -1
  2. package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +1 -1
  3. package/dist/Actions/actionHostRegistry.d.ts +2 -1
  4. package/dist/Actions/actionHostRegistry.js +11 -7
  5. package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +7 -7
  6. package/dist/Components/Chart/composables/useChart.js +16 -14
  7. package/dist/Components/DataTable/DataTable.vue.d.ts +5 -3
  8. package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +114 -101
  9. package/dist/Components/DataTable/composables/useDataTable.d.ts +4 -2
  10. package/dist/Components/DataTable/composables/useDataTable.js +293 -273
  11. package/dist/Components/DataTable/dataTable.types.d.ts +35 -2
  12. package/dist/Components/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +4 -3
  13. package/dist/Components/Drawer/composables/useDrawer.js +68 -67
  14. package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +3 -5
  15. package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +4 -3
  16. package/dist/Components/Modal/composables/useModal.js +129 -119
  17. package/dist/Components/Pagination/Pagination.vue.d.ts +6 -0
  18. package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +23 -11
  19. package/dist/Components/Pagination/composables/usePagination.d.ts +3 -3
  20. package/dist/Components/Pagination/composables/usePagination.js +95 -84
  21. package/dist/Components/Pagination/pagination.types.d.ts +30 -2
  22. package/dist/Components/Resizable/Resizable.js +5 -0
  23. package/dist/Components/Resizable/Resizable.vue.d.ts +17 -0
  24. package/dist/Components/Resizable/Resizable.vue_vue_type_script_setup_true_lang.js +30 -0
  25. package/dist/Components/Resizable/composables/useResizable.d.ts +18 -0
  26. package/dist/Components/Resizable/composables/useResizable.js +195 -0
  27. package/dist/Components/Resizable/index.d.ts +4 -0
  28. package/dist/Components/Resizable/index.js +4 -0
  29. package/dist/Components/Resizable/resizable.types.d.ts +53 -0
  30. package/dist/Components/Resizable/resizableInjectionKey.d.ts +111 -0
  31. package/dist/Components/Resizable/resizableInjectionKey.js +4 -0
  32. package/dist/Components/ResizableHandle/ResizableHandle.js +5 -0
  33. package/dist/Components/ResizableHandle/ResizableHandle.vue.d.ts +14 -0
  34. package/dist/Components/ResizableHandle/ResizableHandle.vue_vue_type_script_setup_true_lang.js +31 -0
  35. package/dist/Components/ResizableHandle/composables/useResizableHandle.d.ts +35 -0
  36. package/dist/Components/ResizableHandle/composables/useResizableHandle.js +85 -0
  37. package/dist/Components/ResizableHandle/index.d.ts +3 -0
  38. package/dist/Components/ResizableHandle/index.js +3 -0
  39. package/dist/Components/ResizableHandle/resizableHandle.types.d.ts +58 -0
  40. package/dist/Components/ResizablePanel/ResizablePanel.js +5 -0
  41. package/dist/Components/ResizablePanel/ResizablePanel.vue.d.ts +24 -0
  42. package/dist/Components/ResizablePanel/ResizablePanel.vue_vue_type_script_setup_true_lang.js +39 -0
  43. package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +21 -0
  44. package/dist/Components/ResizablePanel/composables/useResizablePanel.js +87 -0
  45. package/dist/Components/ResizablePanel/index.d.ts +3 -0
  46. package/dist/Components/ResizablePanel/index.js +3 -0
  47. package/dist/Components/ResizablePanel/resizablePanel.types.d.ts +71 -0
  48. package/dist/Components/Snackbar/composables/useSnackbar.js +140 -146
  49. package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +4 -6
  50. package/dist/Utils/LoadingSpin.js +5 -0
  51. package/dist/Utils/LoadingSpin.vue.d.ts +3 -0
  52. package/dist/Utils/LoadingSpin.vue_vue_type_script_setup_true_lang.js +21 -0
  53. package/dist/augments.d.ts +15 -0
  54. package/dist/index.d.ts +6 -0
  55. package/dist/index.js +70 -63
  56. package/docs/README.md +1 -0
  57. package/docs/components/Chart.md +3 -1
  58. package/docs/components/DataTable.md +19 -0
  59. package/docs/components/Pagination.md +17 -5
  60. package/docs/components/Resizable.md +224 -0
  61. 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 r } from "../snackbarDefaultIcons.js";
3
- import { computed as i, nextTick as a, onBeforeUnmount as o, ref as s, toValue as te, useAttrs as ne, watch as c } from "vue";
4
- import { get as l, isNil as re, isNull as ie, isObject as ae, omit as oe } from "es-toolkit/compat";
5
- import { snackbarColorProps as se, snackbarPaddingProps as ce, snackbarPositionProps as le, snackbarRoundedProps as ue, snackbarTransitionProps as de } from "@bridge-ui/core/Tokens";
6
- import { cn as u, mergeBridgeUILayeredClasses as d, splitComponentProps as fe } from "@bridge-ui/core/Utils";
7
- import { LAYER_STACK_BASE_Z_INDEX as f, SNACKBAR_LEAVE_FALLBACK_MS as pe, acquireLayerStackOrder as me, getLayerStackEntry as he, getSnackbarTransitionClass as ge, hasSnackbarTransition as _e, pushLayerStack as ve, resolveEffectiveSnackbarTransition as ye, subscribeLayerStack as p } from "@bridge-ui/core/Layer";
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 be = [
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 m(m, xe, h = {}) {
28
- let Se = ne(), g = s(!1), _ = s(""), v = s(1), y = s(0), b = s(!1), x = s(!1), S = s(0), C = s(!1), w = s(0), T = s(null), E = s(f), D = s("closed"), O = s(null), k = null, A = null, j = null, M = null, N = i(() => fe({
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
- ...Se,
31
- ...m
31
+ ...Te,
32
+ ...f
32
33
  },
33
- bridgeKeys: be
34
- })), { merged: P, entry: F } = n({
35
- libDefaults: xe,
34
+ bridgeKeys: Ce
35
+ })), { merged: N, entry: P } = n({
36
+ libDefaults: we,
36
37
  componentName: "Snackbar",
37
- props: () => N.value.componentProps
38
- }), I = i(() => P.value.customProps), L = i(() => oe(N.value.inheritedAttrs, ["onShowChange"])), R = ee({
39
- entry: F,
40
- props: () => N.value.componentProps
41
- }), z = i(() => !re(h.show) && te(h.show)), B = i(() => {
42
- let e = P.value.transition ?? "none", t = e in de ? e : "none";
43
- return ye(t);
44
- }), V = i(() => _e(B.value)), Ce = i(() => ge(B.value)), H = i(() => {
45
- let e = d(se, F.value?.tokens?.color);
46
- return l(e, P.value.color);
47
- }), U = i(() => {
48
- let e = d(ce, F.value?.tokens?.padding);
49
- return l(e, P.value.padding);
50
- }), we = i(() => {
51
- let e = d(ue, F.value?.tokens?.rounded);
52
- return l(e, P.value.rounded);
53
- }), Te = i(() => ie(P.value.icon) ? null : P.value.icon ? P.value.icon : l(H.value, "icon") ?? l(r, P.value.color)), W = i(() => P.value.duration === !1 ? 0 : P.value.duration ?? 0), G = i(() => z.value && g.value && W.value > 0 && P.value.progressbar !== !1), K = i(() => P.value.teleportTo !== !1), Ee = i(() => {
54
- if (!K.value) return "";
55
- let e = d(le, F.value?.tokens?.position);
56
- return l(e, P.value.position ?? "bottom-center");
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
- O.value &&= (clearTimeout(O.value), null);
63
+ j !== null && (clearTimeout(j), j = null);
60
64
  }
61
65
  function J() {
62
- j !== null && (clearTimeout(j), j = null);
66
+ E?.(), E = null;
63
67
  }
64
68
  function Y(e) {
65
- e || h.onClose?.(), ae(h.show) && "value" in h.show && (h.show.value = e), h.onShowChange?.(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
- x.value && (x.value = !1, D.value = "closed", q(), J(), z.value ? Y(!1) : h.onLeaveComplete?.(), g.value = !1);
72
+ y.value && (y.value = !1, k.value = "closed", K(), q(), R.value ? Y(!1) : p.onLeaveComplete?.(), m.value = !1);
69
73
  }
70
- function De() {
71
- if (q(), x.value = !0, !V.value) {
74
+ function Ae() {
75
+ if (J(), K(), y.value = !0, !B.value) {
72
76
  X();
73
77
  return;
74
78
  }
75
- D.value = "closed", J(), j = setTimeout(() => {
79
+ k.value = "closed", q(), j = setTimeout(() => {
76
80
  j = null, X();
77
- }, pe);
81
+ }, ge);
78
82
  }
79
- function Oe() {
80
- if (x.value = !1, J(), !V.value) {
81
- D.value = "open";
83
+ function je() {
84
+ if (y.value = !1, q(), !B.value) {
85
+ k.value = "open";
82
86
  return;
83
87
  }
84
- D.value = "closed", a(() => {
85
- requestAnimationFrame(() => {
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
- z.value && Y(!1);
93
+ R.value && Y(!1);
92
94
  }
93
95
  function Q(e) {
94
- q(), y.value = e, S.value = Date.now(), w.value = e, O.value = setTimeout(() => {
96
+ K(), _.value = e, b.value = Date.now(), C.value = e, A.value = setTimeout(() => {
95
97
  Z();
96
98
  }, e);
97
99
  }
98
- function ke() {
99
- !O.value || W.value <= 0 || (q(), y.value -= Date.now() - S.value, v.value = Math.max(y.value / W.value, 0), C.value = !1, b.value = !0);
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 Ae() {
102
- if (W.value <= 0 || !b.value) return;
103
- let e = Math.max(y.value, 0);
104
- b.value = !1, C.value = !1, requestAnimationFrame(() => {
105
- C.value = !0;
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 je(e) {
109
- x.value && g.value && D.value === "closed" && e.target === e.currentTarget && e.propertyName !== "none" && e.elapsedTime !== 0 && X();
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
- c(z, (e) => {
113
+ a(R, (e) => {
112
114
  if (e) {
113
- g.value = !0, Oe();
115
+ m.value = !0, je();
114
116
  return;
115
117
  }
116
- g.value && De();
117
- }, { immediate: !0 }), c([
118
- z,
119
- g,
120
- W
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
- q();
125
+ K();
124
126
  return;
125
127
  }
126
- b.value = !1, Q(n);
127
- }, { immediate: !0 }), c([W, G], ([e]) => {
128
- if (!e) {
129
- C.value = !1, v.value = 1;
130
- return;
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 = he(_.value);
142
- e && (E.value = e.zIndex);
135
+ let e = ve(h.value);
136
+ e && (D.value = e.zIndex);
143
137
  }
144
- function Me(e) {
145
- T.value = t(e), A?.setContainer(T.value);
138
+ function Fe(e) {
139
+ w.value = t(e), T?.setContainer(w.value);
146
140
  }
147
- c([g, K], ([e, t]) => {
148
- t && (e ? (k = me(), A = ve({
149
- order: k,
141
+ a([m, G], ([e, t]) => {
142
+ t && (e ? (S = _e(), T = xe({
143
+ order: S,
150
144
  lockScroll: !1,
151
- id: h.stackId,
152
- container: T.value ?? void 0,
145
+ id: p.stackId,
146
+ container: w.value ?? void 0,
153
147
  onEscape: () => {
154
148
  Z();
155
149
  }
156
- }), _.value = A.id, E.value = A.zIndex, $(), M = p($), a(() => {
157
- A?.setContainer(T.value);
158
- })) : (M?.(), M = null, A?.release(), A = null, k = null, _.value = "", E.value = f));
159
- }, { immediate: !0 }), o(() => {
160
- q(), J(), M?.(), M = null, A?.release(), A = null;
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 Ne = i(() => e(I.value?.portal, {
156
+ let Ie = r(() => e(F.value?.portal, {
163
157
  "data-snackbar-layer": !0,
164
- style: { zIndex: E.value }
165
- }, u({
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
- [Ee.value ?? ""]: !0,
168
- [l(R.value, "portal") ?? ""]: !0
169
- }))), Pe = i(() => e(I.value?.root, {
170
- ...L.value,
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: ke,
173
- onMouseleave: Ae,
174
- "data-state": D.value,
175
- onTransitionend: je,
176
- role: L.value.role ?? "status",
177
- "aria-live": L.value["aria-live"] ?? "polite"
178
- }, u({
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
- [l(we.value, "base") ?? ""]: !0,
183
- [Ce.value]: V.value,
184
- [l(R.value, "root") ?? ""]: !0
185
- }))), Fe = i(() => e(I.value?.icon, {}, u({
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
- [l(H.value, "iconColor") ?? ""]: !0,
188
- [l(R.value, "icon") ?? ""]: !0
189
- }))), Ie = i(() => e(I.value?.title, {}, u({
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
- [l(H.value, "titleColor") ?? ""]: !0,
192
- [l(R.value, "title") ?? ""]: !0
193
- }))), Le = i(() => e(I.value?.description, {}, u({
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
- [l(R.value, "description") ?? ""]: !0
196
- }))), Re = i(() => e(I.value?.progress, {}, {
197
- class: u({
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
- [l(H.value, "progressColor") ?? ""]: !0,
200
- [l(R.value, "progress") ?? ""]: !0
193
+ [o(V.value, "progressColor") ?? ""]: !0,
194
+ [o(L.value, "progress") ?? ""]: !0
201
195
  }),
202
- style: G.value ? {
196
+ style: W.value ? {
203
197
  transformOrigin: "left center",
204
- transform: `scaleX(${C.value && !b.value ? 0 : v.value})`,
205
- transition: C.value && !b.value ? `transform ${w.value}ms linear` : "none"
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 ze(t) {
209
- return e(I.value?.content, {}, u({
210
- [l(U.value, "contentRight") ?? ""]: t,
211
- [l(U.value, "content") ?? ""]: !t,
212
- [l(R.value, "content") ?? ""]: !0
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: P,
217
- iconBind: Fe,
218
- rendered: g,
219
- panelBind: Pe,
220
- titleBind: Ie,
221
- isPortaled: K,
222
- portalBind: Ne,
223
- contentBind: ze,
224
- setPanelRef: Me,
225
- showProgress: G,
226
- progressBind: Re,
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: Te,
229
- descriptionBind: Le
222
+ resolvedIcon: Oe,
223
+ descriptionBind: Be
230
224
  };
231
225
  }
232
226
  //#endregion
233
- export { m as useSnackbar };
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(E) ? (h(), c("div", p({
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)) : s("", !0)], 8, ["to", "disabled"]))], 64));
67
+ }, v(O)), null, 16)) : s("", !0)], 16)], 8, ["to", "disabled"])) : s("", !0)], 64));
70
68
  }
71
69
  });
72
70
  //#endregion
@@ -0,0 +1,5 @@
1
+ import e from "./LoadingSpin.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Utils/LoadingSpin.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -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 };
@@ -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';